/* Orienteer Online – same look as the in-game menu (OrMenuStyle.h): dark, orange accent, Barlow Condensed + Inter */
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/BarlowCondensed-Bold.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/BarlowCondensed-ExtraBold.ttf"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Medium.ttf"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Bold.ttf"); font-weight: 700; font-display: swap; }

:root {
  --bg: #070908; --bg2: #0b0e0c; --text: #f2f4f1; --soft: #c9d0ca; --muted: #a7afa9; --faint: #8d958f;
  --accent: #ff7a1f; --accent-hover: #ff9045; --accent-text: #120a04; --accent-tint: rgba(255, 122, 31, .16);
  --glass: rgba(10, 13, 11, .78); --surface: rgba(255, 255, 255, .04); --edge: rgba(255, 255, 255, .07);
  --hair: rgba(255, 255, 255, .10); --green: #6fcf7a; --blue: #7fb4ff; --pad: clamp(20px, 5vw, 72px);
  --title: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--title); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0; }
.eyebrow { color: var(--accent); font: 700 13px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; }

/* OL control flag: white/orange, split diagonally */
.flag { width: 22px; height: 22px; display: inline-block; border-radius: 3px; flex: none;
  background: linear-gradient(135deg, #fff 0 50%, var(--accent) 50% 100%); box-shadow: 0 0 0 1px rgba(0,0,0,.25) inset; }
.flag.big { width: 64px; height: 64px; border-radius: 8px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(7, 9, 8, .86); backdrop-filter: blur(12px); border-color: var(--hair); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .word { font: 800 26px/1 var(--title); letter-spacing: .12em; }
.brand .online { font: 700 11px/1 var(--body); letter-spacing: .22em; color: var(--accent); padding-top: 4px; }
.links { display: flex; gap: 28px; }
.links a { color: var(--soft); font-weight: 500; position: relative; padding: 6px 0; }
.links a:hover { color: var(--text); }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 28px; }
.lang { display: flex; border: 1px solid var(--hair); border-radius: 999px; padding: 3px; background: rgba(255,255,255,.04); }
.lang a { font: 700 12px/1 var(--body); letter-spacing: .12em; color: var(--muted); padding: 7px 10px; border-radius: 999px; transition: background .15s, color .15s; }
.lang a:hover { color: var(--text); }
.lang a.on { background: var(--accent); color: var(--accent-text); }
.lang a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* hero */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: -4%; background: url("assets/img/hero.jpg") center 40% / cover no-repeat;
  transform: scale(1.06); animation: drift 26s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,9,8,.94) 0%, rgba(7,9,8,.7) 42%, rgba(7,9,8,.25) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(7,9,8,0) 38%); }
@keyframes drift { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(214, 137, 64, .32); pointer-events: none; }
.contours path { stroke-width: 1.4; stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 4.5s ease-out forwards; }
.contours path.index { stroke-width: 2.6; }
.contours path:nth-child(2) { animation-delay: .25s; } .contours path:nth-child(3) { animation-delay: .5s; }
.contours path:nth-child(4) { animation-delay: .75s; } .contours path:nth-child(n+5) { animation-delay: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-inner { position: relative; padding: 140px var(--pad) 120px; max-width: 980px; }
.hero h1 { font-size: clamp(56px, 9vw, 132px); }
.hero h1 span { color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid var(--hair); backdrop-filter: blur(8px); color: var(--soft); font-size: 14px; font-weight: 500; }
.badge b { background: var(--accent); color: var(--accent-text); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.badge:hover { color: var(--text); border-color: rgba(255,122,31,.5); }
.lead { color: var(--soft); font-size: clamp(17px, 1.6vw, 21px); max-width: 640px; margin: 26px 0 36px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 12px; font-weight: 700; font-size: 17px; transition: background .15s, transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--accent-text); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-glass { background: rgba(255,255,255,.07); border: 1px solid var(--hair); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.12); }
.keys { position: absolute; left: var(--pad); right: var(--pad); bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px;
  color: var(--faint); font-size: 13px; border-top: 1px solid var(--hair); padding-top: 16px; }
.keys b { color: var(--text); font-weight: 700; margin-right: 6px; }

/* sections */
.section { padding: 110px var(--pad); position: relative; }
.section.alt { background: var(--bg2); border-block: 1px solid var(--edge); }
.head { max-width: 760px; margin-bottom: 48px; }
.head h2 { font-size: clamp(40px, 5vw, 72px); }
.sub { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.modes { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ideas { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--edge); border-radius: 16px; padding: 26px; position: relative;
  transition: border-color .2s, transform .2s, background .2s; }
.card:hover { border-color: rgba(255,122,31,.45); transform: translateY(-3px); background: rgba(255,255,255,.055); }
.card h3 { font-size: 30px; margin: 4px 0 10px; }
.card p { color: var(--soft); margin: 0; }
.num { font: 800 15px/1 var(--title); color: var(--accent); letter-spacing: .1em; }
.mode { display: flex; flex-direction: column; gap: 6px; min-height: 300px; overflow: hidden; }
.mode .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); margin-bottom: 8px; }
.mode .icon svg { width: 24px; height: 24px; }
.mode ul { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 6px; padding-top: 18px; }
.mode li { color: var(--muted); font-size: 14px; padding-left: 18px; position: relative; }
.mode li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.mode.kommt { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)); }
.chip { position: absolute; top: 22px; right: 22px; font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; }
.chip.da { background: rgba(111,207,122,.14); color: var(--green); }
.chip.arbeit { background: var(--accent-tint); color: var(--accent); }
.chip.kommt { background: rgba(127,180,255,.13); color: var(--blue); }
.chip.idee { background: rgba(255,255,255,.08); color: var(--soft); }

