/* ==========================================================================
   SORRY, I STOLE YOUR PHONE - STYLESHEET
   Aesthetic: Clean Editorial / Passport Genes Vibe / Tactile Gen-Z Personal Web
   
   COLOR PALETTE:
   - Off-White Cream: #F5F5F2 (Background)
   - Deep Onyx:       #111214 (Text / Dark cards)
   - Electric Blue:   #356BFF (Highlight / Primary CTA)
   - Slate Blue:      #7895D8 (Secondary accent)
   - Ice Blue:        #DCE6FF (Subtle surface / Accent tags)
   - Gray:            #C9CACD (Border / Dividers)
   ========================================================================== */

:root {
  --bg: #F5F5F2;
  --bg-card: #FFFFFF;
  --bg-card-contrast: #111214;
  --bg-card-subtle: #DCE6FF;
  
  --text-main: #111214;
  --text-muted: #555861;
  --text-subtle: #878B94;
  --text-inverse: #F5F5F2;

  --border: #C9CACD;
  --border-subtle: rgba(17, 18, 20, 0.09);
  --border-dark: rgba(255, 255, 255, 0.12);
  
  --accent-navy: #356BFF;
  --accent-electric: #356BFF;
  --accent-muted-blue: #7895D8;
  --accent-ice: #DCE6FF;
  --accent-gray: #C9CACD;
  
  --accent-steel: #7895D8;
  --accent-olive: #356BFF;
  --accent-lime: #356BFF;
  --accent-pink: #356BFF;
  --accent-purple: #7895D8;
  --accent-blue: #356BFF;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 15, 15, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 15, 15, 0.06);
  --shadow-float: 0 16px 40px rgba(15, 15, 15, 0.12);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --header-height: 56px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.app-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(245, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
}

.header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-electric);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-electric);
  box-shadow: 0 0 8px rgba(53, 107, 255, 0.8);
  border: 1px solid #1E51E6;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.sound-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  min-height: 34px;
}

.sound-toggle:hover {
  background: #FFF;
  border-color: var(--accent-electric);
  transform: translateY(-1px);
}

.sound-toggle:active {
  transform: scale(0.96);
}

.sound-toggle.muted {
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  border-style: dashed;
}

/* Viewport & Screen Transitions */
.app-viewport {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100dvh - var(--header-height));
  padding-bottom: 3rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

.screen {
  display: none;
  width: 100%;
  opacity: 0;
  box-sizing: border-box;
  transform: none;
}

.screen.active {
  display: block;
  opacity: 1;
  transform: none;
  animation: screenFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen.active {
    animation: none !important;
    transform: none !important;
  }
}

.screen-content {
  padding: 1.25rem 1rem 3rem;
  width: 100%;
  box-sizing: border-box;
}

/* Typography & Display Headers */
.display-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-main);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-main);
}

.muted-title {
  color: var(--accent-electric);
  font-weight: 700;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.nested-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
}

.nested-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.section-headline-wrap {
  margin-bottom: 1.5rem;
}

/* Badges & Meta Tags */
.meta-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 1rem;
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.meta-pink, .meta-navy {
  color: var(--accent-electric);
  border-color: rgba(53, 107, 255, 0.3);
  background: rgba(53, 107, 255, 0.1);
}

.meta-steel, .meta-olive {
  color: var(--accent-muted-blue);
  border-color: rgba(120, 149, 216, 0.35);
  background: rgba(120, 149, 216, 0.12);
}

.meta-lime {
  color: var(--text-main);
  border-color: rgba(53, 107, 255, 0.35);
  background: var(--accent-ice);
  font-weight: 700;
}

.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
}

