/* AMUN_CINEMATIC_TEMPLE_V2
   Painted environments and native interface elements. Loaded after the existing
   Glass/Living styles. Account eligibility, actions and balances stay server-owned. */
html[data-theme='glass-temple'].amun-cinematic {
  --ct-gold: #ffdf8e;
  --ct-gold-deep: #d09935;
  --ct-ice: #c4f8fa;
  --ct-muted: #b8d9e1;
  --ct-line: #70d7e18f;
  --ct-glass: linear-gradient(125deg, #0d5260c9, #062f41da 48%, #022432ee);
  --gold: var(--ct-gold);
  --temple-gold: var(--ct-gold);
  --temple-muted: var(--ct-muted);
  --temple-text: #e4f2f2;
  background: #021821;
  scroll-padding-block: 22px 108px;
}
html[data-theme='glass-temple'].amun-cinematic body {
  min-width: 320px;
  background: #021821;
  color: #e4f2f2;
}
html[data-theme='glass-temple'].amun-cinematic body::before {
  content: '';
  background: radial-gradient(ellipse at 50% 8%, #0c526967, transparent 65%), #021821;
  pointer-events: none;
}
html[data-theme='glass-temple'].amun-cinematic :is(button, a, summary, select, input):focus-visible {
  outline: 3px solid #b9ffff;
  outline-offset: 4px;
}
html[data-theme='glass-temple'].amun-cinematic :is(button, a, summary) {
  touch-action: manipulation;
}
html[data-theme='glass-temple'].amun-cinematic button {
  overflow-wrap: break-word;
  white-space: normal;
}
html[data-theme='glass-temple'].amun-cinematic [hidden] { display: none !important; }
html[data-theme='glass-temple'].amun-cinematic .ct-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* One large emblem sits in the painted horizon. Navigation remains native. */
html[data-theme='glass-temple'].amun-cinematic .ct-masthead {
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  min-height: 218px;
  padding: 23px 16px 24px;
  text-align: center;
  background: #052b3c;
  overflow: visible;
}
html[data-theme='glass-temple'].amun-cinematic .ct-horizon-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
  opacity: 1;
  pointer-events: none;
}
html[data-theme='glass-temple'].amun-cinematic .ct-masthead::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #021b2e32, #031b2600 60%, #021821 100%);
  pointer-events: none;
}
html[data-theme='glass-temple'].amun-cinematic .ct-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(70%, 600px);
  min-width: 0;
  min-height: 156px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-decoration: none;
  color: var(--ct-gold);
  cursor: pointer;
}
html[data-theme='glass-temple'].amun-cinematic .ct-winged-emblem {
  display: block;
  width: min(100%, 302px);
  height: 98px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 10px #0010206b);
}
html[data-theme='glass-temple'].amun-cinematic .ct-brand > strong {
  font: 500 clamp(1.3rem, 3.1vw, 2.25rem)/1.22 Cinzel, Georgia, serif;
  letter-spacing: .095em;
  color: #ffe1a0;
  text-shadow: 0 2px 15px #001321;
  overflow-wrap: normal;
}
html[data-theme='glass-temple'].amun-cinematic .ct-brand-caption {
  display: block;
  max-width: 100%;
  color: #dcf1f2;
  font-size: .64rem;
  line-height: 1.65;
  letter-spacing: .2em;
  text-shadow: 0 2px 8px #001b27;
}
html[data-theme='glass-temple'].amun-cinematic .ct-language {
  position: absolute;
  inset-inline-end: max(16px, calc((100% - 1160px) / 2));
  top: 17px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 56px;
  max-width: 108px;
  padding: 9px 13px;
  border: 1px solid #71d6e7c7;
  border-radius: 999px;
  background: #04334bcc;
  color: #ffebb6;
  box-shadow: inset 0 0 12px #7bdaf411, 0 3px 14px #00152358;
  font-size: .77rem;
  line-height: 1.35;
  backdrop-filter: blur(9px);
}
html[data-theme='glass-temple'].amun-cinematic .ct-language svg { width: 19px; height: 19px; }
html[data-theme='glass-temple'].amun-cinematic .ct-platform-menu {
  position: absolute;
  inset-inline-start: max(16px, calc((100% - 1160px) / 2));
  top: 17px;
  z-index: 20;
  text-align: start;
}
html[data-theme='glass-temple'].amun-cinematic .ct-platform-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  max-width: 145px;
  padding: 8px 11px;
  border: 1px solid #83c2d285;
  border-radius: 999px;
  color: #d9eef0;
  background: #042c3dbd;
  backdrop-filter: blur(9px);
  font-size: .72rem;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
