/* ─────────────────────────────────────────────────────────────────────────────
   Caramel Dog — design system do site
   Linguagem visual do jogo: céu azul, painéis coloridos com contorno escuro grosso,
   botões "pílula" ilustrados (verde/laranja com brilho), ícones reais das moedas.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    color-scheme: light;
    --ink: #1d2140;            /* contorno escuro dos botões/painéis do jogo */
    --ink-soft: #3a3f66;
    --text: #1d2140;
    --muted: #5b6285;
    --sky-top: #3f9cf5;
    --sky-mid: #8fd0ff;
    --sky-low: #dff3ff;
    --cream: #fff7e3;
    --paper: #ffffff;
    --caramel: #f5a623;
    --caramel-dark: #cf7a06;
    --green: #7fdb2c;
    --green-dark: #2f8f12;
    --orange: #ff9b33;
    --orange-dark: #d8560f;
    --blue: #43a8ff;
    --blue-dark: #1767c9;
    --purple: #9b5cff;
    --pink: #ff5fa2;
    --red: #ff5a5f;
    /* moedas (AGENTS.md): Ossos de Diamante azul, Cash verde, Ração de Gato vermelho */
    --diamond: #1f8bff;
    --cash: #21a843;
    --catfood: #e5383b;
    /* raridades */
    --r-common: #8d97ad;
    --r-rare: #2f86ff;
    --r-epic: #9b4dff;
    --r-legendary: #ffae00;
    --r-mythic: #ff3d6e;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 5px 0 var(--ink);
    --gutter: 16px;
    --max: 1180px;
    --font-display: "Fredoka", "Baloo 2", "Nunito", "Segoe UI", system-ui, sans-serif;
    --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background-color: var(--sky-low);
    background-image:
        radial-gradient(ellipse 220px 60px at 12% 9%, rgba(255,255,255,.9), transparent 70%),
        radial-gradient(ellipse 280px 70px at 82% 5%, rgba(255,255,255,.85), transparent 70%),
        radial-gradient(ellipse 180px 50px at 60% 16%, rgba(255,255,255,.7), transparent 70%),
        linear-gradient(180deg, var(--sky-top) 0, #5eb3fa 640px, var(--sky-mid) 1000px, var(--sky-low) 1500px);
    background-repeat: no-repeat;
    overflow-x: hidden;
}