.badge-navy { background: var(--accent-ice); color: #356BFF; }
.badge-purple, .badge-steel { background: rgba(120, 149, 216, 0.16); color: #356BFF; }
.badge-pink { background: var(--accent-ice); color: #356BFF; }
.badge-blue { background: var(--accent-ice); color: #356BFF; }
.badge-lime { background: #356BFF; color: #F5F5F2; }

.nested-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nested-tag.tag-lime {
  background: var(--accent-electric);
  color: #F5F5F2;
  border-color: #1E51E6;
}

.nested-tag.tag-pink, .nested-tag.tag-blue {
  background: var(--accent-ice);
  color: #356BFF;
  border-color: rgba(53, 107, 255, 0.35);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--text-main);
  color: var(--text-inverse);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--text-main);
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  box-shadow: 0 4px 14px rgba(17, 18, 20, 0.15);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-electric);
  border-color: var(--accent-electric);
  box-shadow: 0 6px 20px rgba(53, 107, 255, 0.35);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-lime, .btn-olive {
  background: var(--accent-electric);
  color: #F5F5F2;
  border-color: #1E51E6;
  box-shadow: 0 4px 14px rgba(53, 107, 255, 0.35);
}

.btn-lime:hover, .btn-olive:hover {
  background: #1E51E6;
  box-shadow: 0 6px 20px rgba(53, 107, 255, 0.5);
}

.btn-pink, .btn-navy {
  background: var(--accent-electric);
  color: #F5F5F2;
  border-color: var(--accent-electric);
  box-shadow: 0 4px 14px rgba(53, 107, 255, 0.35);
}

.btn-pink:hover, .btn-navy:hover {
  background: #1E51E6;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  cursor: pointer;
  min-height: 44px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  border-color: var(--accent-electric);
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.2s;
}

.btn-text:hover {
  color: var(--text-main);
}

.nested-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.nav-back-btn:hover {
  border-color: var(--accent-electric);
  transform: translateX(-2px);
}

.nav-back-btn:active {
  transform: scale(0.96);
}

.toast-container {
  position: fixed;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  width: calc(100% - 2rem);
  max-width: 400px;
}

.toast-pill {
  pointer-events: auto;
  background: #111214;
  color: #F5F5F2;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-pill.clue-toast {
  background: var(--accent-electric);
  color: #F5F5F2;
  border-color: #1E51E6;
  font-weight: 700;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Screen 01: Opening */
.opening-layout {
  min-height: calc(85dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}

.opening-hero {
  margin: 1.5rem 0 2rem;
  max-width: 580px;
}

.opening-sub {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-weight: 500;
}

.terminal-status-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  display: inline-flex;
}

.prompt-sym {
  color: var(--accent-electric);
  margin-right: 0.5rem;
  font-weight: bold;
}

/* Screen 02: Intro */
.intro-layout {
  min-height: calc(85dvh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.editorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 580px;
  position: relative;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.card-headline {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.card-body-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.highlight-text {
  color: var(--accent-electric);
  font-weight: 700;
}

.card-footer-action {
  display: flex;
  justify-content: flex-end;
}

/* Screen 03: Home Bento Hub */
.home-layout {
  padding-top: 1.5rem;
}

.home-header-block {
  margin-bottom: 2rem;
}

.meta-label-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.meta-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}

.meta-clues {
  color: var(--accent-electric);
  background: var(--accent-ice);
  border-color: rgba(53, 107, 255, 0.35);
}

.meta-clues.unlocked-all {
  color: #F5F5F2;
  background: var(--accent-electric);
  border-color: #1E51E6;
  font-weight: 700;
}

.notification-banner {
  margin-top: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-banner:hover {
  border-color: var(--accent-electric);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.notif-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-electric);
  color: #F5F5F2;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #1E51E6;
}

.notif-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.notif-sender {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-electric);
}

.notif-preview {
  font-size: 13px;
  color: var(--text-muted);
}

.notif-action-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-electric);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .card-messages { grid-column: span 2; }
  .card-gallery { grid-column: span 2; }
  .card-notes { grid-column: span 1; }
  .card-music { grid-column: span 2; }
  .card-memories { grid-column: span 1; }
  .card-quiz { grid-column: span 2; }
  .card-secret { grid-column: span 1; }
  .card-birthday { grid-column: span 1; }
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-electric);
  box-shadow: var(--shadow-md);
}

.bento-card:active {
  transform: scale(0.98);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
}

.tag-navy, .tag-pink { background: var(--accent-ice); color: #356BFF; }
.tag-steel, .tag-blue, .tag-purple { background: rgba(120, 149, 216, 0.16); color: #356BFF; }
.tag-lime, .tag-olive { background: #356BFF; color: #F5F5F2; }
.tag-secret { background: #23252A; color: #878B94; }

.card-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-electric);
  letter-spacing: 0.06em;
  background: var(--bg-card-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.card-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.card-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Secret Card Locked State */
.bento-card.card-secret.locked {
  background: #111214;
  color: #F5F5F2;
  border-color: #23252A;
}

.bento-card.card-secret.locked .card-sub {
  color: #878B94;
}

.bento-card.card-secret.unlocked {
  background: var(--bg-card);
  color: var(--text-main);
  border: 2px solid var(--accent-electric);
  animation: pulse-border 2s infinite ease-in-out;
}

@keyframes pulse-border {
  0%, 100% { border-color: var(--accent-electric); }
  50% { border-color: var(--accent-muted-blue); }
}

.home-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.meta-stamp {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

/* Screen 04: Messages */
.chat-status-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #F5F5F2;
  background: var(--accent-electric);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.chat-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.chat-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(8px);
  animation: chatMsgFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chatMsgFade {
  to { opacity: 1; transform: translateY(0); }
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-electric);
  color: #F5F5F2;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-bubble-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 4px;
  padding: 0.85rem 1.15rem;
  box-shadow: var(--shadow-sm);
  max-width: 82%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-msg-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.4;
}

.chat-msg-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  align-self: flex-end;
}

.chat-attachment-card {
  margin-top: 0.4rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-attachment-card:hover {
  background: #FFF;
  border-color: var(--accent-electric);
  transform: translateY(-1px);
}

.attachment-icon { font-size: 1rem; }
.attachment-label { font-size: 13px; font-weight: 600; color: var(--accent-electric); }

.expandable-memo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 1.25rem;
}

.expandable-memo-card:hover {
  border-color: var(--accent-electric);
}

.memo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.memo-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-electric);
}

.memo-toggle-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.memo-content {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.memo-whisper {
  font-size: 0.85rem;
  color: var(--accent-muted-blue);
  font-style: italic;
  margin-top: 0.4rem;
}

.expandable-memo-card.expanded .memo-content {
  display: block;
  animation: memoFade 0.3s ease;
}

@keyframes memoFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden-clue-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--border);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}

.hidden-clue-item:hover {
  color: var(--text-main);
  border-color: var(--accent-electric);
  background: var(--accent-ice);
  transform: translateY(-1px);
}

.hidden-clue-item.found {
  color: #F5F5F2;
  border-color: #1E51E6;
  background: var(--accent-electric);
  font-weight: 700;
}

.clue-sparkle {
  color: var(--accent-electric);
}

/* Screen 05: Camera Roll */
.filter-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-electric);
}

