:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:#0b1120;color:#f4f7ff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#0b1120}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #6ee2d0;outline-offset:3px} .page-glow{position:absolute;top:60px;left:50%;transform:translateX(-50%);width:min(1100px,98vw);height:620px;background:radial-gradient(ellipse at 25% 17%,#283a5d90,transparent 50%),radial-gradient(ellipse at 84% 12%,#125a5960,transparent 50%);pointer-events:none;z-index:0}.shell{position:relative;max-width:1190px;padding:0 30px;margin:auto}.site-header{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #263146;gap:16px}.brand{display:inline-flex;align-items:center;gap:12px;font-weight:850;letter-spacing:-1.2px;font-size:24px;white-space:nowrap}.brand-light{color:#56e0c8}.brand-mark{width:33px;height:33px;display:grid;grid-template-columns:repeat(2,12px);grid-template-rows:repeat(2,12px);gap:4px;transform:rotate(-10deg)}.brand-mark span,.brand-mark i{display:block;background:#68e8c8;border-radius:4px}.brand-mark i{background:#ffad6d;border-radius:50%}.header-right{font-size:12px;color:#b7c3d8;display:flex;gap:10px;align-items:center;letter-spacing:.02em}.live-dot,.saved-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#6be0c2;box-shadow:0 0 10px #6be0c2}.header-divider{height:15px;width:1px;background:#40506b;margin:0 9px}.header-time{color:#7d8aa6}.hero{display:flex;justify-content:space-between;align-items:center;min-height:350px;padding:52px 10px 52px 0;position:relative}.hero-copy{position:relative;z-index:1}.eyebrow,.section-kicker{color:#66e8cb;font-size:11px;font-weight:800;letter-spacing:2.1px}.sparkle{color:#ffb57c;font-size:16px}.eyebrow-line{display:inline-block;width:20px;height:1px;background:#566879;margin:0 9px 4px}.hero h1{font-size:clamp(39px,5.2vw,70px);letter-spacing:-3.7px;line-height:1.07;margin:22px 0 21px;font-weight:850}.hero h1 em{color:#6fe7c7;font-style:normal}.hero-copy>p{max-width:550px;line-height:1.7;color:#a7b4cb;font-size:17px;margin:0}.hero-tags{display:flex;gap:25px;color:#b9c6d7;font-size:12px;margin-top:24px;flex-wrap:wrap}.hero-tags span::first-letter{color:#fbb47a}.hero-art{display:grid;grid-template-columns:repeat(3,70px);grid-template-rows:repeat(3,70px);gap:12px;transform:rotate(13deg);margin-right:49px;flex-shrink:0;opacity:.94}.art-tile{background:#22354c;border:1px solid #46617b;border-radius:17px;display:grid;place-items:center;box-shadow:0 12px 18px #080f2050}.art-tile::before{content:"";height:25px;width:25px;border-radius:50%;border:7px solid #80dece}.art-d::before,.art-f::before{border-color:#6f9ab5}.art-e{background:#ffc07b;border-color:#f6ca92}.art-e::before{border:7px solid #1d364c;border-radius:7px}.art-spark{color:#ffd89d;position:absolute;right:-31px;top:-23px;font-size:37px;transform:rotate(-13deg)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 304px;gap:24px;align-items:start}.game-panel,.sidebar-card{background:#151f32;border:1px solid #2d3c53;box-shadow:0 15px 45px #03071235;border-radius:21px}.game-panel{padding:29px 32px 24px;min-width:0}.game-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.game-top h2{font-size:30px;letter-spacing:-1px;margin:8px 0}.game-top p{color:#a8b8d0;margin:0;font-size:14px}.challenge-pill{display:flex;align-items:center;gap:8px;background:#23413e;color:#a8ffe9;border:1px solid #326658;padding:10px 13px;border-radius:100px;font-size:10px;letter-spacing:1px;font-weight:800;white-space:nowrap}.pill-star{font-size:17px;color:#ffbf7b}.mode-tabs{display:flex;padding:5px;background:#0d1626;border-radius:12px;width:max-content;gap:4px;margin-top:25px;border:1px solid #28354a}.mode-tab{border:0;background:none;color:#8fa1bd;border-radius:8px;padding:11px 20px;font-size:13px;font-weight:700}.mode-tab.active{background:#25354b;color:#eaf9f6;box-shadow:0 1px 4px #0006}.difficulty-controls{margin:17px 0 -2px;align-items:center;gap:15px;font-size:13px;color:#98acc6}.difficulty-controls:not([hidden]){display:flex}.difficulty-controls select{background:#0d1829;color:#ecf8ff;border:1px solid #39475c;border-radius:9px;padding:9px}.game-status{display:flex;align-items:center;gap:16px;margin:24px 0 17px}.status-label{display:block;font-size:10px;font-weight:800;color:#758da7;letter-spacing:1.1px;margin-bottom:5px}.status-item{flex-shrink:0}.status-item strong{font-size:18px;font-weight:800;letter-spacing:1px;font-variant-numeric:tabular-nums}.timer-value{color:#6be3cf}.time-track{height:8px;background:#2c3b52;border-radius:100px;flex:1;overflow:hidden}.time-fill{height:100%;width:100%;border-radius:100px;background:linear-gradient(90deg,#59cabf,#b4efd0);transition:width .12s linear}.time-fill.low{background:#fa9a79}.align-right{text-align:right}.board-wrap{background:#0e1829;border:1px solid #344258;padding:22px;border-radius:17px;position:relative;min-height:355px;display:flex;align-items:center;justify-content:center}.puzzle-grid{--count:6;display:grid;grid-template-columns:repeat(var(--count),minmax(0,1fr));gap:clamp(5px,1.15vw,12px);width:min(100%,450px);margin:auto}.tile{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;border:1px solid #344c66;background:#1c2c42;border-radius:12px;color:#68dece;padding:7px;transition:background .12s,transform .12s,border-color .12s;position:relative}.tile:not(:disabled):hover{background:#28435a;transform:translateY(-2px);border-color:#74b6ba}.tile svg{width:78%;height:78%;overflow:visible;pointer-events:none}.tile:disabled{opacity:1}.tile.wrong{background:#55303e;border-color:#ff7a92}.tile.correct{background:#20584e;border-color:#68e8c8;box-shadow:0 0 0 2px #68e8c840}.tile.hinted{outline:3px dashed #ffcb8f;outline-offset:-2px}.tile:focus-visible{z-index:2}.feedback{font-size:13px;color:#a8bad0;text-align:center;min-height:40px;display:flex;align-items:center;justify-content:center;padding:8px 0}.feedback.success{color:#6debcf}.feedback.failure{color:#ffb1ac}.game-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #30415a;padding-top:20px;gap:12px;flex-wrap:wrap}.round-progress{display:flex;gap:7px}.round-progress span{width:25px;height:7px;background:#3b4a62;border-radius:30px}.round-progress span.current{background:#ffca8d}.round-progress span.won{background:#6de5c8}.round-progress span.lost{background:#d96a7f}.game-actions{display:flex;gap:10px}.primary-btn,.secondary-btn,.subtle-btn{border-radius:10px;padding:12px 17px;border:1px solid transparent;font-weight:800;font-size:13px}.primary-btn{background:#6be7c7;color:#09261e}.primary-btn:hover:not(:disabled){background:#8df3d7}.primary-btn:disabled{background:#305249;color:#799a90}.secondary-btn{background:#293b52;border-color:#435571;color:#e8f1fb}.subtle-btn{background:#223249;border-color:#3c4e64;color:#c5d2e4}.subtle-btn span{font-size:10px;opacity:.65}.subtle-btn:disabled{opacity:.5}.sidebar{display:grid;gap:17px}.sidebar-card{padding:24px}.sidebar-title{display:flex;justify-content:space-between;color:#92aac4;letter-spacing:1.6px;font-weight:800;font-size:11px;align-items:center}.stats-spark{color:#ffbc81;font-size:20px}.streak-visual{display:flex;gap:16px;align-items:center;margin:20px 0}.streak-visual>span{font-size:31px;width:56px;height:56px;display:grid;place-items:center;border-radius:15px;background:#253e47}.streak-visual strong{font-size:42px;line-height:1;display:block;letter-spacing:-1px}.streak-visual div span{font-size:12px;color:#b7c5d4}.stats-divider{height:1px;background:#304056;margin:17px 0}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.stats-grid strong{display:block;font-size:22px;letter-spacing:-.6px}.stats-grid small{color:#90a2bc;font-size:11px}.saved-note{display:flex;gap:8px;align-items:center;font-size:11px;color:#87a49d;margin-top:24px}.next-card{background:linear-gradient(135deg,#27384f,#17283d)}.next-card>strong{display:block;font-size:30px;font-variant-numeric:tabular-nums;letter-spacing:1px;margin:23px 0 8px}.next-card p,.tip p{font-size:12px;color:#a7b8cd;line-height:1.65;margin:0}.tip{display:flex;align-items:flex-start;gap:14px;margin-top:20px}.tip-number{color:#72e1ca;font-size:12px;font-weight:850}.below{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:87px 0 42px;background:#142235;border:1px solid #26394c;padding:45px 55px;border-radius:24px;overflow:hidden}.below h2{font-size:35px;letter-spacing:-1.5px;line-height:1.15;margin:12px 0}.below p{max-width:500px;line-height:1.75;color:#a3b6c9;margin:0}.below-decor{display:grid;grid-template-columns:repeat(2,70px);gap:12px;transform:rotate(-13deg);flex-shrink:0}.below-decor span{font-size:34px;color:#6ae5c9;background:#203650;border:1px solid #38516d;border-radius:13px;text-align:center;padding:14px}.below-decor span:last-child{color:#ffb878}.faq{margin:0 0 70px;display:grid;grid-template-columns:1fr;gap:8px}.faq details{border:1px solid #2a3b50;border-radius:11px;padding:16px 20px;background:#121d30}.faq summary{cursor:pointer;font-size:14px;font-weight:700}.faq p{color:#a9bbce;font-size:13px;line-height:1.6}.footer{border-top:1px solid #26364b;padding:30px 0 43px;display:flex;justify-content:space-between;align-items:center;gap:20px;color:#8295ad;font-size:11px;flex-wrap:wrap}.footer-brand{font-size:17px}.completion{position:absolute;inset:12px;z-index:3;background:#132235f8;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:20px}.completion[hidden]{display:none}.completion-medal{width:65px;height:65px;background:#28574c;color:#71e8c9;border-radius:20px;display:grid;place-items:center;font-size:40px}.completion h3{font-size:27px;letter-spacing:-1px;margin:0}.completion p{font-size:13px;color:#acc1cf;margin:0}.completion-score{font-size:42px;font-weight:850;color:#76e9cc}.completion .primary-btn,.completion .secondary-btn{min-width:180px}@media(max-width:960px){.hero-art{grid-template-columns:repeat(3,51px);grid-template-rows:repeat(3,51px);gap:8px;margin-right:9px}.workspace{grid-template-columns:minmax(0,1fr) 260px}.game-panel{padding:23px}.sidebar-card{padding:19px}}@media(max-width:760px){.shell{padding:0 17px}.site-header{height:76px}.header-right{font-size:11px}.header-time,.header-divider{display:none}.hero{padding:49px 0 31px;min-height:auto}.hero h1{letter-spacing:-2.4px}.hero-copy>p{font-size:15px}.hero-art{display:none}.workspace{grid-template-columns:1fr}.sidebar{grid-template-columns:1fr 1fr}.tips-card{grid-column:span 2}.game-panel{padding:20px}.board-wrap{padding:14px;min-height:310px}.below{margin:57px 0 34px;padding:28px}.below-decor{display:none}}@media(max-width:450px){.brand{font-size:20px}.brand-mark{transform:scale(.86) rotate(-10deg)}.header-right{font-size:9px}.hero h1{font-size:40px}.hero-tags{gap:13px;font-size:11px}.game-top h2{font-size:25px}.challenge-pill{font-size:9px;padding:8px}.game-panel{padding:16px 13px}.mode-tab{padding:10px 13px}.board-wrap{padding:9px;min-height:290px}.puzzle-grid{gap:5px}.tile{border-radius:7px;padding:4px}.sidebar{grid-template-columns:1fr}.tips-card{grid-column:span 1}.game-bottom{justify-content:center;gap:17px}.game-actions{width:100%;justify-content:space-between}.below h2{font-size:30px}.footer{font-size:11px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}


