/* ================= Shkronjat (lokale, punojnë edhe pa internet në APK) ================= */
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap;
  src: url(../fonts/unbounded-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap;
  src: url(../fonts/unbounded-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap;
  src: url(../fonts/manrope-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap;
  src: url(../fonts/manrope-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap;
  src: url(../fonts/manrope-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap;
  src: url(../fonts/manrope-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Silkscreen'; font-weight: 400; font-display: swap;
  src: url(../fonts/silkscreen-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Silkscreen'; font-weight: 400; font-display: swap;
  src: url(../fonts/silkscreen-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ================= Tokenat ================= */
:root {
  --ink: #0B1026;        /* sfondi */
  --deck: #151B3D;       /* panelet */
  --deck-2: #1D2452;     /* panelet e ngritura */
  --rail: #2A3268;       /* vijat */
  --chalk: #EEF1FF;      /* teksti */
  --haze: #8D95C9;       /* teksti dytësor */
  --gold: #FFC24B;       /* rekordet, yjet */
  --accent: #6C8CFF;     /* veprimi kryesor */
  --danger: #FF5A6E;
  --ok: #53E08A;
  --on-accent: #0B1026;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --num: 'Unbounded', system-ui, sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --glow: 0 0 0 1px rgba(255,255,255,.04), 0 12px 40px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}
[data-skin="classic"] {
  --ink: #0F380F;
  --deck: #306230;
  --deck-2: #306230;
  --rail: #8BAC0F;
  --chalk: #9BBC0F;
  --haze: #8BAC0F;
  --gold: #9BBC0F;
  --accent: #9BBC0F;
  --danger: #9BBC0F;
  --ok: #9BBC0F;
  --on-accent: #0F380F;
  --display: 'Silkscreen', monospace;
  --num: 'Silkscreen', monospace;
  --r: 0px;
  --r-sm: 0px;
  --glow: 4px 4px 0 #0A260A;
}

/* ================= Baza ================= */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink);
  color: var(--chalk);
  font: 500 15px/1.45 var(--body);
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}
[data-skin="modern"] body {
  background:
    radial-gradient(60vmax 40vmax at 50% -10%, rgba(108,140,255,.22), transparent 70%),
    radial-gradient(50vmax 40vmax at 110% 110%, rgba(178,107,255,.12), transparent 70%),
    var(--ink);
}
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

#app { height: 100%; }
.screen {
  display: none;
  flex-direction: column;
  height: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
}
.screen.active { display: flex; animation: screen-in .22s ease-out; }
#scr-game { max-width: 900px; }
@keyframes screen-in { from { opacity: 0; transform: translateY(6px); } }

.bar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}
.bar h2 { margin: 0; text-align: center; font: 700 18px/1 var(--display); letter-spacing: .02em; }
#scr-menu .bar { grid-template-columns: 1fr 44px; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--haze);
}
.icon-btn:hover { color: var(--chalk); background: var(--deck); }
#btn-settings svg { fill: currentColor; stroke: none; }
[data-skin="classic"] .icon-btn { border-radius: 0; }

.chip {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 6px;
  border: 1px solid var(--rail); border-radius: 999px;
  background: var(--deck);
  font-weight: 700; font-size: 14px;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip.static { justify-self: end; padding: 0 10px; color: var(--gold); font-family: var(--num); font-size: 12px; }
.chip .glyph { width: 24px; height: 24px; }
[data-skin="classic"] .chip { border-radius: 0; border-width: 2px; }

.glyph { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; }
.glyph svg { width: 100%; height: 100%; stroke: none; }
.glyph.sm { width: 22px; height: 22px; }

/* ================= Menuja ================= */
.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 180px; }
#logo { width: min(100%, 440px); display: block; }
.tagline { margin: 14px 0 0; color: var(--haze); font-size: 14px; letter-spacing: .04em; }
[data-skin="classic"] .tagline { font-family: var(--display); font-size: 12px; text-transform: uppercase; }

.modes { display: grid; gap: 12px; }
.mode {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 16px 18px;
  text-align: left;
  border: 1px solid var(--rail); border-radius: var(--r);
  background: linear-gradient(180deg, var(--deck-2), var(--deck));
  box-shadow: var(--glow);
  transition: transform .12s, border-color .12s;
}
.mode:hover { border-color: var(--accent); }
.mode:active { transform: scale(.985); }
.mode-text { display: flex; flex-direction: column; min-width: 0; }
.mode-name { font: 700 20px/1.2 var(--display); }
.mode-meta { color: var(--haze); font-size: 13px; margin-top: 3px; }
.mode-meta b { color: var(--gold); font-weight: 700; }
[data-skin="classic"] .mode { background: var(--deck); border-width: 2px; border-color: var(--ink); }

.menu-links { display: flex; justify-content: center; gap: 8px; margin: 18px 0 6px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 0; border-radius: 999px;
  background: transparent;
  color: var(--haze); font-weight: 700;
}
.link-btn:hover { color: var(--chalk); background: var(--deck); }

/* ================= Butonat ================= */
.btn {
  display: block; width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--rail); border-radius: var(--r-sm);
  background: var(--deck-2);
  font-weight: 700; font-size: 16px;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #2A1B00; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--haze); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:not(:disabled):active { transform: translateY(1px); }
[data-skin="classic"] .btn { border-width: 2px; font-family: var(--display); font-size: 13px; text-transform: uppercase; }
[data-skin="classic"] .btn.gold { color: var(--ink); }

.seg {
  display: flex; padding: 4px; gap: 4px;
  border-radius: 999px; background: var(--deck);
  border: 1px solid var(--rail);
}
.seg button {
  flex: 1; padding: 9px 12px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--haze); font-weight: 700;
}
.seg button.on { background: var(--chalk); color: var(--ink); }
.seg.small button { padding: 7px 12px; font-size: 13px; }
[data-skin="classic"] .seg, [data-skin="classic"] .seg button { border-radius: 0; }

.chips { display: flex; gap: 6px; margin: 12px 0 4px; flex-wrap: wrap; }
.chips button {
  padding: 6px 12px;
  border: 1px solid var(--rail); border-radius: 999px;
  background: transparent; color: var(--haze);
  font-size: 13px; font-weight: 700;
}
.chips button.on { border-color: var(--gold); color: var(--gold); }
[data-skin="classic"] .chips button { border-radius: 0; }

/* ================= Raundet ================= */
.worlds {
  display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  margin: 8px -16px 0; padding: 4px 16px 8px;
  scroll-snap-type: x proximity;
}
.worlds::-webkit-scrollbar { display: none; }
.world-tab {
  flex: none; scroll-snap-align: center;
  min-width: 52px; padding: 8px 10px;
  border: 1px solid var(--rail); border-radius: var(--r-sm);
  background: var(--deck);
  font: 700 14px/1 var(--num);
  color: var(--haze);
}
.world-tab.on { color: var(--ink); background: var(--chalk); border-color: var(--chalk); }
.world-tab.locked { opacity: .45; }
.world-tab.extreme { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.world-tab.extreme.on { background: var(--danger); color: #fff; border-color: var(--danger); }

.world-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 10px; }
.world-head h3 { margin: 0; font: 700 22px/1.1 var(--display); }
.world-head .sub { color: var(--haze); font-size: 13px; text-align: right; }
.world-head.extreme h3 { color: var(--danger); }

.round-grid {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px;
  align-content: start;
  overflow-y: auto;
  padding-bottom: 12px;
}
.rt {
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid var(--rail); border-radius: 8px;
  background: var(--deck);
  font: 700 11px/1 var(--num);
  position: relative;
}
.rt .st { font-size: 7px; letter-spacing: -1px; color: var(--gold); margin-top: 3px; height: 7px; }
.rt.done { background: var(--deck-2); }
.rt.current { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 16px -2px var(--gold); }
.rt.locked { opacity: .35; }
.rt.boss { border-style: dashed; }
.rt.extreme { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.rt.extreme.done { background: color-mix(in srgb, var(--danger) 18%, var(--deck)); }
[data-skin="classic"] .rt { border-radius: 0; }

/* Fleta e detajeve të raundit */
.round-sheet .goal { font: 700 18px/1.35 var(--display); margin: 2px 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  padding: 4px 9px; border-radius: 999px;
  background: var(--deck-2); border: 1px solid var(--rail);
  font-size: 12px; font-weight: 700; color: var(--haze);
}
.tag.hot { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
[data-skin="classic"] .tag { border-radius: 0; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 16px; font-size: 14px; }
.kv dt { color: var(--haze); }
.kv dd { margin: 0; text-align: right; font-weight: 700; }
.kv dd.gold { color: var(--gold); }

/* ================= Loja ================= */
.game-bar {
  display: grid; grid-template-columns: 44px 1fr auto;
  align-items: center; gap: 8px;
  min-height: 48px;
}
.game-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
#g-mode { font: 700 13px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#g-goal { color: var(--haze); font-size: 12px; font-weight: 700; }
#g-goal.warn { color: var(--danger); }
.g-score { font: 700 22px/1 var(--num); font-variant-numeric: tabular-nums; padding-right: 4px; }

.play {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: minmax(58px, 110px) auto minmax(58px, 110px);
  justify-content: center;
  align-items: start;
  gap: 10px;
  padding-top: 6px;
}
.side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.panel {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 6px;
  border-radius: var(--r-sm);
  background: var(--deck);
  border: 1px solid var(--rail);
}
.label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--haze); }
[data-skin="classic"] .label { font-family: var(--display); letter-spacing: .04em; }
.mini { display: block; width: 100%; }
.mini.hold { aspect-ratio: 4 / 3; }
.mini.next { aspect-ratio: 4 / 9; }
.panel.off { opacity: .4; }

.stats { margin: 0; display: grid; gap: 8px; }
.stats div { padding: 0 4px; }
.stats dt { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--haze); }
.stats dd { margin: 0; font: 700 18px/1.2 var(--num); font-variant-numeric: tabular-nums; }
.record { font-size: 11px; line-height: 1.35; color: var(--haze); padding: 0 4px; overflow-wrap: anywhere; }
.record b { display: block; color: var(--gold); font: 700 14px/1.3 var(--num); }

.board-wrap {
  position: relative;
  padding: 4px;
  border-radius: calc(var(--r) + 2px);
  background: linear-gradient(180deg, var(--rail), var(--deck));
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.05) inset;
  touch-action: none;
}
#cv-board { display: block; border-radius: var(--r-sm); }
[data-skin="classic"] .board-wrap { padding: 6px; background: #306230; box-shadow: 6px 6px 0 #0A260A; }
.board-wrap.shake { animation: shake .28s; }
@keyframes shake {
  20% { transform: translate(-3px, 2px); } 40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, 1px); } 80% { transform: translate(1px, -1px); }
}
.board-wrap.rise { animation: rise .2s; }
@keyframes rise { 30% { transform: translateY(-3px); } }

.pops { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.pop {
  grid-area: 1 / 1;
  font: 700 22px/1.1 var(--display);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.7);
  animation: pop 1s ease-out forwards;
}
.pop small { display: block; font-size: 13px; color: var(--gold); }
.pop.big { font-size: 30px; color: var(--gold); }
[data-skin="classic"] .pop { color: var(--ink); text-shadow: none; background: var(--chalk); padding: 4px 10px; }
@keyframes pop {
  0% { opacity: 0; transform: scale(.7); }
  15% { opacity: 1; transform: scale(1.06); }
  70% { opacity: 1; transform: scale(1) translateY(-10px); }
  100% { opacity: 0; transform: translateY(-30px); }
}

/* Butonat e prekjes */
.pad {
  display: none;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
}
.pad-group { display: flex; gap: 6px; align-items: flex-end; }
.pad button {
  --b: clamp(44px, calc((100vw - 92px) / 6), 60px);
  width: var(--b); height: var(--b);
  display: grid; place-items: center;
  border: 1px solid var(--rail); border-radius: 16px;
  background: var(--deck);
  color: var(--chalk);
  touch-action: none;
}
.pad button.big { width: calc(var(--b) + 6px); height: calc(var(--b) + 6px); border-radius: 50%; background: var(--deck-2); }
.pad button.txt { font: 700 11px/1 var(--display); letter-spacing: .04em; }
.pad button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pad button svg { width: 26px; height: 26px; }
[data-skin="classic"] .pad button { border-radius: 0; border-width: 2px; }
@media (pointer: coarse) { .pad { display: flex; } }

/* ================= Mbivendosjet dhe fletët ================= */
.overlay {
  position: fixed; inset: 0; z-index: 10;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(5, 8, 22, .72);
  backdrop-filter: blur(6px);
  animation: fade .18s;
}
[data-skin="classic"] .overlay { background: rgba(15, 56, 15, .85); backdrop-filter: none; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: min(100%, 380px);
  display: grid; gap: 10px;
  padding: 22px;
  border-radius: calc(var(--r) + 6px);
  background: var(--deck);
  border: 1px solid var(--rail);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.sheet h3 { margin: 0 0 6px; font: 700 22px/1.2 var(--display); text-align: center; }
[data-skin="classic"] .sheet { border: 3px solid var(--chalk); box-shadow: 6px 6px 0 #0A260A; }

.result { text-align: center; }
.eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--haze); }
.stars { display: flex; justify-content: center; gap: 8px; min-height: 0; }
.stars:empty { display: none; }
.star { width: 38px; height: 38px; color: var(--rail); }
.star svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.star.on { color: var(--gold); animation: star-in .4s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes star-in { from { transform: scale(0) rotate(-40deg); } }
.r-score { display: flex; flex-direction: column; align-items: center; margin: 4px 0; }
#r-score { font: 700 40px/1 var(--num); font-variant-numeric: tabular-nums; }
.r-score small { color: var(--haze); font-size: 12px; margin-top: 4px; }
.r-stats { display: flex; justify-content: center; gap: 20px; margin: 0 0 4px; }
.r-stats dt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--haze); font-weight: 700; }
.r-stats dd { margin: 0; font: 700 15px/1.3 var(--num); }
.r-note { margin: 0 0 6px; min-height: 1.4em; font-weight: 700; color: var(--haze); font-size: 14px; }
.r-note .gold { color: var(--gold); }
.r-actions { display: grid; gap: 8px; }

dialog {
  padding: 0; border: 0; background: transparent; color: inherit;
  max-width: calc(100% - 32px);
}
dialog::backdrop { background: rgba(5, 8, 22, .7); backdrop-filter: blur(4px); }
dialog .sheet { width: min(100vw - 32px, 380px); }
.settings { gap: 4px; }
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid var(--rail);
  font-weight: 700;
}
.switch {
  appearance: none; -webkit-appearance: none;
  width: 46px; height: 28px; margin: 0;
  border-radius: 999px; background: var(--rail);
  position: relative; cursor: pointer; transition: background .15s;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--chalk); transition: transform .15s;
}
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); background: var(--on-accent); }
[data-skin="classic"] .switch, [data-skin="classic"] .switch::after { border-radius: 0; }
.help { margin: 10px 0; color: var(--haze); font-size: 13px; }
.help summary { font-weight: 700; color: var(--chalk); cursor: pointer; padding: 6px 0; }
.help p { margin: 6px 0; }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--chalk); color: var(--ink);
  font-weight: 700; font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 30;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[data-skin="classic"] .toast { border-radius: 0; }