.filter-btn.active {
  background: var(--accent-electric);
  color: #F5F5F2;
  border-color: var(--accent-electric);
}

.locked-folder-card {
  background: #111214;
  color: #F5F5F2;
  border: 1px solid #23252A;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.locked-folder-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-electric);
}

.locked-folder-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-muted-blue);
  background: #23252A;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.locked-folder-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.locked-folder-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.locked-folder-sub {
  font-size: 11.5px;
  color: #878B94;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.photo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-electric);
}

.photo-card-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  background: #E8EBF2;
  overflow: hidden;
}

.photo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.photo-card:hover .photo-card-img {
  transform: scale(1.04);
}

.photo-card-body {
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.photo-card-caption {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.photo-card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-electric);
}

.photo-detail-layout {
  max-width: 680px;
  margin: 0 auto;
}

.photo-counter {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.lightbox-stage {
  position: relative;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.25rem;
}

.lightbox-image-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  background: #111214;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--accent-electric);
  color: #F5F5F2;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 2px solid #111214;
  box-shadow: var(--shadow-float);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s;
  z-index: 10;
}

.heart-burst.animate {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 1;
}

.double-tap-tip {
  text-align: center;
  padding: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.liked-feedback {
  display: none;
  text-align: center;
  padding: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-electric);
}

