/* Booth display: one screen, no scroll, landscape or portrait */
html, body { height: 100%; }
body.kiosk { overflow: hidden; background: var(--bg); }
#flow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .6; }
.glow { position: fixed; z-index: 0; border-radius: 50%; filter: blur(60px); pointer-events: none; opacity: .55; }
.glow.g1 { width: 46vmax; height: 46vmax; right: -12vmax; top: -14vmax; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 34%, transparent), transparent); animation: drift 22s ease-in-out infinite alternate; }
.glow.g2 { width: 40vmax; height: 40vmax; left: -14vmax; bottom: -16vmax; background: radial-gradient(closest-side, color-mix(in oklab, var(--brand-slate) 45%, transparent), transparent); animation: drift 26s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-4vmax, 3vmax) scale(1.08); } }

/* red waves along the bottom edge */
.waves { position: fixed; z-index: 0; inset-inline: 0; bottom: 0; width: 100%; height: 34vh; pointer-events: none; opacity: .9; }
.waves stop { stop-color: var(--accent); }

.stage {
  position: relative; z-index: 1; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding-inline: max(4.2vw, env(safe-area-inset-right, 0px)) max(4.2vw, env(safe-area-inset-left, 0px));
}
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); align-items: center; gap: 3vw; min-height: 0; }

.brand-col { display: grid; gap: 2.6vh; align-content: center; justify-items: start; }
.brand-col .logo { width: clamp(110px, 19vh, 320px); }
.brand-col h1 { font-size: clamp(2.2rem, 6.6vh, 6.4rem); font-weight: 900; line-height: 1.3; letter-spacing: -.02em; }
.brand-col h1 em { font-style: normal; color: var(--accent); }
.brand-col .lead { max-width: 30em; font-size: clamp(.9rem, 1.95vh, 1.6rem); line-height: 2; color: var(--muted); font-weight: 500; }
.brand-col .who { display: flex; align-items: center; gap: 12px; width: 100%; font-size: clamp(.85rem, 1.8vh, 1.5rem); color: var(--muted); font-weight: 600; }
.brand-col .who b { color: var(--ink); font-weight: 900; }
.brand-col .who i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.brand-col .who::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(to left, var(--accent), transparent); opacity: .85; }

.qr-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; align-items: start; justify-items: center; }
.tile { --s: min(28.5vh, 15.5vw); display: grid; justify-items: center; align-content: start; gap: 1.8vh; width: calc(var(--s) * 1.52); text-decoration: none; color: inherit; text-align: center; animation: bob 7s ease-in-out infinite; }
.tile:nth-child(2) { animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-1vh); } }

