/* Arena Game (SD/SMP): memakai warna aplikasi, tombol besar, tanpa pustaka luar. */
.gm-who p { margin: .25rem 0; }
.gm-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.gm-tab { padding: .55rem 1rem; border-radius: 999px; background: #eef2f7; color: inherit; text-decoration: none; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.gm-tab.on { background: var(--primary, #ff7a1a); color: #fff; }
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin: 1rem 0; }
.gm-card { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; border-radius: 18px; background: #fff; border: 2px solid #e6e8ee; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s, border-color .12s; }
.gm-card:hover, .gm-card:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 18px #0001; border-color: var(--primary, #ff7a1a); }
.gm-ico { font-size: 2.4rem; line-height: 1; }
.gm-desc { font-size: .9rem; opacity: .75; }
.gm-stars { font-size: 1.3rem; letter-spacing: 2px; color: #d9d9d9; } .gm-stars i { font-style: normal; } .gm-stars .on { color: #ffb703; }
.gm-badge { font-size: .85rem; font-weight: 700; background: #fff3d6; border-radius: 999px; padding: .2rem .7rem; align-self: flex-start; }
.gm-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gm-head h1 { margin: 0; font-size: 1.5rem; }
.gm-back { font-weight: 800; text-decoration: none; padding: .5rem 1rem; background: #eef2f7; border-radius: 999px; color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.gm-stage { max-width: 760px; margin: 1rem auto; }
.gm-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-weight: 800; padding: .5rem .25rem; flex-wrap: wrap; }
.gm-q { text-align: center; }
.gm-prompt { font-size: 1.25rem; font-weight: 800; margin: .25rem 0 .75rem; }
.gm-vis { margin: .5rem 0 1rem; display: flex; justify-content: center; }
.gm-eq { font-size: 2.1rem; font-weight: 800; letter-spacing: 1px; line-height: 1.3; word-break: break-word; }
.gm-clock { width: min(220px, 60vw); height: auto; }
.gm-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gm-choice { min-height: 64px; padding: .6rem .8rem; font: inherit; font-weight: 800; font-size: 1.15rem; border: 2px solid #d7dbe4; border-radius: 16px; background: #fff; cursor: pointer; box-shadow: 0 4px 0 #0002; color: inherit; }
.gm-choice:hover:not(:disabled) { background: #fff9e0; transform: translateY(-1px); }
.gm-choice:focus-visible, .gm-tile:focus-visible, .gm-slot:focus-visible, .gm-card-m:focus-visible { outline: 4px solid #8a5cf6; outline-offset: 2px; }
.gm-choice.right { background: #c9f7dd; border-color: #2bb673; }
.gm-choice.wrong { background: #ffd5d6; border-color: #ff5a5f; }
.gm-fb { min-height: 3rem; margin-top: .75rem; font-weight: 800; font-size: 1.05rem; }
.gm-fb.ok { color: #12804a; } .gm-fb.no { color: #b3262b; }
.gm-hint-list { text-align: left; max-width: 480px; margin: 0 auto .75rem; font-size: 1.05rem; }
.gm-track { background: #fff; border-radius: 16px; padding: .5rem .75rem; margin-bottom: .75rem; border: 2px solid #e6e8ee; }
.gm-lane { position: relative; height: 44px; border-bottom: 2px dashed #d7dbe4; }
.gm-lane:last-child { border-bottom: 0; }
.gm-lane-name { position: absolute; left: 0; top: 2px; font-size: .75rem; font-weight: 700; opacity: .6; }
.gm-car { position: absolute; top: 8px; font-size: 1.7rem; left: 0; transition: left .5s ease; }
.gm-flag { position: absolute; right: 0; top: 8px; font-size: 1.5rem; }
.gm-hand { text-align: center; padding: 2rem 1rem; background: #fff; border-radius: 18px; border: 2px solid #e6e8ee; }
.gm-result { text-align: center; }
.gm-bigstars { font-size: 3.5rem; letter-spacing: 6px; color: #d9d9d9; } .gm-bigstars i { font-style: normal; } .gm-bigstars .on { color: #ffb703; }
.gm-score { font-size: 1.3rem; font-weight: 800; }
.gm-mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.gm-card-m { min-height: 84px; border-radius: 14px; border: 2px solid #d7dbe4; background: linear-gradient(135deg, #8a5cf6, #2f8bff); color: #fff; font: inherit; font-weight: 800; font-size: 1.15rem; cursor: pointer; padding: .3rem; }
.gm-card-m.open, .gm-card-m.done { background: #fff; color: #3a2a14; }
.gm-card-m.done { background: #c9f7dd; border-color: #2bb673; }
.gm-slots { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; margin: 1rem 0; }
.gm-slot { width: 48px; height: 56px; border-radius: 12px; border: 3px dashed #b8bfcc; background: #fff; font: inherit; font-weight: 800; font-size: 1.5rem; cursor: pointer; }
.gm-slot.full { border-style: solid; border-color: var(--primary, #ff7a1a); }
.gm-tiles { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.gm-tile { width: 52px; height: 56px; border-radius: 12px; border: 0; background: #2f8bff; color: #fff; font: inherit; font-weight: 800; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 0 #1b63c4; }
.gm-tile:disabled { opacity: .25; box-shadow: none; }
.shake { animation: gm-shake .4s; }
@keyframes gm-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@media (max-width: 520px) { .gm-choices { grid-template-columns: 1fr; } .gm-mem { grid-template-columns: repeat(3, 1fr); } .gm-eq { font-size: 1.7rem; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001s !important; transition: none !important; } }
.bt-code { font-size: 1.6rem; letter-spacing: 4px; font-family: ui-monospace, monospace; }
.bt-board { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.bt-row { padding: .5rem .7rem; border: 2px solid #e6e8ee; border-radius: 12px; background: #fff; }
.bt-row.me { border-color: #8a5cf6; background: #f6f1ff; }
.bt-top { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.bt-rank { font-weight: 800; min-width: 1.6rem; }
.bt-name { font-weight: 700; flex: 1; }
.bt-state { font-size: .8rem; opacity: .7; }
.bt-bar { height: 10px; background: #e6e8ee; border-radius: 6px; margin-top: .35rem; overflow: hidden; }
.bt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f8bff, #8a5cf6); transition: width .4s; }
.ps-box{max-width:520px;margin:0 auto;text-align:center}.ps-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.ps-time{font-weight:700;font-size:1.3em;color:var(--accent)}
.ps-key,.ps-sub{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:8px 0}.ps-sym{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:48px;padding:0 8px;border:2px solid var(--line);border-radius:8px;font-size:1.5em;font-weight:700;background:#fff;color:#111}
.ps-key .ps-sym{background:#eef5ff;border-color:var(--accent)}.ps-ans,.ps-pad{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:14px}
.ps-btn{min-width:54px;height:54px;font-size:1.5em;font-weight:700;border:2px solid var(--line);border-radius:10px;background:#fff;color:#111;cursor:pointer}.ps-btn:active{background:#dbe8ff}
.ps-col{display:flex;flex-direction:column;align-items:center;gap:4px;margin:10px 0}.ps-d{width:56px;height:40px;line-height:40px;font-size:1.6em;font-weight:700;border:1px solid var(--line);border-radius:6px;background:#fff;color:#111}.ps-d.on{background:#fff3b0;border-color:#d6a800}
.ps-pad{max-width:360px;margin-left:auto;margin-right:auto}
.gl-fgrid{display:inline-grid;gap:2px;align-items:center;justify-items:center;margin:.5rem auto}
.gl-cell{width:clamp(40px,11vw,56px);height:clamp(40px,11vw,56px);font:inherit;font-weight:800;font-size:1.4rem;border:2px solid #cbd5e1;border-radius:10px;background:#fff;cursor:pointer;color:inherit}
.gl-cell.fix{background:#e2e8f0}
.gl-cell.sel{outline:4px solid #8a5cf6;outline-offset:1px}
.gl-cell.bad{background:#ffd5d6;border-color:#ff5a5f}
.gl-rel{font-weight:800;font-size:1.1rem;color:#475569;min-width:.8rem;text-align:center}
.gl-pad{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;margin:.75rem 0}
.gl-pad .btn{min-width:44px;min-height:44px}
.gl-people{display:grid;gap:.6rem;text-align:left;margin:.5rem 0}
.gl-person{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;padding:.6rem .8rem;border:2px solid #e6e8ee;border-radius:14px}
.gl-say{flex:1 1 220px}
.gl-toggle{display:flex;gap:.4rem}
.gl-lgrid{display:inline-grid;gap:6px;margin:.5rem auto;width:min(100%,340px)}
.gl-lamp{aspect-ratio:1;border-radius:14px;border:2px solid #334155;background:#1e293b;font-size:1.6rem;cursor:pointer}
.gl-lamp.on{background:#fde047;border-color:#ca8a04}
.coba-list{display:grid;gap:.75rem;margin:1rem 0}
.coba-item{display:flex;flex-direction:column;gap:.25rem;text-decoration:none;color:inherit}
.coba-item:hover{border-color:#2563eb}
