/* Dunia Game Ceria — modern playful learning portal. */

:root {
  --paper: #F7F2E9;
  --paper-deep: #EFE7D6;
  --card: #FFFDF8;
  --ink: #211D19;
  --muted: #6F675E;
  --faint: #9A9188;
  --line: #E2D8C3;
  --line-soft: #EDE5D3;
  --pine: #1C3A2E;
  --pine-hover: #132920;
  --honey: #E8A317;
  --clay: #C65D21;
  --sage: #E4E7D8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(33, 29, 25, .07);
  --shadow-md: 0 2px 6px rgba(33, 29, 25, .07), 0 12px 28px -18px rgba(33, 29, 25, .28);
  --font-display: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  background-image: radial-gradient(rgba(33,29,25,.055) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 4px;
  background: var(--pine); z-index: 50;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* Announcement */
.announce {
  background: var(--pine); color: #F3EDDF;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .8rem; letter-spacing: .02em; padding: 12px 16px 14px; text-align: center;
}
.announce-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--honey); flex-shrink: 0; }
.announce p { font-weight: 500; }

/* Navbar */
.navbar {
  display: flex; align-items: center; gap: 28px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  position: sticky; top: 4px; z-index: 40;
  background: rgba(247, 242, 233, .92); backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.brand-mark-sm { width: 36px; height: 36px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.brand-text small { font-size: .74rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
.navbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: 12px 20px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--pine); color: #FBF7EE; }
.btn-primary:hover { background: var(--pine-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); }

/* Eyebrow */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow-line { width: 28px; height: 2px; background: var(--clay); display: inline-block; border-radius: 2px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.5fr .9fr; gap: 32px; padding: 56px 0 28px; align-items: start; }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em;
  margin-bottom: 16px; text-wrap: balance;
}
.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 56ch; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; max-width: 560px; }
.hero-stats div { flex: 1; padding: 14px 18px; }
.hero-stats div + div { border-left: 1px solid var(--line-soft); }
.hero-stats dt { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.hero-stats dd { font-size: .82rem; color: var(--muted); }

/* Spot card */
.spot-card { background: var(--pine); color: #F1EAD9; border-radius: 20px; padding: 24px; box-shadow: var(--shadow-md); }
.spot-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--honey); margin-bottom: 14px; }
.spot-list { list-style: none; display: flex; flex-direction: column; }
.spot-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(241,234,217,.16); }
.spot-list li:first-child { border-top: none; padding-top: 0; }
.spot-num { font-family: var(--font-display); font-size: .85rem; color: rgba(241,234,217,.6); width: 24px; }
.spot-list strong { display: block; font-size: .95rem; }
.spot-list small { color: rgba(241,234,217,.72); font-size: .8rem; }
.spot-tag { margin-left: auto; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(241,234,217,.3); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.spot-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(241,234,217,.16); font-size: .85rem; color: rgba(241,234,217,.8); }

/* Trust */
.trust {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 8px; margin: 12px 0 8px;
  font-size: .85rem; font-weight: 600; color: var(--muted);
}
.trust i { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

/* Library */
.library { padding: 36px 0 8px; }
.library-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.library-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.results-count { font-size: .88rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.results-count span { color: var(--ink); font-weight: 700; }

.controls-toolbar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.search-wrapper { position: relative; margin-bottom: 14px; }
.search-svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search-input {
  width: 100%; padding: 13px 44px 13px 44px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); outline: none;
}
.search-input:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(28,58,46,.12); }
.search-input::placeholder { color: var(--faint); }
.search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent;
  color: var(--muted); cursor: pointer; display: none; align-items: center; justify-content: center;
}
.search-clear.active { display: inline-flex; }
.search-clear:hover { background: var(--paper-deep); color: var(--ink); }

