/* ONE MOVE LEFT v2 — UI styling. Chunky glossy cartoon: golden-rimmed panels,
   juicy gradient buttons with hard drop shadows, big bold type. */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; background: #160f33; }
body {
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2b2140; user-select: none; -webkit-user-select: none; touch-action: none;
}
#app { position: fixed; inset: 0; overflow: hidden; }
canvas#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

/* ---------- shared bits ---------- */
.icon-btn {
  width: 48px; height: 48px; border: 2px solid #fff; border-radius: 15px; cursor: pointer;
  background: linear-gradient(180deg, #6ec3ff, #2f8fe8); color: #fff;
  box-shadow: 0 4px 0 #1c5f9e, 0 8px 16px rgba(10,20,60,.35), inset 0 2px 0 rgba(255,255,255,.55);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto;
  transition: transform .07s, box-shadow .07s;
}
.icon-btn:active { transform: translateY(3px) scale(.96); box-shadow: 0 1px 0 #1c5f9e, 0 3px 8px rgba(10,20,60,.3); }
.pause-ico { width: 15px; height: 17px; border-left: 5px solid #fff; border-right: 5px solid #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.icon-btn.gear::before { content: ""; width: 22px; height: 22px; border-radius: 50%;
  border: 4px dotted #fff; background: radial-gradient(circle, #fff 0 4px, transparent 5px); filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.icon-btn.back::before { content: ""; width: 13px; height: 13px; border-left: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(45deg); margin-left: 5px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.coin-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px 7px 8px; border-radius: 999px;
  background: rgba(24,14,52,.72); border: 2px solid rgba(255,205,80,.75); color: #ffe98a; font-weight: 900; font-size: 16px;
  box-shadow: 0 4px 10px rgba(10,5,30,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.coin-chip.big { font-size: 19px; padding: 9px 19px 9px 10px; }
.coin-ico { width: 21px; height: 21px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 35% 35%, #fff3ae, #f5b921 62%, #cf9411);
  border: 2px solid #a86e05; box-shadow: inset 0 0 0 2.5px #ffe98a, 0 1px 3px rgba(0,0,0,.35); }
.play-btn {
  border: 3px solid #fff; cursor: pointer; border-radius: 999px; padding: 19px 70px; position: relative; overflow: hidden;
  font-size: 31px; font-weight: 900; letter-spacing: 2.5px; color: #fff;
  background: linear-gradient(180deg, #ffc93a, #ff8a2a 55%, #ff6a1f);
  box-shadow: 0 7px 0 #c24e12, 0 16px 34px rgba(194,78,18,.5), inset 0 2px 0 rgba(255,255,255,.6);
  text-shadow: 0 2px 0 rgba(150,50,0,.45);
  animation: play-breathe 2.2s ease-in-out infinite;
  transition: transform .07s, box-shadow .07s;
}
.play-btn::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-18deg);
  animation: shine-sweep 3.4s ease-in-out infinite; }
@keyframes play-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes shine-sweep { 0%, 55% { left: -70%; } 85%, 100% { left: 130%; } }
.play-btn:active { transform: translateY(5px) scale(.98); box-shadow: 0 2px 0 #c24e12, 0 8px 18px rgba(194,78,18,.4); animation: none; }
.play-btn.small { padding: 14px 42px; font-size: 21px; }
.menu-btn {
  border: 2.5px solid #fff; cursor: pointer; border-radius: 18px; padding: 14px 22px;
  font-size: 17px; font-weight: 900; color: #fff; letter-spacing: .3px;
  background: linear-gradient(180deg, #57b6ff, #2f7fe0);
  box-shadow: 0 5px 0 #1c5f9e, 0 10px 20px rgba(15,40,90,.35), inset 0 2px 0 rgba(255,255,255,.5);
  text-shadow: 0 1.5px 0 rgba(10,40,90,.4);
  transition: transform .07s, box-shadow .07s;
}
.menu-btn:active { transform: translateY(4px) scale(.97); box-shadow: 0 1px 0 #1c5f9e, 0 4px 10px rgba(15,40,90,.3); }
.menu-btn.wide { width: 100%; margin-top: 10px; }
.pill-btn {
  border: 2px solid rgba(255,255,255,.85); cursor: pointer; border-radius: 999px; padding: 10px 20px;
  font-size: 15px; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, #8a76e8, #5a45c2); box-shadow: 0 4px 0 #3d2a8f, 0 6px 12px rgba(30,15,80,.3), inset 0 1.5px 0 rgba(255,255,255,.4);
  transition: transform .07s, box-shadow .07s;
}
.pill-btn.gold { background: linear-gradient(180deg, #ffd94d, #f09a1f); box-shadow: 0 4px 0 #b96e10, 0 6px 12px rgba(120,70,0,.3); color: #4a2c00; }
.pill-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #3d2a8f; }
.pill-btn.gold:active { box-shadow: 0 1px 0 #b96e10; }
.danger-btn { background: linear-gradient(180deg, #ff7a6a, #d63c2e); box-shadow: 0 4px 0 #9c2418; }

/* ---------- logo ---------- */
.logo-img { width: min(80vw, 400px); margin-top: 5vh; pointer-events: none;
  filter: drop-shadow(0 14px 26px rgba(10,5,40,.45)); animation: logo-float 3.6s ease-in-out infinite; }
.logo-img.small { width: min(58vw, 290px); margin-top: 1.2vh; }
@keyframes logo-float { 0%,100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-9px) rotate(.4deg); } }
.logo-fallback { display: none; }
.no-logo-img .logo-img { display: none; }
.no-logo-img .logo-fallback { display: block; }
.logo-wrap { text-align: center; line-height: .92; margin-top: 9vh; pointer-events: none; }
.logo-wrap > div { font-weight: 900; letter-spacing: 1px; }
.logo-one { font-size: 54px; color: #fff; text-shadow: 0 3px 0 #7ec8f7, 0 7px 18px rgba(20,40,90,.35); }
.logo-move { font-size: 74px; color: #ffd94d; text-shadow: 0 3px 0 #f09a1f, 0 8px 20px rgba(150,80,0,.4); }
.logo-left { font-size: 74px; color: #ff5d5d; text-shadow: 0 3px 0 #c22e2e, 0 8px 20px rgba(150,20,20,.4); }
.logo-tag { margin-top: 12px; font-size: 17px !important; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(20,10,60,.6); }
#load-bar { width: min(300px, 70vw); height: 16px; border-radius: 999px; margin-top: 4vh;
  background: rgba(16,8,40,.65); border: 2px solid rgba(255,205,80,.7); overflow: hidden; box-shadow: 0 6px 16px rgba(10,5,30,.4); }
#load-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #ffd94d, #ff9a2a); transition: width .25s ease; }
.tap-start { position: absolute; bottom: 11vh; left: 0; right: 0; text-align: center; color: #fff; font-size: 20px; font-weight: 900; letter-spacing: .4px; text-shadow: 0 2px 10px rgba(20,10,60,.75); animation: pulse-soft 1.6s ease-in-out infinite; }
@keyframes pulse-soft { 0%,100% { opacity: .65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); overflow-y: auto; }
.screen-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.screen-head h2 { font-size: 25px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 rgba(90,50,0,.55), 0 4px 12px rgba(20,10,60,.55); flex: 1; letter-spacing: .4px; }
#scr-splash { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.home-head { display: flex; justify-content: space-between; align-items: center; width: 100%; }
#scr-home { display: flex; flex-direction: column; align-items: center; }
#btn-play { margin-top: 2.6vh; }
.progress-card { margin-top: auto; margin-bottom: 1vh; width: min(430px, 94%); border-radius: 20px; padding: 14px 17px;
  background: linear-gradient(180deg, #fffdf4, #ffefc4); border: 3px solid #b97f26;
  box-shadow: 0 12px 26px rgba(20,10,40,.35), inset 0 2px 0 #fff; }
.progress-row { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 15px; margin-bottom: 9px; color: #5a3c08; }
.progress-bar { height: 15px; border-radius: 999px; background: #e8d9ae; overflow: hidden; box-shadow: inset 0 2px 4px rgba(120,80,10,.35); }
#progress-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #43b581, #8ee08a); box-shadow: inset 0 2px 0 rgba(255,255,255,.5); transition: width .5s ease; }
.home-btns { display: flex; gap: 10px; margin-top: 1.6vh; flex-wrap: wrap; justify-content: center; }
#progress-stars { display: inline-flex; align-items: center; gap: 4px; }
#progress-stars .star-svg { width: 17px; height: 17px; }

/* level select — world cards + chunky nodes */
#world-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
#world-tabs::-webkit-scrollbar { display: none; }
.world-card { flex: 0 0 auto; width: 138px; height: 96px; border: 3px solid rgba(255,255,255,.75); border-radius: 20px; cursor: pointer;
  position: relative; overflow: hidden; padding: 0; text-align: left; color: #fff;
  box-shadow: 0 6px 0 rgba(20,12,50,.45), 0 12px 22px rgba(15,8,45,.35); transition: transform .08s, box-shadow .08s; }
.world-card:active { transform: translateY(3px) scale(.97); }
.world-card.active { border-color: #ffd94d; box-shadow: 0 6px 0 #b97f26, 0 0 0 3px rgba(255,217,77,.45), 0 14px 24px rgba(15,8,45,.4); }
.world-card .wc-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.world-card .wc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,30,.05) 40%, rgba(10,6,30,.78)); }
.world-card .wc-name { position: absolute; left: 10px; right: 8px; bottom: 22px; font-size: 15.5px; font-weight: 900; line-height: 1.1; text-shadow: 0 2px 5px rgba(0,0,0,.6); }
.world-card .wc-sub { position: absolute; left: 10px; bottom: 7px; font-size: 10.5px; font-weight: 700; opacity: .92; text-shadow: 0 1px 3px rgba(0,0,0,.6); max-width: 86px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.world-card .wc-stars { position: absolute; top: 7px; right: 8px; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 900;
  background: rgba(16,8,40,.55); padding: 3px 8px; border-radius: 999px; }
.world-card .wc-stars .star-svg { width: 12px; height: 12px; }
.world-card.locked .wc-bg { filter: grayscale(.85) brightness(.75); }
.world-card .wc-lock { position: absolute; top: 8px; left: 9px; width: 17px; height: 14px; border-radius: 4px; background: #39415a; box-shadow: inset 0 0 0 2px #59637f; }
.world-card .wc-lock::before { content: ""; position: absolute; left: 3.5px; top: -9px; width: 10px; height: 10px; border: 3px solid #59637f; border-bottom: none; border-radius: 8px 8px 0 0; }
#level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 11px; padding: 6px 0 22px; }
.level-node { border: 2.5px solid #fff; cursor: pointer; border-radius: 19px; padding: 10px 2px 8px; position: relative; color: #fff;
  background: linear-gradient(180deg, #57b6ff, #2f7fe0); box-shadow: 0 5px 0 #1c5f9e, 0 9px 16px rgba(15,30,80,.3);
  text-shadow: 0 1.5px 0 rgba(10,40,90,.35); transition: transform .07s, box-shadow .07s; }
.level-node.w2 { background: linear-gradient(180deg, #7ed7f2, #3d9bc4); box-shadow: 0 5px 0 #24708f, 0 9px 16px rgba(15,50,80,.3); }
.level-node.w3 { background: linear-gradient(180deg, #ff9ed2, #e55fa8); box-shadow: 0 5px 0 #b03377, 0 9px 16px rgba(90,15,60,.3); }
.level-node.w4 { background: linear-gradient(180deg, #ff9a4d, #e0521f); box-shadow: 0 5px 0 #9c3410, 0 9px 16px rgba(80,20,5,.32); }
.level-node.w5 { background: linear-gradient(180deg, #9a7bff, #6440d8); box-shadow: 0 5px 0 #3f24a0, 0 9px 16px rgba(30,15,90,.32); }
.level-node:active { transform: translateY(4px) scale(.96); box-shadow: 0 1px 0 rgba(20,20,60,.5); }
.level-node .num { font-size: 22px; font-weight: 900; display: block; }
.level-node .nstars { display: flex; justify-content: center; gap: 1.5px; height: 13px; margin-top: 2px; }
.level-node.done { background: linear-gradient(180deg, #ffd94d, #f5a81f); box-shadow: 0 5px 0 #b96e10, 0 9px 16px rgba(120,70,0,.3); color: #5a3400; text-shadow: none; }
.level-node.next { animation: node-pulse 1.5s ease-in-out infinite; }
@keyframes node-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.level-node.locked { opacity: .55; cursor: default; filter: grayscale(.5); }
.level-node .lock-num { width: 16px; height: 13px; margin: 6px auto 4px; border-radius: 4px; background: rgba(20,25,45,.75); position: relative; display: block; }
.level-node .lock-num::before { content: ""; position: absolute; left: 3px; top: -8px; width: 10px; height: 9px; border: 3px solid rgba(20,25,45,.75); border-bottom: none; border-radius: 7px 7px 0 0; }
.star-svg { width: 13px; height: 13px; }

/* shop */
.shop-h { color: #fff; font-size: 19px; font-weight: 900; text-shadow: 0 2px 0 rgba(90,50,0,.5), 0 4px 10px rgba(20,10,60,.5); margin: 14px 0 9px; }
.shop-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); gap: 11px; }
.shop-item { background: linear-gradient(180deg, #fffdf4, #ffeec2); border: 3px solid #b97f26; border-radius: 19px; padding: 10px 8px; text-align: center; box-shadow: 0 9px 20px rgba(20,10,40,.28); }
.shop-item canvas { width: 72px; height: 72px; }
.shop-item .swatch { width: 44px; height: 44px; border-radius: 50%; margin: 12px auto 4px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.shop-item .nm { font-weight: 900; font-size: 13.5px; margin: 4px 0 8px; min-height: 34px; display: flex; align-items: center; justify-content: center; color: #4a3405; }
.shop-buy { border: 2px solid #fff; cursor: pointer; border-radius: 999px; padding: 8px 10px; font-weight: 900; font-size: 13px; width: 100%;
  background: linear-gradient(180deg, #ffd94d, #ffb03a); color: #4a2c00; box-shadow: 0 3px 0 #cf9411; transition: transform .07s; }
.shop-buy:active { transform: translateY(2px) scale(.97); }
.shop-buy.owned { background: linear-gradient(180deg, #dfe6f5, #c3cde4); color: #2b2140; box-shadow: 0 3px 0 #9aa6c4; }
.shop-buy.selected { background: linear-gradient(180deg, #43b581, #2f8f68); color: #fff; box-shadow: 0 3px 0 #1f6b4c; }
.shop-buy.confirm { background: linear-gradient(180deg, #ff8a5e, #ff5d3d); color: #fff; box-shadow: 0 3px 0 #c22e10; }

/* settings */
.setting-row { display: flex; align-items: center; justify-content: space-between; border-radius: 17px; padding: 15px 16px; margin-bottom: 11px;
  font-weight: 900; font-size: 16px; color: #4a3405;
  background: linear-gradient(180deg, #fffdf4, #ffeec2); border: 3px solid #b97f26; box-shadow: 0 7px 16px rgba(20,10,40,.22); }
.toggle { width: 60px; height: 33px; border-radius: 999px; border: 2px solid #fff; cursor: pointer; position: relative; background: #b9c2d8; transition: background .2s; flex: 0 0 auto; box-shadow: inset 0 2px 5px rgba(20,20,60,.3), 0 2px 5px rgba(20,10,40,.25); }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(180deg, #fff, #e8ecf7); box-shadow: 0 2px 5px rgba(0,0,0,.35); transition: left .18s; }
.toggle.on { background: linear-gradient(180deg, #57d492, #2f9e66); }
.toggle.on::after { left: 29px; }
.fineprint { text-align: center; color: rgba(255,255,255,.9); font-size: 13px; line-height: 1.6; margin-top: 22px; text-shadow: 0 1px 6px rgba(20,10,60,.55); font-weight: 600; }
.howto-card { background: linear-gradient(180deg, #fffdf4, #fff3cf); border: 3px solid #b97f26; border-radius: 21px; padding: 19px; box-shadow: 0 12px 26px rgba(20,10,40,.3); line-height: 1.55; font-size: 15.5px; }
.howto-card p { margin-bottom: 12px; }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; pointer-events: none; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
#hud button { pointer-events: auto; }
.hud-top { display: flex; align-items: center; gap: 10px; }
#hud-level { flex: 1; text-align: center; color: #fff; font-weight: 900; font-size: 16.5px;
  text-shadow: 0 2px 0 rgba(90,50,0,.5), 0 3px 9px rgba(20,10,60,.6); }
#hud-objective { margin: 8px auto 0; max-width: 440px; text-align: center; color: #fffbe8; font-weight: 800; font-size: 14px;
  background: rgba(30,16,58,.55); border: 1.5px solid rgba(255,205,80,.45); border-radius: 13px; padding: 7px 13px; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.move-chip { position: absolute; top: 116px; left: 50%; transform: translateX(-50%); padding: 8px 19px; border-radius: 999px;
  font-weight: 900; letter-spacing: 1.6px; font-size: 14px; color: #4a2c00; border: 2px solid #fff;
  background: linear-gradient(180deg, #ffe98a, #ffc61f); box-shadow: 0 4px 0 #cf9411, 0 9px 20px rgba(150,100,0,.4);
  animation: chip-glow 1.8s ease-in-out infinite; }
@keyframes chip-glow { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }
.move-chip.used { background: linear-gradient(180deg, #a7b1c9, #76839f); color: #232a3d; box-shadow: 0 4px 0 #55617a; animation: none; }
.hud-bottom { position: absolute; bottom: calc(12px + env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: center; gap: 12px; }
#hint-bubble { position: absolute; bottom: 78px; left: 50%; transform: translateX(-50%); width: min(400px, 88%);
  background: linear-gradient(180deg, #fffdf4, #ffefc0); border: 3px solid #f5b921; color: #4a3400; border-radius: 17px; padding: 12px 15px;
  font-size: 14.5px; font-weight: 800; line-height: 1.45; box-shadow: 0 14px 28px rgba(30,20,0,.4); pointer-events: none; text-align: center;
  animation: panel-pop .25s cubic-bezier(.2,1.6,.4,1); }
#dir-chooser { position: absolute; display: flex; gap: 16px; transform: translate(-50%, -135%); pointer-events: auto; animation: panel-pop .18s cubic-bezier(.2,1.6,.4,1); }
.dir-btn { width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; cursor: pointer;
  background: linear-gradient(180deg, #ffd94d, #ff9a1f); box-shadow: 0 5px 0 #cf9411, 0 10px 18px rgba(120,70,0,.45); position: relative; transition: transform .07s; }
.dir-btn:active { transform: translateY(3px) scale(.94); }
.dir-btn::before { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px;
  border-left: 5.5px solid #4a2c00; border-bottom: 5.5px solid #4a2c00; }
#dir-left::before { transform: translate(-38%, -50%) rotate(45deg); }
#dir-right::before { transform: translate(-62%, -50%) rotate(-135deg); }

/* ---------- overlays ---------- */
.overlay { position: absolute; inset: 0; background: rgba(18,10,44,.55); display: flex; align-items: center; justify-content: center; padding: 18px; backdrop-filter: blur(2px); animation: fade-in .22s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.panel { width: min(400px, 94%); border-radius: 27px; padding: 26px 22px 24px; text-align: center; position: relative;
  background: linear-gradient(180deg, #fffdf4, #ffeec2); border: 4px solid #b97f26;
  box-shadow: 0 26px 54px rgba(10,5,40,.55), inset 0 2px 0 #fff;
  animation: panel-pop .38s cubic-bezier(.2,1.5,.35,1); }
@keyframes panel-pop { 0% { transform: scale(.7) translateY(26px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
.panel-char { height: 118px; margin-top: -86px; filter: drop-shadow(0 8px 14px rgba(60,30,0,.35)); animation: char-bob 1.6s ease-in-out infinite; }
.panel-char.sad { animation: none; }
@keyframes char-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.panel h2 { font-size: 27px; font-weight: 900; margin-bottom: 8px; letter-spacing: .3px; }
.win-title { color: #e8930c; text-shadow: 0 2px 0 rgba(255,255,255,.7); }
.lose-title { color: #4a3a9e; }
.stars-row { display: flex; justify-content: center; gap: 8px; margin: 8px 0 4px; min-height: 54px; }
.stars-row .star-svg { width: 50px; height: 50px; }
.win-star { display: inline-block; animation: star-pop .5s cubic-bezier(.2,2.2,.4,1) both; }
.win-star:not(.got) { opacity: .45; }
@keyframes star-pop { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: scale(1) rotate(0); } }
.win-coins { font-weight: 900; font-size: 20px; color: #b96e10; margin: 6px 0 2px; }
/* visible star conditions (intro card + victory detail) */
.star-conds { margin: 12px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.sc-row { display: flex; align-items: center; gap: 10px; text-align: left; font-weight: 800; font-size: 14.5px; color: #4a3a10;
  background: rgba(255,255,255,.55); border: 2px solid rgba(185,127,38,.35); border-radius: 13px; padding: 8px 12px; }
.sc-row .sc-badge { flex: 0 0 auto; font-weight: 900; color: #8a5c00; background: linear-gradient(180deg, #ffe98a, #ffc61f);
  border: 1.5px solid #cf9411; border-radius: 999px; padding: 3px 10px; font-size: 13px; box-shadow: 0 2px 0 #cf9411; }
#win-stars-detail { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 2px; }
#win-stars-detail .sc-row.met { border-color: #43b581; background: rgba(126,211,126,.25); }
#win-stars-detail .sc-row.miss { opacity: .75; }
#intro-objective { font-size: 16px; font-weight: 800; color: #3d3358; line-height: 1.45; }
.intro-panel { padding-top: 30px; }
#btn-undo.undo-off, .pill-btn.undo-off { opacity: .45; filter: grayscale(.5); }
.win-note { font-size: 14px; color: #6a5a35; margin-bottom: 14px; min-height: 18px; font-weight: 600; }
.panel-row { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
#lose-reason { font-size: 16px; font-weight: 800; line-height: 1.5; color: #3d3358; }
.lose-hint { font-size: 14px; font-weight: 700; color: #7a6a2a; background: #fffbe8; border: 2px solid #f0d060; border-radius: 13px; padding: 9px 11px; margin: 12px 0 16px; line-height: 1.45; }
.lose-hint:empty { display: none; }
#btn-next, #btn-retry { margin-top: 8px; }

/* toast */
#toast { position: absolute; bottom: 112px; left: 50%; transform: translateX(-50%); background: rgba(24,16,54,.94); color: #fff;
  padding: 11px 20px; border-radius: 999px; font-weight: 800; font-size: 14.5px; box-shadow: 0 10px 22px rgba(0,0,0,.35); z-index: 40; white-space: nowrap; border: 1.5px solid rgba(255,205,80,.5); }
