/* Next Step Town · cartoon interface theme (loaded last, on purpose).
   One set of tokens, one type system and one button/panel language for the shared chrome:
   header, HUD, toolbar, prompts, notifications, town panels, welcome dialogs and the title screen.
   Activity dialogs keep their own palettes; only their frame, fonts and backdrop are unified.
   No ids or classes used by the game scripts are renamed here. */
/* Fredoka and Nunito are bundled in fonts/ (see fonts/fonts.css and fonts/OFL.txt). */
:root {
  --ui-ink: #1c3646;
  --ui-ink-soft: #4d6673;
  --ui-line: #1c3646;
  --ui-paper: #ffffff;
  --ui-cream: #fff7e4;
  --ui-mist: #eef6fa;
  --ui-teal: #139c8a;
  --ui-teal-deep: #0d7d6f;
  --ui-green: #3fc96b;
  --ui-green-deep: #2ea254;
  --ui-gold: #ffc53d;
  --ui-gold-deep: #e6a51c;
  --ui-orange: #ff8a3d;
  --ui-sky: #55c3ff;
  --ui-pink: #ff6fa5;
  --ui-radius: 16px;
  --ui-radius-lg: 24px;
  --ui-shadow: 0 10px 30px #0f2a3a2e;
  --ui-chunky: 0 4px 0 var(--ui-line);
  --ui-display: "Fredoka", "Nunito", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --ui-body: "Nunito", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --town-paper: #ffffff;
  --town-ink: var(--ui-ink);
  --town-border: var(--ui-line);
  --town-radius: 14px;
  font-family: var(--ui-body);
  color: var(--ui-ink);
}
body { font-family: var(--ui-body); }
h1, h2, h3, h4, .brand, .town-wordmark, .town-panel-title h2, .welcome-dialog h2, .journal-header h2 {
  font-family: var(--ui-display);
  letter-spacing: 0;
}
button, select, input, textarea { font-family: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid var(--ui-gold);
  outline-offset: 2px;
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: #9fb6c2; border: 3px solid transparent; border-radius: 12px; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Header ---------- */
body > header,
.first-playable > header {
  height: 60px;
  padding: 0 18px;
  background: linear-gradient(180deg, #1aa591 0%, #12857a 100%);
  color: #fff;
  border-bottom: 3px solid #0b5a54;
  box-shadow: 0 6px 18px #0b3a3a33;
}
.world-shell, .first-playable > .world-shell { height: calc(100dvh - 60px); }
body > header .brand, .first-playable > header .brand {
  color: #fff;
  font-family: var(--ui-display);
  font-weight: 600;
  font-size: 19px;
  gap: 10px;
}
body > header .brandmark, .first-playable > header .brandmark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  padding: 0;
  border-radius: 12px;
  background: var(--ui-gold);
  color: var(--ui-ink);
  font-size: 22px;
  border: 2px solid var(--ui-line);
  box-shadow: 0 3px 0 var(--ui-line);
}
body > header .brandmark span { font-size: 12px; }
.brand-sub { font-size: 9px; letter-spacing: 3px; margin-top: 4px; opacity: .85; }
body > header .academy { color: #d7f5ee; }
body > header #xp, .first-playable > header #xp {
  background: var(--ui-gold);
  color: var(--ui-ink) !important;
  border: 2px solid var(--ui-line);
  border-radius: 999px;
  padding: 7px 14px;
  font: 800 13px var(--ui-body);
  box-shadow: 0 3px 0 var(--ui-line);
}
body > header #avatar {
  width: 40px; height: 40px;
  background: var(--ui-cream);
  border: 2px solid var(--ui-line);
  box-shadow: 0 3px 0 var(--ui-line);
  font-size: 20px;
}
body > header #character-profile {
  background: var(--ui-paper);
  color: var(--ui-ink);
  border: 2px solid var(--ui-line);
  border-radius: 14px;
  padding: 5px 12px;
  box-shadow: 0 3px 0 var(--ui-line);
  text-align: left;
  line-height: 1.15;
}
body > header #character-profile b { font: 800 13px var(--ui-body); }
body > header #character-profile small { color: var(--ui-ink-soft); font-size: 11px; margin-top: 2px; }

