/* ==========================================================================
   PERSONA 5 THEME & GAMING NEWS EDITORIAL STYLES
   ========================================================================== */

:root {
  --pcg-red: #d31124;
  --pcg-dark: #181818;
  --pcg-gray: #757575;
  --pcg-border: #e2e2e2;
  --pcg-bg: #ffffff;
  --pcg-text: #222222;

  /* Persona 5 Theme Tokens (Pure Red, Black, White) */
  --p5-crimson: #e60012;
  --p5-dark-crimson: #9e000c;
  --p5-black: #0c0b0b;
  --p5-white: #ffffff;
  --p5-font-title: 'Anton', 'Bebas Neue', sans-serif;
  --p5-font-ransom: 'Special Elite', 'Courier New', monospace;
  --p5-font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f7f7f7;
  color: var(--pcg-text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.8s ease;
}

/* Container utility */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* SOUND TOGGLE BUTTON (Hidden on news article to look 100% legit, appears in Metaverse mode) */
.sound-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--p5-black);
  color: #fff;
  border: 2px solid var(--p5-crimson);
  border-radius: 40px;
  padding: 10px 18px;
  display: none;
  opacity: 0;
  align-items: center;
  gap: 8px;
  font-family: var(--p5-font-title);
  letter-spacing: 1px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(230, 0, 18, 0.4);
  transition: transform 0.2s, background 0.2s, opacity 0.4s ease;
}

body.metaverse-mode .sound-toggle {
  display: flex;
  opacity: 1;
  animation: fadeInSound 0.5s ease forwards;
}

