:root {
  --bg: #000;
  --gold: #f4c46b;
  --gold-hot: #ffb347;
  --ink: #f7efe2;
  --mute: rgba(247, 239, 226, 0.62);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: #000;
  color: var(--ink);
  font-family: Outfit, "Segoe UI", Tahoma, sans-serif;
  overflow: hidden;
  user-select: none;
  cursor: default;
}

.stage {
  position: relative;
  min-height: 100%;
  background: #000;
}

.vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(0,0,0,.7) 100%);
  z-index: 6;
}

.grain {
  pointer-events: none;
  position: absolute;
  inset: -20%;
  z-index: 7;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  animation: grain 0.35s steps(2) infinite;
}

@keyframes grain {
  0% { transform: translate(0,0); }
  100% { transform: translate(-2%, 1%); }
}

.cast {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: visible;
  opacity: 1;
  transition: opacity .55s linear;
}

.cast.scene-fade {
  opacity: .12;
}

.person {
  position: absolute;
  bottom: 2%;
  transform-origin: 50% 100%;
}

.person .layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  display: block;
}

.person .body {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.85));
}

.limb {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-origin: 50% 18%;
  transition: transform .75s cubic-bezier(.22,.7,.2,1);
  will-change: transform;
}

.shooter {
  left: 6%;
  width: min(300px, 30vw);
  z-index: 3;
  --lx: 47.3%;
  --ly: 19%;
  --rx: 65%;
  --ry: 19%;
  transition: transform .16s ease-out;
}

.victim {
  right: 8%;
  width: min(270px, 26vw);
  z-index: 3;
  --lx: 37.1%;
  --ly: 20%;
  --rx: 58%;
  --ry: 20%;
  transition: transform .4s ease;
}

.back {
  left: 46%;
  bottom: 26%;
  width: min(160px, 15vw);
  z-index: 1;
  opacity: .88;
  filter: brightness(.75);
  --lx: 47.3%;
  --ly: 19%;
  --rx: 65%;
  --ry: 19%;
}

.limb.l { transform-origin: var(--lx) var(--ly); }
.limb.r { transform-origin: var(--rx) var(--ry); }

.person.is-aim .limb.l { transform: rotate(52deg); }
.person.is-aim .limb.r { transform: rotate(-102deg); }

.person.back.is-aim .limb.l { transform: rotate(102deg); }
.person.back.is-aim .limb.r { transform: rotate(-52deg); }

.victim.is-hands .limb.l { transform: rotate(-158deg); }
.victim.is-hands .limb.r { transform: rotate(158deg); }

.person.shooter.is-recoil {
  transform: translate(-12px, 3px);
}

.person.shooter.is-hit {
  transform: translate(-10px, 8px) rotate(-4deg);
}

.person.victim.is-hit {
  transform: translate(24px, 16px) rotate(14deg);
  opacity: .92;
}

.gun {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.7));
}

.shooter .gun {
  left: 54%;
  top: 30%;
  width: 168%;
  transform: rotate(-11deg);
  transform-origin: 8% 62%;
}

.back .gun {
  right: 52%;
  left: auto;
  top: 30%;
  width: 170%;
  transform: scaleX(-1) rotate(-8deg);
  transform-origin: 92% 62%;
}

.gun img {
  display: block;
  width: 100%;
  height: auto;
}

.muzzle {
  position: absolute;
  right: -6%;
  top: 28%;
  width: 56px;
  height: 56px;
  margin-top: -10px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, #fff6d0 0%, #ffb347 28%, rgba(255,120,40,0) 70%);
}

.back .muzzle {
  right: auto;
  left: -6%;
}

.blood {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.wiper {
  position: absolute;
  z-index: 5;
  top: -15%;
  left: 0;
  width: 42%;
  height: 130%;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(20, 20, 20, .35) 12%,
      rgba(8, 8, 8, .9) 38%,
      rgba(24, 24, 24, .5) 62%,
      transparent 100%);
  transform: translateX(-130%) rotate(-11deg);
}

