/* ============================================================
   TUKO99 — Arabic Alphabet Learning  |  style.css
   ============================================================ */

/* ---- Google Fonts fallback stack ---- */
@import url('https://fonts.googleapis.com/css2?family=Lalezar&family=Cairo:wght@500;700;900&family=Tajawal:wght@500;700;800&display=swap');

/* ============== DESIGN TOKENS ============== */
:root {
  --portal-card-bg:
    radial-gradient(circle at 42% 46%, oklch(96% 0.055 94 / 0.75), transparent 45%),
    linear-gradient(180deg, oklch(98% 0.025 93) 0%, oklch(96% 0.06 94) 100%);
  --portal-btn-bg: linear-gradient(180deg, oklch(86% 0.14 83) 0%, oklch(78% 0.15 77) 100%);
  --portal-btn-fg: oklch(31% 0.08 78);
  --portal-btn-shade: oklch(56% 0.14 73);
  --portal-gold: oklch(86% 0.15 91);
  --portal-gold-soft: oklch(86% 0.11 91 / 0.78);
  --portal-gold-deep: oklch(67% 0.15 83);
  --portal-card-shadow:
    0 18px 34px -28px oklch(58% 0.12 88 / 0.24),
    inset 0 1px 0 oklch(99% 0.01 90 / 0.7);

  --bg:          var(--portal-card-bg);
  --bg-2:        oklch(96% 0.055 94);
  --surface:     oklch(99% 0.018 92 / 0.94);
  --surface-letters: var(--surface-preview);
  --surface-preview: oklch(99% 0.016 91 / 0.98);
  --ink:         oklch(24% 0.035 266);
  --ink-soft:    oklch(44% 0.035 266);
  --ink-mute:    oklch(54% 0.03 266);
  --line:        var(--portal-gold-soft);

  --teal:        oklch(86% 0.14 83);
  --teal-deep:   var(--portal-gold-deep);
  --teal-soft:   oklch(93% 0.05 92);
  --teal-tint:   oklch(96% 0.035 94 / 0.74);

  --coral:       #F39A8E;
  --coral-deep:  #D86F61;

  /* tile palette — pastel, coherent chroma ~0.10 */
  --c-coral:      #F8B5A8;
  --c-butter:     #F6D98A;
  --c-mint:       #B3E2C2;
  --c-peri:       #BCC7F2;
  --c-peach:      #F8C9A4;
  --c-lavender:   #D6C0EE;
  --c-sky:        #B8D9F0;
  --c-rose:       #F5BFD0;
  --c-pistachio:  #D4E2A0;
  --c-blush:      #F4C8C0;
  --c-aqua:       #B6E3DD;
  --c-canary:     #F6E2A0;

  /* ink-on-tile colours */
  --ink-coral:      #7C3A30;
  --ink-butter:     #6E5320;
  --ink-mint:       #2B5E3D;
  --ink-peri:       #2E3B73;
  --ink-peach:      #7E4825;
  --ink-lavender:   #4A356E;
  --ink-sky:        #234B6E;
  --ink-rose:       #7A2F4A;
  --ink-pistachio:  #4A5A1F;
  --ink-blush:      #7C3A3A;
  --ink-aqua:       #1F5E58;
  --ink-canary:     #6E5520;

  --r-tile: 22px;
  --r-card: 28px;
  --r-pill: 999px;
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }

/* ============== ROOT + PAGE ============== */
.tuko-root {
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  direction: rtl;
}

.tuko-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 56px 32px;
  gap: 32px;
}

.tuko-page.is-desktop {
  height: 100vh;
  height: 100dvh;
  min-height: unset;
  padding: 24px 56px 16px;
  gap: 16px;
  overflow: hidden;
}
.tuko-page.is-tablet { padding: 32px 36px 28px; gap: 24px; }
.tuko-page.is-mobile { padding: 14px 18px 18px; gap: 12px; }

/* ============== HEADER ============== */
.tuko-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
}

