/* ==========================================================================
   ADK — Official Game Website Stylesheet
   Creato da Mirco Magnani
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Design Tokens */
  --tr-bg-dark: #0a0a0c;
  --tr-bg-stone: #121316;
  --tr-bg-parchment: #ded6c5;
  
  --tr-gold-bright: #ffd700;
  --tr-gold: #c6a052;
  --tr-gold-dark: #8b6508;
  --tr-gold-gradient: linear-gradient(180deg, #e6c875 0%, #c6a052 50%, #997833 100%);
  
  --tr-text-light: #ffffff;
  --tr-text-dim: #b5b5b8;
  --tr-text-dark: #1f1f22;
  
  --font-tr-title: 'Cinzel', serif;
  --font-tr-body: 'Inter', sans-serif;

  --ease-tr: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--tr-bg-dark);
  color: var(--tr-text-light);
  overflow-x: hidden;
}

/* Three.js 3D Canvas Background Container (Fixed overlay behind content) */
#three-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

body {
  font-family: var(--font-tr-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050506;
}
::-webkit-scrollbar-thumb {
  background: var(--tr-gold);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--tr-gold-bright);
}

/* Header Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(198, 160, 82, 0.25);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(10, 10, 12, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
}

/* Header Logo */
.header-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.header-logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
  transition: transform 0.3s ease;
}

.header-brand:hover .header-logo-img {
  transform: scale(1.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Hamburger Toggle Button (Always Visible) */
.hamburger-toggle-btn {
  width: 46px;
  height: 46px;
  background: rgba(18, 19, 22, 0.9);
  border: 1px solid var(--tr-gold);
  color: var(--tr-gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(198, 160, 82, 0.3);
  transition: all 0.25s var(--ease-tr);
}

.hamburger-toggle-btn:hover {
  background: var(--tr-gold-gradient);
  color: #000000;
  border-color: var(--tr-gold-bright);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  transform: scale(1.06);
}

.hamburger-toggle-btn i {
  width: 24px;
  height: 24px;
}

/* HAMBURGER DRAWER MENU */
.hamburger-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(12, 13, 16, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 2px solid var(--tr-gold);
  z-index: 250;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.45s var(--ease-tr), opacity 0.35s ease, visibility 0.35s ease;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.9);
  overflow-y: auto;
}

.hamburger-drawer.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(198, 160, 82, 0.25);
}

.drawer-brand {
  display: flex;
  flex-direction: column;
}

.drawer-subtitle {
  font-family: var(--font-tr-title);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--tr-gold);
  font-weight: 800;
  margin-top: 0.2rem;
}

.drawer-close-btn {
  background: transparent;
  border: 1px solid var(--tr-gold);
  color: var(--tr-gold-bright);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.drawer-close-btn:hover {
  background: var(--tr-gold-bright);
  color: #000;
  transform: scale(1.1);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.drawer-nav-link,
.drawer-nav-link:link,
.drawer-nav-link:visited {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-tr-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tr-text-dim) !important;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.drawer-nav-num {
  font-family: var(--font-tr-body);
  font-size: 0.8rem;
  color: var(--tr-gold);
  font-weight: 800;
}

.drawer-nav-link:hover,
.drawer-nav-link:focus,
.drawer-nav-link.active {
  color: #ffffff !important;
  padding-left: 0.75rem;
  border-bottom-color: var(--tr-gold-bright);
}

.drawer-nav-link:hover .drawer-nav-num {
  color: var(--tr-gold-bright);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 240;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.drawer-store-tag,
.drawer-store-tag:link,
.drawer-store-tag:visited {
  padding: 0.5rem 1rem;
  background: rgba(198, 160, 82, 0.15);
  border: 1px solid var(--tr-gold);
  color: var(--tr-gold-bright) !important;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.drawer-store-tag:hover {
  background: var(--tr-gold);
  color: #000 !important;
}

/* Gold CTA Button */
.btn-tr-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 2.5rem;
  background: var(--tr-gold-gradient);
  color: #000000 !important;
  font-family: var(--font-tr-body);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--tr-gold-bright);
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(198, 160, 82, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s var(--ease-tr);
  text-decoration: none;
}

.btn-tr-gold:hover {
  background: linear-gradient(180deg, #ffe17d 0%, #d4af37 50%, #a6811c 100%);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  color: #000000 !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5rem 4rem;
  z-index: 10;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  filter: brightness(75%) contrast(108%);
  transition: transform 0.1s ease-out;
}

.hero-backdrop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.65) 55%, rgba(10, 10, 12, 0.15) 100%),
              linear-gradient(180deg, rgba(10, 10, 12, 0.4) 0%, transparent 60%, var(--tr-bg-dark) 100%);
}

.hero-content-left {
  max-width: 620px;
  z-index: 2;
  text-align: left;
  transition: transform 0.1s ease-out;
}

/* Hero Logo */
.hero-main-logo {
  max-width: 580px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.2));
  margin-bottom: 1.5rem;
  animation: logo-float 6s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.hero-release-date {
  font-family: var(--font-tr-title);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ffffff;
  margin-bottom: 2rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

/* Hero Video Preview Card */
.hero-video-card {
  position: relative;
  width: 320px;
  height: 160px;
  border: 1px solid var(--tr-gold);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(198, 160, 82, 0.3);
  transition: all 0.35s var(--ease-tr);
}

.hero-video-card:hover {
  border-color: var(--tr-gold-bright);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
  transform: scale(1.03);
}

.hero-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(75%);
  transition: transform 0.5s ease;
}

