:root {
  --bg-obsidian: #090B0F;
  --bg-navy: #111827;
  --bg-glass: #1E2430;
  --bg-mist: #E7EDF2;
  --bg-sand: #C6BFAF;
  
  --accent-ice: #7DD3FC;
  --accent-cyan: #22D3EE;
  --accent-gold: #D6B66D;
  --accent-amethyst: #71578A;
  --accent-silver: #8A96A3;
  
  --text-light-primary: #F7FBFF;
  --text-light-secondary: #C9D3DC;
  --text-dark-primary: #101418;
  --text-muted: #89939E;
  
  --border-color: #344050;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;
  --font-micro: 'Space Mono', monospace;
}

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

body {
  background-color: var(--bg-obsidian);
  color: var(--text-light-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Typography Classes */
.micro-label {
  font-family: var(--font-micro);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Top Disclaimer Banner */
.top-disclaimer {
  background-color: var(--bg-obsidian);
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem 5%;
  font-size: 0.65rem;
  font-family: var(--font-micro);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  z-index: 200;
  position: relative;
  text-transform: uppercase;
}

/* Vault Status Line */
.vault-status-line {
  background-color: var(--accent-gold);
  color: var(--text-dark-primary);
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  font-size: 0.7rem;
  font-family: var(--font-micro);
  font-weight: 700;
  text-transform: uppercase;
}
.vault-status-line span {
  display: inline-block;
}

/* Diamond House Header */
.diamond-header {
  background-color: var(--bg-obsidian);
  border-bottom: 1px solid var(--accent-ice);
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
  z-index: 100;
}
.header-brand {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-light-primary);
  letter-spacing: 0.05em;
}
.brand-subtitle {
  color: var(--accent-ice);
  font-size: 0.65rem;
}
.header-nav {
  display: flex;
  gap: 2rem;
}
.header-nav a {
  font-size: 0.85rem;
  font-family: var(--font-micro);
  text-transform: uppercase;
  color: var(--text-light-secondary);
  position: relative;
  padding-bottom: 4px;
}
.header-nav a:hover {
  color: var(--text-light-primary);
}
.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}
.header-nav a:hover::after {
  width: 100%;
}
.btn-open-slot {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-micro);
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-open-slot:hover {
  background: var(--accent-gold);
  color: var(--bg-obsidian);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Midnight Crystal Hero */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  min-height: 600px;
  border-bottom: 1px solid var(--border-color);
}
.hero-left {
  background-color: var(--bg-navy);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-color);
}
.hero-left .micro-label {
  color: var(--accent-ice);
  margin-bottom: 2rem;
}
.hero-left h1 {
  font-size: 4rem;
  line-height: 1;
  color: var(--text-light-primary);
}
.hero-center {
  position: relative;
  overflow: hidden;
}
.hero-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.9);
}
.hero-right {
  background-color: var(--bg-mist);
  color: var(--text-dark-primary);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-right h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-right p {
  font-size: 1rem;
  margin-bottom: 2.5rem;
  color: var(--text-dark-primary);
}
.hero-right .btn-open-slot {
  border-color: var(--text-dark-primary);
  color: var(--text-dark-primary);
  margin-bottom: 1.5rem;
  width: fit-content;
}
.hero-right .btn-open-slot:hover {
  background: var(--text-dark-primary);
  color: var(--bg-mist);
}
.text-link {
  font-family: var(--font-micro);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dark-primary);
  font-weight: 700;
}
.text-link:hover {
  color: var(--accent-cyan);
}

