/* Spore Crawl - specimen plate: ink black, bone ruler marks, luminous lime. */
.sc{--ink:#07110f;--agar:#0f2622;--bone:#d9d2bd;--lime:#c6f04a;--amber:#ffb22e;--red:#ff5a4a;
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;
  background:var(--ink);border:1px solid #d9d2bd33;border-radius:14px;padding:.6rem;color:var(--bone)}
.sc-hud{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"l b s" "l b e";gap:.1rem .6rem;align-items:center;font-size:.8rem;margin-bottom:.4rem;min-height:44px}
.sc-lvl{grid-area:l;font-weight:800;letter-spacing:.04em;text-transform:uppercase;font-size:.78rem;color:var(--bone)}
.sc-bar{grid-area:b;height:10px;border:1px solid #d9d2bd66;border-radius:2px;overflow:hidden;background:#0f2622}
.sc-bar i{display:block;height:100%;width:0;background:repeating-linear-gradient(90deg,#c6f04a 0 6px,#8fb62f 6px 8px);transition:width .2s}
.sc-size{grid-area:s;font-variant-numeric:tabular-nums;text-align:right}
.sc-en{grid-area:e;font-variant-numeric:tabular-nums;text-align:right;color:var(--amber);font-weight:700}
.sc-en.low{color:var(--red)}
.sc-board{position:relative;width:100%;aspect-ratio:1/1;touch-action:none}
.sc-canvas{display:block;width:100%;height:auto;touch-action:none;border-radius:50%;background:#07110f;cursor:crosshair;outline:none}
.sc-msg{min-height:2.6em;font-size:.82rem;line-height:1.3;text-align:center;margin:.5rem 0;color:#cfc9b4}
.sc-tools{display:grid;grid-template-columns:1fr 1.3fr 1fr 1fr;gap:.5rem}
.sc-btn{min-height:48px;min-width:44px;border:1.5px solid var(--bone);background:transparent;color:var(--bone);font:inherit;font-weight:700;font-size:.9rem;border-radius:6px;cursor:pointer;padding:.3rem .6rem;touch-action:manipulation}
.sc-btn:active{transform:translateY(1px)}
.sc-btn:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
.sc-btn.on,.sc-btn[aria-pressed="true"]#sc-cut{background:var(--amber);border-color:var(--amber);color:var(--ink)}
.sc-btn:disabled{opacity:.45;cursor:default}
.sc-btn.sc-main{background:var(--lime);border-color:var(--lime);color:var(--ink);font-size:1.05rem}
.sc-btn.sc-sq{width:48px;font-size:1.2rem}
.sc-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(7,17,15,.9);border-radius:12px;overflow:auto;padding:.4rem;touch-action:pan-y}
.sc-overlay[hidden]{display:none}
.sc-panel{width:100%;max-width:330px;display:flex;flex-direction:column;gap:.5rem;text-align:center;animation:scin .28s ease-out}
.sc-kicker{font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--amber)}
.sc-big{font-size:2rem;line-height:1.05;color:var(--lime);letter-spacing:.02em}
.sc-med{font-size:1.4rem;color:var(--lime)}
.sc-lead{font-size:.85rem;line-height:1.35;color:#cfc9b4}
.sc-small{font-size:.72rem;color:#9a9784}
.sc-best{color:var(--amber);font-weight:800;letter-spacing:.05em;text-transform:uppercase;font-size:.8rem;animation:scpulse 1s ease-in-out infinite}
.sc-step{display:flex;align-items:center;justify-content:center;gap:.6rem}
.sc-steplab{min-width:6.5em;font-weight:800}
.sc-stats{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}
.sc-stat{border:1px solid #d9d2bd44;border-radius:4px;padding:.35rem;display:flex;flex-direction:column;font-size:.7rem;text-transform:uppercase;letter-spacing:.06em}
.sc-stat strong{font-size:1.15rem;color:var(--bone);letter-spacing:0}
.sc-mut{display:flex;align-items:center;gap:.5rem;text-align:left;border-bottom:1px solid #d9d2bd33;padding-bottom:.35rem}
.sc-muttxt{flex:1;display:flex;flex-direction:column;font-size:.75rem;color:#cfc9b4}
.sc-muttxt strong{color:var(--bone);font-size:.88rem}
.sc-mut .sc-btn{min-width:64px}
@keyframes scin{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@keyframes scpulse{50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){.sc *{animation:none!important;transition:none!important}}
@supports (padding:max(0px)){.sc{padding-left:max(.6rem,env(safe-area-inset-left));padding-right:max(.6rem,env(safe-area-inset-right));padding-bottom:max(.6rem,env(safe-area-inset-bottom))}}
@media (max-width:360px){.sc-big{font-size:1.6rem}}

.sc-stars{font-size:2rem;letter-spacing:.3em;line-height:1}.sc-star{color:#d9d2bd33}.sc-star.on{color:var(--amber);text-shadow:0 0 10px #ffb22e88;animation:scin .4s ease-out}
.sc-tools .sc-btn{padding:.3rem .2rem;font-size:.82rem}
@media (max-width:360px){.sc-en{font-size:.72rem}}

/* full screen: fill the stage, board takes the leftover height, canvas is sized in main.js */
html.pip-immersive .game-wrap.pip-stage,html.pip-native .game-wrap.pip-stage{display:flex;flex-direction:column;overflow:hidden;padding-bottom:max(.4rem,env(safe-area-inset-bottom))}
html.pip-native .game-wrap.pip-stage{padding-top:calc(var(--pip-dock-h,52px) + 4px)}
html.pip-immersive #sc-stage,html.pip-native #sc-stage{flex:1;min-height:0;display:flex;flex-direction:column;border-radius:0;border-width:0;padding:.3rem .5rem}
html.pip-immersive .sc-board,html.pip-native .sc-board{aspect-ratio:auto;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
html.pip-immersive .sc-canvas,html.pip-native .sc-canvas{flex:none;max-width:100%;max-height:100%}
html.pip-immersive .sc-msg,html.pip-native .sc-msg{min-height:0;margin:.3rem 0;font-size:.78rem}
html.pip-immersive .sc-hud,html.pip-native .sc-hud{margin-bottom:.2rem}
html.pip-immersive .hub-bar,html.pip-immersive .playyard-ad,html.pip-immersive .below-content,html.pip-immersive .ad-well,html.pip-immersive #similar-games,html.pip-immersive footer,html.pip-immersive .pip-actions,html.pip-immersive noscript{display:none!important}
html.pip-native .pip-actions,html.pip-native noscript{display:none!important}
@media (orientation:landscape) and (max-height:520px){
  html.pip-immersive #sc-stage,html.pip-native #sc-stage{display:grid;grid-template-columns:1fr minmax(150px,200px);grid-template-rows:auto auto 1fr;gap:.3rem .6rem}
  html.pip-immersive .sc-board,html.pip-native .sc-board{grid-column:1;grid-row:1/4}
  html.pip-immersive .sc-hud,html.pip-native .sc-hud{grid-column:2;grid-row:1}
  html.pip-immersive .sc-msg,html.pip-native .sc-msg{grid-column:2;grid-row:2}
  html.pip-immersive .sc-tools,html.pip-native .sc-tools{grid-column:2;grid-row:3;grid-template-columns:1fr 1fr;align-content:start}
}

/* full screen v2: edge to edge board, drop intro copy */
html.pip-immersive .game-wrap.pip-stage,html.pip-native .game-wrap.pip-stage{padding-left:max(.25rem,env(safe-area-inset-left));padding-right:max(.25rem,env(safe-area-inset-right));padding-top:.25rem}
html.pip-native .game-wrap.pip-stage{padding-top:calc(var(--pip-dock-h,52px) + 2px)}
html.pip-immersive .game-title,html.pip-native .game-title,html.pip-immersive .facts,html.pip-native .facts{display:none!important}
html.pip-immersive #sc-stage,html.pip-native #sc-stage{padding:.2rem .25rem}
html.pip-immersive .sc-hud,html.pip-native .sc-hud{min-height:44px}
@media (orientation:landscape) and (max-height:520px){
  html.pip-immersive .game-wrap.pip-stage{padding-top:.2rem}
  html.pip-immersive .game-wrap.pip-stage,html.pip-native .game-wrap.pip-stage{padding-bottom:max(.2rem,env(safe-area-inset-bottom))}
  html.pip-immersive #sc-stage,html.pip-native #sc-stage{padding:.1rem .25rem}
}