.hero-video-card:hover img {
  transform: scale(1.08);
  filter: brightness(90%);
}

.hero-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: rgba(18, 19, 22, 0.85);
  border: 2px solid var(--tr-gold-bright);
  color: var(--tr-gold-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(198, 160, 82, 0.6);
  transition: all 0.3s ease;
}

.hero-video-card:hover .hero-video-play-btn {
  background: var(--tr-gold-bright);
  color: #000000;
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-video-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, transparent 100%);
  font-family: var(--font-tr-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-transform: uppercase;
}

.hero-controls-left {
  position: absolute;
  bottom: 2rem;
  left: 3.5rem;
  z-index: 10;
}

.btn-icon-square {
  width: 44px;
  height: 44px;
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.btn-icon-square:hover {
  border-color: var(--tr-gold-bright);
  color: var(--tr-gold-bright);
}

/* PLATFORM STRIP */
.platform-strip {
  position: relative;
  z-index: 20;
  background: var(--tr-bg-parchment);
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  border-top: 2px solid var(--tr-gold);
  border-bottom: 2px solid var(--tr-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.platform-logo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--tr-text-dark) !important;
  font-family: var(--font-tr-body);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.platform-logo-item:hover {
  transform: translateY(-3px);
}

.platform-logo-item svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Feature Showcase */
.torn-section {
  position: relative;
  z-index: 10;
  background-color: var(--tr-bg-stone);
  padding: 7rem 3rem;
  margin: 4rem 0;
}

.torn-section::before, .torn-section::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 30px;
  background-color: var(--tr-bg-stone);
  pointer-events: none;
}

.torn-section::before {
  top: -30px;
  clip-path: polygon(0% 100%, 3% 20%, 7% 80%, 12% 10%, 18% 75%, 24% 25%, 30% 90%, 36% 15%, 42% 80%, 48% 30%, 54% 85%, 60% 10%, 67% 75%, 73% 20%, 80% 85%, 86% 25%, 92% 90%, 97% 15%, 100% 100%);
}

.torn-section::after {
  bottom: -30px;
  clip-path: polygon(0% 0%, 4% 80%, 9% 20%, 15% 90%, 21% 15%, 27% 75%, 33% 20%, 40% 85%, 46% 10%, 52% 90%, 58% 25%, 65% 85%, 71% 15%, 78% 80%, 84% 20%, 90% 85%, 96% 10%, 100% 0%);
}

.feature-container {
  max-width: 1200px;
  margin: 0 auto;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.feature-img-box {
  position: relative;
  width: 100%;
  height: 380px;
  border: 1px solid var(--tr-gold);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.feature-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-tr);
}

.feature-img-box:hover img {
  transform: scale(1.06);
}

.gold-divider-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--tr-gold-bright) 0%, var(--tr-gold-dark) 80%, transparent 100%);
  margin: 1.5rem 0;
}

