:root {
  color-scheme: dark;
  --ink: #f7f8f4;
  --muted: #b2c0c8;
  --night: #071018;
  --surface: #101e28;
  --line: #2d4653;
  --cyan: #65e4e6;
  --lime: #d9ff4d;
  --red: #ff8790;
  --team: #65e4e6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: radial-gradient(ellipse at 50% -18%, #174250 0, transparent 50%), var(--night);
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
[hidden] { display: none !important; }

.phone-app { display: flex; flex-direction: column; width: min(100%,620px); min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: max(10px,env(safe-area-inset-top)) 16px max(10px,env(safe-area-inset-bottom)); }
.phone-header { display: grid; place-items: center; flex: 0 0 auto; min-height: 54px; margin-bottom: 10px; }
.phone-brand { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; }
.phone-brand img { display: block; width: 142px; height: 52px; object-fit: contain; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.phone-panel { flex: 1 0 auto; padding: clamp(17px,4.4vw,26px); border: 1px solid #375565; border-radius: 20px; background: linear-gradient(155deg,#122b38,#0c1922 70%); box-shadow: 0 18px 60px #0006; }
.lobby-heading { margin-bottom: 19px; }
.eyebrow { margin: 0; color: var(--cyan); font-size: 11px; font-weight: 950; letter-spacing: .17em; }
h1, h2, .look-up-title { margin: 7px 0 8px; font-family: Impact,\"Arial Narrow\",ui-sans-serif,sans-serif; font-weight: 900; letter-spacing: .015em; text-transform: uppercase; }
h1 { font-size: clamp(38px,10vw,58px); line-height: .94; }
.intro-copy { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.name-field { display: block; color: #c4d3d9; font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.name-field input { display: block; width: 100%; height: 51px; margin-top: 6px; padding: 0 14px; border: 1px solid #446372; border-radius: 11px; background: #07131b; color: var(--ink); font-size: 18px; letter-spacing: 0; }
.name-field input::placeholder { color: #728892; }
.tribe-heading { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin: 19px 0 9px; color: #d6e1e4; font-size: 11px; font-weight: 900; letter-spacing: .11em; }
.tribe-heading span { color: #9fb3bd; font-size: 11px; font-weight: 700; letter-spacing: 0; text-align: right; }
.tribe-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.tribe-card { position: relative; display: grid; align-content: start; gap: 7px; min-height: 120px; padding: 12px; border: 1px solid #304a58; border-left: 4px solid var(--team); border-radius: 12px; background: #0a1720; text-align: left; transition: transform .14s ease,border-color .14s ease,background .14s ease; }
.tribe-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tribe-card:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--team); }
.tribe-card.is-selected { background: color-mix(in srgb,var(--team) 20%,#0a1720); box-shadow: inset 0 0 0 1px var(--team),0 0 20px color-mix(in srgb,var(--team) 18%,transparent); }
.tribe-card.is-full { opacity: .48; }
.tribe-name { color: var(--team); font-size: 18px; font-weight: 950; line-height: 1; text-transform: uppercase; }
.tribe-ideals { color: #c8d5d9; font-size: 13px; line-height: 1.35; }
.tribe-spaces { align-self: end; margin-top: auto; color: #89a0a9; font-size: 10px; font-weight: 850; }
.tribe-card.is-full .tribe-spaces { color: #ffadb3; }
.join-action-wrap { position: sticky; bottom: max(8px,env(safe-area-inset-bottom)); z-index: 2; margin-top: 12px; padding-top: 2px; background: linear-gradient(180deg,transparent,var(--surface) 16%); }
.primary-button { width: 100%; min-height: 54px; border: 0; border-radius: 12px; background: var(--lime); color: #111c20; font-size: 14px; font-weight: 1000; letter-spacing: .045em; text-transform: uppercase; box-shadow: 0 4px 0 #8eae25; }
.primary-button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #8eae25; }
.primary-button:disabled { background: #6f7c4b; color: #e4ebd3; box-shadow: 0 4px 0 #45502f; }
.inline-error { min-height: 0; margin: 7px 2px 0; color: var(--red); font-size: 13px; font-weight: 750; line-height: 1.4; }
.inline-error:empty { display: none; }

.play-panel { display: flex; flex-direction: column; }
.player-topline { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.tribe-tag { border: 1px solid color-mix(in srgb,var(--team) 75%,#fff); border-radius: 999px; padding: 7px 11px; color: var(--team); font-size: 10px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.show-tag { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #44616e; border-radius: 999px; padding: 6px 9px; color: #c3d5d8; font-size: 9px; font-weight: 900; letter-spacing: .09em; white-space: nowrap; }
.show-tag::before { content: \"\"; width: 7px; height: 7px; border-radius: 50%; background: #60e398; }
.play-content { display: grid; align-content: center; gap: 10px; min-height: min(66vh,590px); padding: 30px 0 18px; text-align: center; }
.look-up-title { margin: 0; color: var(--lime); font-size: clamp(58px,16vw,98px); line-height: .86; text-shadow: 0 6px 0 #59730e; }
.play-lead { max-width: 430px; margin: 5px auto 0; color: #e8f0f0; font-size: 18px; font-weight: 780; line-height: 1.35; }
.play-detail { max-width: 430px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.5; }
.play-card { width: 100%; margin-top: 12px; padding: 17px; border: 1px solid color-mix(in srgb,var(--team) 60%,#34515a); border-radius: 15px; background: #08151d; text-align: left; }
.play-card-kicker { margin: 0; color: var(--team); font-size: 11px; font-weight: 950; letter-spacing: .14em; }
.play-card-copy { margin: 7px 0 0; color: #f3f6f2; font-size: 18px; font-weight: 760; line-height: 1.45; }
.play-card-foot { margin: 8px 0 0; color: #9db1b8; font-size: 13px; line-height: 1.45; }
.runner-code { display: block; margin-top: 15px; color: #aebfc5; font-size: 11px; font-weight: 950; letter-spacing: .12em; }
.runner-code input { display: block; width: min(100%,230px); height: 58px; margin: 7px auto 0; border: 1px solid #52717c; border-radius: 10px; background: #071018; color: var(--ink); font-size: 30px; font-weight: 900; letter-spacing: .36em; text-align: center; }
.secondary-button { width: 100%; min-height: 48px; margin-top: 10px; border: 1px solid #54707c; border-radius: 10px; background: #203946; color: #f4f8f6; font-size: 12px; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.party-grid { display: grid; gap: 8px; margin-top: 14px; }
.party-choice { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 58px; padding: 10px 13px; border: 1px solid #375461; border-left: 5px solid var(--team); border-radius: 11px; background: #0b1821; color: var(--ink); font-size: 15px; font-weight: 900; text-align: left; }
.party-choice::after { content: \"VOTE\"; color: var(--team); font-size: 10px; font-weight: 950; letter-spacing: .1em; }
.party-choice:disabled { opacity: .42; }
.party-choice.is-voted { border-color: var(--lime); background: #26351d; color: var(--lime); }
.party-choice.is-voted::after { content: \"YOUR VOTE\"; color: var(--lime); }
.change-tribe-button { justify-self: center; width: auto; min-height: 42px; margin-top: 10px; padding: 0 14px; border: 1px solid #4c6570; border-radius: 9px; background: #152b35; color: #d2e1e3; font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.lightning-phone { gap: 14px; }
.lightning-phone h1 { margin: 0; }
.lightning-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 10px; }
.lightning-options button { min-height: 64px; border: 2px solid color-mix(in srgb,var(--team) 55%,#fff); border-radius: 14px; background: #13212a; color: #fff; font-size: 17px; font-weight: 900; }
.lightning-options button:active { transform: scale(.98); background: var(--team); }
.phone-footer { display: flex; justify-content: space-between; align-items: center; gap: 9px; min-height: 38px; margin-top: 8px; color: #78909a; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.phone-footer button { border: 0; background: transparent; color: #91a7b0; font-size: 10px; font-weight: 900; letter-spacing: .08em; }

@media (max-width: 380px) {
  .phone-app { padding-right: 10px; padding-left: 10px; }
  .phone-panel { padding: 15px; }
  .tribe-grid { gap: 6px; }
  .tribe-card { min-height: 112px; padding: 9px; }
  .tribe-name { font-size: 16px; }
  .tribe-ideals { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
