/* ============================================================
   steaktartare.net — styles
   Palette: charcoal base / tartare crimson / egg-yolk amber
   ============================================================ */

:root {
  --bg0: #0a0a0c;
  --bg1: #101016;
  --bg2: #15151c;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --brd: rgba(255, 255, 255, 0.08);
  --brd-strong: rgba(255, 255, 255, 0.16);

  --bone: #ece7dd;
  --muted: #a39d90;
  --faint: #6f695e;

  --red: #e23a4e;
  --red-soft: rgba(226, 58, 78, 0.14);
  --red-dark: #8f1d2c;
  --amber: #f5a623;
  --amber-soft: rgba(245, 166, 35, 0.12);

  --gold: #e8b84b;
  --silver: #c9ced8;
  --bronze: #cf8f5b;

  --font-d: 'Space Grotesk', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-b: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', 'Noto Sans Devanagari', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg0);
  color: var(--bone);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient background: vignettes + faint grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(226, 58, 78, 0.07), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(245, 166, 35, 0.05), transparent 60%),
    radial-gradient(800px 700px at 50% 110%, rgba(226, 58, 78, 0.05), transparent 60%),
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: auto, auto, auto, 56px 56px, 56px 56px;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: #26262e; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #34343e; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* ============ preloader ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-mark { animation: pl-pulse 1.1s ease-in-out infinite; }
.preloader-word {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--faint);
  text-transform: uppercase;
}
@keyframes pl-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.92); opacity: 0.7; }
}

/* ============ progress bar ============ */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--red), var(--amber));
  box-shadow: 0 0 12px rgba(226, 58, 78, 0.6);
}

/* ============ custom cursor ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 900;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-100px, -100px);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--red);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(226, 58, 78, 0.55);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              border-color 0.25s, background 0.25s;
}
.cursor-ring.is-hover {
  width: 52px; height: 52px;
  border-color: var(--amber);
  background: rgba(245, 166, 35, 0.08);
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--brd);
}
.nav-logo {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.nav-logo em { font-style: normal; color: var(--red); }
.nav-logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--amber) 0 34%, var(--red) 40%);
  box-shadow: 0 0 10px rgba(226, 58, 78, 0.7);
}
.nav-links {
  display: flex;
  gap: clamp(14px, 2.6vw, 34px);
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a { position: relative; padding: 6px 0; transition: color 0.25s; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* language switcher */
.lang { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  border: 1px solid var(--brd);
  border-radius: 999px;
  color: var(--bone);
  background: var(--card);
  transition: border-color 0.25s, background 0.25s;
}
.lang-btn:hover { border-color: var(--red); background: var(--red-soft); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  list-style: none;
  background: rgba(18, 18, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--brd);
  border-radius: 14px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-menu a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.lang-menu a:hover { background: var(--card-hover); color: var(--bone); }
.lang-menu a.active { color: var(--bone); background: var(--red-soft); }
.lang-menu a.active::after { content: "●"; color: var(--red); font-size: 8px; }
.lang-menu .lang-code {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* ============ hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 20px 80px;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-marquee {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.hero-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 46s linear infinite;
}
.hero-marquee-track span {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(90px, 16vw, 210px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 231, 221, 0.07);
  letter-spacing: 0.01em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
}
.hero-kicker {
  font-family: var(--font-m);
  font-size: clamp(10px, 1.4vw, 12px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 26px;
}
.hero-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(46px, 9.2vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.hero-line { display: block; overflow: hidden; }
.hero-line > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.9s var(--ease);
}
body.loaded .hero-line:nth-child(1) > span { transition-delay: 0.10s; transform: translateY(0); }
body.loaded .hero-line:nth-child(2) > span { transition-delay: 0.22s; transform: translateY(0); }
body.loaded .hero-line:nth-child(3) > span { transition-delay: 0.34s; transform: translateY(0); }
.hero-line-accent > span {
  background: linear-gradient(100deg, var(--red) 10%, var(--amber) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(226, 58, 78, 0.35);
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 620px;
  margin: 0 auto 38px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 54px;
}
.btn {
  font-family: var(--font-m);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--red), #c22c40);
  color: #fff;
  box-shadow: 0 8px 30px rgba(226, 58, 78, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(226, 58, 78, 0.5); }
.btn-ghost { border-color: var(--brd-strong); color: var(--bone); background: var(--card); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--amber); background: var(--amber-soft); }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 44px);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-m);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-m);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
.stat-sep { width: 1px; height: 34px; background: var(--brd); }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.3s;
}
.hero-scroll:hover { color: var(--amber); }
.hero-scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--red), transparent);
  animation: scroll-pulse 1.8s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ sections ============ */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) clamp(18px, 4vw, 40px);
}
.section-head { margin-bottom: clamp(36px, 6vh, 60px); }
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.kicker-no {
  color: var(--faint);
  padding: 3px 9px;
  border: 1px solid var(--brd);
  border-radius: 6px;
  letter-spacing: 0.12em;
}
.kicker::after {
  content: "";
  flex: 0 0 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.section h2 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 700px;
}
.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin-top: 16px;
  font-size: 15.5px;
}

