@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-primary:   #07100C;
  --bg-secondary: #0D1510;
  --bg-card:      #111A14;
  --gold:         #C9A84C;
  --gold-light:   #E2C97E;
  --white:        #FFFFFF;
  --gray-light:   #AAAAAA;
  --gray-mid:     #555555;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', sans-serif;

  --footer-height: 112px;
  --pad-x: 48px;
}

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

html, body {
  width: 1080px;
  height: 1920px;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--white);
  font-family: var(--sans);
  -webkit-user-select: none;
  user-select: none;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
}

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  transition: transform 320ms cubic-bezier(0.25, 0.1, 0.25, 1), opacity 320ms ease;
}

/* Resting, fully-visible, interactive state — every screen ends up here. */
.tse-active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* will-change is scoped to only the classes present during an active
   transition (never on .tse-active, the long-lived resting state) so the
   browser isn't asked to keep a promoted compositor layer around for a
   screen that's just sitting there. */
.tse-enter-right, .tse-enter-left, .tse-enter-fade,
.tse-exit-left, .tse-exit-right, .tse-exit-fade {
  will-change: transform, opacity;
}

/* Starting position for an incoming screen, set before the transition
   kicks off so the browser has something to animate away from. */
.tse-enter-right { transform: translateX(100%); opacity: 1; }
.tse-enter-left { transform: translateX(-100%); opacity: 1; }
.tse-enter-fade { transform: translateX(0); opacity: 0; }

/* End position for the outgoing screen, applied at the same time the
   incoming screen animates to .tse-active. */
.tse-exit-left { transform: translateX(-100%); opacity: 1; }
.tse-exit-right { transform: translateX(100%); opacity: 1; }
.tse-exit-fade { transform: translateX(0); opacity: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.title-serif {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
}

.title-serif em, .accent {
  font-style: italic;
  color: var(--gold);
}

.body-text {
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-light);
}

.gold-line {
  width: 64px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 24px 0;
}

.section-number {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 20px;
  font-weight: 400;
}

/* ---------- Header / language switcher ---------- */

.top-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--pad-x) 0;
  z-index: 20;
}

.top-logo {
  height: 44px;
  object-fit: contain;
}

.top-logo-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--white);
}
.top-logo-text em { color: var(--gold); font-style: italic; }

.lang-switcher {
  position: absolute;
  top: 40px;
  right: var(--pad-x);
  display: flex;
  gap: 10px;
  z-index: 30;
}

.lang-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(17, 26, 20, 0.7);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 200ms ease, transform 150ms ease;
}
.lang-btn.active {
  border-color: var(--gold);
  color: var(--bg-primary);
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.25);
}
.lang-btn:active { transform: scale(0.92); }

.breadcrumb {
  position: absolute;
  top: 100px;
  left: var(--pad-x);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gray-light);
  letter-spacing: 0.05em;
  z-index: 20;
}
.breadcrumb .sep { color: var(--gold); margin: 0 8px; }

/* ---------- Buttons ---------- */

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 80px;
  padding: 0 40px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 200ms ease, transform 150ms ease;
}
.btn-outline:active {
  background: rgba(201, 168, 76, 0.12);
  transform: scale(0.98);
}

.btn-gold-text {
  color: var(--gold);
  border-color: var(--gold-light);
}

/* ---------- Footer nav ---------- */

.footer-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: var(--footer-height);
  background: var(--bg-secondary);
  border-top: 1px solid rgba(201,168,76,0.15);
  display: flex;
  align-items: stretch;
  z-index: 25;
}

.footer-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 80px;
  background: none;
  border: none;
  border-right: 1px solid rgba(201,168,76,0.1);
  color: var(--gray-light);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease;
}
.footer-btn:last-child { border-right: none; }
.footer-btn:active { background: rgba(201,168,76,0.08); }
.footer-btn.home-btn { color: var(--gold); font-size: 26px; flex: 0.7; }
.footer-btn .icon { font-size: 22px; }
.footer-btn[disabled] { opacity: 0.25; pointer-events: none; }

/* ---------- Screensaver ---------- */