img { max-width: 100%; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .9em; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: 1.25rem; }
.pre-line { white-space: pre-line; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Texto de título com contorno, igual às telas do jogo */
.outlined {
    color: #fff;
    -webkit-text-stroke: 1.5px var(--ink);
    paint-order: stroke fill;
    text-shadow: 0 3px 0 var(--ink);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 247, 227, .94);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--ink);
    box-shadow: 0 3px 0 rgba(29,33,64,.15);
}
.site-header .bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 58px; height: 58px; object-fit: contain; margin: -4px 0 -10px; filter: drop-shadow(0 3px 0 rgba(29,33,64,.25)); }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.nav-toggle { display: none; }
.nav-toggle-label {
    margin-left: auto; display: none; cursor: pointer; width: 46px; height: 42px;
    border: 3px solid var(--ink); border-radius: 12px; background: var(--caramel); box-shadow: 0 3px 0 var(--ink);
    align-items: center; justify-content: center;
}
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--ink); position: relative; content: "";
}
.nav-toggle-label span::before { position: absolute; top: -7px; }
.nav-toggle-label span::after { position: absolute; top: 7px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav a {
    font-family: var(--font-display); font-weight: 600; text-decoration: none; color: var(--ink);
    padding: 7px 14px; border-radius: 999px; border: 2px solid transparent; white-space: nowrap;
}
.main-nav a:hover { background: #fff; border-color: var(--ink); }
.main-nav a.active { background: var(--caramel); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.main-nav a.nav-account { background: var(--green); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }

@media (max-width: 900px) {
    .nav-toggle-label { display: inline-flex; }
    .main-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--gutter) 16px;
        background: var(--cream); border-bottom: 3px solid var(--ink);
    }
    .main-nav a { padding: 10px 14px; }
    .nav-toggle:checked ~ .main-nav { display: flex; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { margin-top: 64px; background: var(--ink); color: #dfe4ff; border-top: 4px solid var(--caramel); }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding: 36px 0 20px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #ffd98a; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.15); padding: 14px 0 22px; font-size: .9rem; color: #aab2d9; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px;
    background: #000; color: #fff !important; border: 2px solid #fff; text-decoration: none !important; min-width: 170px;
}
.store-badge small { display: block; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.store-badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.1; }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge.discord { background: #5865f2; }
.store-badge[aria-disabled="true"] { opacity: .85; }

/* ── Botões ilustrados do jogo (pílula com contorno, brilho e "clique") ── */
.btn {
    --c1: var(--green); --c2: var(--green-dark);
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 8px 26px; border-radius: 999px;
    border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink), inset 0 -5px 0 rgba(0,0,0,.18);
    background: linear-gradient(180deg, var(--c1) 0%, var(--c1) 55%, var(--c2) 100%);
    color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: .02em;
    text-decoration: none; cursor: pointer; text-shadow: 0 2px 0 rgba(29,33,64,.55);
    transition: transform .08s ease, box-shadow .08s ease, filter .15s;
    -webkit-tap-highlight-color: transparent;
}
.btn::before { /* reflexo do botão do jogo */
    content: ""; position: absolute; left: 14px; top: 6px; width: 22px; height: 9px; border-radius: 50%;
    background: rgba(255,255,255,.75); transform: rotate(-18deg); pointer-events: none;
}
.btn::after {
    content: ""; position: absolute; right: 18px; top: 5px; width: 34%; height: 3px; border-radius: 3px;
    background: rgba(255,255,255,.45); pointer-events: none;
}
.btn:hover { filter: brightness(1.06); color: #fff; }
.btn:active { transform: translateY(3px) scale(.97); box-shadow: 0 1px 0 var(--ink), inset 0 -3px 0 rgba(0,0,0,.18); }
.btn:disabled, .btn[aria-disabled="true"] { filter: grayscale(.6) brightness(.95); cursor: not-allowed; }
.btn-orange { --c1: var(--orange); --c2: var(--orange-dark); }
.btn-blue { --c1: var(--blue); --c2: var(--blue-dark); }
.btn-red { --c1: #ff6b6b; --c2: #c92a2a; }
.btn-purple { --c1: #b27cff; --c2: #6b2bd9; }
.btn-ghost { --c1: #fff; --c2: #dfe7ff; color: var(--ink); text-shadow: none; }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { min-height: 38px; padding: 4px 18px; font-size: .95rem; }
.btn-sm::before { width: 14px; height: 6px; top: 5px; left: 10px; }
.btn-block { display: flex; width: 100%; }
.btn-google { gap: 12px; }
.btn-google svg {
    width: 30px; height: 30px; padding: 4px; flex-shrink: 0; border-radius: 50%;
    background: #fff; border: 2px solid var(--ink); box-sizing: border-box;
}
.btn-discord { --c1: #7983ff; --c2: #4752c4; gap: 10px; }
.btn-discord svg { width: 26px; height: 26px; flex-shrink: 0; filter: drop-shadow(0 2px 0 rgba(29,33,64,.55)); }
.btn-sm.btn-discord svg { width: 20px; height: 20px; }
.discord-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.discord-callout p { flex: 1 1 260px; margin: 0; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-weight: 700; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: rgba(29,33,64,.18); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Painéis (grupos coloridos) ─────────────────────────────────────────── */
.panel {
    --accent: var(--caramel);
    position: relative; background: var(--paper); border: 3px solid var(--ink);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.panel > .panel-head {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 18px; background: var(--accent); border-bottom: 3px solid var(--ink);
    font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff;
    text-shadow: 0 2px 0 rgba(29,33,64,.5);
}
.panel > .panel-head h2, .panel > .panel-head h3 { margin: 0; font-size: inherit; }
.panel > .panel-head .grow { flex: 1; }
.panel > .panel-body { padding: 18px; }
.panel.cream { background: var(--cream); }
.accent-caramel { --accent: var(--caramel); }
.accent-green { --accent: #3fbf4a; }
.accent-blue { --accent: var(--blue); }
.accent-purple { --accent: var(--purple); }
.accent-pink { --accent: var(--pink); }
.accent-red { --accent: #f0544f; }
.accent-teal { --accent: #1fb5a6; }
.accent-navy { --accent: var(--ink-soft); }
.accent-gold { --accent: #f2b705; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid-small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }

/* Cartão de personagem/gato/item */
.card {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 10px 12px; text-align: center; text-decoration: none; color: var(--ink);
    background: #fff; border: 3px solid var(--ink); border-radius: var(--radius-sm); box-shadow: 0 4px 0 var(--ink);
    transition: transform .12s ease;
}
a.card:hover { transform: translateY(-3px); color: var(--ink); }
.card .card-art {
    width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px;
    border: 2px solid rgba(29,33,64,.15);
    background: radial-gradient(circle at 50% 35%, #fff 0, var(--rar-bg, #eef2fb) 75%);
}
.card .card-art img { width: 78%; height: 78%; object-fit: contain; image-rendering: auto; }
.card .card-name { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
.card .card-sub { font-size: .82rem; color: var(--muted); }
.card .num { position: absolute; top: 6px; left: 8px; font-family: var(--font-display); font-size: .8rem; color: var(--muted); }

/* Raridade */
.rarity-common { --rar: var(--r-common); --rar-bg: #e7ebf3; }
.rarity-rare { --rar: var(--r-rare); --rar-bg: #d9e9ff; }
.rarity-epic { --rar: var(--r-epic); --rar-bg: #eadcff; }
.rarity-legendary { --rar: var(--r-legendary); --rar-bg: #ffefc2; }
.rarity-mythic { --rar: var(--r-mythic); --rar-bg: #ffd7e2; }
.card[class*="rarity-"] { border-color: var(--ink); box-shadow: 0 4px 0 var(--ink), inset 0 0 0 3px var(--rar); }
.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
    border: 2px solid var(--ink); font-family: var(--font-display); font-weight: 600; font-size: .78rem;
    background: #fff; color: var(--ink); white-space: nowrap; line-height: 1.5;
}
.badge.rarity { background: var(--rar); color: #fff; text-shadow: 0 1px 0 rgba(29,33,64,.6); }
.rarity-mythic.badge.rarity { background: linear-gradient(90deg, #ff3d6e, #ff9a3d, #ffd23d); }
.badge.limited { background: var(--red); color: #fff; }
.badge.permanent { background: #dfe7ff; }
.badge.live { background: #3fbf4a; color: #fff; }

/* Elementos */
.el { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font-size: .78rem; font-weight: 800; color: #fff; border: 2px solid var(--ink); }
.el-neutral { background: #8a93a8; } .el-fire { background: #ff5b2e; } .el-water { background: #2a8cff; }
.el-lightning { background: #f5b800; color: var(--ink); } .el-ice { background: #5fd3f5; color: var(--ink); }
.el-poison { background: #9b3fd6; } .el-holy { background: #f7d046; color: var(--ink); } .el-divine { background: #ffc94d; color: var(--ink); }
.el-dark { background: #3b2f5c; } .el-wind { background: #38c28a; } .el-earth { background: #a0703a; } .el-pink { background: #ff5fa2; }

/* Moedas com ícone real e contorno preto */
.currency { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.currency img {
    width: 1.5em; height: 1.5em; object-fit: contain;
    filter: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000);
}
.currency .amount { -webkit-text-stroke: .6px #000; paint-order: stroke fill; }
.currency.diamond .amount { color: var(--diamond); }
.currency.cash .amount { color: var(--cash); }
.currency.catfood .amount { color: var(--catfood); }
.currency.dogfood .amount { color: #b8651b; }

/* Estatísticas */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.stat {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px;
    border-radius: 10px; background: #f3f6ff; border: 2px solid rgba(29,33,64,.12); font-weight: 700;
}
.stat span:first-child { color: var(--muted); font-size: .85rem; font-weight: 800; }
.stat.hp { background: #e7f9e7; } .stat.atk { background: #ffe9e2; } .stat.matk { background: #efe4ff; }
.stat.def { background: #fff4d9; } .stat.mdef { background: #e2f2ff; } .stat.spd { background: #e1faf6; }

/* Sprite animado (idle) a partir da tira exportada do Unity */
.idle-sprite {
    /* Tamanho só pela altura (--h) + aspect-ratio; a tira é dimensionada em % da caixa, então os quadros
       continuam alinhados em qualquer escala. flex-shrink: 0 evita que o flex espreme e corte o sprite. */
    display: inline-block; flex-shrink: 0; height: var(--h, 120px); width: auto; max-width: none;
    background-repeat: no-repeat; background-position: 0 0;
    animation: idle-play var(--dur, 1s) steps(var(--steps, 3), jump-none) infinite;
}
@keyframes idle-play { to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .idle-sprite { animation: none; } }
.stage {
    position: relative; display: grid; place-items: end center; min-height: 190px; padding: 12px;
    border-radius: 14px; border: 3px solid var(--ink);
    background: linear-gradient(180deg, #7cc8ff 0, #bfe6ff 58%, #7bbf3a 58%, #5f9f2a 100%);
    overflow: hidden;
}
.stage.night { background: linear-gradient(180deg, #1f2a5a 0, #3a4a8a 58%, #3f6b2a 58%, #2f5320 100%); }
.stage::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 10px; height: 12px; border-radius: 50%; background: rgba(0,0,0,.18); }
.stage > * { position: relative; z-index: 1; }

/* Tabelas */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 2px solid rgba(29,33,64,.15); }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
table.data th, table.data td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #e5e9f5; vertical-align: middle; }
table.data th { background: #eef2ff; font-family: var(--font-display); font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who img { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; background: #eef2fb; border: 2px solid rgba(29,33,64,.15); flex-shrink: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Barra de probabilidade */
.chance { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.chance .bar { flex: 1; height: 10px; border-radius: 6px; background: #e8ecf7; border: 1px solid rgba(29,33,64,.2); overflow: hidden; }
.chance .bar i { display: block; height: 100%; background: var(--rar, var(--blue)); border-radius: 6px; min-width: 2px; }
.chance b { font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; }

/* Chips/abas de filtro (links GET — funcionam sem JavaScript) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
    border: 2px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none;
    font-family: var(--font-display); font-weight: 600; font-size: .95rem; box-shadow: 0 3px 0 var(--ink);
}
.chip:hover { color: var(--ink); background: #fff4d6; }
.chip.active { background: var(--caramel); color: #fff; text-shadow: 0 1px 0 rgba(29,33,64,.6); }
.chip img { width: 22px; height: 22px; object-fit: contain; }

/* Cabeçalho das páginas */
.page-hero { padding: 36px 0 22px; color: #fff; }
.page-hero h1 { margin-bottom: .25em; }
.page-hero p { max-width: 720px; font-size: 1.1rem; color: #fff; text-shadow: 0 1px 0 rgba(29,33,64,.7), 0 2px 6px rgba(29,33,64,.45); font-weight: 700; }
.breadcrumbs { font-size: .9rem; margin-bottom: 8px; font-weight: 700; }
.breadcrumbs a { color: #fff; }

/* Home */
.hero { position: relative; padding: 28px 0 0; }
.hero-grid { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero-logo { width: min(72%, 440px); display: block; margin: 0 auto; filter: drop-shadow(0 6px 0 rgba(29,33,64,.25)); }
.hero-copy h1 { color: #fff; }
.hero-copy p { font-size: 1.15rem; font-weight: 700; color: #fff; text-shadow: 0 1px 0 rgba(29,33,64,.8), 0 2px 6px rgba(29,33,64,.55); }
.meadow {
    position: relative; margin-top: 18px; height: 230px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
    background: url("/game/chaptergrassbackgroundday.jpg") center 36% / cover;
    display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 3vw, 36px); padding-bottom: 26px; overflow: hidden;
}
.meadow .idle-sprite { filter: drop-shadow(0 4px 0 rgba(0,0,0,.2)); }
.feature-card { display: flex; gap: 14px; align-items: flex-start; }
.feature-card img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.feature-card h3 { margin-bottom: .2em; }
.feature-card p { margin: 0; color: var(--muted); }

/* Wiki */
.wiki-nav { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 18px; }
.detail-head { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .detail-head { grid-template-columns: 300px 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 800; }
.kv dd { margin: 0; font-weight: 700; }
.move { padding: 10px 12px; border-radius: 12px; background: #f6f8ff; border: 2px solid rgba(29,33,64,.12); }
.move h4 { margin: 0 0 4px; font-size: 1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.move p { margin: 0; font-size: .92rem; color: var(--muted); }
.evo-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.evo-line .arrow { font-size: 1.6rem; color: var(--ink-soft); font-weight: 900; }
.evo-step { width: 132px; }
.banner-art {
    position: relative; min-height: 150px; border-bottom: 3px solid var(--ink); background: #1b2348 center / cover no-repeat;
    display: flex; align-items: flex-end; gap: 8px; padding: 12px;
}
.banner-art img.featured { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); }
.notice {
    display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 14px;
    border: 3px solid var(--ink); background: #fff4d6; font-weight: 700;
}
.notice.error { background: #ffe1e1; }
.notice.success { background: #dcf8e0; }
.notice.info { background: #e1f0ff; }
.notice .icon { font-size: 1.3rem; line-height: 1.2; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; margin-bottom: 16px; }
.podium .spot { text-align: center; padding: 10px 6px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 0 4px 0 var(--ink); min-width: 0; }
.podium .spot img { width: 54px; height: 54px; object-fit: contain; }
.podium .spot .pos { font-family: var(--font-display); font-size: 1.5rem; }
.podium .spot .name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .p1 { background: #fff1bf; order: 2; padding-top: 22px; }
.podium .p2 { background: #eef1f6; order: 1; }
.podium .p3 { background: #ffe2c7; order: 3; }

/* Formulários */
.form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select {
    width: 100%; min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 3px solid var(--ink);
    background: #fff; color: var(--ink); box-shadow: inset 0 3px 0 rgba(29,33,64,.08);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue-dark); box-shadow: 0 0 0 4px rgba(67,168,255,.35); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .field { flex: 1 1 200px; }

/* Páginas de texto e cartões de ação (senha, confirmação, privacidade, exclusão) */
.doc-page { max-width: 820px; margin: 28px auto 0; }
.narrow-page { max-width: 480px; margin: 28px auto 0; }
.doc h2 { font-size: 1.3rem; margin-top: 1.2em; }
.doc ul { padding-left: 1.3rem; }
.doc li { margin-bottom: .35em; }

.empty { padding: 26px; text-align: center; color: var(--muted); font-weight: 700; }

#blazor-error-ui {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    padding: 12px 16px; background: #fff1c2; border-top: 3px solid var(--ink); font-weight: 700;
}
#blazor-error-ui .reload { margin-left: 8px; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

@media (max-width: 560px) {
    .panel > .panel-body { padding: 14px; }
    .brand span { display: none; }
    table.data th, table.data td { padding: 7px 8px; }
    .btn { width: 100%; }
    .btn-row .btn, .inline-form .btn { width: auto; flex: 1 1 auto; }
    .meadow { height: 190px; gap: 2px; }
    .meadow .idle-sprite { height: calc(var(--h, 120px) * .62); }
}

/* Capturas reais do jogo */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.shot { margin: 0; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius-sm); box-shadow: 0 4px 0 var(--ink); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #1b2348; }
.shot figcaption { padding: 8px 12px; font-weight: 800; font-size: .92rem; }
