/* Shared surfaces for the game, the public information pages and the event feed. */
:root {
    --app-navy: #102735;
    --app-ink: #172f3d;
    --app-muted: #516977;
    --app-accent: #086b60;
    --app-mint: #8ae4c9;
    --app-line: #d6e1e4;
    --app-canvas: #edf3f3;
    --app-card: #fff;
    --app-shadow: 0 5px 22px rgb(26 54 63 / 6%);
    --app-font: "Inter", "Segoe UI", system-ui, sans-serif;
}
.gwar-game, .gwar-public, .gwar-feed {
    --gwar-link: var(--app-accent);
    --gwar-ink: var(--app-ink);
    --gwar-gold: var(--app-mint);
    --gwar-green: var(--app-mint);
    --gwar-panel-text: #edf6f6;
    --gwar-muted: #b6cdd1;
    --gwar-panel-line: #36505a;
    color: var(--app-ink);
    background: var(--app-canvas);
    font: 400 15px/1.55 var(--app-font);
    -webkit-text-size-adjust: 100%;
}
.gwar-game #contenedor { width: 100%; max-width: none; padding: 0; }
.gwar-game #cabecera.gwar-masthead, .gwar-public .gwar-masthead {
    display: flex; align-items: center; box-sizing: border-box;
    margin: 0; width: 100%; padding: .8rem max(1.25rem, calc((100vw - 90rem) / 2));
    background: var(--app-navy); border: 0; border-bottom: 3px solid #388c81; border-radius: 0;
    gap: clamp(.85rem, 3vw, 3.25rem); color: white; min-height: 68px;
}
.gwar-game .gwar-masthead__brand, .gwar-public .gwar-masthead__brand {
    display: inline-flex; align-items: center; gap: .65rem; font: 750 1.32rem/1 var(--app-font);
    letter-spacing: -.05em; color: white; text-decoration: none;
}
.gwar-masthead__brand strong { color: var(--app-mint); }
.gwar-brand-mark {
    display: block; width: 2.25rem; height: auto; flex: none;
}
.gwar-current-view { margin-right: auto; border-left: 1px solid #49606b; padding-left: clamp(.8rem,2.4vw,2rem); display: grid; line-height: 1.2; }
.gwar-current-view small { color: #a9c6ca; font-size: .72rem; }
.gwar-current-view strong { margin-top: .15rem; font-size: 1.02rem; }
.gwar-game #cabecera.gwar-masthead { position: relative; isolation: isolate; overflow: hidden; }
.gwar-game .gwar-section-art {
    position: absolute; z-index: -1; pointer-events: none; inset: 0 12% 0 auto;
    width: min(58%, 56rem); height: 100%; object-fit: cover; object-position: center 46%;
    opacity: .83; mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
}
.gwar-ficha-resumen { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; align-items: center; text-align: start; }
.gwar-ficha-resumen > img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: .5rem; }
@media (max-width: 600px) {
    .gwar-ficha-resumen { grid-template-columns: minmax(0,1fr); gap: .6rem; }
}
@media (max-width: 700px) {
    .gwar-game .gwar-section-art { inset-inline-end: 8%; width: 65%; opacity: .45; }
}
.gwar-world { display: inline-flex; align-items: center; gap: .45rem; color: #d4e7e7; font-size: .83rem; font-weight: 600; }
.gwar-world::before { content: ""; width: .48rem; height: .48rem; border-radius: 50%; background: var(--app-mint); }
.gwar-game .gwar-language { border: 0; background: #213e4b; }
.gwar-game .gwar-language [aria-current] { background: #45616a; color: white; }
.gwar-game #body_central {
    box-sizing: border-box; max-width: 93rem; margin: auto; padding: clamp(.75rem,2vw,1.8rem);
    gap: clamp(.85rem,2vw,1.65rem); text-align: start;
}
.gwar-game #body_central:has(> #columna1 + #columna2) { grid-template-columns: clamp(198px,18vw,250px) minmax(0,1fr); }
.gwar-game #columna1 { position: sticky; top: .8rem; }
.gwar-sidebar { max-height: calc(100dvh - 1.6rem); overflow: auto; scrollbar-width: thin; scrollbar-color: #57727b var(--app-navy); }
.gwar-sidebar, .gwar-game #columna2 {
    border: 1px solid var(--app-line); border-radius: 1rem; box-shadow: var(--app-shadow);
}
.gwar-sidebar { background: #173441; border-color: #173441; }
.gwar-player { padding: 1.05rem; background: #1e404c; }
.gwar-player__flag { background: #eff7f6; border: none; border-radius: 12px; overflow: hidden; }
.gwar-player__identity strong { font-size: 1.02rem; }
.gwar-nav-group h2 { margin: .3rem .45rem; padding: .6rem 0 .2rem; color: #b2c8cc; font-size: .67rem; letter-spacing: .1em; }
.gwar-game #menu { gap: .3rem; padding: .3rem .6rem .75rem; }
.gwar-game #menu li > a { border-radius: .5rem; padding: .4rem .65rem; min-height: 34px; font-size: .86rem; }
.gwar-game #menu li > a:hover { background: #284956; }
.gwar-game #menu li > a[aria-current] { background: #27554f; border-color: #357467; color: #ddfff4; box-shadow: inset 3px 0 var(--app-mint); }
.gwar-game #columna2 {
    width: 100%; padding: clamp(.85rem,2.2vw,2rem); background: var(--app-card);
    color: var(--app-ink); line-height: 1.55; text-align: start; overflow-x: auto;
}
.gwar-game #columna2 :is(h1,h2,h3,h4) { color: var(--app-ink); font-family: var(--app-font); letter-spacing: -.035em; text-shadow: none; }
.gwar-game #columna2 > h2 { margin: 1.25rem 0 .9rem; text-align: start; text-transform: none; }
.gwar-game #columna2 :is(input[type=submit],input[type=button],button,.gwar-action), .gwar-public input[type=submit] {
    background: var(--appearance-button, var(--app-accent)); color: white; border: 1px solid transparent; border-radius: .65rem;
    min-height: 42px; padding: .55rem .95rem; font: 650 .875rem/1.25 var(--app-font);
}
.gwar-game #columna2 :is(input[type=submit],input[type=button],button,.gwar-action):hover, .gwar-public input[type=submit]:hover { background: #07574f; }
.gwar-game #columna2 :is(input[type=text],input[type=password],input[type=number],input[type=email],select,textarea), .gwar-public :is(input[type=text],input[type=password],input[type=email],select,textarea) {
    box-sizing: border-box; min-height: 38px; padding: .35rem .55rem; border: 1px solid var(--appearance-line, #a8b9be);
    border-radius: .55rem; background: var(--appearance-field, #fbfdfd); color: var(--app-ink); font: inherit; max-width: 100%;
}
.gwar-game #columna2 :is(input[type=checkbox], input[type=radio]) { accent-color: var(--app-accent); width: 1.05rem; height: 1.05rem; vertical-align: middle; }
.gwar-game #columna2 :focus-visible, .gwar-public :focus-visible { outline: 3px solid #087e83; outline-offset: 2px; }
.gwar-game #estado { margin: 0 0 1.15rem; }
.gwar-home#columna2 #estado { margin: 0; }
.gwar-game #columna2.gwar-home { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; align-content: start; }
.gwar-home > #estado:not(:has(> :not(script,style,link))) { display: none; }
.gwar-state {
    display: grid; grid-template-columns: minmax(10.5rem,1fr) minmax(0,3.5fr); gap: 1rem;
    border: 1px solid var(--app-line); border-radius: .85rem; background: var(--appearance-subtle, #f5f9f9);
    padding: .9rem; color: var(--app-ink); text-align: start;
}
.gwar-state__base { grid-template-columns: 1fr auto; gap: .2rem .45rem; }
.gwar-state__base label { grid-column: 1/-1; color: var(--app-muted); font-size: .78rem; font-weight: 650; }
.gwar-game .gwar-state__base #combo_bases { min-height: 36px; padding: .3rem; min-width: 0; }
.gwar-game #columna2 .gwar-state__settings { display: grid; place-items: center; min-width: 36px; height: 36px; background: var(--appearance-surface, white); border: 1px solid var(--app-line); border-radius: .55rem; text-decoration: none; font: 1.25rem/1 var(--app-font); color: var(--app-accent); }
.gwar-state__resources { gap: .3rem; }
.gwar-state__resources > div { min-height: 2.8rem; border: 0; border-left: 1px solid var(--app-line); border-radius: 0; padding: .25rem .55rem; background: transparent; text-align: start; }
.gwar-state__resources dt { color: var(--app-muted); font-size: .76rem; font-weight: 550; }
.gwar-state__resources dt > span { display: none; }
.gwar-state__resources dd { color: var(--app-ink); font-size: clamp(.85rem,1.3vw,1.06rem); letter-spacing: -.035em; }
.gwar-state__resources > div:first-child dd { color: var(--app-accent); }
.gwar-state__warning { color: var(--appearance-negative, #a43b27); }
.gwar-workspace { display: grid; grid-template-areas: "queue catalog"; grid-template-columns: minmax(15rem,.48fr) minmax(0,1fr); align-items: start; gap: 1rem; }
.gwar-workspace__main, .gwar-workspace__aside { min-width: 0; }
.gwar-game #columna2 :is(#contenedor_principal,#contenedor_construcciones,#contenedor_principal_maniobras,#contenedor_principal_objetivos,#contenedor_principal_ipod,#listado_evolucion,#table_mensajeria) {
    box-sizing: border-box; max-width: 100%; width: 100%; height: auto; max-height: none; overflow: auto; margin: 0; scrollbar-width: thin;
}
.gwar-game #columna2 :is(#alta,#tutorial,#listado_bases,#listado_bases_maniobras,#map) { max-width: 100%; box-sizing: border-box; }
.gwar-game #columna2 #alta { margin: 0; width: min(100%,54rem); padding: 1rem; background: var(--appearance-subtle, #f6f9f9); border: 1px solid var(--app-line); border-radius: .8rem; }
.gwar-game #columna2 #tutorial { padding: .9rem; background: var(--appearance-positive-bg, #e8f6f2); border: 1px solid #aed4ca; border-radius: .8rem; }
.gwar-game #columna2 img:not([usemap]), .gwar-public img { max-width: 100%; }
.gwar-game #columna2 table, .gwar-feed table { color: var(--app-ink); font: inherit; font-size: .91rem; }
.gwar-game #columna2 :is(table.general,table.bases,#table_mensajeria table), .gwar-feed table.general {
    width: 100%; max-width: 100%; margin: .5rem 0 1rem; border-spacing: 0; border-collapse: separate;
    border: 1px solid var(--app-line); border-radius: .8rem; overflow: hidden; background: var(--appearance-surface, white);
}
.gwar-game #columna2 :is(td.cabecera,td.cuerpo,td.cuerposimple,td.columna_cabecera,td.columna,th), .gwar-feed :is(td.cabecera,td.cuerpo) {
    padding: .6rem .7rem; border: 0; border-bottom: 1px solid var(--app-line);
    background: var(--appearance-surface, white); font: inherit; font-size: .88rem; line-height: 1.45; color: var(--app-ink);
}
.gwar-game #columna2 :is(td.cabecera,th,td.columna_cabecera), .gwar-feed td.cabecera { background: var(--appearance-subtle, #edf5f4); color: var(--appearance-ink, #2c504f); font-weight: 650; }
.gwar-game #columna2 :is(tr.cuerpotr,tr.cuerpo,#table_mensajeria tr) { background: var(--appearance-surface, white); border: none; font: inherit; }
.gwar-game #columna2 table table td.cuerpo { padding: .35rem .5rem; border: 0; }
.gwar-game #columna2 tr:last-child > :is(td,th) { border-bottom: none; }
.gwar-game #columna2 table.general :is(h2,h3) { margin: .35rem 0; }
.gwar-game #columna2 :is(#informacion,#informacion_e):not(:empty) { display: inline-block; padding: .55rem .75rem; margin-block: .4rem; border-radius: .6rem; color: var(--appearance-positive, #22584d); background: var(--appearance-positive-bg, #e1f3e9); font: 600 .92rem/1.5 var(--app-font); }
.gwar-game #columna2 #informacion_e:not(:empty) { color: var(--appearance-negative, #833227); background: var(--appearance-negative-bg, #fff0ea); }
.gwar-empty-panel { padding: clamp(1.1rem,3vw,2rem); margin-block: .7rem; border: 1px dashed var(--appearance-line, #abc4c2); border-radius: .8rem; background: var(--appearance-subtle, #f3f9f7); }
.gwar-game #columna2 .gwar-empty-panel h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.gwar-empty-panel p { margin: 0 0 .85rem; color: var(--app-muted); }
.gwar-home__section .gwar-home__empty { border: 0; padding: 0; background: transparent; color: var(--app-muted); }
.gwar-home__orders, .gwar-home__incoming { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 650; }
.gwar-home__activity { display: grid; align-items: start; gap: .8rem; grid-template-columns: minmax(0,3fr) minmax(16rem,2fr); }
.gwar-home__operations { display: grid; gap: .8rem; min-width: 0; }
.gwar-home__activity .gwar-home__section, .gwar-game #columna2 .coalicion-panel, .gwar-chat {
    box-sizing: border-box; padding: clamp(.75rem,1.6vw,1.2rem); border: 1px solid var(--app-line); border-radius: .85rem; background: var(--appearance-surface, white);
}
.gwar-home__activity .gwar-home__frame { border: 0; background: var(--appearance-surface, #fff); }
@media (max-width: 1100px) {
    .gwar-home__activity { grid-template-columns: minmax(0,1fr); }
}
.gwar-feed { margin: 0; background: var(--appearance-surface, white); }
.gwar-feed table.general { margin: 0; border: 0; }
.gwar-public { margin: 0; }
.gwar-public #contenedor { margin: 0; width: 100%; min-width: 0; }
.gwar-public #body_principal { max-width: 54rem; min-width: 0; box-sizing: border-box; margin: clamp(1rem,4vw,3rem) auto; padding: 0 1rem; background: none; }
.gwar-public #body_central { box-sizing: border-box; padding: clamp(1rem,3vw,2rem); width: 100%; min-width: 0; background: var(--appearance-surface, white); border: 1px solid var(--app-line); border-radius: 1rem; box-shadow: var(--app-shadow); }
.gwar-public #body_central * { max-width: 100%; box-sizing: border-box; }
.gwar-public a { color: var(--app-accent); }
.gwar-public #body_central :is(h1,h2,h3,p,td) { font-family: var(--app-font); }
.gwar-public .gwar-masthead { justify-content: space-between; }
.gwar-public .gwar-masthead > a:last-child:not(:first-child) { color: white; }
@media (max-width: 900px) {
    .gwar-game #body_central:has(> #columna1 + #columna2) { grid-template-columns: minmax(0,1fr); }
    .gwar-game #columna1 { position: static; }
    .gwar-sidebar { max-height: none; }
    .gwar-sidebar:not(:has(.gwar-navigation[open])) { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-right: .35rem; }
    .gwar-sidebar .gwar-player { padding: .45rem .7rem; background: transparent; }
    .gwar-sidebar .gwar-player__flag { height: 34px; flex-basis: 34px; }
    .gwar-sidebar .gwar-player__identity { grid-template-columns: auto auto; align-items: baseline; gap: 0 .6rem; font-size: .8rem; }
    .gwar-sidebar .gwar-player__world { display: none; }
    .gwar-sidebar .gwar-round { max-width: 11rem; margin: .25rem; }
    .gwar-navigation summary { border: 0; gap: 1rem; }
    .gwar-game #menu li > a { min-height: 44px; }
    .gwar-game #body_central { padding: .65rem; gap: .65rem; }
    .gwar-game #cabecera.gwar-masthead { min-height: 54px; padding: .5rem .85rem; }
}
@media (max-width: 680px) {
    .gwar-game #columna2 { border-radius: .85rem; padding: .7rem; }
    .gwar-state { grid-template-columns: 1fr; gap: .55rem; padding: .65rem; }
    .gwar-state__base { grid-template-columns: auto minmax(4rem,1fr) auto; align-items: center; }
    .gwar-state__base label { grid-column: auto; margin-right: .25rem; }
    .gwar-game #columna2 .gwar-state__settings, .gwar-game .gwar-state__base #combo_bases { min-height: 42px; }
    .gwar-state__resources { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .25rem; }
    .gwar-state__resources > div, .gwar-state__resources > div:nth-child(n+4) { grid-column: auto; padding: .25rem .45rem; background: var(--appearance-surface, white); border: 1px solid var(--app-line); border-radius: .45rem; }
    .gwar-state__resources > div:last-child { grid-column: span 2; }
    .gwar-current-view small { display: none; }
    .gwar-current-view strong { font-size: .82rem; margin: 0; }
    .gwar-game .gwar-masthead__tools { gap: .45rem; }
    .gwar-world { display: none; }
    .gwar-game #columna2 :is(input[type=text],input[type=password],input[type=number],select,textarea) { font-size: 16px; }
    .gwar-game #columna2 :is(td.cabecera,td.cuerpo,th) { padding: .45rem .5rem; font-size: .84rem; }
}
@media (max-width: 400px) {
    .gwar-game .gwar-masthead__brand { font-size: 1.07rem; gap: .35rem; }
    .gwar-brand-mark { width: 1.6rem; }
    .gwar-current-view { padding-left: .55rem; }
}
.gwar-workspace__aside { grid-area: queue; }
.gwar-workspace__main { grid-area: catalog; }
.gwar-module { min-width: 0; overflow-x: auto; }
.gwar-module-note, .gwar-feed-empty { color: var(--app-muted); font-size: .88rem; }
.gwar-feed-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .65rem; }
.gwar-feed-filter label { width: 100%; font-size: .78rem; font-weight: 600; color: var(--app-muted); }
.gwar-feed-filter :is(select,button) { min-height: 38px; border: 1px solid var(--app-line); border-radius: .5rem; padding: .3rem .6rem; background: var(--appearance-subtle, #f5f9f9); color: var(--app-ink); font: inherit; }
.gwar-feed-filter button { background: var(--appearance-button, var(--app-accent)); color: white; cursor: pointer; }
.gwar-feed-list { list-style: none; padding: 0; margin: 0; }
.gwar-feed-list li { border-top: 1px solid var(--app-line); padding: .6rem .1rem; overflow-wrap: anywhere; font-size: .88rem; }
.gwar-feed-list img { vertical-align: middle; }
.gwar-feed-list a { color: var(--app-accent); }
.gwar-staff #menu { background: var(--app-navy); border-radius: .85rem; padding: .6rem; list-style: none; }
.gwar-staff #menu li.separador { height: 1px; background: #47616c; }
.gwar-staff #menu li.boton a { width: auto; background: transparent; text-shadow: none; }
@media (max-width: 1120px) { .gwar-workspace { grid-template-areas: "queue" "catalog"; grid-template-columns: minmax(0,1fr); } }
.gwar-catalog-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .8rem; margin: 0 0 .75rem; }
.gwar-game #columna2 .gwar-catalog-heading h2 { margin: 0; font-size: 1.27rem; }
.gwar-catalog-heading span { color: var(--app-muted); font-size: .83rem; }
.gwar-catalog { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap: .85rem; }
.gwar-catalog-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--app-line); border-radius: .8rem; background: var(--appearance-surface, white); overflow: clip; }
.gwar-catalog-card > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; padding: .75rem .9rem; background: var(--appearance-subtle, #eff6f5); color: var(--app-muted); font-size: .8rem; }
.gwar-catalog-card > header a { font-size: 1rem; text-decoration: none; }
.gwar-catalog-card > header a:hover { text-decoration: underline; }
.gwar-catalog-card__summary { display: grid; grid-template-columns: clamp(5rem,30%,9rem) minmax(0,1fr); align-items: start; gap: .75rem; padding: .85rem .9rem; font-size: .87rem; overflow-wrap: anywhere; }
.gwar-catalog-card__summary > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .55rem; background: var(--app-canvas); }
.gwar-catalog-card__summary b { color: var(--appearance-ink, #304d57); }
.gwar-catalog-card__costs { padding-inline: .9rem; margin-top: auto; font-size: .84rem; }
.gwar-catalog-card__costs > div { padding-bottom: .65rem; }
.gwar-catalog-card__costs summary { display: list-item; cursor: pointer; padding-block: .6rem; color: var(--app-accent); font-weight: 650; }
.gwar-catalog-card__actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; padding: .6rem .9rem; background: var(--appearance-subtle, #f7f9f9); border-top: 1px solid var(--app-line); font-size: .86rem; }
.gwar-catalog-card__actions:empty { display: none; }
.gwar-game #columna2 .gwar-catalog-card__actions a { display: inline-flex; align-items: center; padding: .4rem .65rem; border-radius: .45rem; background: var(--appearance-positive-bg, #e1f1eb); color: var(--appearance-positive, #155749); font-weight: 650; text-decoration: none; }
.gwar-catalog-card__actions form { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 0; }
.gwar-catalog-card__actions form br { display: none; }
.gwar-game #columna2 .gwar-catalog-card__actions input[type=number] { width: 4.6rem; text-align: center; }
.gwar-game #columna2 .gwar-catalog-card__actions input[type=button] { width: 2.5rem; background: var(--appearance-surface, white); color: var(--app-accent); border-color: var(--app-line); }
.gwar-game .gwar-catalog-card font[color="#CC0000"] { color: var(--appearance-negative, #9e352d); }
.gwar-game .gwar-catalog-card font[color="#339900"] { color: var(--appearance-positive, #20654f); }
.gwar-game #columna2 .coalicion button.coalicion-peligro { background: #853d48; }
.gwar-boards, .gwar-awards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap: .85rem; }
.gwar-board { min-width: 0; padding: .65rem; border: 1px solid var(--app-line); border-radius: .75rem; overflow: auto; background: var(--appearance-surface, white); }
.gwar-board--wide { grid-column: 1/-1; }
.gwar-board table { width: 100%; border-spacing: 0; }
.gwar-board--wide > a { display: inline-block; margin: .5rem; }
.gwar-awards { list-style: none; padding: 0; }
.gwar-award { display: flex; align-items: start; gap: .75rem; padding: .8rem; border: 1px solid var(--app-line); border-radius: .7rem; }
.gwar-award--unlocked { background: var(--appearance-positive-bg, #f0f8f4); border-color: #c4ddd1; }
.gwar-award img { border-radius: .6rem; object-fit: cover; }
.gwar-award p { margin: .15rem 0 0; color: var(--app-muted); font-size: .87rem; }
.gwar-tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .8rem; }
.gwar-tabs a { display: inline-block; padding: .55rem .85rem; border-radius: .5rem; text-decoration: none; font-weight: 650; }
.gwar-game #columna2 .gwar-tabs a[aria-current] { background: var(--appearance-positive-bg, #dbefe7); color: var(--appearance-positive, #164f44); }
.gwar-format-help { padding: .5rem .75rem; border-radius: .6rem; background: var(--appearance-subtle, #eef5f4); }
.gwar-format-help summary { color: var(--app-accent); cursor: pointer; font-weight: 650; }
.gwar-compose { box-sizing: border-box; display: grid; width: min(100%,43rem); gap: .4rem; margin-block: 1rem; }
.gwar-compose label { font-weight: 650; font-size: .88rem; }
.gwar-compose br { display: none; }
.gwar-game #columna2 .gwar-compose :is(input,textarea) { width: 100%; }
.gwar-game #columna2 .gwar-compose :is(input[type=button],input[type=submit]) { width: auto; justify-self: start; }
.gwar-game[data-theme=blue] { --app-accent: #195e96; --app-navy: #14283f; --app-mint: #a3d8ff; }
.gwar-game[data-theme=amber] { --app-accent: #85521f; --app-navy: #302c29; --app-mint: #f2ce8a; }
.gwar-table-scroll { width: 100%; overflow: auto; scrollbar-width: thin; }
.gwar-production { margin-top: 1.1rem; padding: .85rem; border-radius: .75rem; background: var(--appearance-subtle, #eff6f5); }
.gwar-production h3 { margin: 0 0 .65rem; }
.gwar-production dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(7rem,1fr)); gap: .55rem; margin: 0; }
.gwar-production dt { color: var(--app-muted); font-size: .82rem; }
.gwar-production dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
    .gwar-sidebar:not(:has(.gwar-navigation[open])) { display: grid; grid-template-columns: minmax(0,1fr) auto; }
    .gwar-sidebar:not(:has(.gwar-navigation[open])) .gwar-navigation { grid-row: 1; grid-column: 2; }
    .gwar-sidebar .gwar-player__identity { grid-template-columns: 1fr; }
    .gwar-sidebar .gwar-player__world { display: block; font-size: .68rem; }
    .gwar-sidebar .gwar-round { grid-column: 1/-1; grid-row: 2; max-width: none; width: calc(100% - 1.4rem); margin: .25rem .7rem .5rem; }
}
