/* THE GAUNTLET (js/gauntlet-mode.js, 2026-09-12): the road on the left, the
   game's chat on the right (2026-09-14; it was the other way round until
   then: the road is the mode, the chat is the company it is run in). Dark
   steel and a warm brass accent: a mode, not a place in Vienna, so it borrows
   the results panel's chrome rather than the saloon's lamplight. The chat lines are social.js's own .vc-line rules
   (vienna.css), drawn into a panel here instead of over the plate. */
#gauntlet-mode { padding: 0; align-items: stretch; justify-content: stretch;
  background: radial-gradient(ellipse at 50% 0%, #1c2030 0%, #0f1118 55%, #08090d 100%); }
.gx-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 18px 20px 20px; max-width: 1180px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.gx-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.gx-head h1 { font-family: "EB Garamond", Palatino, Georgia, serif; font-size: 30px; margin: 0; color: #f3dfae; letter-spacing: .02em; }
.gx-me { flex: 1; min-width: 0; color: #c9c3b6; font-size: 14px; }
.gx-me b { color: #fff; }
.gx-me small { color: #8f8a80; font-size: 12px; }
.gx-lv { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #e0bd76; background: rgba(224,189,118,.14); border-radius: 4px; padding: 2px 7px; margin-left: 6px; vertical-align: 1px; }
.gx-link { font: inherit; background: none; border: 0; color: #e0bd76; text-decoration: underline; cursor: pointer; padding: 0; }
.gx-body { flex: 1; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; min-height: 0; }

/* the chat */
.gx-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0;
  border: 1px solid #2c3142; border-radius: 12px; background: rgba(8,9,14,.72); overflow: hidden; }
.gx-chat-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px;
  border-bottom: 1px solid #2c3142; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #a19b8e; }
.gx-chat-head b { color: #f3dfae; }
.gx-log { flex: 1; min-height: 240px; overflow: auto; padding: 10px 14px; font-size: 13.5px; line-height: 1.5; color: #eee;
  overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.gx-log .vc-line { padding: 2px 0; }
/* position: relative seats the name suggester (.vc-ac, vienna.css) over the input */
.gx-form { position: relative; display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #2c3142; }
.gx-form input { flex: 1; min-width: 0; font: 500 14px inherit; padding: 9px 13px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; outline: none; }
.gx-form input:focus { border-color: #e0bd76; }
/* the (level N) tag and the feat line, everywhere the chat is drawn */
.vc-lv { font-size: 11px; color: rgba(255,255,255,.55); margin: 0 6px 0 -2px; }
.vc-line.vc-feat span { color: #f3dfae; }
.vc-line.vc-feat .vc-grade { color: #7dffb2; font-size: 14px; }
.vc-replay { font: 700 11px inherit; margin-left: 8px; padding: 2px 8px; border-radius: 999px; cursor: pointer;
  border: 1px solid #e0bd76; background: rgba(224,189,118,.15); color: #f3dfae; vertical-align: 1px; text-shadow: none; }
.vc-replay:hover { background: rgba(224,189,118,.3); }

/* ❤️ 👍 👏 💬 on a feat, and a reply to one (js/chat-feats.js, 2026-09-12;
   👏 2026-09-13). They ride on the feat line itself, so they are here with it
   rather than in vienna.css: the chat is drawn in two places and this file
   loads after both. */
.vc-fx { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.vc-fr, .vc-fre { font: 600 11px inherit; line-height: 1; cursor: pointer; padding: 3px 7px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #eee; text-shadow: none;
  display: inline-flex; align-items: center; gap: 3px; }
.vc-fr:hover, .vc-fre:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.vc-fr.on { border-color: rgba(255,120,150,.75); background: rgba(255,120,150,.2); }
.vc-fr.on[data-fr="up"] { border-color: rgba(125,200,255,.75); background: rgba(125,200,255,.18); }
/* a colour each, so a pressed reaction is read by its ink as well as its glyph */
.vc-fr.on[data-fr="clap"] { border-color: rgba(240,190,110,.75); background: rgba(240,190,110,.2); }
.vc-fr b { font-weight: 700; font-size: 11px; color: #fff; }
/* your own run: the count still shows, there is just nothing to press */
.vc-fr.own { cursor: default; border-color: transparent; background: none; padding: 3px 2px; opacity: .85; }
/* the quote a reply carries: which run it answers, and a click plays it */
.vc-line .vc-re { font: 600 11.5px inherit; cursor: pointer; padding: 1px 7px; margin-right: 5px; border-radius: 999px;
  border: 1px solid rgba(224,189,118,.4); background: rgba(224,189,118,.12); color: #f3dfae; text-shadow: none; vertical-align: 1px; }
.vc-line .vc-re:hover { background: rgba(224,189,118,.26); }
.vc-line .vc-rdel { font: 700 10px inherit; cursor: pointer; margin-left: 6px; padding: 1px 5px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); background: none; color: rgba(255,255,255,.55); text-shadow: none; opacity: 0; }
.vc-line:hover .vc-rdel, .vc-rdel:focus-visible { opacity: 1; }
@media (hover: none) { .vc-line .vc-rdel { opacity: .5; } }
/* "↪ Replying to X · S on Passacaglia ✕", over whichever input is being used
   (the name suggester's spot; both forms are position: relative) */
.vc-reto { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 2px); z-index: 4;
  display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 10px;
  border: 1px solid rgba(224,189,118,.5); background: rgba(22,18,12,.94); color: #f3dfae;
  font: 600 12px inherit; text-shadow: none; pointer-events: auto; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.vc-reto[hidden] { display: none; }
.vc-reto span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-reto b { color: #fff; }
.vc-reto button { font: 700 12px inherit; cursor: pointer; flex: none; padding: 2px 7px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: none; color: #f3dfae; }
.vc-reto button:hover { background: rgba(255,255,255,.12); }
/* the name suggester steps over the reply bar when both are up */
.vc-form:has(.vc-reto:not([hidden])) .vc-ac, .gx-form:has(.vc-reto:not([hidden])) .vc-ac { bottom: calc(100% + 32px); }

/* the road */
.gx-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; padding-right: 2px; }
.gx-run { font: inherit; cursor: pointer; text-align: left; padding: 16px 18px; border-radius: 12px;
  border: 1px solid #b98a3e; color: #1a1410; background: linear-gradient(180deg, #f0c979, #c99a45);
  box-shadow: 0 8px 26px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 4px; }
.gx-run:hover:not(:disabled) { background: linear-gradient(180deg, #ffdb92, #dcaa50); }
.gx-run:disabled { opacity: .55; cursor: default; }
.gx-run b { font-size: 19px; letter-spacing: .04em; }
.gx-run span { font-size: 13px; color: #3d2f16; }
.gx-side > .mode-btn { margin: 0; width: 100%; }
.gx-card { border: 1px solid #2c3142; border-radius: 12px; background: rgba(8,9,14,.6); padding: 12px 14px 8px; }
.gx-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.gx-card-h b { color: #f3dfae; letter-spacing: .1em; font-size: 13px; }
.gx-card-h span { color: #a19b8e; font-size: 12px; }
.gx-intro { color: #b7b0a3; font-size: 13px; line-height: 1.45; margin: 0 0 10px; }
.gx-plevel { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8f8a80; margin: 8px 0 4px; }
.gx-piece, .gx-task { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; margin-bottom: 6px;
  border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.gx-piece.done, .gx-task.done { background: rgba(125,255,178,.06); border-color: rgba(125,255,178,.2); }
.gx-pt b { display: block; color: #f0e6d2; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-pt i { display: block; color: #a19b8e; font-size: 12px; font-style: normal; }
/* the sublevel code (2026-09-14): 1a · 1b · 1c the pieces, 1d the theory game,
   1e the boss. It leads the row's own title, so it reads as an address rather
   than a second heading — mono digits so a column of them lines up. */
.gx-sub { display: inline-block; margin-right: 7px; padding: 1px 6px; border-radius: 5px;
  font: 700 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em;
  color: #e0bd76; background: rgba(224,189,118,.12); border: 1px solid rgba(224,189,118,.28);
  vertical-align: 1px; }
.gx-piece.done .gx-sub, .gx-task.done .gx-sub { color: #7dffb2; background: rgba(125,255,178,.1); border-color: rgba(125,255,178,.3); }
.gx-task.locked .gx-sub { color: #8f8a80; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.gx-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gx-chip { font: 700 12px inherit; cursor: pointer; padding: 5px 10px; border-radius: 999px;
  border: 1px solid #4a3a26; background: rgba(0,0,0,.3); color: #e0bd76; }
.gx-chip:hover { border-color: #b98a3e; background: rgba(224,189,118,.14); }
.gx-chip.done { color: #7dffb2; border-color: rgba(125,255,178,.35); background: rgba(125,255,178,.08); }
.gx-chip.bonus { color: #c9c3b6; border-style: dashed; }
.gx-chip.bonus.done { color: #7dffb2; border-style: solid; }
.gx-chip.play { color: #1a1410; background: linear-gradient(180deg, #f0c979, #c99a45); border-color: #b98a3e; margin-left: auto; }
.gx-count { font-size: 12px; color: #a19b8e; }
.gx-task.done .gx-count { color: #7dffb2; }

/* the tutorial card, over the room */
.gx-tut { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(4,5,9,.72); z-index: 60; padding: 20px; }
.gx-tut.hidden { display: none; }
.gx-tut-card { max-width: 520px; width: 100%; background: linear-gradient(180deg, #1c2030, #0f1118); border: 1px solid #b98a3e;
  border-radius: 14px; padding: 22px 24px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); color: #e8e2d6; }
.gx-tut-card h2 { font-family: "EB Garamond", Palatino, Georgia, serif; font-size: 24px; margin: 0 0 6px; color: #f3dfae; }
.gx-tut-card h2 + p { margin: 0 0 16px; }
.gx-tut-card p { font-size: 14.5px; line-height: 1.5; color: #c9c3b6; margin: 0 0 14px; }
.gx-tut-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gx-tut-acts .mode-btn { margin: 0; }

/* the strip on the results panel */
.gx-result { margin: 12px auto 4px; max-width: 560px; text-align: left; border: 1px solid #b98a3e; border-radius: 12px;
  background: linear-gradient(180deg, rgba(60,50,30,.5), rgba(20,18,14,.6)); padding: 12px 16px 14px; }
.gx-result.hidden { display: none; }
.gx-res-h { font-size: 11px; letter-spacing: .12em; color: #e0bd76; margin-bottom: 4px; }
.gx-res-line { font-size: 16px; color: #f0e6d2; }
.gx-res-line b { margin-right: 8px; }
.gx-yes { color: #7dffb2; } .gx-no { color: #ffb4bd; }
.gx-res-note { margin: 6px 0 10px; font-size: 13.5px; color: #c9c3b6; line-height: 1.45; }
.gx-pay { color: #f3dfae; margin-right: 10px; }
.gx-wait { color: #a19b8e; }
.gx-clear { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(125,255,178,.1); border: 1px solid rgba(125,255,178,.3); color: #7dffb2; font-weight: 700; }
.gx-hint { margin-top: 6px; font-size: 12.5px; color: #a19b8e; }
.gx-res-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.gx-res-acts .mode-btn { margin: 0; }

/* the toast a counted theory run raises, over whatever game is up */
.gx-toast { position: fixed; top: 16px; left: 50%; transform: translate(-50%, -20px); z-index: 90; opacity: 0;
  transition: opacity .25s, transform .25s; pointer-events: none; padding: 10px 16px; border-radius: 999px;
  background: rgba(20,18,14,.94); border: 1px solid #b98a3e; color: #f0e6d2; font-size: 14px; box-shadow: 0 8px 26px rgba(0,0,0,.5); }
.gx-toast.show { opacity: 1; transform: translate(-50%, 0); }
.gx-toast.hidden { display: none; }

@media (max-width: 860px) {
  /* one column: the road first, the chat under it, the whole overlay scrolling */
  #gauntlet-mode { overflow: auto; align-items: flex-start; }
  .gx-wrap { min-height: 100%; padding: 14px 16px 24px; }
  .gx-head { gap: 10px; }
  .gx-head h1 { font-size: 24px; }
  .gx-me { flex: 1 1 100%; order: 3; }
  .gx-body { display: flex; flex-direction: column; min-height: 0; }
  /* no `order` needed: the road is already first in the DOM */
  .gx-side { overflow: visible; }
  .gx-chat { min-height: 420px; flex: none; }
  .gx-log { min-height: 260px; max-height: 50vh; }
}

/* ❤️ 👍 💬 ON AN ORDINARY LINE (2026-09-13). A feat is an event and wears its
   buttons openly; a remark is not, and forty lines each carrying three lit
   buttons is a log nobody can read. So on a plain line they REST INVISIBLE
   and come up on hover — the hotspot pills' rule, in the chat — while any
   button that has a count on it always shows, because what the room has
   already given is part of the line. A touch screen has no hover, so there
   they simply rest faint. */
.vc-line:not(.vc-feat) .vc-fx { opacity: 0; transition: opacity .12s ease; }
.vc-line:not(.vc-feat):hover .vc-fx,
.vc-line:not(.vc-feat) .vc-fx:has(:focus-visible),
.vc-line:not(.vc-feat) .vc-fx:has(.on),
.vc-line:not(.vc-feat) .vc-fx:has(b) { opacity: 1; }
@media (hover: none) { .vc-line:not(.vc-feat) .vc-fx { opacity: .5; } }
/* a quote walked to: the line it names lights for a moment */
.vc-line.vc-lit { animation: vc-lit 1.6s ease; border-radius: 6px; }
@keyframes vc-lit { 0%, 55% { background: rgba(255,215,94,.22); } 100% { background: transparent; } }

/* 😊 THE EMOJI PICKER (2026-09-13, Lionel: "in the chat input section there
   should be an emoji selector"). The button sits in the form beside the
   input; the panel hangs over it, where the name suggester hangs, and the
   reply bar pushes both up by the same amount. */
.vc-emo { flex: none; font-size: 15px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 999px;
  border: 1px solid transparent; background: none; color: #fff; text-shadow: none; opacity: .8; }
.vc-emo:hover, .vc-emo[aria-expanded="true"] { opacity: 1; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.vc-em { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 2px); z-index: 5;
  max-width: 340px; padding: 6px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16);
  background: #12101b; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.vc-em[hidden] { display: none; }
.vc-em-tabs { display: flex; gap: 3px; margin-bottom: 5px; overflow-x: auto; scrollbar-width: none; }
.vc-em-tabs::-webkit-scrollbar { display: none; }
.vc-em-t { flex: none; font: 600 10.5px inherit; cursor: pointer; padding: 3px 8px; border-radius: 999px;
  border: 1px solid transparent; background: rgba(255,255,255,.06); color: rgba(255,255,255,.62); text-shadow: none; }
.vc-em-t:hover { color: #fff; background: rgba(255,255,255,.14); }
.vc-em-t.on { color: #12101b; background: #ffd75e; }
.vc-em-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 1px;
  max-height: 172px; overflow-y: auto; }
.vc-em-k { font-size: 18px; line-height: 1; cursor: pointer; padding: 4px 0; border-radius: 6px;
  border: 1px solid transparent; background: none; text-shadow: none; }
.vc-em-k:hover { background: rgba(255,255,255,.14); }
/* the reply bar takes the spot above the input, so both lists step up over it */
.vc-form:has(.vc-reto:not([hidden])) .vc-em, .gx-form:has(.vc-reto:not([hidden])) .vc-em { bottom: calc(100% + 32px); }