.liked-feedback.show {
  display: block;
}

.photo-meta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.photo-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.photo-date-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.photo-cat-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: var(--accent-ice);
  color: var(--accent-electric);
  border-radius: var(--radius-pill);
}

.photo-caption {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.lightbox-controls {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-ctrl {
  flex: 1;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  padding: 0.65rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ctrl:hover {
  background: #FFF;
  border-color: var(--accent-electric);
}

/* Screen 06: Notes */
.notes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.note-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.note-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-electric);
  box-shadow: var(--shadow-md);
}

.note-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.note-pin-icon { font-size: 11px; color: var(--accent-electric); }

.note-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.note-card-preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.note-card-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  margin-top: 1rem;
}

.note-paper-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
}

.note-paper-header {
  border-bottom: 1px dashed var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.note-paper-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-main);
}

.note-paper-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-electric);
  margin-top: 0.4rem;
}

.note-paper-body {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.note-paper-body p {
  position: relative;
}

.note-quote-highlight {
  font-size: 1.2rem;
  font-weight: 700;
  color: #356BFF;
  background: var(--accent-ice);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.note-paper-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

/* Screen 07: Music Master Player */
.master-player-card {
  background: #111214;
  color: #F5F5F2;
  border: 1px solid #23252A;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-float);
  margin-bottom: 2rem;
}

.player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.now-playing-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #878B94;
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.eq-bars span {
  width: 3px;
  background: var(--accent-electric);
  border-radius: 1px;
  height: 4px;
  transition: height 0.15s ease;
}

.eq-bars.playing span:nth-child(1) { animation: eqBounce 0.8s infinite 0.1s ease-in-out; }
.eq-bars.playing span:nth-child(2) { animation: eqBounce 0.8s infinite 0.3s ease-in-out; }
.eq-bars.playing span:nth-child(3) { animation: eqBounce 0.8s infinite 0.2s ease-in-out; }
.eq-bars.playing span:nth-child(4) { animation: eqBounce 0.8s infinite 0.4s ease-in-out; }

@keyframes eqBounce {
  0%, 100% { height: 3px; }
  50% { height: 13px; }
}

.player-info-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.track-cover-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.track-album-art {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid #363942;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.track-disc {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #23252A;
  border: 3px solid #363942;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.track-disc.spinning {
  animation: spinDisc 3s linear infinite;
}

@keyframes spinDisc {
  to { transform: rotate(360deg); }
}

.disc-hole {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111214;
  border: 2px solid var(--accent-electric);
}

.track-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.track-artist {
  font-size: 0.95rem;
  color: #878B94;
  margin-top: 0.2rem;
}

.player-scrubber-box {
  margin-bottom: 1.5rem;
}

.waveform-viz {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  height: 28px;
  margin-bottom: 0.6rem;
  padding: 0 0.2rem;
}

.wave-bar {
  flex: 1;
  background: #363942;
  border-radius: 2px;
  height: 20%;
  transition: height 0.2s ease, background-color 0.2s;
}

.waveform-viz.active .wave-bar {
  background: var(--accent-muted-blue);
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #23252A;
  border-radius: var(--radius-pill);
  overflow: hidden;
  cursor: pointer;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-electric);
  border-radius: var(--radius-pill);
  transition: width 0.1s linear;
}

.time-readout {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #878B94;
  margin-top: 0.35rem;
}

.player-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.player-btn-circle {
  min-width: 52px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: #23252A;
  border: 1px solid #363942;
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.player-btn-circle:hover {
  background: #363942;
  transform: scale(1.05);
}

.player-btn-play {
  min-width: 72px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--accent-electric);
  border: none;
  color: #F5F5F2;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(53, 107, 255, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}

.player-btn-play:hover {
  transform: scale(1.06);
  background: #1E51E6;
}

.player-btn-play:active {
  transform: scale(0.96);
}

.track-card-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.track-row-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.track-row-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-electric);
}

