@font-face {
    font-family: "Game25 Quicksand";
    src: url("/static/game25/fonts/quicksand-v22-latin-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Game25 Rajdhani";
    src: url("/static/game25/fonts/rajdhani-v10-latin-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --game25-bg: #073f53;
    --game25-panel: #095169;
    --game25-panel-dark: #063446;
    --game25-text: #efffff;
    --game25-muted: #affffa;
    --game25-accent: #92ff00;
    --game25-accent-2: #00c6c2;
    --game25-radius: 12px;
    --game25-shadow: 0 14px 34px rgb(0 24 36 / 34%);
}

* { box-sizing: border-box; }

html { background: var(--game25-bg); }

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--game25-text);
    background: var(--game25-bg) url("/static/game25/images/98a39470b749019fe659.webp") top center / cover fixed no-repeat;
    font-family: "Game25 Quicksand", sans-serif;
}

a { color: inherit; }

img { max-width: 100%; }

.container {
    width: min(1440px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgb(175 255 250 / 18%);
    background: rgb(6 52 70 / 92%);
    box-shadow: 0 10px 26px rgb(0 20 32 / 24%);
}

.navbar {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.navbar-brand,
.navbar-menu,
.navbar-start,
.navbar-end {
    display: flex;
    align-items: center;
}

.navbar-menu { flex: 1; justify-content: space-between; }

.site-header .navbar-item,
.site-header a.navbar-item {
    padding: 12px 10px;
    color: var(--game25-text);
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
}

.site-header .navbar-item:hover,
.site-header a.navbar-item:hover,
.site-header a.navbar-item:focus {
    color: var(--game25-accent);
    background: rgb(255 255 255 / 6%);
}

.site-header .navbar-brand {
    width: auto;
    align-self: center;
}

.site-header .navbar-brand > .brand {
    position: static;
    top: auto;
    left: auto;
    display: flex;
    align-items: center;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0 12px 0 0;
    padding: 0;
    transform: none;
    font-family: "Game25 Rajdhani", sans-serif;
    font-size: 1.45rem;
}

.site-header .navbar-menu,
.site-header .navbar-start {
    height: auto;
    align-items: center;
}

.site-header .navbar-brand img.brand-logo {
    display: block;
    position: static;
    width: auto;
    max-width: 170px;
    height: 44px;
    object-fit: contain;
    filter: none;
    transform: none;
    z-index: auto;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #052f3e;
    background: linear-gradient(135deg, var(--game25-accent), var(--game25-accent-2));
}

.navbar-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
}

.navbar-burger span { display: block; width: 24px; height: 2px; margin: 5px auto; background: white; }

.search-form { display: flex; gap: 8px; }

.navbar .search-form {
    align-items: center;
    margin: 10px 0;
}

.navbar .search-form input {
    height: 34px;
    padding: 0 10px;
}

.navbar .search-form button {
    height: 34px;
    padding: 0 12px;
}

.search-form input,
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgb(175 255 250 / 30%);
    border-radius: 9px;
    padding: 11px 13px;
    color: var(--game25-text);
    background: rgb(3 40 54 / 75%);
}

.search-form input { width: min(230px, 32vw); }

.search-form button,
.contact-form button {
    border: 0;
    border-radius: 9px;
    padding: 11px 16px;
    color: #052f3e;
    background: linear-gradient(135deg, var(--game25-accent), var(--game25-accent-2));
    font-family: "Game25 Rajdhani", sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.site-main { flex: 1; padding: 34px 0 72px; }

.template-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
    align-items: start;
}

.main-content { min-width: 0; }

.hero-panel,
.listing-header,
.content-page,
.sidebar-panel,
.game-description {
    border: 1px solid rgb(175 255 250 / 16%);
    border-radius: var(--game25-radius);
    background: linear-gradient(145deg, rgb(9 81 105 / 94%), rgb(6 52 70 / 94%));
    box-shadow: var(--game25-shadow);
}

.hero-panel,
.listing-header,
.content-page { padding: clamp(24px, 5vw, 52px); margin-bottom: 28px; }

.hero-panel { background-image: linear-gradient(120deg, rgb(6 52 70 / 88%), rgb(9 81 105 / 70%)), url("/static/game25/images/f36432babc2ac7c79d8c.webp"); background-size: cover; }

h1, h2, h3 { font-family: "Game25 Rajdhani", sans-serif; color: var(--game25-text); }

h1 { margin: 0; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1; }

.eyebrow { margin: 0 0 8px; color: var(--game25-accent); font-family: "Game25 Rajdhani", sans-serif; text-transform: uppercase; letter-spacing: .12em; }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 28px 0 14px; }

.section-heading h2 { margin: 0; font-size: 1.7rem; }

.section-heading a { color: var(--game25-accent); }

.game-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 10px;
    margin-top: .625rem;
}

