:root {
    --bg: #0b0d10;
    --surface: #14171c;
    --surface-2: #1b1f26;
    --border: #262b34;
    --text: #eef1f5;
    --muted: #8b93a1;
    --accent: #ff6a2b;
    --accent-hover: #ff8250;
    --youtube: #ff3b3b;
    --twitch: #a970ff;
    --tiktok: #25f4ee;
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Manrope", system-ui, sans-serif; }

a { color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.muted { color: var(--muted); }

.topbar { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 800; letter-spacing: .02em; text-decoration: none; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn--primary { background: var(--accent); color: #140700; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--small { height: 34px; padding: 0 14px; font-size: 14px; }

.hero {
    position: relative; display: flex; align-items: center; min-height: 600px;
    background: var(--banner) center / cover no-repeat;
}
.hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 16, .35) 40%, rgba(11, 13, 16, .55) 100%),
        rgba(11, 13, 16, .45);
}
.hero__content {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center; gap: 48px; padding-top: 110px; padding-bottom: 56px;
}
.hero__banner {
    display: block; width: 100%; height: auto; aspect-ratio: 616 / 353; object-fit: cover;
    border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}
.hero__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.badge { padding: 5px 10px; border-radius: 6px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 700; }
.hero__release { margin-left: 6px; color: var(--accent); font-weight: 700; font-size: 14px; }
.hero__title { margin: 0 0 16px; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.05; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); font-size: 14px; font-weight: 600; }
.hero__pitch { margin: 0 0 28px; font-size: 17px; line-height: 1.55; color: #c9ced7; }
.credits { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: -10px 0 26px; }
.credits div { display: flex; flex-direction: column; gap: 2px; }
.credits dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.credits dd { margin: 0; font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero__media { display: flex; flex-direction: column; gap: 14px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.stores .btn { flex: 0 1 calc(50% - 5px); white-space: nowrap; padding: 0 18px; }
.stores .btn:only-child { flex-basis: 100%; }
.btn__icon { width: 18px; height: 18px; }
.btn--light { background: rgba(255, 255, 255, .92); color: #0b0d10; }
.btn--light:hover { background: #fff; }

.subscribe { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 520px; }
.subscribe__label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 14px; font-weight: 700; }
.subscribe__row { display: flex; gap: 10px; }
.subscribe__row[hidden] { display: none; }
.subscribe input {
    flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16); background: rgba(11, 13, 16, .6); color: var(--text); font: inherit;
}
.subscribe input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form__error { margin: 0; color: #ff6b6b; font-size: 14px; font-weight: 600; }
.subscribe .form__error { margin-top: 10px; }
.modal__done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.modal__done[hidden], .modal__body > [hidden], .subscribe > [hidden] { display: none; }
.subscribe__done { margin: 0; color: var(--accent); font-weight: 700; }

.section { padding-top: 24px; padding-bottom: 32px; }
.section--last { padding-bottom: 72px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section__head h2 { margin: 0; font-size: 26px; }
.section__head p { margin: 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
    display: flex; flex-direction: column; gap: 8px; padding: 22px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.stat__label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 15px; }
.stat__icon { width: 20px; height: 20px; }
.stat__value { color: var(--text); font-size: 38px; font-weight: 800; line-height: 1.1; }
.stat__sub { color: var(--muted); font-size: 14px; }
.stat__bar { height: 4px; margin-top: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.stat__bar > span { display: block; height: 100%; border-radius: 4px; background: currentColor; }
.stat--total { background: linear-gradient(160deg, #2a1608 0%, var(--surface) 70%); border-color: #4a2a14; }
.stat--total .stat__value { color: var(--accent); font-size: 44px; }
.stat--youtube { color: var(--youtube); }
.stat--twitch { color: var(--twitch); }
.stat--tiktok { color: var(--tiktok); }
.stat--youtube .stat__label, .stat--twitch .stat__label, .stat--tiktok .stat__label { color: currentColor; }

.link { color: var(--muted); font-weight: 700; text-decoration: none; }
.link:hover { color: var(--text); }

.section__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.btn--accent { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); color: #140700; }

.games__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.game { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.game__art { display: block; overflow: hidden; }
.game__art img { display: block; width: 100%; height: auto; aspect-ratio: 460 / 215; object-fit: cover; transition: transform .25s; }
.game:hover .game__art img { transform: scale(1.04); }
.game__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.game__title { margin: 0; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.game__title a { text-decoration: none; }
/* The title link covers the whole card; the store buttons sit above it. */
.game__title a::after { content: ""; position: absolute; inset: 0; }
.game__stores { position: relative; z-index: 1; }
.game__title a:hover { color: var(--accent); }
.game__date { font-size: 13px; margin-bottom: 8px; }
.game__stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.store-icon {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #0b0d10; transition: background .15s;
}
.store-icon:hover { background: #fff; }
.store-icon svg { width: 17px; height: 17px; }
.store-icon--ghost { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: var(--text); }
.store-icon--ghost:hover { background: rgba(255, 255, 255, .12); }

.cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.pitch {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 32px 36px;
    background: radial-gradient(120% 140% at 100% 0%, rgba(255, 106, 43, .28) 0%, rgba(255, 106, 43, 0) 55%), var(--surface);
    border: 1px solid #4a2a14; border-radius: var(--radius);
}
.pitch__text h2 { margin: 0 0 8px; font-size: 30px; }
.pitch__text p { margin: 0; max-width: 460px; font-size: 17px; line-height: 1.5; }
.pitch--keys { background: radial-gradient(120% 140% at 100% 0%, rgba(37, 244, 238, .14) 0%, rgba(37, 244, 238, 0) 55%), var(--surface); border-color: var(--border); }
.btn--large { height: 60px; padding: 0 40px; font-size: 18px; }

.follow {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px;
    background: linear-gradient(120deg, #1a1d24 0%, var(--surface) 60%); border: 1px solid var(--border); border-radius: var(--radius);
}
.follow__text h2 { margin: 0 0 6px; font-size: 24px; }
.follow__text p { margin: 0; }
.follow__links { display: flex; flex-wrap: wrap; gap: 12px; }
.follow__link {
    display: flex; align-items: center; gap: 12px; min-width: 200px; padding: 12px 18px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--border); text-decoration: none; transition: border-color .15s, background .15s;
}
.follow__link:hover { background: #222731; }
.follow__link svg { width: 26px; height: 26px; flex: none; }
.follow__link span { display: flex; flex-direction: column; }
.follow__link small { color: var(--muted); font-size: 13px; }
.follow__link strong { color: var(--text); }
.follow__link--steam { color: #fff; }
.follow__link--discord { color: #8c9eff; }
.follow__link--youtube { color: var(--youtube); }
.follow__link--steam:hover { border-color: #fff; }
.follow__link--discord:hover { border-color: #8c9eff; }
.follow__link--youtube:hover { border-color: var(--youtube); }

.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.tab {
    height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
    color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.tab:hover { color: var(--text); }
a.tab { display: inline-flex; align-items: center; text-decoration: none; }
.empty { margin: 0 0 12px; }
.tab.is-active { background: var(--surface-2); color: var(--text); }

.tab__count { margin-left: 4px; color: var(--muted); font-weight: 600; }
.tab.is-active .tab__count { color: var(--accent); }

.more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.more [hidden] { display: none; }
.more__count { margin: 0; font-size: 13px; }

.page-head { position: relative; background: var(--banner) center / cover no-repeat; }
.page-head__shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 16, .75) 100%); }
.page-head__content { position: relative; padding-top: 110px; padding-bottom: 28px; }
.page-head h1 { margin: 14px 0 6px; font-size: clamp(32px, 4vw, 44px); }
.page-head p { margin: 0; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }

.subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.subhead:first-of-type { margin-top: 4px; }
.subhead h3 { margin: 0; font-size: 19px; }
.content__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.video { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.video[hidden] { display: none; }
.video__thumb { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--surface); }
.video__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s; }
.video:hover .video__thumb img { transform: scale(1.04); }
.video__platform {
    position: absolute; top: 10px; left: 10px; display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 8px; background: rgba(11, 13, 16, .8);
}
.video__platform svg { width: 18px; height: 18px; }
.video__platform--youtube { color: var(--youtube); }
.video__platform--twitch { color: var(--twitch); }
.video__platform--tiktok { color: var(--tiktok); }
.video__views {
    position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px;
    background: rgba(11, 13, 16, .8); font-size: 13px; font-weight: 700;
}
.video__title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-weight: 700; line-height: 1.35;
    overflow-wrap: anywhere;
}
.video__meta { font-size: 13px; overflow-wrap: anywhere; }

.modal {
    width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); color: var(--text);
}
.modal::backdrop { background: rgba(0, 0, 0, .65); }
.modal__body { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.modal__body h3 { margin: 0; font-size: 22px; }
.modal__body p { margin: 0; }
.modal label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.modal input, .modal select, .modal textarea {
    padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg);
    color: var(--text); font: inherit; font-weight: 500;
}
.modal input:focus, .modal select:focus, .modal textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field__hint { color: var(--muted); font-size: 12px; font-weight: 500; }
.modal label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-weight: 500; cursor: pointer; }
.modal .check input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--accent); }
.field-row { display: flex; gap: 12px; }
.field-row > label { flex: 1; min-width: 0; }
.field-row > .field-row__narrow { flex: 0 0 130px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

.footer { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--border); font-size: 14px; }

@media (max-width: 980px) {
    .hero__content { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 96px; }
    .hero__media { max-width: 560px; }
    .stats__grid, .content__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .games__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .hero__pitch { font-size: 16px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .subscribe__row { flex-direction: column; }
    .stores .btn { flex-basis: 100%; }
    .subscribe__row .btn { width: 100%; }
    .subscribe input { flex: none; width: 100%; }
    .stats__grid, .content__grid, .games__grid { grid-template-columns: minmax(0, 1fr); }
    .follow { padding: 22px; }
    .cta { grid-template-columns: minmax(0, 1fr); }
    .pitch { padding: 26px 22px; }
    .pitch .btn { width: 100%; }
    .follow__links, .follow__link { width: 100%; }
    .stat__value { font-size: 32px; }
    .section__head { align-items: flex-start; flex-direction: column; }
    .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
    .tabs::-webkit-scrollbar { display: none; }
    .tab { flex: none; padding: 0 12px; }
    .toolbar { align-items: stretch; flex-direction: column; }
}