/* ================= Rekordet ================= */
.lb { flex: 1; min-height: 0; overflow-y: auto; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.holder {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px;
  padding: 18px;
  border-radius: var(--r);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 22%, var(--deck)), var(--deck) 70%);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  margin-bottom: 6px;
}
.holder .glyph { width: 52px; height: 52px; }
.holder .eyebrow { color: var(--gold); display: flex; align-items: center; gap: 6px; }
.holder .eyebrow svg { width: 16px; height: 16px; fill: var(--gold); stroke: none; }
.holder .name { font: 700 20px/1.2 var(--display); overflow-wrap: anywhere; }
.holder .val { font: 700 26px/1.1 var(--num); color: var(--gold); font-variant-numeric: tabular-nums; }
.holder .sub { color: var(--haze); font-size: 12px; }
[data-skin="classic"] .holder { background: var(--deck); border: 3px solid var(--chalk); }
.lrow {
  display: grid; grid-template-columns: 34px 28px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--deck);
}
.lrow.me { outline: 1px solid var(--accent); }
.lrow .rk { font: 700 13px/1 var(--num); color: var(--haze); text-align: center; }
.lrow .glyph { width: 26px; height: 26px; }
.lrow .nm { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .nm small { display: block; color: var(--haze); font-weight: 500; font-size: 11px; }
.lrow .sc { font: 700 15px/1 var(--num); font-variant-numeric: tabular-nums; text-align: right; }
.lb-me { padding: 10px 0 0; color: var(--haze); font-size: 13px; text-align: center; }
.lb-me b { color: var(--chalk); }
.empty { text-align: center; color: var(--haze); padding: 36px 12px; }
.empty .btn { margin-top: 14px; }

/* ================= Profili ================= */
#profile { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0 12px; }
.auth { display: grid; gap: 12px; margin-top: 8px; }
.auth p.lead { margin: 0 0 4px; color: var(--haze); text-align: center; }
.field { display: grid; gap: 6px; }
.field span { font-size: 12px; font-weight: 700; color: var(--haze); letter-spacing: .06em; text-transform: uppercase; }
.field input {
  width: 100%; padding: 14px;
  border: 1px solid var(--rail); border-radius: var(--r-sm);
  background: var(--ink); color: var(--chalk);
  font-size: 16px;
  user-select: text; -webkit-user-select: text;
}
.field input:focus { outline: none; border-color: var(--accent); }
.field small { color: var(--haze); font-size: 12px; }
.error { margin: 0; color: var(--danger); font-weight: 700; font-size: 14px; min-height: 1.2em; }
[data-skin="classic"] .field input { border-radius: 0; border-width: 2px; }

.avatar-pick { display: flex; gap: 6px; justify-content: space-between; }
.avatar-pick button {
  flex: 1; aspect-ratio: 1; max-width: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--rail); border-radius: var(--r-sm);
  background: var(--deck); padding: 8px;
}
.avatar-pick button.on { border-color: var(--chalk); background: var(--deck-2); box-shadow: 0 0 0 1px var(--chalk); }
.avatar-pick .glyph { width: 100%; height: 100%; }