html[data-theme='glass-temple'].amun-cinematic .ct-platform-menu > summary::-webkit-details-marker { display: none; }
html[data-theme='glass-temple'].amun-cinematic .ct-platform-menu > summary svg { width: 19px; height: 19px; }
html[data-theme='glass-temple'].amun-cinematic .ct-platform-menu[open] > summary { color: #ffe5a4; border-color: #f5d389; }
html[data-theme='glass-temple'].amun-cinematic .ct-platform-menu > nav {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 9px);
  display: grid;
  gap: 3px;
  width: 224px;
  max-width: calc(100vw - 32px);
  padding: 9px;
  border: 1px solid #86d9e7a6;
  border-radius: 17px;
  background: linear-gradient(135deg, #145161f5, #022536fa);
  box-shadow: 0 12px 38px #0011198f;
  backdrop-filter: blur(16px);
}
html[data-theme='glass-temple'].amun-cinematic .ct-platform-menu > nav button {
  display: block;
  min-height: 46px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #d8f0f4;
  font-size: .85rem;
  line-height: 1.6;
  text-align: start;
}
html[data-theme='glass-temple'].amun-cinematic .ct-platform-menu > nav button:hover,
html[data-theme='glass-temple'].amun-cinematic .ct-platform-menu > nav button[aria-current='page'] { color: #ffe9ac; background: #ffdf8920; }

/* Remove duplicate branding and ornamental shell frames, not account actions. */
html[data-theme='glass-temple'].amun-cinematic :is(.app-header, .desktop-brand, .mode-strip) { display: none; }
html[data-theme='glass-temple'].amun-cinematic .world {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}
html[data-theme='glass-temple'].amun-cinematic .app-shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  overflow: visible;
}
html[data-theme='glass-temple'].amun-cinematic .page-content { min-width: 0; }
html[data-theme='glass-temple'].amun-cinematic .live-sync {
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 6px;
  font-size: .65rem;
  line-height: 1.65;
  color: #b5d3da;
  background: transparent;
}
html[data-theme='glass-temple'].amun-cinematic .live-sync > span { flex: 0 1 auto; min-width: 0; overflow-wrap: break-word; }
html[data-theme='glass-temple'].amun-cinematic .live-sync > button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #f5d994;
  text-decoration: underline;
  text-underline-offset: 4px;
}
html[data-theme='glass-temple'].amun-cinematic .live-notice:not(:empty) {
  position: relative;
  z-index: 2;
  margin: 4px 18px 12px;
  padding: 12px 15px;
  color: #ffe3a8;
  border-color: #f1d0868c;
  border-radius: 14px;
  background: #123d49ee;
  font-size: .83rem;
  line-height: 1.8;
}

