
@font-face {
  font-family: "Cinzel Decorative";
  src: url("assets/fonts/CinzelDecorative-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("assets/fonts/CinzelDecorative-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("assets/fonts/CrimsonText-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("assets/fonts/CrimsonText-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("assets/fonts/CrimsonText-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "IM Fell French Canon";
  src: url("assets/fonts/IMFellFrenchCanon-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* Training Hall — painted yard · parchment · wood · brass */
:root {
  --bg: #1a120c;
  --text: #f3e6d0;
  --muted: #c4a574;
  --ink: #2a1a0c;
  --gold: #f5c542;
  --brass: #c49048;
  --wood: #5a3a1c;
  --wood-dark: #3a2818;
  --parchment: #e8d4a8;
  --good: #5ddea8;
  --danger: #c44048;
  --warrior: #c43c55;
  --ranger: #4a8a68;
  --mage: #6a5a9a;
  --radius: 10px;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  font-family: "Crimson Text", Georgia, serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;   /* ns2: lock page scroll; More sheet scrolls inside */
  min-height: 0;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(120, 80, 36, 0.4) 0%, transparent 55%),
    radial-gradient(1100px 520px at 70% 40%, rgba(60, 100, 70, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #2a1c12 0%, #1a120c 55%, #120c08 100%);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a { color: #e0b060; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
code { font-size: 0.85em; color: #f0d78c; }
em { font-style: italic; color: var(--muted); }

.app {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 14px 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.brand h1 {
  margin: 0;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 1.35rem;
  color: #f3e2b8;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 0 #3a2410, 0 0 18px rgba(255, 180, 60, 0.25);
}
.brand .tag {
  display: inline-block;
  margin-top: 2px;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.85rem;
  color: #c4a574;
  text-transform: none;
  letter-spacing: 0.02em;
}
.nav { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.92rem; }
.nav a { color: #b89868; font-family: "Crimson Text", Georgia, serif; }
.nav a.active { color: #f0e0c0; font-weight: 700; }

/* Leather pouch HUD */
.pouch-hud, .player-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #5a3e28 0%, #3a2818 100%);
  border: 2px solid #8a6238;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 220, 160, 0.15);
}
.hud-cell .label {
  display: block;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.72rem;
  color: #d4b888;
  text-transform: none;
  letter-spacing: 0.02em;
}
.hud-cell strong {
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 1.1rem;
  color: #f8ecd0;
}
.hud-cell.gems strong { color: var(--gold); }
.hud-cell.writ strong { color: #a8e0c8; }
.hud-cell.hero-pow strong { color: #d4b8f0; }
.hud-cell.acct-pow strong { color: #f0d78c; }
.hud-cell .regen {
  display: block;
  font-size: 0.72rem;
  color: #a88860;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid #6a4a28;
  background: linear-gradient(180deg, #5a3e28, #3a2818);
  color: #f0e0c0;
  font-family: "IM Fell French Canon", "Crimson Text", Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.08s, filter 0.15s;
  box-shadow: 0 3px 0 #2a180c;
}
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #2a180c; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 0.82rem; }
.btn.gold {
  background: linear-gradient(180deg, #8a6430, #5a3e18);
  border-color: #c49048;
  color: #fff6e0;
}
.btn.ghost {
  background: transparent;
  border-color: rgba(138, 98, 56, 0.55);
  color: #c4a574;
  box-shadow: none;
}
.btn.danger {
  background: linear-gradient(180deg, #6a2828, #3a1414);
  border-color: #8a3840;
  color: #f0c0c0;
}
.btn.primary {
  background: linear-gradient(180deg, #4a3a6a, #2a1e40);
  border-color: #7a6aa0;
  color: #e8e0f8;
}
.btn.good {
  background: linear-gradient(180deg, #2a5a40, #1a3828);
  border-color: #4a8a68;
  color: #c8f0d8;
}

.parchment-plaque, .unlock-note {
  margin: 0 auto 12px;
  max-width: 640px;
  padding: 10px 16px;
  text-align: center;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.92rem;
  color: var(--ink);
  background: linear-gradient(180deg, #d8c49a, #c4a878);
  border: 2px solid #6a4a28;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.parchment-plaque a, .unlock-note a { color: #6a3a10; font-weight: 700; }

.event-rush-banner {
  margin-bottom: 12px;
  padding: 12px 14px;
  font-family: "Crimson Text", Georgia, serif;
  background: linear-gradient(135deg, #6a3a18, #4a2818);
  border: 2px solid #c49048;
  border-radius: 8px;
  color: #f8ecd0;
  text-align: center;
}
.event-rush-banner .event-live-tag {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 4px;
  background: #8a2820;
  border-radius: 4px;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Full-bleed training yard */
.yard-scene {
  position: relative;
  min-height: min(78vh, 720px);
  margin: 0 -6px 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #5a3a1c;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  background: #2a1c10;
}
.yard-bg {
  position: absolute;
  inset: 0;
  background: url("assets/town/rooms/room_training_hall.png") center 35% / cover no-repeat;
  filter: saturate(1.06) contrast(1.03) brightness(1.04);
  transform: scale(1.02);
}
.yard-vignet {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 10, 4, 0.1) 0%, transparent 20%, transparent 72%, rgba(10, 5, 2, 0.32) 100%);
}
.yard-sign {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 14px 16px 8px;
  pointer-events: none;
}
.yard-sign h2 {
  margin: 0;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: clamp(1.4rem, 4.5vw, 2.1rem);
  font-weight: 700;
  color: #f3e2b8;
  letter-spacing: 0.06em;
  text-shadow:
    0 2px 0 #3a2410,
    0 0 18px rgba(255, 180, 60, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.7);
}
.yard-mood {
  margin: 4px 0 0;
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
  color: #d8c4a0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.pad-floor {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 12px 20px;
}
@media (max-width: 640px) {
  .pad-floor { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.pad {
  position: relative;
  min-height: 168px;
  min-width: 0;
  padding: 12px 8px 14px;
  border-radius: 50% 50% 12px 12px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 70%, rgba(232, 212, 168, 0.22) 0%, transparent 65%),
    linear-gradient(165deg, rgba(90, 62, 40, 0.88), rgba(42, 28, 18, 0.92));
  border: 3px solid #8a6238;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.08s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 220, 160, 0.12);
  color: #f3e6d0;
  -webkit-tap-highlight-color: transparent;
}
.pad:hover:not(.locked) {
  border-color: #d4b04a;
  box-shadow: 0 0 22px rgba(245, 197, 66, 0.28), 0 8px 20px rgba(0, 0, 0, 0.45);
}
.pad.locked {
  opacity: 0.7;
  cursor: default;
  border-style: dashed;
  border-color: #6a5848;
  filter: grayscale(0.25);
}
.pad.active-session {
  border-color: #c49048;
  box-shadow: 0 0 24px rgba(255, 180, 60, 0.3), 0 8px 20px rgba(0, 0, 0, 0.45);
}
.pad.camp-lock {
  border-color: #a04850;
  box-shadow: 0 0 20px rgba(180, 60, 70, 0.28), 0 8px 20px rgba(0, 0, 0, 0.45);
}
.pad.selected {
  outline: 3px solid #f0d78c;
  outline-offset: 3px;
}
.pad-num {
  position: absolute;
  top: 8px; left: 10px;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e8d4a8;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.pad-ring {
  position: relative;
  width: 78px;
  height: 78px;
  margin-top: 10px;
}
.pad-ring svg {
  width: 78px;
  height: 78px;
  transform: rotate(-90deg);
}
.pad-ring .track {
  fill: none;
  stroke: rgba(255, 220, 160, 0.18);
  stroke-width: 5;
}
.pad-ring .prog {
  fill: none;
  stroke: #e8c060;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.35s linear;
  filter: drop-shadow(0 0 4px rgba(255, 180, 40, 0.55));
}
.pad-ring.camp .prog { stroke: #e07070; filter: drop-shadow(0 0 4px rgba(220, 80, 80, 0.5)); }
.pad-ring .avatar {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #1a1008 center/cover no-repeat;
  border: 2px solid #c49048;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.pad-ring .avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.pad-ring .empty-glyph {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px dashed rgba(212, 176, 74, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: rgba(232, 212, 168, 0.55);
  background: rgba(40, 24, 12, 0.35);
}
.pad-meta { text-align: center; width: 100%; }
.pad-meta .pname {
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8ecd0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.pad-meta .pstatus {
  font-size: 0.78rem;
  color: #d4b888;
  margin-top: 2px;
  font-style: italic;
}
.pad-meta .ptime {
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.88rem;
  color: #f0d78c;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.pad.camp-lock .pad-meta .ptime { color: #f0a0a0; }
.pad-class-icon {
  width: 22px; height: 22px; margin-top: 2px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
.pad-lock-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(20, 12, 6, 0.75);
  color: #d4b888;
  border: 1px solid #6a4a28;
  font-family: "Crimson Text", Georgia, serif;
  max-width: 55%;
  text-align: right;
  line-height: 1.2;
}
.pad-lock-badge.gem { color: var(--gold); border-color: rgba(245, 197, 66, 0.45); }
.pad-lock-badge.camp {
  color: #f0a0a0;
  border-color: rgba(200, 80, 90, 0.5);
  max-width: 70%;
  font-size: 0.6rem;
}

.pad[data-pad="1"] { border-color: #8a9aaa; }
.pad[data-pad="2"] { border-color: #c4a040; }
.pad[data-pad="3"] { border-color: #8a6aaa; }
.pad[data-pad="4"] { border-color: #4a8a58; }
.pad[data-pad="5"] { border-color: #a85838; }
.pad[data-pad="6"] { border-color: #4a88aa; }

.cols {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 780px) {
  .cols { grid-template-columns: 1fr; }
}

.panel, .plank {
  padding: 14px 14px 16px;
  margin-bottom: 0;
  background: linear-gradient(165deg, #4a3420 0%, #2e1c10 100%);
  border: 2px solid #8a6238;
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 220, 160, 0.08);
}
.shop-panel { margin-bottom: 12px; padding: 14px; }
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.panel-head h3 {
  margin: 0;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #f3e2b8;
}
.panel-head .hint {
  font-size: 0.82rem;
  color: #c4a574;
  font-style: italic;
}

.roster { display: grid; gap: 8px; }
.hero-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  min-height: 64px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(232, 212, 168, 0.12), rgba(20, 12, 6, 0.35));
  border: 2px solid #6a4a28;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  color: inherit;
}
.hero-card:hover { border-color: #c49048; }
.hero-card.selected {
  border-color: #f0d78c;
  background: rgba(200, 150, 60, 0.18);
}
.hero-card.locked { opacity: 0.7; }
.hero-card.in-camp { border-color: #a04850; }
.hero-card .thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: #1a1008 center/cover no-repeat;
  border: 2px solid #8a6238;
  overflow: hidden;
}
.hero-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-card .info .name {
  font-family: "IM Fell French Canon", Georgia, serif;
  font-weight: 700;
  font-size: 0.98rem;
}
.hero-card .info .meta {
  font-size: 0.78rem;
  color: #c4a574;
  margin-top: 1px;
}
.hero-card .pow {
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.95rem;
  color: #f0d78c;
}

.desk .empty-desk {
  margin: 8px 0;
  font-style: italic;
  color: #c4a574;
  text-align: center;
}
.desk .desk-hero {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.desk .desk-hero img {
  width: 72px; height: 72px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  border: 2px solid #8a6238;
}
.desk h4 {
  margin: 0 0 4px;
  font-family: "IM Fell French Canon", Georgia, serif;
  color: #f3e2b8;
}
.desk .meta { font-size: 0.85rem; color: #c4a574; margin: 0 0 8px; }
.desk .class-picks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.desk .class-pick {
  flex: 1;
  min-width: 88px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  border-radius: 10px;
  border: 2px solid #6a4a28;
  background: rgba(20, 12, 6, 0.4);
  color: #f0e0c0;
  cursor: pointer;
}
.desk .class-pick.selected {
  border-color: #f0d78c;
  background: rgba(200, 150, 60, 0.22);
}
.desk .class-pick img { width: 28px; height: 28px; }
.desk .action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.desk .action-row .btn { flex: 1; min-width: 120px; }

.shop-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 640px) {
  .shop-row { grid-template-columns: 1fr; }
}
.shop-card {
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(165deg, #e8d4a8, #c8a878);
  border: 2px solid #6a4a28;
  color: var(--ink);
  text-align: center;
}
.shop-card strong {
  display: block;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.shop-card p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #4a3420;
  font-style: italic;
}
.shop-card .btn { width: 100%; }

.dev-drawer {
  margin: 8px 0 0;
  border: 1px dashed #5a4a38;
  border-radius: 8px;
  background: rgba(20, 12, 6, 0.85);
  color: #8a7048;
  font-size: 0.78rem;
}
.dev-drawer summary {
  cursor: pointer;
  padding: 6px 12px;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #8a7048;
  list-style: none;
}
.dev-drawer summary::-webkit-details-marker { display: none; }
.dev-drawer[open] summary { border-bottom: 1px solid #4a3828; color: #c4a574; }
.dev-drawer-body { padding: 10px 12px 12px; }
.lab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lab-note {
  margin: 10px 0 0;
  color: #8a7048;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  left: 50%;
  top: 72px;
  bottom: auto;
  transform: translateX(-50%);
  z-index: 80;
  max-width: min(420px, 92vw);
  padding: 12px 18px;
  background: linear-gradient(180deg, #5a3e28, #3a2818);
  border: 2px solid #c49048;
  border-radius: 8px;
  color: #f8ecd0;
  font-family: "Crimson Text", Georgia, serif;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  text-align: center;
}
.toast[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(12, 6, 2, 0.72);
}
.modal[hidden] { display: none !important; }
.parchment-modal, .modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 24px 20px 18px;
  background: linear-gradient(165deg, #f0e0c0, #d4b888);
  border: 3px solid #6a4a28;
  border-radius: 6px 16px;
  color: #2a1a0c;
  font-family: "Crimson Text", Georgia, serif;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.parchment-modal h3, .modal-card h3 {
  margin: 0 0 8px;
  font-family: "Cinzel Decorative", Georgia, serif;
  color: #3a2410;
}
.parchment-modal p, .modal-card p { color: #4a3420; }
.modal-x {
  position: absolute;
  top: 8px; right: 10px;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: #5a3a1c;
  cursor: pointer;
}
.modal .action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.modal .action-row .btn { flex: 1; min-width: 100px; color: #f0e0c0; }

/* Legacy chrome stubs (no-op layout) */
.chrome { position: relative; }
.chrome .c-tr, .chrome .c-bl { display: none; }

@media (max-width: 420px) {
  .yard-scene { min-height: 64vh; border-width: 2px; }
  .pad { min-height: 150px; padding: 10px 6px 12px; }
  .pad-ring { width: 68px; height: 68px; }
  .pad-ring svg { width: 68px; height: 68px; }
  .app { padding: 10px 10px 48px; }
}

@media (min-width: 1100px) {
  .yard-scene { min-height: 560px; }
  .pad-floor { max-width: 780px; gap: 16px; }
}



/* —— train5: painted rings as slots (no card chrome) —— */
.yard-scene {
  position: relative;
  min-height: 0;
  height: min(52vh, 420px);
  margin: 0 -6px 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #5a3a1c;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  background: #2a1c10;
}
.yard-bg {
  position: absolute;
  inset: 0;
  background: url("assets/town/rooms/room_training_hall.png") center 42% / cover no-repeat;
  filter: saturate(1.06) contrast(1.02) brightness(1.08);
  transform: none;
}
.yard-vignet {
  background:
    linear-gradient(180deg, rgba(20, 10, 4, 0.18) 0%, transparent 22%, transparent 78%, rgba(10, 5, 2, 0.28) 100%) !important;
}
.yard-sign {
  padding: 8px 12px 4px;
}
.yard-sign h2 {
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  text-shadow: 0 2px 0 #3a2410, 0 0 14px rgba(255, 180, 60, 0.3), 0 4px 12px rgba(0,0,0,0.75);
}
.yard-mood {
  margin: 2px 0 0;
  font-size: 0.85rem;
}

.pad-floor {
  position: absolute;
  z-index: 3;
  left: 4%;
  right: 4%;
  top: 28%;
  bottom: 4%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 2% 3%;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.pad-floor .pad { pointer-events: auto; }

.pad.ring-slot {
  position: relative;
  min-height: 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  color: #f8ecd0;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.pad.ring-slot:hover,
.pad.ring-slot:focus-visible {
  filter: brightness(1.06);
}
.pad.ring-slot.selected::after {
  content: "";
  position: absolute;
  inset: 8% 10% 4%;
  border: 3px solid #f0d78c;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 200, 80, 0.45);
  pointer-events: none;
}
.pad.ring-slot .pad-num,
.pad.ring-slot .pad-meta,
.pad.ring-slot .pad-lock-badge,
.pad.ring-slot .pad-class-icon { display: none !important; }

.ring-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  padding-bottom: 2%;
}
.ring-portrait {
  width: min(72px, 22vw);
  height: min(88px, 26vw);
  object-fit: cover;
  object-position: top center;
  border-radius: 10px 10px 4px 4px;
  border: 2px solid #c49048;
  box-shadow: 0 6px 14px rgba(0,0,0,0.55);
  background: #1a1008;
  position: relative;
  z-index: 2;
}
.ring-prog {
  position: absolute;
  top: -6px;
  width: min(78px, 24vw);
  height: min(78px, 24vw);
  z-index: 1;
  opacity: 0.95;
  pointer-events: none;
}
.ring-prog svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-name {
  margin-top: 3px;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.ring-status {
  font-size: 0.68rem;
  color: #f0d78c;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.ring-empty {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  padding-bottom: 18%;
}
.tap-hint {
  padding: 4px 8px;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.72rem;
  font-style: italic;
  color: #2a1a0c;
  background: linear-gradient(180deg, #f0e0c0, #d4b888);
  border: 1.5px solid #8a6238;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  opacity: 0.92;
}

.ring-locked {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding-bottom: 14%;
  gap: 4px;
}
.ring-padlock {
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.7));
}
.wood-tag {
  max-width: 92%;
  padding: 3px 7px;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.65rem;
  line-height: 1.2;
  text-align: center;
  color: #f0e0c0;
  background: linear-gradient(180deg, #6a4a28, #3a2818);
  border: 1.5px solid #c49048;
  border-radius: 3px;
  box-shadow: 0 2px 0 #2a180c, 0 3px 8px rgba(0,0,0,0.4);
}

.pad.locked { opacity: 1; filter: none; }
.pad.active-session .ring-portrait {
  box-shadow: 0 0 14px rgba(255, 180, 60, 0.45), 0 6px 14px rgba(0,0,0,0.55);
}
.pad.camp-lock .ring-portrait {
  box-shadow: 0 0 12px rgba(200, 60, 70, 0.4), 0 6px 14px rgba(0,0,0,0.55);
}

/* Compact roster + stats icons for phone fit */
.cols { gap: 8px; margin-bottom: 8px; }
.panel.plank { padding: 10px 10px 12px; }
.hero-card {
  min-height: 56px;
  padding: 6px 8px;
  gap: 8px;
  grid-template-columns: 48px 1fr auto;
}
.hero-card .thumb { width: 48px; height: 48px; }
.stat-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 4px;
}
.stat-icons .si {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.82rem;
  color: #f0e0c0;
}
.stat-icons .si i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.stat-icons .si.might i { background: radial-gradient(circle at 35% 30%, #e87070, #8a2028); }
.stat-icons .si.aim i { background: radial-gradient(circle at 35% 30%, #70d090, #286a38); }
.stat-icons .si.arcane i { background: radial-gradient(circle at 35% 30%, #b090e8, #483878); }
.stat-icons .si.vit i { background: radial-gradient(circle at 35% 30%, #f0c070, #8a5820); }
.stat-icons .si b { font-weight: 700; }

.pow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0d78c, #c49048);
  border: 2px solid #8a6238;
  color: #2a1a0c;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 2px 0 #3a2818;
}
.hero-card .pow .label { display: none; }
.hero-card .pow strong { display: none; }

.shop-panel { margin-top: 4px; }

@media (max-width: 420px) {
  .yard-scene { height: min(48vh, 380px); }
  .ring-portrait {
    width: min(64px, 20vw);
    height: min(78px, 24vw);
  }
  .tap-hint { font-size: 0.68rem; padding: 3px 6px; }
  .wood-tag { font-size: 0.6rem; }
  body.room-page .app { padding-top: 58px; padding-bottom: 24px; }
}

@media (min-width: 900px) {
  .yard-scene { height: min(56vh, 520px); }
  .pad-floor { top: 30%; left: 18%; right: 18%; }
  .ring-portrait { width: 84px; height: 102px; }
}

.yard-mood {
  display: inline-block;
  margin: 4px auto 0 !important;
  padding: 4px 12px;
  color: #2a1a0c !important;
  background: linear-gradient(180deg, #f0e0c0, #d4b888);
  border: 1.5px solid #6a4a28;
  border-radius: 4px;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.tap-hint {
  font-size: 0.65rem !important;
  padding: 2px 6px !important;
  opacity: 0.88;
}
.stat-icons { gap: 8px 12px !important; }

/* —— train6: simplicity pass — pads + one sentence + one big action + goal; More holds the rest —— */
.top-hud .back-town.has-lbl,
.top-hud .menu-btn.has-lbl {
  width: auto; min-width: 44px; height: 44px; padding: 0 10px;
  border-radius: 22px; display: inline-flex; align-items: center; gap: 5px;
}
.top-hud .menu-btn.has-lbl { border-radius: 12px; }
.has-lbl .lbl { font-style: normal; font-family: "IM Fell French Canon", Georgia, serif; font-size: 0.85rem; font-weight: 700; }
.pill-stack { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.pill-stack strong { font-size: 0.85rem; }
.pill-lbl { font-style: normal; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.03em; color: #5a4028; margin-top: 1px; }
@media (max-width: 440px) {
  .top-hud { gap: 5px; padding-left: 8px; padding-right: 8px; }
  .top-hud .pill-row { gap: 4px; flex-wrap: nowrap; }
  .top-hud .pill { padding: 4px 7px; gap: 4px; }
  .top-hud .back-town.has-lbl, .top-hud .menu-btn.has-lbl { padding: 0 8px; min-width: 40px; height: 40px; }
  .top-hud .pill.coin, .top-hud .pill.gold { display: none; }
}
.pouch-grid .sack { cursor: help; }

/* sentence on the sign */
.yard-sign .hero-line {
  font-size: clamp(0.9rem, 3.4vw, 1.08rem) !important;
  font-style: normal !important;
  max-width: 34ch;
  line-height: 1.25;
}

/* pad tags: bigger, readable, every pad says what it is */
.tap-hint {
  font-size: 0.8rem !important;
  font-style: normal !important;
  font-weight: 700;
  padding: 4px 9px !important;
  opacity: 1 !important;
}
.wood-tag { font-size: 0.72rem; padding: 4px 8px; }
.ring-name { font-size: 0.9rem; }
.ring-status {
  margin-top: 2px;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2a1a0c;
  text-shadow: none;
  background: linear-gradient(180deg, #f0e0c0, #d4b888);
  border: 1px solid #8a6238;
}
.pad.camp-lock .ring-status { border-color: #8a3840; }
@media (max-width: 420px) {
  .tap-hint { font-size: 0.7rem !important; padding: 3px 6px !important; }
  .wood-tag { font-size: 0.64rem; }
  .ring-status { font-size: 0.7rem; }
}

/* the one primary action + goal */
.hall-actions {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin: 4px 0 12px;
}
.btn.big-start, .btn.big-claim {
  min-height: 64px;
  min-width: min(300px, 86vw);
  padding: 12px 28px;
  font-size: clamp(1.25rem, 4.6vw, 1.55rem);
  letter-spacing: 0.03em;
  border-radius: 14px;
  border: 3px solid #6a1a14;
  color: #fff4e0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 190, 150, 0.35), transparent 60%),
    linear-gradient(180deg, #b8382c, #7a1c16);
  box-shadow: 0 5px 0 #4a0e0a, 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 210, 160, 0.25);
  text-shadow: 0 2px 0 rgba(60, 10, 6, 0.7);
}
.btn.big-start:hover:not(:disabled) { filter: brightness(1.08); border-color: #8a2a20; }
.btn.big-start.sm { min-height: 48px; min-width: 0; font-size: 1.05rem; padding: 8px 18px; }
.btn.big-claim {
  min-height: 52px; font-size: 1.1rem; margin-top: 8px; width: 100%;
  border-color: #8a6420;
  background: linear-gradient(180deg, #f0c850, #b88420);
  color: #2a1a0c; text-shadow: none;
  box-shadow: 0 4px 0 #6a4a10, 0 0 18px rgba(255, 200, 60, 0.6);
  animation: claimGlow 1.4s ease-in-out infinite;
}
@keyframes claimGlow { 50% { box-shadow: 0 4px 0 #6a4a10, 0 0 30px rgba(255, 210, 80, 0.95); } }
.start-cost {
  margin: 0;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.98rem;
  color: #f3e6d0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
.goal-card {
  width: min(420px, 92vw);
  padding: 10px 14px 12px;
  background: linear-gradient(180deg, #f0e0b8, #d4b888);
  border: 2px solid #6a4a28;
  border-radius: 8px;
  color: #2a1a0c;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.goal-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; align-items: baseline; }
.goal-title { font-family: "IM Fell French Canon", Georgia, serif; font-weight: 700; font-size: 1.02rem; }
.goal-reward { font-family: "Crimson Text", Georgia, serif; font-size: 0.95rem; color: #5a3410; font-weight: 700; }
.goal-bar { margin-top: 7px; height: 12px; border-radius: 6px; background: #8a7050; border: 1px solid #5a3a1c; overflow: hidden; }
.goal-bar.big { height: 16px; border-radius: 8px; }
.goal-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c49030, #f5d060); transition: width 0.4s ease; }

/* More toggle + area */
.btn.more-toggle {
  display: flex;
  margin: 6px auto 10px;
  min-height: 52px;
  min-width: min(360px, 92vw);
  font-size: 1.05rem;
  background: linear-gradient(180deg, #6a4a2c, #43301c);
  border-color: #c49048;
}
.more-area[hidden] { display: none !important; }
.tabs.sign-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 10px; }
.tab.sign-tab {
  min-height: 46px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid #6a4a28;
  background: linear-gradient(180deg, #d8c49a, #b8986a);
  color: #2a1a0c;
  font: 700 0.98rem "IM Fell French Canon", Georgia, serif;
  box-shadow: 0 3px 0 #3a2818;
  cursor: pointer;
}
.tab.sign-tab.active { background: linear-gradient(180deg, #f5e6c0, #e0c890); border-color: #c49048; box-shadow: 0 3px 0 #6a4a28, 0 0 10px rgba(255, 200, 80, 0.35); }
.tab-panel[hidden] { display: none !important; }
.hero-card { grid-template-columns: 52px 1fr auto; min-height: 64px; cursor: default; }
.hero-card .thumb { width: 52px; height: 52px; }
.hero-card .info .name { font-size: 1.02rem; }
.busy-word { color: #f0b0a0; font-weight: 700; }
.stat-icons .si { font-size: 0.8rem; }
.stat-icons .si b { margin-left: 2px; }
.pow-badge em { font-style: normal; font-size: 0.72rem; margin-right: 3px; color: #5a3410; }
.btn-unlock-hero { min-height: 44px; }
.shop-card .btn { min-height: 48px; }
.rule-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .rule-cards { grid-template-columns: 1fr; } }
.rule-card {
  padding: 10px 12px; border-radius: 8px;
  background: linear-gradient(165deg, #e8d4a8, #c8a878); border: 2px solid #6a4a28; color: #2a1a0c;
}
.rule-card h4 { margin: 0 0 4px; font-family: "IM Fell French Canon", Georgia, serif; font-size: 1.05rem; }
.rule-card p { margin: 0; font-family: "Crimson Text", Georgia, serif; font-size: 0.98rem; line-height: 1.3; }
.rule-sub { margin: 14px 0 6px; font-family: "IM Fell French Canon", Georgia, serif; color: #f3e2b8; font-size: 1rem; }
.can-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.can-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 6px;
  background: rgba(20, 12, 6, 0.45); border: 1px solid #5a3e24;
  font-family: "Crimson Text", Georgia, serif; font-size: 0.98rem; color: #f0e0c0;
}
.can-list .tag { flex-shrink: 0; padding: 2px 8px; border-radius: 4px; font: 700 0.78rem "IM Fell French Canon", Georgia, serif; }
.can-list .ok .tag { background: #2a5a40; color: #d8f4e0; }
.can-list .no .tag { background: #8a2820; color: #ffe4dc; }
.can-list .soft .tag { background: #8a6430; color: #fff4dc; }
.rule-note { margin: 10px 0 0; font-family: "Crimson Text", Georgia, serif; color: #d8c4a0; font-size: 0.95rem; }

/* sheets (train flow / check-in) */
.modal-card { max-width: 480px; width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; }
.modal-card h3 { margin-top: 0; }
.flow-pad { margin: -4px 0 6px; font-size: 0.9rem; color: #6a4a28 !important; }
.flow-q { margin: 12px 0 6px; font-family: "IM Fell French Canon", Georgia, serif; font-size: 1.02rem; color: #3a2410; display: flex; align-items: center; gap: 6px; }
.flow-heroes { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-hero {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 92px; padding: 6px 4px 8px;
  border-radius: 10px; border: 2px solid #8a6238;
  background: linear-gradient(180deg, #f0e0c0, #d4b888);
  color: #2a1a0c; cursor: pointer; font: inherit;
}
.flow-hero img { width: 60px; height: 72px; object-fit: cover; object-position: top center; border-radius: 6px; background: #1a1008; }
.flow-hero.selected { border-color: #7a1c16; box-shadow: 0 0 0 3px #f0c850, 0 3px 10px rgba(0,0,0,0.35); }
.fh-name { font: 700 0.92rem "IM Fell French Canon", Georgia, serif; }
.fh-pow { font-size: 0.75rem; color: #5a3410; }
.flow-class-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.flow-class-line img { width: 28px; height: 28px; }
.flow-class-line .btn.ghost { color: #5a3410; border-color: #8a6238; }
.class-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.class-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 84px; padding: 8px 4px;
  border-radius: 10px; border: 2px solid #8a6238;
  background: linear-gradient(180deg, #f0e0c0, #d4b888);
  color: #2a1a0c; font: 700 0.95rem "IM Fell French Canon", Georgia, serif; cursor: pointer;
}
.class-btn img { width: 32px; height: 32px; }
.class-btn small { font: 0.75rem "Crimson Text", Georgia, serif; color: #5a3410; }
.class-btn.selected { border-color: #7a1c16; box-shadow: 0 0 0 3px #f0c850; }
.flow-len { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .flow-len { grid-template-columns: 1fr; } }
.btn.len-btn {
  flex-direction: column; gap: 2px; min-height: 72px; padding: 10px 12px;
  border-radius: 12px; border-width: 3px;
}
.btn.len-btn .len-main { font-size: 1.2rem; }
.btn.len-btn .len-sub { font: 0.85rem "Crimson Text", Georgia, serif; font-weight: 600; opacity: 0.95; }
.btn.len-btn.short { background: linear-gradient(180deg, #b8382c, #7a1c16); border-color: #6a1a14; color: #fff4e0; box-shadow: 0 4px 0 #4a0e0a; }
.btn.len-btn.long { background: linear-gradient(180deg, #8a6430, #5a3e18); border-color: #c49048; color: #fff6e0; box-shadow: 0 4px 0 #3a2410; }
.checkin-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.checkin-head img { width: 64px; height: 78px; object-fit: cover; object-position: top center; border-radius: 8px; border: 2px solid #8a6238; background: #1a1008; }
.checkin-head h3 { margin: 0; }
.ci-left { margin: 6px 0 4px; text-align: center; font-size: 1.1rem; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.modal-actions .btn { flex: 1 1 140px; min-height: 48px; }
.modal-card .btn.ghost { color: #5a3410; border-color: #8a6238; }
.modal-card .meta { color: #6a4a28 !important; }

/* tooltips */
.tip-i {
  width: 24px; height: 24px; padding: 0; border-radius: 50%;
  border: 1.5px solid #8a6238; background: #f0e0b8; color: #3a2410;
  font: 700 0.85rem/1 Georgia, serif; display: inline-grid; place-items: center; cursor: help;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.tip-bubble {
  position: fixed; z-index: 400; padding: 8px 11px; border-radius: 8px;
  background: #2a1a0c; border: 1.5px solid #c49048; color: #f3e6d0;
  font: 0.9rem/1.3 "Crimson Text", Georgia, serif; box-shadow: 0 6px 18px rgba(0,0,0,0.5); pointer-events: none;
}
.tip-bubble[hidden] { display: none !important; }
[data-tip] { cursor: help; }
button[data-tip], a[data-tip] { cursor: pointer; }

/* walkthrough */
.coach { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.coach[hidden], .coach.card-hidden { display: none !important; }
.coach-spot {
  position: fixed; border-radius: 14px; border: 3px solid #f0d78c;
  box-shadow: 0 0 0 9999px rgba(10, 5, 2, 0.62), 0 0 22px rgba(255, 200, 80, 0.8);
  transition: all 0.25s ease; animation: coachPulse 1.3s ease-in-out infinite;
}
@keyframes coachPulse { 50% { box-shadow: 0 0 0 9999px rgba(10, 5, 2, 0.62), 0 0 36px rgba(255, 210, 90, 1); } }
.coach-card {
  position: fixed; pointer-events: auto; padding: 12px 14px; border-radius: 10px;
  background: linear-gradient(165deg, #f5e8c8, #dcc090); border: 3px solid #6a4a28; color: #2a1a0c;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.coach-step { margin: 0 0 4px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7a5430; font-weight: 700; }
.coach-text { margin: 0 0 10px; font: 1.05rem/1.35 "Crimson Text", Georgia, serif; }
.coach-actions { display: flex; justify-content: space-between; gap: 8px; }
.coach-actions .btn.ghost { color: #5a3410; border-color: #8a6238; }
.coach-arrow { position: absolute; width: 0; height: 0; margin-left: -12px; border: 12px solid transparent; }
.coach-arrow.up { top: -24px; border-bottom-color: #6a4a28; }
.coach-arrow.down { bottom: -24px; border-top-color: #6a4a28; }
.btn[hidden], .dev-drawer[hidden] { display: none !important; }
/* train6 polish: readable Town/Menu labels, toast off the sign, name plaque on busy pads */
.top-hud .has-lbl .lbl { color: #2a1a0c; opacity: 1; }
body.room-page p.toast#toast { top: auto !important; bottom: max(18px, env(safe-area-inset-bottom)) !important; z-index: 250 !important; }
.ring-name {
  padding: 0 7px;
  border-radius: 4px;
  background: rgba(30, 16, 6, 0.72);
  color: #fff4dc;
}
/* races_v1: other-race heroes wait for their alliance */
.race-lock { display: inline-block; max-width: 150px; font-size: .82rem; line-height: 1.15; color: #7a1414; font-weight: 700; text-align: right; }
/* campowned_v1: a class this hero has not opened yet (hero_roster.js) */
.class-btn.locked { opacity: .62; filter: grayscale(.85); border-style: dashed; cursor: not-allowed; }
.class-btn.locked small { font-weight: 700; color: #7a1c16; }

/* night1: More = full-screen sheet, one tab at a time, no page scroll */
.more-area:not([hidden]) {
  position: fixed; inset: 0; z-index: 70; margin: 0; max-width: none;
  display: flex; flex-direction: column; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(42,28,18,.98), rgba(18,12,8,.98));
}
.more-area .tabs { flex: 0 0 auto; padding-right: 52px; margin: 0; flex-wrap: nowrap; }
.more-area .tab-panel { flex: 1 1 auto; min-height: 0; overflow: hidden; margin: 0; }
.more-close {
  position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 20;
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid #c49048;
  background: linear-gradient(180deg, #f3e2c0, #d9bf8e); color: #2a1a0c; font-size: 1.2rem; font-weight: 700; cursor: pointer;
}
body.more-open { overflow: hidden; }
.more-area .roster { gap: 5px; }
.more-area .hero-card { min-height: 0; padding: 4px 8px; grid-template-columns: 44px 1fr auto; gap: 8px; }
.more-area .hero-card .thumb { width: 44px; height: 44px; }
.more-area .panel-head { margin-bottom: 4px; }
@media (min-width: 700px) {
  .more-area:not([hidden]) { inset: 4vh calc(50% - 320px); border: 3px solid #8a6238; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
}
.more-area .race-lock, .race-lock { color: #f0c890; font-weight: 600; text-shadow: 0 1px 1px #000; }
/* dev drawer floats (no extra page height) */
.dev-drawer:not([hidden]) { position: fixed; left: 4px; bottom: 4px; z-index: 40; max-width: min(320px, 90vw); margin: 0; }
.dev-drawer:not([open]) { opacity: .6; }
.dev-drawer[open] .dev-drawer-body { max-height: 60vh; overflow: auto; }
.app { padding-bottom: 12px; }
