/* The application's stylesheet, shared by the workshop and the table.

   Lifted out of layouts/default.cfm so the two layouts cannot drift: the table
   is the same application seen from a player's chair, and a second copy of
   these rules would be wrong in one place the first time either changed.
   No CFML here, so a hash is an ordinary character. */
/* THE TYPE (0.6.0): Newsreader for the GM's prose, Inter for the interface, and a font for each script the
   languages are written in (Lexicon: runes for Dwarvish and Giant, ogham for Sylvan). Self-hosted, assets/fonts/README.md.
   Each face's unicode-range means a page downloads only the files its characters need. */
@font-face {
  font-family:'Inter'; font-style:normal; font-weight:400 600; font-display:swap;
  src:url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family:'Inter'; font-style:normal; font-weight:400 600; font-display:swap;
  src:url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family:'Newsreader'; font-style:normal; font-weight:400 600; font-display:swap;
  font-optical-sizing:auto;
  src:url('../fonts/newsreader-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family:'Newsreader'; font-style:normal; font-weight:400 600; font-display:swap;
  font-optical-sizing:auto;
  src:url('../fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family:'Newsreader'; font-style:italic; font-weight:400 600; font-display:swap;
  font-optical-sizing:auto;
  src:url('../fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family:'Newsreader'; font-style:italic; font-weight:400 600; font-display:swap;
  font-optical-sizing:auto;
  src:url('../fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family:'Noto Sans Runic'; font-style:normal; font-weight:400; font-display:swap;
  src:url('../fonts/noto-sans-runic.woff2') format('woff2');
  unicode-range:U+16A0-16F8;
}
@font-face {
  font-family:'Noto Sans Ogham'; font-style:normal; font-weight:400; font-display:swap;
  src:url('../fonts/noto-sans-ogham.woff2') format('woff2');
  unicode-range:U+1680-169C;
}
/* Bootstrap components read these, so overriding them here is what keeps
   cards, tables and alerts from rendering dark-on-dark. */
:root {
    --bs-body-bg:#12131a; --bs-body-color:#dfe1e8;
    --bs-emphasis-color:#ffffff; --bs-secondary-color:#9aa0b0;
    --bs-border-color:#2b2e3c;
    --mcs-ui-font:"Inter","Noto Sans Runic","Noto Sans Ogham",system-ui,-apple-system,"Segoe UI",sans-serif;
    --mcs-prose-font:"Newsreader","Noto Sans Runic","Noto Sans Ogham",Georgia,"Times New Roman",serif;
    --bs-body-font-family:var(--mcs-ui-font);
}
body { background:#12131a; color:#dfe1e8; font-family:var(--mcs-ui-font); }
/* The GM's prose. Newsreader is drawn smaller than Inter at one size, so a touch up, with room between lines. */
.narration { font-family:var(--mcs-prose-font); font-size:1.075rem; line-height:1.6; }
.narration table, .narration code { font-family:var(--mcs-ui-font); }
/* A block of the reply finished while it streams (streamtext.js): in, not popped. None under reduced motion,
   where streamtext.js never adds the class. */
.narration .st-in { animation:st-in .22s ease-out both; }
@keyframes st-in { from { opacity:0; transform:translateY(2px); } to { opacity:1; transform:none; } }
a { color:#8fb6ff; }
.card { background:#1b1d27; border:1px solid #2b2e3c; color:#dfe1e8; }
.card-header { background:#222533; border-bottom:1px solid #2b2e3c; font-weight:600; color:#f2f4f8; }
/* Bootstrap's own footer is near-white and was inherited unstyled. It
   went unnoticed while the footer held one dark textarea and nothing
   else. */
.card-footer { background:#222533; border-top:1px solid #2b2e3c; color:#dfe1e8; }
.table { --bs-table-bg:transparent; --bs-table-color:#dfe1e8; --bs-table-border-color:#2b2e3c; }
.nav-tabs { border-bottom-color:#2b2e3c; }
.nav-tabs .nav-link { color:#9aa0b0; border:0; }
.nav-tabs .nav-link.active { color:#fff; background:#1b1d27; border-bottom:2px solid #8fb6ff; }
/* The play panel fits four tabs and a refresh button into a third of the
   width, and one of the labels is a character's name -- so they are
   compact, and they do not wrap onto a second row when the name is long. */
.panel-tabs { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
.panel-tabs::-webkit-scrollbar { display:none; }
.panel-tabs .nav-link { padding:.4rem .55rem; font-size:.85rem; white-space:nowrap; }
.muted { color:#98a0b4; }
/* Tables now reach the page from markdown -- a proposed skill list, a
   LitRPG status window. Bootstrap styles `.table` and nothing else, and
   these arrive from the converter with no classes on them. Single
   hashes here: this stylesheet is outside cfoutput, so # is not an
   interpolation delimiter and doubling it would print two. */
.narration table { width:100%; margin:.6rem 0; border-collapse:collapse; font-size:.85rem; }
.narration th, .narration td { border:1px solid #2b2e3c; padding:.3rem .5rem; text-align:left; vertical-align:top; }
.narration th { background:#222533; color:#f2f4f8; font-weight:600; }
.alert { background:#1b1d27; border-color:#2b2e3c; color:#c9cddb; }
.form-select, .form-select:focus { background-color:#1b1d27; color:#dfe1e8; border-color:#3a3e50; }
.prewrap { white-space:pre-wrap; }
/* Rendered narration. Markdown supplies the paragraphs, so the last
   one's margin is dropped rather than leaving a gap inside the turn. */
.narration p:last-child { margin-bottom:0; }
.narration hr { border-color:#2b2e3c; }
.narration code { color:#c9cddb; }
/* Code in any turn, the player's included (MarkupService.liftCode): written, not said -- markup being explained. */
.turn code { color:#c9cddb; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.88em;
  background:#1c1e28; padding:.08em .35em; border-radius:4px; }
.turn pre { background:#1c1e28; border-radius:6px; padding:.6rem .8rem; margin:.5rem 0; white-space:pre-wrap; }
.turn pre code { background:none; padding:0; font-size:.85em; }
/* Where the GM puts bookkeeping -- a roll, a resource spent. Inset and
   dimmer than the prose it interrupts, in the same grey as an OOC aside
   because it is the same kind of thing: true, and not narration. */
.narration blockquote {
    border-left:3px solid #3a3e50; padding-left:.7rem; margin:.4rem 0 .6rem;
    color:#98a0b4; font-size:.925rem;
}
.narration blockquote p:last-child { margin-bottom:0; }
/* Long unbroken tokens -- ids, URLs, a pasted path -- otherwise widen
   their column past the viewport and push the layout off-screen. */
.card, .prewrap, .table td { overflow-wrap:anywhere; word-break:break-word; }
body { overflow-x:hidden; }
/* GM mode must never be mistaken for player mode at a glance */
.modebar-gm { background:#6a1b2a; border-bottom:2px solid #b3324b; }
.modebar-player { background:#1b3a2e; border-bottom:2px solid #2f7d5e; }
.gm-only { border-left:3px solid #b3324b; padding-left:.6rem; }
.badge-gm { background:#b3324b; }
.badge-player { background:#2f7d5e; }
/* Out-of-character turns are set apart rather than merely labelled: at
   a glance the narrative should read as an unbroken column, with the
   asides visibly outside it. Indented, dimmer, and in a different face
   -- no colour that could be confused with the GM-only red. */
.turn-ooc { border-left:3px solid #3a3e50; padding-left:.7rem; margin-left:.9rem; }
.turn-ooc .prewrap { color:#98a0b4; font-size:.925rem; font-style:italic; }
/* Turns a fight's rewind undid (rewind_fight): kept where they were, folded, and dimmed when opened. */
.turn-rewound { border-left:3px dashed #4a4f63; padding-left:.7rem; }
.turn-rewound > summary { cursor:pointer; }
.turn-rewound[open] > .turn { opacity:.6; }
/* A menu key's turn and the menu above the composer (InputService). */
.menu-screen { font-size:.925rem; line-height:1.5; }
.menu-press { color:#98a0b4; }
.menu-key { font-size:.8rem; padding:.1rem .45rem; }
/* What the menu's screen says, above its keys: readable body text, not small print, and held to part of the
   height so the keys and the composer stay in view on a phone. */
.screen-card { font-size:.9rem; line-height:1.5; color:#d3d6df; max-height:42vh; overflow-y:auto; padding-right:.25rem; }
.screen-title { font-family:var(--mcs-prose-font); font-size:1.25rem; font-weight:500; color:#f0ede4; line-height:1.25; }
.screen-status { font-size:.75rem; color:#8d94a6; margin-top:.1rem; }
.screen-body { margin-top:.55rem; }
.screen-body p { margin:0 0 .5rem; }
.screen-body p:last-child { margin-bottom:0; }
.screen-trait strong { color:#f0ede4; font-weight:600; }
.screen-facts { display:grid; grid-template-columns:max-content 1fr; gap:.15rem .9rem; margin:0 0 .6rem; }
.screen-facts dt { font-weight:500; color:#8d94a6; }
.screen-facts dd { margin:0; }
.roll-defended { color:#d8a36a; margin-left:.25rem; }
.screen-sketch { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:.85rem; margin:0 0 .5rem; white-space:pre; overflow-x:auto; color:inherit; }
/* A level of the Deep as they have seen it (_deepmap.cfm), in the fight map's look. */
.deep-map { margin:.25rem 0 .5rem; max-width:100%; overflow-x:auto; }
.deep-map-svg { display:block; max-width:min(100%, 28rem); height:auto; }
.deep-map-room { fill:#343944; stroke:#6b7385; stroke-width:1.5; }
.deep-map-way { stroke:#4a5061; stroke-width:9; stroke-linecap:butt; }
.deep-map-stub { stroke:#6b7385; stroke-width:3; stroke-dasharray:4 4; stroke-linecap:butt; }
.deep-map-you { fill:#e3b062; }
.deep-map-ring { fill:none; stroke:#f2c14e; stroke-width:2; }
.deep-map-stair { fill:#9fb4d8; }
.deep-map-down { fill:#d88f8f; }
.deep-map-key { padding-left:2px; font-size:.72rem; color:#8d94a6; display:flex; flex-wrap:wrap; gap:.25rem .8rem; align-items:center; margin-top:.3rem; }
.deep-map-key span { display:inline-block; width:.7rem; height:.7rem; margin-right:.3rem; vertical-align:-1px; }
.deep-map-key-you { border-radius:50%; background:#e3b062; border:2px solid #f2c14e; box-sizing:border-box; }
.deep-map-key-up { background:#9fb4d8; clip-path:polygon(50% 0, 100% 100%, 0 100%); }
.deep-map-key-down { background:#d88f8f; clip-path:polygon(0 0, 100% 0, 50% 100%); }
.deep-map-key-stub { height:0 !important; border-top:3px dashed #5b6273; }
/* Beside the story, under where they are: scaled to the column. */
.scene-deepmap { margin-top:.35rem; width:15rem; max-width:100%; }
.scene-deepmap .deep-map { margin:.15rem 0 0; overflow:visible; }
.scene-deepmap .deep-map-svg { max-width:100%; height:auto; }
.scene-deepmap .deep-map-key { font-size:.65rem; gap:.15rem .6rem; }
/* Under an attack button (0.6.0, InputService.attackDetail): the way there, the to-hit and what a hit deals. */
.menu-key-detail { display:block; font-size:.7rem; opacity:.75; text-align:left; }
/* Pressed: the keys go until the turn is over and the menu is redrawn (play.js menuWaiting). */
#menu-screen.menu-waiting { display:none; }
/* Bound to the keys (bind_input): the box goes, and the page's keys press the menu's.
   The badge opens on a click to say why, in the campaign's words. */
#say-form.composer-bound textarea, #say-form.composer-bound #send-btn { display:none; }
.bound-badge { display:inline-block; }
.bound-badge > summary { list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:.3rem;
  font-size:.75rem; padding:.05rem .45rem; border:1px solid #8a6d3b; border-radius:.25rem; color:#e0c48a; }
.bound-badge > summary::-webkit-details-marker { display:none; }
.bound-badge > summary svg { width:1em; height:1em; }
.bound-badge[open] > div { margin-top:.25rem; color:#e0c48a; font-style:italic; }
.badge-ooc { background:#3a3e50; color:#c9cddb; font-weight:500; }
/* A game with no out-of-character talk (ooc_chat off): session zero's turns are still kept
   as OOC underneath, but nothing on the page calls them that. */
.no-ooc .badge-ooc { display:none; }
.no-ooc .turn-ooc { border-left:0; padding-left:0; margin-left:0; }
.no-ooc .turn-ooc .prewrap { color:inherit; font-size:inherit; font-style:normal; }
/* The composer picks up the same grey while it is in OOC, so what you
   are about to send is obvious before you send it. */
.composing-ooc textarea { border-color:#5a5f78 !important; font-style:italic; }
/* An aside inside an otherwise in-character turn. Set in from the prose
   it interrupts, but not indented as far as a whole OOC turn -- it
   belongs to this turn rather than sitting outside the column. */
/* A machinery turn: a divider in the flow, not something anyone said. */
/* A portrait is a reminder, not an illustration: small enough that the
   prose stays the thing being read.

   Fixed HEIGHT rather than width, and cropped. The generator returns
   768x1376 -- taller than it is wide by a factor of nearly two -- so a
   width cap alone still produced something three hundred pixels tall
   that shoved the character's own stats below the fold. Cropping to a
   squarish plate keeps the face, which is the part that is doing the
   reminding. The whole image is a click away. */
/* `img.` rather than bare `.portrait-inset`: Bootstrap ships
   `.card img { max-width:100% }`, which at (0,1,1) outranks a lone class
   and stretched the panel portrait to 290px inside its card while the
   height stayed at 9rem. The sheet's copy looked right only because it
   is not in a card. Matching that specificity settles it without
   !important and without depending on rule order.

   A definite width rather than width:100% with a cap, so there is
   nothing left for max-width to win. Bootstrap's rule then does the one
   useful thing it can: shrink the plate on a panel narrower than 9rem,
   which object-fit absorbs without distortion. */
/* A persona's mark (SpokenOfService.personaOf): the same star wherever a persona is named or worn. */
.persona-mark { color: var(--bs-warning, #d4a017); }
/* A look named for a beast, worn at the table in that shape (PortraitService.shapeLooks): the paw, as the persona's diamond. */
.shape-mark { font-size: .85em; }

img.portrait-inset {
    width:9rem; height:9rem; object-fit:cover; object-position:50% 22%;
    border-radius:.4rem; border:1px solid #2b2e3c; display:block; cursor:zoom-in;
}
img.portrait-inset-sm { width:6rem; height:6rem; }
/* A place is a view, not a face: full width and shallow, so it sets the
   scene without taking the room the prose needs. */
/* A face in the presence strip: a button, but it should not look like
   one until you reach for it. */
.scene-face { background:none; border:0; padding:0; text-align:center; cursor:pointer; max-width:5rem; }
.scene-face .portrait-chip { width:2.6rem; height:2.6rem; }
.scene-face:hover .portrait-chip { border-color:#6a7088; }
.portrait-chip-blank {
    display:inline-flex; align-items:center; justify-content:center;
    background:#1c1e28; color:#9aa0b0; font-size:.9rem;
}
img.scene-place { width:100%; height:5.5rem; object-position:50% 45%; border-radius:0; border:0;
                  border-bottom:1px solid #2b2e3c; }
img.portrait-inset:hover { border-color:#4a4e60; }

/* Full size, over everything, dismissed by clicking anywhere or Escape.
   Hand-rolled because this app loads Bootstrap's CSS but not its JS --
   the tab switching below is hand-rolled for the same reason. */
.lightbox {
    position:fixed; inset:0; z-index:1080; display:none;
    align-items:center; justify-content:center;
    background:rgba(8,9,13,.92); padding:2rem; cursor:zoom-out;
}
.lightbox.open { display:flex; }
.lightbox img { max-width:100%; max-height:100%; border-radius:.4rem; box-shadow:0 0 3rem rgba(0,0,0,.6); }
.lightbox .lightbox-caption {
    position:absolute; bottom:1rem; left:0; right:0; text-align:center;
    color:#9aa0b0; font-size:.8rem;
}
.portrait-chip  { width:1.9rem; height:1.9rem; object-fit:cover; border-radius:50%; border:1px solid #2b2e3c; }
/* A handout is a thing in the fiction, not the interface talking, so it
   is set apart: warmer, with a page's margins rather than a card's. */
.handout-sheet { background:#201f1c; border-color:#3a3730; }
.handout-sheet .card-body { padding:1.6rem 1.8rem; }
.handout-sheet .narration { color:#e6e1d6; }
.handout-image { width:100%; border-radius:.3rem; border:1px solid #3a3730; }
.turn-system { border-top:1px dashed #2b2e3c; padding-top:.6rem; opacity:.75; }
.turn-ooc-inline { border-left:2px solid #3a3e50; padding-left:.6rem; }
.turn-ooc-inline .prewrap { color:#98a0b4; font-size:.925rem; font-style:italic; }

/* Rule citations: a [[Section]] in the narration, read in a popover. A button
   rather than a link because nothing navigates, styled to sit in a sentence. */
.rule-cite {
  background: none; border: 0; padding: 0; font: inherit; color: #9ec5fe;
  text-decoration: underline dotted; text-underline-offset: 3px; cursor: help;
}
.rule-cite:hover, .rule-cite:focus-visible { color: #cfe2ff; text-decoration-style: solid; }
.rule-pop {
  position: absolute; z-index: 1080; max-height: 55vh; overflow-y: auto;
  background: #1a1c26; color: #dfe3ec; border: 1px solid #3a3e52; border-radius: .4rem;
  box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.45); padding: .7rem .85rem; font-size: .85rem;
}
.rule-pop-path { margin-bottom: .4rem; }
.rule-pop-body h1, .rule-pop-body h2, .rule-pop-body h3,
.rule-pop-body h4, .rule-pop-body h5, .rule-pop-body h6 { font-size: .95rem; font-weight: 600; margin: .5rem 0 .3rem; }
.rule-pop-ruling { border-left: 3px solid #d4a72c; padding: .3rem .6rem; margin-bottom: .5rem; background: #24212a; }
.rule-pop-credit { font-size: .7rem; margin-top: .6rem; }

/* SHEET LAYOUTS (SheetLayoutService): track boxes, ladder slots, and what a
   skill has not unlocked yet, faded as the printed sheets draw it. */
.sheet-box {
  display: inline-block; min-width: 1.6rem; height: 1.6rem; line-height: 1.45rem; text-align: center;
  border: 1px solid #6c757d; border-radius: .2rem; font-size: .8rem;
}
.sheet-box.filled { background: #6c757d; color: #fff; }
.sheet-box.faded, .sheet-faded { opacity: .35; }
.sheet-slot {
  display: inline-block; min-width: 5.2rem; padding: .05rem .35rem; border: 1px solid #3d4349; border-radius: .2rem;
  font-size: .8rem;
}
.sheet-slot.outlined { border-color: #adb5bd; }
.sheet-slot.empty { color: transparent; }
/* The theme gives every .card-body a 1.5rem top margin; a sheet is dense. */
.sheet-layout .card-body { margin-top: 0; }

/* A spell in the book and not prepared today: listed, but quieter. */
.sheet-unprepared { opacity: .65; }
/* THE CAMPAIGN'S FACE (CoverService): a cover behind a campaign's card, on the
   table's front page, the workshop's list and the invite page. Darkened towards
   the bottom so the name and tagline read over any picture. Generators draw
   square whatever the prompt asks, so the picture is cropped to the card
   (background-size:cover) rather than letterboxed in it. The card's own rule sets
   `background`, and the picture comes in an inline style, which wins. */
.campaign-face { background-size:cover; background-position:center 35%; background-repeat:no-repeat; }
.campaign-face.has-cover { position:relative; min-height:11rem; display:flex; flex-direction:column; justify-content:flex-end; }
.campaign-face.has-cover::before { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
    background:linear-gradient(to bottom, rgba(18,19,26,.1) 0%, rgba(18,19,26,.55) 45%, rgba(18,19,26,.94) 100%); }
.campaign-face > * { position:relative; }
.campaign-face.has-cover h2, .campaign-face.has-cover .campaign-tagline { text-shadow:0 1px 3px rgba(0,0,0,.85); }
.campaign-tagline { color:#c9cddb; font-style:italic; }
.cover-thumb { width:7.5rem; height:4.5rem; object-fit:cover; border:1px solid #2b2e3c; border-radius:.25rem; }
.cover-thumb.is-current { border-color:#8fb6ff; }
.cover-history-item { width:7.5rem; }
/* Opens the whole picture (layout.js, the lightbox): a cover is shown cropped everywhere else. */
.lightbox-trigger { cursor:zoom-in; }
/* The guide's front gives its cover far more room than a card's banner, filled edge to edge
   (cropped as a cover, not letterboxed); pressed, it opens whole in the lightbox. */
.guide-cover { display:block; width:100%; aspect-ratio:16 / 9; max-height:28rem; object-fit:cover; object-position:center 35%;
    border-top-left-radius:inherit; border-top-right-radius:inherit; }

/* A session played again (SessionRedoService): kept as it was played, read as what did not happen. */
.transcript-retconned .card-body { opacity: .6; }
.transcript-retconned .card-body:hover { opacity: .85; }
/* Notes on a session (SessionNoteService): its tone, as a small word before it. */
.session-note-tone { font-size: .75em; text-transform: uppercase; letter-spacing: .04em; padding: 0 .35em; border-radius: .2rem; border: 1px solid currentColor; opacity: .85; }
.session-note-works { color: #6fbf73; }
.session-note-avoid { color: #e07a6b; }
.session-note-mixed { color: #d9b44a; }
.session-note-correction { color: #7aa7e0; }
.session-note-note { color: inherit; }
/* The Map tab (MapViewService): the floor they stand on, people as tokens, rooms in sight to click. */
.play-map-frame { background:#fff; border-radius:.25rem; overflow:hidden; }
.play-map-frame svg.play-map { display:block; width:100%; height:auto; }
#town-map svg { display:block; width:100%; height:auto; }
#panels .play-map .map-go { cursor:pointer; }
#panels .play-map .map-go:hover { fill:rgba(59,130,246,.18); stroke:#3b82f6; stroke-width:.3; }
.play-map .map-token { pointer-events:auto; }
.play-map .map-token-down { opacity:.45; }
/* THE DOORS OF THE ROOM THEY STAND IN (0.6.4, MapViewService.doorMarks): green standing open, amber shut, red locked or
   barred. A click opens or shuts one (play.js doorPress); in GM view they are only drawn. */
.play-map .map-pile { pointer-events:auto; }
.play-map .map-pile[data-pile] { cursor:pointer; }
.play-map .map-pile .map-pile-back { fill:rgba(17,17,17,.72); stroke:#d6a65a; stroke-width:.2; }
.play-map .map-pile .map-pile-sack { fill:#d6a65a; stroke:none; }
.play-map .map-door { pointer-events:auto; }
.play-map .map-door[data-door] { cursor:pointer; }
.play-map .map-door .map-door-back { fill:rgba(17,17,17,.78); stroke-width:.25; }
.play-map .map-door .map-door-leaf { stroke:none; }
.play-map .map-door-open .map-door-back { stroke:#4ade80; }
.play-map .map-door-open .map-door-leaf { fill:#4ade80; }
.play-map .map-door-shut .map-door-back { stroke:#f2b705; }
.play-map .map-door-shut .map-door-leaf { fill:#f2b705; }
.play-map .map-door-locked .map-door-back, .play-map .map-door-barred .map-door-back { stroke:#ef4444; }
.play-map .map-door-locked .map-door-leaf, .play-map .map-door-barred .map-door-leaf { fill:#ef4444; }
.play-map .map-door .map-door-lock { fill:#111; }
.play-map .map-door .map-door-trap { fill:#f97316; stroke:#111; stroke-width:.15; }
.play-map .map-door[data-door]:hover .map-door-back, .play-map .map-door[data-door]:focus .map-door-back { stroke:#fff; stroke-width:.4; }
.play-map .map-door:focus { outline:none; }
/* A container on its spot (0.6.5): a small chest in a door's colours, its footprint faint beneath it. */
.play-map .map-box .map-box-spot { fill:rgba(227,176,98,.08); stroke:rgba(227,176,98,.45); stroke-width:.2; stroke-dasharray:.6 .4; }
.play-map .map-box .map-box-body { fill:#3a2a1a; stroke:#111; stroke-width:.12; }
.play-map .map-box .map-door-leaf { stroke:#111; stroke-width:.1; }
.play-map .map-stand .map-door-back { fill:rgba(17,17,17,.78); stroke:#9fb4d8; stroke-width:.25; }
.play-map .map-stand .map-stand-pole { fill:#8a6a44; stroke:#111; stroke-width:.06; }
.play-map .map-stand .map-stand-body { fill:#b9c4d6; stroke:#111; stroke-width:.08; }
.play-map .map-box[data-door]:hover .map-box-spot, .play-map .map-box[data-door]:focus .map-box-spot { fill:rgba(227,176,98,.18); stroke:#e3b062; }
.door-card { position:fixed; z-index:1080; min-width:13rem; max-width:18rem; }
/* The fight's map in the scene column (0.6.0 step 5): a ring on whoever's turn it is, health under each token. */
.fight-map { margin-bottom:.4rem; }
/* What is left of their turn: lit while still theirs to spend. */
.turn-left { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem; margin:.2rem 0 .35rem; font-size:.75rem; }
.turn-left-head { color:#e3b062; text-transform:uppercase; letter-spacing:.06em; font-weight:600; margin-right:.2rem; }
.turn-chip { padding:.15rem .5rem; border-radius:.35rem; background:#1c1e27; color:#7f8394; text-decoration:line-through; }
.turn-chip.on { background:#2b2416; color:#e3b062; text-decoration:none; }
.play-map .map-turn-ring { stroke:#f2c14e; animation:map-turn 1.6s ease-in-out infinite; }
/* Health under each token (Shawn, 2026-11-22: "I'd prefer small healthbars"): the tracker's bar, its colours. */
.play-map .map-hp-back { fill:#2a2c37; stroke:rgba(0,0,0,.55); }
.play-map .map-hp-party { fill:#8fd3c6; }
.play-map .map-hp-foe { fill:#f0a46a; }
/* What each unpainted room is floored with, a tint only. */
/* AN UNPAINTED PLACE, TILED in the Deep map's look (MapViewService.planWith): the plan's own white-blueprint styles
   (MapRender.render, which a painter is given) restyled for play only. */
.play-map-frame:has(> svg.play-map-plan) { background:#1b1d23; }
/* A region or world map narrower than the frame: centred, and the frame its own page's colour, not a white strip (0.7.1). */
.play-map-frame > svg:has(> .r-page, > .r-sea-page) { display:block; margin:0 auto; max-width:100%; height:auto; }
.play-map-frame:has(> svg > .r-sea-page) { background:#a9cbe6; }
.play-map-frame:has(> svg > .r-page) { background:#fbf8ef; }
.play-map-plan .plan-back { fill:#1b1d23; }
.play-map-plan .zone { fill:#343944; stroke:#8b93a7; stroke-width:.5; }
.play-map-plan .zone[data-open="sky"] { fill:#323b38; }
.play-map-plan .zone.secret { fill:#3a2f36; stroke:#d88f8f; }
.play-map-plan .loose { fill:#262931; stroke:#6b7385; }
.play-map-plan .grid { stroke:rgba(255,255,255,.07); stroke-width:.1; }
.play-map-plan .floor, .play-map-plan .name { fill:#e6e8ee; }
/* The player's map (MapViewService.playerLook): room names only, small and spaced, in the table's own face. */
.play-map-plan .name { font-family:Inter, system-ui, sans-serif; font-size:1.25px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; fill:#c3c8d4; }
.play-map-plan .thing { rx:.6px; }
/* The play map's key (_mapkey.cfm): the token colours MapViewService.COLOURS draws, the door glyph's. */
.map-key { display:flex; flex-wrap:wrap; gap:.2rem .8rem; align-items:center; margin-top:.35rem; font-size:.72rem; color:#8d94a6; }
.map-key i { display:inline-block; width:.7rem; height:.7rem; margin-right:.3rem; vertical-align:-1px; box-sizing:border-box; }
.map-key-tok { border-radius:50%; border:1px solid #111; }
.map-key-you { background:#f2b705; } .map-key-party { background:#3b82f6; } .map-key-npc { background:#6b7280; } .map-key-foe { background:#dc2626; }
.map-key-door { border-radius:2px; background:rgba(17,17,17,.78); border:2px solid; }
.map-key-open { border-color:#4ade80; } .map-key-shut { border-color:#f2b705; } .map-key-locked { border-color:#ef4444; }
.play-map-plan [data-feature]:hover .thing, .play-map-plan [data-way]:hover .door { filter:brightness(1.35); }
.play-map-plan .note { fill:#9aa1b2; }
.play-map-plan .who { fill:#8fd3c6; }
.play-map-plan .state { fill:#e3b062; }
.play-map-plan .label { fill:#c3c8d4; }
.play-map-plan .thing { fill:#4a5061; stroke:#6b7385; }
.play-map-plan .lift { fill:#343944; stroke:#9fb4d8; }
.play-map-plan .door { stroke:#c98a4a; }
.play-map-plan .window { stroke:#6fa8dc; }
.play-map-plan line[stroke="#fff"] { stroke:#343944; }
.play-map-plan [data-edge="wall"], .play-map-plan [data-edge="fence"], .play-map-plan [data-edge="eaves"] { stroke:#8b93a7; }
.play-map-plan [data-edge="open"] { stroke:#4a5061; }
.play-map-plan [data-edge="rock"] { stroke:#9a7a58; }
.play-map .map-floor-wood { fill:rgba(160, 104, 48, .22); }
.play-map .map-floor-stone { fill:rgba(110, 116, 128, .2); }
.play-map .map-floor-earth { fill:rgba(140, 104, 62, .2); }
.play-map .map-floor-grass { fill:rgba(84, 150, 64, .2); }
.play-map .map-floor-water { fill:rgba(40, 112, 196, .26); }
.play-map .map-floor-straw { fill:rgba(214, 180, 80, .24); }
.play-map .map-floor-ice { fill:rgba(170, 214, 240, .32); }
/* A stair, ladder or hatch in your room to another floor (MapViewService.liftMarks): click to say you go. */
.play-map .map-lift { cursor:pointer; }
.play-map .map-lift-back { fill:rgba(17, 17, 17, .78); stroke:#9fb4d8; stroke-width:.2; }
.play-map .map-lift-arrow { fill:none; stroke:#cfe0ff; stroke-width:.32; stroke-linecap:round; stroke-linejoin:round; }
.play-map .map-lift:hover .map-lift-back, .play-map .map-lift:focus .map-lift-back { fill:rgba(59, 130, 246, .45); }
/* How high somebody is (MapViewService.tokens): feet up or down beside the token; a flier's sky blue. */
.play-map .map-height rect { fill:rgba(17, 17, 17, .82); stroke:#c3c8d4; stroke-width:.12; }
.play-map .map-height text { fill:#e6e8ee; }
.play-map .map-height-fly rect { stroke:#7cc4f5; }
.play-map .map-height-fly text { fill:#a9dbff; }
.play-map .map-height-climb rect { stroke:#e0b062; stroke-dasharray:.35 .2; }
.play-map .map-height-climb text { fill:#f3d59c; }
/* Ground that costs movement (MapViewService.terrainMarks): water tinted and waved, difficult ground hatched. */
.play-map .map-terrain-water { fill:rgba(40, 112, 196, .3); }
.play-map .map-terrain-wave { fill:none; stroke:rgba(150, 196, 240, .55); stroke-width:.18; }
.play-map .map-terrain-hatch { stroke:rgba(201, 160, 98, .5); stroke-width:.3; }
.play-map .map-terrain-difficult { stroke:rgba(201, 160, 98, .55); stroke-width:.15; stroke-dasharray:.6 .4; }
.map-key-water { background:rgba(40, 112, 196, .55); border-radius:2px; }
.map-key-difficult { border-radius:2px; border:1px dashed rgba(201, 160, 98, .8);
  background:repeating-linear-gradient(45deg, rgba(201, 160, 98, .6) 0 1px, transparent 1px 4px); }
/* A lasting area, square by square; the squares you can still reach on your turn. */
/* Spells and effects standing on the map (MapViewService.areaMarks, 0.7.0): a colour by kind, the harmful side lighter,
   the name on the map. Plain on purpose; drawn effects are a later pass. --area is the kind's colour, for the key too. */
.map-area { --area:200, 120, 220; }
.map-area-fire { --area:226, 88, 34; } .map-area-cold { --area:120, 190, 240; } .map-area-acid { --area:180, 200, 40; }
.map-area-poison { --area:96, 160, 80; } .map-area-storm { --area:70, 150, 210; } .map-area-radiant { --area:236, 204, 90; }
.map-area-necrotic { --area:120, 70, 130; } .map-area-force { --area:150, 120, 235; } .map-area-sharp { --area:150, 110, 70; }
.map-area-grasping { --area:190, 190, 170; } .map-area-slick { --area:205, 170, 90; } .map-area-fog { --area:180, 186, 198; }
.map-area-darkness { --area:20, 16, 30; } .map-area-rough { --area:150, 130, 100; }
.play-map .map-area rect { fill:rgba(var(--area), .32); stroke:rgba(var(--area), .8); stroke-width:.25; }
.play-map .map-area-darkness rect { fill:rgba(var(--area), .62); }
.play-map .map-area rect.map-area-near { fill:rgba(var(--area), .14); stroke-dasharray:.8 .6; }
.play-map .map-area-label { fill:#fff; stroke:rgba(16, 12, 10, .85); stroke-width:.35; paint-order:stroke; font-weight:600; }
/* A blast that came and went this turn (AreaService.flash): greyed and dashed, so it never reads as standing; who it
   caught ringed. */
.play-map .map-area-echo { filter:grayscale(.8); opacity:.9; }
.play-map .map-area-echo rect { fill:rgba(var(--area), .24); stroke-dasharray:1 .7; }
.play-map .map-area-echo rect.map-area-caught { fill:none; stroke:rgba(255, 255, 255, .95); stroke-width:.45; stroke-dasharray:none; }
.play-map .map-area-echo .map-area-label { font-style:italic; font-weight:500; }
.map-key i.map-key-area.map-key-echo { background:rgba(var(--area), .2); border-style:dashed; filter:grayscale(.8); }
.map-key i.map-key-caught { border-radius:2px; border:2px solid #d9dde6; }
.map-key i.map-key-area { border-radius:2px; background:rgba(var(--area), .5); border:1px solid rgba(var(--area), .95); }
.map-key i.map-key-area.map-key-near { background:rgba(var(--area), .18); border-style:dashed; }
/* THE LIGHT ON THE MAP (0.6.3, MapViewService.lightMarks): a player's dim light shaded, darkness black, darkness their
   darkvision sees dim and without colour; the GM's see-through. */
/* The 5-foot grid laid over a painting (MapViewService.gridMarks): faint, thin whatever the zoom. */
.play-map .map-grid line { stroke:rgba(20, 18, 14, .32); stroke-width:1px; vector-effect:non-scaling-stroke; pointer-events:none; }
.play-map .map-light-dim { fill:rgba(18, 22, 58, .38); }
.play-map .map-light-dv { fill:rgba(60, 60, 66, .2); }
.play-map .map-light-dark { fill:rgba(3, 4, 10, .93); }
.play-map .map-light-gm-dim { fill:rgba(24, 28, 70, .22); }
.play-map .map-light-gm-dark { fill:rgba(6, 7, 18, .45); }
@supports (mix-blend-mode: saturation) {
  .play-map .map-light-dv { fill:rgba(30, 30, 34, .9); mix-blend-mode:saturation; }
}
.play-map .map-reach rect { fill:rgba(46, 160, 98, .16); stroke:rgba(46, 160, 98, .55); stroke-width:.2; }
/* A path laid out on the reach (0.6.0, play.js walk): the squares take a click, the path is drawn gold, and the bar under
   the map says its feet and whose reach it leaves, with Undo, Reset and Move. */
.play-map .map-reach.walkable rect { cursor:pointer; }
.play-map .map-reach.walkable rect:hover { fill:rgba(46, 160, 98, .38); }
.play-map .map-walk polyline { fill:none; stroke:#d4a537; stroke-width:.8; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1.6 .9; }
.play-map .map-walk circle { fill:#d4a537; }
.walk-bar { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; margin:.35rem 0 .25rem; font-size:.85rem; }
.walk-bar .walk-said { flex:1 1 12rem; }
/* A foe's token with a move aimed at them takes a click; their moves come up under the map (play.js targetKeys). */
.play-map .map-token-targetable { cursor:pointer; }
.play-map .map-token-targetable:hover circle, .play-map .map-token-picked circle { filter:drop-shadow(0 0 .6px #d4a537) drop-shadow(0 0 .6px #d4a537); }
.target-bar { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem; margin:.35rem 0 .25rem; font-size:.85rem; }
/* YOUR MOVE as the canvas draws it (0.6.0, Moves.dc.html; views/common/_moves.cfm): what is left of the turn, the kinds
   of move as pill tabs (gold when on), and under them one panel -- the attacks whole, the Cast card, or rows of moves
   each with its own button. The composer stays below for anything else. */
.menu-keys.moves { display:flex; flex-direction:column; gap:.6rem; font-family:var(--mcs-ui-font); font-size:.875rem; }
.moves-head { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; font-size:.75rem; }
.moves-label { color:#e3b062; text-transform:uppercase; letter-spacing:1.2px; font-size:11px; margin-right:.35rem; }
.moves-tabs { display:flex; flex-wrap:wrap; gap:6px; }
.moves-tab { min-height:40px; padding:0 14px; border-radius:999px; border:1px solid #3a3d4b; background:transparent; color:#e9e5db;
  font:500 14px var(--mcs-ui-font); }
.moves-tab:hover { border-color:#e3b062; }
.moves-tab.on { background:#e3b062; border-color:#e3b062; color:#1a1408; }
.moves-tab:focus-visible, .move-act:focus-visible, .cast-card button:focus-visible { outline:2px solid #f0c98a; outline-offset:2px; }
.moves-panel { border:1px solid #4a3f2a; background:#1b1c23; border-radius:14px; padding:16px 18px; display:flex; flex-direction:column; gap:10px; }
.moves-panel[hidden] { display:none; }
.moves-panel:has(> .cast-card) { padding:0; overflow:hidden; }
.moves-title, .cast-label { font-size:11px; letter-spacing:1.2px; text-transform:uppercase; color:#a7aab8; }
.moves-foot { color:#a7aab8; font-size:12px; line-height:1.5; }
.menu-key.move-attack { display:flex; align-items:flex-start; text-align:left; min-height:56px; padding:10px 14px; border-radius:10px;
  border:1px solid #3a3d4b; background:transparent; color:#e9e5db; font:inherit; }
.menu-key.move-attack:hover { border-color:#e3b062; background:#2b2416; }
.move-attack .move-mark { margin-top:1px; flex:none; }
.move-text { display:flex; flex-direction:column; gap:2px; flex:1 1 auto; min-width:0; }
.move-name { color:#e9e5db; }
.move-attack .move-name { font-weight:600; }
.move-note, .move-attack .menu-key-detail { color:#a7aab8; font-size:12px; padding-left:0; opacity:1; }
.move-row { display:flex; align-items:center; gap:12px; padding:10px 14px; border-radius:10px; background:#1c1e27; }
.move-act { flex:none; min-height:40px; padding:0 14px; border-radius:999px; border:1px solid #5a4a2e; background:#2a2418; color:#f0c98a; font:inherit; }
.move-act:hover:not(:disabled) { border-color:#e3b062; }
.move-act:disabled { opacity:.45; cursor:not-allowed; }
.move-act.move-end { background:#e3b062; border-color:#e3b062; color:#1a1408; font-weight:600; }
.badge-shown { background:#2c3a4a; color:#cfe3ff; font-weight:500; }
.move-act.moves-end { min-height:40px; padding:0 16px; border-radius:999px; }
.move-later { flex:none; color:#7f8394; font-size:12px; }
.move-row.move-only { border:1px solid #4a3f2a; background:#1b1c23; }
/* Ready: what they wait for, typed beside its button. */
/* Waiting on the GM (play.js addTurn): three pulsing dots while the reply's body is still empty. */
.gm-waiting:empty::before { content:"\2022\2022\2022"; display:inline-block; letter-spacing:.3em; color:#7f8394;
  font:400 1rem/1.5 var(--mcs-ui-font, system-ui); animation:gm-waiting 1.2s ease-in-out infinite; }
@keyframes gm-waiting { 0%, 100% { opacity:.3; } 50% { opacity:1; } }
@media (prefers-reduced-motion: reduce) { .gm-waiting:empty::before { animation:none; opacity:.7; } }
.move-ask { display:flex; flex:1 1 16rem; gap:8px; align-items:center; min-width:0; }
.move-ask .move-trigger { flex:1; min-width:0; }
.move-ask { flex-wrap:wrap; }
.move-ask .move-ready-spell { flex:1 1 60%; min-width:0; }
.move-ask .move-ready-level { flex:1 1 30%; min-width:0; }
.move-ask .move-ready-level[hidden] { display:none; }
.move-row:has(.move-ask) { flex-wrap:wrap; }
/* The Cast card (Moves.dc.html, play.js castOpen): the spells down the left by level with what is left of each, the one
   picked on the right -- its level as tiles, whom or where, what it catches, what it costs, Cast. An area's squares are
   drawn on the map as it is aimed. */
.cast-card { display:flex; height:440px; color:#e9e5db; }
.cast-card > .moves-foot { padding:16px 18px; }
.cast-list { width:300px; flex:none; border-right:1px solid #2a2c37; display:flex; flex-direction:column; }
.cast-find { margin:12px; width:calc(100% - 24px); min-height:40px; padding:0 12px; border-radius:10px; border:1px solid #3a3d4b;
  background:#14151b; color:#e9e5db; font:inherit; }
.cast-spells { flex:1; min-height:0; overflow:auto; padding:0 8px 12px; }
.cast-group { padding:10px 8px 4px; display:flex; justify-content:space-between; align-items:baseline; }
.cast-group-name { font-size:11px; letter-spacing:1.2px; text-transform:uppercase; color:#a7aab8; }
.cast-group-left { color:#e3b062; font-size:12px; }
.cast-spell { width:100%; min-height:44px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:1px;
  padding:6px 10px; border-radius:8px; border:0; text-align:left; font:inherit; color:#e9e5db; background:transparent; }
.cast-spell:hover { background:#22242e; }
.cast-spell.on { background:#2b2416; }
.cast-spell.react { color:#7f8394; }
.cast-spell-tag { color:#a7aab8; font-size:12px; }
.cast-none { padding:10px 8px; color:#a7aab8; font-size:12px; }
.cast-waiting { margin:0 8px 4px; padding:8px 10px; border-radius:8px; background:#22242e; color:#a7aab8; font-size:12px; line-height:1.45; }
.cast-detail { flex:1; min-width:0; padding:18px 22px; display:flex; flex-direction:column; gap:14px; overflow:auto; }
.cast-title { display:flex; flex-wrap:wrap; align-items:baseline; gap:12px; }
.cast-name { font-family:var(--mcs-prose-font); font-size:24px; }
.cast-line { color:#a7aab8; }
.cast-what { color:#b9bccb; line-height:1.5; }
.cast-section { display:flex; flex-direction:column; gap:8px; }
.cast-tiles, .cast-chips { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.cast-tile { min-width:110px; min-height:64px; display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:8px 12px;
  border-radius:10px; border:1px solid #3a3d4b; background:transparent; color:#e9e5db; font:inherit; text-align:left; }
.cast-tile.on { border-color:#e3b062; background:#2b2416; }
.cast-tile:disabled { color:#5f6272; cursor:not-allowed; }
.cast-tile-level { font-weight:600; }
.cast-tile-effect { font-size:12px; }
.cast-tile-left { font-size:11px; color:#a7aab8; }
.cast-chip { min-height:40px; padding:0 14px; border-radius:999px; border:1px solid #3a3d4b; background:transparent; color:#e9e5db; font:inherit; }
.cast-chip:hover { border-color:#e3b062; }
.cast-chip.on { border-color:#e3b062; background:#2b2416; }
.cast-catches { font-size:13px; line-height:1.45; color:#b9bccb; }
.cast-catches.warn { color:#f0a46a; }
/* Rays aimed one by one (Scorching Ray, Eldritch Blast): a foe a row, how many at it between - and +. */
.cast-rays { display:flex; flex-direction:column; gap:6px; }
.cast-ray { display:flex; align-items:center; gap:10px; padding:6px 8px 6px 12px; border-radius:10px; border:1px solid #2c2e3a; background:#1c1e27; }
.cast-ray.on { border-color:#5a4a2e; background:#2a2418; }
.cast-ray-who { flex:1 1 auto; min-width:0; overflow-wrap:anywhere; color:#e9e5db; }
.cast-ray-step { width:40px; height:40px; flex:0 0 40px; border-radius:999px; border:1px solid #3a3d4b; background:transparent; color:#e9e5db; font:inherit; font-size:18px; line-height:1; }
.cast-ray-step:hover:not(:disabled) { border-color:#e3b062; }
.cast-ray-step:disabled { opacity:.35; }
.cast-ray-n { min-width:20px; text-align:center; color:#f0c98a; font-variant-numeric:tabular-nums; }
.cast-facts { display:flex; flex-direction:column; gap:6px; color:#b9bccb; line-height:1.45; }
.cast-facts b { color:#e9e5db; }
.cast-conc { color:#f0a46a; }
/* What they concentrate on, atop the spells, with End it (play.js castDrop). */
.cast-held { display:flex; align-items:center; gap:8px; padding:8px 12px; border-bottom:1px solid #2a2c37; color:#f0a46a; font-size:.85rem; }
.cast-held-what { flex:1; min-width:0; }
.cast-held-end { background:none; border:1px solid #6b4a30; color:#f0a46a; border-radius:4px; padding:2px 8px; font-size:.8rem; }
.cast-held-end:hover { background:#2a2018; }
.cast-note { color:#f0a46a; font-size:13px; }
.cast-foot { margin-top:auto; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.cast-go { min-height:48px; padding:0 22px; border-radius:12px; border:0; background:#e3b062; color:#1a1408; font:600 15px var(--mcs-ui-font); }
.cast-go:disabled { background:#2b2e3c; color:#7f8394; cursor:not-allowed; }
.cast-close { min-height:44px; padding:0 16px; border-radius:12px; border:1px solid #3a3d4b; background:transparent; color:#a7aab8; font:inherit; }
.cast-words { color:#a7aab8; font-size:12px; line-height:1.4; flex:1 1 12rem; }
/* At phone width the list goes above the spell, and the card grows to fit. */
@media (max-width: 640px) {
  .cast-card { flex-direction:column; height:auto; }
  .cast-list { width:auto; border-right:0; border-bottom:1px solid #2a2c37; max-height:14rem; }
}
.fight-map.aiming svg.play-map { cursor:crosshair; }
.play-map .map-aim rect { fill:rgba(140, 92, 214, .3); stroke:rgba(160, 110, 240, .8); stroke-width:.25; }
.play-map .map-aim-preview rect { fill:rgba(140, 92, 214, .16); stroke-dasharray:.6 .4; }
.play-map .map-aim { pointer-events:none; }
.target-bar .target-who { font-weight:600; }
@keyframes map-turn { 50% { stroke-opacity:.35; } }
@media (prefers-reduced-motion: reduce) { .play-map .map-turn-ring { animation:none; } }

/* A map shown for a moment under a turn (show_map, views/common/_mapmoments.cfm): the plan, small, scaled to the column. */
.map-moment-frame { max-width: 28rem; border: 1px solid var(--bs-border-color, #ccc); border-radius: .25rem; background: #fff; padding: .25rem; }
.map-moment-frame svg { display: block; width: 100%; height: auto; max-height: 22rem; }

/* Speech in another language (TongueService). Heard and understood: the meaning, marked. Your own: the language
   itself. Not understood: the sound, dimmer. The tag says which tongue. */
.tongue { border-radius:.2rem; padding:0 .15rem; }
.tongue-tag { font-size:.7em; text-transform:uppercase; letter-spacing:.04em; opacity:.75; margin-right:.1rem; }
.tongue[role="button"] { cursor:pointer; }
.tongue-heard, .tongue-partial { background:rgba(120,170,255,.12); border-bottom:1px dotted rgba(120,170,255,.6); }
.tongue-partial .tongue-shown { font-style:italic; }
.tongue-own { background:rgba(200,160,255,.12); border-bottom:1px dotted rgba(200,160,255,.6); font-style:italic; }
.tongue-foreign { font-style:italic; opacity:.8; }
.tongue-unknown { font-style:italic; opacity:.7; }
.tongue-flipped .tongue-alt { font-style:italic; }
/* Roll cards (0.6.0, views/common/_rollcards.cfm): a roll in the turn it was made in, with the call
   that was made on it. UI cards, not the campaign's combat card. */
.roll-cards { display:flex; flex-direction:column; gap:.4rem; margin:.25rem 0 .6rem; }
.roll-card { background:#1b1d27; border:1px solid #2b2e3c; border-left:3px solid #4a5068; border-radius:.4rem; padding:.45rem .65rem; font-size:.85rem; max-width:34rem; }
.roll-card.roll-good { border-left-color:#4fa36b; }
.roll-card.roll-bad { border-left-color:#b3324b; }
.roll-card.roll-hit { border-left-color:#d9603f; }
.roll-hit .roll-outcome { color:#f2a487; }
/* A foe's miss on their side: the card is there so the miss is on the record, and it is quiet. */
.roll-card.roll-hit.roll-missed { border-left-color:#4a5068; opacity:.85; }
/* Fate's Fudge dice (0.6.0 step 6): a plus, a minus or a blank face. */
.roll-die-fate { min-width:1.5rem; text-align:center; font-weight:700; }
.roll-die-plus { color:#7fd19a; border-color:#3d7a52; }
.roll-die-minus { color:#f08a9c; border-color:#7a3d4a; }
.roll-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:.4rem; }
.roll-who { font-weight:600; color:#f2f4f8; }
.roll-line { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; margin-top:.25rem; }
.roll-dice { display:inline-flex; gap:.25rem; }
.roll-die { display:inline-block; min-width:1.7rem; padding:.05rem .3rem; text-align:center; border:1px solid #4a5068; border-radius:.3rem; font-weight:700; color:#f2f4f8; background:#222533; }
.roll-die-dropped { opacity:.45; text-decoration:line-through; font-weight:400; }
.roll-die-20 { border-color:#d9b44a; color:#f5d77a; }
.roll-die-1 { border-color:#b3324b; color:#f08a9c; }
.roll-mode { font-size:.75rem; text-transform:uppercase; letter-spacing:.04em; color:#9aa0b0; }
.roll-outcome { margin-left:auto; font-weight:600; }
.roll-good .roll-outcome { color:#7cd39a; }
.roll-bad .roll-outcome { color:#f08a9c; }
.roll-parts { font-size:.78rem; margin-top:.15rem; }
.roll-why { list-style:none; padding:0; margin:.25rem 0 0; font-size:.8rem; }
.roll-why li span { display:inline-block; min-width:6.5rem; font-size:.72rem; text-transform:uppercase; letter-spacing:.04em; }
.roll-adv span { color:#7cd39a; }
/* Held for the player's roll (0.6.0 step 3, HeldRollService): the call before the dice, with Roll on it. */
.roll-card.roll-group { max-width:40rem; }
.roll-card.roll-group .roll-head { align-items:center; gap:.5rem; }
.roll-mark { color:#e3b062; flex:none; }
.roll-group .roll-head-meta { margin-left:auto; font-size:.8rem; }
.roll-group .roll-head-meta:empty { display:none; }
.roll-card.roll-single .roll-tiles { grid-template-columns:minmax(7.5rem, 11rem); }
.roll-card.roll-single .roll-parts, .roll-card.roll-single .roll-why, .roll-card.roll-single .roll-stakes { margin-top:.4rem; }
.roll-tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(7.5rem, 1fr)); gap:.4rem; margin-top:.35rem; }
.roll-tile { background:#23252f; border-radius:.35rem; padding:.35rem .5rem; border-left:3px solid #4a5068; }
.roll-tile.roll-good { border-left-color:#4fa36b; }
.roll-tile.roll-bad { border-left-color:#b3324b; }
.roll-tile .roll-total { font-size:1.3rem; font-weight:600; line-height:1.2; }
.roll-tile .roll-tile-dice, .roll-tile .roll-tile-note { font-size:.75rem; }
.roll-tile .roll-die-dropped { text-decoration:line-through; opacity:.6; }
.roll-tile .roll-outcome { font-size:.75rem; }
.roll-card.roll-held { border-left-color:#d9b44a; background:#1f1e26; }
/* What the table did (0.6.0, RecordService): a sheet or place a tool call changed, or a secret roll the GM has shown. */
.roll-card.roll-record { padding:.3rem .65rem; }
.roll-record .roll-what { color:#b9bccb; }
/* The outcome written before the dice (0.6.0, AttackService.saidOf): what rides on it, and the line that stands -- the
   story's own voice, on the table's card, so it reads as what happened. */
.roll-stakes { font-size:.8rem; color:#b9bccb; margin-top:.2rem; }
.roll-told { margin-top:.35rem; font-family:Newsreader, Georgia, serif; font-size:1rem; line-height:1.45; color:#e9e5db; }
.roll-record-line { margin-top:.1rem; color:#e9e5db; font-variant-numeric:tabular-nums; }
/* A turn in the story (StoryTriggerService): the GM's line, set apart from the prose and from the engine's numbers. */
.roll-card.roll-story, .table-surface .roll-card.roll-story { display:flex; gap:.6rem; align-items:flex-start; padding:.55rem .8rem; border-left:3px solid #c9a86a;
  background:linear-gradient(90deg, rgba(201,168,106,.12), rgba(201,168,106,0) 70%); }
.roll-story-mark { color:#c9a86a; font-size:1.05rem; line-height:1.4; }
.roll-story-line { color:#efe6d2; font-style:italic; line-height:1.45; white-space:pre-line; }
.roll-record-lines { display:grid; grid-template-columns:max-content 1fr; gap:.1rem .75rem; margin:.25rem 0 0; font-variant-numeric:tabular-nums; }
.roll-record-lines dt { font-weight:400; color:#a9a397; }
.roll-record-lines dd { margin:0; color:#e9e5db; }
.roll-die-waiting { color:#d9b44a; border-style:dashed; border-color:#d9b44a; font-weight:600; }
.badge-held { background:#3a3220; color:#f5d77a; font-weight:600; }
.held-actions { display:flex; flex-wrap:wrap; align-items:flex-start; gap:.6rem; margin-top:.45rem; }
.held-close summary { cursor:pointer; padding-top:.3rem; }
.held-close .held-words { min-width:14rem; }
.roll-dis span { color:#f08a9c; }
.roll-cover span { color:#9cc3e6; }
.roll-damage { margin-top:.25rem; }

/* THE TABLE'S THREE COLUMNS (0.6.0 step 5): where you are, the story, your character. One column on a phone; the place
   above the story with the character beside it on a laptop; side by side on a wide screen, the story given the height. */
.table-grid { display:grid; gap:1rem; grid-template-columns:minmax(0,1fr); grid-template-areas:"scene" "story" "rail"; align-items:start; }
.table-scene { grid-area:scene; }
.table-story { grid-area:story; min-width:0; }
.table-rail { grid-area:rail; min-width:0; }
/* Nothing about the room to show yet (whitespace only): no empty box. */
.table-scene .card:not(:has(#scenestrip *)) { display:none; }
.table-story #transcript { max-height:30rem; overflow-y:auto; }
@media (min-width: 992px) {
  .table-grid { grid-template-columns:minmax(0,2fr) minmax(0,1fr); grid-template-areas:"scene rail" "story rail"; }
}
@media (min-width: 1400px) {
  .table-grid { grid-template-columns:17rem minmax(0,1fr) 21rem; grid-template-areas:"scene story rail"; }
  /* In a fight the scene column carries the fight's map (0.6.0 step 5): room to read it. */
  .table-grid:has(.fight-map) { grid-template-columns:26rem minmax(0,1fr) 21rem; }
  .table-scene { position:sticky; top:1rem; }
  .table-scene #scenestrip .scene-place { width:100%; height:auto; max-height:11rem; object-fit:cover; }
  .table-scene #scenestrip > .d-flex, .table-scene #scenestrip .border-bottom { flex-direction:column; border-bottom:0 !important; }
  .table-story #transcript { max-height:calc(100vh - 16rem); min-height:24rem; }
  .table-story #transcript .narration { max-width:46rem; }
}

/* THE FIGHT SCREEN (0.6.3, the canvas's "Fight" artboard): the table as the fight -- the scene column's turn order on
   the left, its map in the middle as large as the screen allows, the story and the moves on the right; the character's
   rail steps aside (the sheet drawer still opens over it). Below the mode banner, never over it. A laptop and up. */
.fight-map-wrap { position:relative; }
.fight-full { display:none; }
@media (min-width: 992px) {
  .table-grid .fight-full { display:inline-flex; position:absolute; top:.35rem; right:.35rem; z-index:2; padding:.15rem .4rem;
    background:rgba(20,21,27,.78); color:#e9e5db; border:1px solid #3a3d4b; }
  .table-grid .fight-full:hover, .table-grid .fight-full:focus-visible { color:#e3b062; border-color:#6b5326; }
  body.fight-screen-open { overflow:hidden; }
  .table-grid.fight-screen { position:fixed; top:var(--fs-top, 0); left:0; right:0; bottom:0; z-index:1040; margin:0;
    padding:.75rem 1rem; background:#14151b; grid-template-columns:minmax(0,1fr) clamp(21rem, 28vw, 30rem);
    grid-template-areas:"scene story"; align-items:stretch; --fs-left:clamp(12.5rem, 16vw, 16rem); }
  .table-grid.fight-screen .table-rail { display:none; }
  .table-grid.fight-screen .scene-fold { display:none !important; }
  .table-grid.fight-screen .table-scene { position:relative; top:auto; min-height:0; }
  .table-grid.fight-screen .table-scene > .card { position:static; height:100%; }
  .table-grid.fight-screen #scenestrip > .d-flex { position:static; flex-direction:column; flex-wrap:nowrap; width:var(--fs-left);
    height:100%; overflow-y:auto; overflow-x:hidden; border-bottom:0 !important; }
  /* The turn order names everyone: the faces and the place's picture wait for the table. */
  .table-grid.fight-screen #scenestrip .scene-place, .table-grid.fight-screen #scenestrip .scene-face,
  .table-grid.fight-screen #scenestrip .left-here, .table-grid.fight-screen #who-panel { display:none !important; }
  .table-grid.fight-screen .fight-map-wrap { position:absolute; top:0; bottom:0; left:calc(var(--fs-left) + .75rem); right:0; display:flex;
    align-items:center; justify-content:center; padding:.5rem; container-type:size; }
  .table-grid.fight-screen .fight-map { width:min(100cqw, 100cqh * var(--map-ar, 1.4)) !important; margin:0; background:transparent; }
  /* The Cast card in the narrow right column: the list above the spell, as on a phone. */
  .table-grid.fight-screen .cast-card { flex-direction:column; height:auto; }
  .table-grid.fight-screen .cast-list { width:auto; border-right:0; border-bottom:1px solid #2a2c37; max-height:14rem; }
  .table-grid.fight-screen .table-story .card-footer { max-height:68%; }
  /* The path being laid out (play.js drawWalk) sits over the foot of the map, not beside it taking its room. */
  .table-grid.fight-screen .fight-map-wrap .walk-bar { position:absolute; left:.75rem; right:.75rem; bottom:.75rem; z-index:2; margin:0;
    padding:.45rem .7rem; background:rgba(20,21,27,.94); border:1px solid #3a3d4b; border-radius:.5rem; }
  /* The moves say what is left of the turn: the strip's copy steps aside while they show. */
  .table-grid.fight-screen:has(.moves-head) .turn-left { display:none; }
  .table-grid.fight-screen .table-story { min-height:0; }
  /* A fight is no time to change how the table runs (Shawn, 2026-11-22): the settings beside the box wait on the table
     view; Out of character stays, as something said mid-fight. */
  .table-grid.fight-screen .composer-setting { display:none !important; }
  .table-grid.fight-screen .table-story > .card { height:100%; display:flex; flex-direction:column; }
  .table-grid.fight-screen .table-story #transcript { flex:1 1 auto; max-height:none; min-height:6rem; }
  .table-grid.fight-screen .table-story .card-footer { max-height:55%; overflow-y:auto; }
}

/* POCKET'S HEADER LINE (0.6.0): one line, the names cut short rather than wrapped. Phone only (d-sm-none). */
.pocket-chips { display:flex; align-items:center; gap:.5rem; padding:.4rem .75rem; font-size:.8rem; white-space:nowrap; min-width:0; }
.pocket-hp { flex:none; padding:.1rem .5rem; border-radius:.35rem; background:#1d2a20; color:#9fd3a8; font-variant-numeric:tabular-nums; }
.pocket-hp-hurt { background:#2b2416; color:#e3b062; }
.pocket-hp-low { background:#2f1a1e; color:#f08a9c; }
.pocket-with { overflow:hidden; text-overflow:ellipsis; color:#a7aab8; min-width:0; }

/* THE SHEET DRAWER (0.6.0 step 5): over the story from the right; the whole screen on a phone. */
.sheet-drawer { position:fixed; top:0; right:0; bottom:0; width:min(40rem, 100vw); z-index:1050; display:flex; flex-direction:column;
  background:#171922; border-left:1px solid #2b2e3c; box-shadow:-12px 0 32px rgba(0,0,0,.45); animation:drawer-in .18s ease-out; }
.sheet-drawer[hidden] { display:none; }
@keyframes drawer-in { from { transform:translateX(2rem); opacity:.4; } to { transform:none; opacity:1; } }
@media (prefers-reduced-motion: reduce) { .sheet-drawer { animation:none; } }
.sheet-drawer-head { display:flex; align-items:center; gap:.75rem; padding:.75rem 1rem; border-bottom:1px solid #2b2e3c; }
.sheet-drawer-title { font-family:'Newsreader', Georgia, serif; font-size:1.25rem; }
.sheet-drawer-body { flex:1; overflow-y:auto; padding:0 1rem 1rem; }
.drawer-tabs { position:sticky; top:0; z-index:1; display:flex; flex-wrap:wrap; gap:.25rem; padding:.6rem 0; background:#171922; border-bottom:1px solid #2b2e3c; margin-bottom:.75rem; }
.drawer-tab { background:transparent; border:1px solid transparent; border-radius:999px; color:#a7aab8; padding:.2rem .75rem; font-size:.85rem; }
.drawer-tab:hover { color:#e9e5db; }
.drawer-tab.active { color:#e9e5db; border-color:#4a5068; background:#22252f; }
@media (max-width: 575.98px) {
  .sheet-drawer { width:100vw; border-left:0; }
  /* Pocket: the place folds to one line, and the story takes the screen with the composer in view. */
  .table-grid { gap:.6rem; }
  /* Folded, the card keeps only Pocket's header line (HP, who is with you); with nothing for it, the card goes. */
  .table-scene.folded #scenestrip > :not(.pocket-chips) { display:none; }
  .table-scene.folded .card:not(:has(.pocket-chips)) { display:none; }
  .table-scene.folded .scene-fold-mark { transform:rotate(-90deg); }
  .table-scene:not(.folded) .scene-fold { margin-bottom:.4rem; }
  .table-story #transcript { max-height:calc(100svh - 17rem); min-height:16rem; }
}

/* THE TABLE'S LOOK (0.6.0, the canvas "Play Table Concepts"): warmer ink on a darker ground, columns ruled by lines
   rather than boxed, gold for the move you make, and your own words as a bubble on the right -- the story reads as one
   column, so the "You" and "GM" labels go (turn-who-plain; a Sage, a menu pick or an OOC aside keeps its label). Scoped
   to the table's layout (body.table-surface): the workshop keeps its own. */
.table-surface { --bs-body-bg:#14151b; --bs-body-color:#e9e5db; --bs-border-color:#2a2c37; --bs-secondary-color:#a7aab8;
  background:#14151b; color:#e9e5db; }
.table-surface .muted { color:#a7aab8; }
.table-surface a { color:#e3b062; }
.table-surface .modebar-player { background:#14151b; border-bottom:2px solid #2f7d5e; min-height:60px; }
.table-surface .modebar-player a.text-white { font-weight:600; }
.table-surface .table-game-name { font-family:var(--mcs-prose-font); font-size:1.35rem; font-weight:500; letter-spacing:.2px;
  color:#e9e5db; padding-left:1rem; border-left:1px solid #2a2c37; margin-right:.5rem; }
.table-surface .table-game-name:hover { color:#e3b062; }
.table-surface .modebar-player a.text-white .bi { color:#8fd3c6; }
.table-surface .modebar-player a { white-space:nowrap; }
@media (max-width: 575.98px) {
  .table-surface .modebar-player > div:first-child { flex-wrap:wrap; column-gap:.75rem !important; row-gap:0; }
}
.table-surface h1 { font-family:var(--mcs-prose-font); font-weight:500; letter-spacing:.2px; }
.table-surface .btn-primary { --bs-btn-bg:#e3b062; --bs-btn-border-color:#e3b062; --bs-btn-color:#1a1408;
  --bs-btn-hover-bg:#edc07a; --bs-btn-hover-border-color:#edc07a; --bs-btn-hover-color:#1a1408;
  --bs-btn-active-bg:#d9a14f; --bs-btn-active-border-color:#d9a14f; --bs-btn-active-color:#1a1408;
  --bs-btn-disabled-bg:#5a4a30; --bs-btn-disabled-border-color:#5a4a30; --bs-btn-disabled-color:#1a1408; font-weight:600; }
.table-surface .alert { background:#1c1e27; border-color:#2a2c37 !important; color:#b9bccb; }
/* The columns: flat, each a run of the page, with a line between. */
.table-surface .table-grid .card { background:transparent; border:0; border-radius:0; }
.table-surface .table-grid .card-header { background:transparent; border-bottom:1px solid #2a2c37; color:#e9e5db; padding-left:0; padding-right:0; }
.table-surface .table-grid .card-footer { background:transparent; border-top:1px solid #2a2c37; padding-left:0; padding-right:0; }
.table-surface .table-story .card-body { padding-left:0; padding-right:.5rem; }
.table-surface .table-grid .nav-tabs .nav-link.active { background:transparent; color:#e9e5db; border-bottom-color:#e3b062; }
@media (min-width: 1400px) {
  .table-surface .table-grid { gap:0; }
  .table-surface .table-scene { padding-right:1.5rem; }
  .table-surface .table-story { border-left:1px solid #2a2c37; border-right:1px solid #2a2c37; padding:0 2.5rem; }
  .table-surface .table-rail { padding-left:1.5rem; }
}
/* The story: the GM's prose in the serif, a size up; your turn a bubble on the right. */
.table-surface .turn-assistant .narration { font-size:1.15rem; line-height:1.65; color:#e9e5db; }
.table-surface .turn-who-plain { display:none; }
.table-surface .turn-user:not(.turn-ooc) { display:flex; flex-direction:column; align-items:flex-end; }
/* What you said comes back from the page as .narration, and as .prewrap while the turn is live (play.js). */
.table-surface .turn-user:not(.turn-ooc) > :is(.narration, .prewrap) { background:#262a38; border-radius:14px 14px 4px 14px;
  padding:.75rem 1rem; max-width:min(29rem, 85%); color:#e9e5db; font-family:var(--mcs-ui-font); font-size:.95rem; line-height:1.5; }
/* AT THE TABLE (0.6.0, design A plus B's folding). Three registers, three shapes: the story in the serif, speech a filled
   bubble, and anything out of character an outlined card in the interface's type -- the GM's solid on the left, the
   player's dashed on the right. A run of them gathers under "Table talk", folded once the story moves on (play.js). */
.ooc-aside-who { display:none; }
.table-surface .ooc-aside { border:1px solid #343a4f; border-left-width:1px; border-radius:10px; padding:.6rem .9rem;
  max-width:min(32.5rem, 90%); }
.table-surface .ooc-aside-you { margin-left:auto; border-style:dashed; border-color:#4a5068; }
.table-surface .ooc-aside .badge-ooc { display:none; }
.table-surface .ooc-aside-who, .table-surface .turn-ooc > .turn-who { display:block; font:600 .69rem var(--mcs-ui-font);
  letter-spacing:1px; text-transform:uppercase; color:#8fb3c9; margin-bottom:.25rem; }
.table-surface .ooc-aside-you .ooc-aside-who, .table-surface .turn-user.turn-ooc > .turn-who { text-align:right; }
.table-surface .ooc-aside .narration, .table-surface .turn-ooc :is(.narration, .prewrap) { font:400 .92rem/1.5 var(--mcs-ui-font);
  font-style:normal; color:#d3d6e2; }
.table-surface .ooc-aside .narration p:last-child, .table-surface .turn-ooc .narration p:last-child { margin-bottom:0; }
.table-surface .turn.turn-ooc { border:1px solid #343a4f; border-radius:10px; padding:.6rem .9rem; margin-left:0;
  max-width:min(32.5rem, 90%); }
.table-surface .turn-user.turn-ooc { margin-left:auto; border-style:dashed; border-color:#4a5068; }
.table-surface .turn-ooc > .turn-who .badge-ooc { display:none; }
.table-surface .talk { display:flex; flex-direction:column; gap:.6rem; margin-bottom:1rem; }
.table-surface .talk > .turn { margin-bottom:0 !important; }
.table-surface .talk-toggle { display:flex; align-items:center; gap:.6rem; width:100%; min-height:44px; text-align:left;
  background:transparent; border:0; border-top:1px solid #26324a; padding:.4rem .1rem; color:#b9bfd2;
  font:400 .84rem var(--mcs-ui-font); cursor:pointer; }
.table-surface .talk-toggle b { font-weight:600; letter-spacing:1px; text-transform:uppercase; font-size:.72rem; color:#8fb3c9; flex:none; }
.table-surface .talk-toggle .talk-gist { flex:1; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.table-surface .talk-toggle .talk-act { flex:none; color:#a7aab8; }
.table-surface .talk.folded .talk-toggle { background:#161c26; border:1px solid #26324a; border-radius:999px; padding:.4rem .9rem; }
.table-surface .talk.folded > .turn { display:none; }
/* A move told how (Describe my moves): the move a small chip above their words. */
.turn-move-chip { display:inline-block; font-size:.72rem; color:#98a0b4; border:1px solid rgba(152,160,180,.35);
  border-radius:999px; padding:.05rem .55rem; margin-bottom:.3rem; font-family:var(--mcs-ui-font); }
/* The composer as drawn: a wide box, the gold button beside it. */
.table-surface #message { background-color:#1c1e27 !important; border:1px solid #3a3d4b !important; color:#e9e5db !important;
  border-radius:12px; padding:.75rem .9rem; font-size:.95rem; }
.table-surface #message:focus { border-color:#e3b062 !important; box-shadow:0 0 0 .15rem rgba(227,176,98,.2); }
.table-surface #send-btn { min-height:48px; border-radius:12px; padding:0 1.4rem; }
/* Roll and record cards in the canvas's warm tiles: teal for what worked, amber for what did not (red stays for a 1 and
   for harm to you, where it means something). */
.table-surface .roll-card { background:#1b1a17; border-color:#3a3426; border-radius:10px; padding:.6rem .85rem; }
.table-surface .roll-card.roll-record { background:transparent; border-color:#2a2c37; border-left-color:#4a5068; }
.table-surface .roll-card.roll-good, .table-surface .roll-tile.roll-good { border-left-color:#8fd3c6; }
.table-surface .roll-card.roll-bad, .table-surface .roll-tile.roll-bad { border-left-color:#f0a46a; }
.table-surface .roll-good .roll-outcome { color:#8fd3c6; }
.table-surface .roll-bad .roll-outcome { color:#f0a46a; }
.table-surface .roll-tile { background:#23221d; border-radius:8px; padding:.6rem .75rem; }
.table-surface .roll-card.roll-group { border-radius:12px; padding:.85rem 1rem; }
.table-surface .roll-group .roll-what { font-weight:600; color:#e9e5db; }
.table-surface .roll-tile .roll-total { font-size:1.4rem; }
.table-surface .roll-tile { border-left-color:transparent; }
.table-surface .roll-tile .roll-who { color:#a7aab8; font-size:.75rem; font-weight:400; }
.table-surface .roll-tile.roll-bad { outline:1px solid #6b4a2a; }
/* A rest as the canvas would set it: the rest itself the heading, whose it was beside it. */
.roll-card.roll-rest .roll-what { font-weight:600; color:#e9e5db; }
.roll-card.roll-rest .roll-who { margin-left:auto; order:2; color:#a7aab8; font-weight:400; font-size:.8rem; }
.table-surface .roll-card.roll-rest { background:#1b1a17; border-color:#3a3426; border-radius:12px; padding:.85rem 1rem; }
.table-surface .roll-die { background:#23221d; border-color:#4a3f2a; }
.table-surface .roll-who { color:#e9e5db; }
/* The moves above the composer as the canvas draws them: warm-edged chips, gold where you hover, and the one the turn
   is waiting on (End turn, Continue) solid gold. */
.table-surface .menu-key.btn-outline-light, .table-surface .menu-key.btn-outline-secondary { --bs-btn-color:#e9e5db; --bs-btn-bg:#1b1a17;
  --bs-btn-border-color:#4a3f2a; --bs-btn-hover-color:#e9e5db; --bs-btn-hover-bg:#2b2416; --bs-btn-hover-border-color:#e3b062;
  --bs-btn-active-color:#1a1408; --bs-btn-active-bg:#e3b062; --bs-btn-active-border-color:#e3b062; }
.table-surface .menu-key, .table-surface .continue-fight { font-size:.875rem; padding:.45rem .8rem; border-radius:10px; min-height:40px; }
.table-surface .menu-keys .d-flex.gap-1 { gap:.5rem !important; }
.table-surface .menu-key-detail { color:#a7aab8; opacity:1; }
.table-surface .menu-key { text-align:left; }
.move-mark { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; margin-right:.5rem;
  padding:0 4px; border-radius:6px; font-size:11px; font-weight:600; background:#2b2416; color:#e3b062; vertical-align:middle; }
.move-mark ~ .menu-key-detail { padding-left:calc(22px + .5rem); }
/* The character, beside the story and in the drawer, as the canvas draws it: stat tiles rather than outlined boxes, the
   hit-point bar teal and a little heavier, section labels in small spaced capitals. */
.table-surface :is(.table-rail, .sheet-drawer) .border.border-secondary.rounded { border-color:transparent !important; background:#1c1e27; border-radius:8px !important; }
.table-surface :is(.table-rail, .sheet-drawer) .progress { height:8px !important; border-radius:4px; background:#2a2c37; }
.table-surface :is(.table-rail, .sheet-drawer) .progress-bar { border-radius:4px; }
.table-surface :is(.table-rail, .sheet-drawer) .progress-bar.bg-success { background-color:#8fd3c6 !important; }
.table-surface :is(.table-rail, .sheet-drawer) .muted.text-uppercase { font-size:11px !important; letter-spacing:1.2px !important; }
.table-surface :is(.table-rail, .sheet-drawer) .border-bottom { border-color:#2a2c37 !important; }
.table-surface .table-scene .text-uppercase { font-size:11px; letter-spacing:1.2px; color:#a7aab8; }
@media (min-width: 1400px) {
  /* Who is here, down the scene column as the canvas lists them: the face, then the name beside it. */
  .table-surface .table-scene .scene-face { display:flex; align-items:center; gap:.65rem; max-width:none; width:100%; text-align:left; }
  .table-surface .table-scene .scene-face .portrait-chip { width:36px; height:36px; flex:none; }
  .table-surface .table-scene .scene-face > .small { color:#e9e5db; font-size:.875rem; }
  .table-surface .table-scene .scene-face > .small > span { color:#a7aab8; }
  .table-surface .table-scene .scene-face:hover > .small { color:#e3b062; }
}
/* The call before the dice, and a chance to react, as the canvas's open call: its own panel with a warm edge, and big
   enough buttons to press without aiming. */
.table-surface .roll-card.roll-held { background:#1b1c23; border:1px solid #4a3f2a; border-left:3px solid #e3b062; border-radius:16px;
  padding:1rem 1.2rem; max-width:40rem; font-size:.9rem; }
.table-surface .roll-held .roll-what { font-weight:600; }
.table-surface .roll-held .badge-held { background:#2b2416; color:#e3b062; }
.table-surface .held-actions { gap:.6rem; margin-top:.75rem; }
.table-surface .held-actions > .btn { min-height:44px; border-radius:12px; padding:.5rem 1.1rem; font-size:.9rem; }
.table-surface .held-actions .btn-outline-light { --bs-btn-color:#a7aab8; --bs-btn-border-color:#3a3d4b; --bs-btn-hover-bg:#22252f;
  --bs-btn-hover-color:#e9e5db; --bs-btn-hover-border-color:#4a5068; }
.table-surface .held-close summary { padding-top:.7rem; }

/* Going quietly, or keeping watch: beside where they are. */
.going-quietly { display:inline-flex; font-size:.75rem; padding:.15rem .5rem; border-radius:999px; background:#1f2230; color:#b9bccb;
  border:1px solid #3a3d4b; white-space:nowrap; }
.table-surface .going-quietly { background:#1b1a17; border-color:#4a3f2a; color:#e3b062; }
/* What a rest lets them do, on its card: a hit die at a time, today's spells, a cantrip. */
.party-rest-head { flex-basis:100%; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:#a7aab8; margin:.4rem 0 -.1rem; }
.rest-offer { margin-top:.6rem; padding-top:.6rem; border-top:1px solid #2f2b22; display:flex; flex-direction:column; gap:.5rem; }
.rest-row { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; }
.rest-die { opacity:.8; margin-left:.25rem; font-variant-numeric:tabular-nums; }
.rest-prepare summary { cursor:pointer; color:#e9e5db; font-size:.9rem; }
.rest-prepare .rest-change { color:#e3b062; }
.rest-spells { display:flex; flex-wrap:wrap; gap:.3rem .4rem; margin-top:.35rem; }
.rest-level { flex-basis:100%; font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:#a7aab8; margin-top:.35rem; }
.rest-spell { display:inline-flex; align-items:center; gap:.35rem; font-size:.82rem; padding:.2rem .55rem; border-radius:8px;
  border:1px solid #3a3426; background:#23221d; cursor:pointer; }
.rest-spell:has(input:checked) { border-color:#e3b062; background:#2b2416; }
.rest-spell input { accent-color:#e3b062; }
.rest-said:empty { display:none; }
.rest-said { color:#8fd3c6; }

/* The turn order (0.6.0, the Fight design): initiative, the line, and a bar under it -- teal for your side, amber for a foe. */
.fight-order .fight-row { display:flex; align-items:flex-start; gap:8px; padding:3px 0; }
.fight-order .fight-current { outline:1px solid #f2c14e; outline-offset:0; border-radius:6px; background:rgba(242, 193, 78, .08); padding:4px 6px; margin:2px -6px; }
.fight-order .fight-init { flex:0 0 22px; text-align:right; color:#a7aab8; font-variant-numeric:tabular-nums; }
.fight-order .fight-body { flex:1 1 auto; min-width:0; }
/* A creature's bestiary plate beside its name (BestiaryArtService.platesOf), transparent, so no frame: click opens it. */
.foe-plate { height:2rem; width:2.6rem; object-fit:contain; flex:0 0 auto; vertical-align:middle; cursor:zoom-in; margin-right:.3rem; }
.fight-order .foe-plate { margin-right:0; }
/* The GM's bestiary in the world browser: the picture beside the statblock. */
.bestiary-plate-box { flex:0 0 9rem; }
.bestiary-plate { width:9rem; height:9rem; object-fit:contain; cursor:zoom-in; }
.bestiary-variant { width:2.8rem; height:2.8rem; object-fit:contain; cursor:zoom-in; }
/* An item's picture beside it on the sheet (ItemArtService). */
.item-plate { width:1.8rem; height:1.8rem; object-fit:contain; vertical-align:middle; cursor:zoom-in; margin-right:.25rem; }
/* An item with no picture: an icon of its kind (ItemArtService.iconFor), the size of a picture, quieter. */
.item-icon { width:1.8rem; height:1.8rem; padding:.2rem; vertical-align:middle; margin-right:.25rem; color:var(--bs-secondary-color); opacity:.85; }
.rule-item-plate { display:block; max-width:100%; max-height:9rem; object-fit:contain; margin:.4rem 0; cursor:zoom-in; }
.bestiary-plate-none { display:flex; align-items:center; justify-content:center; text-align:center; font-size:.75rem;
                       border:1px dashed var(--bs-secondary-color, #6c757d); border-radius:.4rem; cursor:default; }
.bestiary-statblock table { font-size:.75rem; width:auto; margin-bottom:.5rem; }
.bestiary-statblock th, .bestiary-statblock td { padding:0 .4rem; white-space:nowrap; }
.bestiary-statblock h1, .bestiary-statblock h2, .bestiary-statblock h3, .bestiary-statblock h4 { font-size:.9rem; font-weight:600; margin:.7rem 0 .3rem; }
@media (max-width: 575.98px) { .bestiary-plate-box { flex-basis:5.5rem; } .bestiary-plate { width:5.5rem; height:5.5rem; } }
.roll-card .foe-plate { height:2.6rem; width:3.4rem; }
.roll-card .weapon-plate { width:2.2rem; height:2.2rem; margin-right:0; }
.roll-record-items { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.3rem; }
.roll-record-items .item-plate { width:2.6rem; height:2.6rem; margin-right:0; }
.menu-key .menu-key-plate { width:1.6rem; height:1.6rem; margin:-.2rem .3rem -.2rem 0; cursor:inherit; }
.fight-order .fight-bar { display:block; height:4px; border-radius:3px; background:#2a2c37; margin-top:4px; max-width:220px; overflow:hidden; }
.fight-order .fight-bar-fill { display:block; height:100%; border-radius:3px; }
.fight-order .fight-bar-party { background:#8fd3c6; }
.fight-order .fight-bar-foe { background:#f0a46a; }

/* The gear tab's buttons (0.6.0, play.gear): what a draw or a stow costs, under its button. */
#panels .gear-act, #panels .gear-read { font-size: .72rem; padding: .1rem .5rem; }
/* A gear row: the name takes the room, the buttons only what they need, and a word breaks only when it must. */
#panels .gear-row { gap: .5rem; }
#panels .gear-name { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
#panels .gear-buttons { flex: none; }
#panels .gear-condition { font-size: .78rem; font-style: italic; }
#panels .gear-cost { font-size: .7rem; text-align: right; max-width: 9rem; }
/* What does not work yet, above what changed (site.changes, PatchNotesService.knownIssues). */
.site-known { border:1px solid #4a4128; border-radius:8px; padding:.75rem 1rem; background:rgba(201,162,74,.06); }

/* A CONTAINER, OPEN IN FRONT OF THEM (0.6.5, play.js stashOpen): what is in it beside their pack, a press to move a line.
   Floats over the bottom of the play area like a card laid on the table; two columns, one on a phone. */
.stash { position:fixed; z-index:1070; left:50%; bottom:1rem; transform:translateX(-50%); width:min(46rem, calc(100vw - 2rem));
  max-height:min(34rem, calc(100vh - 2rem)); display:flex; flex-direction:column; color:#e6e1d6;
  background:linear-gradient(180deg, #23201b 0%, #1b1d27 38%); border:1px solid #4a3f2c; border-radius:.75rem;
  box-shadow:0 18px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(227,176,98,.18); animation:stash-in .18s ease-out; }
@keyframes stash-in { from { opacity:0; transform:translate(-50%, 12px); } to { opacity:1; transform:translate(-50%, 0); } }
.stash-head { display:flex; align-items:center; gap:.75rem; padding:.8rem 1rem .7rem; border-bottom:1px solid rgba(227,176,98,.18); }
.stash-chest { width:2.1rem; height:2.1rem; flex:none; filter:drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.stash-chest-lid { fill:#8a5a2b; stroke:#2a1a0c; stroke-width:1; }
.stash-chest-body { fill:#6b431f; stroke:#2a1a0c; stroke-width:1; }
.stash-chest-band { fill:#c9a25a; stroke:#2a1a0c; stroke-width:.6; }
.stash-icon { display:flex; flex:none; }
.stash-stand-body { fill:#b9c4d6; stroke:#1d2130; stroke-width:1; }
.stash-stand-trim { fill:none; stroke:#6f7f9c; stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round; }
.stash-display .stash-in .stash-col-head { color:#c4d3ee; }
.stash-about { margin:0; padding:.55rem 1rem 0; font-size:.8rem; font-style:italic; color:#a8a092; }
.stash-chest-clasp { fill:#e3b062; stroke:#2a1a0c; stroke-width:.6; }
.stash-titles { flex:1; min-width:0; }
.stash-title { font-family:'Newsreader', Georgia, serif; font-size:1.3rem; line-height:1.15; color:#f3e7cf; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stash-sub { font-size:.72rem; letter-spacing:.07em; text-transform:uppercase; color:#b49a6c; margin-top:.15rem; }
.stash-x { background:none; border:0; color:#9a9384; font-size:1.5rem; line-height:1; padding:.1rem .4rem; border-radius:.35rem; }
.stash-x:hover, .stash-x:focus-visible { color:#fff; background:rgba(255,255,255,.07); outline:none; }
.stash-cols { display:grid; grid-template-columns:1fr auto 1fr; gap:0; min-height:0; flex:1; overflow:hidden; }
.stash-col { display:flex; flex-direction:column; min-height:0; padding:.6rem .75rem .4rem; }
.stash-col-head { font-family:'Inter', system-ui, sans-serif; font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:#e3b062; margin:0 0 .45rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stash-mine .stash-col-head { color:#9fb4d8; }
.stash-gutter { display:flex; align-items:center; justify-content:center; width:1.6rem; color:#5a5548; font-size:1rem;
  background:linear-gradient(180deg, transparent, rgba(227,176,98,.08) 50%, transparent); }
.stash-list { list-style:none; margin:0; padding:0 .15rem 0 0; overflow-y:auto; display:flex; flex-direction:column; gap:.3rem; }
.stash-row { display:flex; align-items:center; gap:.5rem; padding:.42rem .55rem; border-radius:.45rem; background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.05); transition:opacity .15s, transform .15s, background .15s; }
.stash-row:hover { background:rgba(255,255,255,.06); }
.stash-row-keep { border-left:2px solid rgba(227,176,98,.55); }
.stash-row-going { opacity:.35; transform:scale(.98); }
.stash-what { flex:1; min-width:0; display:flex; flex-wrap:wrap; align-items:baseline; column-gap:.4rem; }
.stash-name { font-size:.9rem; color:#ece7dc; overflow-wrap:anywhere; }
.stash-qty { font-size:.72rem; font-weight:600; color:#1b1d27; background:#c9a25a; border-radius:1rem; padding:0 .4rem; font-variant-numeric:tabular-nums; }
.stash-note { flex-basis:100%; font-size:.72rem; font-style:italic; color:#958e80; }
.stash-acts { display:flex; gap:.25rem; flex:none; }
.stash-act { border:1px solid transparent; border-radius:1rem; font-size:.74rem; font-weight:600; padding:.18rem .6rem; line-height:1.3;
  cursor:pointer; transition:background .12s, border-color .12s, color .12s; }
.stash-act-take { background:rgba(227,176,98,.16); border-color:rgba(227,176,98,.45); color:#f0cf8e; }
.stash-act-take:hover, .stash-act-take:focus-visible { background:#e3b062; color:#1b1d27; outline:none; }
.stash-act-put { background:rgba(159,180,216,.12); border-color:rgba(159,180,216,.4); color:#c4d3ee; }
.stash-act-put:hover, .stash-act-put:focus-visible { background:#9fb4d8; color:#141620; outline:none; }
.stash-act-one { background:transparent; border-color:rgba(255,255,255,.14); color:#b9b3a6; }
.stash-empty { font-size:.82rem; color:#8c8678; font-style:italic; padding:.7rem .55rem; border:1px dashed rgba(255,255,255,.09); border-radius:.45rem; text-align:center; }
.stash-foot { display:flex; align-items:center; gap:.5rem; padding:.6rem 1rem .75rem; border-top:1px solid rgba(255,255,255,.06); }
.stash-said { flex:1; margin:0; font-size:.8rem; color:#b8d9b0; min-height:1.1rem; }
.stash-said-bad { color:#f0a58a; }
.stash-busy .stash-act { pointer-events:none; opacity:.6; }
@media (max-width: 575.98px) {
  .stash { bottom:0; left:0; transform:none; animation:none; border-radius:.75rem .75rem 0 0; width:100vw; max-height:80vh; }
  .stash-cols { grid-template-columns:1fr; overflow-y:auto; }
  .stash-gutter { display:none; }
  .stash-col { padding:.55rem .75rem .3rem; }
  .stash-list { overflow:visible; }
  .stash-mine { border-top:1px solid rgba(255,255,255,.06); }
}
@media (prefers-reduced-motion: reduce) { .stash { animation:none; } .stash-row { transition:none; } }

/* THE STORE (0.6.23, play.js storeOpen): the container panel's frame, with prices, and a basket under the two columns. */
/* A set height, and the basket a set height inside it: the panel sits on the bottom of the screen, so a basket that grew
   pushed the wares up under the cursor between two presses of Buy. */
.store { height:min(36rem, calc(100vh - 2rem)); max-height:none; }
@media (max-width: 575.98px) { .store { height:85vh; } }
.store-checkout:disabled { opacity:.4; }
.store-awning { fill:#a8432f; stroke:#2a1a0c; stroke-width:1; }
.store-awning-stripe { fill:none; stroke:#f3e7cf; stroke-width:1.4; }
.store-window { fill:#e9c98a; stroke:#2a1a0c; stroke-width:.6; }
.store-price { font-size:.76rem; font-weight:600; color:#f0cf8e; font-variant-numeric:tabular-nums; }
.store-sell .store-price { color:#c4d3ee; }
.store-row-back { border-left:2px solid rgba(168,67,47,.7); }
.store-in-basket { font-size:.7rem; color:#b8d9b0; align-self:center; margin-right:.2rem; white-space:nowrap; }
.store .stash-act:disabled { opacity:.35; cursor:default; pointer-events:none; }
/* Change coin at a bank (StoreService.view `exchange`): one row above the basket. */
.store-exchange { padding:.5rem 1rem .4rem; border-top:1px solid rgba(255,255,255,.06); flex:none; }
.store-x-row { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; }
.store-x-row .store-x-n { width:5.5rem; }
.store-x-row select { width:auto; min-width:5rem; }
.store-x-said { font-size:.8rem; margin-top:.25rem; min-height:1.1rem; }
.store-basket { padding:.5rem 1rem .4rem; border-top:1px solid rgba(255,255,255,.06); height:10rem; overflow-y:auto; flex:none; }
.store-lines { list-style:none; margin:0 0 .35rem; padding:0; display:flex; flex-direction:column; gap:.2rem; }
.store-line { display:flex; align-items:center; gap:.4rem; font-size:.84rem; }
.store-line-what { flex:1; min-width:0; overflow-wrap:anywhere; }
.store-line-buy .store-line-what { color:#f0cf8e; }
.store-line-sell .store-line-what { color:#c4d3ee; }
.store-step { width:1.5rem; height:1.5rem; line-height:1; padding:0; border-radius:50%; border:1px solid rgba(255,255,255,.18);
  background:transparent; color:#e6e1d6; font-weight:600; }
.store-step:hover:not(:disabled), .store-step:focus-visible { background:rgba(255,255,255,.1); outline:none; }
.store-step:disabled { opacity:.3; }
.store-line-qty { min-width:1.4rem; text-align:center; font-variant-numeric:tabular-nums; }
.store-line-sum { min-width:6.5rem; text-align:right; font-size:.78rem; color:#b9b3a6; font-variant-numeric:tabular-nums; }
.store-totals { font-size:.8rem; color:#d8d2c4; }
.store-totals-empty { font-style:italic; color:#8c8678; }
.store-total-after { color:#b8d9b0; }
.store-short { color:#f0a58a; }

/* A BOOK ON THE SCREEN (0.6.9, assets/js/book.js): a page of paper over the dimmed table, turned a page at a time. */
.book-veil { position:fixed; inset:0; z-index:1090; display:flex; align-items:center; justify-content:center; padding:1rem;
  background:rgba(8,9,14,.72); animation:book-veil-in .16s ease-out; }
/* Its own: the stash's stash-in moves by -50% to centre a panel set at left:50%, and drew this veil from the left. */
@keyframes book-veil-in { from { opacity:0; } to { opacity:1; } }
@keyframes book-in { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.book { width:min(40rem, 100%); height:min(36rem, calc(100vh - 2rem)); display:flex; flex-direction:column; color:#2b2418;
  background:linear-gradient(180deg, #efe6d2 0%, #e6dbc2 100%); border:1px solid #8a7550; border-radius:.4rem;
  box-shadow:0 22px 60px rgba(0,0,0,.6), inset 0 0 40px rgba(120,90,40,.18); animation:book-in .18s ease-out; }
.book-head { display:flex; align-items:flex-start; gap:.75rem; padding:.9rem 1.1rem .6rem; border-bottom:1px solid rgba(110,85,45,.35);
  background:#2a241b; color:#efe6d2; border-radius:.4rem .4rem 0 0; }
.book-titles { flex:1; min-width:0; }
.book-title { font-family:var(--mcs-prose-font); font-size:1.25rem; font-weight:600; line-height:1.25; }
.book-author { font-family:var(--mcs-prose-font); font-style:italic; color:#cdbf9f; font-size:.95rem; }
.book-written-in, .narration .written-in { font-size:.8rem; color:#a89f8a; font-style:italic; }
.book-close { flex:none; margin-top:.2rem; }
.book-page { flex:1; overflow-y:auto; padding:1.2rem 1.5rem; min-height:12rem; color:#2b2418; }
.book-page a { color:#6b3f12; }
.book-page .muted { color:#6f624a !important; }
.book-cover { display:block; max-width:100%; max-height:60vh; margin:0 auto; border-radius:.25rem; box-shadow:0 6px 18px rgba(0,0,0,.35); }
/* What reading this far set off: the GM's own line, under the page (StoryTriggerService). */
.book-story { padding:.5rem 1.1rem; border-top:1px solid #c9b48a; background:#efe2c2; }
.book-story-line { display:flex; gap:.5rem; align-items:flex-start; color:#4a3a1e; font-style:italic; line-height:1.45; }
.book-story-line + .book-story-line { margin-top:.35rem; }
.book-story-line .bi { color:#8a6a2e; }
.book-foot { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.55rem 1.1rem;
  border-top:1px solid rgba(110,85,45,.35); }
.book-foot .btn { color:#3a2f1e; border-color:#8a7550; }
.book-foot .btn:hover:not(:disabled) { background:#d9cba9; }
.book-at { font-size:.85rem; color:#6f624a; }
/* A separator on a book's page (a bare ### or a rule): short, centred, the ink of the binding. */
.book-page hr { width:40%; margin:1.5rem auto; border:0; border-top:1px solid #8a7550; opacity:.75; }
/* A book in chapters (0.7.14): its contents between the buttons, the page count under them. */
.book-middle { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; gap:.15rem; }
.book-contents { max-width:22rem; width:100%; color:#2b2418; background-color:#f3ebd8; border-color:#8a7550;
  font-family:var(--mcs-prose-font); }
@media (max-width: 575.98px) {
  .book-veil { padding:0; align-items:stretch; }
  .book { height:100vh; height:100dvh; border-radius:0; }
  .book-head { border-radius:0; }
  .book-page { padding:1rem; }
}
