:root {
  --bg-obsidian: #0b0910;
  --panel-glass: rgba(16, 12, 26, 0.44);
  --panel-glass-strong: rgba(14, 10, 22, 0.72);
  --panel-input: rgba(8, 6, 15, 0.44);
  --brass-bright: #eec07b;
  --brass-mid: #cf913e;
  --brass-dark: #7a501d;
  --brass-border: rgba(220, 162, 82, 0.52);
  --brass-border-strong: rgba(238, 192, 123, 0.85);
  --crimson: #e0485a;
  --crimson-glow: rgba(224, 72, 90, 0.28);
  --violet: #a855f7;
  --violet-glow: rgba(168, 85, 247, 0.24);
  --emerald: #2dd4bf;
  --text-main: #f8f3eb;
  --text-muted: #d5cbbd;
  --text-dim: #a99e90;
  --danger-red: #ff4d5e;
  --font-display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --font-heading: 'Cinzel', Georgia, serif;
  --font-athletic: 'Chakra Petch', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-md: 10px;
  --radius-sm: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* ======================== ARENA BACKGROUND ======================== */
.arena-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('/images/bg-arena-steampunk.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(1.22) saturate(1.25) contrast(1.06);
}

.arena-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(12, 9, 20, 0.14) 0%, rgba(10, 8, 17, 0.38) 68%, rgba(7, 5, 13, 0.65) 100%),
    linear-gradient(180deg, rgba(10, 8, 16, 0.28) 0%, rgba(10, 8, 16, 0.12) 42%, rgba(9, 7, 14, 0.48) 100%);
  pointer-events: none;
}

/* Ambient Sideline Gear (Wide Desktop Margins) */
.ambient-sideline-gear {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sideline-prop {
  position: absolute;
  opacity: 0.72;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.9));
  display: none;
}

@media (min-width: 1460px) {
  .sideline-prop {
    display: block;
  }
  .sideline-skates {
    width: 195px;
    left: 18px;
    bottom: 6%;
    transform: rotate(-11deg);
  }
  .sideline-kneepad {
    width: 155px;
    right: 22px;
    top: 34%;
    transform: rotate(14deg);
  }
  .sideline-bottle {
    width: 150px;
    left: 24px;
    top: 24%;
    transform: rotate(-22deg);
  }
}

/* ======================== TOP UTILITY BAR & PINNED MONSTERS ======================== */
.top-utility-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 9, 20, 0.46);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--brass-border);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.top-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.brand-mini-crest {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(229, 173, 92, 0.4));
}

.brand-mini-text {
  display: flex;
  flex-direction: column;
}

.brand-mini-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--brass-bright);
  line-height: 1.1;
}

.brand-mini-tag {
  font-family: var(--font-athletic);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.session-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.skater-pill {
  background: rgba(200, 139, 58, 0.12);
  border: 1px solid var(--brass-border);
  border-radius: 999px;
  padding: 0.24rem 0.75rem;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.skater-pill-label {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.skater-pill-name {
  color: var(--brass-bright);
  font-family: var(--font-athletic);
  letter-spacing: 0.03em;
}

.save-indicator {
  font-family: var(--font-athletic);
  font-size: 0.76rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.save-indicator.saved {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.save-indicator.saving,
.save-indicator.unsaved {
  color: var(--brass-bright);
  background: rgba(229, 173, 92, 0.12);
  border-color: rgba(229, 173, 92, 0.3);
}

.outdated-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--danger-red);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  margin-left: 0.25rem;
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--brass-border);
  border-radius: 999px;
  padding: 0.18rem 0.35rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-athletic);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--brass-mid), var(--brass-dark));
  color: #fffdf9;
  box-shadow: 0 0 10px rgba(200, 139, 58, 0.45);
}

.lang-divider {
  color: var(--brass-dark);
  font-size: 0.75rem;
  user-select: none;
}

/* Sticky Pinned Monsters Bar */
.pinned-monsters-bar {
  background: rgba(15, 11, 25, 0.34);
  border-top: 1px solid rgba(220, 162, 82, 0.32);
  padding: 0.5rem 1.25rem 0.65rem;
}

