/* Meşkhane — the parent page of the kids line (/meskhane/, /en/meskhane/, /legal/meskhane-gizlilik/).
   Its own look per games/meskhane/docs/art-direction.md: morning cream, ink plum (never pure black), matte soft gold,
   one rose / apricot accent; Baloo 2 + Nunito as in the app. No North Sultan palace kit, no links to the 13+ games.
   Frames are the app's own kit: panel.webp (799 px, 9-slice inset 160, tulip corners, plain gold band) tiled with
   `round` and drawn at one scale (160 → 40 px = ×0.25), plate.webp (pill, 640×250) sliced at its full height (caps =
   height × 125/250). No flat borders, no stretched art, no endless filter animations (design-principles §2, §3, §11, §12). */

@font-face { font-family: "Baloo 2"; src: url(/assets/fonts/baloo2.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/assets/fonts/nunito.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  color-scheme: light;
  --cream: #fff6e6; --cream-2: #fdebd0; --rose: #f2a7b5; --rose-d: #d9667e; --pista: #b9db8f; --pista-d: #6fa34a;
  --sky: #8ec9ee; --sky-d: #3d8fc8; --apricot: #ffc27a; --apricot-d: #e68a2e; --gold: #e3b85c; --gold-lo: #a87a2a;
  --plum: #4a2c4f; --plum-soft: #6d5070; --veli: #eee9e0;
  --head: "Baloo 2", "Nunito", system-ui, sans-serif; --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px; --gutter: 16px;
  --pw: 40px; /* panel border width: 160 px slice × 0.25 */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 86px; }
body.kids { margin: 0; min-height: 100vh; overflow-x: hidden; font: 500 17px/1.6 var(--body); color: var(--plum);
  background: radial-gradient(ellipse at 50% 0%, #fffaf1 0%, transparent 60%), var(--cream); background-color: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-d); text-underline-offset: 3px; font-weight: 700; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--sky-d); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.12; color: var(--plum); margin: 0 0 .4em; }
h2 { font-size: clamp(30px, 5.4vw, 42px); text-align: center; }
h3 { font-size: 23px; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--plum); color: var(--cream); border-radius: 10px; }
.skip:focus { top: 12px; }
.k-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── header: emblem + wordmark, section anchors, language ── */
.k-header { position: sticky; top: 0; z-index: 30; background: linear-gradient(180deg, rgba(255,246,230,.97), rgba(255,246,230,.93)); }
.k-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none; background: linear-gradient(180deg, rgba(74,44,79,.12), transparent); }
.k-header .k-wrap { display: flex; align-items: center; gap: 14px 22px; min-height: 72px; }
.k-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: var(--plum); }
.k-brand img { width: 50px; height: 50px; flex: none; filter: drop-shadow(0 4px 6px rgba(74,44,79,.25)); }
.k-brand span { display: flex; flex-direction: column; line-height: 1; }
.k-brand b { font: 800 26px/1 var(--head); color: var(--plum); }
.k-brand em { font: 700 13px/1.2 var(--body); font-style: normal; color: var(--rose-d); letter-spacing: .3px; margin-top: 3px; }
.k-brand.small img { width: 44px; height: 44px; }
.k-nav { display: flex; gap: 6px 20px; }
.k-nav a { font: 700 16px/1 var(--body); color: var(--plum-soft); text-decoration: none; padding: 8px 0; }
.k-nav a:hover { color: var(--rose-d); }
@media (max-width: 899px) { .k-nav { display: none; } }

/* ── pill plates (plate.webp sliced at full height: caps scale with the height only) ── */
.k-btn, .k-lang, .k-store, .k-chips li, .k-tag, .k-never li { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); white-space: nowrap;
  border: solid transparent; border-width: 0 calc(var(--h) * .5); border-image: url(/assets/img/meskhane/ui/plate.webp) 50% 125 fill / 50% calc(var(--h) * .5) stretch;
  padding: 0 4px; font: 800 17px/1 var(--head); color: var(--plum); text-decoration: none; }
.k-btn { filter: drop-shadow(0 5px 8px rgba(74,44,79,.22)); transition: transform .12s; }
.k-btn:hover { transform: translateY(-1px); color: var(--plum); }
.k-lang { --h: 42px; font-size: 15px; }
.k-stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.k-store { --h: 62px; min-width: 200px; justify-content: flex-start; padding: 0 2px; filter: drop-shadow(0 5px 8px rgba(74,44,79,.2)); }
.k-store svg { width: 26px; height: 26px; flex: none; fill: var(--plum); }
.k-store span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; font-size: 19px; }
.k-store small { font: 800 10.5px/1.2 var(--body); letter-spacing: .6px; text-transform: uppercase; color: var(--plum-soft); }
.k-store .soon { margin-left: auto; font: 900 10px/1 var(--body); font-style: normal; letter-spacing: 1.2px; color: var(--rose-d); }
.k-store[data-live="false"] { cursor: default; }
.k-store[data-live="true"] .soon { display: none; }

