/* ═══════════════════════════════════════════════════════════
   ART SELLER: TERRIBLEISM
   Palette: Red #CC0000 | Mustard #E8B000 | Black #0D0D0D | White #FFFFFF
   Fonts: Bebas Neue (display) | Space Mono (body)
═══════════════════════════════════════════════════════════ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: #0D0D0D;
  color: #FFFFFF;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
}

/* ── PAGE SYSTEM ──────────────────────────────────────────── */
.page {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: 100%;
  overflow: hidden;
  display: none;
}

.page.active { display: block; }

#page-portfolio,
#page-buyers,
#page-howtoplay,
#page-jacksmission,
#page-free {
  overflow-y: auto;
  background: #0D0D0D;
}

/* Scroll without visible scrollbars — game pages only */
.page,
#card-modal {
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* old Edge */
}
.page::-webkit-scrollbar,
#card-modal::-webkit-scrollbar {
  display: none;               /* Chrome / Safari */
}

.hidden { display: none !important; }


/* ── MILESTONE OVERLAY ────────────────────────────────────── */
#milestone-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

#milestone-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#milestone-content {
  position: relative;
  text-align: center;
  padding: 24px;
  padding-bottom: 40px;
  background: rgba(13,13,13,0.72);
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#milestone-content::-webkit-scrollbar {
  display: none;
}

#milestone-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.6);
}

#milestone-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 96px;
  line-height: 1;
  color: #E8B000;
  text-shadow: 4px 4px 0 #CC0000;
  letter-spacing: 2px;
  animation: countdown-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* First-milestone explainer — story beat, dismissed by button */
#milestone-explainer {
  max-width: 400px;
  margin: 14px auto 0;
  text-align: left;
}

#milestone-ex-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: #FFFFFF;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
}

#milestone-explainer p {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
}

#milestone-ex-btn {
  display: block;
  width: 100%;
  background: #CC0000;
  color: #FFFFFF;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  padding: 12px;
  cursor: pointer;
  margin-top: 12px;
}

#milestone-ex-btn:hover { opacity: 0.85; }

/* The dial — Jack's split, set at milestone junctures only */
#dial-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

#dial-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: #FFFFFF;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 10px;
}

#dial-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

#dial-pie {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
  transform: rotate(-2deg);
}

.dial-line {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.dial-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  margin-right: 6px;
}
.dial-line.pea  .dial-val { color: #E8B000; }
.dial-line.jack .dial-val { color: #CC0000; text-shadow: 1px 1px 0 rgba(255,255,255,0.3); }

#dial-slider {
  width: 100%;
  accent-color: #E8B000;
  cursor: pointer;
  margin: 4px 0 8px;
}

#dial-explainer {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 4px;
}

#milestone-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

#milestone-actions button {
  display: block;
  width: 100%;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  padding: 11px;
  cursor: pointer;
}

#milestone-btn-continue { background: #CC0000; color: #FFFFFF; }
#milestone-btn-shop     { background: #E8B000; color: #0D0D0D; }
#milestone-actions button:hover { opacity: 0.85; }


/* ── COUNTDOWN OVERLAY ────────────────────────────────────── */
#countdown-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  z-index: 500;
  background: url('assets/backgrounds/background.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

#countdown-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,0.55);
}

/* First-play briefing card (replaced the big 3-2-1 number). */
#briefing-card {
  position: relative;
  width: calc(100% - 32px);
  max-width: 420px;
  max-height: calc(100% - 32px);
  overflow-y: auto;
  background: #0D0D0D;
  border: 2px solid #CC0000;
  padding: 20px 18px 18px;
  animation: countdown-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#briefing-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  letter-spacing: 2px;
  color: #E8B000;
  line-height: 1;
  margin-bottom: 14px;
}

#briefing-steps {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

#briefing-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.bf-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #CC0000;
  color: #FFFFFF;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  line-height: 1;
}

.bf-text {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #FFFFFF;
  padding-top: 3px;
}

#briefing-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid #E8B000;
  padding: 4px 0 4px 12px;
  margin-bottom: 18px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

#briefing-tip img {
  flex: 0 0 auto;
  width: 30px;
  height: auto;
  display: block;
}

#briefing-tip + #briefing-tip { margin-top: -6px; }

.bf-icon-lg {
  width: 40px !important;
  height: 40px !important;
}
.bf-icon-pause {
  background: rgba(204,0,0,0.15);
  border-radius: 50%;
  padding: 8px;
  box-sizing: border-box;
  color: #FFFFFF;
}

#briefing-tip strong { color: #E8B000; }
.bf-text strong { color: #E8B000; }

#briefing-go {
  display: block;
  width: 100%;
  background: #CC0000;
  color: #FFFFFF;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  padding: 14px;
  cursor: pointer;
}
#briefing-go:hover { opacity: 0.85; }

/* Short phones (iPhone SE-class): tighten so LET'S GO stays on screen. */
@media (max-height: 640px) {
  #briefing-card { padding: 12px 14px 12px; }
  #briefing-title { font-size: 26px; margin-bottom: 8px; }
  #briefing-steps { margin-bottom: 8px; }
  #briefing-steps li { gap: 10px; margin-bottom: 6px; }
  .bf-num { width: 22px; height: 22px; font-size: 15px; }
  .bf-text { font-size: 11px; line-height: 1.35; padding-top: 1px; }
  #briefing-tip { font-size: 10px; margin-bottom: 8px; gap: 8px; }
  #briefing-tip + #briefing-tip { margin-top: -4px; }
  .bf-icon-lg { width: 26px !important; height: 26px !important; }
  .bf-icon-pause { padding: 5px; }
  #briefing-go { font-size: 22px; padding: 8px; }
}

@keyframes countdown-pop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}


/* ── SPLASH SCREEN ────────────────────────────────────────── */
#page-splash {
  background: #0D0D0D;
}

