/* Ulvgard. Tokenuri, apoi elemente comune, apoi pagini. Mobile first. */

@font-face {
  font-family: Inter;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #151a22;
  --bg-deep: #0f131a;
  --surface: #1d2531;
  --surface-hi: #283444;
  --text: #e8eef5;
  --text-dim: #a3b3c6;
  --text-faint: #8193aa;
  --rule: rgb(175 205 240 / 10%);
  --rule-hi: rgb(175 205 240 / 20%);
  --accent: #62b0ff;
  --accent-fill: #1f74de;
  --accent-fill-hi: #2a84f2;
  --gain: #9fdb6b;
  --gain-ink: #a9e275;
  --gain-fill: rgb(140 205 80 / 16%);

  --r1: 3px;
  --r2: 5px;
  --r3: 8px;

  --shell: 1280px;
  --gut: 16px;
  --gap: 36px;
  --top: 64px;

  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) { :root { --gut: 24px; --gap: 44px; } }
@media (min-width: 1200px) { :root { --gut: 32px; } }

/* ── Baza ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-top: calc(var(--top) + 20px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r1); }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 90;
  padding: 12px 18px;
  background: var(--accent-fill);
  color: #fff;
  border-radius: var(--r2);
  font-weight: 600;
}

.skip:focus { top: 12px; }

/* ── Componente ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r2);
  background: var(--accent-fill);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  transition: background .16s var(--ease);
}

.btn:hover { background: var(--accent-fill-hi); }
.btn.is-quiet { background: var(--surface-hi); color: var(--text); }
.btn.is-quiet:hover { background: #33425a; }

.cut {
  display: inline-block;
  padding: 3px 6px;
  border-radius: var(--r1);
  background: var(--gain-fill);
  color: var(--gain-ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

s { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.is-free, .is-up { color: var(--gain); }
.is-soon { color: var(--accent); }
.is-none { color: var(--text-faint); font-weight: 500; }

.mark { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.mark svg { flex: none; }
.mark span { padding-bottom: 2px; }
.mark:hover { color: #fff; }

/* Antetul de sectiune: bara albastra, titlul, linkul din dreapta. */
.head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  min-height: 46px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-hi);
}

.head h2 { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.head h2::before { content: ""; flex: none; width: 4px; height: 18px; background: var(--accent); }
.head h2 small { font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--text-faint); }

.head-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -6px 0 -6px auto;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
}

.head-more::after { content: "›"; margin-left: 6px; font-size: 17px; }
.head-more:hover { color: var(--accent); }
.head-count { margin-left: auto; color: var(--text-faint); font-size: 13px; }

.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }

.tabs a {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--r2);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
}

.tabs a:hover { color: var(--text); background: var(--surface); }
.tabs a[aria-selected="true"] { color: var(--text); background: var(--surface-hi); }

/* Cardul de joc */
.covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 740px) { .covers.is-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .covers, .covers.is-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Pe telefon, un rand de coperti se trage cu degetul in loc sa ocupe trei ecrane. */
@media (max-width: 559px) {
  .covers:not(.is-grid) {
    display: flex;
    margin-inline: calc(var(--gut) * -1);
    padding-inline: var(--gut);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gut);
    scrollbar-width: none;
  }

  .covers:not(.is-grid) > .card { flex: 0 0 42vw; scroll-snap-align: start; }
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--r3);
  transition: background .16s var(--ease), box-shadow .16s var(--ease);
}

.card:hover { background: var(--surface-hi); box-shadow: 0 0 0 2px var(--accent); }
.card:focus-visible { border-radius: var(--r3); }
.card-art { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--bg-deep); }