.main-content .tile-card.game-card {
    position: relative;
    display: block;
    height: auto;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    border-radius: 10px;
    background-image: linear-gradient(0deg, #00c8bb4d, #08eee14d);
    box-shadow: 4px 4px 4px 0 #0a0a0a80, inset 0 0 15px -2px #00c6c2, inset 0 0 0 3px #00c6c2;
    transform: none;
}

.main-content .tile-card.game-card.is-normal {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1 / 1;
}

.main-content .tile-card.game-card.is-big {
    grid-column: span 2;
    grid-row: span 2;
}

.main-content .tile-card.game-card > img {
    position: absolute;
    inset: 3px 3px 2.4rem;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 8px 8px 2px 2px;
    object-fit: cover;
}

.main-content .tile-card.game-card .content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.main-content .tile-card.game-card .name,
.main-content .tile-card.game-card .name span {
    overflow: hidden;
    width: 100%;
    height: auto;
    padding: 0;
    color: #affffa;
    font-family: "Game25 Rajdhani", sans-serif;
    font-size: .82rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-content .tile-card.game-card .badge {
    position: absolute;
    top: -1.15rem;
    left: 50%;
    z-index: 3;
    display: block;
    padding: 1px 8px;
    font-size: .68rem;
    font-weight: 700;
    transform: translateX(-50%);
}

.main-content .tile-card.game-card:hover {
    z-index: 2;
    transform: scale(1.04);
}

.game-card--compact {
    display: block;
    min-width: 0;
    border-radius: 10px;
    background: #052f3e;
    box-shadow: 0 9px 22px rgb(0 22 32 / 28%);
}

.game-card--compact > a { display: block; text-decoration: none; }

.game-card--compact figure { aspect-ratio: 16 / 9; margin: 0; overflow: hidden; }

.game-card--compact img { display: block; width: 100%; height: 100%; object-fit: cover; }

.game-card--compact .content { padding: 8px 10px; background: linear-gradient(180deg, #095169, #063446); }

.game-card--compact .name span { overflow: hidden; display: block; font-family: "Game25 Rajdhani", sans-serif; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }

.category-section { margin-top: 32px; }

.sidebar { position: sticky; top: 102px; }

.sidebar-panel { padding: 20px; }

.sidebar-panel h2 { margin: 0 0 14px; }

.category-links { display: grid; gap: 6px; }

.category-links a { display: flex; justify-content: space-between; padding: 9px 11px; border-radius: 8px; text-decoration: none; }

.category-links a:hover { color: #052f3e; background: var(--game25-accent); }

.sidebar-recommendations .section-heading { margin-top: 24px; }

.sidebar-recommendations .section-heading h2 { font-size: 1.25rem; }

.recommend-games .compact-grid,
.sidebar-recommendations .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
}

.detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }

.detail-heading h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

.detail-category { padding: 7px 12px; border-radius: 999px; color: #052f3e; background: var(--game25-accent); }

.game-player { position: relative; overflow: hidden; border: 4px solid #052f3e; border-radius: var(--game25-radius); background: #001820; box-shadow: var(--game25-shadow); }

.game-player iframe { display: block; width: 100%; min-height: min(70vh, 760px); border: 0; }

.game-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    cursor: pointer;
    background: rgb(0 18 28 / 72%);
}

.game-cover img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgb(0 0 0 / 40%);
}

.game-cover .play-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 28px;
    color: #052f3e;
    background: linear-gradient(135deg, var(--game25-accent), var(--game25-accent-2));
    font-family: "Game25 Rajdhani", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
}

.game-description { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 22px; margin: 28px 0; padding: 20px; }

.game-description img { width: 100%; border-radius: 9px; }

.content-page { line-height: 1.8; }

.content-page h1 { margin-bottom: 28px; }

.content-page h2 { margin-top: 28px; }

.contact-form { display: grid; gap: 10px; max-width: 720px; }
.form-message { margin: 0 0 16px; }
.form-message.is-success { color: var(--game25-accent); }
.form-message.is-error { color: #ff8a8a; }

.contact-form button { justify-self: start; margin-top: 8px; }

.empty-state { padding: 28px; border: 1px dashed rgb(175 255 250 / 35%); border-radius: var(--game25-radius); text-align: center; }

.footer { position: relative; overflow: hidden; margin-top: auto; padding: 72px 0 32px; background: #042d3d; }

.footer-asset { position: absolute; inset: auto 0 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; pointer-events: none; }

.footer-menu { position: relative; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 30px; align-items: end; }

.footer-links { display: flex; gap: 40px; }

.footer-links p { color: var(--game25-accent); font-family: "Game25 Rajdhani", sans-serif; text-transform: uppercase; }

.footer-links ul { margin: 0; padding: 0; list-style: none; }

.footer-links a { text-decoration: none; }

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

.footer-copyright { display: grid; justify-items: end; gap: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
    .template-shell { grid-template-columns: minmax(0, 1fr) 220px; }
    .navbar-start .navbar-item:nth-last-child(-n+2) { display: none; }
    .game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .navbar { align-items: stretch; flex-direction: column; }
    .navbar-brand { min-height: 70px; justify-content: space-between; }
    .navbar-burger { display: block; }
    .navbar-menu { display: none; padding-bottom: 16px; align-items: stretch; flex-direction: column; }
    .navbar-menu.is-active { display: flex; }
    .navbar-start, .navbar-end { align-items: stretch; flex-direction: column; }
    .navbar-start .navbar-item:nth-last-child(-n+2) { display: block; }
    .search-form input { width: 100%; }
    .template-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-menu { grid-template-columns: 1fr; }
    .footer-copyright { justify-items: start; }
    .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .container { width: min(100% - 20px, 1440px); }
    .site-main { padding-top: 20px; }
    .game-description { grid-template-columns: 1fr; }
    .detail-heading { align-items: start; flex-direction: column; }
    .game-player iframe { min-height: 440px; }
    .footer-links { flex-direction: column; gap: 12px; }
    .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