/* news (neu in 0.6) */
.news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .news { grid-template-columns: 1fr; } }
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-card .pic { aspect-ratio: 16/9; overflow: hidden; cursor: zoom-in; background: #111; border-bottom: 1px solid var(--edge); }
.news-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.news-card:hover .pic img { transform: scale(1.04); }
.news-card .body { padding: 22px 24px 26px; }
.news-card h3 { font-size: 28px; }
.news-card.text-only { background: radial-gradient(120% 120% at 0% 0%, rgba(255,122,31,.12), rgba(255,255,255,.03) 60%); justify-content: flex-end; }
.news-card.text-only .body { padding-top: 60px; }

/* demo */
.video { margin: 0 0 56px; border-radius: 16px; overflow: hidden; border: 1px solid var(--edge); background: #000; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }
.video figcaption { padding: 12px 18px; color: var(--muted); font-size: 14px; background: var(--surface); }
.scenes { display: grid; gap: 56px; }
.scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.scene.flip .pic { order: 2; }
.scene .pic { border-radius: 16px; overflow: hidden; border: 1px solid var(--edge); background: #111; cursor: zoom-in; max-height: 640px; display: flex; justify-content: center; }
.scene .pic img { display: block; max-width: 100%; max-height: 640px; object-fit: contain; }
.scene h3 { font-size: clamp(32px, 3.4vw, 46px); margin: 8px 0 14px; }
.scene p { color: var(--soft); margin: 0; }
.ranking { list-style: none; padding: 0; margin: 22px 0 10px; display: grid; gap: 8px; }
.ranking li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--edge); }
.ranking li.win { border-color: rgba(255,122,31,.55); background: var(--accent-tint); }
.ranking .rank { font: 800 20px/1 var(--title); color: var(--accent); }
.ranking .who { color: var(--text); font-weight: 500; }
.ranking .time { font: 800 24px/1 var(--title); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.scene .foot { color: var(--faint); font-size: 14px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.shot { position: relative; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #111; border: 1px solid var(--edge); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.shot:hover img { transform: scale(1.05); }
.shot span { position: absolute; left: 16px; bottom: 14px; font: 700 15px/1 var(--body); text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 45%); pointer-events: none; }
.shot { aspect-ratio: 16/9; }
.shot:nth-child(4n+1), .shot:nth-child(4n+4) { grid-column: span 7; } .shot:nth-child(4n+2), .shot:nth-child(4n+3) { grid-column: span 5; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5,7,6,.94); display: grid; place-items: center; padding: 4vw; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; }
.lightbox p { color: var(--soft); margin: 14px 0 0; text-align: center; }

/* board */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.col { background: var(--surface); border: 1px solid var(--edge); border-radius: 16px; padding: 22px; }
.col h3 { font-size: 26px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.col h3 .count { font: 700 13px/1 var(--body); color: var(--faint); margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.da { background: var(--green); } .dot.arbeit { background: var(--accent); } .dot.kommt { background: var(--blue); }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--edge); color: var(--soft); }
.item:first-of-type { border-top: 0; }
.item .mark { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; margin-top: 2px; font-size: 13px; font-weight: 700; }
.da .mark { background: rgba(111,207,122,.16); color: var(--green); }
.arbeit .mark { background: var(--accent-tint); color: var(--accent); }
.arbeit .mark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(.55); opacity: .5; } }
.kommt .mark { border: 1.5px dashed rgba(127,180,255,.6); }

/* ideas, join, footer */
.idea { padding: 22px; }
.idea h3 { font-size: 24px; margin: 0 0 8px; }
.join { padding-top: 40px; }
.join-card { display: flex; gap: 28px; align-items: center; padding: 40px; border-radius: 20px; border: 1px solid rgba(255,122,31,.35);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,122,31,.16), rgba(255,255,255,.02) 55%); }
.join-card h2 { font-size: 44px; margin-bottom: 10px; }
.join-card p { color: var(--soft); margin: 0; max-width: 760px; }
.footer { padding: 40px var(--pad) 50px; border-top: 1px solid var(--hair); color: var(--faint); font-size: 13px; display: grid; gap: 14px; }
.brand.small .word { font-size: 18px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .links { display: none; }
  .board { grid-template-columns: 1fr; }
  .gallery .shot { grid-column: span 12 !important; aspect-ratio: 16/9; }
  .scene { grid-template-columns: 1fr; gap: 22px; }
  .scene.flip .pic { order: 0; }
  .scene .pic img { max-height: 520px; }
  .section { padding: 80px var(--pad); }
  .join-card { flex-direction: column; align-items: flex-start; padding: 28px; }
  .keys { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .contours path, .arbeit .mark::before { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