.tuko-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
  flex: 0 0 auto;
}
.tuko-logo img {
  height: 116px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(40,30,20,0.10));
}
.is-tablet .tuko-logo img { height: 84px; }
.is-mobile  .tuko-logo img { height: 54px; }

.tuko-title {
  font-family: 'Lalezar', 'Cairo', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  color: var(--ink);
  text-align: center;
  flex: 1;
  padding-top: 4px;
}
.is-tablet .tuko-title { font-size: 52px; }
.is-mobile  .tuko-title { font-size: 38px; padding-top: 0; line-height: 1; margin: 2px 0 0; }

.tuko-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  background: oklch(99% 0.014 91 / 0.9);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-soft);
  direction: ltr;
  flex-shrink: 0;
}
.tuko-progress .num  { color: var(--teal-deep); font-size: 16px; }
.tuko-progress .star {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  color: #F0B429;
}

/* mobile header — logo + badge row 1, title below */
.tuko-header-mobile {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.tuko-header-mobile .tuko-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  direction: ltr;
}

/* ============== BODY ============== */
.tuko-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  min-height: 0;
}
.is-desktop .tuko-body { gap: 20px; }
.is-desktop .tuko-grid-wrap { gap: 10px; padding: 18px; overflow: hidden; }
.is-desktop .tuko-preview { gap: 12px; padding: 18px; }
.is-desktop .tuko-stage { min-height: 0; }
.is-desktop .tuko-illustration .ph-glyph { font-size: clamp(80px, 12vw, 200px); }
.is-desktop .tuko-grid {
  grid-template-columns: repeat(5, minmax(0, clamp(68px, 7vw, 104px)));
  justify-content: center;
  align-content: center;
  gap: 14px;
}
.is-desktop .tuko-tile { width: 100%; max-width: 104px; }
.is-desktop .tuko-tile .glyph { font-size: clamp(30px, 3vw, 62px); }

.is-tablet .tuko-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.is-tablet .tuko-grid-wrap { flex: 1 1 auto; order: 2; }
.is-tablet .tuko-preview   { flex: 0 0 auto; padding: 20px 28px; order: 1; }

.is-mobile .tuko-body {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.is-mobile .tuko-body .tuko-grid-wrap { order: 2; }
.is-mobile .tuko-body .tuko-preview   { order: 1; }

/* ============== GRID PANEL ============== */
.tuko-grid-wrap {
  background: var(--surface-letters);
  border-radius: var(--r-card);
  padding: 22px;
  border: 2px solid var(--portal-gold-soft);
  box-shadow: var(--portal-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}
.is-tablet .tuko-grid-wrap { padding: 18px; gap: 12px; }
.is-mobile .tuko-grid-wrap { padding: 14px; gap: 10px; }

.tuko-grid-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  direction: ltr;
  flex-shrink: 0;
}
.tuko-grid-head .label {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.tuko-grid-head .count {
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-soft);
}

/* page indicator inside grid head */
.tuko-grid-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}
.tuko-grid-pages .pg-label {
  font-weight: 800;
  font-size: 12px;
  color: var(--ink-soft);
  margin-right: 4px;
  direction: rtl;
}
.tuko-grid-pages .pg-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  background: var(--line);
  transition: width 200ms ease, background 200ms ease;
}
.tuko-grid-pages .pg-dot.is-active {
  width: 22px;
  background: var(--teal-deep);
}