.feature-title {
  font-family: var(--font-tr-title);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1.1;
  text-transform: uppercase;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--tr-text-dim);
  line-height: 1.8;
  font-weight: 400;
}

/* Media Showcase */
.video-section {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.video-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.video-tab-btn {
  padding: 0.75rem 1.8rem;
  background: rgba(18, 19, 22, 0.8);
  border: 1px solid var(--tr-gold);
  color: var(--tr-text-dim);
  font-family: var(--font-tr-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.video-tab-btn.active, .video-tab-btn:hover {
  background: var(--tr-gold-gradient);
  color: #000000;
  border-color: var(--tr-gold-bright);
  box-shadow: 0 0 20px rgba(198, 160, 82, 0.4);
}

.video-player-container {
  position: relative;
  width: 100%;
  background: #000;
  border: 2px solid var(--tr-gold);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(198, 160, 82, 0.3);
}

.video-player-container video {
  width: 100%;
  height: auto;
  max-height: 620px;
  display: block;
}

/* Document Archive */
.section-container {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.archive-card {
  position: relative;
  background: var(--tr-bg-stone);
  border: 1px solid var(--tr-gold);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease-tr);
  border-radius: 2px;
}

.archive-card:hover {
  transform: translateY(-8px);
  border-color: var(--tr-gold-bright);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(198, 160, 82, 0.35);
}

.archive-thumb-box {
  position: relative;
  width: 100%;
  height: 280px;
  background: #08080c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
}

.archive-thumb-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: contrast(110%);
  transition: transform 0.6s var(--ease-tr);
}

.archive-card:hover .archive-thumb-box img {
  transform: scale(1.08);
}

.archive-card-body {
  padding: 1.75rem;
}

.archive-card-tag {
  font-size: 0.75rem;
  color: var(--tr-gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.archive-card-title {
  font-family: var(--font-tr-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

/* Screenshot Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.gallery-card {
  position: relative;
  height: 270px;
  background: #000;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--tr-gold);
  transition: all 0.4s var(--ease-tr);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-tr);
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--tr-gold-bright);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 215, 0, 0.35);
}

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

/* REQUISITI DI SISTEMA PC (SYSTEM SPECS) */
.specs-wrapper {
  max-width: 980px;
  margin: 0 auto;
}

.specs-tabs {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.specs-tab-btn {
  padding: 0.85rem 2rem;
  background: rgba(18, 19, 22, 0.8);
  border: 1px solid var(--tr-gold);
  color: var(--tr-text-dim);
  font-family: var(--font-tr-body);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.specs-tab-btn.active, .specs-tab-btn:hover {
  background: var(--tr-gold-gradient);
  color: #000000;
  border-color: var(--tr-gold-bright);
  box-shadow: 0 0 20px rgba(198, 160, 82, 0.4);
}

.specs-box {
  background: var(--tr-bg-stone);
  border: 2px solid var(--tr-gold);
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.spec-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.spec-label {
  font-size: 0.72rem;
  color: var(--tr-gold);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.spec-value {
  font-size: 0.98rem;
  color: #ffffff;
  font-weight: 600;
}

/* FAQ ACCORDION */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--tr-bg-stone);
  border: 1px solid var(--tr-gold);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--tr-gold-bright);
  box-shadow: 0 10px 30px rgba(198, 160, 82, 0.25);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 1.75rem;
  font-family: var(--font-tr-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: color 0.25s ease;
}

.faq-item:hover .faq-question {
  color: var(--tr-gold-bright);
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--tr-gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--tr-gold-bright);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.75rem;
  font-size: 0.95rem;
  color: var(--tr-text-dim);
  line-height: 1.7;
  transition: max-height 0.4s var(--ease-tr), padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.75rem 1.5rem;
}

/* MODALS SYSTEM */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 2rem;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-window {
  position: relative;
  width: 100%;
  max-width: 1050px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3.5rem;
  background: var(--tr-bg-stone);
  border: 2px solid var(--tr-gold);
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(18, 19, 22, 0.8);
  border: 1px solid var(--tr-gold);
  color: var(--tr-gold-bright);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--tr-gold-bright);
  color: #000000;
  transform: scale(1.1);
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  background: var(--tr-bg-parchment);
  border-top: 3px solid var(--tr-gold);
  padding: 5rem 2rem 4rem;
  text-align: center;
  color: var(--tr-text-dark);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

/* FOOTER LOGO WITH LONG PRESS PROGRESS RING */
.footer-logo-wrapper {
  position: relative;
  display: inline-block;
  padding: 1rem;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.footer-logo-wrapper:hover .footer-logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 20px rgba(198, 160, 82, 0.6));
}

.footer-logo-wrapper.holding .footer-logo-img {
  animation: logo-rumble 0.08s infinite ease-in-out;
  filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9));
}

@keyframes logo-rumble {
  0% { transform: translate(1px, 1px) scale(1.08); }
  50% { transform: translate(-1px, -1px) scale(1.08); }
  100% { transform: translate(1px, -1px) scale(1.08); }
}

.hold-progress-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 110px;
  height: 110px;
  pointer-events: none;
}

.hold-progress-circle {
  fill: none;
  stroke: var(--tr-gold-bright);
  stroke-width: 4;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.05s linear;
  filter: drop-shadow(0 0 8px var(--tr-gold-bright));
}

.logo-hold-hint {
  font-family: var(--font-tr-title);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--tr-gold-dark);
  margin-top: 0.4rem;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer-logo-wrapper:hover .logo-hold-hint {
  opacity: 1;
  color: #000;
}

/* EASTER EGG POPUP STYLING */
.easter-egg-window {
  max-width: 600px;
  background: radial-gradient(circle at center, #1c1a16 0%, #0d0e11 100%);
  border: 2px solid var(--tr-gold-bright);
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.4), 0 30px 80px rgba(0, 0, 0, 0.95);
  padding: 3rem 2.5rem;
  text-align: center;
  border-radius: 4px;
}

.easter-egg-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(198, 160, 82, 0.15);
  border: 1px solid var(--tr-gold);
  color: var(--tr-gold-bright);
  font-family: var(--font-tr-title);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.easter-egg-icon-box {
  margin-bottom: 1.25rem;
}

.easter-egg-logo {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.7));
  animation: logo-float 4s ease-in-out infinite;
}

.easter-egg-author {
  font-family: var(--font-tr-title);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.easter-egg-dedication {
  font-size: 1.15rem;
  color: var(--tr-text-light);
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.easter-egg-footer-note {
  font-family: var(--font-tr-title);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--tr-gold);
  text-transform: uppercase;
}

.footer-store-buttons {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  header {
    padding: 0.85rem 1.25rem;
  }
  .desktop-only-btn {
    display: none;
  }
  .hero-section {
    padding: 7rem 1.5rem 4rem;
  }
  .platform-strip {
    gap: 2rem;
    flex-wrap: wrap;
  }
  .hamburger-drawer {
    width: 100vw;
    max-width: 100vw;
  }
}

/* FLOATING TEMPLAR SEALS HUD TRACKER */
.seal-tracker-hud {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 990;
  background: rgba(10, 10, 12, 0.92);
  border: 1px solid var(--tr-gold);
  border-radius: 4px;
  padding: 0.6rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(198, 160, 82, 0.3);
  backdrop-filter: blur(10px);
  font-family: var(--font-tr-title);
  font-size: 0.78rem;
  color: var(--tr-gold-bright);
  letter-spacing: 0.12em;
  transition: all 0.3s ease;
  user-select: none;
}

.seal-tracker-hud:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 215, 0, 0.5);
}

