@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

:root {
  --bg-obsidian: #060609;
  --bg-graphite: #111218;
  --bg-graphite-light: #181a24;
  --bg-parchment: #161512;
  
  --accent-gold: #d4af37;
  --accent-gold-rgb: 212, 175, 55;
  --accent-ice: #4fc3f7;
  --accent-ice-rgb: 80, 195, 247;
  
  --text-primary: #f8f9fc;
  --text-secondary: #8c93a9;
  --text-muted: #4e5366;
  --text-gold-light: #f5e4b7;
  
  --border-glow-gold: 0 0 15px rgba(212, 175, 55, 0.25);
  --border-glow-ice: 0 0 15px rgba(80, 195, 247, 0.25);
  --glass-bg: rgba(17, 18, 24, 0.7);
  --glass-border: rgba(255, 255, 255, 0.04);
  
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;
  
  --transition-fluid: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #030305;
  font-family: var(--font-sans);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Background Ambient Lighting for Desktop */
.ambient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(80, 195, 247, 0.05) 0%, transparent 40%),
              linear-gradient(180deg, #030305 0%, #0c0d12 100%);
  overflow: hidden;
}

.ambient-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3 PreserveAspectRatio='none'%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)' opacity='0.02'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

/* Desktop Showcase & Mobile Frame Wrapper */
.showcase-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  padding: 20px;
}

/* Device Phone Mockup Frame */
.phone-mockup {
  position: relative;
  width: 390px;
  height: 844px;
  background: #1e1e24;
  border: 12px solid #282830;
  border-radius: 48px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(212, 175, 55, 0.05),
              0 0 80px rgba(80, 195, 247, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Status Bar & Notch Mockup */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 28px;
  background: #282830;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 9999;
}

.phone-notch::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 30px;
  width: 12px;
  height: 12px;
  background: #101010;
  border-radius: 50%;
}

.phone-notch::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 40px;
  width: 30px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 3px;
}

.phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  padding: 12px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  z-index: 9998;
  pointer-events: none;
  font-family: var(--font-sans);
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* App Core Container inside Phone */
.app-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-obsidian);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Grain Overlay inside App */
.app-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10;
  opacity: 0.7;
}

/* Floating Particles Canvas */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Screens System */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96) translate3d(0, 10px, 0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
  padding-bottom: 72px; /* Navigation offset */
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translate3d(0, 0, 0);
  z-index: 4;
}

/* SPLASH SCREEN (Specific layout, no nav bar) */
#screen-splash {
  padding-bottom: 0;
  z-index: 5;
  background-size: cover;
  background-position: center;
  justify-content: flex-end;
  align-items: center;
  padding: 40px 24px 80px;
}

#screen-splash::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 6, 9, 0.2) 0%, rgba(6, 6, 9, 0.75) 50%, var(--bg-obsidian) 100%);
  z-index: 1;
}

.splash-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: center;
  flex-direction: column;
  align-items: center;
}

/* Runic Emblem Animation */
.runic-emblem {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.emblem-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--accent-gold);
  border-radius: 50%;
  opacity: 0.6;
  animation: rotateClockwise 25s linear infinite;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1), inset 0 0 15px rgba(212, 175, 55, 0.1);
}

.emblem-ring-inner {
  position: absolute;
  width: 76%;
  height: 76%;
  border: 1px solid var(--accent-ice);
  border-radius: 50%;
  opacity: 0.4;
  animation: rotateCounterClockwise 15s linear infinite;
}

.emblem-sigil {
  font-size: 32px;
  color: var(--accent-gold);
  text-shadow: 0 0 12px var(--accent-gold-glow);
  animation: runePulse 3s ease-in-out infinite alternate;
}

.splash-title-wrap {
  margin-bottom: 12px;
}

.splash-subtitle {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent-ice);
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(80, 195, 247, 0.3);
  margin-bottom: 6px;
}

.splash-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-primary);
  line-height: 1.1;
  text-transform: uppercase;
}

.splash-title span {
  display: block;
  font-size: 16px;
  letter-spacing: 8px;
  color: var(--accent-gold);
  margin-top: 8px;
  font-weight: 400;
}

.splash-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 40px;
  font-family: var(--font-sans);
  font-weight: 300;
}

.btn-glowing {
  position: relative;
  padding: 16px 36px;
  background: var(--bg-graphite);
  border: 1px solid var(--accent-gold);
  border-radius: 30px;
  color: var(--text-gold-light);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), var(--border-glow-gold);
  transition: var(--transition-fluid);
}

.btn-glowing::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: 0.6s;
}

.btn-glowing:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.4);
  color: #fff;
}

.btn-glowing:hover::before {
  left: 100%;
}

.btn-glowing:active {
  transform: translateY(1px);
}


/* MAIN DASHBOARD SCREEN */
#screen-dashboard {
  background: var(--bg-obsidian);
}

