/*
Theme Name: AI Porn Radar (Fantasy Pixel Classic v2.3 - Mobile Pixel Perfect)
Theme URI: https://aipornradar.com
Author: AI Porn Radar Team
Version: 2.3.0
Description: Mobile-first, pixel-perfect 18-category mega directory. Optimized spacing, zero horizontal overflow, flawless tap targets.
Text Domain: aipornradar
*/

:root {
  /* Obsidian Dark Dungeon Palette */
  --bg-dungeon: #0b0914;
  --bg-surface: #131021;
  --bg-box: #171328;
  --bg-box-header: #1e1935;
  --bg-hover: #261f42;

  --border-pixel: #2b2447;
  --border-pixel-active: #a855f7;

  /* Retro Fantasy Accents */
  --mana-cyan: #00f0ff;
  --ruby-red: #f43f5e;
  --magic-purple: #c084fc;
  --gold-coin: #fbbf24;
  --emerald-green: #10b981;
  --amber-orange: #f59e0b;

  /* Text */
  --text-pure: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Fonts */
  --font-pixel: 'Silkscreen', monospace, sans-serif;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Classic RPG 2px Offset Box Shadow */
  --shadow-pixel: 3px 3px 0px #040308;
  --shadow-gold: 3px 3px 0px rgba(251, 191, 36, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  /* Strict mobile horizontal overflow guard */
}

body {
  background-color: var(--bg-dungeon);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.1) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  color: var(--text-pure);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* TOP HEADER */
.pixel-header {
  background: rgba(11, 9, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-pixel);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.65rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pixel-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-pixel);
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.pixel-logo .radar-icon {
  width: 30px;
  height: 30px;
  background: var(--bg-box-header);
  border: 2px solid var(--mana-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 2px 2px 0px #000;
  border-radius: 2px;
}

.pixel-logo span.highlight {
  color: var(--mana-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.header-status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  flex-shrink: 0;
}

.status-badge {
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--border-pixel);
  background: var(--bg-surface);
  color: var(--emerald-green);
  border-radius: 2px;
  white-space: nowrap;
}

/* HERO SECTION */
.pixel-hero {
  padding: 2rem 0 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
}

.hero-pill {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--gold-coin);
  background: rgba(251, 191, 36, 0.08);
  border: 1px dashed var(--gold-coin);
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

.pixel-hero h1 {
  font-size: clamp(1.45rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.pixel-hero h1 span.accent {
  color: var(--mana-cyan);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.pixel-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 800px;
  margin: 0 auto 1.4rem;
  padding: 0 0.5rem;
}

/* LIVE SEARCH INPUT (PREVENTS IOS ZOOM WITH 16PX FONT) */
.radar-search-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.pixel-search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 2px solid var(--border-pixel);
  color: #fff;
  font-family: var(--font-main);
  font-size: 16px;
  /* Prevents auto-zoom on mobile Safari */
  padding: 0.75rem 100px 0.75rem 1.15rem;
  /* Generous right padding prevents counter overlap */
  border-radius: 4px;
  box-shadow: var(--shadow-pixel);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.pixel-search-input:focus {
  border-color: var(--mana-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25), var(--shadow-pixel);
}

.search-counter {
  position: absolute;
  right: 12px;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border-pixel);
  border-radius: 2px;
  pointer-events: none;
}

/* STICKY HORIZONTAL SCROLLING QUICK NAV WITH TOUCH MOMENTUM */
.category-quicknav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.8rem;
  padding: 0.55rem;
  background: var(--bg-surface);
  border: 2px solid var(--border-pixel);
  box-shadow: var(--shadow-pixel);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  /* Silky smooth iOS inertia */
  scrollbar-width: thin;
  scrollbar-color: var(--border-pixel) var(--bg-surface);
}

.category-quicknav::-webkit-scrollbar {
  height: 4px;
}

.category-quicknav::-webkit-scrollbar-thumb {
  background: var(--border-pixel);
}

.cat-chip {
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  background: var(--bg-box-header);
  border: 1px solid var(--border-pixel);
  color: #cbd5e1;
  padding: 0.4rem 0.75rem;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  border-radius: 2px;
}

.cat-chip:hover,
.cat-chip:active {
  background: var(--magic-purple);
  color: #fff;
  border-color: #fff;
}

/* TOP 3 HALL OF FAME */
.hall-of-fame {
  background: var(--bg-surface);
  border: 2px solid var(--gold-coin);
  box-shadow: var(--shadow-gold);
  padding: 1.1rem 1.25rem;
  margin-bottom: 2.2rem;
  border-radius: 4px;
}

.hof-header {
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  color: var(--gold-coin);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.95rem;
}

.hof-card {
  background: var(--bg-box);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 0.85rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 4px;
}

.hof-crown {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.hof-logo {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  overflow: hidden;
  background: #1e1a33;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hof-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* DIRECTORY CATEGORY BOXES (RESPONSIVE GRID) */
.directory-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-bottom: 3.5rem;
}

/* THE CATEGORY BOX */
.category-box {
  background: var(--bg-box);
  border: 2px solid var(--border-pixel);
  box-shadow: var(--shadow-pixel);
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.category-box:hover {
  border-color: var(--border-pixel-active);
  transform: translateY(-2px);
}

.category-box-header {
  background: var(--bg-box-header);
  border-bottom: 2px solid var(--border-pixel);
  padding: 0.65rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.category-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.01em;
}

.category-count {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.5);
  color: var(--mana-cyan);
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--border-pixel);
  border-radius: 2px;
  flex-shrink: 0;
}

.category-intro {
  padding: 0.55rem 0.95rem;
  font-size: 0.76rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-pixel);
  line-height: 1.35;
}

/* SITE ROWS */
.site-row-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.site-row-item {
  display: grid;
  grid-template-columns: 24px 38px 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.12s ease;
}

.site-row-item:last-child {
  border-bottom: none;
}

.site-row-item:hover {
  background: var(--bg-hover);
}

.site-rank {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-align: center;
  flex-shrink: 0;
}

.site-rank.top-1 {
  color: var(--gold-coin);
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}

.site-rank.top-2 {
  color: #e2e8f0;
}

.site-rank.top-3 {
  color: #f97316;
}

/* LOGO THUMBNAIL (ASPECT-RATIO LOCK PREVENTS CLS) */
.site-logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid var(--border-pixel);
  overflow: hidden;
  background: #1a162b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 1px 1px 0px #000;
}

