/* ============================================================
   CLAW GAMES — arcade shell. Bright party / cartoon.
   Thick outlines, hard drop shadows, candy colours, bouncy presses.
   The minigames themselves are styled by core-minigame.css.
   ============================================================ */
:root {
    --ink: #2b1240;
    --paper: #fff8ec;
    --pink: #ff5fa2;
    --orange: #ff9f1c;
    --yellow: #ffd23f;
    --teal: #2ec4b6;
    --blue: #3b9dff;
    --purple: #8b5cf6;
    --green: #2fd67b;
    --line: 4px solid var(--ink);
    --pop: 0 6px 0 var(--ink);
    --radius: 22px;
}

[hidden] { display: none !important; }

html { background: #ff7eb6; }
body.arcade {
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 15%, rgba(255,255,255,.35) 0 60px, transparent 61px),
        radial-gradient(circle at 85% 30%, rgba(255,255,255,.25) 0 40px, transparent 41px),
        radial-gradient(circle at 70% 85%, rgba(255,255,255,.2) 0 80px, transparent 81px),
        linear-gradient(160deg, #ffd23f 0%, #ff9f1c 30%, #ff5fa2 65%, #8b5cf6 100%);
    background-attachment: fixed;
}
.bfont { font-family: 'Bebas Neue', 'Nunito', sans-serif; letter-spacing: .03em; }

#arcade { position: fixed; inset: 0; }
.screen > * { flex-shrink: 0; }
.screen {
    position: absolute; inset: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 24px);
    display: flex; flex-direction: column; gap: 16px;
    max-width: 760px; margin: 0 auto;
    animation: screen-in .28s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes screen-in { from { transform: translateY(24px) scale(.97); opacity: 0; } }

button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }

/* ---------- home ---------- */
.logo { text-align: center; margin-top: 1vh; }
.logo-claw { font-size: 48px; }
.logo-claw { font-size: 64px; display: inline-block; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-6px); } }
.logo h1 {
    font-size: clamp(56px, 16vw, 96px); line-height: .9; color: #fff;
    -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
    text-shadow: 0 6px 0 var(--ink);
}
.logo h1 span { color: var(--yellow); }
.logo .tag { font-weight: 800; margin-top: 8px; color: var(--ink); opacity: .85; }

.home-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.big-btn {
    position: relative; border: var(--line); border-radius: var(--radius); box-shadow: var(--pop);
    padding: 18px 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 2px;
    transition: transform .08s, box-shadow .08s;
}
.big-btn:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.big-btn .ico { font-size: 40px; }
.big-btn .lbl { font-size: 30px; line-height: 1; }
.big-btn .sub { font-size: 13px; font-weight: 700; opacity: .8; }
.big-btn .soon {
    position: absolute; top: -10px; right: -6px; background: var(--ink); color: var(--yellow);
    font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 99px; transform: rotate(8deg);
}
.big-btn:disabled { filter: saturate(.35); opacity: .75; }
.b-quick  { background: var(--teal); grid-column: span 2; }
.b-quick .lbl { font-size: 38px; }
.b-wheel  { background: var(--yellow); grid-column: span 2; }
.b-wheel .lbl { font-size: 38px; }
.b-party  { background: var(--blue); color: #fff; }
.b-online { background: var(--purple); color: #fff; }
.home-stats { text-align: center; font-weight: 800; font-size: 14px; opacity: .85; }

/* ---------- trophies ---------- */
.trophy-btn {
    display: flex; justify-content: space-between; align-items: center;
    border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); background: #fff;
    font-size: 26px; padding: 10px 18px; color: var(--ink);
}
.trophy-btn .n { font-size: 22px; opacity: .7; }
.trophy-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.trophy-sum { font-weight: 800; text-align: center; color: var(--ink); }
.trophy-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.trophy {
    display: flex; gap: 12px; align-items: center; min-width: 0;
    background: rgba(255,255,255,.55); border: var(--line); border-radius: 18px; padding: 10px 12px;
}
.trophy .t-ico { font-size: 34px; filter: grayscale(1); opacity: .45; }
.trophy.got { background: #fff; box-shadow: 0 4px 0 var(--ink); }
.trophy.got .t-ico { filter: none; opacity: 1; }
.trophy .t-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.trophy b { font-size: 22px; line-height: 1; }
.trophy small { font-size: 13px; font-weight: 700; opacity: .8; }
.trophy em { font-style: normal; font-size: 12px; font-weight: 800; opacity: .7; }
.trophy .t-bar { display: block; height: 8px; border-radius: 99px; background: rgba(0,0,0,.12); overflow: hidden; margin-top: 3px; }
.trophy .t-bar i { display: block; height: 100%; background: var(--green); }

/* ---------- shared bars ---------- */
.bar { display: flex; align-items: center; gap: 12px; }
.bar h2 { font-size: 36px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); flex: 1; }
.back {
    width: 48px; height: 48px; flex: none; border: var(--line); border-radius: 16px; background: #fff;
    box-shadow: 0 4px 0 var(--ink); font-size: 30px; font-weight: 900; line-height: 1;
}
.back:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.who { display: flex; gap: 4px; }
.who i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ink); display: inline-block; font-style: normal; font-size: 10px; text-align: center; line-height: 12px; }