.card-art.is-type {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 12px;
  background: linear-gradient(160deg, #243044, #141a24 70%);
  box-shadow: inset 0 3px 0 var(--accent-fill);
}

.card-art.is-type b {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.card-art.is-type small { color: var(--text-faint); font-size: 12px; font-weight: 600; }
.card-text { display: grid; padding: 10px 12px; min-width: 0; }
.card-title, .card-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title { font-size: 14px; font-weight: 600; }
.card-meta { min-height: 19px; color: var(--text-faint); font-size: 12.5px; }

.card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: auto;
  padding: 0 12px;
  border-top: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card-price b { font-size: 15px; font-weight: 700; }
.card-price s { font-size: 12.5px; }
.card-price .cut { margin-left: auto; font-size: 12px; }
/* In cardul cel mai ingust nu incap trei valori pe un rand; procentul spune deja tot. */
@media (max-width: 559px) { .card-price s { display: none; } }

/* Tabelul de jocuri */
.rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
@media (min-width: 900px) { .rows.is-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .rows.is-split .gt + .gt thead { display: none; } }

.gt { table-layout: fixed; }
.gt th { padding: 0 8px 8px 0; color: var(--text-faint); font-size: 12px; font-weight: 600; }
.gt td { height: 56px; padding: 0 8px 0 0; border-top: 1px solid var(--rule); }
.gt tbody tr { position: relative; }
.gt tbody tr:hover { background: var(--surface); }
.gt th.gt-game { padding-left: 104px; }
.gt a { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; }
.gt a::after { content: ""; position: absolute; inset: 0; }
.gt a:focus-visible { outline: 0; }
.gt a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.gt img, .gt-noart { width: 92px; aspect-ratio: 460 / 215; object-fit: cover; border-radius: var(--r1); background: var(--bg-deep); }
.gt-name { display: grid; min-width: 0; }
.gt-name b, .gt-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-name b { font-size: 14.5px; font-weight: 600; }
.gt-name small { color: var(--text-faint); font-size: 12.5px; }
.gt .gt-mid { width: 80px; text-align: center; color: var(--text-dim); font-size: 13px; white-space: nowrap; }
.gt th.gt-mid { color: var(--text-faint); font-size: 12px; }
.gt .gt-end { width: 88px; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.25; white-space: nowrap; }
.gt.is-release .gt-end { width: 108px; font-size: 14px; }
.gt-end s { display: block; font-size: 12px; }
.gt td.gt-end b { font-size: 15px; font-weight: 700; }
.gt.is-release td.gt-end b { font-size: 13.5px; }

@media (max-width: 559px) {
  .gt a { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .gt img, .gt-noart { width: 72px; }
  .gt th.gt-game { padding-left: 82px; }
  .gt .gt-mid { width: 62px; }
  .gt .gt-end { width: 76px; padding-right: 0; }
}

/* Articolele */
.stories { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 560px) { .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.story { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; background: var(--surface); border-radius: var(--r3); transition: box-shadow .16s var(--ease); }
.story:hover { box-shadow: 0 0 0 2px var(--accent); }
.story-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(160deg, #243044, #141a24 70%); }
.story-text { display: grid; align-content: start; gap: 8px; padding: 12px 14px 14px; }
.story-meta { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 12.5px; line-height: 1; white-space: nowrap; }
.story-meta b, .kind { padding: 5px 7px; border-radius: var(--r1); background: var(--accent-fill); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1; }

.story-title {
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story.is-lead { position: relative; grid-column: 1 / -1; grid-template-rows: auto; }
.story.is-lead .story-title { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; min-height: 0; }

@media (min-width: 900px) {
  .stories.is-count-5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .stories.is-count-5 .is-lead { grid-column: 1; grid-row: 1 / 3; }
  .stories.is-count-5 .is-lead .story-art { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .stories.is-count-5 .is-lead .story-text { position: relative; align-self: end; padding: 64px 24px 22px; background: linear-gradient(to top, rgb(10 14 20 / 94%), rgb(10 14 20 / 70%) 55%, transparent); }
  .stories.is-count-5 .is-lead .story-title { font-size: 25px; max-width: 26ch; }
  .stories.is-count-5 .is-lead .story-meta { color: #c9d5e3; }
  .stories.is-count-1 .is-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .stories.is-count-1 .story-text { padding: 28px 32px; }
  .stories.is-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

.empty { display: grid; justify-items: center; gap: 10px; margin-top: 16px; padding: 40px 24px; background: var(--surface); border-radius: var(--r3); text-align: center; }
.empty h2 { font-size: 20px; }
.empty p { max-width: 52ch; color: var(--text-dim); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pager > * { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r2); font-weight: 600; font-variant-numeric: tabular-nums; }
.pager a { background: var(--surface); }
.pager a:hover { background: var(--surface-hi); }
.pager [aria-current] { background: var(--accent-fill); color: #fff; }

/* ── Antetul ──────────────────────────────────────────────────────────── */

.top { position: sticky; top: 0; z-index: 40; background: var(--bg-deep); border-bottom: 1px solid var(--rule); }
.admin-bar .top { top: 32px; }
.top-row { display: flex; align-items: center; gap: 8px; height: var(--top); }
.top .mark { flex: none; min-height: 44px; margin-right: 14px; }
.menu { display: none; align-items: center; gap: 2px; flex: none; }

.menu-group > summary:not(.chip), .menu-link, .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--r2);
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}

.menu-group > summary::after { content: ""; width: 6px; height: 6px; border: solid currentcolor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.menu-group > summary:hover, .menu-group[open] > summary, .menu-link:hover { color: var(--text); background: var(--surface); }
.menu .is-active > summary, .menu-link.is-active { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.menu-group { position: relative; }

.menu-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 45;
  min-width: 250px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--rule-hi);
  border-radius: var(--r3);
  box-shadow: 0 24px 60px rgb(0 0 0 / 55%);
}

.menu-panel.is-wide { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 8px 20px; width: 620px; padding: 14px 12px 10px; }
.menu-panel p { margin: 0 0 6px 10px; color: var(--text-faint); font-size: 12.5px; font-weight: 600; }
.menu-panel a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 0 10px; border-radius: var(--r1); font-size: 14.5px; font-weight: 500; }
.menu-panel a:hover { background: var(--surface-hi); }
.menu-panel a span, .drawer a span { color: var(--text-faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.menu-genres { columns: 2; column-gap: 12px; }
.menu-genres p { column-span: all; }
.menu-genres a { break-inside: avoid; }

.live { margin-left: 8px; color: var(--text); font-weight: 700; background: rgb(159 219 107 / 10%); box-shadow: inset 0 0 0 1px rgb(159 219 107 / 50%); }
.live:hover, .live.is-active { background: rgb(159 219 107 / 20%); box-shadow: inset 0 0 0 1px var(--gain); }
.live i, .live-at i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gain); }

.find { position: relative; display: none; flex: 1; min-width: 0; max-width: 520px; margin-left: auto; }
.find input { width: 100%; height: 44px; padding: 0 44px 0 40px; background: var(--surface); border: 1px solid transparent; border-radius: var(--r2); appearance: none; }
.find input::placeholder { color: var(--text-faint); opacity: 1; }
.find input:hover { border-color: var(--rule-hi); }
.find input::-webkit-search-cancel-button { display: none; }
.find > svg { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; color: var(--text-faint); pointer-events: none; }
.find svg, .icon svg { fill: none; stroke: currentcolor; stroke-width: 2; stroke-linecap: round; }
.find kbd { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--rule-hi); border-radius: var(--r1); color: var(--text-faint); font: 600 12px var(--sans); pointer-events: none; }
.find-close { display: none; }

.find-results { position: absolute; left: 0; right: 0; top: 50px; z-index: 45; max-height: min(70vh, 520px); overflow-y: auto; padding: 8px; background: var(--surface); border: 1px solid var(--rule-hi); border-radius: var(--r3); box-shadow: 0 24px 60px rgb(0 0 0 / 55%); }
.find-results .is-head { display: flex; justify-content: space-between; padding: 8px 10px 4px; color: var(--text-faint); font-size: 12.5px; font-weight: 600; }
.find-results .is-note { padding: 14px 10px; color: var(--text-dim); }
.find-results a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 5px 10px; border-radius: var(--r1); font-weight: 600; }
.find-results a.has-art { grid-template-columns: 92px minmax(0, 1fr) auto; padding-left: 6px; }
.find-results img, .find-results .gt-noart { width: 92px; aspect-ratio: 460 / 215; object-fit: cover; border-radius: var(--r1); }
.find-results a > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 600; }
.find-results a > span { font-variant-numeric: tabular-nums; }
.find-results a:hover, .find-results [aria-selected="true"] a { background: var(--surface-hi); }
.find-results .is-all a { color: var(--accent); }

.icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: var(--r2); background: var(--surface); font-size: 16px; }
.icon svg { width: 20px; height: 20px; }
.icon:hover { background: var(--surface-hi); }
.icon.is-find { margin-left: auto; }
.icon.is-menu i { width: 18px; height: 2px; background: currentcolor; box-shadow: 0 6px 0 currentcolor, 0 -6px 0 currentcolor; }

.top.is-finding .mark, .top.is-finding .icon { display: none; }
.top.is-finding .find { display: block; max-width: none; margin: 0; }
.top.is-finding .find input { padding-right: 84px; }
.top.is-finding .find kbd { display: none; }
.top.is-finding .find-close { display: block; position: absolute; right: 2px; top: 0; height: 44px; padding: 0 12px; border: 0; background: none; color: var(--accent); font-weight: 600; }

@media (min-width: 700px) {
  .find { display: block; }
  .icon.is-find { display: none; }
  .icon.is-menu { margin-left: 8px; }
}

@media (min-width: 1100px) {
  .menu { display: flex; }
  .icon.is-menu { display: none; }
  .find { max-width: 380px; }
}

.drawer { position: fixed; inset: 0; z-index: 60; overflow-y: auto; padding: 10px var(--gut) 40px; background: var(--bg-deep); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 14px; }
.drawer .live { display: flex; justify-content: flex-start; height: 48px; margin: 0 0 6px; padding: 0 14px; font-size: 16px; }
.drawer-group { border-bottom: 1px solid var(--rule); }
.drawer-group > summary { display: flex; align-items: center; justify-content: space-between; min-height: 54px; font-size: 18px; font-weight: 700; }
.drawer-group > summary::after { content: ""; width: 8px; height: 8px; margin-right: 6px; border: solid currentcolor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.drawer-group[open] > summary::after { transform: rotate(-135deg); }
.drawer-group > div { padding-bottom: 10px; }
.drawer-group a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: var(--text-dim); font-size: 16px; }
.drawer-link { display: flex; align-items: center; min-height: 54px; font-size: 18px; font-weight: 700; }
html.is-locked { overflow: hidden; }

/* ── Subsolul ─────────────────────────────────────────────────────────── */

.foot { margin-top: 72px; background: var(--bg-deep); border-top: 1px solid var(--rule); }
.foot-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-block: 40px 28px; }
.foot-about { grid-column: 1 / -1; }
.foot .mark { min-height: 44px; }
.foot-about p { max-width: 42ch; margin-top: 12px; color: var(--text-faint); font-size: 14px; }
.foot nav p { margin-bottom: 6px; color: var(--text-faint); font-size: 13px; font-weight: 600; }
.foot nav a { display: flex; align-items: center; min-height: 44px; color: var(--text-dim); font-size: 14.5px; }
.foot nav a:hover { color: var(--text); }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 28px; color: var(--text-faint); font-size: 13px; }
.foot-end::before { content: ""; flex: 0 0 100%; height: 1px; margin-bottom: 8px; background: var(--rule); }
@media (min-width: 900px) { .foot-row { grid-template-columns: 1.6fr repeat(3, 1fr); } .foot-about { grid-column: auto; } .foot nav a { min-height: 36px; } }

/* ── Prima pagina ─────────────────────────────────────────────────────── */

.front { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); padding-top: 20px; }
.front > .sr { position: absolute; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap) 32px; align-items: start; }
@media (min-width: 900px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pair > :only-child { grid-column: 1 / -1; } }