.site-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PIXEL AVATAR FALLBACK */
.pixel-avatar-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.pixel-avatar-char {
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.site-meta {
  min-width: 0;
  /* Critical for text-overflow: ellipsis in CSS grid */
}

.site-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.1rem;
}

.site-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-name:hover {
  color: var(--mana-cyan);
}

.pixel-badge {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 0.06rem 0.28rem;
  border-radius: 2px;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.site-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-stars {
  color: var(--gold-coin);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.site-cta-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.pixel-btn-visit {
  background: #10b981;
  color: #04101d;
  font-family: var(--font-pixel);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.4rem 0.65rem;
  border: 1px solid #059669;
  box-shadow: 2px 2px 0px #000;
  transition: all 0.1s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 2px;
}

.pixel-btn-visit:hover,
.pixel-btn-visit:active {
  background: #34d399;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000;
}

.btn-info-link {
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 0.3rem;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-info-link:hover {
  color: var(--mana-cyan);
}

/* EDITORIAL EEAT SECTION */
.pixel-editorial {
  background: var(--bg-surface);
  border: 2px solid var(--border-pixel);
  box-shadow: var(--shadow-pixel);
  padding: 2.2rem 1.8rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  border-radius: 4px;
}

.pixel-editorial h2 {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  color: var(--mana-cyan);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.pixel-editorial h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  margin: 1.4rem 0 0.4rem;
}

.pixel-editorial p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.pixel-editorial ul {
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}

.pixel-editorial li {
  margin-bottom: 0.35rem;
}

/* FAQ */
.pixel-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.faq-box {
  background: var(--bg-box);
  border: 1px solid var(--border-pixel);
  padding: 1.1rem;
  border-radius: 4px;
}

.faq-box h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.faq-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* FOOTER */
.pixel-footer {
  background: #07050d;
  border-top: 2px solid var(--border-pixel);
  padding: 2.2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-pixel);
  font-size: 0.68rem;
}

.footer-nav a:hover {
  color: var(--mana-cyan);
}

/* ==========================================================================
   MOBILE RESPONSIVE BREAKPOINTS (TESTED FOR IPHONE SE, 13/14/15, ANDROID)
   ========================================================================== */

/* Tablet (Under 1100px) */
@media (max-width: 1100px) {
  .directory-columns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hof-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Mobile Devices (Under 680px) */
@media (max-width: 680px) {
  .container {
    padding: 0 0.65rem;
    /* Maximize usable width on small screens */
  }

  /* Header compact mode */
  .pixel-header {
    padding: 0.5rem 0;
  }

  .pixel-logo {
    font-size: 1rem;
  }

  .pixel-logo .radar-icon {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  /* On mobile, keep only 1 badge to prevent header wrap */
  .header-status-bar span:nth-child(2),
  .header-status-bar span:nth-child(3) {
    display: none;
  }

  .status-badge {
    font-size: 0.62rem;
    padding: 0.18rem 0.4rem;
  }

  /* Hero adjustments */
  .pixel-hero {
    padding: 1.4rem 0 1rem;
    margin-bottom: 1.1rem;
  }

  .hero-pill {
    font-size: 0.64rem;
    padding: 0.2rem 0.55rem;
  }

  .pixel-hero h1 {
    font-size: 1.4rem;
    line-height: 1.25;
  }

  .pixel-hero p {
    font-size: 0.86rem;
    margin-bottom: 1rem;
  }

  /* Mobile Search Bar: Stack input and counter cleanly - Zero Overlap! */
  .radar-search-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
    align-items: center !important;
    width: 100% !important;
  }

  .pixel-search-input {
    font-size: 15px !important;
    padding: 0.7rem 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .search-counter {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    font-size: 0.66rem !important;
    align-self: center !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-pixel) !important;
    padding: 0.22rem 0.75rem !important;
    border-radius: 999px !important;
    color: var(--mana-cyan) !important;
    display: inline-block !important;
  }

  /* Quick Nav */
  .category-quicknav {
    margin-bottom: 1.4rem;
    padding: 0.4rem;
  }

  .cat-chip {
    font-size: 0.64rem;
    padding: 0.32rem 0.6rem;
  }

  /* Hall of Fame Mobile */
  .hall-of-fame {
    padding: 0.85rem 0.75rem;
    margin-bottom: 1.5rem;
  }

  .hof-header {
    font-size: 0.75rem;
    margin-bottom: 0.65rem;
  }

  .hof-card {
    padding: 0.65rem 0.75rem;
    gap: 0.55rem;
  }

  .hof-crown {
    font-size: 1.15rem;
  }

  .hof-logo {
    width: 38px;
    height: 38px;
  }

  /* 1-Column Category Directory Grid */
  .directory-columns-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin-bottom: 2.5rem;
  }

  /* Category Box Header */
  .category-box-header {
    padding: 0.55rem 0.75rem;
  }

  .category-title {
    font-size: 0.95rem;
  }

  .category-intro {
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
  }

  /* Site Row Items */
  .site-row-item {
    grid-template-columns: 20px 32px 1fr auto;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
  }

  .site-rank {
    font-size: 0.68rem;
  }

  .site-logo-wrap {
    width: 32px;
    height: 32px;
  }

  .site-name {
    font-size: 0.85rem;
  }

  .pixel-badge {
    font-size: 0.52rem;
    padding: 0.05rem 0.22rem;
  }

  .site-subtext {
    font-size: 0.68rem;
  }

  /* Buttons on mobile */
  .pixel-btn-visit {
    font-size: 0.62rem;
    padding: 0.32rem 0.52rem;
    min-height: 28px;
  }

  .btn-info-link {
    font-size: 0.78rem;
    padding: 0.2rem;
    min-width: 28px;
    min-height: 28px;
  }

  /* Editorial & FAQ Mobile */
  .pixel-editorial {
    padding: 1.25rem 0.85rem;
    margin-bottom: 1.8rem;
  }

  .pixel-editorial h2 {
    font-size: 0.95rem;
  }

  .pixel-editorial h3 {
    font-size: 0.98rem;
  }

  .pixel-editorial p,
  .pixel-editorial ul {
    font-size: 0.85rem;
  }

  .pixel-faq {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .faq-box {
    padding: 0.85rem;
  }

  .faq-box h4 {
    font-size: 0.88rem;
  }

  .faq-box p {
    font-size: 0.8rem;
  }

  /* Footer Mobile */
  .pixel-footer {
    padding: 1.5rem 0;
  }

  .footer-nav {
    gap: 0.55rem;
    font-size: 0.64rem;
  }
}

/* =============================================================================
   HERO PIXEL MASCOT & FOOTER TAVERN BANNER STYLES
   ============================================================================= */

.hero-mascot-card {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-surface);
  border: 2px solid var(--border-pixel);
  box-shadow: var(--shadow-pixel);
  padding: 0.65rem 1rem;
  border-radius: 4px;
  margin: 0.5rem auto 1.4rem;
  max-width: 620px;
  text-align: left;
}

.mascot-avatar {
  width: 58px;
  height: 58px;
  border-radius: 4px;
  border: 2px solid var(--mana-cyan);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 2px 2px 0px #000;
  background: #16122c;
}

.mascot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mascot-speech {
  min-width: 0;
}

.mascot-badge {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--mana-cyan);
  margin-bottom: 0.15rem;
  letter-spacing: 0.04em;
}

.mascot-speech p {
  font-size: 0.82rem;
  color: #e2e8f0;
  margin-bottom: 0 !important;
  line-height: 1.35;
  font-style: italic;
  padding: 0 !important;
}

/* FOOTER GUILD TAVERN REST STOP BANNER */
.guild-tavern-banner {
  margin-bottom: 3.5rem;
}

.tavern-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-pixel);
  box-shadow: var(--shadow-pixel);
  overflow: hidden;
  border-radius: 4px;
}

