/* Arcade games added 2026-10-24 (Theia): Tumpuk Seru, Ludo Seru, Potong Buah, Sudoku Seru, Mahjong Seru,
   Pilot Antariksa, Kuis Pintar, Kuis Sains. Same full-screen shell as Gambar Apa Hayo? and Si Ular; light and night. */
.arc { --arc-ink: #fff; --arc-muted: #c9cdf7; --arc-card: rgba(255, 255, 255, .08); --arc-card-2: rgba(255, 255, 255, .14);
  --arc-line: rgba(255, 255, 255, .2); --arc-board: #11163f; --arc-cell: rgba(255, 255, 255, .06); --arc-accent: #fed535;
  position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; box-sizing: border-box;
  display: flex; flex-direction: column; overflow: auto; scrollbar-width: none; color: var(--arc-ink);
  padding: clamp(10px, 1.4vw, 18px) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: linear-gradient(165deg, #21156d 0%, #32118b 40%, #700098 100%); }
:root:not([data-theme="night"]) .arc { --arc-ink: #101d59; --arc-muted: #5b6488; --arc-card: #fff; --arc-card-2: #eef0ff; --arc-line: #dbe2ff;
  --arc-board: #f3f5fd; --arc-cell: #e6e9f7; --arc-accent: #e4009f; background: linear-gradient(165deg, #f7faff 0%, #fff3fb 50%, #edf4ff 100%); }
.arc .arcade__ride { display: none; }
.arc [hidden] { display: none !important; }
.arc .arcade__head { flex-direction: column; justify-content: center; align-items: center; gap: 8px; margin: 0 0 12px; text-align: center; }
.arc .arcade__title { font-size: clamp(22px, 2.6vw, 34px); margin: 0; color: var(--arc-ink); }
:root:not([data-theme="night"]) .arc .gah-topbar { border-bottom-color: #dbe2ff; }
.arc-main { flex: 1 0 auto; display: flex; justify-content: center; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
/* Stacked game screens start under the title (tall content must scroll down, never spill over the title). */
.arc-main[style*="flex-direction:column"] { justify-content: flex-start; gap: 0; }
.arc-card { background: var(--arc-card); border-radius: 16px; padding: 12px 14px; }
:root:not([data-theme="night"]) .arc-card { box-shadow: 0 12px 30px rgba(6, 26, 95, .08), inset 0 0 0 1.5px #e3e8f6; }
.arc-hud { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.arc-stat { background: var(--arc-card); border-radius: 12px; padding: 7px 12px; min-width: 78px; text-align: center; }
:root:not([data-theme="night"]) .arc-stat { box-shadow: inset 0 0 0 1.5px #e3e8f6; }
.arc-stat span { display: block; font-size: 11px; font-weight: 700; color: var(--arc-muted); }
.arc-stat strong { font-family: Unbounded, system-ui, sans-serif; font-size: 18px; font-variant-numeric: tabular-nums; }
.arc .arcade-seg { background: var(--arc-card-2); }
:root:not([data-theme="night"]) .arc .arcade-seg button { color: #5b6488; }
:root:not([data-theme="night"]) .arc .arcade-seg button[aria-pressed="true"] { background: #101d59; color: #fff; }
.arc-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.arc-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 16px; border-radius: inherit; background: rgba(11, 20, 80, .78); color: #fff; z-index: 5; }
.arc-overlay[hidden] { display: none; }
.arc-overlay__title { margin: 0; font-family: Unbounded, system-ui, sans-serif; font-size: clamp(20px, 3.4vw, 30px); color: #fed535; }
.arc-overlay p { margin: 0; max-width: 420px; color: #e6e7ff; line-height: 1.5; }
.arc-pad { display: none; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.arc-pad button { min-width: 54px; height: 50px; border: 0; border-radius: 14px; background: var(--arc-card-2); color: var(--arc-ink); font: inherit; font-size: 18px; font-weight: 800; touch-action: manipulation; cursor: pointer; }
.arc-pad button:active { background: #0066ff; color: #fff; }
@media (hover: none), (max-width: 760px) { .arc-pad { display: flex; } }
.arc .arcade-btn:not(.arcade-btn--primary):not(.arcade-btn--sun) { color: var(--arc-ink); background: var(--arc-card-2); }
.arc-note { margin: 8px 0 0; font-size: 13px; color: var(--arc-muted); text-align: center; }
html.arcade-full-on main:has(.arc) { animation: none !important; transform: none !important; }

/* Tumpuk Seru (Tetris) */
.tt-wrap { display: flex; gap: 14px; align-items: flex-start; justify-content: center; }
.tt-board { position: relative; border-radius: 14px; overflow: hidden; background: var(--arc-board); box-shadow: 0 0 0 3px var(--arc-line); }
.tt-board canvas { display: block; height: min(calc(100dvh - 230px), 640px); width: auto; aspect-ratio: 1 / 2; touch-action: none; }
.tt-side { display: flex; flex-direction: column; gap: 8px; width: 120px; }
.tt-side .arc-stat { min-width: 0; }
.tt-side canvas { display: block; width: 100%; height: auto; }
@media (max-width: 560px) {
  .tt-wrap { gap: 8px; }
  .tt-side { width: 84px; }
  .tt-side .arc-stat strong { font-size: 15px; }
  .tt-board canvas { height: min(calc(100dvh - 300px), 560px); }
}

/* Ludo Seru */
.ld-wrap { display: flex; gap: 14px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.ld-board { position: relative; width: min(92vw, calc(100dvh - 226px), 620px); aspect-ratio: 1; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 0 0 3px var(--arc-line); }
.ld-cell, .ld-yard, .ld-tok, .ld-spot, .ld-center { position: absolute; box-sizing: border-box; }
.ld-cell { box-shadow: inset 0 0 0 .5px #c8cbe0; display: grid; place-items: center; color: #9aa0c8; font-size: 2.2cqw; }
.ld-arrow { width: 74%; height: 74%; display: block; }
.ld-board { container-type: inline-size; }
.ld-tok { padding: 0; cursor: default; width: 4.6%; height: 4.6%; border-radius: 50%; border: .5cqw solid #fff; box-shadow: 0 .4cqw 0 rgba(0, 0, 0, .35); transition: left .3s, top .3s; transform: translate(-50%, -50%); }
.ld-tok.go { cursor: pointer; animation: ld-pulse .8s infinite alternate; }
@keyframes ld-pulse { to { box-shadow: 0 0 0 1cqw #fed535; } }
.ld-side { display: flex; flex-direction: column; gap: 10px; width: min(260px, 92vw); }
.ld-dice { font-size: 64px; line-height: 1; text-align: center; }
.ld-players { display: grid; gap: 6px; }
.ld-players div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.ld-players i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; }
.ld-msg { font-size: 14px; line-height: 1.5; min-height: 42px; }
.ld-setup { display: grid; gap: 10px; max-width: 420px; margin: 0 auto; text-align: center; }
.ld-setup .arc-row button { min-width: 48px; }
/* Potong Buah */
.fr-stage { position: relative; width: min(100%, 980px); height: max(320px, calc(100dvh - 210px)); margin-top: 10px; border-radius: 18px; overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 0 0 3px var(--arc-line); }
.fr-stage canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.fr-stage .arcade-seg { flex-wrap: wrap; justify-content: center; }
/* Kuis Pintar / Kuis Sains */
.qz-main { width: 100%; }
.qz-levels { width: min(100%, 1100px); }
.qz-levels [data-levels] { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.qz-grade { background: var(--arc-card); border-radius: 16px; padding: 4px 12px 12px; }
:root:not([data-theme="night"]) .qz-grade { box-shadow: inset 0 0 0 1.5px #e3e8f6; }
.qz-grade .qz-tile { background: var(--arc-card-2); }
.qz-grade h3 { margin: 10px 0 8px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--arc-muted); }
.qz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.qz-tile { display: grid; gap: 2px; justify-items: center; border: 0; border-radius: 14px; padding: 10px 4px; cursor: pointer; font: inherit; color: var(--arc-ink); background: var(--arc-card); }
:root:not([data-theme="night"]) .qz-tile { box-shadow: inset 0 0 0 1.5px #e3e8f6; }
.qz-tile b { font-family: Unbounded, system-ui, sans-serif; font-size: 20px; }
.qz-tile span { color: #fed535; font-size: 14px; letter-spacing: 1px; }
:root:not([data-theme="night"]) .qz-tile span { color: #e0a400; }
.qz-tile small { font-size: 11px; color: var(--arc-muted); }
.qz-tile.is-done { background: rgba(16, 201, 138, .18); }
.qz-tile.is-locked { opacity: .45; cursor: not-allowed; }
.qz-tile:not(.is-locked):hover { background: var(--arc-card-2); }
.qz-play, .qz-done { width: min(100%, 720px); padding: 18px; }
.qz-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qz-top .gah-exit { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.qz-meta { font-size: 13px; font-weight: 700; color: var(--arc-muted); text-align: center; }
.qz-count { font-family: Unbounded, system-ui, sans-serif; font-size: 14px; }
.qz-bar { height: 8px; border-radius: 99px; background: var(--arc-card-2); overflow: hidden; margin: 10px 0 12px; }
.qz-bar i { display: block; height: 100%; background: linear-gradient(90deg, #01a2fe, #7d2dfc, #fb05c4); transition: width .3s; }
.qz-subject { margin: 0; display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(254, 213, 53, .2); color: var(--arc-accent); }
.qz-q { font-size: clamp(18px, 2.4vw, 24px); line-height: 1.4; margin: 10px 0 14px; color: var(--arc-ink); text-wrap: balance; }
.qz-opts { display: grid; gap: 8px; }
.qz-opt { display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid transparent; border-radius: 14px; padding: 12px 14px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--arc-ink); background: var(--arc-card-2); }
.qz-opt i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: rgba(255, 255, 255, .16); }
:root:not([data-theme="night"]) .qz-opt i { background: #fff; }
.qz-opt:not(:disabled):hover { border-color: #01a2fe; }
.qz-opt.is-right { background: #10c98a; color: #04342c; border-color: #10c98a; }
.qz-opt.is-wrong { background: #fd6c4c; color: #fff; border-color: #fd6c4c; }
.qz-opt:disabled { cursor: default; color: var(--arc-ink); opacity: .75; }
.qz-opt.is-right:disabled, .qz-opt.is-wrong:disabled { opacity: 1; }
.qz-opt.is-right:disabled { color: #04342c; }
.qz-opt.is-wrong:disabled { color: #fff; }
.qz-explain { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.qz-explain.is-right { background: rgba(16, 201, 138, .18); } .qz-explain.is-wrong { background: rgba(253, 108, 76, .16); }
.qz-next { width: 100%; margin-top: 12px; }
.qz-done { text-align: center; display: grid; gap: 8px; justify-items: center; }
.qz-stars { margin: 0; font-size: 36px; color: #fed535; letter-spacing: 4px; }
@media (prefers-reduced-motion: reduce) { .qz-bar i { transition: none; } }

/* Kota Seru 3D (Tuan Putri 2026-10-27) */
.kota { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.kota .gah-topbar { margin-bottom: 8px; padding-bottom: 8px; }
.kota-title { margin: 0; font-size: clamp(16px, 2.2vw, 24px); color: var(--arc-ink); }
.kota-title span { color: #fb05c4; }
.kota-top-right { display: inline-flex; align-items: center; gap: 8px; }
.kota-lite { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.kota-lite[aria-pressed="true"] { background: #fed535 !important; color: #412402 !important; }
.kota-stage { position: relative; flex: 1; min-height: 320px; border-radius: 18px; overflow: hidden; background: #9fdcff; touch-action: none; user-select: none; -webkit-user-select: none; }
.kota-stage > canvas:first-child { display: block; width: 100%; height: 100%; }
.kota-tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.kota-tag { position: absolute; transform: translate(-50%, -100%); display: grid; justify-items: center; gap: 3px; white-space: nowrap; }
.kota-tag b { font-size: 11px; font-weight: 800; color: #fff; background: rgba(11, 20, 80, .72); padding: 2px 8px; border-radius: 99px; }
.kota-tag.me b { background: #0160fe; } .kota-tag.npc b { background: #fe9723; color: #412402; } .kota-tag.warga b { background: rgba(16, 201, 138, .9); color: #04342c; }
.kota-tag i { font-style: normal; font-size: 22px; line-height: 1; }
.kota-mini-btn { position: absolute; right: 10px; top: 10px; padding: 0; border: 0; background: transparent; cursor: zoom-in; display: grid; justify-items: center; }
.kota-stage canvas.kota-mini { display: block; width: 150px; height: 150px; border-radius: 16px; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 16px rgba(11, 20, 80, .25); }
.kota-mini-btn span { margin-top: -14px; font-size: 11px; font-weight: 800; color: #fff; background: #0160fe; border-radius: 99px; padding: 3px 10px; box-shadow: 0 4px 10px rgba(1, 96, 254, .4); }
.kota-mini-btn:hover canvas { box-shadow: 0 0 0 3px #fed535, 0 6px 16px rgba(11, 20, 80, .25); }
.kota-map { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 10px; background: rgba(11, 20, 80, .55); }
.kota-map__card { width: min(1000px, 100%); max-height: 100%; overflow: auto; border-radius: 22px; padding: 14px 16px; color: #3b2a12;
  background: linear-gradient(170deg, #fff6dc, #ffe9c2); box-shadow: 0 0 0 6px #8a5a2b, 0 0 0 9px #fed535, 0 30px 60px rgba(0, 0, 0, .35); }
.kota-map__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.kota-map__head h2 { margin: 0; font-size: clamp(18px, 2.4vw, 26px); color: #5a3a12; }
.kota-map__head .gah-howto__close { position: static; background: #fff; color: #5a3a12; }
.kota-map__body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 14px; align-items: start; }
.kota-map__body canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; cursor: pointer; box-shadow: inset 0 0 0 3px #c9a46a; }
.kota-map__list { display: grid; gap: 10px; }
.kota-map__list section { background: rgba(255, 255, 255, .7); border-radius: 14px; padding: 8px 10px; }
.kota-map__list h3 { margin: 0 0 6px; font-size: 13px; display: flex; align-items: center; gap: 6px; color: #5a3a12; }
.kota-map__list h3 i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.kota-map__list div { display: flex; flex-wrap: wrap; gap: 6px; }
.kota-map__list button { border: 0; font: inherit; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 6px 10px; cursor: pointer; background: #fff; color: #3b2a12; box-shadow: inset 0 0 0 1.5px #e6cf9f; }
.kota-map__list button:hover { background: #fed535; }
.kota-map__tip { margin: 10px 0 0; font-size: 13px; color: #7a5a2a; text-align: center; }
@media (max-width: 760px) { .kota-map__body { grid-template-columns: 1fr; } .kota-mini-btn canvas.kota-mini { width: 100px; height: 100px; } }
.kota-talk { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); }
.kota-talk button { border: 0; font: inherit; font-weight: 800; border-radius: 99px; padding: 10px 16px; cursor: pointer; color: #0b1450; background: #fed535; box-shadow: 0 8px 20px rgba(254, 213, 53, .4); white-space: nowrap; }
/* Analog stick, phones and touch screens (Nyong via Bruce 2026-10-28): bottom-left, clear of the safe area; Ngobrol Seru
   moves to bottom-right so the two never share a touch area, and the stick hides while the chat panel is open. */
.kota-stick { position: absolute; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 5; display: none; width: 124px; height: 124px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22) 0 58%, rgba(255, 255, 255, .34) 59% 100%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 6px 18px rgba(11, 20, 80, .25);
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: grab; }
.kota-stick__knob { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; pointer-events: none;
  background: linear-gradient(160deg, #ffffff, #dfe4ff); box-shadow: 0 4px 10px rgba(11, 20, 80, .35), inset 0 -3px 0 rgba(11, 20, 80, .12); transition: transform .12s ease-out; }
.kota-stick.is-on .kota-stick__knob { transition: none; background: linear-gradient(160deg, #fed535, #fb9c05); }
@media (hover: none), (max-width: 760px) {
  .kota-stick { display: block; }
  .kota-stage .kota-mini-btn canvas.kota-mini { width: 100px; height: 100px; }
  .kota-stage .kota-chat { left: auto; right: max(10px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); justify-items: end; }
  .kota-stage .kota-talk { bottom: 152px; }
  .kota-stage:has(.kota-chat__panel:not([hidden])) .kota-stick { display: none; }
}
@media (orientation: landscape) and (max-height: 500px) { .kota-stick { width: 104px; height: 104px; } .kota-stage .kota-talk { bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .kota-stick__knob { transition: none; } }
.kota-ride-exit { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); border: 0; font: inherit; font-weight: 800; border-radius: 99px; padding: 9px 16px; background: #fd6c4c; color: #fff; cursor: pointer; }
/* Speech bubble over a staff member's (or another player's) head; positioned every frame from the 3D head. */
.kota-bubble { position: absolute; z-index: 5; width: max-content; max-width: min(300px, calc(100% - 20px)); transform: translate(-50%, calc(-100% - 12px));
  background: #fff; color: #101d59; border-radius: 18px; padding: 12px 14px; box-shadow: 0 14px 30px rgba(11, 20, 80, .3); display: grid; gap: 10px; text-align: center; }
.kota-bubble[hidden] { display: none; }
.kota-bubble::after { content: ""; position: absolute; left: var(--tail, 50%); bottom: -9px; width: 18px; height: 18px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 4px 0; }
:root[data-theme="night"] .kota-bubble { background: #1b1460; color: #fff; }
.kota-bubble p { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.45; }
.kota-bubble .opts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.kota-bubble .opts a, .kota-bubble .opts button { border: 0; font: inherit; font-weight: 800; font-size: 13px; border-radius: 99px; padding: 9px 14px; cursor: pointer; text-decoration: none; background: #eef0fb; color: #101d59; }
.kota-bubble .opts .go { background: #0066ff; color: #fff; }
.kota-bubble--hello .opts button { font-size: 20px; padding: 6px 9px; background: #f3f4ff; }
.kota-bubble--hello small { font-size: 12px; font-weight: 800; opacity: .75; }
.kota-tag .say { font-style: normal; font-size: 12px; font-weight: 700; max-width: 180px; white-space: normal; text-align: center; background: #fff; color: #101d59; padding: 4px 9px; border-radius: 12px; box-shadow: 0 4px 10px rgba(11, 20, 80, .2); }
.kota-tag.me b { cursor: pointer; } .kota-tag.peer b { background: #7d2dfc; }
.kota-toast { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 6; background: #fed535; color: #412402; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 99px; box-shadow: 0 8px 20px rgba(11, 20, 80, .25); }
.kota-toast[hidden] { display: none; }
/* Ngobrol Seru inside the town: the open global room, never private. */
.kota-chat { position: absolute; left: 10px; bottom: 10px; z-index: 4; display: grid; gap: 6px; justify-items: start; width: min(340px, calc(100% - 20px)); }
.kota-chat__toggle { border: 0; font: inherit; font-weight: 800; font-size: 13px; border-radius: 99px; padding: 8px 14px; cursor: pointer; color: #fff; background: linear-gradient(90deg, #7d2dfc, #fb05c4); box-shadow: 0 8px 18px rgba(125, 45, 252, .35); }
.kota-chat__toggle b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; border-radius: 99px; background: #fed535; color: #412402; font-size: 11px; }
.kota-chat__toggle b[hidden] { display: none; }
.kota-chat__panel { order: -1; width: 100%; background: rgba(255, 255, 255, .96); color: #101d59; border-radius: 16px; padding: 10px; box-shadow: 0 14px 30px rgba(11, 20, 80, .3); display: grid; gap: 8px; }
.kota-chat__panel[hidden] { display: none; }
:root[data-theme="night"] .kota-chat__panel { background: rgba(27, 20, 96, .96); color: #fff; }
.kota-chat__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .kota-chat__head small { font-size: 11px; opacity: .7; }
.kota-chat__log { list-style: none; margin: 0; padding: 0; max-height: 190px; overflow-y: auto; display: grid; gap: 5px; font-size: 13px; line-height: 1.35; }
.kota-chat__log b { font-weight: 800; margin-right: 4px; color: #7d2dfc; } :root[data-theme="night"] .kota-chat__log b { color: #fed535; }
.kota-chat__form { display: flex; gap: 6px; } .kota-chat__form[hidden] { display: none; }
.kota-chat__form input { flex: 1; min-width: 0; font: inherit; font-size: 13px; border: 1.5px solid #d9dcf3; border-radius: 99px; padding: 8px 12px; }
.kota-chat__form button { border: 0; font: inherit; font-weight: 800; font-size: 13px; border-radius: 99px; padding: 8px 12px; background: #0066ff; color: #fff; cursor: pointer; }
.kota-chat__note { margin: 0; font-size: 11px; opacity: .75; } .kota-chat__note a { color: inherit; font-weight: 800; }
/* Character editor */
.kota-edit { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; padding: 10px; background: rgba(11, 20, 80, .5); }
.kota-edit[hidden] { display: none; }
.kota-edit__card { width: min(440px, 100%); max-height: 100%; overflow: auto; border-radius: 20px; padding: 14px 16px; background: #fff; color: #101d59; display: grid; gap: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
:root[data-theme="night"] .kota-edit__card { background: #1b1460; color: #fff; }
.kota-edit__card .kota-map__head h2, .kota-edit__card .gah-howto__close { color: inherit; }
.kota-edit__name { display: grid; gap: 4px; font-weight: 800; font-size: 13px; }
.kota-edit__name input { font: inherit; font-size: 15px; font-weight: 700; border: 1.5px solid #d9dcf3; border-radius: 12px; padding: 9px 12px; }
.kota-edit__hint { margin: 0; font-size: 12px; opacity: .75; }
.kota-edit__rows { display: grid; gap: 8px; }
.kota-fade { position: absolute; inset: 0; z-index: 7; pointer-events: none; background: #fff; opacity: 0; transition: opacity .2s ease; }
.kota-fade.on { opacity: 1; }
:root[data-theme="night"] .kota-fade { background: #0b1450; }
.kota-edit__group { margin: 6px 0 0; padding-top: 8px; border-top: 1.5px solid rgba(125, 45, 252, .18); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7d2dfc; }
:root[data-theme="night"] .kota-edit__group { color: #fed535; border-color: rgba(255, 255, 255, .18); }
.kota-edit__card .gah-howto__close { background: #eef0fb; color: #101d59; }
:root[data-theme="night"] .kota-edit__card .gah-howto__close { background: rgba(255, 255, 255, .16); color: #fff; }
.kota-edit__row { display: grid; gap: 4px; } .kota-edit__row > span { font-size: 12px; font-weight: 800; }
.kota-edit__row div { display: flex; flex-wrap: wrap; gap: 6px; }
.kota-edit__row button { border: 0; font: inherit; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 6px 10px; cursor: pointer; background: #eef0fb; color: #101d59; }
.kota-edit__row button.sw { width: 30px; height: 30px; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12); }
.kota-edit__row button[aria-pressed="true"] { outline: 3px solid #0066ff; outline-offset: 2px; }
.kota-edit__error { margin: 0; color: #e0244a; font-size: 13px; font-weight: 700; } .kota-edit__error[hidden] { display: none; }
.kota-edit__actions { display: flex; justify-content: flex-end; gap: 8px; }
.kota-map__head > span { display: inline-flex; gap: 8px; align-items: center; }
.kota-map__help { border: 0; font: inherit; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 7px 12px; background: #fff; color: #5a3a12; cursor: pointer; }
.kota-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-weight: 800; color: #0b1450; background: #b6ddf6; }
.kota-loading[hidden] { display: none; }

/* Pilot Antariksa: same stage as Potong Buah, with a grab cursor (drag to steer with a mouse). */
.sp-stage canvas { cursor: grab; }

/* Sudoku Seru */
.sd-board-wrap { position: relative; margin-top: 10px; border-radius: 12px; }
/* Top clipped (Nyong via Bruce 2026-10-27): everything except the board measures ~445px on desktop (topbar, title, levels,
   stats, number pad, tools) and ~420px on phones, so the old 380px reserve left the page ~60px taller than a 768px screen
   and reaching the pad scrolled the title away. The reserve now matches, so board, pad and title fit together. */
.arc[data-arcade="sudoku"] { --sd: max(28px, min(calc((100vw - 32px) / 9), calc((100dvh - 452px) / 9), 56px)); }
@media (max-width: 560px) {
  .arc[data-arcade="sudoku"] { --sd: max(28px, min(calc((100vw - 32px) / 9), calc((100dvh - 424px) / 9), 56px)); }
  /* Phones: levels + Papan baru and the four tools each stay on one row instead of wrapping into two. */
  .arc[data-arcade="sudoku"] .arc-row { flex-wrap: nowrap; gap: 6px; }
  .arc[data-arcade="sudoku"] .arc-row .arcade-btn { padding-inline: 10px; font-size: 13px; white-space: nowrap; }
  .arc[data-arcade="sudoku"] .arcade-seg button { padding-inline: 9px; font-size: 13px; }
  .arc[data-arcade="sudoku"] .arc-main > .arc-row:last-child { width: 100%; max-width: 504px; gap: 4px; }
  .arc[data-arcade="sudoku"] .arc-main > .arc-row:last-child .arcade-btn { flex: 1 1 auto; min-width: 0; padding-inline: 4px; font-size: 12px; }
}
.sd-board { display: grid; grid-template-columns: repeat(9, var(--sd)); grid-auto-rows: var(--sd);
  border: 3px solid var(--arc-ink); border-radius: 12px; overflow: hidden; background: var(--arc-card); }
.sd-board.is-loading { opacity: .4; }
.sd-cell { border: 0 solid var(--arc-ink); border-right-width: 1px; border-bottom-width: 1px; border-right-color: var(--arc-line); border-bottom-color: var(--arc-line);
  background: transparent; color: #0066ff; font: 700 calc(var(--sd) * .52) / 1 'Plus Jakarta Sans', system-ui, sans-serif; padding: 0; cursor: pointer; display: grid; place-items: center; }
.sd-cell[style*="border-right-width:3px"] { border-right-color: var(--arc-ink); }
.sd-cell[style*="border-bottom-width:3px"] { border-bottom-color: var(--arc-ink); }
:root[data-theme="night"] .sd-cell { color: #7cc4ff; }
.sd-cell.is-given { color: var(--arc-ink); font-weight: 800; }
.sd-cell.is-peer { background: rgba(1, 162, 254, .1); }
.sd-cell.is-same { background: rgba(254, 213, 53, .3); }
.sd-cell.is-sel { background: rgba(1, 162, 254, .32); }
.sd-cell.is-wrong { color: #e2553a !important; background: rgba(253, 108, 76, .15); }
.sd-cell:focus-visible { outline: 3px solid #fed535; outline-offset: -3px; }
.sd-notes { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; height: 100%; padding: 2px; box-sizing: border-box; }
.sd-notes i { font-style: normal; font-size: calc(var(--sd) * .22); font-weight: 700; color: var(--arc-muted); display: grid; place-items: center; }
.sd-pad { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; width: min(100%, calc(var(--sd, 50px) * 9), 504px); margin-top: 10px; }
.sd-pad button { border: 0; border-radius: 12px; padding: 6px 0; background: var(--arc-card-2); color: var(--arc-ink); cursor: pointer; display: grid; font: inherit; }
.sd-pad b { font-size: 22px; } .sd-pad small { font-size: 11px; color: var(--arc-muted); }
.sd-pad button:active { background: #0066ff; color: #fff; }
.arc [data-notes][aria-pressed="true"] { background: #fed535 !important; color: #412402 !important; }
@media (max-width: 560px) { .sd-pad { gap: 4px; } .sd-pad b { font-size: 18px; } }
/* Mahjong Seru */
.mj-stage { position: relative; width: min(100%, 1000px); height: max(300px, calc(100dvh - 300px)); margin-top: 10px; display: grid; place-items: center; }
/* Own stacking context: tile z-index (up to ~500) stays inside the board, so the round overlay always sits on top (Nyong via Bruce 2026-10-26). */
.mj-board { position: relative; z-index: 0; isolation: isolate; }
.mj-stage > .arc-overlay { z-index: 10; }
.mj-tile { position: absolute; padding: 0; border: 0; border-radius: 9px; cursor: pointer; display: grid; place-items: center; line-height: 1;
  background: linear-gradient(180deg, #fffdf6, #f3ead6); box-shadow: 3px 4px 0 #c9b98f, 4px 6px 10px rgba(0, 0, 0, .25); transition: transform .12s; }
.mj-tile.is-locked { filter: brightness(.78) saturate(.85); cursor: not-allowed; }
.mj-tile.is-sel { transform: translateY(-5px); box-shadow: 0 0 0 3px #fed535, 3px 4px 0 #c9b98f, 4px 10px 14px rgba(0, 0, 0, .3); }
.mj-tile.is-hint { box-shadow: 0 0 0 3px #10c98a, 3px 4px 0 #c9b98f; }
.mj-tile.is-shake { animation: mj-shake .25s; }
@keyframes mj-shake { 25% { margin-left: -3px; } 75% { margin-left: 3px; } }
.mj-tile:focus-visible { outline: 3px solid #fed535; outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .mj-tile { transition: none; } .mj-tile.is-shake { animation: none; } }
@media (prefers-reduced-motion: reduce) { .ld-tok { transition: none; } .ld-tok.go { animation: none; box-shadow: 0 0 0 1cqw #fed535; } }

/* Ludo revisions (Nyong via Bruce 2026-10-25/26): stacked pawns scale down, rolling dice, colour choice, result popup. */
.ld-tok { transform: translate(-50%, -50%) scale(var(--ld-scale, 1)); transition: left .14s linear, top .14s linear, transform .2s; }
.ld-dice.is-rolling { animation: ld-roll .14s linear infinite; }
@keyframes ld-roll { from { transform: rotate(0deg) scale(1.05); } to { transform: rotate(360deg) scale(1.05); } }
.ld-colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ld-colors button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 2px solid transparent; border-radius: 14px;
  background: rgba(255, 255, 255, .08); color: inherit; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
:root:not([data-theme="night"]) .ld-colors button { background: #eef0ff; }
.ld-colors i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.ld-colors button[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 2px var(--c) inset; }
.ld-colors button[data-order]:not([data-order=""])::after { content: attr(data-order); position: absolute; top: 4px; right: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c); color: #fff; font-size: 11px; line-height: 18px; }
.ld-colors button:focus-visible { outline: 3px solid #fed535; outline-offset: 2px; }
.ld-result { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; background: rgba(7, 11, 46, .62); }
.ld-result[hidden] { display: none; }
.ld-result__card { width: min(380px, 100%); text-align: center; padding: 26px 22px 22px; border-radius: 22px; color: #fff;
  background: linear-gradient(165deg, #2a1d84, #4a138f); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); animation: ld-pop .35s ease-out; }
.ld-result__card.is-win { background: linear-gradient(165deg, #3b1fb0, #b8137f); }
.ld-result__badge { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.ld-result__title { margin: 0 0 6px; font-family: Unbounded, system-ui, sans-serif; font-size: clamp(22px, 5vw, 28px); color: #fed535; }
.ld-result__text { margin: 0 0 16px; line-height: 1.5; color: #e6e7ff; }
.ld-result__actions { display: flex; flex-direction: column; gap: 8px; }
@keyframes ld-pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ld-dice.is-rolling, .ld-result__card { animation: none; } .ld-tok { transition: none; } }

/* Ludo pawns, stars and hops (Tuan Putri 2026-10-27, reference image): glossy pawn shape in the player colour instead of a
   flat disc; track stars about 70% larger; each square of a move is a small hop. */
.ld-tok { background: transparent !important; border: 0; border-radius: 0; box-shadow: none; width: 6.4%; height: 10.6%; opacity: 1 !important;
  transform: translate(-50%, -80%) scale(var(--ld-scale, 1)); transform-origin: 50% 92%; transition: left .2s ease, top .2s ease, transform .2s; }
.ld-tok svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 .25cqw .2cqw rgba(0, 0, 0, .25)); }
.ld-tok.go { animation: none; }
.ld-tok.go svg { animation: ld-ready .7s ease-in-out infinite alternate; filter: drop-shadow(0 0 .9cqw #fed535) drop-shadow(0 0 .4cqw #fed535); }
@keyframes ld-ready { to { transform: translateY(-10%); } }
.ld-tok.hop svg { animation: ld-hop .24s ease-out; }
@keyframes ld-hop { 0% { transform: translateY(0) scale(1, 1); } 40% { transform: translateY(-42%) scale(.96, 1.04); } 85% { transform: translateY(0) scale(1.06, .92); } 100% { transform: translateY(0) scale(1, 1); } }
.ld-star { font-size: 3.75cqw; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .ld-tok.go svg, .ld-tok.hop svg { animation: none; } }

/* Ludo top clipped (Nyong via Bruce 2026-10-27): on phones the dice sat under the board and on short laptop screens the
   side column was taller than the board, so every roll scrolled the board's top away. Phones: a compact one-row dice
   card plus the move message right under the board, sized so both fit on screen; short screens: a smaller dice. */
@media (max-width: 760px) {
  .ld-board { width: min(92vw, max(260px, calc(100dvh - 334px)), 620px); }
  .ld-side { width: min(100%, 92vw, 620px); gap: 8px; }
  .ld-side > .arc-card:first-child { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "dice turn" "dice roll"; align-items: center; gap: 4px 12px; padding: 10px 12px; text-align: left !important; }
  .ld-side > .arc-card:first-child [data-turn] { grid-area: turn; }
  .ld-side > .arc-card:first-child .ld-dice { grid-area: dice; font-size: 46px; }
  .ld-side > .arc-card:first-child [data-roll] { grid-area: roll; }
  .ld-side .ld-msg { order: 1; min-height: 0; padding: 8px 12px; }
  .ld-side > .arc-card:nth-child(2), .ld-side > [data-new] { order: 2; }
}
@media (min-width: 761px) and (max-height: 700px) { .ld-dice { font-size: 44px; } .ld-side { gap: 8px; } .ld-msg { min-height: 0; } .ld-side .arc-card { padding: 10px 14px; } }
/* Ludo pawn heads clipped on the top row (Nyong via Bruce 2026-10-28): the tall pawn stands ~80% above its square and
   hops higher, so it pokes out of the board's top edge. Only the squares are clipped to the rounded board now; the board
   keeps a little room above it for the heads. */
.ld-board { overflow: visible; margin-top: clamp(14px, 2.4vw, 26px); }
.ld-face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