.dash-header {
  padding: 56px 24px 16px;
  background: linear-gradient(180deg, var(--bg-obsidian) 0%, rgba(6, 6, 9, 0.95) 70%, transparent 100%);
  z-index: 10;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-title-area h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-title-area p {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.header-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-graphite);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.header-icon:hover {
  color: var(--accent-gold);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Search Container */
.search-container {
  display: flex;
  align-items: center;
  background: var(--bg-graphite);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 10px 16px;
  transition: var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-container:focus-within {
  border-color: var(--accent-ice);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 12px rgba(80, 195, 247, 0.15);
}

.search-container i {
  color: var(--text-muted);
  margin-right: 12px;
  font-size: 20px;
  transition: var(--transition-fast);
}

.search-container:focus-within i {
  color: var(--accent-ice);
}

.search-container input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  width: 100%;
  outline: none;
}

.search-container input::placeholder {
  color: var(--text-muted);
}

/* Pantheon Scrollable Tabs */
.pantheon-tabs-container {
  padding: 0 24px;
  margin-bottom: 20px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  z-index: 10;
}

.pantheon-tabs-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.pantheon-tabs {
  display: inline-flex;
  gap: 10px;
}

.tab-chip {
  padding: 10px 20px;
  background: var(--bg-graphite);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-serif);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tab-chip.active {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.tab-chip.active.ice-theme {
  background: rgba(80, 195, 247, 0.08);
  border-color: var(--accent-ice);
  color: var(--accent-ice);
  box-shadow: 0 0 15px rgba(80, 195, 247, 0.15);
  text-shadow: 0 0 5px rgba(80, 195, 247, 0.3);
}

/* Entity Grid Scroll Container */
.grid-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 20px;
  z-index: 8;
}

.entity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* God entity cards */
.entity-card {
  position: relative;
  height: 230px;
  background: var(--bg-graphite);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fluid);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.entity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 6, 9, 0.8) 80%, var(--bg-obsidian) 100%);
  z-index: 2;
  transition: var(--transition-fluid);
}

.entity-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-fluid);
  z-index: 1;
}

.entity-card-info {
  position: relative;
  z-index: 3;
  padding: 14px;
}

.entity-pantheon {
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.entity-card.ice-theme .entity-pantheon {
  color: var(--accent-ice);
}

.entity-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.entity-title {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Hover States (Simulated and Touch) */
.entity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), var(--border-glow-gold);
}

.entity-card.ice-theme:hover {
  border-color: rgba(80, 195, 247, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), var(--border-glow-ice);
}

.entity-card:hover .entity-card-img {
  transform: scale(1.08);
}

.entity-card:hover::before {
  background: linear-gradient(180deg, rgba(6, 6, 9, 0.1) 20%, rgba(6, 6, 9, 0.85) 75%, var(--bg-obsidian) 100%);
}


/* DETAIL VIEW SCREEN */
#screen-detail {
  padding-bottom: 0;
  background: var(--bg-obsidian);
  z-index: 100; /* Overlays dashboard completely */
}

.detail-header {
  position: relative;
  height: 360px;
  width: 100%;
  overflow: hidden;
}

.detail-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease-out;
}

.detail-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 6, 9, 0.3) 0%, rgba(6, 6, 9, 0.6) 60%, var(--bg-obsidian) 100%);
  z-index: 2;
}

.detail-nav-actions {
  position: absolute;
  top: 56px;
  left: 0;
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(17, 18, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-circle:hover {
  background: rgba(17, 18, 24, 0.9);
  color: var(--accent-gold);
  border-color: rgba(212, 175, 55, 0.3);
}

.detail-header-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  z-index: 5;
}

.detail-pantheon-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--accent-gold);
  border-radius: 12px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  box-shadow: var(--border-glow-gold);
}

#screen-detail.ice-theme .detail-pantheon-badge {
  background: rgba(80, 195, 247, 0.12);
  border-color: var(--accent-ice);
  color: var(--accent-ice);
  box-shadow: var(--border-glow-ice);
}

.detail-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.detail-epithet {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Detail Content Scroll Area */
.detail-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 40px;
  background: var(--bg-obsidian);
}

/* Quick Stats Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-graphite);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-gold);
}

#screen-detail.ice-theme .stat-icon-wrapper {
  color: var(--accent-ice);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1px;
}

/* Grimoire Lore Section */
.grimoire-section {
  position: relative;
  background: var(--bg-parchment);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.grimoire-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.grimoire-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-gold);
  opacity: 0.8;
}

#screen-detail.ice-theme .grimoire-section {
  border-color: rgba(80, 195, 247, 0.15);
  background: #0f131a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.8);
}

#screen-detail.ice-theme .grimoire-section::after {
  background: var(--accent-ice);
}

.grimoire-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding-bottom: 8px;
}

