/* Shared visual identity. Gameplay and access rules remain in each game. */
body.premium-game{--gold:#eac17b;--muted:#c7b9c4;--border:#513746;--white:#f8f2eb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;background:radial-gradient(ellipse at 80% 0,#3c253830,transparent 55%),#130e16;color:#f8f2eb}
.premium-game :is(h1,h2,h3){letter-spacing:-.035em}.premium-game button,.premium-game a{touch-action:manipulation}.premium-game button:focus-visible,.premium-game a:focus-visible{outline:3px solid #eac17b;outline-offset:4px}.premium-game .brand{color:#eac17b;letter-spacing:.08em;font-weight:700}.premium-game :is(.panel,.history-card,.board-shell,.questioncard,.modal-card,.modal .card,.quota,.play){background:linear-gradient(145deg,#2d1d2a,#1c1520);border:1px solid #513746;box-shadow:0 18px 50px #0003;border-radius:22px}.premium-game :is(.primary,.btn-main,.control.primary){background:linear-gradient(115deg,#f5d798,#cb963f);border:1px solid #eac17b;border-bottom-width:1px;color:#291c13;box-shadow:0 7px 22px #0003;border-radius:12px;font-weight:750}.premium-game :is(.secondary,.btn-secondary,.icon-btn,.sound,.help){border:1px solid #634658;background:#2b1e2b;color:#f8f2eb;border-radius:12px}.premium-game :is(.pill,.badge,.level-tag){background:#eac17b0b;border:1px solid #82613f;color:#eac17b}.premium-game :is(.hint,.small-note,.muted,.tag,.foot,.footnote,.game-tip){color:#bdacbb}.premium-game header,.premium-game .top{border-bottom:1px solid #513746;padding-bottom:20px;margin-bottom:22px}.premium-game .price-float{position:static;transform:none;background:#241a25;border:1px solid #614533;box-shadow:none;color:#f5e7d3}.premium-eyebrow{color:#eac17b;font-size:10px;letter-spacing:.16em;font-weight:700}.game-portrait{width:88px;height:112px;object-fit:cover;object-position:center 20%;border-radius:20px;border:1px solid #95714b;flex-shrink:0}
/* Snake */
.snake-page .wrap{max-width:740px;padding:24px 20px 44px}.snake-page .hero{align-items:center;gap:20px;margin:28px 0}.snake-page h1{font-size:clamp(28px,6vw,40px);margin:8px 0 12px}.snake-page .hero p{font-size:15px;line-height:1.65;color:#cbbdca;max-width:450px}.snake-page .board-shell{padding:20px;max-width:580px;margin:auto}.snake-page canvas{max-width:480px;width:100%;height:auto;border:1px solid #624456;border-radius:14px;display:block;margin:auto}.snake-page .hud{gap:12px;margin-bottom:16px}.snake-page .stat{background:#130e1680;border:1px solid #513746;border-radius:12px}.snake-page .stat b{color:#eac17b}.snake-page .controls button,.snake-page .dpad button,.snake-page .mobile-pause{background:#352536;border:1px solid #6c4e63;color:#f8f2eb;box-shadow:none}.difficulty{display:flex;gap:8px;padding:0;border:0;margin:0 auto 20px;max-width:580px}.difficulty legend{font-size:12px;color:#d3bfcc;margin-bottom:10px}.difficulty label{flex:1;padding:12px 8px;border:1px solid #513746;border-radius:12px;background:#211822;font-size:14px;cursor:pointer}.difficulty label:has(:checked){border-color:#eac17b;background:#3c2b2b;color:#ffe2ad}.difficulty small{display:block;color:#bdacbb;font-size:10px;margin:5px 0 0 23px}.difficulty input{accent-color:#d4ad6a}.snake-page .history-card,.snake-page .panel{margin-top:24px}.snake-page .cta-row{max-width:580px;margin:18px auto}.snake-page .hint{line-height:1.5}.snake-page .item{background:#211822;border:1px solid #513746}
/* Quiz */
.quiz-page .app{width:min(100%,760px);max-width:760px;padding:24px}.quiz-page .title{font-size:clamp(30px,6vw,44px);color:#f8f2eb;text-shadow:none;margin:20px 0 8px}.quiz-page .title b{color:#eac17b}.quiz-page .tag{letter-spacing:.04em}.quiz-page .mascot{gap:20px;margin:22px auto}.quiz-page .face{width:94px;height:112px;object-fit:cover;object-position:center 20%;border-radius:22px;border:1px solid #987146;background:#291c27;box-shadow:0 12px 30px #0004}.quiz-page .bubble{background:#2b1e2b;border:1px solid #624658;color:#eadbdf;box-shadow:none;font-size:14px;line-height:1.6}.quiz-page .bubble:before,.quiz-page .bubble:after{display:none}.quiz-page .choose button{background:#211822;border-color:#634658;color:#ded1da}.quiz-page .choose .active{border-color:#eac17b;background:#44322b;color:#ffe6b4}.quiz-page .option{background:#251b28;border:1px solid #624658;border-radius:14px;box-shadow:none;color:#f8f2eb;min-height:62px}.quiz-page .option:hover:not(:disabled){background:#3d2d3d;border-color:#eac17b}.quiz-page .letter{background:#ead1a1;color:#34221c;border-radius:8px}.quiz-page .question{font-size:clamp(19px,4vw,25px);line-height:1.4;color:#f8f2eb}.quiz-page .topic,.quiz-page .score strong,.quiz-page .round{color:#eac17b}.quiz-page .score,.quiz-page .round,.quiz-page .helpbar{background:transparent;border-color:#513746}.quiz-page .feedback{background:#211822;border-color:#816b47}.quiz-page .questioncard{padding:22px}.quiz-page .progress i,.quiz-page .progress span{background:#513746}.quiz-page .app.playing{height:auto;min-height:100dvh;max-height:none;overflow:visible}.quiz-page .options{gap:10px}.quiz-page .app.playing .face{width:62px;height:72px}.quiz-page .app.playing .mascot{margin:12px 0}
/* Memory: card faces and backs intentionally retain their existing colors. */
.memory-page .shell{width:min(100%,760px);padding-left:20px;padding-right:20px}.memory-page .intro{gap:14px;padding-top:15px}.memory-page .intro .mascot{width:100px;height:118px;transform:none;border:1px solid #9e7b50;border-radius:22px;box-shadow:0 12px 30px #0004}.memory-page .intro h1{font-weight:750;font-size:clamp(29px,6vw,42px)}.memory-page .intro h1 em{color:#eac17b}.memory-page .intro p{color:#c9b9c5;max-width:480px;line-height:1.6}.memory-page .level-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:8px}.memory-page .level-tile{background:#2b1f2e;border:1px solid #614659;border-radius:12px;min-height:62px}.memory-page .level-tile strong{font-size:19px;font-weight:650;color:#f3ddb9}.memory-page .level-tile span{color:#c4b2c1}.memory-page .level-tile.done{background:#25463f;border-color:#6da58f}.memory-page .steps{grid-template-columns:repeat(50,1fr);gap:2px}.memory-page .speech .balloon{background:#2b1e2b;border-color:#624658;font-weight:500}.memory-page .stat{background:#2b1e2b;border-color:#513746}.memory-page .showcase{margin-bottom:8px}.memory-page .word-card{background:linear-gradient(135deg,#fff2d5,#f5d39e);color:#593a40}.memory-page .word-card .symbol{font-size:clamp(10px,2.8vw,14px);font-weight:850;letter-spacing:-.03em;filter:none}.memory-page .game-top{margin:4px 0 14px}.memory-page .shell.playing{max-width:680px}.memory-page .shell.playing .topline{margin-bottom:10px;padding-bottom:10px}.memory-page .game-label small{color:#bfaebb}
/* Challenges */
.challenge-page .shell{max-width:1080px;padding:24px}.challenge-page .hero{padding:20px 0 28px}.challenge-page .hero h1{font-size:clamp(32px,6vw,50px);font-weight:700}.challenge-page .eyebrow{color:#eac17b;letter-spacing:.14em}.challenge-page .hero p{color:#c7b7c4;line-height:1.7;max-width:650px}.challenge-page .tile{position:relative;background:linear-gradient(145deg,#322232,#201723);border:1px solid #624658;border-radius:20px;padding:0 20px 20px;overflow:hidden;box-shadow:0 12px 30px #0003;text-align:left}.challenge-page .tile strong{color:#f7eadf;font-size:20px;font-weight:650;line-height:1.3}.challenge-page .tile .level{color:#d8bc8e}.challenge-page .tile .tile-action{color:#eac17b;border-color:#634b53}.challenge-page .tile-top{padding-top:16px}.challenge-page .tile-top .emoji{display:none}.challenge-page .tile-description{color:#c6b5c2;font-size:13px;line-height:1.5;display:block;margin:10px 0}.challenge-page .category-chip,.challenge-page .catalog-pager button,.challenge-page .control,.challenge-page .actions button{background:#2b1e2b;border:1px solid #634658;color:#eddfdf;border-radius:10px}.challenge-page .category-chip.current{border-color:#eac17b;color:#eac17b;background:#3d2b2c}.challenge-page .board{background:#17131d;border:1px solid #513746;border-radius:18px}.challenge-page .instructions{background:#261c2b;color:#dacbd5;border-color:#624658;line-height:1.7}.challenge-page .bank{background:#261f28;border-color:#5f5550;color:#f5e8d7}.challenge-page .tap{background:#3a2d3a;border:1px solid #69536a;color:#f0e3e6}.challenge-page .tap.selected{background:#584534;border-color:#efcb85}.challenge-page .status{color:#d8c7d2;background:#211a26}.challenge-page .tap strong{display:block;font-size:28px}.challenge-page .gameCenter{width:100%}.challenge-page .tile-art{height:130px;margin:0 -20px;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 85%,#92704133,transparent 70%),#1b1722}.tile-art svg{width:100%;height:100%}.crossing-scene{position:relative;overflow:hidden;height:230px;background:#101d2c;border-radius:16px;margin:0 0 18px}.crossing-scene svg{width:100%;height:100%}.crossing-scene .vessel{transition:transform .65s ease}.crossing-scene .river-label{font-size:12px;fill:#e7d7b5;letter-spacing:2px}.crossing-scene .passenger-text{font-size:15px;fill:#fff1ca}.challenge-page .columns{gap:14px}.challenge-page .boatbanner{color:#eac17b;background:transparent}.challenge-page .light.on{box-shadow:0 0 20px #eac17b55}.challenge-page .peg{background-color:#241d29}.challenge-page .footnote{line-height:1.6}
@media(max-width:600px){.premium-game header,.premium-game .top{margin-bottom:14px;padding-bottom:14px}.snake-page .wrap,.quiz-page .app,.challenge-page .shell{padding:16px}.snake-page .board-shell{padding:12px}.snake-page .hero{gap:12px}.game-portrait{width:72px;height:92px}.snake-page .hero p{font-size:13px}.difficulty label{padding:10px 5px;font-size:12px}.difficulty small{font-size:9px;margin-left:5px}.memory-page .level-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.memory-page .shell{padding-left:14px;padding-right:14px}.memory-page .shell.playing{padding-left:10px;padding-right:10px}.quiz-page .questioncard{padding:16px}.quiz-page .option{min-height:54px}.challenge-page .tile-art{height:112px}.challenge-page .tile strong{font-size:17px}.crossing-scene{height:190px}.challenge-page .bank{padding:10px 6px}.challenge-page .tap{padding:9px 5px;font-size:11px}.premium-game .brand{font-size:10px}.quiz-page .price-float{display:none}}
@media(prefers-reduced-motion:reduce){.crossing-scene .vessel{transition:none}}
.snake-page .wrap{width:min(100%,740px)}.snake-page .board-shell{width:100%}.snake-page .difficulty{width:100%}.snake-page .cta-row{width:100%}

.snake-page .hero{margin:12px 0}.snake-page .cta-row{margin:0 auto 12px}.snake-page canvas{max-width:420px}.challenge-page #signedUserBar{background:#2b1e2b!important;border-color:#634658!important}.challenge-page #signedUserAction{background:#3c2b3b!important;border-color:#856279!important}

/* Memory collection v2: identical illustrations across operating systems. */
.memory-page .face.front.illustration-card{background-size:600% 500%;background-repeat:no-repeat;background-color:#fff8e9;border-color:#e0eff7}
.memory-page .face.front.portrait-card{background-size:cover;background-position:center 22%;border-color:#e0eff7}
.memory-page .word-card{padding:5px;background:linear-gradient(145deg,#fff1cd,#efd5a0);color:#674b45}
.memory-page .word-card .symbol{display:block;max-width:100%;font-weight:750;line-height:1.18;letter-spacing:0;text-align:center;white-space:normal;overflow-wrap:normal;font-size:10px;filter:none}
.memory-page .showcase .sample-illustration{background-image:url(/assets/memory-collection-v2.webp);background-size:600% 500%;background-repeat:no-repeat;border-color:#e0eff7}
.memory-page .showcase .sample-pudding{background-position:0 0}.memory-page .showcase .sample-strawberry{background-position:40% 0}
.memory-page .showcase .sample-word{font-size:12px;font-weight:750;color:#674b45;background:linear-gradient(145deg,#fff1cd,#efd5a0)}
.memory-page .showcase .sample-portrait{background:url(/assets/sogrinha-home.webp) center 22%/cover}

/* Classic puzzle controls: consistent mouse, touch and keyboard targets. */
.challenge-page .challenge-stats{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.challenge-page #gameClock{font-variant-numeric:tabular-nums}
.challenge-page #board button{touch-action:manipulation;cursor:pointer}.challenge-page #board button:focus-visible{outline:3px solid #f4d590;outline-offset:2px}
.challenge-page #board button:disabled{cursor:default}.challenge-page .tap{min-height:52px}.challenge-page .tap>*{pointer-events:none}
.classic-game{max-width:660px;margin:auto;text-align:center;color:#f7edda}.classic-game p{font-size:14px;line-height:1.6;color:#cfc3cf}
.classic-game button{border:1px solid #736075;border-radius:10px;color:#fff5df;background:#332a3b;font:inherit;min-height:46px;padding:8px}
.classic-game button:hover:not(:disabled){background:#564052;border-color:#e8c47f}.classic-game button[aria-pressed=true],.classic-game .chosen{outline:3px solid #e5c07a;background:#5a4535}
.classic-game .classic-main{display:block;width:100%;margin:18px 0 4px;background:linear-gradient(110deg,#ead2a0,#b98a45);color:#231c20;font-weight:800}
.classic-grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:5px;max-width:440px;margin:16px auto}.classic-grid button{padding:0;aspect-ratio:1;font-size:clamp(22px,5vw,36px);min-width:0;min-height:0}
.classic-grid.chess button{border-radius:5px;background:#b39c79;color:#201927}.classic-grid.chess button.dark{background:#63546a;color:#fff4d9}.classic-grid .conflict{background:#a14750!important}.classic-grid .possible{background:#327565!important;outline:2px solid #b8d7b1}.classic-grid .visited{opacity:.65}
.classic-grid.numbers{max-width:340px}.classic-grid .fixed{color:#f3cc80;background:#423747;font-weight:900;opacity:1}.classic-grid.sudoku button:nth-child(4n+2){border-right:3px solid #deb978}.classic-grid.sudoku button:nth-child(n+5):nth-child(-n+8){border-bottom:3px solid #deb978}
.classic-palette{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.classic-palette button{min-width:44px}
.nonogram-grid{display:grid;grid-template-columns:38px repeat(5,minmax(0,1fr));gap:4px;max-width:380px;margin:auto;align-items:center}.nonogram-grid b{font-size:14px;white-space:pre-wrap}.nonogram-grid button{aspect-ratio:1;min-height:0;padding:0}.nonogram-grid .painted{background:#bc6d8e;color:#ffe3ed}
.classic-river{display:grid;grid-template-columns:1fr 1fr;gap:15px}.classic-river section{border:1px solid #5b4b63;border-radius:14px;padding:10px}.classic-river button{display:block;width:100%;margin:7px 0}.classic-river h3{font-size:16px}.classic-scene svg{width:100%;max-height:180px}.classic-scene text{font-size:40px}
.code-guess{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.code-guess button{font-size:32px}.code-history{padding:0;list-style:none}.code-history li{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px;border-bottom:1px solid #56485d}.code-history span{letter-spacing:.15em;font-size:22px}.code-history b{color:#e8c47f}
.frog-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.frog-row button{padding:4px;min-width:0;aspect-ratio:1}.frog-row .frog-gold{color:#f4cf83}.frog-row .frog-teal{color:#8bdbcd}
.peg-triangle>div{display:flex;justify-content:center;gap:8px;margin:8px 0}.peg-triangle button{width:46px;height:46px;border-radius:50%;font-size:28px;padding:0;line-height:1}
.match-equation{display:flex;align-items:center;justify-content:center;gap:10px;margin:25px auto}.match-equation>b{font-size:30px}.match-digit{position:relative;width:70px;height:124px}.match-op{position:relative;width:40px;height:124px}
.classic-game .segment{position:absolute;padding:0;min-height:0;border:0;border-radius:5px;background:#554555;opacity:.55}.classic-game .segment.lit{background:#efd090;box-shadow:0 0 6px #d6aa5870;opacity:1}.classic-game .segment::after{content:'';position:absolute;inset:-7px}
.segment.seg0,.segment.seg3,.segment.seg6{width:45px;height:9px;left:13px}.segment.seg0{top:5px}.segment.seg6{top:58px}.segment.seg3{top:111px}.segment.seg1,.segment.seg2,.segment.seg4,.segment.seg5{width:9px;height:43px}.segment.seg1{top:16px;right:0}.segment.seg2{top:68px;right:0}.segment.seg5{top:16px;left:0}.segment.seg4{top:68px;left:0}.match-op .horizontal{top:58px;left:0;width:40px;height:9px}.match-op .vertical{top:43px;left:16px;width:9px;height:40px}
@media(max-width:420px){.match-equation{gap:7px}.match-digit{width:57px}.segment.seg0,.segment.seg3,.segment.seg6{width:33px;left:12px}.match-op{width:30px}.match-op .horizontal{width:30px}.match-op .vertical{left:11px}.classic-river{gap:8px}.classic-game button{font-size:14px}.classic-grid button{font-size:25px}.classic-grid{gap:3px}.peg-triangle button{font-size:25px}}
