/* TioDosJogos: plain CSS, no build step. Fonts are self-hosted (the site is
   cross-origin isolated, so it can't pull fonts from other origins). */

@font-face {
    font-family: 'Bungee';
    src: url('../fonts/bungee-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito';
    src: url('../fonts/nunito-var.woff2') format('woff2');
    font-weight: 200 1000;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Nunito';
    src: url('../fonts/nunito-var-ext.woff2') format('woff2');
    font-weight: 200 1000;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --night: #12071f;
    --night-2: #1a0b2e;
    --plum: #2a1245;
    --plum-2: #3a1a5c;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f6efff;
    --muted: #b9a8d1;
    --gold: #ffb627;
    --coral: #ff6b4a;
    --pink: #ff4f6d;
    --accent: var(--gold);
    --radius: 14px;
    --display: 'Bungee', 'Impact', system-ui, sans-serif;
    --body: 'Nunito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--night);
    background-image: radial-gradient(ellipse 120% 60% at 50% 0%, var(--plum) 0%, transparent 70%);
    color: var(--text);
    font: 400 17px/1.6 var(--body);
}
main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
kbd { font: 700 .9em/1 var(--body); padding: .25em .5em; border-radius: 6px; background: var(--plum-2); border: 1px solid var(--line); border-bottom-width: 3px; white-space: nowrap; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; font-weight: 800; }
.skip:focus { left: 8px; }

/* Top bar */
.topbar {
    position: sticky; top: 0; z-index: 20;
    background: rgba(18, 7, 31, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 clamp(18px, 4.6vw, 24px)/1 var(--display); letter-spacing: .01em; }
.logo-tio { color: var(--gold); }
.logo-dos { color: var(--coral); }
.logo-jogos { color: var(--text); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 800; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--plum-2); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px;
    border-radius: 12px; border: 2px solid transparent;
    font: 900 16px/1 var(--body); letter-spacing: .02em; text-transform: uppercase;
    text-decoration: none; cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(2px); }
.btn-primary {
    background: linear-gradient(180deg, var(--gold), var(--coral));
    color: #2a0d12;
    box-shadow: 0 4px 0 #a8341f, 0 10px 24px rgba(255, 107, 74, .35);
}
.btn-primary:hover { color: #2a0d12; transform: translateY(-1px); box-shadow: 0 5px 0 #a8341f, 0 14px 30px rgba(255, 107, 74, .45); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-small { min-height: 38px; padding: 8px 14px; font-size: 13px; background: var(--plum-2); color: var(--text); border-color: var(--line); }
.btn-small:hover { background: var(--plum); color: #fff; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; z-index: -2; }
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(18, 7, 31, .96) 0%, rgba(18, 7, 31, .82) 40%, rgba(18, 7, 31, .25) 75%, rgba(18, 7, 31, .1) 100%),
        linear-gradient(0deg, var(--night) 0%, transparent 35%);
}
.hero-inner { padding-top: clamp(56px, 12vw, 132px); padding-bottom: clamp(48px, 9vw, 104px); max-width: 1180px; }
.hero-inner > * { max-width: 560px; }
.eyebrow { font-weight: 900; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--accent); margin-bottom: 12px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: #fff; }
.hero-title {
    font: 400 clamp(42px, 9vw, 84px)/.95 var(--display);
    color: var(--accent);
    text-shadow: 0 4px 0 #8a2a12, 0 10px 30px rgba(0, 0, 0, .5);
    margin-bottom: 14px;
}
.hero-tagline { font-size: clamp(19px, 2.6vw, 24px); font-weight: 800; margin-bottom: 10px; }
.hero-summary { color: #e4d8f4; font-size: 18px; margin-bottom: 22px; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.chips li { font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }

@media (max-width: 719px) {
    .hero::after { background: linear-gradient(0deg, var(--night) 0%, rgba(18, 7, 31, .8) 50%, rgba(18, 7, 31, .3) 100%); }
}

/* Sections */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(58, 26, 92, .35)); border-top: 1px solid var(--line); }
.section-title { font: 400 clamp(28px, 5vw, 40px)/1.05 var(--display); color: var(--text); }
.section-lead { color: var(--muted); max-width: 620px; margin-bottom: 32px; }

