/* Jolixo — Base: design tokens, layout shell, components, admin base and responsive rules. */

:root {
    --canvas:#f5f9fd;
    --surface:#fff;
    --soft:#edf5f9;
    --ink:#14203b;
    --muted:#687894;
    --coral:#ff7757;
    --coral-dark:#ed5f41;
    --mint:#52cfd0;
    --lemon:#ddf46b;
    --border:#e3eaf1;
    --shadow:0 18px 55px rgba(29,50,85,.065);
    --radius:22px;
    --font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
}

body {
    margin:0;
    font:15px/1.55 var(--font);
    color:var(--ink);
    background:var(--canvas);
}

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

button {
    cursor:pointer;
}

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

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

svg {
    flex-shrink:0;
}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
    outline:3px solid #56b8eb;
    outline-offset:3px;
}

h1,h2,h3,p {
    margin-top:0;
}

h1,h2,h3 {
    letter-spacing:-.045em;
    line-height:1.16;
}

h1 {
    font-size:clamp(2.2rem,4vw,4.3rem);
}

h2 {
    font-size:clamp(1.45rem,2vw,2rem);
}

h3 {
    font-size:1.08rem;
}

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

.skip {
    position:absolute;
    left:-1000px;
    top:0;
    background:#fff;
    padding:16px;
    z-index:100;
}

.skip:focus {
    left:12px;
}

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

.hide-small {
    white-space:nowrap;
}

.app-shell {
    display:grid;
    grid-template-columns:84px minmax(0,1fr);
    max-width:1720px;
    margin:0 auto;
    min-height:100vh;
}

.site-body {
    background:radial-gradient(circle at 35% -10%,#e9fbff 0,transparent 27%),radial-gradient(circle at 96% 15%,#ffedf2 0,transparent 30%),var(--canvas);
}

.rail {
    position:sticky;
    top:0;
    height:100vh;
    border-right:1px solid var(--border);
    display:flex;
    align-items:center;
    flex-direction:column;
    gap:34px;
    padding:30px 13px;
    background:rgba(255,255,255,.65);
    backdrop-filter:blur(22px);
    z-index:20;
}

.brand-mark {
    width:49px;
    height:49px;
    display:grid;
    place-items:center;
    border-radius:17px;
    box-shadow:0 14px 22px #ff775728;
}

.brand-mark svg {
    width:49px;
}

.rail-items {
    display:flex;
    flex-direction:column;
    gap:11px;
    width:100%;
    align-items:center;
}

.rail-link,.rail-bottom {
    width:50px;
    height:50px;
    border-radius:17px;
    display:grid;
    place-items:center;
    color:#8a96aa;
    transition:background .18s,color .18s,transform .18s;
}

.rail-link:hover,.rail-bottom:hover {
    background:#edf0f9;
    color:var(--ink);
    transform:translateY(-2px);
}

.rail-link.active {
    background:#ffede8;
    color:var(--coral-dark);
}

.rail-bottom {
    margin-top:auto;
    background:#e8f6f5;
    color:#319d9e;
}

.site-column {
    min-width:0;
    display:flex;
    flex-direction:column;
}

.topbar {
    height:96px;
    display:flex;
    align-items:center;
    gap:clamp(16px,2vw,38px);
    padding:0 clamp(20px,4vw,62px);
    border-bottom:1px solid #e8edf3;
    background:rgba(255,255,255,.9);
    backdrop-filter:blur(18px) saturate(1.4);
    position:sticky;
    top:0;
    z-index:15;
}

.topbrand {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:195px;
}

.wordmark {
    font-weight:900;
    font-size:28px;
    letter-spacing:-.085em;
    line-height:1;
    display:inline-flex;
    align-items:end;
}

.wordmark span {
    color:var(--coral);
}

.brand-dot {
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--mint);
    margin:0 0 3px 4px;
}

.brand-tag {
    font-size:10px;
    white-space:nowrap;
    letter-spacing:.05em;
    text-transform:uppercase;
    color:#9ca9bd;
    font-weight:700;
}

.toplinks {
    display:flex;
    align-items:center;
    gap:clamp(14px,1.6vw,32px);
    font-weight:700;
    color:#55657f;
    white-space:nowrap;
}

.toplinks a:hover,.toplinks .selected {
    color:var(--ink);
}

.top-search {
    height:45px;
    border:1px solid #e2eaf0;
    border-radius:50px;
    background:#fff;
    min-width:145px;
    max-width:360px;
    flex:1;
    display:flex;
    align-items:center;
    padding:4px 5px 4px 15px;
    box-shadow:0 3px 9px #19284b04;
    position:relative;
}

.top-search svg {
    width:18px;
    color:#9caabd;
}

.top-search input {
    width:100%;
    min-width:40px;
    border:0;
    outline:0;
    padding:8px 10px;
    background:transparent;
    color:var(--ink);
    font-size:13px;
}

.top-search input:focus {
    outline:0;
}

.top-search button {
    height:34px;
    width:34px;
    border:0;
    border-radius:50%;
    background:#eff7f7;
    color:#278a91;
    font-size:17px;
}

.search-suggestions {
    position:absolute;
    z-index:50;
    top:52px;
    left:0;
    right:0;
    background:#fff;
    border:1px solid var(--border);
    border-radius:17px;
    box-shadow:var(--shadow);
    overflow:hidden;
    display:none;
}

.search-suggestions.is-visible {
    display:block;
}

.search-suggestions a {
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    font-weight:700;
    font-size:13px;
}

.search-suggestions a:hover {
    background:#f1f8fb;
}

.search-suggestions img {
    width:35px;
    height:35px;
    object-fit:cover;
    border-radius:8px;
}