/* Challenge v2: stronger hierarchy, meaningful difficulty accents and responsive puzzle surfaces */
.hero { border-bottom: 1px solid #273951; margin-bottom: 24px; }
.hero-copy > p { max-width: 650px; }
.game-panel { background: linear-gradient(148deg,#1b2a40,#111b2b 65%); border-color:#37516b; }
.challenge-meta { display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:21px;flex-wrap:wrap; }
.difficulty-pill { display:inline-flex;align-items:center;border:1px solid #356b68;border-radius:100px;background:#153d3a;color:#9af6db;font-size:11px;font-weight:800;letter-spacing:.05em;padding:8px 14px; }
.precision-note { font-size:10px;font-weight:800;letter-spacing:1.25px;color:#819bb2; }
.board-wrap { background:radial-gradient(ellipse at 50% 30%,#23334c,#0b1527 73%);border-color:#39506c; }
.puzzle-grid { width:min(100%,485px); }
.tile { background:linear-gradient(145deg,#243851,#1b2940);border:1px solid #47637d;position:relative;box-shadow:inset 0 1px #ffffff0c; }
.tile svg { width:82%;height:82%; }
.tile:not(:disabled):hover {background:#36536a;border-color:#8fe5d8;}
.puzzle-grid[data-palette="0"] .tile {color:#72e6d1}
.puzzle-grid[data-palette="1"] .tile {color:#ffca92}
.puzzle-grid[data-palette="2"] .tile {color:#c2a9ff}
.puzzle-grid[data-palette="3"] .tile {color:#9ccafb}
.tile.hinted { outline:2px solid #fbc38a;outline-offset:-2px;background:#3b3640; }
.tile.correct {background:#19594f;border-color:#6defcd;box-shadow:0 0 0 2px #65eac955}
.tile.wrong {background:#623642;border-color:#fd7f9d;}
.difficulty-controls select {color:#d5faf0;border-color:#446677;}
.point-summary {padding:15px 0;margin-top:12px;border-bottom:1px solid #304056;display:flex;justify-content:space-between;align-items:center;gap:7px;}
.point-summary span {font-size:10px;font-weight:800;letter-spacing:1px;color:#a6bbd2;}
.point-summary strong {font-size:27px;font-weight:850;color:#92f4d6;font-variant-numeric:tabular-nums;}
.stats-divider {margin:18px 0 15px;}
.feedback {line-height:1.6;font-weight:500;}
@media(max-width:450px){.tile{border-radius:6px;padding:3px}.puzzle-grid{gap:4px}.game-status{gap:9px}.precision-note{font-size:9px}.game-panel{padding:18px 12px}.board-wrap{padding:8px}.difficulty-pill{font-size:10px}}
