/* Krossgatan: playful, accessible, mobile-first visual refresh */
:root{--ink:#183945;--muted:#526876;--paper:#f5f7f8;--card:#ffffff;--accent:#087c76;--line:#dce8e9;--focus:#caf4e5;--cross:#e8f7f4}
body{background:radial-gradient(circle at 100% 0%,#e6f6ff 0,transparent 30%),radial-gradient(circle at 0 400px,#e8fff1 0,transparent 25%),var(--paper);min-height:100vh}
header{background:linear-gradient(125deg,#153746,#135a63 65%,#137a75);padding:18px 18px}
header h1{font-family:Georgia,serif;letter-spacing:-.04em}
header p{font-size:14px}
.site-nav{background:#f5fff9;gap:6px;align-items:center;box-shadow:0 2px 13px #183a4610}
.site-nav a{transition:background .2s;color:#174f56}
.site-nav a:hover{background:#dcf3e7}
.site-nav .install-app{margin-left:auto;background:#1b645e;color:white;border:0;border-radius:99px;font-weight:800;font-size:13px;padding:9px 13px;min-height:38px;box-shadow:0 4px 10px #063e3620;cursor:pointer}
main{padding-top:18px}
.game-hero{display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden;margin:0 0 18px;background:linear-gradient(118deg,#145d69 0%,#087e77 65%,#0ba183 100%);border-radius:20px;color:#fff;min-height:170px;box-shadow:0 12px 28px #0a706029;padding:22px 26px;gap:20px}
.game-hero:before{content:'';position:absolute;right:-80px;bottom:-155px;width:340px;height:340px;border-radius:50%;background:#ffffff13}
.game-hero h2{font:clamp(28px,4vw,40px)/1.12 Georgia,serif;letter-spacing:-.04em;margin:8px 0 8px;color:white}
.game-hero p{color:#edffff;margin:0 0 12px}
.game-hero-copy{position:relative;z-index:1}
.hero-badge{display:inline-flex;padding:4px 10px;background:#ffffff27;border:1px solid #ffffff4d;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.02em}
.hero-meta{display:flex;flex-wrap:wrap;gap:8px}
.hero-meta span{font-size:12px;padding:6px 9px;border-radius:8px;background:#ffffff22;color:white}
.hero-art{position:relative;z-index:1;flex-shrink:0;transform:rotate(7deg)}
.mini-grid{display:grid;grid-template-columns:repeat(3,40px);gap:4px;background:#fff4;padding:5px;border-radius:10px;box-shadow:0 9px 15px #08372d24}
.mini-grid span{height:40px;display:grid;place-items:center;background:#fff;color:#145f59;font-size:23px;font-weight:900;border-radius:5px}
.mini-grid span:nth-child(3n){background:#ffe8a8}
.stats{gap:12px}
.stat{background:white;border:1px solid #dae8e7;border-radius:15px;padding:12px 16px;box-shadow:0 5px 16px #123c500b}
.stat strong{color:#14695f;font-size:27px}
.stat span{font-weight:600}
.panel{border-radius:18px;box-shadow:0 6px 26px #173e490a;border:1px solid #dde8e6}
.tabs{gap:7px}
.tab{border:1px solid #d3e6e1;background:#f0f8f5;color:#254b50;border-radius:12px;font-weight:800;transition:transform .15s,background .15s}
.tab:hover{transform:translateY(-1px);background:#e0f2ec}
.tab.active{color:white;border-color:#09766f;background:#0a8378;box-shadow:0 5px 12px #02746828}
.toolbar button,.nav button,.zoom button{transition:transform .15s,background .15s}
.toolbar button:hover,.nav button:hover,.zoom button:hover{transform:translateY(-1px)}
.toolbar .primary{background:#ffb951;border-color:#f0a83c;color:#46300d}
.toolbar .primary:hover{background:#ffcc75}
.pill{background:#e5f5ec;color:#245c4c;border:1px solid #cae9dc}
.puzzle-scroll{background:#edf5f5;border-color:#d6e6e4;border-radius:13px}
.crossword{background:#23555d;box-shadow:0 5px 16px #123c4920}
.cell{transition:background-color .12s}.cell.word-solved{animation:solvedPop .24s ease-out}
@keyframes solvedPop{50%{transform:scale(1.045)}}
.community-preview{background:#ffffff;border:1px solid #d8e9e4;border-radius:16px;display:flex;align-items:center;gap:13px;padding:13px 16px;margin:0 0 16px;box-shadow:0 4px 17px #163a4408}
.community-icon{width:43px;height:43px;flex-shrink:0;display:grid;place-items:center;border-radius:13px;background:#fff2cf;font-size:25px}
.community-copy{flex:1;min-width:0}.community-copy h2{font-size:15px;font-weight:800;margin:0 0 3px}.community-copy p{font-size:12px;color:#5b6f71;margin:0}
.coming-soon{background:#eff5fb;color:#376279;font-size:11px;font-weight:800;padding:6px 9px;border-radius:99px;white-space:nowrap}
.archive-note{margin:0 0 11px;color:var(--muted);font-size:12px}
.install-dialog{max-width:400px;border:1px solid #c9e7dd;border-radius:20px;padding:24px;box-shadow:0 14px 70px #102f3b60;color:#193d48}
.install-dialog::backdrop{background:#0c273b80;backdrop-filter:blur(2px)}
.install-dialog h2{font-family:Georgia,serif;margin:0 0 8px;font-size:27px}.install-dialog p{line-height:1.6}
.install-actions{display:flex;gap:9px;margin-top:18px}.install-actions button{flex:1;min-height:44px;padding:10px;background:#0b7f75;border:0;border-radius:11px;color:white;font:700 14px system-ui;cursor:pointer}.install-actions button:last-child{background:#ebf1f1;color:#235258}
.install-actions button[hidden]{display:none}
.confetti-layer{position:fixed;inset:0;pointer-events:none;z-index:10000;overflow:hidden}.confetti-layer span{position:absolute;top:-30px;width:10px;height:17px;border-radius:2px;animation:fall 2.8s ease-in forwards;opacity:.95}
@keyframes fall{0%{top:-30px;opacity:1}100%{top:105vh;transform:translateX(70px) rotate(560deg);opacity:0}}
@media(max-width:760px){
 header h1{font-size:31px}
 .game-hero{min-height:158px;padding:18px;border-radius:15px}.game-hero h2{font-size:29px}.game-hero p{font-size:13px}
 .hero-art{display:none}.hero-meta{gap:6px}.hero-meta span{font-size:11px;padding:4px 6px}
 .site-nav .install-app{margin-left:0;font-size:12px}
 .stats{gap:7px}.stat{padding:10px 9px;border-radius:11px}.stat strong{font-size:22px}.stat span{font-size:10px}
 .community-preview{padding:11px 12px;gap:9px}.community-icon{width:33px;height:33px;font-size:20px}.coming-soon{display:none}
 .tabs .tab{flex:1 1 32%;font-size:12px;padding:8px 5px;min-height:44px}
 .panel{padding:12px;border-radius:13px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
