@font-face { font-family: "Lilita One"; src: url("fonts/lilitaone-latin.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Rubik Spray Paint"; src: url("fonts/rubikspraypaint-latin.woff2") format("woff2"); font-display: block; }
html, body {
  margin: 0; height: 100%; background: #bce6f6; overflow: hidden; overscroll-behavior: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  font-family: "Lilita One", "Arial Black", sans-serif; color: #fff;
}
#stage { position: fixed; top: 0; bottom: 0; left: 50%; width: min(100vw, 75vh); transform: translateX(-50%); overflow: hidden; }
html { background: linear-gradient(#bce6f6, #8fcbe6); }
body { background: transparent; }
#game { display: block; width: 100%; height: 100%; touch-action: none; }
#ui { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* a soft vignette over the 3D view (under the UI): draws the eye to the runner, costs no GPU pass */
#stage::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 55%, rgba(12, 22, 48, 0) 58%, rgba(12, 22, 48, 0.24) 100%); }
#stage.closet-view::before { background: radial-gradient(ellipse 70% 45% at 50% 38%, rgba(12, 22, 48, 0) 45%, rgba(12, 22, 48, 0.45) 100%); }
#ui button, #ui .overlay, #ui .shop-list { pointer-events: auto; }
#safe { position: absolute; visibility: hidden; pointer-events: none; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: 0; -webkit-tap-highlight-color: transparent; }
.outline { text-shadow: 0 2px 0 #0d2346, 2px 0 0 #0d2346, -2px 0 0 #0d2346, 0 -2px 0 #0d2346; }

/* ---------------- HUD */
.hud { position: absolute; inset: 0; padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px 10px; }
.btn-pause { position: absolute; left: 10px; top: calc(env(safe-area-inset-top, 0px) + 10px); width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(#4fb4ff, #1d76d2); box-shadow: 0 3px 0 #0f4f94, inset 0 2px 0 rgba(255,255,255,.45); display: flex; gap: 6px; align-items: center; justify-content: center; }
.btn-pause span { width: 7px; height: 20px; background: #fff; border-radius: 2px; }
.hud-right { position: absolute; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 10px); display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.hud-row { display: flex; gap: 6px; align-items: center; }
.mult { background: rgba(26, 30, 44, .72); color: #ffd21c; font-size: 22px; padding: 1px 8px; border-radius: 8px; transition: transform .2s; }
.mult.double { color: #7df95b; transform: scale(1.15); }
.score { background: rgba(26, 30, 44, .72); color: #fff; font-size: 28px; letter-spacing: 1px; padding: 0 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.coins { background: rgba(26, 30, 44, .6); color: #fff; font-size: 22px; padding: 1px 8px; border-radius: 8px; display: flex; align-items: center; gap: 5px; }
.coin-ico { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff3a0 0 18%, #ffcc22 20% 58%, #e09a08 60%); box-shadow: 0 0 0 1.5px #a86b00; vertical-align: middle; }
.bestbox { background: rgba(26, 30, 44, .55); border-radius: 8px; padding: 3px 7px; display: flex; flex-direction: column; align-items: center; font-size: 14px; color: #ffd21c; }
.best-ico { width: 34px; height: 34px; border-radius: 6px; background: linear-gradient(#3a9df0, #1a64c0); position: relative; }
.best-ico::after { content: "★"; position: absolute; inset: 0; color: #ffe14d; font-size: 24px; line-height: 34px; text-align: center; }
.bars { position: absolute; left: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); display: flex; flex-direction: column; gap: 6px; }
.bar { display: flex; align-items: center; gap: 5px; }
.bar .ico { width: 34px; height: 34px; border-radius: 8px; }
.bar .fill { width: 110px; height: 14px; background: rgba(255,255,255,.85); border-radius: 7px; padding: 2px; box-shadow: 0 0 0 2px #1d4b86; }
.bar .fill b { display: block; height: 100%; width: 100%; border-radius: 5px; background: repeating-linear-gradient(90deg, #ffd21c 0 6px, #f5a700 6px 8px); }
.msg { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-size: 34px; white-space: pre-line; color: #ffe14d;
  text-shadow: 0 3px 0 #0d2346, 3px 0 0 #0d2346, -3px 0 0 #0d2346, 0 -3px 0 #0d2346; }
.tut-arrow { position: absolute; left: 50%; top: 42%; width: 90px; height: 120px; margin: -60px 0 0 -45px; transform: rotate(var(--rot, 0deg)); }
.tut-arrow::before { content: ""; position: absolute; left: 25px; right: 25px; top: 44px; bottom: 0; background: #ffe14d; border-radius: 6px; box-shadow: 0 0 0 4px #0d2346; }
.tut-arrow::after { content: ""; position: absolute; left: 0; top: 0; border-left: 45px solid transparent; border-right: 45px solid transparent; border-bottom: 50px solid #ffe14d; filter: drop-shadow(0 -3px 0 #0d2346); }
.tut-arrow.go { animation: arrow 1s linear forwards; }
@keyframes arrow { from { translate: 0 20px; opacity: 1; } to { translate: 0 -20px; opacity: .2; } }
.slide { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 70px); transform: translateX(-50%); background: #fff; color: #1d4b86; border-radius: 12px;
  padding: 8px 16px; text-align: center; box-shadow: 0 4px 0 #1d4b86; min-width: 220px; }
.slide b { display: block; font-size: 20px; color: #2d9b2d; }
.slide span { font-size: 14px; }
.slide.in { animation: slide .35s ease-out; }
@keyframes slide { from { transform: translate(-50%, -120px); } to { transform: translate(-50%, 0); } }
.hs { position: absolute; left: 10px; bottom: 32%; display: flex; flex-direction: column; gap: 10px; }
.hs-btn { width: 84px; height: 72px; border-radius: 14px; background: linear-gradient(#ffcf3a, #f59a00); box-shadow: 0 4px 0 #a15e00; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 18px; animation: hsin .35s ease-out; }
.hs-btn small { font-size: 13px; }
@keyframes hsin { from { transform: translateX(-120px); } to { transform: none; } }
.hb-hint { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-size: 20px; color: #fff; text-shadow: 0 2px 0 #0d2346, 2px 0 0 #0d2346, -2px 0 0 #0d2346, 0 -2px 0 #0d2346; opacity: .9; }

/* ---------------- menu */
.menu { position: absolute; inset: 0; }
.menu-top { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 10px; right: 10px; display: flex; align-items: center; gap: 8px; }
.tag-btn { background: linear-gradient(#56b8ff, #1e74cf); color: #fff; font-size: 18px; padding: 6px 12px; border-radius: 10px; box-shadow: 0 3px 0 #0f4f94; }
.menu-wallet { margin-left: auto; background: rgba(26, 30, 44, .6); padding: 3px 10px; border-radius: 10px; display: flex; gap: 5px; align-items: center; font-size: 20px; }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(#56b8ff, #1e74cf); color: #fff; font-size: 24px; box-shadow: 0 3px 0 #0f4f94; }
.logo { position: absolute; left: 0; right: 0; top: 16%; text-align: center; font-family: "Rubik Spray Paint", "Lilita One", sans-serif; line-height: .9; transform: rotate(-6deg); }
.logo1, .logo2 { font-size: 64px; color: #ffe23a; -webkit-text-stroke: 3px #13306b; text-shadow: 0 6px 0 #13306b, 0 10px 16px rgba(0,0,0,.35); }
.logo2 { font-size: 70px; color: #53c6ff; margin-left: 30px; }
.tap { position: absolute; left: 0; right: 0; bottom: 26%; text-align: center; font-size: 30px; color: #fff; text-shadow: 0 3px 0 #13306b, 3px 0 0 #13306b, -3px 0 0 #13306b, 0 -3px 0 #13306b; animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.menu-bottom { position: absolute; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); display: flex; align-items: flex-end; justify-content: space-between; }
.graf-btn { font-family: "Rubik Spray Paint", "Lilita One", sans-serif; font-size: 30px; padding: 8px 14px; border-radius: 14px; color: #ffe23a; -webkit-text-stroke: 1.5px #13306b;
  background: linear-gradient(#2c5fb0, #173b78); box-shadow: 0 4px 0 #0b2350, inset 0 2px 0 rgba(255,255,255,.3); transform: rotate(-3deg); }
.graf-btn.shop { transform: rotate(3deg); color: #7df95b; }
.menu-hb { display: flex; align-items: center; gap: 4px; background: rgba(26,30,44,.6); padding: 4px 10px; border-radius: 10px; font-size: 18px; }
.hb-ico { display: inline-block; width: 30px; height: 12px; border-radius: 6px; background: #e23a1c; box-shadow: inset 0 -3px 0 #222; }

/* ---------------- notebook panels */
.overlay { position: absolute; inset: 0; background: rgba(8, 22, 48, .38); display: flex; align-items: center; justify-content: center; padding: 14px; }
.note { position: relative; width: min(92vw, 380px); max-height: calc(100% - 20px); overflow: auto; background: #fbfbf7; color: #1d4b86; border-radius: 16px;
  padding: 34px 16px 16px; box-shadow: 0 6px 0 #c3c9d4, 0 14px 30px rgba(0,0,0,.3);
  background-image: repeating-linear-gradient(#fbfbf7 0 29px, #d9e6f5 29px 30px); }
.note::before { content: ""; position: absolute; left: 18px; right: 18px; top: 8px; height: 14px;
  background: radial-gradient(circle at 7px 7px, #6c7686 0 5px, transparent 6px) 0 0 / 22px 14px repeat-x; }
.note h2 { margin: 0 0 10px; text-align: center; font-size: 30px; color: #1d4b86; }
.note-wallet { position: absolute; right: 14px; top: 26px; display: flex; gap: 5px; align-items: center; font-size: 17px; background: #1d4b86; color: #fff; padding: 2px 8px; border-radius: 9px; }
.note-btns { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.btn { font-size: 20px; color: #fff; padding: 10px 16px; border-radius: 12px; }
.btn.blue { background: linear-gradient(#56b8ff, #1e74cf); box-shadow: 0 4px 0 #0f4f94; }
.btn.green { background: linear-gradient(#7fe04c, #2f9f1e); box-shadow: 0 4px 0 #1d6a12; }
.btn.play { font-size: 24px; flex: 1; }
.btn.wide { display: block; width: 100%; margin: 8px 0; background: linear-gradient(#56b8ff, #1e74cf); box-shadow: 0 4px 0 #0f4f94; }
.btn:active, .graf-btn:active, .price:active { transform: translateY(2px); }
.ribbon { margin: 6px auto 0; width: 70%; text-align: center; font-size: 28px; color: #fff; background: #1d6fd6; border-radius: 8px; box-shadow: 0 3px 0 #0f4f94; }
.big-score { text-align: center; font-size: 46px; color: #fff; background: #13306b; border-radius: 10px; margin: 6px 30px 0; padding: 2px 0; font-variant-numeric: tabular-nums; }
.over-coins { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 24px; color: #fff; background: #1d6fd6; width: 120px; margin: 6px auto 0; border-radius: 8px; }
.over-best { text-align: center; margin-top: 8px; font-size: 18px; }
.over-best.new { color: #e23a1c; font-size: 22px; animation: pulse .8s ease-in-out infinite; }
.lb-panel { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; width: 100%; margin-top: 12px;
  background: #fff; border: 3px dashed #9fb5d4; border-radius: 12px; padding: 8px 12px; color: #1d4b86; text-align: left; font-size: 22px; }
.lb-panel .trophy { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(#ffd23a, #f09a00); position: relative; }
.lb-panel .trophy::after { content: "🏆"; position: absolute; inset: 0; font-size: 26px; line-height: 44px; text-align: center; }
.lb-panel small { font-size: 13px; color: #5a7aa8; }
.missions { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.missions.small { font-size: 14px; }
.set-line { text-align: center; font-size: 15px; color: #2d9b2d; }
.mission { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 6px 8px; box-shadow: 0 2px 0 #c3c9d4; font-size: 15px; line-height: 1.15; }
.mission .check { flex: 0 0 22px; height: 22px; border-radius: 6px; border: 2px solid #9fb5d4; }
.mission.done .check { background: #2f9f1e; border-color: #2f9f1e; }
.mission.done .check::after { content: "✓"; color: #fff; display: block; text-align: center; line-height: 20px; }
.mission.done span { color: #2f9f1e; text-decoration: line-through; }
.mission span { flex: 1; }
.skip { background: linear-gradient(#ffcf3a, #f59a00); color: #fff; border-radius: 8px; padding: 4px 6px; font-size: 13px; display: flex; gap: 3px; align-items: center; box-shadow: 0 2px 0 #a15e00; }
.skip.off, .price.off { filter: grayscale(.8); opacity: .6; }
.countdown { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-shadow: 0 3px 0 #0d2346, 3px 0 0 #0d2346, -3px 0 0 #0d2346, 0 -3px 0 #0d2346; }
.countdown .c1 { font-size: 28px; }
.countdown .c2 { font-size: 90px; color: #ffe14d; }
.shop-list { display: flex; flex-direction: column; gap: 8px; }
.shop-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 2px 0 #c3c9d4; }
.shop-item .ico { flex: 0 0 46px; height: 46px; border-radius: 10px; }
.shop-item .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.shop-item b { font-size: 17px; }
.shop-item small { font-family: system-ui, sans-serif; font-size: 11px; color: #5a7aa8; line-height: 1.2; }
.have { font-size: 13px; color: #2d9b2d; }
.tier { display: flex; gap: 3px; align-items: center; font-size: 13px; color: #2d9b2d; }
.tier i { width: 12px; height: 12px; border-radius: 3px; background: #d6deea; }
.tier i.on { background: #2f9f1e; }
.tier span { margin-left: 6px; }
.price { flex: 0 0 auto; background: linear-gradient(#7fe04c, #2f9f1e); color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 17px; display: flex; gap: 4px; align-items: center; box-shadow: 0 3px 0 #1d6a12; }
.credits { font-family: system-ui, sans-serif; font-size: 12px; color: #5a7aa8; }
/* icons (our own drawings) */
.ico { background-color: #1d6fd6; background-size: 80% 80%; background-position: center; background-repeat: no-repeat; }
.ico-jetpack { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Crect%20x%3D%2210%22%20y%3D%229%22%20width%3D%2212%22%20height%3D%2218%22%20rx%3D%223%22%20fill%3D%22%232fa84f%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2212%22%20width%3D%2212%22%20height%3D%223%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%2213%22%20y%3D%225%22%20width%3D%226%22%20height%3D%224%22%20rx%3D%221%22%20fill%3D%22%23ddd%22/%3E%3Crect%20x%3D%2215%22%20y%3D%222%22%20width%3D%222%22%20height%3D%223%22%20fill%3D%22%23333%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2222%22%20width%3D%2212%22%20height%3D%223%22%20fill%3D%22%23ffd21c%22/%3E%3C/svg%3E"); background-color: #1f7a37; }
.ico-supersneakers { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M5%2020%20L7%2011%20L13%2011%20L15%2015%20L25%2017%20Q28%2018%2028%2021%20L28%2023%20L5%2023%20Z%22%20fill%3D%22%233bd13b%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22/%3E%3Crect%20x%3D%225%22%20y%3D%2223%22%20width%3D%2223%22%20height%3D%223%22%20rx%3D%221%22%20fill%3D%22%23fff%22/%3E%3Cpath%20d%3D%22M9%2011%20L3%207%20M11%2011%20L6%205%22%20stroke%3D%22%23ffe23a%22%20stroke-width%3D%222%22/%3E%3C/svg%3E"); background-color: #1f8a1f; }
.ico-coinmagnet { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M7%206%20L13%206%20L13%2017%20A3%203%200%200%200%2019%2017%20L19%206%20L25%206%20L25%2017%20A9%209%200%200%201%207%2017%20Z%22%20fill%3D%22%23e0241c%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22/%3E%3Crect%20x%3D%227%22%20y%3D%226%22%20width%3D%226%22%20height%3D%224%22%20fill%3D%22%23dadde2%22/%3E%3Crect%20x%3D%2219%22%20y%3D%226%22%20width%3D%226%22%20height%3D%224%22%20fill%3D%22%23dadde2%22/%3E%3C/svg%3E"); background-color: #9c1c14; }
.ico-doubleMultiplier { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%2213%22%20fill%3D%22%23ffd21c%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22/%3E%3Ctext%20x%3D%2216%22%20y%3D%2221.5%22%20font-family%3D%22Arial%20Black%2CArial%22%20font-weight%3D%22900%22%20font-size%3D%2214%22%20text-anchor%3D%22middle%22%20fill%3D%22%231f2b5a%22%3E2x%3C/text%3E%3C/svg%3E"); background-color: #d17a00; }
.ico-hoverboard { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Crect%20x%3D%223%22%20y%3D%2212%22%20width%3D%2226%22%20height%3D%227%22%20rx%3D%223.5%22%20fill%3D%22%23e23a1c%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20transform%3D%22rotate%28-15%2016%2016%29%22/%3E%3Crect%20x%3D%228%22%20y%3D%2214.5%22%20width%3D%2216%22%20height%3D%222%22%20fill%3D%22%23ffd21c%22%20transform%3D%22rotate%28-15%2016%2016%29%22/%3E%3C/svg%3E"); background-color: #b02010; }
.ico-headstart500, .ico-headstart2000, .hs-ico { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M6%208%20L14%2016%20L6%2024%20M15%208%20L23%2016%20L15%2024%22%20stroke%3D%22%23fff%22%20stroke-width%3D%224%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E"); background-color: #e07000; }
.ico-mysterybox { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Crect%20x%3D%225%22%20y%3D%227%22%20width%3D%2222%22%20height%3D%2220%22%20rx%3D%222%22%20fill%3D%22%23f2b01c%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22/%3E%3Crect%20x%3D%225%22%20y%3D%227%22%20width%3D%2222%22%20height%3D%224%22%20fill%3D%22%23d48a0a%22/%3E%3Ctext%20x%3D%2216%22%20y%3D%2224%22%20font-family%3D%22Arial%20Black%2CArial%22%20font-weight%3D%22900%22%20font-size%3D%2213%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%3E%3F%3C/text%3E%3C/svg%3E"); background-color: #b06a00; }
.hs-ico { display: block; width: 30px; height: 24px; background-color: transparent; background-size: contain; background-repeat: no-repeat; background-position: center; }
.box-art { width: 120px; height: 120px; margin: 10px auto; border-radius: 14px; background: linear-gradient(135deg, #f2b01c, #d48a0a); box-shadow: 0 6px 0 #9a5f00; display: flex; align-items: center; justify-content: center; animation: shake .5s ease-in-out infinite; }
.box-art .box-q { font-size: 70px; color: #fff; text-shadow: 0 3px 0 #9a5f00; }
.box-art.opened { animation: pop .4s ease-out; background: radial-gradient(#fff6b0, #ffcf3a); }
.box-art.opened .box-q { opacity: 0; }
@keyframes shake { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes pop { from { transform: scale(.6); } to { transform: scale(1); } }
.box-text { text-align: center; font-size: 26px; min-height: 32px; }

/* ---------------- v2: keys, closet, save me, daily challenge, awards (our own drawings) */
.key-ico { display: inline-block; width: 20px; height: 20px; vertical-align: middle; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='10' cy='16' r='7' fill='%2340b8ff' stroke='%23fff' stroke-width='2.5'/%3E%3Ccircle cx='10' cy='16' r='2.6' fill='%23173b78'/%3E%3Cpath d='M16 14h13v4h-2v4h-3v-4h-2v3h-3v-3h-3z' fill='%2340b8ff' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cup-ico { display: inline-block; width: 26px; height: 26px; vertical-align: middle; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 5h14v6a7 7 0 0 1-14 0z' fill='%23ffd21c' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M9 7H4v2a5 5 0 0 0 5 5M23 7h5v2a5 5 0 0 1-5 5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Crect x='14' y='17' width='4' height='6' fill='%23ffd21c'/%3E%3Crect x='9' y='23' width='14' height='4' rx='1' fill='%23ffd21c' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); }
.menu-wallet.keys { margin-left: 0; }
.menu-row2 { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 62px); left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.daily-chip { display: flex; align-items: center; gap: 8px; background: rgba(26, 30, 44, .62); color: #fff; padding: 5px 10px; border-radius: 12px; font-size: 16px; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.daily-chip b { color: #ffe23a; font-weight: normal; }
.daily-chip.done b { color: #7df95b; }
.awards-btn { position: relative; display: flex; align-items: center; justify-content: center; }
.awards-btn .dot { position: absolute; right: -4px; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 2px #fff; }
.word { display: flex; gap: 4px; justify-content: center; }
.word i { display: inline-flex; align-items: center; justify-content: center; font-style: normal; background: rgba(255,255,255,.18); border-radius: 5px; color: #ffe23a; }
.word.mini i { width: 15px; height: 19px; font-size: 13px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.word.mini i.got { background: #2a8fe8; }
.word.big { margin: 10px 0; flex-wrap: wrap; }
.word.big i { width: 36px; height: 44px; font-size: 30px; background: #dfe8f4; color: #13306b; box-shadow: inset 0 -3px 0 #b7c6dc; }
.word.big i.got { background: linear-gradient(#56b8ff, #1e74cf); color: #ffe23a; box-shadow: 0 3px 0 #0f4f94; }
.hud-word { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 66px); transform: translateX(-50%); background: rgba(26, 30, 44, .55); padding: 4px 8px; border-radius: 10px; }
.menu-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.graf-btn.me { color: #ff8be0; transform: rotate(-1deg); padding: 8px 22px; }
.daily-intro { font-family: system-ui, sans-serif; font-size: 13px; color: #5a7aa8; text-align: center; margin: 0; }
.streak { text-align: center; font-size: 17px; margin-top: 4px; }
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 8px; }
.rung { background: #fff; border-radius: 9px; padding: 5px 2px; text-align: center; box-shadow: 0 2px 0 #c3c9d4; display: flex; flex-direction: column; gap: 3px; align-items: center; font-size: 14px; }
.rung small { font-size: 11px; color: #5a7aa8; }
.rung span { display: flex; align-items: center; gap: 2px; }
.rung .coin-ico { width: 12px; height: 12px; }
.rung .smb { font-size: 11px; color: #a82ad9; line-height: 1.1; }
.rung.got { background: #dff5d6; }
.rung.today { box-shadow: 0 0 0 3px #ffb020; }
.wide-g { display: block; width: 100%; margin-top: 12px; }
/* save me */
.saveme { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8, 22, 48, .25); pointer-events: auto; }
.saveme-card { background: #fbfbf7; border-radius: 18px; padding: 16px 18px; width: min(80vw, 300px); text-align: center; color: #1d4b86; box-shadow: 0 6px 0 #c3c9d4, 0 14px 30px rgba(0,0,0,.3); animation: pop .3s ease-out; }
.saveme-title { font-size: 34px; color: #e23a1c; }
.saveme-clock { --p: 360deg; width: 76px; height: 76px; margin: 8px auto; border-radius: 50%; background: conic-gradient(#40b8ff var(--p), #dfe8f4 0); box-shadow: 0 0 0 5px #1d4b86, inset 0 0 0 10px #fbfbf7; }
.saveme-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; font-size: 24px; flex-wrap: wrap; }
.saveme-btn small { flex-basis: 100%; font-size: 12px; opacity: .9; }
.saveme-skip { margin-top: 10px; background: none; color: #5a7aa8; font-size: 15px; text-decoration: underline; }
/* closet */
.closet { position: absolute; inset: 0; pointer-events: auto; display: flex; flex-direction: column; }
.closet-top { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px 0; }
.closet-top .back { padding: 7px 12px; font-size: 17px; }
.tabs { display: flex; background: rgba(26, 30, 44, .55); border-radius: 12px; padding: 3px; gap: 3px; }
.tab { background: none; color: #cfe0f5; font-size: 16px; padding: 6px 10px; border-radius: 9px; }
.tab.on { background: linear-gradient(#56b8ff, #1e74cf); color: #fff; box-shadow: 0 2px 0 #0f4f94; }
.tabs.small { justify-content: center; background: #dfe8f4; margin: -4px auto 10px; width: max-content; }
.tabs.small .tab { color: #1d4b86; }
.tabs.small .tab.on { color: #fff; }
.closet-wallet { margin-left: auto; background: rgba(26, 30, 44, .6); padding: 3px 9px; border-radius: 10px; display: flex; gap: 5px; align-items: center; font-size: 17px; }
.closet-stage { flex: 1; position: relative; min-height: 120px; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; border-radius: 14px; font-size: 44px; line-height: 1; color: #fff; background: rgba(26, 30, 44, .45); }
.arrow.left { left: 8px; } .arrow.right { right: 8px; }
.closet-panel { position: relative; margin: 0 10px calc(env(safe-area-inset-bottom, 0px) + 10px); background: #fbfbf7; color: #1d4b86; border-radius: 18px; padding: 12px 14px 10px; box-shadow: 0 6px 0 #c3c9d4, 0 10px 24px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 8px; }
.c-name { font-size: 32px; text-align: center; line-height: 1; }
.c-blurb { font-family: system-ui, sans-serif; font-size: 13px; color: #5a7aa8; text-align: center; min-height: 2.4em; }
.c-outfits { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.chip { background: #dfe8f4; color: #1d4b86; border-radius: 10px; padding: 5px 9px; font-size: 15px; display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.chip small { font-size: 11px; color: #a15e00; }
.chip.own small { display: none; }
.chip.on { background: linear-gradient(#ffcf3a, #f59a00); color: #fff; box-shadow: 0 2px 0 #a15e00; }
.chip.on small { color: #fff; }
.c-progress { display: flex; flex-direction: column; gap: 3px; align-items: center; font-size: 13px; }
.bar-t { width: 100%; height: 10px; border-radius: 6px; background: #dfe8f4; overflow: hidden; }
.bar-t b { display: block; height: 100%; background: linear-gradient(90deg, #ffcf3a, #f59a00); }
.c-ability { background: #eaf3ff; border-radius: 10px; padding: 6px 10px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.c-ability b { color: #a82ad9; font-weight: normal; font-size: 17px; }
.c-ability span { font-family: system-ui, sans-serif; font-size: 12.5px; color: #36557f; }
.c-ability.plain span { color: #5a7aa8; }
.c-actions { display: flex; justify-content: center; min-height: 46px; align-items: center; }
.c-actions .btn { min-width: 160px; font-size: 22px; }
.price.big { font-size: 21px; padding: 10px 18px; }
.selected { font-size: 22px; color: #2f9f1e; }
.c-dots { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.c-dots i { width: 8px; height: 8px; border-radius: 50%; background: #c9d4e4; }
.c-dots i.own { background: #8fb7e8; }
.c-dots i.on { background: #f59a00; transform: scale(1.3); }
/* awards and trophies */
.award .medals { flex: 0 0 34px; display: flex; flex-direction: column; gap: 2px; align-items: center; }
.medals i { width: 12px; height: 12px; border-radius: 50%; background: #d6deea; }
.medals i.bronze.on { background: #d68a4a; } .medals i.silver.on { background: #b9c4d2; } .medals i.gold.on { background: #ffcc22; }
.award .txt small { font-size: 12px; }
.award .price { padding: 6px 8px; font-size: 15px; }
.done-badge { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #2f9f1e; color: #fff; text-align: center; line-height: 34px; font-size: 20px; }
.trophy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trophy-cell { background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 2px 0 #c3c9d4; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.trophy-cell b { font-size: 16px; }
.trophy-cell small { font-family: system-ui, sans-serif; font-size: 11px; color: #5a7aa8; }
.trophy-cell.locked .trophy-ico { filter: brightness(0) opacity(.25); }
.trophy-ico, .box-prize { display: block; width: 56px; height: 56px; background: no-repeat center / contain; }
.box-art { position: relative; }
.box-prize { position: absolute; inset: 18px; width: auto; height: auto; opacity: 0; }
.box-art.opened .box-prize { opacity: 1; animation: pop .4s ease-out; }
.box.super .box-art:not(.opened) { background: linear-gradient(135deg, #b46bff, #6a2ad9); box-shadow: 0 6px 0 #45188f; }
.box-sub { text-align: center; font-family: system-ui, sans-serif; font-size: 13px; color: #5a7aa8; min-height: 16px; }
.prize-coins { background-image: radial-gradient(circle at 40% 35%, #fff3a0 0 14%, #ffcc22 16% 50%, #e09a08 52% 62%, transparent 63%); }
.prize-keys { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='10' cy='16' r='7' fill='%2340b8ff' stroke='%23fff' stroke-width='2.5'/%3E%3Ccircle cx='10' cy='16' r='2.6' fill='%23173b78'/%3E%3Cpath d='M16 14h13v4h-2v4h-3v-4h-2v3h-3v-3h-3z' fill='%2340b8ff' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E"); }
.prize-token { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='13' fill='%23ff8be0' stroke='%23fff' stroke-width='2.5'/%3E%3Cpath d='M16 7l2.6 5.6 6 .7-4.5 4.1 1.2 6-5.3-3-5.3 3 1.2-6-4.5-4.1 6-.7z' fill='%23fff'/%3E%3C/svg%3E"); }
.prize-hoverboard { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='12' width='26' height='7' rx='3.5' fill='%23e23a1c' stroke='%23fff' stroke-width='1.5' transform='rotate(-15 16 16)'/%3E%3C/svg%3E"); }
.prize-headstart500, .prize-headstart2000 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 8l8 8-8 8M15 8l8 8-8 8' stroke='%23e07000' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.trophy-gem { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8 6h16l5 7-13 15L3 13z' fill='%2335d0ff' stroke='%23fff' stroke-width='1.5'/%3E%3Cpath d='M3 13h26M12 6l-3 7 7 15 7-15-3-7' fill='none' stroke='%23d8f6ff' stroke-width='1.2'/%3E%3C/svg%3E"); }
.trophy-bar { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4 23l4-11h16l4 11z' fill='%23ffc21a' stroke='%23fff' stroke-width='1.5'/%3E%3Cpath d='M9 13h14l-2 4H11z' fill='%23ffe680'/%3E%3C/svg%3E"); }
.trophy-clock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='18' r='10' fill='%23ffc21a' stroke='%23fff' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='18' r='7' fill='%23fff8dc'/%3E%3Cpath d='M16 18V13M16 18h4' stroke='%23333' stroke-width='1.6'/%3E%3Crect x='14' y='4' width='4' height='4' rx='1' fill='%23ffc21a'/%3E%3C/svg%3E"); }
.trophy-chain { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 5c2 9 6 13 11 13s9-4 11-13' fill='none' stroke='%23ffc21a' stroke-width='3' stroke-dasharray='3 1.5'/%3E%3Ccircle cx='16' cy='23' r='6' fill='%23ffc21a' stroke='%23fff' stroke-width='1.5'/%3E%3Ctext x='16' y='26.5' font-size='9' font-family='Arial' font-weight='900' text-anchor='middle' fill='%23a86b00'%3E%24%3C/text%3E%3C/svg%3E"); }
.trophy-skull { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 4a11 11 0 0 0-11 11c0 4 2 6 4 7v5h14v-5c2-1 4-3 4-7A11 11 0 0 0 16 4z' fill='%23ffc21a' stroke='%23fff' stroke-width='1.5'/%3E%3Ccircle cx='11.5' cy='15' r='3' fill='%23a86b00'/%3E%3Ccircle cx='20.5' cy='15' r='3' fill='%23a86b00'/%3E%3Cpath d='M13 24v3M16 24v3M19 24v3' stroke='%23a86b00' stroke-width='1.4'/%3E%3C/svg%3E"); }
.trophy-phones { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 19v-3a10 10 0 0 1 20 0v3' fill='none' stroke='%23333' stroke-width='3'/%3E%3Crect x='3' y='17' width='7' height='10' rx='3' fill='%23ff4fa0' stroke='%23fff' stroke-width='1.5'/%3E%3Crect x='22' y='17' width='7' height='10' rx='3' fill='%23ff4fa0' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); }
.trophy-vinyl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='13' fill='%23222' stroke='%23fff' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='16' r='9' fill='none' stroke='%23444' stroke-width='1'/%3E%3Ccircle cx='16' cy='16' r='4.5' fill='%23e8262b'/%3E%3Ccircle cx='16' cy='16' r='1' fill='%23fff'/%3E%3C/svg%3E"); }
.trophy-tape { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='8' width='26' height='17' rx='2' fill='%23333' stroke='%23fff' stroke-width='1.5'/%3E%3Crect x='6' y='10' width='20' height='6' fill='%23ffd21c'/%3E%3Ccircle cx='11' cy='19' r='2.5' fill='%23fff'/%3E%3Ccircle cx='21' cy='19' r='2.5' fill='%23fff'/%3E%3C/svg%3E"); }
.to-closet { width: 100%; text-align: left; color: #1d4b86; font-family: inherit; border: 3px dashed #ff8be0; }
.to-closet .go { flex: 0 0 auto; font-size: 18px; color: #c23aa0; }
.ico-closet { background-color: #c23aa0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='10' r='5' fill='%23ffd2b0' stroke='%23fff' stroke-width='1.5'/%3E%3Cpath d='M7 28c0-7 4-11 9-11s9 4 9 11z' fill='%23ffd21c' stroke='%23fff' stroke-width='1.5'/%3E%3Cpath d='M10 9a6 6 0 0 1 12 0z' fill='%23e8262b'/%3E%3C/svg%3E"); }
.boosted-tag { text-align: center; margin-top: 6px; font-size: 13px; color: #a82ad9; }