/* Facet Index */
.facet-index {
  padding: 5rem 5%;
  background: var(--bg-obsidian);
}
.facet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
}
.facet-panel {
  background: var(--bg-glass);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.facet-panel:hover {
  background: var(--bg-navy);
}
.facet-panel .micro-label {
  color: var(--accent-gold);
  display: block;
  margin-bottom: 1rem;
}
.facet-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.facet-panel p {
  color: var(--text-light-secondary);
  font-size: 0.9rem;
}

/* Diamond Slot Vault Chamber */
.vault-chamber-section {
  padding: 5rem 5%;
  background: var(--bg-obsidian);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chamber-label {
  color: var(--accent-ice);
  margin-bottom: 2rem;
  text-align: center;
}
.game-container {
  width: 100%;
  max-width: 1200px;
  background: var(--bg-glass);
  border: 1px solid var(--accent-ice);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}
.game-status {
  background: var(--accent-cyan);
  height: 2px;
  width: 100%;
  margin-bottom: 15px;
}
.game-iframe-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 5px;
  overflow: hidden;
}
.game-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.game-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}
.game-controls button, .game-controls a {
  background: transparent;
  border: 1px solid var(--accent-silver);
  color: var(--text-light-primary);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-micro);
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.game-controls button:hover, .game-controls a:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.game-legal {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}

/* Prism Gallery */
.prism-gallery-section {
  padding: 5rem 5%;
  background: var(--bg-navy);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(100px, auto);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.zone-a {
  grid-column: 1 / 3;
  grid-row: 1 / 4;
}
.zone-a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}
.zone-b {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
}
.zone-b .micro-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--accent-ice);
}
.zone-c {
  grid-column: 4;
  grid-row: 1;
  padding: 1rem 0;
}
.zone-c h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.zone-c p {
  color: var(--text-light-secondary);
  font-size: 0.9rem;
}
.zone-d {
  grid-column: 3 / 5;
  grid-row: 2;
}
.zone-d img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}
.zone-e {
  grid-column: 3;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.zone-e span {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-gold);
}
.zone-e small {
  font-family: var(--font-micro);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.zone-f {
  grid-column: 4;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.zone-f h4 {
  font-size: 1.2rem;
  color: var(--accent-ice);
  margin-bottom: 0.5rem;
}
.zone-f p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.zone-g {
  grid-column: 3 / 5;
  grid-row: 4;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.zone-g a {
  color: var(--accent-ice);
}

/* Vault Rules */
.vault-rules-section {
  padding: 5rem 5%;
  background: var(--bg-obsidian);
}
.rule-row {
  display: flex;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}
.rule-row:first-child {
  border-top: 1px solid var(--border-color);
}
.rule-row h3 {
  flex: 0 0 40%;
  font-size: 2.5rem;
  color: var(--text-light-primary);
}
.rule-row p {
  flex: 1;
  font-size: 1.1rem;
  color: var(--text-light-secondary);
}

/* Concierge Desk */
.concierge-section {
  padding: 5rem 5%;
  background: var(--bg-glass);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.concierge-left h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.concierge-support {
  font-family: var(--font-micro);
  color: var(--accent-gold);
  margin-bottom: 3rem;
  display: block;
}
.faq-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-links a {
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  display: inline-block;
  width: fit-content;
}
.faq-links a:hover {
  color: var(--accent-ice);
  border-color: var(--accent-ice);
}
.concierge-right form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-family: var(--font-micro);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-light-secondary);
}
.form-group input, .form-group textarea {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 1rem;
  color: var(--text-light-primary);
  font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-ice);
}
.btn-submit {
  background: var(--accent-gold);
  color: var(--bg-obsidian);
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-micro);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.3s ease;
}
.btn-submit:hover {
  background: var(--text-light-primary);
}