/* the QR sits inside the logo's two red brackets, with a scan beam passing over it */
.finder { position: relative; z-index: 1; width: var(--s); aspect-ratio: 1; }
.finder .plate { position: absolute; inset: 0; border-radius: calc(var(--s) * .09); background: #fff; padding: calc(var(--s) * .06); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .04); overflow: hidden; }
.finder .plate svg { width: 100%; height: 100%; display: block; }
.finder .br { position: absolute; width: 30%; height: 30%; border: 0 solid var(--accent); pointer-events: none; }
.finder .br.a { top: -6%; right: -6%; border-top-width: calc(var(--s) * .045); border-right-width: calc(var(--s) * .045); border-top-right-radius: calc(var(--s) * .12); animation: brA 3.6s var(--ease-io) infinite; }
.finder .br.b { bottom: -6%; left: -6%; border-bottom-width: calc(var(--s) * .045); border-left-width: calc(var(--s) * .045); border-bottom-left-radius: calc(var(--s) * .12); animation: brB 3.6s var(--ease-io) infinite; }
.finder .beam { position: absolute; inset-inline: 4%; top: 0; height: 22%; border-radius: 8px; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(180deg, transparent, rgba(198, 44, 47, .16) 70%, rgba(198, 44, 47, .65) 98%, transparent);
  animation: beam 3.6s var(--ease-io) infinite; }
@keyframes brA { 0%, 100% { transform: none; } 50% { transform: translate(6%, -6%); } }
@keyframes brB { 0%, 100% { transform: none; } 50% { transform: translate(-6%, 6%); } }
@keyframes beam { 0% { transform: translateY(-30%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(430%); opacity: 0; } }
.tile:nth-child(2) .beam, .tile:nth-child(2) .br { animation-delay: -1.8s; }

/* the glass card under the code: the code overlaps its top edge */
.card {
  position: relative; display: grid; gap: 1.3vh; width: 100%; margin-top: calc(var(--s) * -.1);
  padding: calc(var(--s) * .1 + 2.2vh) 1.6vh 1.8vh; border-radius: 2.2vh; text-align: start;
  background: color-mix(in oklab, var(--surface) 72%, transparent); backdrop-filter: blur(10px);
  border: 1px solid color-mix(in oklab, var(--accent) 38%, var(--line));
  box-shadow: 0 2vh 5vh -3vh color-mix(in oklab, var(--accent) 45%, transparent);
}
.card .head { display: flex; align-items: center; gap: 1.2vh; }
.card .ic { display: grid; place-items: center; width: 5.4vh; height: 5.4vh; flex: none; border-radius: 1.5vh; color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent); background: var(--accent-soft); }
.card .ic svg { width: 56%; height: 56%; }
.tile h2 { font-size: clamp(1.1rem, 3.4vh, 3rem); font-weight: 900; line-height: 1.25; }
.card .desc { display: flex; align-items: center; justify-content: space-between; gap: 1vh; font-size: clamp(.78rem, 1.55vh, 1.3rem); line-height: 1.85; color: var(--muted); font-weight: 500; }
.card .go { display: grid; place-items: center; width: 2.6vh; height: 2.6vh; flex: none; color: var(--accent); }
.card .go svg { width: 100%; height: 100%; stroke-width: 2.6; }

.tile .tag { display: inline-flex; align-items: center; gap: 1vh; font-size: clamp(.85rem, 1.8vh, 1.5rem); color: var(--muted); font-weight: 700; }
.tile .tag svg { width: 1.2em; height: 1.2em; color: var(--accent); }
.tile .tag.perks { width: 100%; justify-content: space-between; gap: 0; font-size: clamp(.75rem, 1.5vh, 1.25rem); }
.tile .tag.perks > span { display: inline-flex; align-items: center; gap: .5em; padding-inline: .9vh; }
.tile .tag.perks > span + span { border-inline-start: 1px solid var(--line-strong); }

.cd-card { display: grid; gap: 1.2vh; width: 100%; padding: 1.4vh 1.2vh 1.2vh; border-radius: 2vh; background: color-mix(in oklab, var(--surface) 72%, transparent); backdrop-filter: blur(10px); border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line)); }
.cd-head { display: inline-flex; align-items: center; justify-content: center; gap: .6em; font-size: clamp(.72rem, 1.45vh, 1.2rem); font-weight: 700; color: var(--ink-2); }
.cd-head svg { width: 1.4em; height: 1.4em; color: var(--accent); }
.tile .cdown { --cd-gap: .8vh; width: 100%; }
.tile .cu { padding: 1.1vh .3vh .8vh; border-radius: 1.5vh; gap: .4vh; }
.tile .cu .n { font-size: clamp(1.1rem, 3vh, 2.8rem); }
.tile .cu .ln { display: none; }
.tile .cu small { font-size: clamp(.62rem, 1.25vh, 1.1rem); }
.go-btn { display: none; }

/* the strip of five doors along the bottom */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; padding-block: 1.6vh 3vh; }
.strip a { display: grid; justify-items: center; gap: .6vh; padding-inline: 1vw; text-align: center; text-decoration: none; color: inherit; }
.strip a + a { border-inline-start: 1px solid color-mix(in oklab, var(--line-strong) 70%, transparent); }
.strip .ic { display: grid; place-items: center; width: 6.4vh; height: 6.4vh; margin-bottom: .6vh; border-radius: 1.8vh; color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent); background: color-mix(in oklab, var(--surface) 70%, var(--accent-soft)); transition: transform var(--t-med) var(--ease-spring); }
.strip .ic svg { width: 54%; height: 54%; }
.strip a:hover .ic { transform: translateY(-3px); }
.strip b { font-size: clamp(.85rem, 1.75vh, 1.5rem); font-weight: 800; }
.strip small { font-size: clamp(.68rem, 1.3vh, 1.1rem); color: var(--muted); font-weight: 500; }

/* one open form: its tile sits in the middle */
.qr-col.single { grid-template-columns: 1fr; }

/* portrait screens (the kiosk stands upright): everything is measured in one unit that follows the narrower of the two sides,
   so a 1080×1920 display and a squarer one both fit without scrolling */