.seal-tracker-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seal-tracker-icon {
  width: 16px;
  height: 16px;
  color: var(--tr-gold-bright);
}

.seal-tracker-title {
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--tr-text-light);
}

.seal-tracker-badge {
  background: rgba(198, 160, 82, 0.2);
  border: 1px solid var(--tr-gold);
  color: var(--tr-gold-bright);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-weight: 900;
  font-size: 0.75rem;
  margin-left: auto;
}

.seal-tracker-slots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.seal-slot {
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: help;
}

.seal-slot.unlocked {
  animation: seal-pop 0.4s ease;
  filter: drop-shadow(0 0 8px #ff0000);
}

@keyframes seal-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.6) rotate(15deg); }
  100% { transform: scale(1); }
}

/* TEMPLAR SEAL TOAST NOTIFICATION */
.seal-toast-notification {
  position: fixed;
  top: 100px;
  right: 30px;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(138, 15, 20, 0.95) 0%, rgba(13, 4, 5, 0.98) 100%);
  border: 2px solid #ff4d4d;
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(255, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.9);
  font-family: var(--font-tr-title);
  transform: translateX(140%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.seal-toast-notification.show {
  transform: translateX(0);
}

.seal-toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
}

/* SECRET ABYSS RUNE */
.secret-rune-trigger {
  cursor: pointer;
  display: inline-block;
  font-size: 1.8rem;
  color: var(--tr-gold-bright);
  transition: transform 0.3s ease, filter 0.3s ease, color 0.3s ease;
  user-select: none;
  padding: 0 0.5rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--tr-bg-stone);
}