.hero-stage { position: relative; display: grid; overflow: hidden; background: var(--surface); border-radius: var(--r3); }
.hero-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; }
.hero-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-text { min-width: 0; padding: 14px 16px 0; }
.hero-tag { display: inline-block; max-width: 100%; overflow: hidden; margin-bottom: 8px; padding: 5px 8px; border-radius: var(--r1); background: var(--accent-fill); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.hero-title, .hero-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-title { font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.hero-meta { min-height: 22px; margin-top: 2px; color: var(--text-dim); font-size: 14px; }
.hero-buy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 14px 16px 16px; }
.hero-price { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; overflow: hidden; background: var(--bg-deep); border-radius: var(--r2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-price b { font-size: 19px; font-weight: 800; }
.hero-price s { font-size: 13px; }
.hero-buy .btn { min-height: 48px; }
.hero-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.hero-nav a { display: block; height: 100%; overflow: hidden; background: var(--surface); border-radius: var(--r2); opacity: .6; transition: opacity .16s var(--ease); }
.hero-nav a:hover, .hero-nav [aria-current] { opacity: 1; }
.hero-nav [aria-current] { box-shadow: 0 0 0 2px var(--accent); }
.hero-nav img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; }
.hero-nav span { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 13px; }
.hero-nav b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.hero-nav em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Sub 900 benzile arata doar arta, dar raman tinte de 44 px. */
@media (max-width: 899px) {
  .hero-nav span { display: none; }
  .hero-nav a { display: grid; min-height: 44px; }
  .hero-nav img { height: 100%; aspect-ratio: auto; }
}

@media (min-width: 900px) {
  .hero-slide { grid-template-columns: minmax(0, 1fr) auto; align-content: end; align-items: end; aspect-ratio: 1216 / 520; }
  .hero-art { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: center 25%; }
  .hero-slide::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgb(10 14 20 / 94%), rgb(10 14 20 / 60%) 45%, transparent); }
  .hero-text, .hero-buy { position: relative; z-index: 1; padding: 0 0 26px 28px; }
  .hero-buy { padding-right: 28px; }
  .hero-title { font-size: 32px; }
  .hero-meta { color: #c9d5e3; }
  .hero-price { padding: 0 16px; background: rgb(15 19 26 / 85%); }
}

/* ── Paginile de listare ──────────────────────────────────────────────── */

.sheet { padding-top: 20px; }
.crumbs { display: flex; flex-wrap: wrap; color: var(--text-faint); font-size: 13px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-dim); }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs a::after { content: "/"; margin-inline: 7px; color: var(--text-faint); }
.crumbs span { align-self: center; overflow: hidden; max-width: 60vw; text-overflow: ellipsis; white-space: nowrap; }
.page-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; }
.page-head h1 { min-width: 0; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.page-count { color: var(--text-faint); font-size: 14px; }
.page-note { flex: 0 0 100%; color: var(--text-dim); }
.page-articles { margin-block: 20px 28px; }
@media (min-width: 768px) { .page-head h1 { font-size: 30px; } }

.filters { position: relative; z-index: 12; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 18px; padding: 8px; background: var(--surface); border-radius: var(--r2); }
.filters-set { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filters-set.is-end { gap: 12px; }
.chip, .filters select, .views a { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px; border: 0; border-radius: var(--r1); background: var(--bg-deep); color: var(--text-dim); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.chip small { color: var(--text-faint); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.chip:hover, .menu-group[open] > .chip { color: var(--text); background: var(--surface-hi); }
.chip.is-on { background: var(--accent-fill); color: #fff; }
.chip.is-on small { color: rgb(255 255 255 / 85%); }
.chip i { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent-fill); color: #fff; font-size: 11.5px; font-style: normal; }
.filters-panel label { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 8px; border-radius: var(--r1); font-size: 14px; break-inside: avoid; cursor: pointer; }
.filters-panel label:hover { background: var(--surface-hi); }
.filters-panel label small { margin-left: auto; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.filters-panel input { flex: none; width: 17px; height: 17px; accent-color: var(--accent-fill-hi); }
.filters-panel.is-cols { width: 460px; }
.filters-panel.is-cols > div { columns: 2; column-gap: 8px; }
.filters .btn { min-height: 44px; margin-top: 8px; }
.filters .is-end .btn { margin: 0; }
.js [data-autosubmit] .btn { display: none; }
.filters form label span { margin-right: 8px; color: var(--text-faint); font-size: 13px; }
.filters form:not(.menu-panel) { display: flex; align-items: center; gap: 8px; }
.filters select { display: inline-block; color: var(--text); }
.views { display: inline-flex; gap: 2px; }
.views a { width: 44px; padding: 0; justify-content: center; font-size: 16px; }
.views [aria-current] { background: var(--surface-hi); color: var(--text); }
@media (min-width: 1060px) { .filters { position: sticky; top: var(--top); box-shadow: 0 0 0 6px var(--bg); } }

@media (max-width: 699px) {
  .filters .menu-group { position: static; }
  .filters-panel, .filters-panel.is-cols { left: 0; right: 0; top: 100%; width: auto; }
  .filters-set.is-end { width: 100%; justify-content: space-between; }
}

.active { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.active a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border-radius: var(--r1); background: var(--surface); font-size: 13px; font-weight: 600; }
.active a:hover { background: var(--surface-hi); }
.active a > span:not(.sr) { color: var(--text-faint); font-size: 11px; }
.active .is-clear { background: none; color: var(--accent); }
.sheet > .covers, .sheet > .rows { margin-top: 16px; }

.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.genres a { display: grid; gap: 2px; min-width: 0; padding: 16px; background: var(--surface); border-radius: var(--r3); }
.genres a:hover { background: var(--surface-hi); box-shadow: 0 0 0 2px var(--accent); }
.genres b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.genres small { color: var(--text-faint); font-size: 13px; }

/* ── Live DB ──────────────────────────────────────────────────────────── */

.live-at { display: inline-flex; align-items: center; gap: 9px; color: var(--text-dim); font-size: 13px; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
@media (min-width: 900px) { .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.live-table { display: block; padding: 6px 8px 8px; background: var(--surface); border-radius: var(--r3); }
.live-table thead, .live-table tbody { display: block; }
.live-table tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px 88px; align-items: center; gap: 10px; padding-right: 6px; border-radius: var(--r1); }
.live-table thead tr { min-height: 46px; padding-left: 6px; }
.live-table th { color: var(--text-faint); font-size: 12px; font-weight: 600; text-align: right; white-space: nowrap; }
.live-table th:first-child { text-align: left; }
.live-table h2 { color: var(--text); font-size: 16px; }
.live-table h2 a { display: inline-flex; align-items: center; min-height: 44px; }
.live-table h2 a::after { content: "›"; margin-left: 8px; color: var(--text-faint); }
.live-table h2 a:hover { color: var(--accent); }
.live-table tbody tr { height: 44px; }
.live-table tbody tr:nth-child(odd) { background: rgb(175 205 240 / 3.5%); }
.live-table tbody tr:hover { background: var(--surface-hi); }
.live-table td { padding: 0; color: var(--text-dim); font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-table td b { color: var(--text); font-weight: 700; }
.live-table td .is-up, .live-table td .is-free { color: var(--gain); }
.live-table td .is-none { color: var(--text-faint); }
.live-table td a { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 10px; color: var(--text); text-align: left; }
.live-table td a::after { content: ""; position: absolute; inset: 0; }
.live-table td a:focus-visible { outline: 0; }
.live-table td a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.live-table td img { width: 76px; height: 36px; margin-left: 2px; object-fit: cover; border-radius: var(--r1); }
.live-table td span:not(.cut) { grid-column: 2; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; }
@media (max-width: 480px) { .live-table tr { grid-template-columns: minmax(0, 1fr) 78px 70px; gap: 8px; } .live-table td a { grid-template-columns: 60px minmax(0, 1fr); } .live-table td img { width: 60px; height: 28px; } }

/* ── Calendarul ───────────────────────────────────────────────────────── */

.strip { position: sticky; top: var(--top); z-index: 12; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; margin-top: 18px; padding: 6px; background: var(--surface); border-radius: var(--r2); box-shadow: 0 0 0 6px var(--bg); }
.strip button { width: 44px; height: 56px; border: 0; border-radius: var(--r1); background: var(--bg-deep); font-size: 18px; font-weight: 600; }
.strip button:hover { background: var(--surface-hi); }
.strip-days { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.strip-days::-webkit-scrollbar { display: none; }
.strip-day { position: relative; flex: 1 0 56px; display: grid; justify-items: center; align-content: center; height: 56px; border-radius: var(--r1); color: var(--text-faint); line-height: 1.2; scroll-snap-align: start; }
.strip-day small { font-size: 11.5px; }
.strip-day b { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.strip-day b i { margin-left: 3px; font-size: 11px; font-style: normal; font-weight: 500; }
.strip-day em { height: 14px; color: var(--accent); font-size: 11.5px; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
a.strip-day { color: var(--text); }
a.strip-day b { font-weight: 700; }
a.strip-day:hover { background: var(--surface-hi); }
.strip-day.is-today { background: var(--accent-fill); color: #fff; }
.strip-day.is-today em { color: #fff; }
@media (max-width: 699px) { .strip { grid-template-columns: minmax(0, 1fr); } .strip button { display: none; } .strip-day { flex-basis: 46px; } }
.day { margin-top: var(--gap); scroll-margin-top: 72px; }
.day-more { margin-top: 12px; }
.day-more > summary { display: flex; width: 220px; margin-inline: auto; }
.day-more[open] > summary { display: none; }
.split { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule-hi); color: var(--text-dim); font-size: 15px; font-weight: 600; }
.split + .day { margin-top: 16px; }

/* ── Pagina de joc ────────────────────────────────────────────────────── */

.game > section, .about-row { margin-top: var(--gap); }
.game section[id] { scroll-margin-top: 52px; }
.fine { color: var(--text-faint); font-size: 12.5px; line-height: 1.45; }
.none { padding: 18px 16px; background: var(--surface); border-radius: var(--r2); color: var(--text-dim); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags > * { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--r1); background: var(--surface); color: var(--text-dim); font-size: 12.5px; font-weight: 600; }
.tags a:hover { background: var(--surface-hi); color: var(--text); }
@media (pointer: coarse) { .tags a { min-height: 44px; } }

.game-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-block: 4px 14px; }
.game-head h1 { min-width: 0; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
@media (min-width: 768px) { .game-head h1 { font-size: 32px; } }
.game-live { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-dim); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.game-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--gain); }
.game-live:hover { color: var(--text); }
@media (min-width: 900px) { .game-live { margin-left: auto; } }

.game-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.gallery { display: grid; gap: 8px; min-width: 0; align-content: start; }
.gallery-stage { position: relative; display: block; overflow: hidden; border-radius: var(--r3); background: var(--bg-deep); }
.gallery-stage img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-stage span { position: absolute; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: var(--r1); background: rgb(15 19 26 / 85%); font-size: 12.5px; font-weight: 600; opacity: 0; transition: opacity .16s var(--ease); }
.gallery-stage:hover span, .gallery-stage:focus-visible span { opacity: 1; }
.gallery-strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 4); gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip a { overflow: hidden; min-height: 44px; border-radius: var(--r2); opacity: .6; scroll-snap-align: start; }
.gallery-strip a:hover, .gallery-strip .is-on { opacity: 1; }
.gallery-strip .is-on { box-shadow: inset 0 0 0 2px var(--accent); }
.gallery-strip img { position: relative; z-index: -1; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.buy { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px; background: var(--surface); border-radius: var(--r3); }
.buy-art { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: var(--r2); }
.buy-reviews { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 12px; overflow: hidden; padding: 10px 12px 0; background: var(--bg-deep); border-radius: var(--r2); line-height: 1.25; }
.buy-score { font-size: 25px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.buy-reviews p { padding-left: 12px; border-left: 1px solid var(--rule-hi); }
.buy-reviews p b { display: block; color: var(--accent); font-size: 15px; font-weight: 700; }
.buy-reviews small { color: var(--text-faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.buy-reviews meter { display: block; grid-column: 1 / -1; width: calc(100% + 24px); height: 3px; margin: 10px -12px 0; border: 0; background: var(--surface-hi); appearance: none; }
.buy-reviews meter::-webkit-meter-inner-element { display: block; height: 3px; }
.buy-reviews meter::-webkit-meter-bar { height: 3px; border: 0; border-radius: 0; background: var(--surface-hi); }
.buy-reviews meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 0; }
.buy-reviews meter::-moz-meter-bar { background: var(--accent); }
.buy-text { display: -webkit-box; overflow: hidden; color: var(--text-dim); font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.buy-facts { display: grid; gap: 5px; font-size: 13.5px; }
.buy-facts div { display: grid; grid-template-columns: 92px minmax(0, 1fr); }
.buy-facts dt { color: var(--text-faint); }
.buy-facts dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-end { display: grid; gap: 8px; margin-top: auto; }
.buy-save { color: var(--text-dim); font-size: 13.5px; }
.buy-save b { color: var(--gain); }
.buy-price { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.buy-price p { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: center; min-height: 58px; padding: 6px 12px; background: var(--bg-deep); border-radius: var(--r2); line-height: 1.2; font-variant-numeric: tabular-nums; }
.buy-price small { color: var(--text-faint); font-size: 12.5px; }
.buy-price b { grid-row: 2; font-size: 20px; font-weight: 800; white-space: nowrap; }
.buy-price b.is-none { font-size: 16px; }
.buy-price .cut { grid-area: 1 / 2 / 3; }
.buy-price .btn { min-height: 58px; }
.buy-price p:only-child { grid-column: 1 / -1; }

/* Panoul da inaltimea randului; galeria o umple, deci se termina pe aceeasi linie. */
@media (min-width: 1000px) {
  .game-top { grid-template-columns: minmax(0, 1fr) 372px; }
  .game-top.is-plain { grid-template-columns: minmax(0, 620px); }
  .gallery { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; }
  .gallery-stage { min-height: 100%; }
  .gallery-stage img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}

.sections { position: sticky; top: var(--top); z-index: 20; display: flex; justify-content: safe center; gap: 4px; margin-top: 12px; padding-inline: 8px; overflow-x: auto; background: var(--surface); border-radius: var(--r2); box-shadow: 0 0 0 6px var(--bg); scrollbar-width: none; }
.sections::-webkit-scrollbar { display: none; }
.admin-bar .sections, .admin-bar .strip { top: calc(var(--top) + 32px); }
.sections a { flex: none; display: inline-flex; align-items: center; height: 46px; padding: 0 14px; color: var(--text-dim); font-size: 14px; font-weight: 600; }
.sections a:hover { color: var(--text); }
.sections [aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

/* Ofertele */
.offers th { padding: 0 12px 8px 0; color: var(--text-faint); font-size: 12px; font-weight: 600; }
.offers tbody tr { background: var(--surface); }
.offers td { height: 64px; padding: 0 12px 0 0; border-bottom: 6px solid var(--bg); background-clip: padding-box; font-size: 14px; color: var(--text-dim); }
.offers .offers-logo { width: 112px; }
.offers tbody .offers-logo { padding-left: 8px; }
.store-logo { display: grid; place-items: center; width: 92px; height: 44px; overflow: hidden; padding: 6px 10px; background: var(--bg-deep); border-radius: var(--r2); }
.store-logo svg, .store-logo img { width: 100%; height: 100%; object-fit: contain; fill: currentcolor; }
.offers-store b, .offer-store b { display: block; color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.25; }
.offers-store small, .offer-store small { color: var(--text-faint); font-size: 12.5px; }
.offers .offers-price { text-align: right; white-space: nowrap; }
.offers-price .cut, .offers-price s { margin-right: 6px; font-size: 13px; }
.offers-price b, .offer-price b { color: var(--text); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.offers .offers-go { width: 118px; padding-right: 8px; }
.offers-go .btn { width: 100%; min-height: 44px; }
.offer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px; background: var(--surface); border-radius: var(--r2); }
.offer-price .is-free { color: var(--gain); }

/* Pe telefon fiecare oferta e o caseta: magazinul si pretul sus, detaliile si butonul jos. */
@media (max-width: 767px) {
  .offers, .offers tbody { display: block; }
  .offers thead { display: none; }
  .offers tr { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 4px 12px; margin-bottom: 8px; padding: 10px; border-radius: var(--r2); }
  .offers td, .offers tbody .offers-logo { width: auto; height: auto; padding: 0; border: 0; align-self: center; }
  .offers .offers-go { grid-column: 1 / -1; width: auto; padding: 0; margin-top: 6px; }
  .offers [data-label] { grid-column: 1 / -1; display: grid; grid-template-columns: 92px 1fr; font-size: 13.5px; }
  .offers [data-label]::before { content: attr(data-label); color: var(--text-faint); }
  .offers .offers-price { grid-area: 1 / 3; display: grid; justify-items: end; gap: 2px; }
  .offers-price .cut, .offers-price s { margin: 0; }
  .store-logo { width: 76px; }
  .offer { grid-template-columns: auto minmax(0, 1fr) auto; }
  .offer .btn { grid-column: 1 / -1; }
}

/* Istoricul */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } .figures.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.figures div { padding: 10px 14px; background: var(--surface); border-radius: var(--r2); }
.figures dt { color: var(--text-faint); font-size: 12.5px; }
.figures dd { overflow: hidden; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; text-overflow: ellipsis; }
.figures + * { margin-top: 8px; }
.chart { padding: 14px; background: var(--surface); border-radius: var(--r2); }
.chart-plot { position: relative; height: 220px; touch-action: pan-y; }
.chart-plot svg { display: block; width: 100%; height: 100%; }
.chart path { fill: none; vector-effect: non-scaling-stroke; }
.chart-line { stroke: var(--accent); stroke-width: 2.5; }
.chart-low { stroke: var(--gain); stroke-width: 1; stroke-dasharray: 5 5; opacity: .6; }
.chart-guide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule-hi); pointer-events: none; }
.chart-tip { position: absolute; top: 0; padding: 6px 10px; border-radius: var(--r1); background: var(--bg-deep); font-size: 13px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.chart-ends { display: flex; justify-content: space-between; margin-top: 6px; color: var(--text-faint); font-size: 12.5px; }
.changes { margin-top: 8px; overflow: hidden; background: var(--surface); border-radius: var(--r2); font-size: 14px; }
.changes th { padding: 12px 14px 8px; color: var(--text-faint); font-size: 12px; font-weight: 600; }
.changes td { height: 44px; padding: 0 14px; border-top: 1px solid var(--rule); color: var(--text-dim); font-variant-numeric: tabular-nums; }
.changes td b { color: var(--text); }
.changes :is(th, td):last-child { text-align: right; }

/* Descriere si fisa */
.about-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap) 32px; align-items: start; }
@media (min-width: 1000px) { .about-row { grid-template-columns: minmax(0, 1fr) 400px; } .about-row > :only-child { grid-column: 1 / -1; } }
.about { overflow-wrap: anywhere; color: var(--text-dim); line-height: 1.65; }
.about > * + * { margin-top: 12px; }
.about :is(h1, h2, h3) { margin-top: 20px; color: var(--text); font-size: 16px; font-weight: 700; }
.about > :first-child { margin-top: 0; }
.about ul, .prose ul { padding-left: 20px; list-style: disc; }
.about.is-cut { overflow: hidden; mask-image: linear-gradient(to top, transparent, #000 72px); }
.about-more { min-height: 44px; margin-top: 12px; }
.about-row .fine { margin-top: 10px; }
.details { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 7px 12px; padding: 14px; background: var(--surface); border-radius: var(--r2); font-size: 14px; }
.details dt { color: var(--text-faint); }
.details dd { overflow-wrap: anywhere; }
.details a { color: var(--accent); }
.details a:hover { text-decoration: underline; }
.details + .tags { margin-top: 10px; }

/* Cerinte */
.tabs.is-boxed { margin-bottom: 8px; }
.tabs.is-boxed a { min-height: 44px; background: var(--surface); }
.tabs.is-boxed [aria-selected="true"] { background: var(--accent-fill); color: #fff; }
.tags + .needs, .tags + [id^="os-"] { margin-top: 8px; }
.needs { overflow: hidden; background: var(--surface); border-radius: var(--r2); font-size: 14px; }
.needs :is(th, td) { padding: 10px 14px; vertical-align: top; overflow-wrap: anywhere; }
.needs tbody tr { border-top: 1px solid var(--rule); }
.needs thead th { font-weight: 700; }
.needs tbody th { width: 130px; color: var(--text-faint); font-weight: 400; }
.needs.is-two td { width: calc(50% - 65px); }
.notes { margin-top: 8px; padding: 0 14px; background: var(--surface); border-radius: var(--r2); color: var(--text-dim); font-size: 14px; }
.notes summary { display: flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 600; }
.notes summary::after { content: ""; width: 7px; height: 7px; margin-left: 10px; border: solid currentcolor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.notes p { padding-bottom: 12px; }
@media (max-width: 699px) {
  .needs.is-two, .needs.is-two tbody { display: block; }
  .needs.is-two thead { display: none; }
  .needs.is-two tr { display: grid; gap: 4px; padding: 12px 14px; }
  .needs.is-two tbody tr:first-child { border-top: 0; }
  .needs.is-two :is(th, td) { display: block; width: auto; padding: 0; }
  .needs.is-two tbody th { color: var(--text); font-weight: 700; }
  .needs.is-two td { display: grid; grid-template-columns: 112px minmax(0, 1fr); color: var(--text-dim); }
  .needs.is-two td::before { content: attr(data-label); color: var(--text-faint); }
}

.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; place-items: center; gap: 12px; padding: 64px 16px 48px; background: rgb(8 11 16 / 95%); }
.lightbox img { width: auto; max-height: calc(100dvh - 112px); border-radius: var(--r2); }
.lightbox .icon { font-size: 24px; }
.lightbox .lightbox-close { position: absolute; top: 10px; right: 16px; font-size: 16px; }
.lightbox p { position: absolute; bottom: 14px; color: var(--text-dim); font-size: 13.5px; }
@media (max-width: 699px) {
  .lightbox { grid-template-columns: 1fr 1fr; align-content: center; padding-inline: 0; }
  .lightbox img { grid-area: 1 / 1 / 2 / 3; border-radius: 0; }
}

.bar { position: fixed; inset: auto 0 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom)); background: var(--bg-deep); border-top: 1px solid var(--rule-hi); }
.bar p { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-width: 0; font-variant-numeric: tabular-nums; }
.bar small { flex: 0 0 100%; overflow: hidden; color: var(--text-faint); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.bar b { font-size: 17px; font-weight: 800; }
.bar s { font-size: 13px; }
@media (max-width: 999px) { body:has(.bar) .foot { padding-bottom: 72px; } }
@media (min-width: 1000px) { .bar { display: none; } }

/* ── Articole ─────────────────────────────────────────────────────────── */

.article-hero { position: relative; display: grid; overflow: hidden; margin-top: 8px; background: var(--surface); border-radius: var(--r3); }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-head { display: grid; justify-items: start; gap: 12px; padding: 18px 16px 20px; }
.article-head h1 { max-width: 24ch; font-size: 28px; font-weight: 800; line-height: 1.12; letter-spacing: -.025em; overflow-wrap: anywhere; }
.article-head .is-lead { max-width: 60ch; color: var(--text-dim); font-size: 17px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text-dim); font-size: 13.5px; }
.byline b { color: var(--text); }
@media (min-width: 900px) {
  .article-hero.has-art { align-items: end; min-height: 500px; }
  .article-hero.has-art img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .article-hero.has-art::after { content: ""; position: absolute; inset: 20% 0 0; background: linear-gradient(to top, rgb(10 14 20 / 95%), rgb(10 14 20 / 70%) 50%, transparent); }
  .article-head { position: relative; z-index: 1; padding: 32px; }
  .article-head h1 { font-size: 44px; }
  .article-hero.has-art :is(.is-lead, .byline) { color: #d5dfea; }
}

.article-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 64px; margin-top: 28px; }
.article-side { display: grid; align-content: start; gap: 12px; }
@media (min-width: 1000px) {
  .article-row { grid-template-columns: minmax(0, 720px) minmax(0, 340px); justify-content: space-between; align-items: start; }
  .article-side { position: sticky; top: calc(var(--top) + 20px); grid-area: 1 / 2; }
}
.toc { padding: 12px 8px; background: var(--surface); border-radius: var(--r3); }
.toc p { padding: 0 10px 6px; font-weight: 700; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 10px; border-radius: var(--r1); color: var(--text-dim); font-size: 14.5px; font-weight: 600; }
.toc a:hover { background: var(--surface-hi); color: var(--text); }
.article-game { overflow: hidden; background: var(--surface); border-radius: var(--r3); }
.article-game img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; }
.article-game div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px 14px; }
.article-game .btn { grid-column: 1 / -1; }
.article-end { margin-top: var(--gap); }

.prose { color: #cfdae7; font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 18px; }
.prose :is(h2, h3) { color: var(--text); font-weight: 800; line-height: 1.25; letter-spacing: -.015em; }
.prose h2 { margin-top: 44px; font-size: 25px; }
.prose h3 { margin-top: 30px; font-size: 19px; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ol { padding-left: 22px; list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose img { border-radius: var(--r3); }
.prose figcaption { margin-top: 8px; color: var(--text-faint); font-size: 13.5px; }
.prose blockquote { margin-inline: 0; padding: 14px 18px; background: rgb(98 176 255 / 9%); border-left: 3px solid var(--accent); border-radius: 0 var(--r2) var(--r2) 0; }
.prose table { display: block; overflow-x: auto; font-size: 15px; }
.prose :is(th, td) { min-width: 130px; padding: 11px 14px; background: var(--surface); border-bottom: 1px solid var(--rule); }
.prose pre { overflow-x: auto; }

/* ── Pagini informative ───────────────────────────────────────────────── */

.info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 44px; margin-top: 12px; }
.info-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.info-nav p { display: none; }
.info-nav a { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--surface); border-radius: var(--r1); color: var(--text-dim); font-size: 14.5px; font-weight: 600; }
.info-nav a:hover { color: var(--text); }
.info-nav [aria-current] { background: var(--surface-hi); color: var(--text); }
.info-text { max-width: 700px; }
.info-text h1 { font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.info-date { margin: 6px 0 18px; color: var(--text-faint); font-size: 14px; }
.info .prose { font-size: 16px; }
.info .prose h2 { margin-top: 34px; font-size: 20px; }
@media (min-width: 900px) {
  .info.has-nav { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .info-nav { position: sticky; top: calc(var(--top) + 20px); display: grid; gap: 2px; padding: 10px; background: var(--surface); border-radius: var(--r3); }
  .info-nav p { display: block; padding: 4px 12px 8px; color: var(--text-faint); font-size: 13px; font-weight: 600; }
}

.lost { display: grid; justify-items: center; gap: 12px; padding: 48px 0 20px; text-align: center; }
.lost h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.lost > p { max-width: 54ch; color: var(--text-dim); }
.lost form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: min(100%, 520px); }
.lost input { min-width: 0; height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--rule-hi); border-radius: var(--r2); appearance: none; }
.lost .tags { justify-content: center; }
.lost .tags a { min-height: 44px; padding: 0 14px; font-size: 14px; }

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