.track-row-card.active {
  border-color: var(--accent-electric);
  background: var(--accent-ice);
}

.track-row-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.track-thumb-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.track-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-electric);
}

.track-row-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.track-row-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Screen 08: Memories (The Lore Timeline) */
.exploration-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #356BFF;
  background: var(--accent-ice);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-electric);
  box-shadow: var(--shadow-md);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-index-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-electric);
}

.timeline-date-stamp {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.timeline-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.timeline-preview {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.timeline-badge-row {
  display: flex;
  gap: 0.5rem;
}

.memory-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
}

.mem-detail-image-box {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  background: #111214;
}

.mem-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.mem-date-stamp {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  background: rgba(17, 18, 20, 0.85);
  backdrop-filter: blur(8px);
  color: #F5F5F2;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.mem-detail-body {
  padding: 1.8rem;
}

.mem-detail-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.mem-detail-text {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.mem-detail-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--accent-electric);
  border-left: 3px solid var(--accent-electric);
  padding-left: 1rem;
  margin-top: 1rem;
}

/* Screen 09: Memory Quiz (HTML Matched!) */
.quiz-container {
  width: 100%;
}

.quiz-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.quiz-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.quiz-step {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.quiz-score-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #356BFF;
  background: var(--accent-ice);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.quiz-question-card {
  margin-bottom: 1.25rem;
}

.quiz-img-box {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  background: #111214;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
}

.quiz-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.quiz-question-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-main);
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.quiz-opt-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.quiz-opt-btn:hover {
  border-color: var(--accent-electric);
  background: rgba(53, 107, 255, 0.04);
}

.opt-letter, .quiz-opt-letter {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-electric);
}

.quiz-opt-btn.correct {
  border-color: var(--accent-electric);
  background: var(--accent-ice);
}

.quiz-opt-btn.correct .opt-letter {
  background: var(--accent-electric);
  color: #F5F5F2;
  border-color: #1E51E6;
}

.quiz-opt-btn.wrong {
  border-color: #C0392B;
  background: rgba(192, 57, 43, 0.08);
}

.quiz-opt-btn.wrong .opt-letter {
  background: #C0392B;
  color: #FFF;
  border-color: #C0392B;
}

.quiz-feedback-banner {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-electric);
}

.quiz-feedback-banner.show {
  display: block;
}

/* Screen 09B: Quiz Result Box (HTML Matched!) */
.quiz-result-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.result-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #F5F5F2;
  background: var(--accent-electric);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 1.25rem;
}

.result-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.result-score {
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent-electric);
  margin-bottom: 0.75rem;
}