.secret-rune-trigger:hover {
  transform: translate(-50%, -50%) scale(1.4) rotate(180deg);
  color: #ff4d4d;
  filter: drop-shadow(0 0 15px #ff0000);
}

/* 7-SECOND HELL MODE OVERLAY & ACTIVE TRANSFORMATION */
.hell-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(13, 4, 5, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px) contrast(150%);
}

.hell-mode-overlay.active {
  opacity: 1;
  visibility: visible;
}

.hell-overlay-content {
  text-align: center;
  max-width: 700px;
  padding: 2rem;
}

.hell-overlay-flame-icon {
  font-size: 4rem;
  animation: hell-flame-bounce 0.6s infinite alternate ease-in-out;
}

.hell-overlay-title {
  font-family: var(--font-tr-title);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ff1a1a;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 0 30px #ff0000, 0 0 60px #8a0f14;
  margin-top: 1rem;
}

.hell-overlay-subtitle {
  font-family: var(--font-tr-body);
  font-size: 1.15rem;
  color: #ffb3b3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0.5rem;
}

.hell-overlay-timer {
  font-family: var(--font-tr-title);
  font-size: 8rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 50px #ff0000, 0 0 100px #ff0000;
  line-height: 1;
  margin: 1rem 0;
}

.hell-overlay-bar-track {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid #ff1a1a;
  border-radius: 4px;
  margin: 0 auto;
  overflow: hidden;
}

.hell-overlay-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff0000 0%, #ff6666 100%);
  box-shadow: 0 0 15px #ff0000;
  transition: width 1s linear;
}

