/* Premium V2: real app chrome. Portrait remains single-screen and safe-area aware. */
:root{font-family:"Avenir Next",Avenir,"Trebuchet MS",system-ui,sans-serif;--v2-ink:#172149;--v2-secondary:#5b628f;--v2-card:#fffaf1;--v2-line:#e8dfd5}
.game-shell{background:#fffaf3;border:1px solid #fff4dd;box-shadow:0 8px 22px #21385b20,0 3px 0 #c2ccd341}
.game-heading{background:linear-gradient(145deg,#fffdf7,#fff7ed)}
.game-heading p{font-weight:800!important;letter-spacing:.45px!important;color:#606894}
.game-heading h2{font-weight:800!important;letter-spacing:-.35px!important;color:#101b43}
.game-heading .level-counter{font-weight:800;color:#142048}
.level-counter span{font-weight:650;color:#757c9a}
.journey-meter{background:linear-gradient(#d4d5d3,#e9e9e3);box-shadow:inset 0 1px 3px #52667230}
.journey-meter-fill{background:linear-gradient(#a0ff57 0,#46eb42 28%,#25c438 66%,#12a732 100%);box-shadow:inset 0 1px 1px #edffbd,0 1px 1px #1a922e5c}
.difficulty-badge{font-weight:750!important;box-shadow:0 2px 0 #dcc38320!important;border:1px solid #ead8ae}
.checkpoint-count{font-weight:750;background:linear-gradient(#fffdf6,#fff0d4);border:1px solid #ead6ab!important;color:#91611b;display:flex;align-items:center;gap:5px}
.checkpoint-count:not([hidden])::before{content:'★';display:grid;place-items:center;background:#ffdf6b;color:#ec8e10;border:1px dashed #bd8725;outline:2px solid #fff7dd;border-radius:3px;width:12px;height:15px;font-size:10px;line-height:1;transform:rotate(-4deg);flex:none}
#illustrated-brand{filter:drop-shadow(0 2px 1px #28466818)}
#illustrated-world{border-radius:11px;z-index:3}
.illustrated-art-ready .world-thumb-emoji{visibility:hidden}
.illustrated-art-ready #illustrated-world{display:block}
.language-switch{background:linear-gradient(140deg,#ffffffdd,#f8f4ff);border:1px solid #fffef8;box-shadow:inset 0 1px 2px #fff,0 3px 7px #5b719621}
.language-switch button{font-weight:750;color:#9a98af}
.language-switch button[aria-pressed="true"]{background:linear-gradient(#fff,#fffefa);box-shadow:0 2px 5px #63668023;color:#ef5a1d}
.game-advice{background:linear-gradient(160deg,#fffdfa,#fff4e2);border:1px solid #eae0d1;box-shadow:inset 0 1px 2px #fff;line-height:1.3;font-weight:600;color:#4a557c}
.game-advice-icon{display:flex;align-items:center;justify-content:center}
.game-advice-icon svg{width:24px;height:28px;overflow:visible}
.game-advice::after{content:'›';font-size:23px;font-weight:700;color:#7881a5;margin-left:auto;padding-left:5px}
.game-controls{background:linear-gradient(180deg,#fffdf8,#fbf5ed)}
#selected-label{font-weight:800!important;color:#19234a;letter-spacing:.1px!important}
#move-label{font-weight:500!important;color:#8590a7}
.selection-label::before{border-color:#be5b22!important;box-shadow:0 2px 1px #a6501e24!important;background:linear-gradient(#ffe7a7,#ffad57 35%,#f77928 75%,#d35019)!important}
#precision-toggle{font-weight:650;background:linear-gradient(#fffefc,#f7f2eb);border:1px solid #e0dcd9;box-shadow:0 2px 0 #d9d4cf;color:#515b85}
#reset-board{border:1px solid #dedbd7;background:linear-gradient(#fff,#f4f0e9);color:#314b88}
#rotate-left,#rotate-right,#angle-label,#select-next{border:1px solid #e2dfda;background:linear-gradient(150deg,#fffffc,#f7f2eb);box-shadow:0 3px 0 #d6d2cc;color:#263c77;overflow:hidden}
#rotate-left,#rotate-right{display:flex;flex-direction:column;gap:2px;font-size:0!important}
#rotate-left svg,#rotate-right svg{width:22px;height:22px;stroke-width:2.9;stroke:#273d78;fill:none}
#rotate-left::after,#rotate-right::after,#angle-label::after{font-size:7px;line-height:1.05;font-weight:600;color:#667297;white-space:nowrap}
#rotate-left::after{content:'Rotate left'}
#rotate-right::after{content:'Rotate right'}
#angle-label{display:flex;flex-direction:column;justify-content:center;gap:2px;font-weight:800;background:linear-gradient(150deg,#f1edf0,#fff9ef);color:#15274f}
#angle-label::after{content:'Current angle'}
html[lang="sv"] #rotate-left::after{content:'Vrid vänster'}
html[lang="sv"] #rotate-right::after{content:'Vrid höger'}
html[lang="sv"] #angle-label::after{content:'Vinkel'}
#select-next{font-weight:650!important;color:#54618b;background:linear-gradient(150deg,#fffefe,#eeeaf2)!important}
.primary-button#run-button{font-weight:800!important;letter-spacing:-.45px;text-shadow:0 2px 0 #c3451b,0 4px 4px #91301855;background:linear-gradient(#ffad25 0,#ff941b 18%,#ff7112 64%,#f24a10 100%);border:2px solid #e64d12;box-shadow:inset 0 2px 1px #fff8a8,inset 0 -2px 0 #d93b1077,0 4px 0 #b8451b,0 7px 11px #e678302e}
.illustrated-art-ready .primary-button#run-button::before{display:none!important;content:none!important}
.illustrated-art-ready .primary-button#run-button>svg{display:block!important;width:34px;height:30px;stroke:none;fill:none;transform:rotate(-4deg);filter:drop-shadow(0 3px 1px #b8401d88)}
.primary-button#run-button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 1px #fff8a8,0 2px 0 #b8451b}
.primary-button#run-button .button-spark{font-size:18px}
.help-row{padding-top:2px}
.help-row button{position:relative;overflow:visible;border:1px solid #e6dccd;box-shadow:inset 0 1px 2px #fff,0 3px 0 #e0d4c5;font-weight:700!important;color:#29365c;gap:5px;padding-right:12px!important}
.help-row button svg{width:25px!important;height:28px!important;stroke:none;filter:drop-shadow(0 2px 1px #74511a1a)}
.help-row button#hint-button{background:linear-gradient(140deg,#fffef9,#fff4ce)}
.help-row button#extra-button{background:linear-gradient(140deg,#fcffff,#ddecff);border-color:#d0dff1}
.help-row button#skip-button{background:linear-gradient(140deg,#fffff9,#e2f9d8);border-color:#d4e9cc}
.help-row button span[id$='-count']{position:absolute!important;right:5px;top:3px;margin:0!important;border:1px solid #ffffffb0;background:linear-gradient(#38416d,#232c53);box-shadow:0 1px 2px #17254422;color:#fff;font-weight:650;font-variant-numeric:tabular-nums}
.game-nav{border-top:1px solid #e9e1d6;background:linear-gradient(#fffcf8,#faf6f1);border-radius:0 0 22px 22px}
.game-nav button{font-weight:650!important;color:#69719b;gap:3px;border-radius:15px;box-shadow:none;background:transparent}
.game-nav button svg{height:23px;width:25px;stroke:#66709b;stroke-width:1.9;fill:none;filter:drop-shadow(0 1px 0 #fff)}
.game-nav button.active{background:linear-gradient(140deg,#fff5e8,#ffedd9);color:#ed5b1d}
.game-nav button.active svg{stroke:#ed5b1d}
#nav-play svg{stroke:none!important}
.game-nav button:active:not(:disabled){background:#f4ecdf;transform:scale(.97)}
.stage-status{background:linear-gradient(140deg,#17263de8,#253857df);border:1px solid #daeaf194;box-shadow:inset 0 1px 1px #ffffff18,0 2px 4px #0924402e;font-weight:700;letter-spacing:.2px}
.status-dot{background:#ffd071;box-shadow:0 0 7px #ffbb55}
.site-footer #save-status{font-weight:500;letter-spacing:0;color:#75839a}
@media(max-width:700px){
 .site-header{flex-basis:53px;min-height:53px;padding:4px 12px 6px}
 .game-heading{flex-basis:68px;min-height:68px;padding:7px 10px 4px}
 .game-heading>.icon-button{height:54px;width:54px;min-width:54px;flex-basis:54px}
 .game-heading h2{font-size:clamp(12px,3.4vw,16px);line-height:1.15}
 .game-heading p{font-size:8px;line-height:1.1}
 .game-heading .level-counter{font-size:25px}
 .journey-meter{height:8px}
 .challenge-strip{flex-basis:27px;min-height:27px;padding:1px 12px 5px}
 .game-advice{font-size:10px;min-height:35px;max-height:35px;flex-basis:35px}
 .game-controls{grid-template-rows:29px 46px 53px 46px;gap:6px 5px;padding:7px 8px 8px;border-radius:17px 17px 0 0}
 .game-controls #precision-toggle,.game-controls #reset-board{min-height:29px;height:29px}
 .game-controls .rotation-controls .rotate-button,.game-controls .rotation-controls #angle-label,.game-controls #select-next{min-height:46px;height:46px}
 .game-controls .rotation-controls #angle-label{font-size:21px}
 .game-controls #select-next{font-size:10px}
 .primary-button#run-button{min-height:53px;height:53px;font-size:26px;border-radius:15px}
 .help-row button{height:46px;min-height:46px;font-size:10px;padding-left:3px!important;gap:4px}
 .help-row button span[id$='-count']{font-size:8px;height:16px;min-width:16px;width:16px;right:4px;top:3px}
 .game-nav{flex-basis:53px;min-height:53px;padding:3px 5px 5px;gap:5px}
 .game-nav button{height:45px;min-height:45px;font-size:9px}
}
@media(max-width:370px){
 #illustrated-brand{width:170px}
 .site-header{min-height:43px;flex-basis:43px}
 .game-heading{min-height:58px;flex-basis:58px}
 .game-heading>.icon-button{height:45px;width:45px;min-width:45px;flex-basis:45px}
 .game-heading p{font-size:6.5px}
 .game-heading .level-counter{font-size:21px}
 .game-controls{gap:4px;padding:6px}
 .game-controls #select-next{font-size:9px}
 .help-row button{font-size:9px;padding-right:10px!important;gap:3px}
 .help-row button svg{width:20px!important;height:23px!important}
 .game-nav{gap:2px}
}
@media(max-width:700px) and (max-height:700px){
 .site-header{flex-basis:42px;min-height:42px}
 .game-heading{flex-basis:56px;min-height:56px}
 .game-heading>.icon-button{height:44px;min-width:44px;flex-basis:44px}
 .challenge-strip{flex-basis:24px;min-height:24px}
 .game-advice,.site-footer{display:none}
 .game-controls{grid-template-rows:26px 44px 46px 44px;gap:4px;padding:5px 7px}
 .game-controls #precision-toggle,.game-controls #reset-board{height:26px;min-height:26px}
 .game-controls .rotation-controls .rotate-button,.game-controls .rotation-controls #angle-label,.game-controls #select-next{height:44px;min-height:44px}
 .primary-button#run-button{min-height:46px;height:46px;font-size:23px}
 .help-row button{height:44px;min-height:44px}
 .game-nav{flex-basis:47px;min-height:47px;padding:1px 5px 2px}
 .game-nav button{height:44px;min-height:44px}
}
@media(prefers-reduced-motion:reduce){button{transition:none!important}}
/* The status message must not cover the real parcel spawn on compact boards. */
@media(max-width:700px){.stage-status{left:9px;transform:none;max-width:56%;font-size:8px;padding:6px 9px}}

/* 0.6.2 — ongoing levels: no catalogue size or percentage is presented. */
.game-heading .level-counter {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:flex-start;
  flex:0 0 auto;
  background:linear-gradient(165deg,#fff3dd,#ffdfac);
  border:1px solid #edc992;
  border-radius:12px;
  color:#9c4c1e;
  font-size:12px !important;
  font-weight:1000;
  padding:9px 11px;
  margin-top:3px;
  letter-spacing:.1px;
  white-space:nowrap;
  line-height:1.1;
  box-shadow:0 2px 0 #e1be91;
}
.level-ready-note {
  display:inline-block;
  color:#4c9364;
  font-size:9px;
  font-weight:900;
  letter-spacing:.5px;
  margin-top:1px;
}
.desktop-progress .progress-track {display:none}
@media(max-width:700px) {
  .game-heading .level-counter {font-size:10px !important;padding:8px 7px;margin:2px 0 0}
  .level-ready-note {font-size:8px;letter-spacing:.2px}
}

/* 0.7.1 native shop: proposed prices visible before activation. */
#modal-content .shop-price-disclosure {color:#63718a;background:linear-gradient(150deg,#f3f8ff,#fff7e9);border:1px solid #e2e6ed;border-radius:13px;padding:10px 12px;font-size:10px;line-height:1.5;margin:8px 0 13px}
#modal-content .shop-price-column{flex:0 0 auto;min-width:59px;text-align:right;line-height:1.1}
#modal-content .shop-price-column strong{font-weight:950;color:#e96f2b;font-size:13px;white-space:nowrap}
#modal-content .shop-price-column small{font-size:8px;color:#818aa2;margin:4px 0 0}
#modal-content .product:has(.shop-price-column){gap:7px;background:linear-gradient(145deg,#fffefa,#fff7ec);box-shadow:0 2px 0 #eadac9}
#modal-content .product:has(.shop-price-column) .product-icon{width:34px;height:34px}
#modal-content .product:has(.shop-price-column) button{min-width:76px;padding:7px 5px;font-size:9px;border-radius:10px;white-space:nowrap}
#modal-content .product:has(.shop-price-column) button:disabled{color:#818a9b;background:#eef0ef;border:1px solid #e0e1dc;opacity:1}
#modal-content .product:has(.shop-price-column) .product-details strong{font-size:11px}
#modal-content .product:has(.shop-price-column) .product-details small{font-size:9px}
@media(max-width:370px){#modal-content .product:has(.shop-price-column){flex-wrap:wrap}#modal-content .shop-price-column{margin-left:auto}#modal-content .product:has(.shop-price-column) button{min-width:78px}}

/* 0.8.0 – Free earned Fraktmynt, accessible garage, record UI. */
.game-heading .coin-hud{border:1px solid #f5d795;background:linear-gradient(145deg,#fff9df,#ffe9ac);padding:3px 8px;min-height:22px;border-radius:11px;color:#9a5c21;box-shadow:0 2px 0 #dfc39b;font-size:10px;font-weight:900;display:inline-flex;align-items:center;gap:4px;width:max-content;touch-action:manipulation}
.game-heading .coin-hud strong{font-size:12px;font-weight:1000;color:#8e4f18}
.game-heading .coin-hud:active{transform:translateY(1px);box-shadow:0 1px 0 #dfc39b}
.score-celebration{border:1px solid #f7d69c;border-radius:14px;padding:12px;margin:10px 0;background:linear-gradient(145deg,#fff9e3,#fff2d0);display:flex;flex-direction:column;gap:4px;align-items:center;color:#624518}
.score-celebration strong{font-size:20px;color:#172e55}
.score-celebration span{font-size:11px;color:#9d622b}
.score-celebration b{font-size:13px;color:#bb711f}
.garage-shop-link{margin-top:12px;background:linear-gradient(145deg,#fff9e5,#fbe8b9);color:#7a4b18}
.garage-hero{display:flex;justify-content:space-between;gap:9px;align-items:center;padding:16px 13px;border-radius:18px;background:linear-gradient(125deg,#173b69,#26305f);color:#fffbdf;box-shadow:0 5px 15px #162c5844}
.garage-wallet{display:flex;flex-direction:column;gap:4px;min-width:0}
.garage-wallet span{font-size:9px;font-weight:900;letter-spacing:1px;color:#b3dbff}
.garage-wallet strong{font-size:28px;font-weight:1000;line-height:1.05}
.garage-wallet small{font-size:9px;color:#e6eaff;line-height:1.35;max-width:195px}
.garage-score{font-size:18px;font-weight:900;text-align:center;white-space:nowrap}
.garage-score small{display:block;font-size:8px;letter-spacing:.3px;color:#aec9ea;margin-top:4px}
.garage-guide{font-size:11px;line-height:1.5;margin:13px 0;color:#68758a}
.garage-list{display:grid;gap:8px}
.garage-skin{display:flex;gap:9px;align-items:center;border:1px solid #e8e1d3;padding:8px;border-radius:14px;background:linear-gradient(130deg,#fffefa,#fff7ed);min-height:65px}
.garage-skin.is-active{border-color:#f5bd69;background:linear-gradient(130deg,#fff8e8,#fff0d4)}
.garage-avatar{flex:0 0 42px;width:42px;height:43px;border-radius:12px;background:linear-gradient(150deg,#fff8dc,var(--skin-color));box-shadow:inset 0 2px 2px #ffffff94,0 2px 0 #a6a9b9;display:grid;place-items:center}
.garage-avatar span{font-size:25px;filter:drop-shadow(0 2px 1px #31345933)}
.garage-details{flex:1;min-width:0}
.garage-details strong{display:block;font-size:12px;color:#1d2b4f}
.garage-details small{display:block;margin-top:3px;font-size:9px;color:#778197}
.garage-skin button{min-width:69px;min-height:36px;border:1px solid #f1d5ae;background:linear-gradient(#fff7e7,#ffde9f);border-radius:11px;color:#8b541f;font-size:10px;font-weight:900;padding:4px 6px;white-space:nowrap}
.garage-skin button:disabled{background:#e7e7ea;border-color:#d6d6da;color:#737688;opacity:1}
.garage-skin button:active:not(:disabled){transform:translateY(1px)}
.garage-skin button:focus-visible,.coin-hud:focus-visible{outline:3px solid #ffa72c;outline-offset:2px}
@media(max-width:370px){.garage-hero{padding:11px 9px}.garage-wallet strong{font-size:23px}.garage-score{font-size:15px}.garage-skin{gap:6px;padding:6px}.garage-skin button{min-width:61px;padding:3px}.game-heading .coin-hud{padding:3px 5px;font-size:9px}}

/* Skins depict the actual parcel with a themed accent, never a disembodied emoji. */
.garage-avatar{position:relative;overflow:hidden}.garage-avatar .parcel-preview{font-size:26px;line-height:1;filter:drop-shadow(0 1px 2px #23354b44)}.garage-avatar .theme-tag{position:absolute;font-size:12px;line-height:1;right:-1px;bottom:-1px;background:#fffeee;border-radius:6px;padding:2px;box-shadow:0 0 1px #4d527f44}