/* ── 9-slice panel (tulip corners, plain band → round-tiled, never stretched) ── */
.k-panel, .k-card { border: solid transparent; border-width: var(--pw); border-image: url(/assets/img/meskhane/ui/panel.webp) 160 fill / var(--pw) round; }
.k-panel { padding: 6px 8px; filter: drop-shadow(0 12px 22px rgba(74,44,79,.14)); }
.k-card { --pw: 32px; padding: 2px 4px; filter: drop-shadow(0 8px 16px rgba(74,44,79,.12)); }
/* framed pictures: the panel is laid OVER the picture (no fill) and the picture runs out under the gold band */
/* frame.webp = panel.webp with the cream field cut out (tools/prepare_art.py _mesk_frame); the picture runs under the band */
.k-frame { position: relative; overflow: hidden; border-radius: calc(var(--pw) * .32); background: var(--cream-2); }
.k-frame img { width: 100%; height: auto; padding: calc(var(--pw) * .12); border-radius: calc(var(--pw) * .4); }
.k-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: solid transparent; border-width: var(--pw); border-image: url(/assets/img/meskhane/ui/frame.webp) 160 / var(--pw) round; }

/* ── hero ── */
.k-hero { position: relative; isolation: isolate; padding: 48px 0 70px; }
.k-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,246,230,.86), rgba(255,246,230,.94) 70%, var(--cream)), url(/assets/img/meskhane/scene-garden.webp) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
.k-hero .k-wrap { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .k-hero .k-wrap { grid-template-columns: 1.05fr 1fr; } .k-hero { padding: 70px 0 100px; } }
.k-kicker { margin: 0 0 10px; font: 900 13px/1.2 var(--body); letter-spacing: 2px; text-transform: uppercase; color: var(--rose-d); }
.k-hero h1 b { display: block; font-size: clamp(60px, 13vw, 96px); line-height: .95; color: var(--plum); }
.k-hero h1 span { display: block; margin-top: 6px; font-size: clamp(26px, 5vw, 36px); color: var(--rose-d); }
.k-promise { font: 800 clamp(20px, 3.6vw, 26px)/1.3 var(--head); color: var(--plum); margin: 14px 0 12px; }
.k-hero-text > p:not(.k-kicker):not(.k-promise) { max-width: 560px; color: var(--plum-soft); }
.k-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.k-chips li { --h: 44px; font-size: 15px; padding: 0 2px; }
.k-chips img { width: 26px; height: 26px; flex: none; }
.k-hero-art { position: relative; margin: 0; }
.k-hero-art .k-frame { --pw: 48px; aspect-ratio: 4 / 3; }
.k-hero-art .k-frame img { height: 100%; object-fit: cover; }
.k-bird { position: absolute; width: 92px; height: auto; right: -8px; top: -30px; filter: drop-shadow(0 6px 8px rgba(74,44,79,.2)); animation: kfloat 6s ease-in-out infinite; }
@keyframes kfloat { 50% { transform: translateY(-8px); } }
@media (max-width: 599px) { .k-bird { width: 64px; right: 0; top: -20px; } .k-store { min-width: 0; flex: 1 1 200px; } }

/* ── sections ── */
.k-sec { position: relative; isolation: isolate; padding: 64px 0; }
.k-soft::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(253,235,208,.9), rgba(253,235,208,.94)), url(/assets/img/meskhane/scene-hall.webp) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.k-sec h2::after { content: ""; display: block; width: 112px; height: 28px; margin: 8px auto 0; background: url(/assets/img/meskhane/deco/tulip.webp) center / 28px 28px space; }
.k-lede { text-align: center; max-width: 660px; margin: 0 auto 34px; color: var(--plum-soft); }
.k-small { max-width: 820px; margin: 26px auto 0; text-align: center; font-size: 15px; color: var(--plum-soft); }

/* rooms */
.k-rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .k-rooms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .k-rooms { grid-template-columns: repeat(4, 1fr); } }
.k-rooms li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.k-rooms img { width: min(170px, 60%); height: auto; margin: -4px auto 10px; filter: drop-shadow(0 8px 10px rgba(74,44,79,.2)); }
.k-rooms h3 small { font: 700 14px/1 var(--body); color: var(--plum-soft); }
.k-rooms p { font-size: 15.5px; color: var(--plum-soft); margin: 0 0 8px; }
.k-rooms .sleep img { filter: saturate(.75) drop-shadow(0 8px 10px rgba(74,44,79,.2)); }
.k-tag { --h: 34px; font: 800 13px/1 var(--body); padding: 0; margin-bottom: 10px !important; color: var(--plum) !important; }