#splash-bg {
  width: 100%;
  height: 100%;
  background: url('assets/backgrounds/splash.jpg') center center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#splash-content {
  width: 100%;
  padding: 40px 32px 24px;
  background: linear-gradient(to top, rgba(13,13,13,0.97) 55%, transparent);
  text-align: center;
}

#splash-welcome {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(28px, 9vw, 50px);
  color: #E8B000;
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.85);
  overflow-wrap: break-word;
}

#splash-from {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin-top: 10px;
  letter-spacing: 1px;
}

#splash-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: #E8B000;
  letter-spacing: 2px;
  margin-top: 4px;
}

#splash-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

#btn-start {
  background: #CC0000;
  color: #FFFFFF;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  padding: 14px;
  cursor: pointer;
  width: 100%;
}

#btn-how-to-play-splash {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255,255,255,0.4);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  padding: 11px;
  cursor: pointer;
  width: 100%;
}

#btn-start:hover, #btn-how-to-play-splash:hover { opacity: 0.85; }

#btn-start:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#splash-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

#splash-loading-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.65);
}

#splash-loading-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
}

#splash-loading-fill {
  height: 100%;
  width: 0%;
  background: #E8B000;
  transition: width 0.25s ease-out;
}


/* ── SCORE BAR ────────────────────────────────────────────── */
#score-bar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  z-index: 100;
  padding: 10px 60px 6px 14px;
  background: linear-gradient(to bottom, rgba(13,13,13,0.95) 70%, transparent);
}

#artwork-counter {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  display: block;
  margin-top: 2px;
}

#score-display {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: #FFFFFF;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 3px 3px 0 #CC0000;
  display: block;
}

#round-timer-wrap {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

#round-timer-fill {
  height: 100%;
  width: 100%;
  background: #E8B000;
  border-radius: 3px;
  transition: background 0.3s;
}

#round-timer-fill.urgent {
  background: #CC0000;
  animation: timer-pulse 0.4s ease-in-out infinite alternate;
}

@keyframes timer-pulse {
  from { opacity: 1; }
  to   { opacity: 0.5; }
}


/* ── BURGER MENU ──────────────────────────────────────────── */
#burger-btn {
  position: fixed;
  top: 10px; right: calc(50% - 250px);
  z-index: 200;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 520px) {
  #burger-btn { right: 8px; }
}

#burger-btn img {
  width: 40px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

#burger-menu {
  position: fixed;
  top: 56px; right: calc(50% - 250px);
  z-index: 200;
  background: #0D0D0D;
  border: 2px solid #CC0000;
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

@media (max-width: 520px) {
  #burger-menu { right: 8px; }
}

.nav-item {
  display: block;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(204,0,0,0.3);
  color: #FFFFFF;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  padding: 12px 18px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.nav-item:last-child { border-bottom: none; }
.nav-item:hover, .nav-item:focus { background: #CC0000; outline: none; }

#menu-copyright {
  display: block;
  padding: 8px 18px 10px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.35);
  text-align: left;
  text-decoration: none;
}
#menu-copyright:hover, #menu-copyright:focus { color: #E8B000; }

/* ── SOCIAL LINKS — fixed bottom-right badge pair, every page except the live auction ── */
#social-links {
  position: fixed;
  bottom: 14px;
  right: calc(50% - 250px);
  z-index: 150;
  display: flex;
  gap: 10px;
}
@media (max-width: 520px) {
  #social-links { right: 10px; }
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13,13,13,0.82);
  border: 1px solid #E8B000;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: background 0.15s, color 0.15s;
}
.social-link:hover, .social-link:focus { background: #E8B000; color: #0D0D0D; outline: none; }
.social-link svg { width: 20px; height: 20px; }


/* ── GAME PAGE ────────────────────────────────────────────── */
#page-game {
  background: #0D0D0D url('assets/backgrounds/background.jpg') center center / cover no-repeat;
}


/* ── ARTWORK ZONE ─────────────────────────────────────────── */
#artwork-zone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 360px;
  z-index: 10;
  pointer-events: none;
}

#artwork-img {
  display: block;
  width: 110%;
  margin-left: -5%;
  height: auto;
  border: 4px solid #FFFFFF;
  box-shadow: 6px 6px 0 #CC0000, 12px 12px 0 rgba(0,0,0,0.5);
  transform-origin: center center;
  animation: artwork-bob 3.5s ease-in-out infinite;
}

@keyframes artwork-bob {
  0%   { transform: translateY(0px) rotate(var(--artwork-rotation, 0deg)); }
  50%  { transform: translateY(-8px) rotate(var(--artwork-rotation, 0deg)); }
  100% { transform: translateY(0px) rotate(var(--artwork-rotation, 0deg)); }
}

@keyframes artwork-slam {
  0%   { transform: scale(0) rotate(var(--artwork-rotation, 0deg)); opacity: 0; }
  70%  { transform: scale(1.15) rotate(var(--artwork-rotation, 0deg)); opacity: 1; }
  85%  { transform: scale(0.97) rotate(var(--artwork-rotation, 0deg)); }
  100% { transform: scale(1) rotate(var(--artwork-rotation, 0deg)); }
}

#artwork-img.slam {
  animation: artwork-slam 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             artwork-bob 3.5s ease-in-out 0.45s infinite;
}

@keyframes artwork-exit {
  to { transform: scale(0) rotate(calc(var(--artwork-rotation, 0deg) + 20deg)); opacity: 0; }
}

#artwork-img.exit {
  animation: artwork-exit 0.35s ease-in forwards;
}


#artwork-category {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 70%;
  z-index: 25;
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  color: #FFFFFF;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(13, 13, 13, 0.82);
  padding: 5px 14px;
  pointer-events: none;
}

/* ── BUYER BUBBLES ────────────────────────────────────────── */
#buyers-zone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.buyer-bubble {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #E8B000;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  animation: bubble-float var(--float-duration, 3s) ease-in-out var(--float-delay, 0s) infinite alternate;
  transition: border-color 0.2s, transform 0.15s;
}