.go-btn {
    border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); background: var(--green);
    font-size: 34px; padding: 12px 20px; color: var(--ink);
}
.go-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.go-btn:disabled { filter: grayscale(1); opacity: .6; }
.hint { text-align: center; font-weight: 800; min-height: 1.3em; }

/* ---------- seats ---------- */
.seat-count { display: flex; gap: 10px; justify-content: center; }
.seat-count button {
    width: 64px; height: 64px; border: var(--line); border-radius: 50%; background: #fff; box-shadow: 0 4px 0 var(--ink);
    font-family: 'Bebas Neue', sans-serif; font-size: 34px;
}
.seat-count button.sel { background: var(--ink); color: var(--yellow); }
.seats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seat {
    border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); background: var(--paper);
    padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative;
}
.seat .dot { width: 54px; height: 54px; border-radius: 50%; border: var(--line); display: grid; place-items: center; font-size: 28px; }
.seat .nm { font-family: 'Bebas Neue', sans-serif; font-size: 26px; }
.seat .kind { display: flex; border: 3px solid var(--ink); border-radius: 99px; overflow: hidden; }
.seat .kind button { border: 0; background: #fff; font-weight: 900; font-size: 13px; padding: 6px 12px; }
.seat .kind button.sel { background: var(--ink); color: #fff; }
.tier-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-weight: 900; }
.seg { display: flex; border: var(--line); border-radius: 99px; overflow: hidden; background: #fff; box-shadow: 0 4px 0 var(--ink); }
.seg button { border: 0; background: transparent; padding: 8px 14px; font-weight: 900; }
.seg button.sel { background: var(--pink); color: #fff; }
.seg button:disabled { opacity: .4; }

/* ---------- grid ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; touch-action: pan-x; scrollbar-width: none; }
.chips button {
    flex: none; border: 3px solid var(--ink); border-radius: 99px; background: #fff; padding: 6px 14px;
    font-weight: 900; font-size: 13px; box-shadow: 0 3px 0 var(--ink);
}
.chips button.sel { background: var(--ink); color: var(--yellow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card {
    position: relative; border: var(--line); border-radius: 20px; box-shadow: var(--pop); background: var(--paper);
    padding: 12px 10px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
    transition: transform .08s, box-shadow .08s;
}
.card:active { transform: translateY(5px) rotate(-1deg); box-shadow: 0 1px 0 var(--ink); }
.card .ci { font-size: 40px; line-height: 1.1; }
.card .cn { font-family: 'Bebas Neue', sans-serif; font-size: 22px; line-height: 1; }
.card .cg { font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 99px; color: #fff; }
.card .cs { font-size: 11px; font-weight: 800; opacity: .7; }
.card.blocked { filter: grayscale(.9); opacity: .55; }
.card.blocked .cs { opacity: 1; }
.card .fav {
    position: absolute; top: 4px; right: 4px; width: 34px; height: 34px; border: 0; background: none;
    font-size: 20px; filter: grayscale(1); opacity: .45;
}
.card .fav.on { filter: none; opacity: 1; }
.grid-head { grid-column: 1 / -1; font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; margin-top: 4px; }
.g-reflex { background: var(--pink); } .g-nerve { background: var(--purple); } .g-scramble { background: var(--orange); }
.g-aim { background: var(--blue); } .g-push { background: #ef4444; } .g-race { background: var(--teal); } .g-brain { background: #16a34a; }

/* ---------- wheel ---------- */
/* The wheel screen fills the whole display: the stage takes every pixel
   below the header, the wheel is sized to it in Wheel.js. */
.wheel-screen { max-width: none; overflow: hidden; gap: 8px; }
.wheel-screen > .bar { width: 100%; max-width: 980px; margin: 0 auto; }
.wheel-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font-size: 18px; }
.wheel-meta:empty { display: none; }
.wheel-meta span { background: rgba(255,255,255,.7); border: 3px solid var(--ink); border-radius: 999px; padding: 1px 12px; }
.wheel-stage {
    flex: 1 1 auto !important; min-height: 0; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.wheel-wrap {
    position: relative; width: min(88vw, 440px); aspect-ratio: 1; max-width: 100%; container-type: inline-size;
    transition: width .55s cubic-bezier(.2, 1.3, .4, 1);
}
#wheel { width: 100%; height: 100%; border-radius: 50%; border: 6px solid var(--ink); box-shadow: 0 10px 0 var(--ink); background: #2b1240; display: block; }
.wheel-pin {
    position: absolute; top: -6%; left: 50%; transform: translateX(-50%); transform-origin: 50% 20%; z-index: 2;
    font-size: clamp(34px, 9%, 64px); line-height: 1; color: var(--ink); text-shadow: 0 3px 0 #fff, 0 -2px 0 #fff;
}
.spin-btn {
    position: absolute; inset: 0; margin: auto; width: 26%; height: 26%; border-radius: 50%;
    border: var(--line); background: var(--yellow); box-shadow: 0 5px 0 var(--ink);
    font-size: clamp(18px, 7cqw, 52px);
    animation: spin-beg 1.6s ease-in-out infinite;
}
@keyframes spin-beg { 50% { transform: scale(1.07); } }
.spin-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); animation: none; }
.spin-btn:disabled { opacity: .9; animation: none; }
.landed .spin-btn { font-size: clamp(14px, 6cqw, 30px); }

.wheel-result {
    position: relative; width: min(100%, 620px);
    border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); background: var(--paper);
    padding: 14px 18px 20px; text-align: center;
}
.wheel-result.show { animation: card-in .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes card-in { from { transform: translateY(60px) scale(.6); opacity: 0; } }
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } }
.wr-kicker { font-size: 22px; letter-spacing: .2em; color: var(--pink); }
.show .wr-kicker { animation: pop-in .3s .05s both; }
.wr-icon { font-size: clamp(56px, 16vw, 96px); line-height: 1.1; }
.show .wr-icon { animation: icon-bounce .7s .15s both cubic-bezier(.2, 1.8, .4, 1); }
@keyframes icon-bounce { from { transform: scale(0) rotate(-40deg); } }
.wr-title { font-size: clamp(40px, 12vw, 72px); line-height: .95; color: var(--ink); }
.show .wr-title { animation: slam .45s .3s both cubic-bezier(.2, 1.6, .4, 1); }
@keyframes slam { from { transform: scale(2.4); opacity: 0; } }
.wr-desc { font-size: clamp(14px, 3.6vw, 18px); font-weight: 700; opacity: .8; margin: 6px 0 14px; }
.wr-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wheel-result .go-btn { font-size: clamp(28px, 8vw, 40px); padding: 10px 28px; }
.wheel-result .veto-btn { font-size: clamp(22px, 6vw, 30px); }
.show .wr-btns { animation: pop-in .35s .55s both cubic-bezier(.2, 1.6, .4, 1); }
.veto-btn {
    border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); background: #fff;
    font-size: 26px; padding: 10px 18px;
}
.veto-btn:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.veto-btn:disabled { opacity: .45; }

