/* World in Game — 2026 */
:root {
  --bg: #12101f;
  --bg-2: #1b1830;
  --card: #221e3a;
  --line: #34305a;
  --text: #eeeaff;
  --muted: #a39dc8;
  --accent: #ffcc33;
  --accent-2: #ff5c8a;
  --radius: 14px;
  --font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 80% -10%, #2a2160 0%, transparent 60%), var(--bg);
  color: var(--text); font: 16px/1.55 var(--font);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
main.wrap { flex: 1; padding-block: 28px 56px; }
.muted { color: var(--muted); font-size: .9rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(18 16 31 / .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.logo-mark { color: var(--accent); font-size: 1.1rem; transform: rotate(12deg); }
.logo-in { color: var(--accent-2); font-weight: 600; font-style: italic; margin: 0 2px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a[aria-current="page"] { color: #1a1400; background: var(--accent); }

/* hero */
.hero { margin-bottom: 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 8px 0 6px; letter-spacing: -.03em; }
.hero h1 span { color: var(--accent); }
.lede { color: var(--muted); margin: 0 0 22px; font-size: 1.1rem; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 16px; }
.section-head h1, .section-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }

/* grid + cards */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-featured { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.card a:hover, .card a:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 30px rgb(0 0 0 / .35); outline: none; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-play { position: absolute; inset: auto 10px 10px auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #1a1400; font-size: .9rem; opacity: 0; transform: scale(.8); transition: .15s ease; }
.card a:hover .card-play, .card a:focus-visible .card-play { opacity: 1; transform: none; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-weight: 700; line-height: 1.25; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.tag { background: var(--bg-2); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; }

/* pager */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pager a { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--accent); }
.pager a[aria-current="page"] { background: var(--accent); color: #1a1400; border-color: var(--accent); }

/* game page */
.crumbs { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.game h1 { margin: 0 0 16px; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.02em; }
.stage { width: min(100%, var(--w)); aspect-ratio: var(--ar); margin: 0 auto 24px; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.player { width: 100%; height: 100%; border: 0; display: grid; place-items: center; }
.player ruffle-player, .player ruffle-object { width: 100%; height: 100%; }
.player-missing { color: var(--muted); margin: 0; padding: 24px; text-align: center; }
.play-btn { font: 800 1.2rem var(--font); padding: 14px 34px; border-radius: 999px; border: 0; cursor: pointer; background: var(--accent); color: #1a1400; box-shadow: 0 0 0 6px rgb(255 204 51 / .2); }
.play-btn:hover { box-shadow: 0 0 0 10px rgb(255 204 51 / .25); }
.play-btn:disabled { opacity: .7; cursor: progress; }
.game-info { max-width: 760px; margin: 0 auto 40px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 16px 0 0; }
.facts dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 0; font-weight: 600; }

/* misc */
.notfound { text-align: center; padding: 60px 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips a { padding: 8px 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; }
.empty { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 20px 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  .nav { margin-left: 0; overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* worldinpassion tema */
body.theme-wip {
  --bg: #170d16; --bg-2: #241322; --card: #2c1729; --line: #4a2342;
  --text: #fbecf5; --muted: #c79bb7; --accent: #ff4f8b; --accent-2: #ffb35c;
  background: radial-gradient(1200px 600px at 80% -10%, #4a1838 0%, transparent 60%), var(--bg);
}
body.theme-wip .nav a[aria-current="page"], body.theme-wip .pager a[aria-current="page"],
body.theme-wip .play-btn, body.theme-wip .card-play { color: #2a0614; }
body.theme-wip .play-btn { box-shadow: 0 0 0 6px rgb(255 79 139 / .22); }
.gate { max-width: 560px; margin: 8vh auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 28px; }
.gate h1 { margin-top: 0; }
.gate .gate-yes { background: var(--accent); color: #1a1400; border-color: var(--accent); font-weight: 700; }
body.theme-wip .gate .gate-yes { color: #2a0614; }

/* reklama */
.ad { position: relative; margin: 0 auto 36px; max-width: 950px; }
.ad a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.ad img { width: 100%; height: auto; }
.ad-label { position: absolute; top: 6px; right: 8px; font-size: .7rem; padding: 1px 6px; border-radius: 4px; background: rgb(0 0 0 / .55); color: #fff; }
#side-models a { position: fixed; bottom: -5px; z-index: 0; }
#side-models img { display: block; height: min(900px, calc(100vh - 120px)); width: auto; opacity: 0; transition: opacity 1s ease; }
#side-models img.on { opacity: 1; }
main.wrap, .site-footer { position: relative; z-index: 1; }

/* AI ženkliukas */
.badge-ai { position: absolute; top: 8px; right: 8px; font: 800 .7rem/1 var(--font); letter-spacing: .06em;
  padding: 4px 7px; border-radius: 6px; background: rgb(18 16 31 / .8); color: var(--accent); border: 1px solid var(--accent); }
.badge-ai-inline { position: static; display: inline-block; margin-right: 6px; vertical-align: 1px; }

/* rezultatų lentelė */
.scores { max-width: 560px; margin: 0 auto 48px; }
.score-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.score-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); align-items: center; }
.score-list li:first-child { border-top: 0; }
.score-list .pos { font-weight: 800; color: var(--muted); }
.score-list li:nth-child(1) .pos { color: var(--accent); }
.score-list .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-list .pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.score-list li.me { background: rgb(255 204 51 / .12); }