.buyer-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease-out;
}

/* Still fetching this face — fade in on load rather than popping in or
   showing a broken-image icon (see renderBuyers() in game.js). */
.buyer-bubble img.face-loading { opacity: 0; }

.buyer-bubble:hover, .buyer-bubble:focus {
  border-color: #FFFFFF;
  transform: scale(1.08);
  outline: none;
  animation-play-state: paused;
}

.buyer-bubble::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0D0D0D;
  border: 1px solid #E8B000;
  color: #E8B000;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  white-space: nowrap;
  padding: 4px 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.buyer-bubble:hover::after, .buyer-bubble:focus::after { opacity: 1; }

@keyframes bubble-float {
  from { transform: translateY(0px); }
  to   { transform: translateY(-12px); }
}

@keyframes bubble-fly-off {
  to {
    transform: translate(var(--fly-x, 300px), var(--fly-y, -200px)) scale(0);
    opacity: 0;
  }
}

.buyer-bubble.fly-off {
  animation: bubble-fly-off 0.4s ease-in forwards;
  pointer-events: none;
}

.buyer-bubble.selected {
  border-color: #CC0000;
  border-width: 4px;
}

.buyer-bubble.seen { opacity: 0.6; }


/* ── OFFER PANEL ──────────────────────────────────────────── */
#offer-panel {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  max-width: 440px;
  background: rgba(13,13,13,0.95);
  border: 2px solid #E8B000;
  padding: 14px 16px 12px;
  z-index: 30;
  text-align: center;
}

#offer-buyer-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: #E8B000;
  letter-spacing: 1px;
}

#offer-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  color: #FFFFFF;
  text-shadow: 2px 2px 0 #CC0000;
  margin: 4px 0;
}

#offer-guide-price {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

#offer-timer-wrap {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}

#offer-timer-fill {
  height: 100%;
  width: 100%;
  background: #E8B000;
  border-radius: 2px;
  transition: background 0.3s;
}

#offer-timer-fill.urgent { background: #CC0000; }

#offer-actions {
  display: flex;
  gap: 10px;
}

#btn-decline {
  flex: 1;
  background: #CC0000;
  color: #FFFFFF;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  padding: 10px;
  cursor: pointer;
}

#btn-accept {
  flex: 1;
  background: #E8B000;
  color: #0D0D0D;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  padding: 10px;
  cursor: pointer;
}

#btn-decline:hover { opacity: 0.85; }
#btn-accept:hover  { opacity: 0.85; }


/* ── GERTRUDE ─────────────────────────────────────────────── */
#gertrude-panel {
  position: fixed;
  bottom: 36px;
  right: calc(50% - 258px);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transform: translateX(110%);
}

#gertrude-panel.active {
  animation: gertrude-slide-in 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

@media (max-width: 520px) {
  #gertrude-panel { right: 0; }
}

@keyframes gertrude-slide-in {
  from { transform: translateX(110%); }
  to   { transform: translateX(0); }
}

@keyframes gertrude-slide-out {
  from { transform: translateX(0); }
  to   { transform: translateX(110%); }
}

#gertrude-panel.exit {
  animation: gertrude-slide-out 0.35s ease-in forwards;
}

#gertrude-img {
  width: 180px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

#gertrude-bubble {
  background: #CC0000;
  color: #FFFFFF;
  padding: 10px 12px;
  max-width: 200px;
  position: relative;
  margin-bottom: 20px;
  align-self: flex-start;
}

#gertrude-bubble::after {
  content: '';
  position: absolute;
  bottom: 12px;
  right: -10px;
  border: 10px solid transparent;
  border-left-color: #CC0000;
  border-right: none;
}

#gertrude-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}

#gertrude-text {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  line-height: 1.5;
}

#gertrude-verdict {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  margin-top: 6px;
  letter-spacing: 1px;
}

#gertrude-verdict.penalty { color: #E8B000; }
#gertrude-verdict.bonus   { color: #FFFFFF; }


/* ── FEEDBACK FLASH ───────────────────────────────────────── */
#feedback-flash {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  letter-spacing: 3px;
  text-align: center;
  pointer-events: none;
}

#feedback-flash.pop {
  animation: flash-pop 1.5s ease-out forwards;
}

@keyframes flash-pop {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  25%  { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  65%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

#feedback-flash.miss { color: #CC0000; text-shadow: 3px 3px 0 #0D0D0D; }
#feedback-flash.good { color: #E8B000; text-shadow: 3px 3px 0 #0D0D0D; }
#feedback-flash.pass { color: #FFFFFF; text-shadow: 3px 3px 0 #0D0D0D; }

#feedback-sub {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: 84%;
  max-width: 320px;
  background: #CC0000;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.4;
  text-align: center;
  color: #FFFFFF;
  padding: 10px 14px;
  pointer-events: none;
}

#feedback-sub.pop {
  animation: sub-pop 2.2s ease-out forwards;
}

@keyframes sub-pop {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  78%  { opacity: 1; }
  100% { opacity: 0; }
}


/* ── ARTWORK TITLE BAR ────────────────────────────────────── */
#artwork-title-bar {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: 34px;
  background: rgba(13, 13, 13, 0.90);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: #E8B000;
  letter-spacing: 2px;
  z-index: 39;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── ROUND VIEW-IN-PORTFOLIO BUTTON ───────────────────────────
   Small mustard-on-dark badge, bottom-left, sitting above the ticker
   tape (vertically centred in the 34px title bar). Same visual recipe
   as .media-badge.small so it reads as part of the same icon language. */
#round-view-btn {
  position: fixed;
  bottom: 38px;
  left: calc(50% - 250px);
  z-index: 45;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.85);
  border: 1.5px solid #E8B000;
  color: #E8B000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