/* ============== LETTER GRID ============== */
.tuko-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  direction: rtl;
  flex: 1;
  min-height: 0;
  align-content: start;
}
.is-tablet .tuko-grid {
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
  align-content: stretch;
}
.is-tablet .tuko-tile { aspect-ratio: 1 / 1; }
.is-mobile .tuko-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ============== TILE ============== */
.tuko-tile {
  --tile-bg:    var(--c-mint);
  --tile-ink:   var(--ink-mint);
  --tile-shade: rgba(0,0,0,0.14);

  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--r-tile);
  border: none;
  cursor: pointer;
  background: var(--tile-bg);
  display: grid;
  place-items: center;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
  box-shadow:
    0 4px 0 0 var(--tile-shade),
    0 8px 15px -7px oklch(48% 0.08 82 / 0.24),
    inset 0 1.5px 0 rgba(255,255,255,0.65),
    inset 0 -2px 0 rgba(0,0,0,0.05);
  font-family: 'Cairo', 'Lalezar', sans-serif;
  font-weight: 900;
  color: var(--tile-ink);
  overflow: hidden;
  padding: 0;
  outline: none;
}
/* inner gloss */
.tuko-tile::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 38%);
  pointer-events: none;
}

.tuko-tile .glyph {
  font-size: clamp(32px, 3.8vw, 72px);
  line-height: 1;
  z-index: 1;
  transform: translateY(-2px);
  font-feature-settings: "ss01";
  pointer-events: none;
}
.is-tablet .tuko-tile .glyph { font-size: clamp(40px, 5vw, 76px); }
.is-mobile .tuko-tile .glyph { font-size: clamp(32px, 11vw, 56px); }

/* hover */
.tuko-tile:hover {
  transform: translateY(1px);
  filter: saturate(1.04);
  box-shadow:
    0 3px 0 0 var(--tile-shade),
    0 5px 10px -7px oklch(48% 0.08 82 / 0.2),
    inset 0 1.5px 0 rgba(255,255,255,0.65),
    inset 0 -2px 0 rgba(0,0,0,0.05);
}
/* pressed */
.tuko-tile:active {
  transform: translateY(4px);
  box-shadow:
    0 0 0 0 var(--tile-shade),
    0 1px 3px oklch(48% 0.08 82 / 0.16),
    inset 0 1.5px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.04);
}
/* selected — lifted */
.tuko-tile.is-selected {
  transform: translateY(-3px);
  box-shadow:
    0 7px 0 0 var(--tile-shade),
    0 16px 26px -10px oklch(48% 0.08 82 / 0.3),
    0 24px 38px -18px oklch(48% 0.08 82 / 0.18),
    inset 0 3px 0 rgba(255,255,255,0.85),
    inset 0 -3px 0 rgba(0,0,0,0.08);
  z-index: 2;
}
.tuko-tile.is-selected::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}
/* keyboard focus */
.tuko-tile:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 2px;
}