.p-head { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.p-avatar {
  width: 72px; height: 72px; flex: none;
  display: grid; place-items: center; padding: 12px;
  border-radius: 20px; background: var(--deck-2); border: 1px solid var(--rail);
}
.p-avatar .glyph { width: 100%; height: 100%; }
.p-name { font: 700 24px/1.15 var(--display); overflow-wrap: anywhere; }
.p-since { color: var(--haze); font-size: 13px; }
[data-skin="classic"] .p-avatar { border-radius: 0; }

.p-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 18px; }
.p-stat { padding: 14px; border-radius: var(--r-sm); background: var(--deck); border: 1px solid var(--rail); }
.p-stat dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--haze); }
.p-stat dd { margin: 4px 0 0; font: 700 20px/1.2 var(--num); font-variant-numeric: tabular-nums; }
.p-stat dd small { font: 500 12px var(--body); color: var(--haze); }
.p-stat.wide { grid-column: 1 / -1; }
.p-stat.gold dd { color: var(--gold); }
.bar-track { height: 8px; border-radius: 999px; background: var(--ink); overflow: hidden; margin-top: 10px; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: inherit; }
[data-skin="classic"] .bar-track, [data-skin="classic"] .bar-fill { border-radius: 0; background: var(--chalk); }
[data-skin="classic"] .bar-track { background: var(--ink); }