/* ---------- Shared button language ---------- */
.town-toolbar button,
.first-playable .town-toolbar button,
.minimap-panel button,
.town-panel-title button,
.welcome-dialog-head > button,
.places-grid button,
.quick-games button,
.settings-grid button,
#town-board-dialog button,
#current-activity button,
.playtest-dialog nav button,
.venue-tabs button,
.journal-header button,
.calendar-nav button,
.game-account button:not(.block-button) {
  font-family: var(--ui-body);
  font-weight: 800;
  color: var(--ui-ink);
  background: var(--ui-paper);
  border: 2px solid var(--ui-line);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--ui-line);
  transition: transform .08s, box-shadow .08s, background .12s;
  cursor: pointer;
}
.town-toolbar button:hover,
.minimap-panel button:hover,
.places-grid button:hover,
.quick-games button:hover,
#town-board-dialog button:hover,
.venue-tabs button:hover,
.town-panel-title button:hover,
.welcome-dialog-head > button:hover {
  background: var(--ui-cream);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--ui-line);
}
.town-toolbar button:active,
.minimap-panel button:active,
.places-grid button:active,
#town-board-dialog button:active,
.venue-tabs button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ui-line);
}
.town-toolbar button[aria-pressed="true"],
#town-board-dialog button[aria-pressed="true"],
.playtest-dialog nav button[aria-pressed="true"],
.venue-tabs button[aria-pressed="true"],
.town-event.ready button[data-town-claim] {
  background: var(--ui-teal);
  color: #fff;
}

