/* Amun Genesis · Glass Sun Temple. This file is loaded last.
   All rules are opt-in. Account state, rewards and progression remain server-owned. */
html[data-theme='glass-temple'] {
  color-scheme: dark;
  --gold: #f7d888;
  --gold-dark: #bb852e;
  --ink: #03121a;
  --panel: #092832;
  --muted: #accbd5;
  --line: #55c8db47;
  --green: #a0ead0;
  --temple-bg: #03121a;
  --temple-panel: #082733;
  --temple-text: #e6f5f5;
  --temple-muted: #accbd5;
  --temple-gold: #f7d888;
  --temple-cyan: #baf4fa;
  --temple-line: #65cfdf62;
  --temple-soft-line: #65cfdf2e;
  --temple-glass: linear-gradient(132deg, #12404de8 0%, #05202bea 58%, #071c29f5 100%);
  background: var(--temple-bg);
  scroll-padding-block: 24px 110px;
}
html[data-theme='glass-temple'] body {
  min-width: 320px;
  margin: 0;
  color: var(--temple-text);
  background: radial-gradient(ellipse at 15% 0%, #12455760, transparent 40%), #03121a;
  font-family: Manrope, 'IBM Plex Sans Arabic', 'Noto Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html[data-theme='glass-temple'][lang='ar'] body { font-family: 'IBM Plex Sans Arabic', Manrope, Arial, sans-serif; }
html[data-theme='glass-temple'][lang='zh'] body { font-family: 'Noto Sans SC', 'Microsoft YaHei', Arial, sans-serif; }
html[data-theme='glass-temple'][lang='hi'] body { font-family: 'Noto Sans Devanagari', 'Nirmala UI', Arial, sans-serif; }
html[data-theme='glass-temple'] body::before {
  display: block;
  background: radial-gradient(ellipse at 60% 0%, #1761712e, transparent 55%), linear-gradient(180deg, #03121a, #05212a 70%, #03121a);
  pointer-events: none;
}
html[data-theme='glass-temple'] :is(h1, h2, h3) { color: var(--temple-gold); overflow-wrap: break-word; }
html[data-theme='glass-temple'] p { color: var(--temple-muted); }
html[data-theme='glass-temple'] :is(button, a, input, select) { -webkit-tap-highlight-color: #88e4e523; }
html[data-theme='glass-temple'] :is(button, input, select) { max-width: 100%; }
html[data-theme='glass-temple'] :is(button, a, input, select, summary):focus-visible {
  outline: 2px solid #c2f6fb;
  outline-offset: 4px;
}
html[data-theme='glass-temple'] button { white-space: normal; overflow-wrap: break-word; }
html[data-theme='glass-temple'] button:disabled { opacity: .55; }
html[data-theme='glass-temple'] :is(button, a) { touch-action: manipulation; }
html[data-theme='glass-temple'] :is(.gold-btn, .outline-btn, .switch, .text-btn, .quiet-link) { min-height: 44px; }
html[data-theme='glass-temple'] :is(.gold-btn, .outline-btn) {
  border-radius: 14px;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  text-decoration: none;
}
html[data-theme='glass-temple'] .gold-btn {
  min-height: 50px;
  padding: 12px 18px;
  gap: 10px;
  color: #172324;
  background: linear-gradient(110deg, #e5ad47, #ffde85 46%, #dfaa4d);
  border: 1px solid #ffe4a7;
  box-shadow: inset 0 1px 0 #fff0bf, 0 8px 26px #edb94714;
  font-size: .925rem;
  font-weight: 800;
  transition: background .18s ease, box-shadow .18s ease;
}
html[data-theme='glass-temple'] .gold-btn:hover { filter: none; transform: none; background: linear-gradient(110deg, #efba5b, #ffe69a 46%, #e5b559); box-shadow: inset 0 1px 0 #fff0bf, 0 8px 26px #edb94724; }
html[data-theme='glass-temple'] .gold-btn svg { width: 21px; height: 21px; stroke-width: 2; }
html[data-theme='glass-temple'] :is(.outline-btn, .switch) {
  border: 1px solid #6dcbd16e;
  background: #13444c65;
  color: #d2f2f4;
  padding: 10px 15px;
  margin-top: 12px;
  font-size: .85rem;
}
html[data-theme='glass-temple'] :is(.outline-btn, .switch):hover { background: #20545d85; border-color: #9adce0a1; }
html[data-theme='glass-temple'] :is(.quiet-link, .text-btn) { color: #f0d28e; border-color: var(--temple-soft-line); }
html[data-theme='glass-temple'] .quiet-link:hover { color: #ffebb3; background: #71bdc00a; }

/* The platform header remains functional on every screen. */
html[data-theme='glass-temple'] .platform-header {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 14px 26px;
  gap: 18px;
  border-bottom: 1px solid var(--temple-soft-line);
  background: #041c27ee;
  box-shadow: none;
}
html[data-theme='glass-temple'] .platform-brand { min-width: 0; min-height: 44px; gap: 10px; }
html[data-theme='glass-temple'] .platform-brand img { width: 72px; height: auto; object-fit: contain; }
html[data-theme='glass-temple'] .platform-brand span { font-size: .875rem; letter-spacing: .12em; color: var(--temple-gold); }
html[data-theme='glass-temple'] .platform-header nav { gap: 4px; min-width: 0; }
html[data-theme='glass-temple'] .platform-header nav button {
  min-height: 44px;
  padding: 10px 12px;
  color: #acc6d3;
  border-bottom-color: transparent;
  font-size: .775rem;
  line-height: 1.5;
}
html[data-theme='glass-temple'] .platform-header nav button.selected { color: var(--temple-gold); border-bottom-color: #e7c26c; background: #dfb96d08; }
html[data-theme='glass-temple'] :is(.portal-language, .temple-language, .temple-language-select) {
  min-height: 44px;
  max-width: 170px;
  border: 1px solid #78d5df72;
  border-radius: 24px;
  color: #f8e0a3;
  background: #063242;
  padding: 8px 14px;
  font-size: .8rem;
  line-height: 1.4;
}
html[data-theme='glass-temple'] :is(.temple-language-select, .temple-language select, select[data-amun-language], select[data-language]) { min-height: 44px; max-width: 170px; color: #f8e0a3; background: #063242; border: 1px solid #78d5df72; border-radius: 22px; padding: 8px 12px; font-size: .8rem; }
html[data-theme='glass-temple'] select option { background: #062333; color: #e6f5f5; }
html[data-theme='glass-temple'] .temple-language-dialog {
  width: min(430px, calc(100% - 36px));
  max-height: calc(100dvh - 48px);
  padding: 24px;
  overflow-y: auto;
  color: #e6f4f5;
  background: linear-gradient(140deg, #143f4e, #062431);
  border: 1px solid #86d3df9c;
  border-radius: 22px;
  box-shadow: 0 22px 90px #001119b5;
}
html[data-theme='glass-temple'] .temple-language-dialog::backdrop { background: #01141bcc; backdrop-filter: blur(5px); }
html[data-theme='glass-temple'] .temple-language-dialog:not([open]) { display: none; }
html[data-theme='glass-temple'] .temple-language-dialog[open] { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); margin: 0; z-index: 1000; }
html[data-theme='glass-temple'] .temple-language-dialog > :is(h1, h2) { font-size: 1.25rem; margin: 0 0 18px; color: #f7d99f; }
html[data-theme='glass-temple'] .temple-language-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 15px 0; }
html[data-theme='glass-temple'] .temple-language-list button { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px; background: #0a2d3c; border: 1px solid #6eabb962; border-radius: 13px; color: #d6eaf0; line-height: 1.6; font-size: .9rem; }
html[data-theme='glass-temple'] .temple-language-list button[aria-pressed='true'] { color: #ffedbd; border-color: #dfc478; background: #344d4b; }
html[data-theme='glass-temple'] .temple-language-close { position: static; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 14px; padding: 10px 14px; border: 1px solid #7ab9c568; border-radius: 12px; background: #123b46; color: #d9eff2; font-size: .85rem; line-height: 1.6; }
html[data-theme='glass-temple'] .world { grid-template-columns: 230px minmax(0, 730px); gap: 34px; max-width: 1060px; padding-inline: 20px; margin: 26px auto 34px; }
html[data-theme='glass-temple'] .desktop-brand { top: 30px; padding-top: 10px; }
html[data-theme='glass-temple'] .desktop-brand > .emblem { width: 205px; }
html[data-theme='glass-temple'] .desktop-brand > p { color: #a3c3cf; margin: 16px 0 28px; }
html[data-theme='glass-temple'] .desktop-brand nav { gap: 7px; }
html[data-theme='glass-temple'] .desktop-brand nav button { min-height: 50px; padding: 13px 17px; border-radius: 13px; color: #a9c6d1; font-size: .85rem; gap: 13px; }
html[data-theme='glass-temple'] .desktop-brand nav button.active { color: #fae0a3; border-color: #68c5cf52; background: linear-gradient(100deg, #22708545, #17475730); }
html[data-theme='glass-temple'] .desktop-status { border-color: var(--temple-soft-line); color: #e2c58a; font-size: .8rem; margin-top: 28px; }
html[data-theme='glass-temple'] .desktop-status small { color: var(--temple-muted); }
html[data-theme='glass-temple'] .app-shell {
  background: radial-gradient(ellipse at 90% 0, #15536736, transparent 38%), #031822;
  border: 1px solid #67cddf4d;
  border-radius: 25px;
  box-shadow: 0 18px 75px #0005;
  overflow: clip;
  min-height: 780px;
}
html[data-theme='glass-temple'] .app-header { padding: 12px 22px 4px; justify-content: center; min-height: 52px; }
html[data-theme='glass-temple'] .app-header .brand-button { width: 230px; max-width: 100%; min-height: 44px; padding: 0; }
html[data-theme='glass-temple'] .app-header .emblem { flex-direction: row; justify-content: center; align-items: center; gap: 11px; margin: 0; }
html[data-theme='glass-temple'] .app-header .emblem img { width: 65px; height: auto; max-height: 32px; margin: 0; }
html[data-theme='glass-temple'] .app-header .emblem span { font-size: .73rem; letter-spacing: .1em; }
html[data-theme='glass-temple'] .mode-strip { padding: 4px 22px 7px; color: #a7c9d2; font-size: .625rem; letter-spacing: .045em; }
html[data-theme='glass-temple'] .mode-strip span:first-child { border-color: #76ced349; border-radius: 5px; padding: 3px 7px; }
html[data-theme='glass-temple'] .live-sync { padding: 8px 22px 13px; color: #a7c9d2; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .7rem; }
html[data-theme='glass-temple'] .live-sync > span { flex: 1 1 13rem; min-width: 0; overflow-wrap: normal; }
html[data-theme='glass-temple'] .live-sync > button { flex: 0 0 auto; min-height: 44px; background: #13424d65; border: 1px solid #71cbd447; color: #d3f0f4; border-radius: 11px; padding: 8px 14px; }
html[data-theme='glass-temple'] .app-footer { color: #94b8c4; font-size: .7rem; line-height: 1.8; padding: 24px 22px 128px; }

/* Home uses live account data and preserves the existing actions. */
html[data-theme='glass-temple'] .temple-home { padding: 0 22px; min-width: 0; }
html[data-theme='glass-temple'] .temple-home [hidden] { display: none !important; }
html[data-theme='glass-temple'] .temple-home-body { min-width: 0; }
html[data-theme='glass-temple'] .temple-hero { position: relative; isolation: isolate; min-height: 272px; display: flex; align-items: flex-end; margin: 0 -22px 20px; padding: 126px 28px 26px; overflow: hidden; }
html[data-theme='glass-temple'] .temple-hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
html[data-theme='glass-temple'] .temple-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #03213005 0%, #03182200 37%, #03182282 67%, #031822 100%); }
html[data-theme='glass-temple'] .temple-hero-copy { width: 100%; text-align: center; position: relative; }
html[data-theme='glass-temple'] .temple-eyebrow { display: block; color: #c3eced; font-size: .64rem; letter-spacing: .16em; line-height: 1.6; margin-bottom: 6px; }
html[data-theme='glass-temple'] .temple-hero h1 { color: #ffe6ac; font: 500 clamp(1.5rem, 3.2vw, 2.05rem)/1.35 Cinzel, 'IBM Plex Sans Arabic', serif; text-shadow: 0 2px 12px #001014; }
html[data-theme='glass-temple'] .temple-hero p { font-size: .8rem; color: #c7dfe3; max-width: 34rem; margin: 9px auto 0; line-height: 1.7; }
html[data-theme='glass-temple'] :is(.temple-balance, .temple-session, .builders-home-card, .hub-card, .builders-scene) { border: 1px solid #85dce79c; background: var(--temple-glass); box-shadow: inset 0 1px 0 #e0ffff12, 0 9px 28px #0002; border-radius: 22px; }
html[data-theme='glass-temple'] .temple-balance { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 19px; min-height: 128px; padding: 21px 24px; margin-bottom: 17px; }
html[data-theme='glass-temple'] .temple-balance::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #042532 30%, #042532be 64%, #04253260), url('assets/glass-temple/temple-hero.png') right 70% / cover; z-index: -1; opacity: .65; }
html[data-theme='glass-temple'] .temple-balance-emblem { width: 74px; height: 74px; flex: 0 0 74px; display: grid; place-items: center; border: 1px solid #dfc273b8; border-radius: 50%; color: #ffdd8f; background: radial-gradient(circle, #17626d99, #082634); box-shadow: inset 0 0 0 5px #062936, inset 0 0 0 6px #e9c77a5c; }
html[data-theme='glass-temple'] .temple-balance-emblem svg { width: 32px; height: 32px; }
html[data-theme='glass-temple'] .temple-balance-emblem img { width: 100%; height: 100%; object-fit: contain; }
html[data-theme='glass-temple'] .temple-balance-copy { min-width: 0; }
html[data-theme='glass-temple'] .temple-balance-copy > h2 { color: #b0d9e5; font-size: .7rem; font-weight: 600; letter-spacing: .12em; line-height: 1.6; margin: 0; }
html[data-theme='glass-temple'] .temple-balance-copy > span { color: #b0d9e5; font-size: .7rem; letter-spacing: .12em; line-height: 1.6; }
html[data-theme='glass-temple'] .temple-balance-copy strong { display: block; color: #f1fbfc; font-size: clamp(2rem, 5vw, 2.65rem); font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin: 5px 0; }
html[data-theme='glass-temple'] .temple-balance-copy small { color: #b4ccd2; font-size: .66rem; letter-spacing: .05em; }
html[data-theme='glass-temple'] .temple-session { position: relative; isolation: isolate; overflow: hidden; padding: 23px; margin-bottom: 20px; min-height: 330px; }
html[data-theme='glass-temple'] .temple-session-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 67% center; opacity: .7; }
html[data-theme='glass-temple'] .temple-session::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, #032632f5 0%, #032632ec 35%, #03263288 65%, #03263210 100%), linear-gradient(0deg, #04212ccf, transparent 50%); }
html[data-theme='glass-temple'] .temple-session-body { position: relative; min-width: 0; }
html[data-theme='glass-temple'] .temple-card-heading { display: flex; align-items: center; gap: 9px; color: #b8e6ef; font-size: .75rem; font-weight: 500; letter-spacing: .1em; line-height: 1.6; }
html[data-theme='glass-temple'] .temple-card-heading svg { color: #f8d78c; width: 21px; height: 21px; }
html[data-theme='glass-temple'] .temple-card-heading > h2 { color: #b8e6ef; font-size: .75rem; font-weight: 600; letter-spacing: inherit; line-height: 1.6; margin: 0; }
html[data-theme='glass-temple'] .temple-session-state { display: block; font-size: .64rem; color: #acccd7; letter-spacing: .075em; line-height: 1.6; margin-top: 10px; }
html[data-theme='glass-temple'] .temple-countdown { display: block; color: #c6f5fb; font: 700 clamp(2.05rem, 6.5vw, 3.6rem)/1.25 Manrope, Arial, sans-serif; letter-spacing: .015em; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; margin: 15px 0 16px; text-shadow: 0 2px 22px #073a48; }
html[data-theme='glass-temple'] .temple-power-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; color: #f7d888; line-height: 1.4; }
html[data-theme='glass-temple'] .temple-power-line > span { font-size: .8rem; letter-spacing: .1em; }
html[data-theme='glass-temple'] .temple-power-value { font-size: clamp(1.65rem, 5vw, 2.45rem); font-weight: 650; color: #ffe19a; font-variant-numeric: tabular-nums; }
html[data-theme='glass-temple'] .temple-power-line small { flex-basis: 100%; color: #b8dce5; font-size: .75rem; margin-top: -5px; letter-spacing: .025em; }
html[data-theme='glass-temple'] .temple-power-caption { color: #b8dce5; font-size: .75rem; margin-top: 1px; letter-spacing: .025em; line-height: 1.6; }
html[data-theme='glass-temple'] .temple-session-action { margin: 20px 0 16px; max-width: 450px; }
html[data-theme='glass-temple'] .temple-session-action :is(.gold-btn, .outline-btn) { width: 100%; margin: 0; }
html[data-theme='glass-temple'] :is(.temple-session-link, .temple-pending-cancel) { margin: 6px 0 0; padding: 9px 1px; font-size: .75rem; min-height: 44px; border-bottom-color: #7abfc933; color: #c6e3e7; justify-content: space-between; }
html[data-theme='glass-temple'] .temple-pending-cancel { justify-content: center; color: #e5d4a7; }
html[data-theme='glass-temple'] .temple-session-link svg { margin-inline-start: auto; width: 18px; height: 18px; }
html[data-theme='glass-temple'] .temple-session-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; border-top: 1px solid #7abfc943; padding-top: 15px; margin-top: 17px; max-width: 450px; }
html[data-theme='glass-temple'] .temple-stat { display: flex; align-items: center; gap: 10px; min-width: 0; color: #afcfdb; font-size: .75rem; line-height: 1.6; }
html[data-theme='glass-temple'] .temple-stat + .temple-stat { border-inline-start: 1px solid #7abfc943; padding-inline-start: 18px; }
html[data-theme='glass-temple'] .temple-stat svg { color: #9edce9; width: 23px; height: 23px; }
html[data-theme='glass-temple'] .temple-stat > div { min-width: 0; }
html[data-theme='glass-temple'] .temple-stat span { display: block; overflow-wrap: break-word; }
html[data-theme='glass-temple'] .temple-stat strong { display: block; font-size: 1rem; font-weight: 650; color: #e4f4f6; font-variant-numeric: tabular-nums; }
html[data-theme='glass-temple'] .temple-session-hint { color: #b9d4dc; font-size: .72rem; line-height: 1.75; margin-top: 15px; max-width: 450px; }
html[data-theme='glass-temple'] .temple-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 28px 0 12px; }
html[data-theme='glass-temple'] .temple-section-heading h2 { font-size: 1.05rem; }
html[data-theme='glass-temple'] .temple-section-heading > span { font-size: .7rem; color: #b3d1dc; }
html[data-theme='glass-temple'] .temple-community { margin-top: 20px; }
html[data-theme='glass-temple'] .temple-account-metrics { margin: 20px 0 0; }

/* Standard account and mining surfaces share the same material and hierarchy. */
html[data-theme='glass-temple'] :is(.home-body, .mining-body) { padding-inline: 22px; }
html[data-theme='glass-temple'] :is(.live-pad, .builders-page, .inner-page) { padding: 24px 22px; }
html[data-theme='glass-temple'] .live-pad h1 { font-size: 1.5rem; }
html[data-theme='glass-temple'] :is(.live-pad h2, .hub-card h2, .community-activity h2, .builders-page h2) { font-size: 1.125rem; line-height: 1.5; color: #f3d892; }
html[data-theme='glass-temple'] :is(.live-pad p, .hub-card p, .builders-page p) { color: #b9d1db; line-height: 1.8; }
html[data-theme='glass-temple'] .two-cards { gap: 12px; margin: 16px 0 22px; }
html[data-theme='glass-temple'] .metric-card { border: 1px solid #6cc6d246; border-radius: 16px; background: linear-gradient(135deg, #13404c9c, #08232fbc); padding: 16px; box-shadow: inset 0 1px 0 #b1f6ff07; }
html[data-theme='glass-temple'] .metric-card:hover { background: linear-gradient(135deg, #164653ab, #08232fbc); border-color: #88d7e27c; }
html[data-theme='glass-temple'] .metric-card > span:not(.chevron) { color: #b9d5dd; font-size: .75rem; overflow-wrap: break-word; }
html[data-theme='glass-temple'] .metric-card strong { font: 650 1.8rem/1.5 Manrope, Arial, sans-serif; color: #d1f2f5; font-variant-numeric: tabular-nums; }
html[data-theme='glass-temple'] :is(.hub-card, .ad-card, .journey-card, .builders-panel, .builders-next, .builders-mining-action, .account-card, .card, .live-details) {
  border: 1px solid var(--temple-line);
  border-radius: 19px;
  background: linear-gradient(130deg, #113644d9, #071d2bf5);
  color: #e4f0f1;
  box-shadow: inset 0 1px 0 #b1f6ff09;
}
html[data-theme='glass-temple'] :is(.hub-card, .ad-card, .journey-card) { padding: 21px; }
html[data-theme='glass-temple'] :is(.hub-kicker, .journey-kicker, .builders-kicker, .overline) { color: #e3c682; }
html[data-theme='glass-temple'] .journey-card h2 { color: #f4d990; }
html[data-theme='glass-temple'] .journey-card p { color: #bad2dc; }
html[data-theme='glass-temple'] .hub-heading svg { color: #9be1e8; }
html[data-theme='glass-temple'] .hub-power { border-color: #86d8dfad; background: radial-gradient(ellipse at 50% 0%, #25748652, transparent 65%), var(--temple-glass); }
html[data-theme='glass-temple'] .hub-power-value { color: #d1f6fb; font-size: clamp(2.3rem, 8vw, 3.25rem); margin: 12px 0; font-weight: 700; }
html[data-theme='glass-temple'] :is(.hub-breakdown, .hub-ref-stats) { border-color: var(--temple-soft-line); gap: 12px; }
html[data-theme='glass-temple'] :is(.hub-breakdown span, .hub-ref-stats span, .hub-reward span) { color: #bfd8e1; overflow-wrap: break-word; }
html[data-theme='glass-temple'] :is(.hub-breakdown strong, .hub-ref-stats strong, .hub-reward strong) { color: #f1d491; font-variant-numeric: tabular-nums; }
html[data-theme='glass-temple'] .hub-reward { flex-wrap: wrap; align-items: baseline; }
html[data-theme='glass-temple'] .hub-reward span { flex: 1 1 12rem; }
html[data-theme='glass-temple'] .hub-reward strong { flex: 0 0 auto; }
html[data-theme='glass-temple'] .hub-progress-label { flex-wrap: wrap; color: #c8e7ec; line-height: 1.6; }
html[data-theme='glass-temple'] :is(.hub-invite, .live-code, .copybox) { color: #e2ddbc; background: #041d2b; border-color: #6db7c15c; border-radius: 12px; }
html[data-theme='glass-temple'] .hub-actions { gap: 10px; }
html[data-theme='glass-temple'] .hub-actions > * { min-width: 0; flex: 1 1 130px; margin-top: 0; font-size: .8rem; }
html[data-theme='glass-temple'] .hub-main-action { margin-bottom: 18px; }
html[data-theme='glass-temple'] :is(.hub-small, .hub-card .hub-small, .live-hint) { color: #a6c8d4; font-size: .75rem; opacity: 1; }
html[data-theme='glass-temple'] :is(.hub-pending, .builders-next) { border-color: #d9c27f91; background: linear-gradient(135deg, #3943336b, #0c2936); }
html[data-theme='glass-temple'] :is(.live-note, .notice, .ads-status, .demo-notice, .paper-note) { background: #11303db8; border: 1px solid #5badbc57; border-radius: 15px; color: #c6e2e5; }
html[data-theme='glass-temple'] .live-note { padding: 16px; gap: 11px; }
html[data-theme='glass-temple'] .live-note svg { color: #91d5df; }
html[data-theme='glass-temple'] .live-note p { color: #bfd8df; font-size: .8rem; line-height: 1.8; }
html[data-theme='glass-temple'] .live-notice { background: #163d48; color: #f8e3b0; border: 1px solid #bbab7585; border-radius: 14px; font-size: .85rem; padding: 15px; margin: 12px 22px; }
html[data-theme='glass-temple'] .live-details { padding: 20px; }
html[data-theme='glass-temple'] .live-details dt { color: #aacbd5; font-size: .75rem; margin: 14px 0 5px; }
html[data-theme='glass-temple'] .live-details dd { color: #e7eded; font-size: .9rem; }
html[data-theme='glass-temple'] .live-field { color: #d8e9e9; }
html[data-theme='glass-temple'] .live-field input { border-color: #68bcc65c; background: #092934; color: #edf8f8; border-radius: 12px; }
html[data-theme='glass-temple'] .mining-hub .screen-title { padding: 22px 22px 4px; justify-content: center; }
html[data-theme='glass-temple'] .mining-hub .screen-title h1 { font-size: 1.5rem; color: #f4d991; }
html[data-theme='glass-temple'] .mining-hub .dial-scene { width: min(100%, 360px); margin: 6px auto; }
html[data-theme='glass-temple'] .dial-scene::after { background: linear-gradient(0deg, #031822 0%, #03182200 25%, #03182200 75%, #031822 100%); }
html[data-theme='glass-temple'] .dial-scene > img { content: url('assets/glass-temple/solar-disc.png'); object-fit: cover; object-position: 65% 45%; }
html[data-theme='glass-temple'] .dial-content { background: radial-gradient(circle, #042b3bf0, #042b3bd9 58%, transparent 76%); }
html[data-theme='glass-temple'] .dial-content > strong { font: 700 clamp(1.65rem, 7vw, 2.6rem)/1.5 Manrope, Arial, sans-serif; color: #caf4fa; letter-spacing: .015em; font-variant-numeric: tabular-nums; }
html[data-theme='glass-temple'] .dial-content > span { color: #f1ddb2; font-size: .74rem; line-height: 1.5; }
html[data-theme='glass-temple'] .dial-content > small { color: #b3d4dd; font-size: .625rem; line-height: 1.6; }
html[data-theme='glass-temple'] :is(.community-card, .balance-card, .reward-card) { border: 1px solid var(--temple-line); background: linear-gradient(135deg, #153d499e, #051e29ec); border-radius: 19px; box-shadow: inset 0 1px 0 #b1f6ff09; }
html[data-theme='glass-temple'] .community-card { padding: 22px; color: #dbebed; }
html[data-theme='glass-temple'] .community-card > span { color: #b2d7e1; font-size: .7rem; letter-spacing: .07em; }
html[data-theme='glass-temple'] .community-card > strong { color: #c6f3f7; font-size: 2rem; font-weight: 650; }
html[data-theme='glass-temple'] .community-card > p { color: #aecdd6; }
html[data-theme='glass-temple'] .community-card > label { color: #e0d2a9; font-size: .8rem; }
html[data-theme='glass-temple'] .community-activity { margin-top: 23px; }
html[data-theme='glass-temple'] .community-activity > p { color: #aecbd6; font-size: .75rem; }
html[data-theme='glass-temple'] :is(.hub-card progress, .community-card > progress, .ad-card progress) { height: 8px; accent-color: #e7c16d; border: 0; border-radius: 8px; background: #072733; overflow: hidden; }
html[data-theme='glass-temple'] :is(.hub-card progress, .community-card > progress, .ad-card progress)::-webkit-progress-bar { background: #072733; border: 1px solid #568b9544; border-radius: 8px; }
html[data-theme='glass-temple'] :is(.hub-card progress, .community-card > progress, .ad-card progress)::-webkit-progress-value { background: linear-gradient(90deg, #be8d40, #f5cf78); border-radius: 8px; }
html[data-theme='glass-temple'] :is(.hub-card progress, .community-card > progress, .ad-card progress)::-moz-progress-bar { background: linear-gradient(90deg, #be8d40, #f5cf78); border-radius: 8px; }
html[data-theme='glass-temple'] .referral-roster { border-color: var(--temple-soft-line); }
html[data-theme='glass-temple'] .referral-roster-heading { flex-wrap: wrap; align-items: start; }
html[data-theme='glass-temple'] .referral-roster-heading h3 { flex: 1 1 11rem; }
html[data-theme='glass-temple'] .referral-roster-heading button { width: auto; flex: 0 0 auto; }
html[data-theme='glass-temple'] .referral-person { border-color: var(--temple-soft-line); flex-wrap: wrap; gap: 10px; padding: 15px 0; }
html[data-theme='glass-temple'] .referral-person-info { flex: 1 1 12rem; }
html[data-theme='glass-temple'] .referral-person-info > strong { color: #e1eef1; }
html[data-theme='glass-temple'] .referral-person-info > small { color: #aecad5; font-size: .72rem; }
html[data-theme='glass-temple'] .referral-person > button { margin-top: 0; max-width: 100%; }
html[data-theme='glass-temple'] .referral-state { color: #b6d1db; }
html[data-theme='glass-temple'] .referral-state.ongoing { color: #9be3c9; }
html[data-theme='glass-temple'] .referral-state.claimable { color: #ffe09d; }

/* Builders: artwork stays tied to the saved gate stage, never decorative completion. */
html[data-theme='glass-temple'] .builders-home-card { gap: 19px; padding: 21px; min-height: 190px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); margin-bottom: 20px; }
html[data-theme='glass-temple'] .builders-home-card h2 { color: #f6d78e; font-size: 1rem; line-height: 1.5; }
html[data-theme='glass-temple'] .builders-home-card p { color: #b7d0da; font-size: .8rem; line-height: 1.7; }
html[data-theme='glass-temple'] .builders-home-card .outline-btn { background: linear-gradient(110deg, #dca449, #ffda80); color: #173035; border-color: #ffe4a4; font-weight: 750; border-radius: 12px; font-size: .8rem; }
html[data-theme='glass-temple'] .builders-card-stage { color: #c5f3f8; font-size: 1.1rem; font-weight: 650; }
html[data-theme='glass-temple'] .builders-home-art { border-radius: 13px; }
html[data-theme='glass-temple'] .builders-home-art > .builders-gate-art { width: 130%; margin-inline-start: -15%; }
html[data-theme='glass-temple'] .builders-intro { margin-bottom: 20px; }
html[data-theme='glass-temple'] .builders-page h1 { font-size: 1.65rem; color: #f5dea4; }
html[data-theme='glass-temple'] .builders-page h3 { color: #eaf3ec; font-size: .96rem; }
html[data-theme='glass-temple'] .builders-scene { padding: 20px 18px 22px; }
html[data-theme='glass-temple'] .builders-scene-status { flex-wrap: wrap; color: #bad9e3; font-size: .68rem; }
html[data-theme='glass-temple'] .builders-scene-status > strong { color: #f5d88f; }
html[data-theme='glass-temple'] .builders-scene > .builders-gate-art { border-radius: 15px; margin: 15px auto 12px; }
html[data-theme='glass-temple'] .builders-scene p { color: #bfd8dd; }
html[data-theme='glass-temple'] .builders-stages { gap: 9px; margin-block: 22px 15px; }
html[data-theme='glass-temple'] .builders-stages li { gap: 10px; color: #aed0dc; }
html[data-theme='glass-temple'] .builders-stages li > span { min-width: 34px; min-height: 34px; border-color: #69bac45f; background: #093241; color: #b2dfe8; }
html[data-theme='glass-temple'] .builders-stages li.is-done > span { border-color: #ffdf91; color: #24322e; background: linear-gradient(135deg, #ffe39c, #d3a44b); }
html[data-theme='glass-temple'] .builders-stages li > strong { font-size: .75rem; font-weight: 500; overflow-wrap: break-word; }
html[data-theme='glass-temple'] .builders-stages li.is-done > strong { color: #f3dba2; }
html[data-theme='glass-temple'] .builders-total { color: #b9d5df; }
html[data-theme='glass-temple'] :is(.builders-panel, .builders-next, .builders-mining-action) { padding: 20px; }
html[data-theme='glass-temple'] .builders-mining-action > div { color: #f1d992; }
html[data-theme='glass-temple'] .builders-page .quiet-link { color: #f0d49b; background: transparent; font-size: .78rem; min-height: 44px; padding: 8px 12px; }
html[data-theme='glass-temple'] .builders-last-update { flex-wrap: wrap; align-items: flex-start; gap: 9px; font-size: .72rem; line-height: 1.7; margin-block: 14px; color: #aacbd5; }
html[data-theme='glass-temple'] .builders-last-update > span { flex: 1 1 12rem; min-width: 0; overflow-wrap: normal; word-break: normal; }
html[data-theme='glass-temple'] .builders-page :is(.builders-last-update, .builders-section-head) > .quiet-link { width: auto; max-width: 100%; flex: 0 0 auto; justify-content: center; }
html[data-theme='glass-temple'] .builders-page .builders-section-head { flex-wrap: wrap; align-items: flex-start; gap: 9px; }
html[data-theme='glass-temple'] .builders-page .builders-section-head > h2 { flex: 1 1 10rem; min-width: 0; overflow-wrap: normal; word-break: normal; }
html[data-theme='glass-temple'] .builders-lesson { background: #082a37a6; border-color: #66a5b66b; border-radius: 14px; padding: 17px; }
html[data-theme='glass-temple'] .builders-lesson.is-complete { border-color: #81beab71; background: #123c367d; }
html[data-theme='glass-temple'] .builders-lesson-top { gap: 12px; }
html[data-theme='glass-temple'] .builders-lesson-top > div > span { color: #accbd5; font-size: .72rem; margin-top: 7px; }
html[data-theme='glass-temple'] .builders-number { background: #104051; color: #e9d19e; border-color: #8cc6d151; width: 33px; height: 33px; }
html[data-theme='glass-temple'] .is-complete .builders-number { background: #a9e5cd; color: #1a4138; border-color: #a9e5cd; }
html[data-theme='glass-temple'] .builders-lesson legend { color: #e9e8ce; font-size: .85rem; }
html[data-theme='glass-temple'] .builders-answer { border-color: #74b9c268; background: #041f2c; color: #d8edf1; border-radius: 12px; padding: 12px; font-size: .84rem; }
html[data-theme='glass-temple'] .builders-answer:has(input:checked) { background: #235260; border-color: #b5e4e9; color: #f4f7e5; }
html[data-theme='glass-temple'] .builders-answer input { accent-color: #eed184; }
html[data-theme='glass-temple'] .builders-styles { gap: 12px; }
html[data-theme='glass-temple'] .builders-style { border-color: #5b9cac70; background: #052534; color: #cde5ed; padding: 8px; border-radius: 14px; }
html[data-theme='glass-temple'] .builders-style.selected { border-color: #f1d087; background: #214852; color: #fff0c7; }
html[data-theme='glass-temple'] .builders-style > .builders-gate-art { border-radius: 8px; }
html[data-theme='glass-temple'] .builders-style > span { font-size: .8rem; overflow-wrap: break-word; }
html[data-theme='glass-temple'] .builders-source-counts { gap: 12px; }
html[data-theme='glass-temple'] .builders-source-counts > div { background: #0b3341a3; border-color: #669dad62; border-radius: 12px; padding: 14px 10px; }
html[data-theme='glass-temple'] .builders-source-counts strong { color: #c5f2f8; font-weight: 650; }
html[data-theme='glass-temple'] .builders-source-counts span { color: #bad6e1; }
html[data-theme='glass-temple'] :is(.builders-sources li, .builders-history-row, .builders-preview) { border-color: var(--temple-soft-line); }
html[data-theme='glass-temple'] .builders-sources svg { color: #a0dfc8; }
html[data-theme='glass-temple'] :is(.builders-sources small, .builders-page .builders-fine, .builders-history-row > small, .builders-history-top) { color: #afd0db; }
html[data-theme='glass-temple'] .builders-history-top > strong { color: #f4d99c; font-size: .95rem; }
html[data-theme='glass-temple'] .builders-rewards { gap: 9px; background: #092f3bc2; padding: 14px; border-radius: 12px; }
html[data-theme='glass-temple'] .builders-rewards dt { color: #b9d4dc; font-size: .74rem; overflow-wrap: break-word; }
html[data-theme='glass-temple'] .builders-rewards dd { color: #efdbab; font-weight: 650; }
html[data-theme='glass-temple'] .builders-status { background: #234854; border-color: #b1ba8d7d; color: #f8e6bd; border-radius: 13px; font-size: .8rem; }
html[data-theme='glass-temple'] .builders-status > p { color: #e6e9da; }
html[data-theme='glass-temple'] .builders-preview-art > svg { border-color: #82c9d67a; border-radius: 14px; }
html[data-theme='glass-temple'] .builders-footer { color: #a5c6d1; line-height: 1.8; }

/* Optional NFT entitlement, shown only if its live feature is available. */
html[data-theme='glass-temple'] .builders-nft { background: radial-gradient(ellipse at 100% 0%, #236b753d, transparent 60%), linear-gradient(130deg, #113746, #082332); border-color: #9ab68d9c; }
html[data-theme='glass-temple'] .builders-nft-head { gap: 12px; }
html[data-theme='glass-temple'] .builders-nft-refresh { min-height: 44px; border-radius: 10px; color: #d5ecf0; background: #0b3240; border-color: #76bbca62; padding: 8px 12px; }
html[data-theme='glass-temple'] .builders-nft-badge { color: #f4dcaa; background: #243b3585; border-color: #bdac7370; border-radius: 11px; }
html[data-theme='glass-temple'] .builders-nft-saved .builders-nft-badge { color: #cff3e4; background: #16473e; border-color: #8accb69a; }
html[data-theme='glass-temple'] :is(.builders-nft .builders-nft-consent, .builders-nft .builders-nft-note) { color: #bdd7de; font-size: .78rem; }
html[data-theme='glass-temple'] .builders-nft-progress { color: #efe0b5; }
html[data-theme='glass-temple'] .builders-nft-details { border-color: #6faebd66; background: #052534; border-radius: 12px; }
html[data-theme='glass-temple'] .builders-nft-details > summary { color: #e9d79e; }
html[data-theme='glass-temple'] .builders-nft-details dt { color: #afd0d8; }
html[data-theme='glass-temple'] .builders-nft-details dd { color: #e2eeec; }
html[data-theme='glass-temple'] .builders-nft-warning { border-color: #b6ae7d8a; background: #29484b; }
html[data-theme='glass-temple'] .builders-nft-message { border-color: #82b5a786; background: #19443a; }

/* Public pages and sign-in use the same architecture and readable surfaces. */
html[data-theme='glass-temple'] .live-auth-art { height: 230px; }
html[data-theme='glass-temple'] .live-auth-art img { content: url('assets/glass-temple/temple-hero.png'); object-position: center; opacity: .9; }
html[data-theme='glass-temple'] .live-auth-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #031822, #03182200 85%); }
html[data-theme='glass-temple'] .live-auth-art span { z-index: 1; color: #ffdd97; inset-inline-start: 22px; bottom: 25px; }
html[data-theme='glass-temple'] .live-auth .live-pad { padding-top: 12px; }
html[data-theme='glass-temple'] .live-auth .live-pad h1 { font-size: 1.55rem; }
html[data-theme='glass-temple'] .portal-main { background: #031822; border-color: var(--temple-soft-line); }
html[data-theme='glass-temple'] .portal-hero { min-height: 610px; padding-block: 110px 80px; }
html[data-theme='glass-temple'] .portal-hero-art { content: url('assets/glass-temple/temple-hero.png'); object-position: 50% center; }
html[data-theme='glass-temple'] .portal-hero::after { background: linear-gradient(90deg, #032332ee, #032332b8 50%, #03233215), linear-gradient(0deg, #031822, transparent 50%); }
html[data-theme='glass-temple'] .portal-hero h1 { color: #ffe2a5; font-size: clamp(2rem, 4vw, 3.3rem); }
html[data-theme='glass-temple'] .portal-hero p { color: #cae0e6; }
html[data-theme='glass-temple'] .portal-status { color: #c1dbe4; flex-wrap: wrap; line-height: 1.7; }
html[data-theme='glass-temple'] .portal-heading :is(h1, h2) { color: #f3deaf; }
html[data-theme='glass-temple'] .portal-heading p { color: #aecdd7; }
html[data-theme='glass-temple'] :is(.feature-card, .status-grid article, .paper-callout, .paper-toc, .paper-end, .governance-empty, .reward-explainer, .portal-facts) { border-color: var(--temple-line); background: linear-gradient(130deg, #103846c2, #072332); border-radius: 18px; }
html[data-theme='glass-temple'] .feature-icon { color: #d6f3f6; background: #17536379; border-color: #6cc3d269; border-radius: 12px; }
html[data-theme='glass-temple'] :is(.feature-card h3, .status-grid h3, .journey h3) { color: #efdeaf; }
html[data-theme='glass-temple'] :is(.feature-card p, .status-grid p, .journey p, .faq-list details p) { color: #b3cfd8; }
html[data-theme='glass-temple'] .status-pill { border-color: #b8ac7380; background: #58492c38; color: #ecd6a0; border-radius: 10px; line-height: 1.7; }
html[data-theme='glass-temple'] .status-pill.available { color: #b3e7d6; background: #254b4077; border-color: #83bca084; }
html[data-theme='glass-temple'] .journey li { border-color: var(--temple-soft-line); }
html[data-theme='glass-temple'] .journey li > span { color: #b8e4e8; }
html[data-theme='glass-temple'] .faq-list { border-color: var(--temple-soft-line); }
html[data-theme='glass-temple'] .faq-list details { border-color: var(--temple-soft-line); }
html[data-theme='glass-temple'] .faq-list summary { color: #e3ebdf; }
html[data-theme='glass-temple'] .faq-list summary::after { color: #dfc987; }
html[data-theme='glass-temple'] .paper-callout h2 { color: #f3d9a0; }
html[data-theme='glass-temple'] .portal-footer { background: #031922; border-color: var(--temple-soft-line); }
html[data-theme='glass-temple'] .portal-footer > div:last-child { min-width: 0; }
html[data-theme='glass-temple'] .portal-footer button { min-height: 44px; }
html[data-theme='glass-temple'] .portal-footer span { color: #a8cbd7; }
html[data-theme='glass-temple'] .governance-hero { background: radial-gradient(ellipse at 85% 20%, #1a5a6959, transparent 70%); border-color: var(--temple-soft-line); }
html[data-theme='glass-temple'] .gov-seal { background: #0b3343; border-color: #88c5ce63; box-shadow: 0 0 0 10px #0b3b482b; }
html[data-theme='glass-temple'] .gov-seal > svg { color: #e7d39a; }
html[data-theme='glass-temple'] .gov-seal > span { color: #b3d7dc; }
html[data-theme='glass-temple'] .governance-empty h2 { color: #e6ddb7; }
html[data-theme='glass-temple'] .governance-update { border-color: var(--temple-soft-line); flex-wrap: wrap; }
html[data-theme='glass-temple'] .governance-update strong { color: #dfd6b1; }
html[data-theme='glass-temple'] .paper-cover { border-color: var(--temple-soft-line); background: radial-gradient(ellipse at 90% 0%, #1856656e, transparent 70%); }
html[data-theme='glass-temple'] .paper-cover h1 { color: #f9e1aa; }
html[data-theme='glass-temple'] .paper-meta { color: #b9d3d4; line-height: 1.8; }
html[data-theme='glass-temple'] .paper-meta > span { border-color: var(--temple-soft-line); }
html[data-theme='glass-temple'] .paper-toc { border-color: var(--temple-soft-line); }
html[data-theme='glass-temple'] .paper-toc h2 { color: #e2d09c; }
html[data-theme='glass-temple'] .paper-toc a { color: #bbd9e1; }
html[data-theme='glass-temple'] .paper-toc a > span { color: #b6aa83; }
html[data-theme='glass-temple'] .paper-toc a:hover { color: #ffe4aa; }
html[data-theme='glass-temple'] .paper-article > section { border-color: var(--temple-soft-line); }
html[data-theme='glass-temple'] .paper-article h2 { color: #f3deab; }
html[data-theme='glass-temple'] .paper-article p { color: #bdd8e2; }
html[data-theme='glass-temple'] .overlay { background: #00121ddc; backdrop-filter: blur(8px); }
html[data-theme='glass-temple'] .modal { background: linear-gradient(145deg, #154150, #082737); border-color: #8cd8e296; border-radius: 20px; box-shadow: 0 22px 65px #0007; }
html[data-theme='glass-temple'] .toast { background: #164d43; border-color: #8cd6be; color: #e1f7ed; border-radius: 12px; font-size: .85rem; bottom: 110px; }

/* Floating navigation is safe-area aware and permits translated labels to wrap. */
html[data-theme='glass-temple'] .bottom-nav { width: 728px; max-width: calc(100% - 2px); bottom: 12px; background: linear-gradient(180deg, #073542f7, #031b28f7); border: 1px solid #55c4d56b; border-radius: 20px; padding: 12px 9px max(11px, env(safe-area-inset-bottom)); gap: 4px; backdrop-filter: blur(12px); box-shadow: 0 -4px 30px #011018a3; z-index: 10; }
html[data-theme='glass-temple'] .bottom-nav::before { content: none; }
html[data-theme='glass-temple'] .bottom-nav button { position: relative; min-width: 0; min-height: 58px; padding: 4px 4px 10px; flex: 1; color: #9dc7d7; gap: 4px; font-size: .73rem; line-height: 1.4; border-radius: 10px; }
html[data-theme='glass-temple'] .bottom-nav button > span { overflow-wrap: break-word; max-width: 100%; }
html[data-theme='glass-temple'] .bottom-nav button svg { width: 24px; height: 24px; }
html[data-theme='glass-temple'] .bottom-nav button.active { color: #ffe397; background: #d6c68106; }
html[data-theme='glass-temple'] .bottom-nav button.active svg { filter: none; }
html[data-theme='glass-temple'] .bottom-nav button.active::after { content: ''; position: absolute; bottom: 0; inset-inline: 13%; height: 3px; background: #f3d687; border-radius: 4px; box-shadow: 0 0 8px #f3d6875c; }
html[data-theme='glass-temple'] .nav-jewel { width: 12px; height: 12px; top: -6px; left: calc(50% - 6px); background: #ecd18a; border: 1px solid #ffeeac; box-shadow: 0 0 0 5px #07303d; }

html[data-theme='glass-temple'][dir='rtl'] :is(.temple-eyebrow, .temple-card-heading, .temple-balance-copy > span, .temple-power-line > span, .builders-kicker, .hub-kicker) { letter-spacing: 0; }
html[data-theme='glass-temple'][dir='rtl'] :is(.temple-balance-copy > h2, .temple-session-state) { letter-spacing: 0; }
html[data-theme='glass-temple'][dir='rtl'] .temple-hero h1 { font-family: 'IBM Plex Sans Arabic', Arial, sans-serif; }
html[data-theme='glass-temple'][dir='rtl'] .temple-balance::before { background: linear-gradient(270deg, #042532 30%, #042532be 64%, #04253260), url('assets/glass-temple/temple-hero.png') left 70% / cover; }
html[data-theme='glass-temple'][dir='rtl'] .temple-session::after { background: linear-gradient(260deg, #032632f5 0%, #032632ec 35%, #03263288 65%, #03263210 100%), linear-gradient(0deg, #04212ccf, transparent 50%); }
html[data-theme='glass-temple'][dir='rtl'] .temple-session-art { object-position: 33% center; }
html[data-theme='glass-temple'][dir='rtl'] .temple-countdown { text-align: right; }
html[data-theme='glass-temple'][dir='rtl'] .portal-hero::after { background: linear-gradient(270deg, #032332ee, #032332b8 50%, #03233215), linear-gradient(0deg, #031822, transparent 50%); }
html[data-theme='glass-temple'][dir='rtl'] .portal-hero-copy { margin-inline-start: 0; }
html[data-theme='glass-temple']:is([lang='zh'], [lang='hi']) :is(.temple-eyebrow, .temple-card-heading, .temple-balance-copy > h2, .temple-balance-copy > span, .temple-power-line > span, .temple-session-state, .builders-kicker, .hub-kicker, .overline) { letter-spacing: 0; }
html[data-theme='glass-temple']:is([lang='zh'], [lang='hi']) :is(.temple-hero h1, .portal-hero h1, .paper-cover h1) { font-family: inherit; letter-spacing: 0; }

@media (min-width: 1001px) {
  html[data-theme='glass-temple'] .temple-session-body { max-width: 74%; }
  html[data-theme='glass-temple'] .temple-session-art { object-position: 75% center; }
  html[data-theme='glass-temple'] .temple-hero { min-height: 300px; }
}
@media (max-width: 1000px) {
  html[data-theme='glass-temple'] .world { grid-template-columns: minmax(0, 700px); margin: 20px auto; padding-inline: 16px; }
  html[data-theme='glass-temple'] .desktop-brand { display: none; }
  html[data-theme='glass-temple'] .bottom-nav { width: 698px; }
  html[data-theme='glass-temple'] .platform-header { gap: 13px; padding-inline: 20px; }
  html[data-theme='glass-temple'] .platform-brand span { font-size: .76rem; letter-spacing: .07em; }
  html[data-theme='glass-temple'] .platform-header nav button { font-size: .74rem; padding-inline: 9px; }
}
@media (max-width: 760px) {
  html[data-theme='glass-temple'] .platform-header { flex-wrap: wrap; gap: 7px 12px; padding: 10px 18px 0; }
  html[data-theme='glass-temple'] .platform-brand { flex: 1 1 160px; }
  html[data-theme='glass-temple'] .platform-brand img { width: 58px; }
  html[data-theme='glass-temple'] .platform-brand span { font-size: .74rem; }
  html[data-theme='glass-temple'] .platform-header nav { order: 3; flex: 1 1 100%; gap: 0; justify-content: space-between; }
  html[data-theme='glass-temple'] .platform-header nav button { flex: 1; min-width: 0; padding: 10px 5px; font-size: .7rem; min-height: 44px; }
  html[data-theme='glass-temple'] :is(.portal-language, .temple-language, .temple-language-select) { font-size: .74rem; padding: 8px 11px; max-width: 126px; }
  html[data-theme='glass-temple'] .portal-hero { min-height: 530px; padding: 240px 6% 40px; }
  html[data-theme='glass-temple'] .portal-hero-copy { max-width: 100%; }
  html[data-theme='glass-temple'] .portal-hero::after { background: linear-gradient(0deg, #031822 0%, #031822e0 28%, #03182215 100%); }
  html[data-theme='glass-temple'] .portal-hero-art { object-position: center top; }
  html[data-theme='glass-temple'] .portal-hero h1 { font-size: 2.05rem; line-height: 1.35; max-width: 100%; }
  html[data-theme='glass-temple'] .portal-hero p { font-size: .95rem; }
  html[data-theme='glass-temple'][dir='rtl'] .portal-hero::after { background: linear-gradient(0deg, #031822 0%, #031822e0 28%, #03182215 100%); }
  html[data-theme='glass-temple'] .hero-actions > * { flex: 1 1 150px; margin: 0; }
  html[data-theme='glass-temple'] .paper-toc nav { gap: 8px 15px; }
  html[data-theme='glass-temple'] .governance-hero .portal-heading h1 { font-size: 2rem; }
}
@media (max-width: 560px) {
  html[data-theme='glass-temple'] .world { display: block; margin: 0; padding: 0; }
  html[data-theme='glass-temple'] .app-shell { min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  html[data-theme='glass-temple'] .app-header { padding: 5px 18px 0; min-height: 44px; }
  html[data-theme='glass-temple'] .app-header .emblem img { width: 54px; max-height: 24px; }
  html[data-theme='glass-temple'] .app-header .emblem span { font-size: .66rem; }
  html[data-theme='glass-temple'] .mode-strip { padding: 3px 18px 7px; }
  html[data-theme='glass-temple'] .live-sync { padding: 4px 18px 12px; font-size: .68rem; }
  html[data-theme='glass-temple'] .live-sync > span { flex-basis: 11rem; }
  html[data-theme='glass-temple'] .live-sync > button { padding-inline: 12px; }
  html[data-theme='glass-temple'] .temple-home { padding-inline: 16px; }
  html[data-theme='glass-temple'] .temple-hero { min-height: 220px; margin: 0 -16px 14px; padding: 105px 22px 23px; }
  html[data-theme='glass-temple'] .temple-hero h1 { font-size: 1.65rem; }
  html[data-theme='glass-temple'] .temple-hero p { font-size: .76rem; }
  html[data-theme='glass-temple'] .temple-eyebrow { font-size: .6rem; }
  html[data-theme='glass-temple'] .temple-balance { min-height: 112px; padding: 17px; gap: 14px; border-radius: 18px; margin-bottom: 15px; }
  html[data-theme='glass-temple'] .temple-balance-emblem { flex-basis: 60px; width: 60px; height: 60px; }
  html[data-theme='glass-temple'] .temple-balance-emblem svg { width: 25px; height: 25px; }
  html[data-theme='glass-temple'] .temple-balance-copy > span { font-size: .65rem; letter-spacing: .07em; }
  html[data-theme='glass-temple'] .temple-balance-copy > h2 { font-size: .65rem; letter-spacing: .07em; }
  html[data-theme='glass-temple'] .temple-balance-copy strong { font-size: 2.05rem; }
  html[data-theme='glass-temple'] .temple-balance-copy small { font-size: .64rem; }
  html[data-theme='glass-temple'] .temple-session { min-height: 0; padding: 19px 17px; border-radius: 18px; }
  html[data-theme='glass-temple'] .temple-session-art { object-position: 67% center; opacity: .62; }
  html[data-theme='glass-temple'] .temple-session::after { background: linear-gradient(100deg, #032632f5, #032632dc 47%, #03263270), linear-gradient(0deg, #04212ce6, transparent 70%); }
  html[data-theme='glass-temple'] .temple-card-heading { font-size: .7rem; gap: 9px; letter-spacing: .07em; }
  html[data-theme='glass-temple'] .temple-card-heading > h2 { font-size: .7rem; }
  html[data-theme='glass-temple'] .temple-countdown { font-size: clamp(2rem, 8.9vw, 2.7rem); margin: 15px 0; }
  html[data-theme='glass-temple'] .temple-power-line { gap: 9px; }
  html[data-theme='glass-temple'] .temple-power-line > span { font-size: .72rem; }
  html[data-theme='glass-temple'] .temple-power-value { font-size: 1.9rem; }
  html[data-theme='glass-temple'] .temple-power-line small { font-size: .71rem; margin-top: -4px; }
  html[data-theme='glass-temple'] .temple-session-action { max-width: none; margin-top: 18px; }
  html[data-theme='glass-temple'] .temple-session-action :is(.gold-btn, .outline-btn) { padding-inline: 12px; font-size: .85rem; }
  html[data-theme='glass-temple'] .temple-session-stats { gap: 10px; max-width: none; padding-top: 13px; }
  html[data-theme='glass-temple'] .temple-stat { font-size: .71rem; gap: 8px; }
  html[data-theme='glass-temple'] .temple-stat + .temple-stat { padding-inline-start: 10px; }
  html[data-theme='glass-temple'] .temple-stat svg { width: 21px; height: 21px; }
  html[data-theme='glass-temple'] .temple-stat strong { font-size: .93rem; }
  html[data-theme='glass-temple'] .temple-session-hint { font-size: .71rem; }
  html[data-theme='glass-temple'] :is(.home-body, .mining-body, .live-pad, .builders-page, .inner-page) { padding-inline: 16px; }
  html[data-theme='glass-temple'] .mining-body { margin-top: -12px; }
  html[data-theme='glass-temple'] :is(.hub-card, .ad-card, .journey-card, .builders-panel, .builders-next, .builders-mining-action) { padding: 18px; border-radius: 17px; }
  html[data-theme='glass-temple'] .metric-card { padding: 15px 12px; border-radius: 14px; }
  html[data-theme='glass-temple'] .metric-card > span:not(.chevron) { font-size: .72rem; }
  html[data-theme='glass-temple'] .metric-card strong { font-size: 1.65rem; }
  html[data-theme='glass-temple'] .builders-home-card { padding: 17px; gap: 12px; border-radius: 18px; min-height: 180px; }
  html[data-theme='glass-temple'] .builders-home-card h2 { font-size: .9rem; }
  html[data-theme='glass-temple'] .builders-home-card p { font-size: .74rem; }
  html[data-theme='glass-temple'] .builders-home-card .outline-btn { font-size: .76rem; padding: 9px 12px; }
  html[data-theme='glass-temple'] .builders-page h1 { font-size: 1.5rem; }
  html[data-theme='glass-temple'] .builders-scene { padding: 17px 15px 20px; border-radius: 18px; }
  html[data-theme='glass-temple'] .builders-lesson { padding: 14px; }
  html[data-theme='glass-temple'] .builders-answer { font-size: .82rem; padding: 11px; }
  html[data-theme='glass-temple'] .community-card { padding: 18px; }
  html[data-theme='glass-temple'] .live-notice { margin-inline: 16px; }
  html[data-theme='glass-temple'] .bottom-nav { bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%; border-inline: 0; border-bottom: 0; border-radius: 17px 17px 0 0; padding: 9px 8px max(9px, env(safe-area-inset-bottom)); gap: 3px; }
  html[data-theme='glass-temple'] .bottom-nav button { font-size: .72rem; min-height: 58px; padding-inline: 3px; }
  html[data-theme='glass-temple'] .bottom-nav button svg { width: 24px; height: 24px; }
  html[data-theme='glass-temple'] .app-footer { padding: 23px 18px calc(112px + env(safe-area-inset-bottom)); }
  html[data-theme='glass-temple'] .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
  html[data-theme='glass-temple'] .live-auth-art { height: 205px; }
  html[data-theme='glass-temple'][dir='rtl'] .temple-session::after { background: linear-gradient(260deg, #032632f5, #032632dc 47%, #03263270), linear-gradient(0deg, #04212ce6, transparent 70%); }
}
@media (max-width: 370px) {
  html[data-theme='glass-temple'] .platform-header { padding-inline: 13px; }
  html[data-theme='glass-temple'] .platform-brand { gap: 7px; flex-basis: 145px; }
  html[data-theme='glass-temple'] .platform-brand img { width: 46px; }
  html[data-theme='glass-temple'] .platform-brand span { font-size: .67rem; letter-spacing: .045em; }
  html[data-theme='glass-temple'] :is(.portal-language, .temple-language, .temple-language-select) { max-width: 115px; font-size: .7rem; }
  html[data-theme='glass-temple'] .temple-home { padding-inline: 13px; }
  html[data-theme='glass-temple'] .temple-hero { margin-inline: -13px; min-height: 205px; }
  html[data-theme='glass-temple'] .temple-hero h1 { font-size: 1.5rem; }
  html[data-theme='glass-temple'] .temple-balance { padding: 15px; gap: 12px; }
  html[data-theme='glass-temple'] .temple-balance-copy > span { font-size: .63rem; letter-spacing: .04em; }
  html[data-theme='glass-temple'] .temple-balance-copy > h2 { font-size: .63rem; letter-spacing: .04em; }
  html[data-theme='glass-temple'] .temple-session { padding: 17px 14px; }
  html[data-theme='glass-temple'] .temple-countdown { font-size: 2rem; }
  html[data-theme='glass-temple'] .temple-card-heading { font-size: .65rem; letter-spacing: .035em; }
  html[data-theme='glass-temple'] .temple-card-heading > h2 { font-size: .65rem; }
  html[data-theme='glass-temple'] .temple-stat svg { width: 19px; height: 19px; }
  html[data-theme='glass-temple'] .temple-stat { gap: 6px; font-size: .68rem; }
  html[data-theme='glass-temple'] .two-cards { gap: 9px; }
  html[data-theme='glass-temple'] .metric-card { padding: 13px 10px; }
  html[data-theme='glass-temple'] .builders-home-card { grid-template-columns: 1fr; }
  html[data-theme='glass-temple'] .builders-home-art > .builders-gate-art { width: 100%; margin: 0; max-height: 150px; }
  html[data-theme='glass-temple'] .builders-home-card > div:last-child { text-align: center; }
  html[data-theme='glass-temple'] :is(.home-body, .mining-body, .live-pad, .builders-page, .inner-page) { padding-inline: 13px; }
  html[data-theme='glass-temple'] :is(.hub-card, .ad-card, .builders-panel, .builders-next, .builders-mining-action) { padding: 15px; }
  html[data-theme='glass-temple'] .hub-breakdown { gap: 8px; }
  html[data-theme='glass-temple'] .hub-breakdown span { font-size: .69rem; }
  html[data-theme='glass-temple'] .hub-breakdown strong { font-size: 1.125rem; }
  html[data-theme='glass-temple'] .builders-rewards { padding: 11px; gap: 7px; }
  html[data-theme='glass-temple'] .builders-rewards dt { font-size: .69rem; }
  html[data-theme='glass-temple'] .builders-stages li > strong { font-size: .69rem; }
  html[data-theme='glass-temple'] .bottom-nav button { font-size: .65rem; padding-inline: 2px; }
  html[data-theme='glass-temple'] .bottom-nav button svg { width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme='glass-temple'] *, html[data-theme='glass-temple'] *::before, html[data-theme='glass-temple'] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html[data-theme='glass-temple'][data-motion='reduced'] *,
html[data-theme='glass-temple'][data-motion='reduced'] *::before,
html[data-theme='glass-temple'][data-motion='reduced'] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* AMUN_GLASS_TEMPLE_LOGO_FIX_V1 — one clear header brand. */
html[data-theme='glass-temple'] .app-header,
html[data-theme='glass-temple'] .desktop-brand > .emblem {
  display: none;
}
html[data-theme='glass-temple'] .platform-brand > img {
  width: 144px;
  height: auto;
  flex: 0 0 auto;
}
html[data-theme='glass-temple'] .platform-brand > span {
  font-size: 1rem;
  letter-spacing: .07em;
  white-space: nowrap;
}
@media (max-width: 1000px) {
  html[data-theme='glass-temple'] .platform-header {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 8px;
    align-items: center;
  }
  html[data-theme='glass-temple'] .platform-brand {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }
  html[data-theme='glass-temple'] .platform-brand > img {
    width: 144px;
    max-width: 100%;
  }
  html[data-theme='glass-temple'] .platform-brand > span {
    font-size: .82rem;
    letter-spacing: .035em;
    max-width: 100%;
  }
  html[data-theme='glass-temple'] .platform-header > .portal-language {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: 52px;
    max-width: 52px;
    padding-inline: 6px;
  }
  html[data-theme='glass-temple'] .platform-header > nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: space-between;
  }
  html[data-theme='glass-temple'] .platform-header > nav > button {
    flex: 1;
    min-width: 0;
  }
}
