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

/* ── Base ──────────────────────────────────────────────────────────────────── */
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, color 0.3s;
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ── Noise texture overlay ─────────────────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

/* ── Theme: Chill (default) ────────────────────────────────────────────────── */
body[data-mode="chill"] {
  background: #E8F4F8;
  color: #1a2b3c;
}
body[data-mode="chill"] a { color: #004F72; }
body[data-mode="chill"] .mode-switcher { background: #fff; border-color: #e0e0e0; }
body[data-mode="chill"] .btn-mode { color: #666; }
body[data-mode="chill"] .btn-mode.active { background: #006994; color: #fff; }
body[data-mode="chill"] .btn-mode:hover:not(.active) { background: rgba(0,0,0,0.05); }
body[data-mode="chill"] .card { background: #fff; color: #1a2b3c; }
body[data-mode="chill"] .card-name { color: #004F72; }
body[data-mode="chill"] .card-desc { color: #555; }
body[data-mode="chill"] .card-hero-emoji { background: linear-gradient(135deg, #B8E4F0 0%, #c8dfe8 100%); }
body[data-mode="chill"] .card-category { background: #006994; color: #fff; }
body[data-mode="chill"] .tag-pill { background: #c8dfe8; color: #004F72; }
body[data-mode="chill"] .tag-pill.tag-town { background: #004F72; color: #fff; }
body[data-mode="chill"] .btn-yes { background: #006994; color: #fff; }
body[data-mode="chill"] .btn-yes:hover:not(:disabled) { background: #004F72; }
body[data-mode="chill"] .btn-no { background: #c8dfe8; color: #004F72; }
body[data-mode="chill"] .btn-no:hover { background: #b8d4e0; }
body[data-mode="chill"] .btn-filter-action { background: #1a1a1a; color: #fff; }
body[data-mode="chill"] .btn-filter-action:hover { background: #2a2a2a; }
body[data-mode="chill"] .site-footer { border-top-color: #d0dce8; color: #5a7a9a; }
body[data-mode="chill"] .btn-modal-confirm { background: #006994; border-color: #006994; color: #fff; }
body[data-mode="chill"] .btn-modal-confirm:hover { background: #004F72; }
body[data-mode="chill"] .loading-spinner { border-color: #c8dce8; border-top-color: #004F72; }
body[data-mode="chill"] .btn-filter-opt.active { background: #006994; border-color: #006994; color: #fff; }
body[data-mode="chill"] .btn-filter-opt:hover:not(.active) { background: #e0f2f8; border-color: #006994; }
body[data-mode="chill"] .filter-modal { background: #fff; color: #1a2b3c; }
body[data-mode="chill"] .filter-modal-header { border-bottom-color: #e8eef4; }
body[data-mode="chill"] .filter-modal-footer { border-top-color: #e8eef4; }
body[data-mode="chill"] .filter-section-label { color: #5a7a9a; }
body[data-mode="chill"] .btn-filter-apply { background: #004F72; border-color: #004F72; color: #fff; }
body[data-mode="chill"] .btn-filter-apply:hover { background: #003a54; }
body[data-mode="chill"] .btn-filter-clear { border-color: #c8d8e8; color: #5a7a9a; }
body[data-mode="chill"] .btn-filter-clear:hover { background: #e8eef4; }
body[data-mode="chill"] .btn-sleep-in-modal { border-color: #006994; color: #006994; }
body[data-mode="chill"] .btn-sleep-in-modal:hover { background: #006994; color: #fff; }
body[data-mode="chill"] .btn-close { color: #5a7a9a; }
body[data-mode="chill"] .btn-close:hover { color: #1a2b3c; background: #f0f4f8; }
body[data-mode="chill"] .active-pill { background: #006994; color: #fff; }
body[data-mode="chill"] .pill-remove { color: rgba(255,255,255,0.8); }
body[data-mode="chill"] .pill-remove:hover { color: #fff; }
body[data-mode="chill"] .btn-clear-all { color: #5a7a9a; border-color: #c8d8e8; }
body[data-mode="chill"] .btn-clear-all:hover { background: #e8eef4; }
body[data-mode="chill"] .btn-back { border-color: #006994; color: #006994; }
body[data-mode="chill"] .btn-back:hover { background: #006994; color: #fff; }
body[data-mode="chill"] .btn-share { color: #5a7a9a; }
body[data-mode="chill"] .btn-share:hover { color: #004F72; }
body[data-mode="chill"] .btn-sleep { border-color: #006994; color: #006994; }
body[data-mode="chill"] .btn-sleep:hover { background: #006994; color: #fff; }

/* ── Theme: Salty ─────────────────────────────────────────────────────────── */
body[data-mode="salty"] {
  background: #1A2535;
  color: #e0e0f0;
}
body[data-mode="salty"] a { color: #7EC8E3; }
body[data-mode="salty"] .mode-switcher { background: #1A2535; border-color: #7EC8E3; }
body[data-mode="salty"] .btn-mode { color: #8AAFC4; }
body[data-mode="salty"] .btn-mode.active { background: #7EC8E3; color: #1A2535; }
body[data-mode="salty"] .btn-mode:hover:not(.active) { background: rgba(126,200,227,0.1); }
body[data-mode="salty"] .card { background: #1E3045; color: #e0e0f0; }
body[data-mode="salty"] .card-name { color: #7EC8E3; }
body[data-mode="salty"] .card-desc { color: #8AAFC4; }
body[data-mode="salty"] .card-hero-emoji { background: linear-gradient(135deg, #1E3045 0%, #253d5a 100%); }
body[data-mode="salty"] .card-category { background: #7EC8E3; color: #1A2535; }
body[data-mode="salty"] .tag-pill { background: #253d5a; color: #8AAFC4; }
body[data-mode="salty"] .tag-pill.tag-town { background: #7EC8E3; color: #1A2535; }
body[data-mode="salty"] .btn-yes { background: #7EC8E3; color: #1A2535; }
body[data-mode="salty"] .btn-yes:hover:not(:disabled) { background: #5ab4d4; }
body[data-mode="salty"] .btn-no { background: #253d5a; color: #8AAFC4; }
body[data-mode="salty"] .btn-no:hover { background: #2e4d72; }
body[data-mode="salty"] .btn-filter-action { background: #0d0d0d; color: #7EC8E3; }
body[data-mode="salty"] .btn-filter-action:hover { background: #1a1a1a; }
body[data-mode="salty"] .site-footer { border-top-color: #253d5a; color: #8AAFC4; }
body[data-mode="salty"] .btn-modal-confirm { background: #7EC8E3; border-color: #7EC8E3; color: #1A2535; }
body[data-mode="salty"] .btn-modal-confirm:hover { background: #5ab4d4; }
body[data-mode="salty"] .loading-spinner { border-color: #253d5a; border-top-color: #7EC8E3; }
body[data-mode="salty"] .modal { background: #1E3045; color: #e0e0f0; }
body[data-mode="salty"] .btn-modal-cancel { background: #253d5a; border-color: #3a5a7a; color: #8AAFC4; }
body[data-mode="salty"] .btn-filter-opt { border-color: #7EC8E3; color: #7EC8E3; background: transparent; }
body[data-mode="salty"] .btn-filter-opt.active { background: #7EC8E3; border-color: #7EC8E3; color: #0F1C2E; }
body[data-mode="salty"] .btn-filter-opt:hover:not(.active) { background: #253d5a; border-color: #7EC8E3; }
body[data-mode="salty"] .filter-modal { background: #1E3045; color: #e0e0f0; }
body[data-mode="salty"] .filter-modal-header { border-bottom-color: #253d5a; }
body[data-mode="salty"] .filter-modal-footer { border-top-color: #253d5a; }
body[data-mode="salty"] .filter-section-label { color: #7EC8E3; }
body[data-mode="salty"] .btn-filter-apply { background: #7EC8E3; border-color: #7EC8E3; color: #1A2535; }
body[data-mode="salty"] .btn-filter-apply:hover { background: #5ab4d4; }
body[data-mode="salty"] .btn-filter-clear { border-color: #3a5a7a; color: #8AAFC4; }
body[data-mode="salty"] .btn-filter-clear:hover { background: #253d5a; }
body[data-mode="salty"] .btn-sleep-in-modal { border-color: #7EC8E3; color: #7EC8E3; }
body[data-mode="salty"] .btn-sleep-in-modal:hover { background: #7EC8E3; color: #1A2535; }
body[data-mode="salty"] .btn-close { color: #8AAFC4; }
body[data-mode="salty"] .btn-close:hover { color: #e0e0f0; background: #253d5a; }
body[data-mode="salty"] .active-pill { background: #7EC8E3; color: #1A2535; }
body[data-mode="salty"] .pill-remove { color: rgba(26,37,53,0.8); }
body[data-mode="salty"] .pill-remove:hover { color: #1A2535; }
body[data-mode="salty"] .btn-clear-all { color: #8AAFC4; border-color: #3a5a7a; }
body[data-mode="salty"] .btn-clear-all:hover { background: #253d5a; }
body[data-mode="salty"] .btn-back { border-color: #7EC8E3; color: #7EC8E3; }
body[data-mode="salty"] .btn-back:hover { background: #7EC8E3; color: #1A2535; }
body[data-mode="salty"] .btn-share { color: #8AAFC4; }
body[data-mode="salty"] .btn-share:hover { color: #7EC8E3; }
body[data-mode="salty"] .btn-sleep { border-color: #7EC8E3; color: #7EC8E3; }
body[data-mode="salty"] .btn-sleep:hover { background: #7EC8E3; color: #1A2535; }

/* ── Theme: Pirate ────────────────────────────────────────────────────────── */
body[data-mode="pirate"] {
  background: #080604;
  color: #E0D0B0;
}
body[data-mode="pirate"] a { color: #C8A84B; }
body[data-mode="pirate"] .mode-switcher { background: #1A1610; border-color: #C8A84B; }
body[data-mode="pirate"] .btn-mode { color: #8A7850; }
body[data-mode="pirate"] .btn-mode.active { background: #C8A84B; color: #100D08; }
body[data-mode="pirate"] .btn-mode:hover:not(.active) { background: rgba(200,168,75,0.1); }
body[data-mode="pirate"] .card { background: #1A1610; color: #E0D0B0; border: 1px solid #C8A84B; }
body[data-mode="pirate"] .card-name { color: #C8A84B; }
body[data-mode="pirate"] .card-desc { color: #8A7850; }
body[data-mode="pirate"] .card-hero-emoji { background: linear-gradient(135deg, #1A1610 0%, #2a2218 100%); }
body[data-mode="pirate"] .card-category { background: #C8A84B; color: #100D08; }
body[data-mode="pirate"] .tag-pill { background: #2a2218; color: #8A7850; }
body[data-mode="pirate"] .tag-pill.tag-town { background: #C8A84B; color: #100D08; }
body[data-mode="pirate"] .btn-yes { background: #C8A84B; color: #100D08; }
body[data-mode="pirate"] .btn-yes:hover:not(:disabled) { background: #b09040; }
body[data-mode="pirate"] .btn-no { background: #2a2a2a; color: #C8A84B; }
body[data-mode="pirate"] .btn-no:hover { background: #333; }
body[data-mode="pirate"] .btn-filter-action { background: #0d0d0d; color: #C8A84B; }
body[data-mode="pirate"] .btn-filter-action:hover { background: #1a1a1a; }
body[data-mode="pirate"] .site-footer { border-top-color: #2a2218; color: #8A7850; }
body[data-mode="pirate"] .btn-modal-confirm { background: #C8A84B; border-color: #C8A84B; color: #100D08; }
body[data-mode="pirate"] .btn-modal-confirm:hover { background: #b09040; }
body[data-mode="pirate"] .loading-spinner { border-color: #2a2218; border-top-color: #C8A84B; }
body[data-mode="pirate"] .modal { background: #1A1610; color: #E0D0B0; }
body[data-mode="pirate"] .btn-modal-cancel { background: #2a2218; border-color: #5a4a28; color: #8A7850; }
body[data-mode="pirate"] .btn-filter-opt { border-color: #C8A84B; color: #C8A84B; background: transparent; }
body[data-mode="pirate"] .btn-filter-opt.active { background: #C8A84B; border-color: #C8A84B; color: #111; }
body[data-mode="pirate"] .btn-filter-opt:hover:not(.active) { background: #2a2218; border-color: #C8A84B; }
body[data-mode="pirate"] .filter-modal { background: #1A1610; color: #E0D0B0; }
body[data-mode="pirate"] .filter-modal-header { border-bottom-color: #2a2218; }
body[data-mode="pirate"] .filter-modal-footer { border-top-color: #2a2218; }
body[data-mode="pirate"] .filter-section-label { color: #C8A84B; }
body[data-mode="pirate"] .btn-filter-apply { background: #C8A84B; border-color: #C8A84B; color: #100D08; }
body[data-mode="pirate"] .btn-filter-apply:hover { background: #b09040; }
body[data-mode="pirate"] .btn-filter-clear { border-color: #5a4a28; color: #8A7850; }
body[data-mode="pirate"] .btn-filter-clear:hover { background: #2a2218; }
body[data-mode="pirate"] .btn-sleep-in-modal { border-color: #C8A84B; color: #C8A84B; }
body[data-mode="pirate"] .btn-sleep-in-modal:hover { background: #C8A84B; color: #100D08; }
body[data-mode="pirate"] .btn-close { color: #8A7850; }
body[data-mode="pirate"] .btn-close:hover { color: #E0D0B0; background: #2a2218; }
body[data-mode="pirate"] .active-pill { background: #C8A84B; color: #100D08; }
body[data-mode="pirate"] .pill-remove { color: rgba(16,13,8,0.7); }
body[data-mode="pirate"] .pill-remove:hover { color: #100D08; }
body[data-mode="pirate"] .btn-clear-all { color: #8A7850; border-color: #5a4a28; }
body[data-mode="pirate"] .btn-clear-all:hover { background: #2a2218; }
body[data-mode="pirate"] .btn-back { border-color: #C8A84B; color: #C8A84B; }
body[data-mode="pirate"] .btn-back:hover { background: #C8A84B; color: #100D08; }
body[data-mode="pirate"] .btn-share { color: #8A7850; }
body[data-mode="pirate"] .btn-share:hover { color: #C8A84B; }
body[data-mode="pirate"] .btn-sleep { border-color: #C8A84B; color: #C8A84B; }
body[data-mode="pirate"] .btn-sleep:hover { background: #C8A84B; color: #100D08; }

/* ── Chill-only elements ───────────────────────────────────────────────────── */
body:not([data-mode="chill"]) .chill-only {
  display: none !important;
}

/* ── Mode switcher (fixed top-right) ──────────────────────────────────────── */
.mode-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  display: flex;
  gap: 0;
  border: 2px solid;
  border-radius: 100px;
  padding: 3px;
  transition: background 0.3s, border-color 0.3s;
}

.btn-mode {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

/* ── Site header (all modes) ──────────────────────────────────────────────── */
.site-header {
  text-align: center;
  padding: 4.5rem 1rem 1rem;
}

.site-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  max-width: 14ch;
  margin: 0 auto;
}

/* Title spans — default show chill, hide others */
.title-chill  { display: block; color: #004F72; }
.title-salty  { display: none;  color: #e0e0f0; }
.title-pirate { display: none;  color: #E0D0B0; }

/* Salty mode */
body.salty-mode .title-chill  { display: none; }
body.salty-mode .title-salty  { display: block; }
body.salty-mode .title-pirate { display: none; }

/* Pirate mode */
body.pirate-mode .title-chill  { display: none; }
body.pirate-mode .title-salty  { display: none; }
body.pirate-mode .title-pirate { display: block; }

.subtitle {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.2rem, 3.6vw, 1.7rem);
  margin-top: 0.4rem;
}

/* Subtitle spans — default show chill, hide others */
.sub-chill  { display: block; color: #006994; }
.sub-salty  { display: none;  color: #8AAFC4; }
.sub-pirate { display: none;  color: #8A7850; }

/* Salty mode */
body.salty-mode .sub-chill  { display: none; }
body.salty-mode .sub-salty  { display: block; }
body.salty-mode .sub-pirate { display: none; }

/* Pirate mode */
body.pirate-mode .sub-chill  { display: none; }
body.pirate-mode .sub-salty  { display: none; }
body.pirate-mode .sub-pirate { display: block; }

/* Word-level color highlights */
.word-obx       { color: #E8B84B; }
.word-salty     { color: #7EC8E3; }
.word-pirate    { color: #C8A84B; }
.word-obx-pirate { color: #8B0000; }

/* ── Main content ─────────────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

/* ── Toolbar ──────────────────────────────────────────────────────────────── */
.toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

/* ── Active filter pills ──────────────────────────────────────────────────── */
.active-filters {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1rem;
}

.active-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 0.2rem 0.55rem 0.2rem 0.7rem;
}

.pill-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0 0.1rem;
  transition: color 0.15s;
}

.btn-clear-all {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid;
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  cursor: pointer;
  transition: background 0.15s;
  text-transform: uppercase;
}

/* ── Back button ──────────────────────────────────────────────────────────── */
.btn-back {
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: 1px solid;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

/* ── Card area ────────────────────────────────────────────────────────────── */
.card-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* ── Card swipe / entry animations ───────────────────────────────────────── */
@keyframes flyLeft  { to { transform: translateX(-160%) rotate(-20deg); opacity: 0; } }
@keyframes flyRight { to { transform: translateX(160%)  rotate(20deg);  opacity: 0; } }
@keyframes popIn    { from { transform: scale(0.75) translateY(36px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.card-anim-wrapper { overflow: visible; width: 100%; }
.card-anim-wrapper.fly-left  { animation: flyLeft  0.38s ease-in forwards; }
.card-anim-wrapper.fly-right { animation: flyRight 0.38s ease-in forwards; }
.card-anim-wrapper.pop-in    { animation: popIn    0.42s cubic-bezier(0.34,1.56,0.64,1) forwards; }

/* ── Card ─────────────────────────────────────────────────────────────────── */
.card {
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s;
}

/* ── Tier borders ─────────────────────────────────────────────────────────── */
.card.tier-entry {
  border: 2px solid #cd7f32;
}

.card.tier-select {
  border: 2px solid #a8a9ad;
}

.card.tier-premier {
  border: 2px solid #E8B84B;
  box-shadow: 0 0 0 2px #E8B84B, 0 0 16px rgba(232,184,75,0.4);
}

/* ── Card hero ────────────────────────────────────────────────────────────── */
.card-hero {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.card-hero-video,
.card-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-hero-emoji {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  line-height: 1;
}

/* ── Category badge (top-left of hero) ───────────────────────────────────── */
.card-category {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
}

/* ── Featured badge (top-right of hero) ──────────────────────────────────── */
.featured-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
}
.tier-entry .featured-badge {
  background: #cd7f32;
  color: #fff;
}
.tier-select .featured-badge {
  background: #a8a9ad;
  color: #fff;
}
.tier-premier .featured-badge {
  background: #E8B84B;
  color: #7a5500;
}

/* ── Card body ────────────────────────────────────────────────────────────── */
.card-body {
  padding: 1.4rem 1.5rem 1.2rem;
}

.card-body--center {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
}

.card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

/* ── Town pills row ───────────────────────────────────────────────────────── */
.card-towns {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.4rem;
  row-gap: 0.15rem;
  margin-bottom: 0.4rem;
}

/* ── Tags row ─────────────────────────────────────────────────────────────── */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.4rem;
  row-gap: 0.15rem;
  margin-bottom: 0.6rem;
  align-items: center;
}

.tag-pill {
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 100px;
  padding: 0.2rem 0.55rem;
  transition: opacity 0.15s;
  align-self: center;
}

/* ── Share button ─────────────────────────────────────────────────────────── */
.btn-share {
  display: block;
  margin-left: auto;
  width: fit-content;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
}

/* ── Card action buttons (outside card, below) ────────────────────────────── */
.card-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 520px;
}

.btn-yes,
.btn-no,
.btn-filter-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 16px 20px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-yes:hover:not(:disabled),
.btn-no:hover,
.btn-filter-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.btn-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.btn-line1 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.btn-line2 {
  font-size: 0.78rem;
  opacity: 0.75;
  font-weight: 400;
}

/* ── Loading ──────────────────────────────────────────────────────────────── */
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #d0dce8;
  border-top-color: #004F72;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* ── Empty/error card ─────────────────────────────────────────────────────── */
.empty-text {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 1rem;
  text-align: center;
}

.btn-reset {
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 0.45rem 1.1rem;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
}

/* ── Buttons (generic base) ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}

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

/* ── Sleep button ─────────────────────────────────────────────────────────── */
.sleep-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-sleep {
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 0.55rem 1.25rem;
  background: transparent;
  border: 1px solid;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  border-top: 1px solid transparent;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#saltyModal.modal-overlay,
#pirateModal.modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.modal-overlay.visible {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-text {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn-modal-cancel {
  background: #f0f0f0;
  border-color: #ddd;
  color: #555;
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
}

.btn-modal-cancel:hover {
  background: #e0e0e0;
}

.btn-modal-confirm {
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border: 1px solid transparent;
}

/* ── Warning modals (Salty / Pirate) ─────────────────────────────────────── */
@keyframes modal-pop-warning {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-warning {
  border-radius: 24px;
  padding: 36px 28px 28px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  animation: modal-pop-warning 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal-warning-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.modal-warning-label--salty  { color: #C0392B; }
.modal-warning-label--pirate { color: #C8A84B; }

.modal-emoji {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

.modal-actions--center {
  justify-content: center;
}

/* Salty modal — white box, red title & confirm */
#saltyModal .modal-warning {
  background: #fff;
  color: #333;
}

#saltyModal .modal-title {
  color: #C0392B;
}

#saltyModal .modal-text {
  color: #666;
}

#saltyModal .btn-modal-confirm {
  background: #C0392B;
  border-color: #C0392B;
  color: #fff;
}

#saltyModal .btn-modal-confirm:hover {
  background: #a93226;
  border-color: #a93226;
}

#saltyModal .btn-modal-cancel {
  background: #c8dfe8;
  border-color: #c8dfe8;
  color: #004F72;
}

#saltyModal .btn-modal-cancel:hover {
  background: #b8d4e0;
  border-color: #b8d4e0;
}

/* Pirate modal — dark box, gold border, gold title & confirm */
.modal-warning--pirate {
  background: #1c1c1c;
  border: 1px solid #C8A84B;
  color: #E0D0B0;
}

#pirateModal .modal-title {
  color: #C8A84B;
}

#pirateModal .modal-text {
  color: #b8a88a;
}

#pirateModal .btn-modal-confirm {
  background: #C8A84B;
  border-color: #C8A84B;
  color: #100D08;
}

#pirateModal .btn-modal-confirm:hover {
  background: #b09040;
  border-color: #b09040;
}

#pirateModal .btn-modal-cancel {
  background: #c8dfe8;
  border-color: #c8dfe8;
  color: #004F72;
}

#pirateModal .btn-modal-cancel:hover {
  background: #b8d4e0;
  border-color: #b8d4e0;
}

/* ── Filter overlay (larger, scrollable) ─────────────────────────────────── */
.filter-overlay {
  align-items: flex-end;
  padding: 0;
}

@media (min-width: 560px) {
  .filter-overlay {
    align-items: center;
    padding: 1rem;
  }
}

/* ── Filter modal ─────────────────────────────────────────────────────────── */
.filter-modal {
  border-radius: 14px 14px 0 0;
  padding: 0;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 560px) {
  .filter-modal {
    border-radius: 14px;
    max-height: 85vh;
  }
}

.filter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid transparent;
  flex-shrink: 0;
}

.filter-modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.filter-modal-subtitle {
  margin: 2px 0 0;
  font-size: 0.78rem;
  opacity: 0.65;
  line-height: 1.3;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.filter-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* ── Filter section ───────────────────────────────────────────────────────── */
.filter-section {
  display: flex;
  flex-direction: column;
}

.filter-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
  border-radius: 4px;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}

.filter-section-header:hover {
  background: rgba(0, 105, 148, 0.05);
}

.filter-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-section-chevron {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.filter-section-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 0;
}

.filter-section-content .filter-options {
  padding-bottom: 0.5rem;
}

/* Desktop default: all sections expanded */
@media (min-width: 481px) {
  #filterModal .filter-section-content {
    max-height: 1000px;
  }
  #filterModal .filter-section-chevron {
    transform: rotate(180deg);
  }
}

/* JS override: explicitly expanded (used on mobile to open a section) */
#filterModal .filter-section.expanded .filter-section-content {
  max-height: 1000px;
}
#filterModal .filter-section.expanded .filter-section-chevron {
  transform: rotate(180deg);
}

/* JS override: explicitly collapsed (used on desktop to close a section) */
#filterModal .filter-section.collapsed .filter-section-content {
  max-height: 0;
}
#filterModal .filter-section.collapsed .filter-section-chevron {
  transform: rotate(0deg);
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-filter-opt {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.filter-sleep-divider {
  border: none;
  border-top: 1px solid #c8dfe8;
  margin: 0;
}

body[data-mode="salty"] .filter-sleep-divider { border-top-color: #253d5a; }
body[data-mode="pirate"] .filter-sleep-divider { border-top-color: #2a2218; }

/* ── Filter modal footer ──────────────────────────────────────────────────── */
.filter-modal-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-shrink: 0;
}

.filter-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-filter-apply {
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border: 1px solid transparent;
  font-size: 0.875rem;
  cursor: pointer;
}

.btn-filter-clear {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: transparent;
  border: 1px solid;
  cursor: pointer;
}

.btn-sleep-in-modal {
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 14px;
  background: transparent;
  border: 2px solid #c8dfe8;
  color: #004F72;
  font-weight: 700;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .btn-mode {
    font-size: 0.68rem;
    padding: 0.25rem 0.5rem;
  }

  .card-hero-emoji {
    font-size: 60px;
  }

  .card-name {
    font-size: 1.8rem;
  }

  .filter-modal-body {
    padding: 0.65rem 1rem 0.5rem;
  }

  .filter-modal-header,
  .filter-modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    padding-top: 5rem;
  }
}

/* ── Advertise page ───────────────────────────────────────────────────────── */

.adv-header {
  background: #004F72;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
}

.adv-header .site-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: 0.04em;
  color: #fff;
}

.adv-header .site-title a {
  color: #fff;
  text-decoration: none;
}

.adv-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.adv-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.adv-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  letter-spacing: 0.03em;
  color: #004F72;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.adv-hero p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #3a5a7a;
  max-width: 520px;
  margin: 0 auto;
}

.adv-section {
  margin-bottom: 2.5rem;
}

.adv-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: #004F72;
  margin-bottom: 0.75rem;
}

.adv-section p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3a5a7a;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.how-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #3a5a7a;
  line-height: 1.55;
}

.how-step-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #004F72;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.tier-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #d0dce8;
  margin-bottom: 0.5rem;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.tier-table thead th {
  background: #004F72;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.tier-table thead th:not(:first-child) {
  text-align: center;
}

.tier-table tbody tr {
  border-bottom: 1px solid #e0e8f0;
}

.tier-table tbody tr:last-child {
  border-bottom: none;
}

.tier-table tbody tr:nth-child(even) {
  background: #f6f9fc;
}

.tier-table tbody td {
  padding: 0.75rem 1rem;
  color: #1a2b3c;
  vertical-align: middle;
}

.tier-table tbody td:not(:first-child) {
  text-align: center;
}

.tier-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tier-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: #D4AF37;
  color: #fff;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  text-transform: uppercase;
}

.tier-note {
  font-size: 0.75rem;
  color: #5a7a9a;
  margin-top: 0.15rem;
}

.slot-boxes {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.slot-box {
  flex: 1;
  min-width: 180px;
  border: 1px solid #d0dce8;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: #fff;
  text-align: center;
}

.slot-box.slot-premier {
  border-color: #D4AF37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.slot-box-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a7a9a;
  margin-bottom: 0.35rem;
}

.slot-box-count {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: #004F72;
  line-height: 1;
}

.slot-box.slot-premier .slot-box-count {
  color: #b8860b;
}

.slot-box-sub {
  font-size: 0.8rem;
  color: #5a7a9a;
  margin-top: 0.2rem;
}

.slot-loading {
  color: #5a7a9a;
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

.tier-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.tier-card {
  border: 1px solid #d0dce8;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #fff;
}

.tier-card.tc-entry {
  border-color: #D4AF37;
  border-width: 1px;
}

.tier-card.tc-select {
  border-color: #D4AF37;
  border-width: 2px;
}

.tier-card.tc-premier {
  border-color: #D4AF37;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.tier-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.tier-card-name {
  font-weight: 600;
  font-size: 1rem;
  color: #1a2b3c;
}

.tier-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tier-card-features li {
  font-size: 0.88rem;
  color: #3a5a7a;
  padding-left: 1.1rem;
  position: relative;
}

.tier-card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #006994;
  font-weight: 600;
}

.adv-contact {
  background: #004F72;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  color: #fff;
  margin-bottom: 2.5rem;
}

.adv-contact h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.adv-contact p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b8d8e8;
  margin-bottom: 1.1rem;
}

.adv-contact-btn {
  display: inline-block;
  background: #006994;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.adv-contact-btn:hover {
  background: #004F72;
  text-decoration: none;
}

.adv-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #5a7a9a;
  border-top: 1px solid #d0dce8;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.adv-footer a {
  color: #5a7a9a;
  text-decoration: none;
}

.adv-footer a:hover {
  color: #004F72;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .card-area { padding: 0 12px; }
  .slot-boxes {
    flex-direction: column;
  }

  .site-header {
    padding: 72px 16px 8px;
  }

  .site-title {
    font-size: clamp(2rem, 7vw, 3rem);
    max-width: none;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  .card-hero {
    height: 160px;
  }

  .card {
    border-radius: 16px;
  }

  .card-body {
    padding: 16px 20px 20px;
  }

  .card-name {
    font-size: 1.6rem;
  }

  .card-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .card-tags {
    gap: 4px;
  }

  .tag-pill {
    padding: 2px 8px;
    font-size: 0.65rem;
  }

  .btn-yes,
  .btn-no,
  .btn-sleep {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

}

/* 500 Error Page */
.page-500 .site-header {
  padding: 3.5rem 1rem 2rem;
}
body[data-mode="chill"]  .page-500 .site-header { background: #006994; }
body[data-mode="salty"]  .page-500 .site-header { background: #1A2535; }
body[data-mode="pirate"] .page-500 .site-header { background: #080604; }

body[data-mode="chill"]  .page-500 .title-chill  { color: #fff; }
body[data-mode="salty"]  .page-500 .title-salty  { color: #fff; }
body[data-mode="pirate"] .page-500 .title-pirate { color: #fff; }
body[data-mode="chill"]  .page-500 .word-obx        { color: rgba(255,255,255,0.75); }
body[data-mode="salty"]  .page-500 .word-salty       { color: rgba(255,255,255,0.75); }
body[data-mode="pirate"] .page-500 .word-pirate      { color: rgba(255,255,255,0.75); }
body[data-mode="pirate"] .page-500 .word-obx-pirate  { color: rgba(255,255,255,0.75); }
.page-500 .subtitle { display: none; }

/* 404 Not Found Page */
.page-404 .site-header {
  padding: 3.5rem 1rem 2rem;
}
body[data-mode="chill"]  .page-404 .site-header { background: #006994; }
body[data-mode="salty"]  .page-404 .site-header { background: #1A2535; }
body[data-mode="pirate"] .page-404 .site-header { background: #080604; }

body[data-mode="chill"]  .page-404 .title-chill  { color: #fff; }
body[data-mode="salty"]  .page-404 .title-salty  { color: #fff; }
body[data-mode="pirate"] .page-404 .title-pirate { color: #fff; }
body[data-mode="chill"]  .page-404 .word-obx        { color: rgba(255,255,255,0.75); }
body[data-mode="salty"]  .page-404 .word-salty       { color: rgba(255,255,255,0.75); }
body[data-mode="pirate"] .page-404 .word-pirate      { color: rgba(255,255,255,0.75); }
body[data-mode="pirate"] .page-404 .word-obx-pirate  { color: rgba(255,255,255,0.75); }
.page-404 .subtitle { display: none; }

.not-found-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.not-found-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 79, 114, 0.10);
  max-width: 480px;
  width: 100%;
  padding: 48px 36px;
  text-align: center;
}

.not-found-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  line-height: 1;
}

.not-found-icon .icon-salty,
.not-found-icon .icon-pirate {
  display: none;
}

body.salty-mode .not-found-icon .icon-chill  { display: none; }
body.salty-mode .not-found-icon .icon-salty  { display: block; }
body.pirate-mode .not-found-icon .icon-chill  { display: none; }
body.pirate-mode .not-found-icon .icon-pirate { display: block; }

.not-found-copy {
  display: block;
}

.not-found-copy.copy-salty,
.not-found-copy.copy-pirate {
  display: none;
}

body.salty-mode .not-found-copy.copy-chill  { display: none; }
body.salty-mode .not-found-copy.copy-salty  { display: block; }
body.pirate-mode .not-found-copy.copy-chill  { display: none; }
body.pirate-mode .not-found-copy.copy-pirate { display: block; }

.not-found-copy h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: #004F72;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.not-found-copy p {
  font-size: 0.97rem;
  line-height: 1.6;
  color: #5a7a9a;
  margin-bottom: 28px;
}

.not-found-btn {
  display: inline-block;
  background: #e0f2f8;
  color: #004F72;
  border: 1.5px solid #b8d8e8;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, color 0.15s;
}

.not-found-btn:hover {
  background: #004F72;
  color: #fff;
  text-decoration: none;
}

body[data-mode="salty"] .not-found-card {
  background: #1E3045;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

body[data-mode="salty"] .not-found-copy h1 {
  color: #7EC8E3;
}

body[data-mode="salty"] .not-found-copy p {
  color: #8AAFC4;
}

body[data-mode="salty"] .not-found-btn {
  background: #253d5a;
  color: #7EC8E3;
  border-color: #7EC8E3;
}

body[data-mode="salty"] .not-found-btn:hover {
  background: #7EC8E3;
  color: #1A2535;
}

body[data-mode="pirate"] .not-found-card {
  background: #1A1610;
  border: 1px solid #C8A84B;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

body[data-mode="pirate"] .not-found-copy h1 {
  color: #C8A84B;
}

body[data-mode="pirate"] .not-found-copy p {
  color: #8A7850;
}

body[data-mode="pirate"] .not-found-btn {
  background: #2a2218;
  color: #C8A84B;
  border-color: #C8A84B;
}

body[data-mode="pirate"] .not-found-btn:hover {
  background: #C8A84B;
  color: #100D08;
}

@media (max-width: 480px) {
  .not-found-card {
    padding: 36px 24px;
  }

  .not-found-copy h1 {
    font-size: 2rem;
  }
}