/* Game cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card {
    background: var(--night-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover { color: inherit; }
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--plum); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-status { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 99px; background: var(--night); color: var(--accent); }
.card-body { padding: 18px 20px 22px; }
.card-title { font: 400 22px/1.1 var(--display); color: var(--accent); margin-bottom: 6px; }
.card-tagline { color: var(--muted); margin-bottom: 14px; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.platforms li { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 6px; background: var(--plum-2); }
.card-soon { border-style: dashed; background: transparent; display: grid; place-items: center; min-height: 260px; }
.card-soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card-soon-inner { text-align: center; padding: 24px; }
.card-soon .card-title { color: var(--muted); }
.soon-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px dashed var(--muted); color: var(--muted); font: 400 26px/1 var(--display); margin-bottom: 14px; }

/* About */
.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 1.3fr 1fr; gap: 64px; } }
.about p { color: #e4d8f4; max-width: 620px; }
.about-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.about-facts li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); }
.about-facts strong { font: 400 30px/1 var(--display); color: var(--gold); min-width: 40px; text-align: center; }

/* Game page */
.hero-game .hero-inner { padding-bottom: clamp(40px, 7vw, 80px); }
.game-layout { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 960px) {
    .game-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
    .game-side { position: sticky; top: 88px; align-self: start; }
}
.game-side { order: -1; }
@media (min-width: 960px) { .game-side { order: 0; } }
.block { margin-bottom: 56px; }
.block-title { font: 400 clamp(22px, 3.6vw, 28px)/1.1 var(--display); color: var(--accent); margin-bottom: 18px; }
.block > p { color: #e4d8f4; }
.features { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.features li { position: relative; padding: 12px 16px 12px 46px; border-radius: 12px; background: var(--night-2); border: 1px solid var(--line); }
.features li::before { content: ''; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 4px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold), var(--coral)); }

.facts { margin: 0; padding: 8px 20px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); display: grid; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 800; text-align: right; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.shot { margin: 0; }
.shot-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--plum); cursor: zoom-in; }
.shot-btn img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; transition: transform .2s ease; }
.shot-btn:hover img { transform: scale(1.04); }
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.controls { width: 100%; border-collapse: collapse; background: var(--night-2); }
.controls th, .controls td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.controls thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--plum); }
.controls tbody th { font-weight: 800; }
.controls tbody tr:last-child > * { border-bottom: 0; }

.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 16px; }
.download { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); }
.download-head h3 { font: 400 22px/1 var(--display); margin-bottom: 6px; }
.download-head span { font-size: 14px; }
.download-howto { font-size: 14px; color: #d9cbea; margin: 0; flex: 1; }
.download-hash summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 700; }
.download-hash code { display: block; margin-top: 8px; font-size: 11px; word-break: break-all; color: var(--muted); }

.prose { padding: 4px 22px; border-left: 3px solid var(--accent); color: #e4d8f4; }
.prose h2, .prose h3 { font-size: 18px; color: var(--text); margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--text); }

/* Lightbox */
.lightbox { max-width: min(1280px, 94vw); padding: 0; border: 0; border-radius: var(--radius); background: var(--night); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox::backdrop { background: rgba(8, 3, 14, .85); }
.lightbox img { width: 100%; }
.lightbox-caption { padding: 12px 18px; margin: 0; color: var(--muted); }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* Play page: the game takes the whole viewport under the top bar */
.play-page .footer { display: none; }
.player { display: flex; flex-direction: column; height: calc(100dvh - 65px); }
.player-bar { display: flex; align-items: center; gap: 16px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--night-2); }
.player-back { font-weight: 900; text-decoration: none; white-space: nowrap; }
.player-note { flex: 1; color: var(--muted); font-size: 14px; }
@media (max-width: 719px) { .player-note { display: none; } .player-bar { justify-content: space-between; } }
.player-stage { position: relative; flex: 1; background: #000; }
.player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player-touch { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; background: rgba(18, 7, 31, .94); }
.player-touch[hidden] { display: none; }
.player-touch .actions { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }

/* Error pages */
.error-page { text-align: center; padding: clamp(64px, 14vw, 140px) 0; }
.error-page .hero-title { margin-bottom: 8px; }
.error-page .actions { justify-content: center; margin-top: 24px; }

/* Stats page (/estatisticas) */
.stats { padding-top: 40px; padding-bottom: 72px; }
.stats-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.stats-head p { margin: 0; }
.range { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--night-2); border: 1px solid var(--line); }
.range a { color: var(--muted); text-decoration: none; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 9px; }
.range a:hover { color: var(--text); }
.range a[aria-current] { background: var(--plum-2); color: var(--text); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-bottom: 24px; }
.tile { padding: 18px 20px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); }
.tile p { margin: 0; }
.tile-label { color: var(--muted); font-weight: 700; font-size: 15px; }
.tile-value { font: 800 40px/1.15 var(--body); margin: 4px 0 !important; }
.tile-sub { color: var(--muted); font-size: 13px; }

