/* Base de la interfaz. Ajusta aquí la paleta y los tamaños compartidos. */
:root {
  --ink: #162438;
  --muted: #66758a;
  --accent: #345de1;
  --coral: #ed6a5a;
  --paper: #eef1f2;
  --line: #dce2e8;
  --white: #fff;
  --serif: 'Manrope', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #84a3fa; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -1.5px; }
h2 { font-size: 21px; letter-spacing: -.6px; }
h3 { font-size: 16px; }
p { line-height: 1.65; }
small { line-height: 1.5; }
input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=color]), select, textarea {
  min-height: 43px; max-width: 100%; padding: 9px 11px; color: var(--ink); background: #fff;
  border: 1px solid #cbd4df; border-radius: 7px;
}
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; flex-shrink: 0; }
input[type=color] { width: 50px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: white; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
legend { font-weight: 700; padding: 0 5px; }
.campaign-primary, .start-button, .primary-button, .save-territory, .editor-primary {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px;
  padding: 10px 16px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; font-weight: 700;
}
.campaign-primary:hover:not(:disabled), .start-button:hover:not(:disabled) { background: #284ac2; }
.secondary-button, .back-link, .text-back, .download-game, .quick-save {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 42px; padding: 9px 14px;
  border: 1px solid #d1d9e3; border-radius: 7px; background: #fff; color: #273b57; font-weight: 650;
}
.secondary-button:hover:not(:disabled), .download-game:hover:not(:disabled) { background: #f0f4ff; border-color: #a6b9ee; }
.back-link, .text-back { border: 0; background: transparent; padding-left: 0; color: #536780; }
.section-kicker, .eyebrow, .v3-kicker, .v3-eyebrow { color: #687a96; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow-line { width: 19px; height: 3px; background: var(--coral); }
.setup-intro, .election-intro { color: var(--muted); line-height: 1.65; }
.panel, .political-card { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-heading h2 { margin: 5px 0 0; }
.validation-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 7px; background: #edf6f0; color: #31684a; }
.validation-note strong, .validation-note small { display: block; }
.validation-warning { background: #fff4e3; color: #87592b; }

/* Marco de navegación: escritorio y menú compacto en móvil. */
.app-shell { min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 225px; display: flex; flex-direction: column; padding: 24px 14px 16px; background: #142136; color: #d2dceb; overflow: auto; }
.v3-brand-row { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 5px; color: white; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: #4169eb; color: white; font: 800 25px var(--serif); letter-spacing: -2px; }
.brand strong, .brand small { display: block; }
.brand strong { font: 800 20px/1 var(--serif); letter-spacing: -.8px; }
.brand small { margin-top: 5px; color: #91a3bd; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.shell-navigation { flex: 1; padding-top: 37px; }
.v3-nav-label { display: block; margin: 0 10px 11px; color: #8599b3; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.side-link { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 43px; margin: 3px 0; padding: 10px 11px; border: 0; border-radius: 7px; background: transparent; color: #aabbd1; text-align: left; font-size: 13px; font-weight: 600; }
.side-link:hover { background: #ffffff0b; color: white; }
.side-link.active { background: #385bd22b; color: white; box-shadow: inset 3px 0 #6c8dff; }
.v3-side-cycle { margin-top: 38px; }
.v3-side-stage { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: #8498b1; font-size: 12px; }
.v3-side-stage span { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #526781; border-radius: 50%; font-size: 10px; }
.v3-side-stage.current { color: white; font-weight: 700; }
.v3-side-stage.current span { background: #4369e3; border-color: #4369e3; color: white; }
.v3-side-stage.done span { border-color: #64a49f; color: #91c6bd; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; border-top: 1px solid #ffffff1e; padding: 16px 4px 0; min-width: 0; }
.sidebar-footer>div { min-width: 0; }
.sidebar-footer small, .sidebar-footer strong, .sidebar-footer span { display: block; }
.sidebar-footer small { color: #849ab5; font-size: 8px; letter-spacing: .7px; }
.sidebar-footer strong { color: white; font-size: 12px; margin: 3px 0; overflow-wrap: anywhere; }
.sidebar-footer div>span { color: #a4b5cc; font-size: 10px; }
.v3-no-game { color: #9cafc3; font-size: 11px; }.v3-no-game span { display: inline; color: #7d93aa; }
.shell-menu-toggle { display: none; }
.main-area { min-width: 0; min-height: 100dvh; margin-left: 225px; padding-bottom: 110px; background: var(--paper); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 0 clamp(20px,3vw,42px); border-bottom: 1px solid var(--line); background: white; color: #687991; font-size: 12px; }
.topbar>span:first-child, .breadcrumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar b, .breadcrumb span { color: #b8c3ce; margin: 0 7px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.phase-chip, .v3-top-tag { padding: 6px 10px; border: 1px solid #dce4ee; border-radius: 5px; background: #f5f7fa; color: #566880; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.interface-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(20px,3vw,42px); border-bottom: 1px solid #dfe5ea; background: #f8fafc; color: #6a7a8c; font-size: 11px; }
.interface-context>div { display: flex; align-items: center; gap: 8px; }.interface-context strong { color: #354b68; }.v3-context-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.campaign-content, .ready-content, .setup-content { width: min(1380px,100%); margin: 0 auto; padding: 30px clamp(20px,3vw,42px) 70px; }
.party-logo { display: inline-flex; justify-content: center; align-items: center; vertical-align: middle; flex: 0 0 auto; background: #fff; border: 1px solid #e2e8ef; border-radius: 8px; overflow: hidden; }
.party-logo img { display: block; width: 100%; height: 100%; padding: 2px; object-fit: contain; }
.party-logo-small { width: 30px; height: 30px; }.party-logo-medium { width: 42px; height: 42px; }.party-logo-large { width: 70px; height: 70px; }
.party-logo-fallback { background: var(--logo-color); color: white; padding: 3px; font-weight: 800; font-size: 10px; }
.party-logo-large.party-logo-fallback { font-size: 20px; }
.party-name-with-logo { display: inline-flex; align-items: center; gap: 8px; }

/* Inicio: acciones primero y escenarios realmente disponibles. */
.v3-home { width: min(1280px,100%); margin: 0 auto; padding: 42px clamp(20px,4vw,54px) 70px; }
.v3-home-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.v3-home-heading h1 { margin: 8px 0; font-size: clamp(31px,3.5vw,45px); }
.v3-home-heading p { margin: 0; color: var(--muted); }
.v3-home-badge { padding: 8px 11px; border-radius: 6px; background: #dfe7ff; color: #3657ad; font-size: 10px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.v3-resume { display: flex; align-items: center; gap: 16px; width: 100%; margin-bottom: 22px; padding: 18px 20px; border: 1px solid #bdcdfb; border-radius: 10px; background: #edf2ff; color: var(--ink); text-align: left; }
.v3-resume-icon, .v3-action-icon, .v3-library-icon { display: grid; place-items: center; flex-shrink: 0; width: 45px; height: 45px; border-radius: 9px; background: #e6edff; color: var(--accent); }
.v3-resume>span:nth-child(2) { display: grid; gap: 3px; flex: 1; }.v3-resume small { font-size: 9px; font-weight: 800; letter-spacing: .08em; color: #5976c3; }.v3-resume strong { font-size: 16px; }.v3-resume span span { color: var(--muted); font-size: 12px; }.v3-resume>b { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; }
.v3-home-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(310px,.8fr); gap: 18px; align-items: start; }
.v3-home-start, .v3-home-scenarios { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 4px 20px #1d324c08; }
.v3-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }.v3-card-heading>span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #e9efff; color: #4469d5; font-size: 11px; font-weight: 800; }.v3-card-heading small { color: #8593a5; font-size: 9px; font-weight: 800; letter-spacing: .1em; }.v3-card-heading h2 { margin: 3px 0 0; font-size: 20px; }
.v3-start-actions { display: grid; gap: 12px; }.action-card { text-align: left; }.v3-start-actions .action-card { display: flex; align-items: center; gap: 15px; width: 100%; padding: 18px; border: 1px solid #dce4f1; border-radius: 9px; color: var(--ink); background: #fff; }.v3-start-actions .action-card>span:nth-child(2) { display: grid; flex: 1; gap: 4px; }.v3-start-actions .action-card>svg { flex-shrink: 0; }.v3-start-actions .action-card small { font-size: 9px; font-weight: 800; letter-spacing: .07em; color: #7181a1; }.v3-start-actions .action-card strong { font: 800 18px var(--serif); }.v3-start-actions .action-card em { color: var(--muted); font-size: 12px; font-style: normal; }.v3-start-actions .action-card:hover { border-color: #8ea9f6; box-shadow: 0 5px 14px #1b3f8510; }.v3-start-actions .v3-start-primary { border-color: #bacbf8; background: #f4f7ff; }.v3-start-primary .v3-action-icon { color: white; background: var(--accent); }
.v3-home-note { margin: 20px 0 0; color: #8996a8; font-size: 12px; }
.v3-scenario-list { border-top: 1px solid #edf0f4; }.v3-scenario-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid #edf0f4; background: transparent; color: var(--ink); text-align: left; }.v3-scenario-row:hover { background: #f5f8ff; }.v3-scenario-flag { display: grid; place-items: center; width: 38px; height: 38px; background: #f0f3f8; border-radius: 8px; }.v3-scenario-row>.v3-scenario-copy { flex: 1; min-width: 0; }.v3-scenario-row strong, .v3-scenario-row small { display: block; }.v3-scenario-row strong { font-size: 13px; }.v3-scenario-row small { color: #8a98a9; font-size: 10px; }.v3-scenario-row>span:last-child { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }.v3-scenario-row>span:last-child small { font-weight: 500; }
.v3-editor-link { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 16px; padding: 14px; border: 1px solid #e1e6ed; border-radius: 8px; color: #3d577d; background: #f8fafd; }.v3-editor-link>span { display: grid; gap: 2px; flex: 1; }.v3-editor-link small { color: #8995a3; font-size: 10px; }
.v3-home-footer { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 29px; color: #8a98a8; font-size: 9px; letter-spacing: .1em; font-weight: 800; }.v3-home-footer i { width: 3px; height: 3px; background: #a6b3c2; border-radius: 50%; }

/* Biblioteca de partidas y editor de territorio. */
.saved-games-content, .territory-editor-content, .final-debate-content { width: min(1260px,calc(100% - 64px)); margin: 0 auto; padding: 34px 0 80px; }
.v3-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }.v3-page-heading h1 { margin: 8px 0; }.v3-page-heading p { margin: 0; color: var(--muted); }
.v3-library-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; align-items: start; gap: 20px; }.v3-library-section { margin-bottom: 26px; }.v3-library-section>header { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 11px; }.v3-library-section h2 { margin: 4px 0 0; }.v3-library-section header>small { color: #8a98aa; }
.v3-library-list { border: 1px solid var(--line); border-radius: 10px; background: white; overflow: hidden; }.v3-library-item { display: flex; align-items: center; gap: 14px; padding: 17px; border-bottom: 1px solid #edf0f4; }.v3-library-item:last-child { border: 0; }.v3-library-item>div:nth-child(2) { flex: 1; min-width: 0; }.v3-library-item strong, .v3-library-item small { display: block; }.v3-library-item strong { font-size: 14px; }.v3-library-item small { color: #8492a4; font-size: 11px; margin-top: 3px; }.v3-library-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }.v3-danger-link { background: transparent; border: 0; color: #b3514d; font-size: 12px; padding: 10px; }.v3-library-empty { padding: 25px; color: var(--muted); }.v3-library-empty p { margin-bottom: 0; }.v3-library-help { padding: 23px; border: 1px solid #d6e0fa; border-radius: 10px; background: #edf2ff; }.v3-library-help h2 { margin: 14px 0 8px; font-size: 17px; }.v3-library-help p { margin: 0; color: #71809a; font-size: 12px; }
.territory-editor-content>h1 { margin: 12px 0; }.editor-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; padding: 18px; margin: 24px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }.editor-toolbar>label { display: grid; gap: 6px; min-width: 230px; font-size: 11px; font-weight: 700; }.editor-toolbar>div { display: flex; gap: 8px; flex-wrap: wrap; }.editor-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 18px; align-items: start; min-width: 0; }.editor-layout>form { min-width: 0; }.editor-jump { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: white; }.editor-jump>span { padding: 4px 8px; color: #8998a8; font-size: 9px; font-weight: 800; letter-spacing: .1em; }.editor-jump>a { padding: 10px 8px; border-radius: 6px; text-decoration: none; color: #40546e; font-size: 12px; }.editor-jump>a:hover { background: #eef3ff; }.editor-jump>a b { margin-right: 7px; color: #5e80e9; }.editor-jump button { margin-top: 8px; padding: 11px; background: var(--accent); border: 0; border-radius: 6px; color: white; font-weight: 700; }.editor-section { margin: 0 0 15px; scroll-margin-top: 18px; }.editor-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 13px; margin: 14px 0; }.editor-field { display: grid; gap: 6px; color: #53647a; font-size: 12px; font-weight: 600; }.editor-field input { min-width: 0; width: 100%; }.editor-item { padding: 16px; margin-top: 12px; border: 1px solid #e1e7ed; border-radius: 8px; background: #f8fafc; }.editor-item>header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }.editor-remove { padding: 8px; border: 0; border-radius: 6px; background: #fff1ef; color: #b34f47; }.editor-subtitle { margin-top: 16px; font-weight: 700; }.regional-party-option { display: flex; align-items: center; gap: 8px; }.relation-matrix, .poll-table-wrap { max-width: 100%; overflow: auto; }.relation-matrix table { min-width: 650px; }.relation-matrix input { width: 70px; }.editor-save { margin: 10px 0 30px; }.editor-message { padding: 12px; margin: 14px 0; background: #edf2ff; border-radius: 7px; }

/* Tablas y herramientas: la cabecera y el botón de cierre siguen accesibles. */
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 10px; border-bottom: 1px solid #e9edf2; font-size: 12px; }
th { color: #8491a3; background: #f7f9fb; font-size: 10px; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
.poll-table-wrap { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; background: white; }
.poll-table { min-width: 480px; }.poll-party { display: flex; align-items: center; gap: 8px; }.poll-party .party-logo { width: 26px; height: 26px; }.poll-party>span:last-child { color: #677990; }.result-delta { white-space: nowrap; }.hide-exact-votes .exact-votes { display: none !important; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 13px 15px; background: #fff; }
details>summary { cursor: pointer; font-weight: 700; }details[open]>summary { margin-bottom: 12px; }
.game-tool-dialog { width: min(900px,94vw); max-height: 90dvh; padding: 22px; border: 1px solid #d3dde8; border-radius: 12px; background: #f8fafc; color: var(--ink); overflow: auto; box-shadow: 0 25px 90px #0b1f3a50; }
.game-tool-dialog::backdrop { background: #0d1c31aa; }.game-tool-dialog>header { position: sticky; top: -22px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0 15px; background: #f8fafc; border-bottom: 1px solid var(--line); }.game-tool-dialog h2 { margin: 0; font-size: 22px; }.game-tool-dialog header button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; }.game-tool-dialog label { display: block; margin: 12px 0; }.game-tool-dialog fieldset, .game-tool-dialog details { margin: 14px 0; }.game-tool-dialog [data-error] { color: #ac3c42; }
.game-actions { position: fixed; z-index: 40; right: 20px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: calc(100vw - 24px); }.game-actions-items { display: none; flex-direction: column; gap: 3px; width: 285px; max-height: min(65dvh,600px); overflow: auto; padding: 8px; border: 1px solid #d9e1eb; border-radius: 10px; background: white; box-shadow: 0 12px 40px #132c4d29; }.game-actions.menu-open .game-actions-items { display: flex; }.game-actions-items button { justify-content: flex-start; width: 100%; min-height: 42px; border: 0; background: transparent; box-shadow: none; text-align: left; }.game-actions-items button:hover { background: #eef3ff; }.game-actions #game-actions-toggle { border-color: #243e7d; background: #233e7c; color: white; box-shadow: 0 6px 20px #14295033; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 25px; max-width: calc(100vw - 30px); padding: 12px 16px; border-radius: 8px; background: #172b47; color: white; font-size: 12px; transform: translate(-50%,20px); opacity: 0; pointer-events: none; transition: .2s; }.toast.visible { opacity: 1; transform: translate(-50%,0); }
.party-logo-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; margin: 20px 0; }.party-logo-card { display: flex; flex-direction: column; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: white; text-align: center; }.party-logo-card>.party-logo { width: 90px; height: 90px; border: 0; }.party-logo-card h3 { margin: 10px 0 3px; }.party-logo-card small, .party-logo-card>span:not(.party-logo) { color: var(--muted); font-size: 11px; }.party-logo-card a { margin-top: 8px; color: var(--accent); }

@media(max-width:1000px) { .v3-home-grid { grid-template-columns: 1fr; }.v3-library-layout { grid-template-columns: 1fr; }.v3-library-help { display: none; } }
@media(min-width:761px) {
  .game-actions { left: 14px; right: auto; bottom: 92px; align-items: flex-start; }
  .game-actions #game-actions-toggle { width: 197px; justify-content: flex-start; }
}
@media(min-width:761px) and (max-height:720px) { .v3-side-cycle { display: none; } }
@media(max-width:760px) {
  .sidebar { position: relative; inset: auto; width: 100%; height: 64px; overflow: visible; padding: 10px 16px; }
  .v3-brand-row { height: 44px; }.brand-mark { width: 36px; height: 36px; font-size: 23px; }.brand strong { font-size: 18px; }.brand small { font-size: 7px; }
  .shell-menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 42px; padding: 10px; border: 1px solid #52637a; border-radius: 7px; background: #ffffff0d; }.shell-menu-toggle span { display: block; width: 19px; height: 2px; background: #e1e9f5; }
  .shell-navigation { position: absolute; top: 60px; right: 12px; z-index: 31; display: none; width: min(270px,calc(100vw - 24px)); max-height: 80dvh; overflow: auto; padding: 12px; border: 1px solid #3f536d; border-radius: 9px; background: #142136; box-shadow: 0 15px 40px #10213845; }.shell-menu-open .shell-navigation { display: block; }.v3-side-cycle { margin-top: 20px; }.sidebar-footer { display: none; }
  .main-area { min-height: calc(100dvh - 64px); margin-left: 0; padding-bottom: 90px; }.topbar { min-height: 49px; padding: 0 16px; }.interface-context { padding: 9px 16px; }.campaign-content, .ready-content, .setup-content { padding-left: 16px; padding-right: 16px; }
  .v3-home { padding: 27px 16px 50px; }.v3-home-heading { align-items: start; }.v3-home-heading h1 { font-size: 31px; }.v3-home-heading p { font-size: 13px; }.v3-home-badge { display: none; }.v3-home-start, .v3-home-scenarios { padding: 19px; }.v3-start-actions .action-card { padding: 14px; gap: 10px; }.v3-start-actions .action-card strong { font-size: 16px; }.v3-start-actions .action-card em { font-size: 11px; }.v3-resume>b { font-size: 0; }.v3-resume>b svg { width: 19px; }
  .saved-games-content, .territory-editor-content, .final-debate-content { width: calc(100% - 32px); padding-top: 24px; }.v3-page-heading { align-items: start; flex-direction: column; }.v3-library-import, .v3-library-import button { width: 100%; }.v3-library-item { align-items: start; flex-wrap: wrap; padding: 14px; }.v3-library-item>div:nth-child(2) { flex: 1 1 calc(100% - 60px); }.v3-library-actions { padding-left: 58px; }.editor-toolbar>label { width: 100%; }.editor-layout { grid-template-columns: minmax(0,1fr); }.editor-jump { position: static; flex-direction: row; overflow: auto; }.editor-jump>a, .editor-jump button { flex-shrink: 0; white-space: nowrap; }.editor-jump button { margin: 0 0 0 auto; }.editor-fields { grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); }.panel, .political-card { padding: 17px; }.game-actions { right: 12px; bottom: max(12px,env(safe-area-inset-bottom)); }.game-tool-dialog { width: calc(100vw - 20px); padding: 16px; }.game-tool-dialog>header { top: -16px; }.party-logo-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Escaños y votaciones: leyendas accesibles y referencias de mayoría. */
.seat-chart{margin:20px 0}.seat-chart-bar,.vote-chart-bar{display:flex;position:relative;width:100%;height:16px;border-radius:8px;background:#e7edf4}.seat-chart-bar>i,.vote-chart-bar>i{display:block;height:100%;flex:none}.seat-chart-bar>i:first-child,.vote-chart-bar>i:first-child{border-radius:8px 0 0 8px}.seat-majority-marker{position:absolute;top:-5px;bottom:-5px;width:3px;background:#17253d;transform:translateX(-50%);border:1px solid #fff;box-shadow:0 0 0 1px #17253d}.seat-majority-label{margin-top:8px;color:#566982;font-size:11px;text-align:right}.seat-chart-legend,.vote-chart-legend{display:flex;flex-wrap:wrap;gap:7px 14px;margin-top:10px;font-size:11px;color:#52657e}.seat-chart-legend span,.vote-chart-legend span{display:inline-flex;align-items:center;gap:5px}.seat-chart-legend i,.vote-chart-legend i{width:9px;height:9px;border-radius:2px}.vote-chart{background:#f4f7fb;border:1px solid #dce4ef;border-radius:12px;padding:16px;margin:16px 0}.vote-chart h2{font-size:15px;margin:0 0 14px}.vote-chart p{font-size:13px;font-weight:700;color:#263c5b;margin:12px 0 4px}.vote-chart small{font-size:11px;color:#657891}.vote-chart-yes{background:#38a477}.vote-chart-no{background:#db6264}.vote-chart-abstain{background:#dfaa40}.vote-chart-pending{background:#cbd5e2}
