/* More Than Turhan — site stilleri
 * Tasarım fikri "kesit": gökyüzü (günün havası) → toprak (bahçe) → deniz → yeraltı → atölye → borsa.
 * Gökyüzü rengi her gün botun havasına göre değişir (--sky, --sky-ink; app.js ayarlar).
 */

:root {
  --ink: #172033;
  --ink-soft: #4A5468;
  --line: #E4E9EF;
  --line-strong: #D5DCE5;
  --paper: #F4F7FA;
  --white: #FFFFFF;
  --violet: #6D3FF0;
  --violet-hover: #5A2FD9;
  --violet-wash: #EEE9FF;
  --violet-ink: #4B23C4;
  --up: #127A45;
  --down: #C2352B;
  --soil: #6E4B30;
  --sea-top: #2A7AA6;
  --sea-deep: #0A2A44;
  --rock: #2B2433;
  --rock-deep: #19141F;
  --forge: #3A2A20;
  --sky: #DCEBF7;
  --sky-ink: #172033;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --measure: 64ch;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; max-width: var(--measure); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Üst çubuk ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--sky) 90%, transparent); backdrop-filter: blur(10px); transition: background .6s; }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.mark { font-family: var(--display); font-weight: 800; font-size: 21px; font-stretch: 85%; text-decoration: none; letter-spacing: -0.02em; color: var(--sky-ink); white-space: nowrap; }
.mark span { font-weight: 400; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--sky-ink); font-weight: 500; font-size: 15px; opacity: .78; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.join { display: inline-flex; align-items: center; gap: 8px; background: var(--violet); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 10px; white-space: nowrap; }
.join:hover { background: var(--violet-hover); }
.join svg { width: 18px; height: 18px; }
.join[hidden] { display: none; }
.join .short { display: none; }
.menu-toggle { display: none; margin-left: auto; font: inherit; font-weight: 600; font-size: 15px; border: 0; background: transparent; color: var(--sky-ink); padding: 8px; cursor: pointer; }

/* Veri tazeliği uyarısı */
.notice { background: #FFF4D6; color: #5A4300; font-size: 15px; }
.notice .wrap { padding-top: 10px; padding-bottom: 10px; }
.notice[hidden] { display: none; }

/* ---------- Gökyüzü ---------- */
.sky { background: var(--sky); color: var(--sky-ink); position: relative; overflow: hidden; transition: background .6s, color .6s; }
.sky .wrap { position: relative; z-index: 2; padding-top: clamp(56px, 9vw, 120px); }
.today { font-size: 15px; font-weight: 500; opacity: .75; margin-bottom: 18px; }
.sky h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: .95; font-weight: 750; font-stretch: 82%; max-width: 12ch; letter-spacing: -0.03em; }
.sky .effect { font-size: clamp(19px, 1.8vw, 23px); margin-top: 26px; max-width: 34ch; line-height: 1.4; }
.sky .tomorrow { margin-top: 14px; font-size: 15px; opacity: .75; }
.motif { position: absolute; z-index: 1; right: 2vw; top: 24px; width: min(42vw, 580px); height: min(42vw, 580px); pointer-events: none; }
.motif > svg { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.motif > svg.on { opacity: 1; }
.horizon { display: grid; grid-template-columns: minmax(260px, 1.1fr) 2fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-top: clamp(56px, 7vw, 96px); padding-bottom: 28px; }
.goal h2 { font-size: 15px; font-family: var(--text); font-weight: 600; letter-spacing: 0; }
.goal .numbers { font-family: var(--display); font-size: 34px; font-weight: 700; font-stretch: 85%; margin: 4px 0 10px; }
.goal .numbers small { font-size: 17px; font-weight: 500; opacity: .7; }
.bar { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--sky-ink) 14%, transparent); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--sky-ink); border-radius: 99px; width: 0; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.goal p { font-size: 14px; margin-top: 8px; opacity: .75; }
.movers { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.movers-label { width: 100%; text-align: right; font-size: 14px; opacity: .7; margin-bottom: 2px; }
.mover { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: baseline; text-decoration: none; background: color-mix(in srgb, #fff 62%, transparent); padding: 10px 14px; border-radius: 12px; color: var(--ink); }
.mover:hover { background: #fff; }
.mover .name { grid-column: 1 / -1; font-size: 14px; font-weight: 500; }
.mover .price { font-family: var(--display); font-weight: 700; font-size: 22px; }
.mover .chg { font-size: 14px; font-weight: 600; }
.up { color: var(--up); }
.down { color: var(--down); }
.next-event { margin-top: 18px; font-size: 15px; }
.next-event a { font-weight: 600; }

/* Kısa gökyüzü bandı (iç sayfalar) */
.sky.band .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(32px, 4vw, 48px); }
.sky.band h1 { font-size: clamp(40px, 5.6vw, 76px); max-width: 18ch; }
.sky.band .effect { margin-top: 16px; max-width: 52ch; font-size: 19px; }
.sky.band .motif { width: min(26vw, 320px); height: min(26vw, 320px); top: 10px; opacity: .55; }

/* ---------- Katmanlar ---------- */
.edge { display: block; width: 100%; height: 56px; }
.layer { position: relative; }
.layer > .wrap { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 110px); }
.layer h2 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 720; font-stretch: 84%; line-height: 1; letter-spacing: -0.025em; }
.layer .lead { margin-top: 16px; font-size: 19px; max-width: 46ch; }
.depth { font-size: 14px; opacity: .65; margin-bottom: 14px; }
.more { display: inline-block; margin-top: 28px; font-weight: 600; text-underline-offset: 4px; }

.soil { background: var(--soil); color: #FBF3EA; }
.plots { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 44px; border-top: 2px solid rgba(255,255,255,.18); }
.plot { padding: 20px 16px 4px; border-right: 1px dashed rgba(255,255,255,.18); }
.plot:last-child { border-right: 0; }
.plot .crop { font-size: 40px; line-height: 1; }
.plot h3 { font-size: 21px; font-weight: 650; margin-top: 12px; font-stretch: 90%; }
.plot dl { margin: 10px 0 0; font-size: 14px; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; opacity: .92; }
.plot dt { opacity: .7; }
.plot dd { margin: 0; text-align: right; }
.plot.locked .crop { filter: grayscale(.6); opacity: .7; }
.rare-harvest { margin-top: 36px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.rare-harvest b { font-family: var(--display); font-size: 18px; }
.aside-note { margin-top: 30px; background: rgba(0,0,0,.18); border-radius: 14px; padding: 18px 20px; max-width: 640px; font-size: 16px; }

.sea { background: linear-gradient(var(--sea-top), var(--sea-deep)); color: #EAF5FB; }
.mine { background: linear-gradient(var(--rock), var(--rock-deep)); color: #EFEAF4; }
.strata { margin-top: 48px; }
/* Derinlik = nadirlik: nadirlik arttıkça katmanlar arası mesafe büyür */
.stratum { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; padding: calc(18px + var(--d, 0) * 9px) 0; border-top: 1px solid rgba(255,255,255,.14); }
.stratum .meta b { display: block; font-family: var(--display); font-size: 22px; font-weight: 650; font-stretch: 88%; }
.stratum .meta span { font-size: 14px; opacity: .7; }
.finds { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.find { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.find .e { font-size: 26px; }
.find .p { font-size: 14px; opacity: .7; }
.find:hover .n { text-decoration: underline; text-underline-offset: 4px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--c, #999); }

.forge { background: var(--forge); color: #FBEFE2; }
.recipes-now { margin-top: 36px; display: grid; gap: 0; max-width: 860px; }
.recipe-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); }
.recipe-line .what { font-family: var(--display); font-size: 22px; font-weight: 650; font-stretch: 88%; }
.recipe-line .from { grid-column: 1; font-size: 15px; opacity: .78; }
.recipe-line .gain { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; font-family: var(--display); font-size: 24px; font-weight: 700; }
.recipe-line .gain small { display: block; font-family: var(--text); font-size: 13px; font-weight: 500; opacity: .7; }
.forge .up { color: #7FDCA6; }
.forge .down { color: #FF9C8F; }

/* ---------- Kâğıt sayfalar (borsa, komutlar, rehber, etkinlikler) ---------- */
.paper { background: var(--paper); color: var(--ink); }
.white { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.small-note { font-size: 14px; color: var(--ink-soft); }
code.cmd { font-family: var(--text); font-weight: 600; background: var(--violet-wash); color: var(--violet-ink); padding: 3px 8px; border-radius: 7px; font-size: .95em; white-space: nowrap; }
.sea code.cmd, .mine code.cmd, .soil code.cmd, .forge code.cmd { background: rgba(255,255,255,.16); color: #fff; }

.tabs { display: flex; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: 15px; font-weight: 600; border: 0; padding: 9px 14px; border-radius: 9px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs button:hover:not([aria-selected="true"]) { background: #E3E8EF; color: var(--ink); }
.market { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; margin-top: 18px; align-items: start; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { text-align: left; font-weight: 500; font-size: 14px; color: var(--ink-soft); padding: 10px 8px; border-bottom: 1px solid var(--line-strong); }
th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
th button:hover { color: var(--ink); text-decoration: underline; }
th.r, td.r { text-align: right; }
td { padding: 11px 8px; border-bottom: 1px solid var(--line); }
tbody tr.pick { cursor: pointer; }
tbody tr.pick:hover { background: #EAF0F6; }
tbody tr[aria-selected="true"] { background: #E2DBFF; }
.item-name { display: flex; align-items: center; gap: 10px; }
.item-name .e { font-size: 21px; width: 26px; text-align: center; }
.spark { width: 84px; height: 26px; display: block; margin-left: auto; }
.chart-panel { position: sticky; top: 84px; background: #fff; border-radius: 18px; padding: 24px 24px 18px; box-shadow: 0 1px 0 var(--line-strong), 0 18px 40px -24px rgba(23,32,51,.35); }
.chart-panel .title { display: flex; align-items: center; gap: 12px; }
.chart-panel .title .e { font-size: 34px; }
.chart-panel h3 { font-size: 28px; font-weight: 700; font-stretch: 86%; }
.chart-panel .rarity { font-size: 14px; color: var(--ink-soft); }
.chart-panel .now { font-family: var(--display); font-size: 48px; font-weight: 750; font-stretch: 84%; margin-top: 14px; line-height: 1; }
.chart-panel .now small { font-size: 20px; font-weight: 600; margin-left: 8px; font-family: var(--text); }
.chart-wrap { position: relative; margin-top: 18px; touch-action: pan-y; }
.chart { width: 100%; height: 220px; display: block; }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 13px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.chart-tip[hidden] { display: none; }
.hilo { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); margin-top: 6px; gap: 10px; }
.sell-hint { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.market-events { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.market-event { background: #FFF4D6; color: #5A4300; border-radius: 12px; padding: 12px 16px; font-size: 15px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.market-event b { font-weight: 650; }

.calc { margin-top: 64px; }
.calc h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; font-stretch: 86%; }
.calc .lead { font-size: 17px; margin-top: 10px; }
.calc table { margin-top: 20px; }
.ingredients { font-size: 14px; color: var(--ink-soft); }

.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; border: 2px solid var(--line-strong); border-radius: 12px; padding: 0 14px; background: #fff; }
.search:focus-within { border-color: var(--violet); }
.search input { border: 0; outline: 0; font: inherit; font-size: 17px; padding: 13px 0; width: 100%; background: transparent; color: var(--ink); }
.tools-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { font: inherit; font-size: 14px; font-weight: 500; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); padding: 7px 12px; border-radius: 99px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.cmd-list { margin-top: 30px; columns: 2 420px; column-gap: 56px; }
.cmd-group { break-inside: avoid; margin-bottom: 34px; }
.cmd-group h3 { font-size: 22px; font-weight: 680; font-stretch: 88%; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.cmd-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.cmd-row .n { font-weight: 650; font-size: 17px; }
.cmd-row .d, .cmd-row .subs, .cmd-row .how { grid-column: 1; font-size: 15px; color: var(--ink-soft); }
.cmd-row .subs { font-size: 14px; }
.cmd-row .how { color: var(--ink); font-size: 15px; margin-top: 4px; }
.cmd-row:target { background: #F3EFFF; }
.copy { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: inherit; font-size: 14px; font-weight: 600; border: 0; background: var(--violet-wash); color: var(--violet-ink); padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.copy:hover { background: #E0D7FF; }
.copy.done { background: #DDF3E6; color: var(--up); }
.empty { padding: 30px 0; color: var(--ink-soft); }

/* Rehber */
.feature-groups { margin-top: 40px; display: grid; gap: 56px; }
.feature-group h3 { font-size: 26px; font-weight: 700; font-stretch: 86%; }
.features { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 40px; }
.feature { padding: 18px 0; border-top: 1px solid var(--line); }
.feature h4 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 650; font-stretch: 90%; }
.feature p { font-size: 15px; margin-top: 6px; }
.feature .tip { color: var(--ink-soft); font-size: 14px; }
.badges { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 32px; }
.badge { display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.badge .medal { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--c) 30%, #fff); box-shadow: inset 0 0 0 3px var(--c); }
.badge b { font-weight: 650; }
.badge span { font-size: 14px; color: var(--ink-soft); }
.badge.hidden-badge .medal { background: #E9EDF2; box-shadow: inset 0 0 0 3px #C9D1DB; }
.weather-table td:first-child { font-size: 22px; width: 40px; }

/* Etkinlikler: gün gün */
.days { margin-top: 40px; display: grid; gap: 40px; max-width: 860px; }
.day h3 { font-size: 22px; font-weight: 680; font-stretch: 88%; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.event-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.event-row .time { font-family: var(--display); font-size: 24px; font-weight: 700; font-stretch: 86%; }
.event-row .title { font-weight: 650; font-size: 18px; }
.event-row .meta { grid-column: 2; font-size: 14px; color: var(--ink-soft); }
.event-row .going { grid-row: 1 / span 2; grid-column: 3; font-weight: 600; font-size: 15px; text-align: right; }
.live { color: var(--up); font-weight: 650; }
.how-box { margin-top: 48px; background: #fff; border-radius: 16px; padding: 24px; max-width: 860px; box-shadow: 0 1px 0 var(--line-strong); }
.how-box ol { margin: 12px 0 0; padding-left: 22px; }
.how-box li { margin: 6px 0; }

/* ---------- Evcil hayvanlar ---------- */
/* Yumurtalar: şans şeridi (nadirlik renkleri, genişlik = ihtimal) */
.eggs { margin-top: 36px; display: grid; gap: 28px; max-width: 860px; }
.egg-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.egg-head .e { font-size: 30px; }
.egg-head h3 { font-size: 26px; font-weight: 700; font-stretch: 86%; }
.egg-price { margin-left: auto; font-size: 15px; color: var(--ink-soft); }
.chance-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin-top: 12px; gap: 2px; }
.chance-bar span { background: var(--c); }
.chance-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; margin-top: 8px; color: var(--ink-soft); }
.eggs + .small-note { margin-top: 26px; }

/* Ortam katmanları: sayfa gökten denize bir kesit; türler nadirlik arttıkça aralanır (.stratum --d) */
.habitat-gok { background: linear-gradient(#3B4A7A, #283358); color: #EEF1FA; }
.habitat-ev { background: #F3E6D3; color: #3A2A18; }
.habitat-ev .stratum { border-top-color: rgba(58, 42, 24, .16); }
.habitat-orman { background: linear-gradient(#24472C, #183220); color: #EAF4EA; }
.habitat-su { background: linear-gradient(var(--sea-top), var(--sea-deep)); color: #EAF5FB; }
.species-row .meta { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.species-row .species-e { grid-row: 1 / span 2; font-size: 40px; line-height: 1; }
.species-body .skill { font-size: 16px; }
.stats { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 32px; max-width: 760px; }
.stat { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.stat-bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; }
.habitat-ev .stat-bar { background: rgba(58, 42, 24, .14); }
.stat-bar i { display: block; height: 100%; background: currentColor; opacity: .85; border-radius: 99px; }
.stat b { font-weight: 650; }
.stat small { font-weight: 500; opacity: .7; }
.record { margin-top: 8px; font-size: 14px; opacity: .8; }
.habitat-note { margin-top: 26px; color: inherit; opacity: .75; }
.forge-note { color: #F2DFC8; margin-top: 12px; }
.gear-groups { margin-top: 36px; display: grid; gap: 44px; }
.gear-group h3 { font-size: 24px; font-weight: 700; font-stretch: 86%; }
.foods td { vertical-align: top; }

/* ---------- Deneme arenası ---------- */
.arena > .wrap { padding-top: clamp(32px, 5vw, 64px); }
.notice-inline { background: #FFF4D6; color: #5A4300; border-radius: 12px; padding: 12px 16px; font-size: 15px; margin-bottom: 24px; max-width: none; }
.notice-inline[hidden] { display: none; }
.corners { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: start; }
.versus { align-self: center; font-family: var(--display); font-weight: 800; font-size: 34px; font-stretch: 80%; opacity: .5; }
.corner { background: rgba(255,255,255,.06); border-radius: 18px; padding: 22px; display: grid; gap: 14px; }
.corner-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.corner-e { font-size: 58px; line-height: 1; }
.corner-head h3 { font-size: 22px; font-weight: 700; font-stretch: 86%; }
.corner-head p { font-size: 14px; opacity: .8; margin-top: 2px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; border: 0; padding: 0; margin: 0; }
.field select, .field input[type="range"] { font: inherit; font-weight: 500; font-size: 15px; width: 100%; }
.field select { background: #fff; color: var(--ink); border: 0; border-radius: 10px; padding: 9px 10px; }
.field input[type="range"] { accent-color: var(--violet); }
.tactic { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 16px; }
.tactic legend { padding: 0; margin-bottom: 6px; }
.tactic label, .check { font-weight: 500; font-size: 15px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.corner-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.corner-stats div { display: grid; }
.corner-stats dt { font-size: 12px; opacity: .7; }
.corner-stats dd { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; }
.arena-controls { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-top: 28px; }
.arena-controls .field { min-width: 220px; }
.fight { font: inherit; font-weight: 650; font-size: 16px; border: 0; background: var(--violet); color: #fff; padding: 12px 22px; border-radius: 11px; cursor: pointer; }
.fight:hover { background: var(--violet-hover); }
.fight.ghost { background: rgba(255,255,255,.12); }
.fight.ghost:hover { background: rgba(255,255,255,.2); }
.odds { margin-top: 22px; max-width: 760px; }
.odds-bar { height: 12px; border-radius: 99px; background: #FF9C8F; overflow: hidden; }
.odds-bar i { display: block; height: 100%; background: #7FDCA6; }
.odds p { margin-top: 8px; font-size: 15px; }
.fight-result { margin-top: 26px; max-width: 760px; }
.fight-result h3 { font-size: 28px; font-weight: 720; font-stretch: 84%; }
.fight-result .small-note { color: inherit; opacity: .7; margin-top: 4px; }
.hp { display: grid; grid-template-columns: 160px 1fr 90px; gap: 12px; align-items: center; margin-top: 12px; font-size: 15px; }
.hp-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.hp-bar i { display: block; height: 100%; background: #7FDCA6; }
.hp b { text-align: right; }
.fight-log { margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; columns: 2 300px; column-gap: 36px; }
.fight-log li { padding: 3px 0; break-inside: avoid; }
.fight-log .round { font-weight: 650; opacity: .65; font-size: 13px; padding-top: 10px; }
.crit { color: #FFD84A; font-weight: 700; }
.arena-note { color: inherit; opacity: .7; margin-top: 30px; }

footer { background: var(--ink); color: #DCE3EE; }
footer .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
footer .mark { color: #fff; }
footer p { font-size: 15px; opacity: .8; margin-top: 6px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
footer nav a { opacity: .85; }

.loading { opacity: .5; }

@media (max-width: 960px) {
  .horizon { grid-template-columns: 1fr; }
  .movers { justify-content: flex-start; }
  .movers-label { text-align: left; }
  .plots { grid-template-columns: repeat(3, 1fr); }
  .plot:nth-child(3) { border-right: 0; }
  .market { grid-template-columns: 1fr; }
  .chart-panel { position: static; order: -1; }
  .motif { opacity: .45; }
  .menu-toggle { display: block; }
  .nav nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--sky); padding: 8px var(--gutter) 16px; box-shadow: 0 12px 20px -16px rgba(0,0,0,.4); }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 10px 0; font-size: 17px; }
  .nav .join { margin-left: 0; }
  .corners { grid-template-columns: 1fr; }
  .versus { justify-self: center; }
}
@media (max-width: 560px) {
  .plots { grid-template-columns: repeat(2, 1fr); }
  .plot { border-right: 0; }
  .stratum { grid-template-columns: 1fr; gap: 10px; }
  .spark-col { display: none; }
  .nav .wrap { gap: 12px; }
  .nav .join { padding: 9px 12px; }
  .join .long { display: none; }
  .join .short { display: inline; }
  .motif { width: 30vw; height: 30vw; top: 70px; right: 4vw; }
  .event-row { grid-template-columns: 70px 1fr; }
  .event-row .going { grid-row: auto; grid-column: 2; text-align: left; }
  .chart-panel { padding: 18px; }
  .corner-stats { grid-template-columns: repeat(3, 1fr); }
  .hp { grid-template-columns: 1fr 80px; }
  .hp .hp-bar { grid-column: 1 / -1; grid-row: 2; }
  .tactic { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