.wiper.run {
  opacity: 1;
  animation: wipeMove 1.15s cubic-bezier(.22,.7,.2,1) forwards;
}

@keyframes wipeMove {
  0% { transform: translateX(-130%) rotate(-11deg); }
  100% { transform: translateX(280%) rotate(8deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

.panel {
  position: absolute;
  z-index: 8;
  width: min(320px, 28vw);
  padding: 16px 18px;
  border: 1px solid rgba(244, 196, 107, .18);
  background: rgba(0, 0, 0, .62);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.panel-left {
  left: 3.2%;
  top: 38%;
}

.panel-right {
  right: 3.2%;
  top: 28%;
  bottom: 18%;
  display: flex;
  flex-direction: column;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(244, 196, 107, .45);
  background: #111;
  flex: 0 0 auto;
}

.kicker {
  letter-spacing: .18em;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 4px;
}

.value {
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink);
  word-break: break-word;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
}

.pack-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
  gap: 10px;
}

.pack-window {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 88%, transparent);
}

.pack-list {
  list-style: none;
  transition: transform .45s ease;
}

.pack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 2px;
  font-size: 12px;
  color: rgba(247, 239, 226, .42);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.pack-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  flex: 0 0 auto;
}

.pack-item.is-done {
  color: rgba(247, 239, 226, .55);
}

.pack-item.is-done .dot {
  background: #f4c46b;
}

.pack-item.is-active {
  color: #fff8ea;
  text-shadow: 0 0 12px rgba(244, 196, 107, .45);
}

.pack-item.is-active .dot {
  background: #fff3c8;
  box-shadow: 0 0 10px #f4c46b;
}

.brand {
  position: absolute;
  z-index: 8;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: min(920px, 92vw);
}

.eyebrow {
  letter-spacing: .38em;
  font-size: 11px;
  color: var(--mute);
  margin-bottom: 18px;
  text-transform: uppercase;
}

h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  font-family: Cinzel, serif;
  font-weight: 900;
  font-size: clamp(42px, 9vw, 108px);
  letter-spacing: .12em;
  line-height: 1;
  text-shadow: 0 10px 40px rgba(0,0,0,.8);
}

.word {
  background: linear-gradient(180deg, #fff8ea 0%, #f4c46b 52%, #c9842a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.word:first-child {
  letter-spacing: 0.02em;
}

.sun-letter {
  width: clamp(36px, 7vw, 78px);
  height: clamp(36px, 7vw, 78px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, #fff 0%, #ffd56a 28%, #ff8a2a 70%, #c2410c 100%);
  box-shadow: 0 0 28px rgba(255, 170, 60, .7);
  position: relative;
  flex: 0 0 auto;
}

.sun-letter-ring {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(255, 214, 140, .45);
  border-radius: 50%;
  animation: pulse 3.8s ease-in-out infinite;
}

.tagline {
  margin-top: 18px;
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--mute);
}

.loader {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 5.5%;
  transform: translateX(-50%);
  width: min(640px, 54vw);
}

.loader-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}

.bar {
  position: relative;
  height: 3px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
  border-radius: 99px;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c9842a, #f4c46b, #fff3c8);
  box-shadow: 0 0 16px rgba(244, 196, 107, .8);
  transition: width .25s linear;
}

.bar-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-100%);
  animation: shine 1.8s ease-in-out infinite;
}

@keyframes shine {
  100% { transform: translateX(100%); }
}

.loader-sub {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.hint,
.files {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(247, 239, 226, .42);
}

.hint {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files {
  letter-spacing: .08em;
  flex: 0 0 auto;
}

.ready .bar-fill {
  box-shadow: 0 0 22px rgba(255, 230, 170, .95);
}

@media (max-width: 1100px) {
  .panel-left, .panel-right { display: none; }
  .loader { width: min(640px, 86vw); }
}

@media (max-width: 640px) {
  .brand { top: 10%; }
  .tagline { letter-spacing: .1em; }
  .shooter { width: 40vw; left: 1%; }
  .victim { width: 36vw; right: 1%; }
  .back { display: none; }
}