.p-section { margin: 20px 0 8px; font: 700 14px/1 var(--display); color: var(--haze); letter-spacing: .04em; }
.games { display: grid; gap: 6px; }
.grow {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
  padding: 10px 12px; border-radius: var(--r-sm); background: var(--deck);
}
.grow .t { font-weight: 700; }
.grow .s { font: 700 15px/1.3 var(--num); text-align: right; }
.grow .d { color: var(--haze); font-size: 12px; grid-column: 1 / -1; }
.p-actions { display: grid; gap: 8px; margin-top: 18px; }
.inline-form { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-sm); background: var(--deck); margin-top: 8px; }

/* ================= Ekranet e mëdha ================= */
@media (min-width: 720px) {
  .play { grid-template-columns: 130px auto 130px; gap: 18px; }
  .stats dd { font-size: 22px; }
  .record b { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ================= Loja në ekrane të ngushta e të larta ================= */
.play.compact {
  grid-template-columns: 64px minmax(0, 1fr) 128px;
  grid-template-rows: auto 1fr;
  grid-template-areas: "hold stats next" "board board board";
  align-items: stretch;
  gap: 8px;
}
.play.compact .side { display: contents; }
.play.compact .panel-hold { grid-area: hold; }
.play.compact .panel-next { grid-area: next; }
.play.compact .stats { grid-area: stats; grid-auto-flow: column; align-content: center; justify-content: space-evenly; gap: 4px; }
.play.compact .stats div { text-align: center; }
.play.compact .stats dd { font-size: 14px; }
.play.compact .stats dt { font-size: 9px; letter-spacing: .06em; }
.play.compact .record { display: none; }
.play.compact .board-wrap { grid-area: board; justify-self: center; align-self: start; }
.play.compact .mini.hold { aspect-ratio: auto; height: 44px; }
.play.compact .mini.next { aspect-ratio: auto; height: 44px; }

.set-row.link {
  width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--rail);
  background: none; color: inherit; text-decoration: none; text-align: left; font-weight: 700;
}
.set-row.link span { color: var(--haze); font-size: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--haze); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.check a { color: var(--chalk); }
.danger-zone { margin-top: 24px; padding: 16px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); display: grid; gap: 10px; }
.danger-zone h4 { margin: 0; color: var(--danger); font: 700 14px/1.2 var(--display); }
.danger-zone p { margin: 0; color: var(--haze); font-size: 13px; }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #fff; }
[data-skin="classic"] .btn.danger.solid { color: var(--ink); }
textarea.export { width: 100%; height: 220px; background: var(--ink); color: var(--chalk); border: 1px solid var(--rail); border-radius: var(--r-sm); font: 12px/1.4 ui-monospace, monospace; padding: 10px; user-select: text; -webkit-user-select: text; }