.pinned-monsters-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.pinned-bar-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.pinned-gear-icon {
  color: var(--brass-bright);
  font-size: 0.9rem;
}

.pinned-bar-label {
  font-family: var(--font-athletic);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.73rem;
  color: var(--brass-bright);
  font-weight: 700;
}

.pinned-link-btn {
  background: none;
  border: 1px solid rgba(229, 173, 92, 0.35);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  cursor: pointer;
}

.pinned-link-btn:hover {
  color: var(--brass-bright);
  border-color: var(--brass-bright);
}

.pinned-col-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
}

.pinned-monsters-grid {
  display: grid;
  grid-template-columns: repeat(var(--active-monster-cols, 1), minmax(0, 1fr));
  gap: 0.65rem;
}

.pinned-monster-chip {
  background: rgba(8, 6, 15, 0.36);
  border: 1px solid rgba(220, 162, 82, 0.42);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.68rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.pinned-monster-chip.m1 {
  border-left-color: var(--crimson);
}
.pinned-monster-chip.m2 {
  border-left-color: var(--violet);
}
.pinned-monster-chip.m3 {
  border-left-color: var(--emerald);
}

.pinned-chip-title {
  font-family: var(--font-athletic);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  justify-content: space-between;
}

.pinned-monster-chip.m1 .pinned-chip-title { color: #ff7a88; }
.pinned-monster-chip.m2 .pinned-chip-title { color: #c084fc; }
.pinned-monster-chip.m3 .pinned-chip-title { color: #5eead4; }

.pinned-chip-desc {
  font-size: 0.83rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pinned-chip-desc.empty {
  color: var(--text-dim);
  font-style: italic;
}

/* ======================== MAIN CONTAINER & HERO ======================== */
.main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  position: relative;
  z-index: 1;
}

.hero-banner {
  background: linear-gradient(160deg, rgba(18, 13, 28, 0.46), rgba(11, 8, 19, 0.52));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--brass-border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem 1.4rem;
  margin-bottom: 1.9rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.52), inset 0 0 0 1px rgba(255, 215, 150, 0.08);
  position: relative;
}

.hero-ornament-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brass-mid), var(--crimson), var(--brass-mid), transparent);
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.35rem 0 0.25rem;
}

.hero-crest {
  width: clamp(235px, 27vw, 320px);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  margin: -0.6rem 0 -0.75rem -0.55rem;
  transform: rotate(-8.5deg);
  transform-origin: center center;
  position: relative;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 22px rgba(224, 72, 90, 0.28));
}

.hero-titles {
  flex: 1;
  min-width: 0;
  margin-left: -3.2rem;
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff8ec 0%, #eab668 58%, #b87324 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.94)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.96));
  line-height: 1.06;
}

.hero-subtitle {
  margin: 0.15rem 0 0.85rem;
  font-family: var(--font-heading);
  font-size: clamp(1.08rem, 2.05vw, 1.42rem);
  color: var(--brass-bright);
  letter-spacing: 0.08em;
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.96), 0 0 18px rgba(0, 0, 0, 0.85);
}

.hero-quote {
  margin: 0;
  padding: 0.78rem 1.25rem;
  background: rgba(8, 6, 15, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-left: 3px solid var(--crimson);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: #f9efdd;
  font-family: 'Dancing Script', 'Brush Script MT', cursive;
  font-size: clamp(1.38rem, 2.25vw, 1.68rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.015em;
  line-height: 1.45;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

/* 3-Stage Triptych */
.triptych-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.triptych-wrapper {
  margin-top: 1rem;
  transition: all 0.25s ease;
}

.triptych-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.triptych-card {
  background: rgba(9, 7, 15, 0.84);
  border: 1px solid var(--brass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.triptych-card:hover {
  transform: translateY(-3px);
  border-color: var(--brass-bright);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65), 0 0 16px rgba(229, 173, 92, 0.2);
}

.triptych-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.triptych-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.triptych-card:hover .triptych-img-wrap img {
  transform: scale(1.04);
}

.triptych-step-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: rgba(11, 9, 16, 0.88);
  border: 1px solid var(--brass-mid);
  color: var(--brass-bright);
  font-family: var(--font-athletic);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.16rem 0.5rem;
  border-radius: 4px;
}

.triptych-meta {
  padding: 0.7rem 0.85rem;
}

.triptych-meta h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: var(--brass-bright);
}

.triptych-meta p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ======================== STEAMPUNK CARDS & RIVETS ======================== */
.steampunk-card {
  position: relative;
  background: var(--panel-glass);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--brass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.52), inset 0 0 0 1px rgba(255, 222, 173, 0.08);
  padding: 1.6rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.88);
}

