/* Feudalis — estilo "Neo-Fantasy": abismo azul-noite, runas em turquesa, bronze heráldico, prata */
:root {
  --bg: #070c17; --bg2: #0d1626; --panel: #111d30; --panel2: #15233a; --line: #213350; --line2: #2e4669;
  --ink: #e8ecf3; --ink2: #a9b4c6; --ink3: #74839a; --gold: #d4b06c; --gold2: #f0d59a;
  --rune: #5ee0d2; --rune2: #2a8f88; --glow: 0 0 0 1px rgba(94, 224, 210, .35), 0 0 18px rgba(94, 224, 210, .18);
  --good: #6fd39a; --bad: #ef7466; --warn: #e8bb5a; --chip: #182842;
  --serif: 'Cinzel', 'Trajan Pro', Georgia, serif; --sans: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #e7ebf1; --bg2: #dbe1ea; --panel: #f6f8fb; --panel2: #eef2f7; --line: #c9d2df; --line2: #aab7c9;
  --ink: #142033; --ink2: #3d4b61; --ink3: #66748a; --gold: #8a6420; --gold2: #6e4f14;
  --rune: #11867d; --rune2: #0d6a63; --glow: 0 0 0 1px rgba(17, 134, 125, .35), 0 0 12px rgba(17, 134, 125, .12);
  --good: #1f8048; --bad: #b3372b; --warn: #8f6200; --chip: #e1e7ef; color-scheme: light;
}
* { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold2); cursor: pointer; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: 2rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.12rem; }
.muted { color: var(--ink3); } .small { font-size: .85rem; } .good { color: var(--good); } .bad { color: var(--bad); } .gold { color: var(--gold); }
.num { font-variant-numeric: tabular-nums; }

/* estrutura */
.app { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.side { background: var(--bg2); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; overflow-y: auto; }
.brand { font-family: var(--serif); font-size: 1.6rem; font-weight: 800; letter-spacing: .01em; padding: 0 8px 14px; color: var(--gold); }
.brand small { display: block; font-family: var(--sans); font-size: .78rem; color: var(--ink3); font-weight: 400; }
.nav button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: var(--ink2); }
.nav button:hover { background: var(--panel); color: var(--ink); }
.nav button.on { background: var(--panel); color: var(--ink); box-shadow: inset 3px 0 0 var(--gold); }
.main { min-width: 0; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding: 10px 22px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.year { font-family: var(--serif); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.year small { font-family: var(--sans); font-size: .8rem; font-weight: 400; color: var(--ink3); display: block; }
.ctrl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.view { padding: 22px; max-width: 1400px; }

/* componentes */
.btn { background: var(--chip); border: 1px solid var(--line2); border-radius: 6px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--gold); }
.btn.pri { background: var(--gold); color: #1b1608; border-color: var(--gold); font-weight: 700; }
.btn.pri:hover { background: var(--gold2); }
.btn.sm { padding: 3px 8px; font-size: .85rem; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; min-width: 0; }
.card > h3 { display: flex; align-items: center; gap: 8px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 14px; }
.kv div b { display: block; font-family: var(--serif); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.kv div span { font-size: .8rem; color: var(--ink3); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; gap: 4px; align-items: center; background: var(--chip); border-radius: 999px; padding: 1px 9px; font-size: .82rem; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-weight: 600; color: var(--ink3); font-size: .85rem; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--bg2); }
.bar { height: 7px; background: var(--chip); border-radius: 4px; overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.attr { display: grid; grid-template-columns: 110px 1fr 34px; gap: 8px; align-items: center; font-size: .9rem; margin: 3px 0; }
.relbar { position: relative; height: 8px; background: var(--chip); border-radius: 4px; min-width: 90px; }
.relbar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.relbar:after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--ink3); }

/* estandarte heráldico */
.ban { display: inline-block; width: 20px; height: 24px; flex: none; vertical-align: middle; margin-right: 4px; }
.ban svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ban.lg { width: 50px; height: 60px; margin-right: 8px; }
.chip .ban { width: 13px; height: 16px; }

/* editor de bandeira */
.flag-ed { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; }
.fe-prev { display: grid; gap: 10px; justify-items: center; position: sticky; top: 8px; }
.fe-big { width: 130px; height: 156px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.fe-big svg { width: 100%; height: 100%; }
.opts { display: flex; flex-wrap: wrap; gap: 5px; }
.opt { width: 40px; height: 46px; padding: 4px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg2, transparent); cursor: pointer; display: grid; place-items: center; }
.opt svg { width: 100%; height: 100%; }
.opt:hover { border-color: var(--ink2); }
.opt.on { border-color: var(--gold2); box-shadow: 0 0 0 2px var(--gold2); }
.sw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0; }
.sw-row > span { width: 52px; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(127,127,127,.5); background: var(--sw); cursor: pointer; padding: 0; }
.sw.on { border-color: var(--gold2); box-shadow: 0 0 0 2px var(--gold2); }
.sw-row input[type=color] { width: 30px; height: 26px; padding: 0 2px; }
@media (max-width: 560px) {
  .flag-ed { grid-template-columns: 1fr; }
  .fe-prev { position: static; grid-template-columns: auto auto; align-items: center; }
  .fe-big { width: 90px; height: 108px; }
  .opt { width: 36px; height: 42px; }
}

/* salvamento automático */
.autoind { white-space: nowrap; }
.autoind.pulse { animation: autopulse 1.4s ease-out; }
@keyframes autopulse { 0% { color: var(--gold2); } 100% { color: inherit; } }
@media (prefers-reduced-motion: reduce) { .autoind.pulse { animation: none; } }
.fam { display: inline-flex; gap: 7px; align-items: center; }
.ext { filter: grayscale(1); opacity: .6; }

/* linha do tempo */
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.log li .y { font-family: var(--serif); color: var(--gold); font-weight: 700; text-align: right; }
.log li.i3 { font-weight: 600; }
.log li.i1 { color: var(--ink2); }

/* mapa */
.map { display: grid; gap: 3px; grid-template-columns: repeat(var(--cols), minmax(38px, 1fr)); }
.tile { min-width: 0; width: 100%; padding: 0; aspect-ratio: 1 / 1; border-radius: 5px; position: relative; cursor: pointer; border: 0; display: block; background: #444; overflow: hidden; }
.tile .tsvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tile.free .tsvg { filter: saturate(.7) brightness(.8); }
.tile .tint { position: absolute; inset: 0; background: var(--own); opacity: .28; mix-blend-mode: normal; }
.tile.owned::after { content: ''; position: absolute; inset: 0; border-radius: 5px; border-style: solid; border-color: var(--own); border-width: var(--bw); pointer-events: none; }
.tile.sel { outline: 3px solid var(--gold2); outline-offset: 1px; z-index: 2; }
.tile > span { position: absolute; line-height: 0; pointer-events: none; }
.tile .tflag { top: 3px; left: 3px; }
.tile .tflag { width: 100%; } .tile .tflag .ban { width: 34%; aspect-ratio: 5 / 6; height: auto; margin: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.tile .tcap { top: 3px; right: 3px; width: 30%; }
.tile .tnat { top: 4px; right: 4px; width: 28%; }
.tile .twar { bottom: 3px; left: 3px; width: 32%; }
.tile .tdev { bottom: 3px; right: 3px; display: flex; gap: 1px; width: 45%; justify-content: flex-end; }
.tile .tdev svg { width: 33%; max-width: 10px; }
.tile span svg { width: 100%; height: auto; display: block; }
.mapwrap { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
@media (max-width: 860px) { .mapwrap { grid-template-columns: minmax(0, 1fr); } }
.tile .tint { opacity: .34; }
.maplegend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 6px; }
.maplegend span { display: inline-flex; align-items: center; gap: 5px; }
.maplegend i { width: 14px; display: inline-block; line-height: 0; }
.maplegend i svg { width: 100%; height: auto; }
.tinfo-ico { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; position: relative; float: right; margin-left: 10px; }
.tinfo-ico .tsvg { width: 100%; height: 100%; }

/* genealogia */
.tree { overflow-x: auto; padding-bottom: 10px; }
.tree ul { padding-top: 16px; position: relative; display: flex; justify-content: center; margin: 0; padding-left: 0; }
.tree li { list-style: none; text-align: center; position: relative; padding: 16px 4px 0; }
.tree li:before, .tree li:after { content: ''; position: absolute; top: 0; right: 50%; border-top: 1px solid var(--line2); width: 50%; height: 16px; }
.tree li:after { right: auto; left: 50%; border-left: 1px solid var(--line2); }
.tree li:only-child:after, .tree li:only-child:before { display: none; }
.tree li:only-child { padding-top: 0; }
.tree li:first-child:before, .tree li:last-child:after { border: 0 none; }
.tree li:last-child:before { border-right: 1px solid var(--line2); border-radius: 0 5px 0 0; }
.tree li:first-child:after { border-radius: 5px 0 0 0; }
.tree ul ul:before { content: ''; position: absolute; top: 0; left: 50%; border-left: 1px solid var(--line2); height: 16px; }
.tree > ul { padding-top: 0; width: max-content; min-width: 100%; }
.pc { display: inline-block; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 6px; padding: 4px 8px; font-size: .8rem; cursor: pointer; min-width: 92px; line-height: 1.25; }
.pc:hover { border-color: var(--gold); }
.pc.dead { opacity: .62; }
.pc b { font-family: var(--serif); font-size: .9rem; }
.pc .sp { display: block; color: var(--ink3); border-top: 1px dashed var(--line); margin-top: 3px; padding-top: 2px; }
.more { font-size: .75rem; color: var(--ink3); padding-top: 18px; }

/* tecnologia */
.techcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tech { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: .85rem; background: var(--bg2); }
.tech.known { border-color: var(--good); }
.tech.cur { border-color: var(--gold); }
.tech.lock { opacity: .55; }
.tech b { font-family: var(--serif); font-size: .95rem; }

/* formulário */
label.f { display: block; font-size: .85rem; color: var(--ink2); margin: 10px 0 4px; }
input[type=text], input[type=number], select, textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line2); border-radius: 6px; padding: 7px 9px; }
input[type=color] { width: 46px; height: 34px; border: 1px solid var(--line2); background: none; border-radius: 6px; padding: 2px; }
input[type=range] { width: 100%; accent-color: var(--gold); }
.slider { display: grid; grid-template-columns: 110px 1fr 32px; gap: 8px; align-items: center; font-size: .9rem; }
.pts { font-family: var(--serif); font-size: 1.4rem; font-weight: 800; }