#round-view-btn:hover { background: rgba(13, 13, 13, 0.97); }
#round-view-btn svg { width: 15px; height: 15px; display: block; }

@media (max-width: 520px) {
  #round-view-btn { left: 8px; }
}

/* ── PAUSE BUTTON ─────────────────────────────────────────── */
#pause-btn {
  position: fixed;
  bottom: 34px;
  right: calc(50% - 250px);
  z-index: 45;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.85);
  border: 1.5px solid #CC0000;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
#pause-btn:hover { background: rgba(13, 13, 13, 0.97); }
#pause-btn svg { width: 16px; height: 16px; display: block; }

@media (max-width: 520px) {
  #pause-btn { right: 8px; }
}

/* Brief attention pulse — added to #burger-btn and #pause-btn on first
   play only (see showBriefing()/removeAttnPulse() in game.js), removed on
   first tap of either, or automatically after ATTN_PULSE_MS. Exists
   because playtesting showed people don't reliably read the briefing
   card first. */
@keyframes attn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.55); }
  50%      { box-shadow: 0 0 0 9px rgba(204, 0, 0, 0); }
}
.attn-pulse { animation: attn-pulse 1.4s ease-out infinite; border-radius: 50%; }

/* ── PAUSE OVERLAY ────────────────────────────────────────── */
#pause-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  z-index: 600;
  background: rgba(13, 13, 13, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

#pause-card {
  width: calc(100% - 64px);
  max-width: 360px;
  text-align: center;
}

#pause-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  letter-spacing: 3px;
  color: #E8B000;
  margin-bottom: 24px;
}

#pause-sound-toggle {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #FFFFFF;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 10px;
  cursor: pointer;
}

#pause-resume-btn {
  display: block;
  width: 100%;
  background: #CC0000;
  color: #FFFFFF;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  padding: 14px;
  cursor: pointer;
}
#pause-resume-btn:hover { opacity: 0.85; }

/* Everything that would otherwise keep moving behind the pause overlay
   (and, per the Sept 2026 playtest, made the game feel impossible to
   actually stop). */
body.game-paused .buyer-bubble,
body.game-paused #ticker-inner {
  animation-play-state: paused !important;
}

/* ── TICKER TAPE ──────────────────────────────────────────── */
#ticker-tape {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: 36px;
  background: #CC0000;
  overflow: hidden;
  z-index: 40;
  display: flex;
  align-items: center;
}

#ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 416s linear infinite;  /* halved speed, 3 Sep 2026 — was racing by unreadable at 208s */
  color: #E8B000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1.5px;
  padding-left: 100%;
}

#ticker-inner span { padding-right: 80px; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── PEA MACHINE PAGE ─────────────────────────────────────── */
#page-pea {
  background: #0D0D0D;
  overflow-y: auto;
}

#pea-banner {
  position: relative;
  height: 38vh;
  min-height: 220px;
  overflow: hidden;
}

#pea-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

#pea-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px 18px 12px;
  background: linear-gradient(to top, rgba(13,13,13,0.95), transparent);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: #FFFFFF;
  letter-spacing: 3px;
  text-align: center;
}

#pea-content {
  padding: 16px 18px 60px;
}

#pea-intro {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: center;
}

#pea-accounts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.pea-acct {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 6px;
  text-align: center;
}

.pea-acct-label {
  display: block;
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.pea-acct-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
}
.pea-acct-val.fund  { color: #E8B000; }
.pea-acct-val.jack  { color: #FFFFFF; }
.pea-acct-val.owned { color: #CC0000; text-shadow: 1px 1px 0 rgba(255,255,255,0.25); }

/* The applications — the visible demand */
#pea-applications { margin-bottom: 14px; }

.pea-apps-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: #FFFFFF;
  border-left: 3px solid #CC0000;
  padding-left: 10px;
  margin-bottom: 6px;
}

.pea-apps-waiting {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #CC0000;
  text-shadow: 0.5px 0.5px 0 rgba(255,255,255,0.35);
}

.pea-town-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
  padding: 6px 0 6px 13px;
}

.pea-town-name {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

.pea-town-req {
  display: block;
  font-size: 10px;
  font-style: italic;
  color: rgba(255,255,255,0.5);
}

.pea-item-demand {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: #0D0D0D;
  background: #E8B000;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
  transform: rotate(-1deg);
}

.pea-town-status {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 2px 8px;
}
.pea-town-status.covered {
  color: #0D0D0D;
  background: #E8B000;
}
.pea-town-status.waiting {
  color: #FFFFFF;
  background: rgba(204,0,0,0.75);
  font-style: italic;
}

#milestone-towns {
  margin-top: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #E8B000;
  border: 1px dashed rgba(232,176,0,0.6);
  padding: 8px 10px;
  text-align: center;
}

#pea-split-line {
  margin-bottom: 18px;
}

.pea-dial-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

#pea-dial-slider {
  width: 100%;
  accent-color: #E8B000;
  cursor: pointer;
  margin: 2px 0 4px;
}

.pea-split-pie {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.3);
}

.pea-split-text {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
}

.pea-split-note {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-style: italic;
  color: rgba(255,255,255,0.4);
  width: 100%;
}

.pea-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-left: 3px solid #E8B000;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.04);
}

.pea-item.skint { border-left-color: rgba(255,255,255,0.2); opacity: 0.75; }

.pea-item-info { flex: 1; }

.pea-item-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px;
  color: #FFFFFF;
  letter-spacing: 1px;
}

.pea-item-blurb {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin: 2px 0;
}

.pea-item-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: #E8B000;
  letter-spacing: 1px;
}

.pea-item-buy { text-align: center; }

.pea-item-owned {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #E8B000;
  margin-bottom: 4px;
}

