.c8-goals{margin:.5rem 0 .75rem;padding:.7rem .8rem;border-radius:14px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 1px 3px #0001}
.gx-head{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}
.gx-rank-name{font-weight:800;font-size:1rem;color:#1e293b}
.gx-streak{font:600 .72rem 'JetBrains Mono',monospace;color:#b45309}
.gx-bar{height:6px;border-radius:9px;background:#e2e8f0;overflow:hidden;margin:.35rem 0 .2rem}
.gx-bar i{display:block;height:100%;background:#2563EB;border-radius:9px;transition:width .5s ease}
.gx-xp{font:500 .7rem 'JetBrains Mono',monospace;color:#64748b;margin-bottom:.4rem}
.gx-list{list-style:none;display:grid;gap:.3rem;margin:0 0 .5rem}
.gx-list li{display:flex;align-items:center;gap:.5rem;font-size:.8rem;color:#334155;min-height:28px}
.gx-list li span:nth-child(2){flex:1}
.gx-list em{font:600 .72rem 'JetBrains Mono',monospace;font-style:normal;color:#64748b}
.gx-tick{flex:0 0 20px;height:20px;border-radius:6px;border:2px solid #94a3b8;display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:800;color:#fff}
.gx-list li.ok .gx-tick{background:#16a34a;border-color:#16a34a}
.gx-list li.ok span:nth-child(2){color:#64748b;text-decoration:line-through}
.gx-title{font-size:.7rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.05em;margin:.3rem 0 .2rem}
.gx-sw{display:flex;gap:.4rem;flex-wrap:wrap}
.gx-chip{width:44px;height:44px;min-width:44px;border-radius:12px;border:3px solid #fff;background:var(--sw,#115c36);box-shadow:0 0 0 1.5px #94a3b8;cursor:pointer;font-size:1rem;color:#fff;touch-action:manipulation;-webkit-tap-highlight-color:transparent;padding:0}
.gx-chip.on{box-shadow:0 0 0 3px #f59e0b}
.gx-chip:disabled{cursor:default;opacity:.55}
.gx-chip:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.c8-coach{text-align:center;font-size:.85rem;font-weight:700;color:#1e3a8a;background:#dbeafe;border-radius:10px;padding:.45rem .7rem;margin:.5rem 0 0}
.c8-coach[hidden]{display:none}
.c8-ovx{display:grid;gap:.3rem;margin:0 0 .75rem;font-size:.82rem;color:#334155}
.c8-ovx[hidden]{display:none}
.c8-ovx b{font-size:1rem;color:#2563EB}
.gx-done{color:#15803d;font-weight:700}
.gx-rank{color:#b45309;font-weight:800}
.gx-next{color:#64748b}
.c8-diff button{min-height:44px}
#hand.many .card{width:44px}
#overlay{padding:max(1rem,env(safe-area-inset-top)) max(1rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left))}
@media (prefers-reduced-motion:reduce){.gx-bar i{transition:none}}
/* full screen (native and immersive): the table fills the stage, no scroll, chrome hidden */
html.pip-immersive .game-wrap,html.pip-native .game-wrap:fullscreen,html.pip-native .game-wrap{display:flex;flex-direction:column;overflow:hidden;max-width:none;gap:.35rem;padding:.4rem max(.6rem,env(safe-area-inset-right)) max(.5rem,env(safe-area-inset-bottom)) max(.6rem,env(safe-area-inset-left));box-sizing:border-box}
:is(html.pip-immersive,html.pip-native) :is(.c8-howto,.c8-planner,.c8-stats,.c8-goals,.c8-meter,.pip-actions,.ad-well,#c8-depth-gameplay,#c8-depth-replay,.c8-coach,.hd-about,.below-content,.playyard-ad){display:none!important}
:is(html.pip-immersive,html.pip-native) .game-wrap>*{flex:0 0 auto;margin-top:0;margin-bottom:0}
:is(html.pip-immersive,html.pip-native) #c8-table{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:space-around;padding:.5rem .5rem .9rem;background:radial-gradient(ellipse at 50% 45%,#23905a 0,#157245 45%,#0b4a2c 100%)}
:is(html.pip-immersive,html.pip-native) .c8-center{margin:.3rem 0 .9rem}
:is(html.pip-immersive,html.pip-native) #card-grid{flex:0 0 auto;margin:0;overflow:hidden}
:is(html.pip-immersive,html.pip-native) #hand{margin:.35rem 0 0;gap:6px}
:is(html.pip-immersive,html.pip-native) #hand .card{width:clamp(44px,13.5vw,62px);height:calc(clamp(44px,13.5vw,62px)*1.44)}
:is(html.pip-immersive,html.pip-native) #hand.many .card{width:clamp(40px,11vw,52px);height:calc(clamp(40px,11vw,52px)*1.44)}
:is(html.pip-immersive,html.pip-native) .suit-btn{min-height:56px;min-width:64px}
:is(html.pip-immersive,html.pip-native) .c8-diff button,:is(html.pip-immersive,html.pip-native) .c8-bar .btn{min-height:44px}
:is(html.pip-immersive,html.pip-native) .c8-pile{filter:drop-shadow(0 10px 8px #0006)}
@media (orientation:landscape) and (max-height:520px){
:is(html.pip-immersive,html.pip-native) .game-wrap{padding-top:.25rem;gap:.2rem}
:is(html.pip-immersive,html.pip-native) .c8-bar{margin:0}
:is(html.pip-immersive,html.pip-native) .c8-score{margin:0}
:is(html.pip-immersive,html.pip-native) #status{margin:0;min-height:1.2em;font-size:.9rem}
:is(html.pip-immersive,html.pip-native) .c8-ai{display:flex;align-items:center;justify-content:center;gap:.6rem}
:is(html.pip-immersive,html.pip-native) .c8-fan{margin-top:0;height:34px}
:is(html.pip-immersive,html.pip-native) .c8-center{margin:.1rem 0 .6rem}
:is(html.pip-immersive,html.pip-native) #c8-table{padding:.3rem .5rem .6rem}
:is(html.pip-immersive,html.pip-native) #hand .card,:is(html.pip-immersive,html.pip-native) #hand.many .card{width:44px;height:62px}
:is(html.pip-immersive,html.pip-native) #hand{min-height:0;flex-wrap:nowrap;overflow:hidden}
:is(html.pip-immersive,html.pip-native) #hand .card{flex:0 1 44px;min-width:30px}
}