.tavern-image-frame {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: #0d0b1a;
}

.tavern-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tavern-text-wrap {
  padding: 1.4rem 1.6rem;
  background: var(--bg-box-header);
  border-top: 2px solid var(--border-pixel);
  text-align: center;
}

.tavern-tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  color: var(--gold-coin);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid var(--gold-coin);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.tavern-text-wrap h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.tavern-text-wrap p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 720px;
  margin: 0 auto 1.1rem;
}

.tavern-stickers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.t-sticker {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-pixel);
  color: var(--mana-cyan);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

@media (max-width: 680px) {
  .hero-mascot-card {
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
  }
  .mascot-avatar {
    width: 48px;
    height: 48px;
  }
  .mascot-speech p {
    font-size: 0.76rem;
  }
  .tavern-image-frame {
    height: 180px;
  }
  .tavern-text-wrap {
    padding: 1.1rem 0.85rem;
  }
  .tavern-text-wrap h3 {
    font-size: 1.05rem;
  }
}


/* =============================================================================
   THE RADAR DUDE STORYTELLING & CHARACTER STYLES (THEPORNDUDE STYLE)
   ============================================================================= */

/* HERO DUDE & AIKO CARD */
.dude-hero-card {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--bg-surface);
  border: 2px solid var(--gold-coin);
  box-shadow: var(--shadow-gold);
  padding: 0.85rem 1.25rem;
  border-radius: 4px;
  margin: 0.5rem auto 1.4rem;
  max-width: 720px;
  text-align: left;
}

