/* The Party Games Arcade home (public/index.html). Colors and font come from games.css. */
.a-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand-mark svg { display: block; }
.brand-name em { font-style: normal; color: var(--accent); }
.install { white-space: nowrap; font: inherit; font-weight: 700; color: var(--ink); background: var(--accent); border: 3px solid var(--ink); border-radius: 14px; padding: 8px 14px; min-height: 44px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.install:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

.arcade { padding: 0 16px 40px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; padding: 10px 0 8px; }
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(32px, 8.4vw, 54px); line-height: 1.04; margin: 0; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 em + em, .hero h1 em:last-of-type { color: var(--teal); }
.lead { color: var(--soft); font-size: 19px; margin: 12px 0 16px; max-width: 34em; }
.hero-art svg { width: 100%; height: auto; display: block; max-width: 520px; margin: 0 auto; }

.join { padding: 14px 16px; max-width: 420px; }
.join label { font-weight: 700; display: block; margin-bottom: 8px; }
.join-row { display: flex; gap: 10px; }
.join input { flex: 1; min-width: 0; font: inherit; font-size: 24px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 8px 12px; border-radius: 12px; border: 3px solid var(--ink); background: var(--text); color: var(--ink); min-height: 48px; }
.join button { font: inherit; font-weight: 700; padding: 0 20px; min-height: 48px; border-radius: 12px; border: 3px solid var(--ink); background: var(--pink); color: #fff; box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.join .err:empty { display: none; }
.join .err { margin: 8px 0 0; color: #ffb4a6; font-size: 15px; }

.section-title { font-size: clamp(24px, 6vw, 32px); margin: 30px 0 14px; }
.shelf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tile { display: grid; text-decoration: none; color: var(--text); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--ink); }
.tile:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--ink); }
.tile:focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; }
.tile .art { line-height: 0; border-bottom: 3px solid var(--ink); }
.tile .art svg { width: 100%; height: auto; display: block; }
.tile .body { padding: 14px 16px 18px; }
.tile .body > * + * { margin-top: 8px; }
.tile h3 { font-size: 30px; margin: 0; }
.tile p { margin: 0; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #0d0826; border: 2px solid var(--line); color: var(--soft); }
.tags .hot { background: var(--pink); color: #fff; border-color: var(--ink); }
.tile .go { display: inline-flex; margin-top: 14px; font-weight: 700; color: var(--ink); background: var(--accent); border: 3px solid var(--ink); border-radius: 14px; padding: 8px 16px; box-shadow: 0 4px 0 var(--ink); }
.tile .mine { color: var(--accent); font-weight: 700; font-size: 15px; }
.tile .mine:empty { display: none; }

.steps3 { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps3 li { padding: 16px; position: relative; }
.steps3 .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--ink); font-weight: 700; font-size: 20px; border: 3px solid var(--ink); }
.steps3 h3 { margin: 10px 0 4px; font-size: 20px; }
.steps3 p, .note { margin: 0; color: var(--soft); }
.note { margin-top: 12px; }

.app { margin-top: 30px; padding: 18px; display: grid; gap: 16px; align-items: start; }
.app-icon img { display: block; border-radius: 22px; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.app h2 { margin: 0 0 6px; font-size: 28px; }
.app p { margin: 0 0 10px; color: var(--soft); }
.app .good { color: var(--good); }
.go-btn { font: inherit; font-weight: 700; color: var(--ink); background: var(--accent); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 18px; min-height: 48px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; margin-bottom: 10px; }
details { margin-top: 8px; }
summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
details ol { margin: 0 0 8px; color: var(--soft); padding-left: 1.3em; }

.soon-row { display: grid; gap: 12px; }
.soon-row .card { padding: 14px 16px; opacity: .85; }
.soon-row h3 { margin: 0 0 4px; font-size: 19px; }
.soon-row p { margin: 0; color: var(--soft); font-size: 15px; }

.faq details { border-bottom: 2px solid var(--line); padding: 2px 0; }
.faq p { color: var(--soft); margin: 0 0 12px; }
.a-foot { margin-top: 34px; text-align: center; color: var(--soft); font-size: 15px; }
.a-foot a { color: var(--accent); }

/* "Powered by Web Design Nerd" badge, home footer only (Doug 2026-10-04: on every project). Never in a game screen. */
.a-foot .wdnpb-row { margin-top: 18px; }
.wdnpb{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:6px 12px 6px 6px;border-radius:999px;
  background:#151922;border:1px solid rgba(92,198,202,.35);color:#98a0b0;text-decoration:none;
  font:500 12.5px/1 ui-monospace,"IBM Plex Mono",SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.01em;
  transition:border-color .15s,color .15s}
.a-foot a.wdnpb{color:#98a0b0}
.wdnpb:hover,.wdnpb:focus-visible,.a-foot a.wdnpb:hover,.a-foot a.wdnpb:focus-visible{border-color:#5cc6ca;color:#f2f4f8}
.wdnpb:focus-visible{outline:2px solid #5cc6ca;outline-offset:2px}
.wdnpb__ic{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1.5px solid #5cc6ca;
  border-radius:6px;color:#f2f4f8;font-weight:600;font-size:10.5px;letter-spacing:-.5px}
.wdnpb__name{color:#f2f4f8;font-weight:600}
.wdnpb__name b{color:#5cc6ca;font-weight:600}
.wdnpb__cur{display:inline-block;width:6px;height:12px;margin-left:2px;background:#fba920;vertical-align:-2px}
@media (prefers-reduced-motion:reduce){.wdnpb{transition:none}}

/* Gentle motion on the hero; off for reduced motion. */
.float { animation: a-float 5s ease-in-out infinite; }
.f2 { animation-delay: -1.6s; } .f3 { animation-delay: -3.1s; }
.bob { animation: a-bob 3.2s ease-in-out infinite; transform-box: fill-box; }
.b2 { animation-delay: -.8s; } .b3 { animation-delay: -1.7s; } .b4 { animation-delay: -2.4s; }
.boom { animation: a-boom 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes a-float { 50% { transform: translateY(-10px); } }
@keyframes a-bob { 50% { translate: 0 -6px; } }
@keyframes a-boom { 0%, 60% { transform: scale(.2); opacity: 0; } 70% { transform: scale(1.2); opacity: .95; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .float, .bob, .boom { animation: none; } .tile { transition: none; } }

@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding-top: 24px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps3 { grid-template-columns: repeat(3, 1fr); }
  .soon-row { grid-template-columns: repeat(3, 1fr); }
  .app { grid-template-columns: auto 1fr; padding: 24px 28px; }
}
@media (max-width: 420px) { .brand { font-size: 17px; gap: 8px; } .brand-mark svg { width: 38px; height: 38px; } .install { padding: 6px 12px; } }

.how-sub { color: var(--soft); margin: -4px 0 16px; max-width: 46em; }
.step-art svg { width: 120px; height: 80px; display: block; margin-bottom: 6px; }
.steps3 .host { color: var(--accent); word-break: break-all; }
.host-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 12px; border: 3px solid var(--ink); font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 var(--ink); }
.mini.pink { background: var(--pink); color: #fff; }
.mini.teal { background: var(--teal); color: var(--ink); }
.tip { margin-top: 10px !important; font-size: 14px; }
.join .as-tv { width: 100%; margin-top: 10px; }
.a-signin { margin-left: auto; white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
/* Game night: the ways to play (Doug, 1 Oct: same room by passing the phone or with a TV, and friends far away) */
.ways { display: grid; gap: 14px; margin-bottom: 22px; }
.way { padding: 16px; display: grid; gap: 8px; align-content: start; }
.way h3 { margin: 0; font-size: 20px; }
.way p { margin: 0; color: var(--soft); }
.way .mini { justify-self: start; }
.steps-title { margin: 6px 0 6px; font-size: 22px; }
@media (min-width: 860px) { .ways { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 2026-10-05 home order (Doug #15): Join at the top, then Host, then find a game ---------- */
.top-join { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 6px 0 4px; }
.top-join > * { min-width: 0; }
.top-join h1 { font-size: clamp(26px, 6.6vw, 46px); line-height: 1.06; margin: 0; text-wrap: balance; }
.top-join h1 em { font-style: normal; color: var(--accent); }
.top-join h1 em + em { color: var(--teal); }
.top-join .join { max-width: 560px; }
.join label { font-size: 19px; }
.rp-badge { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 2px solid var(--accent); background: #0d0826; color: var(--text); text-decoration: none; font-size: 15px; min-height: 36px; }
.rp-badge b { color: var(--accent); }
.rp-star { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 16px; border: 2px solid var(--ink); }

.tix { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 6px 12px; min-height: 40px; border-radius: 999px; background: #0d0826; border: 2px solid var(--accent); color: var(--accent); text-decoration: none; font-weight: 700; white-space: nowrap; }
.tix + .a-signin { margin-left: 0; }
.tix.pop { animation: a-pop .7s ease-out 2; }
@keyframes a-pop { 40% { transform: scale(1.18); } }

.host-box { margin-top: 22px; padding: 18px; display: grid; gap: 16px; border-color: var(--accent); }
.host-box > * { min-width: 0; }
.host-box h2 { margin: 0; font-size: clamp(26px, 6.4vw, 38px); }
.host-lead { color: var(--soft); margin: 6px 0 14px; font-size: 18px; }
.host-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.host-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; }
.host-steps .n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 24px; border: 3px solid var(--ink); }
.host-steps b { display: block; font-size: 19px; }
.host-steps small { display: block; color: var(--soft); font-size: 15px; margin-top: 2px; }
.host-steps .addr { display: inline-block; margin-top: 4px; font-size: clamp(22px, 5.6vw, 30px); font-weight: 700; color: var(--ink); background: var(--text); border: 3px solid var(--ink); border-radius: 12px; padding: 2px 12px; overflow-wrap: anywhere; letter-spacing: .01em; }
.host-here { margin-top: 16px; }
.host-here p { margin: 0 0 6px; }
.host-box .tip { color: var(--soft); }
.host-box .hero-art svg { max-width: 460px; }

.find-bar { margin: -4px 0 10px; }
.find-bar input { width: 100%; max-width: 560px; box-sizing: border-box; font: inherit; font-size: 18px; padding: 10px 14px; min-height: 48px; border-radius: 14px; border: 3px solid var(--ink); background: var(--text); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font: inherit; font-weight: 700; font-size: 15px; min-height: 40px; padding: 4px 14px; border-radius: 999px; border: 2px solid var(--line); background: #0d0826; color: var(--soft); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: var(--ink); }
.find-empty { color: var(--soft); margin: 0 0 10px; }
.find-empty:empty { display: none; }
.tile[hidden] { display: none; }
.tags .big { background: var(--teal); color: var(--ink); border-color: var(--ink); }

.bonus { margin-top: 30px; padding: 18px; }
.bonus-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.bonus h2 { margin: 0; font-size: 26px; }
.tix-total { color: var(--accent); font-size: 18px; }
.tix-total b { font-size: 26px; }
.bonus-sub { color: var(--soft); margin: 6px 0 8px; }
.tix-just { color: var(--good); font-weight: 700; margin: 0 0 6px; }
.tix-just:empty { display: none; }
.tix-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 10px; color: var(--soft); }
.tix-stats b { color: var(--text); font-size: 20px; }
.tix-left { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tix-left li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; min-height: 44px; box-sizing: border-box; border-radius: 12px; background: #0d0826; border: 2px solid var(--line); }
.tix-left a { color: var(--text); font-weight: 700; }
.tix-left b { color: var(--accent); }
.tix-next { margin: 10px 0 0; font-size: 15px; }

.live-dot { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: #ff4d5e; vertical-align: .12em; box-shadow: 0 0 0 0 rgba(255, 77, 94, .7); animation: a-live 1.6s ease-out infinite; }
@keyframes a-live { 70% { box-shadow: 0 0 0 .5em rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }
.lb-grid { display: grid; gap: 14px; }
.lb { padding: 14px 16px; }
.lb header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.lb h3 { margin: 0; font-size: 21px; }
.lb h3 a { color: var(--text); text-decoration: none; }
.lb-board { color: var(--soft); font-size: 14px; font-weight: 700; }
.lb-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lb-rows li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: #0d0826; }
.lb-rows li.lb-wait { display: block; color: var(--soft); background: none; padding: 4px 0; }
.lb-rank { font-weight: 700; color: var(--accent); text-align: center; }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { color: var(--teal); font-weight: 700; }
.lb-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-me { outline: 2px solid var(--teal); }
.lb-new { animation: a-new 2.4s ease-out; }
@keyframes a-new { 0%, 30% { background: var(--accent); color: var(--ink); } 100% { background: #0d0826; } }
.lb-foot { margin: 8px 0 0; color: var(--soft); font-size: 14px; }
.lb-title { font-size: clamp(30px, 7vw, 46px); margin: 8px 0 6px; }
.leaders-page { padding-top: 8px; }
.live .how-sub a { color: var(--accent); }

.rp { margin-top: 30px; padding: 18px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; border-color: var(--accent); }
.rp h2 { margin: 0 0 4px; font-size: 24px; }
.rp p { margin: 0; color: var(--soft); }
.rp a { color: var(--accent); }
.way .invite-slot { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) { .tix.pop, .live-dot, .lb-new { animation: none; } }
@media (min-width: 760px) {
  .host-box { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding: 24px 28px; }
  .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) { .lb-grid.small { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .tix { padding: 4px 10px; } .a-signin { max-width: 28vw; } }
/* Phones: the chips sit in one row that slides sideways under a thumb (only the row moves, never the page). */
@media (max-width: 600px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-right: -16px; padding-right: 16px; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
