:root {
  --game-night: #171329;
  --game-night-soft: #26203f;
  --game-violet: #4b3b78;
  --game-violet-light: #7763a6;
  --game-gold: #d4ac57;
  --game-gold-bright: #f2d48b;
  --game-parchment: #fff8e7;
  --game-ink: #292338;
  --game-success: #39725a;
  --game-danger: #9b5159;
}

.antyk-game-page {
  min-width: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 12%, rgba(114, 91, 164, 0.15), transparent 30rem),
    linear-gradient(180deg, #1a152d 0, #251e3c 68vh, #f8f0da 68vh);
}

.game-site-header {
  border-bottom-color: rgba(232, 211, 158, 0.28);
  background: rgba(255, 249, 235, 0.96);
}

.game-main {
  min-height: calc(100vh - var(--header-height));
}

.game-kicker {
  margin: 0 0 10px;
  color: var(--game-gold-bright);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.game-landing {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  color: #fffdf5;
  background:
    radial-gradient(circle at 75% 18%, rgba(208, 177, 104, 0.13), transparent 22rem),
    radial-gradient(circle at 15% 60%, rgba(119, 99, 166, 0.2), transparent 26rem),
    linear-gradient(145deg, #171329 0%, #292142 60%, #1a162b 100%);
}

.game-landing::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 248, 231, 0.66) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(242, 212, 139, 0.55) 0 1px, transparent 1.4px);
  background-position: 0 0, 53px 39px;
  background-size: 97px 83px, 137px 113px;
  content: "";
  opacity: 0.28;
  pointer-events: none;
}

.game-landing::after {
  position: absolute;
  right: -12vw;
  bottom: -18rem;
  left: -12vw;
  height: 30rem;
  border-radius: 50% 50% 0 0;
  background: rgba(5, 4, 13, 0.32);
  content: "";
  filter: blur(1px);
}

.game-landing-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.game-landing-copy {
  max-width: 640px;
}

