*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --kiosk-width: 270px;
  --kiosk-height: 482px;
  --kiosk-screen-left: 6.2963%;
  --kiosk-screen-top: 11.2033%;
  --kiosk-screen-width: 87.037%;
  --kiosk-screen-height: 84.6473%;
  --kiosk-screen-radius: 0px;
  --embed-content-width: 1080px;
  --embed-content-height: 1920px;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  color: #f5f7fb;
  background:
    radial-gradient(circle at top, rgba(36, 62, 118, 0.3), rgba(36, 62, 118, 0) 32%),
    linear-gradient(180deg, #090c14 0%, #020307 100%);
  overflow: hidden;
}

.presentation-page {
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: clamp(10px, 1.5vw, 18px);
  overflow: hidden;
}

.presentation-header {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 74px;
}

.brand-logo {
  display: block;
  max-height: 72px;
  max-width: min(320px, 88vw);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.48));
}

.presentation-stage {
  min-height: 0;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(12px, 1.8vw, 24px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, rgba(15, 18, 28, 0.98), rgba(8, 10, 16, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 64px rgba(0, 0, 0, 0.32);
}

.presentation-stage::before,
.presentation-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.presentation-stage::before {
  inset: 8% 18%;
  background: radial-gradient(circle, rgba(104, 154, 255, 0.12), rgba(104, 154, 255, 0));
  filter: blur(34px);
}

.presentation-stage::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 12% 88%, rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 10% 90%, rgba(255, 255, 255, 0.03));
  opacity: 0.6;
}

.kiosk-scale {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.kiosk-shell {
  width: var(--kiosk-width);
  height: var(--kiosk-height);
  position: relative;
}

.kiosk-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.46));
}

.kiosk-screen {
  position: absolute;
  left: var(--kiosk-screen-left);
  top: var(--kiosk-screen-top);
  width: var(--kiosk-screen-width);
  height: var(--kiosk-screen-height);
  overflow: hidden;
  border-radius: var(--kiosk-screen-radius);
  background: #fff;
}

.kiosk-screen-stage {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.permission-gate {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 28px);
  background:
    linear-gradient(180deg, rgba(6, 7, 10, 0.92), rgba(15, 17, 22, 0.96)),
    radial-gradient(circle at top, rgba(207, 25, 36, 0.18), rgba(207, 25, 36, 0) 48%);
}

.permission-gate.is-hidden {
  display: none;
}

.permission-card {
  width: min(100%, 320px);
  padding: 20px 18px;
  border-radius: 18px;
  background: rgba(17, 19, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

.permission-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.permission-title {
  margin: 0 0 10px;
  font-size: clamp(20px, 6vw, 28px);
  line-height: 1.05;
  color: #fff;
}

.permission-copy,
.permission-status {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}

.permission-status {
  min-height: 2.9em;
}

.permission-status.is-error {
  color: #ffb1b1;
}

.permission-button {
  width: 100%;
  margin: 16px 0 12px;
  padding: 13px 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff4d5a, #cf1924);
  box-shadow: 0 14px 28px rgba(207, 25, 36, 0.34);
  cursor: pointer;
}

.permission-button:disabled {
  opacity: 0.68;
  cursor: wait;
}

.kiosk-screen-scale {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.kiosk-frame {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--embed-content-width);
  height: var(--embed-content-height);
  border: 0;
  background: #fff;
  transform-origin: top left;
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .presentation-page {
    height: auto;
    min-height: 100svh;
    padding: 10px;
  }

  .presentation-header {
    min-height: 56px;
  }

  .brand-logo {
    max-height: 52px;
  }

  .presentation-stage {
    min-height: 540px;
    border-radius: 24px;
  }
}
