/* ─────────────────────────────────────────────
   RESET & ROOT
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #000000;
  --red:      #ff2222;
  --red-dim:  #7a0000;
  --red-glow: rgba(255, 34, 34, 0.55);
  --red-faint:rgba(255, 34, 34, 0.07);
  --white:    #e4e4e4;
  --dim:      #555555;
  --border:   #2a0000;
  --font-hud: 'VT323', monospace;
  --font-mono:'Share Tech Mono', monospace;
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-mono);
  overflow: hidden;
  user-select: none;
}

/* ─────────────────────────────────────────────
   CANVAS BACKGROUND (falling code)
───────────────────────────────────────────── */
#bg-canvas {
  position: fixed; inset: 0;
  z-index: 0;
  opacity: 0.18;
}

/* ─────────────────────────────────────────────
   CRT SCANLINES
───────────────────────────────────────────── */
#scanlines {
  position: fixed; inset: 0;
  z-index: 500;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 2px,
    rgba(0,0,0,0.13) 2px, rgba(0,0,0,0.13) 4px
  );
}

/* ─────────────────────────────────────────────
   SCREENS
───────────────────────────────────────────── */
.screen {
  position: fixed; inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.screen.active { opacity: 1; pointer-events: all; }

/* ─────────────────────────────────────────────
   BOOT SCREEN
───────────────────────────────────────────── */
#boot-screen {
  justify-content: center;
  padding: 12vh 10vw;
}
#boot-skip {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.15em;
  animation: blink 1.4s step-end infinite;
  pointer-events: none;
}
#boot-output {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.4vw, 15px);
  color: var(--red);
  line-height: 1.8;
  white-space: pre;
}

/* ─────────────────────────────────────────────
   SHARED: CURSOR & COLOUR HELPERS
───────────────────────────────────────────── */
.cursor { display: inline-block; }
.blink  { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.red  { color: var(--red); }
.dim  { color: var(--dim); }

/* ─────────────────────────────────────────────
   TERMINAL HEADER
───────────────────────────────────────────── */
.term-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 22px;
  border-bottom: 1px solid var(--red-dim);
  background: rgba(0,0,0,0.85);
  flex-shrink: 0;
  z-index: 20;
  backdrop-filter: blur(2px);
}
.header-left  { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 2px; }
.header-path  { color: var(--white); text-transform: uppercase; }
.header-right { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--dim); letter-spacing: 2px; }

/* Clickable breadcrumb segments */
.bc-link {
  cursor: pointer;
  color: var(--dim);
  transition: color 0.15s;
}
.bc-link:hover { color: var(--red); }
.bc-sep { color: var(--red-dim); }

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;box-shadow:0 0 8px var(--red)} 50%{opacity:0.3;box-shadow:none} }

/* ─────────────────────────────────────────────
   HOME SCREEN – LAYOUT
───────────────────────────────────────────── */
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  overflow: hidden;
}

.studio-name {
  font-family: var(--font-hud);
  font-size: clamp(36px, 5.5vw, 78px);
  color: var(--red);
  letter-spacing: 10px;
  text-shadow: 0 0 24px var(--red-glow), 0 0 60px rgba(255,34,34,0.2);
  text-align: center;
}
.studio-sub {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 5px;
  text-align: center;
  margin-top: 4px;
}

.rul {
  color: var(--red-dim);
  font-size: 14px;
  letter-spacing: 1px;
  overflow: hidden;
  width: 100%;
  max-width: 860px;
  text-align: center;
}

.home-prompt {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 3px;
}

/* ─────────────────────────────────────────────
   GAME TILES GRID
───────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 860px;
}
@media (max-width: 700px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────────────────────
   INDIVIDUAL TILE
───────────────────────────────────────────── */
.game-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 12px;
  background: var(--red-faint);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  /* clip corners via border trick, done with pseudo-corners instead */
}

/* Corner accent brackets */
.tile-corner {
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--red-dim);
  border-style: solid;
  transition: border-color 0.2s;
}
.tl { top: -1px; left: -1px;  border-width: 2px 0 0 2px; }
.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.bl { bottom: -1px; left: -1px;  border-width: 0 0 2px 2px; }
.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* Hover shine sweep */
.game-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,34,34,0.07) 50%, transparent 60%);
  background-size: 200% 200%;
  background-position: 200% 200%;
  transition: background-position 0.5s ease;
}
.game-tile:hover::after { background-position: 0% 0%; }