@media (max-aspect-ratio: 1/1) {
  .stage { --k: min(1vw, .5625vh); }
  .snav nav { display: none; }
  .snav-end { margin-inline-start: auto; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: space-evenly; gap: calc(var(--k) * 3); text-align: center; }
  .brand-col { justify-items: center; gap: calc(var(--k) * 2.2); }
  .brand-col .logo { width: calc(var(--k) * 11); }
  .brand-col h1 { font-size: calc(var(--k) * 8.4); }
  .brand-col .lead { max-width: 40em; font-size: calc(var(--k) * 2.5); }
  .brand-col .who { justify-content: center; flex-wrap: wrap; font-size: calc(var(--k) * 2.2); }
  .brand-col .who::after { display: none; }
  .qr-col { gap: calc(var(--k) * 3); align-items: start; }
  .tile { --s: calc(var(--k) * 26.5); gap: calc(var(--k) * 1.8); }
  .card { gap: calc(var(--k) * 1.4); padding: calc(var(--s) * .1 + var(--k) * 2.2) calc(var(--k) * 1.8) calc(var(--k) * 2); border-radius: calc(var(--k) * 2.4); }
  .card .head { gap: calc(var(--k) * 1.3); }
  .card .ic { width: calc(var(--k) * 5.4); height: calc(var(--k) * 5.4); border-radius: calc(var(--k) * 1.5); }
  .tile h2 { font-size: calc(var(--k) * 3.2); }
  .card .desc { font-size: calc(var(--k) * 2.1); }
  .card .go { width: calc(var(--k) * 2.8); height: calc(var(--k) * 2.8); }
  .tile .tag { font-size: calc(var(--k) * 2.2); }
  .tile .tag.perks { font-size: calc(var(--k) * 1.9); }
  .tile .tag.perks > span { padding-inline: calc(var(--k) * 1); }
  .cd-card { gap: calc(var(--k) * 1.5); padding: calc(var(--k) * 1.7) calc(var(--k) * 1.3) calc(var(--k) * 1.4); border-radius: calc(var(--k) * 2.2); }
  .cd-head { font-size: calc(var(--k) * 2); }
  .tile .cdown { --cd-gap: calc(var(--k) * .9); }
  .tile .cu { padding: calc(var(--k) * 2.55) calc(var(--k) * .3) calc(var(--k) * 2); border-radius: calc(var(--k) * 1.8); gap: calc(var(--k) * .6); }
  .tile .cu .n { font-size: calc(var(--k) * 4.2); line-height: 1.15; }
  .tile .cu small { font-size: calc(var(--k) * 1.7); }
  .strip { padding-block: calc(var(--k) * 1.6) calc(var(--k) * 3); }
  .strip .ic { width: calc(var(--k) * 7); height: calc(var(--k) * 7); border-radius: calc(var(--k) * 2); }
  .strip b { font-size: calc(var(--k) * 2.1); } .strip small { font-size: calc(var(--k) * 1.6); }
  .waves { height: 22vh; }
}

/* a phone opening the root URL gets buttons instead of codes */
@media (max-width: 700px) and (pointer: coarse), (max-width: 520px) {
  body.kiosk { overflow: auto; }
  .stage { height: auto; min-height: 100dvh; grid-template-rows: auto auto auto; padding-bottom: 6vh; }
  .hero { gap: 18px; padding-block: 14px 12px; text-align: start; }
  .brand-col { justify-items: start; gap: 14px; }
  /* the phone shows the two forms first: no menu, no big logo, no paragraph */
  .snav nav { display: none; }
  .brand-col .logo, .brand-col .lead, .brand-col .who { display: none; }
  .brand-col h1 { font-size: 1.9rem; }
  .brand-col .lead { font-size: .95rem; }
  .brand-col .who { justify-content: flex-start; }
  .qr-col { grid-template-columns: 1fr; gap: 14px; }
  .tile { --s: 0px; width: 100%; animation: none; padding: 20px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); gap: 12px; justify-items: stretch; }
  .finder { display: none; }
  .card { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; gap: 8px; }
  .card .ic { width: 44px; height: 44px; border-radius: 14px; }
  .tile h2 { font-size: 1.35rem; }
  .card .desc { font-size: .9rem; }
  .card .go { width: 22px; height: 22px; }
  .tile .tag.perks { font-size: .8rem; justify-content: flex-start; }
  .tile .tag.perks > span { padding-inline: 10px; } .tile .tag.perks > span:first-child { padding-inline-start: 0; }
  .go-btn { display: inline-flex; margin-top: 4px; justify-self: stretch; }
  .cd-card { padding: 12px 10px; border-radius: 16px; gap: 10px; }
  .cd-head { font-size: .8rem; }
  .tile .cdown { --cd-gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile .cu { padding: 12px 4px 8px; border-radius: 14px; gap: 4px; }
  .tile .cu .n { font-size: 1.7rem; } .tile .cu small { font-size: .72rem; }
  .strip { display: none; }
  .waves { height: 22vh; }
}