/* Derby Gear Props — Tucked Behind Glass Panels & Flowing Naturally */
.behind-card-gear,
.section-edge-gear {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.72;
  filter: brightness(0.86) saturate(0.95) drop-shadow(0 14px 22px rgba(0, 0, 0, 0.9));
  user-select: none;
}

.auth-card-stage {
  position: relative;
  max-width: 540px;
  margin: 1.5rem auto;
}

.auth-card-stage .auth-card {
  position: relative;
  z-index: 2;
  margin: 0;
}

.gear-auth-left {
  width: 122px;
  left: -88px;
  top: 18px;
  transform: rotate(-16deg);
}

.gear-auth-right {
  width: 142px;
  right: -96px;
  bottom: 10px;
  transform: rotate(12deg);
}

.card-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--brass-bright);
  border-style: solid;
  pointer-events: none;
}
.card-corner.tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.card-corner.tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.card-corner.bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.card-corner.br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

/* ======================== AUTH SECTION ======================== */
.auth-card {
  max-width: 540px;
  margin: 1.5rem auto;
  padding: 2rem 2.2rem;
}

.section-heading {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--brass-bright);
  letter-spacing: 0.04em;
}

.section-subheading {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.form-group {
  margin-bottom: 1.05rem;
}

.form-group label {
  display: block;
  font-family: var(--font-athletic);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e8dcc8;
  margin-bottom: 0.38rem;
}

input[type='text'],
input[type='password'],
input[type='date'],
select,
textarea {
  width: 100%;
  background: var(--panel-input);
  color: var(--text-main);
  border: 1px solid rgba(208, 150, 72, 0.38);
  border-radius: var(--radius-sm);
  padding: 0.68rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: rgba(9, 7, 17, 0.72);
  border-color: var(--brass-bright);
  box-shadow: 0 0 0 3px rgba(229, 173, 92, 0.22);
}

textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.5;
}

.auth-status-banner {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.88rem;
  border-left: 3px solid var(--brass-bright);
  background: rgba(229, 173, 92, 0.1);
  color: #f8ebd7;
}

.auth-status-banner.returning {
  border-left-color: var(--violet);
  background: rgba(168, 85, 247, 0.12);
}

.auth-error {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 77, 94, 0.14);
  border: 1px solid rgba(255, 77, 94, 0.45);
  color: #ff9aa4;
  font-size: 0.86rem;
  margin-bottom: 0.95rem;
}

.auth-forgot-hint {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-athletic);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  padding: 0.58rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-sm {
  padding: 0.36rem 0.75rem;
  font-size: 0.8rem;
}

.btn-xs {
  padding: 0.22rem 0.55rem;
  font-size: 0.74rem;
}

