:root {
  color-scheme: dark;
  --bg: #020817;
  --panel: #07152f;
  --panel-2: #0a2145;
  --text: #f7f8fa;
  --muted: #aeb8ca;
  --line: rgba(255,255,255,.12);
  --accent: #d7dde8;
  --good: #72d6a0;
  --warn: #f2c66d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html.language-pending #page-content { visibility: hidden; }
html.language-choice-open { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% -10%, #123a70 0, transparent 34rem),
    linear-gradient(180deg, #020817, #030d20 70%);
  color: var(--text);
}
a { color: var(--accent); }
.virelia-home {
  position: fixed;
  z-index: 50;
  top: 20px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(3,13,32,.72);
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.virelia-home:hover,
.virelia-home:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.3);
  background: rgba(10,33,69,.9);
}
.virelia-home img {
  display: block;
  width: 48px;
  height: 58px;
  object-fit: contain;
}
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 32px; }
.header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 26px; }
.header-tools { display: grid; justify-items: end; gap: 10px; }
h1 { margin: 4px 0 8px; font-size: clamp(2.2rem, 7vw, 4.6rem); letter-spacing: -.055em; line-height: .95; }
h2 { margin: 4px 0 0; font-size: 1.5rem; }
.eyebrow { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; }
.subtitle, .muted { color: var(--muted); }
.subtitle { max-width: 660px; line-height: 1.55; }
.status { border: 1px solid var(--line); background: rgba(7,21,47,.72); border-radius: 999px; padding: 10px 14px; white-space: nowrap; font-size: .88rem; }
.status.fresh { color: var(--good); }
.status.stale { color: var(--warn); }
.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7,21,47,.72);
}
.language-switcher a {
  min-width: 38px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.language-switcher a:hover,
.language-switcher a:focus-visible { color: var(--text); }
.language-switcher a.active { color: #07152f; background: var(--text); }
.language-notice {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: -8px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(242,198,109,.3);
  border-radius: 14px;
  background: rgba(242,198,109,.08);
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}
.language-notice strong { color: var(--warn); white-space: nowrap; }
.hero-card, .chart-card, .rates-grid article, .info-grid article {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(10,33,69,.95), rgba(5,18,42,.95));
  box-shadow: 0 28px 80px rgba(0,0,0,.2);
}
.hero-card { border-radius: 28px; padding: clamp(24px, 5vw, 48px); display: flex; justify-content: space-between; align-items: center; overflow: hidden; }
.label { color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.primary { font-size: clamp(3rem, 10vw, 7.2rem); font-weight: 760; letter-spacing: -.06em; line-height: 1; margin: 8px 0 14px; }
.primary small { font-size: .2em; letter-spacing: .08em; color: var(--muted); }
.mark { font-size: clamp(4rem, 18vw, 12rem); font-weight: 900; letter-spacing: -.08em; color: rgba(255,255,255,.045); transform: rotate(-8deg); }
.rates-grid, .info-grid { display: grid; gap: 14px; margin-top: 14px; }
.rates-grid { grid-template-columns: repeat(5, 1fr); }
.info-grid { grid-template-columns: repeat(3, 1fr); }
.rates-grid article, .info-grid article { border-radius: 18px; padding: 18px; }
.rates-grid span, .info-grid span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 7px; }
.rates-grid strong { font-size: 1.25rem; }
.chart-card { margin-top: 14px; border-radius: 24px; padding: 22px; }
.section-title { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.range { color: var(--muted); font-variant-numeric: tabular-nums; }
.chart { min-height: 360px; margin-top: 18px; }
.chart svg { width: 100%; height: 360px; overflow: visible; }
.chart .grid { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.chart .area { fill: url(#areaGradient); }
.chart .line { fill: none; stroke: #f7f8fa; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.chart .point { fill: #fff; stroke: #8aa7cf; stroke-width: 2; }
.chart .axis-label { fill: #9facc2; font-size: 11px; }
footer { color: var(--muted); font-size: .84rem; line-height: 1.55; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.language-gate {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 12%, rgba(18,58,112,.76), transparent 34rem),
    rgba(2,8,23,.97);
}
.language-dialog {
  width: min(640px, 100%);
  padding: clamp(28px, 7vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(10,33,69,.98), rgba(5,18,42,.98));
  box-shadow: 0 30px 100px rgba(0,0,0,.46);
  text-align: center;
}
.language-crest { width: 76px; height: 92px; object-fit: contain; margin-bottom: 14px; }
.language-title { margin: 10px auto 12px; font-size: clamp(1.8rem, 6vw, 3.4rem); line-height: 1.02; }
.language-copy { max-width: 500px; margin: 0 auto; color: var(--muted); line-height: 1.55; }
.language-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.language-options button {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2,8,23,.52);
  color: var(--text);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.language-options button:hover,
.language-options button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.35);
  background: rgba(18,58,112,.56);
}
.language-options strong,
.language-options span { display: block; }
.language-options strong { font-size: 1.25rem; letter-spacing: .12em; }
.language-options span { margin-top: 6px; color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 1280px) {
  .virelia-home { position: absolute; top: 18px; left: 18px; }
  .shell { padding-top: 112px; }
}
@media (max-width: 800px) {
  .header { display: block; }
  .header-tools { justify-items: start; margin-top: 14px; }
  .rates-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .mark { display: none; }
  .chart { min-height: 280px; }
  .chart svg { height: 280px; }
  .language-notice { display: block; }
  .language-notice strong { display: block; margin-bottom: 4px; }
}
@media (max-width: 520px) {
  .virelia-home { width: 58px; height: 58px; border-radius: 15px; }
  .virelia-home img { width: 40px; height: 48px; }
  .shell { width: min(100% - 22px, 1120px); padding-top: 94px; }
  .language-options { grid-template-columns: 1fr; }
  .language-options button { min-height: 72px; }
}
