:root{--paper:#f7f3e9;--ink:#222844;--muted:#77798a;--coral:#f27462;--teal:#53b9ab;--yellow:#f4c755;--blue:#7188d6;--line:#e9e3d6;--white:#fffdf7;--shadow:0 18px 45px rgba(42,43,67,.11);font-family:'DM Sans',system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 78% 20%,rgba(244,199,85,.12),transparent 34%),var(--paper)}button{font:inherit;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:4px}.app-shell{max-width:1180px;margin:auto;padding:0 36px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font:900 18px 'Nunito',sans-serif;letter-spacing:1.2px;text-decoration:none;color:var(--ink)}.brand-mark{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:var(--coral);color:#fff9e8;font-size:23px}.brand-dot{color:var(--coral)}.top-note,.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.7px;color:var(--muted)}.top-note b{color:var(--ink)}.icon-button{border:1px solid var(--line);background:var(--white);border-radius:50%;width:36px;height:36px;font-weight:800;cursor:pointer}.screen{flex:1;min-height:600px}.home-screen{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:42px;padding:34px 20px 50px}.eyebrow{display:inline-flex;align-items:center;gap:9px}.eyebrow i{width:8px;height:8px;border-radius:50%;display:inline-block;background:var(--teal);box-shadow:0 0 0 4px rgba(83,185,171,.15)}h1,h2{font-family:'Nunito',system-ui,sans-serif;font-weight:900;letter-spacing:-1.8px}.hero-copy h1{font-size:clamp(42px,5.4vw,67px);line-height:1.04;margin:24px 0 18px}.hero-copy h1 span{color:var(--coral)}.hero-copy p{max-width:420px;line-height:1.75;color:var(--muted);font-size:15px;margin:0 0 28px}.primary-button{border:0;border-radius:14px;padding:15px 21px;background:var(--ink);color:#fffdf7;font-weight:800;box-shadow:0 8px 18px rgba(34,40,68,.16);cursor:pointer;transition:transform .18s,box-shadow .18s}.primary-button:hover{transform:translateY(-2px);box-shadow:0 12px 22px rgba(34,40,68,.2)}.primary-button span{margin-left:18px;color:#f4c755;font-size:18px}.best-line{margin-top:28px;color:var(--muted);font-size:10px;letter-spacing:1.1px;font-weight:800}.best-line strong{margin-left:10px;color:var(--ink);font-size:15px}.best-line>span{letter-spacing:0;font-weight:500}.hero-art{height:425px;position:relative;display:grid;place-items:center}.hero-card{position:absolute;width:252px;height:326px;border:2px solid var(--ink);border-radius:27px;background:var(--white);box-shadow:var(--shadow)}.card-back{transform:rotate(12deg) translate(28px,2px);background:#f4c755;display:grid;place-items:center}.back-stamp{border:2px solid var(--ink);border-radius:50%;height:100px;width:100px;display:grid;place-items:center;font-size:65px;color:var(--ink)}.back-caption{position:absolute;bottom:24px;font-size:11px;letter-spacing:2px;font-weight:900}.card-front{transform:rotate(-8deg) translate(-10px,-4px);display:block;overflow:hidden}.hero-symbol{position:absolute;width:78px;height:78px}.hero-symbol svg{width:100%;height:100%}.hero-star{top:34px;left:32px;color:var(--yellow)}.hero-mushroom{right:22px;top:57px;color:var(--coral)}.hero-flower{left:40px;bottom:43px;color:var(--teal)}.hero-rocket{right:28px;bottom:37px;color:var(--blue)}.match-burst{position:absolute;top:136px;left:86px;transform:rotate(9deg);padding:8px 12px;background:var(--coral);color:white;font-weight:900;font-size:12px;letter-spacing:1px;border:2px solid var(--ink);border-radius:12px;box-shadow:3px 3px 0 var(--ink)}.spark{position:absolute;font-size:30px;color:var(--coral)}.spark-a{top:27px;right:65px}.spark-b{bottom:54px;left:20px;color:var(--teal);font-size:24px}.hero-caption{position:absolute;bottom:4px;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.4px}.game-screen{padding:44px 0 30px}.game-heading{display:flex;align-items:center;justify-content:space-between}.game-heading h1{font-size:34px;margin:9px 0}.text-button{border:0;background:none;color:var(--muted);font-weight:700;cursor:pointer;padding:10px}.text-button:hover{color:var(--coral)}.text-button span{font-size:22px;margin-left:6px;vertical-align:-2px}.scorebar{display:grid;grid-template-columns:100px 1fr 100px;align-items:center;gap:25px;margin:26px auto 12px;max-width:700px}.score-box,.timer-box{display:flex;flex-direction:column;gap:3px}.score-box span,.timer-box span,.round-box>span{font-size:9px;letter-spacing:1.5px;color:var(--muted);font-weight:900}.score-box strong,.timer-box strong{font:900 25px 'Nunito',sans-serif}.timer-box{text-align:right}.timer-box.warning strong{color:var(--coral)}.round-box{text-align:center}.progress-track{height:6px;background:#eae4d9;border-radius:8px;margin-top:8px;overflow:hidden}.progress-track i{height:100%;display:block;width:0;background:var(--teal);border-radius:8px;transition:width .3s}.game-message{height:28px;text-align:center;margin:9px 0 12px;color:var(--muted);font-weight:700;font-size:13px}.game-message.correct{color:#339887}.game-message.wrong{color:var(--coral)}.cards-stage{display:flex;align-items:center;justify-content:center;gap:30px;min-height:350px}.play-card{width:min(37vw,330px);height:min(37vw,330px);min-width:255px;min-height:255px;position:relative;border:2px solid var(--ink);background:var(--white);border-radius:50%;box-shadow:var(--shadow);flex:none}.versus{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:var(--paper);font-size:9px;font-weight:900;letter-spacing:1px;color:var(--muted);flex:none;z-index:1}.card-symbol{position:absolute;width:26%;height:26%;border:0;background:none;border-radius:50%;display:grid;place-items:center;padding:3px;cursor:pointer;transform:translate(-50%,-50%);transition:transform .16s,background .16s}.card-symbol:hover{transform:translate(-50%,-50%) scale(1.16);background:rgba(244,199,85,.18)}.card-symbol svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 3px 0 rgba(34,40,68,.08))}.card-symbol:nth-child(3n){width:21%;height:21%}.card-symbol:nth-child(4n){width:23%;height:23%}.card-symbol.picked svg{animation:pop .34s ease}@keyframes pop{50%{transform:scale(1.35) rotate(10deg)}}.game-footer{display:flex;justify-content:space-between;max-width:700px;margin:6px auto;color:#a09e9a;font-size:9px;font-weight:800;letter-spacing:.8px}.game-footer kbd,dialog kbd{font:800 10px 'DM Sans';color:var(--ink);background:#fffdf8;padding:3px 6px;border-radius:5px;border:1px solid var(--line)}.results-screen{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px 0}.result-mark{font-size:44px;color:var(--yellow);margin-bottom:8px}.results-screen h1{font-size:48px;margin:13px 0 5px}.results-screen>p{color:var(--muted);max-width:360px;line-height:1.6}.final-score{margin:23px 0;display:flex;flex-direction:column;align-items:center}.final-score span{font-size:10px;letter-spacing:1.8px;font-weight:900;color:var(--muted)}.final-score strong{font:900 76px 'Nunito';line-height:1.1}.final-score small{color:var(--muted)}.results-screen .text-button{margin-top:7px}footer{height:58px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:6px;color:#aaa69e;font-size:9px;letter-spacing:1.4px;font-weight:800}footer span{color:#77798a}dialog{border:1px solid var(--line);border-radius:22px;padding:34px;max-width:440px;width:calc(100% - 32px);color:var(--ink);background:var(--white);box-shadow:0 25px 90px #22284433}dialog::backdrop{background:#22284488;backdrop-filter:blur(3px)}dialog h2{font-size:36px;margin:12px 0}dialog p{color:var(--muted);line-height:1.7;font-size:14px}.rules-small{font-size:12px!important}.dialog-close{position:absolute;right:18px;top:15px;border:0;background:none;font-size:26px;cursor:pointer;color:var(--muted)}dialog .primary-button{margin-top:10px}[hidden]{display:none!important}
@media(max-width:760px){.app-shell{padding:0 20px}.topbar{height:70px}.home-screen{grid-template-columns:1fr;gap:0;padding:36px 6px 30px;align-content:center}.hero-copy{z-index:1}.hero-copy h1{font-size:48px;margin:20px 0 14px}.hero-copy p{font-size:14px;max-width:340px}.hero-art{height:310px;margin-top:-2px}.hero-card{width:205px;height:260px;border-radius:23px}.back-stamp{height:78px;width:78px;font-size:48px}.hero-symbol{width:62px;height:62px}.hero-star{top:29px;left:28px}.hero-mushroom{right:21px;top:44px}.hero-flower{left:34px;bottom:33px}.hero-rocket{right:26px;bottom:30px}.match-burst{top:105px;left:69px}.hero-caption{bottom:0}.spark-a{right:26px}.screen{min-height:calc(100vh - 128px)}.game-screen{padding:30px 0}.game-heading h1{font-size:27px}.scorebar{grid-template-columns:62px 1fr 62px;gap:12px;margin-top:18px}.cards-stage{min-height:0;gap:10px;flex-direction:column;padding:8px 0}.play-card{width:min(76vw,320px);height:min(76vw,320px);min-width:0;min-height:0}.versus{width:27px;height:27px;font-size:8px;margin:-1px 0}.card-symbol{width:25%;height:25%}.game-message{margin:7px 0;height:34px}.game-footer{font-size:8px;gap:8px}.game-footer span:last-child{text-align:right}.results-screen h1{font-size:40px}.top-note{font-size:8px;letter-spacing:1px}}
@media(max-height:760px) and (min-width:761px){.home-screen{padding-top:12px;padding-bottom:20px}.hero-art{height:355px}.game-screen{padding-top:25px}.cards-stage{min-height:300px}.play-card{width:min(34vw,290px);height:min(34vw,290px)}}