.btn-lg {
  padding: 0.78rem 1.4rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary-brass {
  background: linear-gradient(135deg, #d89b48 0%, #9f621c 100%);
  border-color: #f0be74;
  color: #120d07;
  box-shadow: 0 4px 16px rgba(200, 139, 58, 0.35);
}

.btn-primary-brass:hover:not(:disabled) {
  background: linear-gradient(135deg, #ebb263 0%, #b87426 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 173, 92, 0.5);
}

.btn-brass {
  background: rgba(216, 155, 72, 0.18);
  border-color: var(--brass-mid);
  color: var(--brass-bright);
}

.btn-brass:hover:not(:disabled) {
  background: rgba(216, 155, 72, 0.3);
}

.btn-outline-brass {
  background: rgba(12, 9, 18, 0.65);
  border-color: var(--brass-border-strong);
  color: var(--brass-bright);
}

.btn-outline-brass:hover:not(:disabled) {
  background: rgba(216, 155, 72, 0.16);
}

.btn-crimson {
  background: linear-gradient(135deg, #d9384a 0%, #911d2c 100%);
  border-color: #ff7585;
  color: #fff;
}

.btn-crimson:hover:not(:disabled) {
  filter: brightness(1.1);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text-main);
  border-color: var(--brass-border);
  background: rgba(255, 255, 255, 0.08);
}

/* ======================== WORKSHEET & ZIPPER ACCORDION ======================== */
.intro-plaque {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.4rem;
}

.intro-plaque-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.gear-ornament {
  color: var(--brass-bright);
  font-size: 1.2rem;
}

.intro-plaque-header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  color: var(--brass-bright);
  flex: 1;
}

.accordion-global-btns {
  display: flex;
  gap: 0.4rem;
}

.craftsperson-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.outdated-alert-bar {
  background: linear-gradient(90deg, rgba(224, 72, 90, 0.2), rgba(200, 139, 58, 0.16));
  border: 1px solid rgba(255, 100, 116, 0.55);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.15rem;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.outdated-alert-text {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #ffd7dc;
}

.outdated-icon {
  color: #ff6b7a;
  font-size: 1.15rem;
}

.outdated-alert-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

/* Accordion Sections ("Zipped" vs "Unzipped") */
.accordion-stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.zip-section-wrap {
  position: relative;
}

.section-edge-gear {
  width: 118px;
  top: 50%;
}

.section-edge-gear.margin-right-behind {
  right: -88px;
}
.section-edge-gear.margin-left-behind {
  left: -88px;
}
.section-edge-gear.tilt-cw {
  transform: translateY(-50%) rotate(13deg);
}
.section-edge-gear.tilt-ccw {
  transform: translateY(-50%) rotate(-14deg);
}

@media (max-width: 1380px) {
  .section-edge-gear {
    display: none;
  }
}

.zip-section {
  position: relative;
  z-index: 2;
  background: var(--panel-glass);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--brass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.zip-section.open {
  background: rgba(15, 11, 25, 0.50);
  border-color: var(--brass-border-strong);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(229, 173, 92, 0.16);
}

.zip-header {
  width: 100%;
  background: linear-gradient(90deg, rgba(24, 18, 36, 0.58), rgba(15, 11, 24, 0.52));
  border: none;
  color: var(--text-main);
  padding: 0.85rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  position: relative;
}

.zip-header:hover {
  background: linear-gradient(90deg, rgba(34, 25, 50, 0.7), rgba(20, 15, 32, 0.65));
}

.zip-header-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.zip-header-medallion {
  width: 78px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--brass-mid);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 0 10px rgba(207, 145, 62, 0.2);
  flex-shrink: 0;
}

.zip-header-medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section Thematic Artwork Panoramic Banner inside Unzipped Body */
.section-art-banner {
  position: relative;
  width: 100%;
  height: clamp(178px, 21.5vw, 228px);
  margin-bottom: 1.35rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(220, 162, 82, 0.52);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.72), inset 0 0 0 1px rgba(255, 225, 175, 0.1);
  cursor: zoom-in;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  gap: 1rem;
}

.section-art-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  filter: brightness(0.92) contrast(1.04);
}

.section-art-banner:hover .section-art-banner-img {
  transform: scale(1.04);
  filter: brightness(1) contrast(1.06);
}

.section-art-smoke {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 88% 120% at 18% 92%, rgba(9, 6, 18, 0.9) 0%, rgba(15, 10, 28, 0.66) 44%, rgba(15, 10, 28, 0) 78%),
    linear-gradient(180deg, rgba(8, 6, 15, 0.12) 0%, rgba(8, 6, 15, 0.34) 58%, rgba(8, 6, 15, 0.82) 100%);
}

.section-art-caption-cloud {
  position: relative;
  z-index: 2;
  max-width: min(760px, 78%);
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  padding: 0.72rem 1.35rem 0.72rem 1.1rem;
  border-radius: 34px 48px 42px 26px;
  background: radial-gradient(
    ellipse 105% 110% at 42% 52%,
    rgba(12, 8, 22, 0.84) 0%,
    rgba(19, 13, 33, 0.68) 65%,
    rgba(19, 13, 33, 0.24) 92%,
    rgba(19, 13, 33, 0.05) 100%
  );
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 0 28px 14px rgba(10, 7, 19, 0.56);
}