.user-actions {
    display:flex;
    align-items:center;
    gap:14px;
    margin-left:auto;
    font-weight:750;
    white-space:nowrap;
}

.text-link {
    font-size:13px;
    color:#6d7c91;
}

.avatar-circle {
    width:38px;
    height:38px;
    display:inline-grid;
    place-items:center;
    background:linear-gradient(135deg,#f7e6db,#b9f2e8);
    border-radius:50%;
    font-weight:900;
    color:#5b6775;
}

.profile-link {
    display:flex;
    align-items:center;
    gap:9px;
}

.page-content {
    flex:1;
    width:100%;
    max-width:1560px;
    margin:0 auto;
    padding:35px clamp(22px,4vw,62px) 70px;
}

.eyebrow {
    font-size:10px;
    font-weight:900;
    letter-spacing:.16em;
    color:#589aac;
    display:inline-flex;
    align-items:center;
    gap:9px;
}

.eyebrow.coral {
    color:var(--coral);
}

.eyebrow-line {
    width:25px;
    height:2px;
    background:var(--coral);
    display:inline-block;
}

.welcome-row {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px;
}

.welcome-row h1 {
    margin:12px 0 7px;
    letter-spacing:-.07em;
    line-height:1.09;
    font-weight:850;
}

.welcome-row h1 em {
    color:var(--coral);
    font-style:normal;
}

.welcome-row p {
    margin:0;
    font-size:14px;
}

.welcome-pill {
    padding:11px 18px;
    background:#fff;
    border-radius:100px;
    display:flex;
    align-items:center;
    gap:10px;
    font-size:12px;
    color:#61738f;
    font-weight:700;
    border:1px solid var(--border);
    white-space:nowrap;
}

.welcome-pill svg {
    width:16px;
    color:var(--mint);
}

.pill-icon {
    color:var(--coral);
    font-size:19px;
}

.btn {
    min-height:43px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    border:1px solid transparent;
    border-radius:13px;
    padding:12px 21px;
    font-weight:800;
    font-size:13px;
    transition:background .18s,transform .18s,box-shadow .18s;
}

.btn:hover {
    transform:translateY(-1px);
}

.btn svg {
    width:17px;
    height:17px;
}

.btn-primary {
    background:var(--coral);
    color:#fff;
    box-shadow:0 9px 22px #ff77573e;
}

.btn-primary:hover {
    background:var(--coral-dark);
}

.btn-dark {
    background:#182747;
    color:#fff;
}

.btn-dark:hover {
    background:#283a61;
}

.btn-outline {
    border-color:var(--border);
    color:var(--ink);
    background:#fff;
}

.btn-outline:hover {
    background:#f7fafb;
}

.btn-light {
    color:#587188;
    background:#f4f8fc;
}

.btn.compact {
    min-height:38px;
    padding:8px 13px;
    font-size:12px;
    border-radius:11px;
}

.hero-carousel {
    position:relative;
    border-radius:28px;
    background:#e8f6fc;
    overflow:hidden;
    box-shadow:0 14px 45px #1c375b13;
    border:1px solid #edf5fb;
}

.hero-viewport {
    height:clamp(370px,35vw,510px);
    position:relative;
}

.hero-slide {
    position:absolute;
    inset:0;
    opacity:0;
    pointer-events:none;
    transition:opacity .55s ease;
}

.hero-slide.current {
    opacity:1;
    pointer-events:auto;
}

.hero-slide>img {
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

.hero-slide:before {
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    background:linear-gradient(90deg,rgba(236,248,252,.97) 0%,rgba(236,248,252,.87) 24%,rgba(236,248,252,.62) 41%,transparent 68%);
}

.hero-copy {
    position:absolute;
    z-index:2;
    left:clamp(25px,5vw,77px);
    top:50%;
    transform:translateY(-50%);
    max-width:450px;
}

.hero-kicker {
    display:inline-block;
    padding:8px 13px;
    border-radius:20px;
    background:rgba(255,255,255,.73);
    color:#c9664c;
    font-size:10px;
    font-weight:900;
    letter-spacing:.12em;
    margin-bottom:17px;
}

.hero-copy h2 {
    font-size:clamp(2.1rem,4.4vw,4.7rem);
    letter-spacing:-.07em;
    line-height:1.01;
    font-weight:900;
    margin:0 0 15px;
}

.hero-copy p {
    max-width:310px;
    color:#64788b;
    font-size:clamp(13px,1.2vw,16px);
    margin-bottom:21px;
}

.hero-controls {
    position:absolute;
    left:clamp(25px,5vw,77px);
    right:25px;
    bottom:23px;
    z-index:5;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.slide-dots,.hero-arrows {
    display:flex;
    gap:8px;
    align-items:center;
}

.slide-dots button {
    border:0;
    height:8px;
    width:8px;
    border-radius:50%;
    background:#8099a344;
    transition:width .2s,background .2s;
}

.slide-dots button.active {
    width:28px;
    background:var(--coral);
    border-radius:50px;
}

.hero-arrows button {
    border:1px solid #dce5eb;
    width:34px;
    height:34px;
    border-radius:50%;
    background:rgba(255,255,255,.8);
    font-size:16px;
    color:#53647a;
}

.home-section {
    margin:43px 0;
}

.section-header {
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:18px;
    margin:0 0 22px;
}

.section-header h2 {
    margin:7px 0 0;
    font-size:clamp(1.45rem,2.1vw,2rem);
}

.tiny-star {
    font-size:17px;
    color:var(--coral);
    vertical-align:top;
}

.more-link {
    font-size:12px;
    display:inline-flex;
    align-items:center;
    gap:9px;
    font-weight:800;
    color:#596b83;
}

.more-link:hover {
    color:var(--coral);
}

.more-link svg {
    width:16px;
}

.game-grid {
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:clamp(12px,1.6vw,23px);
}

.game-card {
    min-width:0;
    display:block;
    transition:transform .22s;
}

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

.game-art {
    aspect-ratio:4/4.9;
    border-radius:18px;
    overflow:hidden;
    background:#d2dff0;
    position:relative;
    box-shadow:0 10px 19px #2b3a4b10;
}

.game-art:after {
    content:"";
    position:absolute;
    inset:65% 0 0;
    background:linear-gradient(transparent,#06132935);
}

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

.game-card:hover img {
    transform:scale(1.045);
}

.card-play {
    position:absolute;
    right:11px;
    bottom:11px;
    width:33px;
    height:33px;
    z-index:2;
    background:#fff;
    color:var(--coral);
    border-radius:50%;
    display:grid;
    place-items:center;
    box-shadow:0 5px 16px #0002;
    opacity:0;
    transform:translateY(6px);
    transition:opacity .2s,transform .2s;
}

.game-card:hover .card-play,.game-card:focus-visible .card-play {
    opacity:1;
    transform:translateY(0);
}

.card-play svg {
    width:17px;
}

.game-data {
    padding:12px 3px 0;
}

.game-data strong {
    display:block;
    font-weight:800;
    font-size:13px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.game-data span {
    font-size:11px;
    color:#8898ac;
    font-weight:700;
}

.genre-area {
    display:grid;
    grid-template-columns:minmax(200px,320px) 1fr;
    align-items:center;
    gap:36px;
    margin:42px 0;
    padding:31px;
    background:linear-gradient(110deg,#e4f8f4,#f3fbff);
    border-radius:23px;
    border:1px solid #dceef0;
}

.genre-area h2 {
    font-size:27px;
    margin:10px 0;
}

.genre-area p {
    font-size:13px;
    margin:0;
}

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

.genre-chip {
    display:flex;
    align-items:center;
    gap:9px;
    min-width:0;
    background:#fff;
    border:1px solid #e4f0ef;
    border-radius:13px;
    padding:11px;
    font-weight:800;
    font-size:12px;
    transition:transform .2s;
}

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

.genre-chip>span {
    display:grid;
    place-items:center;
    border-radius:10px;
    width:30px;
    height:30px;
    background:#fef0e8;
    color:#f78356;
    font-size:20px;
    flex-shrink:0;
}

.genre-chip small {
    margin-left:auto;
    font-size:10px;
    color:#9cacbb;
}

.promo-strip {
    display:flex;
    align-items:center;
    gap:19px;
    padding:23px 29px;
    border:1px solid #f0e4cd;
    border-radius:20px;
    background:linear-gradient(110deg,#fff6de,#fffaf2,#fff1e9);
}

.promo-icon {
    height:54px;
    width:54px;
    border-radius:16px;
    background:#fee9bf;
    display:grid;
    place-items:center;
    color:#eaae3a;
    font-size:29px;
}

.promo-strip strong {
    font-size:17px;
}

.promo-strip p {
    margin:3px 0 0;
    font-size:12px;
}

.promo-strip>.btn {
    margin-left:auto;
}

.site-footer {
    margin:0 clamp(22px,4vw,62px);
    border-top:1px solid var(--border);
    padding:35px 0;
    display:flex;
    align-items:center;
    gap:40px;
    color:#8e9ab0;
    font-size:12px;
}

.site-footer p {
    margin:6px 0 0;
    font-size:12px;
}

.site-footer .wordmark {
    font-size:23px;
    color:var(--ink);
}

.site-footer .footer-nav {
    display:flex;
    gap:19px;
    margin-left:auto;
    white-space:nowrap;
}

.site-footer .copyright {
    max-width:200px;
    text-align:right;
}

.mobile-nav {
    display:none;
}

.inner-heading {
    margin-bottom:30px;
}

.inner-heading h1 {
    font-size:clamp(2.3rem,4vw,4.2rem);
    margin:8px 0;
}

.inner-heading p {
    margin:0;
}

.filter-bar {
    display:flex;
    align-items:end;
    gap:12px;
    padding:16px;
    border:1px solid var(--border);
    background:#fff;
    border-radius:19px;
    box-shadow:var(--shadow);
    margin:23px 0;
}

.filter-search {
    display:flex;
    align-items:center;
    gap:8px;
    background:#f4f8fc;
    border-radius:11px;
    padding:0 13px;
    flex:1;
    min-width:160px;
    height:45px;
}

.filter-search svg {
    width:18px;
    color:#95a5b7;
}

.filter-search input {
    border:0;
    background:transparent;
    min-width:0;
    width:100%;
    outline:0;
}

.filter-field {
    font-weight:800;
    font-size:11px;
    color:#728097;
    display:grid;
    gap:4px;
}

.filter-field select {
    min-width:145px;
}

.filter-bar select,.stacked-form select,.inline-editor select {
    padding:10px 13px;
    border:1px solid var(--border);
    border-radius:10px;
    background:#fff;
    color:var(--ink);
}

.filter-bar .btn {
    height:45px;
}

.results-meta {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:20px 0;
    color:#8594a8;
    font-size:12px;
}

.results-meta strong {
    color:#485974;
}

.pager {
    display:flex;
    justify-content:center;
    gap:8px;
    margin:30px 0;
}

.pager a {
    min-width:35px;
    text-align:center;
    padding:7px;
    background:#fff;
    border-radius:8px;
}

.pager a.current {
    background:var(--coral);
    color:#fff;
}

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

.category-tile {
    height:175px;
    border-radius:20px;
    padding:23px;
    position:relative;
    background:var(--tile-bg);
    display:flex;
    flex-direction:column;
    gap:6px;
    border:1px solid #fff;
    transition:transform .2s;
}

.category-tile:hover {
    transform:translateY(-4px);
}

.category-tile strong {
    font-size:23px;
    letter-spacing:-.04em;
}

.category-tile small {
    color:#698097;
    font-size:12px;
}

.category-motif {
    font-size:36px;
    line-height:1;
    margin-bottom:8px;
    color:#f98c61;
}

.category-arrow {
    position:absolute;
    right:19px;
    bottom:19px;
    font-size:24px;
}

.empty-state {
    padding:65px 20px;
    text-align:center;
    background:#fff;
    border:1px dashed #d5e5ee;
    border-radius:20px;
}

.empty-state>span {
    font-size:38px;
    color:var(--coral);
}

.empty-state h3 {
    font-size:26px;
    margin:12px 0;
}

.empty-state p {
    font-size:13px;
}

.game-breadcrumb {
    margin-bottom:24px;
    color:#93a0b2;
    font-size:12px;
    display:flex;
    gap:10px;
}

.game-breadcrumb a:hover {
    color:var(--coral);
}

.game-page-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:21px;
}

.game-page-head h1 {
    font-size:clamp(2rem,3vw,3.4rem);
    margin:9px 0 4px;
}

.game-page-head p {
    font-size:13px;
    margin:0;
}

.game-actions {
    display:flex;
    gap:10px;
}

.icon-btn {
    display:grid;
    place-items:center;
    height:44px;
    width:44px;
    border:1px solid var(--border);
    background:#fff;
    border-radius:12px;
    color:#ef8264;
}

.game-layout {
    display:grid;
    grid-template-columns:minmax(0,1fr) 245px;
    gap:24px;
}

.player-column {
    min-width:0;
}

.player-box {
    background:#111b30;
    border-radius:19px;
    overflow:hidden;
    position:relative;
    aspect-ratio:16/9;
    max-height:740px;
    color:#fff;
}

.player-box.portrait {
    aspect-ratio:16/9;
}

.player-poster {
    position:absolute;
    inset:0;
}

.poster-art {
    position:absolute;
    inset:0;
    opacity:.45;
    filter:blur(16px);
    transform:scale(1.1);
}

.poster-art img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.poster-overlay {
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,#071020a8,#07102033);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:20px;
}

.ready-tag {
    font-size:10px;
    font-weight:900;
    letter-spacing:.16em;
    color:#afe7f2;
}

.big-play {
    border:0;
    background:var(--coral);
    border-radius:17px;
    color:#fff;
    font-weight:900;
    font-size:19px;
    padding:16px 29px;
    display:flex;
    gap:12px;
    align-items:center;
    margin:17px 0;
    box-shadow:0 15px 40px #ff775744;
}

.poster-overlay p {
    color:#d3dfec;
    font-size:11px;
}

.player-box iframe {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
    background:#09172b;
}

.player-box.portrait iframe {
    left:50%;
    transform:translateX(-50%);
    width:min(100%,450px);
}

.player-unavailable {
    display:grid;
    place-items:center;
    align-content:center;
    height:100%;
    text-align:center;
    padding:20px;
}

.player-unavailable p {
    color:#b7c5d8;
}

.player-unavailable a {
    color:#8fd3e6;
}

.player-toolbar {
    display:flex;
    gap:14px;
    align-items:center;
    justify-content:space-between;
    margin:11px 0 24px;
}

.player-toolbar>div {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.player-toolbar button {
    border:1px solid var(--border);
    background:#fff;
    border-radius:10px;
    padding:9px 13px;
    font-weight:750;
    color:#576a82;
    font-size:11px;
}

.player-toolbar button:disabled {
    opacity:.4;
    cursor:not-allowed;
}

.player-toolbar span {
    font-size:11px;
    color:#94a1b3;
    white-space:nowrap;
}

.game-layout.theater {
    grid-template-columns:1fr;
}

.game-layout.theater .related-column {
    display:none;
}

.description-card {
    border:1px solid var(--border);
    border-radius:20px;
    padding:25px;
    background:#fff;
    margin:22px 0;
}

.description-card h2 {
    font-size:21px;
}

.description-card h3 {
    font-size:15px;
    margin-top:17px;
}

.description-card p {
    font-size:13px;
}

.related-column {
    min-width:0;
}

.related-column .section-header {
    margin:4px 0 16px;
}

.related-column .section-header h2 {
    font-size:19px;
}

.related-card {
    display:flex;
    align-items:center;
    gap:10px;
    background:#fff;
    padding:10px;
    border:1px solid var(--border);
    border-radius:14px;
    margin-bottom:10px;
}

.related-card img {
    width:55px;
    height:62px;
    object-fit:cover;
    border-radius:8px;
}

.related-card span:nth-child(2) {
    min-width:0;
    display:grid;
    gap:5px;
}

.related-card b {
    font-size:12px;
    display:block;
    line-height:1.25;
}

.related-card small {
    color:#93a4b8;
    font-size:10px;
}

.related-arrow {
    margin-left:auto;
    color:var(--coral);
}

.comment {
    border-top:1px solid var(--border);
    padding:13px 0;
}

.comment b {
    font-size:12px;
}

.comment p {
    margin:4px 0;
}

.rating-form {
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.rating-form select {
    border:1px solid var(--border);
    border-radius:10px;
    padding:9px;
}

.ad-space {
    border:1px dashed #d0e0e8;
    border-radius:12px;
    display:grid;
    place-items:center;
    gap:5px;
    padding:18px;
    color:#99aaba;
    font-size:10px;
}

.ad-space small {
    font-size:9px;
    color:#c0cad5;
}

.auth-wrap {
    display:grid;
    grid-template-columns:1fr 1fr;
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    min-height:520px;
    overflow:hidden;
}

.auth-panel {
    padding:clamp(25px,5vw,68px);
    max-width:600px;
}

.auth-panel h1 {
    margin:11px 0;
}

.auth-panel>p {
    font-size:14px;
    margin-bottom:28px;
}

.auth-art {
    background:#e4f6fa;
    overflow:hidden;
}

.auth-art img {
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:68% center;
}

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

.stacked-form label {
    font-weight:750;
    font-size:12px;
    color:#596981;
    display:grid;
    gap:7px;
}

.stacked-form input:not([type=checkbox]):not([type=file]),.stacked-form textarea,.stacked-form select,.inline-editor input:not([type=checkbox]),.inline-editor select {
    border:1px solid #dae5ee;
    background:#fff;
    padding:12px 13px;
    border-radius:11px;
    min-width:0;
    width:100%;
    color:var(--ink);
    outline-color:#69c8e6;
}

.stacked-form textarea {
    resize:vertical;
    min-height:80px;
}

.stacked-form input[type=file] {
    width:100%;
    padding:10px;
    border:1px dashed #dae5ee;
    border-radius:10px;
}

.stacked-form .checkline,.checkline {
    display:flex!important;
    gap:9px!important;
    align-items:center;
    font-size:12px!important;
    font-weight:700!important;
}

.checkline input {
    width:16px;
    height:16px;
    accent-color:var(--coral);
}

.helper {
    font-size:12px;
    color:#90a0b2;
    line-height:1.6;
}

.auth-switch {
    font-size:12px;
    margin:20px 0;
}

.auth-switch a,.article a {
    color:var(--coral);
    font-weight:800;
}

.account-card {
    display:flex;
    align-items:center;
    gap:16px;
    border-radius:20px;
    border:1px solid var(--border);
    padding:22px;
    background:#fff;
    margin-bottom:40px;
}

.account-card .btn {
    margin-left:auto;
}

.avatar-large {
    width:65px;
    height:65px;
    border-radius:18px;
    background:linear-gradient(135deg,#ffcdbf,#b0eee7);
    display:grid;
    place-items:center;
    font-size:26px;
    font-weight:900;
}

.account-card p {
    margin:4px 0;
}

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

.blog-card {
    padding:30px;
    background:linear-gradient(150deg,#f6feff,#fffbf4);
    border:1px solid var(--border);
    border-radius:20px;
    min-height:220px;
}

.blog-card span {
    color:var(--coral);
    font-size:10px;
    font-weight:900;
    letter-spacing:.12em;
}

.blog-card h2 {
    margin:17px 0;
    font-size:23px;
}

.blog-card p {
    font-size:13px;
}

.blog-card small {
    color:#91a0ac;
}

.article {
    max-width:800px;
    margin:18px auto;
    background:#fff;
    padding:clamp(20px,5vw,70px);
    border-radius:22px;
}

.article h1 {
    margin:15px 0 34px;
}

.article-body {
    font-size:16px;
    line-height:1.95;
    white-space:normal;
}

.back-link {
    display:block;
    font-size:12px;
    margin-bottom:20px;
}

.form-card {
    max-width:780px;
}

.flash {
    border-radius:13px;
    padding:14px 17px;
    font-size:13px;
    font-weight:700;
    margin:8px 0 22px;
}

.flash.error {
    background:#ffe9e9;
    color:#a43a55;
    border:1px solid #fdd1db;
}

.flash.success {
    background:#e6faf0;
    color:#14845e;
    border:1px solid #b9ecd2;
}

/* Separate editorial operating UI */
.admin-body {
    background:#f4f7fb;
    color:#1d2c43;
}

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

.admin-side {
    background:#1c2941;
    color:#e3ebf4;
    display:flex;
    flex-direction:column;
    min-height:100vh;
    position:sticky;
    top:0;
    height:100vh;
    overflow-y:auto;
    padding:26px 14px;
}

.admin-logo {
    display:flex;
    align-items:center;
    gap:11px;
    margin-bottom:33px;
    padding:0 10px;
    font-size:22px;
    letter-spacing:-.07em;
    font-weight:900;
}

.smallmark,.smallmark svg {
    width:40px;
    height:40px;
}

.admin-logo>span:last-child {
    line-height:1;
}

.admin-logo b {
    color:#ff977e;
}

.admin-logo small {
    display:block;
    letter-spacing:.15em;
    font-size:9px;
    text-transform:uppercase;
    color:#8ca0bb;
    margin-top:5px;
}

.side-label,.admin-nav-heading {
    font-weight:900;
    letter-spacing:.13em;
    font-size:10px;
    color:#6f85a2;
    margin:16px 11px 9px;
}

.admin-nav {
    display:flex;
    flex-direction:column;
    gap:3px;
}

.admin-nav-link {
    display:flex;
    align-items:center;
    gap:12px;
    min-height:39px;
    border-radius:10px;
    font-size:12px;
    font-weight:700;
    color:#a6b6cc;
    padding:10px 13px;
}

.admin-nav-link svg {
    width:17px;
    height:17px;
}

.admin-nav-link:hover {
    background:#263a55;
    color:#fff;
}

.admin-nav-link.active {
    background:#ff775721;
    color:#ffa18d;
}

.admin-sidebar-bottom {
    border-top:1px solid #31405a;
    margin-top:auto;
    padding:20px 10px;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:6px;
    color:#98aabe;
    font-size:10px;
}

.admin-sidebar-bottom a {
    display:block;
    width:100%;
    font-size:12px;
    color:#fff;
    margin-top:4px;
}

.system-dot {
    width:8px;
    height:8px;
    background:#7bd2b7;
    border-radius:50%;
}

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

.admin-topbar {
    min-height:74px;
    background:#fff;
    border-bottom:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 36px;
    gap:15px;
    position:sticky;
    top:0;
    z-index:10;
}

.admin-breadcrumb {
    font-size:12px;
    font-weight:750;
    color:#8c9bb0;
}

.admin-breadcrumb span {
    margin:0 9px;
    color:#c9d4df;
}

.admin-top-actions {
    display:flex;
    align-items:center;
    gap:10px;
}

.admin-mobile-nav {
    display:none;
}

.admin-content {
    padding:31px clamp(18px,3.2vw,52px);
    max-width:1590px;
    margin:0 auto;
}

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

.admin-title-row h1 {
    font-size:clamp(26px,2.7vw,37px);
    margin:8px 0 4px;
}

.admin-title-row p {
    font-size:12px;
    margin:0;
}

.admin-footer {
    color:#b6c1ce;
    font-size:11px;
    padding:14px 38px 30px;
}

.admin-footer a {
    color:#6d8298;
}

.stat-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:17px;
    margin-bottom:24px;
}

.stat-card {
    background:#fff;
    border:1px solid #e5ebf2;
    border-radius:17px;
    padding:21px;
    display:flex;
    flex-direction:column;
    gap:7px;
    box-shadow:0 8px 25px #1f325a04;
}

.stat-icon {
    height:37px;
    width:37px;
    display:grid;
    place-items:center;
    background:#fff1e9;
    color:var(--coral);
    border-radius:11px;
    margin-bottom:7px;
}

.stat-icon svg {
    width:19px;
}

.stat-card span {
    font-size:11px;
    color:#8594aa;
    font-weight:800;
}

.stat-card strong {
    font-weight:900;
    font-size:32px;
    letter-spacing:-.06em;
}

.stat-card small {
    font-size:10px;
    color:#bbc6d2;
}

.admin-two-col {
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(280px,.8fr);
    gap:20px;
    align-items:start;
}

.admin-card {
    background:#fff;
    border:1px solid #e4ebf2;
    border-radius:17px;
    padding:23px;
    box-shadow:0 5px 22px #152c4005;
    min-width:0;
    margin-bottom:18px;
}

.admin-card h2 {
    font-size:18px;
    margin:0 0 16px;
}

.admin-card h3 {
    font-size:14px;
    margin:0 0 13px;
}

.admin-card p {
    font-size:12px;
}

.admin-card .section-header {
    margin-bottom:16px;
}

.admin-card .section-header a:not(.btn) {
    font-size:11px;
    color:var(--coral);
    font-weight:800;
}

.admin-empty {
    background:#f8fbfd;
    color:#8fa1b6;
    border:1px dashed #dce7f0;
    border-radius:12px;
    padding:27px;
    text-align:center;
    font-size:12px;
}

.data-table {
    width:100%;
    border-collapse:collapse;
    min-width:540px;
    font-size:12px;
}

.data-table th {
    text-align:left;
    color:#9eacc0;
    font-size:10px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.09em;
    border-bottom:1px solid var(--border);
    padding:12px 10px;
}

.data-table td {
    border-bottom:1px solid #eef1f5;
    padding:12px 10px;
    vertical-align:middle;
}

.data-table td strong {
    font-size:12px;
}

.data-table td a {
    color:#ec785d;
    font-weight:850;
}

.data-table td:first-child {
    padding-left:0;
}

.data-table tr:last-child td {
    border-bottom:0;
}

.table-scroll {
    overflow-x:auto;
}

.table-game {
    display:flex;
    align-items:center;
    gap:11px;
    min-width:175px;
}

.table-game img {
    width:46px;
    height:49px;
    border-radius:9px;
    object-fit:cover;
}

.table-game span {
    min-width:0;
    display:grid;
    gap:2px;
}

.table-game small {
    font-size:10px;
    color:#a7b4c1;
}

.status-pill {
    display:inline-block;
    border-radius:6px;
    padding:4px 8px;
    font-size:10px;
    font-weight:850;
    color:#697c9a;
    background:#f2f6fc;
}

.status-pill.published,.status-pill.completed,.status-pill.approved {
    color:#24967c;
    background:#e7f9f1;
}

.status-pill.draft,.status-pill.review,.status-pill.partial,.status-pill.pending {
    color:#bc8743;
    background:#fff5dc;
}

.status-pill.archived,.status-pill.blocked,.status-pill.failed,.status-pill.invalid {
    color:#c25b69;
    background:#fff0f1;
}

.row-actions {
    white-space:nowrap;
}

.row-actions a {
    padding:4px 7px;
}

.next-steps {
    background:linear-gradient(145deg,#eef9f7,#fff);
}

.next-steps h2 {
    font-size:27px;
    margin:12px 0;
}

.next-steps a {
    display:flex;
    gap:12px;
    padding:13px 0;
    border-top:1px solid #e1eeee;
    font-size:12px;
    color:#8193a6;
}

.next-steps a b {
    color:#304461;
    margin-right:auto;
}

.admin-action-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:17px;
    gap:12px;
    flex-wrap:wrap;
}

.filter-tabs {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.filter-tabs a {
    font-size:11px;
    font-weight:800;
    border:1px solid #e0eaf1;
    border-radius:9px;
    padding:9px 13px;
    background:#fff;
    color:#8190a4;
}

.filter-tabs a.active {
    background:#fff0eb;
    border-color:#ffcebf;
    color:#ec7656;
}

.edit-grid {
    display:grid;
    grid-template-columns:minmax(0,1.6fr) minmax(260px,.7fr);
    gap:20px;
    align-items:start;
}

.form-section-label {
    font-size:10px;
    color:#ef8267;
    letter-spacing:.14em;
    font-weight:900;
    padding-top:9px;
    border-bottom:1px solid #edf2f6;
    padding-bottom:12px;
}

.form-2 {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:15px;
    align-items:center;
}

.form-preview-cover {
    width:100%;
    max-height:240px;
    object-fit:cover;
    border-radius:12px;
    margin:14px 0;
}

.inline-editor {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin:12px 0;
}

.inline-editor input[type=number] {
    width:80px;
    flex:0 0 80px;
}

.inline-editor input:not([type=number]) {
    max-width:230px;
    flex:1;
}

.inline-editor select {
    min-width:85px;
    width:auto;
}

.admin-list-cols {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:17px;
}

.hero-editor>img {
    border-radius:12px;
    aspect-ratio:21/9;
    object-fit:cover;
    width:100%;
    margin-bottom:16px;
}

.source-card {
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 0;
    border-bottom:1px solid var(--border);
}

.source-card>div {
    display:grid;
    min-width:0;
    gap:2px;
    flex:1;
}

.source-card strong {
    font-size:13px;
}

.source-card small {
    font-size:10px;
    color:#8394a9;
    overflow-wrap:anywhere;
}

.source-icon {
    width:43px;
    height:43px;
    border-radius:12px;
    background:#e5f9f8;
    color:#39a8af;
    display:grid;
    place-items:center;
    font-size:24px;
}

.source-card form {
    margin-left:auto;
}

.stats-horizontal {
    display:flex;
    gap:17px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.small-stat {
    background:#fff;
    border:1px solid var(--border);
    padding:15px 24px;
    border-radius:13px;
    min-width:130px;
    display:grid;
    gap:4px;
}

.small-stat b {
    font-size:29px;
    letter-spacing:-.07em;
}

.small-stat span {
    font-size:11px;
    color:#8697ac;
}

.moderation-row,.submission-row {
    padding:17px 0;
    border-bottom:1px solid var(--border);
}

.moderation-row b,.submission-row b {
    font-size:12px;
}

.moderation-row p,.submission-row p {
    font-size:11px;
    margin:4px 0 9px;
}

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

.moderation-row select {
    padding:8px;
    border:1px solid var(--border);
    border-radius:8px;
}

.submission-row>div {
    max-width:100%;
}

.wrap-anywhere {
    overflow-wrap:anywhere;
    color:#9ba8bb;
}

.mini-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:13px 0;
    border-bottom:1px solid var(--border);
    gap:15px;
}

.mini-row span {
    display:grid;
    gap:3px;
}

.mini-row b {
    font-size:12px;
}

.mini-row small {
    font-size:10px;
    color:#9ba8bb;
}

.mini-row>a {
    font-size:11px;
    font-weight:800;
    color:var(--coral);
}

.collection-edit,.ad-slot-form {
    border-bottom:1px solid var(--border);
    padding-bottom:16px;
    margin-bottom:16px;
}

.bar-chart {
    height:230px;
    display:flex;
    align-items:end;
    justify-content:space-evenly;
    gap:5px;
    min-width:0;
    padding-top:30px;
}

.bar-item {
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:end;
    gap:8px;
    flex:1;
}

.bar-item>div {
    width:70%;
    max-width:36px;
    background:linear-gradient(180deg,#50cfd0,#a6ece1);
    border-radius:6px 6px 2px 2px;
}

.bar-item small {
    font-size:9px;
    color:#8fa0b6;
    white-space:nowrap;
}

.passed {
    color:#209d7a;
}

.failed {
    color:#d15668;
}

/* responsive layouts */
@media(max-width:1350px) {
    .topbrand {
        min-width:120px;
    }
    .brand-tag {
        display:none;
    }
    .toplinks {
        gap:17px;
    }
    .page-content {
        padding-left:28px;
        padding-right:28px;
    }
    .topbar {
        padding-left:28px;
        padding-right:28px;
    }
    .game-grid {
        grid-template-columns:repeat(5,minmax(0,1fr));
    }
    .stat-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:1050px) {
    .toplinks {
        display:none;
    }
    .topbrand {
        min-width:90px;
    }
    .app-shell {
        grid-template-columns:72px minmax(0,1fr);
    }
    .rail {
        padding:23px 9px;
    }
    .game-grid {
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
    .genre-area {
        grid-template-columns:1fr;
    }
    .game-layout {
        grid-template-columns:minmax(0,1fr) 200px;
    }
    .admin-shell {
        grid-template-columns:200px minmax(0,1fr);
    }
    .admin-side {
        padding-left:7px;
        padding-right:7px;
    }
    .admin-content {
        padding:24px 20px;
    }
    .admin-two-col {
        grid-template-columns:minmax(0,1fr);
    }
    .edit-grid {
        grid-template-columns:minmax(0,1fr) 220px;
    }
}

@media(max-width:760px) {
    .site-body {
        padding-bottom:62px;
    }
    .app-shell {
        display:block;
    }
    .rail {
        display:none;
    }
    .topbar {
        height:72px;
        padding:0 16px;
        gap:12px;
    }
    .topbrand .wordmark {
        font-size:24px;
    }
    .top-search {
        max-width:none;
        min-width:80px;
    }
    .top-search input {
        font-size:12px;
    }
    .user-actions .text-link,.user-actions .btn,.user-actions .hide-small {
        display:none;
    }
    .profile-link {
        gap:0;
    }
    .page-content {
        padding:25px 17px 46px;
    }
    .welcome-row {
        margin-bottom:22px;
    }
    .welcome-row h1 {
        font-size:clamp(2rem,6vw,3.2rem);
    }
    .welcome-pill {
        display:none;
    }
    .hero-viewport {
        height:410px;
    }
    .hero-slide>img {
        object-position:64% center;
    }
    .hero-slide:before {
        background:linear-gradient(0deg,rgba(230,247,254,.96) 2%,rgba(230,247,254,.81) 39%,rgba(230,247,254,.08) 76%);
    }
    .hero-copy {
        top:auto;
        bottom:36px;
        left:21px;
        right:18px;
        transform:none;
        max-width:320px;
    }
    .hero-copy h2 {
        font-size:2.4rem;
    }
    .hero-copy p {
        font-size:12px;
    }
    .hero-kicker {
        margin-bottom:10px;
    }
    .hero-controls {
        bottom:10px;
        left:20px;
        right:16px;
    }
    .hero-arrows button {
        height:30px;
        width:30px;
    }
    .game-grid {
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:13px;
    }
    .site-footer {
        flex-wrap:wrap;
        margin:0 17px;
        gap:18px;
    }
    .site-footer .footer-nav {
        margin-left:0;
    }
    .site-footer .copyright {
        text-align:left;
    }
    .mobile-nav {
        position:fixed;
        bottom:0;
        left:0;
        right:0;
        height:64px;
        display:flex;
        justify-content:space-around;
        align-items:center;
        z-index:30;
        background:#fffffff2;
        border-top:1px solid var(--border);
        box-shadow:0 -3px 20px #0000000b;
        backdrop-filter:blur(13px);
    }
    .mobile-nav a {
        color:#7189a4;
        padding:9px;
    }
    .mobile-nav svg {
        width:21px;
    }
    .genre-chips {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .section-header h2 {
        font-size:1.35rem;
    }
    .promo-strip {
        flex-wrap:wrap;
    }
    .promo-strip>.btn {
        margin-left:0;
    }
    .filter-bar {
        flex-wrap:wrap;
    }
    .filter-search {
        flex-basis:100%;
    }
    .filter-field {
        flex:1;
    }
    .category-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .game-layout {
        grid-template-columns:1fr;
    }
    .related-column {
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }
    .related-column .section-header {
        grid-column:1/-1;
    }
    .related-card {
        margin:0;
    }
    .player-toolbar span {
        display:none;
    }
    .auth-wrap {
        grid-template-columns:1fr;
    }
    .auth-art {
        display:none;
    }
    .blog-grid {
        grid-template-columns:1fr 1fr;
    }
    .admin-shell {
        grid-template-columns:1fr;
    }
    .admin-side {
        display:none;
    }
    .admin-topbar {
        height:64px;
        min-height:64px;
        padding:0 15px;
    }
    .admin-top-actions {
        gap:6px;
    }
    .admin-top-actions .btn-light {
        display:none;
    }
    .admin-mobile-nav {
        display:flex;
        overflow-x:auto;
        gap:9px;
        padding:13px 16px;
        background:#fff;
        border-bottom:1px solid var(--border);
    }
    .admin-mobile-nav a {
        font-size:12px;
        font-weight:800;
        white-space:nowrap;
        padding:7px 10px;
        border-radius:8px;
        background:#f6f9fd;
    }
    .admin-content {
        padding:23px 15px;
    }
    .edit-grid {
        grid-template-columns:1fr;
    }
    .admin-list-cols {
        grid-template-columns:1fr;
    }
    .stat-grid {
        gap:11px;
    }
    .stat-card {
        padding:15px;
    }
    .stat-card strong {
        font-size:27px;
    }
}

@media(max-width:479px) {
    .game-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:15px;
    }
    .game-art {
        aspect-ratio:4/4.7;
    }
    .genre-area {
        padding:20px;
        gap:20px;
    }
    .genre-chip {
        padding:8px 7px;
        gap:6px;
    }
    .genre-chip small {
        display:none;
    }
    .hero-viewport {
        height:390px;
    }
    .hero-copy h2 {
        font-size:2.25rem;
    }
    .hero-copy p {
        max-width:250px;
    }
    .hero-slide>img {
        object-position:68% center;
    }
    .category-grid {
        grid-template-columns:1fr 1fr;
        gap:11px;
    }
    .category-tile {
        height:150px;
        padding:16px;
    }
    .category-tile strong {
        font-size:18px;
    }
    .category-motif {
        font-size:28px;
    }
    .related-column {
        grid-template-columns:1fr;
    }
    .game-page-head h1 {
        font-size:2rem;
    }
    .player-box {
        aspect-ratio:16/11;
    }
    .player-toolbar button {
        padding:9px;
        font-size:10px;
    }
    .description-card {
        padding:18px;
    }
    .blog-grid {
        grid-template-columns:1fr;
    }
    .promo-strip {
        padding:19px;
    }
    .form-2 {
        grid-template-columns:1fr;
    }
    .admin-card {
        padding:17px;
    }
    .stat-card span {
        font-size:10px;
    }
    .top-search button {
        display:none;
    }
    .top-search input {
        padding:7px 5px;
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*:before,*:after {
        scroll-behavior:auto!important;
        transition:none!important;
        animation:none!important;
    }
}

.source-edit {
    border-top:1px solid var(--border);
    padding:11px 0;
    margin:0 0 12px;
}

.source-edit summary {
    font-size:12px;
    font-weight:850;
    color:#d46c52;
    cursor:pointer;
}

.source-edit form {
    margin:16px 0;
}

/* Static QA preview game filtering */
.game-card[hidden] {
    display:none!important;
}
