:root {
    --bg: #111318;
    --bg-deep: #08090d;
    --surface: #181b22;
    --surface-strong: #20242d;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #f7f8fb;
    --muted: #aeb5c2;
    --muted-strong: #d8dde7;
    --cyan: #22d3ee;
    --coral: #ff6b6b;
    --lime: #a3e635;
    --gold: #ffd166;
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

body::-webkit-scrollbar-thumb {
    background: #3b4150;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: clip;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 360px),
        var(--bg);
}

.site-main {
    flex: 1;
}

.container {
    width: min(100% - 48px, 1180px);
    margin-inline: auto;
}

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: background 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}

.navbar.is-scrolled {
    background: rgba(12, 14, 19, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-inner {
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cyan), var(--coral));
    color: #090a0f;
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link,
.nav-cta {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
}

.nav-cta {
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--text);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-section {
    position: relative;
    min-height: 92vh;
    padding: 148px 0 96px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-deep);
}

.hero-backdrop,
.game-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
}

.hero-overlay,
.game-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 9, 13, 0.94) 0%, rgba(8, 9, 13, 0.76) 42%, rgba(8, 9, 13, 0.22) 100%),
        linear-gradient(180deg, rgba(8, 9, 13, 0.42), rgba(8, 9, 13, 0.96));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100% - 48px, 1180px);
    margin-inline: auto;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--lime);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    max-width: 720px;
    font-size: 4.75rem;
    line-height: 0.98;
    font-weight: 600;
}

.hero-copy {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--muted-strong);
    font-size: 1.18rem;
    line-height: 1.75;
}

.hero-actions,
.featured-actions,
.cta-actions,
.store-actions,
.form-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--text);
    color: #111318;
}

.button-primary:hover {
    background: var(--gold);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line-strong);
    color: var(--text);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-stats {
    margin-top: 54px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stats span {
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.hero-stats strong {
    color: var(--text);
}

.games-section,
.featured-section,
.studio-section,
.cta-section,
.related-section {
    padding: 104px 0;
}

.games-section {
    background: #12161d;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-heading h2,
.featured-copy h2,
.studio-grid h2,
.cta-inner h2 {
    margin: 0;
    font-size: 3rem;
    line-height: 1.05;
    font-weight: 600;
}

.section-heading span,
.section-heading > p + h2 + span {
    display: block;
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.games-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
    min-width: 0;
}

.game-card-shell,
.game-card-main {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card-shell:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: var(--shadow);
}

.game-art {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0d0f14;
}

.game-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card-shell:hover .game-art img {
    transform: scale(1.06);
}

.game-art figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
}

.game-art figcaption span,
.featured-pill,
.admin-status {
    min-height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(8, 9, 13, 0.72);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.game-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.game-card-title h3 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.featured-pill {
    color: #111318;
    background: var(--lime);
    border-color: transparent;
}

.game-card-body p {
    margin: 14px 0 24px;
    color: var(--muted);
    line-height: 1.65;
}

.details-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-strong);
    font-weight: 600;
}

.details-link .icon {
    transition: transform 0.2s ease;
}

.game-card-shell:hover .details-link .icon {
    transform: translateX(4px);
}

.featured-section {
    background: #101114;
}

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 56px;
    align-items: center;
}

.featured-media {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.featured-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.featured-copy p:not(.eyebrow) {
    margin: 22px 0 0;
    color: var(--muted);
    line-height: 1.8;
    white-space: pre-line;
}

.studio-section {
    background: #17131a;
}

.studio-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 56px;
}

.studio-copy > p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 1.1rem;
    line-height: 1.85;
}