/* ---------- HUD ---------- */
.world-top, .first-playable .world-top { top: 14px; left: 16px; right: 16px; }
.first-playable .town-toolbar { max-width: calc(100vw - 250px); }
.town-toolbar, .first-playable .town-toolbar { gap: 8px; }
.town-toolbar button, .first-playable .town-toolbar button {
  font-size: 13px;
  padding: 9px 13px;
  border-radius: 12px;
  background: #ffffffee;
  backdrop-filter: blur(8px);
}
.town-toolbar kbd {
  font: 800 10px var(--ui-body);
  color: var(--ui-ink-soft);
  border: 1.5px solid #9fb3bd;
  border-bottom-width: 2.5px;
  border-radius: 5px;
  padding: 1px 5px;
  background: var(--ui-mist);
}
.madrid-clock, .first-playable .madrid-clock {
  top: 122px;
  left: 18px;
  right: auto;
  border: 2px solid var(--ui-line);
  border-radius: 999px;
  background: #ffffffee;
  color: var(--ui-ink);
  box-shadow: 0 3px 0 var(--ui-line);
  font: 800 12px/1.2 var(--ui-body);
  letter-spacing: .02em;
  padding: 8px 14px;
}
.madrid-clock[data-period="Night"] { background: #22345ef0; color: #fff3d2; border-color: #10203d; box-shadow: 0 3px 0 #10203d; }
.madrid-clock[data-period="Sunset"], .madrid-clock[data-period="Dawn"] { background: #ffe0b8f0; color: #6b4520; }
.place-tag {
  top: 100px;
  left: 18px;
  background: var(--ui-ink);
  color: var(--ui-gold);
  border: 2px solid #0e2331;
  border-radius: 999px;
  padding: 8px 14px;
  font: 800 11px var(--ui-body);
  letter-spacing: .14em;
  box-shadow: 0 3px 0 #0e2331;
}
.minimap-panel {
  border: 3px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-paper);
  box-shadow: var(--ui-shadow), 0 4px 0 var(--ui-line);
  width: 176px;
  bottom: 96px;
}
.minimap-panel canvas { height: 148px; }
.minimap-panel button {
  border: 0;
  border-top: 2px solid var(--ui-line);
  border-radius: 0;
  box-shadow: none;
  background: var(--ui-cream);
  color: var(--ui-ink);
  font: 800 11px var(--ui-body);
  padding: 8px;
}
.minimap-panel button:hover { background: var(--ui-gold); transform: none; box-shadow: none; }
.interaction {
  background: var(--ui-green) !important;
  color: #fff !important;
  border: 2px solid var(--ui-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 0 var(--ui-line), 0 10px 24px #0f2a3a33 !important;
  font: 800 15px/1.3 var(--ui-body) !important;
  padding: 11px 18px !important;
  text-shadow: 0 1px 0 #0000002a;
  min-height: 46px;
}
.interaction:hover { transform: translateY(-2px); }
.interaction:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ui-line) !important; }
.touch-pad button {
  border: 2px solid var(--ui-line);
  background: #ffffffee;
  color: var(--ui-ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--ui-line);
}
.character-controls button, #ride-toggle, #open-emotes {
  font-family: var(--ui-body);
  font-weight: 800;
  border: 2px solid var(--ui-line);
  border-radius: 12px;
  background: #ffffffee;
  color: var(--ui-ink);
  box-shadow: 0 3px 0 var(--ui-line);
}
.small-talk, #mission-npc-ambient {
  border: 2px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-paper);
  color: var(--ui-ink);
  box-shadow: 0 4px 0 var(--ui-line), var(--ui-shadow);
  font: 600 13px/1.45 var(--ui-body);
  padding: 11px 15px;
}
.small-talk b, #mission-npc-ambient b {
  font: 800 10px var(--ui-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ui-teal-deep);
}
.small-talk p, #mission-npc-ambient p { font-weight: 700; font-size: 14px; }
#town-notifications p {
  border: 2px solid var(--ui-line);
  border-left-width: 2px;
  border-radius: 14px;
  background: var(--ui-paper);
  color: var(--ui-ink);
  box-shadow: 0 4px 0 var(--ui-line), var(--ui-shadow);
  font: 700 13px/1.4 var(--ui-body);
  padding: 10px 14px 10px 40px;
  position: relative;
  animation: ui-pop .3s cubic-bezier(.2,1.4,.4,1);
}
#town-notifications p::before {
  content: "✦";
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ui-gold);
  color: var(--ui-ink);
  font-size: 11px;
  border: 1.5px solid var(--ui-line);
}
#town-notifications[data-priority="2"] p::before { content: "★"; background: var(--ui-green); }
#town-notifications[data-priority="3"] p::before { content: "!"; background: var(--ui-orange); font-weight: 900; }
#town-object-info {
  border: 2px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-paper);
  box-shadow: 0 4px 0 var(--ui-line), var(--ui-shadow);
  font: 600 13px/1.45 var(--ui-body);
  padding: 12px 14px;
  top: 66px;
  left: auto;
  right: 16px;
}
.playtest-tracker {
  top: 134px;
  border: 2px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-paper);
  color: var(--ui-ink);
  box-shadow: 0 4px 0 var(--ui-line), var(--ui-shadow);
  font-weight: 600;
}
.playtest-tracker h3 { font-family: var(--ui-display); font-weight: 600; }
.playtest-tracker header button { border: 2px solid var(--ui-line); border-radius: 8px; background: var(--ui-cream); font-weight: 800; }
#town-object-info b { font-family: var(--ui-display); font-weight: 600; font-size: 18px; }
#town-object-info small { font-weight: 800; color: var(--ui-teal-deep); letter-spacing: .1em; }
.world-toast {
  border: 2px solid var(--ui-line);
  border-radius: 999px;
  background: var(--ui-cream);
  color: var(--ui-ink);
  font: 800 13px var(--ui-body);
  box-shadow: 0 3px 0 var(--ui-line);
}
@keyframes ui-pop { from { transform: scale(.92) translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Dialog frames (all activities) ---------- */
dialog {
  font-family: var(--ui-body);
  border-radius: 22px;
  box-shadow: 0 30px 80px #0b2433aa, 0 0 0 4px #ffffff33;
}
dialog::backdrop {
  background: #0d3a44a8;
  backdrop-filter: blur(6px);
}
.town-panel, .welcome-dialog, #town-board-dialog {
  border: 3px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-paper);
  color: var(--ui-ink);
  box-shadow: 0 6px 0 var(--ui-line), 0 30px 80px #0b243380;
  font-family: var(--ui-body);
}
.town-panel-title h2, .welcome-dialog h2, #town-board-dialog h2, #journal .journal-header h2 {
  font-family: var(--ui-display);
  font-weight: 600;
  font-size: 30px;
  color: var(--ui-ink);
  line-height: 1.1;
}
.town-eyebrow, .welcome-dialog small, .welcome-dialog-head small, #town-board-dialog small {
  font: 800 10px/1.5 var(--ui-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ui-teal-deep);
}
.town-panel-title button, .welcome-dialog-head > button, #town-board-dialog > header button {
  min-width: 40px;
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 12px;
  background: var(--ui-cream);
  font-size: 14px;
}
.town-panel p, .welcome-dialog p, #town-board-dialog p { color: var(--ui-ink-soft); font-weight: 600; }
.welcome-note { color: var(--ui-ink-soft); }
.welcome-recommend {
  border: 2px solid var(--ui-line);
  border-left-width: 2px;
  border-radius: 12px;
  background: #e9fbef;
  font-weight: 700;
}
.welcome-form input, .welcome-form select, .game-account input, .settings-grid select, .voice-settings select, #destination {
  border: 2px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-paper);
  color: var(--ui-ink);
  font: 700 15px var(--ui-body);
  box-shadow: inset 0 2px 0 #0f2a3a14;
}
.welcome-form select, .settings-grid select, .voice-settings select { padding-right: 34px; }
.welcome-form label, .settings-grid label, .voice-settings label, .game-account label { font-weight: 800; }
.block-button, .welcome-dialog .block-button, .title-screen button, .game-account .block-button {
  border: 2px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-paper);
  color: var(--ui-ink);
  box-shadow: 0 4px 0 var(--ui-line);
  font: 800 16px/1.25 var(--ui-body);
  min-height: 48px;
  padding: 12px 20px;
}
.block-button:hover, .title-screen button:hover { background: var(--ui-cream); transform: translateY(-1px); box-shadow: 0 5px 0 var(--ui-line); }
.block-button:active, .title-screen button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ui-line); }
.welcome-form .block-button, .game-account .block-button, .title-screen .play-button {
  background: var(--ui-green);
  color: #fff;
  text-shadow: 0 1px 0 #0000002a;
}
.welcome-form .block-button:hover, .game-account .block-button:hover, .title-screen .play-button:hover { background: #4fd67b; }
.welcome-dialog .danger-button { border-color: #7a2a1e; background: #ffe2dc; color: #7a2a1e; box-shadow: 0 4px 0 #7a2a1e; }
.player-card {
  border: 2px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-paper);
  box-shadow: 0 3px 0 var(--ui-line);
}
.player-card[aria-pressed="true"] { background: #e9fbef; }
.places-grid { gap: 12px; }
.places-grid button {
  border-radius: 16px;
  padding: 14px;
  background: var(--ui-paper);
}
.places-grid button:nth-child(4n+1) { background: #fff4d6; }
.places-grid button:nth-child(4n+2) { background: #e5f8ff; }
.places-grid button:nth-child(4n+3) { background: #e9fbef; }
.places-grid button:nth-child(4n+4) { background: #ffe8f1; }
.places-grid span { font-size: 30px; margin-bottom: 8px; filter: drop-shadow(0 2px 0 #0f2a3a22); }
.places-grid b { font: 800 14px/1.25 var(--ui-body); }
.places-grid small { color: var(--ui-ink-soft); font-weight: 700; font-size: 11px; }
.shortcut-list { background: var(--ui-mist); border: 2px solid #c9dbe4; border-radius: 14px; font-weight: 700; }
.shortcut-list kbd {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  padding: 2px 6px;
  border: 1.5px solid var(--ui-line);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--ui-paper);
}
#town-board-dialog nav { border-top: 2px dashed #c9dbe4; }
#town-board-dialog button, #current-activity button, #current-select { border-radius: 10px; font-size: 12px; }
.town-event, .playtest-card { border: 2px solid var(--ui-line); border-radius: 16px; box-shadow: 0 4px 0 var(--ui-line); background: var(--ui-paper); }
#journal { background: var(--ui-mist); }
.journal-header { background: var(--ui-paper); border-bottom: 2px solid #c9dbe4; }
.journal-header button { padding: 8px 14px; }

/* ---------- Journey (activity desk) ---------- */
.journey {
  --j-ink: var(--ui-ink);
  --j-paper: #ffffff;
  --j-line: #cfdde5;
  --j-green: var(--ui-teal-deep);
  border: 3px solid var(--ui-line);
  font-family: var(--ui-body);
  font-weight: 600;
  box-shadow: 0 6px 0 var(--ui-line), 0 30px 80px #0b243380;
}
.journey h1, .journey h2 { font-family: var(--ui-display); font-weight: 600; letter-spacing: 0; }
.journey-brand { font-family: var(--ui-display); color: var(--ui-teal-deep); }
.journey-header { background: var(--ui-mist); border-bottom: 2px solid var(--j-line); }
.journey-header button, .journey-quiet {
  border: 2px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-paper);
  color: var(--ui-ink);
  box-shadow: 0 3px 0 var(--ui-line);
  font-weight: 800;
}
#journey-nav { background: var(--ui-mist); border-right: 2px solid var(--j-line); }
#journey-nav button { border-radius: 12px; font-weight: 800; color: var(--ui-ink-soft); }
#journey-nav button[aria-current="page"] { background: var(--ui-gold); color: var(--ui-ink); box-shadow: 0 3px 0 var(--ui-line); border: 2px solid var(--ui-line); }
.journey-primary, .file-button {
  border: 2px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-green);
  color: #fff;
  box-shadow: 0 3px 0 var(--ui-line);
  font-weight: 800;
  text-shadow: 0 1px 0 #0000002a;
}
.journey-primary:hover { background: #4fd67b; }
.journey-heading > span, .journey-eyebrow { color: var(--ui-teal-deep); text-transform: uppercase; }
.journey-job-card, .journey-story-card, .journey-talk-grid > *, .journey-result, .journey-meeting { border: 2px solid var(--ui-line) !important; border-radius: 16px !important; box-shadow: 0 4px 0 var(--ui-line); background: var(--ui-paper); }

/* ---------- Town map ---------- */
#town-map-dialog {
  border: 3px solid var(--ui-line);
  background: var(--ui-paper);
  color: var(--ui-ink);
  box-shadow: 0 6px 0 var(--ui-line), 0 30px 80px #0b243380;
}
#town-map-dialog h2 { font-family: var(--ui-display); font-weight: 600; font-size: 28px; }
#town-map-dialog button {
  border: 2px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-paper);
  color: var(--ui-ink);
  box-shadow: 0 3px 0 var(--ui-line);
  font: 800 13px var(--ui-body);
}
#town-map-dialog button:hover { background: var(--ui-cream); }
#town-map-dialog input { border: 2px solid var(--ui-line); border-radius: 12px; font: 700 14px var(--ui-body); padding: 10px 12px; }
#town-map-dialog canvas, .town-map-layout > div:first-child { border-radius: 16px; }

/* ---------- Title screen ---------- */
.title-screen { background: #1b6d78; }
.title-screen::before {
  background:
    linear-gradient(180deg, #0b5a6a55, #0c3d4fa0 60%, #0a2f40e6),
    url("title-town.png") center 55% / cover;
  filter: saturate(1.25) brightness(1.05);
}
.title-screen::after { background: radial-gradient(ellipse at 50% 35%, transparent 25%, #06283360); }
.title-eyebrow {
  font: 800 12px/1.6 var(--ui-body);
  letter-spacing: .3em;
  color: var(--ui-gold);
  text-shadow: 0 2px 0 #0b2a35;
}
.town-wordmark {
  font: 700 clamp(40px, 6.4vw, 78px)/0.95 var(--ui-display);
  letter-spacing: .01em;
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow:
    0 3px 0 #ffd66b,
    0 6px 0 #1c3646,
    0 12px 26px #06283380;
  transform: perspective(600px) rotateX(6deg);
  margin: 18px -30px 6px;
}
.town-wordmark span {
  font-size: 1.32em;
  letter-spacing: .1em;
  padding-left: .1em;
  color: var(--ui-gold);
  text-shadow:
    0 3px 0 #b97f12,
    0 6px 0 #1c3646,
    0 12px 26px #06283380;
}
.title-tagline { font: 700 15px/1.6 var(--ui-body); color: #eefaff; text-shadow: 0 1px 0 #0b2a35; }
.title-screen .play-button { font-size: 21px; min-height: 60px; border-radius: 18px; }
.title-screen .title-player { font-weight: 700; color: #eefaff; }
.title-screen .title-switch { color: #ffe9b0; font-weight: 800; }
.title-foot { font: 800 10px/1.5 var(--ui-body); letter-spacing: .12em; color: #cfeef5; }
.title-clock { font: 800 12px/1.6 var(--ui-body); color: #eefaff; text-shadow: 0 1px 0 #0b2a35; }
.title-clock button { font-weight: 800; }
.tutorial-picture { border-radius: 18px; }
.tutorial-dots span { border-radius: 999px; }

/* ---------- Session menu / pause ---------- */
.first-pause-actions { gap: 9px; }
.first-pause-actions button, .welcome-dialog .first-pause-actions button {
  background: var(--ui-paper);
  border: 2px solid var(--ui-line);
  border-radius: 12px;
  color: var(--ui-ink);
  box-shadow: 0 3px 0 var(--ui-line);
  font: 800 14px/1.3 var(--ui-body);
  padding: 10px 16px;
  transition: transform .08s, background .12s;
}
.first-pause-actions button:hover { background: var(--ui-cream); transform: translateY(-1px); }
.first-pause-actions button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ui-line); }
.first-pause-actions .block-button, .welcome-dialog .first-pause-actions .block-button { background: var(--ui-gold); }
.welcome-button-row button, .welcome-dialog button:not(.block-button):not(.danger-button):not(.player-card):not(.title-switch):not(.character-swatches button):not(.colour-dot) {
  border: 2px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-paper);
  color: var(--ui-ink);
  box-shadow: 0 3px 0 var(--ui-line);
  font: 800 14px/1.3 var(--ui-body);
  padding: 9px 14px;
}
.welcome-dialog button:not(.block-button):not(.danger-button):not(.character-swatches button):not(.colour-dot):hover { background: var(--ui-cream); }
.character-swatches button { border: 2px solid var(--ui-line); border-radius: 50%; box-shadow: 0 3px 0 var(--ui-line); background: var(--swatch); }
.character-swatches button[aria-pressed="true"] { outline: 3px solid var(--ui-gold); outline-offset: 2px; }
.has-character #player-form > button[type="submit"] { box-shadow: 0 4px 0 var(--ui-line), 0 -12px 0 #ffffff; }
.welcome-dialog-head > button { font-size: 16px; }

/* ---------- Small screens ---------- */
@media (max-width: 650px) {
  body > header, .first-playable > header { height: 56px; padding: 0 12px; }
  .world-shell, .first-playable > .world-shell { height: calc(100dvh - 56px); }
  .town-toolbar button { padding: 8px 10px; font-size: 12px; }
  .madrid-clock { top: 112px; left: 12px; padding: 6px 10px; }
  .place-tag { top: 92px; left: 12px; }
  #town-object-info { top: 60px; right: 12px; }
  .minimap-panel { width: 130px; }
  .minimap-panel canvas { height: 108px; }
  .town-panel-title h2, .welcome-dialog h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  #town-notifications p { animation: none; }
}