/* per-letter colour modifiers */
.t-coral      { --tile-bg: var(--c-coral);     --tile-ink: var(--ink-coral);     --tile-shade: #C77A6E; }
.t-butter     { --tile-bg: var(--c-butter);    --tile-ink: var(--ink-butter);    --tile-shade: #C9A75C; }
.t-mint       { --tile-bg: var(--c-mint);      --tile-ink: var(--ink-mint);      --tile-shade: #7FB994; }
.t-peri       { --tile-bg: var(--c-peri);      --tile-ink: var(--ink-peri);      --tile-shade: #8B98C7; }
.t-peach      { --tile-bg: var(--c-peach);     --tile-ink: var(--ink-peach);     --tile-shade: #C99373; }
.t-lavender   { --tile-bg: var(--c-lavender);  --tile-ink: var(--ink-lavender);  --tile-shade: #A48CC0; }
.t-sky        { --tile-bg: var(--c-sky);       --tile-ink: var(--ink-sky);       --tile-shade: #84A8C2; }
.t-rose       { --tile-bg: var(--c-rose);      --tile-ink: var(--ink-rose);      --tile-shade: #C691A2; }
.t-pistachio  { --tile-bg: var(--c-pistachio); --tile-ink: var(--ink-pistachio); --tile-shade: #A4B274; }
.t-blush      { --tile-bg: var(--c-blush);     --tile-ink: var(--ink-blush);     --tile-shade: #C69590; }
.t-aqua       { --tile-bg: var(--c-aqua);      --tile-ink: var(--ink-aqua);      --tile-shade: #84B6B0; }
.t-canary     { --tile-bg: var(--c-canary);    --tile-ink: var(--ink-canary);    --tile-shade: #C9B473; }

/* ============== PREVIEW CARD ============== */
.tuko-preview {
  background: var(--surface-preview);
  border-radius: var(--r-card);
  border: 2px solid var(--portal-gold-soft);
  box-shadow: var(--portal-card-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}
.is-mobile .tuko-preview { padding: 14px; gap: 10px; }

.tuko-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: ltr;
  flex-shrink: 0;
}

.tuko-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: 1.5px solid var(--portal-gold-soft);
  direction: rtl;
}
.tuko-chip .dot {
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: var(--teal-deep);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

.tuko-pos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--teal-tint);
  border: 1.5px solid var(--portal-gold-soft);
  border-radius: var(--r-pill);
  direction: ltr;
}
.tuko-pos svg { flex-shrink: 0; }
.tuko-pos .pos-num {
  font-weight: 900;
  font-size: 14px;
  color: var(--teal-deep);
  letter-spacing: 0.5px;
}
.tuko-pos .pos-total {
  font-weight: 700;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.5px;
}

/* ---- Stage ---- */
.tuko-stage {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1680 / 800;
  border-radius: 22px;
  border: 1.5px solid oklch(86% 0.11 91 / 0.56);
  overflow: hidden;
  min-height: 0;
  display: grid;
  place-items: center;
  box-shadow:
    0 12px 22px -18px oklch(48% 0.08 82 / 0.22),
    inset 0 2px 0 rgba(255,255,255,0.55),
    inset 0 -2px 0 rgba(0,0,0,0.06);
  transition: background-color 380ms ease;
}
/* diagonal stripe texture */
.tuko-stage::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.18) 0 14px,
      rgba(255,255,255,0)    14px 28px
    );
  pointer-events: none;
}
/* radial gloss */
.tuko-stage::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}

.tuko-illustration {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px;
  text-align: center;
}

.tuko-illustration.has-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: inherit;
  display: block;
}

.tuko-illustration .ph-glyph {
  font-family: 'Lalezar', 'Cairo', sans-serif;
  font-size: clamp(120px, 18vw, 260px);
  color: rgba(255,255,255,0.88);
  line-height: 0.85;
  text-shadow:
    0 6px 0 rgba(0,0,0,0.08),
    0 18px 30px rgba(0,0,0,0.15);
  font-weight: 400;
  font-feature-settings: "ss01";
  will-change: transform, opacity;
}
.is-mobile .tuko-illustration .ph-glyph { font-size: clamp(90px, 28vw, 140px); }

.tuko-illustration .ph-tag {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.55);
  border: 1.5px dashed rgba(0,0,0,0.18);
  padding: 6px 10px;
  border-radius: 8px;
  direction: ltr;
}

/* pop-in animation on letter change — covers both glyph placeholder and real image */
.stage-enter .ph-glyph,
.stage-enter .stage-img {
  animation: popIn 420ms cubic-bezier(.3,1.5,.5,1) forwards;
}
@keyframes popIn {
  0%   { transform: scale(0.68) rotate(-7deg); opacity: 0; }
  60%  { transform: scale(1.07) rotate( 2deg); opacity: 1; }
  100% { transform: scale(1)    rotate( 0deg); opacity: 1; }
}

/* real image inside stage (used when letter.image URL is populated) */
.stage-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: inherit;
  filter:
    saturate(1.06)
    contrast(1.04)
    brightness(1.03)
    drop-shadow(0 10px 18px oklch(40% 0.05 82 / 0.12));
  will-change: transform, opacity;
}

/* ---- Listen row ---- */
.tuko-listen-row {
  display: flex;
  align-items: center;
  gap: 14px;
  direction: rtl;
  flex-shrink: 0;
}
.tuko-listen-row .meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tuko-listen-row .meta .name {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--ink);
}
.tuko-listen-row .meta .sub {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-mute);
  direction: ltr;
  letter-spacing: 1px;
}

/* ============== TACTILE BUTTONS ============== */
.tk-btn {
  --btn-bg:    oklch(86% 0.14 83);
  --btn-bg-2:  oklch(78% 0.15 77);
  --btn-fg:    var(--portal-btn-fg);
  --btn-shade: var(--portal-btn-shade);
  --btn-stem:  5px;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--portal-btn-bg);
  color: var(--btn-fg);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 110ms ease, box-shadow 110ms ease, opacity 200ms ease;
  box-shadow:
    0 var(--btn-stem) 0 0 var(--btn-shade),
    0 calc(var(--btn-stem) + 4px) 18px -8px oklch(58% 0.12 82 / 0.28),
    inset 0 1.5px 0 oklch(99% 0.01 90 / 0.66),
    inset 0 -1.5px 0 oklch(20% 0.04 80 / 0.08);
  outline: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tk-btn:hover {
  transform: translateY(2px);
  box-shadow:
    0 calc(var(--btn-stem) - 2px) 0 0 var(--btn-shade),
    0 calc(var(--btn-stem) + 1px) 12px -8px oklch(58% 0.12 82 / 0.28),
    inset 0 1.5px 0 oklch(99% 0.01 90 / 0.66),
    inset 0 -1.5px 0 oklch(20% 0.04 80 / 0.08);
}
.tk-btn:active {
  transform: translateY(var(--btn-stem));
  box-shadow:
    0 0 0 0 var(--btn-shade),
    0 1px 4px oklch(58% 0.12 82 / 0.22),
    inset 0 1.5px 0 oklch(99% 0.01 90 / 0.52),
    inset 0 -1px 0 oklch(20% 0.04 80 / 0.08);
}
.tk-btn:focus-visible {
  outline: 3px solid var(--portal-gold-deep);
  outline-offset: 3px;
}
.tk-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow:
    0 var(--btn-stem) 0 0 var(--btn-shade),
    0 calc(var(--btn-stem) + 4px) 18px -8px oklch(58% 0.12 82 / 0.28),
    inset 0 1.5px 0 oklch(99% 0.01 90 / 0.66),
    inset 0 -1.5px 0 oklch(20% 0.04 80 / 0.08);
}