.screensaver { background: var(--bg-primary); }
.ss-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 800ms ease;
  background-size: cover;
  background-position: center;
}
.ss-frame.active { opacity: 1; }
.ss-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,16,12,0.55) 0%, rgba(7,16,12,0.75) 100%);
  z-index: 0;
}
.ss-frame > * { position: relative; z-index: 1; }
.ss-logo { font-family: var(--serif); font-size: 56px; font-weight: 300; letter-spacing: 0.04em; color: var(--white); text-align: center; }
.ss-logo em { color: var(--gold); font-style: italic; }
.ss-tagline { margin-top: 20px; color: var(--gray-light); font-size: 18px; letter-spacing: 0.05em; }
.ss-material-name { font-family: var(--serif); font-size: 48px; color: var(--gold-light); position: absolute; bottom: 260px; left: 0; right: 0; text-align: center; }
.ss-touch {
  position: absolute;
  bottom: 90px;
  left: 0; right: 0;
  text-align: center;
  color: var(--gold);
  font-size: 28px;
  letter-spacing: 0.06em;
  font-family: var(--sans);
  font-weight: 400;
}

/* ---------- Home ---------- */

.home-hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 220px var(--pad-x) 40px;
  background-size: cover;
  background-position: center;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,16,12,0.82) 0%, rgba(7,16,12,0.68) 32%, rgba(7,16,12,0.74) 62%, rgba(7,16,12,0.97) 100%);
}
.home-hero > * { position: relative; z-index: 1; }
.home-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.home-title { font-size: 60px; margin: 24px 0 20px; max-width: 880px; }
.home-subtitle { font-size: 21px; max-width: 720px; margin-bottom: 40px; }

/* Reusable full-screen video background (Nossos Materiais grid, Simulador
   picker) — same clip and darkening as the Home hero. */
.video-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.video-bg.fallback { background: linear-gradient(135deg, #1c2a20, #0D1510); }
.video-bg-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,16,12,0.82) 0%, rgba(7,16,12,0.68) 32%, rgba(7,16,12,0.74) 62%, rgba(7,16,12,0.97) 100%);
}
.home-ctas { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 520px; }
.home-about-link { margin-top: 28px; font-size: 13px; letter-spacing: 0.08em; color: var(--gray-light); text-decoration: underline; text-underline-offset: 4px; }