/* The island is a real image, never covered by a flat map drawing. */
html[data-theme='glass-temple'].amun-cinematic .ct-home { min-width: 0; padding: 0; }
html[data-theme='glass-temple'].amun-cinematic :is(.ct-home, .ct-mining-room, .ct-builders-room) :is(section, article, div) { min-width: 0; }
html[data-theme='glass-temple'].amun-cinematic .ct-map-shell { margin: 0 auto 15px; max-width: 850px; padding: 0; }
html[data-theme='glass-temple'].amun-cinematic .ct-island-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1;
  min-height: 320px;
  margin: 0;
  overflow: visible;
  background: #032838;
}
html[data-theme='glass-temple'].amun-cinematic .ct-island-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  pointer-events: none;
}
html[data-theme='glass-temple'].amun-cinematic .ct-island-scene::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #02182144, transparent 10%, transparent 91%, #021821aa);
}
html[data-theme='glass-temple'].amun-cinematic .ct-hotspot {
  --ct-x: 50%;
  --ct-y: 50%;
  position: absolute;
  z-index: 2;
  left: var(--ct-x);
  top: var(--ct-y);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: clamp(98px, 31%, 224px);
  max-width: 32%;
  min-height: 57px;
  margin: 0;
  padding: 8px 10px;
  color: #ffedb4;
  border: 1px solid #a3fbf1d1;
  border-radius: 20px;
  background: linear-gradient(130deg, #095064ec, #012837e8 60%, #00212cf2);
  box-shadow: inset 0 1px 0 #dbffff3c, 0 0 15px #59f8ed45, 0 8px 24px #00162373;
  backdrop-filter: blur(9px);
  font: inherit;
  line-height: 1.4;
  text-align: start;
  cursor: pointer;
}
html[data-theme='glass-temple'].amun-cinematic .ct-hotspot:hover {
  background: linear-gradient(130deg, #176b77ed, #063c4deb 60%, #032b37f2);
  border-color: #dcffff;
  box-shadow: inset 0 1px 0 #e5ffff54, 0 0 20px #5efaf65b, 0 8px 26px #00162373;
}
html[data-theme='glass-temple'].amun-cinematic .ct-hotspot:disabled { opacity: .76; cursor: default; }
html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-icon { display: grid; place-items: center; flex: 0 0 25px; color: #ffe99e; }
html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-icon svg { width: 25px; height: 25px; stroke-width: 1.7; }
html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-copy { display: block; min-width: 0; }
html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-copy > strong { display: block; color: #fff0bb; font-size: .78rem; font-weight: 650; line-height: 1.45; }
html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-copy > small { display: block; margin-top: 1px; color: #c1ebf2; font-size: .66rem; line-height: 1.5; }
html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-sun { --ct-x: 50%; --ct-y: 10%; }
html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-gate { --ct-x: 19%; --ct-y: 38%; }
html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-treasury { --ct-x: 82%; --ct-y: 42%; }
html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-allies { --ct-x: 50%; --ct-y: 88%; }
html[data-theme='glass-temple'].amun-cinematic .ct-progress-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px 15px;
  padding: 9px 16px 4px;
  color: #b5d9df;
  font-size: .71rem;
  line-height: 1.7;
  text-align: center;
}
html[data-theme='glass-temple'].amun-cinematic .ct-progress-strip strong { color: #ffe2a0; font-weight: 600; }
html[data-theme='glass-temple'].amun-cinematic .ct-reward-beam {
  display: none;
  position: absolute;
  z-index: 1;
  left: 20%;
  top: 43%;
  width: 31%;
  height: 2px;
  transform: rotate(-23deg);
  transform-origin: right center;
  background: linear-gradient(90deg, #ffe5a230, #ffe4a7, #fff5c9);
  box-shadow: 0 0 7px #ffe795, 0 0 17px #ffbd50;
  pointer-events: none;
}
html[data-theme='glass-temple'].amun-cinematic .ct-claim-glow .ct-reward-beam { display: block; animation: ct-confirmed-beam 2.7s ease-out both; }
html[data-theme='glass-temple'].amun-cinematic .ct-claim-confirmation {
  margin: 7px 16px 0;
  padding: 11px 14px;
  border: 1px solid #eacc8287;
  border-radius: 14px;
  background: #314b38c4;
  color: #ffe7ab;
  font-size: .78rem;
  line-height: 1.8;
  text-align: center;
}
@keyframes ct-confirmed-beam {
  0% { opacity: 0; }
  18%, 65% { opacity: 1; }
  100% { opacity: 0; }
}

/* Compact glass controls sit below the scenery; no baked text or hitbox buttons. */
html[data-theme='glass-temple'].amun-cinematic .ct-next-step {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(160px, .8fr);
  align-items: center;
  gap: 18px;
  margin: 20px 24px 22px;
  padding: 24px;
  border: 1px solid #92e6e6ae;
  border-radius: 25px;
  background: var(--ct-glass);
  box-shadow: inset 0 1px 0 #e4ffff33, 0 0 18px #46cddd12, 0 8px 26px #00182345;
}
html[data-theme='glass-temple'].amun-cinematic .ct-next-symbol {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid #ffe2a5bd;
  color: #ffdb7c;
  background: radial-gradient(circle at 50% 40%, #236475, #073449 68%, #062735);
  box-shadow: 0 0 0 5px #d1ae5721, 0 0 20px #f3cd751a, inset 0 0 0 6px #021f32a6;
}
html[data-theme='glass-temple'].amun-cinematic .ct-next-symbol > svg { width: 34px; height: 34px; }
html[data-theme='glass-temple'].amun-cinematic .ct-next-copy > span { display: block; color: #e5c88a; font-size: .67rem; line-height: 1.6; letter-spacing: .07em; }
html[data-theme='glass-temple'].amun-cinematic .ct-next-copy h2 { color: #ffedb9; font: 500 1.35rem/1.45 Cinzel, Georgia, serif; margin: 5px 0; overflow-wrap: break-word; }
html[data-theme='glass-temple'].amun-cinematic .ct-next-copy p { color: #c0dce3; font-size: .79rem; line-height: 1.8; margin: 7px 0 0; }
html[data-theme='glass-temple'].amun-cinematic .ct-next-action { min-width: 0; }
html[data-theme='glass-temple'].amun-cinematic .ct-next-action > .gold-btn { width: 100%; min-height: 58px; margin: 0; }
html[data-theme='glass-temple'].amun-cinematic .ct-next-action > small { display: block; margin: 8px 0 0; color: #bfdae1; font-size: .68rem; line-height: 1.75; text-align: center; }
html[data-theme='glass-temple'].amun-cinematic .gold-btn {
  min-height: 53px;
  padding: 13px 17px;
  color: #1b211c;
  border: 1px solid #ffe9a9;
  border-radius: 16px;
  background: linear-gradient(110deg, #e7b14d 0%, #ffe398 50%, #d7a13d 100%);
  box-shadow: inset 0 1px 1px #fff4c7cc, 0 0 20px #eaba5c21;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.55;
}
html[data-theme='glass-temple'].amun-cinematic .gold-btn:hover { background: linear-gradient(110deg, #f1bd5d, #ffecaf 50%, #e6b052); box-shadow: inset 0 1px 1px #fff4c7cc, 0 0 23px #eaba5c2b; }
html[data-theme='glass-temple'].amun-cinematic .gold-btn:disabled { opacity: .6; }
html[data-theme='glass-temple'].amun-cinematic :is(.outline-btn, .switch) { min-height: 48px; background: #0751648c; border-color: #9cdae2a8; border-radius: 14px; color: #deeff1; }
html[data-theme='glass-temple'].amun-cinematic .ct-account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 24px 26px;
}
html[data-theme='glass-temple'].amun-cinematic .ct-account-stat { padding: 14px 9px; border-block: 1px solid #4a8e9d66; color: #bad8e1; font-size: .72rem; line-height: 1.75; text-align: center; }
html[data-theme='glass-temple'].amun-cinematic .ct-account-stat > strong { display: block; margin-top: 5px; color: #f8dda0; font-size: 1.5rem; line-height: 1.45; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
html[data-theme='glass-temple'].amun-cinematic .ct-account-stat > small { display: block; margin-top: 4px; color: #bad8e1; font-size: .64rem; line-height: 1.65; }
html[data-theme='glass-temple'].amun-cinematic .ct-account-stat > .quiet-link { display: block; min-height: 44px; width: 100%; margin: 4px 0 0; padding: 7px 3px; font-size: .67rem; line-height: 1.65; text-align: center; }

/* Shared city backdrop, with current counters as separately rendered text. */
html[data-theme='glass-temple'].amun-cinematic .ct-city-section {
  position: relative;
  isolation: isolate;
  min-height: 470px;
  margin: 27px 0 24px;
  padding: 246px 24px 24px;
  background: #052a37;
  overflow: hidden;
}
html[data-theme='glass-temple'].amun-cinematic .ct-city-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 37%;
  opacity: 1;
  pointer-events: none;
}
html[data-theme='glass-temple'].amun-cinematic .ct-city-section::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, #03223020 42%, #021d2ae0 100%);
  pointer-events: none;
}
html[data-theme='glass-temple'].amun-cinematic .ct-city-overlay {
  position: relative;
  padding: 23px;
  border: 1px solid #8cd4e2b0;
  border-radius: 24px;
  background: linear-gradient(110deg, #0b5266d6, #052b3ce3 64%, #032b39e3);
  box-shadow: inset 0 1px 0 #efffff24, 0 7px 20px #0016244d;
  backdrop-filter: blur(10px);
}
html[data-theme='glass-temple'].amun-cinematic .ct-city-overlay > span { display: block; color: #efdbad; font-size: .68rem; line-height: 1.7; letter-spacing: .08em; }
html[data-theme='glass-temple'].amun-cinematic .ct-city-overlay h2 { color: #ffe5aa; font: 500 clamp(1.55rem, 4.5vw, 2.3rem)/1.45 Cinzel, Georgia, serif; margin: 3px 0 8px; }
html[data-theme='glass-temple'].amun-cinematic .ct-city-overlay p { color: #c8e3ea; font-size: .79rem; line-height: 1.8; margin: 9px 0 14px; }
html[data-theme='glass-temple'].amun-cinematic .ct-city-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
html[data-theme='glass-temple'].amun-cinematic .ct-city-metrics > div { min-width: 0; padding: 8px 5px; color: #c5e1e6; text-align: center; font-size: .69rem; line-height: 1.6; }
html[data-theme='glass-temple'].amun-cinematic .ct-city-metrics > div + div { border-inline-start: 1px solid #72b8c978; }
html[data-theme='glass-temple'].amun-cinematic .ct-city-metrics strong { display: block; color: #ffe5a8; font-size: 1.8rem; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
html[data-theme='glass-temple'].amun-cinematic .ct-city-metrics span { display: block; }
html[data-theme='glass-temple'].amun-cinematic .ct-city-button { width: min(100%, 460px); margin: 17px auto 0; display: flex; justify-content: center; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin: 0 24px 22px; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-link {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 196px;
  padding: 24px;
  border: 1px solid #8fd6d6b2;
  border-radius: 23px;
  background: var(--ct-glass);
  color: #dbeef1;
  font: inherit;
  line-height: 1.75;
  text-align: start;
  overflow: hidden;
  cursor: pointer;
}
html[data-theme='glass-temple'].amun-cinematic .ct-room-link > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-link::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(100deg, #062f3ee8, #032a39ca 58%, #03223054); pointer-events: none; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-link-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-link-copy > svg { width: 31px; height: 31px; color: #ffe29b; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-link-copy > strong { color: #fff0bc; font: 500 1.27rem/1.45 Cinzel, Georgia, serif; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-link-copy > small { color: #d2e6ee; font-size: .76rem; line-height: 1.8; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-link-copy > b { display: grid; place-items: center; width: 40px; height: 40px; margin-top: 6px; border: 1px solid #f7d988a6; border-radius: 50%; color: #ffe49c; font-size: 1.35rem; line-height: 1; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-link:hover { border-color: #c6fbfa; }

/* Mining keeps the existing native timer/actions over a new sun sanctuary. */
html[data-theme='glass-temple'].amun-cinematic :is(.ct-mining-room, .ct-builders-room) { min-width: 0; margin: 0; padding: 0; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-hero {
  position: relative;
  isolation: isolate;
  min-height: 445px;
  padding: 27px 24px 25px;
  background: #073343;
  overflow: hidden;
}
html[data-theme='glass-temple'].amun-cinematic .ct-room-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  opacity: 1;
  pointer-events: none;
}
html[data-theme='glass-temple'].amun-cinematic .ct-room-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #00263840, transparent 33%, #001f280f 61%, #021e2a95 100%);
  pointer-events: none;
}
html[data-theme='glass-temple'].amun-cinematic .ct-room-heading { position: relative; text-align: center; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-heading > span { display: block; color: #ffe8ae; font-size: .67rem; line-height: 1.7; letter-spacing: .13em; text-shadow: 0 2px 10px #002230; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-heading h1 { color: #fff0b8; font: 500 clamp(1.8rem, 5vw, 2.7rem)/1.4 Cinzel, Georgia, serif; margin: 6px 0 0; text-shadow: 0 2px 16px #00212b; }
html[data-theme='glass-temple'].amun-cinematic .ct-timer-panel {
  position: relative;
  margin: 258px auto 0;
  max-width: 490px;
  padding: 16px 20px;
  border: 1px solid #99dcd9b5;
  border-radius: 22px;
  background: linear-gradient(135deg, #136276da, #032d41e6);
  color: #cfeef3;
  text-align: center;
  box-shadow: inset 0 1px 0 #ddffff1f, 0 6px 25px #00212b40;
  backdrop-filter: blur(10px);
}
html[data-theme='glass-temple'].amun-cinematic .ct-timer-panel > span { display: block; color: #ecd8a6; font-size: .67rem; line-height: 1.7; letter-spacing: .065em; }
html[data-theme='glass-temple'].amun-cinematic .ct-timer-panel > strong { display: block; margin: 3px 0 5px; color: #d8faff; font-size: clamp(2.2rem, 8.5vw, 3.2rem); font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; direction: ltr; }
html[data-theme='glass-temple'].amun-cinematic .ct-timer-panel > small { display: block; color: #cce6ed; font-size: .71rem; line-height: 1.7; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-controls { padding: 20px 24px 0; margin: 0; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-controls .hub-main-action { margin: 0 0 20px; }
html[data-theme='glass-temple'].amun-cinematic .ct-room-controls .hub-main-action > .gold-btn { min-height: 58px; font-size: 1rem; }
html[data-theme='glass-temple'].amun-cinematic :is(.hub-card, .ad-card, .builders-panel, .builders-next, .builders-mining-action) {
  border: 1px solid #78c6d186;
  border-radius: 22px;
  background: var(--ct-glass);
  box-shadow: inset 0 1px 0 #e4ffff18;
}
html[data-theme='glass-temple'].amun-cinematic .ct-room-controls .hub-power { padding: 22px; }
html[data-theme='glass-temple'].amun-cinematic .hub-power-value { margin: 10px 0; font-size: 3rem; color: #ffe2a0; }
html[data-theme='glass-temple'].amun-cinematic #hub-boost { position: relative; isolation: isolate; overflow: hidden; }
html[data-theme='glass-temple'].amun-cinematic #hub-boost::before { content: ''; position: absolute; z-index: -2; inset: 0; background: url('assets/cinematic-temple/sun-sanctuary.webp') center 50% / cover; opacity: .28; pointer-events: none; }
html[data-theme='glass-temple'].amun-cinematic #hub-boost::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, #032d3ade, #053a4dc2); pointer-events: none; }
html[data-theme='glass-temple'].amun-cinematic :is(.hub-card, .ad-card, .builders-panel) :is(h2, h3) { color: #ffe4ac; }
html[data-theme='glass-temple'].amun-cinematic .hub-breakdown { border-color: #72b3bf5e; }
html[data-theme='glass-temple'].amun-cinematic .hub-ref-stats { border-color: #72b3bf5e; }

/* The painted founding gate is scenery. The saved construction stage stays text. */
html[data-theme='glass-temple'].amun-cinematic .ct-gate-hero { min-height: 442px; }
html[data-theme='glass-temple'].amun-cinematic .ct-gate-hero .ct-room-art { object-position: center 44%; }
html[data-theme='glass-temple'].amun-cinematic .ct-gate-state {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 253px auto 0;
  padding: 14px 22px;
  border: 1px solid #eecc819d;
  border-radius: 20px;
  background: #052e3ddc;
  backdrop-filter: blur(9px);
  text-align: center;
}
html[data-theme='glass-temple'].amun-cinematic .ct-gate-state > strong { display: block; color: #ffdfa0; font-size: 1.1rem; line-height: 1.55; font-weight: 650; }
html[data-theme='glass-temple'].amun-cinematic .ct-gate-state > span { display: block; margin-top: 4px; color: #cce4e9; font-size: .72rem; line-height: 1.65; }
html[data-theme='glass-temple'].amun-cinematic .ct-journey-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 23px 24px 17px;
  padding: 0;
}
html[data-theme='glass-temple'].amun-cinematic .ct-journey-steps > li { position: relative; isolation: isolate; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #c5dce3; text-align: center; }
html[data-theme='glass-temple'].amun-cinematic .ct-journey-steps > li:not(:last-child)::after { content: ''; position: absolute; z-index: -1; top: 24px; inset-inline-start: 67%; width: 66%; height: 1px; background: #85b9c0b3; }
html[data-theme='glass-temple'].amun-cinematic .ct-journey-steps > li > span { display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid #8fbbc7; border-radius: 50%; color: #b3d5e1; background: #052b39; }
html[data-theme='glass-temple'].amun-cinematic .ct-journey-steps > li > span > svg { width: 24px; height: 24px; }
html[data-theme='glass-temple'].amun-cinematic .ct-journey-steps > li > strong { color: #cfdee1; font-size: .73rem; font-weight: 500; line-height: 1.65; overflow-wrap: break-word; }
html[data-theme='glass-temple'].amun-cinematic .ct-journey-steps > li.is-done > span,
html[data-theme='glass-temple'].amun-cinematic .ct-journey-steps > li[data-done='true'] > span { border-color: #ffe2a0; color: #fff0ac; background: #2c4d42; box-shadow: 0 0 15px #f0c7593d; }
html[data-theme='glass-temple'].amun-cinematic .ct-builder-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 24px; }
html[data-theme='glass-temple'].amun-cinematic .ct-builder-toolbar > button { flex: 1 1 150px; min-height: 53px; }
html[data-theme='glass-temple'].amun-cinematic .ct-builders-content { padding: 0 24px; }
html[data-theme='glass-temple'].amun-cinematic .ct-builders-content .builders-page { padding: 0; }
html[data-theme='glass-temple'].amun-cinematic .ct-builders-content .builders-panel { padding: 22px; }
html[data-theme='glass-temple'].amun-cinematic .builders-lesson { background: #063041bd; border-color: #6695a684; border-radius: 16px; }
html[data-theme='glass-temple'].amun-cinematic .builders-lesson.is-complete { background: #0c4843bf; border-color: #91ba94a3; }
html[data-theme='glass-temple'].amun-cinematic .builders-answer { background: #063347ce; border-color: #87bccb81; border-radius: 13px; min-height: 50px; }
html[data-theme='glass-temple'].amun-cinematic .builders-answer:has(input:checked) { color: #ffe8b0; border-color: #edcd86; background: #405c51ad; }
html[data-theme='glass-temple'].amun-cinematic .builders-style { background: #083d4caa; border-color: #90c4ce6c; border-radius: 16px; }
html[data-theme='glass-temple'].amun-cinematic .builders-style.selected { background: #44644b68; border-color: #f0cf89; }
html[data-theme='glass-temple'].amun-cinematic .builders-source-counts > div { background: #0d4b5a9c; border-color: #94c6c560; border-radius: 15px; }
html[data-theme='glass-temple'].amun-cinematic .builders-rewards { background: #0c4053b0; }

/* Native four-item account navigation, safe-area aware on touch screens. */
html[data-theme='glass-temple'].amun-cinematic .bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  right: auto;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  width: min(910px, calc(100% - 20px));
  max-width: none;
  gap: 5px;
  padding: 12px 13px max(13px, env(safe-area-inset-bottom));
  border: 1px solid #5ab4c994;
  border-radius: 27px;
  background: linear-gradient(180deg, #094b5ddd, #011d2aee);
  box-shadow: inset 0 1px 0 #ddffff14, 0 -7px 28px #0018245e;
  backdrop-filter: blur(18px);
}
html[data-theme='glass-temple'].amun-cinematic .bottom-nav .nav-jewel { display: none; }
html[data-theme='glass-temple'].amun-cinematic .bottom-nav button {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 64px;
  padding: 4px 6px 13px;
  color: #9ec8dc;
  font-size: .78rem;
  line-height: 1.4;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
html[data-theme='glass-temple'].amun-cinematic .bottom-nav button + button { border-inline-start: 1px solid #3a758348; }
html[data-theme='glass-temple'].amun-cinematic .bottom-nav button > svg { width: 29px; height: 29px; stroke-width: 1.7; }
html[data-theme='glass-temple'].amun-cinematic .bottom-nav button > span { max-width: 100%; overflow-wrap: break-word; }
html[data-theme='glass-temple'].amun-cinematic .bottom-nav button.active { color: #ffdf80; background: #fcd36b06; }
html[data-theme='glass-temple'].amun-cinematic .bottom-nav button.active > svg { filter: drop-shadow(0 0 8px #ffd66563); }
html[data-theme='glass-temple'].amun-cinematic .bottom-nav button.active::after { content: ''; position: absolute; bottom: 0; inset-inline: 13%; height: 3px; border-radius: 6px; background: #ffdf8a; box-shadow: 0 0 8px #ffd97f68; }
html[data-theme='glass-temple'].amun-cinematic .app-footer { padding: 25px 18px calc(126px + env(safe-area-inset-bottom)); color: #a5c7d1; font-size: .66rem; line-height: 1.8; }
html[data-theme='glass-temple'].amun-cinematic .toast { bottom: calc(113px + env(safe-area-inset-bottom)); }

/* Six languages share the same layout; only writing direction changes. */
html[data-theme='glass-temple'].amun-cinematic[dir='rtl'] :is(.ct-brand-caption, .ct-next-copy > span, .ct-city-overlay > span, .ct-room-heading > span, .ct-timer-panel > span) { letter-spacing: 0; }
html[data-theme='glass-temple'].amun-cinematic[dir='rtl'] :is(.ct-next-copy h2, .ct-city-overlay h2, .ct-room-link-copy > strong, .ct-room-heading h1) { font-family: 'IBM Plex Sans Arabic', Arial, sans-serif; }
html[data-theme='glass-temple'].amun-cinematic[dir='rtl'] .ct-room-link::after { background: linear-gradient(260deg, #062f3ee8, #032a39ca 58%, #03223054); }
html[data-theme='glass-temple'].amun-cinematic:is([lang='zh'], [lang='hi']) :is(.ct-next-copy h2, .ct-city-overlay h2, .ct-room-link-copy > strong, .ct-room-heading h1) { font-family: inherit; }
html[data-theme='glass-temple'].amun-cinematic:is([lang='zh'], [lang='hi']) :is(.ct-brand-caption, .ct-next-copy > span, .ct-city-overlay > span, .ct-room-heading > span, .ct-timer-panel > span) { letter-spacing: 0; }

@media (min-width: 950px) {
  html[data-theme='glass-temple'].amun-cinematic .ct-masthead { min-height: 246px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-brand { min-height: 183px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-winged-emblem { height: 116px; width: 330px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-home { padding-inline: 25px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-map-shell { border-radius: 28px; overflow: hidden; }
  html[data-theme='glass-temple'].amun-cinematic .ct-island-scene { aspect-ratio: 1; }
  html[data-theme='glass-temple'].amun-cinematic .ct-hotspot { min-height: 69px; padding: 12px 17px; border-radius: 23px; gap: 12px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-icon svg { width: 31px; height: 31px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-copy > strong { font-size: 1rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-copy > small { font-size: .79rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-next-step { margin-inline: 0; }
  html[data-theme='glass-temple'].amun-cinematic .ct-account-stats { margin-inline: 0; }
  html[data-theme='glass-temple'].amun-cinematic .ct-city-section { min-height: 550px; padding-top: 285px; border-radius: 28px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-links { margin-inline: 0; }
  html[data-theme='glass-temple'].amun-cinematic .ct-mining-room,
  html[data-theme='glass-temple'].amun-cinematic .ct-builders-room { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 20px 24px; align-items: start; padding: 12px 20px 0; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-hero { min-height: 590px; border-radius: 28px; padding-top: 30px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-heading h1 { font-size: 2rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-timer-panel { margin-top: 320px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-gate-state { margin-top: 351px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-controls { padding: 0; }
  html[data-theme='glass-temple'].amun-cinematic .ct-builders-room > .ct-gate-hero { grid-column: 1; grid-row: 1 / span 3; }
  html[data-theme='glass-temple'].amun-cinematic .ct-builders-room > .ct-journey-steps { grid-column: 2; grid-row: 1; margin: 6px 0 0; }
  html[data-theme='glass-temple'].amun-cinematic .ct-builders-room > .ct-builder-toolbar { grid-column: 2; grid-row: 2; margin: 0; }
  html[data-theme='glass-temple'].amun-cinematic .ct-builders-room > .ct-builders-content { grid-column: 2; grid-row: 3; padding: 0; }
}
@media (max-width: 760px) {
  html[data-theme='glass-temple'].amun-cinematic .ct-masthead { min-height: 190px; padding-block: 21px 20px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-brand { width: min(70%, 330px); min-height: 148px; gap: 7px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-winged-emblem { width: min(100%, 247px); height: 85px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-brand > strong { font-size: clamp(1.2rem, 4.5vw, 1.65rem); letter-spacing: .075em; }
  html[data-theme='glass-temple'].amun-cinematic .ct-brand-caption { font-size: .59rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-platform-menu > summary { width: 44px; padding: 8px; font-size: 0; gap: 0; }
  html[data-theme='glass-temple'].amun-cinematic .ct-platform-menu > summary svg { width: 21px; height: 21px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-language { max-width: 70px; min-width: 49px; padding-inline: 9px; font-size: .71rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-language svg { width: 16px; height: 16px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-next-step { grid-template-columns: 40px minmax(0, 1fr) 126px; padding: 14px; gap: 10px; margin-inline: 15px; border-radius: 23px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-next-symbol { width: 40px; height: 40px; box-shadow: 0 0 0 3px #d1ae5721, 0 0 20px #f3cd751a, inset 0 0 0 4px #021f32a6; }
  html[data-theme='glass-temple'].amun-cinematic .ct-next-symbol > svg { width: 23px; height: 23px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-next-copy > span { font-size: .59rem; letter-spacing: .02em; }
  html[data-theme='glass-temple'].amun-cinematic .ct-next-copy h2 { font-size: .97rem; line-height: 1.45; }
  html[data-theme='glass-temple'].amun-cinematic .ct-next-action { width: 100%; }
  html[data-theme='glass-temple'].amun-cinematic .ct-next-action > .gold-btn { min-height: 53px; padding: 9px 8px; font-size: .78rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-next-action > small { margin-top: 7px; font-size: .59rem; line-height: 1.65; }
  html[data-theme='glass-temple'].amun-cinematic .ct-account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 16px; gap: 10px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-city-section { min-height: 515px; padding: 246px 15px 20px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-city-overlay { padding: 20px 16px; border-radius: 23px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-city-metrics { gap: 5px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-city-metrics strong { font-size: 1.6rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-links { gap: 11px; margin-inline: 15px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-link { min-height: 210px; padding: 18px 14px; gap: 8px; border-radius: 20px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-link-copy > strong { font-size: 1rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-link-copy > small { font-size: .69rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-hero { min-height: 425px; padding: 22px 16px 18px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-heading h1 { font-size: 1.8rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-timer-panel { margin-top: 258px; padding: 13px 15px; border-radius: 20px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-controls { padding: 17px 15px 0; }
  html[data-theme='glass-temple'].amun-cinematic .ct-gate-state { margin-top: 253px; padding: 12px 16px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-builders-content { padding-inline: 15px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-builder-toolbar { margin-inline: 15px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-journey-steps { margin-inline: 16px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-builders-content .builders-panel { padding: 19px 16px; }
  html[data-theme='glass-temple'].amun-cinematic .bottom-nav { width: calc(100% - 10px); bottom: 4px; gap: 1px; border-radius: 22px; padding: 10px 6px max(10px, env(safe-area-inset-bottom)); }
  html[data-theme='glass-temple'].amun-cinematic .bottom-nav button { min-height: 62px; font-size: .73rem; padding-inline: 3px; }
  html[data-theme='glass-temple'].amun-cinematic .bottom-nav button > svg { width: 27px; height: 27px; }
}
@media (max-width: 370px) {
  html[data-theme='glass-temple'].amun-cinematic .ct-masthead { min-height: 175px; padding-block: 20px 16px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-brand { min-height: 139px; width: 70%; }
  html[data-theme='glass-temple'].amun-cinematic .ct-winged-emblem { height: 75px; width: 218px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-brand > strong { font-size: 1.17rem; letter-spacing: .06em; }
  html[data-theme='glass-temple'].amun-cinematic .ct-brand-caption { font-size: .56rem; letter-spacing: .12em; }
  html[data-theme='glass-temple'].amun-cinematic .ct-platform-menu { inset-inline-start: 10px; top: 12px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-language { inset-inline-end: 10px; top: 12px; }
  html[data-theme='glass-temple'].amun-cinematic .live-sync { padding-inline: 13px; gap: 7px; font-size: .61rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-hotspot { max-width: 32%; width: 102px; gap: 5px; min-height: 59px; padding: 7px; border-radius: 16px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-icon { flex-basis: 19px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-icon svg { width: 19px; height: 19px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-copy > strong { font-size: .66rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-hotspot-copy > small { font-size: .59rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-next-step { grid-template-columns: 36px minmax(0, 1fr) 114px; margin-inline: 12px; padding: 13px; gap: 9px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-next-symbol { width: 36px; height: 36px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-next-copy h2 { font-size: .9rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-links { gap: 9px; margin-inline: 12px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-link { padding: 15px 12px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-link-copy > strong { font-size: .93rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-controls { padding-inline: 12px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-builders-content { padding-inline: 12px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-builder-toolbar { margin-inline: 12px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-room-heading h1 { font-size: 1.65rem; }
  html[data-theme='glass-temple'].amun-cinematic .ct-city-overlay { padding-inline: 13px; }
  html[data-theme='glass-temple'].amun-cinematic .ct-city-metrics > div { font-size: .62rem; }
  html[data-theme='glass-temple'].amun-cinematic .bottom-nav button { font-size: .67rem; }
  html[data-theme='glass-temple'].amun-cinematic .bottom-nav button > svg { width: 25px; height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme='glass-temple'].amun-cinematic *,
  html[data-theme='glass-temple'].amun-cinematic *::before,
  html[data-theme='glass-temple'].amun-cinematic *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html[data-theme='glass-temple'].amun-cinematic[data-motion='reduced'] *,
html[data-theme='glass-temple'].amun-cinematic[data-motion='reduced'] *::before,
html[data-theme='glass-temple'].amun-cinematic[data-motion='reduced'] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