@keyframes fadeInSound {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sound-toggle:hover {
  transform: scale(1.05);
  background: var(--p5-crimson);
}

.sound-icon-svg {
  display: block;
}

.sound-icon-svg.hidden {
  display: none !important;
}

/* ==========================================================================
   PHASE 1: THE REALISTIC NEWS ARTICLE
   ========================================================================== */

.article-wrapper {
  background: #fff;
  min-height: 100vh;
  position: relative;
  z-index: 10;
  transition: opacity 0.6s ease, filter 0.5s ease;
}

/* Top Bar */
.top-bar {
  background: #111;
  color: #bbb;
  font-size: 12px;
  border-bottom: 1px solid #222;
  padding: 7px 0;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.trending-tag {
  background: var(--pcg-red);
  color: #fff;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.ticker-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: #ccc;
  flex: 1;
}

.top-links {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.top-links a {
  color: #aaa;
  text-decoration: none;
  font-weight: 600;
}

.top-links .sub-link {
  color: #ffca38;
}

/* Main Navbar */
.main-nav {
  background: #fff;
  border-bottom: 2px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
}

.brand-logo {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  text-decoration: none;
  letter-spacing: 1px;
  line-height: 1;
}

.logo-red {
  background: var(--pcg-red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 2px;
}

.logo-black {
  color: #111;
  padding-left: 4px;
}

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-menu a {
  text-decoration: none;
  color: #111;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-menu a.active {
  color: var(--pcg-red);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--pcg-red);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #222;
}

.login-btn {
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Sub-Nav */
.sub-nav {
  background: #f1f1f1;
  border-bottom: 1px solid #e0e0e0;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 0;
}

.sub-nav-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
}

.sub-topic.active-topic {
  color: var(--pcg-red);
}

/* Main Grid Layout */
.main-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin-top: 30px;
  margin-bottom: 60px;
}

/* Left Column / Article Main */
.article-main {
  min-width: 0;
}

.article-category {
  color: var(--pcg-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.article-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1.18;
  color: #111;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.article-standfirst {
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  color: #4a4a4a;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Byline Bar */
.article-byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  padding: 14px 0;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.author-text {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 14px;
  color: #111;
}

.verified-badge {
  color: #1da1f2;
  font-weight: bold;
}

.author-meta {
  font-size: 12px;
  color: #777;
}

.social-share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  padding: 6px 14px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-btn:hover {
  background: #eee;
}

.share-btn.reddit { color: #ff4500; }
.share-btn.twitter { color: #000; }
.share-btn.discord { color: #5865f2; }

/* Hero Figure */
.article-hero-figure {
  margin-bottom: 30px;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.hero-caption {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
  line-height: 1.4;
}

/* Article Prose */
.article-prose p {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.8;
  color: #2b2b2b;
  margin-bottom: 22px;
}

.article-prose .dropcap::first-letter {
  font-family: 'Anton', sans-serif;
  float: left;
  font-size: 64px;
  line-height: 52px;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 2px;
  color: var(--pcg-red);
}

/* Expand Article Trigger & Fade Overlay (Clean Editorial - No Red Box) */
.expand-article-wrapper {
  position: relative;
  margin-top: -45px;
  padding-top: 50px;
  padding-bottom: 25px;
  text-align: center;
  z-index: 15;
  transition: opacity 0.4s ease;
}

.expand-fade-overlay {
  position: absolute;
  top: -65px;
  left: 0;
  width: 100%;
  height: 85px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.88) 60%, #ffffff 100%);
  pointer-events: none;
}

.expand-article-btn {
  position: relative;
  z-index: 2;
  background: #ffffff;
  color: #1a1a1a;
  border: 1.5px solid #222222;
  padding: 11px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.expand-article-btn:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.expand-article-btn svg {
  transition: transform 0.2s ease;
}

.expand-article-btn:hover svg {
  transform: translateY(2px);
}

.article-expandable-content.collapsed {
  display: none;
}

.article-expandable-content.expanded {
  display: block;
  animation: fadeInArticle 0.4s ease forwards;
}

@keyframes fadeInArticle {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-quote-box {
  background: #fdf2f2;
  border-left: 4px solid var(--pcg-red);
  padding: 20px 24px;
  margin: 30px 0;
}

.article-quote-box blockquote {
  font-family: 'Lora', Georgia, serif;
  font-size: 19px;
  font-style: italic;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 8px;
}

.article-quote-box cite {
  font-size: 13px;
  font-weight: 700;
  color: #888;
  font-style: normal;
  display: block;
}

.glitch-trigger-header {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #111;
  margin: 32px 0 16px 0;
  line-height: 1.3;
}

.affected-games-list {
  background: #f8f8f8;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 20px 24px 20px 44px;
  margin: 24px 0;
  font-size: 17px;
  line-height: 2;
}

.affected-games-list li strong {
  color: #c00000;
}

/* In-Article Ad Placeholder */
.in-article-ad {
  background: #f0f0f0;
  border: 1px dashed #ccc;
  padding: 24px;
  text-align: center;
  margin: 32px 0;
  border-radius: 4px;
}

.ad-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #999;
  display: block;
  margin-bottom: 6px;
}

.ad-placeholder {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.glitch-manual-trigger-wrapper {
  margin: 35px 0;
  text-align: center;
}

.glitch-button-subtle {
  background: #111;
  color: #eee;
  border: 1px solid #444;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.glitch-button-subtle:hover {
  background: var(--p5-crimson);
  color: #fff;
  border-color: var(--p5-crimson);
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: #f9f9f9;
  border: 1px solid #eaeaea;
  padding: 22px;
  border-radius: 6px;
}

.widget-title {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: #111;
  border-bottom: 2px solid var(--pcg-red);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.trending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trending-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.trending-list .rank {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  color: var(--pcg-red);
  line-height: 1;
}

.trending-list a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}

.trending-list a:hover {
  color: var(--pcg-red);
}

.newsletter-widget p {
  font-size: 13px;
  color: #555;
  margin-bottom: 14px;
}

.newsletter-input {
  width: 100%;
  padding: 10px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}

.newsletter-btn {
  width: 100%;
  background: var(--pcg-red);
  color: #fff;
  border: none;
  padding: 10px;
  font-weight: 800;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
}

.sidebar-ad-box {
  background: #111;
  color: #fff;
  padding: 30px 15px;
  text-align: center;
  border-radius: 4px;
}

.ad-inner-title {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  color: #ff3344;
  margin-bottom: 8px;
}

.sidebar-ad-box p {
  font-size: 12px;
  color: #ccc;
}

/* Footer */
.site-footer {
  background: #111;
  color: #777;
  padding: 30px 0;
  font-size: 12px;
  border-top: 1px solid #222;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #888;
  text-decoration: none;
}


/* ==========================================================================
   PHASE 2: COGNITIVE GLITCH & DISTORTION
   ========================================================================== */

.glitch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glitch-overlay.active {
  opacity: 1;
}

.crt-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
}

.distortion-flicker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(230, 0, 18, 0.15);
  animation: flicker 0.12s infinite;
  mix-blend-mode: color-burn;
}

@keyframes flicker {
  0% { opacity: 0.1; }
  50% { opacity: 0.8; }
  100% { opacity: 0.2; }
}

/* Screen Shake applied to article */
.screen-glitch-active {
  animation: screenShake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both infinite;
  filter: contrast(180%) invert(10%) drop-shadow(0 0 10px red);
}

@keyframes screenShake {
  10%, 90% { transform: translate3d(-3px, 1px, 0) skewX(2deg); }
  20%, 80% { transform: translate3d(4px, -2px, 0) skewX(-2deg); }
  30%, 50%, 70% { transform: translate3d(-6px, 3px, 0) skewY(1deg); }
  40%, 60% { transform: translate3d(6px, -3px, 0) skewY(-1deg); }
}

.glitch-text-banner {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 600;
}

.glitch-word {
  font-family: var(--p5-font-title);
  font-size: clamp(48px, 9vw, 100px);
  color: #fff;
  background: #000;
  padding: 4px 24px;
  letter-spacing: 4px;
  box-shadow: -10px 10px 0 var(--p5-crimson);
  border: 4px solid var(--p5-crimson);
  animation: wordGlitch 0.2s infinite;
}

@keyframes wordGlitch {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); text-shadow: -2px 0 red, 2px 0 cyan; }
  40% { transform: translate(3px, -3px); text-shadow: 2px 0 red, -2px 0 cyan; }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(2px, 2px); }
  100% { transform: translate(0); }
}

/* ==========================================================================
   PHASE 3: CALLING CARD STAGE (THE METAVERSE CONFRONTATION)
   ========================================================================== */

.calling-card-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 800;
  background: #0c0808;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  padding: 30px 20px;
}

.calling-card-stage.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mementos Background Elements */
.mementos-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #350106 0%, #150002 60%, #080001 100%);
  overflow: hidden;
  z-index: 1;
}

.mementos-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#e60012 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.2;
}

/* Chains Graphic Decoration */
.red-chains-left, .red-chains-right {
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  background: repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(230,0,18,0.15) 15px, rgba(230,0,18,0.15) 30px);
  z-index: 2;
}
.red-chains-left { left: 0; }
.red-chains-right { right: 0; transform: scaleX(-1); }

