/* =====================================================================
   NEW LOOK (Oct 2026): flat surfaces, pill buttons, Baloo 2 for titles and
   numbers, Nunito for text. Colors come from the theme tokens (--surface,
   --primary, --c-orange, --c-teal, --c-green), so every theme follows.
   ===================================================================== */
html, body { font-family: var(--font-ui); }
button { font-family: inherit; }
svg { flex-shrink: 0; }

/* ---- Buttons ---- */
.menu-btn, body.themed .menu-btn {
  border-radius: 999px; border: none; box-shadow: none; letter-spacing: 0;
  font-weight: 800; color: var(--on-primary); background: var(--primary);
  transition: transform 0.12s, filter 0.12s;
}
.menu-btn:active, body.themed .menu-btn:active { transform: scale(0.97); box-shadow: none; filter: brightness(0.95); }
.menu-btn.secondary, body.themed .menu-btn.secondary { color: var(--fg); background: var(--surface-2); box-shadow: none; }
.menu-btn.ghost, body.themed .menu-btn.ghost { color: var(--fg); background: transparent; box-shadow: inset 0 0 0 2px var(--line-soft); opacity: 1; }
.menu-btn.cta { width: 100%; height: 58px; padding: 0 20px; background: var(--c-orange); color: #fff; font-family: var(--font-display); font-size: 21px; line-height: 1; }
.menu-btn svg, .modal-close-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.modal-close-btn, body.themed .modal-close-btn {
  border-radius: 999px; padding: 13px 10px; background: transparent; color: var(--fg);
  box-shadow: inset 0 0 0 2px var(--line-soft); font-weight: 800; font-size: 15px;
}
.modal-close-btn:active { transform: scale(0.97); }
.icon-btn, .icon-btn.back { background: var(--surface-2); box-shadow: none; color: var(--fg); }
.icon-btn.back:hover { background: var(--surface-2); filter: brightness(0.97); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.back svg { width: 22px; height: 22px; }

/* ---- Menu ---- */
#signin-chip, #help-btn { background: var(--surface-2); color: var(--fg); }
#signin-chip { height: 36px; padding: 0 14px 0 12px; font-size: 13px; font-weight: 800; }
#help-btn { width: 40px; height: 40px; font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.menu-topbar-right { display: flex; align-items: center; gap: 8px; }
#menu-hints { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 14px 0 11px; border: none; border-radius: 999px;
  background: var(--surface-2); color: var(--fg); font-family: var(--font-display); font-size: 18px; font-weight: 800; cursor: pointer; }
#menu-hints[hidden] { display: none; }
#menu-hints svg { width: 19px; height: 19px; fill: #f6d98a; stroke: #b07d0c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#menu-center { gap: 12px; }
#menu-title, body.themed #menu-title { display: flex; flex-direction: column; align-items: center; gap: 6px; text-shadow: none; letter-spacing: 0; margin-bottom: 2px; }
#menu-title .menu-logo { display: block; width: min(72vw, 270px); height: auto; color: var(--fg); overflow: visible; }
#menu-title .menu-arena {
  display: inline-block; margin-top: 10px; padding: 3px 14px 2px; border-radius: 999px;
  background: var(--c-teal); color: #fff; font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: 1px; line-height: 1.4;
}
#menu-sub { font-size: 14px; font-weight: 700; letter-spacing: 0; color: rgba(var(--fg-rgb),0.65); margin: 6px 0 24px; text-align: center; }
.menu-btn.mode {
  width: min(88vw, 340px); height: 64px; padding: 0 22px 0 8px;
  display: flex; align-items: center; gap: 14px; text-align: left;
  font-family: var(--font-display); font-size: 21px; color: #fff;
}
.menu-btn.mode .mode-label { flex: 1; line-height: 1; }
.menu-btn.mode .mode-sub { font-family: var(--font-ui); font-size: 13px; font-weight: 800; opacity: 0.85; }
.menu-btn.mode .mode-ic { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.menu-btn.mode .mode-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn.mode .mode-ic svg.fill { fill: currentColor; stroke: none; }
#btn-single, body.themed #btn-single { background: var(--primary); }
#btn-single .mode-ic { color: var(--primary); }
#btn-free-mode, body.themed #btn-free-mode { background: var(--c-orange); }
#btn-free-mode .mode-ic { color: var(--c-orange); }
#btn-multi, body.themed #btn-multi { background: var(--c-teal); }
#btn-multi .mode-ic { color: var(--c-teal); }
.menu-row { width: min(88vw, 340px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.menu-row .menu-btn { width: auto; height: 52px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; }

/* ---- Screen headers (level map, settings) ---- */
.sub-topbar { gap: 12px; }
.sub-title { flex: 1; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: 0; line-height: 1; }
.stars-pill {
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--fg); color: var(--bg1); font-size: 15px; font-weight: 900;
}
.stars-pill[hidden] { display: none; }
.stars-pill .star { color: var(--star); font-size: 17px; line-height: 1; }
.stars-pill small { font-size: 14px; font-weight: 800; opacity: 0.6; }

/* ---- Level map ---- */
#level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 8px 16px 30px; }
@media (min-width: 480px) { #level-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.level-card, body.themed .level-card {
  min-height: 118px; padding: 10px 6px; border-radius: 20px; justify-content: space-between; gap: 4px;
  color: var(--fg); background: var(--surface); box-shadow: 0 2px 0 rgba(var(--fg-rgb),0.08);
}
.level-card:active { transform: scale(0.96); box-shadow: 0 2px 0 rgba(var(--fg-rgb),0.08); }
.level-card .level-num { font-family: var(--font-display); font-size: 34px; font-weight: 800; line-height: 1; color: var(--primary); }
.level-card .level-topic { font-size: 12px; font-weight: 800; opacity: 0.75; }
.level-card .level-topic.secret { letter-spacing: 1px; opacity: 0.6; } /* initials only until the picture is cleared */
.level-card .level-stars .star, body.themed .level-card .level-stars .star { font-size: 17px; color: rgba(var(--fg-rgb),0.15); text-shadow: none; }
.level-card .level-stars .star.filled, body.themed .level-card .level-stars .star.filled { color: var(--star); text-shadow: none; }
/* The next level to play */
.level-card.current, body.themed .level-card.current {
  background: color-mix(in srgb, var(--c-orange) 7%, var(--surface));
  box-shadow: inset 0 0 0 3px var(--c-orange);
}
.level-card.current .level-num { color: var(--c-orange); }
.level-play {
  display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 12px 0 8px; border-radius: 999px;
  background: var(--c-orange); color: #fff; font-size: 13px; font-weight: 900;
}
.level-play svg { width: 13px; height: 13px; fill: currentColor; }
.level-card.locked, body.themed .level-card.locked { background: var(--surface-2); color: rgba(var(--fg-rgb),0.45); box-shadow: none; justify-content: center; }
/* Extra levels: no number, a gold strip across the whole row (extraLevelBanner); locked it shows the stars it
   needs, open its name and "Oyna", and it glows until it is cleared. */
.level-map-end { grid-column: 1 / -1; text-align: center; padding: 14px 12px; border: 2px dashed var(--line-soft);
  border-radius: 16px; color: var(--fg); opacity: .75; font-weight: 700; font-size: 14px; }
.level-extra { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%;
  padding: 12px 14px; border: none; border-radius: 20px; font: inherit; text-align: left; color: var(--fg); cursor: pointer;
  background: color-mix(in srgb, var(--star) 18%, var(--surface)); box-shadow: inset 0 0 0 2px var(--star); }
.level-extra.open { background: color-mix(in srgb, var(--star) 62%, var(--surface)); }
.level-extra.fresh { animation: lxGlow 2s ease-in-out infinite; }
@keyframes lxGlow { 0%, 100% { box-shadow: inset 0 0 0 2px var(--star), 0 0 0 0 color-mix(in srgb, var(--star) 55%, transparent); }
  50% { box-shadow: inset 0 0 0 2px var(--star), 0 0 0 8px transparent; } }
.level-extra:active { transform: scale(0.98); }
.lx-medal { position: relative; width: 52px; height: 52px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--star); }
.level-extra.open .lx-medal { background: var(--surface); box-shadow: 0 0 0 3px var(--star); }
.lx-medal > svg { width: 28px; height: 28px; fill: #fff; }
.level-extra.open .lx-medal > svg { fill: var(--star); }
.lx-lock { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--star) 45%, var(--fg)); color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.lx-lock svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.lx-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lx-tag { font-size: 10.5px; font-weight: 900; letter-spacing: 0.12em; color: color-mix(in srgb, var(--star) 45%, var(--fg)); }
.lx-title { font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-title.secret { letter-spacing: 1px; }
.lx-bar { display: block; height: 7px; border-radius: 999px; background: color-mix(in srgb, var(--star) 28%, transparent); overflow: hidden; }
.lx-bar i { display: block; height: 100%; border-radius: 999px; background: var(--star); }
.lx-sub { font-size: 12px; font-weight: 800; opacity: 0.75; }
.lx-reward { align-self: flex-start; font-size: 12px; font-weight: 900; padding: 3px 9px; border-radius: 999px; background: var(--surface); }
.level-extra .level-stars { display: flex; gap: 2px; }
.level-extra .level-stars .star { font-size: 16px; color: rgba(var(--fg-rgb),0.18); }
.level-extra .level-stars .star.filled { color: var(--fg); }
.level-card.locked .level-num { color: inherit; font-size: 28px; }
.level-card .level-lock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Windows ---- */
.modal-box, body.themed .modal-box, .mp-panel, body.themed .mp-panel {
  border-radius: 24px; color: var(--fg); background: var(--panel-a, var(--surface)); box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.modal-box h3, .mp-panel h3 { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: 0; line-height: 1.15; }

/* Theme picture window: the picture on top (never cropped), stars over its edge */
#modal-theme { padding: 10px; }
.modal-box.theme-box { width: min(100%, 560px); padding: 0; overflow-x: hidden; text-align: center; }
.theme-hero { position: relative; margin-bottom: 30px; }
.theme-box .theme-hero img, .theme-box .theme-hero img { width: 100%; margin: 0; border-radius: 0; display: block; background: #fff; }
.theme-badge {
  position: absolute; left: 12px; top: 12px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(20,28,40,0.85); color: #fff; font-size: 13px; font-weight: 900; display: flex; align-items: center;
}
.theme-badge:empty { display: none; }
.theme-stars {
  position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%);
  height: 48px; padding: 0 14px; border-radius: 999px; background: var(--panel-a, var(--surface));
  box-shadow: 0 4px 14px rgba(0,0,0,0.18); display: flex; align-items: center; gap: 2px;
}
.theme-stars span { font-size: 28px; line-height: 1; color: rgba(var(--fg-rgb),0.15); }
.theme-stars span:nth-child(2) { font-size: 32px; }
.theme-stars span.filled { color: var(--star); }
.theme-body { padding: 4px 18px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.theme-body h3 { margin: 0; font-size: 28px; }
.theme-body p { margin: 0; font-size: 14px; font-weight: 700; opacity: 0.8; }
.theme-actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 0; }

/* ---- Game screen ---- */
#title, body.themed #title { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: 0; text-shadow: none; }
#topbar .value, .mp-hud-cell .value { font-family: var(--font-display); font-weight: 800; line-height: 1.05; }
#topbar .label, .mp-hud-cell .label { font-weight: 800; }
#refresh-btn { width: 42px; height: 42px; background: var(--surface-2); }
#refresh-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fp-len, body.themed .fp-len { background: var(--surface); border-radius: 12px; }
.fp-len.done, body.themed .fp-len.done { background: color-mix(in srgb, var(--c-green) 16%, var(--surface)); }
#board, body.themed #board { background: var(--surface-2); box-shadow: none; border-radius: 26px; }
body.anim-neon #board { background: rgba(0,0,0,0.3); box-shadow: inset 0 2px 14px rgba(0,0,0,0.5); }
.tile { font-family: var(--font-display); border-radius: 18px; line-height: 1; padding-top: 0.08em; }
.tile .pts { font-family: var(--font-ui); font-weight: 900; }
#current-word { font-family: var(--font-display); letter-spacing: 2px; border-radius: 999px; padding: 2px 22px 0; }
.found-chip, body.themed .found-chip { background: var(--surface); border-radius: 999px; padding: 4px 12px; font-weight: 800; text-shadow: none; }
body.anim-neon .found-chip { background: rgba(255,255,255,0.06); }

/* Level HUD */
.lvl-hud-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lvl-hud-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.lvl-hud-title small { font-size: 12px; font-weight: 800; opacity: 0.65; }
.lvl-hud-title span { font-family: var(--font-display); font-size: 21px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvl-hud-right { display: flex; align-items: center; gap: 8px; }
.lvl-hud-score {
  height: 42px; padding: 0 16px; border-radius: 999px; background: var(--fg); color: var(--bg1);
  display: flex; align-items: center; gap: 6px;
}
.lvl-hud-score small { font-size: 11px; font-weight: 900; opacity: 0.75; }
.lvl-hud-score span { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1; padding-top: 2px; }

.goal-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.goal {
  --goal-c: var(--primary);
  position: relative; min-width: 0; height: 80px; padding: 7px 8px 9px; border-radius: 16px;
  border: 2px solid transparent; background: color-mix(in srgb, var(--goal-c) 13%, var(--surface));
  color: var(--fg); font: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.3s, border-color 0.3s;
}
.goal-key { --goal-c: var(--primary); }
.goal-len { --goal-c: var(--c-teal); }
.goal-score { --goal-c: var(--c-green); }
.goal-combo { --goal-c: var(--c-orange); }
/* Needed to pass the level: framed in its color */
.goal.required { border-color: var(--goal-c); background: var(--surface); }
.goal.required.met { background: color-mix(in srgb, var(--goal-c) 12%, var(--surface)); }
.goal-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 22px; }
.goal-label { font-size: 10px; font-weight: 900; letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal-label.combo-chip { height: 18px; padding: 0 5px; border-radius: 5px; background: var(--combo-b); color: var(--combo-text); display: flex; align-items: center; letter-spacing: 0.5px; }
.goal-val { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1; white-space: nowrap; }
.goal-val small { font-size: 12px; opacity: 0.6; }
.goal-bar { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--goal-c) 20%, transparent); overflow: hidden; }
.goal-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--goal-c); transition: width 0.5s cubic-bezier(.2,.8,.2,1); }
/* Corner badge: lock = needed to pass (check once met), star = one extra star (filled once earned) */
.goal-badge {
  width: 22px; height: 22px; border-radius: 50%; flex: none; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--goal-c); color: var(--goal-c);
}
.goal-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.goal.required .goal-badge { background: var(--goal-c); color: #fff; border: none; }
.goal.required.met .goal-badge { background: var(--good); }
.goal:not(.required).met .goal-badge { background: var(--star); border-color: var(--star); color: #fff; animation: popin 0.4s ease-out; }
.goal:not(.required).met .goal-badge svg { fill: currentColor; stroke: none; width: 13px; height: 13px; }
.key-thumb {
  width: 30px; height: 22px; border-radius: 6px; flex: none;
  background: rgba(var(--fg-rgb),0.12) center / cover no-repeat;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
/* Level passed: the picture card turns green (it also opens the theme window) */
.goal.goal-key.ready { border-color: var(--good); background: var(--good); color: #fff; animation: popin 0.4s ease-out; }
.goal.goal-key.ready .goal-badge { background: #fff; color: var(--good); }
.goal.goal-key.ready .goal-bar { background: rgba(255,255,255,0.35); }
.goal.goal-key.ready .goal-bar i { background: #fff; }
body.anim-neon .goal.goal-key.ready { color: #06281a; }
/* Short explanation under a goal card (tap, or hover with a mouse) */
.goal-tip {
  position: fixed; z-index: 3000; width: 190px; padding: 9px 11px; border-radius: 11px;
  background: #1f2b3a; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25); pointer-events: none;
  opacity: 0; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s;
}
.goal-tip.show { opacity: 1; transform: none; }
.goal-tip b { display: block; font-size: 13px; margin-bottom: 2px; }
.goal-tip::before { content: ''; position: absolute; top: -5px; left: var(--arrow-x, 50%); width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); }

/* ---- Settings ---- */
.settings-row { background: var(--surface); border-radius: 16px; }
.theme-opt { border-radius: 999px; font-weight: 800; }
.theme-opt.active, body.themed .theme-opt.active { color: var(--on-primary); background: var(--primary); border-color: var(--primary); box-shadow: none; }

@media (orientation: landscape) and (max-height: 600px), (orientation: landscape) and (hover: hover) and (pointer: fine) and (min-width: 900px) {
  #menu-title .menu-logo { width: min(36vw, 220px); }
  #menu-sub { margin: 6px 0 0; }
}
@media (max-width: 360px) {
  .goal { height: 74px; padding: 6px 6px 8px; }
  .goal-val { font-size: 18px; }
  .menu-btn.mode { height: 58px; font-size: 19px; }
}

/* ---- Short portrait screens (iPhone SE, small Androids with the browser bars): the menu fits without scrolling.
   Sizes follow the screen height (dvh) and stop at their normal values on taller screens. ---- */
@media (orientation: portrait) and (max-height: 720px) {
  #app-root #screen-menu { padding-top: 58px; padding-bottom: 10px; }
  #menu-center { gap: clamp(7px, 1.5dvh, 12px); }
  #menu-title .menu-logo { width: min(72vw, 270px, 36dvh); }
  #menu-title .menu-arena { margin-top: 2px; font-size: 14px; }
  #menu-title, body.themed #menu-title { gap: 4px; margin-bottom: 0; }
  .menu-btn.mode { height: clamp(50px, 10dvh, 64px); }
  .menu-btn.mode .mode-ic { width: clamp(38px, 7.6dvh, 48px); height: clamp(38px, 7.6dvh, 48px); }
  .menu-row .menu-btn { height: clamp(44px, 8.4dvh, 52px); }
  #daily-card { padding-top: 8px; padding-bottom: 8px; }
}
@media (orientation: portrait) and (max-height: 520px) {
  #app-root #screen-menu { padding-top: 60px; }
  #daily-card #dc-sub { display: none; } /* the card keeps its title and its line (team score / result) */
  #menu-title .menu-logo { width: min(72vw, 270px, 30dvh); }
  .menu-btn.mode { height: 46px; font-size: 18px; }
  .menu-btn.mode .mode-ic { width: 34px; height: 34px; }
  .menu-row .menu-btn { height: 42px; }
  .dc-title { font-size: 17px; }
  .dc-main small { font-size: 11.5px; }
}

/* ---- Short portrait screens: the level's theme window and the level complete window fit without scrolling ---- */
@media (orientation: portrait) and (max-height: 720px) {
  /* The picture keeps its proportions (the reveal overlay follows it) and gives up height instead of width */
  .theme-hero { background: var(--surface-2); margin-bottom: 26px; }
  .theme-box .theme-hero img { width: auto; max-width: 100%; max-height: 36dvh; margin: 0 auto; }
  .theme-stars { height: 42px; bottom: -21px; }
  .theme-stars span { font-size: 24px; }
  .theme-stars span:nth-child(2) { font-size: 28px; }
  .theme-body { padding: 2px 16px 14px; gap: 8px; }
  .theme-body h3 { font-size: 24px; }
  .theme-body p { font-size: 13px; line-height: 1.35; }

  .modal-box.lc-box { gap: clamp(6px, 1.3dvh, 12px); padding-top: 14px; padding-bottom: 14px; }
  .lc-box h3 { font-size: 26px; }
  #modal-complete .complete-stars span { font-size: 40px; }
  #modal-complete .complete-stars span:nth-child(2) { font-size: 52px; margin-bottom: 6px; }
  .lc-box .fp-done-stats div { padding: 7px 9px; }
  .lc-box .fp-done-stats b { font-size: 20px; }
  .lc-box .complete-conds { font-size: 12.5px; }
  .lc-box .complete-conds li { padding: 1px 2px; }
  .lc-actions .menu-btn.cta, .lc-actions .modal-close-btn { height: 46px; }
}
@media (orientation: portrait) and (max-height: 520px) {
  #modal-complete .complete-stars span { font-size: 32px; }
  #modal-complete .complete-stars span:nth-child(2) { font-size: 42px; margin-bottom: 4px; }
  .lc-box h3 { font-size: 22px; }
  .lc-box .fp-done-facts { padding: 6px 12px; }
  .lc-box .fp-done-stats small { font-size: 10px; }
}
/* Shared hint pool: a free play board waits on the menu ("Devam et · 3/6" on Serbest Mod, fpUpdateMenuResume) */
/* The free play ladder: the waiting board's step under "Serbest Mod" ("Tahta 12"); without one the pill says the step */
.menu-btn.mode .mode-label .mode-step { display: block; margin-top: 4px; font-family: var(--font-ui); font-size: 13px; font-weight: 800; opacity: 0.9; }
.menu-btn.mode .mode-resume {
  flex: none; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.22);
  font-family: var(--font-ui); font-size: 13px; font-weight: 800; white-space: nowrap;
}

/* Android app (Nov 2026): the app draws into the camera cutout and tells the page its size (MainActivity,
   --kk-cutout-*; unset in browsers = 0). The body keeps its content clear of it, so the band shows the page's colour. */
html, body { box-sizing: border-box; }
body { padding-top: var(--kk-cutout-top, 0px); padding-left: var(--kk-cutout-left, 0px); padding-right: var(--kk-cutout-right, 0px); }
/* Level boards use the band (js/cutout.js): the top row goes up into it; a tap on the title shows it in a tip. */
body.cutout-free { padding-top: 0; }
#hud-level .lvl-hud-title { cursor: pointer; }
/* A tip moved down below the ad banner (showTipFor, Tahtalı Yol's top bar): no arrow pointing at the banner */
.goal-tip.detached::before { display: none; }
.goal-tip.above::before { top: auto; bottom: -5px; }