.pea-buy-btn {
  background: #CC0000;
  color: #FFFFFF;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 1.5px;
  padding: 8px 18px;
  cursor: pointer;
}
.pea-buy-btn:hover:not(:disabled) { opacity: 0.85; }
.pea-buy-btn:disabled {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.4);
  cursor: default;
  font-size: 12px;
  font-family: 'Space Mono', monospace;
}

#pea-ar-wrap { text-align: center; }

.pea-link {
  display: block;
  width: max-content;
  margin: 12px auto 0;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #E8B000;
  border: 1px solid #CC0000;
  padding: 8px 16px;
  text-decoration: none;
}
.pea-link:hover { background: #CC0000; color: #FFFFFF; }

/* "Apply for a PEA" — a <button>, not a link (it opens a modal rather
   than navigating), so it's styled bold/filled/full-width to read as the
   primary action sitting above the two secondary links below it. */
.pea-link-primary {
  display: block;
  width: 100%;
  margin: 0 auto;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 1px;
  color: #FFFFFF;
  background: #CC0000;
  border: none;
  padding: 14px;
  cursor: pointer;
  text-transform: uppercase;
}
.pea-link-primary:hover { opacity: 0.85; }

/* Real PEA + Souvenirs — equal width, side by side, below the Apply button */
.pea-link-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.pea-link-row .pea-link {
  flex: 1;
  width: auto;
  margin: 0;
}

/* Final phase — portfolio empty, last spend before the reckoning */
#pea-final-banner {
  border: 2px solid #CC0000;
  background: rgba(204,0,0,0.15);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: #FFFFFF;
}

#pea-final-banner .final-note {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1.5px;
  color: #E8B000;
  margin-bottom: 4px;
}

#pea-finish-wrap { margin-top: 18px; }

#pea-finish-btn {
  display: block;
  width: 100%;
  background: #CC0000;
  color: #FFFFFF;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  padding: 14px;
  cursor: pointer;
}
#pea-finish-btn:hover { opacity: 0.85; }


/* ── MONUMENT MOMENT OVERLAY ──────────────────────────────── */
#monument-overlay {
  position: fixed;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  z-index: 420;
  background: #0D0D0D;
}

#monument-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

#monument-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 60px 24px 40px;
  background: linear-gradient(to top, rgba(13,13,13,0.96) 60%, transparent);
  text-align: center;
}

#monument-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 54px;
  color: #E8B000;
  text-shadow: 3px 3px 0 #CC0000;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 10px;
}

#monument-sub {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #FFFFFF;
  line-height: 1.6;
  margin-bottom: 6px;
}

#monument-footnote {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}

#monument-btn {
  background: #CC0000;
  color: #FFFFFF;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  padding: 12px 28px;
  cursor: pointer;
}
#monument-btn:hover { opacity: 0.85; }


/* ── RECKONING PAGE ───────────────────────────────────────── */
#page-reckoning {
  background: #0D0D0D url('assets/backgrounds/background.jpg') center center / cover no-repeat;
  overflow-y: auto;
}

#reckoning-content {
  min-height: 100%;
  background: rgba(13,13,13,0.88);
  padding: 60px 22px 60px;
}

#reckoning-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

#reckoning-rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  line-height: 1.05;
  color: #E8B000;
  text-shadow: 3px 3px 0 #CC0000;
  letter-spacing: 2px;
  text-align: center;
  margin: 6px 0 24px;
  transform: rotate(-1.5deg);
}

#reckoning-rank.full-delivery {
  color: #FFFFFF;
  text-shadow: 3px 3px 0 #E8B000, 6px 6px 0 #CC0000;
  transform: rotate(1.5deg);
}

#reckoning-earned {
  text-align: center;
  margin-bottom: 22px;
}

.reck-earned-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.reck-earned-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  line-height: 1.05;
  color: #FFFFFF;
  text-shadow: 3px 3px 0 #CC0000;
  letter-spacing: 2px;
}

.reck-record {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.reck-record.new {
  color: #E8B000;
  border: 1px dashed rgba(232,176,0,0.6);
  padding: 6px 10px;
  width: max-content;
  max-width: 100%;
  margin: 8px auto 0;
}

#reckoning-stats {
  margin-bottom: 22px;
}

.reck-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
  padding: 7px 0;
}

.reck-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.reck-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: #FFFFFF;
}
.reck-val.money   { color: #E8B000; }
.reck-val.warning { color: #CC0000; }

.reck-section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: #FFFFFF;
  border-left: 3px solid #CC0000;
  padding-left: 10px;
  margin: 20px 0 8px;
}

.reck-line {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.reck-line.waiting { color: rgba(255,255,255,0.5); font-style: italic; }

#reckoning-verdict {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-style: italic;
  line-height: 1.7;
  color: #E8B000;
  border: 1px solid rgba(232,176,0,0.4);
  padding: 12px 14px;
  margin: 22px 0;
}

#btn-reckoning-again {
  display: block;
  width: 100%;
  background: #CC0000;
  color: #FFFFFF;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  padding: 14px;
  cursor: pointer;
}
#btn-reckoning-again:hover { opacity: 0.85; }

/* Built by Mitton Works — quiet but discoverable */
.credit-line {
  text-align: center;
  margin-top: 28px;
}

.credit-line a {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.25);
  padding-bottom: 1px;
}

.credit-line a:hover {
  color: #E8B000;
  border-bottom-color: #E8B000;
}


/* ── PORTFOLIO & BUYERS PAGES ─────────────────────────────── */
/* Top clearance for the HUD used to live here (padding-top: 70px) as well
   as on .page-header below -- the two were stacking (Jonathan caught this
   28 Aug 2026: Portfolio/Buyers/How To Play had ~170px of dead space above
   the heading, while Jack's Mission and Free, which were never in this
   rule, looked correct with just .page-header's clearance). Top clearance
   now lives ONLY in the body.game-started .page-header rule below, so all
   five pages behave the same way. */
#page-portfolio,
#page-buyers,
#page-howtoplay {
  padding-bottom: 50px;
}