.game-landing h1 {
  margin: 0;
  color: #fffdf5;
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 6.5vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.game-landing h1 em {
  display: block;
  margin-top: 14px;
  color: var(--game-gold-bright);
  font-size: 0.72em;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.game-lead {
  max-width: 590px;
  margin: 27px 0 0;
  color: rgba(255, 253, 245, 0.82);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.72;
}

.game-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.game-facts span {
  padding: 8px 12px;
  border: 1px solid rgba(242, 212, 139, 0.23);
  border-radius: 999px;
  color: rgba(255, 253, 245, 0.74);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
}

.game-facts b {
  color: var(--game-gold-bright);
}

.game-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.game-button {
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 820;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.game-button:hover {
  transform: translateY(-2px);
}

.game-button:active {
  transform: translateY(0);
}

.game-button-primary {
  color: #211a39;
  background: linear-gradient(135deg, #f6dda3, #d4ac57);
  box-shadow: 0 12px 28px rgba(212, 172, 87, 0.24);
}

.game-button-primary:hover {
  color: #211a39;
  background: linear-gradient(135deg, #ffe8b3, #dfb962);
  box-shadow: 0 16px 34px rgba(212, 172, 87, 0.34);
}

.game-button-quiet {
  color: #fffdf5;
  border-color: rgba(255, 253, 245, 0.32);
  background: rgba(255, 255, 255, 0.055);
}

.game-button-quiet:hover {
  background: rgba(255, 255, 255, 0.1);
}

.game-continue {
  display: block;
  margin-top: 17px;
  padding: 0;
  border: 0;
  color: var(--game-gold-bright);
  background: transparent;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.game-local-note {
  margin: 16px 0 0;
  color: rgba(255, 253, 245, 0.54);
  font-size: 0.74rem;
}

.temple-illustration {
  position: relative;
  min-height: 590px;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.34));
}

.temple-illustration > p {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  z-index: 5;
  margin: 0;
  color: rgba(255, 253, 245, 0.5);
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.temple-moon {
  position: absolute;
  top: 22px;
  right: 12%;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: #f2d998;
  box-shadow: 0 0 65px rgba(242, 217, 152, 0.32);
  opacity: 0.9;
}

.temple-roof {
  position: absolute;
  z-index: 2;
  top: 97px;
  right: 5%;
  left: 5%;
  height: 118px;
  clip-path: polygon(50% 0, 100% 72%, 96% 86%, 4% 86%, 0 72%);
  background: linear-gradient(180deg, #e9d8ad, #b89455 70%, #775c31);
}

.temple-roof::before {
  position: absolute;
  inset: 18px 13% 25px;
  border: 2px solid rgba(85, 61, 26, 0.42);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
}

.temple-roof span::before,
.temple-roof span::after {
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(83, 58, 24, 0.45);
  border-radius: 50%;
  content: "";
}

.temple-roof span::before { left: 4%; }
.temple-roof span::after { right: 4%; }

.temple-columns {
  position: absolute;
  z-index: 1;
  top: 189px;
  right: 10%;
  bottom: 93px;
  left: 10%;
  display: flex;
  justify-content: space-between;
  padding: 0 3%;
  border-top: 18px solid #d8c08a;
  border-bottom: 19px solid #9c793c;
  background: linear-gradient(90deg, rgba(17, 13, 30, 0.9), rgba(45, 36, 66, 0.96), rgba(17, 13, 30, 0.9));
}

.temple-columns i {
  position: relative;
  display: block;
  width: 11%;
  background: repeating-linear-gradient(90deg, #e3d2a8 0 6px, #b9995a 7px 10px, #f0dfb8 11px 16px);
  clip-path: polygon(7% 0, 93% 0, 86% 95%, 100% 100%, 0 100%, 14% 95%);
}

.temple-columns i::before {
  position: absolute;
  top: 0;
  right: -13%;
  left: -13%;
  height: 22px;
  background: #d7bd84;
  content: "";
}

.temple-door {
  position: absolute;
  z-index: 3;
  top: 250px;
  right: 31%;
  bottom: 112px;
  left: 31%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
  padding: 28px 18px;
  border: 5px solid #846936;
  border-radius: 100px 100px 4px 4px;
  color: rgba(242, 212, 139, 0.6);
  background:
    radial-gradient(circle at 50% 18%, rgba(123, 95, 167, 0.38), transparent 40%),
    #171329;
  box-shadow: inset 0 0 36px #090711, 0 0 34px rgba(106, 81, 154, 0.28);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.temple-steps {
  position: absolute;
  z-index: 4;
  right: 1%;
  bottom: 54px;
  left: 1%;
  display: grid;
  gap: 8px;
}

.temple-steps i {
  display: block;
  height: 20px;
  margin-inline: auto;
  border-radius: 2px;
  background: linear-gradient(180deg, #d9c28e, #8f6f3d);
  box-shadow: 0 7px 10px rgba(0, 0, 0, 0.24);
}

.temple-steps i:nth-child(1) { width: 76%; }
.temple-steps i:nth-child(2) { width: 88%; }
.temple-steps i:nth-child(3) { width: 100%; }

.mission-screen {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--header-height));
  padding: 45px 20px 80px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(242, 212, 139, 0.14), transparent 24rem),
    linear-gradient(145deg, #171329, #2b2345);
}

.mission-card {
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(242, 212, 139, 0.34);
  border-radius: 30px;
  color: #fffdf5;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.mission-seal {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border: 1px solid rgba(242, 212, 139, 0.7);
  border-radius: 50%;
  color: var(--game-gold-bright);
  background: rgba(212, 172, 87, 0.08);
  font-family: var(--font-display);
  font-size: 2.1rem;
  place-items: center;
}

.mission-card h2 {
  margin: 0 auto 24px;
  color: #fffdf5;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
}

.narration-player {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid rgba(242, 212, 139, 0.26);
  border-radius: 18px;
  background: rgba(9, 7, 17, 0.32);
  text-align: left;
}

.narration-player-large {
  max-width: 560px;
  margin: 0 auto;
}

.narration-player > div {
  display: grid;
  flex: 1;
}

.narration-player strong {
  color: #fffdf5;
}

.narration-player div > span {
  color: rgba(255, 253, 245, 0.58);
  font-size: 0.78rem;
}

.narration-play {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #211a39;
  background: var(--game-gold-bright);
  place-items: center;
}

.narration-wave {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 28px;
}

.narration-wave i {
  width: 3px;
  height: 8px;
  border-radius: 4px;
  background: var(--game-gold-bright);
  opacity: 0.45;
}

.is-playing .narration-wave i {
  animation: game-wave 700ms ease-in-out infinite alternate;
}

.is-playing .narration-wave i:nth-child(2) { animation-delay: -480ms; }
.is-playing .narration-wave i:nth-child(3) { animation-delay: -250ms; }
.is-playing .narration-wave i:nth-child(4) { animation-delay: -600ms; }
.is-playing .narration-wave i:nth-child(5) { animation-delay: -120ms; }

@keyframes game-wave {
  to { height: 25px; opacity: 1; }
}

.mission-transcript {
  max-width: 560px;
  margin: 12px auto 0;
  color: rgba(255, 253, 245, 0.72);
  font-size: 0.84rem;
  text-align: left;
}

.mission-transcript summary {
  cursor: pointer;
  color: var(--game-gold-bright);
  text-align: center;
}

.mission-transcript p {
  padding: 13px 16px;
  border-left: 2px solid var(--game-gold);
  background: rgba(0, 0, 0, 0.15);
}

.mission-rules {
  display: grid;
  gap: 9px;
  margin: 26px auto;
  color: rgba(255, 253, 245, 0.72);
  font-size: 0.88rem;
  text-align: left;
}

.mission-rules span {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mission-rules b {
  color: var(--game-gold-bright);
  font-size: 0.72rem;
}

.game-app {
  min-height: calc(100vh - var(--header-height));
  padding-bottom: 80px;
  color: #fffdf5;
  background:
    radial-gradient(circle at 50% 8%, rgba(118, 91, 169, 0.2), transparent 26rem),
    linear-gradient(180deg, #171329, #27203e 60%, #171329);
}

.game-hud {
  position: sticky;
  z-index: 20;
  top: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(160px, 520px) auto;
  gap: clamp(10px, 3vw, 28px);
  align-items: center;
  padding: 11px max(16px, calc((100vw - 1100px) / 2));
  border-bottom: 1px solid rgba(242, 212, 139, 0.18);
  background: rgba(23, 19, 41, 0.92);
  backdrop-filter: blur(16px);
}

.hud-map-button,
.hud-audio-button,
.hud-reset-button {
  border: 1px solid rgba(242, 212, 139, 0.25);
  color: #fffdf5;
  background: rgba(255, 255, 255, 0.05);
}

.hud-map-button {
  min-height: 40px;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 750;
}

.hud-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 253, 245, 0.72);
  font-size: 0.73rem;
}

.hud-progress-track {
  height: 5px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hud-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--game-gold), var(--game-gold-bright));
  transition: width 450ms ease;
}

.hud-actions {
  display: flex;
  gap: 7px;
}

.hud-audio-button,
.hud-reset-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.hud-audio-button[aria-pressed="true"] {
  color: rgba(255, 253, 245, 0.45);
  text-decoration: line-through;
}

.letter-vault {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 17px 15px 2px;
}

.letter-vault span {
  display: grid;
  width: clamp(34px, 8vw, 47px);
  height: clamp(38px, 9vw, 52px);
  border: 1px solid rgba(242, 212, 139, 0.24);
  border-radius: 10px;
  color: rgba(255, 253, 245, 0.3);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-display);
  font-size: 1.35rem;
  place-items: center;
  transition: transform 300ms ease, color 300ms ease, background-color 300ms ease;
}

.letter-vault span.is-earned {
  color: #231c38;
  background: linear-gradient(145deg, #f2d48b, #cda34d);
  box-shadow: 0 0 22px rgba(242, 212, 139, 0.23);
  transform: translateY(-2px);
}

.temple-map,
.chamber {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.temple-map {
  padding-top: 35px;
}

.map-heading {
  max-width: 620px;
  margin: 0 auto 28px;
  text-align: center;
}

.map-heading h2,
.chamber-heading h2 {
  margin: 0;
  color: #fffdf5;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1;
}

.map-heading > p:last-child,
.chamber-heading > p:last-child {
  color: rgba(255, 253, 245, 0.66);
}

.map-path {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0;
}

.map-path::before {
  position: absolute;
  z-index: 0;
  top: 30px;
  bottom: 30px;
  left: 50%;
  width: 2px;
  background: linear-gradient(var(--game-gold), rgba(212, 172, 87, 0.1));
  content: "";
  transform: translateX(-50%);
}

.map-node {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  width: calc(50% + 28px);
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid rgba(242, 212, 139, 0.21);
  border-radius: 18px;
  color: #fffdf5;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  text-align: left;
}

.map-node:nth-child(even) { margin-left: calc(50% - 28px); }
.map-node:nth-child(odd) { margin-right: calc(50% - 28px); }

.map-node:not(:disabled):hover {
  border-color: rgba(242, 212, 139, 0.62);
  transform: translateY(-2px);
}

.map-node:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7);
  opacity: 0.48;
}

.map-node.is-current {
  border-color: var(--game-gold);
  box-shadow: 0 0 0 3px rgba(212, 172, 87, 0.1), 0 18px 36px rgba(0, 0, 0, 0.22);
}

.map-node.is-complete {
  border-color: rgba(93, 164, 127, 0.55);
  background: linear-gradient(135deg, rgba(63, 114, 93, 0.28), rgba(255, 255, 255, 0.035));
}

.map-node-icon {
  display: grid;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(242, 212, 139, 0.35);
  border-radius: 14px;
  color: var(--game-gold-bright);
  background: rgba(212, 172, 87, 0.08);
  font-family: var(--font-display);
  font-size: 1.45rem;
  place-items: center;
}

.map-node-copy {
  display: grid;
  min-width: 0;
}

.map-node-copy small {
  color: var(--game-gold-bright);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-node-copy strong {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.map-node-copy span {
  overflow: hidden;
  color: rgba(255, 253, 245, 0.58);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-node-state {
  color: rgba(255, 253, 245, 0.52);
  font-size: 1.15rem;
}

.chamber {
  padding-top: 32px;
}

.chamber-shell {
  overflow: hidden;
  border: 1px solid rgba(242, 212, 139, 0.25);
  border-radius: 30px;
  color: var(--game-ink);
  background:
    linear-gradient(rgba(255, 248, 231, 0.94), rgba(255, 248, 231, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(101, 82, 143, 0.08) 32px);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.28);
}

.chamber-heading {
  position: relative;
  padding: clamp(27px, 5vw, 50px) clamp(22px, 6vw, 66px) 30px;
  color: #fffdf5;
  background:
    radial-gradient(circle at 90% 20%, rgba(242, 212, 139, 0.14), transparent 16rem),
    linear-gradient(145deg, #2e2648, #171329);
}

.chamber-heading::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--game-gold), transparent);
  content: "";
  opacity: 0.7;
}

.chamber-heading .game-kicker { color: var(--game-gold-bright); }

.chamber-heading h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}

.chamber-heading > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 1rem;
}

.chamber-body {
  padding: clamp(24px, 5vw, 54px) clamp(18px, 6vw, 66px) clamp(34px, 6vw, 66px);
}

.task-instruction {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin: 0 0 24px;
  padding: 15px 17px;
  border: 1px solid rgba(75, 59, 120, 0.14);
  border-radius: 16px;
  color: var(--game-violet);
  background: rgba(75, 59, 120, 0.055);
}

.task-instruction b {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: var(--game-parchment);
  background: var(--game-violet);
  font-size: 0.75rem;
  place-items: center;
}

.task-instruction p { margin: 0; }

.game-feedback {
  min-height: 24px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--game-violet);
  font-weight: 650;
}

.game-feedback[data-state="wrong"] {
  padding: 12px 15px;
  border-radius: 13px;
  color: var(--game-danger);
  background: #f8e9e7;
}

.game-feedback[data-state="correct"] {
  padding: 12px 15px;
  border-radius: 13px;
  color: var(--game-success);
  background: #e9f2ec;
}

.task-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.task-check,
.task-reset {
  min-height: 48px;
  padding: 11px 19px;
  border-radius: 999px;
  font-weight: 800;
}

.task-check {
  border: 0;
  color: var(--game-parchment);
  background: var(--game-violet);
  box-shadow: 0 10px 22px rgba(75, 59, 120, 0.18);
}

.task-check:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.task-reset {
  border: 1px solid rgba(75, 59, 120, 0.35);
  color: var(--game-violet);
  background: transparent;
}

.match-game {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 12px;
}

.match-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.match-card {
  position: relative;
  min-height: 68px;
  padding: 13px 15px;
  border: 1px solid rgba(75, 59, 120, 0.22);
  border-radius: 15px;
  color: var(--game-ink);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 5px 12px rgba(75, 59, 120, 0.05);
  text-align: left;
}

.match-card strong {
  display: block;
  color: var(--game-violet);
  font-family: var(--font-display);
  font-size: 1.14rem;
}

.match-card span {
  font-size: 0.88rem;
  line-height: 1.45;
}

.match-card.is-selected {
  border-color: var(--game-violet);
  background: #eee8fa;
  box-shadow: 0 0 0 3px rgba(75, 59, 120, 0.08);
}

.match-card.is-matched {
  border-color: rgba(63, 114, 93, 0.42);
  color: var(--game-success);
  background: #e9f2ec;
  cursor: default;
}

.match-card.is-shake { animation: game-shake 280ms linear; }

@keyframes game-shake {
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.shelf-game {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.scroll-stack,
.motif-shelves {
  display: grid;
  gap: 11px;
  align-content: start;
}

.scroll-card,
.motif-shelf {
  min-height: 76px;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: left;
}

.scroll-card {
  border: 1px solid #c7a35c;
  color: #473518;
  background:
    linear-gradient(90deg, rgba(184, 149, 79, 0.09), transparent 25%, rgba(184, 149, 79, 0.09)),
    #fff0c8;
  box-shadow: inset 8px 0 0 rgba(184, 149, 79, 0.13);
}

.scroll-card strong { display: block; }
.scroll-card small { color: #705a33; }

.scroll-card.is-selected {
  outline: 3px solid var(--game-violet);
  outline-offset: 2px;
}

.scroll-card.is-sorted {
  opacity: 0.35;
  pointer-events: none;
}

.motif-shelf {
  display: grid;
  border: 1px solid rgba(75, 59, 120, 0.2);
  color: var(--game-violet);
  background: rgba(75, 59, 120, 0.045);
  place-items: center start;
}

.motif-shelf.is-filled {
  border-color: rgba(63, 114, 93, 0.42);
  color: var(--game-success);
  background: #e9f2ec;
}

.order-game {
  display: grid;
  gap: 10px;
}

.order-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 13px 15px;
  border: 1px solid rgba(75, 59, 120, 0.24);
  border-radius: 15px;
  color: var(--game-ink);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.order-card b {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--game-parchment);
  background: var(--game-violet);
  place-items: center;
}

.order-card.is-picked {
  border-color: var(--game-gold);
  background: #fff0c8;
}

.order-card.is-picked b { background: var(--game-gold); }

.trap-answer {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(152, 79, 85, 0.22);
  border-radius: 18px;
  background: #fff6f4;
}

.trap-fragment {
  position: relative;
  min-height: 62px;
  padding: 13px 48px 13px 15px;
  border: 1px solid rgba(75, 59, 120, 0.17);
  border-radius: 13px;
  color: var(--game-ink);
  background: white;
  text-align: left;
}

.trap-fragment::after {
  position: absolute;
  top: 50%;
  right: 15px;
  display: grid;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(75, 59, 120, 0.25);
  border-radius: 50%;
  content: "?";
  font-size: 0.75rem;
  place-items: center;
  transform: translateY(-50%);
}

.trap-fragment.is-selected {
  border-color: var(--game-danger);
  color: #713940;
  background: #f8e9e7;
}

.trap-fragment.is-selected::after {
  border-color: var(--game-danger);
  color: white;
  background: var(--game-danger);
  content: "×";
}

.boss-heading {
  background:
    radial-gradient(circle at 78% 32%, rgba(212, 172, 87, 0.18), transparent 19rem),
    linear-gradient(145deg, #35254c, #130f24);
}

.sphinx-mark {
  position: absolute;
  top: 24px;
  right: clamp(18px, 5vw, 60px);
  color: rgba(242, 212, 139, 0.12);
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 1;
}

.boss-intro {
  display: grid;
  gap: 22px;
}

.boss-intro-copy {
  padding: 18px 20px;
  border-left: 4px solid var(--game-gold);
  border-radius: 0 14px 14px 0;
  color: var(--game-violet);
  background: #fff0c8;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.boss-runes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.boss-rune {
  display: grid;
  min-height: 68px;
  padding: 8px;
  border: 1px solid rgba(75, 59, 120, 0.25);
  border-radius: 13px;
  color: var(--game-violet);
  background: rgba(75, 59, 120, 0.055);
  font-size: 0.67rem;
  font-weight: 800;
  place-items: center;
  text-align: center;
}

.boss-rune::before {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  content: "◇";
}

.boss-rune.is-active {
  border-color: var(--game-gold);
  background: #fff0c8;
  box-shadow: 0 0 0 3px rgba(212, 172, 87, 0.12);
}

.boss-rune.is-broken {
  border-color: rgba(63, 114, 93, 0.35);
  color: var(--game-success);
  background: #e9f2ec;
}

.boss-rune.is-broken::before { content: "✦"; }

.rune-question h3 {
  margin: 0 0 7px;
  color: var(--game-violet);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.rune-question > p { color: var(--ink-muted); }

.rune-choices {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.rune-choice {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 13px;
  align-items: center;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid rgba(75, 59, 120, 0.22);
  border-radius: 16px;
  color: var(--game-ink);
  background: rgba(255, 255, 255, 0.75);
  text-align: left;
}

.rune-choice span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--game-parchment);
  background: var(--game-violet);
  font-family: var(--font-display);
  font-weight: 800;
  place-items: center;
}

.rune-choice:hover {
  border-color: var(--game-violet);
  background: #f1ecfb;
}

.rune-choice.is-correct {
  border-color: var(--game-success);
  color: var(--game-success);
  background: #e9f2ec;
}

.rune-choice.is-wrong {
  border-color: var(--game-danger);
  background: #f8e9e7;
  animation: game-shake 280ms linear;
}

.boss-narration {
  margin-bottom: 20px;
  color: #fffdf5;
  background: var(--game-night-soft);
}

.code-challenge {
  text-align: center;
}

.code-challenge h3 {
  color: var(--game-violet);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.code-answer {
  display: flex;
  gap: 7px;
  justify-content: center;
  min-height: 58px;
  margin: 21px 0;
}

.code-answer span,
.code-letter {
  display: grid;
  width: clamp(38px, 10vw, 54px);
  height: clamp(45px, 12vw, 62px);
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  place-items: center;
}

.code-answer span {
  border: 1px dashed rgba(75, 59, 120, 0.34);
  color: var(--game-violet);
  background: rgba(75, 59, 120, 0.04);
}

.code-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.code-letter {
  border: 1px solid var(--game-gold);
  color: #493814;
  background: #fff0c8;
  box-shadow: 0 7px 14px rgba(184, 149, 79, 0.12);
}

.code-letter:disabled {
  cursor: default;
  opacity: 0.24;
}

.victory-panel {
  text-align: center;
}

.victory-symbol {
  display: grid;
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  border: 2px solid var(--game-gold);
  border-radius: 50%;
  color: var(--game-gold);
  background: #fff0c8;
  box-shadow: 0 0 0 10px rgba(212, 172, 87, 0.08), 0 15px 35px rgba(75, 59, 120, 0.13);
  font-family: var(--font-display);
  font-size: 4rem;
  place-items: center;
}

.victory-panel h3 {
  margin: 0;
  color: var(--game-violet);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
}

.victory-panel > p {
  max-width: 620px;
  margin-inline: auto;
  color: var(--ink-muted);
}

.victory-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 25px 0;
}

.victory-skills span {
  padding: 13px;
  border: 1px solid rgba(63, 114, 93, 0.22);
  border-radius: 13px;
  color: var(--game-success);
  background: #e9f2ec;
  font-size: 0.82rem;
  font-weight: 750;
}

.victory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 27px;
}

.victory-actions a,
.victory-actions button {
  text-decoration: none;
}

.victory-actions .game-button-quiet {
  color: var(--game-violet);
  border-color: rgba(75, 59, 120, 0.3);
}

.reward-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 20px;
  background: rgba(12, 9, 22, 0.82);
  backdrop-filter: blur(10px);
  place-items: center;
}

.reward-card {
  position: relative;
  width: min(460px, 100%);
  overflow: hidden;
  padding: 37px 28px;
  border: 1px solid rgba(242, 212, 139, 0.42);
  border-radius: 28px;
  color: #fffdf5;
  background: linear-gradient(145deg, #30274c, #171329);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.52);
  text-align: center;
  animation: reward-in 380ms cubic-bezier(0.22, 0.7, 0.25, 1);
}

@keyframes reward-in {
  from { opacity: 0; transform: scale(0.95) translateY(14px); }
}

.reward-card .game-kicker { color: var(--game-gold-bright); }

.reward-card h2 {
  margin: 16px 0 8px;
  color: #fffdf5;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.7rem);
}

.reward-card p:not(.game-kicker) { color: rgba(255, 253, 245, 0.68); }

.reward-letter {
  position: relative;
  z-index: 2;
  display: grid;
  width: 104px;
  height: 116px;
  margin: 0 auto;
  border: 2px solid var(--game-gold-bright);
  border-radius: 20px;
  color: #211a39;
  background: linear-gradient(145deg, #ffe6a9, #cda34d);
  box-shadow: 0 0 45px rgba(242, 212, 139, 0.28);
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 700;
  place-items: center;
}

.reward-glow {
  position: absolute;
  top: 60px;
  left: 50%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(242, 212, 139, 0.15);
  filter: blur(30px);
  transform: translateX(-50%);
}

.reward-card .game-button { margin-top: 13px; }

.game-noscript {
  padding: 30px;
  color: white;
  background: #171329;
  text-align: center;
}

.game-footer {
  color: var(--ink-muted);
  background: var(--paper);
}

.game-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 820px) {
  .game-landing-grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .game-landing-copy {
    position: relative;
    z-index: 4;
  }

  .temple-illustration {
    min-height: 480px;
    margin-top: -20px;
  }

  .game-hud {
    top: 0;
  }

  .map-node,
  .map-node:nth-child(even),
  .map-node:nth-child(odd) {
    width: calc(100% - 24px);
    margin-right: 0;
    margin-left: 24px;
  }

  .map-path::before {
    left: 11px;
    transform: none;
  }

  .match-game,
  .shelf-game {
    grid-template-columns: 1fr;
  }

  .match-column:first-child {
    grid-template-columns: repeat(3, 1fr);
  }

  .match-column:first-child .match-card {
    min-height: 56px;
    text-align: center;
  }

  .match-column:first-child .match-card span { display: none; }
}

@media (max-width: 600px) {
  .antyk-game-page {
    background: #171329;
  }

  .game-site-header {
    position: relative;
  }

  .game-landing-grid {
    width: min(100% - 28px, 520px);
    min-height: auto;
    padding: 38px 0 56px;
  }

  .game-landing h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .game-lead { line-height: 1.58; }

  .game-start-actions {
    display: grid;
  }

  .game-button { width: 100%; }

  .temple-illustration {
    min-height: 400px;
  }

  .temple-moon {
    width: 86px;
    height: 86px;
  }

  .temple-roof { top: 73px; }
  .temple-columns { top: 164px; bottom: 78px; }
  .temple-door { top: 217px; bottom: 94px; }
  .temple-steps { bottom: 37px; }

  .mission-screen {
    padding: 20px 12px 55px;
  }

  .mission-card {
    padding: 28px 18px;
    border-radius: 23px;
  }

  .game-hud {
    grid-template-columns: auto minmax(100px, 1fr) auto;
    padding: 8px 10px;
  }

  .hud-map-button span { display: none; }
  .hud-map-button { width: 40px; padding: 0; }
  .hud-reset-button { display: none; }

  .letter-vault { gap: 5px; }

  .temple-map,
  .chamber {
    width: min(100% - 18px, 980px);
  }

  .map-heading { margin-bottom: 18px; }
  .map-heading h2 { font-size: 2.5rem; }

  .map-node {
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 10px;
    min-height: 82px;
    padding: 11px;
  }

  .map-node-icon { width: 44px; height: 44px; }
  .map-node-copy strong { font-size: 1.05rem; }

  .chamber {
    padding-top: 18px;
  }

  .chamber-shell { border-radius: 21px; }
  .chamber-heading { padding: 27px 19px 24px; }
  .chamber-heading h2 { font-size: 2.45rem; }
  .chamber-body { padding: 22px 14px 34px; }

  .match-column:first-child {
    grid-template-columns: 1fr;
  }

  .match-column:first-child .match-card {
    min-height: 51px;
    text-align: left;
  }

  .boss-runes { gap: 5px; }
  .boss-rune { min-height: 60px; padding: 6px 2px; font-size: 0.58rem; }

  .victory-skills { grid-template-columns: 1fr; }
  .victory-actions { display: grid; }

  .game-footer .footer-bottom {
    display: grid;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .antyk-game-page *,
  .antyk-game-page *::before,
  .antyk-game-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Cinematic temple presentation: mature, readable and intentionally restrained. */
.game-landing {
  background:
    radial-gradient(circle at 68% 22%, rgba(212, 172, 87, 0.12), transparent 28rem),
    linear-gradient(145deg, #110e20 0%, #241d3a 56%, #171225 100%);
}

.game-landing::before {
  background-image:
    linear-gradient(90deg, rgba(14, 11, 27, 0.2), transparent 32%, transparent 68%, rgba(14, 11, 27, 0.24)),
    radial-gradient(circle, rgba(255, 248, 231, 0.44) 0 1px, transparent 1.35px);
  background-position: 0 0, 0 0;
  background-size: auto, 107px 91px;
  opacity: 0.3;
}

.game-landing::after {
  right: -15vw;
  bottom: -23rem;
  left: 34vw;
  height: 34rem;
  background: rgba(212, 172, 87, 0.09);
  filter: blur(45px);
}

.game-landing-grid {
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(34px, 4.8vw, 76px);
  width: min(1320px, calc(100% - 42px));
}

.game-landing-copy {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.temple-illustration {
  isolation: isolate;
  min-height: 0;
  aspect-ratio: 16 / 10.2;
  overflow: hidden;
  border: 1px solid rgba(242, 212, 139, 0.3);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(11, 9, 22, 0.02), rgba(11, 9, 22, 0.12)),
    url("/gra/antyk/assets/antyk-start-temple.webp") center / cover no-repeat;
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  filter: none;
}

.temple-illustration::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(9, 7, 17, 0.02) 45%, rgba(9, 7, 17, 0.7) 100%),
    linear-gradient(90deg, rgba(9, 7, 17, 0.2), transparent 27%, transparent 73%, rgba(9, 7, 17, 0.18));
  content: "";
  pointer-events: none;
}

.temple-visual-tag {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fffdf5;
  background: rgba(17, 13, 31, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.temple-visual-tag > span {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #211a39;
  background: linear-gradient(145deg, #f4dda7, #c89d45);
  font-family: var(--font-display);
  font-weight: 800;
  place-items: center;
}

.temple-visual-tag div { display: grid; line-height: 1.1; }
.temple-visual-tag b { font-family: var(--font-display); font-size: 0.9rem; }
.temple-visual-tag small { margin-top: 3px; color: rgba(255, 253, 245, 0.64); font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase; }

.temple-door-signal {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 253, 245, 0.78);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.temple-door-signal i {
  width: min(180px, 28%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--game-gold-bright), transparent);
}

.temple-illustration > p {
  z-index: 3;
  bottom: 52px;
  color: rgba(255, 253, 245, 0.7);
  font-size: 0.72rem;
}

.map-scene {
  position: relative;
  max-width: 790px;
  margin: 0 auto 70px;
  padding: 12px;
  border: 1px solid rgba(242, 212, 139, 0.24);
  border-radius: 34px;
  background: rgba(8, 7, 18, 0.48);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.28);
}

.map-scene-topline {
  position: absolute;
  z-index: 4;
  top: 26px;
  right: 36px;
  left: 36px;
  display: flex;
  gap: 13px;
  align-items: center;
  color: rgba(255, 253, 245, 0.66);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.map-scene-topline i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(242, 212, 139, 0.15), rgba(242, 212, 139, 0.65), rgba(242, 212, 139, 0.15));
}

.map-path {
  position: relative;
  display: block;
  max-width: none;
  min-height: 1080px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: url("/gra/antyk/assets/antyk-temple-map.webp") center / cover no-repeat;
}

.map-path::before {
  z-index: 0;
  inset: 0;
  width: auto;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(8, 7, 18, 0.06), rgba(8, 7, 18, 0.12)),
    linear-gradient(90deg, rgba(8, 7, 18, 0.14), transparent 30%, transparent 70%, rgba(8, 7, 18, 0.14));
  transform: none;
}

.map-node,
.map-node:nth-child(even),
.map-node:nth-child(odd) {
  --map-shift: translateX(0);
  position: absolute;
  width: min(280px, 39%);
  min-height: 78px;
  margin: 0;
  padding: 10px 12px;
  border-color: rgba(242, 212, 139, 0.34);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(23, 18, 40, 0.88), rgba(31, 25, 51, 0.75));
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(11px);
  transform: var(--map-shift);
}

.map-node:nth-child(1) { --map-shift: translateX(-50%); top: 83%; left: 50%; }
.map-node:nth-child(2) { --map-shift: translateX(-50%); top: 69%; left: 50%; }
.map-node:nth-child(3) { top: 52%; right: 2.5%; }
.map-node:nth-child(4) { top: 52%; left: 2.5%; }
.map-node:nth-child(5) { --map-shift: translateX(-50%); top: 34%; left: 50%; }
.map-node:nth-child(6) { --map-shift: translateX(-50%); top: 10%; left: 50%; }

.map-node:not(:disabled):hover {
  transform: var(--map-shift) translateY(-3px);
}

.map-node:disabled {
  background: rgba(18, 15, 30, 0.7);
  filter: grayscale(0.45);
  opacity: 0.64;
}

.map-node-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(212, 172, 87, 0.12);
}

.map-node-copy strong { font-size: 1.02rem; }
.map-node-copy span { color: rgba(255, 253, 245, 0.6); font-size: 0.7rem; line-height: 1.25; }

@media (max-width: 980px) {
  .game-landing-grid {
    grid-template-columns: minmax(300px, 0.9fr) minmax(440px, 1.1fr);
  }
}

@media (max-width: 820px) {
  .game-landing-grid { grid-template-columns: 1fr; }
  .temple-illustration { width: min(100%, 660px); min-height: 0; margin: 0 auto; }
  .map-scene { max-width: 690px; }
  .map-path { min-height: 960px; }
}

@media (max-width: 600px) {
  .game-landing {
    min-height: calc(100svh - var(--header-height));
    background:
      linear-gradient(180deg, rgba(11, 9, 20, 0.25) 0%, rgba(11, 9, 20, 0.62) 42%, rgba(11, 9, 20, 0.97) 82%),
      url("/gra/antyk/assets/antyk-start-temple.webp") 58% center / cover no-repeat;
  }

  .game-landing::before {
    background: linear-gradient(90deg, rgba(12, 9, 24, 0.28), transparent 72%);
    opacity: 1;
  }

  .game-landing-grid {
    align-items: end;
    min-height: calc(100svh - var(--header-height));
    padding: 34vh 0 34px;
  }

  .game-landing-copy { max-width: 440px; }
  .game-landing h1 { font-size: clamp(2.85rem, 13vw, 4.2rem); }
  .game-landing h1 em { margin-top: 9px; }
  .game-lead { margin-top: 18px; font-size: 0.96rem; }
  .game-facts { margin-top: 17px; }
  .game-start-actions { margin-top: 22px; }
  .temple-illustration { display: none; }

  .map-scene {
    margin-bottom: 38px;
    padding: 7px;
    border-radius: 24px;
  }

  .map-scene-topline { display: none; }

  .map-path {
    display: grid;
    gap: 9px;
    min-height: 0;
    padding: 32px 13px;
    border-radius: 18px;
    background-position: center;
  }

  .map-path::before {
    background: linear-gradient(180deg, rgba(10, 8, 22, 0.47), rgba(10, 8, 22, 0.66));
  }

  .map-node,
  .map-node:nth-child(n),
  .map-node:nth-child(even),
  .map-node:nth-child(odd) {
    --map-shift: translateX(0);
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    min-height: 74px;
    margin: 0;
    transform: none;
  }

  .map-node:not(:disabled):hover { transform: translateY(-2px); }
  .map-node-copy span { display: none; }
}

/* Every task is a close view of the same landmark visible on the temple map. */
.chamber-heading {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 350px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.62);
}