.game-tile:hover {
  border-color: var(--red);
  background: rgba(255,34,34,0.10);
  box-shadow: 0 0 18px rgba(255,34,34,0.22), inset 0 0 14px rgba(255,34,34,0.04);
}
.game-tile:hover .tile-corner { border-color: var(--red); }
.game-tile:hover .tile-name   { color: var(--red); text-shadow: 0 0 10px var(--red-glow); }

.tile-top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dim);
}
.tile-tag { color: var(--red-dim); }

.tile-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0000;
  display: flex;
}
.tile-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.1);
  transition: filter 0.3s, transform 0.4s;
}
.game-tile:hover .tile-img { filter: saturate(1.1) contrast(1.15); transform: scale(1.03); }

.tile-img-ph {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-family: var(--font-hud);
  font-size: 22px;
  letter-spacing: 3px;
}

.tile-name {
  font-family: var(--font-hud);
  font-size: 22px;
  letter-spacing: 2px;
  text-align: center;
  line-height: 1.1;
  color: var(--white);
  transition: color 0.2s, text-shadow 0.2s;
}

.tile-status {
  font-size: 10px;
  color: var(--red);
  letter-spacing: 3px;
  display: flex;
  align-items: center;
}
.status-dot-sm {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 4px var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ─────────────────────────────────────────────
   FLASH / TRANSITION OVERLAY
───────────────────────────────────────────── */
#flash {
  position: fixed; inset: 0;
  z-index: 400;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   LOADING OVERLAY (shown during transition)
───────────────────────────────────────────── */
#loader-overlay {
  position: fixed; inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12vh 10vw;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.4vw, 15px);
  color: var(--red);
  line-height: 2;
  white-space: pre;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
#loader-overlay.show { opacity: 1; pointer-events: all; }
#loader-text {}

/* ─────────────────────────────────────────────
   GAME SCREEN – LAYOUT
───────────────────────────────────────────── */
.back-btn {
  background: none;
  border: 1px solid var(--red-dim);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  padding: 4px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.back-btn:hover {
  border-color: var(--red);
  background: rgba(255,34,34,0.1);
  box-shadow: 0 0 10px rgba(255,34,34,0.3);
}

.game-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
@media (max-width: 700px) {
  .game-layout { grid-template-columns: 1fr; overflow-y: auto; }
}

/* Left: media panel */
.g-media {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--red-dim);
  background: #040000;
  overflow: hidden;
}
.g-media-header {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.g-screenshot {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) saturate(0.9);
  transition: filter 0.4s;
}
.g-screenshot:hover { filter: contrast(1.15) saturate(1.05); }

.g-img-ph {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-family: var(--font-hud);
  font-size: 42px;
  letter-spacing: 4px;
  border: 1px dashed var(--border);
  margin: 20px;
}