.principles {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.principles div,
.empty-state,
.info-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.principles div {
    padding: 22px;
}

.principles h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.principles p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.cta-section {
    background: #10161a;
}

.cta-inner {
    min-height: 320px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 36px;
    align-items: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cta-inner h2 {
    max-width: 760px;
}

.empty-state {
    padding: 38px;
}

.empty-state h3 {
    margin: 0 0 10px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.footer {
    padding: 44px 0;
    border-top: 1px solid var(--line);
    background: var(--bg-deep);
}

.footer-inner {
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand p {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-brand span {
    display: block;
    max-width: 420px;
    color: var(--muted);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 22px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--text);
}

.game-detail {
    background: #101114;
}

.game-hero {
    position: relative;
    min-height: 72vh;
    padding: 128px 0 80px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.game-hero-content {
    position: relative;
    z-index: 1;
}

.back-link {
    margin-bottom: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-strong);
    font-weight: 600;
}

.game-hero h1 {
    margin: 0;
    max-width: 900px;
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 600;
}

.game-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--muted-strong);
    font-size: 1.15rem;
    line-height: 1.75;
}

.detail-layout {
    padding: 86px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
}

.detail-copy {
    display: grid;
    gap: 64px;
}

.detail-section h2 {
    margin: 0 0 24px;
    font-size: 2rem;
}

.prose {
    color: var(--muted-strong);
    font-size: 1.1rem;
    line-height: 1.85;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.detail-sidebar {
    position: sticky;
    top: 96px;
}

.info-panel {
    padding: 24px;
}

.info-panel h2 {
    margin: 0 0 20px;
    font-size: 1.2rem;
}

.info-panel dl,
.info-panel div {
    margin: 0;
}

.info-panel dl {
    display: grid;
    gap: 18px;
}

.info-panel dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.info-panel dd {
    margin: 4px 0 0;
    color: var(--text);
    font-weight: 600;
}

.related-section {
    background: #151920;
}

.not-found {
    min-height: 100vh;
    padding: 120px 24px;
    display: grid;
    place-items: center;
    text-align: center;
}

.not-found h1 {
    margin: 0 0 24px;
    font-size: 2rem;
}

.icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    width: min(360px, calc(100% - 48px));
    padding: 16px 18px;
    display: grid;
    gap: 4px;
    background: rgba(24, 27, 34, 0.96);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--text);
    transform: translateY(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

.page-fade {
    animation: fadeIn 0.5s ease both;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.5s ease var(--reveal-delay, 0ms), transform 0.5s ease var(--reveal-delay, 0ms);
}

.reveal.is-visible,
.reveal-now {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-body {
    background: #f3f5f8;
    color: #171a21;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dfe3ea;
    background: #101318;
    color: #fff;
}

.admin-brand {
    margin-bottom: 28px;
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a,
.admin-logout button {
    min-height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #c7cfda;
    cursor: pointer;
    font-weight: 600;
    text-align: left;
}

.admin-nav a:hover,
.admin-nav a.is-active,
.admin-logout button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-logout {
    margin-top: auto;
}

.admin-logout button {
    width: 100%;
}

.admin-main {
    min-width: 0;
    padding: 32px;
}

.admin-topbar {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-eyebrow {
    margin: 0 0 6px;
    color: #667085;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-topbar h1,
.login-panel h1 {
    margin: 0;
    font-size: 2rem;
}

.admin-button {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cdd4df;
    border-radius: 6px;
    background: #fff;
    color: #171a21;
    cursor: pointer;
    font-weight: 600;
}

.admin-button.primary {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.admin-button.subtle {
    background: #fff;
}

.admin-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #b8e3c4;
    border-radius: 8px;
    background: #ecfdf3;
    color: #157347;
    font-weight: 600;
}

.metric-grid {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.metric-card,
.admin-panel,
.login-panel {
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 24, 40, 0.06);
}

.metric-card {
    padding: 22px;
}

.metric-card span {
    color: #667085;
    font-weight: 600;
}

.metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
}

.admin-panel {
    padding: 22px;
}

.panel-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-heading h2,
.form-section h2 {
    margin: 0;
    font-size: 1.2rem;
}

.panel-heading a,
.admin-table a,
.table-actions button {
    color: #155eef;
    font-weight: 600;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #eaecf0;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: #667085;
    font-size: 0.76rem;
    text-transform: uppercase;
}

.table-game {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-game img {
    width: 76px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: #111827;
}

.table-game strong,
.table-game span {
    display: block;
}

.table-game span {
    margin-top: 3px;
    color: #667085;
    font-size: 0.86rem;
}

.admin-status {
    background: #eef4ff;
    border-color: #c7d7fe;
    color: #3538cd;
}

.admin-status.draft {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-actions form {
    margin: 0;
}

.table-actions button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.pagination-row {
    margin-top: 18px;
}

.login-screen {
    min-height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #101318, #22242b);
}

.login-panel {
    width: min(100%, 420px);
    padding: 30px;
}

.admin-form {
    display: grid;
    gap: 18px;
}

.admin-form label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 600;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    border: 1px solid #cdd4df;
    border-radius: 6px;
    background: #fff;
    color: #171a21;
}

.admin-form input,
.admin-form select {
    min-height: 44px;
    padding: 0 12px;
}

.admin-form textarea {
    padding: 12px;
    resize: vertical;
}

.admin-form input[type="file"] {
    padding: 10px 12px;
}

.admin-form small {
    color: #667085;
    font-weight: 600;
}

.field-error {
    color: #b42318 !important;
}

.check-row,
.check-card {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
}

.check-row input,
.check-card input {
    width: 16px;
    height: 16px;
    min-height: 16px;
}

.game-form {
    gap: 22px;
}

.form-section {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.current-cover img {
    width: min(100%, 520px);
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
    background: #111827;
}

.gallery-manage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gallery-check {
    overflow: hidden;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    background: #f8fafc;
}

.gallery-check img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gallery-check span {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.gallery-check input {
    width: 16px;
    height: 16px;
    min-height: 16px;
}

@media (max-width: 1020px) {
    .games-grid,
    .games-grid.compact,
    .principles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-layout,
    .studio-grid,
    .detail-layout,
    .cta-inner {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-inner {
        min-height: auto;
        padding: 16px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .nav-cta {
        white-space: nowrap;
    }

    .hero-section {
        min-height: 760px;
        padding-top: 138px;
    }

    .hero-content h1,
    .game-hero h1 {
        font-size: 3.45rem;
    }

    .section-heading h2,
    .featured-copy h2,
    .studio-grid h2,
    .cta-inner h2 {
        font-size: 2.35rem;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-main {
        padding: 22px;
    }

    .metric-grid,
    .form-grid.two,
    .form-grid.three,
    .gallery-manage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .container,
    .nav-inner,
    .footer-inner {
        width: min(100% - 32px, 1280px);
    }

    .hero-content {
        width: min(100% - 32px, 1180px);
    }

    .hero-content h1,
    .game-hero h1 {
        font-size: 2.7rem;
    }

    .hero-copy,
    .game-hero p:not(.eyebrow) {
        font-size: 1rem;
    }

    .games-section,
    .featured-section,
    .studio-section,
    .cta-section,
    .related-section {
        padding: 74px 0;
    }

    .games-grid,
    .games-grid.compact,
    .principles,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .featured-actions,
    .cta-actions,
    .store-actions,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button,
    .admin-button {
        width: 100%;
    }

    .admin-topbar {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Premium admin console */
.admin-body {
    --admin-bg: #eef2f7;
    --admin-ink: #101623;
    --admin-muted: #667085;
    --admin-panel: #ffffff;
    --admin-line: #d8dee8;
    --admin-line-soft: #edf1f6;
    --admin-dark: #111827;
    --admin-dark-2: #182231;
    --admin-blue: #2563eb;
    --admin-cyan: #06b6d4;
    --admin-green: #16a34a;
    --admin-amber: #f59e0b;
    --admin-purple: #7c3aed;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.09), transparent 34%),
        linear-gradient(315deg, rgba(6, 182, 212, 0.1), transparent 32%),
        var(--admin-bg);
    color: var(--admin-ink);
}

.admin-shell {
    grid-template-columns: 292px minmax(0, 1fr);
    background: transparent;
}

.admin-sidebar {
    padding: 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 14% 12%, rgba(6, 182, 212, 0.16), transparent 30%),
        linear-gradient(180deg, #101623, #0b101a);
    box-shadow: 18px 0 60px rgba(16, 24, 40, 0.16);
}

.admin-brand {
    min-height: 58px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.admin-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: linear-gradient(135deg, #67e8f9, #a3e635 52%, #facc15);
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.24);
    color: #07111f;
    font-weight: 600;
}

.admin-brand strong,
.admin-brand small {
    display: block;
}

.admin-brand strong {
    line-height: 1;
    font-size: 1rem;
    letter-spacing: 0;
}

.admin-brand small {
    margin-top: 5px;
    color: #9da8ba;
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-nav {
    gap: 10px;
}

.admin-nav a,
.admin-logout button {
    min-height: 46px;
    padding: 0 14px;
    gap: 12px;
    border-radius: 8px;
    color: #b9c4d6;
    font-size: 0.94rem;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.admin-nav a:hover,
.admin-logout button:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.08);
}

.admin-nav a.is-active {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(6, 182, 212, 0.14));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #475569;
    box-shadow: 0 0 0 4px rgba(71, 85, 105, 0.15);
}

.admin-nav a.is-active .nav-dot {
    background: #67e8f9;
    box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.16);
}

.admin-sidebar-card {
    margin-top: 28px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar-card span,
.admin-sidebar-card strong {
    display: block;
}

.admin-sidebar-card span {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-sidebar-card strong {
    margin-top: 6px;
    color: #f8fafc;
    font-size: 0.86rem;
    word-break: break-word;
}

.admin-main {
    padding: 34px;
}

.admin-topbar {
    margin-bottom: 28px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 20px 48px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(16px);
}

.admin-eyebrow {
    color: #2563eb;
    letter-spacing: 0;
}

.admin-topbar h1,
.login-panel h1 {
    color: var(--admin-ink);
    font-size: 2.25rem;
    letter-spacing: 0;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.admin-user-chip {
    min-height: 46px;
    padding: 6px 12px 6px 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fff;
}

.admin-user-chip > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.admin-user-chip strong,
.admin-user-chip small {
    display: block;
}

.admin-user-chip strong {
    max-width: 140px;
    overflow: hidden;
    color: var(--admin-ink);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-chip small {
    color: var(--admin-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-button {
    min-height: 44px;
    padding: 0 18px;
    border-color: #cfd7e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
    color: var(--admin-ink);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.admin-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.1);
}

.admin-button.primary {
    border-color: #111827;
    background: linear-gradient(135deg, #111827, #263244);
    color: #fff;
}

.admin-button.subtle {
    background: #fff;
}

.admin-alert {
    border-radius: 8px;
    border-color: #abefc6;
    background: linear-gradient(135deg, #ecfdf3, #f8fffb);
    color: #087443;
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.metric-grid.compact-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--metric-accent, var(--admin-blue));
}

.metric-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -42px;
    width: 116px;
    height: 116px;
    border-radius: 999px;
    background: var(--metric-accent, var(--admin-blue));
    opacity: 0.09;
}

.metric-card.accent-cyan { --metric-accent: var(--admin-cyan); }
.metric-card.accent-green { --metric-accent: var(--admin-green); }
.metric-card.accent-amber { --metric-accent: var(--admin-amber); }
.metric-card.accent-purple { --metric-accent: var(--admin-purple); }

.metric-card span,
.metric-card small {
    color: var(--admin-muted);
    font-weight: 600;
}

.metric-card span {
    font-size: 0.77rem;
    text-transform: uppercase;
}

.metric-card strong {
    margin-top: 12px;
    color: var(--admin-ink);
    font-size: 2.45rem;
    line-height: 1;
}

.metric-card small {
    display: block;
    margin-top: 10px;
    font-size: 0.86rem;
}

.admin-panel {
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
}

.admin-panel-table {
    padding: 0;
    overflow: hidden;
}

.panel-heading {
    margin: 0;
    padding: 20px 22px;
    border-bottom: 1px solid var(--admin-line-soft);
}

.panel-heading span,
.form-section-title span {
    display: block;
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.panel-heading h2,
.form-section-title h2 {
    margin: 5px 0 0;
    color: var(--admin-ink);
    font-size: 1.18rem;
}

.panel-heading a {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fff;
    color: #1d4ed8;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    padding: 13px 18px;
    background: #f8fafc;
    color: #667085;
    font-size: 0.72rem;
    letter-spacing: 0;
}

.admin-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--admin-line-soft);
}

.admin-table tbody tr {
    transition: background 0.16s ease;
}

.admin-table tbody tr:hover {
    background: #f8fbff;
}

.table-game {
    gap: 14px;
}

.table-game img {
    width: 96px;
    height: 60px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.08);
}

.table-game strong {
    color: var(--admin-ink);
    font-size: 0.98rem;
}

.table-game span {
    color: #667085;
}

.admin-status {
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: #ecfdf3;
    border-color: #abefc6;
    color: #087443;
    letter-spacing: 0;
}

.admin-status.draft {
    background: #fffaeb;
    border-color: #fedf89;
    color: #b54708;
}

.table-actions {
    justify-content: flex-end;
}

.table-action-primary,
.table-action-danger,
.table-actions button {
    min-height: 34px;
    padding: 0 12px !important;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    font-size: 0.86rem;
}

.table-action-primary {
    background: #eff6ff;
    color: #1d4ed8 !important;
}

.table-action-danger {
    background: #fff1f2 !important;
    color: #be123c !important;
}

.game-form {
    max-width: 1180px;
}

.form-section {
    padding: 24px;
    gap: 20px;
}

.form-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--admin-line-soft);
}

.admin-form label {
    gap: 9px;
    color: #344054;
}

.admin-form label > span {
    font-size: 0.86rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    border-color: #d0d7e2;
    border-radius: 8px;
    background: #fbfcfe;
    box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.03);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-form small {
    color: #7b8494;
}

.check-card {
    min-height: 72px;
    padding: 0 14px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fbfcfe;
}

.current-cover img {
    width: min(100%, 680px);
    border: 1px solid var(--admin-line);
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.1);
}

.gallery-manage {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-check {
    border-color: var(--admin-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.07);
}

.form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-top: 8px;
    padding: 16px;
    justify-content: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 -16px 34px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(16px);
}

.login-screen {
    background:
        radial-gradient(circle at 18% 16%, rgba(6, 182, 212, 0.28), transparent 30%),
        radial-gradient(circle at 86% 76%, rgba(124, 58, 237, 0.22), transparent 28%),
        linear-gradient(135deg, #0b101a, #131c2b 54%, #0f172a);
}

.login-panel {
    width: min(100%, 460px);
    padding: 34px;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.login-brand {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-brand .admin-brand-mark {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
}

.login-panel .admin-form {
    gap: 20px;
}

.login-panel .admin-button {
    min-height: 48px;
}

@media (max-width: 1080px) {
    .metric-grid,
    .metric-grid.compact-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-manage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        box-shadow: none;
    }

    .admin-main {
        padding: 18px;
    }

    .admin-topbar,
    .admin-topbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-user-chip {
        justify-content: flex-start;
    }

    .metric-grid,
    .metric-grid.compact-metrics,
    .form-grid.two,
    .form-grid.three,
    .gallery-manage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .admin-topbar h1,
    .login-panel h1 {
        font-size: 1.7rem;
    }

    .admin-button {
        width: 100%;
    }

    .form-actions {
        position: static;
    }
}

/* Premium refinement layer */
:root {
    --bg: #0a0b0f;
    --bg-deep: #050609;
    --surface: #141820;
    --surface-strong: #1b202a;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.2);
    --text: #f7f4ef;
    --muted: #a6a6a1;
    --muted-strong: #d8d5ce;
    --cyan: #64d2ff;
    --coral: #ff6f8e;
    --lime: #e2c86f;
    --gold: #f2c46d;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    letter-spacing: 0;
}

.site-shell {
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 420px),
        var(--bg);
}

.brand,
.nav-link,
.nav-cta,
.eyebrow,
.button,
.hero-stats span,
.game-art figcaption span,
.featured-pill,
.admin-status,
.details-link,
.back-link,
.info-panel dt,
.info-panel dd,
.footer-links,
.footer-brand p {
    font-weight: 600;
    letter-spacing: 0;
}

.brand {
    font-size: 1.02rem;
}

.brand-mark {
    background: linear-gradient(135deg, #f7f4ef, #64d2ff 56%, #ff6f8e);
    color: #090a0f;
    font-weight: 600;
}

.navbar.is-scrolled {
    background: rgba(5, 6, 9, 0.8);
}

.hero-section {
    min-height: 760px;
    padding: 150px 0 92px;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: #050609;
}

.hero-backdrop {
    object-position: center;
    opacity: 0.48;
    filter: saturate(0.95) contrast(1.05);
    transform: none;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 6, 9, 0.96) 0%, rgba(5, 6, 9, 0.78) 48%, rgba(5, 6, 9, 0.5) 100%),
        linear-gradient(180deg, rgba(5, 6, 9, 0.12), rgba(5, 6, 9, 0.98));
}

.hero-content {
    width: min(100% - 56px, 1180px);
    max-width: none;
    margin-inline: auto;
}

.hero-content h1,
.hero-copy,
.hero-actions,
.hero-stats {
    max-width: 690px;
}

.hero-content h1 {
    font-size: 3.72rem;
    line-height: 1.04;
    font-weight: 500;
}

.hero-copy {
    margin-top: 22px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-stats {
    margin-top: 42px;
}

.hero-stats span {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
}

.button {
    min-height: 46px;
    border-radius: 8px;
    font-weight: 600;
}

.button-primary {
    background: #f7f4ef;
    color: #0a0b0f;
}

.button-primary:hover {
    background: var(--gold);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.07);
}

.games-section,
.featured-section,
.studio-section,
.cta-section,
.related-section {
    padding: 96px 0;
}

.games-section {
    background: #0d1117;
}

.featured-section {
    background: #0a0d12;
}

.studio-section {
    background: #121016;
}

.cta-section {
    background: #0b1014;
}

.section-heading h2,
.featured-copy h2,
.studio-grid h2,
.cta-inner h2,
.game-hero h1 {
    font-weight: 500;
    letter-spacing: 0;
}

.section-heading h2,
.featured-copy h2,
.studio-grid h2,
.cta-inner h2 {
    font-size: 2.55rem;
    line-height: 1.12;
}

.game-card-shell,
.featured-media,
.principles div,
.empty-state,
.info-panel,
.gallery-item {
    border-radius: 8px;
}

.game-card-shell {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.game-card-shell:hover {
    transform: translateY(-4px);
}

.game-card-title h3,
.principles h3,
.detail-section h2,
.info-panel h2 {
    font-weight: 600;
}

.status-badge.development,
.admin-status.development {
    background: rgba(100, 210, 255, 0.14);
    border-color: rgba(100, 210, 255, 0.32);
    color: #d8f4ff;
}

.status-badge.released,
.admin-status.released {
    background: rgba(99, 230, 190, 0.14);
    border-color: rgba(99, 230, 190, 0.32);
    color: #d8fff4;
}

.status-badge.draft {
    background: rgba(242, 196, 109, 0.14);
    border-color: rgba(242, 196, 109, 0.32);
    color: #ffe6b7;
}

.game-hero {
    min-height: 650px;
    padding: 132px 0 78px;
}

.game-hero-bg {
    object-position: center;
    opacity: 0.44;
}

.game-hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 6, 9, 0.95), rgba(5, 6, 9, 0.58)),
        linear-gradient(180deg, rgba(5, 6, 9, 0.12), rgba(5, 6, 9, 0.98));
}

.game-hero h1 {
    font-size: 3.55rem;
}

.footer {
    background: #050609;
}

.admin-body {
    --admin-bg: #f4f6f9;
    --admin-ink: #111722;
    --admin-muted: #667085;
    --admin-panel: #ffffff;
    --admin-line: #d9e0ea;
    --admin-line-soft: #edf1f6;
    --admin-blue: #265bdc;
    --admin-cyan: #0891b2;
    --admin-green: #16865d;
    --admin-amber: #b7791f;
    --admin-purple: #6d4aff;
    background:
        linear-gradient(135deg, rgba(38, 91, 220, 0.08), transparent 42%),
        linear-gradient(180deg, #ffffff, var(--admin-bg));
    font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
}

.admin-sidebar,
.login-screen {
    background: linear-gradient(180deg, #101623, #090d15);
}

.admin-brand-mark {
    background: linear-gradient(135deg, #f8fafc, #64d2ff 58%, #f2c46d);
    font-weight: 600;
}

.admin-brand,
.admin-nav a,
.admin-logout button,
.admin-sidebar-card span,
.admin-sidebar-card strong,
.admin-eyebrow,
.admin-button,
.admin-alert,
.metric-card span,
.metric-card small,
.panel-heading span,
.form-section-title span,
.panel-heading a,
.admin-table a,
.table-actions button,
.admin-form label,
.admin-form small,
.admin-user-chip > span,
.admin-user-chip small {
    font-weight: 600;
    letter-spacing: 0;
}

.admin-topbar h1,
.login-panel h1,
.metric-card strong,
.panel-heading h2,
.form-section-title h2,
.table-game strong {
    font-weight: 600;
    letter-spacing: 0;
}

.admin-topbar h1,
.login-panel h1 {
    font-size: 2.05rem;
}

.metric-card strong {
    font-size: 2.18rem;
}

.metric-grid.compact-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-button.primary {
    background: linear-gradient(135deg, #111827, #243145);
}

.admin-status {
    font-weight: 600;
    letter-spacing: 0;
}

.admin-status.development {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #075985;
}

.admin-status.released {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.admin-status.draft {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.site-settings-form {
    max-width: 1180px;
}

.wide-field {
    grid-column: 1 / -1;
}

@media (max-width: 820px) {
    .hero-section {
        min-height: 690px;
        padding: 138px 0 78px;
    }

    .hero-content {
        width: min(100% - 36px, 1180px);
    }

    .hero-content h1,
    .game-hero h1 {
        font-size: 2.75rem;
    }

    .section-heading h2,
    .featured-copy h2,
    .studio-grid h2,
    .cta-inner h2 {
        font-size: 2.05rem;
    }

    .nav-links {
        max-width: 100%;
    }
}

@media (max-width: 620px) {
    .hero-section {
        min-height: 640px;
        padding: 128px 0 66px;
    }

    .hero-content h1,
    .game-hero h1 {
        font-size: 2.25rem;
    }

    .hero-copy {
        font-size: 0.98rem;
    }

    .hero-stats {
        gap: 10px;
    }
}

/* Localization, store links, and premium content controls */
.language-switcher {
    min-height: 38px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.language-switcher a {
    min-width: 36px;
    min-height: 30px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.language-switcher a.is-active {
    background: #f7f4ef;
    color: #0a0b0f;
}

.game-card-main {
    height: auto;
    min-height: 0;
    flex: 1;
}

.store-links {
    margin-top: 22px;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
}

.store-link {
    min-height: 58px;
    min-width: 174px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.075);
    color: var(--text);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.store-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
}

.store-link span {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.store-link strong {
    font-size: 0.98rem;
    font-weight: 600;
}

.store-link .icon {
    width: 17px;
    height: 17px;
}

.store-links.compact {
    margin: 0;
    padding: 0 18px 18px;
    gap: 8px;
}

.store-links.compact .store-link {
    min-height: 44px;
    min-width: 0;
    flex: 1 1 140px;
    padding: 8px 10px;
}

.store-links.compact .store-link span {
    display: none;
}

.store-links.compact .store-link strong {
    font-size: 0.86rem;
}

.store-links.is-empty {
    min-height: 46px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    color: var(--muted);
}

.gallery-placeholder {
    border-style: dashed;
}

.gallery-placeholder img {
    opacity: 0.82;
}

.locale-editor-tabs {
    position: sticky;
    top: 14px;
    z-index: 7;
    margin-bottom: 18px;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(16px);
}

.locale-tab {
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fff;
    color: var(--admin-ink);
    font-weight: 600;
}

.locale-tab span {
    color: var(--admin-blue);
    font-size: 0.78rem;
}

.locale-editor-pane {
    display: grid;
    gap: 18px;
    scroll-margin-top: 110px;
}

.locale-editor-pane + .locale-editor-pane {
    margin-top: 28px;
}

.locale-pane-heading {
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.07);
}

.locale-pane-heading span {
    color: var(--admin-blue);
    font-size: 0.76rem;
    font-weight: 600;
}

.locale-pane-heading h2 {
    margin: 4px 0 0;
    font-size: 1.38rem;
    font-weight: 600;
}

.locale-pane-heading p {
    margin: 0;
    color: var(--admin-muted);
}

.current-cover {
    display: grid;
    gap: 10px;
}

.current-cover small {
    display: block;
}

@media (max-width: 820px) {
    .language-switcher {
        width: 100%;
    }

    .language-switcher a {
        flex: 1;
    }

    .locale-pane-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Final premium polish */
.navbar {
    border-bottom: 1px solid transparent;
}

.navbar:not(.is-scrolled) .nav-inner {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-inner {
    position: relative;
}

.nav-link,
.nav-cta {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    inset: auto 0 -7px;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0.2);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-link:hover::after {
    opacity: 0.75;
    transform: scaleX(1);
}

.hero-section {
    isolation: isolate;
}

.hero-section::after,
.game-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 36%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(5, 6, 9, 0.86));
    z-index: 0;
}

.hero-content,
.game-hero-content {
    z-index: 2;
}

.hero-content h1,
.game-hero h1 {
    max-width: 760px;
    text-wrap: balance;
}

.hero-copy,
.game-hero p:not(.eyebrow),
.section-heading span {
    text-wrap: pretty;
}

.games-grid {
    align-items: stretch;
}

.game-card-shell {
    position: relative;
    border-color: rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
        #0d1117;
}

.game-card-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.game-art::after,
.featured-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.38));
}

.featured-media {
    position: relative;
}

.game-card-title h3,
.featured-copy h2,
.detail-section h2 {
    text-wrap: balance;
}

.featured-copy {
    padding: 8px 0;
}

.featured-copy .store-links,
.game-hero-content .store-links {
    max-width: 560px;
}

.store-link.app-store {
    background:
        linear-gradient(135deg, rgba(247, 244, 239, 0.15), rgba(100, 210, 255, 0.08)),
        rgba(255, 255, 255, 0.07);
}

.store-link.google-play {
    background:
        linear-gradient(135deg, rgba(99, 230, 190, 0.14), rgba(242, 196, 109, 0.08)),
        rgba(255, 255, 255, 0.07);
}

.detail-layout {
    gap: 64px;
}

.detail-section {
    padding-bottom: 4px;
}

.prose {
    max-width: 820px;
}

.info-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
        #0d1117;
}

.admin-panel,
.metric-card,
.admin-topbar,
.locale-pane-heading {
    box-shadow: 0 22px 54px rgba(16, 24, 40, 0.08);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    min-height: 46px;
}

.admin-form textarea {
    line-height: 1.62;
}

.locale-editor-tabs.compact-tabs {
    position: static;
    margin: 0;
    box-shadow: none;
}

.locale-editor-pane.compact-pane {
    padding-top: 4px;
}

.locale-editor-pane.compact-pane .locale-pane-heading {
    padding: 16px 18px;
}

.locale-editor-pane.compact-pane .locale-pane-heading h2 {
    font-size: 1.08rem;
}

.current-cover img {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent),
        #111827;
}

/* Multipage premium layer */
body {
    background: #07080c;
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 420px),
        radial-gradient(circle at 82% 16%, rgba(34, 211, 238, 0.08), transparent 32%),
        #07080c;
}

.brand,
.nav-link,
.nav-cta,
.button,
.eyebrow,
.status-badge,
.featured-pill {
    font-weight: 500;
}

.brand span:last-child,
.footer-brand a {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.brand-mark {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    background: #f4f1e8;
    color: #090a0f;
}

.nav-link.is-active {
    color: var(--text);
}

.nav-link.is-active::after {
    opacity: 0.9;
    transform: scaleX(1);
}

.nav-cta {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-content h1,
.page-hero-content h1,
.game-hero h1 {
    font-weight: 400;
}

.hero-section {
    min-height: 88vh;
}

.hero-overlay,
.game-hero-overlay,
.page-hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 6, 10, 0.96) 0%, rgba(5, 6, 10, 0.76) 46%, rgba(5, 6, 10, 0.34) 100%),
        linear-gradient(180deg, rgba(5, 6, 10, 0.18), rgba(5, 6, 10, 0.94));
}

.hero-stats {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(22px);
}

.button {
    border-radius: 999px;
}

.button-primary {
    background: #f4f1e8;
    color: #07080c;
}

.button-primary:hover {
    background: #d7ff77;
}

.section-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.page-hero {
    position: relative;
    min-height: 72vh;
    padding: 154px 0 96px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 24%, rgba(34, 211, 238, 0.14), transparent 34%),
        #080a10;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    filter: saturate(0.94) contrast(1.04);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(7, 8, 12, 0.92));
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.page-hero-content h1 {
    max-width: 820px;
    margin: 0;
    font-size: 5.4rem;
    line-height: 0.98;
    text-wrap: balance;
}

.page-hero-content p:not(.eyebrow) {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--muted-strong);
    font-size: 1.14rem;
    line-height: 1.78;
    text-wrap: pretty;
}

.portfolio-focus-section,
.method-section,
.capability-section,
.careers-section,
.contact-section,
.archive-section {
    position: relative;
    padding: 104px 0;
}

.portfolio-focus,
.method-layout,
.careers-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 72px;
}

.portfolio-focus-copy h2,
.method-copy h2,
.careers-copy h2,
.contact-copy h2 {
    margin: 0;
    color: var(--text);
    font-size: 3.5rem;
    line-height: 1.05;
    font-weight: 400;
    text-wrap: balance;
}

.portfolio-focus-copy p:not(.eyebrow),
.method-copy p:not(.eyebrow),
.careers-copy p:not(.eyebrow),
.contact-copy p:not(.eyebrow),
.capability-item p,
.careers-panel p,
.contact-card p {
    color: var(--muted);
    line-height: 1.74;
}

.portfolio-focus-media {
    position: relative;
    display: block;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: #0d1117;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

.portfolio-focus-media img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.portfolio-focus-media:hover img {
    transform: scale(1.035);
}

.method-steps {
    display: grid;
    gap: 12px;
}

.method-steps span,
.capability-item,
.careers-panel,
.contact-card {
    border: 1px solid rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
        #0d1117;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.method-steps span {
    min-height: 70px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-radius: 9px;
    color: var(--muted-strong);
    font-size: 1rem;
}

.capability-grid {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.capability-item {
    min-height: 260px;
    padding: 28px;
    border-radius: 9px;
}

.capability-item span {
    color: var(--lime);
    font-size: 0.82rem;
}

.capability-item h3 {
    margin: 52px 0 14px;
    font-size: 1.32rem;
    font-weight: 500;
}

.careers-panel,
.contact-card {
    padding: 34px;
    border-radius: 10px;
}

.careers-panel span,
.contact-card span {
    display: block;
    color: var(--lime);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.careers-panel a:not(.button),
.contact-card a:not(.button) {
    display: inline-block;
    margin-top: 18px;
    color: var(--text);
    font-size: 2.2rem;
    line-height: 1.12;
    font-weight: 400;
}

.contact-card {
    min-height: 320px;
}

.archive-section {
    padding-top: 36px;
}

.game-card-shell {
    border-radius: 10px;
}

.game-card-title h3 {
    font-weight: 500;
}

.footer {
    background: #06070a;
}

.footer-brand a {
    display: inline-block;
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.35rem;
}

.footer-links a {
    color: var(--muted);
}

.admin-body {
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-brand strong,
.admin-topbar h1,
.metric-card strong,
.panel-heading h2 {
    font-weight: 500;
}

.admin-panel,
.metric-card,
.admin-topbar,
.locale-pane-heading {
    border-radius: 10px;
}

@media (max-width: 980px) {
    .portfolio-focus,
    .method-layout,
    .careers-layout,
    .contact-layout,
    .capability-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-focus-media,
    .portfolio-focus-media img {
        min-height: 360px;
    }

    .page-hero {
        min-height: 64vh;
    }

    .page-hero-content h1 {
        font-size: 4rem;
    }

    .portfolio-focus-copy h2,
    .method-copy h2,
    .careers-copy h2,
    .contact-copy h2 {
        font-size: 2.7rem;
    }
}

@media (max-width: 720px) {
    .page-hero {
        padding: 132px 0 72px;
    }

    .page-hero-content h1 {
        font-size: 3.05rem;
    }

    .page-hero-content p:not(.eyebrow) {
        font-size: 1rem;
    }

    .portfolio-focus-section,
    .method-section,
    .capability-section,
    .careers-section,
    .contact-section,
    .archive-section {
        padding: 72px 0;
    }

    .careers-panel,
    .contact-card,
    .capability-item {
        padding: 24px;
    }

    .portfolio-focus-copy h2,
    .method-copy h2,
    .careers-copy h2,
    .contact-copy h2 {
        font-size: 2.15rem;
    }

    .careers-panel a:not(.button),
    .contact-card a:not(.button) {
        font-size: 1.45rem;
    }
}