@keyframes hell-flame-bounce {
  0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 20px #ff0000); }
  100% { transform: scale(1.15) translateY(-10px); filter: drop-shadow(0 0 45px #ff0000); }
}

/* CRYPTEX TEMPLARE MODAL STYLING */
.cryptex-window {
  background: radial-gradient(circle at center, #1f1b14 0%, #0a0907 100%) !important;
  border: 2px solid var(--tr-gold-bright) !important;
  box-shadow: 0 0 60px rgba(198, 160, 82, 0.4), 0 30px 90px rgba(0, 0, 0, 0.95) !important;
}

.cryptex-wheels-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.cryptex-wheel-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.cryptex-wheel-btn {
  background: rgba(198, 160, 82, 0.15);
  border: 1px solid var(--tr-gold);
  color: var(--tr-gold-bright);
  width: 48px;
  height: 38px;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  touch-action: manipulation;
}

.cryptex-wheel-btn:hover, .cryptex-wheel-btn:active {
  background: var(--tr-gold-bright);
  color: #000000;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.cryptex-digit-display {
  width: 58px;
  height: 68px;
  background: linear-gradient(180deg, #111 0%, #2a2216 50%, #111 100%);
  border: 2px solid var(--tr-gold-bright);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tr-title);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--tr-gold-bright);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
  user-select: none;
  cursor: pointer;
}

.cryptex-status-box {
  background: rgba(18, 19, 22, 0.9);
  border: 1px solid rgba(198, 160, 82, 0.4);
  padding: 0.85rem 1.25rem;
  border-radius: 4px;
  font-family: var(--font-tr-title);
  font-size: 0.82rem;
  color: var(--tr-text-light);
  letter-spacing: 0.15em;
  margin-top: 1rem;
}

.cryptex-status-box.error-shake {
  animation: cryptex-shake 0.3s ease;
  border-color: #ff0000;
  background: rgba(138, 15, 20, 0.4);
  color: #ffcccc;
}

@keyframes cryptex-shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

/* CINEMATIC BAPHOMET PORTAL & SILHOUETTE */
.baphomet-portal-crack {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(138, 15, 20, 0.9) 100%);
  pointer-events: none;
  animation: portal-pulse 1.2s infinite alternate ease-in-out;
}

@keyframes portal-pulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.baphomet-demon-silhouette {
  margin-bottom: 0.5rem;
  animation: demon-appear 0.8s ease-out;
}

.demon-horn-icon {
  font-size: 5rem;
  display: inline-block;
  filter: drop-shadow(0 0 40px #ff0000);
  animation: demon-float 1.5s infinite alternate ease-in-out;
}

@keyframes demon-appear {
  0% { transform: scale(0.2); opacity: 0; }
  60% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes demon-float {
  0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 30px #ff0000); }
  100% { transform: translateY(-12px) scale(1.08); filter: drop-shadow(0 0 60px #ff0000); }
}

/* HELL MODE FULL WEBSITE TRANSFORMATION (APPLIED TO BODY) */
body.hell-mode-active {
  animation: hell-shake 0.09s infinite ease-in-out !important;
  filter: contrast(170%) saturate(350%) hue-rotate(-25deg) !important;
}

body.hell-mode-active header {
  background: rgba(138, 15, 20, 0.95) !important;
  border-bottom-color: #ff0000 !important;
  box-shadow: 0 0 50px rgba(255, 0, 0, 0.8) !important;
}

body.hell-mode-active h1, 
body.hell-mode-active h2, 
body.hell-mode-active h3, 
body.hell-mode-active .feature-title,
body.hell-mode-active .hero-title-main {
  color: #ff1a1a !important;
  text-shadow: 0 0 30px #ff0000, 0 0 60px #8a0f14 !important;
}

body.hell-mode-active .btn-tr-gold {
  background: linear-gradient(180deg, #ff0000 0%, #8a0f14 100%) !important;
  border-color: #ff4d4d !important;
  color: #ffffff !important;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.9) !important;
}

body.hell-mode-active .platform-strip,
body.hell-mode-active footer {
  background: #3a0000 !important;
  border-color: #ff0000 !important;
  color: #ffcccc !important;
}

@keyframes hell-shake {
  0% { transform: translate(3px, 2px) rotate(0deg); }
  20% { transform: translate(-3px, -2px) rotate(-1deg); }
  40% { transform: translate(-2px, 3px) rotate(1deg); }
  60% { transform: translate(3px, 1px) rotate(0deg); }
  80% { transform: translate(-1px, -2px) rotate(1deg); }
  100% { transform: translate(2px, -1px) rotate(-1deg); }
}

@media (max-width: 600px) {
  .cryptex-wheels-container {
    gap: 0.4rem;
  }
  .cryptex-wheel-btn {
    width: 38px;
    height: 34px;
  }
  .cryptex-digit-display {
    width: 44px;
    height: 54px;
    font-size: 1.7rem;
  }
}

/* SMARTPHONE & TABLET STABILITY FIXES (ELIMINATES MOBILE FLICKERING & ELEMENT DISAPPEARANCE) */
@media (max-width: 768px) {
  /* Prevent WebGL background z-fighting with HTML content */
  #three-canvas-container {
    z-index: -1 !important;
  }

  /* GPU Compositing Layer Fixes */
  body, section, .hero-section, .torn-section, .archive-card, .gallery-card, .feature-row, .hero-bg-img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: flat;
    transform-style: flat;
  }

  /* Fallback dark solid backgrounds for mobile (eliminates backdrop-filter GPU tile drops) */
  header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 10, 12, 0.98) !important;
  }

  .seal-tracker-hud {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 10, 12, 0.96) !important;
    bottom: 15px;
    left: 15px;
    padding: 0.5rem 0.85rem;
  }

  .hamburger-drawer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(12, 13, 16, 0.99) !important;
  }

  .modal-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.92) !important;
  }

  .torn-section::before, .torn-section::after {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}