.section-art-ornament {
  font-size: 1.45rem;
  color: var(--brass-bright);
  opacity: 0.95;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
}

.section-art-caption-cloud p {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.06rem, 1.55vw, 1.26rem);
  letter-spacing: 0.02em;
  color: #fff6e6;
  line-height: 1.42;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.98), 0 0 18px rgba(0, 0, 0, 0.85);
}

.section-art-zoom {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background: rgba(12, 9, 20, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(229, 173, 92, 0.55);
  color: var(--brass-bright);
  font-family: var(--font-athletic);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.section-art-banner:hover .section-art-zoom {
  background: rgba(200, 139, 58, 0.28);
  color: #fff8eb;
  border-color: var(--brass-bright);
}

/* Literal Steampunk Brass Zipper Teeth Seam when zipped! */
.zip-section.zipped .zip-header::after {
  content: '';
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 0;
  height: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(229, 173, 92, 0.65) 0px,
    rgba(229, 173, 92, 0.65) 6px,
    transparent 6px,
    transparent 11px
  );
  opacity: 0.65;
}

.zip-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.zip-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--brass-bright);
  letter-spacing: 0.03em;
}

.zip-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.zip-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.zip-progress-pill {
  font-family: var(--font-athletic);
  font-size: 0.76rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(208, 150, 72, 0.3);
  color: var(--text-muted);
}

.zip-progress-pill.has-progress {
  color: var(--brass-bright);
  border-color: rgba(229, 173, 92, 0.55);
  background: rgba(216, 155, 72, 0.12);
}