/* Card Slam Animation Container */
.card-slam-container {
  position: relative;
  z-index: 10;
  max-width: 960px;
  width: 100%;
  margin: auto;
  transform: perspective(1200px) rotateX(15deg) scale(0.7);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.calling-card-stage.active .card-slam-container {
  transform: perspective(1200px) rotateX(0deg) scale(1);
}

/* The Calling Card Frame for User's Graphic */
.calling-card-frame {
  background: #000;
  border: 6px solid #000;
  box-shadow: 0 0 0 4px #e60012, 0 25px 70px rgba(0,0,0,0.95);
  border-radius: 6px;
  position: relative;
  transform: rotate(-1.2deg);
  overflow: hidden;
}

.calling-card-tag-top {
  background: #000;
  border-bottom: 2px solid var(--p5-crimson);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  font-family: var(--p5-font-title);
  letter-spacing: 2px;
  font-size: 14px;
}

.top-tag-text {
  color: #fff;
  background: var(--p5-crimson);
  padding: 2px 10px;
  transform: skew(-10deg);
}

.top-target-text {
  color: #fff;
}

.calling-card-img-holder {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
}

.calling-card-main-img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

/* Persona 5 Slanted Action Button */
.card-action-bar {
  margin-top: 26px;
  text-align: center;
}

.p5-action-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 18px 36px;
  display: inline-block;
  text-decoration: none;
}

