/* Coconut Shy page styles (shared by the info page and the play page). Scoped by ids / .box so nothing collides with shared/*.css. */
html,body{overflow-x:hidden;max-width:100%;touch-action:manipulation}
#hud{grid-area:hud;display:flex;align-items:center;gap:10px;background:var(--panel);border-radius:12px;padding:8px 12px;min-height:58px}
#hud .st{display:flex;flex-direction:column;line-height:1.15;min-width:0}
#hud .st small{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);display:flex;align-items:center;gap:6px;min-height:34px}
#hud .st b{font:900 26px/1.05 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-variant-numeric:tabular-nums;color:var(--ink)}
#hud .me b{color:#ffd54f}
#hud .st.them{align-items:flex-end;margin-left:auto}
#hud .st.them small{justify-content:flex-end}
#hud .mid{flex:1;text-align:center;min-width:80px}
#hTime{font:900 34px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;color:var(--ink)}
#hud.low #hTime{color:#ff5252}
#bar{display:block;height:7px;background:rgba(255,255,255,.15);border-radius:4px;overflow:hidden;margin-top:6px}
#bar i{display:block;height:100%;width:0;background:#7cd957;transition:width .12s linear}
#oppBox{display:inline-flex;align-items:center;gap:6px;min-width:0}
#oppBox[hidden],#bestBox[hidden],#mini[hidden]{display:none}
#oAv{display:inline-grid;place-items:center;min-width:34px;min-height:34px}
#oName{max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none;letter-spacing:0;font-size:12.5px;font-weight:700;color:var(--ink)}
#sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
nav.bar{position:relative;display:flex;gap:8px;justify-content:center;padding:8px 10px 10px;background:rgba(0,0,0,.22)}
nav.bar button{flex:1;max-width:150px;min-height:46px;min-width:0}
nav.bar button.ghost{background:rgba(255,255,255,.14)}
nav.bar button i{margin-right:4px;opacity:.9}
.gh .hbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 11px;border-radius:10px;border:0;
  background:rgba(255,255,255,.12);color:var(--ink);text-decoration:none;font:600 14px system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;flex:none}
