/* ===========================================================================
   Arcade kit — the shared page chrome for Rocko's board games (Backgammon,
   Checkers, Four in a Row): kids'-site carnival look on top of styles.css +
   landing.css (festive stage, .btn paw-pop buttons). Opt in with
   <body class="arc rk-land …">. Layout: a bunting header (title + difficulty +
   round pills), a white message card, optional action buttons (Take/Drop,
   Rematch…), the board (#wrap canvas) and a row of big action buttons — on
   computers the message/actions/buttons move to a column beside the board.
   Also: the shared dialogs (arcade.js RockoUI), the friend-game dialogs
   (RockoFriends: pup picker, code, QR, Text it) and full-screen mode.
   Everything you press is a big DOM button, so no control depends on hitting
   a small spot on the board. Each game's JS sizes the board (fit).
   =========================================================================== */
.arc-main { max-width: 760px; margin: 0 auto; padding: 10px clamp(10px, 3vw, 20px) 28px;
  display: flex; flex-direction: column; align-items: center; }

/* ---- header: a compact carnival panel with bunting ---- */
.arc-head { width: 100%; position: relative; overflow: hidden; color: #fff;
  margin: 6px 0 10px; padding: 34px 18px 14px; border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 40px rgba(10,4,30,.45), inset 0 1px 0 rgba(255,255,255,.08);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='40' viewBox='0 0 240 40'%3E%3Cpath d='M0 4 Q30 28 60 4 Q90 28 120 4 Q150 28 180 4 Q210 28 240 4' fill='none' stroke='%23F5D06B' stroke-width='2'/%3E%3Ccircle cx='30' cy='23' r='6' fill='%23FF3D57'/%3E%3Ccircle cx='90' cy='23' r='6' fill='%23FFC93C'/%3E%3Ccircle cx='150' cy='23' r='6' fill='%231FD3C3'/%3E%3Ccircle cx='210' cy='23' r='6' fill='%23FF5FA8'/%3E%3C/svg%3E"),
    radial-gradient(120% 130% at 85% 0%, rgba(126,200,255,.22), transparent 55%),
    linear-gradient(180deg, #1E2740 0%, #161D2B 100%);
  background-repeat: repeat-x, no-repeat, no-repeat;
  background-position: top, center, center;
  background-size: 240px 40px, cover, cover;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.arc-title { display: flex; align-items: center; gap: 12px; }
.arc-title-badge { width: 64px; height: 64px; flex: 0 0 auto;
  filter: drop-shadow(0 0 18px rgba(255,201,60,.35)) drop-shadow(0 8px 14px rgba(0,0,0,.4)); transform: rotate(-4deg); }
.arc-head h1 { color: #fff; font-size: clamp(1.6rem, 5.4vw, 2.3rem); text-shadow: 0 3px 0 rgba(0,0,0,.2); text-align: left; }
.arc-sub { margin: 2px 0 0; color: #E7DBFF; font-weight: 700; font-size: 1rem; text-align: left; }
.arc-sub span { color: #FFC93C; text-shadow: 0 0 16px rgba(255,201,60,.5); }
.arc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }

/* difficulty: a pill group, gold when picked */
.arc-diff { display: inline-flex; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 4px; gap: 3px; }
.arc-diff button { border: 0; background: transparent; cursor: pointer; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: #E7DBFF; }
.arc-diff button[aria-pressed="true"] { background: #FFC93C; color: #241454; box-shadow: 0 3px 0 #C98A12; }

/* small round pills for Help / Stats / New / Sound / Resign */
.arc-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.arc-pill { display: inline-flex; align-items: center; gap: .35em; min-height: 42px; padding: 0 13px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.85); background: #fff; color: #241454; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; box-shadow: 0 4px 0 rgba(0,0,0,.18);
  transition: transform .08s ease; }
.arc-pill:hover { transform: translateY(-2px); }
.arc-pill:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.arc-pill[aria-pressed="true"] { background: #FFC93C; border-color: #FFC93C; }
.arc-pill:disabled { opacity: .45; cursor: default; transform: none; }

/* ---- Rocko's message: a white speech card ---- */
.arc-stage { width: 100%; display: flex; flex-direction: column; align-items: center; }
.arc-msg { width: 100%; max-width: 620px; min-height: 1.5em; margin: 2px 0 8px; padding: 10px 16px 10px 44px; position: relative;
  background: #fff; color: #241454; border-radius: 18px; box-shadow: 0 8px 22px rgba(10,4,30,.35);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-align: left; line-height: 1.3; }
.arc-msg::before { content: "🐾"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; }
.arc-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 2px 0 12px; }
.arc-actions[hidden] { display: none; }

.arc-board { width: 100%; margin: 2px auto 0; }
.arc-board canvas { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 18px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 40px rgba(255,201,60,.25), 0 18px 44px rgba(10,4,30,.55);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; }

/* ---- action buttons (paw-pop .btn from styles.css) ---- */
.arc-tools { display: flex; justify-content: center; gap: 10px; width: 100%; max-width: 620px; margin: 16px auto 0; }
.arc-tools[hidden] { display: none; }
.arc-tools .btn { flex: 1 1 0; justify-content: center; min-height: 54px; padding: 0 12px; font-size: 1.05rem; }
.arc-tools .btn:disabled, .arc-actions .btn:disabled { opacity: .45; cursor: default; pointer-events: none; }
.arc-tools .btn.ghost:disabled { background: rgba(255,255,255,.75); }
.arc-tools .btn.ready { animation: arc-nudge 1.6s ease-in-out infinite; }
.arc-tools .btn.ghost.ready { background: #FFC93C; color: #241454; border-color: transparent; box-shadow: 0 6px 0 #C98A12, 0 12px 22px rgba(201,138,18,.34); }
@keyframes arc-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .arc-tools .btn.ready { animation: none; } }

/* ---- dialogs: bright cards on a dimmed stage ---- */
.arc-modal-ov { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(24,10,64,.62); opacity: 0; transition: opacity .15s ease; }
.arc-modal-ov[hidden] { display: none; }
.arc-modal-ov.open { opacity: 1; }
.arc-modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: #211E1A;
  border-radius: 24px; border: 4px solid #FFC93C; box-shadow: 0 24px 60px rgba(8,3,24,.55);
  transform: translateY(10px) scale(.97); transition: transform .18s ease; }
.arc-modal-ov.open .arc-modal { transform: none; }
.arc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px 22px; }
.arc-modal-head h2 { font-size: 1.5rem; color: #241454; }
.arc-modal-x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #F2EFE9; color: #241454; font-size: 1.6rem; cursor: pointer; }
.arc-modal-x:hover { background: #FFE7A3; }
.arc-modal-body { padding: 6px 22px 22px; }
.arc-modal-body p { margin: 0 0 .85em; font-size: 1.04rem; }
.arc-modal-body h3 { font-size: 1.1rem; margin: 1.1em 0 .35em; color: #241454; }
.arc-modal-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 18px; }
.arc-fine { color: #6C665E; font-size: .92rem; }
.arc-badge { display: block; width: 112px; height: 112px; margin: 0 auto 10px; }
.arc-stats { display: flex; justify-content: space-around; text-align: center; margin: 4px 0 16px; }
.arc-stat-n { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: #241454; }
.arc-stat-l { color: #6C665E; font-size: .82rem; font-weight: 800; }

.arc-choices { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.arc-choices button { text-align: left; padding: 12px 14px; border-radius: 16px; cursor: pointer;
  border: 3px solid #E8E3DA; background: #fff; color: #211E1A; font: inherit; }
.arc-choices button b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: #241454; }
.arc-choices button span { color: #6C665E; font-weight: 600; font-size: .92rem; }
.arc-choices button[aria-pressed="true"] { border-color: #FFC93C; background: #FFF6DA; }

.arc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- computers: title + controls in one row, controls column beside the board ---- */
@media (min-width: 980px) {
  .arc-main { max-width: 1320px; padding-bottom: 14px; }
  .arc-head { flex-direction: row; justify-content: space-between; text-align: left; padding: 30px 20px 12px; margin: 4px 0 12px; }
  .arc-bar { flex-wrap: nowrap; }
  .arc-controls { flex-wrap: nowrap; }
  .arc-stage { display: grid; grid-template-columns: auto 250px; grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "board msg" "board actions" "board tools" "board ."; column-gap: 22px;
    justify-content: center; align-items: start; }
  .arc-board { grid-area: board; margin: 0; }
  .arc-msg { grid-area: msg; margin: 0 0 14px; font-size: 1.15rem; min-height: 4.2em; display: flex; align-items: center; }
  .arc-actions { grid-area: actions; flex-direction: column; align-items: stretch; margin: 0 0 14px; }
  .arc-actions .btn { justify-content: center; }
  .arc-tools { grid-area: tools; flex-direction: column; gap: 14px; margin: 0; max-width: none; }
  .arc-tools .btn { flex: 0 0 auto; min-height: 60px; font-size: 1.12rem; justify-content: flex-start; padding: 0 22px; }
}

/* fit() adds these when the title row would overflow: first icon-only pills,
   then (if still too tight) let the row wrap — nothing ever gets clipped. */
.arc-compact .arc-controls .lbl { display: none; }
.arc-compact .arc-pill { font-size: 1.1rem; padding: 0 12px; }
.arc-wrap .arc-head, .arc-wrap .arc-bar, .arc-wrap .arc-controls { flex-wrap: wrap; justify-content: center; }
/* ---- friend games ---- */
/* Friend is the headline button: Rocko red so the yellow 🤝 hands stand out (gold-on-gold was hard to see) */
.arc-pill-friend { background: #F04E37; border-color: #fff; color: #fff; box-shadow: 0 4px 0 #B8351F; }
.arc-pill-friend:active { box-shadow: 0 1px 0 #B8351F; }
.arc-friend-ico { width: 30px; height: 30px; object-fit: contain; display: block; }   /* Rocko + his best friend = "add a friend" */
.arc-pups { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.arc-pups button { border: 2px solid #E8E3DA; background: #fff; color: #241454; border-radius: 999px; padding: 7px 12px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.arc-pups button[aria-pressed="true"] { background: #FFC93C; border-color: #C98A12; }
.arc-friend-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 8px; }
.arc-code-in { flex: 1 1 140px; min-width: 0; height: 52px; border: 3px solid #E8E3DA; border-radius: 14px; padding: 0 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .12em; text-transform: uppercase; color: #241454; }
.arc-code-in:focus { outline: none; border-color: #FFC93C; }
.arc-timer-line { text-align: center; font-weight: 800; margin: 6px 0 10px; }
.arc-timer { font-variant-numeric: tabular-nums; font-size: 1.15em; padding: 2px 10px; border-radius: 999px; background: #FFF3C4; color: #6B4A00; }
.arc-timer.arc-timer-low { background: #FFE9E6; color: #9C2A1C; }
.arc-safe-link { color: inherit; font-weight: 800; white-space: nowrap; }
.arc-err { background: #FFE9E6; color: #9C2A1C; border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.arc-share { text-align: center; }
.arc-share-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 11vw, 3.2rem); letter-spacing: .08em;
  color: #241454; background: #FFF6DA; border: 3px dashed #FFC93C; border-radius: 18px; padding: 6px 12px; margin: 4px auto 12px; display: inline-block; }
.arc-qr { width: min(220px, 60vw); margin: 0 auto 8px; }
.arc-qr svg { display: block; width: 100%; height: auto; border-radius: 10px; }
.arc-link { width: 100%; border: 2px solid #E8E3DA; border-radius: 10px; padding: 8px 10px; font-size: .9rem; color: #6C665E; margin: 4px 0 6px; }
.arc-wait { font-weight: 800; }
.arc-share-actions { justify-content: center; }

/* ---- full screen (⤢): just the message, the board and the buttons ---- */
.arc-exitfull { display: none; }
body.arc-full .site-nav, body.arc-full .site-foot, body.arc-full .arc-head { display: none !important; }
body.arc-full .arc-main { padding-top: 6px; padding-bottom: 6px; }
body.arc-full .arc-msg { padding-right: 58px; }
body.arc-full .arc-exitfull { display: inline-flex; align-items: center; justify-content: center; position: fixed; top: 10px; right: 10px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: #FFC93C; color: #241454;
  font-size: 1.3rem; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px rgba(8,3,24,.45); }
.arc-pill#btn-full .ico { font-weight: 800; }

/* The site nav is sticky (and tall — two rows of pills on laptops, a stack on
   phones). On this page it scrolls away instead, and the page opens scrolled to
   the game so the board gets the whole screen height; the nav is one scroll up. */
body.arc .site-nav { position: static; }

/* The site's floating "All games" button would sit on the board / buttons here;
   the nav's Games link covers it on this page. */
body.arc .lobby-fab { display: none; }

/* ---- board games: LOCK the play screen to the viewport ----
   The <main> is a fixed 100dvh column (landing.css). Keep the header, message
   and tool row at their natural size so they can't collapse and clip the top bar
   (a fixed-height flex column will otherwise shrink an overflow:hidden child to
   nothing); each game's fit() then shrinks the BOARD to fill what's left — so the
   whole game fits with no page scroll and nothing cut off. */
body.arc.rk-playing > main.arc-main { justify-content: flex-start; padding-top: 6px; padding-bottom: 8px; }
body.arc.rk-playing .arc-head,
body.arc.rk-playing .arc-msg,
body.arc.rk-playing .arc-actions,
body.arc.rk-playing .arc-tools { flex: 0 0 auto; }

/* ---- phones: board edge to edge, compact header ---- */
@media (max-width: 760px) {
  .arc-main { padding-left: 6px; padding-right: 6px; }
  .arc-head { padding: 30px 10px 10px; border-radius: 18px; }
  .arc-board canvas { border-radius: 10px; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 12px 30px rgba(10,4,30,.5); }
}
@media (max-width: 460px) {
  .arc-title-badge { width: 48px; height: 48px; }
  .arc-controls .lbl { display: none; }
  .arc-pill { padding: 0 12px; font-size: 1.1rem; }
  .arc-diff button { padding: 0 13px; font-size: .95rem; min-height: 38px; }
  .arc-msg { font-size: .98rem; padding: 8px 12px 8px 38px; min-height: calc(2 * 1.3em + 16px); display: flex; align-items: center; }
  .arc-tools { gap: 6px; margin-top: 12px; }
  .arc-tools .btn { flex-direction: column; gap: 0; padding: 0 4px; min-height: 58px; font-size: .9rem; }
}

/* ---- phones: the bunting panel collapses to a slim control strip so the BOARD gets the
   height (Ron, 2026-11-09 — maximize the screen on mobile + one cohesive look). The slim
   top bar already carries the brand, so the big title + bunting drop away here. ---- */
@media (max-width: 560px) {
  .arc-head { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "badge diff" "ctl ctl";
    align-items: center; gap: 6px; padding: 6px 8px; margin: 2px 0 6px; border-radius: 14px;
    background: linear-gradient(180deg, #1E2740, #161D2B); border: 2px solid var(--arc-navy);
    box-shadow: 0 4px 0 var(--arc-navy); }
  .arc-bar { display: contents; }
  .arc-title { grid-area: badge; gap: 0; min-width: 0; }
  .arc-title > div { display: none; }                 /* hide the big H1 + subtitle — the slim bar names the game */
  .arc-title-badge { width: 34px; height: 34px; margin: 0; transform: none; }
  .arc-diff { grid-area: diff; justify-self: end; padding: 3px; }
  .arc-controls { grid-area: ctl; justify-content: space-between; gap: 4px; }
  .arc-diff button { padding: 0 10px; min-height: 34px; font-size: .85rem; }
  .arc-pill { min-height: 38px; padding: 0 12px; flex: 1 1 0; justify-content: center; }
}

/* ---- Rocko buddy (Checkers / Four in a Row): a DOM Rocko beside the message ---- */
.arc-msg.has-buddy { padding-left: 86px; min-height: 76px; display: flex; align-items: center; margin-top: 30px; }
.arc-msg.has-buddy::before { content: none; }
.arc-buddy { position: absolute; left: 6px; bottom: 2px; width: 74px; height: 86px; pointer-events: none; }
.arc-buddy img { position: absolute; left: 0; bottom: 0; width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.arc-buddy-say { position: absolute; left: 50px; top: -30px; white-space: nowrap; background: #fff; color: #241454; border: 3px solid #241454;
  border-radius: 14px; padding: 2px 10px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.arc-buddy-say[hidden] { display: none; }
.arc-buddy.hop img { animation: arc-hop .5s ease-out 2; }
.arc-buddy.bounce img { animation: arc-hop .45s ease-out 4; }
.arc-buddy.shake img { animation: arc-shake .5s ease-in-out 1; }
.arc-buddy.wiggle img { animation: arc-wiggle .6s ease-in-out 2; }
@keyframes arc-hop { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-16px); } }
@keyframes arc-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px) rotate(-4deg); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
@keyframes arc-wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 70% { transform: rotate(8deg); } }
@media (min-width: 980px) {
  .arc-msg.has-buddy { min-height: 110px; padding-left: 16px; padding-top: 96px; flex-direction: column; align-items: flex-start; }
  .arc-buddy { left: 50%; transform: translateX(-50%); top: -12px; bottom: auto; width: 100px; height: 100px; }
  .arc-buddy img { width: 100px; height: 100px; }
  .arc-buddy-say { left: 70px; top: 0; }
}

/* ===========================================================================
   FORCE LANDSCAPE on phones — a board game plays best held the long way, so the
   board can be big and the menu / pip counts sit beside it (not stacked above &
   below, squeezing it). A phone in portrait sees a friendly "turn your phone"
   screen (with an escape hatch); in landscape the board fills the height and the
   message / actions / tools go in a side rail.
   =========================================================================== */

/* ---- portrait phone: the "turn me sideways" screen ---- */
.arc-rotate { display: none; }
.arc-rotate {
  position: fixed; inset: 0; z-index: 400; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 26px;
  background: radial-gradient(120% 90% at 50% 0%, #4A2A9A, #2C1466 72%); color: #fff; }
.arc-rotate .arc-rot-phone { font-size: 3.4rem; line-height: 1; animation: arc-rot 2.6s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes arc-rot { 0%, 46% { transform: rotate(0); } 66%, 92% { transform: rotate(90deg); } 100% { transform: rotate(90deg); } }
.arc-rotate h2 { color: #fff; font-size: 1.5rem; margin: 0; }
.arc-rotate p { color: #E7DBFF; max-width: 24ch; margin: 0; font-weight: 600; }
.arc-rotate img { width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); }
.arc-rotate .arc-rot-ok { margin-top: 4px; background: rgba(255,255,255,.14); color: #fff; border: 2px solid rgba(255,255,255,.5);
  border-radius: 999px; padding: 9px 18px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; cursor: pointer; }
.arc-rotate .arc-rot-ok:hover { background: rgba(255,255,255,.24); }
@media (prefers-reduced-motion: reduce) { .arc-rotate .arc-rot-phone { animation: none; } }

/* Portrait phones PLAY (Ron, 2026-11-09: maximize the screen on mobile — no "turn your
   phone sideways" wall). A square-ish board fits portrait fine; the slim header below keeps
   the chrome out of the board's way. The .arc-rotate element stays inert (display:none). */
.arc-rotate { display: none !important; }

/* ---- landscape phone (short viewport): board beside a side rail ---- */
@media (orientation: landscape) and (max-height: 600px) {
  body.arc.rk-playing > main.arc-main { padding: 4px 8px 6px; }
  /* slim one-row header so the board gets the height */
  .arc-head { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between;
    gap: 8px; padding: 5px 10px; margin: 0 0 6px; border-radius: 12px; background-size: 160px 22px, cover, cover; }
  .arc-bar { flex-wrap: nowrap; gap: 6px; }
  .arc-title { gap: 6px; min-width: 0; }
  .arc-title-badge { width: 28px; height: 28px; }
  .arc-head h1 { font-size: 1rem; white-space: nowrap; }
  .arc-sub { display: none; }
  .arc-diff { padding: 3px; }
  .arc-diff button { min-height: 30px; padding: 0 8px; font-size: .8rem; }
  .arc-controls { flex-wrap: nowrap; gap: 4px; }
  .arc-controls .lbl { display: none; }
  .arc-pill { min-height: 32px; padding: 0 9px; font-size: 1rem; }
  /* board on the left filling the height; message / actions / tools in a rail */
  .arc-stage { display: grid; grid-template-columns: auto minmax(140px, 32vw);
    grid-template-areas: "board msg" "board actions" "board tools" "board ."; column-gap: 10px;
    align-items: start; justify-content: center; }
  .arc-board { grid-area: board; margin: 0; }
  .arc-msg { grid-area: msg; margin: 0 0 6px; font-size: .95rem; min-height: 0; }
  .arc-msg.has-buddy { margin-top: 0; padding-left: 64px; min-height: 54px; }
  .arc-buddy { width: 54px; height: 62px; }
  .arc-buddy img { width: 54px; height: 54px; }
  .arc-actions { grid-area: actions; flex-direction: column; align-items: stretch; margin: 0 0 6px; }
  .arc-tools { grid-area: tools; flex-direction: column; gap: 8px; margin: 0; max-width: none; }
  .arc-tools .btn { min-height: 42px; font-size: .95rem; justify-content: center; }
}

/* ---- win confetti (Arcade.confetti) ---- */
.arc-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.arc-confetti span { position: absolute; top: -40px; animation: arc-fall linear forwards; }
@keyframes arc-fall { to { transform: translateY(110vh) rotate(var(--spin, 360deg)); } }

/* Rocko board-game control icons — custom line set, tinted by button color (light+dark). */
.ico[data-ic]{width:1.25em;height:1.25em;display:inline-block;background-color:currentColor;-webkit-mask:var(--bic) center/contain no-repeat;mask:var(--bic) center/contain no-repeat}
.ico[data-ic="help"]{--bic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279.2%27/%3E%3Cpath%20d%3D%27M9.4%209.3a2.7%202.7%200%201%201%203.5%202.6c-.8.4-1.4%201-1.4%201.9%27/%3E%3Cpath%20d%3D%27M12%2016.5h.01%27/%3E%3C/svg%3E")}
.ico[data-ic="two"]{--bic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%278%27%20cy%3D%277.5%27%20r%3D%273%27/%3E%3Ccircle%20cx%3D%2716.5%27%20cy%3D%278.5%27%20r%3D%272.6%27/%3E%3Cpath%20d%3D%27M2.5%2020c.5-3.8%202.7-5.8%205.5-5.8s5%202%205.5%205.8%27/%3E%3Cpath%20d%3D%27M14.5%2014.6c.7-.3%201.3-.4%202-.4%202.6%200%204.5%201.9%205%205.2%27/%3E%3C/svg%3E")}
.ico[data-ic="stats"]{--bic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%2020h16%27/%3E%3Cpath%20d%3D%27M7.5%2020v-6%27/%3E%3Cpath%20d%3D%27M12%2020V8.5%27/%3E%3Cpath%20d%3D%27M16.5%2020v-9.5%27/%3E%3C/svg%3E")}
.ico[data-ic="bulb"]{--bic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9.5%2018.5h5%27/%3E%3Cpath%20d%3D%27M10.6%2021.5h2.8%27/%3E%3Cpath%20d%3D%27M12%202.8a6%206%200%200%201%203.7%2010.8c-.6.5-1%201.1-1.1%201.9H9.4c-.1-.8-.5-1.4-1.1-1.9A6%206%200%200%201%2012%202.8Z%27/%3E%3C/svg%3E")}
.ico[data-ic="refresh"]{--bic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M20.5%2012a8.5%208.5%200%201%201-2.4-5.9%27/%3E%3Cpath%20d%3D%27M20.6%204.2v4.4H16%27/%3E%3C/svg%3E")}
.ico[data-ic="undo"]{--bic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%207l-4%204.5%204%204.5%27/%3E%3Cpath%20d%3D%27M5%2011.5h8.6a4.5%204.5%200%200%201%200%209H10%27/%3E%3C/svg%3E")}
.ico[data-ic="sound"]{--bic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%209.5h3l4-3.2v11.4l-4-3.2H4Z%27/%3E%3Cpath%20d%3D%27M14.5%209.3a4%204%200%200%201%200%205.4%27/%3E%3Cpath%20d%3D%27M17%206.8a7.5%207.5%200%200%201%200%2010.4%27/%3E%3C/svg%3E")}
.ico[data-ic="mute"]{--bic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%209.5h3l4-3.2v11.4l-4-3.2H4Z%27/%3E%3Cpath%20d%3D%27M15.5%209.3l5%205.4%27/%3E%3Cpath%20d%3D%27M20.5%209.3l-5%205.4%27/%3E%3C/svg%3E")}
.ico[data-ic="full"]{--bic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4.5%209V5.5a1%201%200%200%201%201-1H9%27/%3E%3Cpath%20d%3D%27M15%204.5h3.5a1%201%200%200%201%201%201V9%27/%3E%3Cpath%20d%3D%27M19.5%2015v3.5a1%201%200%200%201-1%201H15%27/%3E%3Cpath%20d%3D%27M9%2019.5H5.5a1%201%200%200%201-1-1V15%27/%3E%3C/svg%3E")}
.ico[data-ic="flag"]{--bic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%2021V4%27/%3E%3Cpath%20d%3D%27M6%204.6h11l-2.2%203.2L17%2011H6%27/%3E%3C/svg%3E")}
.ico[data-ic="dice"]{--bic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%274.5%27%20y%3D%274.5%27%20width%3D%2715%27%20height%3D%2715%27%20rx%3D%273.2%27/%3E%3Ccircle%20cx%3D%279%27%20cy%3D%279%27%20r%3D%271.25%27%20fill%3D%27%23000%27/%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%271.25%27%20fill%3D%27%23000%27/%3E%3Ccircle%20cx%3D%2715%27%20cy%3D%2715%27%20r%3D%271.25%27%20fill%3D%27%23000%27/%3E%3C/svg%3E")}
.ico[data-ic="bone"]{--bic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6.6%209.8a1.9%201.9%200%201%200%20.2%203.6%27/%3E%3Cpath%20d%3D%27M17.4%209.8a1.9%201.9%200%201%201-.2%203.6%27/%3E%3Cpath%20d%3D%27M6.6%2011h10.8%27/%3E%3Cpath%20d%3D%27M6.8%2012.6h10.4%27/%3E%3C/svg%3E")}
.ico[data-ic="jump"]{--bic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4.5%2016.5c3%200%203.2-8%207.5-8s4.5%208%207.5%208%27/%3E%3Cpath%20d%3D%27M16.3%207.3l3.2%201.2-1%203.2%27/%3E%3C/svg%3E")}

/* 2 Players on one screen: no Rocko difficulty to pick */
.arc-local .arc-diff { display: none; }

/* ---- 2 Players: the turn banner (two colour-coded plates) + a matching glow around the board ---- */
.arc-turnbar { display: flex; gap: 12px; justify-content: center; align-items: stretch; width: 100%; max-width: 900px; margin: 0 auto 14px; padding: 4px 8px 12px; box-sizing: border-box; }
.arc-tb-p { --ac: #FFC93C; --ink: #3B2A08; --lab: #A5660A; flex: 1 1 0; max-width: 360px; min-width: 0; position: relative; display: flex; align-items: center; gap: 12px;
  padding: 9px 16px 9px 12px; border-radius: 18px; border: 3px solid rgba(0,0,0,.18); background: #FFF4DC; color: var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,.18);
  transition: transform .25s, opacity .25s, box-shadow .25s, filter .25s, border-color .25s; }
.arc-tb-p[data-i="1"] { --ac: #7EC8FF; --ink: #fff; --lab: #BFE3FF; background: linear-gradient(180deg, #26385E, #161D2B); }
.arc-tb-tok { width: 44px; height: 44px; flex: 0 0 auto; }
.arc-tb-txt { min-width: 0; text-align: left; }
.arc-tb-name { font-weight: 800; font-size: 1.2rem; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-tb-lbl { margin-top: 2px; font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lab); }
.arc-tb-p.wait, .arc-tb-p.lose { opacity: .5; filter: saturate(.55); transform: scale(.95); }
.arc-tb-p.on { border-color: var(--ac); transform: scale(1.05); box-shadow: 0 0 0 3px var(--ac), 0 0 26px var(--ac), 0 5px 0 rgba(0,0,0,.25); animation: arc-tb-pop .5s ease-out; }
.arc-tb-p.on::after { content: ""; position: absolute; left: 50%; bottom: -15px; margin-left: -9px; border: 9px solid transparent; border-top-color: var(--ac); border-bottom: 0; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.arc-tb-p.on .arc-tb-lbl { animation: arc-tb-blink 1.1s ease-in-out infinite; }
.arc-tb-p.win { border-color: var(--ac); transform: scale(1.06); box-shadow: 0 0 0 3px var(--ac), 0 0 34px var(--ac), 0 5px 0 rgba(0,0,0,.25); animation: arc-tb-pop .6s ease-out; }
.arc-tb-p.win .arc-tb-lbl { font-size: .85rem; color: #E8590C; }
.arc-tb-p[data-i="1"].win .arc-tb-lbl { color: #FFD76A; }
@keyframes arc-tb-pop { 0% { transform: scale(.9); } 55% { transform: scale(1.1); } 100% { transform: scale(1.05); } }
@keyframes arc-tb-blink { 50% { opacity: .55; } }
body.arc-tp0 .arc-board { border-radius: 22px; box-shadow: 0 0 0 7px #FFC93C, 0 0 44px 10px rgba(255,201,60,.8); transition: box-shadow .3s; }
body.arc-tp1 .arc-board { border-radius: 22px; box-shadow: 0 0 0 7px #7EC8FF, 0 0 44px 10px rgba(126,200,255,.85); transition: box-shadow .3s; }
@media (max-width: 560px) { .arc-turnbar { gap: 8px; padding: 2px 6px 12px; } .arc-tb-p { padding: 7px 10px 7px 8px; gap: 8px; } .arc-tb-tok { width: 34px; height: 34px; } .arc-tb-name { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { .arc-tb-p, .arc-tb-p.on, .arc-tb-p.win, .arc-tb-p.on .arc-tb-lbl { animation: none; transition: none; } }

/* ===========================================================================
   Arcade skin (2026-10-30): the board games wear the Rocko's World arcade look — navy panels, cream cards,
   chunky navy-edged 3D buttons, Lilita One titles, gold/red accents — the same family as the homepage, the
   Ambassador pages and the arcade games. Scenes (picnic, fence, backyard) and the boards are untouched.
   =========================================================================== */
body.arc { --arc-navy: #0B1020; --arc-ink: #1B2333; --arc-cream: #FFF8EC; --arc-gold: #FFC93C; --arc-red: #D83A34; --arc-sky: #7EC8FF;
  --arc-display: "Lilita One", "Fredoka", ui-rounded, system-ui, sans-serif; }
.arc-head { border: 3px solid var(--arc-navy); box-shadow: 0 6px 0 var(--arc-navy), 0 18px 40px rgba(10,16,32,.45); }
.arc-head h1 { font-family: var(--arc-display); font-weight: 400; letter-spacing: .01em; text-shadow: 0 3px 0 rgba(0,0,0,.3); }
.arc-sub { color: #9FB0C9; font-family: var(--font-body); font-weight: 800; }
.arc-sub span { color: var(--arc-gold); text-shadow: none; }
.arc-diff { background: rgba(255,255,255,.08); border: 2px solid rgba(255,201,60,.35); }
.arc-diff button { font-family: var(--arc-display); font-weight: 400; letter-spacing: .02em; color: #C9D4E6; }
.arc-diff button[aria-pressed="true"] { background: var(--arc-gold); color: var(--arc-ink); box-shadow: 0 3px 0 #B98206; }
.arc-pill { background: var(--arc-cream); color: var(--arc-ink); border: 3px solid var(--arc-navy); box-shadow: 0 4px 0 var(--arc-navy);
  font-family: var(--arc-display); font-weight: 400; letter-spacing: .02em; }
.arc-pill:active { box-shadow: 0 1px 0 var(--arc-navy); }
.arc-pill[aria-pressed="true"] { background: var(--arc-gold); border-color: var(--arc-navy); }
.arc-pill-friend { background: var(--arc-red); border-color: var(--arc-navy); color: #fff; box-shadow: 0 4px 0 var(--arc-navy); }
.arc-pill-friend:active { box-shadow: 0 1px 0 var(--arc-navy); }
.arc-msg { background: var(--arc-cream); color: var(--arc-ink); border: 3px solid var(--arc-navy); box-shadow: 0 5px 0 var(--arc-navy);
  font-family: var(--font-body); font-weight: 800; }
.arc-msg::before { content: ""; width: 1.35rem; height: 1.35rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23d83a34'%3E%3Cellipse cx='12' cy='16.5' rx='5.2' ry='4.2'/%3E%3Cellipse cx='5.2' cy='11' rx='2.1' ry='2.8'/%3E%3Cellipse cx='9.4' cy='6.2' rx='2.1' ry='2.9'/%3E%3Cellipse cx='14.6' cy='6.2' rx='2.1' ry='2.9'/%3E%3Cellipse cx='18.8' cy='11' rx='2.1' ry='2.8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; font-size: 0; }
.arc-board canvas { box-shadow: 0 0 0 4px var(--arc-cream), 0 0 0 7px var(--arc-navy), 0 18px 44px rgba(10,16,32,.55); }
.arc-tools .btn, .arc-actions .btn, .arc-modal .btn { font-family: var(--arc-display); font-weight: 400; letter-spacing: .02em;
  border: 3px solid var(--arc-navy); background: var(--arc-gold); color: var(--arc-ink); box-shadow: 0 5px 0 var(--arc-navy); }
.arc-tools .btn:active, .arc-actions .btn:active, .arc-modal .btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--arc-navy); }
.arc-tools .btn.ghost, .arc-actions .btn.ghost, .arc-modal .btn.ghost { background: var(--arc-cream); color: var(--arc-ink); border-color: var(--arc-navy); }
.arc-tools .btn.ghost.ready { background: var(--arc-gold); border-color: var(--arc-navy); box-shadow: 0 5px 0 var(--arc-navy), 0 0 24px rgba(255,201,60,.55); }
.arc-tools .btn.ghost:disabled { background: rgba(255,248,236,.7); }
.arc-modal { background: var(--arc-cream); color: var(--arc-ink); border: 4px solid var(--arc-navy); border-radius: 22px; box-shadow: 0 8px 0 var(--arc-navy), 0 24px 60px rgba(0,0,0,.45); }
.arc-modal-head h2 { font-family: var(--arc-display); font-weight: 400; color: var(--arc-ink); }
.arc-modal-body h3 { font-family: var(--arc-display); font-weight: 400; color: var(--arc-red); letter-spacing: .02em; }
.arc-modal-x { background: var(--arc-navy); color: #fff; }
.arc-modal-x:hover { background: var(--arc-red); }
.arc-pups button { border: 2px solid var(--arc-navy); color: var(--arc-ink); font-weight: 800; }
.arc-pups button[aria-pressed="true"] { background: var(--arc-gold); border-color: var(--arc-navy); }
.arc-stat-n { font-family: var(--arc-display); font-weight: 400; color: var(--arc-red); }

/* ===========================================================================
   PHONES (portrait): give the BOARD the whole screen (Ron, 2026-11-10 — "board
   as big as possible on mobile"). The board already fills the width, but it sat
   ~6px off-centre (a gap on the left, bleeding off the right) and ~190px of
   chrome above it shrank a square board on shorter phones / when the browser's
   URL bar eats height. Here we bleed the board edge-to-edge and centre it, then
   shave the chrome above & below so the board reaches its full size and sits
   higher with less dead space. Landscape phones keep their own side-rail layout.
   =========================================================================== */
@media (max-width: 760px) and (orientation: portrait) {
  /* reclaim the side gutters: the board spans the full viewport width, centred */
  body.arc.rk-playing > main.arc-main { padding-left: 0; padding-right: 0; padding-top: 4px; padding-bottom: 6px; }
  body.arc.rk-playing .arc-board { width: 100%; margin: 0 auto; }
  /* message, turn bar + buttons keep a small inset so only the board touches the edge */
  body.arc.rk-playing .arc-msg,
  body.arc.rk-playing .arc-actions,
  body.arc.rk-playing .arc-turnbar,
  body.arc.rk-playing .arc-tools { margin-left: 8px; margin-right: 8px; }
  /* slimmer message card so the board starts higher */
  body.arc.rk-playing .arc-msg { margin-top: 6px; margin-bottom: 6px; }
  body.arc.rk-playing .arc-msg.has-buddy { margin-top: 10px; min-height: 58px; padding-left: 68px; }
  body.arc.rk-playing .arc-buddy { width: 56px; height: 64px; }
  body.arc.rk-playing .arc-buddy img { width: 56px; height: 56px; }
  body.arc.rk-playing .arc-tools { margin-top: 8px; }
  /* full-bleed board: a hard ring would clip at the screen edge, so lean on a
     soft drop shadow + rounded corners instead */
  body.arc.rk-playing .arc-board canvas { box-shadow: 0 9px 24px rgba(10,16,32,.5); border-radius: 12px; }
}