#screen-detail.ice-theme .grimoire-title {
  color: #fff;
  border-color: rgba(80, 195, 247, 0.1);
}

.grimoire-title i {
  font-size: 18px;
  opacity: 0.7;
}

.grimoire-text {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.7;
  color: #d1c8b3;
  text-align: justify;
  font-weight: 400;
}

#screen-detail.ice-theme .grimoire-text {
  font-family: var(--font-sans);
  color: #b0b8c9;
  font-weight: 300;
}

.grimoire-text::first-letter {
  font-size: 38px;
  float: left;
  line-height: 0.8;
  margin-right: 8px;
  margin-top: 4px;
  font-weight: 900;
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

#screen-detail.ice-theme .grimoire-text::first-letter {
  color: var(--accent-ice);
  text-shadow: 0 0 10px rgba(80, 195, 247, 0.3);
}

/* Relics Panel */
.relics-heading {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.relics-heading i {
  font-size: 18px;
  color: var(--accent-gold);
}

#screen-detail.ice-theme .relics-heading i {
  color: var(--accent-ice);
}

.relic-card {
  background: var(--bg-graphite);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.relic-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-gold);
  flex-shrink: 0;
}

#screen-detail.ice-theme .relic-icon-box {
  background: rgba(80, 195, 247, 0.05);
  border-color: rgba(80, 195, 247, 0.15);
  color: var(--accent-ice);
}

.relic-details h4 {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.relic-details p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 3px;
}


/* INTERACTIVE RUNIC SCREEN */
#screen-runes {
  background: var(--bg-obsidian);
  padding-top: 56px;
}

.runes-header {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.runes-header h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.runes-header p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.runes-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ancient Tablet */
.ancient-tablet {
  width: 100%;
  background: #141311;
  border: 2px solid #201e1a;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.9);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.ancient-tablet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.runic-code-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 24px;
}

.rune-char-box {
  width: 44px;
  height: 54px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--accent-gold);
  text-shadow: 0 0 10px var(--accent-gold-glow);
  transition: var(--transition-fast);
}

.rune-char-box.solved {
  border-color: var(--accent-ice);
  color: var(--accent-ice);
  text-shadow: 0 0 12px var(--accent-ice-glow);
  animation: solvePulse 0.6s ease-out;
}

.translation-hint {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  letter-spacing: 0.5px;
}

.translation-output {
  min-height: 48px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.keyboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.rune-key {
  height: 50px;
  background: var(--bg-graphite);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.rune-key span.rune-glyph {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-primary);
}

.rune-key span.rune-alpha {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.rune-key:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

.rune-key:active {
  transform: scale(0.95);
}

.rune-key.correct {
  border-color: var(--accent-ice);
  background: rgba(80, 195, 247, 0.05);
}

.rune-key.correct span.rune-glyph {
  color: var(--accent-ice);
}


/* BOTTOM FLOATING DOCK */
.bottom-dock {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  height: 64px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
              inset 0 1px 2px rgba(255, 255, 255, 0.05);
  z-index: 999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-dock.hidden {
  transform: translate3d(0, 100px, 0);
}

.dock-item {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fluid);
}

.dock-item i {
  font-size: 22px;
  transition: var(--transition-fluid);
}

.dock-item::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-gold);
  opacity: 0;
  transition: var(--transition-fluid);
}

.dock-item.active {
  color: var(--accent-gold);
  transform: translateY(-4px);
  text-shadow: 0 0 10px var(--accent-gold-glow);
}

.dock-item.active i {
  font-size: 24px;
}

.dock-item.active::after {
  opacity: 1;
  box-shadow: 0 0 8px var(--accent-gold-glow);
}

/* Animations Keyframes */
@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes runePulse {
  0% {
    opacity: 0.6;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.4);
  }
}

@keyframes solvePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); box-shadow: var(--border-glow-ice); }
  100% { transform: scale(1); }
}

/* Seletor de Idioma Premium */
.lang-toggle {
  display: flex;
  gap: 2px;
  background: rgba(17, 18, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto; /* Garante clique */
}

.lang-btn {
  padding: 3px 8px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: var(--transition-fast);
  line-height: 1;
}

.lang-btn.active {
  background: var(--accent-gold);
  color: #fff;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

.splash-lang-placement {
  position: absolute;
  top: 56px;
  right: 24px;
  z-index: 1000;
}


/* RESPONSIVE DESIGN - MOBILE SCALE OVERRIDE */
@media (max-width: 600px) {
  body {
    background: var(--bg-obsidian);
  }
  
  .showcase-container {
    padding: 0;
  }
  
  .phone-mockup {
    width: 100%;
    height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  
  .phone-notch, .phone-status-bar {
    display: none;
  }
  
  .dash-header {
    padding-top: 24px;
  }
  
  .detail-nav-actions {
    top: 24px;
  }
  
  #screen-runes {
    padding-top: 24px;
  }
}