.zip-pull-tab {
  font-family: var(--font-athletic);
  font-size: 0.76rem;
  color: var(--brass-mid);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.zip-body {
  padding: 1.35rem 1.45rem 1.5rem;
  border-top: 1px solid rgba(208, 150, 72, 0.24);
}

.zip-section.zipped .zip-body {
  display: none;
}

.section-nav-footer {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(208, 150, 72, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ======================== SECTION 1: IDENTIFICATION CARDS ======================== */
.monster-id-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.monster-id-card {
  background: rgba(10, 8, 18, 0.34);
  border: 1px solid rgba(220, 162, 82, 0.36);
  border-left-width: 5px;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
}

.monster-id-card.m1 { border-left-color: var(--crimson); }
.monster-id-card.m2 { border-left-color: var(--violet); }
.monster-id-card.m3 { border-left-color: var(--emerald); }

.monster-id-prompt {
  font-weight: 600;
  font-size: 0.98rem;
  margin: 0 0 0.75rem;
  color: #f7efe2;
}

.pack-feedback-details {
  margin-top: 0.8rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(208, 150, 72, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
}

.pack-feedback-details summary {
  cursor: pointer;
  font-family: var(--font-athletic);
  font-size: 0.82rem;
  color: var(--brass-bright);
  font-weight: 600;
  user-select: none;
}

.pack-feedback-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 0.85rem;
}

/* ======================== PARALLEL MONSTER QUESTIONS (SECTIONS 2, 3, 4) ======================== */
.parallel-questions-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.parallel-question-block {
  background: rgba(10, 8, 18, 0.32);
  border: 1px solid rgba(220, 162, 82, 0.32);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.pq-header {
  margin-bottom: 0.75rem;
}

.pq-title-tag {
  display: inline-block;
  font-family: var(--font-athletic);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass-bright);
  background: rgba(216, 155, 72, 0.14);
  border: 1px solid rgba(216, 155, 72, 0.32);
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
}

.pq-prompt {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 500;
  color: #f5ede0;
}

.pq-columns {
  display: grid;
  grid-template-columns: repeat(var(--active-monster-cols, 1), minmax(0, 1fr));
  gap: 0.85rem;
}

.pq-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pq-col-label {
  font-family: var(--font-athletic);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pq-col.m1 .pq-col-label { color: #ff7a88; }
.pq-col.m2 .pq-col-label { color: #c084fc; }
.pq-col.m3 .pq-col-label { color: #5eead4; }

.pq-col.m1 textarea:focus { border-color: var(--crimson); }
.pq-col.m2 textarea:focus { border-color: var(--violet); }
.pq-col.m3 textarea:focus { border-color: var(--emerald); }

.pq-monster-snippet {
  font-weight: 400;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ======================== SECTION 5: OATH OF HONOUR ======================== */
.oath-parchment {
  background: linear-gradient(145deg, rgba(34, 22, 18, 0.44), rgba(18, 13, 24, 0.48));
  border: 2px solid var(--brass-mid);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.7rem;
  box-shadow: inset 0 0 28px rgba(200, 139, 58, 0.14);
}

.oath-quote-text {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.7;
  color: #fdf4e3;
  margin: 0 0 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(229, 173, 92, 0.3);
  text-align: center;
}

.oath-fields-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.3fr;
  gap: 1rem;
}

.label-with-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.38rem;
}

.label-with-helper label {
  margin-bottom: 0;
}

.tiny-helper-btn {
  background: rgba(216, 155, 72, 0.15);
  border: 1px solid rgba(216, 155, 72, 0.4);
  color: var(--brass-bright);
  border-radius: 4px;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  cursor: pointer;
}

.tiny-helper-btn:hover {
  background: rgba(216, 155, 72, 0.28);
}

/* ======================== SECTION 6: SUMMARY & WORD COUNTER ======================== */
.summary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0.85rem 0 0.65rem;
  flex-wrap: wrap;
}

.summary-auto-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.summary-textarea {
  min-height: 210px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.word-counter-bar {
  margin-top: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(9, 7, 15, 0.78);
  border: 1px solid rgba(208, 150, 72, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.word-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-athletic);
  font-size: 0.85rem;
  color: #d7cbb8;
}

.word-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.word-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--brass-bright));
  transition: width 0.2s ease, background 0.2s ease;
}

.word-counter-bar.over-limit {
  border-color: var(--danger-red);
  background: rgba(255, 77, 94, 0.14);
}

.word-counter-bar.over-limit .word-counter-row {
  color: var(--danger-red);
  font-weight: 700;
}

.word-counter-bar.over-limit .word-progress-fill {
  background: var(--danger-red);
}

.word-over-warning {
  font-size: 0.82rem;
  color: #ff808d;
  font-weight: 600;
}

/* ======================== REPORT FORGE CTA CARD ======================== */
.report-forge-card {
  margin-top: 1.6rem;
}

.report-forge-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.forge-gear-cluster {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
  min-width: 200px;
}

.forge-inline-prop {
  object-fit: contain;
  opacity: 0.85;
  filter: brightness(0.92) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.8));
}

.forge-inline-prop.prop-skates {
  height: 68px;
  transform: rotate(-6deg);
}

.forge-inline-prop.prop-bottle {
  height: 54px;
  transform: rotate(14deg);
}

.forge-filigree-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(220, 162, 82, 0.5), rgba(220, 162, 82, 0.08));
}

.forge-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-heading);
  color: var(--brass-bright);
  font-size: 1.22rem;
}

.report-forge-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.report-forge-buttons {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.forge-loading {
  margin-top: 1.15rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(216, 155, 72, 0.1);
  border: 1px solid var(--brass-mid);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.steampunk-spinner {
  font-size: 2rem;
  color: var(--brass-bright);
  animation: spinGear 2.4s linear infinite;
}

@keyframes spinGear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.forge-loading p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ======================== REPORT VIEW & PDF PRINTABLE DOCUMENT ======================== */
.report-ActionBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  background: var(--panel-glass-strong);
  border: 1px solid var(--brass-border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.1rem;
}

.report-action-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.report-sheet {
  background: #120f1a;
  color: #f4efe6;
  border: 2px solid var(--brass-mid);
  border-radius: var(--radius-md);
  padding: 2.2rem 2.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.report-doc-header {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-bottom: 1.3rem;
  border-bottom: 2px solid var(--brass-mid);
  margin-bottom: 1.5rem;
}

.report-doc-crest {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.report-doc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brass-bright);
}

.report-doc-sub {
  margin: 0.1rem 0 0.35rem;
  font-family: var(--font-heading);
  font-style: italic;
  color: #dfc092;
}

.report-doc-meta {
  font-family: var(--font-athletic);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.report-section-block {
  margin-bottom: 1.8rem;
  page-break-inside: avoid;
}

.report-h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--brass-bright);
  border-bottom: 1px solid rgba(216, 155, 72, 0.4);
  padding-bottom: 0.4rem;
  margin: 0 0 0.95rem;
}

.report-monsters-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.report-monster-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(216, 155, 72, 0.4);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  page-break-inside: avoid;
}