/* variants */
.tk-btn.is-coral {
  --btn-bg:    oklch(86% 0.14 83);
  --btn-bg-2:  oklch(78% 0.15 77);
  --btn-fg:    var(--portal-btn-fg);
  --btn-shade: var(--portal-btn-shade);
}
.tk-btn.is-exit {
  --btn-bg:    oklch(86% 0.14 83);
  --btn-bg-2:  oklch(78% 0.15 77);
  --btn-fg:    var(--portal-btn-fg);
  --btn-shade: var(--portal-btn-shade);
  --btn-stem:  3px;
  min-width: clamp(118px, 11vw, 148px);
  padding: 11px 46px;
  font-size: 18px;
  font-family: 'Lalezar', 'Cairo', sans-serif;
  letter-spacing: 1px;
  text-decoration: none;
}
.tk-btn.is-cream {
  --btn-bg:    oklch(86% 0.14 83);
  --btn-bg-2:  oklch(78% 0.15 77);
  --btn-fg:    var(--portal-btn-fg);
  --btn-shade: var(--portal-btn-shade);
}
.tk-btn.is-yellow {
  --btn-bg:    oklch(86% 0.14 83);
  --btn-bg-2:  oklch(78% 0.15 77);
  --btn-fg:    var(--portal-btn-fg);
  --btn-shade: var(--portal-btn-shade);
}

/* sizes */
.tk-btn.is-lg {
  padding: 18px 30px;
  font-size: 18px;
  --btn-stem: 6px;
}
.is-mobile .tk-btn.is-exit { padding: 10px 28px; font-size: 15px; }