.category-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.category-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.category-chip:hover { border-color: var(--ink); color: var(--ink); }
.category-chip.active { background: var(--ink); border-color: var(--ink); color: #FBF7EE; }
.category-chip .count-badge { font-size: .74rem; font-weight: 700; background: rgba(0,0,0,.07); padding: 1px 8px; border-radius: 999px; }
.category-chip.active .count-badge { background: rgba(255,255,255,.2); }
.favorites-chip.active { background: var(--clay); border-color: var(--clay); }

/* Cards — 4 per row on desktop */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.game-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  animation: rise .4s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-visual { height: 150px; position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 16px 30px; overflow: hidden; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.card-visual::before { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 1.5px solid rgba(33,29,25,.12); top: 50%; left: 50%; transform: translate(-50%, -42%); pointer-events: none; }
.card-visual::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 1.5px solid rgba(33,29,25,.1); top: 50%; left: 50%; transform: translate(-50%, -42%); pointer-events: none; }
.card-visual:focus-visible { outline: 2px solid var(--pine); outline-offset: -2px; }
.card-art { position: relative; z-index: 1; width: 78px; height: 78px; color: #2A2521; }
.card-art svg { width: 100%; height: 100%; display: block; }
.game-card:hover .card-art { transform: scale(1.07) rotate(-2deg); }
.card-art { transition: transform .18s ease; }
.card-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.type-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,253,248,.92); border: 1px solid rgba(0,0,0,.08); padding: 4px 10px; border-radius: 999px; color: var(--ink); max-width: calc(100% - 44px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.favorite-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); background: rgba(255,253,248,.94); color: #B9AFA1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.favorite-btn:hover { color: var(--clay); border-color: var(--clay); }
.favorite-btn.favorited { color: var(--clay); border-color: var(--clay); background: #FFF4E8; }
.card-index { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .08em; background: rgba(255,253,248,.9); border: 1px solid rgba(0,0,0,.07); padding: 2px 10px; border-radius: 8px; white-space: nowrap; }

.card-content { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-name { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.age-tag { margin-left: auto; font-size: .76rem; font-weight: 600; color: var(--faint); }
.card-title { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 6px; }
.card-desc { font-size: .89rem; color: var(--muted); line-height: 1.55; margin-bottom: 14px; flex: 1; }
.card-foot { display: flex; align-items: center; gap: 10px; border-top: 1px dashed var(--line); padding-top: 14px; margin-top: auto; }
.play-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pine); color: #FBF7EE; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  padding: 11px 16px; border-radius: 12px;
}
.play-btn:hover { background: var(--pine-hover); }
.tab-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; flex-shrink: 0;
}
.tab-btn:hover { color: var(--ink); border-color: var(--ink); }

/* Empty */
.empty-state { grid-column: 1 / -1; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 56px 24px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }
.reset-filter-btn { background: var(--ink); color: #FBF7EE; border: none; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer; }

/* Howto */
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
.howto-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; }
.howto-step span { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #FBF7EE; font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.howto-step strong { font-size: .95rem; display: block; margin-bottom: 2px; }
.howto-step p { font-size: .86rem; color: var(--muted); }

/* Info */
.info-section { border-top: 1px solid var(--line); padding: 44px 0 20px; margin-bottom: 20px; }
.info-head h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; margin-bottom: 8px; }
.info-lead { color: var(--muted); max-width: 62ch; margin-bottom: 22px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info-grid article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-grid h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.info-grid p { font-size: .9rem; color: var(--muted); }
.info-quote { background: var(--pine) !important; border-color: var(--pine) !important; color: #F1EAD9; }
.info-quote p { color: rgba(241,234,217,.85) !important; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 26px 0 40px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { font-family: var(--font-display); }
.footer-brand p, .footer-copy { font-size: .84rem; color: var(--muted); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(24,20,16,.66); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-window { width: 100%; max-width: 1060px; height: 88vh; max-height: 820px; background: var(--card); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,.2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-game-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.modal-game-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--pine); flex-shrink: 0; }
.modal-game-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-controls { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.modal-btn { font: inherit; font-size: .82rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.modal-btn:hover { border-color: var(--ink); }
.modal-close-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.modal-close-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal-body { flex: 1; position: relative; background: #fff; }
.modal-iframe { width: 100%; height: 100%; border: none; display: block; }
.modal-loading { position: absolute; inset: 0; background: var(--card); display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; }
.modal-loading.hidden { display: none; }
.loader-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--pine); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-weight: 600; color: var(--muted); font-size: .92rem; }

.toast-msg { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 80px); background: var(--ink); color: #FBF7EE; padding: 11px 20px; border-radius: 999px; font-size: .88rem; font-weight: 600; opacity: 0; transition: all .25s ease; z-index: 200; }
.toast-msg.show { transform: translate(-50%, 0); opacity: 1; }


/* Modern playful collection */
:root { --paper:#f8f9fc; --card:#fff; --ink:#20243c; --muted:#686d82; --faint:#777d91; --line:#e5e7f0; --line-soft:#eef0f6; --pine:#6354d9; --pine-hover:#5041c2; --clay:#6354d9; --font-display:'Plus Jakarta Sans',system-ui,sans-serif; --radius:22px; --shadow-md:0 16px 40px -18px #34306740; }
body { background-image:none; }
body::before { display:none; }
.container { max-width:1280px; padding:0 40px; }
.announce { background:#edeafa; color:#5747b4; padding:9px 16px; font-size:.73rem; }
.announce-dot { background:#9381ef; }
.navbar { top:0; padding:21px 0; background:rgba(248,249,252,.94); backdrop-filter:blur(16px); }
.brand-text strong { font-size:1.02rem; font-weight:800; }
.brand-text small { font-size:.61rem; margin-top:5px; }
.brand-mark { border:0; background:#eeeafb; }
.nav-links { margin-left:auto; }
.navbar-actions { margin-left:10px; }
.btn { font-family:var(--font-body); font-size:.85rem; padding:15px 23px; font-weight:700; }
.btn-sm { padding:11px 18px; font-size:.78rem; }
.btn-primary { box-shadow:0 6px 16px #6354d926; }
.btn-ghost { background:#fff; }
.hero { grid-template-columns:1.05fr 1fr; gap:45px; align-items:center; padding:64px 0 48px; }
.hero .eyebrow { font-size:.64rem; letter-spacing:.06em; color:#6354d9; }
.hero-title { font-size:clamp(2.8rem,5.2vw,4.5rem); font-weight:800; letter-spacing:-.065em; line-height:1.08; margin-bottom:23px; }
.hero-title span { color:#7260db; }
.hero-sub { font-size:.97rem; line-height:1.85; max-width:46ch; }
.hero-stats { background:transparent; border:0; border-radius:0; max-width:420px; }
.hero-stats div { padding:0 22px; }
.hero-stats div:first-child { padding-left:0; }
.hero-stats dt { font-size:1.55rem; letter-spacing:-.04em; }
.hero-stats dd { font-size:.7rem; margin-top:4px; }
.play-world { height:440px; position:relative; background:#eeebfc; border-radius:44% 44% 36% 38%; }
.world-orbit { position:absolute; border:1px solid #d6cff3; border-radius:50%; inset:24px; transform:rotate(-25deg); }
.orbit-two { inset:65px -10px; transform:rotate(32deg); }
.world-label { position:absolute; top:22px; left:50%; transform:translateX(-50%); white-space:nowrap; font-size:.68rem; font-weight:600; background:#fff; border-radius:30px; padding:10px 16px; box-shadow:0 4px 18px #6354d911; }
.world-label span { display:inline-block; width:6px; height:6px; border-radius:50%; background:#56aa83; margin-right:5px; }
.world-tile { position:absolute; text-decoration:none; color:var(--ink); border:5px solid #fff; border-radius:25px; box-shadow:0 18px 30px -12px #40336730; padding:21px; transition:transform .2s; }
.world-tile:hover { transform:translateY(-7px) rotate(0); }
.tile-abc { top:83px; left:10px; width:52%; background:#ffe4a2; transform:rotate(-9deg); z-index:2; }
.tile-math { top:109px; right:0; width:47%; background:#dbd4ff; transform:rotate(10deg); z-index:3; }
.tile-caption { display:block; font-size:.57rem; font-weight:800; letter-spacing:.12em; }
.world-tile strong { display:block; font-family:'Fredoka',sans-serif; font-size:clamp(3rem,5.7vw,4.5rem); line-height:1.4; letter-spacing:-.04em; color:#c16a25; }
.tile-abc strong span { display:inline-block; transform:translateY(-8px) rotate(12deg); color:#7559c7; }
.tile-math strong { color:#6650bb; white-space:nowrap; }
.tile-math strong span { color:#fff; }
.tile-bottom { display:block; font-size:.55rem; font-weight:600; }
.tile-garden { bottom:51px; left:12%; width:78%; background:#d8eee2; display:flex; gap:17px; align-items:center; z-index:4; transform:rotate(-3deg); padding:15px 21px; }
.garden-flower { color:#f294b0; font-size:5.3rem; line-height:1; text-shadow:2px 3px 0 #fff; }
.tile-garden b { display:block; font-size:1.03rem; line-height:1.3; margin-top:7px; }
.garden-arrow { margin-left:auto; font-size:1.7rem; }
.world-note { position:absolute; bottom:8px; width:100%; text-align:center; font-size:.68rem; color:#6e638f; }
.world-note span { font-size:1.3rem; vertical-align:middle; margin-right:5px; }
.world-spark { position:absolute; font-size:2.5rem; color:#9a86df; }
.spark-one { right:0; top:38px; }
.spark-two { left:0; bottom:85px; color:#e6b95b; }
.trust { border:0; background:#fff; border-radius:18px; font-size:.73rem; padding:20px 12px; gap:18px; }
.library { padding-top:64px; scroll-margin-top:100px; }
.library-head { margin-bottom:26px; }
.library-head h2,.info-head h2 { font-weight:800; letter-spacing:-.045em; font-size:2rem; }
.eyebrow { font-size:.65rem; color:#8171cd; }
.results-count { font-size:.75rem; }
.controls-toolbar { padding:0; border:0; background:transparent; box-shadow:none; margin-bottom:28px; }
.search-input { padding:16px 44px; border-radius:15px; font-size:.85rem; }
.category-chip { background:#fff; padding:10px 15px; font-size:.75rem; }
.category-chip.active { background:var(--pine); border-color:var(--pine); }
.games-grid { gap:22px; grid-template-columns:repeat(4,minmax(0,1fr)); }
.game-card { border:1px solid #e9eaf2; box-shadow:0 4px 15px #25234404; }
.card-visual { height:177px; border:0; margin:9px 9px 0; border-radius:16px; }
.card-art { width:95px; height:95px; }
.card-visual::before { background:#ffffff20; border:0; }
.card-visual::after { border:1px solid #ffffff55; }
.type-label { font-size:.55rem; letter-spacing:.03em; padding:5px 8px; }
.card-index { display:none; }
.favorite-btn { width:34px; height:34px; }
.card-content { padding:18px; }
.card-meta { flex-wrap:wrap; gap:5px; }
.cat-name { font-size:.57rem; letter-spacing:.03em; }
.age-tag { font-size:.6rem; color:var(--muted); }
.card-title { font-size:1rem; font-weight:800; line-height:1.4; margin:4px 0 8px; }
.card-desc { font-size:.76rem; line-height:1.75; }
.card-foot { border-top:1px solid var(--line-soft); }
.play-btn { font-family:var(--font-body); font-size:.75rem; background:#f0edfc; color:#6354d9; padding:12px; }
.play-btn:hover { color:#fff; }
.tab-btn { width:39px; height:39px; }
.howto { margin-top:45px; gap:20px; scroll-margin-top:110px; }
.howto-step { background:transparent; border:0; padding:16px 0; }
.howto-step span { background:#ebe7fa; color:#6354d9; border-radius:12px; width:40px; height:40px; }
.howto-step strong { font-size:.83rem; }
.howto-step p { font-size:.75rem; }
.info-section { padding:40px; background:#eeebf9; border:0; border-radius:28px; margin:15px 0 50px; scroll-margin-top:100px; }
.info-lead { font-size:.87rem; }
.info-grid article { border:0; }
.info-grid h3 { font-size:.92rem; font-weight:800; }
.info-grid p { font-size:.8rem; }
.footer { padding-bottom:30px; }
.footer-brand p,.footer-copy { font-size:.7rem; }
.modal-window:fullscreen,.modal-window.is-fullscreen { width:100%; max-width:none; height:100dvh; max-height:none; border-radius:0; }
:focus-visible { outline:3px solid #8d77e5; outline-offset:4px; }
@media(max-width:1100px) { .games-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .nav-links { gap:15px; } .nav-links a { font-size:.75rem; } }
@media(max-width:900px) { .container { padding:0 24px; } .nav-links { display:none; } .navbar-actions { margin-left:auto; } .hero { gap:25px; } .hero-title { font-size:3.1rem; } .hero .eyebrow { font-size:.54rem; } .play-world { height:380px; } .world-tile { padding:15px; } .tile-bottom { font-size:.46rem; } .tile-garden { padding:12px; bottom:44px; } .garden-flower { font-size:3.5rem; } .tile-garden b { font-size:.85rem; } .trust { gap:10px; } .trust i { display:none; } .howto,.info-grid { grid-template-columns:1fr; } }
@media(max-width:650px) { .container { padding:0 18px; } .announce { font-size:.6rem; } .navbar { padding:15px 0; gap:8px; } .brand { gap:8px; } .brand-text strong { font-size:.85rem; } .brand-text small { font-size:.5rem; } .brand-mark { width:35px; height:35px; } .navbar-actions { gap:6px; } .navbar .btn-sm { padding:10px 12px; font-size:.65rem; } .icon-btn { width:34px; height:34px; } .hero { grid-template-columns:1fr; padding:38px 0 28px; gap:34px; } .hero .eyebrow { font-size:.57rem; } .hero-title { font-size:3.4rem; } .hero-sub { font-size:.88rem; } .hero-cta { gap:9px; } .hero-cta .btn { font-size:.75rem; padding:14px 17px; } .hero-stats dd { font-size:.64rem; } .hero-stats dt { font-size:1.4rem; } .play-world { height:365px; max-width:440px; width:100%; margin:auto; } .world-tile strong { font-size:3.4rem; } .tile-abc { top:75px; } .tile-math { top:95px; } .tile-garden { bottom:43px; } .world-label { font-size:.6rem; } .tile-bottom { font-size:.5rem; } .trust { font-size:.64rem; display:grid; grid-template-columns:1fr 1fr; text-align:center; padding:18px 9px; gap:13px; } .library { padding-top:40px; } .library-head { flex-direction:column; align-items:flex-start; gap:12px; } .library-head h2,.info-head h2 { font-size:1.7rem; } .category-pills { flex-wrap:nowrap; overflow-x:auto; padding:3px 0 9px; } .category-chip { flex-shrink:0; min-height:42px; } .games-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .game-card { border-radius:18px; } .card-visual { height:140px; margin:6px 6px 0; border-radius:12px; } .card-art { width:76px; height:76px; } .card-top { top:8px; left:7px; right:7px; } .type-label { font-size:.48rem; padding:4px 6px; max-width:calc(100% - 36px); } .favorite-btn { width:32px; height:32px; } .card-content { padding:12px; } .cat-name { font-size:.49rem; } .age-tag { margin-left:0; font-size:.55rem; } .card-title { font-size:.86rem; } .card-desc { font-size:.68rem; } .card-foot { gap:5px; padding-top:10px; } .play-btn { min-height:42px; font-size:.7rem; padding:10px 7px; } .tab-btn { width:32px; height:42px; } .info-section { padding:25px 19px; } .footer { gap:16px; } .modal-overlay { padding:0; } .modal-window { height:100dvh; max-height:100dvh; border-radius:0; } .modal-header { flex-wrap:wrap; padding:12px; gap:8px; } .modal-controls { width:100%; } .modal-close-btn { margin-left:auto; } .modal-btn { padding:8px 10px; font-size:.7rem; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; } }

/* Contain decorative orbit and rotated cards within the page. */
.hero-side { min-width:0; overflow:clip; padding:14px; }
@media(max-width:650px) { .hero-side { padding:14px 8px; } }