/* ============ reveal on scroll ============ */
/* Guarded by .js so content stays visible without JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(4px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ============ board (ranking) ============ */
.board-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--brd);
  color: var(--muted);
  background: var(--card);
  transition: all 0.25s var(--ease);
}
.chip svg { flex: none; border-radius: 2px; }
.chip .chip-n {
  font-size: 10px;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 1px 7px;
}
.chip:hover { border-color: var(--brd-strong); color: var(--bone); transform: translateY(-2px); }
.chip.active {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--bone);
  box-shadow: 0 6px 24px rgba(226, 58, 78, 0.2);
}
.chip.active .chip-n { background: var(--red); color: #fff; }

.board { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.row {
  border: 1px solid var(--brd);
  border-radius: 18px;
  background: var(--card);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.row[hidden] { display: none; }
.row-link {
  display: grid;
  grid-template-columns: 76px 1fr 200px 34px;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  color: inherit;
  text-decoration: none;
}
.row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(226, 58, 78, 0.07) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.row:hover {
  transform: translateY(-3px) scale(1.004);
  border-color: rgba(226, 58, 78, 0.45);
  background: var(--card-hover);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(226, 58, 78, 0.12);
}
.row:hover::before { transform: translateX(100%); }

.row-rank {
  font-family: var(--font-m);
  font-weight: 600;
  font-size: 26px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 8px;
}
.row-rank small { font-size: 13px; color: var(--faint); }
.row.medal-1 .row-rank { color: var(--gold); text-shadow: 0 0 24px rgba(232, 184, 75, 0.5); }
.row.medal-2 .row-rank { color: var(--silver); text-shadow: 0 0 24px rgba(201, 206, 216, 0.4); }
.row.medal-3 .row-rank { color: var(--bronze); text-shadow: 0 0 24px rgba(207, 143, 91, 0.4); }
.row.medal-1 { border-color: rgba(232, 184, 75, 0.35); }
.row.medal-2 { border-color: rgba(201, 206, 216, 0.28); }
.row.medal-3 { border-color: rgba(207, 143, 91, 0.3); }

.row-info { min-width: 0; }
.row-name {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(17px, 2.2vw, 21px);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.row-name .row-flag { display: inline-flex; opacity: 0.9; }
.row-name .row-flag svg { border-radius: 2.5px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.row-place {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-place .row-tag { color: var(--faint); }
.row-place .sep { margin: 0 7px; color: var(--faint); }

.row-scorebox { text-align: right; }
.row-score {
  font-family: var(--font-m);
  font-weight: 600;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.row-score em { font-style: normal; font-size: 11px; color: var(--faint); }
.row-bar {
  margin-top: 7px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.row-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--amber));
  transition: width 1.1s var(--ease) 0.15s;
}
.row.in-view .row-bar i { width: var(--w, 0%); }

.row-go {
  color: var(--faint);
  display: flex;
  justify-content: center;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.row:hover .row-go { color: var(--red); transform: translateX(4px); }

/* board rows entrance (JS only — visible by default without it) */
.js .row { opacity: 0; transform: translateY(22px); }
.js .row.in-view { opacity: 1; transform: translateY(0); transition-delay: var(--d, 0s); }

/* ============ atlas ============ */
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.atlas-card {
  border: 1px solid var(--brd);
  border-radius: 20px;
  background: var(--card);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.atlas-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--amber), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.atlas-card:hover { transform: translateY(-4px); border-color: var(--brd-strong); box-shadow: 0 20px 46px rgba(0,0,0,.4); }
.atlas-card:hover::after { opacity: 1; }
.atlas-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.atlas-top svg { border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.atlas-country { font-family: var(--font-d); font-weight: 600; font-size: 19px; }
.atlas-count {
  font-family: var(--font-m);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(120deg, var(--red), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.atlas-count-label {
  font-family: var(--font-m);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 6px 0 18px;
}
.atlas-cities { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.atlas-city {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--brd);
  border-radius: 999px;
  padding: 4px 11px;
  background: rgba(255, 255, 255, 0.03);
}
.atlas-best {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px dashed var(--brd);
  padding-top: 14px;
}
.atlas-best b { color: var(--bone); font-weight: 600; }
.atlas-best .medal {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232, 184, 75, 0.7);
}

/* ============ method ============ */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.method-card {
  border: 1px solid var(--brd);
  border-radius: 18px;
  background: var(--card);
  padding: 24px 22px;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.method-card:hover { transform: translateY(-4px); border-color: rgba(245, 166, 35, 0.5); background: var(--card-hover); }
.method-no {
  font-family: var(--font-m);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.method-icon {
  margin: 16px 0 14px;
  color: var(--amber);
  display: flex;
}
.method-card:hover .method-icon { color: var(--red); }
.method-icon svg { transition: transform 0.35s var(--ease); }
.method-card:hover .method-icon svg { transform: scale(1.12) rotate(-4deg); }
.method-name {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
}
.method-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ============ about ============ */
.about-body { max-width: 660px; }
.about-body p { color: var(--muted); font-size: clamp(15.5px, 2vw, 17.5px); margin-bottom: 20px; }
.about-body p::first-letter { color: var(--red); font-weight: 600; }
.about-disclaimer {
  font-family: var(--font-m);
  font-size: 12.5px !important;
  color: var(--faint) !important;
  border-left: 2px solid var(--red);
  padding-left: 14px;
}

/* ============ footer ============ */
.footer { border-top: 1px solid var(--brd); margin-top: 40px; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 54px clamp(18px, 4vw, 40px) 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-logo { font-size: 19px; }
.footer-note { color: var(--muted); font-size: 14px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.footer-langs a {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  border: 1px solid var(--brd);
  border-radius: 999px;
  padding: 5px 12px;
  transition: all 0.25s;
}
.footer-langs a:hover { color: var(--bone); border-color: var(--brd-strong); }
.footer-langs a.active { color: var(--amber); border-color: rgba(245, 166, 35, 0.5); }
.footer-copy { font-family: var(--font-m); font-size: 11px; color: var(--faint); letter-spacing: 0.06em; }

/* ============ modal ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
}
.modal.open { visibility: visible; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(86vh, 100%);
  overflow-y: auto;
  background: linear-gradient(160deg, #16161d, #101014);
  border: 1px solid var(--brd-strong);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(226, 58, 78, 0.08);
}
.modal.open .modal-card { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--brd);
  color: var(--muted);
  background: var(--card);
  transition: all 0.25s;
  z-index: 2;
}
.modal-close:hover { color: #fff; border-color: var(--red); background: var(--red-soft); transform: rotate(90deg); }

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.modal-rank {
  font-family: var(--font-m);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 58px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(236, 231, 221, 0.35);
}
.modal-rank.medal-1 { -webkit-text-stroke: 0; color: var(--gold); text-shadow: 0 0 30px rgba(232,184,75,.5); }
.modal-rank.medal-2 { -webkit-text-stroke: 0; color: var(--silver); }
.modal-rank.medal-3 { -webkit-text-stroke: 0; color: var(--bronze); }

.modal-dial { position: relative; flex: none; }
.modal-dial svg { transform: rotate(-90deg); display: block; }
.dial-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 6; }
.dial-fill {
  fill: none;
  stroke: url(#dialGrad);
  stroke: var(--red);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1s var(--ease) 0.2s;
  filter: drop-shadow(0 0 6px rgba(226, 58, 78, 0.6));
}
.modal-dial-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-m);
  font-weight: 600;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.modal-dial-num em { font-style: normal; font-size: 10px; color: var(--faint); margin-left: 2px; }

.modal-name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 36px);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.modal-dish {
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 8px 0 16px;
}
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.modal-meta .chip { cursor: default; padding: 6px 13px; font-size: 10.5px; }
.modal-meta .chip:hover { transform: none; border-color: var(--brd); color: var(--muted); }
.modal-verdict {
  font-family: var(--font-d);
  font-size: clamp(17px, 2.6vw, 20px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--bone);
  border-left: 3px solid var(--red);
  padding-left: 16px;
  margin-bottom: 18px;
}
.modal-review { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin-bottom: 28px; }

.modal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--brd);
  padding-top: 18px;
}
.modal-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  border: 1px solid var(--brd);
  border-radius: 999px;
  transition: all 0.25s;
}
.modal-nav-btn:hover:not(:disabled) { color: var(--bone); border-color: var(--red); background: var(--red-soft); }
.modal-nav-btn:disabled { opacity: 0.35; cursor: default; }
.modal-count { font-family: var(--font-m); font-size: 11px; color: var(--faint); letter-spacing: 0.1em; }

body.modal-open { overflow: hidden; }

/* ============ responsive ============ */
@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .row-link { grid-template-columns: 44px 1fr 86px; gap: 12px; padding: 16px 16px; }
  .row-go { display: none; }
  .row-rank { font-size: 19px; }
  .row-scorebox { min-width: 0; }
  .row-score { font-size: 17px; }
  .row-place { white-space: normal; }
  .stat-sep { display: none; }
  .modal-card { max-height: 92vh; border-radius: 20px; }
  .hero { padding-bottom: 110px; }
}

/* ============ static-markup fixes (spans inside the row link) ============ */
.row-info, .row-place, .row-scorebox, .row-score, .row-bar { display: block; }

.row-verdict {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--faint);
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row:hover .row-verdict { color: var(--muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-family: var(--font-m);
  font-size: 12px;
}
.skip-link:focus { left: 0; }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--brd);
  border-radius: 16px;
  background: var(--card);
  padding: 4px 22px;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item[open] { border-color: rgba(226, 58, 78, 0.35); background: var(--card-hover); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 18px 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(15px, 2.2vw, 17.5px);
  line-height: 1.35;
}
.faq-mark {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--brd-strong);
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 1.5px;
  background: var(--amber);
  transform: translate(-50%, -50%);
  transition: opacity 0.25s;
}
.faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-mark { transform: rotate(135deg); border-color: var(--red); }
.faq-item > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  padding: 0 0 20px;
  max-width: 68ch;
}

/* ============ review page ============ */
.rpage {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 44px) clamp(18px, 4vw, 40px) 60px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.crumbs a { color: var(--amber); }
.crumbs a:hover { text-decoration: underline; }

.rhead { border-bottom: 1px solid var(--brd); padding-bottom: 28px; margin-bottom: 30px; }
.rhead-meta {
  font-family: var(--font-m);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.rhead-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.rhead-flag { display: inline-flex; }
.rhead-flag svg { border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.rhead-dish {
  font-family: var(--font-m);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-top: 12px;
}
.rhead-dish span { color: var(--faint); text-transform: uppercase; letter-spacing: 0.18em; font-size: 10.5px; }
.rhead-score { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.rhead-score-num {
  font-family: var(--font-m);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 46px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rhead-score.medal-1 .rhead-score-num { color: var(--gold); text-shadow: 0 0 28px rgba(232,184,75,.45); }
.rhead-score.medal-2 .rhead-score-num { color: var(--silver); }
.rhead-score.medal-3 .rhead-score-num { color: var(--bronze); }
.rhead-score-max { font-family: var(--font-m); font-size: 14px; color: var(--faint); }
.rhead-bar {
  flex: 1 1 160px;
  min-width: 120px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
  margin-left: 10px;
  align-self: center;
}
.rhead-bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--amber));
}
.rhead-tag {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-m);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--brd);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--card);
}

.rverdict {
  font-family: var(--font-d);
  font-size: clamp(18px, 3vw, 23px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--bone);
  border-left: 3px solid var(--red);
  padding-left: 20px;
  margin-bottom: 34px;
}
.rsub {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.rbody {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 17.5px);
  line-height: 1.85;
  margin-bottom: 44px;
}
.rbody::first-letter {
  float: left;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.86;
  padding: 6px 12px 0 0;
  color: var(--red);
}

.rcriteria {
  border: 1px solid var(--brd);
  border-radius: 18px;
  background: var(--card);
  padding: 24px;
  margin-bottom: 40px;
}
.rcriteria h2 {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.rcriteria ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.rcriteria li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--bone);
  border: 1px solid var(--brd);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255,255,255,.03);
}
.crit-no { font-family: var(--font-m); font-size: 10px; color: var(--amber); }

.rnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.rnav-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--brd);
  border-radius: 16px;
  background: var(--card);
  padding: 18px 20px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.rnav-btn.is-empty { border-color: transparent; background: none; }
a.rnav-btn:hover { transform: translateY(-3px); border-color: rgba(226,58,78,.45); background: var(--card-hover); }
.rnav-next { text-align: right; }
.rnav-dir {
  font-family: var(--font-m);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.rnav-name { font-family: var(--font-d); font-weight: 600; font-size: 17px; }
.rback { text-align: center; }

@media (max-width: 560px) {
  .rnav { grid-template-columns: 1fr; }
  .rnav-next { text-align: left; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .hero-marquee-track { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ row verdict: clamp on desktop, hide on phones ============
   Placed last so it wins over the base .row-verdict rule. On a phone the
   verdict is one tap away in the modal, and compact rows scan faster.    */
.row-verdict {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
@media (max-width: 640px) {
  .row-verdict { display: none; }
}