/* Paper bursting out from behind the card. */
.wheel-confetti { position: absolute; left: 50%; top: 40%; width: 0; height: 0; z-index: -1; pointer-events: none; }
.wheel-confetti i {
    position: absolute; width: 10px; height: 16px; border-radius: 2px; border: 2px solid var(--ink);
    animation: burst 1.3s cubic-bezier(.15, .8, .4, 1) both;
}
@keyframes burst {
    to { transform: translate(var(--dx), calc(var(--dy) + 260px)) rotate(var(--r)); opacity: 0; }
}

/* ---------- party hype ---------- */
.hype { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.hype:empty { display: none; }
.hype div {
    background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 4px 16px;
    font-size: clamp(18px, 5vw, 26px); text-align: center; box-shadow: 0 4px 0 rgba(43,18,64,.35);
    animation: pop-in .4s both cubic-bezier(.2, 1.6, .4, 1);
}
.hype div:nth-child(2) { animation-delay: .15s; } .hype div:nth-child(3) { animation-delay: .3s; }
.hype .final { background: var(--pink); color: #fff; animation: pop-in .4s .3s both, pulse 1s .8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.st-btns { margin-top: 4px; }
.st-pts small.x2 { color: var(--pink); }

/* ---------- toast ---------- */
#toast-host { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 12px); z-index: 2000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.claw-toast {
    border: var(--line); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); background: #fff;
    padding: 10px 16px; font-weight: 900; max-width: calc(100vw - 32px); text-align: center;
    animation: pop-in .3s cubic-bezier(.2, 1.6, .4, 1);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- party: setup ---------- */
.panel { border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); background: var(--paper); padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.panel-h { font-size: 24px; }
.seg.big button { font-size: 16px; padding: 10px 16px; }
.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.picker {
    border: 3px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: 0 4px 0 var(--ink);
    padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.picker .pi { font-size: 30px; }
.picker .pl { font-size: 22px; line-height: 1; }
.picker .ps { font-size: 11px; font-weight: 800; opacity: .7; }
.picker.sel { background: var(--yellow); transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }

/* ---------- party: draft ---------- */
.draft-turn {
    border: var(--line); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); color: #fff;
    -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill;
    font-size: 26px; text-align: center; padding: 10px; transition: background .2s;
}
.draft-grid .card { cursor: pointer; }
.card.banned { filter: grayscale(1); opacity: .45; transform: rotate(-3deg) scale(.95); }
.card.banned::after {
    content: '✕'; position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 90px; font-weight: 900; color: #ef4444; -webkit-text-stroke: 3px var(--ink);
}
.card.picked { background: var(--green); animation: pop-in .4s cubic-bezier(.2, 1.6, .4, 1); }

/* ---------- party: standings ---------- */
.last-game { text-align: center; font-weight: 800; font-size: 16px; background: rgba(255,255,255,.6); border-radius: 14px; padding: 8px; }
.standings { display: flex; flex-direction: column; gap: 10px; }
.st-row {
    display: grid; grid-template-columns: 34px 40px 1fr 64px; grid-template-rows: auto auto; align-items: center; column-gap: 8px;
    border: var(--line); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); background: var(--paper); padding: 8px 12px;
    animation: screen-in .35s cubic-bezier(.2, 1.4, .4, 1) backwards;
}
.st-row:nth-child(2) { animation-delay: .06s; } .st-row:nth-child(3) { animation-delay: .12s; } .st-row:nth-child(4) { animation-delay: .18s; }
.st-place { grid-row: span 2; font-size: 26px; text-align: center; }
.st-dot { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; font-size: 18px; }
.st-name { font-weight: 900; }
.st-bar { grid-column: 3; height: 12px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; overflow: hidden; }
.st-bar i { display: block; height: 100%; transition: width .6s cubic-bezier(.2, 1.2, .4, 1); }
.st-pts { grid-column: 4; grid-row: 1 / span 2; font-size: 34px; text-align: right; line-height: 1; }
.st-pts small { display: block; font-size: 16px; color: #16a34a; }
.up-next {
    border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); background: var(--yellow);
    padding: 12px; display: flex; flex-direction: column; align-items: center; animation: pop-in .4s cubic-bezier(.2, 1.6, .4, 1);
}
.un-k { font-weight: 900; font-size: 12px; letter-spacing: .1em; }
.un-i { font-size: 44px; }
.un-t { font-size: 34px; line-height: 1; }