.page-header {
  padding: 16px 16px 8px;
  border-bottom: 2px solid #CC0000;
}

/* Once the game has started, #score-bar (score + scorecard chips +
   round-timer-wrap) stays fixed on screen over every one of these pages
   (Portfolio/Buyers/How To Play/Jack's Mission/Free) -- without extra
   top clearance here, the page-header heading renders right underneath
   it and is invisible until the page is scrolled down. #score-bar is
   ~86px tall; 100px leaves a small gap below it. Not needed before the
   game starts (How To Play can be opened from the splash screen too,
   when #score-bar is hidden) -- gated on body.game-started so that path
   keeps its normal, smaller top padding. If the HUD's height changes,
   update this value too. */
body.game-started .page-header {
  padding-top: 100px;
}

.page-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: #CC0000;
  letter-spacing: 3px;
  line-height: 1;
}

.page-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* ── CARD MODAL ───────────────────────────────────────────── */
#card-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0D0D0D;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#modal-inner {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 40px;
}

#modal-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0D0D0D;
  border-bottom: 1px solid #CC0000;
  padding: 12px 16px;
}

#modal-close {
  background: none;
  border: none;
  color: #CC0000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  cursor: pointer;
  padding: 0;
}

#modal-close::before {
  content: '← ';
}

#modal-media-wrap {
  position: relative;
}

#modal-img {
  display: block;
  width: 100%;
  max-height: 55vh;
  object-fit: cover;
  object-position: center;
}

#modal-content {
  padding: 16px;
}

/* ── MEDIA BADGE (AR / video / link) — overlaid on the image itself,
   a second, more visible way to the same link the text version below
   the description also offers ────────────────────────────────────── */
.media-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(13, 13, 13, 0.82);
  border: 1px solid #E8B000;
  border-radius: 20px;
  padding: 7px 13px;
  color: #E8B000;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
}
.media-badge:hover { background: rgba(13, 13, 13, 0.95); }
.media-badge svg { width: 15px; height: 15px; display: block; flex-shrink: 0; }
.media-badge.small {
  padding: 7px;
  border-radius: 50%;
}
.media-badge.small svg { width: 14px; height: 14px; }

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: #FFFFFF;
  letter-spacing: 1px;
  line-height: 1.1;
}

.modal-meta {
  font-size: 11px;
  color: #E8B000;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.modal-price-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #E8B000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.modal-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: #CC0000;
  margin-top: 2px;
}

.modal-stats {
  margin-top: 14px;
  border-top: 1px solid #333;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-stat {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.modal-prefs {
  margin-top: 14px;
  border-top: 1px solid #333;
  padding-top: 12px;
}

.card-description {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #333;
  font-size: 10px;
  line-height: 1.7;
  color: #FFFFFF;
  font-style: italic;
}

.modal-description {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #333;
  font-size: 13px;
  line-height: 1.8;
  color: #FFFFFF;
  font-style: italic;
}

.modal-quote {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #E8B000;
  font-style: italic;
  font-weight: 600;
}

.modal-link {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid #CC0000;
  color: #CC0000;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
}
.modal-link:hover {
  background: #CC0000;
  color: #FFFFFF;
}

.modal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #333;
}
.modal-nav-btn {
  flex: 1;
  padding: 10px 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #FFFFFF;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
}
.modal-nav-btn:hover { border-color: #E8B000; color: #E8B000; }
.modal-nav-count {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  white-space: nowrap;
}

#modal-content .buyer-quirk {
  margin-top: 12px;
  font-size: 11px;
}


/* ── PORTFOLIO + BUYERS GRIDS ─────────────────────────────── */
#portfolio-grid, #buyers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
}

.portfolio-card, .buyer-card {
  background: #1a1a1a;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card img, .buyer-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.buyer-card img { object-position: top; }

.card-media { position: relative; }

.card-info { padding: 8px; }

.card-title, .card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.card-meta, .card-archetype {
  font-size: 10px;
  color: #E8B000;
  margin-top: 3px;
}

.card-price-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  color: #E8B000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 5px;
}

.card-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: #CC0000;
  margin-top: 1px;
}

.card-stats, .card-prefs {
  display: none;
  padding: 6px 8px 10px;
  font-size: 10px;
  color: #FFFFFF;
  border-top: 1px solid #333;
  line-height: 1.8;
}

.portfolio-card.expanded .card-stats,
.buyer-card.expanded .card-prefs { display: block; }

.stat-label { color: #FFFFFF; }
.stat-value { color: #FFFFFF; }

.pref-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.pref-cat {
  width: 120px;
  flex-shrink: 0;
  color: #FFFFFF;
  font-size: 12px;
  text-align: right;
}

.pref-label {
  width: 38px;
  flex-shrink: 0;
  color: #FFFFFF;
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  text-align: left;
}

.pref-label.none { color: #666666; }
.pref-label.hate { color: #CC0000; }

.pref-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.pref-bar-fill {
  height: 100%;
  border-radius: 2px;
}

.pref-bar-fill.tier-high { background: #E8B000; width: 100%; }
.pref-bar-fill.tier-mid  { background: #FFFFFF;  width: 60%; }
.pref-bar-fill.tier-low  { background: #FFFFFF;  width: 25%; }

.buyer-quirk {
  margin-top: 6px;
  font-size: 9px;
  color: #CC0000;
  font-style: italic;
}


/* ── HOW TO PLAY + JACK'S MISSION PAGES ───────────────────── */
#htp-content,
#jm-content {
  padding: 20px 20px 40px;
}

.htp-section {
  margin-bottom: 22px;
  border-left: 3px solid #CC0000;
  padding-left: 14px;
}

.htp-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: #E8B000;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.htp-section p {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.htp-section p strong { color: #FFFFFF; }

.jm-closing-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto 0;
}

#btn-htp-play {
  display: block;
  width: 100%;
  background: #CC0000;
  color: #FFFFFF;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  padding: 14px;
  cursor: pointer;
  margin-top: 10px;
}

#btn-htp-play:hover { opacity: 0.85; }


/* ── WIN SCREEN ───────────────────────────────────────────── */
#page-win { background: #0D0D0D; }

#win-bg {
  position: relative;
  width: 100%;
  height: 100%;
}

#win-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#win-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px 24px 50px;
  background: linear-gradient(to top, rgba(13,13,13,0.97) 60%, transparent);
  text-align: center;
}

#win-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: #E8B000;
  text-shadow: 3px 3px 0 #CC0000;
  line-height: 1;
  letter-spacing: 2px;
}

#win-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: #FFFFFF;
  margin-top: 6px;
  letter-spacing: 1px;
}