/* ================= Faqet e dokumenteve (privatësia, kushtet, fshirja) ================= */
body.doc-page { overflow: auto; user-select: text; -webkit-user-select: text; }
.doc { max-width: 720px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px 64px; line-height: 1.6; }
.doc > a.back { display: inline-flex; align-items: center; gap: 6px; color: var(--haze); text-decoration: none; font-weight: 700; margin-bottom: 18px; }
.doc > a.back svg { width: 18px; height: 18px; }
.doc h1 { font: 700 clamp(24px, 6vw, 34px)/1.15 var(--display); margin: 0 0 6px; }
.doc .updated { color: var(--haze); font-size: 13px; margin: 0 0 28px; }
.doc h2 { font: 700 17px/1.3 var(--display); margin: 32px 0 8px; }
.doc p, .doc li { color: color-mix(in srgb, var(--chalk) 88%, var(--haze)); }
.doc ul { padding-left: 20px; }
.doc a { color: var(--gold); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rail); }
.doc th { color: var(--haze); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.doc .fill { background: color-mix(in srgb, var(--gold) 25%, transparent); color: var(--chalk); padding: 0 4px; border-radius: 4px; }
.doc .card { padding: 20px; border-radius: var(--r); background: var(--deck); border: 1px solid var(--rail); display: grid; gap: 12px; margin-top: 16px; }

/* ================= Shiriti i scroll-it ================= */
* { scrollbar-width: thin; scrollbar-color: var(--rail) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rail); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--haze); }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
#profile, .lb { margin-right: -12px; padding-right: 12px; scrollbar-gutter: stable; }