/* note birds */
.k-notes { margin: 34px auto 0; max-width: 960px; text-align: center; }
.k-notes > p { max-width: 700px; margin-inline: auto; color: var(--plum-soft); font-size: 15.5px; }
.k-birds { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.k-birds li { display: flex; flex-direction: column; align-items: center; width: 92px; }
.k-birds img { width: 72px; height: 72px; }
.k-birds b { font: 800 20px/1.1 var(--head); }
.k-birds small { font-size: 13px; color: var(--plum-soft); }
.k-birds li:nth-child(1) b { color: #e5484d; } .k-birds li:nth-child(2) b { color: #d9731c; } .k-birds li:nth-child(3) b { color: #b8901a; }
.k-birds li:nth-child(4) b { color: #3f8f3f; } .k-birds li:nth-child(5) b { color: #1f8a88; } .k-birds li:nth-child(6) b { color: #3e7cd6; } .k-birds li:nth-child(7) b { color: #8c5bd6; }

/* lesson steps */
.k-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .k-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .k-steps { grid-template-columns: repeat(4, 1fr); } .k-steps.three { grid-template-columns: repeat(3, 1fr); } }
.k-steps li { text-align: center; }
.k-steps p { font-size: 15.5px; color: var(--plum-soft); margin: 0; }
.k-num { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; font: 800 24px/1 var(--head); color: var(--plum);
  background: radial-gradient(circle at 35% 30%, #fff3d6, var(--gold) 70%, var(--gold-lo)); box-shadow: 0 4px 8px rgba(74,44,79,.2); }
.k-ic { width: 64px; height: 64px; margin: 0 auto 8px; filter: drop-shadow(0 4px 6px rgba(74,44,79,.18)); }

/* app captures at their own aspect ratio */
.k-shots { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .k-shots { grid-template-columns: 1fr 1fr; } }
.k-shots .k-frame { --pw: 34px; }
.k-shots p { text-align: center; margin: 10px 0 0; font: 800 17px/1.3 var(--head); color: var(--plum); }

/* trust */
.k-trust { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .k-trust { grid-template-columns: 1.15fr 1fr; } }
.k-trust .k-panel { text-align: left; }
.k-trust .k-ic { margin: 0 0 6px; }
.k-trust p { color: var(--plum-soft); font-size: 16px; }
.k-list { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.k-list li { position: relative; padding-left: 30px; font-size: 16px; color: var(--plum-soft); }
.k-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; background: url(/assets/img/meskhane/ui/star.webp) center / 20px 20px no-repeat; }
.k-list b { color: var(--plum); }
.k-never-h { margin: 34px 0 10px; text-align: center; font: 800 20px/1.2 var(--head); }
.k-never { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.k-never li { --h: 42px; font-size: 15px; padding: 0 2px; }

/* prices */
.k-free { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; max-width: 900px; margin: 0 auto 22px; }
.k-free .k-ic { margin: 0; }
.k-free p { margin: 0; color: var(--plum-soft); }
.k-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .k-prices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .k-prices { grid-template-columns: repeat(4, 1fr); } }
.k-prices li { text-align: center; display: flex; flex-direction: column; }
.k-prices h3 { font-size: 21px; }
.k-price { font: 800 32px/1 var(--head); color: var(--rose-d); margin: 4px 0 12px; }
.k-price small { font: 700 14px/1 var(--body); color: var(--plum-soft); }
.k-prices p:last-child { font-size: 15px; color: var(--plum-soft); margin: 0; }
.k-prices .best h3 { color: var(--rose-d); }

/* faq */
.k-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.k-faq details { --pw: 28px; border: solid transparent; border-width: var(--pw); border-image: url(/assets/img/meskhane/ui/panel.webp) 160 fill / var(--pw) round; padding: 0 6px; }
.k-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; font: 800 19px/1.25 var(--head); }
.k-faq summary::-webkit-details-marker { display: none; }
.k-faq summary::after { content: ""; flex: none; margin-left: auto; width: 22px; height: 22px; transition: transform .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='%23d9667e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.k-faq details[open] summary::after { transform: rotate(180deg); }
.k-faq .a { padding-top: 8px; color: var(--plum-soft); font-size: 16px; }
.k-faq .a p:last-child { margin-bottom: 0; }

/* ── legal page (the kids notice) ── */
.k-head { padding: 46px 0 20px; text-align: center; }
.k-head h1 { font-size: clamp(32px, 7vw, 50px); }
.k-head .meta { color: var(--plum-soft); font-style: italic; }
.k-crumb { margin: 0 0 10px; font-size: 15px; }
.k-doc { max-width: 860px; margin: 0 auto; }
.k-doc h2 { text-align: left; font-size: 25px; margin-top: 26px; }
.k-doc h2::after { display: none; }
.k-doc > :first-child { margin-top: 0; }
.k-doc p, .k-doc li { color: var(--plum-soft); }
.k-doc b { color: var(--plum); }
.k-back { text-align: center; margin: 26px 0 60px; }

/* ── footer ── */
.k-footer { position: relative; padding: 48px 0 30px; background: var(--veli); color: var(--plum-soft); font-size: 15px; }
.k-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 28px; background: url(/assets/img/meskhane/deco/tulip.webp) center / 28px 28px space; }
.k-foot { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .k-foot { grid-template-columns: 1.4fr 1fr 1fr; } }
.k-foot p { margin: 12px 0 0; }
.k-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.k-foot address { font-style: normal; line-height: 1.7; }
.k-fine { margin: 28px 0 0; font-size: 13px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