/* Right: info panel */
.g-info {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: rgba(4,0,0,0.9);
}
.g-info::-webkit-scrollbar { width: 3px; }
.g-info::-webkit-scrollbar-track { background: #000; }
.g-info::-webkit-scrollbar-thumb { background: var(--red-dim); }

.g-section {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.g-section:last-child { border-bottom: none; }

.g-title {
  font-family: var(--font-hud);
  font-size: clamp(30px, 3.5vw, 52px);
  color: var(--red);
  letter-spacing: 4px;
  line-height: 1;
  text-shadow: 0 0 20px var(--red-glow);
}
.g-tagline {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 4px;
  margin-top: 6px;
}

.g-stat {
  display: flex;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 13px;
  align-items: baseline;
}
.g-stat-key {
  font-size: 10px;
  color: var(--red-dim);
  letter-spacing: 2px;
  min-width: 82px;
  flex-shrink: 0;
}
.g-stat-val { color: var(--white); letter-spacing: 1px; }
.g-stat-val.online { color: var(--red); }

.g-log-label {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.g-desc {
  font-size: 13px;
  color: #aaa;
  line-height: 1.75;
  letter-spacing: 0.3px;
}

/* Play Now button */
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #000;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 4px;
  padding: 12px 28px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.play-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-100%);
  transition: transform 0.4s;
}
.play-btn:hover::before { transform: translateX(100%); }
.play-btn:hover {
  background: #ff4444;
  box-shadow: 0 0 30px rgba(255,34,34,0.7);
}

/* ─────────────────────────────────────────────
   PRIVACY SCREEN
───────────────────────────────────────────── */
.privacy-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px clamp(20px, 6vw, 80px) 60px;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}
.privacy-body::-webkit-scrollbar { width: 3px; }
.privacy-body::-webkit-scrollbar-track { background: #000; }
.privacy-body::-webkit-scrollbar-thumb { background: var(--red-dim); }
.privacy-body::-webkit-scrollbar-thumb:hover { background: var(--red); }

.pp-title {
  font-family: var(--font-hud);
  font-size: clamp(28px, 4vw, 52px);
  color: var(--red);
  letter-spacing: 4px;
  text-shadow: 0 0 20px var(--red-glow);
  line-height: 1.1;
  margin-bottom: 6px;
}
.pp-meta {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.pp-rule {
  border: none;
  border-top: 1px solid var(--red-dim);
  margin: 20px 0;
}
.pp-intro {
  font-size: 13px;
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 28px;
}
.pp-section {
  margin-bottom: 28px;
}
.pp-heading {
  font-family: var(--font-hud);
  font-size: 20px;
  color: var(--red);
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.pp-body {
  font-size: 13px;
  color: #aaa;
  line-height: 1.8;
  white-space: pre-wrap;
}
.pp-list {
  list-style: none;
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pp-list li {
  font-size: 13px;
  color: #aaa;
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}
.pp-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--red-dim);
}
.pp-list li strong {
  color: var(--white);
  font-weight: normal;
  letter-spacing: 1px;
}
.pp-contact-block {
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px solid var(--red-dim);
  background: var(--red-faint);
  font-size: 13px;
  color: #aaa;
  line-height: 2;
}
.pp-contact-block a {
  color: var(--red);
  text-decoration: none;
}
.pp-contact-block a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────
   CONTACT BUTTON (header)
───────────────────────────────────────────── */
.contact-btn {
  background: none;
  border: 1px solid var(--red-dim);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 4px 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.contact-btn:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 8px rgba(255,34,34,0.3);
}

/* ─────────────────────────────────────────────
   CONTACT MODAL
───────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  z-index: 600;
  background: rgba(0,0,0,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(2px);
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  width: min(480px, 90vw);
  background: #050000;
  border: 1px solid var(--red);
  box-shadow: 0 0 40px rgba(255,34,34,0.3), 0 0 80px rgba(255,34,34,0.1);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.modal-backdrop.open .modal-box { transform: scale(1); }

.modal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--red-dim);
  background: rgba(255,34,34,0.06);
}
.modal-title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--white);
}
.modal-close {
  background: none;
  border: 1px solid var(--red-dim);
  color: var(--dim);
  font-size: 12px;
  width: 24px; height: 24px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }

.modal-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-section-label {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 4px;
}
.modal-text {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

.modal-email-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--red-dim);
  background: rgba(255,34,34,0.04);
}
.modal-email-addr {
  flex: 1;
  font-family: var(--font-hud);
  font-size: 22px;
  color: var(--red);
  letter-spacing: 2px;
  text-shadow: 0 0 12px var(--red-glow);
}
.modal-copy-btn {
  background: none;
  border: 1px solid var(--red-dim);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.modal-copy-btn:hover, .modal-copy-btn.copied {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 8px rgba(255,34,34,0.3);
}

.modal-copy-confirm {
  font-size: 11px;
  color: var(--red);
  letter-spacing: 3px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}
.modal-copy-confirm.show { opacity: 1; }

.modal-mailto-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--red-dim);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  padding: 10px 20px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  align-self: flex-start;
}
.modal-mailto-btn:hover {
  border-color: var(--red);
  background: rgba(255,34,34,0.08);
  box-shadow: 0 0 14px rgba(255,34,34,0.3);
}

/* ─────────────────────────────────────────────
   PRIVACY POLICY LINK (game screen)
───────────────────────────────────────────── */
.g-privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 2px;
  text-decoration: none;
  transition: color 0.2s;
  margin-top: 4px;
}
.g-privacy-link:hover { color: var(--red); }
.g-privacy-link::before { content: '> '; color: var(--red-dim); }

/* ─────────────────────────────────────────────
   TILE LOGO (shown in placeholder when no cover art)
───────────────────────────────────────────── */
.tile-logo-img {
  max-width: 85%;
  max-height: 70%;
  object-fit: contain;
  /* pixelateImage() in JS handles the chunky-pixel effect */
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0.92;
}

/* ─────────────────────────────────────────────
   ASCII MAGIC WAND (Monke Mages tile)
───────────────────────────────────────────── */
.ascii-wand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-hud);
  font-size: 20px;
  color: var(--red);
  text-shadow: 0 0 10px var(--red-glow);
  line-height: 1;
  letter-spacing: 2px;
}
.aw-top   { font-size: 18px; letter-spacing: 4px; }
.aw-shaft { font-size: 16px; color: #cc0000; text-shadow: none; }
.aw-cross { font-size: 18px; }
.aw-base  { font-size: 16px; }

/* ─────────────────────────────────────────────
   GAME PAGE LOGO (replaces VT323 title text)
───────────────────────────────────────────── */
.g-logo-img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  object-position: left center;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  margin-bottom: 4px;
}