.chamber-heading::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 9, 24, 0.94) 0%, rgba(12, 9, 24, 0.71) 43%, rgba(12, 9, 24, 0.13) 78%),
    linear-gradient(180deg, rgba(12, 9, 24, 0.05) 42%, rgba(12, 9, 24, 0.58) 100%);
  content: "";
  pointer-events: none;
}

.chamber-shell[data-chamber="0"] .chamber-heading {
  background-image: url("/gra/antyk/assets/chamber-1-gate.webp");
}

.chamber-shell[data-chamber="1"] .chamber-heading {
  background-image: url("/gra/antyk/assets/chamber-2-heroes.webp");
}

.chamber-shell[data-chamber="2"] .chamber-heading {
  background-image: url("/gra/antyk/assets/chamber-3-library.webp");
}

.chamber-shell[data-chamber="3"] .chamber-heading {
  background-image: url("/gra/antyk/assets/chamber-4-labyrinth.webp");
}

.chamber-shell[data-chamber="4"] .chamber-heading {
  background-image: url("/gra/antyk/assets/chamber-5-traps.webp");
}

.chamber-shell[data-chamber="5"] .chamber-heading {
  background-image: url("/gra/antyk/assets/chamber-6-sphinx.webp");
}

.chamber-place {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: fit-content;
  margin: 0 0 9px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 253, 245, 0.2);
  border-radius: 999px;
  color: rgba(255, 253, 245, 0.83);
  background: rgba(19, 14, 34, 0.55);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(9px);
}

