:root {
  --ink: #29134a;
  --purple: #5b2189;
  --purple-dark: #3d155f;
  --purple-soft: #f0e8fa;
  --yellow: #ffc52a;
  --pink: #ff7892;
  --blue: #80b9f4;
  --cream: #fff9ec;
  --white: #ffffff;
  --muted: #6f6283;
  --line: #e8dff0;
  --shadow: 0 18px 50px rgba(58, 23, 91, 0.12);
  font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; top: -100px; left: 18px; z-index: 99; background: var(--purple); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 18px; }

.site-header { width: min(1180px, calc(100% - 40px)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 48px; height: 48px; border-radius: 16px; overflow: hidden; background: var(--yellow); border: 2px solid var(--purple); display: grid; place-items: center; box-shadow: 0 5px 0 var(--purple); }
.brand-mark img { width: 154%; max-width: none; transform: translateY(4%) scale(1.06); }
.brand-text { line-height: 1.05; display: grid; gap: 4px; }
.brand-text strong { font-size: 1.14rem; letter-spacing: -0.04em; }
.brand-text small { font-size: 0.72rem; color: var(--muted); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.account-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 2px solid var(--line); border-radius: 13px; color: var(--purple); background: #fff; font-size: .78rem; font-weight: 950; cursor: pointer; }
.account-button:hover, .account-button:focus-visible { border-color: var(--purple); box-shadow: 0 0 0 3px #eadcf6; outline: 0; }
.account-button.is-signed-in { border-color: #dcb844; background: #fff4c7; }
.language-switch { position: relative; isolation: isolate; display: inline-flex; align-items: center; width: 92px; min-height: 42px; padding: 4px; border: 2px solid var(--purple); border-radius: 13px; color: var(--purple); background: #fff; font-weight: 950; cursor: pointer; box-shadow: 0 3px 0 rgba(61, 21, 95, .13); }
.language-switch:hover { border-color: var(--purple-dark); }
.language-switch:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.language-option { position: relative; z-index: 2; width: 40px; text-align: center; line-height: 30px; font-size: .78rem; transition: color .18s ease; }
.language-toggle-thumb { position: absolute; z-index: 1; top: 4px; left: 4px; width: 40px; height: 30px; border-radius: 8px; background: var(--purple); box-shadow: 0 2px 0 var(--purple-dark); transition: transform .2s ease; }
.language-switch .lang-bm { color: #fff; }.language-switch .lang-en { color: var(--purple); }
.language-switch.is-english .language-toggle-thumb { transform: translateX(40px); }.language-switch.is-english .lang-bm { color: var(--purple); }.language-switch.is-english .lang-en { color: #fff; }
.header-cta { background: var(--purple); color: #fff; font-weight: 900; padding: 11px 17px; border-radius: 13px; box-shadow: 0 4px 0 var(--purple-dark); }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 550px; padding: 80px max(20px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: 50px; background: linear-gradient(126deg, #fff9ec 5%, #fbf3ff 51%, #eee1ff); }
.hero::after { content: ""; position: absolute; inset: auto -10% -94px; height: 170px; background: var(--cream); border-radius: 50% 50% 0 0 / 45% 45% 0 0; z-index: -1; }
.hero-copy { max-width: 610px; }
.eyebrow { color: var(--purple); font-size: .78rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 13px; }
.spark { color: var(--yellow); font-size: 1rem; text-shadow: 0 1px 0 var(--purple); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 6.4vw, 5.65rem); letter-spacing: -.075em; line-height: .88; margin-bottom: 23px; max-width: 590px; }
.hero-description { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; max-width: 530px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button { min-height: 51px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 15px; border-radius: 15px; padding: 0 20px; font-weight: 900; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.primary-button { background: var(--purple); color: var(--white); box-shadow: 0 5px 0 var(--purple-dark); }
.text-button { background: transparent; color: var(--purple); }
.play-icon { color: #fff; background: var(--pink); width: 24px; height: 24px; border-radius: 100%; display: grid; place-items: center; padding-left: 2px; font-size: .63rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 43px; }
.hero-trust div { display: grid; gap: 3px; }
.hero-trust strong { font-size: 1.15rem; color: var(--purple); }
.hero-trust span { font-size: .75rem; color: var(--muted); font-weight: 700; }

.hero-visual { position: relative; min-height: 405px; width: 100%; max-width: 500px; justify-self: end; }
.hero-visual::before { content: ""; position: absolute; width: 330px; height: 330px; right: 30px; top: 32px; border-radius: 48% 52% 58% 42%; transform: rotate(24deg); background: #ffd44b; opacity: .55; }
.visual-orbit { position: absolute; border: 2px dashed rgba(91, 33, 137, .22); border-radius: 50%; }
.orbit-one { width: 350px; height: 350px; left: 35px; top: 18px; transform: rotate(-30deg); }
.orbit-two { width: 270px; height: 270px; right: 10px; bottom: 4px; }
.hero-game-card { position: absolute; width: min(340px, 78%); height: 390px; top: 0; left: 50%; transform: translateX(-50%) rotate(5deg); background: linear-gradient(155deg, #7240a1, #4d1877); border: 6px solid #fff; outline: 3px solid var(--purple); border-radius: 34px; padding: 20px; color: #fff; box-shadow: 0 22px 0 rgba(63, 20, 95, .18), 0 32px 50px rgba(60, 19, 89, .25); }
.card-topline { display: flex; justify-content: space-between; font-size: .67rem; letter-spacing: .12em; font-weight: 900; }
.shapes-stage { position: relative; height: 254px; margin: 10px 0 4px; overflow: hidden; border-radius: 23px; background: linear-gradient(140deg, #f5ecff, #d8c4ee); }
.shape { position: absolute; display: block; }
.yellow-circle { width: 105px; height: 105px; left: 23px; top: 32px; border-radius: 50%; background: var(--yellow); box-shadow: 7px 9px 0 #eeb31d; }
.pink-triangle { right: 21px; bottom: 21px; width: 0; height: 0; border-left: 65px solid transparent; border-right: 65px solid transparent; border-bottom: 118px solid var(--pink); transform: rotate(-11deg); filter: drop-shadow(7px 7px 0 #e85d79); }
.blue-square { width: 74px; height: 74px; bottom: 26px; left: 37px; border-radius: 18px; background: var(--blue); transform: rotate(18deg); box-shadow: 7px 8px 0 #5a99dd; }
.purple-star { top: 22px; right: 32px; color: var(--purple); font-size: 86px; line-height: 1; text-shadow: 5px 7px 0 #cdb0e3; }
.hero-game-card p { margin: 0 0 12px; font-size: .85rem; font-weight: 950; letter-spacing: .08em; text-align: center; }
.mini-progress { display: flex; justify-content: center; gap: 8px; }
.mini-progress span { width: 9px; height: 9px; background: #fff; border-radius: 50%; opacity: .95; }
.floating-piece { position: absolute; z-index: 2; display: grid; place-items: center; font-weight: 900; box-shadow: 0 8px 18px rgba(62, 15, 94, .15); }
.piece-star { left: 0; top: 80px; width: 54px; height: 54px; color: #fff; background: var(--pink); border-radius: 17px; transform: rotate(-13deg); font-size: 25px; }
.piece-circle { width: 37px; height: 37px; right: 2px; top: 64px; background: var(--blue); border-radius: 50%; }
.piece-square { width: 43px; height: 43px; left: 28px; bottom: 5px; background: var(--yellow); border-radius: 11px; transform: rotate(23deg); }

.progress-section { position: relative; width: min(910px, calc(100% - 40px)); padding: 18px 22px 21px; margin: -30px auto 55px; border: 1px solid #e8d9f2; background: #fff; box-shadow: 0 12px 30px rgba(52, 15, 82, .08); border-radius: 19px; }
.progress-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: .86rem; }
.progress-topline p { margin: 0; color: var(--muted); font-weight: 800; }
.progress-topline strong { color: var(--purple); }
.progress-badge { font-weight: 900; color: var(--purple); font-size: .76rem; background: #f4edfb; padding: 7px 10px; border-radius: 999px; }
.collection-progress { margin-top: 12px; height: 9px; background: #ede4f3; border-radius: 99px; overflow: hidden; }
.collection-progress span { width: 1.11%; min-width: 15px; display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), #a865d6); }

.player-progress { width: min(1180px, calc(100% - 40px)); margin: 0 auto 48px; padding: 31px 34px; display: flex; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; border-radius: 25px; color: #fff; background: linear-gradient(125deg, #4d1877, #7135a0 62%, #9259bd); box-shadow: 0 18px 38px rgba(61, 21, 95, .2); }
.player-progress-copy { max-width: 700px; }.player-progress .eyebrow { color: #fff4c7; }.player-progress h2 { margin-bottom: 9px; font-size: clamp(1.8rem, 3vw, 2.7rem); }.player-progress-copy > p:last-of-type { margin-bottom: 20px; color: #f1e7fa; line-height: 1.5; }
.player-progress .primary-button { color: var(--purple); background: var(--yellow); box-shadow: 0 5px 0 #e2a915; }.player-progress .primary-button:hover { background: #ffcf45; }
.player-stats { display: grid; grid-template-columns: repeat(2, minmax(118px, 1fr)); gap: 12px; width: min(100%, 310px); }.player-stats article { min-height: 108px; padding: 17px; display: grid; align-content: center; gap: 6px; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: rgba(255,255,255,.13); }.player-stats strong { font-size: 2rem; line-height: 1; }.player-stats span { color: #f1e7fa; font-size: .78rem; font-weight: 800; }

.library-section, .how-section, .coming-soon { width: min(1180px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.library-section { padding: 14px 0 82px; scroll-margin-top: 18px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.06em; line-height: .98; margin-bottom: 12px; }
.section-heading > div > p:last-child, .coming-soon p:last-child { color: var(--muted); line-height: 1.5; margin-bottom: 0; }
.search-box { width: min(100%, 285px); display: flex; gap: 9px; align-items: center; border: 2px solid var(--line); background: #fff; padding: 0 13px; height: 47px; border-radius: 14px; color: var(--purple); }
.search-box:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px #eadcf6; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 700; }
.search-box input::placeholder { color: #a397b4; }
.category-tabs { display: grid; grid-template-columns: repeat(4, max-content); justify-content: start; gap: 10px; padding: 3px 1px 11px; margin: 0 -1px 13px; }
.category-tab { white-space: nowrap; border: 2px solid var(--line); border-radius: 999px; padding: 10px 14px; color: var(--muted); background: #fff; font-size: .85rem; font-weight: 850; cursor: pointer; transition: all .15s ease; }
.category-tab:hover { border-color: #bda6d2; color: var(--purple); }
.category-tab.is-active { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: 0 3px 0 var(--purple-dark); }
.category-carousel { position: relative; }
.category-scroll-button { display: none; }
.age-filter-row { display: flex; align-items: center; gap: 12px; margin: 0 0 17px; padding: 10px 0 11px; border-bottom: 1px solid #e9dfef; }
.age-filter-label { flex: 0 0 auto; color: var(--purple); font-size: .76rem; font-weight: 950; letter-spacing: .04em; }
.age-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.age-filter-button { min-width: 48px; min-height: 36px; border: 1px solid #ded1e9; border-radius: 11px; padding: 7px 11px; color: var(--muted); background: #fbf8fd; font-size: .76rem; font-weight: 900; cursor: pointer; transition: all .15s ease; }
.age-filter-button:hover { border-color: #bda6d2; color: var(--purple); background: #f0e4fa; }
.age-filter-button.is-active { color: var(--purple); border-color: #e2a915; background: var(--yellow); box-shadow: 0 2px 0 #e2a915; }
.age-filter-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.library-meta { min-height: 29px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.library-meta p { margin: 0; font-size: .85rem; color: var(--muted); font-weight: 750; }
.reset-filter { border: 0; color: var(--purple); background: transparent; cursor: pointer; font-weight: 900; text-decoration: underline; }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game-card { overflow: hidden; background: #fff; min-height: 415px; border: 1px solid #e9dff0; border-radius: 23px; box-shadow: 0 9px 25px rgba(56, 22, 86, .07); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.game-card:not(.is-locked):hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.game-cover { position: relative; height: 185px; overflow: hidden; background: linear-gradient(135deg, #e5d6f7, #f7ecff); }
.game-cover::before { content: ""; position: absolute; width: 260px; height: 180px; border-radius: 52% 48% 60% 40%; background: #ffd34d; top: 18px; left: 52px; transform: rotate(-18deg); }
.card-status { z-index: 2; }
.cover-shapes { position: absolute; inset: 0; z-index: 1; }
.cover-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cover-image.is-missing { display: none; }
.game-cover:has(.cover-image)::before { display: none; }
.cover-shapes > * { position: absolute; }
.cover-shapes .dot { width: 60px; height: 60px; background: var(--pink); border-radius: 50%; left: 35px; top: 66px; box-shadow: 5px 6px 0 #df5471; }
.cover-shapes .block { width: 67px; height: 67px; border-radius: 16px; background: var(--blue); transform: rotate(17deg); right: 34px; top: 58px; box-shadow: 6px 7px 0 #5796da; }
.cover-shapes .triangle { width: 0; height: 0; border-left: 37px solid transparent; border-right: 37px solid transparent; border-bottom: 67px solid var(--purple); bottom: -3px; left: 124px; transform: rotate(13deg); }
.cover-shapes .sparkle { position: absolute; color: #fff; font-size: 30px; right: 30px; bottom: 13px; transform: rotate(10deg); text-shadow: 1px 2px 0 var(--purple); }
.game-card:has(.body-cover) .game-cover { background: linear-gradient(135deg, #eaf7ff, #c7e1f4); }.game-card:has(.body-cover) .game-cover::before { background: #ffd1db; }.body-cover > * { position: absolute; }.body-cover-head { z-index: 2; left: 50%; top: 24px; display: grid; place-items: center; width: 50px; height: 50px; border: 3px solid #fff; border-radius: 50%; color: #89576d; background: #ffd0af; font-size: 1.85rem; transform: translateX(-50%); }.body-cover-torso { left: 50%; top: 68px; width: 63px; height: 97px; border: 4px solid #fff; border-radius: 30px 30px 20px 20px; background: #e67591; transform: translateX(-50%); }.body-cover-heart { z-index: 3; top: 92px; left: 50%; color: #fff; font-size: 28px; transform: translateX(-50%); }.body-cover-plus { top: 27px; right: 32px; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; color: #fff; background: #e67591; font-size: 25px; font-weight: 950; }
.card-status { position: absolute; top: 14px; right: 14px; padding: 7px 10px; border-radius: 999px; background: #fff; color: var(--purple); font-size: .68rem; font-weight: 950; }
.game-content { padding: 19px 20px 20px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.game-category { color: #8a4fbb; font-size: .72rem; line-height: 1.2; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.game-content h3 { margin: 7px 0 8px; font-size: 1.38rem; letter-spacing: -.045em; }
.game-description { color: var(--muted); font-size: .88rem; line-height: 1.48; margin-bottom: 15px; }
.game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.game-tags span { color: var(--purple); background: #f3ebfa; padding: 6px 8px; border-radius: 8px; font-size: .7rem; font-weight: 850; }
.play-link { margin-top: 17px; color: var(--purple); font-size: .88rem; font-weight: 950; display: flex; align-items: center; gap: 9px; }
.game-card:not(.is-locked) .play-link { width: 100%; min-height: 44px; justify-content: center; padding: 0 15px; border-radius: 12px; color: #fff; background: var(--purple); box-shadow: 0 4px 0 var(--purple-dark); transition: transform .16s ease, box-shadow .16s ease; }
.game-card:not(.is-locked) .play-link > [aria-hidden="true"] { display: none; }
.game-card:not(.is-locked) .play-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 0 var(--purple-dark); }
.game-card:not(.is-locked) .play-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.is-locked .play-link:hover { text-decoration: none; }
.is-locked { filter: saturate(.7); }
.is-locked .game-cover { background: #f2ebf6; }
.is-locked .game-cover::before { background: #ded1e7; }
.is-locked .card-status { background: #f1e8f6; color: #755b86; }
.is-locked .game-content h3 { color: #675475; }
.is-locked .play-link { color: #8e7d9c; cursor: default; }
.empty-state { grid-column: 1 / -1; padding: 45px 20px; text-align: center; color: var(--muted); background: #fff; border: 2px dashed #decfe9; border-radius: 19px; }
.empty-state strong { color: var(--purple); display: block; margin-bottom: 8px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-top: 30px; }
.pagination[hidden] { display: none; }
.page-button { min-width: 39px; height: 39px; padding: 0 11px; border: 2px solid var(--line); border-radius: 10px; color: var(--purple); background: #fff; font-size: .82rem; font-weight: 950; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; }
.page-button:not(:disabled):hover { transform: translateY(-2px); border-color: var(--purple); }
.page-button.is-current { color: #fff; border-color: var(--purple); background: var(--purple); box-shadow: 0 3px 0 var(--purple-dark); }
.page-button:disabled { color: #b4a9bd; border-color: #eee8f1; background: #f6f2f7; cursor: not-allowed; }
.page-button.page-direction { min-width: 98px; }
.page-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.how-section { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(38px, 9vw, 120px); align-items: center; padding: 80px 0; }
.how-art { position: relative; min-height: 320px; background: #f0e6fa; border-radius: 46% 54% 43% 57% / 50% 44% 56% 50%; overflow: hidden; }
.how-art::before { content: ""; position: absolute; width: 165px; height: 165px; top: 38px; left: 62px; border-radius: 50%; background: #ffc82c; box-shadow: 24px 21px 0 rgba(255, 120, 146, .72); }
.how-art::after { content: "✦"; position: absolute; right: 54px; top: 40px; color: var(--purple); font-size: 62px; transform: rotate(12deg); }
.how-cloud { position: absolute; display: block; width: 94px; height: 35px; background: #fff; border-radius: 50px; opacity: .9; }
.how-cloud::before, .how-cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.how-cloud::before { width: 42px; height: 42px; bottom: 11px; left: 19px; }.how-cloud::after { width: 31px; height: 31px; bottom: 8px; left: 53px; }
.cloud-one { left: 20px; bottom: 39px; }.cloud-two { right: 25px; bottom: 68px; transform: scale(.7); }
.how-path { position: absolute; display: flex; align-items: center; justify-content: space-between; width: 265px; left: 50%; bottom: 36px; transform: translateX(-50%); }
.how-path::before { content: ""; position: absolute; width: 100%; border-top: 3px dashed var(--purple); z-index: 0; opacity: .55; }.how-path span { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border-radius: 50%; background: var(--purple); font-weight: 950; }
.steps-list { display: grid; gap: 18px; margin-top: 25px; }.steps-list article { display: flex; align-items: start; gap: 16px; }.steps-list > article > span { flex: 0 0 auto; padding: 7px 8px; border-radius: 9px; color: var(--purple); background: #ecdff6; font-size: .72rem; font-weight: 950; }.steps-list h3 { margin: 0 0 4px; font-size: 1rem; }.steps-list p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }

.coming-soon { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr .45fr; align-items: center; gap: 30px; padding: 42px 50px; margin-bottom: 70px; color: #fff; background: linear-gradient(115deg, var(--purple), #7d38a9); border-radius: 27px; }
.coming-soon .eyebrow { color: #f7d9ff; }.coming-soon h2 { max-width: 580px; margin-bottom: 12px; }.coming-soon p:last-child { color: #eee0f8; max-width: 680px; }.coming-bubbles { min-height: 145px; position: relative; }.coming-bubbles span { position: absolute; display: grid; place-items: center; border-radius: 50%; color: var(--purple); background: var(--yellow); font-weight: 950; box-shadow: 8px 8px 0 rgba(55, 12, 84, .2); }.coming-bubbles span:first-child { height: 83px; width: 83px; top: 5px; left: 4px; }.coming-bubbles span:nth-child(2) { height: 62px; width: 62px; top: 68px; left: 86px; background: #fff; }.coming-bubbles span:nth-child(3) { height: 91px; width: 91px; right: 0; top: 20px; color: #fff; background: var(--pink); font-size: 42px; }
.site-footer { width: min(1180px, calc(100% - 40px)); border-top: 1px solid #e6dce9; min-height: 86px; margin: auto; display: flex; align-items: center; justify-content: center; gap: 20px; color: var(--muted); font-size: .78rem; text-align: center; }.footer-brand { color: var(--purple); font-weight: 950; }.footer-brand span { color: var(--yellow); }.site-footer p { margin: 0; }
.access-modal-open { overflow: hidden; }
.access-modal[hidden] { display: none; }
.access-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.access-modal-backdrop { position: absolute; inset: 0; background: rgba(41, 19, 74, .58); backdrop-filter: blur(4px); }
.access-modal-card { position: relative; width: min(100%, 510px); padding: 34px; border: 2px solid #eadcf6; border-radius: 25px; background: #fffdf7; box-shadow: 0 28px 70px rgba(41, 19, 74, .3); }
.access-modal-card h2 { margin-bottom: 13px; font-size: clamp(2rem, 7vw, 2.8rem); }
.access-modal-intro, .access-note, .access-signed-in p { color: var(--muted); line-height: 1.55; }
.access-modal-close { position: absolute; top: 13px; right: 15px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--purple); background: var(--purple-soft); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.access-form { display: grid; gap: 10px; margin-top: 22px; }
.access-form label { color: var(--purple); font-size: .84rem; font-weight: 950; }
.access-form input { width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; font-weight: 700; outline: 0; }
.access-form input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px #eadcf6; }
.access-form .button { width: 100%; margin-top: 5px; }
.access-signed-in { padding: 16px; margin-top: 20px; border: 1px solid #e2d2f2; border-radius: 16px; background: #f8f2ff; }
.access-signed-in p { margin-bottom: 10px; font-weight: 800; overflow-wrap: anywhere; }
.access-signed-in p:first-child { color: var(--purple); font-size: .9rem; }
.access-signed-in p[data-status="active"] { color: #31744d; }
.access-signed-in p[data-status="inactive"] { color: #8b5419; }
.access-signed-in .button { width: 100%; margin-top: 6px; }
.access-signout { display: block; padding: 8px 0 0; margin: 8px auto 0; border: 0; color: var(--purple); background: transparent; font-weight: 900; text-decoration: underline; cursor: pointer; }
.access-note { min-height: 24px; margin: 14px 0 0; font-size: .87rem; font-weight: 800; }
.access-note[data-kind="success"] { color: #31744d; }.access-note[data-kind="error"] { color: #b13d56; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 58px; text-align: center; }.hero-copy { margin: auto; }.hero-description { margin-left: auto; margin-right: auto; }.hero-actions, .hero-trust { justify-content: center; }.hero-visual { min-height: 365px; justify-self: center; }.hero-game-card { height: 350px; }.shapes-stage { height: 216px; }.progress-section { margin-top: -12px; }.player-progress { align-items: start; flex-direction: column; }.player-stats { width: 100%; }.section-heading { align-items: start; flex-direction: column; }.search-box { width: 100%; }.games-grid { grid-template-columns: repeat(2, 1fr); }.how-section { grid-template-columns: 1fr; }.how-art { max-width: 480px; width: 100%; margin: auto; }.coming-soon { grid-template-columns: 1fr .4fr; padding: 36px; }
}
@media (max-width: 540px) {
  .site-header { width: min(100% - 28px, 1180px); min-height: 76px; }.brand-mark { width: 42px; height: 42px; }.brand-text strong { font-size: 1rem; }.brand-text small { font-size: .62rem; }.header-cta { display: none; }.hero { padding-left: 20px; padding-right: 20px; min-height: 0; }.hero-visual { min-height: 326px; transform: scale(.91); margin: -4px 0 -14px; }.hero-trust { gap: 15px; }.hero-trust strong { font-size: 1rem; }.hero-trust span { font-size: .67rem; }.progress-section { width: calc(100% - 28px); padding: 16px; margin-bottom: 39px; }.progress-topline { align-items: start; flex-direction: column; gap: 7px; }.player-progress { width: calc(100% - 28px); padding: 25px 22px; margin-bottom: 38px; }.player-stats { grid-template-columns: repeat(2, 1fr); }.player-stats article { min-height: 92px; }.library-section, .how-section, .coming-soon { width: calc(100% - 28px); }.games-grid { grid-template-columns: 1fr; }.game-card { min-height: 390px; }.category-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-right: 0; }.category-tab { display: flex; align-items: center; justify-content: center; min-height: 44px; white-space: normal; text-align: center; }.age-filter-row { align-items: flex-start; flex-direction: column; gap: 8px; }.age-filters { width: 100%; }.how-section { padding: 42px 0 59px; }.how-art { min-height: 260px; }.how-art::before { transform: scale(.77); transform-origin: top left; left: 50px; top: 26px; }.how-art::after { font-size: 46px; right: 38px; top: 30px; }.how-path { transform: translateX(-50%) scale(.83); bottom: 22px; }.coming-soon { display: block; padding: 31px 26px; margin-bottom: 45px; }.coming-bubbles { min-height: 87px; margin-top: 22px; transform: scale(.78); transform-origin: left top; }.site-footer { width: calc(100% - 28px); min-height: 100px; flex-direction: column; align-items: start; justify-content: center; gap: 6px; }
}

@media (max-width: 540px) {
  .page-button.page-direction { min-width: 40px; padding: 0 10px; font-size: 0; }
  .page-button.page-direction span { font-size: 1.05rem; }
  .pagination { gap: 6px; margin-top: 24px; }
}

@media (max-width: 540px) {
  .category-carousel { padding: 0 42px 0 4px; }
  .category-tabs { grid-template-columns: none; grid-template-rows: repeat(2, minmax(44px, auto)); grid-auto-flow: column; grid-auto-columns: minmax(152px, 1fr); justify-content: start; gap: 9px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 3px 0 7px; margin: 0; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tab { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; white-space: normal; text-align: center; line-height: 1.15; scroll-snap-align: start; }
  .category-scroll-button { position: absolute; z-index: 2; top: 45px; display: grid; place-items: center; width: 39px; height: 39px; border: 2px solid var(--purple); border-radius: 50%; color: #fff; background: var(--purple); box-shadow: 0 5px 12px rgba(84, 31, 116, .25); font-size: 1.45rem; font-weight: 950; line-height: 1; }
  .category-scroll-prev { left: -8px; }
  .category-scroll-next { right: 0; }
  .category-scroll-button[hidden] { display: none; }
}
