/* ArwoGames.com - dark crimson / silver storefront */
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/Cinzel-W700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("/assets/fonts/NotoSans-W400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("/assets/fonts/NotoSans-W600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #07050a;
  --bg-2: #0e0a10;
  --panel: rgba(20, 14, 20, .82);
  --panel-solid: #140e14;
  --panel-2: rgba(32, 22, 30, .9);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e9e4e6;
  --muted: #a49ba1;
  --dim: #6f666c;
  --red: #d7192f;
  --red-2: #ff3049;
  --red-dark: #7d0d1a;
  --silver: #dfe3ea;
  --gold: #e0b45a;
  --green: #5fd27a;
  --blue: #4aa8ff;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --head: "Cinzel", Georgia, serif;
  --body: "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --max: 1240px;
  --nav-h: 68px;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .32s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: url("/assets/bg.jpg") center top / cover no-repeat;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(215, 25, 47, .18), transparent 60%),
    linear-gradient(180deg, rgba(7, 5, 10, .55) 0%, rgba(7, 5, 10, .86) 38%, rgba(7, 5, 10, .97) 70%);
}
body.page-ready main { animation: page-in .45s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b080c; }
::-webkit-scrollbar-thumb { background: #3a2830; border-radius: 10px; border: 2px solid #0b080c; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- announcement + nav ---------- */
.announce {
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
  color: #fff; font-size: 13px; text-align: center; padding: 7px 40px; position: relative; letter-spacing: .02em;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.announce button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; opacity: .8; cursor: pointer; font-size: 18px; }

.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(8, 5, 9, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .25s, box-shadow .25s;
}
.nav.scrolled { background: rgba(8, 5, 9, .95); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img.emblem { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(215, 25, 47, .35)); transition: transform .4s; }
.brand:hover img.emblem { transform: rotate(-8deg) scale(1.06); }
.brand img.word { height: 26px; width: auto; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font: 700 13px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: 10px 14px; border-radius: 6px; position: relative; transition: color .2s; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--red-2);
  transform: scaleX(0); transition: transform .25s; box-shadow: 0 0 10px var(--red-2);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-search { position: relative; }
.nav-search input {
  width: 220px; height: 38px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05);
  padding: 0 14px 0 36px; outline: none; transition: width .3s, border-color .2s, background .2s;
}
.nav-search input:focus { width: 280px; border-color: var(--red); background: rgba(255, 255, 255, .08); }
.nav-search svg { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; opacity: .6; }
.lang-btn { background: none; border: 1px solid var(--line-2); border-radius: 6px; height: 34px; padding: 0 10px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 600; }
.lang-btn:hover { color: #fff; border-color: var(--red); }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); cursor: pointer; position: relative; }
.user-chip .avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-dark)); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 8px; min-width: 190px; padding: 6px; box-shadow: var(--shadow); display: none; }
.user-chip.open .user-menu { display: block; animation: drop .18s ease; }
.user-menu a, .user-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; background: none; border: 0; cursor: pointer; color: var(--text); font-size: 14px; }
.user-menu a:hover, .user-menu button:hover { background: rgba(215, 25, 47, .15); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.burger span { display: block; height: 2px; background: #fff; margin: 6px 8px; transition: .25s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 14px;
  letter-spacing: .03em; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--red-2), var(--red) 55%, #a8101f); color: #fff; box-shadow: 0 6px 22px rgba(215, 25, 47, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 8px 30px rgba(255, 48, 73, .55), inset 0 1px 0 rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--red); background: rgba(215, 25, 47, .12); }
.btn-steam { background: linear-gradient(180deg, #2a475e, #1b2838); color: #c7d5e0; border-color: #3d6c8d; }
.btn-steam:hover { background: linear-gradient(180deg, #33597a, #1f3247); color: #fff; }
.btn-green { background: linear-gradient(180deg, #78d45a, #4c9e31); color: #0b1a06; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 32px; font-size: 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- section headers ---------- */
.section { padding: 34px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-title {
  font: 700 20px/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; margin: 0;
  background: linear-gradient(180deg, #fff, #b9bec8); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: flex; align-items: center; gap: 12px;
}
.sec-title::before { content: ""; width: 4px; height: 22px; background: var(--red); box-shadow: 0 0 12px var(--red); border-radius: 2px; }
.sec-link { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.sec-link:hover { color: var(--red-2); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 8px 0; }

/* ---------- hero carousel (store front) ---------- */
.hero { position: relative; margin-top: 26px; }
.hero-stage { position: relative; height: 470px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #000; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.active { opacity: 1; visibility: visible; }
.slide .bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); transition: transform 7s ease-out; }
.slide.active .bgimg { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 3, 6, .92) 0%, rgba(5, 3, 6, .55) 45%, rgba(5, 3, 6, 0) 75%), linear-gradient(0deg, rgba(5, 3, 6, .85), transparent 45%); }
.slide-body { position: absolute; z-index: 2; left: 56px; bottom: 56px; max-width: 560px; }
.slide.active .slide-body > * { animation: rise .7s ease both; }
.slide.active .slide-body > *:nth-child(2) { animation-delay: .08s; }
.slide.active .slide-body > *:nth-child(3) { animation-delay: .16s; }
.slide.active .slide-body > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.slide-logo { max-height: 120px; max-width: 360px; margin-bottom: 14px; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .7)); }
.slide-kicker { display: inline-block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--red-2); font-weight: 600; margin-bottom: 8px; }
.slide h2 { font: 700 44px/1.1 var(--head); margin: 0 0 12px; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); letter-spacing: .03em; }
.slide p { color: #d5cdd1; font-size: 17px; margin: 0 0 22px; }
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 80px; border: 0; cursor: pointer; background: rgba(0, 0, 0, .35); color: #fff; font-size: 26px; border-radius: 6px; opacity: 0; transition: opacity .25s, background .2s; }
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(215, 25, 47, .7); }
.hero-arrow.prev { left: 12px; } .hero-arrow.next { right: 12px; }
.hero-thumbs { display: flex; gap: 10px; margin-top: 12px; justify-content: center; }
.hero-thumbs button { width: 54px; height: 5px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .18); cursor: pointer; overflow: hidden; position: relative; padding: 0; }
.hero-thumbs button.active::after { content: ""; position: absolute; inset: 0; background: var(--red-2); animation: fill var(--dur, 7s) linear both; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } }

/* ---------- category pills ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat {
  position: relative; height: 96px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: 14px; font: 700 15px/1 var(--head); letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(135deg, rgba(215, 25, 47, .28), rgba(20, 14, 20, .9) 60%); transition: transform .25s, border-color .25s, box-shadow .25s;
}
.cat svg { position: absolute; right: 10px; top: 10px; width: 46px; height: 46px; opacity: .3; transition: opacity .25s, transform .4s; }
.cat:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 10px 30px rgba(215, 25, 47, .25); }
.cat:hover svg { opacity: .8; transform: rotate(-8deg) scale(1.1); }
.cat small { display: block; font: 400 12px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 6px; }

/* ---------- game cards ---------- */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 48, 73, .55); box-shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 48, 73, .2); }
.card .thumb { aspect-ratio: 460 / 215; background: #0b080c center / cover no-repeat; position: relative; overflow: hidden; }
.card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 50%); opacity: .7; transition: opacity .3s; }
.card:hover .thumb::after { opacity: .3; }
.card .thumb .ph, .ph-art { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; font: 700 22px/1.15 var(--head); letter-spacing: .06em; background: radial-gradient(circle at 70% 20%, var(--accent, var(--red)) 0, transparent 55%), linear-gradient(135deg, #1b1017, #07050a); color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); color: var(--muted); white-space: nowrap; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.badge { position: absolute; z-index: 2; top: 10px; left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px); }
.badge.coming { color: var(--gold); border: 1px solid rgba(224, 180, 90, .45); }
.badge.early { color: var(--blue); border: 1px solid rgba(74, 168, 255, .45); }
.badge.new { color: var(--green); border: 1px solid rgba(95, 210, 122, .45); }
.badge.right { left: auto; right: 10px; }
.badge.inline { position: static; display: inline-block; }
.platform-icons { display: flex; gap: 6px; color: var(--muted); }
.platform-icons svg { width: 15px; height: 15px; }

.price { display: flex; align-items: center; gap: 0; border-radius: 4px; overflow: hidden; font-weight: 600; font-size: 14px; }
.price .disc { background: #4c6b22; color: #beee11; padding: 4px 7px; font-weight: 700; }
.price .vals { background: rgba(0, 0, 0, .35); padding: 2px 8px; display: flex; flex-direction: column; line-height: 1.15; align-items: flex-end; }
.price .old { text-decoration: line-through; color: var(--dim); font-size: 11px; }
.price .now { color: #fff; }
.price.free .vals { padding: 4px 9px; }
.price.free .now { color: var(--green); }
.price.soon .now { color: var(--gold); }

/* featured big tile (steam spotlight) */
.spot { display: grid; grid-template-columns: 1.6fr 1fr; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); min-height: 340px; transition: border-color .25s, box-shadow .25s; }
.spot:hover { border-color: rgba(255, 48, 73, .5); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.spot .media { background: #000 center / cover no-repeat; position: relative; min-height: 300px; }
.spot .info { padding: 24px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, rgba(40, 18, 26, .7), rgba(14, 10, 14, .95)); }
.spot .info h3 { font: 700 26px/1.15 var(--head); margin: 0; letter-spacing: .04em; }
.spot .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spot .shots div { aspect-ratio: 16/9; border-radius: 6px; background: #000 center / cover; opacity: .85; transition: opacity .2s; }
.spot .shots div:hover { opacity: 1; }

/* horizontal scroller */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

/* empty state */
.empty {
  border: 1px dashed var(--line-2); border-radius: 12px; padding: 54px 24px; text-align: center; color: var(--muted);
  background: linear-gradient(180deg, rgba(20, 14, 20, .65), rgba(20, 14, 20, .35));
}
.empty img { width: 84px; margin: 0 auto 16px; opacity: .85; filter: drop-shadow(0 0 18px rgba(215, 25, 47, .45)); animation: float 4s ease-in-out infinite; }
.empty h3 { font: 700 20px/1.2 var(--head); color: #fff; margin: 0 0 8px; letter-spacing: .06em; }
.empty p { margin: 0 auto 18px; max-width: 520px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- page header ---------- */
.page-head { padding: 54px 0 26px; position: relative; }
.page-head h1 { font: 700 40px/1.1 var(--head); margin: 0 0 8px; letter-spacing: .05em; background: linear-gradient(180deg, #fff, #c3c7cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { color: var(--muted); margin: 0; font-size: 16px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.crumbs a:hover { color: var(--red-2); }

/* ---------- store browse ---------- */
.browse { display: grid; grid-template-columns: 1fr 270px; gap: 22px; align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; backdrop-filter: blur(6px); }
.panel h4 { margin: 0 0 10px; font: 700 12px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 4px; cursor: pointer; border-radius: 5px; font-size: 14px; }
.check:hover { background: rgba(255, 255, 255, .04); }
.check input { accent-color: var(--red); width: 16px; height: 16px; }
.input, .select, textarea.input {
  width: 100%; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35);
  padding: 0 12px; outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215, 25, 47, .18); }
.select option { background: #140e14; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .input { flex: 1; min-width: 200px; }
.toolbar .select { width: 210px; }
.list-row {
  display: grid; grid-template-columns: 230px 1fr auto; gap: 16px; align-items: center; padding: 10px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; transition: background .2s, border-color .2s, transform .2s;
}
.list-row:hover { background: rgba(60, 24, 34, .75); border-color: rgba(255, 48, 73, .4); transform: translateX(3px); }
.list-row .thumb { aspect-ratio: 460/215; border-radius: 5px; background: #000 center / cover; position: relative; overflow: hidden; }
.list-row h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.count-note { color: var(--muted); font-size: 13px; margin-bottom: 10px; }

/* ---------- game detail ---------- */
.g-hero { position: relative; margin-top: 0; padding-top: 34px; }
.g-hero .backdrop { position: absolute; inset: 0 0 auto; height: 620px; background: center / cover no-repeat; z-index: -1; mask-image: linear-gradient(180deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); opacity: .5; }
.g-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.g-title h1 { font: 700 40px/1.1 var(--head); margin: 0; letter-spacing: .04em; }
.g-main { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
.gallery .stage { aspect-ratio: 16/9; border-radius: 10px; background: #000 center / cover no-repeat; border: 1px solid var(--line); position: relative; overflow: hidden; }
.gallery .stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery .strip { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery .strip button { flex: 0 0 120px; aspect-ratio: 16/9; border-radius: 6px; border: 2px solid transparent; background: #000 center / cover; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; position: relative; }
.gallery .strip button.active, .gallery .strip button:hover { opacity: 1; border-color: var(--red-2); }
.gallery .strip button.video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; text-shadow: 0 0 10px #000; }
.g-side { display: flex; flex-direction: column; gap: 14px; }
.g-side .capsule { aspect-ratio: 460/215; border-radius: 8px; background: #000 center / cover; position: relative; overflow: hidden; border: 1px solid var(--line); }
.g-side .short { color: #cfc6cb; font-size: 14px; margin: 0; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.meta dt { color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; padding-top: 2px; }
.meta dd { margin: 0; color: var(--text); }
.buybox {
  margin-top: 22px; border-radius: 10px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(90deg, rgba(90, 18, 32, .75), rgba(24, 16, 22, .9)); border: 1px solid rgba(255, 48, 73, .3); flex-wrap: wrap;
}
.buybox h3 { margin: 0; font-size: 20px; font-weight: 600; }
.buybox .acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.g-cols { display: grid; grid-template-columns: 1fr 360px; gap: 20px; margin-top: 22px; }
.desc { white-space: pre-line; color: #d6ced2; }
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req pre { margin: 0; white-space: pre-line; font: 400 13px/1.7 var(--body); color: #c9c1c5; }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { padding-left: 24px; position: relative; font-size: 14px; }
.feature-list li::before { content: "◆"; position: absolute; left: 4px; color: var(--red-2); font-size: 11px; top: 3px; }

/* ---------- news ---------- */
.news-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.news-card:hover { transform: translateY(-3px); border-color: rgba(255, 48, 73, .5); }
.news-card .img { aspect-ratio: 16/8; background: #0b080c center / cover; }
.news-card .txt { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.news-card h3 { margin: 0; font-size: 17px; font-weight: 600; }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; }
.news-date { font-size: 12px; color: var(--red-2); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.article { max-width: 860px; margin: 0 auto; }
.article .cover { aspect-ratio: 16/7; border-radius: 12px; background: #000 center / cover; margin-bottom: 22px; border: 1px solid var(--line); }
.article .content { white-space: pre-line; font-size: 16px; color: #d9d1d5; line-height: 1.8; }

/* ---------- forms / auth ---------- */
.auth { min-height: calc(100vh - var(--nav-h) - 200px); display: grid; place-items: center; padding: 50px 0; }
.auth-card { width: min(440px, 100%); background: rgba(16, 10, 16, .88); border: 1px solid var(--line-2); border-radius: 14px; padding: 34px; box-shadow: var(--shadow); backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--red-2), transparent); }
.auth-card .emb { width: 74px; margin: 0 auto 10px; filter: drop-shadow(0 0 16px rgba(215, 25, 47, .5)); }
.auth-card h1 { text-align: center; font: 700 24px/1.2 var(--head); margin: 0 0 6px; letter-spacing: .08em; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.form-msg { min-height: 20px; font-size: 13px; margin-bottom: 8px; }
.form-msg.err { color: #ff6b7d; } .form-msg.ok { color: var(--green); }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--red-2); font-weight: 600; }

/* ---------- download / support ---------- */
.dl-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center; padding: 26px; border-radius: 14px; background: linear-gradient(120deg, rgba(90, 16, 30, .65), rgba(14, 10, 14, .9)); border: 1px solid rgba(255, 48, 73, .25); }
.dl-hero img { filter: drop-shadow(0 10px 40px rgba(215, 25, 47, .4)); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -12px; left: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-weight: 700; font-size: 13px; box-shadow: 0 0 14px var(--red); }
.step h4 { margin: 8px 0 6px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; padding: 0 16px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(255, 48, 73, .4); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--red-2); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 14px; color: var(--muted); }
.prose { max-width: 860px; color: #d2cacf; }
.prose h2 { font: 700 20px/1.3 var(--head); color: #fff; letter-spacing: .05em; margin: 28px 0 8px; }

/* ---------- market ---------- */
.market-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.market-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); padding: 0 12px; font-weight: 600; }
.market-table td { background: var(--panel); padding: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.market-table td:first-child { border-left: 1px solid var(--line); border-radius: 8px 0 0 8px; }
.market-table td:last-child { border-right: 1px solid var(--line); border-radius: 0 8px 8px 0; }
.rarity-common { color: #d9d9d9; } .rarity-uncommon { color: #6ad46a; } .rarity-rare { color: #4aa8ff; } .rarity-epic { color: #c06bff; } .rarity-legendary { color: #ffae35; }

/* ---------- studio strip / partners ---------- */
.about-strip { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: center; padding: 34px; border-radius: 14px; background: linear-gradient(120deg, rgba(14, 10, 14, .92), rgba(70, 12, 24, .55)); border: 1px solid var(--line); overflow: hidden; position: relative; }
.about-strip h2 { font: 700 30px/1.15 var(--head); margin: 0 0 10px; letter-spacing: .05em; }
.about-strip .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.about-strip .stat { background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 8px; padding: 14px; text-align: center; }
.about-strip .stat b { display: block; font: 700 26px/1 var(--head); color: var(--red-2); margin-bottom: 4px; }
.about-strip .stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.portal { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.portal:hover { border-color: var(--red); transform: translateY(-2px); }
.portal img, .portal .pi { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: rgba(0, 0, 0, .3); flex-shrink: 0; display: grid; place-items: center; font: 700 18px var(--head); }
.portal b { display: block; } .portal small { color: var(--muted); }

/* ---------- footer ---------- */
footer { margin-top: 60px; background: linear-gradient(180deg, rgba(6, 4, 7, .7), #040305 40%); border-top: 1px solid var(--line); position: relative; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding: 46px 0 30px; }
.foot-brand img { width: 190px; margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 340px; margin: 0 0 16px; }
footer h5 { font: 700 13px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; margin: 6px 0 16px; color: #fff; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
footer ul a { color: var(--muted); font-size: 14px; transition: color .2s, padding .2s; }
footer ul a:hover { color: var(--red-2); padding-left: 4px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: background .2s, border-color .2s, transform .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { border-top: 1px solid var(--line); padding: 18px 0 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--dim); font-size: 13px; flex-wrap: wrap; }
.foot-bottom .emb { width: 26px; display: inline-block; vertical-align: middle; margin-right: 8px; opacity: .8; }

/* ---------- toast / modal / portal transition ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--panel-solid); border: 1px solid var(--line-2); border-left: 3px solid var(--red); padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow); min-width: 260px; max-width: 380px; font-size: 14px; animation: toast-in .3s ease both; }
.toast.ok { border-left-color: var(--green); }
.toast.out { animation: toast-out .3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
.modal-bg { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
.modal { width: min(520px, 100%); background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); animation: pop .25s ease; }
.modal h3 { margin: 0 0 10px; font: 700 20px/1.2 var(--head); letter-spacing: .05em; }
.modal p { color: var(--muted); }
.modal .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.portal-veil { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: radial-gradient(circle, rgba(60, 8, 18, .96), #030203 70%); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.portal-veil.on { opacity: 1; pointer-events: all; }
.portal-veil img { width: 120px; filter: drop-shadow(0 0 30px rgba(255, 48, 73, .7)); animation: pulse 1.2s ease-in-out infinite; }
.portal-veil div { margin-top: 14px; font: 700 14px/1 var(--head); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-align: center; }
@keyframes pulse { 50% { transform: scale(1.08); filter: drop-shadow(0 0 50px rgba(255, 48, 73, .9)); } }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-4, .rail { grid-auto-columns: calc((100% - 32px) / 3); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .g-main, .g-cols { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .nav-search input { width: 160px; } .nav-search input:focus { width: 200px; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; background: rgba(8, 5, 9, .98); padding: 12px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav.open .nav-links { transform: none; }
  .burger { display: block; }
  .nav-search { display: none; }
  .browse, .spot, .dl-hero, .about-strip { grid-template-columns: 1fr; }
  .filters { position: static; }
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .hero-stage { height: 400px; }
  .slide-body { left: 24px; right: 24px; bottom: 34px; }
  .slide h2 { font-size: 30px; }
  .list-row { grid-template-columns: 140px 1fr; }
  .list-row > :last-child { grid-column: 1 / -1; justify-self: end; }
  .steps { grid-template-columns: 1fr; }
  .req { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 85%; }
  .cats { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .brand img.word { display: none; }
  .page-head h1, .g-title h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