/* ─────────────────────────────────────────────
   PIXELATED IMAGE RENDERING
   Applied to all game images automatically.
   The browser keeps pixels sharp/blocky instead
   of blurring when scaling — fits the aesthetic.
───────────────────────────────────────────── */
.tile-img,
.g-screenshot {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ─────────────────────────────────────────────
   GLITCH ANIMATION (applied to tile on click)
───────────────────────────────────────────── */
@keyframes glitch {
  0%   { transform: translate(0); filter: brightness(1); }
  15%  { transform: translate(-4px, 1px); filter: brightness(3) hue-rotate(5deg); clip-path: inset(20% 0 55% 0); }
  30%  { transform: translate(3px, -2px); filter: brightness(2); clip-path: inset(60% 0 5% 0); }
  45%  { transform: translate(0); filter: brightness(1); clip-path: none; }
  60%  { transform: translate(-2px, 2px); filter: brightness(2.5); clip-path: inset(35% 0 40% 0); }
  75%  { transform: translate(0); filter: brightness(1); clip-path: none; }
  100% { transform: translate(0); filter: brightness(1); }
}
.glitching { animation: glitch 0.35s steps(1) forwards; }

/* ─────────────────────────────────────────────
   MOBILE — header & contact modal fixes
───────────────────────────────────────────── */
@media (max-width: 540px) {
  /* Hide the "SYSTEMS ONLINE" label + dot so the header doesn't overflow */
  .header-right .dim,
  .header-right .status-dot { display: none; }

  /* Prevent header from overflowing */
  .term-header { overflow: hidden; gap: 6px; }

  /* Let breadcrumb shrink and clip if needed */
  .header-left {
    font-size: 10px;
    letter-spacing: 1px;
    min-width: 0;
    overflow: hidden;
  }
  .header-path {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Keep right side fixed width so contact button never gets pushed off */
  .header-right {
    flex-shrink: 0;
    gap: 6px;
  }

  /* Shrink the contact button slightly */
  .contact-btn {
    padding: 4px 8px;
    letter-spacing: 1px;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Shrink the back button to match */
  .back-btn {
    padding: 4px 8px;
    letter-spacing: 1px;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Stack email address + copy button vertically in the modal */
  .modal-email-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Shrink the big email address so it fits */
  .modal-email-addr {
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
  }

  /* Make copy button full-width when stacked */
  .modal-copy-btn {
    width: 100%;
    padding: 8px;
    text-align: center;
  }

  /* Make mailto button full-width too */
  .modal-mailto-btn {
    align-self: stretch;
    justify-content: center;
  }
}
