:root {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: #233138;
  background: #fffaf3;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #203239;
  --muted: #59676b;
  --coral: #b74431;
  --coral-dark: #903624;
  --teal: #176f70;
  --cream: #fffaf3;
  --line: #e8dfd3;
  --shadow: 0 16px 38px rgba(73, 57, 34, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); font-size: 18px; line-height: 1.55; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #126b70; outline-offset: 4px; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 8px; transform: translateY(-150%); padding: 12px 16px; border-radius: 10px; background: white; color: var(--ink); }
.skip-link:focus { transform: none; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

.site-header { width: 100%; min-height: 100px; margin: auto; padding-inline: max(32px, calc((100% - 1200px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.2); background: linear-gradient(110deg, #0879b8, #064482 72%, #05366f); }
.studio-link { grid-column: 2; justify-self: center; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.studio-logo { display: block; width: 178px; max-height: 88px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,24,64,.55)); }
.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 14px; }
.welcome-chip { color: white; font-size: 15px; font-weight: 700; }
.welcome-chip span { color: #d89634; margin-right: 5px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 0; border-radius: 16px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 18px rgba(184, 67, 45, .2); }
.button-primary:hover { background: var(--coral-dark); }
.button-outline { border: 2px solid #7be0ff; background: rgba(3,62,123,.72); color: white; }
.button-small { min-height: 44px; padding: 8px 15px; border-radius: 13px; font-size: 15px; }
.install-icon { font-size: 20px; line-height: 1; }

main { width: min(1200px, calc(100% - 64px)); margin: auto; }
.hero { position: relative; min-height: 410px; padding: 46px 7.5% 38px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; overflow: hidden; border-radius: 0 0 30px 30px; background: radial-gradient(ellipse at 38% 15%, #39b9e8 0, transparent 46%), linear-gradient(118deg, #087fbe 0%, #0965a9 48%, #063b82 100%); box-shadow: 0 9px 22px rgba(9,65,112,.2); }
.hero::before { content: ''; position: absolute; width: 120%; height: 95px; left: -10%; bottom: -61px; border: 5px solid rgba(94,220,255,.8); border-radius: 50%; box-shadow: 0 -12px 0 rgba(255,255,255,.14); }
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.eyebrow { margin: 0 0 12px; color: #ffdd74; font-size: 14px; font-weight: 900; letter-spacing: .16em; }
.eyebrow-dot { display: inline-block; width: 8px; height: 8px; margin: 0 8px 1px 0; border-radius: 50%; background: #ffe66d; }
h1, h2, h3, p { margin-top: 0; }
h1, .section-heading h2 { font-family: 'Nunito', 'Segoe UI', sans-serif; letter-spacing: -.045em; }
h1 { margin-bottom: 15px; color: white; font-size: clamp(42px, 5vw, 64px); line-height: 1.04; font-weight: 900; text-shadow: 0 3px 12px rgba(0,36,82,.35); }
.brand-word { display: block; color: white; font-size: 1.15em; letter-spacing: -.055em; }
.brand-plus { display: inline !important; color: #ffd331 !important; }
.hero-tagline { display: block; margin-top: 6px; color: #f1faff; font-size: .48em; line-height: 1.2; letter-spacing: -.02em; }
.hero-description { max-width: 460px; margin-bottom: 19px; color: #f1faff; font-size: 19px; line-height: 1.55; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; }
.hero-pill { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 7px 17px; border: 2px solid rgba(255,255,255,.78); border-radius: 999px; color: white; font-size: 16px; font-weight: 900; text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,.25); cursor: pointer; box-shadow: 0 4px 10px rgba(0,32,89,.25); transition: transform .18s ease, filter .18s ease; }
.hero-pill:hover { transform: translateY(-2px); filter: brightness(1.05); }
.pill-learn { background: #08763a; }.pill-practice { background: #065bb5; }.pill-enjoy { background: #8a159d; }
.hero-cta { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border: 2px solid white; border-radius: 14px; background: #fff; color: #07508b; font-weight: 900; text-decoration: none; box-shadow: 0 5px 14px rgba(0,0,0,.16); }
.hero-art { position: relative; min-height: 280px; }
.sun-shape { position: absolute; top: 8px; right: 10%; width: 235px; height: 235px; border: 2px solid rgba(255,255,255,.62); border-radius: 48% 52% 43% 57%; background: linear-gradient(145deg, #8ee8fa, #0da7e4 63%, #0977c8); box-shadow: inset 0 0 0 10px rgba(255,255,255,.22), 0 15px 26px rgba(0,35,86,.23); transform: rotate(12deg); }
.art-card { position: absolute; display: grid; place-items: center; border: 8px solid white; box-shadow: var(--shadow); }
.art-card-back { top: 48px; right: 1%; width: 165px; height: 100px; border-radius: 22px; background: linear-gradient(135deg,#82def4,#1497db); color: #063e79; font-weight: 800; transform: rotate(8deg); }
.art-card-back b { position: absolute; top: -19px; right: -17px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #ee785b; color: white; font-size: 23px; }
.art-card-main { top: 17px; left: 17%; width: 155px; height: 225px; border-radius: 27px; background: linear-gradient(150deg,#fff,#e4faff); transform: rotate(-7deg); }
.art-phone { width: 87px; height: 165px; padding: 24px 12px 12px; border: 3px solid #4d7770; border-radius: 19px; background: #f8f2e8; }
.phone-dot { display: block; width: 8px; height: 8px; margin: -13px auto 23px; border-radius: 50%; background: #4d7770; }
.phone-line { display: block; height: 10px; margin: 0 0 10px; border-radius: 10px; background: #d9e8dd; }
.phone-line.short { width: 70%; background: #f2d794; }
.phone-button { display: grid; place-items: center; width: 44px; height: 44px; margin: 16px auto 0; border-radius: 50%; background: #e97658; color: white; font-size: 25px; }
.art-spark { position: absolute; color: #ffe46e; }.spark-one { top: 8px; left: 8%; font-size: 34px; }.spark-two { right: 3%; bottom: 42px; color: #9af4ff; font-size: 30px; }
.art-caption { position: absolute; bottom: 12px; left: 37%; color: white; font-family: 'Nunito', sans-serif; font-size: 17px; font-weight: 900; text-shadow: 0 2px 5px rgba(0,32,77,.45); transform: rotate(4deg); }

.stats-strip { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: center; gap: 22px; margin: 0 0 30px; padding: 19px 24px; border: 2px solid #1d7fbd; border-radius: 20px; background: linear-gradient(105deg, #064a88, #06366f); color: white; box-shadow: 0 9px 20px rgba(4,57,102,.18); }
.stat-block { min-width: 0; min-height: 80px; display: flex; align-items: center; gap: 13px; padding-inline: 5px 20px; border-right: 1px solid rgba(255,255,255,.46); }
.stat-block:last-child { padding-right: 5px; border-right: 0; }
.stat-emoji { flex: 0 0 auto; font-size: 34px; }
.stat-content { min-width: 0; display: grid; gap: 2px; }
.stat-title, .stat-content h2 { margin: 0; color: white; font: 900 17px/1.2 'Nunito', sans-serif; }
.stat-content p, .stat-caption { margin: 0; color: #e3f2ff; font-size: 13px; line-height: 1.3; }
.visit-digits { width: max-content; padding: 1px 9px; border: 2px solid #c7d0d5; border-radius: 7px; background: linear-gradient(#fff,#dbe0e3); color: #15252f; font: 900 27px/1.15 'DM Sans', 'Segoe UI', sans-serif; letter-spacing: .11em; text-shadow: 0 1px white; box-shadow: inset 0 1px 4px rgba(0,0,0,.12); }
.visit-stat { padding: 0; border-right: 0; }
.visit-counter { display:flex; align-items:center; gap:clamp(7px,.91vw,13px); width:70%; min-width:0; margin-inline:auto; padding:8px 10px; border:1px solid rgba(151,218,255,.42); border-radius:14px; background:radial-gradient(130px 90px at 12% 50%,rgba(62,166,255,.26),transparent 75%),linear-gradient(115deg,#073b72,#052957); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); color:#eaf1ff; font-size:clamp(7px,.735vw,9.1px); }
.visit-counter-logo { flex:0 0 auto; display:block; width:clamp(43px,4.9vw,62px); height:auto; }
.visit-counter-info { display:grid; gap:.5em; min-width:0; }
.visit-counter-line { display:flex; flex-wrap:wrap; align-items:center; gap:.35em .6em; color:#d5e7fb; font-size:1em; line-height:1.35; }
.visit-counter-reels { display:inline-flex; gap:.13em; color:#fff; font:900 1.55em/1 'DM Sans','Segoe UI',sans-serif; }
.visit-counter-reel { width:.76em; height:1.35em; overflow:hidden; border-radius:.22em; background:rgba(255,255,255,.16); box-shadow:inset 0 0 0 1px rgba(255,255,255,.1); }
.visit-counter-strip { display:block; transition:transform 1.4s cubic-bezier(.16,.84,.24,1); transition-delay:calc(var(--i)*80ms); }
.visit-counter-strip span { display:block; height:1.35em; line-height:1.35em; text-align:center; }
.visit-counter-welcome { color:#fff; font-size:1.08em; font-weight:800; }
.badge-count { color: #ffd440; font: 900 29px 'Nunito', sans-serif; }
.progress-meter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 800; }
.progress-track { height: 15px; overflow: hidden; border: 2px solid white; border-radius: 20px; background: #dce8f1; }.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b8340, #22ae55); transition: width .3s ease; }
.learning-section { padding-bottom: 45px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 5px; color: #075a92; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 3.5vw, 38px); line-height: 1.15; }
.section-note { margin: 0 0 3px; color: var(--muted); }
.category-filters { display: flex; gap: 10px; margin-bottom: 24px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.filter-button { flex: 0 0 auto; min-height: 46px; padding: 8px 17px; border: 1px solid #dcd5c9; border-radius: 999px; background: white; color: #4a5b5e; font-size: 16px; font-weight: 800; cursor: pointer; }
.filter-button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: white; }
.workshop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.workshop-card { position: relative; min-height: 286px; display: flex; flex-direction: column; padding: 22px; border: 2px solid rgba(255,255,255,.95); border-radius: 23px; background: var(--card-bg, #eaf5fa); background: linear-gradient(135deg, color-mix(in srgb, var(--card-bg, #eaf5fa) 85%, white), var(--card-bg, #eaf5fa)); box-shadow: 0 7px 14px rgba(16,54,86,.12), inset 0 0 0 1px rgba(31,130,194,.14); transition: transform .18s ease, box-shadow .18s ease; }
.workshop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-icon { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid rgba(255,255,255,.9); border-radius: 19px; background: rgba(255,255,255,.76); font-size: 34px; box-shadow: 0 3px 8px rgba(23,78,111,.1); }
.card-tag { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.72); color: #455354; font-size: 13px; font-weight: 800; }
.workshop-card h3 { margin: 17px 0 7px; font: 900 22px/1.2 'Nunito', sans-serif; letter-spacing: -.02em; }
.workshop-card p { margin: 0 0 16px; color: #49575a; font-size: 16px; line-height: 1.5; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.lesson-count { color: #506063; font-size: 14px; font-weight: 700; }
.card-open { min-height: 46px; padding: 9px 14px; border: 0; border-radius: 13px; background: #fff; color: #244e4f; font-weight: 900; cursor: pointer; }
.card-open:hover { background: var(--ink); color: white; }
.completed-badge { position: absolute; top: -8px; left: 18px; padding: 4px 10px; border: 2px solid white; border-radius: 999px; background: #267466; color: white; font-size: 13px; font-weight: 900; }
.workshop-card.is-upcoming { background: #f1f0eb; opacity: .8; }.workshop-card.is-upcoming .card-open { background: #e5e3dd; color: #646d6e; cursor: default; }

.lesson-view { max-width: 850px; margin: 0 auto 50px; padding: clamp(22px, 5vw, 48px); border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.back-button { min-height: 46px; padding: 8px 14px; border: 1px solid #cad7d3; border-radius: 13px; background: #f7fbf9; color: #215e5a; font-weight: 800; cursor: pointer; }
.lesson-kicker { margin: 26px 0 6px; color: #8c4f30; font-size: 14px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.lesson-view h2 { margin-bottom: 12px; font: 900 clamp(30px, 5vw, 44px)/1.12 'Nunito', sans-serif; letter-spacing: -.04em; }
.lesson-intro { max-width: 680px; color: #45565a; font-size: 20px; }
.lesson-step { margin: 24px 0; padding: 20px; border-left: 5px solid #d99643; border-radius: 0 16px 16px 0; background: #fff7e8; }
.lesson-step h3 { margin-bottom: 8px; font: 900 20px 'Nunito', sans-serif; }.lesson-step p:last-child { margin-bottom: 0; }
.tip-box { margin: 20px 0; padding: 18px; border-radius: 16px; background: #eef6f1; color: #29534b; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lesson-actions .button { min-height: 52px; }
.lesson-status { align-self: center; color: #34685c; font-weight: 800; }
.loading-dots { color: #117eb2; letter-spacing: .3em; font-size: 24px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.quiz-stage { position: relative; z-index: 0; min-height: 640px; display: grid; place-items: center; padding: clamp(18px, 4vw, 42px); overflow: hidden; isolation: isolate; border: 2px solid #6ac8ed; border-radius: 28px; background: #07508b; }
.quiz-stage::before, .quiz-stage::after { content: ''; position: absolute; inset: -10px; }
.quiz-stage::before { z-index: -2; background-image: url('./assets/quiz-scenes.png'); background-repeat: no-repeat; background-size: 300% 200%; filter: blur(7px) brightness(.66) saturate(.9); transform: scale(1.04); }
.quiz-stage::after { z-index: -1; background: linear-gradient(130deg, rgba(1,43,86,.56), rgba(3,63,106,.32)); }
.quiz-stage[data-topic="ordenador"]::before { background-position: 0 0; }
.quiz-stage[data-topic="movil"]::before { background-position: 50% 0; }
.quiz-stage[data-topic="whatsapp"]::before { background-position: 100% 0; }
.quiz-stage[data-topic="internet"]::before { background-position: 0 100%; }
.quiz-stage[data-topic="aplicaciones"]::before { background-position: 50% 100%; }
.quiz-stage[data-topic="juegos"]::before { background-position: 100% 100%; }
.quiz-card { position: relative; z-index: 1; width: min(790px, 100%); padding: clamp(22px, 4vw, 42px); border: 1px solid rgba(255,255,255,.92); border-radius: 25px; background: rgba(255,255,255,.95); color: #203239; box-shadow: 0 18px 45px rgba(0,25,57,.28); backdrop-filter: blur(7px); }
.quiz-meta { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0 8px; color: #4a6067; font-size: 15px; font-weight: 800; }
.quiz-topic, .game-kicker { color: #07588d; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.quiz-progress { height: 12px; margin-bottom: 24px; overflow: hidden; border-radius: 999px; background: #dce8ed; }
.quiz-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0781c0, #20b6e4); transition: width .25s ease; }
.quiz-card h2, .game-view h2 { margin: 0 0 22px; font: 900 clamp(25px, 3.2vw, 35px)/1.2 'Nunito', 'Segoe UI', sans-serif; letter-spacing: -.025em; }
.quiz-options { display: grid; gap: 12px; }
.quiz-option { min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 2px solid #d5e0e5; border-radius: 16px; background: #fff; color: #243940; text-align: left; font-size: 18px; font-weight: 700; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.quiz-option:hover:not(:disabled) { transform: translateY(-1px); border-color: #168fc4; background: #effaff; }
.quiz-option:disabled { opacity: 1; cursor: default; }
.option-letter { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: #eaf3f7; color: #175c7c; font-weight: 900; }
.quiz-option.answer-correct { border-color: #21844e; background: #eaf7ed; }.quiz-option.answer-correct .option-letter { background: #21844e; color: white; }
.quiz-option.answer-gentle { border-color: #d8aa4f; background: #fff8e8; }.quiz-option.answer-gentle .option-letter { background: #f0dfb8; color: #5a4520; }
.quiz-feedback { min-height: 30px; margin: 17px 0 8px; font-size: 17px; font-weight: 900; }.quiz-feedback.is-correct { color: #17643c; }.quiz-feedback.is-gentle { color: #72531c; }
.quiz-next { margin-top: 6px; }
.quiz-next { min-height:66px; display:inline-flex; align-items:center; justify-content:center; gap:13px; padding:14px 24px; border:2px solid #b5ebc3; border-radius:17px; background:linear-gradient(135deg,#218c42,#116b32); color:#fff; font-size:21px; font-weight:900; box-shadow:0 6px 0 #0d5728,0 10px 20px rgba(19,105,47,.22); }
.quiz-next:hover:not(:disabled) { background:linear-gradient(135deg,#29a34f,#18773b); }
.quiz-next:focus-visible { outline:4px solid #f7d54b; outline-offset:4px; }
.quiz-next-icon { flex:0 0 auto; width:32px; height:32px; overflow:visible; }
.quiz-next-icon path { fill:none; stroke:currentColor; stroke-width:2.8; stroke-linecap:round; stroke-linejoin:round; }
.quiz-result-card { text-align: center; }.result-confetti { margin: 0 0 6px; font-size: 44px; }.result-encouragement { margin: 0 auto 22px; max-width: 560px; color: #4d6064; font-size: 20px; }
.result-score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; max-width: 460px; margin: 22px auto; }
.score-tile { display: grid; justify-items: center; gap: 4px; padding: 17px; border-radius: 18px; }.score-correct { background: #e8f4eb; color: #175e3b; }.score-errors { background: #eaf2f8; color: #215b7a; }
.score-tile span { font-size: 23px; }.score-tile strong { font: 900 39px 'Nunito', sans-serif; }.score-tile small { font-size: 16px; font-weight: 800; }
.result-note { color: #59676b; font-size: 15px; }.quiz-result-card .lesson-actions { justify-content: center; }
.result-total { margin: 0; color: #203239; font-size: 21px; font-weight: 800; }
.quiz-review { margin-top: 34px; text-align: left; }.quiz-review > h3 { margin: 0; font: 900 25px 'Nunito',sans-serif; }
.quiz-review ol { display: grid; gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.quiz-review-item { padding: 18px; border: 1px solid #d5e4e9; border-left: 7px solid #8aafbf; border-radius: 16px; background: #fff; }
.quiz-review-item.is-correct { border-left-color: #3c9b65; }.quiz-review-item.is-incorrect { border-left-color: #d3a84f; }
.quiz-review-item h3 { margin: 0 0 12px; color: #203239; font-size: 19px; line-height: 1.4; }
.quiz-review-number { display: block; margin-bottom: 4px; color: #07588d; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.quiz-review-answer { display: grid; grid-template-columns: minmax(145px,auto) 1fr; gap: 8px; margin: 7px 0; color: #344a52; font-size: 16px; line-height: 1.45; }
.quiz-review-answer strong { color: #52666d; }.correct-review-answer strong { color: #17643c; }
.quiz-review-feedback { margin: 11px 0 0; color: #59676b; font-size: 15px; }
.game-catalogue { margin-top: 30px; padding-top: 24px; border-top: 1px solid #d9e3e7; }.game-catalogue > h3 { margin-bottom: 15px; font: 900 23px 'Nunito', sans-serif; }
.game-catalogue-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.game-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid #d9e5e9; border-radius: 17px; background: #f4fbfe; }
.game-card > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #d8effa; font-size: 27px; }.game-card h4 { margin: 0; font: 900 17px 'Nunito', sans-serif; }.game-card p { margin: 2px 0 0; color: #55686c; font-size: 14px; }
.game-view { max-width: 920px; margin: 0 auto 45px; padding: clamp(22px, 4vw, 38px); border: 1px solid #d5e2e8; border-radius: 26px; background: linear-gradient(145deg,#fff,#edf8fd); box-shadow: var(--shadow); }
.word-game-frame { display:block; width:100%; height:940px; border:0; border-radius:20px; background:linear-gradient(135deg,#0785c5,#075294 52%,#06366f); }
.moon-game-frame { display:block; width:100%; height:min(78vh,720px); min-height:520px; border:0; border-radius:20px; background:#02030c; }
.game-kicker { margin: 23px 0 5px; }.game-instructions { margin: -10px 0 22px; color: #53676b; font-size: 18px; }
.game-score { color: #2a6470; font-weight: 900; }.memory-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; max-width: 540px; margin: 20px auto; }
.memory-card { min-height: 98px; border: 2px solid #d2e8f2; border-radius: 18px; background: linear-gradient(145deg,#1d9bcf,#086caf); color: white; font-size: 40px; font-weight: 900; cursor: pointer; box-shadow: 0 5px 10px rgba(5,73,112,.16); transition: transform .16s ease; }.memory-card:hover:not(:disabled) { transform: translateY(-3px); }.memory-card.is-open { background: white; color: #203239; }.memory-card.is-matched { border-color: #3c9b65; background: #e4f5e9; }
.game-feedback { min-height: 29px; margin: 15px 0; color: #276343; font-size: 18px; font-weight: 900; }
.order-slots { display: flex; justify-content: center; gap: 10px; margin: 22px 0; }.order-slot { display: grid; place-items: center; width: 46px; height: 46px; border: 2px dashed #88afc0; border-radius: 50%; color: #1c6580; font-weight: 900; }.order-slot.filled { border-style: solid; background: #daf2fa; }
.order-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }.order-card { min-height: 105px; display: flex; align-items: center; gap: 12px; padding: 15px; border: 2px solid #d5e4e9; border-radius: 17px; background: white; color: #2a4149; text-align: left; font-size: 17px; font-weight: 800; cursor: pointer; }.order-card.is-chosen { border-color: #188bb4; background: #e7f7fc; }.order-card:disabled { opacity: 1; }.order-card-icon { font-size: 29px; }
.game-actions { display: flex; flex-wrap: wrap; gap: 12px; }.game-finish { color: #1d6848; font-size: 18px; font-weight: 900; }
.icon-target { display: flex; align-items: center; gap: 15px; width: max-content; max-width: 100%; margin: 20px auto; padding: 12px 22px; border: 2px solid #79bfdd; border-radius: 20px; background: white; box-shadow: 0 7px 15px rgba(20,86,115,.1); }.icon-target span { font-size: 42px; }.icon-target strong { font: 900 21px 'Nunito', sans-serif; }
.icon-hunt-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; max-width: 590px; margin: 18px auto; }.icon-choice { min-height: 106px; display: grid; place-items: center; gap: 2px; border: 2px solid #d4e5eb; border-radius: 19px; background: white; color: #24424d; cursor: pointer; }.icon-choice:hover:not(:disabled) { border-color: #168bb5; background: #eefaff; transform: translateY(-2px); }.icon-choice:disabled { opacity: 1; }.icon-choice span { font-size: 38px; }.icon-choice small { font-size: 14px; font-weight: 800; }
.site-footer { min-height: 76px; width: 100%; margin: auto; display: flex; align-items: center; justify-content: center; gap: 14px; border-top: 4px solid #1bb6e9; background: linear-gradient(110deg, #0879b8, #064482 72%, #05366f); color: white; font-size: 18px; font-weight: 900; }
.toast { position: fixed; z-index: 30; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px)); padding: 14px 18px; border-radius: 14px; background: var(--ink); color: white; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }.toast.show { opacity: 1; transform: none; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .site-header { padding-inline: max(20px, calc((100% - 760px) / 2)); }
  main { width: min(100% - 40px, 760px); }
  .hero { padding-inline: 7%; }
  .workshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip { grid-template-columns: .9fr 1.2fr .9fr; gap: 12px; padding: 16px; }
  .stat-block { gap: 9px; padding-right: 12px; }
  .stat-emoji { font-size: 29px; }
  .stat-title, .stat-content h2 { font-size: 15px; }
  .stat-content p, .stat-caption { font-size: 12px; }
  .quiz-stage { min-height: 600px; }
  .game-catalogue-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .site-header { position: relative; display: flex; justify-content: center; width: 100%; min-height: 82px; padding-inline: 16px; }
  .studio-link { position: absolute; left: 50%; transform: translateX(-50%); }.studio-logo { width: 145px; max-height: 74px; }
  .header-actions { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); }.welcome-chip { display: none; }.button-small { width: 44px; min-height: 42px; padding: 7px; font-size: 14px; }.install-label { display: none; }
  main { width: calc(100% - 32px); }
  .hero { min-height: 0; grid-template-columns: 1fr; padding: 32px 22px 0; border-radius: 0 0 25px 25px; }
  h1 { font-size: clamp(38px, 10.5vw, 54px); }.hero-description { font-size: 18px; }
  .hero-pills { gap: 7px; }.hero-pill { min-height: 42px; padding-inline: 12px; font-size: 14px; }.hero-cta { min-height: 42px; }
  .hero-art { min-height: 205px; width: 100%; max-width: 340px; margin: 0 auto; transform: scale(.88); transform-origin: center top; }
  .sun-shape { right: 13%; width: 190px; height: 190px; }.art-card-main { left: 18%; width: 128px; height: 190px; }.art-phone { height: 140px; width: 75px; }.phone-button { width: 36px; height: 36px; margin-top: 10px; }.art-card-back { right: 2%; width: 140px; height: 82px; }.art-caption { bottom: 2px; left: 38%; font-size: 15px; }
  .stats-strip { grid-template-columns: 1fr; gap: 8px; margin-bottom: 25px; padding: 12px 16px; }
  .stat-block, .stat-block:last-child { min-height: 68px; padding: 8px 2px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.42); }
  .stat-block:last-child { border-bottom: 0; }
  .stat-emoji { width: 42px; text-align: center; font-size: 29px; }
  .stat-content { flex: 1; }
  .stat-content h2, .stat-title { font-size: 16px; }
  .stat-content p, .stat-caption { font-size: 13px; }
  .visit-digits { font-size: 23px; }
  .visit-counter { font-size:8.4px; }
  .visit-counter-logo { width:47.6px; }
  .progress-meter { grid-template-columns: 1fr auto; }
  .section-heading { display: block; }.section-heading h2 { font-size: 31px; }.section-note { margin-top: 8px; }
  .category-filters { margin-right: -16px; padding-right: 16px; }
  .workshop-grid { grid-template-columns: 1fr; gap: 14px; }.workshop-card { min-height: 255px; padding: 20px; }.workshop-card h3 { font-size: 23px; }
  .site-footer { width: 100%; min-height: 72px; flex-wrap: wrap; padding: 13px 16px; font-size: 16px; }
  .lesson-view { padding: 22px 18px; }.lesson-intro { font-size: 18px; }.lesson-step { padding: 16px; }.lesson-actions { display: grid; }.lesson-actions .button { width: 100%; }
  .word-game-frame { height:1040px; border-radius:15px; }
  .moon-game-frame { height:min(82vh,780px); border-radius:15px; }
  .quiz-stage { min-height: 0; padding: 12px; border-radius: 20px; }
  .quiz-card { padding: 19px 15px; border-radius: 18px; }
  .quiz-meta { align-items: flex-start; font-size: 13px; }
  .quiz-option { min-height: 62px; padding: 10px 11px; font-size: 16px; }
  .option-letter { width: 32px; height: 32px; }
  .result-score-grid { gap: 8px; }.score-tile { padding: 12px; }
  .quiz-review > h3 { font-size: 22px; }.quiz-review-item { padding: 14px; }
  .quiz-review-answer { grid-template-columns: 1fr; gap: 2px; font-size: 15px; }
  .game-catalogue-grid { grid-template-columns: 1fr; }
  .game-card { grid-template-columns: auto 1fr; }.game-card .card-open { grid-column: 1 / -1; width: 100%; }
  .memory-grid { gap: 8px; }.memory-card { min-height: 69px; border-radius: 13px; font-size: 32px; }
  .order-options { grid-template-columns: 1fr; }.order-card { min-height: 76px; }
  .icon-hunt-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }.icon-choice { min-height: 88px; }.icon-choice span { font-size: 32px; }.icon-choice small { font-size: 12px; }
  .game-actions { display: grid; }.game-actions .button, .game-actions .back-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Home cover based on the approved JAM STUDIO reference. */
:root { --ink:#061d59; --muted:#24436b; --cream:#f4fcff; --shadow:0 6px 12px rgba(0,50,100,.18); }
body { background:#f3fbff; color:#061d59; font-family:'Trebuchet MS','Segoe UI',sans-serif; }
.site-header { min-height:136px; padding:16px 32px; background:linear-gradient(112deg,#087fc5 0%,#07519a 55%,#06346f 100%); border:0; }
.studio-logo { width:240px; max-height:110px; }
.header-actions { align-self:center; }
.button-outline { min-width:260px; min-height:82px; padding:12px 22px; border:4px solid #6be4ff; border-radius:34px; background:linear-gradient(145deg,#117fc4,#063d83); box-shadow:0 6px 0 rgba(0,23,71,.24); font-size:23px; line-height:1.05; }
.install-icon { color:#20f05d; font-size:35px; font-weight:900; }
.install-label { display:grid; gap:4px; text-align:left; }.install-label small { font-size:14px; font-weight:700; }
.button:hover { transform:none; }
main { width:100%; margin:0; }
.hero { min-height:294px; padding:24px 24px 22px; display:block; border-radius:0; box-shadow:none; background:radial-gradient(ellipse at 48% 49%,rgba(255,255,255,.97) 0%,rgba(237,251,255,.96) 27%,rgba(112,213,249,.95) 52%,transparent 73%),linear-gradient(115deg,#25b8ed 0%,#087dca 46%,#064c99 100%); }
.hero::before { left:-7%; bottom:-67px; width:114%; height:104px; border:7px solid #47c9f7; border-top-color:rgba(255,255,255,.76); box-shadow:0 -11px 0 rgba(255,255,255,.45); }
.hero-copy { max-width:none; text-align:center; }
.hero h1 { margin:0 auto 12px; color:#fff; font-family:'Trebuchet MS','Segoe UI',sans-serif; font-size:clamp(54px,8vw,104px); line-height:.94; text-shadow:0 3px 0 #fff,0 6px 2px #064780,0 10px 15px rgba(0,32,86,.52); }
.brand-word { display:inline; color:#0755a1; font-weight:1000; letter-spacing:-.07em; -webkit-text-stroke:2px #fff; text-shadow:0 3px 0 #fff,0 7px 2px #06386f,0 12px 17px rgba(0,38,86,.42); }
.brand-plus { color:#ffc928!important; -webkit-text-stroke:2px white; }
.hero-tagline { margin-top:10px; color:#064381; font-size:clamp(20px,2.4vw,32px); font-style:italic; font-weight:900; letter-spacing:-.025em; text-shadow:none; }
.hero-pills { justify-content:center; gap:12px; margin:18px 0 0; }
.hero-pill { min-width:180px; min-height:52px; border:2px solid rgba(255,255,255,.95); border-radius:999px; font-size:22px; box-shadow:0 4px 8px rgba(0,38,89,.2); transition:none; cursor:default; }
.hero-pill:hover { transform:none; filter:none; }
.pill-learn { background:#08a82d; }.pill-practice { background:#0967d7; }.pill-enjoy { background:#b20ca9; }
.hero-art { position:absolute; z-index:1; top:15px; right:3%; width:27%; max-width:370px; min-height:230px; }
.sun-shape { top:0; right:2%; width:220px; height:220px; border:0; border-radius:50%; background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.82),rgba(99,220,255,.25) 67%,transparent 70%); box-shadow:none; }
.device-laptop { position:absolute; right:0; top:46px; width:250px; height:165px; transform:rotate(-5deg); }
.device-screen { position:absolute; inset:0 13px 15px; overflow:hidden; border:10px solid #073d74; border-radius:15px; background:linear-gradient(180deg,#36c9f3 0%,#1498e2 65%,#8de6ff 66%); box-shadow:inset 0 0 0 3px white,0 8px 14px rgba(0,36,82,.24); }
.landscape-mark { position:absolute; right:-8%; bottom:-10px; left:-6%; height:43%; border-radius:50% 50% 0 0; background:linear-gradient(160deg,#48d759,#07983b); }
.wifi-mark { position:absolute; top:4px; left:38%; color:white; font-size:64px; font-weight:900; transform:rotate(90deg); }
.device-base { position:absolute; bottom:0; left:-5%; width:110%; height:20px; border:5px solid #0b5b95; border-radius:2px 2px 18px 18px; background:linear-gradient(#e9fbff,#89cde9); clip-path:polygon(5% 0,95% 0,100% 100%,0 100%); }
.device-tablet { position:absolute; top:104px; right:-7px; z-index:2; width:118px; height:146px; padding:8px; border-radius:19px; background:#07477f; transform:rotate(4deg); box-shadow:0 7px 12px rgba(0,32,76,.33); }
.device-tablet .device-screen { inset:8px; border-width:5px; border-radius:13px; }
.device-phone { position:absolute; top:160px; right:111px; z-index:3; width:70px; height:128px; padding:6px; border-radius:17px; background:#073c71; transform:rotate(4deg); box-shadow:0 7px 12px rgba(0,32,76,.35); }
.device-phone .device-screen { inset:6px; border-width:4px; border-radius:12px; }
.cloud-mark { position:absolute; top:20%; left:25%; color:white; font-size:34px; }
.art-spark,.art-caption,.art-card { display:none; }
.learning-section { padding:0 32px 28px; scroll-margin-top:16px; background:linear-gradient(#e9f8ff,#f7fcff); }
.section-heading,.category-filters { display:none; }
.workshop-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.workshop-card { min-height:167px; display:grid; grid-template-columns:130px minmax(0,1fr) 56px; grid-template-rows:auto auto; align-items:center; gap:0 12px; padding:14px 18px; border:3px solid white; border-radius:26px; background:linear-gradient(135deg,color-mix(in srgb,var(--card-bg,#eaf5fa) 70%,white),var(--card-bg,#eaf5fa)); box-shadow:0 5px 10px rgba(7,66,117,.2),inset 0 0 0 1px rgba(34,150,218,.35); transition:none; }
.workshop-card:hover { transform:none; box-shadow:0 5px 10px rgba(7,66,117,.2),inset 0 0 0 1px rgba(34,150,218,.35); }
.card-top { display:contents; }.card-icon { grid-column:1; grid-row:1/3; justify-self:center; width:112px; height:112px; border:0; border-radius:22px; background:transparent; font-size:76px; box-shadow:none; }
.card-tag { display:none; }
.workshop-card h3 { grid-column:2; grid-row:1; align-self:end; margin:0 0 4px; color:#091d5b; font:1000 clamp(20px,2.3vw,32px)/1.08 'Trebuchet MS','Segoe UI',sans-serif; letter-spacing:-.04em; }
.workshop-card p { grid-column:2; grid-row:2; align-self:start; margin:2px 0 0; color:#10295e; font-size:clamp(15px,1.35vw,20px); font-weight:700; line-height:1.27; }
.card-bottom { grid-column:3; grid-row:1/3; justify-content:center; margin:0; }
.card-open { width:48px; min-width:48px; height:48px; min-height:48px; display:grid; place-items:center; padding:0 0 5px; border:0; border-radius:50%; background:#09a8dd; color:#fff; font:900 48px/1 'Segoe UI',sans-serif; transition:none; }
.card-open:hover { background:#0785b4; color:white; }
.workshop-card:nth-child(2) .card-open { background:#27b742; }.workshop-card:nth-child(3) .card-open { background:#ffb900; }.workshop-card:nth-child(4) .card-open { background:#ed5b75; }.workshop-card:nth-child(5) .card-open { background:#a628d4; }.workshop-card:nth-child(6) .card-open { background:#08a8dc; }
.completed-badge { top:5px; left:10px; font-size:12px; }
.stats-strip { min-height:104px; grid-template-columns:1fr 1.25fr 1fr; gap:14px; margin:0; padding:12px 32px; border:0; border-radius:0; background:linear-gradient(105deg,#064b8b,#053876); box-shadow:none; }
.stat-block { min-height:76px; padding:0 20px; }.stat-block:last-child { padding-right:0; }
.stat-emoji { font-size:38px; }.stat-title,.stat-content h2 { font-size:19px; }.stat-content p,.stat-caption { font-size:14px; }.visit-digits { font-size:30px; }.badge-count { font-size:36px; }
.site-footer { min-height:68px; border-top:4px solid #11b8eb; background:linear-gradient(105deg,#0879b8,#064482 72%,#05366f); font-size:25px; }

@media(max-width:1050px) {
  .hero-art { right:1%; width:27%; opacity:.88; }
  .device-laptop { width:206px; height:145px; right:0; top:44px; }.device-tablet { right:-8px; top:102px; transform:scale(.88) rotate(4deg); transform-origin:top right; }.device-phone { top:152px; right:91px; transform:scale(.88) rotate(4deg); transform-origin:top right; }
  .workshop-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:680px) {
  .site-header { min-height:92px; padding:9px 12px; }
  .studio-logo { width:154px; max-height:72px; }
  .button-outline { min-width:44px; width:48px; min-height:48px; height:48px; padding:4px; border-width:2px; border-radius:16px; }
  .install-icon { font-size:25px; }.install-label { display:none; }
  .hero { min-height:256px; padding:24px 12px 18px; }
  .hero h1 { font-size:clamp(52px,15vw,76px); }.hero-tagline { margin-top:9px; font-size:clamp(17px,5vw,24px); }
  .hero-pills { gap:7px; margin-top:15px; }.hero-pill { min-width:0; min-height:43px; padding:6px 12px; font-size:15px; }
  .hero-art { top:auto; right:auto; bottom:-35px; left:50%; width:190px; min-height:115px; opacity:.35; transform:translateX(-50%) scale(.8); }
  .device-laptop { top:8px; right:0; width:166px; height:112px; }.device-tablet { top:45px; right:-12px; transform:scale(.65) rotate(4deg); }.device-phone { top:64px; right:76px; transform:scale(.62) rotate(4deg); }.sun-shape { width:160px; height:160px; }
  .learning-section { padding:12px 12px 16px; }
  .workshop-grid { grid-template-columns:1fr; gap:10px; }
  .workshop-card { min-height:120px; grid-template-columns:82px minmax(0,1fr) 44px; gap:0 8px; padding:10px 12px; border-radius:21px; }
  .card-icon { width:74px; height:74px; font-size:54px; }.workshop-card h3 { font-size:21px; }.workshop-card p { font-size:15px; }
  .card-open { width:40px; min-width:40px; height:40px; min-height:40px; font-size:40px; }
  .stats-strip { grid-template-columns:1fr; gap:0; padding:10px 20px; }
  .stat-block,.stat-block:last-child { min-height:65px; padding:7px 2px; border-right:0; border-bottom:1px solid rgba(255,255,255,.36); }
  .stat-block:last-child { border-bottom:0; }.stat-emoji { width:44px; font-size:31px; }
  .site-footer { min-height:60px; font-size:18px; }
}

/* Personalisation, clearly aligned game launch actions, and print-ready test reports. */
.stats-strip { grid-template-columns: minmax(230px,.82fr) minmax(300px,1.18fr); }
.reference-cover.home-view .stats-strip { grid-template-columns:minmax(0,.82fr) minmax(0,1.25fr); }
.reference-cover.home-view .stats-strip.no-name-storage { grid-template-columns:1fr!important; }
.reference-cover.home-view .stats-strip.no-name-storage .visit-stat { justify-content:center; border-right:0; }
.stats-strip.no-name-storage { grid-template-columns:1fr!important; }
.stats-strip.no-name-storage .visit-stat { justify-content:center; border-right:0; }
.reference-cover.home-view .visit-stat { border-right:1px solid rgba(255,255,255,.46); }
.name-entry { min-width:0; display:grid; gap:5px; padding:4px 12px 4px 20px; color:white; }
.name-entry label { font:900 clamp(15px,1.4vw,20px)/1.2 'Nunito',sans-serif; }
.name-entry-controls { display:grid; grid-template-columns:minmax(100px,1fr) auto; gap:8px; align-items:center; }
.name-entry input { width:100%; min-width:0; min-height:40px; padding:7px 12px; border:2px solid #d5f3ff; border-radius:12px; background:white; color:#173449; font:700 16px/1.2 'DM Sans','Segoe UI',sans-serif; }
.name-entry .button { min-height:40px; padding:7px 16px; border-radius:12px; font-size:16px; }
.name-entry .button-primary { border-color:#a9e3b8; background:linear-gradient(135deg,#218c42,#116b32); color:#fff; box-shadow:0 4px 0 #0d5728; }
.name-entry .button-primary:hover { background:linear-gradient(135deg,#29a34f,#18773b); }
.reference-cover.home-view .name-entry { padding-inline:20px 0; }
.game-card .card-open { position:static; width:auto; min-width:105px; height:auto; min-height:48px; display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:9px 14px; border:2px solid #b5d7e4; border-radius:14px; background:white!important; color:#145477; font:900 17px/1.2 'Nunito',sans-serif; white-space:nowrap; }
.game-card .card-open span { font-size:20px; line-height:1; }
.game-card .card-open:hover { border-color:#168bb5; background:#eaf8fd!important; color:#073f69; }
.game-card { grid-template-columns:56px minmax(0,1fr) auto; }
.mission-title { margin:8px 0 16px; color:#07588d; font:900 25px/1.2 'Nunito',sans-serif; text-align:center; }
.digital-pairs-grid { grid-template-columns:repeat(4,minmax(0,1fr)); max-width:700px; }
.digital-pair-card { min-height:128px; padding:10px; white-space:normal; }
.digital-pair-icon { font-size:46px; }
.digital-pair-label { display:grid; gap:5px; }
.digital-pair-label strong { color:#07588d; font:900 19px/1.1 'Nunito',sans-serif; }
.digital-pair-label small { color:#2c4856; font-size:14px; line-height:1.3; }
.game-view.arcade-game { max-width:900px; border:3px solid #27c7ed; background:radial-gradient(ellipse at 50% 0%,#173b78 0,#0a1c45 55%,#071735 100%); color:#f1fbff; box-shadow:0 12px 34px rgba(2,27,73,.28),inset 0 0 32px rgba(41,196,232,.08); }
.arcade-game .game-kicker { color:#7deeff; font-weight:900; letter-spacing:.14em; }
.arcade-game #game-title { color:#fff; text-shadow:0 0 18px rgba(68,215,255,.32); }
.arcade-game .back-button { border-color:#79d8ec; background:#102a5c; color:#edfbff; }
.arcade-game .game-instructions,.arcade-game .game-feedback,.arcade-game .game-score { color:#ecf9ff; }
.arcade-hud { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:15px 0; }
.arcade-hud > span { display:grid; justify-items:center; gap:3px; padding:10px 8px; border:1px solid #45c9e8; border-radius:12px; background:#0b2a5a; color:#9deeff; font:800 12px/1.1 'Courier New',monospace; letter-spacing:.06em; }
.arcade-hud strong { color:#fff279; font-size:21px; }
.arcade-game .digital-pair-card { border:2px solid #6be4fa; background:linear-gradient(145deg,#134a91,#0e2e68); color:white; box-shadow:0 6px 0 #061a41,0 0 16px rgba(50,192,238,.16); }
.arcade-game .digital-pair-card.is-open { background:linear-gradient(145deg,#effdff,#c8f6ff); color:#132e58; }
.arcade-game .digital-pair-card.is-matched { border-color:#8effbe; background:linear-gradient(145deg,#d9ffe9,#a8efc5); box-shadow:0 5px 0 #358b67; }
.arcade-game .digital-pair-label strong { color:#084c86; }.arcade-game .digital-pair-label small { color:#183e58; }
.arcade-controls-note { margin:5px 0 14px; color:#c6eff9; font-size:14px; }
.arcade-game .button-primary { border-color:#9df4ff; background:linear-gradient(110deg,#16b5d5,#1576d2); color:#fff; box-shadow:0 5px 0 #07447b; }
.quiz-result-card .button-primary { border:1px solid #a9e3b8; background:linear-gradient(135deg,#218c42,#116b32); color:#fff; box-shadow:0 5px 0 #0d5728,0 8px 16px rgba(19,105,47,.2); }
.quiz-result-card .button-primary:hover { background:linear-gradient(135deg,#29a34f,#18773b); }
.arcade-finish { display:grid; justify-items:center; gap:6px; margin:20px auto; padding:18px; border:2px solid #ffe275; border-radius:18px; background:linear-gradient(130deg,#fff4b7,#ffd963); color:#13365b; text-align:center; box-shadow:0 7px 0 #ad7d10; }
.arcade-finish > span { font-size:38px; }
.arcade-finish strong { font:1000 23px/1.2 'Nunito',sans-serif; }
.arcade-finish small { font-size:14px; font-weight:700; }
.decision-scenario { display:flex; align-items:center; gap:16px; max-width:760px; margin:18px auto 22px; padding:20px; border:2px solid #83c6e0; border-radius:22px; background:linear-gradient(135deg,#e1f6ff,#fff); color:#173b50; font-size:20px; line-height:1.45; box-shadow:0 6px 16px rgba(13,93,131,.1); }
.decision-scenario span { flex:0 0 auto; display:grid; place-items:center; width:58px; height:58px; border-radius:18px; background:#c9effb; font-size:32px; }
.decision-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.decision-option { min-height:148px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:16px; border:2px solid #d1e4eb; border-radius:20px; background:white; color:#243c49; text-align:center; font:800 17px/1.35 'Nunito',sans-serif; cursor:pointer; box-shadow:0 4px 12px rgba(8,57,79,.07); }
.decision-option span { display:grid; place-items:center; width:58px; height:58px; border-radius:19px; background:#e6f4fa; font-size:34px; }
.decision-option:hover:not(:disabled),.decision-option:focus-visible { border-color:#078ab5; background:#f0fbff; outline:3px solid #8adcf4; outline-offset:2px; }
.decision-option:disabled { opacity:.78; }
.decision-explanation { margin:12px 0 18px; padding:14px 18px; border-left:5px solid #25a762; border-radius:10px; background:#eef9f1; color:#294c3a; line-height:1.5; }
.pdf-report { display:none; }
@media(max-width:1050px) {
  .reference-cover.home-view .stats-strip { grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); }
  .reference-cover.home-view .name-entry { padding-inline:12px 0; }
}
@media(max-width:680px) {
  .stats-strip,.reference-cover.home-view .stats-strip { grid-template-columns:1fr; }
  .reference-cover.home-view .visit-stat { border-right:0; border-bottom:1px solid rgba(255,255,255,.36); }
  .name-entry,.reference-cover.home-view .name-entry { padding:12px 2px 6px; }
  .visit-counter { padding:8.4px; font-size:8.4px; }
  .name-entry-controls { grid-template-columns:minmax(0,1fr) auto; }
  .game-card { grid-template-columns:48px minmax(0,1fr); }
  .game-card .card-open { grid-column:2; justify-self:start; min-width:125px; }
  .decision-options { grid-template-columns:1fr; }
  .decision-option { min-height:82px; flex-direction:row; justify-content:flex-start; text-align:left; }
  .decision-scenario { align-items:flex-start; padding:15px; font-size:17px; }
  .decision-scenario span { width:44px; height:44px; font-size:25px; }
  .digital-pairs-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .digital-pair-card { min-height:130px; }
  .arcade-hud { gap:6px; }
  .arcade-hud > span { padding:8px 4px; font-size:10px; }
  .arcade-hud strong { font-size:18px; }
  .game-view.arcade-game { padding:18px; }
}
@media(max-width:420px) {
  .visit-counter { flex-direction:column; text-align:center; gap:5.6px; padding:7.7px 6.3px; }
  .visit-counter-logo { width:61.6px; }
  .visit-counter-info { justify-items:center; }
  .visit-counter-line { justify-content:center; }
}


@media print {
  @page { size:auto; margin:16mm; }
  body.printing-results { display:block!important; min-height:0!important; height:auto!important; overflow:visible!important; background:white!important; }
  body.printing-results > * { visibility:hidden!important; }
  body.printing-results #reference-cover, body.printing-results .skip-link, body.printing-results .toast { display:none!important; }
  body.printing-results #pdf-report, body.printing-results #pdf-report * { visibility:visible!important; }
  body.printing-results #pdf-report[hidden] { display:block!important; }
  body.printing-results #pdf-report { position:absolute; inset:0 auto auto 0; display:block!important; width:100%; min-height:100vh; box-sizing:border-box; overflow:hidden; padding:0; color:#172f3b; background:white; font:12pt/1.45 Arial,sans-serif; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .pdf-watermark { position:fixed; z-index:0; top:28%; left:15%; width:70%; max-height:55vh; object-fit:contain; opacity:.12; filter:blur(2px); }
  .pdf-header,.pdf-kicker,.pdf-report h1,.pdf-meta,.pdf-score,.pdf-encouragement,.pdf-report h2,.pdf-review-list,.pdf-report footer { position:relative; z-index:1; }
  .pdf-header { display:flex; align-items:center; gap:18px; margin-bottom:22px; padding-bottom:12px; border-bottom:3px solid #0879b8; color:#075082; font-weight:700; }
  .pdf-header img { width:130px; max-height:70px; object-fit:contain; }
  .pdf-kicker { color:#0879b8; font-weight:800; letter-spacing:.12em; }
  .pdf-report h1 { margin:4px 0 8px; color:#092d54; font-size:25pt; }
  .pdf-meta,.pdf-score,.pdf-encouragement { margin:8px 0; }
  .pdf-score { padding:10px 14px; border-radius:10px; background:#e2f5fc; color:#064879; font-size:16pt; font-weight:800; }
  .pdf-encouragement { color:#1e6541; font-weight:700; }
  .pdf-report h2 { margin:20px 0 8px; color:#0a5688; font-size:17pt; }
  .pdf-review-list { margin:0; padding-left:25px; }
  .pdf-review-list .pdf-review-item { break-inside:avoid; margin:8px 0; padding:9px 12px; border:1px solid #b9d1da; border-radius:9px; background:rgba(255,255,255,.92); }
  .pdf-review-list .pdf-review-item h3 { margin:0 0 5px; font-size:12pt; }
  .pdf-review-list .quiz-review-number { display:inline; margin-right:8px; }
  .pdf-review-list .pdf-review-answer { display:grid; grid-template-columns:130px 1fr; gap:8px; margin:3px 0; font-size:10.5pt; }
  .pdf-review-list .quiz-review-feedback { margin:4px 0 0; font-size:10pt; }
  .pdf-report footer { margin-top:20px; padding-top:10px; border-top:2px solid #0879b8; color:#075082; text-align:center; font-weight:700; }
}

/* At desktop widths the uploaded reference artwork is the actual cover. */
.reference-cover { position:relative; width:100%; aspect-ratio:3/2; overflow:hidden; background:#07559a; }
.reference-art { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:fill; }
.reference-cover.home-view main { position:absolute; inset:0; width:100%; margin:0; }
.reference-cover.home-view .site-header { position:absolute; z-index:5; inset:0 0 auto; height:16%; min-height:0; padding:0; display:block; border:0; background:transparent; }
.reference-cover.home-view .studio-link { position:absolute; top:0; left:50%; width:18%; height:16%; display:block; transform:translateX(-50%); opacity:0; }
.reference-cover.home-view .studio-logo { width:100%; max-height:100%; }
.reference-cover.home-view .header-actions { position:absolute; top:12.2%; right:2.4%; z-index:6; display:block; transform:none; }
.reference-cover.home-view #install-button { width:19.5vw; max-width:none; min-width:180px; height:7.3vw; max-height:none; min-height:70px; padding:9px 14px; justify-content:center; border:4px solid #65d8ff; border-radius:32px; background:linear-gradient(135deg,#127dba,#06427f); box-shadow:0 7px 0 rgba(0,27,79,.3); font-size:clamp(17px,1.8vw,25px); line-height:1.08; }
.reference-cover.home-view .install-icon { color:#25ed62; font-size:clamp(27px,3vw,42px); }
.reference-cover.home-view .install-label { display:block; text-align:center; }
.reference-cover.home-view .hero { display:none; }
.reference-cover.home-view .learning-section { position:absolute; z-index:2; inset:52.5% 2.05% 10.1%; padding:0; background:transparent; }
.reference-cover.home-view .section-heading,.reference-cover.home-view .category-filters { display:none; }
.reference-cover.home-view .workshop-grid { position:absolute; inset:0; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:.9fr 1fr; gap:6% .8%; }
.reference-cover.home-view .workshop-card { position:relative; display:block; min-height:0; padding:0; overflow:hidden; border:0; border-radius:24px; background:transparent!important; box-shadow:none; transition:none; }
.reference-cover.home-view .workshop-card:hover { transform:none; box-shadow:none; }
.reference-cover.home-view .card-top,.reference-cover.home-view .card-icon,.reference-cover.home-view .card-tag,.reference-cover.home-view .workshop-card h3,.reference-cover.home-view .workshop-card p,.reference-cover.home-view .card-bottom,.reference-cover.home-view .completed-badge { opacity:0; }
.reference-cover.home-view .card-bottom { position:absolute; inset:0; display:block; margin:0; }
.reference-cover.home-view .card-open { position:absolute; inset:0; width:100%; height:100%; max-width:none; border:0; border-radius:inherit; background:transparent!important; color:transparent; opacity:0; cursor:pointer; }
.reference-cover.home-view .card-open:hover { opacity:1; background:transparent!important; color:transparent; }
.reference-cover.home-view .card-open::after { content:""; position:absolute; inset:7px; display:block; border:3px solid rgba(255,255,255,.94); border-radius:20px; background:rgba(0,108,174,.09); box-shadow:0 7px 17px rgba(0,39,81,.32); opacity:0; transform:translateY(8px) scale(.985); transition:opacity .16s ease,transform .16s ease; pointer-events:none; }
.reference-cover.home-view .card-open:hover::after,.reference-cover.home-view .card-open:focus-visible::after { opacity:1; transform:translateY(0) scale(1); }
.reference-cover.home-view .card-open:active::after { transform:translateY(2px) scale(.99); background:rgba(0,73,137,.2); }
.reference-cover.home-view .card-open:focus-visible { opacity:1; outline:5px solid #fff; outline-offset:-7px; background:rgba(0,73,137,.12)!important; }
.reference-cover.home-view .stats-strip { position:absolute; z-index:4; left:0; bottom:6.7%; width:100%; height:9.8%; min-height:0; grid-template-columns:1.14fr .94fr .73fr; gap:0; margin:0; padding:0 2.8%; border:0; border-radius:0; background:linear-gradient(105deg,#064b8b,#053876); box-shadow:none; }
.reference-cover.home-view .stat-block { min-height:0; gap:12px; padding:0 16px; }
.reference-cover.home-view .stat-block:last-child { padding-right:0; }
.reference-cover.home-view .stat-emoji { font-size:clamp(26px,3vw,42px); }
.reference-cover.home-view .stat-title,.reference-cover.home-view .stat-content h2 { font-size:clamp(15px,1.5vw,20px); }
.reference-cover.home-view .stat-content p,.reference-cover.home-view .stat-caption { font-size:clamp(11px,1vw,14px); }
.reference-cover.home-view .visit-digits { font-size:clamp(21px,2.25vw,32px); }
.reference-cover.home-view .progress-stat #progress-label,.reference-cover.home-view .progress-count { display:none; }
.reference-cover.home-view .progress-meter { display:block; }
.reference-cover.home-view .progress-track { height:clamp(13px,1.6vw,22px); }
.reference-cover.home-view .badge-stat .badge-count { display:grid; place-items:center; width:clamp(46px,4.7vw,68px); height:clamp(46px,4.7vw,68px); border:4px solid #ffe065; border-radius:50%; background:#ffbe08; color:#073576; font-size:clamp(23px,2.4vw,36px); }
.reference-cover.home-view .site-footer { position:absolute; z-index:3; right:0; bottom:0; left:0; height:6.7%; min-height:0; opacity:0; pointer-events:none; }
.reference-cover:not(.home-view) { aspect-ratio:auto; overflow:visible; background:transparent; }
.reference-cover:not(.home-view) .reference-art { display:none; }
.reference-cover:not(.home-view) .site-header { position:relative; inset:auto; min-height:100px; padding-inline:max(32px,calc((100% - 1200px)/2)); display:grid; grid-template-columns:1fr auto 1fr; align-items:center; background:linear-gradient(110deg,#0879b8,#064482 72%,#05366f); }
.reference-cover:not(.home-view) .studio-link { position:static; width:auto; height:auto; grid-column:2; justify-self:center; display:inline-flex; opacity:1; transform:none; }
.reference-cover:not(.home-view) .studio-logo { width:178px; max-height:88px; }
.reference-cover:not(.home-view) .header-actions { position:static; grid-column:3; justify-self:end; display:flex; transform:none; }
.reference-cover:not(.home-view) #install-button { width:auto; max-width:none; min-width:0; height:auto; min-height:54px; border-width:2px; border-radius:16px; font-size:18px; }
.reference-cover:not(.home-view) .install-label { display:block; }
.reference-cover:not(.home-view) main { position:relative; inset:auto; width:min(1200px,calc(100% - 64px)); margin:auto; }
.reference-cover:not(.home-view) .learning-section { position:relative; inset:auto; padding:0 0 45px; background:transparent; }
.reference-cover:not(.home-view) .section-heading { display:flex; }
.reference-cover:not(.home-view) .category-filters { display:flex; }
.reference-cover:not(.home-view) .workshop-grid { position:relative; inset:auto; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:auto; gap:20px; }
.reference-cover:not(.home-view) .workshop-card { position:relative; min-height:286px; display:flex; padding:22px; border:2px solid rgba(255,255,255,.95); border-radius:23px; background:linear-gradient(135deg,color-mix(in srgb,var(--card-bg,#eaf5fa) 85%,white),var(--card-bg,#eaf5fa))!important; box-shadow:0 7px 14px rgba(16,54,86,.12); }
.reference-cover:not(.home-view) .card-top,.reference-cover:not(.home-view) .card-icon,.reference-cover:not(.home-view) .card-tag,.reference-cover:not(.home-view) .workshop-card h3,.reference-cover:not(.home-view) .workshop-card p,.reference-cover:not(.home-view) .card-bottom,.reference-cover:not(.home-view) .completed-badge { opacity:1; }
.reference-cover:not(.home-view) .card-top { display:flex; }
.reference-cover:not(.home-view) .card-icon { width:64px; height:64px; font-size:34px; background:rgba(255,255,255,.76); }
.reference-cover:not(.home-view) .card-tag { display:block; }
.reference-cover:not(.home-view) .workshop-card h3 { margin:17px 0 7px; }
.reference-cover:not(.home-view) .workshop-card p { margin:0 0 16px; }
.reference-cover:not(.home-view) .card-bottom { position:static; display:flex; margin-top:auto; }
.reference-cover:not(.home-view) .card-open { position:static; width:48px; height:48px; min-height:46px; opacity:1; border-radius:13px; background:#fff!important; color:#244e4f; }
.reference-cover:not(.home-view) .stats-strip { position:relative; left:auto; bottom:auto; width:100%; height:auto; min-height:104px; grid-template-columns:1fr 1.25fr 1fr; gap:14px; margin:0; padding:12px 32px; }
.reference-cover:not(.home-view) .stat-block { min-height:76px; padding:0 20px; }
.reference-cover:not(.home-view) .progress-stat #progress-label,.reference-cover:not(.home-view) .progress-count { display:initial; }
.reference-cover:not(.home-view) .progress-meter { display:grid; }
.reference-cover:not(.home-view) .badge-stat .badge-count { display:block; width:auto; height:auto; border:0; border-radius:0; background:transparent; color:#ffd440; font-size:36px; }
.reference-cover:not(.home-view) .site-footer { position:relative; right:auto; bottom:auto; left:auto; height:auto; min-height:76px; opacity:1; background:linear-gradient(110deg,#0879b8,#064482 72%,#05366f); pointer-events:auto; }
/* Keep the original cover artwork fully visible on desktop without page scrolling. */
@media (min-width:1051px) {
  body:has(.reference-cover.home-view) { display:grid; min-height:100vh; height:100vh; height:100dvh; place-items:center; overflow:hidden; background:#07559a; }
  .reference-cover.home-view { width:min(100vw,150vh); width:min(100vw,150dvh); height:min(100vh,66.6667vw); height:min(100dvh,66.6667vw); aspect-ratio:3/2; margin-inline:auto; }
}
@media(max-width:1050px) {
  .reference-cover.home-view { aspect-ratio:auto; overflow:visible; background:transparent; }
  .reference-cover.home-view .reference-art { display:none; }
  .reference-cover.home-view main { position:relative; inset:auto; width:100%; margin:0; }
  .reference-cover.home-view .site-header { position:relative; inset:auto; min-height:92px; padding:9px 12px; display:flex; justify-content:center; background:linear-gradient(110deg,#0879b8,#064482 72%,#05366f); }
  .reference-cover.home-view .studio-link { position:absolute; top:50%; left:50%; width:auto; height:auto; opacity:1; transform:translate(-50%,-50%); }
  .reference-cover.home-view .studio-logo { width:154px; max-height:72px; }
  .reference-cover.home-view .header-actions { position:absolute; top:50%; right:16px; transform:translateY(-50%); }
  .reference-cover.home-view #install-button { width:170px; min-width:170px; max-width:190px; height:48px; min-height:48px; padding:5px 10px; border:2px solid #65d8ff; border-radius:16px; font-size:14px; }
  .reference-cover.home-view .install-label { display:block; }
  .reference-cover.home-view .hero { position:relative; inset:auto; display:block; min-height:294px; padding:24px 24px 22px; visibility:visible; }
  .reference-cover.home-view .learning-section { position:relative; inset:auto; padding:12px 20px 22px; background:linear-gradient(#e9f8ff,#f7fcff); }
  .reference-cover.home-view .section-heading { display:none; }
  .reference-cover.home-view .category-filters { display:none; }
  .reference-cover.home-view .workshop-grid { position:relative; inset:auto; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto; gap:14px; }
  .reference-cover.home-view .workshop-card { min-height:167px; display:grid; grid-template-columns:100px minmax(0,1fr) 48px; padding:12px; border:3px solid white; border-radius:22px; background:linear-gradient(135deg,color-mix(in srgb,var(--card-bg,#eaf5fa) 70%,white),var(--card-bg,#eaf5fa))!important; box-shadow:0 5px 10px rgba(7,66,117,.2); }
  .reference-cover.home-view .card-top,.reference-cover.home-view .card-icon,.reference-cover.home-view .card-tag,.reference-cover.home-view .workshop-card h3,.reference-cover.home-view .workshop-card p,.reference-cover.home-view .card-bottom,.reference-cover.home-view .completed-badge { opacity:1; }
  .reference-cover.home-view .card-top { display:contents; }
  .reference-cover.home-view .card-icon { grid-column:1; grid-row:1/3; width:84px; height:84px; font-size:54px; background:transparent; }
  .reference-cover.home-view .card-tag { display:none; }
  .reference-cover.home-view .workshop-card h3 { grid-column:2; grid-row:1; margin:0 0 4px; font-size:21px; }
  .reference-cover.home-view .workshop-card p { grid-column:2; grid-row:2; margin:0; font-size:15px; }
  .reference-cover.home-view .card-bottom { position:absolute; inset:0; display:block; margin:0; }
  .reference-cover.home-view .card-open { position:absolute; inset:auto 8px 8px auto; width:40px; height:40px; min-height:40px; border-radius:50%; opacity:1; background:#08a8dc!important; color:white; }
  .reference-cover.home-view .stats-strip { position:relative; left:auto; bottom:auto; width:100%; height:auto; min-height:104px; grid-template-columns:1fr 1.25fr 1fr; gap:14px; padding:12px 22px; }
  .reference-cover.home-view .stat-block { min-height:76px; padding:0 8px; }
  .reference-cover.home-view .progress-stat #progress-label,.reference-cover.home-view .progress-count { display:initial; }
  .reference-cover.home-view .progress-meter { display:grid; }
  .reference-cover.home-view .badge-stat .badge-count { display:block; width:auto; height:auto; border:0; border-radius:0; background:transparent; color:#ffd440; font-size:36px; }
  .reference-cover.home-view .site-footer { position:relative; right:auto; bottom:auto; left:auto; height:auto; min-height:68px; opacity:1; pointer-events:auto; }
}
@media(max-width:680px) {
  .reference-cover.home-view .site-header { min-height:132px; }
  .reference-cover.home-view .studio-link { top:6px; transform:translateX(-50%); }
  .reference-cover.home-view .studio-logo { width:130px; max-height:70px; }
  .reference-cover.home-view .header-actions { top:auto; right:auto; bottom:6px; left:50%; transform:translateX(-50%); }
  .reference-cover.home-view #install-button { width:190px; max-width:190px; height:44px; min-height:44px; font-size:14px; }
  .reference-cover.home-view .install-icon { font-size:22px; }
  .reference-cover.home-view .hero { min-height:256px; padding:24px 12px 18px; }
  .reference-cover.home-view .hero-pills { flex-wrap:nowrap; gap:6px; }
  .reference-cover.home-view .hero-pill { flex:1 1 0; min-width:0; gap:5px; padding:6px 6px; font-size:clamp(12px,3.7vw,15px); white-space:nowrap; }
  .reference-cover.home-view .learning-section { padding:12px; }
  .reference-cover.home-view .workshop-grid { grid-template-columns:1fr; gap:10px; }
  .reference-cover.home-view .workshop-card { min-height:120px; grid-template-columns:82px minmax(0,1fr) 44px; padding:10px 12px; }
  .reference-cover.home-view .card-icon { width:74px; height:74px; font-size:54px; }
  .reference-cover.home-view .stats-strip { grid-template-columns:1fr; gap:0; padding:10px 20px; }
  .reference-cover.home-view .stat-block,.reference-cover.home-view .stat-block:last-child { min-height:65px; padding:7px 2px; }
}

/* Align the live controls with the reserved elements in the revised cover art. */
@media(min-width:1051px) {
  .reference-cover.home-view .stats-strip { top:41.8%; bottom:auto; left:0; width:100%; height:8.7%; min-height:0; grid-template-columns:minmax(0,.68fr) minmax(0,1fr); align-items:center; gap:0; margin:0; padding:0 2.8%; border:0; border-radius:0; background:transparent; box-shadow:none; }
  .reference-cover.home-view .visit-stat { min-height:0; justify-content:center; gap:0; padding:0 14px; border-right:0; }
  .reference-cover.home-view .visit-counter { width:80%; gap:10px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:#fff; font-size:clamp(11px,.95vw,15px); }
  .reference-cover.home-view .visit-counter-logo { width:clamp(48px,4.2vw,66px); }
  .reference-cover.home-view .visit-counter-info { gap:5px; }
  .reference-cover.home-view .visit-counter-line { gap:3px 6px; color:#f0f8ff; font-size:1em; }
  .reference-cover.home-view .visit-counter-reels { font-size:1.55em; }
  .reference-cover.home-view .visit-counter-welcome { font-size:1.05em; }
  .reference-cover.home-view .name-entry { gap:5px; padding:4px 12px; color:#fff; }
  .reference-cover.home-view .name-entry label { color:#fff; font-size:clamp(14px,1.15vw,18px); }
  .reference-cover.home-view .name-entry-controls { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  .reference-cover.home-view .name-entry input { min-height:42px; padding:7px 12px; border-color:#d5f3ff; font-size:16px; }
  .reference-cover.home-view .name-entry .button { min-height:42px; padding:7px 16px; font-size:16px; }
  .reference-cover.home-view .header-actions { top:2%; right:2.4%; }
  .reference-cover.home-view #install-button { width:23.5vw; max-width:none; min-width:0; height:8.6vw; max-height:none; min-height:0; padding:0; border:0; border-radius:28px; background:transparent!important; box-shadow:none; color:transparent; }
  .reference-cover.home-view .install-icon,.reference-cover.home-view .install-label { opacity:0; }
  .reference-cover.home-view #install-button:focus-visible { outline:4px solid #fff; outline-offset:3px; background:rgba(255,255,255,.16)!important; }
}

/* Other pages keep only their own content; cover-only controls stay on home. */
.reference-cover:not(.home-view) .stats-strip,
.reference-cover:not(.home-view) #install-button { display:none!important; }
.games-link-page { max-width:1100px; min-height:calc(100vh - 260px); margin:0 auto 44px; padding:clamp(20px,4vw,36px); border:1px solid #d5e2e8; border-radius:26px; background:linear-gradient(145deg,#fff,#edf8fd); box-shadow:var(--shadow); }
.games-link-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:30px; }
.game-link { min-height:190px; display:grid; grid-template-rows:1fr auto; justify-items:center; align-items:center; gap:8px; padding:20px; border:3px solid rgba(255,255,255,.9); border-radius:24px; color:#fff; text-align:center; text-decoration:none; box-shadow:0 7px 0 rgba(5,54,102,.2),0 12px 22px rgba(4,51,93,.13); transition:transform .18s ease,box-shadow .18s ease,filter .18s ease; }
.game-link:nth-child(1) { background:linear-gradient(145deg,#169ecb,#075a9c); }
.game-link:nth-child(2) { background:linear-gradient(145deg,#8750d1,#54239c); }
.game-link:nth-child(3) { background:linear-gradient(145deg,#e59b17,#b85a09); }
.game-link-icon { align-self:end; font-size:clamp(48px,7vw,72px); line-height:1; filter:drop-shadow(0 3px 4px rgba(0,0,0,.2)); }
.game-link-title { font:900 clamp(20px,2.1vw,27px)/1.15 'Nunito',sans-serif; }
.game-link:hover { transform:translateY(-5px) scale(1.015); filter:brightness(1.07); box-shadow:0 11px 0 rgba(5,54,102,.2),0 19px 28px rgba(4,51,93,.2); }
.game-link:active { transform:translateY(2px) scale(.99); }
.game-link:focus-visible { outline:4px solid #f4cf47; outline-offset:4px; }
@media(max-width:900px) { .games-link-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:620px) {
  .games-link-page { min-height:calc(100vh - 230px); padding:18px 14px; }
  .games-link-grid { grid-template-columns:1fr; gap:12px; margin-top:22px; }
  .game-link { min-height:92px; grid-template-columns:60px minmax(0,1fr) 28px; grid-template-rows:1fr; justify-items:start; gap:12px; padding:12px 16px; border-radius:18px; text-align:left; }
  .game-link-icon { align-self:center; font-size:42px; }
  .game-link-title { font-size:20px; }
  .game-link-arrow { justify-self:end; font-size:28px; font-weight:900; }
}



/* ===== App instalada: el botón "Instalar aplicación" desaparece ===== */
#install-button[hidden],
.app-installed #install-button { display:none!important; }
.reference-art-installed { display:none; }
.app-installed .reference-cover.home-view .reference-art:not(.reference-art-installed) { display:none; }
.app-installed .reference-cover.home-view .reference-art-installed { display:block; }
@media(max-width:1050px) {
  .reference-cover.home-view .reference-art-installed,
  .app-installed .reference-cover.home-view .reference-art-installed { display:none; }
}

/* ===== Móvil: contador de visitas y nombre justo debajo de Aprende · Practica · Disfruta ===== */
@media(max-width:1050px) {
  .reference-cover.home-view main { display:flex; flex-direction:column; }
  .reference-cover.home-view .hero { order:1; }
  .reference-cover.home-view .stats-strip { order:2; }
  .reference-cover.home-view .learning-section { order:3; }
}