/* ---------- party: podium ---------- */
.podium-h {
    text-align: center; font-size: clamp(40px, 12vw, 64px); color: #fff; margin-top: 3vh;
    -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink);
    animation: pop-in .6s cubic-bezier(.2, 1.6, .4, 1);
}
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; min-height: 230px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 30%; max-width: 140px; }
.pd-dot { width: 54px; height: 54px; border-radius: 50%; border: var(--line); display: grid; place-items: center; font-size: 26px; animation: wiggle 2s ease-in-out infinite; }
.pd-name { font-weight: 900; font-size: 13px; text-align: center; }
.pd-block {
    width: 100%; border: var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--paper);
    text-align: center; font-size: 30px; line-height: 1.05; padding-top: 8px;
}
.step.p1 .pd-block { height: 150px; background: var(--yellow); }
.step.p2 .pd-block { height: 110px; background: #e5e7eb; }
.step.p3 .pd-block { height: 80px; background: #f4a261; }
.confetti {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        radial-gradient(circle, var(--yellow) 0 5px, transparent 6px),
        radial-gradient(circle, var(--teal) 0 4px, transparent 5px),
        radial-gradient(circle, #fff 0 4px, transparent 5px),
        radial-gradient(circle, var(--purple) 0 5px, transparent 6px);
    background-size: 90px 110px, 130px 90px, 70px 130px, 150px 120px;
    animation: confetti 6s linear infinite;
}
@keyframes confetti { to { background-position: 0 440px, 60px 360px, -40px 520px, 30px 480px; } }
#scr-podium > *:not(.confetti) { position: relative; z-index: 1; }

/* ---------- play together ---------- */
.lead { font-weight: 800; text-align: center; }
.field {
    width: 100%; border: var(--line); border-radius: 14px; padding: 10px 14px; font: inherit; font-weight: 900;
    font-size: 20px; background: #fff; color: var(--ink); user-select: text; -webkit-user-select: text; touch-action: manipulation;
}
.field.code { font-family: 'Bebas Neue', sans-serif; font-size: 34px; letter-spacing: .3em; text-align: center; text-transform: uppercase; }
.join-row { display: flex; gap: 10px; width: 100%; }
.room-code {
    border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); background: var(--yellow);
    display: flex; flex-direction: column; align-items: center; padding: 10px;
}
.rc-k { font-weight: 900; font-size: 12px; letter-spacing: .15em; }
.rc-v { font-size: 64px; letter-spacing: .2em; line-height: 1; }
.net-grid { width: 100%; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.net-card { margin-top: 4vh; }
.bar-note { font-weight: 900; }

/* ---------- minigame chrome, party-themed ----------
   Overrides for claw-core's intro card, countdown and scoreboard, which the
   shared sheet styles dark for HundredBlockDash. Scoped to body.arcade so
   nothing here can leak into the shared sheet's own rules. */
body.arcade #mg-intro-overlay {
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.3) 0 50px, transparent 51px),
        linear-gradient(160deg, #ffd23f 0%, #ff9f1c 35%, #ff5fa2 70%, #8b5cf6 100%);
    color: var(--ink);
}
body.arcade #mg-page-info, body.arcade #mg-page-hold {
    background: var(--paper); border: var(--line); border-radius: 26px; box-shadow: 0 8px 0 var(--ink);
    padding: 22px 18px; margin: 0 4px;
    animation: pop-in .35s cubic-bezier(.2, 1.6, .4, 1);
}
body.arcade .mg-intro-title, body.arcade .orient-name { color: var(--pink); text-shadow: 0 3px 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
body.arcade .mg-intro-desc, body.arcade #mg-intro-desc { color: var(--ink) !important; font-weight: 700; }
body.arcade .orient-subtitle, body.arcade .orient-instructions { color: var(--ink); opacity: .8; font-weight: 700; }
body.arcade .mg-step { background: rgba(43,18,64,.25); height: 6px; }
body.arcade .mg-step.done { background: var(--ink); }
body.arcade .btn-close.primary {
    background: var(--green); color: var(--ink); border: var(--line); border-radius: 18px;
    box-shadow: 0 5px 0 var(--ink); font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: .04em;
}
body.arcade .btn-close.primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
body.arcade #mg-countdown { color: var(--yellow); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 10px 0 var(--ink); }

body.arcade .mg-score-screen { background: linear-gradient(160deg, #ffd23f 0%, #ff9f1c 35%, #ff5fa2 70%, #8b5cf6 100%); }
body.arcade .mg-sc-head { color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); font-size: 40px; }
body.arcade .mg-sc-sub { color: var(--ink); font-weight: 800; opacity: .8; }
body.arcade .mg-sc-card { background: var(--paper); border: var(--line); box-shadow: 0 4px 0 var(--ink); color: var(--ink); }
body.arcade .mg-sc-card.mg-sc-win { background: var(--yellow); border-color: var(--ink); }
body.arcade .mg-sc-rank.mg-sc-first { color: var(--ink); }
body.arcade .mg-sc-rank.mg-sc-second { color: rgba(43,18,64,.55); }
body.arcade .mg-sc-line, body.arcade .mg-sc-dim, body.arcade .mg-sc-dim b { color: var(--ink); }
body.arcade .mg-sc-line b { color: var(--pink); }
body.arcade .mg-sc-btn { background: var(--green); color: var(--ink); border: var(--line); box-shadow: 0 4px 0 var(--ink); font-size: 22px; }
body.arcade .mg-sc-coins { color: var(--ink); }

/* ---------- in-app confirm ---------- */
.confirm-wrap { position: fixed; inset: 0; z-index: 3000; background: rgba(43,18,64,.55); display: grid; place-items: center; padding: 16px; }
.confirm-card {
    max-width: 360px; width: 100%; border: var(--line); border-radius: var(--radius); box-shadow: var(--pop);
    background: var(--paper); color: var(--ink); padding: 20px 16px; text-align: center;
    animation: pop-in .3s cubic-bezier(.2, 1.6, .4, 1);
}
.confirm-q { font-weight: 900; font-size: 18px; margin-bottom: 14px; }
button:focus-visible { outline: 4px solid var(--blue); outline-offset: 2px; }

/* ---------- players ---------- */
.home-row { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* ---------- home: the party up front, the crew below ---------- */
.party-hero {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 2px;
    border: var(--line); border-radius: 28px; box-shadow: var(--pop); color: #fff; padding: 18px 14px 16px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    transition: transform .08s, box-shadow .08s;
}
.party-hero:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.party-hero::before, .party-hero::after { position: absolute; font-size: 20px; opacity: .85; }
.party-hero::before { content: '🎉 🎊 ✨'; top: 8px; left: 12px; }
.party-hero::after  { content: '✨ 🎊 🎉'; bottom: 8px; right: 12px; }
.ph-ico { font-size: 52px; line-height: 1.1; animation: wiggle 2.4s ease-in-out infinite; }
.ph-lbl { font-size: clamp(56px, 17vw, 84px); line-height: .9; -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.ph-sub { font-weight: 800; font-size: 14px; opacity: .95; }
.ph-go {
    margin-top: 8px; font-size: 26px; color: var(--ink); background: var(--yellow);
    border: var(--line); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); padding: 4px 22px;
    animation: spin-beg 1.6s ease-in-out infinite;
}
.home-btns .big-btn .lbl { font-size: 30px; }
.home-btns .b-quick { grid-column: auto; }

.crew { background: rgba(255,255,255,.7); border: var(--line); border-radius: 22px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.crew-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.crew-h > span { font-size: 26px; }
.crew-all { border: 3px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 900; font-size: 13px; padding: 3px 12px; }
.crew-all .n:empty { display: none; }
.crew-faces { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.crew-face { flex: none; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; font-weight: 800; font-size: 12px; }
.crew-face .dot { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 28px; }
.crew-face .dot .face { width: 120%; height: 120%; object-fit: cover; }
.crew-face .nm { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew-face.add .dot { background: #fff; border-style: dashed; }
.crew-empty { font-weight: 800; font-size: 13px; opacity: .75; align-self: center; }

.spin-chip {
    flex: none; border: var(--line); border-radius: 999px; background: var(--yellow); box-shadow: 0 4px 0 var(--ink);
    font-size: 22px; padding: 4px 14px; animation: spin-beg 1.6s ease-in-out infinite;
}
.spin-chip:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.home-row .trophy-btn { font-size: 22px; padding: 10px 12px; gap: 6px; }
.face { width: 100%; height: 100%; object-fit: contain; display: block; }
.face.emoji { display: grid; place-items: center; font-size: 26px; }
.face.sm { width: 44px; height: 44px; flex: none; }
.seat .dot, .pl-card .dot, .pf-head .dot, .pd-dot { position: relative; overflow: visible; }
.seat .dot .face, .pl-card .dot .face, .pf-head .dot .face { border-radius: 50%; }
.bot-tag {
    position: absolute; right: -8px; bottom: -6px; font-style: normal; font-size: 16px; line-height: 1;
    background: #fff; border: 3px solid var(--ink); border-radius: 50%; padding: 2px;
}
.seat-who {
    border: 0; background: none; padding: 0; color: inherit; font: inherit;
    display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; max-width: 100%;
}
.seat .nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-who .swap { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.seat .dot, .pl-card .dot { width: 64px; height: 64px; }
.st-dot .face, .pd-dot .face { border-radius: 50%; }

.pick-card { max-height: calc(100% - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.pick-card .confirm-q { margin: 0; }
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick-row {
    display: flex; align-items: center; gap: 10px; border: 3px solid var(--ink); border-radius: 16px;
    background: #fff; padding: 4px 12px 4px 4px; font-weight: 900; font-size: 17px; text-align: left; color: var(--ink);
}
.pick-row.sel { background: var(--yellow); }
.pick-row .pr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row em { font-style: normal; font-size: 11px; font-weight: 900; color: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 2px 8px; }
.pick-new { display: flex; gap: 8px; }
.pick-new input, .pf-name {
    flex: 1; min-width: 0; border: var(--line); border-radius: 16px; padding: 8px 12px; font-size: 18px; font-weight: 800;
    background: #fff; color: var(--ink);
}
.pick-new .go-btn { font-size: 22px; padding: 6px 14px; }
.pick-card .wr-btns { justify-content: center; }

.player-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pl-card {
    border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); background: #fff; color: var(--ink);
    padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
}
.pl-card:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.pl-card .dot { border-radius: 50%; border: var(--line); display: grid; place-items: center; }
.pl-card b { font-size: 26px; line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-card small { font-size: 12px; font-weight: 800; opacity: .75; }
.pl-add { background: var(--paper); border-style: dashed; }
.pl-add .dot { font-size: 34px; font-weight: 900; background: #fff; }

.pf-head { display: flex; align-items: center; gap: 14px; }
.pf-head .dot.big { width: 96px; height: 96px; flex: none; border-radius: 50%; border: var(--line); display: grid; place-items: center; box-shadow: var(--pop); }
.pf-name { font-size: 32px; padding: 6px 12px; }
.pf-chars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ch-pick {
    border: 3px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); padding: 6px 4px;
    display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 900; font-size: 13px;
}
.ch-pick .face.sm { width: 56px; height: 56px; }
.ch-pick.sel { background: var(--yellow); box-shadow: 0 4px 0 var(--ink); }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf-stat { border: 3px solid var(--ink); border-radius: 16px; background: #fff; text-align: center; padding: 8px 4px; }
.pf-stat b { display: block; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.pf-stat small { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.pf-h { font-size: 26px; margin: 4px 0 0; }
.pf-rivals { display: flex; flex-direction: column; gap: 6px; }
.rv-row { display: flex; align-items: center; gap: 10px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; padding: 8px 12px; font-weight: 900; }
.rv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-rec { font-size: 24px; font-variant-numeric: tabular-nums; }
.rv-rec.up { color: #12a35a; }
.rv-rec.down { color: var(--pink); }

/* ---------- mini golf ---------- */
.golf-hero {
    display: flex; align-items: center; gap: 12px; border: var(--line); border-radius: 22px; box-shadow: var(--pop);
    padding: 10px 14px; color: #fff; text-align: left;
    background: linear-gradient(135deg, #2fae4a 0%, #1f8a3c 60%, #176c30 100%);
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 18px, transparent 18px 36px), linear-gradient(135deg, #2fae4a 0%, #1f8a3c 60%, #176c30 100%);
    transition: transform .08s, box-shadow .08s;
}
.golf-hero:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.gh-ico { font-size: 40px; line-height: 1; animation: wiggle 3s ease-in-out infinite; }
.gh-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.gh-lbl { font-size: 34px; line-height: .95; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.gh-sub { font-weight: 800; font-size: 13px; opacity: .95; }
.gh-go { flex: none; font-size: 20px; color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); padding: 2px 12px; }

.golf-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.golf-course {
    display: flex; gap: 10px; align-items: center; text-align: left; min-width: 0;
    border: var(--line); border-radius: 18px; padding: 10px 12px; box-shadow: 0 4px 0 var(--ink); color: var(--ink);
}
.golf-course.sel { outline: 4px solid var(--yellow); outline-offset: 2px; transform: translateY(-2px); }
.golf-course .gc-ico { font-size: 36px; flex: none; }
.golf-course .gc-body { display: flex; flex-direction: column; min-width: 0; }
.golf-course b { font-size: 24px; line-height: 1; }
.golf-course small { font-weight: 700; font-size: 12px; opacity: .85; }
.golf-course em { font-style: normal; font-weight: 900; font-size: 11px; letter-spacing: .5px; margin-top: 3px; opacity: .9; }
.gc-backyard { background: #8fdc7a; }
.gc-pirate   { background: #7fd3e8; }
.gc-candy    { background: #ffb3d9; }
.gc-space    { background: #2c3170; color: #e0f2fe; }
.gc-space small, .gc-space b, .gc-space em { color: #e0f2fe; }

.golf-last { background: #fffaf0; border: var(--line); border-radius: 18px; padding: 10px 12px; box-shadow: 0 4px 0 var(--ink); }
.golf-last .gl-h { font-size: 18px; margin-bottom: 4px; }
.golf-last .gl-best { color: #e11d48; }
.golf-last .gl-row { display: grid; grid-template-columns: 28px 1fr 40px 40px 48px; gap: 6px; font-weight: 800; padding: 2px 0; border-top: 2px dashed rgba(43,18,64,.15); font-variant-numeric: tabular-nums; }
.golf-last .gl-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.golf-last .under { color: #15803d; }
.golf-last .over { color: #b91c1c; }
.panel .golf-courses { width: 100%; }

/* ---------- solo: beat the high score ---------- */
.so-score { text-align: center; font-size: clamp(56px, 18vw, 88px); line-height: 1; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); animation: pop-in .5s cubic-bezier(.2, 1.6, .4, 1); }
.so-note { text-align: center; font-size: 20px; }
.so-note.hot { color: #e11d48; animation: pop-in .6s cubic-bezier(.2, 1.6, .4, 1) .2s backwards; }
.so-table { background: #fffaf0; border: var(--line); border-radius: 18px; padding: 8px 12px; box-shadow: 0 4px 0 var(--ink); }
.so-table:empty { display: none; }
.so-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 78px; gap: 8px; align-items: center; font-weight: 800; padding: 4px 0; border-top: 2px dashed rgba(43,18,64,.15); font-variant-numeric: tabular-nums; }
.so-row:first-child { border-top: 0; }
.so-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-row small { opacity: .6; text-align: right; }
.so-row.me { background: var(--yellow); border-radius: 10px; padding-inline: 6px; margin-inline: -6px; }
.ghost-btn { border: var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 0 var(--ink); font-size: 24px; padding: 8px 16px; color: var(--ink); }
.ghost-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

/* ---------- golf: trick shots ---------- */
.golf-tricks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.golf-trick { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 4px 8px; text-align: left; border: var(--line); border-radius: 16px; background: #fff; box-shadow: 0 4px 0 var(--ink); padding: 8px 10px; color: var(--ink); }
.golf-trick:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.golf-trick .gt-ico { grid-row: span 2; font-size: 26px; text-align: center; }
.golf-trick b { font-size: 15px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; }
.golf-trick .gt-stars { font-size: 14px; letter-spacing: 1px; color: #f59e0b; }
.golf-trick.done { background: #fff7d6; }