.btn-skew-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  border: 3px solid #fff;
  transform: skew(-14deg);
  box-shadow: -8px 8px 0 #fff, -16px 16px 0 var(--p5-crimson);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-text {
  position: relative;
  z-index: 2;
  font-family: var(--p5-font-title);
  font-size: clamp(17px, 2.5vw, 24px);
  color: #fff;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-star-icon {
  color: var(--p5-crimson);
}

.p5-action-btn:hover .btn-skew-box {
  background: var(--p5-crimson);
  transform: skew(-14deg) translate(4px, -4px);
  box-shadow: -12px 12px 0 #fff, -20px 20px 0 #000;
}

/* ==========================================================================
   PHASE 4: ALL-OUT ATTACK FINISHER & BIRTHDAY SURPRISE
   ========================================================================== */

.all-out-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 30px 20px;
  animation: whiteFlash 0.5s ease-out;
}

.all-out-stage.hidden {
  display: none !important;
}

@keyframes whiteFlash {
  0% { background: #fff; filter: brightness(300%); }
  50% { background: #ff001e; }
  100% { background: #000; }
}

/* Fullscreen Confetti Canvas */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1200;
}

/* Finisher Background Graphic */
.aoa-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.aoa-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: contrast(140%) saturate(120%);
}

.aoa-overlay-filter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(230,0,18,0.7) 0%, rgba(0,0,0,0.9) 80%);
}

/* Content Container */
.aoa-content-container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.slash-banner-top {
  background: #000;
  border: 3px solid #fff;
  padding: 6px 24px;
  transform: skew(-15deg);
  box-shadow: 6px 6px 0 var(--p5-crimson);
}

.slash-kicker {
  font-family: var(--p5-font-title);
  font-size: 20px;
  color: #fff;
  letter-spacing: 3px;
}

/* Target Mugshot Photo Frame */
.target-mugshot-wrapper {
  display: flex;
  justify-content: center;
  margin: 8px 0;
  position: relative;
  z-index: 15;
}

.target-mugshot-frame {
  background: #ffffff;
  padding: 10px 10px 14px 10px;
  border: 4px solid #000000;
  box-shadow: -8px 8px 0 var(--p5-crimson), 0 14px 35px rgba(0, 0, 0, 0.9);
  transform: rotate(3deg);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  max-width: 220px;
  border-radius: 2px;
}

.target-mugshot-frame:hover {
  transform: rotate(0deg) scale(1.06);
  box-shadow: -10px 10px 0 #ffffff, 0 18px 45px rgba(230, 0, 18, 0.6);
}

.mugshot-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  background: var(--p5-crimson);
  color: #fff;
  border: 2px solid #000;
  font-family: var(--p5-font-title);
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 2px 12px;
  box-shadow: 2px 2px 0 #000;
  white-space: nowrap;
}

.mugshot-img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border: 2px solid #000;
  background: #000;
}

.target-mugshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.mugshot-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-family: var(--p5-font-title);
  font-size: 13px;
  color: #000;
  letter-spacing: 1px;
  border-top: 1px dashed #bbb;
  padding-top: 4px;
}

.caption-label {
  color: var(--p5-crimson);
  font-weight: 900;
}

.caption-val {
  font-weight: 800;
}

/* Big Title */
.birthday-main-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.p5-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.aoa-char {
  font-family: var(--p5-font-title);
  font-size: clamp(32px, 6vw, 68px);
  padding: 4px 14px;
  line-height: 1;
  display: inline-block;
  box-shadow: 4px 4px 0 #000;
}