/* modal e aviso */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 8, 18, .62); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; max-width: 760px; width: 100%; max-height: calc(100% - 20px); overflow-y: auto; padding: 20px 22px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 8px; z-index: 60; max-width: 90vw; font-size: .92rem; }
.busy { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(5, 8, 18, .35); font-family: var(--serif); font-size: 1.3rem; color: #fff; }

/* menu principal */
.home { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; }
.home-in { max-width: 560px; width: 100%; }
.home h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); color: var(--gold); margin-bottom: .1em; letter-spacing: -.01em; }
.home .lede { color: var(--ink2); font-size: 1.1rem; max-width: 46ch; margin-bottom: 26px; }
.banners { display: flex; gap: 6px; margin-bottom: 18px; }
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-list .btn { text-align: left; padding: 11px 14px; font-size: 1rem; }
.menu-list .btn.pri { grid-column: span 2; font-family: var(--serif); font-size: 1.15rem; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; height: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { display: none; }
  .nav { display: flex; overflow-x: auto; gap: 2px; }
  .nav button { width: auto; flex: none; padding: 6px 9px; font-size: .9rem; }
  .nav button.on { box-shadow: inset 0 -3px 0 var(--gold); }
  .top { position: static; padding: 10px 14px; }
  .view { padding: 14px; }
  .attr, .slider { grid-template-columns: 90px 1fr 30px; }
  .map { grid-template-columns: repeat(var(--cols), minmax(26px, 1fr)); gap: 2px; }
  .tile { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===== v1.2 ===== */
/* mapa: mar, camada de rios e rotas, povoados e navios */
.map { position: relative; }
.tile.sea { cursor: pointer; }
.tile.sea .tsvg { filter: none; }
.mapov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mapov .river { fill: none; stroke: #6fb3dc; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .9; }
.mapov .route { fill: none; stroke: #f4d27a; stroke-width: 2.4; stroke-dasharray: 6 5; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 1.5px rgba(0,0,0,.8)); animation: routeflow 1.6s linear infinite; }
.mapov .route.searoute { stroke: #f2efe6; }
@keyframes routeflow { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .mapov .route { animation: none; } }
.tile .ttown { bottom: 2px; right: 2px; width: 46%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.7)); }
.tile .ttown.t0 { width: 28%; } .tile .ttown.t1 { width: 38%; } .tile .ttown.t4 { width: 56%; }
.tile .tship { top: 50%; left: 50%; width: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.maplegend i.lg-river, .maplegend i.lg-route { height: 0; border-top: 3px solid #6fb3dc; width: 18px; }
.maplegend i.lg-route { border-top: 3px dashed #d8ad4f; }
.town-line { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.town-ico { width: 34px; display: inline-block; line-height: 0; } .town-ico svg { width: 100%; }

/* retratos */
.face { display: inline-block; vertical-align: middle; line-height: 0; flex: none; }
.face svg { width: 100%; height: auto; border-radius: 22%; }
.ptr.dead { filter: grayscale(1) sepia(.35) brightness(.9); }
td.nowrap { white-space: nowrap; }
.pc .face { float: left; margin: 0 6px 2px 0; }
.ruler-line { display: flex; gap: 10px; align-items: center; margin: 6px 0 10px; cursor: pointer; }
.ruler-line > div { display: flex; flex-direction: column; }

/* corte */
.court { display: flex; gap: 14px; margin: 4px 0 10px; }
.cp { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; text-align: center; max-width: 90px; }

/* dilemas */
.dilemma .dl-head { display: flex; gap: 12px; align-items: center; }
.dl-icon { font-size: 2.4rem; line-height: 1; }
.dl-text { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; margin: 14px 0; max-width: 62ch; }
.dl-opts { display: grid; gap: 8px; }
.dl-opt { text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); cursor: pointer; display: grid; gap: 3px; font: inherit; }
.dl-opt span { font-size: .85rem; color: var(--ink2); }
.dl-opt:hover:not([disabled]) { border-color: var(--gold); }
.dl-opt:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.dl-opt[disabled] { opacity: .5; cursor: not-allowed; }

/* gráficos */
.chart { position: relative; margin-top: 10px; touch-action: pan-y; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-size: 11px; fill: var(--ink3); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .cursor { stroke: var(--ink2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .tip { position: absolute; top: 4px; min-width: 150px; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 8px; font-size: .78rem; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.chart .tip div { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.chart .tip i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.chart .tip b { margin-left: auto; }
.fchip { cursor: pointer; border: 1px solid transparent; opacity: .55; }
.fchip.on { opacity: 1; border-color: var(--c); }
.spark { width: 100%; height: auto; }

.mapscroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; }
.map { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)) !important; min-width: calc(var(--cols) * 30px); }
@media (max-width: 560px) { .map { min-width: calc(var(--cols) * 27px); gap: 2px; } }

/* ===== v1.3 economia ===== */
.alerts p { margin: 4px 0; }
.alerts .warn { color: #d9a03a; }
.alerts .info { color: var(--ink2); }
.legend { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; border: 1px solid rgba(0,0,0,.25); }
ul.routes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.routes li { border-bottom: 1px dashed var(--line); padding-bottom: 6px; }

/* ===== v1.4 ícones e conta ===== */
.ic { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; display: inline-block; }
.ic.h { width: 1.1em; height: 1.1em; color: var(--gold); margin-right: 2px; vertical-align: -0.16em; }
h1 .ic.h { width: .9em; height: .9em; }
.nav button span .ic { width: 19px; height: 19px; vertical-align: middle; color: var(--gold); }
.nav button.on span .ic { color: var(--gold2); }
.btn .ic { width: 1.05em; height: 1.05em; margin-right: 2px; }
.gi, .bi { display: inline-flex; vertical-align: -0.22em; line-height: 0; }
.gi .ic, .bi .ic { width: 1.2em; height: 1.2em; vertical-align: 0; }
.gi .ic { stroke-width: 2; }
.bi { color: var(--ink2); }
.brand .who { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sans); }
.brand .who .ic { width: 14px; height: 14px; }

.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); text-align: left; }
.auth-crest { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.auth-crest .ban.lg { width: 44px; height: 53px; margin: 0; }
.auth h1 { text-align: center; margin: 4px 0 2px; font-size: 2.2rem; }
.auth .lede { text-align: center; margin: 0 0 16px; }
.auth h2 { margin: 6px 0 12px; font-size: 1.3rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg2); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.auth-tabs button { border: 0; background: transparent; color: var(--ink2); padding: 9px; border-radius: 7px; font: inherit; font-weight: 600; cursor: pointer; }
.auth-tabs button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.af { display: block; margin-bottom: 12px; }
.af > span { display: block; font-size: .85rem; color: var(--ink2); margin-bottom: 5px; }
.af-in { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 10px; background: var(--bg2); }
.af-in:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.af-in > .ic { color: var(--ink3); }
.af-in input { flex: 1; border: 0 !important; background: transparent !important; padding: 11px 0 !important; font-size: 1rem; color: var(--ink); outline: none; box-shadow: none !important; min-width: 0; }
.af-eye { border: 0; background: transparent; color: var(--ink3); padding: 6px; cursor: pointer; line-height: 0; }
.af-eye:hover { color: var(--ink); }
.btn.wide { width: 100%; justify-content: center; padding: 11px; margin-top: 4px; font-size: 1rem; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: .9rem; }
.auth-links a { cursor: pointer; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.auth-msg { border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: .92rem; border: 1px solid; }
.auth-msg.bad { color: #e58b83; border-color: #7a2f29; background: rgba(200,71,63,.12); }
.auth-msg.good { color: #79c79c; border-color: #2d6b48; background: rgba(63,174,122,.12); }
.auth-msg.info { color: var(--ink2); border-color: var(--line2); background: var(--bg2); }
:root[data-theme="light"] .auth-msg.bad { color: #9d2f27; } :root[data-theme="light"] .auth-msg.good { color: #23704a; }
.auth-done { text-align: center; margin: 8px 0 14px; }
.auth-done .ic { width: 44px; height: 44px; color: var(--gold); }
.auth-off { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line2); }
.auth-foot { text-align: center; margin: 14px 0 0; }

/* ===== v1.5 nuvem ===== */
.cloudind { white-space: nowrap; }
.cloudind .ic { width: 15px; height: 15px; }
.cloudind .warn { color: #d9a03a; }
.card.world { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.card.world.current { border-color: var(--gold); }
.card.world.local { border-style: dashed; }
.w-ico { color: var(--gold); line-height: 0; } .w-ico .ic { width: 28px; height: 28px; }
.w-main { flex: 1; min-width: 0; }
.w-main b { font-size: 1.05rem; }
.w-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .card.world { flex-wrap: wrap; } .w-act { width: 100%; justify-content: flex-start; } }

/* ===== v1.6 modos, regiões e negociação ===== */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; text-align: left; }
.mode { position: relative; display: grid; gap: 6px; padding: 20px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; }
.mode .ic { width: 34px; height: 34px; color: var(--gold); }
.mode b { font-family: var(--serif); font-size: 1.3rem; }
.mode span { color: var(--ink2); font-size: .92rem; }
.mode:hover:not([disabled]) { border-color: var(--gold); transform: translateY(-1px); }
.mode.soon { opacity: .55; cursor: not-allowed; }
.mode i { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: .72rem; background: var(--bg2); padding: 3px 8px; border-radius: 99px; color: var(--ink2); }
.solo { min-height: 100vh; padding: 24px 16px; } .solo-in { max-width: 860px; margin: 0 auto; }
.world-prev { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px; border-radius: 10px; background: var(--bg2); }
.rtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 10px 0 12px; }
.rtabs button { border: 0; background: transparent; color: var(--ink2); padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rtabs button.on { color: var(--ink); border-bottom-color: var(--gold); }
.pchip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 6px; background: var(--bg2); margin: 2px 2px 2px 0; white-space: nowrap; }
.pchip.hi { color: #e58b83; } .pchip.lo { color: #79c79c; }
:root[data-theme="light"] .pchip.hi { color: #9d2f27; } :root[data-theme="light"] .pchip.lo { color: #23704a; }
.gov { display: grid; gap: 14px; } .gov > div { padding-bottom: 12px; border-bottom: 1px dashed var(--line); } .gov p { margin: 4px 0 8px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.spec { display: grid; justify-items: center; gap: 4px; padding: 8px 6px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); cursor: pointer; font: inherit; font-size: .8rem; }
.spec .ic { width: 22px; height: 22px; color: var(--gold); }
.spec.on { border-color: var(--gold2); box-shadow: 0 0 0 2px var(--gold2); }
.spec[disabled]:not(.on) { opacity: .4; cursor: not-allowed; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--bg2); border-radius: 9px; padding: 3px; margin: 10px 0; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 7px; font: inherit; color: var(--ink2); cursor: pointer; font-weight: 600; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.goodsel { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.goodsel button { display: grid; justify-items: center; gap: 2px; padding: 7px 4px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); cursor: pointer; font: inherit; font-size: .78rem; }
.goodsel button small { color: var(--ink3); font-size: .7rem; }
.goodsel button.on { border-color: var(--gold2); box-shadow: 0 0 0 2px var(--gold2); }
.goodsel .gi .ic { width: 22px; height: 22px; }
.neg label.f input, .neg label.f select { width: 100%; margin-top: 4px; }
ul.contracts { padding-left: 18px; margin: 4px 0; } ul.contracts li { margin: 4px 0; }
.offer { border: 1px dashed var(--line2); border-radius: 10px; padding: 8px 10px; margin: 6px 0; display: grid; gap: 6px; }
.warn { color: #d9a03a; }
.neg .row { flex-wrap: wrap; } .neg .row .btn { white-space: normal; text-align: left; }

/* ===== v1.7 mapas ===== */
.maptabs { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 14px; padding-bottom: 2px; }
.maptabs button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid var(--line2); background: var(--panel); color: var(--ink2); padding: 7px 12px; border-radius: 99px; font: inherit; font-size: .9rem; cursor: pointer; position: relative; }
.maptabs button .ic { color: var(--gold); }
.maptabs button.on { color: var(--ink); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.maptabs button.locked { opacity: .65; } .maptabs button.locked .ic { color: var(--ink3); }
.maptabs .dot { width: 7px; height: 7px; border-radius: 50%; background: #3fae7a; display: inline-block; }
.locked-map { display: flex; gap: 18px; align-items: flex-start; max-width: 760px; }
.locked-map .lm-ico .ic { width: 56px; height: 56px; color: var(--gold); }
.mapov .river.lava { stroke: #ff5a1f; stroke-width: 3.6; filter: drop-shadow(0 0 2px rgba(255,120,40,.9)); }
.maplegend i.lg-river.lava { border-top-color: #ff5a1f; }
.map-dunas .map { background: #c99a52; } .map-gelo .map { background: #0f2538; } .map-belard .map { background: #18151a; }
.map-dunas .map, .map-gelo .map, .map-belard .map { padding: 3px; border-radius: 8px; }
.tech .unlock { font-size: .78rem; color: var(--gold2); margin: 3px 0; display: flex; gap: 4px; align-items: flex-start; }

/* v1.9 — relógio do mundo e tarefas com cronômetro */
.clockbox { display: flex; align-items: center; gap: 8px; background: var(--chip); border: 1px solid var(--line2); border-radius: 8px; padding: 4px 10px; min-width: 190px; }
.clockbox > svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.clockbox > div { flex: 1; min-width: 0; }
.clockbox .small { display: block; white-space: nowrap; }
.cbar { height: 4px; background: var(--bg2); border-radius: 3px; overflow: hidden; margin-top: 3px; }
.cbar i { display: block; height: 100%; background: var(--gold); transition: width .25s linear; }
.tchip b { margin-left: 2px; }
.tchip.on { border-color: var(--gold); color: var(--gold2); }
.timer { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; font-size: .85rem; }
.timer .tbar { display: inline-block; width: 90px; height: 6px; background: var(--chip); border-radius: 4px; overflow: hidden; }
.timer .tbar i { display: block; height: 100%; background: var(--good); transition: width .25s linear; }
.timer.bad .tbar i { background: var(--bad); }
.timer b { font-variant-numeric: tabular-nums; min-width: 4.5em; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.task { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg2); }
.task.urgent { border-color: var(--bad); cursor: pointer; }
.task .t-ico { font-size: 1.3rem; width: 28px; text-align: center; flex: none; }
.task .t-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.task .t-main .timer .tbar { width: 100%; max-width: 220px; }
.card.inset { background: var(--bg2); padding: 10px 12px; margin-top: 10px; }
.card.inset p { margin: 0 0 6px; }
.dl-timer { text-align: right; }
.busy.catchup { text-align: center; padding: 20px; background: rgba(5, 8, 18, .6); }
@media (max-width: 720px) { .clockbox { min-width: 0; flex: 1 1 160px; } .dl-timer { text-align: left; } }
.task .t-main .timer { display: flex; }
.task .t-main .timer .tbar { flex: 1 1 auto; max-width: 260px; width: auto; }
.timer b { white-space: nowrap; }

/* v1.10 — construções e maravilhas */
.bcat { margin: 14px 0 6px; font-size: 1rem; color: var(--ink2); }
.dl-opt.locked { opacity: .55; }
.dl-opt.wonder { border-color: var(--gold); }
.bi.wonder { color: var(--gold); }
.task.enemy { border-color: var(--bad); }
.wonders { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wonders li { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.dl-opts.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }


/* =====================================================================
   v1.11 — FEUDALIS · Neo-Fantasy / Modern RPG
   Três níveis de painel: .card (moldura com cantos de bronze), .card.hero (brilho rúnico),
   .card.flat (lista sem moldura). Números grandes em Cinzel. O HUD mostra os recursos da casa.
   ===================================================================== */
html, body { background: radial-gradient(1200px 700px at 70% -10%, #0f2034 0%, transparent 60%), var(--bg); background-attachment: fixed; }
:root[data-theme="light"] body { background: var(--bg); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .02em; }
h1 { font-size: 1.85rem; color: var(--gold2); }
h2 { color: var(--gold2); }
h3 { font-size: 1rem; color: var(--gold); }
a { color: var(--rune); }
:focus-visible { outline: 2px solid var(--rune); outline-offset: 2px; }

/* barra lateral com o brasão */
.side { background: linear-gradient(180deg, #0c1626 0%, #08101d 100%); border-right: 1px solid var(--line); }
:root[data-theme="light"] .side { background: var(--bg2); }
.brand { padding: 0 4px 10px; text-align: center; }
.brand img { width: 150px; max-width: 100%; height: auto; display: block; margin: 0 auto 2px; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.brand small { font-family: var(--sans); color: var(--ink3); }
.brand .who { justify-content: center; }
.nav { display: grid; gap: 2px; }
.nav button { border-radius: 4px; color: var(--ink2); padding: 9px 10px; position: relative; }
.nav button:hover { background: rgba(94, 224, 210, .06); color: var(--ink); }
.nav button.on { background: linear-gradient(90deg, rgba(94, 224, 210, .14), rgba(94, 224, 210, 0) 85%); color: var(--ink); box-shadow: inset 2px 0 0 var(--rune); }
.nav button span .ic { color: var(--ink3); }
.nav button.on span .ic { color: var(--rune); filter: drop-shadow(0 0 4px rgba(94, 224, 210, .6)); }

/* HUD */
.top.hud { gap: 10px 14px; padding: 10px 22px; background: color-mix(in srgb, #08101d 88%, transparent); border-bottom: 1px solid var(--line); }
:root[data-theme="light"] .top.hud { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.hud-crest { display: none; width: 42px; height: 42px; }
.hud-crest img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.year { display: flex; flex-direction: column; justify-content: center; min-width: 108px; }
.year b { font-family: var(--serif); font-size: 1.55rem; line-height: 1; color: var(--gold2); letter-spacing: .03em; }
.year small { margin-top: 3px; }
.res { display: flex; gap: 4px; flex-wrap: wrap; flex: 1 1 360px; }
.res > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: rgba(13, 22, 38, .7); font-variant-numeric: tabular-nums; white-space: nowrap; }
:root[data-theme="light"] .res > span { background: var(--panel); }
.res > span .ic { color: var(--gold); width: 17px; height: 17px; }
.res > span b { font-weight: 700; }
.res > span em { font-style: normal; font-size: .75rem; color: var(--ink3); }
.res > span.low { border-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.res > span.low b { color: var(--bad); }
.clockbox { background: rgba(13, 22, 38, .7); border: 1px solid var(--line2); border-radius: 4px; }
:root[data-theme="light"] .clockbox { background: var(--panel); }
.clockbox > svg { color: var(--rune); }
.cbar { height: 5px; background: #0a1322; border: 1px solid var(--line); border-radius: 0; }
.cbar i { background: linear-gradient(90deg, var(--rune2), var(--rune)); box-shadow: 0 0 8px var(--rune); }
:root[data-theme="light"] .cbar { background: var(--bg2); }

/* botões */
.btn { background: linear-gradient(180deg, #1a2b46, #13213a); border: 1px solid var(--line2); border-radius: 4px; color: var(--ink); }
:root[data-theme="light"] .btn { background: var(--panel); }
.btn:hover:not(:disabled) { border-color: var(--rune); box-shadow: 0 0 10px rgba(94, 224, 210, .18); }
.btn.pri { background: linear-gradient(180deg, #e3c27f, #b8914a); color: #1a1408; border-color: #e9cf95; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.pri:hover:not(:disabled) { background: linear-gradient(180deg, #f0d59a, #c9a25a); border-color: #f6e2b3; box-shadow: 0 0 12px rgba(212, 176, 108, .35); }
.btn.danger { border-color: color-mix(in srgb, var(--bad) 70%, transparent); color: var(--bad); }
.tchip.on { border-color: var(--rune); color: var(--rune); box-shadow: var(--glow); }

/* painéis: moldura com cantos de bronze */
.card { position: relative; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 3px; padding: 16px 18px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
:root[data-theme="light"] .card { box-shadow: 0 4px 14px rgba(20, 32, 51, .08); }
.card::before { content: ''; position: absolute; inset: -1px; pointer-events: none; border-radius: 3px;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 12px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) top left / 1px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 12px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) top right / 1px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 12px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) bottom left / 1px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 12px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) bottom right / 1px 12px no-repeat; opacity: .75; }
.card > h3, .card > .spread > h3 { padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--line2), transparent) 1; }
.card > .spread { align-items: baseline; }
.card > .spread > h3 { flex: 1 1 auto; }
.card.hero { border-color: color-mix(in srgb, var(--rune) 45%, var(--line)); box-shadow: var(--glow), 0 14px 36px rgba(0, 0, 0, .35); }
.card.hero::before { opacity: 1; }
.card.flat { background: transparent; border: 0; box-shadow: none; padding: 4px 2px; }
.card.flat::before { display: none; }
.card.inset { background: var(--bg2); box-shadow: none; }
.card.inset::before { display: none; }
.card.alerts { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }

/* números: medalhas de status */
.kv { gap: 8px; }
.kv > div { padding: 8px 10px; background: rgba(7, 12, 23, .35); border: 1px solid var(--line); border-radius: 3px; }
:root[data-theme="light"] .kv > div { background: var(--bg2); }
.kv div b { font-family: var(--serif); font-size: 1.25rem; color: var(--gold2); letter-spacing: .02em; }
.kv div b.good { color: var(--good); } .kv div b.bad { color: var(--bad); }
.kv div span { color: var(--ink3); }
.bar, .timer .tbar { background: #0a1322; border-radius: 0; }
:root[data-theme="light"] .bar, :root[data-theme="light"] .timer .tbar { background: var(--bg2); }
.bar i { border-radius: 0; background: linear-gradient(90deg, #a98447, var(--gold)); }
.timer .tbar i { background: linear-gradient(90deg, var(--rune2), var(--rune)); }
.timer.bad .tbar i { background: var(--bad); }
th { color: var(--ink3); font-weight: 500; }
td, th { border-bottom-color: var(--line); }
.chip { background: var(--chip); border-radius: 3px; }
.log li { border-bottom: 1px solid var(--line); }
.log li .y { font-family: var(--serif); color: var(--gold); }

/* painel principal (Casa) */
.dash { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: start; }
.dmain, .dside { display: grid; gap: 16px; min-width: 0; align-content: start; }
@media (max-width: 1020px) { .dash { grid-template-columns: minmax(0, 1fr); } .dside { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.house { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; align-items: start; }
.house-ban { width: 92px; height: 110px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.house-ban .ban { width: 100%; height: 100%; margin: 0; }
.house-name { font-family: var(--serif); font-size: 1.7rem; color: var(--gold2); margin: 0; line-height: 1.1; }
.house-sub { color: var(--ink2); margin: 4px 0 10px; }
.house .kv { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); margin-top: 8px; }
.house .ruler-line { margin: 0; }
.house-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.world-list { list-style: none; margin: 0; padding: 0; }
.world-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.world-list li b { font-family: var(--serif); color: var(--gold2); font-variant-numeric: tabular-nums; }
.world-list li span { color: var(--ink2); }
.wonders li b { color: var(--ink); }
.task { background: rgba(7, 12, 23, .45); border-radius: 3px; border-color: var(--line); }
:root[data-theme="light"] .task { background: var(--bg2); }
.task .t-ico { filter: drop-shadow(0 0 4px rgba(94, 224, 210, .25)); }

/* modal */
.modal-bg { background: rgba(3, 6, 12, .72); backdrop-filter: blur(3px); }
.modal { border-radius: 4px; border-color: color-mix(in srgb, var(--rune) 35%, var(--line2)); box-shadow: var(--glow), 0 24px 60px rgba(0, 0, 0, .55); background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.dl-opt { border-radius: 3px; background: rgba(7, 12, 23, .4); border-color: var(--line2); }
:root[data-theme="light"] .dl-opt { background: var(--bg2); }
.dl-opt:hover:not([disabled]) { border-color: var(--rune); box-shadow: 0 0 10px rgba(94, 224, 210, .15); }
.dl-opt b { color: var(--gold2); }
.dl-opt.wonder { border-color: var(--gold); }
.toast { background: #0d1a2c; color: var(--ink); border: 1px solid var(--rune2); box-shadow: var(--glow); border-radius: 4px; }
:root[data-theme="light"] .toast { background: var(--ink); color: var(--bg); }

/* tecnologia e mapa */
.tech { border-radius: 3px; background: rgba(7, 12, 23, .35); }
:root[data-theme="light"] .tech { background: var(--bg2); }
.tech.known { border-color: color-mix(in srgb, var(--rune) 55%, transparent); box-shadow: inset 2px 0 0 var(--rune); }
.tech.cur { border-color: var(--gold); box-shadow: inset 2px 0 0 var(--gold); }
.techcols h3 { color: var(--gold); }
.tile.sel { outline-color: var(--rune); box-shadow: 0 0 12px var(--rune); }
.maptabs button.on { border-color: var(--rune); box-shadow: var(--glow); }

/* entrada, login e menu */
.home-logo, .auth-logo { display: block; width: min(420px, 86vw); height: auto; margin: 0 auto 6px; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); }
.auth-logo { width: min(300px, 70vw); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home-in { text-align: center; max-width: 640px; }
.home .lede { margin: 0 auto 24px; }
.home .modes { text-align: left; }
.mode { border-radius: 4px !important; background: linear-gradient(180deg, var(--panel2), var(--panel)) !important; border: 1px solid var(--line2) !important; }
.mode:not(:disabled):hover { border-color: var(--rune) !important; box-shadow: var(--glow); }
.mode b { font-family: var(--serif); color: var(--gold2); }
.auth-card { border-radius: 4px !important; border: 1px solid color-mix(in srgb, var(--rune) 30%, var(--line2)) !important; box-shadow: var(--glow), 0 24px 60px rgba(0, 0, 0, .5) !important; background: linear-gradient(180deg, var(--panel2), var(--panel)) !important; }
.auth-card h1 { color: var(--gold2); }

@media (max-width: 860px) {
  .hud-crest { display: block; }
  .top.hud { padding: 8px 12px; }
  .res { flex-basis: 100%; order: 5; }
  .res > span { padding: 3px 8px 3px 6px; font-size: .85rem; }
  .nav button.on { box-shadow: inset 0 -2px 0 var(--rune); }
  .house { grid-template-columns: 1fr; } .house-ban { width: 64px; height: 76px; }
}

.auth { background: transparent !important; }
.a-world .world-list li b { text-align: right; }
.grid + .grid, .grid + .card, .card + .grid, .card + .card, .alerts + .grid { margin-top: 16px; }
.dmain > .card + .card, .dside > .card + .card { margin-top: 0; }
.spread > select { width: auto; min-width: 180px; }
.house .kv { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
@media (max-width: 860px) {
  .nav { display: flex; overflow-x: auto; gap: 2px; }
  .brand { display: none; }
}
.adm-banner { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; padding: 8px 22px; background: color-mix(in srgb, var(--warn) 16%, var(--bg2)); border-bottom: 1px solid color-mix(in srgb, var(--warn) 50%, transparent); color: var(--ink); font-size: .92rem; }
.adm-banner .ic { color: var(--warn); }
.chip.warn { color: var(--warn); }

/* =====================================================================
   v1.13 — O MAPA COMO PAINEL
   Barra de ícones à esquerda, cabeçalho flutuante e translúcido, mapa em tela cheia.
   Texto direto sobre o mundo: branco com contorno escuro, sem caixas.
   ===================================================================== */
:root { --rail: 64px; --hud-h: 64px; --halo: 0 0 2px #000, 0 0 4px rgba(0,0,0,.9), 0 1px 8px rgba(0,0,0,.7); }
.app2 { min-height: 100vh; }
/* barra de ícones */
.rail { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0;
  background: linear-gradient(180deg, rgba(8, 15, 28, .82), rgba(5, 10, 20, .72)); backdrop-filter: blur(8px); border-right: 1px solid rgba(94, 224, 210, .12); }
:root[data-theme="light"] .rail { background: rgba(231, 235, 241, .85); }
.rail-crest { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); }
.rail-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rail-nav button, .rail-who { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink3); cursor: pointer; position: relative; }
.rail-nav button .ic { width: 21px; height: 21px; }
.rail-nav button:hover { color: var(--ink); background: rgba(94, 224, 210, .07); }
.rail-nav button.on { color: var(--rune); background: rgba(94, 224, 210, .1); box-shadow: inset 0 0 0 1px rgba(94, 224, 210, .35); }
.rail-nav button.on .ic { filter: drop-shadow(0 0 5px rgba(94, 224, 210, .7)); }
.rail-who .ic { width: 18px; height: 18px; }

/* dicas flutuantes (o nome aparece ao passar o mouse) */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; z-index: 80; white-space: nowrap; pointer-events: none;
  background: rgba(6, 12, 22, .92); color: #eef2f7; border: 1px solid rgba(94, 224, 210, .3); padding: 4px 9px; border-radius: 4px; font: 500 .82rem/1.3 var(--sans); letter-spacing: 0; text-transform: none;
  top: calc(100% + 6px); left: 50%; transform: translateX(-50%); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.rail [data-tip]:hover::after, .rail [data-tip]:focus-visible::after { top: 50%; left: calc(100% + 10px); transform: translateY(-50%); }
.m-zoom [data-tip]:hover::after { top: 50%; left: auto; right: calc(100% + 8px); transform: translateY(-50%); }
.anc-acts [data-tip]:hover::after { white-space: normal; width: max-content; max-width: 260px; text-align: center; }

/* cabeçalho flutuante */
.hud2 { position: fixed; z-index: 35; top: 10px; left: calc(var(--rail) + 14px); right: 14px; min-height: 52px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 6px 12px; border-radius: 8px; background: linear-gradient(180deg, rgba(14, 26, 44, .62), rgba(8, 15, 28, .5)); backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(212, 176, 108, .22); box-shadow: 0 8px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255,255,255,.05); }
:root[data-theme="light"] .hud2 { background: rgba(246, 248, 251, .78); border-color: var(--line2); }
.hud2 .res { flex: none; gap: 2px 12px; justify-self: start; }
.hud2 .res > span { border: 0; background: transparent; padding: 2px 0; gap: 5px; text-shadow: var(--halo); }
:root[data-theme="light"] .hud2 .res > span { text-shadow: none; }
.hud2 .res > span .ic { width: 16px; height: 16px; }
.h-title { text-align: center; display: grid; justify-items: center; line-height: 1.1; min-width: 150px; }
.h-game { font-family: var(--serif); font-size: .72rem; letter-spacing: .28em; color: var(--rune); padding-left: .28em; }
.h-title > b { font-family: var(--serif); font-size: 1.35rem; color: var(--gold2); letter-spacing: .04em; text-shadow: var(--halo); }
:root[data-theme="light"] .h-title > b { text-shadow: none; }
.h-clock { font-size: .78rem; color: var(--ink2); }
.h-bar { display: block; width: 130px; height: 2px; margin-top: 4px; background: rgba(94, 224, 210, .15); border-radius: 2px; overflow: hidden; }
.h-bar > i { display: block; height: 100%; background: var(--rune); box-shadow: 0 0 8px var(--rune); transition: width .25s linear; }
.h-acts { justify-self: end; display: flex; align-items: center; gap: 4px; }
.hb { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink2); cursor: pointer; position: relative; }
.hb:hover { color: var(--ink); border-color: rgba(94, 224, 210, .35); }
.hb.on { color: var(--rune); }
.hb .ic { width: 20px; height: 20px; }
.hb .badge { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--rune); color: #04201d; font: 700 .68rem/16px var(--sans); }
.hb-ind { display: inline-grid; place-items: center; width: 30px; height: 30px; overflow: hidden; }
.hb-ind > * { font-size: 0; display: inline-flex; }
.hb-ind .ic { width: 18px; height: 18px; font-size: 16px; }

/* conteúdo das outras telas: abaixo do cabeçalho, ao lado da barra de ícones */
.view2 { margin-left: var(--rail); padding: calc(var(--hud-h) + 30px) 22px 28px; max-width: calc(1400px + var(--rail)); }
.adm-banner { position: fixed; z-index: 34; top: 72px; left: calc(var(--rail) + 14px); right: 14px; border-radius: 6px; }

/* ===== o palco do mapa ===== */
.app2.v-map { height: 100vh; height: 100dvh; overflow: hidden; }
.view2.is-map { padding: 0; margin: 0; max-width: none; }
.stage { position: fixed; inset: 0 0 0 var(--rail); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  background: radial-gradient(900px 600px at 50% 40%, #0e1d31 0%, #060b15 70%), #060b15; }
.stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(94, 224, 210, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(94, 224, 210, .06) 1px, transparent 1px); background-size: 48px 48px; }
:root[data-theme="light"] .stage { background: #cfd6e0; }
.stage.dragging { cursor: grabbing; }
.mworld { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.stage .map { min-width: 0 !important; gap: 2px; padding: 2px; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(94, 224, 210, .08); background: #0a1624; }
.stage .tile { border-radius: 3px; cursor: pointer; }
.stage .tile.owned::after { border-radius: 3px; }
.stage .tile.sel { outline: 2px solid var(--rune); outline-offset: 0; box-shadow: 0 0 0 2px rgba(94, 224, 210, .35), 0 0 22px 4px rgba(94, 224, 210, .55); z-index: 3; }
.stage .tile:hover { filter: brightness(1.12); }
.stage .tile .twar { animation: warpulse 1.6s ease-in-out infinite; }
.stage .tile.threat::before { content: ''; position: absolute; inset: 0; border-radius: 3px; z-index: 2; box-shadow: inset 0 0 0 2px #ff5b4f; animation: threat 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes warpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.88); } }
@keyframes threat { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(255, 91, 79, .9), 0 0 0 0 rgba(255, 91, 79, .6); } 50% { box-shadow: inset 0 0 0 2px rgba(255, 91, 79, .4), 0 0 14px 4px rgba(255, 91, 79, .35); } }
@media (prefers-reduced-motion: reduce) { .stage .tile .twar, .stage .tile.threat::before { animation: none; } }

/* controles flutuantes */
.m-tabs { position: absolute; z-index: 20; top: 78px; left: 14px; display: flex; flex-direction: column; gap: 4px; }
.m-tabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--ink2); padding: 5px 8px; border-radius: 6px; cursor: pointer; text-shadow: var(--halo); font: 600 .85rem var(--sans); }
.m-tabs button .ic { width: 18px; height: 18px; color: var(--gold); filter: drop-shadow(0 0 2px #000); }
.m-tabs button:hover { color: #fff; background: rgba(6, 12, 22, .45); }
.m-tabs button.on { color: #fff; } .m-tabs button.on .ic { color: var(--rune); filter: drop-shadow(0 0 5px var(--rune)); }
.m-tabs button.locked { opacity: .6; }
.m-tabs .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 6px var(--good); }
.m-zoom { position: absolute; z-index: 20; right: 14px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.m-legend { position: absolute; z-index: 20; left: 14px; bottom: 18px; display: flex; align-items: flex-end; gap: 8px; max-width: min(560px, calc(100% - 90px)); }
.lg-body { color: #e8ecf3; text-shadow: var(--halo); display: grid; gap: 6px; }
.lg-body .maplegend { margin: 0; }
.lg-body p { margin: 0; color: var(--ink2); max-width: 52ch; }
.lg-fams { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; }
.lg-fams a { color: #e8ecf3; display: inline-flex; align-items: center; gap: 4px; } .lg-fams b { color: var(--gold2); }
.m-hint { position: absolute; z-index: 10; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; color: #dfe6ef; text-shadow: var(--halo); font-size: .9rem; white-space: nowrap; pointer-events: none; opacity: .85; }
.m-hover { position: absolute; z-index: 15; pointer-events: none; display: grid; justify-items: center; text-shadow: var(--halo); color: #fff; line-height: 1.15; }
.m-hover b { font-family: var(--serif); font-size: .95rem; } .m-hover span { font-size: .72rem; color: #cfd8e3; }
/* botão redondo translúcido (zoom, legenda e ações da região) */
.ab { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(232, 236, 243, .22); background: rgba(6, 12, 22, .42); backdrop-filter: blur(6px);
  color: #eef2f7; cursor: pointer; font: 700 1.1rem/1 var(--sans); position: relative; transition: border-color .15s, box-shadow .15s; }
.ab .ic { width: 18px; height: 18px; }
.ab:hover:not(:disabled) { border-color: var(--rune); box-shadow: 0 0 12px rgba(94, 224, 210, .45); }
.ab.on { border-color: var(--rune); color: var(--rune); box-shadow: 0 0 12px rgba(94, 224, 210, .4); }
.ab.pri { border-color: rgba(240, 213, 154, .7); color: var(--gold2); }
.ab.danger { border-color: rgba(239, 116, 102, .6); color: #ff9a8f; }
.ab:disabled { opacity: .4; cursor: not-allowed; }

/* região selecionada, direto no mundo */
.anc-top, .anc-bot { position: absolute; z-index: 25; }
.anc-top { display: grid; justify-items: center; text-align: center; pointer-events: none; color: #fff; text-shadow: var(--halo); }
.anc-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: .03em; white-space: nowrap; }
.anc-sub { font-size: .75rem; color: #d3dbe6; white-space: nowrap; }
.anc-bot { display: grid; justify-items: center; gap: 8px; max-width: min(460px, calc(100% - 16px)); }
.anc-stats { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px 12px; padding: 4px 12px; color: #eef2f7; font-size: .85rem; text-shadow: var(--halo);
  background: linear-gradient(90deg, transparent, rgba(6, 12, 22, .55) 15%, rgba(6, 12, 22, .55) 85%, transparent); border-top: 1px solid rgba(212, 176, 108, .35); border-bottom: 1px solid rgba(212, 176, 108, .35); }
.anc-stats > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.anc-stats .ic { width: 15px; height: 15px; color: var(--gold); }
.anc-stats em { font-style: normal; font-size: .7rem; color: #b8c3d2; }
.anc-stats .warn b { color: var(--warn); } .anc-stats .bad b, .anc-stats .bad { color: #ff8f84; }
.anc-own { font-weight: 700; } .anc-own .ban { width: 15px; height: 18px; }
.anc-b { gap: 2px !important; } .anc-b .bi .ic { width: 15px; height: 15px; color: #dfe6ef; }
.anc-timer .timer .tbar { width: 60px; }
.anc-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.anc-fly { width: min(440px, calc(100vw - var(--rail) - 24px)); max-height: min(52vh, 460px); overflow: auto; padding: 12px 14px; border-radius: 10px; color: #e8ecf3;
  background: rgba(6, 12, 22, .68); backdrop-filter: blur(12px); border: 1px solid rgba(94, 224, 210, .25); box-shadow: 0 18px 40px rgba(0,0,0,.45); animation: flyin .16s ease-out; touch-action: auto; user-select: text; cursor: auto; }
@keyframes flyin { from { transform: translateY(-6px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .anc-fly { animation: none; } }
.anc-fly p { margin: 4px 0 8px; }
.anc-fly .specs { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.anc-fly .spec { background: rgba(255,255,255,.04); }
.anc-fly .neg { font-size: .9rem; }
.ilist { list-style: none; margin: 0 0 8px; padding: 0; }
.ilist li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid rgba(232, 236, 243, .1); }
.ilist b { color: var(--gold2); }
/* mapa bloqueado: texto direto sobre o vazio */
.stage.is-locked { display: grid; place-items: center; cursor: default; }
.m-locked { position: relative; z-index: 5; max-width: 560px; padding: 24px; text-align: center; color: #e8ecf3; text-shadow: var(--halo); }
.m-locked .lm-ico .ic { width: 64px; height: 64px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(212, 176, 108, .4)); }
.m-locked h2 { font-size: 1.8rem; }

/* celular: ícones embaixo, cabeçalho compacto em cima */
@media (max-width: 760px) {
  :root { --rail: 0px; --hud-h: 92px; }
  .rail { top: auto; right: 0; width: auto; height: 58px; flex-direction: row; padding: 0 6px calc(env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid rgba(94, 224, 210, .14); }
  .rail-crest, .rail-foot { display: none; }
  .rail-nav { flex-direction: row; overflow-x: auto; gap: 2px; }
  .rail-nav button { flex: none; }
  .rail [data-tip]:hover::after { display: none; }
  .hud2 { top: 6px; left: 6px; right: 6px; grid-template-columns: 1fr auto; grid-template-areas: "title acts" "res res"; gap: 4px 8px; padding: 6px 10px; }
  .h-title { grid-area: title; justify-items: start; text-align: left; } .h-acts { grid-area: acts; } .hud2 .res { grid-area: res; flex-wrap: nowrap; overflow-x: auto; }
  .h-title > b { font-size: 1.1rem; } .h-bar { width: 100px; }
  .view2 { padding: calc(var(--hud-h) + 18px) 12px 80px; }
  .stage { inset: 0 0 58px 0; }
  .m-tabs { top: 100px; left: 6px; } .m-tabs button span { display: none; }
  .m-zoom { right: 8px; bottom: 12px; } .m-legend { left: 8px; bottom: 12px; }
  .m-hint { display: none; }
  .anc-name { font-size: 1.05rem; }
  .adm-banner { top: 100px; left: 6px; right: 6px; }
}

/* v1.15 — ícones de linha na economia, datas e períodos do dia */
.trend { display: inline-flex; vertical-align: -0.15em; } .trend .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.gi.cap .ic { color: var(--gold); width: 1em; height: 1em; }
.alert-line { display: flex; align-items: center; gap: 6px; }
.alert-line .gi .ic { width: 18px; height: 18px; }
.routes .ic { width: 14px; height: 14px; vertical-align: -0.15em; color: var(--ink3); }
.per { display: inline-flex; align-items: center; gap: 3px; font-family: var(--sans); font-size: .78rem; letter-spacing: 0; vertical-align: .15em; color: var(--ink2); }
.per .ic { width: 14px; height: 14px; }
.per-manha .ic { color: #f2d27a; } .per-tarde .ic { color: #f0a85a; } .per-noite .ic { color: #9fb8ff; } .per-madrugada .ic { color: #7f8fc9; }
.h-title > b[data-today] { font-size: 1.15rem; }
.log li .y { font-family: var(--sans); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.log li { grid-template-columns: 86px 1fr; }
/* o mapa acompanha a luz do dia (relógio real): o terreno escurece, as cidades acendem */
.stage .tile .tsvg { transition: filter 1.2s ease; }
.stage.per-tarde .tile .tsvg { filter: sepia(.2) saturate(1.1) brightness(.97); }
.stage.per-noite .tile .tsvg { filter: brightness(.55) saturate(.7) hue-rotate(-10deg); }
.stage.per-madrugada .tile .tsvg { filter: brightness(.4) saturate(.55) hue-rotate(-14deg); }
.stage.per-noite .tile .tint, .stage.per-madrugada .tile .tint { opacity: .22; }
.stage.per-noite .tile .ttown, .stage.per-madrugada .tile .ttown { filter: drop-shadow(0 0 3px rgba(255, 205, 100, .95)) drop-shadow(0 0 9px rgba(255, 170, 60, .7)); }
.stage.per-noite .tile .tcap, .stage.per-madrugada .tile .tcap { filter: drop-shadow(0 0 5px rgba(255, 210, 110, .9)); }
.stage.per-noite .mapov .river, .stage.per-madrugada .mapov .river { opacity: .55; }

/* ===== v1.16 · evolução das cidades e produção de hoje ===== */
.lvlbar { display: inline-block; position: relative; width: 46px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; vertical-align: middle; }
.lvlbar > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--rune), #9ff3ea); border-radius: 3px; transition: width .6s; }
.anc-lvl b { color: #9ff3ea; }
.anc-stats .anc-lvl .ic { color: var(--rune); }
.anc-day { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px 10px; padding: 2px 12px 4px; font-size: .8rem; color: #eef2f7; text-shadow: var(--halo); }
.anc-day > span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.anc-day .gi .ic, .anc-day .ic { width: 14px; height: 14px; }
.anc-day .muted { color: #b8c3d2; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.anc-dfrac em { font-style: normal; font-size: .7rem; color: #b8c3d2; }
.city-sec { padding: 10px 0; border-bottom: 1px solid var(--line); }
.city-sec:first-child { padding-top: 0; }
.city-sec .sec-h { font-family: var(--serif); letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; color: var(--gold); }
.evo-parts { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink2); }
.evo-parts span { display: inline-flex; align-items: center; gap: 4px; }
.evo-parts .ic { width: 14px; height: 14px; color: var(--rune); }
.daytbl { width: 100%; margin-top: 6px; font-size: .85rem; }
.daytbl td, .daytbl th { padding: 3px 6px; }
.daytbl th { font-weight: 500; color: var(--ink2); font-size: .72rem; }
.dfrac { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.dfrac .bar { flex: 1; }
.dfrac em { font-style: normal; font-size: .75rem; color: var(--ink2); white-space: nowrap; }
.periods { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.periods span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; border: 1px solid var(--line); color: var(--ink2); }
.periods span .ic { width: 12px; height: 12px; }
.periods .done { color: var(--good); border-color: rgba(63,174,122,.35); }
.periods .now { color: #071016; background: var(--rune); border-color: var(--rune); font-weight: 600; }
.citytbl th a { color: inherit; cursor: pointer; } .citytbl th a.on { color: var(--rune); }
.citytbl td .bar { width: 70px; margin: 3px 0 0 auto; }
.citytbl tr.tot td { border-top: 1px solid var(--line); }
.today-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.today-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.today-grid b { font-size: 1.05rem; }
.today-grid .gi .ic { width: 16px; height: 16px; }

/* ===== v1.17 · recursos ao vivo, painel do recurso, entregas e feira ===== */
.res > span.rl { cursor: pointer; position: relative; transition: border-color .2s, background .2s; }
.res > span.rl:hover, .res > span.rl.on { border-color: var(--rune2); background: rgba(94, 224, 210, .08); }
.res > span .gi .ic { color: inherit; }
.res > span em.up { color: var(--good); } .res > span em.bad { color: var(--bad); }
.res > span.bump b { animation: resbump .7s ease-out; }
@keyframes resbump { 0% { color: var(--good); text-shadow: 0 0 10px rgba(111, 211, 154, .8); } 100% { color: inherit; text-shadow: none; } }
.res-plus { position: absolute; right: 6px; top: -4px; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--good); pointer-events: none; animation: resplus 1.3s ease-out forwards; }
@keyframes resplus { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-14px); } }
.respop { position: absolute; top: calc(100% + 8px); left: 8px; z-index: 60; width: min(320px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 12px;
  background: rgba(13, 22, 38, .96); border: 1px solid var(--line2); box-shadow: 0 14px 40px rgba(0,0,0,.5); color: var(--ink); backdrop-filter: blur(8px); }
:root[data-theme="light"] .respop { background: var(--panel); }
.rp-h { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; } .rp-h .ic { width: 18px; height: 18px; color: var(--gold); } .rp-h .gi .ic { color: inherit; }
.ab.sm { width: 28px; height: 28px; font-size: .8rem; }
.rp-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.rp-kv > div { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.rp-kv b { font-size: .98rem; font-variant-numeric: tabular-nums; } .rp-kv span { font-size: .68rem; color: var(--ink2); line-height: 1.2; }
.rp-chart { width: 100%; height: auto; display: block; }
.rp-chart .ax { stroke: var(--line2); stroke-width: 1; }
.rp-chart .ln { fill: none; stroke: var(--rune); stroke-width: 2; stroke-linejoin: round; }
.rp-chart .area { fill: rgba(94, 224, 210, .12); }
.rp-chart .dot { fill: var(--rune); stroke: #071016; stroke-width: 1.5; }
.rp-chart text { font-size: 9px; fill: var(--ink3); font-family: var(--sans); } .rp-chart text.hi { fill: var(--ink2); }
.rp-sub { margin: 8px 0 4px; color: var(--ink2); }
.rp-list { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.rp-list li { display: flex; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px solid var(--line); } .rp-list li b { margin-left: auto; color: var(--good); }
.fairtag { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; padding: 0 6px; border-radius: 999px; background: rgba(212, 176, 108, .18); color: var(--gold2); }
.fairtag .ic { width: 11px; height: 11px; }
.tfair { position: absolute; left: 3px; bottom: 3px; width: 34%; height: 34%; display: grid; place-items: center; border-radius: 50%; background: rgba(240, 213, 154, .95); color: #6b3d0a; box-shadow: 0 0 10px rgba(240, 213, 154, .8); animation: fairglow 2s ease-in-out infinite; }
.tfair .ic { width: 70%; height: 70%; }
@keyframes fairglow { 50% { box-shadow: 0 0 2px rgba(240, 213, 154, .4); } }
.fx-pop { position: absolute; z-index: 5; transform: translate(-50%, 0); pointer-events: none; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center;
  padding: 2px 8px; border-radius: 999px; background: rgba(7, 12, 23, .78); border: 1px solid rgba(212, 176, 108, .6); color: #f6e7c3; font: 700 13px/1.4 var(--sans); text-shadow: 0 1px 2px #000;
  opacity: 0; animation: fxpop 3s ease-out forwards; }
.fx-pop .ic { width: 14px; height: 14px; color: var(--gold2); } .fx-pop .gi .ic { color: inherit; }
@keyframes fxpop { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -6px) scale(1); } 75% { opacity: 1; transform: translate(-50%, -26px); } 100% { opacity: 0; transform: translate(-50%, -38px); } }
@media (prefers-reduced-motion: reduce) { .fx-pop { animation-duration: 3s; animation-name: fxfade; } .tfair, .res > span.bump b, .res-plus { animation: none; } }
@keyframes fxfade { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }
@media (max-width: 760px) { .res > span em { display: none; } .respop { left: 0; } }
.tile .tfair svg { width: 72%; height: 72%; color: #6b3d0a; stroke: currentColor; }
.res { gap: 3px; }
.res > span { gap: 4px; padding: 3px 7px 3px 6px; }
.res > span em { font-size: .68rem; margin-left: 1px; }
@media (max-width: 1500px) { .res > span:not(.rl) b { font-size: .9rem; } .res > span .ic { width: 15px; height: 15px; } }
@media (max-width: 760px) { .res > span.r-map, .res > span.r-swords { display: none; } }

/* ===== v1.18 · Mercado Negro ===== */
.bm-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 14px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(155, 63, 115, .28), transparent 60%), linear-gradient(160deg, #120d1c, #0b0f1a); border: 1px solid #3a2747; }
.bm-hero h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; } .bm-hero h1 .ic { width: 30px; height: 30px; color: #d58ab4; }
.bm-hero p { margin: 0; max-width: 62ch; }
.bm-army { display: flex; gap: 8px; }
.bm-army > div { display: flex; flex-direction: column; align-items: center; padding: 8px 14px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid #3a2747; min-width: 92px; }
.bm-army b { font-size: 1.3rem; font-variant-numeric: tabular-nums; } .bm-army span { font-size: .72rem; color: var(--ink2); text-align: center; } .bm-m { color: #e3a3c7; }
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bm-card { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 12px; background: linear-gradient(180deg, #15111f, #0f1420); border: 1px solid #33283f; }
.bm-card.k-veteranos { border-color: #6b5a2c; } .bm-card.k-degoladores { border-color: #5a2a2a; }
.bm-top { display: flex; gap: 10px; align-items: center; } .bm-top > div { display: flex; flex-direction: column; }
.bm-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(155, 63, 115, .2); color: #e3a3c7; } .bm-ic .ic { width: 20px; height: 20px; }
.k-veteranos .bm-ic { background: rgba(212, 176, 108, .18); color: var(--gold2); } .k-degoladores .bm-ic { background: rgba(239, 116, 102, .16); color: var(--bad); }
.bm-card p { flex: 1; margin: 10px 0; }
.bm-kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 12px; }
.bm-kv > div { display: flex; flex-direction: column; padding: 5px 6px; border-radius: 8px; background: rgba(255,255,255,.04); }
.bm-kv b { font-size: .95rem; } .bm-kv span { font-size: .66rem; color: var(--ink2); line-height: 1.2; }
.bm-buy { width: 100%; justify-content: center; }
.bm-bands { list-style: none; margin: 0; padding: 0; } .bm-band { padding: 10px 0; border-bottom: 1px solid var(--line); } .bm-band:last-child { border-bottom: 0; }
.bm-band .timer .tbar { width: 120px; }
.bm-rules { margin: 0; padding-left: 18px; } .bm-rules li { margin: 4px 0; }
:root[data-theme="light"] .bm-hero, :root[data-theme="light"] .bm-card { background: var(--panel); border-color: var(--line2); }
@media (max-width: 760px) { .bm-hero { grid-template-columns: 1fr; } .bm-army > div { min-width: 0; flex: 1; } .bm-kv { grid-template-columns: repeat(2, 1fr); } }
.tr-hero { background: radial-gradient(120% 140% at 0% 0%, rgba(94, 224, 210, .14), transparent 60%), linear-gradient(160deg, #0f1828, #0b0f1a); border-color: var(--line2); }
.tr-hero h1 .ic { color: var(--gold); }
.bm-r { color: var(--rune); }
.bm-sub { padding: 14px 18px; display: block; } .bm-sub h2 { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; } .bm-sub h2 .ic { width: 22px; height: 22px; color: #d58ab4; }
.reg-card .row .btn { flex: 1 1 180px; justify-content: center; }

/* ===== v1.19 · editor de aparência ===== */
.modal.lk-modal { width: min(880px, calc(100vw - 24px)); max-width: none; }
.lk { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; margin-top: 12px; }
.lk-prev { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: sticky; top: 0; }
.lk-prev .ptr { border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.lk-prev p { margin: 0; }
.lk-rows { max-height: min(60vh, 560px); overflow: auto; padding-right: 6px; }
.lk-row { padding: 8px 0 10px; border-bottom: 1px solid var(--line); } .lk-row:last-child { border-bottom: 0; }
.lk-row > b { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.lk-row p { margin: 6px 0 0; }
.lk-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-sw { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); cursor: pointer; padding: 0; transition: transform .12s; }
.lk-sw:hover { transform: scale(1.08); } .lk-sw.on { border-color: var(--rune); box-shadow: 0 0 0 3px rgba(94, 224, 210, .35); }
.lk-sw.fam { position: relative; } .lk-sw.fam::after { content: '★'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; text-shadow: 0 1px 2px #000; }
.lk-op { padding: 3px; border-radius: 10px; border: 2px solid transparent; background: rgba(255,255,255,.04); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lk-op .ptr { display: block; border-radius: 8px; } .lk-op:hover { border-color: var(--line2); } .lk-op.on { border-color: var(--rune); background: rgba(94, 224, 210, .1); }
.lk-cl span { font-size: .68rem; color: var(--ink2); }
@media (max-width: 640px) { .lk { grid-template-columns: 1fr; } .lk-prev { position: static; flex-direction: row; text-align: left; } .lk-prev .ptr { width: 96px; height: auto; } .lk-rows { max-height: 46vh; } }

/* ===== v1.20 · mapa em camadas: paisagem contínua, transições, volume, névoa e efeitos ===== */
.stage .map { gap: 0; padding: 0; border-radius: 10px; background: #2b6383; position: relative; overflow: visible;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .65), 0 0 0 1px rgba(212, 176, 108, .18), 0 0 0 6px rgba(7, 12, 23, .55); }
.stage .ml { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.stage .ml-ground { z-index: 1; border-radius: 10px; }
.stage .ml-rivers { z-index: 2; }
.stage .ml-props { z-index: 3; }
.stage .ml-borders { z-index: 4; }
.stage .ml-routes { z-index: 5; }
.stage .ml-tint { z-index: 6; position: absolute; inset: 0; pointer-events: none; border-radius: 10px; background: rgba(255, 186, 110, .07); mix-blend-mode: soft-light; transition: background 1.2s; }
.stage .ml-marks { z-index: 7; position: absolute; inset: 0; pointer-events: none; }
.stage .ml-fog { z-index: 8; }
.stage .ml-vig { z-index: 9; position: absolute; inset: 0; pointer-events: none; border-radius: 10px; background: radial-gradient(ellipse at 50% 45%, transparent 58%, rgba(12, 8, 4, .32) 100%); }
/* botões transparentes por cima: a grade só aparece ao passar o mouse ou ao selecionar */
.stage .tile { position: relative; z-index: 10; background: transparent; border-radius: 0; overflow: visible; transition: background .15s, box-shadow .15s; }
.stage .tile.owned::after { display: none; }
.stage .tile:hover { filter: none; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.stage .map.show-grid .tile { box-shadow: inset 0 0 0 .5px rgba(10, 14, 22, .35); }
.stage .map.show-grid .tile:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.stage .tile.sel { z-index: 11; outline: 2px solid var(--rune); outline-offset: -1px; background: rgba(94, 224, 210, .1); box-shadow: 0 0 0 2px rgba(94, 224, 210, .3), 0 0 26px 6px rgba(94, 224, 210, .45); border-radius: 2px; }
.stage .tile.threat::before { border-radius: 0; }
/* chão e transições */
.ml-ground .foam path { fill: none; stroke: #f3fbff; stroke-width: 1.1; stroke-linecap: round; opacity: .8; stroke-dasharray: 11 2 5 3 2 4; }
.ml-ground .foam path.f2 { stroke-width: .7; opacity: .3; stroke-dasharray: 2 6 7 4; }
.map.anim .ml-ground .foam path { animation: foam 4s linear infinite; } .map.anim .ml-ground .foam path.f2 { animation-duration: 6s; animation-direction: reverse; }
@keyframes foam { to { stroke-dashoffset: -16; } }
.map.anim .ml-ground .rip { animation: rip 6s ease-in-out infinite; }
@keyframes rip { 0%, 100% { opacity: .2; transform: translateX(-1.5px); } 50% { opacity: 1; transform: translateX(1.5px); } }
.map.anim .ml-ground .ember { animation: ember 2.4s ease-in-out infinite; }
@keyframes ember { 50% { opacity: .25; } }
/* rios contínuos */
.mapov .river-bank { fill: none; stroke: #4a6a3e; stroke-width: 6.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .45; }
.stage .mapov .river { stroke: #5aa7d3; stroke-width: 3.6; opacity: 1; }
.mapov .river-shine { fill: none; stroke: #d6f0fb; stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; opacity: .75; }
.map.anim .mapov .river-shine { animation: rivflow 2.4s linear infinite; }
@keyframes rivflow { to { stroke-dashoffset: -18; } }
/* objetos */
.map.anim .ml-props .flake { animation: flake 8s linear infinite; }
@keyframes flake { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .95; } 90% { opacity: .9; } 100% { transform: translate(4px, 34px); opacity: 0; } }
.map.anim .ml-props .smoke { animation: smoke 5s ease-in-out infinite; }
@keyframes smoke { 0% { transform: translateY(2px); opacity: .5; } 50% { opacity: 1; } 100% { transform: translateY(-5px); opacity: .2; } }
.map.anim .ml-props .glow-c { animation: glowc 3s ease-in-out infinite; }
@keyframes glowc { 50% { opacity: .65; } }
/* fronteiras das casas */
.ml-borders .bd-under path { fill: none; stroke: #0b0f18; stroke-width: 4.6; stroke-linecap: square; opacity: .45; }
.ml-borders .bd-line path { fill: none; stroke-width: 2.3; stroke-linecap: square; }
/* rotas e marchas: brilho interno e setas andando */
.stage .mapov .route-glow { fill: none; stroke: #f4d27a; stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .16; }
.stage .mapov .route { stroke-width: 2.6; filter: drop-shadow(0 0 2px rgba(244, 210, 122, .6)); }
.mapov .chev { fill: #fff3c4; stroke: #6b4a07; stroke-width: .35; } .mapov .chev.sea { fill: #ffffff; stroke: #2b6383; }
.mapov .march { fill: none; stroke-width: 2.8; stroke-dasharray: 7 5; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: routeflow 1.1s linear infinite; }
.mapov .march-glow { fill: none; stroke-width: 10; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .22; }
.mapov .mine { stroke: #5ee0d2; } .mapov .exp { stroke: #f0d59a; } .mapov .enemy { stroke: #ff5b4f; }
.mapov .chev.mine { fill: #5ee0d2; stroke: #063b37; } .mapov .chev.exp { fill: #f0d59a; stroke: #5a3d07; } .mapov .chev.enemy { fill: #ff5b4f; stroke: #4a0d08; }
/* marcadores com contorno de contraste */
.mk { position: absolute; }
.mk > span { position: absolute; line-height: 0; }
.mk span svg { width: 100%; height: auto; display: block; }
.mk .tflag { top: 4%; left: 5%; width: 100%; } .mk .tflag .ban { width: 32%; aspect-ratio: 5 / 6; height: auto; margin: 0; filter: drop-shadow(0 0 .7px #fff) drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, .8)); }
.mk .tcap { top: 3%; right: 4%; width: 30%; }
.mk .tnat { top: 5%; right: 6%; width: 27%; }
.mk .twar { bottom: 4%; left: 4%; width: 30%; animation: warpulse 1.6s ease-in-out infinite; }
.mk .ttown { bottom: 3%; right: 3%; width: 46%; } .mk .ttown.t0 { width: 30%; } .mk .ttown.t1 { width: 38%; } .mk .ttown.t4 { width: 56%; }
.mk .tship { top: 50%; left: 50%; width: 52%; transform: translate(-50%, -50%); }
.mk .tfair { left: 5%; bottom: 5%; width: 28%; height: auto; display: block; border-radius: 0; background: none; box-shadow: none; animation: fairbob 2.4s ease-in-out infinite; }
@keyframes fairbob { 50% { transform: translateY(-2px); } }
.mk .tcap, .mk .tnat, .mk .ttown, .mk .tship, .mk .tfair, .mk .twar { filter: drop-shadow(0 0 .6px #fff) drop-shadow(0 0 .6px #fff) drop-shadow(0 1.5px 1.6px rgba(0, 0, 0, .85)); }
.mk.fogged { opacity: .45; }
/* luz do dia: tinta sobre a paisagem (leve; sem filtros pesados) */
.stage.per-tarde .ml-tint { background: rgba(255, 150, 60, .2); }
.stage.per-noite .ml-tint { background: rgba(22, 30, 74, .55); mix-blend-mode: multiply; }
.stage.per-madrugada .ml-tint { background: rgba(12, 18, 52, .66); mix-blend-mode: multiply; }
.stage.per-noite .mk .ttown, .stage.per-madrugada .mk .ttown { filter: drop-shadow(0 0 3px rgba(255, 205, 100, .95)) drop-shadow(0 0 9px rgba(255, 170, 60, .7)); }
.stage.per-noite .mk .tcap, .stage.per-madrugada .mk .tcap { filter: drop-shadow(0 0 5px rgba(255, 210, 110, .9)); }
/* névoa */
.map.anim .ml-fog .puff { animation: puff 26s ease-in-out infinite alternate; }
@keyframes puff { 0% { transform: translate(-3px, 0); } 100% { transform: translate(4px, -2px); } }
@media (prefers-reduced-motion: reduce) { .ml-ground .foam path, .mapov .march, .mk .tfair, .mk .twar, .ml-fog .puff { animation: none !important; } }
.stage .ml-ground { overflow: hidden; }
.stage .mapov .river.lava { stroke: #ff5a1f; stroke-width: 3.8; filter: drop-shadow(0 0 3px rgba(255, 120, 40, .9)); }
.lg-body { background: rgba(7, 12, 23, .82); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
:root[data-theme="light"] .lg-body { background: rgba(246, 248, 251, .92); color: var(--ink); text-shadow: none; }

/* ===== v1.21 · casamentos, noivados e herdeiros ===== */
.heir-line { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.heir-line .ic { width: 14px; height: 14px; color: var(--gold); vertical-align: -2px; }
.dyn-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.modal h3.mh { margin: 16px 0 8px; font-size: .95rem; }
.mo-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(212, 176, 108, .08); border: 1px solid rgba(212, 176, 108, .35); margin-bottom: 8px; }
.mo-pair { display: flex; align-items: center; gap: 2px; } .mo-pair .ic { width: 14px; height: 14px; color: #e98aa6; }
.mc-list { display: grid; gap: 8px; margin-top: 10px; max-height: min(46vh, 420px); overflow: auto; padding-right: 4px; }
.mc-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.mc-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.betro-list { list-style: none; margin: 0; padding: 0; } .betro-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.betro-list .ic { width: 14px; height: 14px; color: #e98aa6; }
@media (max-width: 640px) { .mo-card, .mc-card { grid-template-columns: auto minmax(0, 1fr); } .mo-card .row, .mc-card > .btn { grid-column: 1 / -1; } }

/* ===== v1.22 · riqueza pessoal, loja e versão sempre visível ===== */
.rail-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rail-ver { font-size: .62rem; color: var(--ink3); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.wbox { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(212, 176, 108, .06); border: 1px solid rgba(212, 176, 108, .28); }
.wbox h3 { display: flex; align-items: center; gap: 6px; font-size: 1rem; } .wbox h3 .ic { color: var(--gold); width: 18px; height: 18px; }
.wlog { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; } .wlog li { padding: 2px 0; border-bottom: 1px dashed var(--line); }
.wl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .wl-list li { padding: 6px 0; border-bottom: 1px solid var(--line); } .wl-list .ic { width: 15px; height: 15px; color: var(--gold); vertical-align: -2px; }
.lk-op.prem, .lk-sw.prem { position: relative; }
.lk-price, .lk-own { position: absolute; top: -6px; right: -6px; font-style: normal; font-size: .62rem; font-weight: 700; padding: 1px 5px; border-radius: 999px; line-height: 1.4; display: inline-flex; align-items: center; gap: 2px; pointer-events: none; }
.lk-price { background: #2a1f0b; color: var(--gold2); border: 1px solid #6b5520; } .lk-price .ic { width: 10px; height: 10px; }
.lk-own { background: #0d2b22; color: var(--good); border: 1px solid #2b6b52; }
.lk-sw.prem { box-shadow: 0 0 0 2px rgba(212, 176, 108, .5); }
.lk-bill { margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); } .lk-bill .ic { width: 14px; height: 14px; color: var(--gold); vertical-align: -2px; }
.bm-pay { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } .bm-pay select { flex: 1; min-width: 0; }
