/* Trade Routes Online website: the same look as the game (dark glass panels, one gold accent). */
:root {
  --bg: #0e1116; --panel: rgba(22, 27, 36, .88); --panel-solid: #161b24; --raise: #1f2632; --raise-2: #283142;
  --line: rgba(255, 255, 255, .09); --text: #e8ecf3; --muted: #9aa5b8; --accent: #f2b84b; --accent-ink: #1a1304;
  --good: #5fd18a; --bad: #ff7a6b; --info: #6db0ff; --radius: 12px;
  --font: Inter, 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
b { font-weight: 650; }
kbd { padding: 1px 7px; font: inherit; font-size: .85em; background: var(--raise-2); border: 1px solid var(--line); border-radius: 6px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px; padding: 10px clamp(14px, 4vw, 40px); background: rgba(14, 17, 22, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-size: 21px; font-weight: 750; letter-spacing: -.3px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--text); font-weight: 600; }
.top nav { display: flex; flex: 1; gap: 4px; flex-wrap: wrap; }
.top nav a { padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); background: var(--raise); }
.top nav a.on { color: var(--accent-ink); background: var(--accent); font-weight: 650; }

.btn { display: inline-block; padding: 12px 24px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: background .12s, transform .06s; }
.btn:hover { background: #ffcb66; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .25); }
.btn.ghost:hover { background: var(--raise); }
.btn.small { padding: 7px 14px; font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 4px; }

main { max-width: 1120px; margin: 0 auto; padding: 28px clamp(14px, 4vw, 40px) 60px; }
h1 { margin: 6px 0 12px; font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -.8px; }
h1 em { color: var(--accent); font-style: normal; }
h2 { margin: 38px 0 12px; font-size: 26px; letter-spacing: -.3px; color: var(--accent); }
h3 { margin: 22px 0 8px; font-size: 18px; }
h3 small { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: #cdd5e3; max-width: 62ch; }
.note { color: var(--muted); font-size: 14px; }
section { margin-bottom: 8px; }

.hero { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-solid); }
.hero .keyart { display: block; width: 100%; height: auto; }           /* the whole picture, with its own logo and tagline: nothing is laid over it */
.herotext { position: relative; padding: 26px clamp(16px, 3vw, 36px) 30px; }
.herotext .lead { max-width: 70ch; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 30px; }
.card, .town { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin-top: 0; color: var(--accent); }
.card p:last-child, .town p:last-child { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 36px 0; }
.stats div { text-align: center; padding: 16px 8px; background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius); }
.stats b { display: block; font-size: 32px; color: var(--accent); letter-spacing: -.5px; }
.stats span { color: var(--muted); font-size: 14px; }
.banner { position: relative; margin-top: 40px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.banner img { width: 100%; max-height: 420px; object-fit: cover; filter: brightness(.55); }
.banner div { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(18px, 4vw, 48px); max-width: 720px; }
.banner h2 { margin-top: 0; color: var(--text); font-size: clamp(28px, 5vw, 40px); }
@media (max-width: 700px) { .banner { display: flex; flex-direction: column; } .banner img { filter: none; max-height: 220px; } .banner div { position: static; padding: 18px; } }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
ul, ol { padding-left: 22px; } li { margin: 6px 0; }
.tiers { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tiers li { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); font-weight: 600; font-size: 14px; }
.t0 { color: #e8e8e8; } .t1 { color: #5fe07a; } .t2 { color: #6db0ff; } .t3 { color: #c58aff; } .t4 { color: #ffa94d; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; background: rgba(255, 255, 255, .03); }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(255, 255, 255, .03); }
table.plain td { padding: 6px 18px 6px 0; vertical-align: top; }

.map { display: block; width: 100%; height: auto; margin: 20px 0 6px; background: radial-gradient(ellipse at center, #1a2230, #121722); border: 1px solid var(--line); border-radius: 16px; }
.map .road { stroke: #b99a62; stroke-width: 3; stroke-linecap: round; opacity: .75; }
.map .town { fill: var(--accent); stroke: var(--accent-ink); stroke-width: 2; }
.map .town.city { fill: #ffd98a; } .map .town.village { fill: #cf9a37; }
.map text { fill: var(--text); font-size: 15px; font-weight: 600; paint-order: stroke; stroke: #0e1116; stroke-width: 4px; stroke-linejoin: round; }
.towns { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; margin-top: 24px; }
.town h3 { margin-top: 0; color: var(--accent); }

footer { border-top: 1px solid var(--line); padding: 26px clamp(14px, 4vw, 40px) 40px; text-align: center; color: var(--muted); font-size: 14px; }
footer p { margin: 4px 0; }
@media (max-width: 700px) { .top { flex-wrap: wrap; gap: 10px; } .top nav { order: 3; flex-basis: 100%; } }

.worldmap{margin:1.5rem 0;text-align:center}.worldmap img{max-width:100%;height:auto;border-radius:10px;border:1px solid #3a3426;box-shadow:0 6px 24px rgba(0,0,0,.45)}.worldmap figcaption{color:#a99f86;font-size:.9rem;margin-top:.5rem}

/* screenshots */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; } .gallery img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-solid); }
.gallery figcaption { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* player classes page */
.shot{margin:1rem 0;text-align:center}.shot img{max-width:100%;height:auto;border-radius:10px;border:1px solid #3a3426;box-shadow:0 6px 24px rgba(0,0,0,.45)}.shot figcaption,.model figcaption{color:#a9a08a;font-size:.9rem;margin-top:.4rem}
.models{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.model{margin:0;text-align:center}.model img{width:100%;height:auto;border-radius:10px;border:1px solid #3a3426;background:#1a2230}
.classes{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.class{background:var(--card,#171c26);border:1px solid var(--line,#2a3140);border-radius:12px;padding:14px 16px}.class h3{margin:0 0 6px;color:var(--accent)}.class h3 small{color:var(--muted);font-weight:400;font-size:.75rem;margin-left:6px}
.trs{margin:8px 0}.tr{display:grid;grid-template-columns:100px 1fr 24px;align-items:center;gap:8px;font-size:.85rem;margin:2px 0}.trbar{height:8px;background:#0e1116;border-radius:4px;overflow:hidden}.trbar i{display:block;height:100%;background:var(--accent)}.tr b{text-align:right}
.clsimg{width:100%;height:auto;border-radius:8px;border:1px solid #3a3426;margin-top:8px}

.modeltable{width:100%;border-collapse:separate;border-spacing:10px;table-layout:fixed;text-align:center}.modeltable th{color:var(--accent);font-weight:600;font-size:.95rem}.modeltable tbody th{font-size:1.05rem;width:90px;writing-mode:horizontal-tb}.modeltable td{padding:0}.modeltable img{width:100%;max-width:170px;height:auto;border-radius:10px;border:1px solid #3a3426;background:#1a2230}
@media (max-width:640px){.modeltable{border-spacing:4px}.modeltable thead th{font-size:.7rem}.modeltable tbody th{width:52px;font-size:.85rem}}