/* =====================================================================
   PARAQITJA: celular vertikal (bazë), desktop dhe celular horizontal
   ===================================================================== */

/* --- bazë (celular vertikal) --- */
.menu-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.menu-side { display: flex; flex-direction: column; }
.rounds-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.world-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.world-tab b { font-weight: 700; }
.world-tab .wn, .world-tab .wp { display: none; }
.lb-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lb-side { display: contents; }
.lb { order: 1; }
.lb-me { order: 2; }

/* --- desktop dhe tablet horizontal: gjithçka në një ekran, pa scroll --- */
@media (min-width: 900px) and (min-height: 520px) {
  .screen { max-width: 1140px; padding: 20px 40px 24px; }
  .bar { min-height: 56px; margin-bottom: 8px; }
  .bar h2 { font-size: 22px; }

  /* Menuja: logoja majtas, mënyrat djathtas */
  .menu-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
  .hero { min-height: 0; align-items: flex-start; }
  #logo { width: 100%; max-width: 560px; }
  .tagline { font-size: 16px; margin-top: 20px; }
  .menu-side { gap: 8px; }
  .mode { padding: 22px 24px; }
  .mode-name { font-size: 24px; }
  .menu-links { justify-content: flex-start; margin-top: 12px; }

  /* Raundet: lista e botëve majtas, rrjeta 10×10 djathtas */
  .rounds-body { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
  .worlds { flex-direction: column; margin: 0; padding: 0 6px 0 0; overflow-y: auto; gap: 6px; scroll-snap-type: none; }
  .world-tab {
    display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px;
    padding: 10px 12px; text-align: left; font-size: 13px;
  }
  .world-tab .wn { display: block; font-family: var(--body); font-weight: 700; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .world-tab .wp { display: block; font-family: var(--body); font-size: 11px; opacity: .75; }
  .world-head { margin: 0 0 14px; }
  .world-head h3 { font-size: 26px; }

  /* Rekordet: filtrat majtas, lista djathtas */
  .lb-body { display: grid; grid-template-columns: 300px 1fr; gap: 28px; }
  .lb-side { display: flex; flex-direction: column; gap: 12px; }
  .lb-side .chips { margin: 0; }
  .lb-me {
    order: 0; text-align: left; padding: 16px; margin-top: auto;
    border-radius: var(--r-sm); background: var(--deck); border: 1px solid var(--rail);
  }
  .lb { margin-top: 0; min-height: 0; }

  /* Profili: statistikat majtas, avatari/lojërat/veprimet djathtas */
  #profile { overflow: hidden; padding: 0; margin: 0; }
  .p-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; height: 100%; }
  .p-left, .p-right { min-height: 0; display: flex; flex-direction: column; }
  .p-head { margin-top: 0; }
  .p-grid { margin-bottom: 0; }
  .p-right .p-section:first-child { margin-top: 0; }
  .p-right .games { flex: 1; min-height: 0; overflow-y: auto; align-content: start; padding-right: 6px; }
  .grow { padding: 8px 12px; }
  .p-actions { grid-template-columns: 1fr 1fr 1fr; margin-top: 14px; }
  .p-actions #pf-pass-form:empty { display: none; }
  .p-actions #pf-pass-form { grid-column: 1 / -1; }
  .p-actions .btn { padding: 11px 10px; font-size: 14px; }
  .danger-zone { grid-template-columns: 1fr auto; align-items: center; margin-top: 12px; padding: 12px 16px; }
  .danger-zone h4 { grid-column: 1; }
  .danger-zone p { grid-column: 1; }
  .danger-zone .btn { grid-column: 2; grid-row: 1 / 3; width: auto; }
  .auth { max-width: 440px; margin: 0 auto; width: 100%; }
  #profile:has(.auth) { overflow-y: auto; }

  /* Loja */
  .play { gap: 24px; }
}

/* --- celular horizontal --- */
@media (orientation: landscape) and (max-height: 519px) {
  .screen { max-width: none; padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .bar { min-height: 40px; }
  .icon-btn { width: 40px; height: 40px; }

  .menu-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
  .hero { min-height: 0; }
  #logo { width: 100%; }
  .tagline { margin-top: 8px; font-size: 12px; }
  .modes { gap: 8px; }
  .mode { padding: 10px 14px; gap: 12px; }
  .mode .glyph { width: 30px; height: 30px; }
  .mode-name { font-size: 16px; }
  .mode-meta { font-size: 12px; }
  .menu-links { margin: 8px 0 0; }

  .rounds-body { display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
  .worlds { flex-direction: column; margin: 0; padding: 0; overflow-y: auto; }
  .world-tab { min-width: 0; padding: 7px 4px; font-size: 12px; }
  .world-head { margin: 0 0 6px; }
  .world-head h3 { font-size: 16px; }
  .world-head .sub { font-size: 11px; }

  .lb-body { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
  .lb-side { display: flex; flex-direction: column; gap: 8px; }
  .lb-side .seg button { padding: 7px 8px; font-size: 13px; }
  .lb-side .chips { margin: 0; }
  .lb-me { order: 0; text-align: left; margin-top: auto; }
  .lb { margin-top: 0; }
  .holder { padding: 12px; }
  .holder .val { font-size: 20px; }

  .p-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .p-grid { gap: 6px; }
  .p-stat { padding: 10px; }
  .p-stat dd { font-size: 16px; }
  .p-head { margin-bottom: 10px; }
  .p-avatar { width: 56px; height: 56px; padding: 9px; }
  .p-name { font-size: 20px; }
  .p-right .p-section:first-child { margin-top: 0; }

  .sheet { max-height: calc(100dvh - 24px); overflow-y: auto; padding: 16px 20px; gap: 8px; }
  .star { width: 28px; height: 28px; }
  #r-score { font-size: 30px; }
}

/* Loja në celular horizontal: fusha në mes, kontrollet për dy gishtat e mëdhenj */
@media (orientation: landscape) and (max-height: 519px) and (pointer: coarse) {
  #scr-game.active {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(0, 2.2fr) minmax(150px, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 12px;
  }
  #scr-game .game-bar { grid-column: 1; grid-row: 1; grid-template-columns: 40px 1fr; align-items: start; row-gap: 2px; min-height: 0; }
  #scr-game .g-score { grid-column: 1 / -1; font-size: 22px; padding-left: 8px; }
  #g-mode { white-space: normal; font-size: 12px; }
  #g-goal { font-size: 11px; }
  #scr-game .play { grid-column: 2; grid-row: 1 / 3; padding-top: 0; gap: 10px; }
  #scr-game .pad { display: contents; }
  #scr-game .pad-group { grid-row: 2; align-self: end; flex-wrap: wrap; gap: 8px; }
  #scr-game .pad-group:first-child { grid-column: 1; justify-self: start; }
  #scr-game .pad-group:last-child { grid-column: 3; grid-row: 1 / 3; justify-self: end; justify-content: flex-end; }
  #scr-game .pad button { --b: clamp(46px, 13vh, 58px); }
}

/* ================= Harta e botës (raundet) ================= */
.world-main { --wc: #3EE0F5; }
.world-head { align-items: flex-end; }
.world-head .eyebrow { margin-bottom: 4px; }
.world-head h3 { color: var(--wc); }
.world-head .sub b { color: var(--chalk); font-family: var(--num); }
.world-tab.on:not(.extreme) { background: var(--wc); border-color: var(--wc); color: #0B1026; }

.map-wrap { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; padding-bottom: 6px; }
.round-map {
  position: relative;
  width: min(100cqw, 100cqh); height: min(100cqw, 100cqh);
  display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(10, 1fr);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 10% 105%, color-mix(in srgb, var(--wc) 30%, transparent), transparent 70%),
    radial-gradient(80% 55% at 95% -5%, color-mix(in srgb, var(--wc) 20%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--wc) 6%, var(--deck)), var(--ink));
  border: 1px solid color-mix(in srgb, var(--wc) 40%, var(--rail));
  box-shadow: inset 0 0 80px rgba(0,0,0,.45), 0 30px 60px -30px rgba(0,0,0,.8);
}
.world-main.extreme .round-map {
  background:
    radial-gradient(100% 70% at 50% 110%, rgba(255,59,78,.45), transparent 70%),
    radial-gradient(60% 40% at 50% -10%, rgba(255,120,60,.18), transparent 70%),
    linear-gradient(180deg, #1C0712, #0B0309);
  border-color: rgba(255,59,78,.6);
}

.decor-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.decor { position: absolute; width: 24%; opacity: .08; }
.decor svg { width: 100%; height: auto; fill: var(--wc) !important; }
.decor.d0 { left: -4%; top: 6%; transform: rotate(-18deg); }
.decor.d1 { right: 2%; top: 28%; transform: rotate(14deg); width: 20%; }
.decor.d2 { left: 30%; top: 44%; transform: rotate(-8deg); width: 18%; }
.decor.d3 { left: 6%; bottom: 8%; transform: rotate(22deg); width: 18%; }
.decor.d4 { right: 10%; bottom: -2%; transform: rotate(-12deg); width: 16%; }
.decor.d5 { left: 58%; top: -3%; transform: rotate(30deg); width: 16%; }
.decor.d6 { left: 42%; bottom: 26%; transform: rotate(-26deg); width: 14%; }

.round-map .path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.round-map polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.path-all { stroke: color-mix(in srgb, var(--wc) 30%, var(--rail)); stroke-width: 4; stroke-dasharray: 1 9; }
.path-lit { stroke: var(--wc); stroke-width: 5; opacity: .9; filter: drop-shadow(0 0 5px var(--wc)); }

.node {
  position: relative; z-index: 2;
  place-self: center;
  width: 66%; aspect-ratio: 1;
  display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%;
  background: var(--ink);
  color: var(--haze);
  font: 700 clamp(7px, 2.3cqmin, 14px)/1 var(--num);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--wc) 35%, var(--rail)), 0 3px 0 rgba(0,0,0,.4);
  transition: transform .12s;
}
.node .nb { position: relative; }
.node.done {
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--wc) 55%, #fff), var(--wc) 60%);
  color: #0B1026;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--wc) 60%, #fff), 0 0 14px -2px var(--wc), 0 3px 0 rgba(0,0,0,.4);
}
.node.current {
  background: var(--chalk); color: var(--ink);
  box-shadow: 0 0 0 3px var(--wc), 0 0 22px 2px var(--wc);
  animation: node-pulse 1.6s ease-in-out infinite;
}
@keyframes node-pulse { 50% { box-shadow: 0 0 0 5px var(--wc), 0 0 30px 6px var(--wc); } }
.node.locked { opacity: .5; }
.node.boss { width: 84%; border-radius: 30%; font-size: clamp(10px, 3.4cqmin, 20px); }
.node:not(.locked):hover { transform: scale(1.12); z-index: 3; }
.node .st {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 1px);
  font-size: clamp(5px, 1.5cqmin, 10px); letter-spacing: -1px; white-space: nowrap;
  color: var(--gold); text-shadow: 0 1px 2px rgba(0,0,0,.9);
}
.me-pin {
  position: absolute; bottom: 100%; left: 50%;
  width: 90%; transform: translate(-50%, -2px);
  animation: bob 1.4s ease-in-out infinite;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.8));
}
.me-pin .glyph { width: 100%; height: auto; }
@keyframes bob { 50% { transform: translate(-50%, -6px); } }