/* Footer */
.crystal-footer {
  display: flex;
  flex-direction: column;
}
.footer-layer-1 {
  background: var(--bg-obsidian);
  padding: 4rem 5%;
  text-align: center;
  border-top: 1px solid var(--accent-ice);
}
.footer-layer-1 h2 {
  font-size: 2rem;
  letter-spacing: 0.1em;
}
.footer-layer-1 span {
  display: block;
  color: var(--accent-gold);
  font-family: var(--font-micro);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.footer-address {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.6;
}
.footer-layer-2 {
  background: var(--bg-mist);
  padding: 3rem 5%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-layer-2 a {
  color: var(--text-dark-primary);
  font-family: var(--font-micro);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-layer-2 a:hover {
  color: var(--accent-cyan);
}
.footer-layer-3 {
  background: var(--bg-navy);
  padding: 3rem 5%;
  text-align: center;
}
.footer-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.footer-legal-links a {
  color: var(--text-light-secondary);
  font-size: 0.8rem;
}
.footer-legal-links a:hover {
  color: var(--accent-gold);
}
.footer-base {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-micro);
}

/* Cookie Notice */
.cookie-vault {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-mist);
  color: var(--text-dark-primary);
  width: 360px;
  padding: 2rem;
  border-left: 4px solid var(--accent-ice);
  z-index: 9999;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.cookie-stamp {
  font-family: var(--font-micro);
  color: var(--accent-gold);
  font-size: 0.7rem;
  margin-bottom: 1rem;
  display: block;
}
.cookie-vault h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.cookie-vault p {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.cookie-actions {
  display: flex;
  gap: 1rem;
}
.cookie-actions button {
  flex: 1;
  padding: 0.75rem;
  font-family: var(--font-micro);
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--text-dark-primary);
}
.btn-accept {
  background: var(--text-dark-primary);
  color: var(--bg-mist);
}
.btn-reject {
  background: transparent;
  color: var(--text-dark-primary);
}
.btn-accept:hover { background: var(--accent-cyan); border-color: var(--accent-cyan); color: var(--bg-obsidian); }
.btn-reject:hover { background: rgba(0,0,0,0.1); }

/* Internal Pages Structure */
.internal-page {
  padding: 6rem 5%;
  min-height: 70vh;
  background: var(--bg-obsidian);
  display: flex;
  justify-content: center;
}
.internal-content {
  max-width: 800px;
  width: 100%;
  background: var(--bg-glass);
  padding: 4rem;
  border: 1px solid var(--border-color);
  position: relative;
}
.internal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
}
.internal-content h1 {
  font-size: 3rem;
  margin: 1rem 0 2rem;
  color: var(--text-light-primary);
}
.internal-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--accent-ice);
}
.internal-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light-secondary);
  font-size: 1.05rem;
}
.internal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-light-secondary);
}
.internal-content li {
  margin-bottom: 0.5rem;
}
.btn-return {
  display: inline-block;
  margin-top: 3rem;
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid var(--accent-silver);
  color: var(--text-light-primary);
  font-family: var(--font-micro);
  font-size: 0.8rem;
  text-transform: uppercase;
}
.btn-return:hover {
  border-color: var(--accent-ice);
  color: var(--accent-ice);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .hero-left, .hero-right {
    padding: 3rem 5%;
  }
  .facet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .zone-a { grid-column: 1/3; grid-row: 1; }
  .zone-b { grid-column: 1; grid-row: 2; }
  .zone-c { grid-column: 2; grid-row: 2; }
  .zone-d { grid-column: 1/3; grid-row: 3; }
  .zone-e { grid-column: 1; grid-row: 4; }
  .zone-f { grid-column: 2; grid-row: 4; }
  .zone-g { grid-column: 1/3; grid-row: 5; }
  .concierge-section {
    grid-template-columns: 1fr;
  }
  .rule-row {
    flex-direction: column;
  }
  .rule-row h3 {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-obsidian);
    flex-direction: column;
    padding: 2rem 5%;
    border-bottom: 1px solid var(--border-color);
  }
  .header-nav.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .btn-open-slot {
    display: none;
  }
  .facet-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .zone-b { display: none; }
  .zone-a, .zone-c, .zone-d, .zone-e, .zone-f, .zone-g {
    grid-column: 1;
    grid-row: auto;
  }
  .internal-content {
    padding: 2rem;
  }
}