/* The game is a single viewport, with a framed stage and a communication dock. */
html { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { height: 100dvh; min-height: 0; overflow: clip; }
.shell, .entry-layout .shell, .onboarding-layout .shell { min-height: 0; height: 100%; }
.site-footer { display: none; }
:root { --stone-trim: url("/assets/limestone-frieze.jpg"); --ink-hall: url("/assets/ink-hall.jpg"); }

.world-layout {
  color-scheme: light;
  --ink: #c4c4be;
  --surface: #e4e4dc;
  --lift: #dadbd6;
  --line: #888f8c;
  --edge: #676f6e;
  --text: #202824;
  --quiet: #414e50;
  --gold: #5e373d;
  --light-gold: #243e56;
  --red: #803f42;
  --blue: #31587c;
  --dock-size: clamp(140px, 22dvh, 185px);
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: #a8acaa;
  color: var(--text);
  font-family: Verdana, system-ui, sans-serif;
  font-size: .87rem;
}
.world-layout .topbar {
  position: relative;
  z-index: 1;
  background: linear-gradient(#41484c, #252f34);
  border: 0;
  box-shadow: 0 1px 2px #111c;
  color: #f1efe4;
}
.world-layout .topbar::after, .entry-banner::after, .registry-header::after {
  content: ""; display: block; height: 9px;
  background: #7c8280 var(--stone-trim) repeat-x center / auto 100%;
  border-block: 1px solid #545b58;
  pointer-events: none;
}
.world-layout .topbar-inner { max-width: none; min-height: 37px; gap: clamp(.4rem, 1.4vw, 1.15rem); padding: 0 9px; }
.world-layout .brand { color: #ede8d4; font-size: 1.15rem; letter-spacing: .12em; gap: 6px; }
.world-layout .brand-mark { width: 24px; background: #303d40; border-color: #aeb2a1; }
.world-layout .top-nav { gap: 0; }
.world-layout .top-nav button { border-inline-start: 1px solid #596064; min-height: 36px; padding: .2rem clamp(.36rem, 1vw, .85rem); color: #eceee8; }
.world-layout .top-nav button:is(:hover,[aria-current]) { background: #d4d7cd; color: #183245; border-bottom-color: #69828f; }
.world-layout .top-status { font-size: .75rem; gap: 6px; }
.world-layout .dev-label { color: #e6d9bd; border-color: #858780; padding: 2px 4px; }
.world-layout .currency, .world-layout .session-link { color: #e5dbbf; }
.world-layout .session-link { min-height: 34px; font-size: inherit; text-decoration-color: #8f8b78; }
.world-layout .shell {
  display: grid; grid-template-rows: minmax(0,1fr) auto var(--dock-size);
  max-width: none; min-width: 0; min-height: 0; height: 100%; margin: 0; padding: 3px 5px 4px;
  gap: 3px;
}
.game-stage {
  display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; min-width: 0; overflow: clip;
  padding: 7px; gap: 6px;
  background: #d7d8d3;
  border: 1px solid #707977;
  box-shadow: inset 0 0 0 2px #eeeae1;
}
.game-stage > * { min-width: 0; min-height: 0; }
.stage--battle, .stage--replay { grid-template-rows: auto minmax(0, 1fr) auto; }
.stage--city:has(.world-map-layout) { grid-template-rows: minmax(0, 1fr); }
.world-layout .section-heading { margin: 0; align-items: center; }
.world-layout .section-heading h1, .world-layout .room-dialogue h1, .world-layout .city-interior h1 {
  font-size: clamp(1.35rem, 3vw, 2.2rem); color: #253947; font-weight: bold;
  letter-spacing: -.02em; line-height: 1;
}
.world-layout h2 { font-size: clamp(1.08rem, 1.75vw, 1.5rem); font-weight: bold; }
.world-layout h3 { font-size: 1.15rem; font-weight: bold; }
.world-layout :is(h1,h2,h3,p) { margin-bottom: .4rem; }
.world-layout .section-heading :is(h1,p) { margin-bottom: 0; }
.world-layout .overline { font-size: .72rem; letter-spacing: .08em; color: var(--gold); }
.world-layout .panel, .world-layout .card, .world-overview, .world-layout .room-fighter, .world-layout .room-location {
  background: #eceae2; border: 1px solid var(--line); border-radius: 0;
  box-shadow: inset 1px 1px #fffdf0, inset -1px -1px #bcc0b8;
}
.world-layout :is(.panel,.card) { padding: 9px; }
.world-layout .actions, .world-layout .subnav { gap: 4px; }
.world-layout .button {
  min-height: 31px; border-radius: 1px; border-color: #52626a; padding: .23rem .65rem; font-size: .81rem;
  background: linear-gradient(#536978, #2f4554); color: #fffdf0; box-shadow: inset 0 1px #81959c;
}
.world-layout .button.ghost { color: #223e56; background: linear-gradient(#f7f6ed,#d5d9d3); border-color: #7f8b87; box-shadow: inset 0 1px #fffdf0; }
.world-layout .button.danger { color: #702e36; background: #e8dcda; border-color: #95656b; }
.world-layout .button[aria-pressed="true"] { color: #fffdef; background: #40596b; border-color: #314451; }
.world-layout .field { min-height: 31px; padding: .3rem .52rem; border: 1px solid #7b8888; border-radius: 0; color: var(--text); background: #faf9f2; }
.world-layout :focus-visible { outline: 2px solid #29567d; outline-offset: 1px; }
.world-layout .meter { background: #b4bbb5; border-color: #7f9084; height: 7px; margin: .2rem 0; }
.world-layout .meter.hp span { background: linear-gradient(#5d8c68,#2f6748); }
.world-layout .meter.focus span { background: linear-gradient(#718da2,#395974); }
.world-layout .meter.xp span { background: #836c45; }
.world-layout .progress-copy { color: var(--quiet); margin: .2rem 0 0; }

.world-layout .room-heading { margin: 0; }
.world-layout .room-heading p, .world-layout .room-heading p span { color: #38546a; margin: 0; }
.world-scene { grid-template-columns: minmax(130px,.72fr) minmax(0,2fr) minmax(130px,.72fr); min-height: 0; gap: 5px; }
.world-layout .room-fighter { display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; min-height: 0; }
.world-layout .room-fighter-head { padding: 5px; }
.world-layout .room-fighter-head h2 { margin-bottom: 2px; }
.world-layout .room-health strong { color: #264937; }
.world-layout .room-figure, .world-layout .battle-effigy, .world-layout .city-figure, .overview-figure { min-height: 0; min-width: 0; position: relative; overflow: clip; background: #343b3d; border-color: var(--edge); }
.world-layout :is(.room-avatar,.full-body,.city-figure img) { position: absolute; inset: 0; width: 100%; height: 100%; max-height: 100%; object-fit: contain; object-position: center; background: transparent; }
.world-layout .room-slots, .world-layout .battle-kit { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-color: #929991; background: #a8aea6; }
.world-layout .room-slot, .world-layout .battle-kit > div { background: #d8ddd6; padding: 4px; }
.world-layout .slot-mark { height: 17px; width: 17px; color: #365064; border-color: #798b86; background: #e7e8dd; }
.world-layout .room-details { background: #d4d9d2; color: #263e53; min-height: 28px; }
.world-layout .room-location { min-height: 0; background: #e8e4d9; }
.world-layout .room-scene-art { background: var(--ink-hall) center bottom / contain no-repeat; opacity: .75; }
.world-layout .room-dialogue { padding: clamp(.55rem,2vw,1.45rem); }
.world-layout .room-dialogue > p:not(.room-speaker) { color: #263435; }
.world-layout .room-choices { margin-top: .58rem; gap: 4px; }

.world-map-layout { display: grid; grid-template-columns: minmax(235px,.58fr) minmax(0,1.7fr); gap: 7px; min-height: 0; }
.world-overview { display: grid; grid-template-rows: auto minmax(0,1fr) auto; min-height: 0; }
.overview-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem; align-items: center; }
.overview-heading h2 { margin: 0; }
.overview-heading > span { color: var(--quiet); font-size: .73rem; }
.overview-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.2fr); min-height: 0; gap: 6px; }
.overview-figure img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.overview-readout { padding: 4px 0; min-width: 0; align-self: start; }
.overview-readout dl { margin: .45rem 0; font-size: .79rem; }
.overview-readout dl div { display: flex; gap: 5px; justify-content: space-between; padding: .16rem 0; border-bottom: 1px solid #c1c6bd; }
.overview-readout dd { margin: 0; font-weight: 700; }
.overview-kit { padding: 4px 0 0; color: #354548; }
.overview-kit p { font-size: .76rem; margin: 0; }
.city-map { display: grid; grid-template-rows: auto minmax(0,1fr) auto; min-width: 0; min-height: 0; max-width: none; margin: 0; align-items: center; }
.map-media { display: grid; place-items: center; height: 100%; min-height: 0; container-type: size; }
.map-stage { width: min(100cqw, 150cqh); aspect-ratio: 3 / 2; border-radius: 0; border-color: #656e67; background: #bdb8ad; }
.map-stage > img { width: 100%; height: 100%; object-fit: fill; filter: saturate(.74); }
.map-directory { margin: 3px 0 0; gap: 3px; justify-content: center; }
.world-layout .map-directory .button { font-size: .75rem; min-height: 29px; padding: .15rem .45rem; }
.world-layout .city-interior { min-height: 0; background: #e8e4d9 var(--ink-hall) right bottom / contain no-repeat; }
.world-layout .city-interior p { max-width: 46ch; }

.world-layout .battle-grid { min-height: 0; gap: 5px; grid-template-columns: minmax(145px,.65fr) minmax(0,1.8fr) minmax(145px,.65fr); }
.world-layout .fighter-card { padding: 0; display: grid; min-height: 0; grid-template-rows: auto minmax(0,1fr) auto; }
.world-layout .fighter-info { padding: 5px 7px; }
.world-layout .fighter-info h2 { font-size: clamp(1rem,1.8vw,1.45rem); margin: 0; }
.world-layout .battle-kit { min-height: 0; }
.world-layout .fighter-info .overline { margin-bottom: 2px; }
.world-layout .fighter-info .progress-copy { margin-top: 1px; }
.world-layout .fighter-info .small { color: var(--quiet); }
.world-layout .battle-effigy .full-body { height: 100%; margin: 0; }
.world-layout .battle-console {
  background: #e8e7e0 var(--ink-hall) center right / auto 100% no-repeat;
  display: grid; align-content: start; justify-items: center; gap: 3px; min-height: 0; padding: 5px;
}
.world-layout .battle-console:has(.result) { align-content: center; }
.world-layout .battle-console .turn-bar { width: min(100%,35rem); padding: 0; align-items: center; }
.world-layout .turn-bar .overline { margin: 0; }
.world-layout .clock { color: #233e55; font-size: 1.15rem; }
.world-layout .clock.urgent { color: #8b373b; }
.world-layout .battle-console .zones { width: min(100%,35rem); gap: 5px; }
.world-layout .zones legend { color: #273e50; margin-bottom: 2px; }
.world-layout .battle-console .zone-button { min-height: clamp(24px,4.4dvh,39px); padding: .12rem .3rem; border: 1px solid #879591; border-radius: 0; font-size: .81rem; background: #f2f1e7; color: #253b4d; }
.world-layout .zone-button[aria-pressed="true"] { color: #662929; font-weight: 700; background: #e8d9d4; border-color: #9e6666; }
.world-layout .zone-button.block[aria-pressed="true"] { color: #203f55; background: #d5e1e3; border-color: #6e8c9d; }
.world-layout .zone-button[aria-pressed="true"] .check { color: inherit; }
.world-layout .battle-console .turn-submit, .world-layout .battle-skills { margin-top: 2px; }
.world-layout .battle-skills .button { min-width: 31px; width: 33px; min-height: 31px; }
.world-layout .skill-caption, .world-layout .log-hint { font-size: .76rem; margin: 0; }
.world-layout .battle-damage { margin: 0; }
.world-layout .result { padding: 8px; color: #293c4b; background: #ebe6d9; border: 1px solid #929b8b; border-radius: 0; box-shadow: none; }

.world-layout .room-dock { min-height: 0; grid-template-rows: minmax(0,1fr); margin: 0; border-radius: 0; border: 1px solid #727e78; background: #efede5; }
.world-layout .dock-main { min-height: 0; grid-template-rows: auto minmax(0,1fr) auto; }
.world-layout .dock-tabs { padding: 0 4px; gap: 1px; background: #c5cbc4; border-color: #83908a; }
.world-layout .dock-tabs button { min-height: 31px; padding: .18rem .6rem; font-size: .77rem; color: #253c4e; }
.world-layout .dock-tabs button[aria-pressed="true"] { background: #ecece1; border-color: #3c5d74; color: #233e53; font-weight: 700; }
.dock-content { min-height: 0; }
.dock-content:has(.battle-log) { overflow-y: auto; overscroll-behavior: contain; }
.world-layout .dock-messages, .world-layout .dock-presence ul, .dock-mobile-presence ul {
  list-style: none; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: 5px 7px; margin: 0;
}
.world-layout .dock-messages { height: 100%; gap: .14rem; line-height: 1.34; }
.world-layout .dock-messages li, .world-layout .dock-presence li { font-size: .79rem; }
.world-layout .dock-messages li strong, .world-layout .dock-presence li strong { color: #274b6d; }
.world-layout .dock-input-row { display: flex; align-items: center; gap: 5px; padding: 3px 5px; border-top: 1px solid #a7afa4; background: #d7dbd3; }
.world-layout .dock-form { flex: 1; flex-direction: row; min-width: 0; border: 0; padding: 0; gap: 4px; }
.world-layout .dock-form input { flex: 1; }
.world-layout .dock-presence { min-height: 0; background: #e4e8df; border-color: #829087; display: grid; grid-template-rows: auto minmax(0,1fr); }
.world-layout .dock-presence h2 { margin: 0; min-height: 31px; padding: 4px 7px; font-size: 1rem; background: #c5cbc4; border-color: #83908a; }
.world-layout .dock-presence li { padding: .1rem 0; }
.world-layout .dock-presence li span, .world-layout .dock-presence h2 span { color: #3a5665; }
.battle-log { margin: 0; padding: 5px 7px; }
.round-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; color: var(--light-gold); }
.round-choices, .round-events { padding-inline-start: 1.2rem; }
.round-choices li, .round-events li { margin-bottom: .3rem; }
.pager { display: flex; align-items: center; justify-content: end; gap: 5px; white-space: nowrap; font-size: .78rem; }
.pager .button { min-width: 30px; padding-inline: .25rem; }
.world-layout .battle-log .pager { margin-top: 2px; }
.world-layout dialog { color: var(--text); background: #eeeadc; border: 1px solid #727e78; border-radius: 0; }
.world-layout #toast:not(:empty) { color: #432c37; background: #e8d3d1; }

.list-panel, .hall-panel { min-height: 0; display: grid; align-content: start; gap: 6px; }
.world-layout .hall-panel { background: #e8e7df var(--ink-hall) right bottom / contain no-repeat; }
.hall-content { min-height: 0; }
.world-layout .bot-card { min-height: 0; padding: 0 5px 0 0; grid-template-columns: minmax(65px,.52fr) minmax(0,1fr); gap: 6px; background: #eeece2; }
.world-layout .bot-card img { height: clamp(90px,21dvh,180px); background: #363f42; }
.world-layout .bot-card .actions { padding: 0; }
.world-layout .equipment, .replay-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.world-layout .quest-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.world-layout .list-note, .world-layout .item-card p { margin-bottom: 3px; }
.world-layout .item-card .actions { margin-top: 4px; }
.character-view { min-height: 0; width: min(100%, 640px); max-width: none; }
.world-layout .character-card { display: grid; grid-template-columns: minmax(75px,.65fr) minmax(0,1fr); height: 100%; min-height: 0; padding: 0; }
.world-layout .city-figure { height: 100%; }
.world-layout .character-card-content { padding: 7px; }
.world-layout .stat-list div { min-height: 25px; }
.world-layout .stat-list .button { min-height: 23px; min-width: 30px; padding: 0 5px; }
.world-layout .columns-creation { min-height: 0; grid-template-columns: minmax(0,.45fr) minmax(0,1fr); gap: 5px; }
.world-layout .columns-creation .panel { min-height: 0; position: relative; }
.world-layout .columns-creation .respec-portrait { width: 100%; height: calc(100% - 26px); }
.world-layout .stepper { padding: 2px 0; }
.world-layout .stat-effect { color: var(--quiet); }

.entry-layout .shell { display: grid; grid-template-rows: auto auto; align-content: center; padding: 10px 0; }
.entry-layout .entry-banner { min-height: clamp(120px,29dvh,260px); }
.entry-banner::after { position: absolute; inset: auto 0 0; z-index: 1; }
.entry-layout .entry-access { margin-top: clamp(12px,3dvh,25px); }
.entry-layout .entry-links { margin-top: 8px; }
.entry-layout .entry-edition { margin: 0; }
.registry-header { position: relative; min-height: clamp(48px,12dvh,108px); }
.registry-header::after { position: absolute; inset: auto 0 0; }
.onboarding-layout .shell { display: grid; grid-template-rows: auto minmax(0,1fr); }
.registry-paper { align-self: start; width: min(100% - 24px,950px); margin: 8px auto 0; padding: clamp(11px,2.7vw,25px); }
.registry-paper .overline { margin-bottom: .2rem; }
.registry-paper h1 { font-size: clamp(1.6rem,4vw,2.9rem); margin-bottom: .2rem; }
.registry-paper h2 { font-size: 1.4rem; margin: 0 0 .25rem; }
.registry-paper h3 { font-size: 1rem; margin-bottom: .25rem; }
.registry-paper p { margin-bottom: .3rem; }
.registry-steps { margin: .35rem 0 .45rem; }
.registry-steps li { padding: .32rem .35rem; }
.registry-form, .registry-config { gap: .34rem; }
.registry-form .field { min-height: 36px; padding: .25rem .5rem; }
.registry-paper .button { min-height: 36px; padding: .22rem .65rem; }
.registry-options { padding: 0; }
.registry-paper .form-label { margin: .25rem 0 .14rem; }
.registry-paper .separator { margin: .3rem 0; }
.registry-paper .stepper { padding: 2px 0; grid-template-columns: minmax(0,1fr) 40px 24px 40px; gap: 4px; }
.registry-paper .stepper .button { min-height: 30px; }
.registry-paper .stat-effect { line-height: 1.2; }
.registry-fields label { margin: .25rem 0 .15rem; }
.registry-form textarea { min-height: 57px; height: clamp(57px,12dvh,100px); resize: none; }
.registry-controls { padding-top: .35rem; margin-top: .2rem; }
.registry-mode { display: none; }
.registry-portraits .portrait-choice img { height: clamp(72px,18dvh,175px); }

@media(max-width: 900px) {
  .world-overview { padding: 5px; }
  .world-layout .bot-card .actions, .world-layout .room-choices { gap: 3px; }
}
@media(max-width: 760px) {
  .world-layout .topbar-inner { padding: 0 5px; gap: 0 3px; }
  .world-layout .top-status { margin-left: auto; }
  .world-layout .top-nav button { min-height: 32px; padding: .16rem .08rem; font-size: .73rem; }
  .world-layout .topbar::after { height: 6px; }
  .world-layout .shell { padding: 2px; gap: 2px; }
  .game-stage { padding: 4px; gap: 4px; }
  .world-layout :is(.panel,.card) { padding: 6px; }
  .world-layout .panel.fighter-card { padding: 0; }
  .world-layout .section-heading h1, .world-layout .room-dialogue h1 { font-size: 1.5rem; }
  .world-map-layout { grid-template-columns: minmax(0,1fr); }
  .world-overview { display: none; }
  .world-scene { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto minmax(0,1fr); }
  .world-layout .room-fighter { grid-template-rows: auto minmax(0,1fr) auto; }
  .world-layout .room-slots { display: none; }
  .world-layout .room-details { min-height: 26px; }
  .map-heading .button { min-height: 27px; }
  .world-layout .battle-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: clamp(69px,14dvh,100px) minmax(0,1fr); }
  .world-layout .fighter-card { grid-template-columns: minmax(0,1fr) minmax(40px,.45fr); grid-template-rows: minmax(0,1fr); }
  .world-layout .fighter-card.enemy { grid-template-columns: minmax(40px,.45fr) minmax(0,1fr); }
  .world-layout .fighter-card.enemy .fighter-info { order: 1; }
  .world-layout .fighter-info { padding: 3px; }
  .world-layout .fighter-info .progress-copy { font-size: .67rem; }
  .world-layout .fighter-info .overline { font-size: .62rem; }
  .world-layout .fighter-info h2 { font-size: .9rem; }
  .world-layout .fighter-info .small { display: none; }
  .world-layout .battle-kit { display: none; }
  .world-layout .battle-console .zone-button { min-height: clamp(24px,4.65dvh,38px); font-size: .76rem; gap: .25rem; }
  .attack-row .second-hit { flex-basis: 29px; width: 29px; }
  .world-layout .battle-skills .button { min-height: 30px; width: 31px; }
  .world-layout .battle-console .turn-bar h2 { font-size: .98rem; }
  .world-layout .battle-damage { font-size: .76rem; }
  .world-layout .equipment, .replay-list, .world-layout .quest-list { grid-template-columns: 1fr; }
  .world-layout .bot-card img { height: clamp(90px,28dvh,175px); }
  .world-layout .columns-creation { grid-template-columns: minmax(0,1fr); }
  .world-layout .columns-creation > :first-child { display: none; }
  .world-layout .stat-effect { font-size: .7rem; }
  .registry-mode { display: flex; }
  .registry-config { grid-template-columns: 1fr; }
  .registry-config > div:not(.chosen) { display: none; }
  .registry-config h3 { display: none; }
  .registry-paper .button { min-height: 31px; }
}
@media(max-width: 760px), (max-height: 575px) {
  .world-layout { --dock-size: 34px; }
  .world-layout .room-dock { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
  .world-layout .dock-presence, .world-layout:not(.dock-expanded) .dock-content,
  .world-layout:not(.dock-expanded) .dock-input-row { display: none; }
  .world-layout .dock-tabs { flex-wrap: nowrap; overflow: clip; }
  .world-layout .dock-tabs button { padding-inline: clamp(.2rem,1.25vw,.55rem); white-space: nowrap; }
  .world-layout .dock-close { margin-inline-start: auto; }
  .dock-mobile-presence { display: grid; grid-template-rows: auto minmax(0,1fr); height: 100%; padding: 8px; }
  .dock-mobile-presence li { display: flex; justify-content: space-between; gap: 4px; padding: .2rem 0; }
}
@media(max-height: 630px) {
  .registry-paper h2 { font-size: 1.05rem; }
  .registry-paper h1 { font-size: 1.65rem; }
  .registry-paper .stat-effect { font-size: .69rem; }
  .entry-layout .entry-form .field { min-height: 34px; }
  .entry-layout .entry-actions .button { min-height: 34px; }
  .entry-crest h1 { font-size: clamp(2.45rem,7vw,4.4rem); }
}
@media(max-height: 480px) {
  .world-layout .battle-grid { grid-template-rows: minmax(0,1fr); grid-template-columns: minmax(75px,.55fr) minmax(0,2fr) minmax(75px,.55fr); }
  .world-layout .fighter-card.enemy { grid-column: 3; }
  .world-layout .battle-console { grid-row: 1; grid-column: 2; }
  .world-layout .battle-head .overline, .world-layout .skill-caption { display: none; }
  .world-layout .battle-console .zone-button { min-height: 20px; }
  .registry-header { display: none; }
  .onboarding-layout .shell { grid-template-rows: minmax(0,1fr); }
}

.world-layout .shell { position: relative; padding-bottom: 8px; }
.world-layout .shell::after {
  content: ""; position: absolute; inset: auto 5px 0; height: 6px; pointer-events: none;
  background: #7c8280 var(--stone-trim) repeat-x center / auto 100%;
}
.world-layout .topbar::after { height: 11px; background-size: 56px 11px; }
.world-layout :is(.stage--profile, .stage--player) {
  grid-template-rows: max-content max-content;
  align-content: start;
  justify-items: center;
  overflow: auto;
}
:is(.stage--profile, .stage--player) > :is(.section-heading, .character-view) {
  width: min(100%, 920px);
}
:is(.stage--profile, .stage--player) .character-view {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  align-items: start;
  gap: 6px;
}
.dossier-gear, .dossier-record, .dossier-bio dl { margin: 5px 0 0; }
.dossier-gear div, .dossier-record div { display: flex; gap: 4px; justify-content: space-between; padding: 2px 0; border-bottom: 1px solid #b9c0b5; }
.dossier-gear dd, .dossier-record dd, .dossier-bio dd { margin: 0; color: #28455d; }
.dossier-gear div { font-size: .78rem; }
.world-layout .panel.dossier-body {
  background: linear-gradient(90deg,#eeece4 62%,#eeece4ab 82%,#eeece400),
    url("/assets/duel-heraldry.jpg") right 6px bottom 6px / min(45%, 255px) auto no-repeat, #eeece4;
  display: grid; gap: 6px; align-content: start; min-width: 0;
}
.dossier-data { display: grid; gap: 5px 14px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.dossier-data section { min-width: 0; padding: 4px; background: #ecebe2ba; }
.dossier-bio div { margin-bottom: 4px; }
.dossier-bio dt { margin: 0; font-weight: 700; }
.dossier-bio dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.world-layout .fighter-info h2 .button, .world-layout .dock-presence .button, .world-layout .dock-mobile-presence .button {
  min-height: 0; padding: 1px 3px; border: 0; background: none; box-shadow: none;
  color: #2e5373; font-size: .9em; font-weight: 700; text-decoration: underline;
}
@media(max-width: 760px) {
  :is(.stage--profile, .stage--player) .character-view { grid-template-columns: clamp(110px, 34%, 220px) minmax(0, 1fr); }
  .world-layout .panel.dossier-body { background: #eeece4; }
  .dossier-data { grid-template-columns: 1fr; }
  .dossier-data section { padding: 0; }
  .dossier-gear div { display: block; overflow-wrap: anywhere; }
  .dossier-gear dt { font-weight: bold; }
  .dossier-gear dd { margin: 0 0 2px; }
  .dossier-body .subnav .button { min-height: 25px; font-size: .73rem; padding-inline: 4px; }
  .dossier-record div { padding: 1px 0; }
  .world-layout .topbar::after { height: 6px; }
}