#win-footnote {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  font-style: italic;
}

#win-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

#btn-play-again, #btn-win-portfolio {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
}

#btn-play-again    { background: #CC0000; color: #FFFFFF; }
#btn-win-portfolio { background: #E8B000; color: #0D0D0D; }


/* ── GAME OVER PAGE ───────────────────────────────────────── */
#gameover-bg {
  width: 100%;
  height: 100%;
  background: url('assets/backgrounds/background.jpg') center center / cover no-repeat;
  position: relative;
}

#gameover-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px 24px 60px;
  background: linear-gradient(to top, rgba(13,13,13,0.97) 60%, transparent);
  text-align: center;
}

#gameover-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  color: #CC0000;
  line-height: 1;
  letter-spacing: 3px;
}

#gameover-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: #FFFFFF;
  letter-spacing: 2px;
  margin-top: 8px;
}

#gameover-sold {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
}

#btn-gameover-play-again {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  background: #CC0000;
  color: #FFFFFF;
  margin-top: 24px;
}


/* ── SCORECARD HUD (top/second/failure chips, all pages) ───── */
#scorecard {
  position: absolute;
  top: 12px;
  right: 60px;
  display: flex;
  gap: 6px;
}

.sc-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 34px;
  padding: 3px 6px 2px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(13,13,13,0.75);
}

.sc-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  line-height: 1;
  color: #FFFFFF;
}

.sc-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
}

.sc-chip.top    { border-color: #2FA84F; }
.sc-chip.top    .sc-num { color: #2FA84F; }
.sc-chip.second { border-color: #E8B000; }
.sc-chip.second .sc-num { color: #E8B000; }
.sc-chip.other  { border-color: rgba(255,255,255,0.5); }
.sc-chip.other  .sc-num { color: rgba(255,255,255,0.85); }
.sc-chip.fail   { border-color: #CC0000; }
.sc-chip.fail   .sc-num { color: #CC0000; }


/* ── RECKONING SCORECARD ──────────────────────────────────── */
#reckoning-scorecard { margin-top: 18px; }

.reck-sc-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.reck-sc {
  flex: 1;
  max-width: 110px;
  text-align: center;
  padding: 10px 6px 8px;
  border: 1px solid rgba(255,255,255,0.25);
}

.reck-sc-num {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  line-height: 1;
  color: #FFFFFF;
}

.reck-sc-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 4px;
  color: rgba(255,255,255,0.6);
}

.reck-sc.top    { border-color: #2FA84F; }
.reck-sc.top    .reck-sc-num { color: #2FA84F; }
.reck-sc.second { border-color: #E8B000; }
.reck-sc.second .reck-sc-num { color: #E8B000; }
.reck-sc.other  { border-color: rgba(255,255,255,0.5); }
.reck-sc.other  .reck-sc-num { color: rgba(255,255,255,0.85); }
.reck-sc.fail   { border-color: #CC0000; }
.reck-sc.fail   .reck-sc-num { color: #CC0000; }

.reck-sc-possible {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  margin-top: 10px;
}

.reck-sc-possible-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: #E8B000;
}


/* ── PEA SHOP: VIEW BUTTON + OVERBUY CONFIRM ──────────────── */
.pea-view-btn {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: 2px;
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.4);
  cursor: pointer;
}
.pea-view-btn:hover { border-color: #E8B000; color: #E8B000; }

.pea-ar-btn {
  display: inline-block;
  text-decoration: none;
  border-color: #E8B000;
  color: #E8B000;
}
.pea-ar-btn:hover { border-color: #FFFFFF; color: #FFFFFF; }

.pea-buy-btn.confirm {
  background: #E8B000;
  color: #0D0D0D;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  padding: 8px 8px;
}


/* ── FREE PAGE ────────────────────────────────────────────── */
#free-content {
  padding: 0 20px 40px;
  text-align: center;
}

#free-img {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 8px auto 0;
}

#free-body {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  text-align: left;
  margin-top: 18px;
}


/* ── PASS BUTTON (limited free skips, game page only) ─────────── */
#pass-btn {
  position: absolute;
  top: 74px;
  right: 10px;
  z-index: 30;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  background: #CC0000;
  color: #E8B000;
  border: 1px solid #E8B000;
  cursor: pointer;
}
#pass-btn:hover:not(:disabled) { background: #A31A1A; }
#pass-btn:disabled {
  background: rgba(13,13,13,0.8);
  color: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.15);
  cursor: default;
}


/* ── SPLASH TAGLINE (editable sentence under the auctioneers) ── */
#splash-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 340px;
  margin: 18px auto 0;
  text-align: center;
}
#splash-tagline.hidden { display: none; }


/* ── PORTAL (secret-message layer) ──────────────────────────────
   Blue/yellow deliberately breaks the game palette — approved by
   Jonathan 27 Aug 2026 for the portal layer ONLY, so it reads as a
   message from outside the auction. Do not reuse these colours on
   any other element. */

.portal-btn {
  display: block;
  margin: 26px auto 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.portal-btn img {
  display: block;
  height: 128px;         /* display size is fixed here — source PNGs can be
                            any resolution and swap in without layout shift.
                            Doubled from 64px 4 Sep 2026 — was rendering too
                            small / not showing properly on the artwork page. */
  width: auto;
}
.portal-btn:active img { transform: scale(0.92); }

#portal-modal {
  position: fixed;
  inset: 0;
  z-index: 350;          /* above #card-modal (300), below milestone (400) */
  background: rgba(13, 13, 13, 0.82);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 30px 14px 46px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#portal-modal::-webkit-scrollbar { display: none; }

#portal-inner {
  max-width: 480px;
  margin: 0 auto;
  background: #3D5860;
  border: 3px solid #E4C93A;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.5);
  padding: 0 0 26px;
  transform: rotate(-0.6deg);   /* house rule: nothing perfectly straight */
  animation: portal-drop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes portal-drop {
  from { transform: translateY(-46px) rotate(-0.6deg); opacity: 0; }
  to   { transform: translateY(0)     rotate(-0.6deg); opacity: 1; }
}

#portal-bar {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(228, 201, 58, 0.4);
}

#portal-close {
  background: none;
  border: none;
  color: #E4C93A;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  cursor: pointer;
  padding: 0;
}
#portal-close::before { content: '\2190 '; }

#portal-content { padding: 20px 22px 0; }

.portal-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 1.5px;
  color: #E4C93A;
  margin-bottom: 14px;
}

#portal-content p {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  line-height: 1.7;
  color: #E4C93A;
  margin-bottom: 14px;
}

.portal-img {
  display: block;
  margin: 18px auto;
}

.portal-link {
  display: block;
  width: max-content;
  margin: 6px auto 0;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #3D5860;
  background: #E4C93A;
  padding: 10px 16px;
  text-decoration: none;
}


/* ── APPLY FOR A PEA MODAL ────────────────────────────────── */
/* Standard palette (red/mustard/black/white) — this is a real utility
   form, not lore content, so it does NOT use the portal layer's blue/
   yellow exception above. */
#apply-modal {
  position: fixed;
  inset: 0;
  z-index: 300;          /* same tier as #card-modal -- opened directly
                             from the PEA page, never nested with it */
  background: rgba(13, 13, 13, 0.88);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 30px 14px 46px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#apply-modal::-webkit-scrollbar { display: none; }

#apply-inner {
  max-width: 480px;
  margin: 0 auto;
  background: #161616;
  border: 3px solid #CC0000;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.5);
  padding: 20px 22px 26px;
  transform: rotate(0.5deg);   /* house rule: nothing perfectly straight */
  animation: apply-drop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes apply-drop {
  from { transform: translateY(-40px) rotate(0.5deg); opacity: 0; }
  to   { transform: translateY(0)     rotate(0.5deg); opacity: 1; }
}

#apply-close {
  display: block;
  background: none;
  border: none;
  color: #CC0000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
}