/* Klasike: harta bëhet si ekran Game Boy */
[data-skin="classic"] .world-main, [data-skin="classic"] .world-tab { --wc: #9BBC0F !important; }
[data-skin="classic"] .round-map { border-radius: 0; border: 3px solid var(--chalk); background: var(--deck); box-shadow: 6px 6px 0 #0A260A; }
[data-skin="classic"] .node { border-radius: 0; box-shadow: 0 0 0 2px var(--ink); }
[data-skin="classic"] .node.done { background: var(--chalk); color: var(--ink); }
[data-skin="classic"] .node.current { background: var(--ink); color: var(--chalk); box-shadow: 0 0 0 3px var(--chalk); animation: none; }
[data-skin="classic"] .path-lit { filter: none; }
[data-skin="classic"] .node .st { color: var(--chalk); }

/* ================= Rregullime paraqitjeje ================= */
.bar { grid-template-columns: minmax(44px, auto) 1fr minmax(44px, auto); }
.chip.static { overflow: visible; }
.round-map { height: min(100cqh, 100cqw * 1.45); }
.map-wrap { place-items: start center; }
@media (min-width: 900px) and (min-height: 520px) {
  .round-map { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); }
  .map-wrap { place-items: center; }
  .lb-me { margin-top: 4px; padding: 18px; font-size: 15px; }
  .lb-me b { font-family: var(--num); color: var(--gold); }
}
@media (orientation: landscape) and (max-height: 519px) {
  .round-map { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); }
  .map-wrap { place-items: center; }
  .play { grid-template-columns: 92px auto 92px; }
  .play .record { display: none; }
  .play .stats { gap: 4px; }
  .play .stats dd { font-size: 15px; }
  .play .mini.hold { aspect-ratio: auto; height: 52px; }
  .play .mini.next { aspect-ratio: auto; height: min(52vh, 190px); }
}

/* Lidhja me faqen GGGL */
.bar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.home-link {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 36px; padding: 0 12px 0 8px; border-radius: 999px;
  color: var(--haze); text-decoration: none; font: 700 13px/1 var(--display); letter-spacing: .04em;
}
.home-link:hover { color: var(--chalk); background: var(--deck); }
.home-link .gm {
  width: 16px; height: 16px; border-radius: 4px;
  background:
    linear-gradient(#FF5A6E 0 0) 0 0 / 46% 46% no-repeat, linear-gradient(#FFD84A 0 0) 100% 0 / 46% 46% no-repeat,
    linear-gradient(#53E08A 0 0) 0 100% / 46% 46% no-repeat, linear-gradient(#3EE0F5 0 0) 100% 100% / 46% 46% no-repeat;
}
[data-skin="classic"] .home-link .gm { background: var(--chalk); border-radius: 0; }
