/* Phone pages: drinks voucher, extend offer, sign-in. Pinks tokens from the website design system. */
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap; src: url(/static/fonts/anton-400.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap; src: url(/static/fonts/anton-ext-400.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url(/static/fonts/archivo-500.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url(/static/fonts/archivo-600.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url(/static/fonts/archivo-800.woff2) format("woff2"); }

:root {
  --pink: #E8398D;
  --pink-deep: #C2166B;
  --ink: #231020;
  --ink-2: #33182E;
  --wash: #FBF2F6;
  --steel: #B7A3AE;
  --line: rgba(251, 242, 246, 0.22);
  --ok: #7FD8A6;
  --error: #FF9DB0;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--wash);
  font: 500 16px/1.5 var(--body);
}
a { color: var(--wash); }
.wrap { max-width: 460px; margin: 0 auto; padding: 24px 16px 48px; }
.logo { display: block; width: 132px; height: auto; margin: 4px 0 28px; }
.hero { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin: 0 0 22px; }

h1 {
  font: 400 52px/0.95 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  font-synthesis: none;
}
h2 { font: 400 26px/1.05 var(--display); text-transform: uppercase; margin: 0 0 10px; font-synthesis: none; }
p { margin: 0 0 12px; }
.lede { font-size: 18px; font-weight: 600; }
.muted { color: var(--steel); }
.small { font-size: 14px; }

form { margin-top: 22px; }
label.field { display: block; margin-bottom: 16px; font-weight: 600; font-size: 15px; }
label.field span { display: block; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 242, 246, 0.06);
  color: var(--wash);
  font: 600 18px/1.2 var(--body);
}
input:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; border-color: var(--pink); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; font-size: 15px; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pink); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--pink); color: #fff;
  font: 800 17px/1 var(--body);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--pink-deep); }
.btn:focus-visible { outline: 2px solid var(--wash); outline-offset: 3px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--wash); }
.btn + .btn { margin-top: 12px; }

.error { background: rgba(255, 157, 176, 0.12); border: 1px solid var(--error); color: var(--wash); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-weight: 600; }
.note { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; }

/* The voucher itself. The shine moves and the clock ticks, so a screenshot is easy to spot. */
.voucher {
  position: relative; overflow: hidden;
  margin: 18px 0 16px; padding: 22px 20px 20px;
  border-radius: 20px;
  background: var(--pink); color: #fff;
}
.voucher::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; width: 38%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-12deg);
  animation: shine 2.6s linear infinite;
}
@keyframes shine { to { left: 130%; } }
.voucher .what { font: 800 15px/1.2 var(--body); opacity: 0.9; }
.voucher .code { font: 400 64px/1 var(--display); letter-spacing: 0.04em; margin: 10px 0 8px; font-synthesis: none; }
.voucher .live { font: 700 15px/1.2 var(--body); font-variant-numeric: tabular-nums; }
.voucher.used { background: var(--ink-2); color: var(--steel); }
.voucher.used::after { display: none; }
.voucher.used .code { text-decoration: line-through; text-decoration-thickness: 4px; }
.stamp { display: inline-block; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: var(--ok); color: var(--ink); font: 800 14px/1 var(--body); }

.voucher .for { font: 400 40px/1 var(--display); text-transform: uppercase; margin-top: 8px; font-synthesis: none; }
.voucher + .voucher { margin-top: 0; }
.vdetail { margin: -6px 0 16px; }

/* Several vouchers from one game: what they'll get, on the claim form */
.rewards { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 10px; }
.rewards li { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--ink-2); }
.rewards img, .rewards i { flex: none; width: 72px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--pink); }
.rewards b { display: block; font: 400 24px/1.05 var(--display); text-transform: uppercase; font-synthesis: none; }
.rewards small { display: block; margin-top: 3px; color: var(--steel); font-size: 14px; }

.staff { margin-top: 26px; padding: 18px 16px; border: 1px dashed var(--line); border-radius: 16px; }
.staff form { margin-top: 10px; }
.pinrow { display: flex; gap: 10px; }
.pinrow input { flex: 1; letter-spacing: 0.3em; text-align: center; }
.staff .btn { width: auto; flex: none; }
.pick { display: grid; gap: 8px; margin-bottom: 12px; }
.pick label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.pick input { width: 20px; height: 20px; accent-color: var(--pink); }
.pick em { font-style: normal; color: var(--steel); font-weight: 600; margin-left: 6px; }

.codebox {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px 0 16px; padding: 14px 16px;
  border-radius: 14px; background: var(--wash); color: var(--ink);
}
.codebox strong { font: 400 34px/1 var(--display); letter-spacing: 0.04em; font-synthesis: none; word-break: break-all; }
.codebox button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--wash); font: 800 15px/1 var(--body); cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .voucher::after { animation-duration: 6s; }
}

/* Staff sign-in on the bar tablet: tap your name, then type your PIN. */
.wrap.wide { max-width: 760px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.people { border: 0; padding: 0; margin: 4px 0 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.person { position: relative; display: block; }
.person input { position: absolute; opacity: 0; pointer-events: none; }
.person span { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink-2); cursor: pointer; }
.person i { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(232, 57, 141, 0.18); color: var(--pink); font: 400 21px/44px var(--display); font-style: normal; text-align: center; }
.person b { font: 800 18px/1.2 var(--body); overflow-wrap: anywhere; }
.person input:checked + span { background: var(--wash); color: var(--ink); border-color: var(--wash); }
.person input:checked + span i { background: var(--pink); color: #fff; }
.person input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.person.shared span { border-style: dashed; background: transparent; }
.person.shared input:checked + span { background: var(--wash); }
.pinline { display: flex; gap: 12px; align-items: flex-end; }
.pinline .field { flex: 1; margin: 0; }
.pinline .btn { width: auto; flex: none; padding-left: 34px; padding-right: 34px; }
@media (max-width: 520px) { .pinline { flex-direction: column; align-items: stretch; } .pinline .btn { width: 100%; } }
/* "Carry on as Admin", under Who's on? on a browser signed in to the admin page */
.as-admin { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.as-admin .btn { width: auto; padding: 10px 20px; font-size: 15px; }
