/* Sky Isles (owner-approved 22 Oct 2026) — GENERATED by make-css.mjs from the prototype; edit the prototype or production.css, not this file */
/* "Sky Isles" — the owner's GPT design rebuilt as real HTML/CSS (desktop, iPad, phone) */
@font-face { font-family: Kanit; src: url(/sky/fonts/kanit-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; src: url(/sky/fonts/plex-looped-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; src: url(/sky/fonts/plex-looped-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; src: url(/sky/fonts/plex-looped-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }

.sk {
  --navy: #13284A; --navy-2: #0E1F3B; --panel: rgba(12, 28, 56, .86); --line: rgba(255, 255, 255, .14);
  --teal: #1FC7B6; --teal-ink: #0B7F74; --teal-soft: #DDF6F2; --gold: #FFC93C; --gold-2: #F5A922; --gold-ink: #F7C64A;
  --page: #F4F2EC; --card: #FFFFFF; --ink: #15284B; --muted: #5E6B80; --hair: #E6E1D6;
  --head: Kanit, 'IBM Plex Sans Thai Looped', 'Krobkruat', 'Leelawadee UI', Tahoma, Arial, sans-serif; --body: 'IBM Plex Sans Thai Looped', 'Krobkruat', 'Leelawadee UI', Tahoma, Arial, sans-serif;
}
.sk, .sk * { box-sizing: border-box; margin: 0; padding: 0; }
.sk-body { background: var(--page); color: var(--ink); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
:where(.sk) a { color: inherit; text-decoration: none; }
:where(.sk) svg.sk-i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- top bar ---------- */
.sk-top { position: absolute; z-index: 5; left: 28px; right: 22px; top: 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.sk-logo { justify-self: start; display: flex; align-items: center; gap: 8px; padding: 4px 18px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 18px -8px rgba(10, 30, 60, .45); font: 600 26px/1 var(--head); color: var(--ink); white-space: nowrap; }
.sk-logo img { width: 46px; height: 46px; }
.sk-logo b { color: #F59E0B; margin-left: -4px; }
.sk-nav { display: flex; gap: 4px; padding: 5px; border-radius: 18px; background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 24px -12px rgba(10, 30, 60, .5); }
.sk-nav a { display: flex; align-items: center; gap: 9px; padding: 10px 22px; border-radius: 14px; font: 600 18px/1 var(--head); color: var(--ink); position: relative; }
.sk-nav a[aria-current] { background: var(--teal-soft); color: var(--teal-ink); }
.sk-nav a[aria-current]::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--teal); }
.sk-wallet { justify-self: end; display: flex; align-items: center; gap: 14px; padding: 5px 8px 5px 16px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 18px -8px rgba(10, 30, 60, .45); font: 600 18px/1 var(--body); }
.sk-wallet > span:not(.sk-sep), .sk-wallet > a:not(.sk-me) { display: flex; align-items: center; gap: 8px; }
.sk-wallet .sk-sep { width: 1px; height: 26px; background: var(--hair); }
.sk-coin { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE79A, #F5B21E 60%, #C9820C); box-shadow: inset 0 0 0 2px #F9C846, inset 0 0 0 4px #D99211; display: grid; place-items: center; color: #8A5A00; font: 700 13px/1 var(--head); }
.sk-gem { width: 24px; height: 24px; flex: none; }
.sk-me { display: flex; align-items: center; gap: 6px; }
.sk-me i { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: linear-gradient(#CFE8FF, #9CCBF5); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--teal); }
.sk-me i img { width: 100%; height: 175%; object-fit: cover; object-position: 50% 4%; }

/* ---------- hero world ---------- */
.sk-hero { position: relative; height: 600px; overflow: hidden; background: #0E2A55 var(--world) center / cover no-repeat; }
.sk-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 22, 48, .55), rgba(8, 22, 48, 0) 42%), linear-gradient(180deg, rgba(8, 22, 48, 0) 70%, rgba(8, 22, 48, .25)); }
.sk-panel { position: absolute; z-index: 3; left: 40px; top: 96px; width: 404px; padding: 22px 22px 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.sk-intro h1 { font: 600 31px/1.25 var(--head); white-space: nowrap; }
.sk-intro h1 em { font-style: normal; color: var(--gold-ink); }
.sk-intro p { text-wrap: balance; margin-top: 6px; font-size: 15.5px; opacity: .88; }
.sk-tasks { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sk-tasks h2 { display: flex; align-items: center; gap: 10px; font: 600 23px/1.2 var(--head); }
.sk-tasks h2 svg { color: var(--teal); width: 26px; height: 26px; }
.sk-tasks ul { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.sk-tasks li { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 16px; }
.sk-tasks li svg.sk-i { color: var(--gold-ink); }
.sk-tasks li .sk-ok { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); display: grid; place-items: center; }
.sk-tasks li.sk-done .sk-ok { background: var(--teal); border-color: var(--teal); }
.sk-tasks li.sk-done .sk-ok svg { width: 14px; height: 14px; stroke: #0B2A3A; stroke-width: 3.2; }
.sk-prog { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; font: 500 16px/1 var(--body); opacity: .95; }
.sk-bar { flex: 1; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.sk-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #13B5A5, #44E0CF); }
.sk-cta { display: flex; align-items: center; justify-content: center; gap: 12px; height: 54px; border-radius: 16px; background: linear-gradient(180deg, #FFE16A, var(--gold) 45%, var(--gold-2)); color: #1B2A44; font: 600 22px/1 var(--head); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 22px -10px rgba(245, 169, 34, .9); }
.sk-cta svg.sk-i { stroke-width: 2.6; }

/* the 3D character always stands in the exact centre of the portal */
.sk-stage { position: absolute; z-index: 2; left: 50%; bottom: 58px; width: 440px; height: 500px; transform: translateX(-50%); }
.sk-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sk-stage .sk-boy { position: absolute; left: 50%; bottom: 40px; height: 392px; transform: translateX(-50%); filter: drop-shadow(0 12px 14px rgba(0, 20, 40, .45)); }

.sk-stats { position: absolute; z-index: 3; right: 22px; top: 236px; width: 276px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sk-stats a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 14px 16px; }
.sk-stats a + a { border-top: 1px solid var(--line); }
.sk-stats b { display: block; font: 600 21px/1.2 var(--head); }
.sk-stats small { display: block; font-size: 13.5px; opacity: .85; }
.sk-stats .sk-xp { color: #5BE3D4; font-weight: 600; }
.sk-stats .sk-bar { height: 7px; margin: 6px 0 4px; }
.sk-stats .sk-dot { position: relative; }
.sk-stats .sk-dot::after { content: ''; position: absolute; right: -2px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #F04848; }
.sk-stats svg.sk-i { opacity: .8; }

/* ---------- below the hero ---------- */
.sk-wrap { position: relative; z-index: 4; max-width: 1480px; margin: -18px auto 0; padding: 0 32px 40px; }
.sk-cont { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sk-cont a { display: grid; grid-template-columns: 224px 1fr 42px; align-items: center; gap: 28px; padding: 8px 22px 8px 14px; border-radius: 16px; background: var(--card); box-shadow: 0 10px 24px -16px rgba(16, 34, 70, .45); }
.sk-cont img { width: 224px; height: 66px; object-fit: cover; border-radius: 10px; }
.sk-cont b { display: block; font: 600 20px/1.3 var(--head); }
.sk-cont small { color: var(--muted); font-size: 14.5px; }
.sk-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; box-shadow: 0 6px 14px -6px rgba(19, 181, 165, .9); }
.sk-go svg.sk-i { width: 20px; height: 20px; stroke-width: 2.6; }
.sk-sec { display: flex; align-items: center; gap: 10px; margin: 24px 2px 12px; }
.sk-sec h2 { font: 600 24px/1.2 var(--head); }
.sk-sec svg.sk-i { width: 26px; height: 26px; }
.sk-sec .sk-more { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 500 16px/1 var(--body); }
.sk-worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.sk-world { position: relative; height: 184px; border-radius: 14px; overflow: hidden; color: #fff; box-shadow: 0 12px 26px -16px rgba(16, 34, 70, .6); }
.sk-world img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sk-world:hover img { transform: scale(1.05); }
.sk-world::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 52, 0) 45%, rgba(10, 26, 52, .92) 82%); }
.sk-world div { position: absolute; z-index: 1; left: 18px; right: 14px; bottom: 14px; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 10px; }
.sk-world b { font: 600 22px/1.2 var(--head); text-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.sk-world .sk-row { grid-column: 1; display: flex; align-items: center; gap: 12px; margin-top: 8px; font: 500 14px/1 var(--body); }
.sk-world .sk-bar { background: rgba(255, 255, 255, .25); height: 7px; }
.sk-world .sk-go { grid-column: 2; grid-row: 1 / 3; width: 34px; height: 34px; background: rgba(10, 26, 52, .55); border: 2px solid rgba(255, 255, 255, .85); box-shadow: none; }
.sk-short { display: grid; grid-template-columns: 170px repeat(5, 1fr); gap: 12px; align-items: center; margin-top: 18px; padding: 10px; border-radius: 18px; background: var(--card); box-shadow: 0 10px 24px -18px rgba(16, 34, 70, .45); }
.sk-short > div { padding: 0 14px; border-right: 1px solid var(--hair); font: 600 19px/1.25 var(--head); }
.sk-short > div small { display: block; font: 400 15px/1.3 var(--body); color: var(--muted); }
.sk-short a { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--hair); font: 600 18px/1 var(--head); }
.sk-short a > svg.sk-i:last-child { margin-left: auto; color: var(--muted); }
.sk-short .sk-ic { width: 38px; height: 38px; flex: none; }

/* ---------- footer ---------- */
.sk-foot { position: relative; overflow: hidden; background: var(--navy-2); color: #DCE6F5; }
.sk-foot .sk-in { position: relative; z-index: 1; max-width: 1480px; margin: 0 auto; padding: 24px 32px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.sk-foot .sk-brand { display: flex; align-items: center; gap: 10px; font: 600 18px/1.2 var(--head); color: #fff; }
.sk-foot .sk-brand small { display: block; font: 400 13px var(--body); color: #AFC0DA; }
.sk-foot .sk-brand img { width: 40px; height: 40px; }
.sk-foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.sk-foot nav a + a::before { content: '·'; margin-right: 18px; opacity: .6; }
.sk-foot .sk-slogan { font: 500 italic 17px/1.3 var(--body); color: #fff; transform: rotate(-8deg); }
.sk-foot svg.sk-sky { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70px; opacity: .55; }

.sk-tabbar { display: none; }

/* ---------- iPad ---------- */
@media (max-width: 1180px) {
  .sk-nav a { padding: 10px 14px; font-size: 17px; }
  .sk-logo { font-size: 22px; } .sk-logo img { width: 40px; height: 40px; }
  .sk-panel { width: 352px; } .sk-intro h1 { font-size: 26px; }
  .sk-stats { width: 244px; } .sk-stats b { font-size: 17px; white-space: nowrap; }
  .sk-stage { transform: translateX(-38%) scale(.9); transform-origin: 50% 100%; }
  .sk-world { height: 160px; } .sk-world b { font-size: 19px; }
  .sk-short { grid-template-columns: repeat(5, 1fr); } .sk-short > div { display: none; }
  .sk-cont a { grid-template-columns: 150px 1fr 42px; gap: 16px; } .sk-cont img { width: 150px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .sk-hero { height: auto; padding: 88px 24px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
  .sk-panel, .sk-stats { position: static; width: auto; }
  .sk-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .sk-stats a + a { border-top: 0; border-left: 1px solid var(--line); }
  .sk-stats a { min-width: 0; padding: 12px; gap: 8px; } .sk-stats b { white-space: normal; font-size: 16px; }
  .sk-stage { position: relative; left: auto; bottom: auto; transform: none; width: 100%; max-width: 380px; height: 440px; justify-self: center; }
  .sk-stage .sk-boy { height: 340px; }
}

/* ---------- iPad portrait: logo shrinks to its emblem so the menu and wallet fit ---------- */
@media (max-width: 1000px) and (min-width: 761px) {
  .sk-top { left: 16px; right: 16px; gap: 10px; }
  .sk-logo { font-size: 0; gap: 0; padding: 4px; } .sk-logo b { display: none; }
  .sk-nav a { padding: 10px 12px; font-size: 16px; gap: 6px; }
  .sk-wallet { gap: 8px; padding: 4px 6px 4px 12px; font-size: 16px; }
  .sk-worlds { grid-template-columns: repeat(3, 1fr); }
  .sk-short { grid-template-columns: repeat(3, 1fr); } .sk-short a:nth-last-child(-n+2) { grid-column: span 1; }
  .sk-cont a { grid-template-columns: 110px 1fr 40px; gap: 14px; } .sk-cont img { width: 110px; } .sk-cont b { font-size: 17px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .sk-body { padding-bottom: 84px; font-size: 14.5px; }
  .sk-hero, .sk-room { background-image: var(--world-sm, var(--world)); }
  .sk-top { left: 14px; right: 14px; top: 10px; grid-template-columns: 1fr auto; }
  .sk-nav { display: none; }
  .sk-logo { font-size: 17px; gap: 6px; padding-right: 12px; } .sk-logo img { width: 34px; height: 34px; }
  .sk-wallet { gap: 7px; padding: 3px 4px 3px 10px; font-size: 14.5px; } .sk-wallet .sk-sep { height: 20px; } .sk-coin { width: 22px; height: 22px; font-size: 11px; } .sk-gem { width: 20px; height: 20px; }
  .sk-me i { width: 34px; height: 34px; } .sk-me > svg { display: none; }
  .sk-hero { height: auto; padding: 74px 14px 16px; display: flex; flex-direction: column; background-position: 72% center; }
  .sk-hero::before { background: linear-gradient(180deg, rgba(8, 22, 48, .35), rgba(8, 22, 48, .05) 40%, rgba(8, 22, 48, .55)); }
  .sk-panel { display: contents; }
  .sk-intro { order: 1; position: relative; z-index: 3; text-align: center; color: #fff; text-shadow: 0 2px 10px rgba(0, 20, 50, .6); }
  .sk-intro h1 { font-size: 27px; } .sk-intro p { font-size: 14.5px; }
  .sk-stage { order: 2; position: relative; left: auto; bottom: auto; transform: none; width: 100%; max-width: 360px; height: 400px; margin: -30px auto 34px; }
  .sk-stage .sk-boy { height: 316px; bottom: 34px; }
  .sk-tasks { order: 3; position: relative; z-index: 3; margin: 0; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); color: #fff; }
  .sk-tasks h2 { font-size: 20px; }
  .sk-tasks ul { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .sk-tasks li { height: auto; min-height: 58px; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 4px; font-size: 13px; text-align: center; }
  .sk-tasks li .sk-ok { margin: 0; } .sk-tasks li > svg.sk-i { display: none; }
  .sk-prog { margin: 12px 0; } .sk-cta { height: 50px; font-size: 20px; }
  .sk-stats { order: 4; position: relative; right: auto; top: auto; width: auto; margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); }
  .sk-stats a { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 2px; padding: 10px 6px; }
  .sk-stats a + a { border-top: 0; border-left: 1px solid var(--line); }
  .sk-stats a > svg.sk-i:last-child, .sk-stats .sk-bar, .sk-stats .sk-xp { display: none; }
  .sk-stats b { font-size: 16px; } .sk-stats small { font-size: 12px; }
  .sk-wrap { margin-top: 14px; padding: 0 14px 24px; }
  .sk-cont { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sk-cont a { grid-template-columns: 1fr; gap: 6px; padding: 8px 10px 12px; position: relative; }
  .sk-cont img { width: 100%; height: 64px; }
  .sk-cont b { font-size: 16px; } .sk-cont small { font-size: 12.5px; display: block; padding-right: 34px; }
  .sk-cont .sk-go { position: absolute; right: 10px; bottom: 12px; width: 30px; height: 30px; }
  .sk-sec h2 { font-size: 20px; } .sk-sec { margin: 18px 2px 10px; } .sk-sec .sk-more { min-height: 40px; }
  .sk-worlds { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -14px; padding: 0 14px 6px; scrollbar-width: none; }
  .sk-world { flex: 0 0 64%; height: 150px; scroll-snap-align: start; }
  .sk-world b { font-size: 19px; }
  .sk-short { grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; background: none; box-shadow: none; }
  .sk-short a { height: 58px; background: var(--card); font-size: 16px; padding: 0 12px; gap: 10px; box-shadow: 0 8px 18px -14px rgba(16, 34, 70, .5); }
  .sk-short .sk-ic { width: 32px; height: 32px; } .sk-short a:last-child { grid-column: span 2; }
  .sk-foot .sk-in { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 12px; padding: 20px 16px 28px; }
  .sk-foot .sk-slogan { display: none; }
  .sk-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 20; left: 8px; right: 8px; bottom: 8px; height: 68px; padding: 6px; border-radius: 22px; background: rgba(14, 31, 59, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55); }
  .sk-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #C9D5E8; font: 600 13px/1 var(--head); border-radius: 16px; }
  .sk-tabbar a[aria-current] { color: var(--teal); background: rgba(31, 199, 182, .12); }
  .sk-tabbar svg.sk-i { width: 24px; height: 24px; }
}
.sk-stage img.sk-plat { position: absolute; left: 0; top: 0; width: 100%; height: 112%; }

/* Sky Isles inner pages: subject worlds, exams, question, play, me, shop (loads after sky.css) */
.sk-body { min-height: 100vh; display: flex; flex-direction: column; } .sk-wrap { width: 100%; } .sk-foot { margin-top: auto; }
.sk-hero.sk-sub { height: 540px; } .sk-hero.sk-sub.sk-exams { height: 560px; } .sk-hero.sk-sub.sk-play { height: 600px; } .sk-hero.sk-sub.sk-learnhub { height: 610px; }
.sk-short.sk-four { grid-template-columns: repeat(4, 1fr); }
.sk-hero.sk-plate { background-position: center 62%; }
.sk-hero.sk-plate::before { background: linear-gradient(90deg, rgba(8, 22, 48, .45), rgba(8, 22, 48, 0) 38%); }
.sk-hpanel { position: absolute; z-index: 3; left: 36px; top: 88px; width: 400px; padding: 20px 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.sk-hpanel .sk-chip { display: inline-flex; align-items: center; gap: 8px; font: 600 17px/1 var(--head); color: var(--gold-ink); }
.sk-hpanel h1 { font: 600 33px/1.2 var(--head); margin: 8px 0 6px; }
.sk-hpanel p { font-size: 15px; opacity: .88; text-wrap: balance; }
.sk-feat { list-style: none; display: grid; gap: 8px; margin: 14px 0 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.sk-feat li { display: flex; align-items: center; gap: 12px; }
.sk-feat svg.sk-i { color: var(--gold-ink); }
.sk-ghost { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; margin-top: 10px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .55); font: 600 18px/1 var(--head); }
.sk-stage.sk-left { left: 47%; height: 440px; width: 400px; }
.sk-stage.sk-left .sk-boy { height: 350px; bottom: 38px; }

/* tab bar under a subject hero */
.sk-tabs2 { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; width: min(1472px, calc(100% - 64px)); margin: -34px auto 0; padding: 6px; border-radius: 18px; background: #fff; box-shadow: 0 12px 28px -18px rgba(16, 34, 70, .5); }
.sk-tabs2 a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 14px; font: 600 18px/1 var(--head); color: var(--ink); position: relative; }
.sk-tabs2 a + a::before { content: ''; position: absolute; left: -2px; top: 14px; bottom: 14px; width: 1px; background: var(--hair); }
.sk-tabs2 a[aria-current] { background: var(--teal-soft); color: var(--teal-ink); }
.sk-tabs2 a[aria-current]::after { content: ''; position: absolute; left: 24%; right: 24%; bottom: 5px; height: 3px; border-radius: 3px; background: var(--teal); }
.sk-wrap.sk-inner { margin-top: 0; padding-top: 16px; }

/* lesson cards + progress card */
.sk-sgrid { display: grid; grid-template-columns: 1fr 350px; gap: 16px; }
.sk-lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sk-lcard { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--navy); color: #fff; box-shadow: 0 12px 26px -16px rgba(16, 34, 70, .6); }
.sk-lcard img { width: 100%; height: 150px; object-fit: cover; }
.sk-lcard .sk-tag { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; background: var(--teal); color: #052B2A; font: 600 14px/1 var(--head); }
.sk-lcard .sk-bd { flex: 1; display: flex; flex-direction: column; padding: 14px 16px 16px; }
.sk-lcard b { font: 600 21px/1.25 var(--head); }
.sk-lcard b span { color: var(--gold-ink); margin-right: 6px; }
.sk-lcard p { flex: 1; margin: 6px 0 12px; font-size: 14px; opacity: .85; }
.sk-lcard .sk-row { display: flex; align-items: center; gap: 12px; font: 500 14px/1 var(--body); }
.sk-lcard .sk-bar { background: rgba(255, 255, 255, .18); }
.sk-lcard .sk-go { width: 36px; height: 36px; background: transparent; border: 2px solid rgba(255, 255, 255, .8); box-shadow: none; }
.sk-lcard.sk-cur { box-shadow: 0 0 0 3px var(--teal), 0 0 24px rgba(31, 199, 182, .55); }
.sk-lcard.sk-cur .sk-go { background: var(--teal); border-color: var(--teal); }
.sk-pcard { border-radius: 18px; background: #fff; padding: 16px 18px; box-shadow: 0 12px 26px -18px rgba(16, 34, 70, .5); }
.sk-pcard header { display: flex; align-items: center; justify-content: space-between; font: 600 21px/1 var(--head); }
.sk-pcard header a { display: flex; align-items: center; gap: 4px; font: 500 14px var(--body); color: var(--muted); }
.sk-pcard .sk-sum { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; margin: 12px 0; padding: 12px; border-radius: 14px; background: #F6F8FB; overflow: hidden; }
.sk-pcard .sk-ring { position: relative; width: 112px; height: 112px; }
.sk-pcard .sk-ring svg { width: 100%; height: 100%; }
.sk-pcard .sk-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 30px/1 var(--head); }
.sk-pcard .sk-sum .sk-st { position: relative; z-index: 1; display: grid; gap: 6px; font: 500 14px/1.3 var(--body); color: var(--muted); }
.sk-pcard .sk-sum .sk-st b { display: flex; align-items: center; gap: 6px; font: 600 18px/1.2 var(--head); color: var(--ink); }
.sk-pcard .sk-sum img { position: absolute; right: -14px; bottom: -70px; height: 210px; opacity: .95; }
.sk-pcard .sk-lnk { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--hair); }
.sk-pcard .sk-lnk b { display: block; font: 600 16px/1.25 var(--head); }
.sk-pcard .sk-lnk small { color: var(--muted); font-size: 13px; }
.sk-pcard .sk-lnk svg.sk-i:last-child { color: var(--muted); }

/* subject path */
.sk-path2 { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 20px; border-radius: 18px; background: #fff; box-shadow: 0 10px 24px -18px rgba(16, 34, 70, .45); }
.sk-path2 h3 { display: flex; align-items: center; gap: 10px; font: 600 22px/1.2 var(--head); }
.sk-path2 h3 + small { display: block; color: var(--muted); font-size: 13px; }
.sk-nodes { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); text-align: center; }
.sk-nodes::before { content: ''; position: absolute; left: 8%; right: 8%; top: 22px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--teal) var(--done), #DDE3EA var(--done)); }
.sk-node2 { position: relative; display: grid; justify-items: center; gap: 6px; font: 500 14px/1.25 var(--body); color: var(--muted); }
.sk-node2 i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #E7ECF2; color: #8A97A8; border: 3px solid #fff; box-shadow: 0 0 0 1px #DDE3EA; }
.sk-node2.sk-done i { background: var(--teal); color: #fff; box-shadow: none; }
.sk-node2.sk-done { color: var(--ink); }
.sk-node2.sk-at i { background: #FFF7DA; color: #B57A00; box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(255, 201, 60, .8); }
.sk-node2.sk-at { color: var(--ink); font-weight: 600; }
.sk-node2.sk-at::before { content: 'กำลังเรียน'; position: absolute; top: -26px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: #3A2A00; font: 600 12px/1.2 var(--head); }
.sk-node2 svg.sk-i { width: 20px; height: 20px; stroke-width: 2.6; }

/* practise more */
.sk-practice { display: grid; grid-template-columns: 220px repeat(var(--n, 3), 1fr); align-items: center; gap: 12px; margin-top: 14px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 10px 24px -18px rgba(16, 34, 70, .45); }
.sk-practice > div { display: flex; align-items: center; gap: 12px; padding-left: 10px; font: 600 20px/1.2 var(--head); white-space: nowrap; }
.sk-practice .sk-ic { width: 40px; height: 40px; flex: none; }
.sk-practice > div small { display: block; font: 400 13px var(--body); color: var(--muted); }
.sk-practice a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--hair); }
.sk-practice a b { display: block; font: 600 16px/1.25 var(--head); }
.sk-practice a small { display: block; color: var(--muted); font-size: 13px; }
.sk-practice a > svg.sk-i { color: var(--muted); }

/* link groups (learn hub) */
.sk-linkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sk-linkgrid a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--hair); box-shadow: 0 8px 18px -16px rgba(16, 34, 70, .5); }
.sk-linkgrid .sk-ic { width: 40px; height: 40px; }
.sk-linkgrid b { display: block; font: 600 16px/1.3 var(--head); }
.sk-linkgrid small { display: block; color: var(--muted); font-size: 13px; }
.sk-linkgrid a > svg.sk-i { color: var(--muted); }
.sk-profile b a { display: inline-flex; color: inherit; }
.sk-shelf .sk-crumb a { color: inherit; }

/* exams */
.sk-htitle { position: absolute; z-index: 3; left: 36px; top: 92px; max-width: 470px; padding: 20px 24px; border-radius: 20px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 16px 34px -20px rgba(16, 34, 70, .55); }
.sk-htitle h1 { font: 600 52px/1.05 var(--head); color: var(--ink); }
.sk-htitle strong { display: block; margin: 6px 0 4px; font: 600 26px/1.2 var(--head); color: #3C5A86; }
.sk-htitle p { color: var(--muted); font-size: 16px; text-wrap: balance; }
.sk-arenas { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; position: relative; z-index: 4; margin-top: -86px; }
.sk-arena { display: grid; grid-template-columns: 170px minmax(0,1fr); min-width:0; gap: 18px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 18px; background: #fff; box-shadow: 0 16px 32px -18px rgba(16, 34, 70, .55); }
.sk-arena > div { min-width:0; }
.sk-arena img { width: 100%; max-width:220px; height: 168px; object-fit: cover; border-radius: 12px; }
.sk-arena b { display: block; font: 600 30px/1.25 var(--head); white-space: normal; overflow-wrap:anywhere; }
.sk-hero.sk-exams .sk-stage { bottom: 96px; }
.sk-arena small { display: block; margin: 4px 0 14px; color: var(--muted); font: 500 17px/1.35 var(--body); }
.sk-arena .sk-cta { min-height:48px; height:auto; padding:12px 10px; font-size:20px; line-height:1.35; white-space:normal; text-align:center; }
.sk-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sk-plan { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 16px; background: #fff; box-shadow: 0 10px 22px -18px rgba(16, 34, 70, .5); }
.sk-plan img { width: 96px; height: 92px; object-fit: cover; border-radius: 10px; }
.sk-plan b { display: block; font: 600 17px/1.3 var(--head); }
.sk-plan small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.sk-plan .sk-go { width: 32px; height: 32px; background: #fff; color: var(--ink); border: 1.5px solid var(--hair); box-shadow: none; }
.sk-banner2 { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 18px; margin-top: 16px; padding: 14px 22px; border-radius: 18px; background: #fff; box-shadow: 0 10px 22px -18px rgba(16, 34, 70, .5); }
.sk-banner2 b { display: block; font: 600 22px/1.2 var(--head); }
.sk-banner2 small { color: var(--muted); font-size: 14.5px; }
.sk-btn-teal { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 30px; border-radius: 999px; background: linear-gradient(180deg, #33D9C7, #17B3A3); color: #06312E; font: 600 20px/1 var(--head); box-shadow: 0 10px 20px -10px rgba(19, 181, 165, .9); }

/* question */
.sk-qhero { position: relative; min-height: 900px; padding: 120px 24px 80px; background: #CFE3F5 url(/sky/img/plate-question.webp) center 58% / cover no-repeat; }
.sk-qcard { position: relative; max-width: 940px; margin: 0 auto; padding: 30px 44px 34px; border-radius: 26px; background: rgba(255, 253, 248, .96); box-shadow: 0 0 0 2px #E7CC85, 0 0 0 8px rgba(255, 255, 255, .5), 0 30px 60px -24px rgba(16, 34, 70, .6); }
.sk-qcard::before, .sk-qcard::after { content: ''; position: absolute; width: 34px; height: 34px; border: 3px solid #D6B25E; }
.sk-qcard::before { left: 10px; top: 10px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.sk-qcard::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.sk-qhead { display: flex; align-items: center; gap: 16px; }
.sk-qhead .sk-em { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; }
.sk-qhead h1 { font: 600 32px/1.2 var(--head); }
.sk-qhead .sk-meta { margin-left: auto; display: flex; align-items: center; gap: 16px; font: 600 22px/1 var(--body); }
.sk-qhead .sk-meta span + span { padding-left: 16px; border-left: 1.5px solid var(--hair); display: flex; align-items: center; gap: 8px; }
.sk-qbar { height: 12px; margin: 20px 0 26px; border-radius: 12px; background: #E7EAF0; overflow: hidden; }
.sk-qbar i { display: block; height: 100%; width: 35%; border-radius: 12px; background: linear-gradient(90deg, #13B5A5, #44E0CF); }
.sk-qtext { padding: 34px 26px; border-radius: 18px; background: #F5F5F3; border: 1px solid #ECE9E2; text-align: center; font: 600 34px/1.6 var(--head); }
.sk-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.sk-choices button { height: 92px; border-radius: 16px; border: 1.5px solid #DCE1EA; background: #fff; font: 600 32px/1 var(--head); color: var(--ink); cursor: pointer; box-shadow: 0 6px 14px -12px rgba(16, 34, 70, .6); }
.sk-choices button:hover { border-color: var(--teal); }
.sk-choices button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 3px rgba(31, 199, 182, .35); }
.sk-qnav { display: flex; justify-content: space-between; margin-top: 26px; }
.sk-qnav a { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 34px; border-radius: 16px; font: 600 22px/1 var(--head); }
.sk-qnav .sk-prev { background: #fff; border: 1.5px solid #DCE1EA; color: var(--muted); }
.sk-qnav .sk-cta { padding: 0 46px; }

/* play */
.sk-games2 { position: absolute; z-index: 3; left: 36px; right: 36px; top: 188px; display: grid; grid-template-columns: 1fr 1fr; gap: 380px; }
.sk-gbig { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 262px; border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); color: #fff; box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .7); }
.sk-gbig img { width: 100%; height: 100%; object-fit: cover; }
.sk-gbig .sk-tx { padding: 22px 20px 20px 24px; display: flex; flex-direction: column; }
.sk-gbig b { font: 600 32px/1.15 var(--head); }
.sk-gbig p { margin: 8px 0 12px; opacity: .88; font-size: 15px; }
.sk-gbig ul { list-style: none; display: grid; gap: 6px; margin-bottom: 14px; font-size: 14.5px; }
.sk-gbig li { display: flex; align-items: center; gap: 10px; }
.sk-gbig li svg.sk-i { color: var(--gold-ink); width: 20px; height: 20px; }
.sk-gbig .sk-cta { margin-top: auto; height: 50px; font-size: 20px; }
.sk-ptitle { position: absolute; z-index: 3; left: 36px; top: 88px; padding: 14px 22px; border-radius: 18px; background: var(--panel); color: #fff; border: 1px solid var(--line); }
.sk-ptitle h1 { display: flex; align-items: center; gap: 12px; font: 600 34px/1.15 var(--head); }
.sk-ptitle h1 svg.sk-i { width: 36px; height: 36px; color: var(--teal); }
.sk-ptitle p { opacity: .85; font-size: 15px; }
.sk-pgrid { display: grid; grid-template-columns: 1fr 420px; gap: 16px; }
.sk-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sk-gcard { position: relative; height: 160px; border-radius: 16px; overflow: hidden; color: #fff; box-shadow: 0 12px 26px -16px rgba(16, 34, 70, .6); }
.sk-gcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sk-gcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 52, 0) 30%, rgba(10, 26, 52, .92) 85%); }
.sk-gcard div { position: absolute; z-index: 1; left: 16px; right: 56px; bottom: 12px; }
.sk-gcard b { display: block; font: 600 21px/1.2 var(--head); }
.sk-gcard small { display: block; font-size: 13px; opacity: .88; }
.sk-gcard .sk-go { position: absolute; z-index: 1; right: 12px; bottom: 16px; width: 34px; height: 34px; background: rgba(10, 26, 52, .5); border: 2px solid rgba(255, 255, 255, .85); box-shadow: none; }
.sk-board { border-radius: 18px; background: #fff; padding: 16px 18px; box-shadow: 0 12px 26px -18px rgba(16, 34, 70, .5); }
.sk-board header { display: flex; align-items: center; gap: 10px; font: 600 22px/1 var(--head); }
.sk-board header a { margin-left: auto; font: 500 14px var(--body); color: var(--muted); display: flex; align-items: center; gap: 4px; }
.sk-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 14px 0 10px; padding: 4px; border-radius: 12px; background: #F1F4F8; }
.sk-seg a { text-align: center; padding: 9px 4px; border-radius: 9px; font: 600 14px/1.2 var(--head); color: var(--muted); }
.sk-seg a[aria-current] { background: var(--teal); color: #fff; }
.sk-podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: end; gap: 8px; height: 220px; }
.sk-podium div { display: grid; justify-items: center; align-content: end; gap: 6px; text-align: center; }
.sk-podium .sk-av { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 600 22px/1 var(--head); color: #fff; box-shadow: 0 0 0 3px #fff, 0 6px 14px -6px rgba(0, 0, 0, .4); }
.sk-podium .sk-blk { width: 100%; border-radius: 12px 12px 0 0; display: grid; align-content: start; justify-items: center; padding-top: 10px; font: 600 15px/1.3 var(--head); }
.sk-podium .sk-blk em { font-style: normal; font: 600 26px/1 var(--head); }
.sk-p1 .sk-blk { height: 130px; background: linear-gradient(#FFE9A8, #FFD25E); } .sk-p1 .sk-av { background: #F5A922; width: 70px; height: 70px; }
.sk-p2 .sk-blk { height: 96px; background: linear-gradient(#E8EEF6, #C8D4E3); } .sk-p2 .sk-av { background: #7C8DA6; }
.sk-p3 .sk-blk { height: 76px; background: linear-gradient(#FBE3CF, #EDB98F); } .sk-p3 .sk-av { background: #C7773C; }

/* me + shop: three columns over a room */
.sk-room { position: relative; min-height: 900px; padding: 86px 32px 32px; background: #E9DFC8 var(--world) center / cover no-repeat; }
.sk-room > .sk-cols { position: relative; z-index: 3; display: grid; grid-template-columns: 400px 1fr 390px; gap: 20px; align-items: start; }
.sk-box { border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .7); }
.sk-box + .sk-box { margin-top: 16px; }
.sk-box > header { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px; padding: 16px 18px 12px; }
.sk-box > header svg.sk-i { width: 40px; height: 40px; color: var(--gold-ink); stroke-width: 1.8; }
.sk-box > header b { display: block; font: 600 25px/1.15 var(--head); }
.sk-box > header small { display: block; font-size: 14px; opacity: .82; }
.sk-box ul { list-style: none; margin: 0 8px 8px; border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); }
.sk-box li a { display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 12px; padding: 11px 14px; }
.sk-box li + li a { border-top: 1px solid #EEF0F4; }
.sk-box li b { display: block; font: 600 17px/1.25 var(--head); }
.sk-box li small { display: block; font-size: 13px; color: var(--muted); }
.sk-box li .sk-num { font: 600 18px/1 var(--head); }
.sk-box li > a > svg.sk-i:last-child { color: var(--muted); }
.sk-box .sk-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 8px 8px; }
.sk-box .sk-g2 a { display: grid; grid-template-columns: 30px 1fr 14px; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: #fff; color: var(--ink); font: 600 15px/1.2 var(--head); }
.sk-box .sk-g2 svg.sk-i:last-child { width: 14px; height: 14px; color: var(--muted); }
.sk-box .sk-ic { width: 34px; height: 34px; }
.sk-profile { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; }
.sk-profile .sk-ph { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: linear-gradient(#CFE8FF, #9CCBF5); box-shadow: 0 0 0 3px #fff; }
.sk-profile .sk-ph img { width: 100%; height: 175%; object-fit: cover; object-position: 50% 4%; }
.sk-profile b { display: flex; align-items: center; gap: 10px; font: 600 30px/1.1 var(--head); }
.sk-profile > * { min-width: 0; }
.sk-profile b { overflow-wrap: anywhere; }
.sk-profile small { display: block; opacity: .85; font-size: 15px; }
.sk-profile .sk-lv { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); font: 600 14px/1 var(--head); }
.sk-profile .sk-xpb { grid-column: 1 / -1; display: grid; gap: 4px; font: 500 13px var(--body); text-align: center; }
.sk-profile .sk-xpb b { display: inline; font: 600 13px var(--body); }
.sk-profile .sk-xpb .sk-bar { height: 8px; }
.sk-center { position: relative; height: 760px; }
.sk-center .sk-stage { bottom: 110px; }
.sk-slots { position: absolute; z-index: 3; left: calc(50% + 120px); top: 210px; display: grid; gap: 14px; }
.sk-slots i { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 31, 59, .85); border: 3px solid rgba(255, 255, 255, .85); color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
.sk-slots svg.sk-i { width: 34px; height: 34px; stroke-width: 1.8; }
.sk-duo { position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; gap: 18px; }
.sk-duo a { display: inline-flex; align-items: center; gap: 12px; height: 66px; padding: 0 30px; border-radius: 18px; font: 600 22px/1 var(--head); white-space: nowrap; }
.sk-duo .sk-t { background: linear-gradient(180deg, #45E2D1, #17B3A3); color: #06312E; box-shadow: 0 12px 22px -10px rgba(19, 181, 165, .9); }
.sk-duo .sk-y { background: linear-gradient(180deg, #FFE16A, var(--gold) 45%, var(--gold-2)); color: #1B2A44; box-shadow: 0 12px 22px -10px rgba(245, 169, 34, .9); }
.sk-duo svg.sk-i { width: 28px; height: 28px; }

/* shop */
.sk-shopcols { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 520px; gap: 22px; align-items: start; }
.sk-sign { display: inline-grid; padding: 14px 26px; border-radius: 18px; background: var(--panel); color: #fff; border: 2px solid #D6B25E; }
.sk-sign h1 { display: flex; align-items: center; gap: 12px; font: 600 40px/1.1 var(--head); }
.sk-sign h1 svg.sk-i { width: 38px; height: 38px; color: var(--gold-ink); }
.sk-sign small { opacity: .85; font-size: 15px; }
.sk-shelf { margin-top: 16px; padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 40px -24px rgba(16, 34, 70, .6); }
.sk-shelf .sk-crumb { display: flex; align-items: center; gap: 8px; font: 600 16px/1 var(--head); color: var(--ink); margin: 0 4px 12px; }
.sk-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sk-cats a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid var(--hair); font: 600 18px/1 var(--head); }
.sk-cats a[aria-current] { background: var(--teal-soft); color: var(--teal-ink); border-color: var(--teal); }
.sk-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.sk-item { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--hair); box-shadow: 0 10px 22px -18px rgba(16, 34, 70, .55); }
.sk-item img { width: 100%; height: 190px; object-fit: cover; }
.sk-item div { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 14px 12px; }
.sk-item b { font: 600 18px/1.25 var(--head); }
.sk-item .sk-price { grid-row: 2; display: flex; align-items: center; gap: 6px; font: 600 17px/1 var(--body); }
.sk-item .sk-go { grid-row: 1 / 3; grid-column: 2; width: 34px; height: 34px; background: #fff; color: var(--ink); border: 1.5px solid var(--hair); box-shadow: none; }
.sk-item.sk-sel { box-shadow: 0 0 0 3px var(--teal), 0 0 18px rgba(31, 199, 182, .5); }
.sk-try { position: relative; border-radius: 26px; overflow: hidden; background: rgba(255, 255, 255, .25); border: 2px solid rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); min-height: 700px; }
.sk-try header { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; margin: 14px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .9); }
.sk-try header svg.sk-i { width: 46px; height: 46px; padding: 8px; border-radius: 50%; background: var(--navy); color: #fff; }
.sk-try header b { display: block; font: 600 28px/1.1 var(--head); }
.sk-try header small { color: var(--muted); font-size: 14px; }
.sk-try .sk-stage { bottom: 100px; }
.sk-try .sk-duo { bottom: 18px; width: calc(100% - 28px); }
.sk-try .sk-duo a { flex: 1; justify-content: center; padding: 0 12px; height: 60px; font-size: 21px; }

/* ---------- iPad ---------- */
@media (max-width: 1180px) {
  .sk-hpanel { width: 350px; } .sk-hpanel h1 { font-size: 28px; }
  .sk-stage.sk-left { left: 55%; }
  .sk-tabs2 { width: calc(100% - 40px); } .sk-tabs2 a { font-size: 16px; gap: 6px; } .sk-tabs2 svg.sk-i { width: 18px; height: 18px; }
  .sk-sgrid { grid-template-columns: 1fr; } .sk-pcard { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; align-items: center; } .sk-pcard header { grid-column: 1 / -1; } .sk-pcard .sk-sum { grid-row: span 2; }
  .sk-path2 { grid-template-columns: 1fr; }
  .sk-practice { grid-template-columns: repeat(var(--n, 3), 1fr); } .sk-practice > div { display: none; }
  .sk-arenas { grid-template-columns: minmax(0,1fr); margin-top: -60px; } .sk-arena { grid-template-columns: 170px minmax(0,1fr); } .sk-arena img { width:100%; height:120px; } .sk-arena .sk-cta { padding:12px; }
  .sk-plans { grid-template-columns: 1fr 1fr; } .sk-linkgrid { grid-template-columns: 1fr 1fr; }
  .sk-games2 { gap: 16px; top: auto; bottom: 20px; } .sk-hero.sk-sub.sk-play { height: 760px; } .sk-hero.sk-play .sk-stage { bottom: 300px; transform: translateX(-50%) scale(.8); transform-origin: 50% 100%; }
  .sk-pgrid { grid-template-columns: 1fr; }
  .sk-room > .sk-cols { grid-template-columns: 1fr 1fr; } .sk-room .sk-center { grid-column: 1 / -1; grid-row: 1; height: 640px; }
  .sk-shopcols { grid-template-columns: 1fr; } .sk-try { min-height: 620px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .sk-hero.sk-sub, .sk-hero.sk-sub.sk-exams, .sk-hero.sk-sub.sk-play, .sk-hero.sk-sub.sk-learnhub { height: auto; padding: 70px 14px 16px; display: flex; flex-direction: column; background-position: 60% center; }
  .sk-hpanel, .sk-htitle, .sk-ptitle { position: relative; left: auto; top: auto; width: auto; max-width: none; order: 2; }
  .sk-hpanel h1 { font-size: 26px; } .sk-feat { font-size: 14px; }
  .sk-stage.sk-left, .sk-hero.sk-exams .sk-stage, .sk-hero.sk-play .sk-stage { order: 1; position: relative; left: auto; bottom: auto; transform: none; width: 100%; max-width: 330px; height: 330px; margin: 0 auto 30px; }
  .sk-stage.sk-left .sk-boy, .sk-hero.sk-exams .sk-stage .sk-boy, .sk-hero.sk-play .sk-stage .sk-boy { height: 262px; bottom: 30px; }
  .sk-htitle { padding: 14px 16px; } .sk-htitle h1 { font-size: 34px; } .sk-htitle strong { font-size: 20px; }
  .sk-tabs2 { width: calc(100% - 28px); margin-top: 12px; grid-template-columns: repeat(3, 1fr); } .sk-tabs2 a { height: 44px; font-size: 15px; } .sk-tabs2 a + a::before { display: none; }
  .sk-lessons { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 4px 14px 8px; gap: 10px; scrollbar-width: none; }
  .sk-lcard { flex: 0 0 80%; scroll-snap-align: start; } .sk-lcard img { height: 120px; }
  .sk-pcard { display: block; } .sk-pcard .sk-sum img { height: 170px; bottom: -56px; }
  .sk-nodes { grid-template-columns: repeat(6, 64px); overflow-x: auto; padding-top: 30px; } .sk-node2 { font-size: 12px; } .sk-nodes::before { top: 52px; left: 32px; right: auto; width: 320px; }
  .sk-path2 { padding: 12px; }
  .sk-practice { grid-template-columns: 1fr; padding: 0; background: none; box-shadow: none; } .sk-practice a { background: #fff; }
  .sk-arenas { margin-top:12px; } .sk-arena { grid-template-columns:84px minmax(0,1fr); gap:12px; } .sk-arena img { width:100%; height:110px; } .sk-arena b { font-size:22px; } .sk-arena small { font-size:14px; margin-bottom:10px; } .sk-arena .sk-cta { grid-column:1 / -1; min-height:48px; height:auto; font-size:18px; }
  .sk-plans { grid-template-columns: 1fr; } .sk-linkgrid { grid-template-columns: 1fr; } .sk-banner2 { grid-template-columns: 44px 1fr; } .sk-banner2 .sk-btn-teal { grid-column: 1 / -1; justify-content: center; }
  .sk-qhero { padding: 76px 12px 40px; min-height: 0; background-image: url(/sky/img/plate-question-768.webp); } .sk-qcard { padding: 20px 16px; } .sk-qhead h1 { font-size: 20px; } .sk-qhead .sk-em { width: 44px; height: 44px; } .sk-qhead { flex-wrap: wrap; } .sk-qhead .sk-meta { margin-left: 0; width: 100%; font-size: 17px; }
  .sk-qtext { padding: 20px 14px; font-size: 22px; } .sk-choices { gap: 10px; } .sk-choices button { height: 70px; font-size: 22px; } .sk-qnav a { height: 52px; padding: 0 18px; font-size: 18px; } .sk-qnav .sk-cta { padding: 0 24px; }
  .sk-games2 { position: relative; order: 3; left: auto; right: auto; bottom: auto; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .sk-gbig { grid-template-columns: 1fr; } .sk-gbig img { height: 150px; order: -1; } .sk-gbig b { font-size: 26px; }
  .sk-mini { grid-template-columns: 1fr 1fr; gap: 10px; } .sk-short.sk-four { grid-template-columns: 1fr; } .sk-short.sk-four a:last-child { grid-column: auto; } .sk-gcard { height: 130px; } .sk-gcard b { font-size: 17px; } .sk-gcard small { display: none; }
  .sk-room { padding: 70px 12px 20px; min-height: 0; background-position: 50% center; } .sk-room > .sk-cols { grid-template-columns: 1fr; } .sk-room .sk-center { height: 520px; }
  .sk-center .sk-stage { bottom: 92px; height: 400px; } .sk-center .sk-stage .sk-boy { height: 310px; }
  .sk-slots { left: auto; right: 4px; top: 40px; gap: 10px; } .sk-slots i { width: 54px; height: 54px; } .sk-slots svg.sk-i { width: 26px; height: 26px; }
  .sk-duo { width: calc(100% - 8px); gap: 10px; } .sk-duo a { flex: 1; justify-content: center; height: 56px; padding: 0 10px; font-size: 18px; }
  .sk-sign h1 { font-size: 30px; } .sk-cats { grid-template-columns: repeat(2, 1fr); } .sk-items { grid-template-columns: 1fr 1fr; gap: 10px; } .sk-item img { height: 130px; } .sk-item b { font-size: 15px; }
  .sk-try { min-height: 560px; }
  .sk-pcard header a, .sk-board header a { min-height: 40px; }
  .sk-profile b a { min-width: 40px; min-height: 40px; align-items: center; justify-content: center; }
}

/* ---------------- production-only ---------------- */
.sk-svg { display: contents; }
.sk { -webkit-font-smoothing: antialiased; }
.sk-main { position: relative; background: var(--page); color: var(--ink); font: 400 15px/1.5 var(--body); }
html[data-sky] body { background-color: #F4F2EC; }
html[data-sky] body:has(.sk-main)::before, html[data-sky] body:has(.sk-main)::after { display: none; }
html[data-sky] body.sk-has-tabbar { padding-bottom: 0; }

/* top bar: floats over the hero on hub pages, sits in the flow elsewhere */
.sk-top { font: 400 15px/1.5 var(--body); color: var(--ink); }
.sk-top--flow { position: relative; left: auto; right: auto; top: auto; margin: 12px 22px 12px 28px; }
.sk-nav a { color: var(--ink); }
.sk-me small { font: 600 13px/1 var(--head); color: var(--teal-ink); padding-right: 6px; }
.sk-badge { position: absolute; top: 2px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #F04848; color: #fff; font: 600 11px/18px var(--body); text-align: center; }
.sk-tabbar a { position: relative; }
.sk-wallet--guest { gap: 8px; padding: 5px; min-height: 46px; }
.sk-wallet--guest a { display: flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; font: 600 16px/1 var(--head); }
.sk-teacher { color: var(--muted); }
.sk-login { background: linear-gradient(180deg, #FFE16A, var(--gold) 45%, var(--gold-2)); color: #1B2A44; }
.sk-foot { font: 400 15px/1.5 var(--body); }

/* the live 3D character fills the stage; the studio's own buttons sit under the dais */

.sk-stage > [data-avatar-3d] { position: absolute !important; inset: 0; }
.sk-center .sk-stage { bottom: 116px; }

/* states */
.sk-note, .sk-alert { margin-top: 10px; font-size: 14px; }
.sk-note { opacity: .85; }
.sk-alert { padding: 10px 12px; border-radius: 12px; background: #FDECEC; color: #8A1C1C; }
.sk-empty { padding: 10px 2px; color: inherit; opacity: .9; font-size: 15px; }
.sk-muted { color: var(--muted); }
.sk-lock { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #EEF1F6; color: var(--muted); font: 600 12px/1.2 var(--head); white-space: nowrap; }
.sk-lock svg.sk-i { width: 14px; height: 14px; }
.sk-locked { opacity: .92; }

/* home panel */
.sk-tasks li a { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 4px; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-tasks li small { opacity: .75; font-size: 13px; }
.sk-tasks .sk-empty { color: #fff; }
.sk-guest { display: grid; gap: 10px; }
.sk-panel .sk-ghost { color: #fff; }
.sk-xptext { color: #0B7F74; font-weight: 600; }
.sk-sup { display: grid; grid-template-columns: 200px 1fr 42px; align-items: center; gap: 20px; margin-top: 16px; padding: 12px 22px 12px 12px; border-radius: 18px; background: #fff; box-shadow: 0 10px 22px -18px rgba(16, 34, 70, .5); }
.sk-sup__img { display: block; width: 200px; } .sk-sup__img img { display: block; width: 100%; height: auto; border-radius: 12px; }
.sk-sup b { display: block; font: 600 20px/1.3 var(--head); }
.sk-sup small { color: var(--muted); }
.sk-banner2 + .sk-banner2 { margin-top: 12px; }
.sk-world .sk-row { font-size: 13px; opacity: .9; }

/* subject page */
.sk-lcard .sk-row { justify-content: space-between; font-weight: 600; }
.sk-node2 { color: var(--ink); }
.sk-nodes::before { background: #DDE3EA; }
.sk-node2 i { background: var(--teal-soft); color: var(--teal-ink); box-shadow: none; }

/* games: leaderboard tabs are buttons */
.sk-seg button { border: 0; background: none; cursor: pointer; text-align: center; padding: 9px 4px; border-radius: 9px; font: 600 14px/1.2 var(--head); color: var(--muted); }
.sk-seg button[aria-selected="true"] { background: var(--teal); color: #fff; }
.sk-podium .sk-blk { font-size: 13px; line-height: 1.35; }
.sk-ghost--dark { color: var(--ink) !important; border-color: var(--hair) !important; margin-top: 12px; }
.sk-sec--top { margin-top: 6px; }
.sk-games2--one { grid-template-columns: 1fr; max-width: 560px; }

/* me */
.sk-num { font: 600 18px/1 var(--head); }
.sk-cta--wide { grid-column: 1 / -1; }
.sk-wallet2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.sk-wallet2 a { display: grid; justify-items: center; gap: 4px; padding: 12px; border-radius: 14px; background: #fff; color: var(--ink); }
.sk-wallet2 b { font: 600 22px/1 var(--head); }
.sk-wallet2 span:not(.sk-svg) { font-size: 13px; color: var(--muted); }

@media (max-width: 1180px) {
  .sk-top--flow { margin: 10px 16px; }

}
/* iPad portrait: the play hero stacks (character, then the two big games) */
@media (max-width: 1000px) and (min-width: 761px) {
  .sk-hero.sk-sub.sk-play { height: auto; padding: 88px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
  .sk-hero.sk-play .sk-ptitle { position: relative; left: auto; top: auto; }
  .sk-hero.sk-play .sk-stage { position: relative; left: auto; bottom: auto; transform: none; width: 100%; max-width: 380px; height: 440px; margin: 0 auto; }
  .sk-hero.sk-play .sk-games2 { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
}
@media (max-width: 760px) {
  .sk-tasks ul { grid-template-columns: 1fr; }
  .sk-tasks li { flex-direction: row; min-height: 48px; padding: 0 12px; gap: 10px; font-size: 15px; text-align: left; }
  .sk-tasks li > svg.sk-i { display: block; }
  .sk-tasks li .sk-ok { margin-left: auto; }
  html[data-sky] body.sk-has-tabbar { padding-bottom: 84px; }
  .sk-top--flow { margin: 10px 14px; }
  .sk-wallet--guest .sk-teacher { display: none; }
  .sk-wallet--guest a { height: 36px; padding: 0 14px; font-size: 15px; }
  .sk-me small { display: none; }
  .sk-stage, .sk-stage.sk-left, .sk-hero.sk-sub .sk-stage { height: 400px; }
  .sk-center .sk-stage { height: 440px; bottom: 92px; }
  .sk-sup { grid-template-columns: 1fr; padding: 12px; } .sk-sup__img { width: 100%; }
  .sk-games2--one { max-width: none; }
}

/* ---------------- Sky Isles skins for existing screens (only when UI_SKY_ENABLED: html[data-sky]) ----------------
   Colours, type and surfaces only: the shop/wardrobe (components/game-world/wardrobe.tsx), NT prep (components/nt-prep),
   O-NET English (components/english-onet) and the R3 player incl. mock/arena exams (components/r3-learning). No layout
   logic, no hidden elements, no change to how answers are given. */

/* ===== shop + wardrobe ===== */
html[data-sky] body:has(.wardrobe)::before { background: #E9DFC8 url(/sky/img/plate-shop.webp) center 40% / cover no-repeat; }
html[data-sky] body:has(.wardrobe)::after { background: linear-gradient(180deg, rgba(8, 22, 48, .18), rgba(8, 22, 48, 0) 35%, rgba(8, 22, 48, .22)); }
html[data-sky] .wardrobe { max-width: 1260px; color: #15284B; font-family: 'IBM Plex Sans Thai Looped', sans-serif; }
html[data-sky] .wardrobe h1, html[data-sky] .wardrobe h2, html[data-sky] .wardrobe-selection > strong { font-family: Kanit, 'IBM Plex Sans Thai Looped', sans-serif !important; font-weight: 600; }
html[data-sky] .wardrobe > header > a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #15284B; font-weight: 600; box-shadow: 0 6px 18px -10px rgba(10, 30, 60, .5); }
html[data-sky] .wardrobe-heading { margin: 14px 0 18px; padding: 14px 22px; border-radius: 18px; background: rgba(12, 28, 56, .88); border: 2px solid #D6B25E; color: #fff; box-shadow: 0 16px 32px -20px rgba(0, 0, 0, .7); }
html[data-sky] .wardrobe-heading h1 { color: #fff; font-size: clamp(28px, 4vw, 40px) !important; line-height: 1.2; margin: 2px 0 0; }
html[data-sky] .wardrobe-heading p { color: rgba(255, 255, 255, .82); }
html[data-sky] .wardrobe-coins { background: #fff; border: 0; color: #15284B; font-family: Kanit, sans-serif; font-weight: 600; box-shadow: inset 0 0 0 2px #F9C846; }
html[data-sky] .wardrobe-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 22px; }
html[data-sky] .wardrobe-preview { order: 2; background: rgba(255, 255, 255, .22); border: 2px solid rgba(255, 255, 255, .75); border-radius: 26px; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); box-shadow: 0 20px 40px -26px rgba(16, 34, 70, .6); }
html[data-sky] .wardrobe-preview iframe { height: 520px; background: transparent; color-scheme: light; }
html[data-sky] .wardrobe-selection { margin: 0 14px 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .92); }
html[data-sky] .wardrobe-selection > span, html[data-sky] .wardrobe-selection > small, html[data-sky] .wardrobe-status { color: #5E6B80; }
html[data-sky] .wardrobe-status { margin: 0 14px; padding: 0 4px 14px; color: #fff; text-shadow: 0 1px 4px rgba(0, 20, 50, .6); }
html[data-sky] .wardrobe .wardrobe-primary { border: 0; border-radius: 16px; background: linear-gradient(180deg, #FFE16A, #FFC93C 45%, #F5A922); color: #1B2A44; font-family: Kanit, sans-serif; font-weight: 600; font-size: 19px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 22px -10px rgba(245, 169, 34, .9); }
html[data-sky] .wardrobe-items { padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 40px -26px rgba(16, 34, 70, .6); }
html[data-sky] .wardrobe-tabs { background: #F1F4F8; }
html[data-sky] .wardrobe-tabs button { font-family: Kanit, sans-serif; font-weight: 600; color: #5E6B80; }
html[data-sky] .wardrobe-tabs button[aria-pressed=true] { background: #fff; color: #0B7F74; box-shadow: inset 0 -3px 0 #1FC7B6, 0 2px 6px rgba(16, 34, 70, .1); }
html[data-sky] .wardrobe-categories button { background: #fff; border-color: #E6E1D6; color: #15284B; font-family: Kanit, sans-serif; font-weight: 600; border-radius: 14px; }
html[data-sky] .wardrobe-categories button[aria-pressed=true] { background: #DDF6F2; border-color: #1FC7B6; color: #0B7F74; }
html[data-sky] .wardrobe-help { color: #5E6B80; }
html[data-sky] .wardrobe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
html[data-sky] .wardrobe .wardrobe-card { padding: 0 0 12px; gap: 6px; overflow: hidden; border: 1px solid #E6E1D6; border-radius: 16px; background: #fff; box-shadow: 0 10px 22px -18px rgba(16, 34, 70, .55); }
html[data-sky] .wardrobe .wardrobe-card > strong, html[data-sky] .wardrobe .wardrobe-card > small { padding: 0 14px; }
html[data-sky] .wardrobe .wardrobe-card > strong { font-family: Kanit, sans-serif; font-weight: 600; color: #15284B; }
html[data-sky] .wardrobe .wardrobe-card > small { color: #8A5A00; font-weight: 600; }
html[data-sky] .wardrobe-icon { border-radius: 0; height: 110px; background: linear-gradient(135deg, #EAF4FF, #FFF4D6); }
html[data-sky] .wardrobe .wardrobe-card.selected { border-color: #1FC7B6; background: #fff; box-shadow: 0 0 0 3px #1FC7B6, 0 0 18px rgba(31, 199, 182, .5); }
html[data-sky] .wardrobe-more a { color: #0B7F74; }
html[data-sky] .wardrobe-empty { background: #F6F8FB; }
html[data-sky] .studio-shop-dialog { border-radius: 22px; box-shadow: 0 0 0 2px #E7CC85, 0 30px 60px -24px rgba(16, 34, 70, .6); }
@media (max-width: 1000px) {
  html[data-sky] .wardrobe-layout { grid-template-columns: 1fr; }
  html[data-sky] .wardrobe-preview { order: 0; position: relative; top: 0; }
  html[data-sky] .wardrobe-preview iframe { height: 440px; }
}
@media (max-width: 700px) {
  html[data-sky] .wardrobe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html[data-sky] .wardrobe-preview iframe { height: 380px; }
  html[data-sky] .wardrobe-heading { padding: 12px 16px; }
}

/* ===== exam screens: one calm card on the marble study pavilion ===== */
html[data-sky] body:has(.nt-hub)::before, html[data-sky] body:has(.onet-hub)::before, html[data-sky] body:has(.r3-root)::before { background: #CFE3F5 url(/sky/img/plate-question.webp) center 58% / cover no-repeat; }
html[data-sky] body:has(.nt-hub)::after, html[data-sky] body:has(.onet-hub)::after, html[data-sky] body:has(.r3-root)::after { background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .35)); }
html[data-sky] .nt-hub, html[data-sky] .onet-hub { color: #15284B; font-family: 'IBM Plex Sans Thai Looped', sans-serif; }
html[data-sky] .nt-hub { --nt-ink: #15284B; --nt-muted: #5E6B80; --nt-paper: rgba(255, 253, 248, .97); --nt-line: #E6E1D6; --nt-brand: #13284A; --nt-good: #0B7F74; --nt-good-bg: #DDF6F2; }
html[data-sky] .nt-hub h1, html[data-sky] .nt-hub h2, html[data-sky] .nt-hub h3, html[data-sky] .onet-hub h1, html[data-sky] .onet-hub h2, html[data-sky] .onet-hub h3 { font-family: Kanit, 'IBM Plex Sans Thai Looped', sans-serif; font-weight: 600; }
html[data-sky] .nt-hub > nav a, html[data-sky] .onet-hub > nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #15284B; text-decoration: none; font-weight: 600; box-shadow: 0 6px 18px -10px rgba(10, 30, 60, .5); }
html[data-sky] .nt-header, html[data-sky] .onet-hub > header { background: rgba(12, 28, 56, .9); border: 2px solid #D6B25E; color: #fff; box-shadow: 0 16px 32px -20px rgba(0, 0, 0, .7); }
html[data-sky] .nt-header p:first-child, html[data-sky] .onet-hub > header p:first-child { color: #F7C64A; }
html[data-sky] .nt-hub section, html[data-sky] .onet-hub section { background: rgba(255, 253, 248, .97); border: 1px solid #E6E1D6; border-radius: 22px; box-shadow: 0 16px 34px -24px rgba(16, 34, 70, .55); }
html[data-sky] .nt-hub button, html[data-sky] .onet-hub button { border-color: #DCE1EA; background: #fff; color: #15284B; border-radius: 14px; }
html[data-sky] .nt-hub .nt-primary { border: 0; background: linear-gradient(180deg, #FFE16A, #FFC93C 45%, #F5A922); color: #1B2A44; font-family: Kanit, sans-serif; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 22px -10px rgba(245, 169, 34, .9); }
html[data-sky] .nt-hub a, html[data-sky] .onet-hub a { color: #0B7F74; }
html[data-sky] .nt-tabs button.on { background: #13284A; border-color: #13284A; color: #fff; }
html[data-sky] .nt-daily i { background: #FFC93C; }
html[data-sky] .nt-meter b, html[data-sky] .nt-progress i, html[data-sky] .nt-skillbars b { background: linear-gradient(90deg, #13B5A5, #44E0CF); }
/* the question card (practice, mission, diagnostic and mock all share .nt-play) */
html[data-sky] .nt-hub section.nt-play, html[data-sky] .onet-hub section:has(.onet-question) { position: relative; padding: 28px clamp(18px, 4vw, 40px); border: 0; border-radius: 26px; box-shadow: 0 0 0 2px #E7CC85, 0 0 0 8px rgba(255, 255, 255, .5), 0 30px 60px -24px rgba(16, 34, 70, .6); }
html[data-sky] .nt-hub section.nt-play::before, html[data-sky] .onet-hub section:has(.onet-question)::before { content: ''; position: absolute; left: 10px; top: 10px; width: 30px; height: 30px; border: 3px solid #D6B25E; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; pointer-events: none; }
html[data-sky] .nt-hub section.nt-play::after, html[data-sky] .onet-hub section:has(.onet-question)::after { content: ''; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border: 3px solid #D6B25E; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; pointer-events: none; }
html[data-sky] .nt-pill { background: #13284A; color: #fff; font-weight: 600; }
html[data-sky] .nt-timer { font-family: Kanit, sans-serif; font-weight: 600; }
html[data-sky] .nt-progress { height: 12px; background: #E7EAF0; }
html[data-sky] .nt-question, html[data-sky] .onet-question { padding: 22px 20px; border-radius: 18px; background: #F5F5F3; border: 1px solid #ECE9E2; text-align: center; font-family: Kanit, 'IBM Plex Sans Thai Looped', sans-serif; font-weight: 600; }
html[data-sky] .nt-choices { gap: 14px; }
html[data-sky] .nt-choices button, html[data-sky] .onet-choices button { min-height: 72px; border: 1.5px solid #DCE1EA; border-radius: 16px; background: #fff; font-family: Kanit, 'IBM Plex Sans Thai Looped', sans-serif; font-weight: 600; box-shadow: 0 6px 14px -12px rgba(16, 34, 70, .6); }
html[data-sky] .nt-choices button:hover:not(:disabled), html[data-sky] .onet-choices button:hover:not(:disabled) { border-color: #1FC7B6; }
html[data-sky] .nt-choices b { background: #13284A; color: #fff; }
html[data-sky] .nt-choices button.right { background: #DDF6F2; border-color: #1FC7B6; }
html[data-sky] .nt-pad button.go { background: #13284A; border-color: #13284A; color: #fff; }
html[data-sky] .nt-feedback.ok, html[data-sky] .onet-feedback, html[data-sky] .onet-note { background: #DDF6F2; }
html[data-sky] .nt-hint { background: #FFF4D6; }

/* ===== R3 player (missions, mock and arena exams): only its own colour tokens + the question card ===== */
html[data-sky] .r3-root { --r3-bg: #F4F2EC; --r3-card: #fff; --r3-ink: #15284B; --r3-muted: #5E6B80; --r3-line: #E6E1D6; --r3-brand: #13284A; --r3-brand-ink: #fff;
  --r3-ok: #0B7F74; --r3-ok-bg: #DDF6F2; --r3-no: #A3461C; --r3-no-bg: #FDEEE4; --r3-info-bg: #EAF3FB; --r3-warn: #8A5A00; --r3-warn-bg: #FFF4D6; --r3-focus: #1FC7B6; }
html[data-sky] .r3-root { background: transparent; }
html[data-sky] .r3-top { margin: 0 -12px; padding: 10px 12px; border-radius: 0 0 16px 16px; background: rgba(244, 242, 236, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html[data-sky] .r3-root h1, html[data-sky] .r3-root h2, html[data-sky] .r3-root h3, html[data-sky] .r3-prompt, html[data-sky] .r3-timer { font-family: Kanit, 'IBM Plex Sans Thai Looped', sans-serif; font-weight: 600; }
html[data-sky] .r3-card { border-radius: 20px; box-shadow: 0 12px 26px -20px rgba(16, 34, 70, .5); }
html[data-sky] .r3-card.r3-q { border: 0; border-radius: 24px; box-shadow: 0 0 0 2px #E7CC85, 0 0 0 7px rgba(255, 255, 255, .6), 0 24px 48px -26px rgba(16, 34, 70, .6); }
html[data-sky] .r3-prompt { padding: 16px; border-radius: 16px; background: #F5F5F3; border: 1px solid #ECE9E2; }
html[data-sky] .r3-primary { border: 0; background: linear-gradient(180deg, #FFE16A, #FFC93C 45%, #F5A922); color: #1B2A44; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 18px -10px rgba(245, 169, 34, .9); }
html[data-sky] .r3-choice { border-width: 1.5px; border-color: #DCE1EA; border-radius: 16px; }
html[data-sky] .r3-choice[aria-pressed="true"] { border-color: #1FC7B6; background: #DDF6F2; }
html[data-sky] .r3-progress span { background: linear-gradient(90deg, #13B5A5, #44E0CF); }

@media (prefers-color-scheme: dark) { html[data-sky] .r3-root { --r3-bg: #F4F2EC; --r3-card: #fff; --r3-ink: #15284B; --r3-muted: #5E6B80; --r3-line: #E6E1D6; --r3-brand: #13284A; --r3-brand-ink: #fff; --r3-ok: #0B7F74; --r3-ok-bg: #DDF6F2; --r3-no: #A3461C; --r3-no-bg: #FDEEE4; --r3-info-bg: #EAF3FB; --r3-warn: #8A5A00; --r3-warn-bg: #FFF4D6; } }

/* Work: homepage touch targets and narrow Sky header, 2026-10-25 */
.sk-guest > a[href="/getting-started"] { display: flex; align-items: center; min-height: 44px; padding: 4px 0; }
@media (max-width: 760px) {
  .sk-top { grid-template-columns: minmax(44px, 1fr) auto; gap: 8px; }
  .sk-top .sk-logo { font-size: 0; gap: 0; padding: 4px; min-width: 44px; min-height: 44px; justify-content: center; }
  .sk-top .sk-logo b { display: none; }
  .sk-wallet--guest { gap: 4px; padding: 3px 4px; }
  .sk-wallet--guest a { min-height: 44px; white-space: nowrap; padding: 0 10px; justify-content: center; }
}

.sk-profile-label{font-size:12px;white-space:nowrap}.sk-top .sk-me{position:relative}.sk-top .sk-nav{flex-wrap:wrap}@media(max-width:900px){.sk-profile-label{display:none}}

.voice-indicator{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.voice-indicator>span:first-child{color:#176956;animation:voice-status 1s ease-in-out infinite alternate}@keyframes voice-status{from{opacity:.4;transform:scaleY(.6)}to{opacity:1;transform:scaleY(1)}}@media(prefers-reduced-motion:reduce){.voice-indicator>span:first-child{animation:none}}
.sk-world-progress{display:flex;align-items:center;gap:10px;margin-top:10px;padding-right:32px;font-size:14px}
.sk-world-progress .sk-bar{flex:1;min-width:32px}
.sk-topic-progress{width:100%;min-width:0}
.sk-topic-progress summary{cursor:pointer;min-height:44px;padding:10px 0}
.sk-progress-topic{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #dce5e7;min-width:0}
.sk-progress-topic>a,.sk-progress-topic>span{flex:1;min-width:0;overflow-wrap:anywhere}
.sk-progress-topic>a{min-height:44px;display:flex;align-items:center}
.sk-progress-topic>svg{flex-shrink:0}
.sk-progress-topic>small{flex:0 0 70px;color:#475569}
.sk-progress-topic[data-status=done]{color:#087b6e}
.sk-streak{display:block;margin-top:8px;font-size:14px;line-height:1.6;overflow-wrap:anywhere;color:#0b7568}
