/* As Areias da Profecia — tinta de tatuagem sobre papel couché */
:root {
  --k: #141210; --c: #F4EEDD; --c2: #E9DCC0; --r: #B83518; --g: #C69A45; --gray: #8C877D; --night: #1d1a17;
  --ff-t: 'New Rocker', 'Georgia', serif; --ff: 'IM Fell English', 'Georgia', serif;
  --line: 3px solid var(--k); --sh: 5px 5px 0 var(--k); --rad: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--night); color: var(--c); font-family: var(--ff); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .mt { font-family: var(--ff-t); font-weight: 400; line-height: 1.22; margin: 0 0 .5em; text-wrap: balance; letter-spacing: .01em; }
p, li { text-wrap: pretty; }
p { margin: 0 0 .6em; }
b { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button {
  cursor: pointer; background: var(--c); color: var(--k); border: var(--line); border-radius: 8px; padding: .5em 1.05em;
  font-family: var(--ff-t); font-size: 1rem; line-height: 1.2; box-shadow: 3px 3px 0 var(--k); transition: transform .12s, box-shadow .12s, background .12s;
}
button:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--k); }
button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--k); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--g); outline-offset: 3px; }
button.primary { background: var(--r); color: var(--c); }
button.ghost { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
button.big { font-size: 1.2rem; padding: .7em 1.6em; }
button.wide { width: 100%; }
.ti { vertical-align: -2px; }
.muted { color: var(--gray); }
.err { color: var(--r); font-weight: 700; min-height: 0; }
.err:empty { display: none; }
.row { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.col { display: flex; flex-direction: column; gap: .7rem; }
.loading { text-align: center; padding: 30vh 1rem; font-family: var(--ff-t); font-size: 1.6rem; }
.small-screen { display: none; }
@media (max-width: 999px) {
  .small-screen { display: grid; place-items: center; position: fixed; inset: 0; z-index: 999; background: var(--night); padding: 2rem; text-align: center; font-size: 1.15rem; }
}

/* ---------- abertura ---------- */
.story { position: fixed; inset: 0; display: grid; place-items: center; cursor: pointer; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #2a241e 0%, var(--night) 70%); user-select: none; }
.story::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: radial-gradient(var(--c) 1px, transparent 1.3px); background-size: 7px 7px; }
.skip { position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2; background: transparent; color: var(--c); border-color: var(--c); box-shadow: none; font-size: .9rem; }
.stage { width: min(980px, 92vw); position: relative; }
.scene { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2rem; }
.scene .art { width: min(620px, 80vw); animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.scene .art svg { width: 100%; height: auto; display: block; filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, .55)); }
.scene .line { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.22; color: var(--c); margin: 0; max-width: 20ch; }
.scene .line span { display: inline-block; opacity: 0; animation: word .7s ease-out both; }
.scene .sub { font-size: 1.25rem; color: #cfc6b2; max-width: 46ch; opacity: 0; animation: fade 1s ease-out both; font-style: italic; }
.scene.title .sub { opacity: 1; animation: none; }
.scene.title .logo { width: min(720px, 88vw); animation: rise 1.2s both; }
.dots { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; gap: .55rem; }
.dots span { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--c); opacity: .45; transition: all .3s; }
.dots span.on { background: var(--r); border-color: var(--r); opacity: 1; transform: scale(1.3); }
.cont { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font-size: .85rem; color: var(--gray); letter-spacing: .05em; }
.houses6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; padding: 1rem 0; }
.h6 { display: flex; flex-direction: column; align-items: center; gap: .4rem; font-family: var(--ff-t); }
.h6 .portrait { width: 100%; background: var(--fc); border: var(--line); border-radius: 50% 50% 12px 12px; box-shadow: 4px 4px 0 #000; }
.h6:nth-child(even) { transform: translateY(14px); }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes word { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { to { opacity: 1; } }

.titlesvg { width: 100%; height: auto; display: block; overflow: visible; }
.titlesvg .tl { font-family: var(--ff-t); font-size: 46px; fill: var(--k); }
.titlesvg .tls { font-family: var(--ff); font-size: 17px; letter-spacing: .32em; fill: var(--c); }

/* ---------- menu ---------- */
.menu { min-height: 100vh; display: grid; place-items: center; padding: 2rem;
  background: radial-gradient(ellipse at 50% 30%, #2a241e, var(--night) 70%); }
.menu-in { width: min(640px, 92vw); text-align: center; }
.menu-b { width: min(320px, 100%); margin: 2rem auto 1.4rem; }
.menu .foot { font-size: .85rem; }

/* ---------- preparação ---------- */
.setup { max-width: 1400px; margin: 0 auto; padding: 2rem 2rem 7rem; }
.setup header { margin-bottom: 1.6rem; max-width: 70ch; }
.setup header h1 { font-size: 2.6rem; margin-top: .8rem; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.fcard { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; background: var(--c); color: var(--k); border: var(--line); border-radius: var(--rad); padding: 1rem; box-shadow: var(--sh); transition: opacity .2s, transform .2s; }
.fcard.off { opacity: .55; filter: grayscale(.6); }
.fcard.human { box-shadow: 6px 6px 0 var(--r); }
.fart .portrait { width: 100%; background: var(--fc); border: var(--line); border-radius: 50% 50% 10px 10px; display: block; }
.fbody h2 { font-size: 1.35rem; line-height: 1.25; margin-bottom: .2rem; }
.fbody .lead { font-size: .85rem; color: #5b554c; margin-bottom: .5rem; }
.fbody .lore { font-size: .95rem; font-style: italic; }
.fbody .power { font-size: .92rem; border-left: 3px solid var(--fc); padding-left: .6rem; }
.seg { display: inline-flex; border: var(--line); border-radius: 8px; overflow: hidden; margin-top: .3rem; }
.seg button { border: 0; border-radius: 0; box-shadow: none; padding: .35em .9em; font-size: .92rem; background: var(--c); }
.seg button + button { border-left: var(--line); }
.seg button.on { background: var(--k); color: var(--c); }
.seg button:hover { transform: none; box-shadow: none; }
.nm { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; font-size: .9rem; }
.nm input { flex: 1; min-width: 0; padding: .35em .6em; border: 2px solid var(--k); border-radius: 6px; background: #fff; color: var(--k); }
.setup footer { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 2rem; padding: 1rem 2rem; background: rgba(20, 18, 16, .94); border-top: 2px solid #3a342d; }
.setup footer p { margin: 0; }

/* ---------- jogo ---------- */
.game { display: grid; grid-template-columns: 1fr minmax(360px, 30vw); grid-template-rows: auto 1fr; height: 100vh; overflow: hidden; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.2rem; padding: .55rem 1.1rem; background: var(--k); border-bottom: 3px solid #000; }
.brand { font-family: var(--ff-t); font-size: 1.25rem; color: var(--g); white-space: nowrap; }
.round { font-family: var(--ff-t); white-space: nowrap; }
.round b { font-size: 1.4rem; color: var(--r); }
.round span { color: var(--gray); }
.phases { display: flex; gap: .2rem; list-style: none; padding: 0; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.phases li { font-size: .82rem; padding: .22em .6em; border-radius: 99px; border: 1.5px solid #3a342d; color: var(--gray); white-space: nowrap; }
.phases li span { font-family: var(--ff-t); margin-right: .3em; }
.phases li.done { color: #6d675e; border-color: transparent; text-decoration: line-through; text-decoration-color: #4a443c; }
.phases li.on { background: var(--r); border-color: var(--r); color: var(--c); }
.tb { display: flex; gap: .5rem; }
.tb button { color: var(--c); font-size: .9rem; padding: .35em .8em; white-space: nowrap; }
.board { position: relative; display: grid; place-items: center; overflow: hidden; padding: .8rem;
  background: radial-gradient(circle at 50% 50%, #2b251f 0%, var(--night) 72%); }
#mapwrap { width: 100%; height: 100%; display: grid; place-items: center; }
.mapsvg { max-width: 100%; max-height: calc(100vh - 80px); width: auto; height: 100%; filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, .5)); }
.mapsvg .rn { font-family: var(--ff-t); font-size: 13px; fill: var(--k); }
.mapsvg .lbl { font-family: var(--ff); }
.hitp { fill: transparent; stroke: none; cursor: default; transition: fill .15s; }
.mapsvg.picking .hitp { pointer-events: none; }
.mapsvg.picking .hitp.hl { pointer-events: all; cursor: pointer; fill: rgba(198, 154, 69, .28); stroke: var(--g); stroke-width: 3; stroke-dasharray: 7 4; animation: march 1s linear infinite; }
.mapsvg.picking .hitp.hl:hover { fill: rgba(198, 154, 69, .5); }
.hitp.sel { fill: rgba(184, 53, 24, .32); stroke: var(--r); stroke-width: 4; }
.mapsvg:not(.picking) .hitp:hover { fill: rgba(244, 238, 221, .12); }
@keyframes march { to { stroke-dashoffset: -22; } }
.cloud { animation: bob 3s ease-in-out infinite; transform-box: fill-box; }
@keyframes bob { 50% { translate: 0 -4px; } }
#wormhead { transform-box: fill-box; transform-origin: center; }
#wormhead.roar { animation: roar 1.4s cubic-bezier(.3, 1.6, .5, 1); }
#wormhead.roar .weye { fill: var(--r); }
@keyframes roar { 0% { scale: 1; } 25% { scale: 1.35; rotate: -6deg; } 50% { scale: 1.3; rotate: 6deg; } 100% { scale: 1; rotate: 0; } }
.weye { animation: blink 5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blink { 0%, 94%, 100% { scale: 1 1; } 97% { scale: 1 .1; } }

.side { display: flex; flex-direction: column; min-height: 0; background: #221e1a; border-left: 3px solid #000; }
.houses { display: flex; flex-direction: column; gap: .35rem; padding: .7rem; border-bottom: 2px solid #3a342d; }
.house { display: grid; grid-template-columns: 42px 1fr auto; gap: .6rem; align-items: center; text-align: left; padding: .3rem .55rem; background: var(--c); color: var(--k); border-width: 2px; box-shadow: 3px 3px 0 #000; font-family: var(--ff); border-left: 8px solid var(--fc); }
.hchip .portrait { width: 42px; height: 50px; display: block; background: var(--fc); border-radius: 50% 50% 6px 6px; border: 2px solid var(--k); }
.hmain { min-width: 0; line-height: 1.25; }
.hmain b { font-family: var(--ff-t); font-weight: 400; font-size: 1rem; }
.hmain em { font-size: .75rem; color: #6d675e; }
.hmain small { display: block; font-size: .78rem; color: #5b554c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hstats { display: grid; grid-template-columns: repeat(2, auto); gap: .05rem .7rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.hstats .ti { margin-right: .15em; color: var(--r); }
.action { padding: .9rem; border-bottom: 2px solid #3a342d; }
.action:empty { display: none; }
.action h3 { font-size: 1.2rem; line-height: 1.25; }
.otypes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: .6rem 0; }
.otypes button { font-size: .92rem; padding: .45em .6em; display: flex; gap: .4em; align-items: center; justify-content: center; }
.otypes button.on { background: var(--g); }
.hint { color: var(--g); font-style: italic; }
.pending { background: #2e2822; border: 2px solid var(--g); border-radius: 8px; padding: .7rem; margin: .5rem 0; }
.slider { display: flex; align-items: center; gap: .7rem; margin: .5rem 0; }
.slider input { flex: 1; accent-color: var(--r); }
.slider b { font-family: var(--ff-t); font-size: 1.4rem; min-width: 2ch; text-align: center; color: var(--r); }
.slider.big b { font-size: 2rem; }
.olist { padding-left: 1.3rem; margin: .7rem 0; font-size: .95rem; }
.olist li { margin-bottom: .3rem; }
.olist li span { margin-right: .4rem; }
.x { padding: 0 .45em; font-size: 1rem; box-shadow: none; border-width: 2px; line-height: 1.2; }
.logbox { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: .7rem .9rem; }
.logbox h3 { font-size: 1rem; color: var(--g); margin-bottom: .3rem; }
.log { overflow-y: auto; font-size: .88rem; color: #cfc6b2; padding-right: .3rem; }
.log p { margin: 0 0 .35rem; }
.log span { font-family: var(--ff-t); color: var(--r); margin-right: .25em; font-size: .8rem; }
.log::-webkit-scrollbar { width: 8px; } .log::-webkit-scrollbar-thumb { background: #4a443c; border-radius: 8px; }

/* ---------- tutorial ---------- */
#coachbg { position: fixed; inset: 0; z-index: 60; background: rgba(10, 9, 8, .6); }
.spot { position: relative; z-index: 65; border-radius: 10px; box-shadow: 0 0 0 4px var(--g), 0 0 0 9999px rgba(10, 9, 8, .62); }
#phases li.spot { border-radius: 99px; }
#coach { position: fixed; z-index: 80; width: min(430px, 92vw); max-height: 86vh; overflow-y: auto; background: var(--c); color: var(--k); border: 4px solid var(--k); border-radius: 14px; padding: 1.1rem 1.3rem; box-shadow: 7px 7px 0 var(--r); animation: pop .28s cubic-bezier(.2, .9, .3, 1.2); }
#coach .ck { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--r); margin: 0 0 .2rem; line-height: 1.3; }
#coach h3 { font-size: 1.45rem; line-height: 1.25; margin-bottom: .5rem; }
#coach .cbody { font-size: 1rem; }
#coach ul, .help ul { padding-left: 1.2rem; margin: .3rem 0 .6rem; }
#coach li, .help li { margin-bottom: .3rem; }
#coach .ti { color: var(--r); }
#coach .row { margin-top: .6rem; }
#coach .ghost { color: #6d675e; font-size: .9rem; }
.tip { background: #fff3d6; border-left: 4px solid var(--g); padding: .45rem .65rem; border-radius: 0 6px 6px 0; font-size: .95rem; }
#phases li { cursor: help; }
#phases li:hover { border-color: var(--g); color: var(--c); }
.tutb { background: var(--g); }

/* ---------- modais ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 1.5rem; background: rgba(10, 9, 8, .78); backdrop-filter: blur(2px); }
.overlay.on { display: grid; }
.modal { position: relative; width: min(620px, 94vw); max-height: 92vh; overflow-y: auto; background: var(--c); color: var(--k); border: 4px solid var(--k); border-radius: 14px; padding: 1.6rem 1.8rem; box-shadow: 8px 8px 0 #000; animation: pop .28s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { width: min(1120px, 96vw); }
.modal.plain { background: transparent; border: 0; box-shadow: none; color: var(--c); width: auto; max-width: 94vw; overflow: visible; }
.modal h2.mt { font-size: 1.9rem; border-bottom: 3px solid var(--k); padding-bottom: .35rem; }
.modal h2.mt[style*="--fc"] { border-bottom-color: var(--fc); }
.modal h3 { font-size: 1.15rem; margin-top: 1rem; line-height: 1.25; }
.modal .muted { color: #6d675e; }
.modal.plain .muted { color: #b8af9c; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.lore { font-style: italic; }
.power { background: #fff8e6; border-left: 4px solid var(--g); padding: .5rem .7rem; border-radius: 0 6px 6px 0; }
.rules ol { padding-left: 1.3rem; } .rules li { margin-bottom: .35rem; }
.sumlist { max-height: 52vh; overflow-y: auto; border: 2px dashed #b9ad92; border-radius: 8px; padding: .8rem 1rem; background: #fffaf0; }
.sumlist p { margin: 0 0 .4rem; padding-left: 1rem; position: relative; }
.sumlist p::before { content: '✦'; position: absolute; left: 0; color: var(--r); font-size: .8em; top: .15em; }
.dossier { margin-top: 1rem; border: 2px solid var(--k); border-radius: 8px; padding: .4rem .8rem; background: #efe5cd; font-size: .95rem; }
.dossier summary { cursor: pointer; font-family: var(--ff-t); padding: .2rem 0; }
.dossier ul { margin: 0; padding-left: 1.2rem; }
.vision { background: var(--k); color: var(--g); padding: .5rem .8rem; border-radius: 8px; }
.force { font-family: var(--ff-t); font-size: 1.3rem; text-align: right; margin-top: .8rem; }
.force b { color: var(--r); font-size: 1.8rem; }

.roundcard, .passcard, .victory { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1rem 2rem; }
.rlabel { font-family: var(--ff); letter-spacing: .3em; text-transform: uppercase; font-size: .95rem; color: var(--g); margin: 0; line-height: 1.3; }
.rnum { font-family: var(--ff-t); font-size: clamp(5rem, 12vw, 9rem); line-height: 1.1; color: var(--c); margin: 0; text-shadow: 6px 6px 0 var(--r); }
.rquote { font-style: italic; font-size: 1.35rem; max-width: 36ch; color: #e6dcc6; margin: .5rem 0 1.4rem; }
.passart .portrait, .vport .portrait { width: 160px; display: block; background: var(--fc); border: 4px solid var(--k); border-radius: 50% 50% 14px 14px; box-shadow: 6px 6px 0 #000; }
.passart { margin-bottom: 1rem; }
.pname { font-family: var(--ff-t); font-size: 3rem; line-height: 1.2; margin: 0; }
.passcard .muted { margin-bottom: 1.2rem; }
.victory { gap: .5rem; }
.victory > .vport { display: inline-block; margin: 0 .5rem 1rem; animation: rise 1s both; }
.vname { font-family: var(--ff-t); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.2; margin: 0; color: var(--g); text-shadow: 4px 4px 0 #000; }
.reveal { display: flex; align-items: center; gap: 2rem; }
.revtext { max-width: 34ch; font-size: 1.15rem; }
.revtext p:empty { display: none; }

/* cartas */
.gcard { width: 200px; aspect-ratio: 5 / 7; background: var(--c); color: var(--k); border: 3px solid var(--k); border-radius: 12px; padding: 7px; box-shadow: 5px 5px 0 var(--k); flex: none; transition: transform .15s, box-shadow .15s; }
.reveal .gcard { width: 260px; box-shadow: 8px 8px 0 #000; animation: flip .6s cubic-bezier(.2, .8, .3, 1.1) both; }
@keyframes flip { from { transform: perspective(800px) rotateY(90deg); } to { transform: none; } }
.gcard-in { height: 100%; border: 2px solid var(--k); border-radius: 7px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: .6rem .55rem; gap: .3rem;
  background-image: radial-gradient(rgba(20, 18, 16, .13) 1px, transparent 1.2px); background-size: 6px 6px; }
.gtag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: .15em .7em; border-radius: 99px; border: 2px solid var(--k); line-height: 1.3; }
.gmed { font-size: 2.6rem; line-height: 1; margin: .4rem 0 .1rem; width: 66px; height: 66px; display: grid; place-items: center; border: 3px solid var(--k); border-radius: 50%; background: #fff; }
.reveal .gmed { width: 86px; height: 86px; font-size: 3.4rem; }
.gbig { font-family: var(--ff-t); font-size: 4rem; line-height: 1.1; margin: 0; color: var(--r); }
.gtitle { font-family: var(--ff-t); font-size: 1.08rem; line-height: 1.25; margin: .1rem 0 0; }
.reveal .gtitle { font-size: 1.4rem; }
.gtext { font-size: .82rem; line-height: 1.32; margin: 0; }
.reveal .gtext { font-size: 1rem; }
.gfoot { margin-top: auto; font-size: .72rem; color: #6d675e; }
.market, .hand { display: flex; flex-wrap: wrap; gap: 1.1rem; margin: .8rem 0; }
.hand .gcard { width: 170px; }
.mk { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.bid { display: flex; gap: .4rem; align-items: center; font-family: var(--ff-t); }
.bid input { width: 4.2rem; padding: .3em .4em; border: 2px solid var(--k); border-radius: 6px; background: #fff; font-size: 1.1rem; text-align: center; }
.who { font-family: var(--ff-t); }
.pick .gcard, .pick .ccard { cursor: pointer; }
.pick .gcard:hover, .pick .ccard:hover { transform: translateY(-3px); }
.gcard.sel { box-shadow: 0 0 0 4px var(--r), 6px 6px 0 var(--k); transform: translateY(-6px); }

.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; margin: .5rem 0; }
.cgrid.sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ccard { display: grid; grid-template-columns: 74px 1fr; gap: .6rem; align-items: start; background: #fff; border: 2.5px solid var(--k); border-radius: 10px; padding: .5rem; box-shadow: 3px 3px 0 var(--k); transition: transform .15s, box-shadow .15s; }
.ccard.none { grid-template-columns: 1fr; background: #efe5cd; }
.ccard.sel { box-shadow: 0 0 0 4px var(--r), 4px 4px 0 var(--k); }
.ccard-art .portrait { width: 74px; display: block; background: var(--fc); border: 2px solid var(--k); border-radius: 50% 50% 8px 8px; }
.cname { font-family: var(--ff-t); font-size: 1rem; line-height: 1.25; margin: 0; }
.crole { font-size: .78rem; color: #6d675e; margin: 0 0 .2rem; line-height: 1.3; }
.ctext { font-size: .84rem; line-height: 1.32; margin: 0; }
.diplo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.6rem; }
.diplo section { min-width: 0; }
.act { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .8rem; align-items: flex-start; }
.act .ccard { width: 100%; }
.act select { max-width: 100%; padding: .3em .4em; border: 2px solid var(--k); border-radius: 6px; background: #fff; color: var(--k); }
.ilist { display: flex; flex-wrap: wrap; gap: 1rem; }
.ilist .act { width: 190px; }
.ilist .gcard { width: 180px; }

/* batalha */
.bvs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: 1rem 0; }
.bside { text-align: center; border: 3px solid var(--k); border-top: 10px solid var(--fc); border-radius: 10px; padding: .8rem; background: #fff; }
.bname { font-family: var(--ff-t); font-size: 1.3rem; margin: 0 0 .4rem; }
.bport .portrait { width: 110px; margin: 0 auto; display: block; background: var(--fc); border: 3px solid var(--k); border-radius: 50% 50% 10px 10px; }
.bchar { font-family: var(--ff-t); margin: .3rem 0 0; }
.bcards { font-size: .9rem; color: #5b554c; }
.bforce { font-family: var(--ff-t); font-size: 3rem; line-height: 1.1; color: var(--r); margin: 0; }
.vs { font-family: var(--ff-t); font-size: 3rem; margin: 0; }
.bwin { font-family: var(--ff-t); font-size: 1.6rem; text-align: center; color: var(--r); }

.crash { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 100; background: var(--r); color: var(--c); padding: 1rem 1.4rem; border: 3px solid #000; border-radius: 10px; max-width: 90vw; }

@media (max-width: 1280px) {
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .phases { flex-wrap: nowrap; }
  .phases li { font-size: 0; padding: .25em .5em; }
  .phases li span { font-size: .8rem; margin: 0; }
  .phases li.on { font-size: .8rem; }
  .phases li.on span { margin-right: .3em; }
  .brand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .scene .line span, .scene .sub { opacity: 1; }
}

/* ---------- som ---------- */
.sndb { font-size: 1.05rem; padding: .3em .55em; line-height: 1; }
.sndb.ghost { color: var(--c); }
.story-snd { position: fixed; top: 1.2rem; left: 1.2rem; z-index: 5; background: transparent; color: var(--c); border-color: var(--c); box-shadow: none; }
.vol { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-family: var(--ff-t); }
.vol input { flex: 1; accent-color: var(--r); }
.tutchk { display: flex; align-items: center; gap: .6rem; cursor: pointer; line-height: 1.25; }
.tutchk input { width: 1.2rem; height: 1.2rem; accent-color: var(--g); }
.tutchk small { color: var(--gray); }
