/* Sign-in and account pages. */
.center { flex: 1; display: grid; place-items: center; padding: 28px 16px; }
.panel { width: min(100%, 520px); display: grid; gap: 20px; }
.panel h1 { font-size: clamp(32px, 8vw, 48px); line-height: 1.05; letter-spacing: -0.035em; }
.panel .sub { color: var(--text-dim); font-size: clamp(17px, 4.4vw, 20px); margin-top: -6px; }
.google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; border-radius: 999px; border: 1px solid #dadce0;
  background: #fff; color: #1f1f1f; font: 600 16px var(--font-body); cursor: pointer; transition: box-shadow 0.2s, transform 0.2s;
}
.google:hover { box-shadow: 0 6px 24px -8px rgba(255, 255, 255, 0.35); }
.google:active { transform: scale(0.99); }
.google svg { width: 20px; height: 20px; }
.small { color: var(--text-dim); font-size: 12.5px; }
.demo { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 10px; }
.demo h2 { font-size: 15px; }
.demo form { display: flex; gap: 8px; flex-wrap: wrap; }
.card-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.card-list > div { background: var(--ink-900); padding: 12px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-list dt { color: var(--text-dim); }
.card-list dd { margin: 0; font-weight: 600; }

.wrap > .panel { margin-top: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }

/* Sign-up, the age pop-up and e-mail sign-in */
.signin-actions { display: grid; gap: 12px; }
.btn.wide { width: 100%; min-height: 54px; font-size: 16px; }
.stack { display: grid; gap: 10px; }
.stack label, .age-form label { font-weight: 600; font-size: 14px; }
/* a checkbox with its words: the whole row and the box's own hit area are 44px; the drawn box is 24px inside it */
.stack label:has(> input[type="checkbox"]) { display: flex; align-items: center; gap: 4px; min-height: 44px; cursor: pointer; }
.stack input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 44px; margin: 0; background: none; cursor: pointer; }
.stack input[type="checkbox"]::before { content: ""; position: absolute; inset: 10px; box-sizing: border-box; border: 2px solid var(--text-dim); border-radius: 6px; background: var(--ink-800); }
.stack input[type="checkbox"]:checked::before { background: var(--teal); border-color: var(--teal); }
.stack input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 17px; top: 12px; width: 7px; height: 14px; border: solid var(--on-teal); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.stack input[type="checkbox"]:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: 10px; }
.field { width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-800); color: var(--text); font: 500 17px var(--font-body); }
.field:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.linklike { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--teal-text); text-decoration: underline; cursor: pointer; min-height: 44px; }
.code-field { font: 700 28px var(--font-mono); letter-spacing: 0.4em; text-align: center; }
.age-dialog { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-900); color: var(--text); padding: 24px; width: min(92vw, 440px); }
.age-dialog::backdrop { background: color-mix(in srgb, var(--ink-950) 78%, transparent); backdrop-filter: blur(3px); }
.age-dialog h2 { font-size: 22px; margin-bottom: 8px; }
.age-form { display: grid; gap: 12px; }
.age-out { font: 800 56px var(--font-head); letter-spacing: -0.03em; text-align: center; line-height: 1; color: var(--teal-text); }
.age-slider { width: 100%; accent-color: var(--teal); height: 44px; cursor: grab; }
.age-number { width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-800); color: var(--text); font: 700 24px var(--font-head); text-align: center; }
.age-msg { color: var(--text); }
.btn.danger { background: color-mix(in srgb, var(--ring-red) 18%, var(--ink-800)); border-color: color-mix(in srgb, var(--ring-red) 60%, var(--line)); }
.danger-link { color: var(--bad-text); }

/* the invite link: a read-only field that never makes the page wider than the screen */
.card-list dd { min-width: 0; }
.invite-link { width: min(100%, 34ch); max-width: 100%; box-sizing: border-box; background: var(--ink-800); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-sm, 8px); padding: 8px 10px; min-height: 44px; font: 500 16px var(--font-body); } /* 16px: iOS Safari zooms in on a smaller field; 44px: a thumb */
.promo { display: grid; gap: 10px; }
.promo summary { list-style: none; cursor: pointer; color: var(--text-dim); font-size: 14px; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 8px; width: fit-content; }
.promo summary::-webkit-details-marker { display: none; }
.promo summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--teal-text); font-weight: 800; line-height: 1; }
.promo[open] summary::before { content: "\2212"; }
.promo summary:hover { color: var(--text); }
.promo summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 8px; }
.terms { margin-top: -8px; }
.terms a { color: var(--teal-text); text-decoration: underline; }

/* The Sign up page's gold, perforated ticket stub: it is the thing that makes it unlike Sign in. A soft light follows the pointer across it (stub.js sets --mx and --my) and its glow grows. */
.stub-wrap { --mx: 50%; --my: 30%; --glow: 0; margin: 0 0 6px; filter: drop-shadow(0 8px 26px rgba(255, 194, 77, calc(0.16 + var(--glow) * 0.5))); }
.stub {
  position: relative; display: grid; gap: 10px; padding: 30px 26px 40px; border-radius: 18px 18px 0 0; color: #1b1200;
  background: radial-gradient(circle 240px at var(--mx) var(--my), rgba(255, 255, 255, calc(0.18 + var(--glow) * 0.5)), transparent 70%), linear-gradient(160deg, #ffc24d, #f79b43);
  -webkit-mask: radial-gradient(circle 8px at 50% 100%, #0000 97%, #000) bottom / 24px 100% repeat-x; mask: radial-gradient(circle 8px at 50% 100%, #0000 97%, #000) bottom / 24px 100% repeat-x;
}
.stub h1, .stub .sub { color: inherit; margin: 0; }
.stub .sub { opacity: 0.78; font-weight: 600; }