.pillars {
  background: var(--bg-secondary);
  padding: 40px var(--pad-x);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.pillar { flex: 1; text-align: center; }
.pillar-word { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 10px; }
.pillar-desc { font-size: 13px; color: var(--gray-light); line-height: 1.5; }
.pillars-logo { text-align: center; padding: 20px 0 100px; font-family: var(--serif); font-size: 20px; color: var(--gray-light); letter-spacing: 0.06em; }
.pillars-logo em { color: var(--gold); font-style: italic; }

/* ---------- Materials grid ---------- */

.page-head { position: relative; z-index: 1; padding: 150px var(--pad-x) 20px; text-align: center; }
.page-title { font-size: 44px; margin-top: 14px; }
.page-subtitle { font-size: 16px; margin-top: 16px; max-width: 800px; margin-left: auto; margin-right: auto; }

.materials-grid {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow: hidden;
  padding: 10px var(--pad-x) 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.materials-grid .material-card:last-child:nth-child(odd) {
  grid-column: 1 / span 2;
  justify-self: center;
  width: calc(50% - 9px);
}

.material-card {
  position: relative;
  border: 1px solid rgba(201,168,76,0.35);
  background: var(--bg-card) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  min-height: 180px;
  overflow: hidden;
}
.material-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,16,12,0.1) 0%, rgba(7,16,12,0.88) 100%);
}
.material-card .card-body { position: relative; z-index: 1; padding: 18px 20px; width: 100%; }
.card-badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.card-badge.dolomita { color: var(--gold-light); }
.card-name { font-family: var(--serif); font-size: 24px; text-transform: uppercase; letter-spacing: 0.03em; }
.card-arrow {
  position: absolute;
  bottom: 16px; right: 18px;
  color: var(--gold);
  font-size: 22px;
  z-index: 1;
}
.material-card.fallback { align-items: center; justify-content: center; background: linear-gradient(135deg, #7a5f22, #C9A84C); }
.material-card.fallback .card-body { text-align: center; }
.material-card.fallback .card-name { color: #1a1305; }

.materials-footer-logo {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6px 0 96px;
  font-family: var(--serif);
  color: var(--gray-light);
  font-size: 16px;
  letter-spacing: 0.05em;
}
.materials-footer-logo em { color: var(--gold); font-style: italic; }

/* ---------- Material detail ---------- */

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
/* Room photo behind the material text has a lot of visual clutter (windows,
   furniture, foliage) fighting the title/story for attention — darken it
   well past the shared .video-bg-overlay level used on Home/grid screens. */
.detail-bg .video-bg-overlay {
  background: linear-gradient(180deg, rgba(7,16,12,0.90) 0%, rgba(7,16,12,0.86) 30%, rgba(7,16,12,0.88) 60%, rgba(7,16,12,0.98) 100%);
}
.material-detail-scroll {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  padding: 150px var(--pad-x) 40px;
}
.material-hero-photo {
  position: absolute;
  z-index: 1;
  top: 130px;
  right: 0;
  width: 46%;
  height: 300px;
  background-size: cover;
  background-position: center;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  border-left: 1px solid rgba(201,168,76,0.3);
}
.material-hero-photo.fallback { background: linear-gradient(135deg, #7a5f22, #C9A84C); }

/* Text column must stay clear of .material-hero-photo, which sits
   absolutely at right:0 width:46% (left edge ~583px on the 1080px design) —
   620px-wide text was reaching under the image and overlapping it. */
.material-name-title { font-size: 56px; max-width: 500px; margin-top: 16px; }
.material-story { font-size: 16px; margin-top: 28px; max-width: 500px; }
.material-applications { margin-top: 20px; font-size: 14px; max-width: 500px; }
.material-applications strong { color: var(--gray-light); font-weight: 500; }
.material-applications .val { color: var(--gold-light); }

.petro-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  min-height: 76px;
  padding: 0 32px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.petro-cta:active { background: rgba(201,168,76,0.1); }

.env-label { margin-top: 48px; text-align: center; }
.env-grid-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.env-card-inline {
  position: relative;
  min-height: 280px;
  border: 1px solid rgba(201,168,76,0.35);
  background: var(--bg-card) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.env-card-inline.fallback { background: linear-gradient(135deg, #1c2a20, #0D1510); }
.env-card-inline::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,16,12,0.05) 0%, rgba(7,16,12,0.85) 100%);
}
.env-card-inline .env-name { position: relative; z-index: 1; padding: 20px 22px; font-family: var(--serif); font-size: 26px; text-transform: uppercase; }

.detail-tagline {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 56px;
  flex-wrap: wrap;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 500;
}
.detail-footer-logo { text-align: center; margin-top: 24px; padding-bottom: 32px; font-family: var(--serif); color: var(--gray-light); font-size: 15px; }
.detail-footer-logo em { color: var(--gold); font-style: italic; }

/* ---------- Modal ---------- */

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 6, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 0 var(--pad-x);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 0ms linear 280ms;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 280ms ease;
}
.modal-box {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: var(--bg-card);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 56px 44px;
  transform: scale(0.96) translateY(12px);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  border: 1px solid rgba(201,168,76,0.4);
  background: none;
  color: var(--gold);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.modal-title { font-family: var(--serif); color: var(--gold); font-size: 34px; font-weight: 400; }
.modal-subtitle { color: var(--white); font-size: 18px; margin-top: 10px; font-family: var(--serif); }
.modal-explainer { margin-top: 20px; font-size: 15px; }
.modal-input {
  width: 100%;
  margin-top: 28px;
  min-height: 72px;
  background: var(--bg-secondary);
  border: 1px solid var(--gray-mid);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  padding: 0 20px;
}
.modal-input:focus { outline: none; border-color: var(--gold); }
.modal-checkbox-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.modal-checkbox-row input {
  width: 28px; height: 28px;
  accent-color: var(--gold);
}
.modal-checkbox-row label { font-size: 14px; color: var(--gray-light); }
.modal-error { color: #d98c6f; font-size: 13px; margin-top: 14px; min-height: 18px; }
.modal-submit { width: 100%; margin-top: 24px; }

/* ---------- Petrography table ---------- */

.petro-scroll { flex: 1; overflow-y: auto; padding: 150px var(--pad-x) 40px; }
.petro-table { width: 100%; border-collapse: collapse; margin-top: 30px; }
.petro-table tr { border-bottom: 1px solid rgba(201,168,76,0.12); }
.petro-table td { padding: 16px 8px; font-size: 15px; vertical-align: top; }
.petro-table td.label { color: var(--gray-light); width: 60%; }
.petro-table td.value { color: var(--gold); text-align: right; font-family: var(--serif); font-size: 18px; }
.petro-notice { margin-top: 24px; color: var(--gold-light); font-size: 13px; letter-spacing: 0.04em; }

/* ---------- Gallery ---------- */

.gallery-screen { padding-top: 150px; flex: 1; display: flex; flex-direction: column; }

.gallery-back-link {
  align-self: center;
  margin-bottom: 16px;
  background: none;
  border: none;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gallery-finish-switcher { display: flex; justify-content: center; gap: 10px; padding: 0 var(--pad-x) 20px; }
.gallery-finish-btn {
  min-height: 56px;
  padding: 0 26px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gray-light);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gallery-finish-btn.active { color: var(--bg-primary); background: var(--gold); }

.gallery-track-wrap { flex: 1; position: relative; padding: 0 var(--pad-x); overflow: hidden; }
.gallery-track { display: flex; height: 100%; transition: transform 350ms ease; }
.gallery-slide { min-width: 100%; height: 100%; position: relative; border: 1px solid rgba(201,168,76,0.25); background: var(--bg-card) center/cover no-repeat; }
.gallery-slide.fallback { background: linear-gradient(135deg, #1c2a20, #0D1510); display:flex; align-items:center; justify-content:center; }
.finish-badge-gold {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  background: var(--gold);
  color: var(--bg-primary);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(7,16,12,0.65);
  color: var(--gold);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.gallery-arrow-left { left: calc(var(--pad-x) + 16px); }
.gallery-arrow-right { right: calc(var(--pad-x) + 16px); }
.gallery-arrow:disabled { opacity: 0.25; }

.gallery-dots { display: flex; justify-content: center; gap: 10px; padding: 20px 0; }
.gallery-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-mid); }
.gallery-dot.active { background: var(--gold); }

/* ---------- Simulator ---------- */

.simulator-screen { position: relative; z-index: 1; padding-top: 150px; flex: 1; display: flex; flex-direction: column; }
.simulator-screen > .eyebrow, .simulator-screen > .title-serif, .simulator-screen > .material-story {
  align-self: center;
  text-align: center;
}
.simulator-screen > .material-story { max-width: 720px; }

.sim-env-picker {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px var(--pad-x) 0;
}
.sim-env-card {
  position: relative;
  min-height: 260px;
  border: 1px solid rgba(201,168,76,0.35);
  background: var(--bg-card) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sim-env-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,16,12,0.15) 0%, rgba(7,16,12,0.45) 50%, rgba(7,16,12,0.2) 100%);
}
.sim-env-card-name {
  position: relative; z-index: 1;
  padding: 16px 22px;
  font-family: var(--serif);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--white);
  background: rgba(7,16,12,0.55);
  border: 1px solid rgba(201,168,76,0.45);
}
.sim-env-card-arrow { position: absolute; bottom: 16px; right: 18px; color: var(--gold); font-size: 20px; z-index: 1; }

.sim-viewport-fullscreen { margin-top: 24px; }

.sim-viewport {
  flex: 1;
  margin: 24px var(--pad-x) 0;
  position: relative;
  background: var(--bg-card) center/cover no-repeat;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.25);
}
.sim-viewport.fallback { background: linear-gradient(135deg, #1c2a20, #0D1510); display:flex; align-items:center; justify-content:center; }
.sim-viewport img.sim-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms ease; }
.sim-viewport img.sim-img.visible { opacity: 1; }
.sim-overlay-name {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 5;
  padding: 14px 24px;
  background: rgba(7,16,12,0.7);
  border: 1px solid rgba(201,168,76,0.55);
}
.sim-overlay-name .name { font-family: var(--serif); font-size: 28px; color: var(--gold); }

.sim-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7,16,12,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.sim-loading.active { opacity: 1; }
.sim-loading-spinner {
  width: 56px; height: 56px;
  border: 3px solid rgba(201,168,76,0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: tse-spin 800ms linear infinite;
}
@keyframes tse-spin { to { transform: rotate(360deg); } }

.sim-finish-switcher {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sim-finish-btn {
  min-height: 60px;
  min-width: 148px;
  padding: 0 28px;
  background: rgba(7,16,12,0.7);
  border: 1px solid rgba(201,168,76,0.55);
  color: var(--gray-light);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sim-finish-btn.active { color: var(--bg-primary); background: var(--gold); border-color: var(--gold); }

.sim-thumbs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 48px);
  bottom: calc(var(--footer-height) + 24px);
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 22px 26px;
  overflow-x: auto;
  background: rgba(7,16,12,0.72);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 28px;
}
.sim-thumb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 96px;
  flex-shrink: 0;
}
.sim-thumb {
  width: 96px; height: 96px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--bg-card) center/cover no-repeat;
}
.sim-thumb.fallback { background: linear-gradient(135deg, #7a5f22, #C9A84C); }
.sim-thumb-wrap.active .sim-thumb { border-color: var(--gold); }
.sim-thumb-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  color: var(--gold);
}

/* ---------- About ---------- */

.about-scroll { flex: 1; overflow-y: auto; padding: 200px var(--pad-x) 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.about-logo { font-family: var(--serif); font-size: 40px; margin-bottom: 40px; }
.about-logo em { color: var(--gold); font-style: italic; }
.about-body { max-width: 700px; font-size: 17px; }

/* ---------- Image fallback text ---------- */

.img-fallback-name {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: #1a1305;
  font-size: 22px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 20px;
}