.report-monster-box.m1 { border-left-color: var(--crimson); }
.report-monster-box.m2 { border-left-color: var(--violet); }
.report-monster-box.m3 { border-left-color: var(--emerald); }

.report-monster-box h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-athletic);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.report-monster-box p {
  margin: 0;
  font-size: 0.94rem;
  white-space: pre-wrap;
}

.report-pack-subnote {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.report-summary-box {
  background: rgba(216, 155, 72, 0.08);
  border: 1px solid rgba(216, 155, 72, 0.42);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 0.95rem;
}

.report-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.report-art-card {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(216, 155, 72, 0.42);
  border-radius: var(--radius-sm);
  overflow: hidden;
  page-break-inside: avoid;
}

.report-art-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.report-art-caption {
  padding: 0.65rem 0.85rem;
}

.report-art-caption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--brass-bright);
  margin-bottom: 0.2rem;
}

.report-art-caption span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.report-qa-section {
  margin-bottom: 1.5rem;
}

.report-qa-section h3 {
  font-family: var(--font-heading);
  font-size: 1.06rem;
  color: #e8be7b;
  margin: 1.2rem 0 0.65rem;
}

.report-qa-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(216, 155, 72, 0.24);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.65rem;
  page-break-inside: avoid;
}

.report-qa-q {
  font-weight: 600;
  font-size: 0.88rem;
  color: #f3e6d0;
  margin-bottom: 0.5rem;
}

.report-qa-cols {
  display: grid;
  grid-template-columns: repeat(var(--report-cols, 1), minmax(0, 1fr));
  gap: 0.75rem;
}

.report-qa-cell {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--brass-mid);
  padding: 0.45rem 0.65rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.86rem;
  white-space: pre-wrap;
}

.report-qa-cell.m1 { border-left-color: var(--crimson); }
.report-qa-cell.m2 { border-left-color: var(--violet); }
.report-qa-cell.m3 { border-left-color: var(--emerald); }

.report-qa-cell-lbl {
  display: block;
  font-family: var(--font-athletic);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.18rem;
}

/* Light theme override during clean PDF export / Print for crisp readability & ink friendliness */
.report-sheet.pdf-light-mode {
  background: #faf6ee !important;
  color: #1c1612 !important;
  border-color: #8c5a20 !important;
  box-shadow: none !important;
}

.report-sheet.pdf-light-mode .report-doc-title,
.report-sheet.pdf-light-mode .report-h2,
.report-sheet.pdf-light-mode .report-qa-section h3,
.report-sheet.pdf-light-mode .report-monster-box h3,
.report-sheet.pdf-light-mode .report-art-caption strong {
  color: #6e3f0d !important;
}

.report-sheet.pdf-light-mode .report-doc-sub,
.report-sheet.pdf-light-mode .report-doc-meta,
.report-sheet.pdf-light-mode .report-art-caption span,
.report-sheet.pdf-light-mode .report-pack-subnote,
.report-sheet.pdf-light-mode .report-qa-cell-lbl {
  color: #524538 !important;
}

.report-sheet.pdf-light-mode .report-monster-box,
.report-sheet.pdf-light-mode .report-summary-box,
.report-sheet.pdf-light-mode .report-qa-item,
.report-sheet.pdf-light-mode .report-art-card {
  background: #ffffff !important;
  border-color: #cbb28c !important;
  color: #1c1612 !important;
}

.report-sheet.pdf-light-mode .report-qa-q {
  color: #261c14 !important;
}