.result-evaluation {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 2rem;
  font-weight: 500;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Screen 11: Secret Screen (HTML Matched!) */
.secret-reveal-card {
  width: 100%;
}

.secret-heading {
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.secret-letter-body {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.secret-climax {
  font-weight: 700;
  color: var(--accent-electric);
}

.secret-photo-box {
  width: 100%;
  aspect-ratio: 4/5;
  max-height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #111214;
}

.secret-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Screen 12: Birthday Mode (HTML Matched!) */
.bday-profile-card {
  width: 100%;
}

.bday-banner-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-electric);
  background: var(--accent-ice);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bday-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bday-stat-cell {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bday-stat-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.bday-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.bday-badges-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.status-pill.status-check {
  background: var(--accent-ice);
  color: #356BFF;
  border-color: rgba(53, 107, 255, 0.3);
}

.status-pill.status-question {
  background: #FFF;
  color: var(--text-muted);
}

.bday-survival-meter {
  background: #111214;
  color: #F5F5F2;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.meter-label-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.meter-track {
  width: 100%;
  height: 8px;
  background: #23252A;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.meter-fill {
  width: 100%;
  height: 100%;
  background: var(--accent-electric);
  border-radius: var(--radius-pill);
}

/* Screen 13 & 14: Final Message & Response (HTML Matched!) */
.final-payoff-layout {
  max-width: 680px;
  margin: 0 auto;
}

.final-hero-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.final-display-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0.75rem 0 1.25rem;
  color: var(--text-main);
}

.final-body-prose {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.final-signature {
  font-weight: 700;
  color: var(--accent-electric);
  margin-top: 0.5rem;
}

.final-photo-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.final-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #111214;
}

.final-photo-caption {
  display: block;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.response-interaction-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-md);
}

.response-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.hacker-avatar {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #356BFF;
  background: var(--accent-ice);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
}

.response-prompt {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.response-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-response {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.3rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.btn-response:hover {
  border-color: var(--accent-electric);
  background: rgba(53, 107, 255, 0.04);
}

.btn-response.active {
  background: var(--accent-electric);
  color: #F5F5F2;
  border-color: var(--accent-electric);
}

.telegram-bridge-card {
  display: none;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
  animation: toastIn 0.3s ease;
}

.telegram-bridge-card.show {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.copied-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #111214;
}

.copied-quote-preview {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
}

.btn-telegram {
  background: var(--accent-electric);
  border-color: var(--accent-electric);
  color: #F5F5F2;
  align-self: flex-start;
}

.btn-telegram:hover {
  background: #1E51E6;
  border-color: #1E51E6;
}

.final-back-home-wrap {
  text-align: center;
  margin-top: 1.75rem;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 18, 20, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.open {
  display: flex;
  animation: modalFade 0.2s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-float);
  text-align: center;
}

.modal-icon {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-electric);
  margin-bottom: 0.75rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.modal-result {
  margin-top: 1.25rem;
  padding: 0.85rem;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-electric);
}

.modal-result-msg {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
}

/* Supplementary Elements & Layout Support */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.device-status {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sound-icon, .sound-label {
  display: inline-block;
}

.terminal-line {
  display: flex;
  align-items: center;
}

.terminal-msg {
  color: var(--text-main);
}

.cta-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.intro-card {
  max-width: 620px;
  margin: 0 auto;
}

.back-label {
  display: inline-block;
}

.home-title-area {
  margin-bottom: 0.5rem;
}

.nested-layout {
  width: 100%;
}

.nested-meta-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-interactive-zone {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.memo-icon {
  font-size: 14px;
}

.memo-label {
  font-weight: 700;
}

.clue-text {
  font-family: var(--font-mono);
}

.feedback-text {
  font-size: 13px;
  font-weight: 600;
}

.copied-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.now-track-id {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-electric);
}

.track-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gallery-footer-bar, .notes-footer-zone {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

/* Universal Mobile & Small Device Fixes (<=480px) */
@media (max-width: 480px) {
  .screen-content {
    padding: 1rem 0.75rem 2.5rem;
  }
  
  .display-title {
    font-size: 2.1rem;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
  
  .nested-title {
    font-size: 1.45rem;
  }

  .editorial-card, .quiz-box, .bday-profile-card, .secret-reveal-card, .final-hero-block, .response-interaction-box, .master-player-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .bday-info-grid {
    grid-template-columns: 1fr;
  }

  .bday-banner-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .bday-badges-list {
    flex-direction: column;
    gap: 0.4rem;
  }

  .status-pill {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .result-score {
    font-size: 3.2rem;
  }

  .player-info-row {
    gap: 0.85rem;
  }

  .track-disc {
    width: 44px;
    height: 44px;
  }

  .track-title {
    font-size: 1.1rem;
  }

  .time-readout {
    font-size: 9.5px;
  }
}