.dude-avatar-duo {
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 64px;
}

.dude-avatar-frame {
  border-radius: 4px;
  overflow: hidden;
  position: absolute;
  box-shadow: 2px 2px 0px #000;
}

.dude-avatar-frame.dude-main {
  width: 62px;
  height: 62px;
  left: 0;
  top: 1px;
  z-index: 2;
  border: 2px solid var(--gold-coin);
}

.dude-avatar-frame.dude-side {
  width: 46px;
  height: 46px;
  right: 0;
  bottom: 1px;
  z-index: 1;
  border: 2px solid var(--mana-cyan);
}

.dude-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dude-speech {
  min-width: 0;
}

.dude-badge {
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  color: var(--gold-coin);
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}

.dude-speech p {
  font-size: 0.86rem;
  color: #f1f5f9;
  margin-bottom: 0 !important;
  line-height: 1.4;
  font-style: italic;
  padding: 0 !important;
}

/* MEET THE RADAR DUDE: THE ORIGIN STORY SECTION */
.dude-story-section {
  background: var(--bg-surface);
  border: 2px solid var(--border-pixel);
  box-shadow: var(--shadow-pixel);
  padding: 2.2rem 1.8rem;
  margin-bottom: 3.5rem;
  border-radius: 4px;
}

.dude-story-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: center;
}

.dude-story-portrait {
  text-align: center;
}

.dude-story-portrait img {
  width: 200px;
  height: 200px;
  border-radius: 4px;
  border: 3px solid var(--gold-coin);
  box-shadow: var(--shadow-gold);
  object-fit: cover;
  display: block;
  margin: 0 auto 0.65rem;
}

.dude-caption {
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  color: var(--gold-coin);
}

.story-tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  color: var(--mana-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--mana-cyan);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.6rem;
}

.dude-story-text h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.dude-story-text p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.dude-golden-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.rule-box {
  background: var(--bg-box);
  border: 1px solid var(--border-pixel);
  padding: 0.85rem;
  border-radius: 4px;
  display: flex;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-pure);
  line-height: 1.35;
}

.rule-num {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--gold-coin);
  flex-shrink: 0;
}

/* DUDE'S VERDICT CALLOUT INSIDE CATEGORY BOXES */
.category-dude-take {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: rgba(251, 191, 36, 0.06);
  border-bottom: 1px dashed rgba(251, 191, 36, 0.35);
  font-size: 0.76rem;
  line-height: 1.4;
  color: #fde68a;
}

.dude-take-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.dude-take-body strong {
  color: var(--gold-coin);
  font-family: var(--font-pixel);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

/* DUDE'S CHOICE BADGE */
.pixel-badge.dudes-choice {
  background: rgba(251, 191, 36, 0.15) !important;
  color: var(--gold-coin) !important;
  border: 1px solid var(--gold-coin) !important;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}

/* RESPONSIVE STORYTELLING */
@media (max-width: 900px) {
  .dude-story-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.4rem;
  }
  .dude-golden-rules {
    grid-template-columns: 1fr;
  }
  .rule-box {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .dude-hero-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  .dude-avatar-duo {
    margin: 0 auto;
  }
  .dude-speech p {
    font-size: 0.8rem;
  }
}