.aoa-char.red { background: var(--p5-crimson); color: #fff; transform: rotate(-3deg); }
.aoa-char.white { background: #fff; color: #000; transform: rotate(2deg); }
.aoa-char.black { background: #000; color: #fff; transform: rotate(-2deg); border: 2px solid #fff; }
.aoa-space { width: 18px; }

.p5-name-row {
  display: flex;
  align-items: center;
  gap: 16px;
  transform: rotate(-2deg);
}

.aoa-name-box {
  font-family: var(--p5-font-title);
  font-size: clamp(48px, 9vw, 96px);
  color: #fff;
  background: var(--p5-crimson);
  padding: 6px 28px;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #000, 16px 16px 0 var(--p5-crimson);
  letter-spacing: 4px;
}

.aoa-alias-box {
  font-family: var(--p5-font-title);
  font-size: clamp(24px, 4vw, 44px);
  color: #000;
  background: #fff;
  padding: 6px 16px;
  border: 3px solid #000;
  box-shadow: -4px 4px 0 var(--p5-crimson);
}

/* Persona 5 Dialogue Box Stack */
.p5-dialogue-stack {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dialogue-stack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 2px solid var(--p5-crimson);
  padding-bottom: 8px;
}

.dialogue-box-item {
  width: 100%;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
  filter: drop-shadow(-8px 8px 0px rgba(0, 0, 0, 0.9));
}

.dialogue-box-item:hover {
  transform: scale(1.02) rotate(-0.5deg);
  filter: drop-shadow(-10px 10px 0px var(--p5-crimson));
}

.dialogue-box-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Action Buttons */
.aoa-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.p5-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 14px 24px;
  display: inline-block;
  text-decoration: none;
}

.p5-btn-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: skew(-12deg);
  transition: all 0.2s;
}

.p5-btn-text {
  position: relative;
  z-index: 2;
  font-family: var(--p5-font-title);
  font-size: 17px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-svg {
  display: block;
}

/* Confetti Button (Pure Persona 5 Red / Black / White) */
.confetti-action .p5-btn-box {
  background: var(--p5-crimson);
  border: 2px solid #fff;
  box-shadow: 4px 4px 0 #000;
}
.confetti-action .p5-btn-text { color: #fff; }
.confetti-action:hover .p5-btn-box {
  background: #fff;
  border: 2px solid var(--p5-crimson);
  transform: skew(-12deg) translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}
.confetti-action:hover .p5-btn-text { color: #000; }

/* Replay Link */
.replay-link-wrapper {
  margin-top: 10px;
}

.reset-prank-link {
  background: transparent;
  border: none;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  display: flex;
  align-items: center;
  font-family: var(--p5-font-body);
}

.reset-prank-link:hover {
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE OPTIMIZATIONS)
   ========================================================================== */

/* Viewport height fix for mobile browsers (dynamic viewport height) */
.calling-card-stage,
.all-out-stage {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 992px) {
  .main-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
  }
  .article-sidebar {
    display: none;
  }
  .nav-menu {
    display: none;
  }
  .article-headline {
    font-size: 28px;
  }
  .article-standfirst {
    font-size: 17px;
  }
  .card-slam-container {
    padding: 0;
  }
  .calling-card-tag-top {
    font-size: 11px;
    padding: 6px 10px;
  }
  .calling-card-main-img {
    max-height: 60vh;
  }
}

/* SMARTPHONE BREAKPOINT (< 600px) */
@media (max-width: 600px) {
  .container {
    padding: 0 14px;
  }

  /* Sound Toggle (Compact for mobile) */
  .sound-toggle {
    bottom: 16px;
    right: 14px;
    padding: 7px 12px;
    font-size: 11px;
    border-width: 1.5px;
  }
  .sound-icon-svg {
    width: 15px;
    height: 15px;
  }

  /* Top Bar */
  .top-bar {
    font-size: 10px;
    padding: 5px 0;
  }
  .top-links {
    display: none;
  }

  /* Navigation */
  .nav-content {
    height: 52px;
  }
  .brand-logo {
    font-size: 26px;
  }
  .login-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* Article Typography */
  .article-category {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .article-headline {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .article-standfirst {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  /* Byline */
  .article-byline-bar {
    padding: 10px 0;
    margin-bottom: 20px;
  }
  .author-avatar {
    width: 38px;
    height: 38px;
  }
  .author-name {
    font-size: 13px;
  }
  .author-meta {
    font-size: 11px;
  }
  .social-share-buttons {
    width: 100%;
    justify-content: flex-start;
    margin-top: 6px;
  }
  .share-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  /* Article Prose */
  .article-prose p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
  }
  .article-prose .dropcap::first-letter {
    font-size: 46px;
    line-height: 38px;
    padding-right: 8px;
  }
  .article-quote-box {
    padding: 14px 16px;
    margin: 20px 0;
  }
  .article-quote-box blockquote {
    font-size: 16px;
  }
  .glitch-trigger-header {
    font-size: 20px;
    margin: 24px 0 12px 0;
  }
  .affected-games-list {
    padding: 14px 16px 14px 32px;
    font-size: 15px;
    line-height: 1.8;
  }

  /* Glitch Text Banner (prevent mobile horizontal overflow) */
  .glitch-word {
    font-size: clamp(26px, 8vw, 44px);
    padding: 3px 14px;
    letter-spacing: 2px;
    box-shadow: -6px 6px 0 var(--p5-crimson);
  }

  /* Calling Card Stage */
  .calling-card-stage {
    padding: 24px 10px calc(40px + env(safe-area-inset-bottom, 20px)) 10px;
  }
  .calling-card-frame {
    border-width: 4px;
    box-shadow: 0 0 0 3px #e60012, 0 15px 40px rgba(0,0,0,0.9);
    transform: rotate(-0.5deg);
  }
  .calling-card-tag-top {
    font-size: 9px;
    padding: 4px 8px;
    letter-spacing: 1px;
  }
  .calling-card-main-img {
    max-height: 52vh;
  }
  .p5-action-btn {
    padding: 14px 18px;
    width: 100%;
    max-width: 320px;
  }
  .btn-text {
    font-size: 14px;
    letter-spacing: 1px;
    gap: 6px;
  }

  /* All-Out Attack Screen */
  .all-out-stage {
    padding: 20px 10px calc(50px + env(safe-area-inset-bottom, 20px)) 10px;
  }
  .aoa-content-container {
    gap: 16px;
  }
  .slash-banner-top {
    padding: 4px 16px;
  }
  .slash-kicker {
    font-size: 14px;
    letter-spacing: 2px;
  }
  .aoa-char {
    font-size: clamp(22px, 6vw, 36px);
    padding: 2px 8px;
  }
  .aoa-name-box {
    font-size: clamp(34px, 10vw, 54px);
    padding: 4px 16px;
    letter-spacing: 2px;
    box-shadow: 5px 5px 0 #000, 10px 10px 0 var(--p5-crimson);
  }
  .aoa-alias-box {
    font-size: clamp(16px, 5vw, 24px);
    padding: 4px 10px;
  }

  /* Target Mugshot on Mobile */
  .target-mugshot-frame {
    max-width: 165px;
    padding: 6px 6px 10px 6px;
    transform: rotate(2deg);
  }
  .mugshot-img-container {
    height: 150px;
  }
  .mugshot-tape {
    font-size: 9px;
    padding: 2px 8px;
    top: -12px;
  }
  .mugshot-caption {
    font-size: 10px;
  }

  /* Dialogue Stack on Mobile */
  .p5-dialogue-stack {
    gap: 14px;
  }
  .dialogue-box-item {
    filter: drop-shadow(-4px 4px 0px rgba(0, 0, 0, 0.9));
  }
  .dialogue-stack-header {
    padding-bottom: 6px;
  }
  .crew-board-tag {
    font-size: 13px;
    padding: 2px 8px;
  }
  .crew-board-sub {
    font-size: 11px;
  }

  /* Action Buttons */
  .p5-btn {
    width: 100%;
    max-width: 290px;
    padding: 12px 16px;
  }
  .p5-btn-text {
    font-size: 14px;
  }
}