#apply-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 1.5px;
  color: #E8B000;
  margin-bottom: 10px;
}

#apply-intro {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
}

#apply-ar-note { margin: 10px 0 18px; }
#apply-ar-note a {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #E8B000;
  border: 1px solid #CC0000;
  padding: 6px 12px;
  text-decoration: none;
}
#apply-ar-note a:hover { background: #CC0000; color: #FFFFFF; }

.apply-field {
  display: block;
  margin-bottom: 14px;
}
.apply-field span {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.apply-field input,
.apply-field select,
.apply-field textarea {
  display: block;
  width: 100%;
  background: #0D0D0D;
  border: 1px solid rgba(255,255,255,0.25);
  color: #FFFFFF;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  padding: 9px 10px;
  resize: vertical;
}
.apply-field input:focus,
.apply-field select:focus,
.apply-field textarea:focus {
  outline: none;
  border-color: #CC0000;
}

.apply-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.apply-consent input { margin-top: 3px; flex-shrink: 0; }

#apply-error {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #CC0000;
  margin-bottom: 12px;
}

#apply-submit {
  display: block;
  width: 100%;
  background: #CC0000;
  color: #FFFFFF;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  padding: 12px;
  cursor: pointer;
}
#apply-submit:hover { opacity: 0.85; }
#apply-submit:disabled { opacity: 0.6; cursor: default; }

#apply-success-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: #E8B000;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
#apply-success-body {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}


/* ── ABOUT MODAL (Duchamp's) ─────────────────────────────────── */
/* Same overlay mechanics and palette as the APPLY FOR A PEA modal above
   (reuses its apply-drop keyframe) but fully duplicated rather than
   shared, so this can never affect the working PEA modal. */
#about-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(13, 13, 13, 0.88);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 30px 14px 46px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#about-modal::-webkit-scrollbar { display: none; }

#about-inner {
  max-width: 480px;
  margin: 0 auto;
  background: #161616;
  border: 3px solid #CC0000;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.5);
  padding: 20px 22px 26px;
  transform: rotate(0.5deg);
  animation: apply-drop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#about-close {
  display: block;
  background: none;
  border: none;
  color: #CC0000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
}

#about-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 1.5px;
  color: #E8B000;
  margin-bottom: 10px;
}

#about-img-wrap { margin-bottom: 14px; }
#about-img-wrap img {
  display: block;
  width: 100%;
}
#about-img-placeholder {
  border: 2px dashed rgba(232,176,0,0.5);
  color: rgba(232,176,0,0.7);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding: 34px 10px;
}

#about-established {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

#about-body p {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}

#about-intro {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #E8B000;
  margin: 4px 0 18px;
}

#about-error {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #CC0000;
  margin-bottom: 12px;
}

#about-submit {
  display: block;
  width: 100%;
  background: #CC0000;
  color: #FFFFFF;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  padding: 12px;
  cursor: pointer;
}
#about-submit:hover { opacity: 0.85; }
#about-submit:disabled { opacity: 0.6; cursor: default; }

#about-success-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: #E8B000;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
#about-success-body {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