.report-sheet.pdf-light-mode .report-qa-cell {
  background: #f5efe4 !important;
  color: #1c1612 !important;
}

/* ======================== FOOTER, LIGHTBOX & MODALS ======================== */
.site-footer {
  border-top: 1px solid rgba(208, 150, 72, 0.22);
  background: rgba(9, 7, 15, 0.85);
  padding: 1rem 1.25rem;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-admin-link {
  background: none;
  border: 1px solid rgba(208, 150, 72, 0.25);
  color: var(--text-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.76rem;
  cursor: pointer;
}

.footer-admin-link:hover {
  color: var(--brass-bright);
  border-color: var(--brass-bright);
}

.lightbox-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 4, 9, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox-content {
  max-width: 1020px;
  width: 100%;
  position: relative;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border: 2px solid var(--brass-mid);
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  margin-top: 0.65rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.lightbox-close {
  background: rgba(20, 15, 30, 0.9);
  border: 1px solid var(--brass-border);
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.lightbox-content .lightbox-close {
  position: absolute;
  top: -14px;
  right: -10px;
}

.modal-card {
  max-width: 660px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-header h3 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--brass-bright);
}

.about-modal-card {
  background: rgba(16, 12, 26, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-modal-paragraphs p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-main);
}

.about-modal-paragraphs p:last-child {
  margin-bottom: 0;
  color: var(--brass-bright);
  font-weight: 500;
}

.brass-hr {
  border: none;
  border-top: 1px solid rgba(208, 150, 72, 0.28);
  margin: 1.25rem 0;
}

.admin-ai-badge {
  font-size: 0.82rem;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  background: rgba(216, 155, 72, 0.12);
  border: 1px solid rgba(216, 155, 72, 0.32);
  color: #f3dfc1;
}

.admin-toast {
  margin-left: 0.65rem;
  font-size: 0.82rem;
  color: #6ee7b7;
}

.admin-add-row {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.admin-roster-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.admin-roster-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.48rem 0.75rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(208, 150, 72, 0.22);
  border-radius: 5px;
  font-size: 0.86rem;
}

.admin-roster-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: 0.45rem;
}

.admin-roster-actions {
  display: flex;
  gap: 0.4rem;
}

/* ======================== RESPONSIVE & PRINT ======================== */
@media (max-width: 900px) {
  .triptych-grid,
  .pack-feedback-grid,
  .oath-fields-grid,
  .report-gallery-grid {
    grid-template-columns: 1fr;
  }

  .pq-columns,
  .pinned-monsters-grid,
  .report-qa-cols {
    grid-template-columns: 1fr !important;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-crest {
    width: 230px;
    margin: -0.35rem auto 0;
    transform: rotate(-7.5deg);
  }

  .hero-titles {
    margin-left: 0;
    margin-top: -2rem;
    width: 100%;
  }

  .hero-quote {
    text-align: left;
  }

  .section-art-banner {
    height: 185px;
    padding: 0.85rem 0.95rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .section-art-caption-cloud {
    max-width: 100%;
    padding: 0.55rem 0.95rem;
  }

  .section-art-zoom {
    align-self: flex-end;
  }

  .zip-header-medallion {
    width: 58px;
    height: 42px;
  }

  .section-edge-gear,
  .gear-on-hero,
  .gear-on-intro,
  .gear-on-forge {
    width: 78px;
  }

  .gear-on-auth-left,
  .gear-on-auth-right {
    display: none;
  }
}

@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }
  .arena-bg,
  .arena-vignette,
  .top-utility-bar,
  .hero-banner,
  .auth-section,
  .worksheet-section,
  .no-print {
    display: none !important;
  }
  .main-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  .report-view-section {
    display: block !important;
  }
  .report-sheet {
    background: #fff !important;
    color: #111 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .report-doc-title,
  .report-h2,
  .report-qa-section h3,
  .report-monster-box h3 {
    color: #5a3208 !important;
  }
  .report-monster-box,
  .report-summary-box,
  .report-qa-item,
  .report-art-card,
  .report-qa-cell {
    background: #fff !important;
    color: #111 !important;
    border-color: #ccc !important;
  }
}