/* nav button labels — Cairo 700 for clean, readable weight */
.tuko-nav .tk-btn {
  --btn-stem: 3px;
  min-width: clamp(118px, 11vw, 148px);
  padding: 15px 34px;
  background: var(--portal-btn-bg);
  color: var(--portal-btn-fg);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.tuko-nav .tk-btn svg { width: 18px; height: 18px; }
.tk-btn.is-icon {
  padding: 0;
  width: 56px; height: 56px;
}
.tk-btn.is-icon.is-lg { width: 64px; height: 64px; }

.tuko-listen-row .tk-btn.is-icon {
  --btn-stem: 3px;
  box-shadow:
    0 3px 0 0 var(--btn-shade),
    0 7px 14px -10px oklch(58% 0.12 82 / 0.26),
    inset 0 1.5px 0 oklch(99% 0.01 90 / 0.66),
    inset 0 -1px 0 oklch(20% 0.04 80 / 0.07);
}

.tuko-listen-row .tk-btn.is-icon:hover {
  transform: translateY(1px);
  box-shadow:
    0 2px 0 0 var(--btn-shade),
    0 5px 10px -9px oklch(58% 0.12 82 / 0.22),
    inset 0 1.5px 0 oklch(99% 0.01 90 / 0.66),
    inset 0 -1px 0 oklch(20% 0.04 80 / 0.07);
}

.tuko-listen-row .tk-btn.is-icon:active {
  transform: translateY(3px);
  box-shadow:
    0 0 0 0 var(--btn-shade),
    0 1px 4px oklch(58% 0.12 82 / 0.18),
    inset 0 1.5px 0 oklch(99% 0.01 90 / 0.5),
    inset 0 -1px 0 oklch(20% 0.04 80 / 0.08);
}

.tuko-nav .tk-btn,
.tk-btn.is-exit {
  box-shadow:
    0 3px 0 0 var(--btn-shade),
    0 7px 14px -10px oklch(58% 0.12 82 / 0.26),
    inset 0 1.5px 0 oklch(99% 0.01 90 / 0.66),
    inset 0 -1px 0 oklch(20% 0.04 80 / 0.07);
}

.tuko-nav .tk-btn:hover,
.tk-btn.is-exit:hover {
  transform: translateY(1px);
  box-shadow:
    0 2px 0 0 var(--btn-shade),
    0 5px 10px -9px oklch(58% 0.12 82 / 0.22),
    inset 0 1.5px 0 oklch(99% 0.01 90 / 0.66),
    inset 0 -1px 0 oklch(20% 0.04 80 / 0.07);
}

.tuko-nav .tk-btn:active,
.tk-btn.is-exit:active {
  transform: translateY(3px);
  box-shadow:
    0 0 0 0 var(--btn-shade),
    0 1px 4px oklch(58% 0.12 82 / 0.18),
    inset 0 1.5px 0 oklch(99% 0.01 90 / 0.5),
    inset 0 -1px 0 oklch(20% 0.04 80 / 0.08);
}

.tuko-nav .tk-btn:disabled {
  opacity: 1;
  background: var(--portal-btn-bg);
  color: var(--portal-btn-fg);
  transform: none;
  box-shadow:
    0 3px 0 0 var(--btn-shade),
    0 7px 14px -10px oklch(58% 0.12 82 / 0.18),
    inset 0 1.5px 0 oklch(99% 0.01 90 / 0.5),
    inset 0 -1px 0 oklch(20% 0.04 80 / 0.05);
}

/* ============== BOTTOM NAV ============== */
.tuko-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  direction: ltr;
  flex-shrink: 0;
  padding-bottom: 8px;
}
.is-mobile .tuko-nav { gap: 10px; }

.tuko-nav-mid {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tuko-nav-dot {
  width: 10px; height: 10px;
  border-radius: var(--r-pill);
  background: var(--line);
  transition: width 200ms ease, background 200ms ease;
}
.tuko-nav-dot.is-active {
  width: 28px;
  background: var(--teal-deep);
}

/* ============== UTILS ============== */
.flip-x { display: inline-flex; transform: scaleX(-1); }

/* ============== SCROLLBAR ============== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