.chamber-place span {
  color: var(--game-gold-bright);
  font-size: 0.8rem;
}

.chamber-heading h2,
.chamber-heading > p:last-child {
  max-width: 610px;
}

.chamber-shell[data-chamber="5"] .sphinx-mark { display: none; }

@media (max-width: 600px) {
  .chamber-heading {
    min-height: 285px;
    padding: 26px 19px 23px;
    background-position: 61% center;
  }

  .chamber-heading::before {
    background:
      linear-gradient(90deg, rgba(12, 9, 24, 0.9) 0%, rgba(12, 9, 24, 0.61) 60%, rgba(12, 9, 24, 0.2) 100%),
      linear-gradient(180deg, rgba(12, 9, 24, 0.1) 28%, rgba(12, 9, 24, 0.77) 100%);
  }

  .chamber-heading h2 { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  .chamber-heading > p:last-child { font-size: 0.92rem; }
  .chamber-place { font-size: 0.58rem; }
}

/* A short, finite motion language: entrance, discovery, collection and resolution. */
.is-reward-open { overflow: hidden; }
.reward-modal { overflow-y: auto; overscroll-behavior: contain; }
.reward-card { margin-block: auto; }
.chamber-heading { overflow: hidden; }
.chamber-heading::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: inherit;
  content: "";
  pointer-events: none;
  animation: chamber-scene-arrive 650ms cubic-bezier(.22,.7,.25,1) both;
}
@keyframes chamber-scene-arrive {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}
.map-node { transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.map-node[aria-busy="true"] { border-color: var(--game-gold-bright); }
.map-node.is-newly-unlocked { border-color: var(--game-gold-bright); }
.map-node.is-newly-unlocked::after {
  position: absolute;
  inset: -5px;
  border: 1px solid var(--game-gold-bright);
  border-radius: 20px;
  content: "";
  pointer-events: none;
  animation: passage-unlock 800ms 600ms ease-out both;
}
@keyframes passage-unlock {
  from { opacity: .85; transform: scale(.97); }
  to { opacity: 0; transform: scale(1.1); }
}
.map-node.is-newly-unlocked .map-node-copy small { color: var(--game-gold-bright); }
.match-card, .scroll-card, .motif-shelf, .order-card, .trap-fragment, .rune-choice, .boss-rune {
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.boss-rune.is-broken::before { animation: rune-released 440ms ease-out; }
@keyframes rune-released {
  0% { opacity: .2; transform: scale(1.45) rotate(-35deg); }
  100% { opacity: 1; transform: none; }
}
.rune-seal {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  margin: 16px 0;
  padding: 10px 17px 10px 10px;
  border: 1px solid #d3b777;
  border-radius: 14px;
  color: #68501f;
  background: linear-gradient(115deg, #fff0c8, #fff9ed);
}
.rune-seal > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #c6a157;
  border-radius: 50%;
  font-size: 1.7rem;
}
.rune-seal strong, .rune-seal small { display: block; }
.rune-seal strong { font-family: var(--font-display); font-size: 1.15rem; }
.rune-seal small { margin-top: 2px; font-size: .74rem; }
.chamber-body .mission-transcript summary { color: var(--game-violet); }
.flying-letter {
  position: fixed;
  z-index: 110;
  display: grid;
  place-items: center;
  border: 2px solid var(--game-gold-bright);
  border-radius: 20px;
  color: #211a39;
  background: linear-gradient(145deg, #ffe6a9, #cda34d);
  box-shadow: 0 0 30px rgba(242,212,139,.24);
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 700;
  transform-origin: left top;
  pointer-events: none;
}
.game-sparks { position: fixed; z-index: 111; width: 0; height: 0; pointer-events: none; }
.game-sparks i {
  position: absolute;
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background: #d4ac57;
}
.game-sparks-rune i { width: 5px; height: 15px; background: linear-gradient(#fff0c8, #b48737); }
.is-victory .victory-symbol { position: relative; }
.is-victory .victory-symbol::after {
  position: absolute;
  inset: -12px;
  border: 1px solid #d4ac57;
  border-radius: 50%;
  content: "";
  animation: passage-unlock 900ms ease-out both;
}
.antyk-game-page :is(h2,h3)[tabindex="-1"]:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .game-landing-copy > * { animation: landing-arrive 600ms cubic-bezier(.22,.7,.25,1) backwards; }
  .game-landing-copy h1 { animation-delay: 70ms; }
  .game-landing-copy .game-lead { animation-delay: 130ms; }
  .game-landing-copy .game-facts { animation-delay: 180ms; }
  .game-landing-copy .game-start-actions { animation-delay: 220ms; }
  @keyframes landing-arrive {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .chamber-heading::after, .map-node.is-newly-unlocked::after,
  .is-victory .victory-symbol::after, .boss-rune.is-broken::before { animation: none; }
  .map-node.is-newly-unlocked::after { opacity: 0; }
  .game-sparks, .flying-letter { display: none; }
}