.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-bottom: 48px; }
.chart { margin: 0; padding: 18px 20px 14px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); }
.chart-title { font-weight: 800; margin-bottom: 14px; }
.chart-plot { position: relative; height: 180px; margin-left: 36px; }
.chart-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.chart-gridline { position: relative; border-top: 1px solid var(--line); height: 0; }
.chart-gridline span { position: absolute; right: calc(100% + 8px); top: -9px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-columns { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.chart-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; border-radius: 4px; }
.chart-col:hover, .chart-col:focus-visible { background: rgba(255, 255, 255, .05); }
.chart-col:focus-visible { outline-offset: 0; }
.chart-bar { display: block; width: 100%; max-width: 24px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--series); }
.chart-col:hover .chart-bar, .chart-col:focus-visible .chart-bar { filter: brightness(1.2); }
.chart-axis { display: flex; justify-content: space-between; margin: 8px 0 0 36px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-tip { position: absolute; z-index: 30; pointer-events: none; display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: #0b0414; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 13px; white-space: nowrap; }
.chart-tip strong { font-size: 15px; }
.chart-tip span { color: var(--muted); }
.chart-tip[hidden] { display: none; }

.stats-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; margin-bottom: 32px; }
.numbers td, .numbers thead th:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.numbers thead th:nth-child(2) { text-align: left; }
.numbers td:nth-child(2) { text-align: left; }
.per-day summary { cursor: pointer; font-weight: 800; margin-bottom: 12px; }

/* Admin panel */
.admin-badge { font: 800 11px/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--night); background: var(--muted); padding: 4px 7px; border-radius: 6px; vertical-align: middle; }
.admin .nav { align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.admin .nav form { margin: 0; }
.nav-button { background: none; border: 0; color: var(--text); font: 800 17px/1.6 var(--body); padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.nav-button:hover { background: var(--plum-2); }
@media (max-width: 719px) { .admin .topbar-inner { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; } .admin .nav a, .nav-button { font-size: 15px; padding: 6px 8px; } }
.admin-main { padding-top: 32px; padding-bottom: 80px; }
.small { font-size: 14px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }

.flash { padding: 12px 16px; border-radius: 12px; background: rgba(46, 160, 67, .16); border: 1px solid rgba(46, 160, 67, .5); margin-bottom: 24px; }
.flash-error { background: rgba(255, 79, 109, .14); border-color: rgba(255, 79, 109, .5); }

.pill { display: inline-block; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; padding: 2px 9px; border-radius: 99px; margin-right: 6px; vertical-align: 1px; }
.pill-on { background: rgba(46, 160, 67, .2); color: #7ee2a0; }
.pill-off { background: rgba(255, 255, 255, .1); color: var(--muted); }

.admin-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 12px; }
.admin-section-head .actions { margin: 0; }
.admin-section-head form { margin: 0; }
.btn-small-primary { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-danger { background: #b3243c; color: #fff; }
.btn-danger:hover { background: #d22c48; color: #fff; }
.link-danger { background: none; border: 0; padding: 0; color: #ff8fa3; font: 700 14px var(--body); text-decoration: underline; cursor: pointer; }
.inline-form { margin: 8px 0 0; }

.admin-games { margin: 8px 0 48px; }
.admin-game { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px 20px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); margin-bottom: 12px; }
.admin-game-cover { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--plum); }
.admin-game-cover img { width: 100%; height: 100%; object-fit: cover; }
.admin-game h3 { font: 400 20px/1.2 var(--display); margin: 0 0 6px; }
.admin-game h3 a { color: var(--text); text-decoration: none; }
.admin-game h3 a:hover { color: var(--gold); }
.admin-game p { margin: 0; font-size: 14px; }
.admin-game-stats { display: flex; gap: 24px; margin: 0; }
.admin-game-stats dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.admin-game-stats dd { margin: 0; font: 800 22px/1.2 var(--body); }
.admin-game-stats dd.muted { font: 400 12px/1.4 var(--body); }
@media (max-width: 859px) { .admin-game { grid-template-columns: 120px 1fr; } .admin-game-stats { grid-column: 1 / -1; } }
@media (max-width: 479px) { .admin-game { grid-template-columns: 1fr; } }

.admin-block { padding: 24px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.danger-zone .block-title { color: #ff8fa3; }

.card-form { padding: 24px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); }
.login { max-width: 420px; margin: 40px auto; display: grid; gap: 16px; }
.fields-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field > span:first-child { font-weight: 800; font-size: 15px; }
.field small { color: var(--muted); font-size: 13px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea, .admin-shot input, .danger-zone input {
    width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: var(--night); color: var(--text); font: 400 16px/1.4 var(--body);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .admin-shot input:focus, .danger-zone input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field input[type="color"] { width: 64px; height: 42px; padding: 2px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: var(--night); }
.field input[type="file"] { font: 400 15px var(--body); color: var(--muted); max-width: 100%; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 14px !important; }
.input-prefix { display: flex; align-items: center; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: var(--night); overflow: hidden; }
.input-prefix > span { padding: 0 2px 0 12px; color: var(--muted); }
.input-prefix input { border: 0 !important; padding-left: 2px !important; }
.field-error { display: block; color: #ff8fa3; font-style: normal; font-size: 14px; font-weight: 700; }
.check { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.upload { display: grid; gap: 12px; margin-top: 12px; max-width: 640px; }
.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.upload-row progress { width: 200px; height: 10px; accent-color: var(--gold); }
.upload-msg { font-size: 14px; color: var(--muted); }
.upload-msg.is-error { color: #ff8fa3; font-weight: 700; }
.danger-zone .upload-row input { max-width: 260px; }

.admin-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 16px 0; }
.admin-shot { position: relative; padding: 10px; border-radius: 12px; background: var(--night-2); border: 1px solid var(--line); }
.admin-shot.is-cover { border-color: var(--gold); }
.admin-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.admin-shot form { margin: 0; }
.admin-shot input { padding: 7px 10px; font-size: 14px; }
.admin-shot-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cover-badge { position: absolute; top: 18px; left: 18px; background: var(--gold); color: var(--night); }
.admin-downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 12px 0; }
.admin-downloads .download { gap: 10px; }
.admin-downloads .upload { margin: 0; }
.admin-downloads input[type="file"] { font-size: 14px; color: var(--muted); max-width: 100%; }

/* Languages: header switcher, admin text sections */
.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; }
.languages { display: flex; gap: 2px; list-style: none; margin: 0 0 0 8px; padding: 3px; border-radius: 10px; background: var(--night-2); border: 1px solid var(--line); }
.languages a { display: block; padding: 4px 8px !important; border-radius: 7px; font-size: 13px; font-weight: 900; color: var(--muted) !important; letter-spacing: .04em; }
.languages a:hover { color: var(--text) !important; background: var(--plum-2); }
.languages a[aria-current] { color: var(--night) !important; background: var(--gold); }
/* Phones: the logo, two links and the switcher don't fit; the links are anchors on the home page, which the logo opens */
@media (max-width: 559px) { body:not(.admin) .nav > a { display: none; } .languages { margin-left: 0; } }
.texts-intro { margin: 28px 0 12px; }
.language { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 12px; background: rgba(0, 0, 0, .12); }
.language[open] { padding-bottom: 18px; }
.language summary { cursor: pointer; padding: 14px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.language-name { font-weight: 900; font-size: 17px; margin-right: 4px; }
.caption-field { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.caption-field > span { width: 22px; font-size: 11px; font-weight: 900; color: var(--muted); }
.missing-language { text-decoration: line-through; opacity: .55; }
@media (max-width: 359px) { .logo img { display: none; } }