.gh a.back{min-height:44px;display:inline-flex;align-items:center}
@media (max-width:640px){ .gh .hbtn .txt{display:none} .gh .hbtn{padding:0;width:44px} }
@media (max-width:400px){ main.table{padding-left:max(4px,var(--safe-l));padding-right:max(4px,var(--safe-r))} #oName{max-width:70px} }
@media (max-width:360px){ nav.bar button i{display:none} .gh{gap:4px} .gh .hbtn{width:40px;min-width:40px} }
.toast{bottom:calc(84px + var(--safe-b))}
.box .note{font-size:12.5px;color:#b9c9bf;margin:6px 0 0}
.box .lead{font-size:14px;color:#dfe8e2;margin:0 0 10px}
kbd{font:inherit;font-size:12px;background:#26352d;color:#fff;border:1px solid rgba(255,255,255,.2);border-radius:4px;padding:0 5px}
#oAv.av{border-radius:50%;overflow:hidden}
.stats td.n,.stats th.n{text-align:right}
.lvlist{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:8px 0 4px}
.box button.lv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;align-items:center;text-align:left;background:#1b2620;color:#f4f8f5;
  border-radius:12px;padding:10px 12px;min-height:64px;white-space:normal;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);font-weight:400;width:100%}
.box button.lv.on{box-shadow:inset 0 0 0 2px #ffd54f;background:#27331f}
.box button.lv .badge2{grid-row:span 3;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font:800 17px system-ui,sans-serif;color:#1d1500}
.box button.lv .t1{display:flex;align-items:baseline;gap:8px;min-width:0}
.box button.lv .t1 b{font-size:15px;white-space:nowrap}
.box button.lv .t1 span{font-size:12.5px;color:#b9c9bf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.box button.lv .bl{font-size:12px;color:#cfdad3;line-height:1.35}
.box button.lv .meta{display:flex;flex-direction:column;align-items:flex-start;gap:7px;font-size:12px;color:#b9c9bf;min-width:0}
.bar10{display:flex;gap:2px;flex:none}
.bar10 i{width:7px;height:8px;border-radius:2px;background:#3a4a41}
.box button.lv.boss{background:linear-gradient(135deg,#2c2610,#1b2620 60%)}
.box button.lv.locked{background:#161d19;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);cursor:not-allowed}
.box button.lv.locked .badge2,.box button.lv.locked .t1,.box button.lv.locked .bl,.box button.lv.locked .bar10{opacity:.45;filter:grayscale(.85)}
.box button.lv .lock{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#d5e1da;font-weight:600}
.box button.lv .lock i{color:#ffd54f}
.rec{display:flex;gap:12px;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:11.5px;color:#9fb5a8;letter-spacing:.2px}
.rec > span{display:inline-flex;align-items:baseline;gap:4px}
.rec b{font-weight:800;font-size:13px;color:#fff}
.rec .rw b{color:#8be0a4}.rec .rl b{color:#ff9e94}
.box .banner.pete{color:#ffd54f;font-size:22px}
.box h2 .fa-crown{color:#ffd54f}
.box .ladder{display:flex;align-items:center;gap:8px;font-size:13px;color:#dfe8e2;margin:0 0 6px}
.box .ladder i{color:#ffd54f}
.box .unlock{display:flex;align-items:center;gap:10px;background:#27331f;border-radius:12px;padding:10px 12px;margin:10px 0 0;box-shadow:inset 0 0 0 1px rgba(255,213,79,.4);font-size:14px;color:#f4f8f5}
.box .unlock i{color:#ffd54f;font-size:18px}
.box button.dailybtn{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:12px 14px;border-radius:14px;box-shadow:inset 0 0 0 2px rgba(255,213,79,.55);background:rgba(255,213,79,.1);color:#f4f8f5;font:inherit;font-weight:400;cursor:pointer;min-height:56px;white-space:normal}
.box button.dailybtn:hover{background:rgba(255,213,79,.18)}
.box button.dailybtn i{font-size:22px;color:#ffd54f;flex:none}
.box button.dailybtn b{display:block;font-size:15px}
.box button.dailybtn small{display:block;font-size:12px;color:#b9c9bf;margin-top:2px;line-height:1.35}
@media (orientation:landscape) and (max-height:540px){
  body{flex-direction:row}
  .gh{flex-direction:column;justify-content:flex-start;padding:calc(6px + var(--safe-t)) 6px 6px;gap:6px;overflow:hidden}
  .gh h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .gh a.back{padding:0;width:44px;justify-content:center}
  .gh .hbtn .txt,.gh a.back .txt{display:none}
  .gh .hbtn{padding:0;width:44px}
  #chip{margin-top:auto}
  #chip .uchip .nm,#chip .uchip .txt{display:none}
  #chip .uchip.login{padding:0 12px}
  main.table{max-width:none;padding:6px 8px;gap:8px}
  nav.bar{flex-direction:column;justify-content:center;padding:6px;gap:6px;width:84px;flex:none}
  nav.bar button{flex:none;max-width:none;min-height:48px;padding:4px 2px;font-size:11.5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
  nav.bar button i{margin:0;font-size:15px;display:inline}
  .toast{bottom:calc(16px + var(--safe-b))}
}
/* ---- Coconut Shy: the stall ---- */
main.table{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"hud" "maze";gap:10px;max-width:620px;overflow:hidden;padding-bottom:8px}
#hud .shdots{display:flex;gap:3px;margin-top:5px}
#hud .shdots i{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.16)}
#hud .shdots i.sh-h{background:#4caf50}#hud .shdots i.sh-c{background:#ffd54f;box-shadow:0 0 5px #ffd54f}#hud .shdots i.sh-m{background:#9e9e9e}
#hud .them .shdots{justify-content:flex-end}
#odots[hidden]{display:none}
#cvWrap{grid-area:maze;position:relative;display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;overflow:hidden;container-type:size}
#cv{display:block;flex:none;width:min(100%,calc(100vh - 250px),560px);width:min(100%,calc(100svh - 250px),560px);aspect-ratio:1;border-radius:18px;box-shadow:inset 0 0 0 3px #7a4a22,0 8px 18px rgba(0,0,0,.4);touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair}
@supports (width:1cqw){#cv{width:min(100cqw,100cqh)}}
#popt{position:absolute;left:0;right:0;top:34%;text-align:center;font:900 30px/1 system-ui;opacity:0;pointer-events:none;z-index:2}
#popt.go{animation:shypop .9s ease-out forwards}
@keyframes shypop{0%{opacity:1;transform:translateY(0) scale(1.2)}100%{opacity:0;transform:translateY(-36px) scale(1)}}
#popt.good{color:#fff;text-shadow:0 2px 0 #1b5e20,0 0 8px rgba(0,0,0,.5)}
#popt.gold{color:#ffd54f;text-shadow:0 2px 0 #5d4300,0 0 8px rgba(0,0,0,.5)}
#popt.bad{color:#fff;text-shadow:0 2px 0 #5b0000,0 0 8px rgba(0,0,0,.6)}
#ready{position:absolute;inset:0;display:grid;place-items:center;font:900 96px/1 system-ui,sans-serif;color:#ffd54f;text-shadow:0 4px 0 #07140e,0 0 30px rgba(0,0,0,.6);pointer-events:none;z-index:3}
#ready[hidden]{display:none}
#ovl{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:6px;background:rgba(5,15,10,.6);color:#fff;cursor:pointer;text-align:center;border-radius:14px;z-index:4}
#ovl[hidden]{display:none}
#ovl b{font:900 30px/1 system-ui,sans-serif}
#ovl span{font-size:14px;opacity:.85}
@media (orientation:landscape) and (max-height:540px){ #cv{width:min(100%,calc(100vh - 90px),560px);width:min(100%,calc(100svh - 90px),560px)} }
@supports (width:1cqw){@media (orientation:landscape) and (max-height:540px){#cv{width:min(100cqw,100cqh)}}}
