:root {
  --ink: #080b0e;
  --steel: #111820;
  --steel-2: #1a2229;
  --paper: #f2eadb;
  --muted: #b7aa98;
  --copper: #e87634;
  --copper-hi: #ffb060;
  --copper-low: #7e2f14;
  --red: #ed3b20;
  --line: rgba(238, 127, 59, 0.42);
  --mouse-x: 50vw;
  --mouse-y: 50vh;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: "Arial Narrow", "Roboto Condensed", "Franklin Gothic Medium", Arial, sans-serif;
  text-transform: uppercase;
}

body::selection { color: #0a0b0d; background: var(--copper-hi); }

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; text-transform: inherit; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(460px circle at var(--mouse-x) var(--mouse-y), rgba(231, 105, 42, .12), transparent 70%);
}

#sparks { position: fixed; inset: 0; z-index: 60; pointer-events: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 78px;
  padding: 0 2.4vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 145, 73, .34);
  background: linear-gradient(180deg, rgba(6, 8, 11, .94), rgba(6, 8, 11, .72));
  backdrop-filter: blur(14px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ff9b55;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.8px;
  text-shadow: 0 0 20px rgba(239, 105, 39, .35);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #111;
  background: linear-gradient(135deg, #ffba72, #a73d17);
  border: 2px solid #ffc188;
  box-shadow: inset 0 0 0 2px #7a2e18, 0 0 22px rgba(255, 103, 31, .25);
  font-size: 16px;
  transform: rotate(-4deg);
}

nav { display: flex; gap: 50px; align-items: stretch; height: 100%; }

.nav-link {
  position: relative;
  display: grid;
  place-items: center;
  color: #d7d5d0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset: auto 0 15px;
  height: 2px;
  background: var(--copper-hi);
  transform: scaleX(0);
  transition: transform .25s ease;
  box-shadow: 0 0 12px var(--copper);
}

.nav-link:hover, .nav-link.active { color: var(--copper-hi); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.mini-ca {
  justify-self: end;
  min-width: 165px;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #e9e6df;
  border: 1px solid #ab5529;
  background: rgba(10, 13, 17, .72);
  box-shadow: inset 0 0 22px rgba(223, 89, 28, .08);
  cursor: pointer;
}

.status-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffc66a;
  box-shadow: 0 0 6px #fff, 0 0 16px #ff7a21;
  animation: pulse 1.8s ease-in-out infinite;
}

.section { position: relative; min-height: 100vh; }

.hero {
  height: 100vh;
  min-height: 820px;
  overflow: hidden;
  isolation: isolate;
  background: #080b0e;
}

.hero-bg {
  position: absolute;
  z-index: -3;
  inset: -4%;
  background: url("../assets/images/copper-factory-bg.png") center center / cover no-repeat;
  transform: translate(var(--px, 0), var(--py, 0)) scale(1.045);
  transition: transform .12s linear;
}

.hero-vignette {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 9, .97) 0%, rgba(5, 7, 9, .78) 32%, rgba(5, 7, 9, .08) 64%, rgba(5, 7, 9, .28) 100%),
    linear-gradient(0deg, rgba(7, 8, 10, .8) 0%, transparent 35%);
}

.hero-copy {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 4.2vw;
  width: 48vw;
  transform: translateY(-48%);
}

.eyebrow {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #dfd6c8;
  font: 800 12px/1 Arial, sans-serif;
  letter-spacing: 2.8px;
}

.eyebrow span { width: 52px; height: 2px; background: var(--copper); box-shadow: 0 0 8px var(--copper); }

.copper-title {
  margin: 0;
  width: min-content;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(108px, 9.5vw, 182px);
  font-weight: 900;
  line-height: .74;
  letter-spacing: -5px;
  filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .65));
}

.copper-title span { display: block; }

.copper-title span:first-child {
  color: #c85c2a;
  background: linear-gradient(180deg, #ffe0b1 2%, #f49a55 27%, #bd4b21 62%, #6d2412 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px #672410;
  text-shadow: 3px 3px 0 #4c190d;
}

.copper-title span:last-child {
  color: var(--paper);
  padding-top: .09em;
  letter-spacing: -7px;
  -webkit-text-stroke: 2px #1a1b1c;
  text-shadow: 4px 4px 0 #b64b21, 7px 7px 0 #4c1a0d;
}

.ticker {
  display: inline-block;
  margin-top: 24px;
  padding: 9px 16px 7px;
  color: #ffe1c6;
  border: 1px solid rgba(255, 168, 101, .5);
  background: rgba(112, 38, 13, .28);
  font: 900 21px/1 Arial, sans-serif;
  letter-spacing: 2.8px;
  transform: rotate(-1.5deg);
}

.hero-line {
  margin: 21px 0 26px;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .8px;
}

.hero-line::after {
  content: "";
  display: block;
  width: 250px;
  height: 4px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--copper), transparent);
  transform: skewX(-25deg);
}

.hero-actions, .final-actions { display: flex; gap: 14px; }

.button {
  position: relative;
  min-width: 210px;
  padding: 17px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--copper);
  font: 900 14px/1 Arial, sans-serif;
  letter-spacing: .7px;
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffd5a6;
  transform: translateX(-105%) skewX(-20deg);
  transition: transform .32s ease;
}

.button > * { position: relative; z-index: 1; }
.button:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(232, 104, 43, .25); }
.button:hover::before { transform: translateX(0) skewX(0); }
.button:active { transform: translateY(1px) scale(.985); }
.button-copper { color: #110b08; background: linear-gradient(135deg, #f9b06e, #b7461c); box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }
.button-dark { color: #f4e9dc; background: rgba(11, 13, 16, .78); }
.button-dark:hover { color: #16100d; }

.hero-ca {
  width: min(560px, 46vw);
  margin-top: 18px;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(236, 127, 63, .38);
  color: #eee8e0;
  background: rgba(5, 7, 9, .75);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, background .2s ease;
}

.hero-ca:hover { border-color: var(--copper-hi); background: rgba(27, 14, 9, .9); }
.hero-ca.copied { box-shadow: 0 0 30px rgba(247, 127, 54, .35); }
.ca-label { color: var(--copper-hi); font-size: 10px; letter-spacing: 1.8px; }
.ca-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 700 12px/1.2 "Courier New", monospace; text-transform: none; }
.copy-label { color: #fff; font: 900 11px/1 Arial, sans-serif; }

.hero-character-wrap {
  position: absolute;
  z-index: 2;
  right: -1.5vw;
  bottom: -11vh;
  width: min(64vw, 1160px);
  height: 105vh;
  transform: translate(var(--px, 0), var(--py, 0));
  transition: transform .12s linear;
}

.hero-character {
  position: absolute;
  z-index: 2;
  right: -1%;
  bottom: 0;
  width: 86%;
  filter: drop-shadow(-24px 24px 24px rgba(0, 0, 0, .6)) drop-shadow(0 0 28px rgba(255, 91, 25, .15));
  animation: breathe 5s ease-in-out infinite;
  user-select: none;
}

.halo-ring {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 133, 65, .38);
  box-shadow: inset 0 0 55px rgba(233, 81, 27, .12), 0 0 55px rgba(233, 81, 27, .12);
}

.ring-one { width: 560px; height: 560px; right: 11%; top: 15%; animation: ring 7s linear infinite; }
.ring-two { width: 700px; height: 700px; right: 2%; top: 8%; border-style: dashed; opacity: .32; animation: ring 16s linear infinite reverse; }

.phil-tag {
  position: absolute;
  z-index: 4;
  right: 11%;
  bottom: 20%;
  width: 124px;
  padding: 13px;
  color: #ff9c59;
  background: rgba(21, 13, 10, .86);
  border: 2px solid #b54c23;
  box-shadow: inset 0 0 0 2px #4b2013, 0 8px 30px rgba(0,0,0,.35);
  text-align: left;
  cursor: pointer;
  transform: rotate(2deg);
  transition: transform .2s ease;
}

.phil-tag:hover { transform: rotate(-2deg) scale(1.06); }
.tag-id { display: block; padding-bottom: 8px; border-bottom: 1px solid #8c3d21; font-size: 17px; font-weight: 900; }
.tag-copy { display: block; padding-top: 8px; font-size: 10px; line-height: 1.2; letter-spacing: 1.2px; }

.scroll-hint {
  position: absolute;
  z-index: 5;
  right: 2vw;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #bca992;
  font: 800 9px/1 Arial, sans-serif;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
}

.scroll-hint i { width: 1px; height: 48px; background: linear-gradient(var(--copper), transparent); animation: scroll 1.8s ease infinite; }

.marquee {
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 17px 0;
  color: #18100c;
  background: linear-gradient(90deg, #a8401b, #f49a51 30%, #bf4b20 70%, #ffab62);
  border-block: 3px solid #522010;
  box-shadow: 0 0 35px rgba(236, 99, 34, .22);
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 34px;
  font: 900 19px/1 Arial, sans-serif;
  letter-spacing: 2.8px;
  animation: marquee 24s linear infinite;
}

.marquee b { font-size: 12px; }

.shift {
  min-height: 980px;
  padding: 12vh 7vw;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 18% 50%, rgba(174, 61, 22, .18), transparent 33%),
    #0b0f13;
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.shift-grid {
  width: min(1560px, 88vw);
  display: grid;
  grid-template-columns: 43% 57%;
  gap: 7vw;
  align-items: center;
}

.portrait-panel {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(245, 130, 66, .45);
  background: #102235;
  box-shadow: 30px 30px 0 #12171c, 31px 31px 0 rgba(255, 142, 75, .25), 0 40px 80px rgba(0,0,0,.4);
  transform: rotate(-1.5deg);
}

.portrait-panel::before {
  content: "SHIFT ARCHIVE / SUBJECT 29";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  padding: 11px 15px;
  color: #ffd5b4;
  background: rgba(7, 10, 13, .84);
  font-size: 10px;
  letter-spacing: 2px;
}

.portrait-panel img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.08); transition: transform .7s ease; }
.portrait-panel:hover img { transform: scale(1.035); }
.portrait-panel::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 90px rgba(0, 0, 0, .35); pointer-events: none; }

.portrait-stamp {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 18px;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  color: #f39a5b;
  border: 3px double #f39a5b;
  border-radius: 50%;
  background: rgba(47, 16, 9, .62);
  font-size: 11px;
  letter-spacing: 2px;
  text-align: center;
  transform: rotate(-12deg);
}
.portrait-stamp strong { display: block; font-size: 34px; }
.scanline { position: absolute; z-index: 4; left: 0; right: 0; height: 2px; background: rgba(255, 145, 76, .7); box-shadow: 0 0 12px #ff6c27; animation: scan 6s linear infinite; }

.section-number { margin: 0 0 24px; color: var(--copper-hi); font-size: 11px; font-weight: 900; letter-spacing: 3px; }
.section-number::before { content: ""; display: inline-block; width: 48px; height: 1px; margin-right: 13px; vertical-align: middle; background: currentColor; }

.shift-copy h2, .crew-copy h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(56px, 5vw, 92px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -2px;
}

.shift-copy h2 em { color: var(--copper); font-style: normal; -webkit-text-stroke: 1px #ff9c58; }
.lead { width: min(670px, 100%); margin: 34px 0 45px; color: #c7bdae; font-family: Georgia, serif; font-size: 19px; line-height: 1.65; text-transform: none; }

.logbook { border-top: 1px solid rgba(233, 125, 67, .3); }
.logbook article { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 18px; align-items: center; padding: 22px 4px; border-bottom: 1px solid rgba(233, 125, 67, .19); transition: padding .25s ease, background .25s ease; }
.logbook article:hover { padding-inline: 16px; background: linear-gradient(90deg, rgba(226, 92, 32, .13), transparent); }
.logbook span { color: var(--copper-hi); font: 700 12px/1 "Courier New", monospace; }
.logbook h3 { margin: 0; font-size: 15px; letter-spacing: .8px; }
.logbook p { margin: 0; color: #827b72; font-family: Georgia, serif; font-size: 13px; text-transform: none; }

.rules {
  min-height: 940px;
  padding: 12vh 8vw;
  display: grid;
  grid-template-columns: .8fr 1.15fr .55fr;
  gap: 6vw;
  align-items: center;
  overflow: hidden;
  background: #14100e;
}

.rules::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(196, 68, 22, .18), transparent 43%), linear-gradient(120deg, rgba(255, 137, 67, .04), transparent 40%); }

.coil-art {
  position: absolute;
  z-index: 0;
  left: -12vw;
  top: 8%;
  width: 58vw;
  height: 84%;
  transform: translate(var(--px, 0), var(--py, 0)) rotate(-12deg);
  opacity: .38;
}

.coil-art span { position: absolute; inset: calc(var(--i, 0) * 4%); border: 18px solid #a83f1d; border-radius: 50%; box-shadow: inset 5px 5px 10px #ff9a55, 7px 8px 16px rgba(0,0,0,.7), 0 0 20px rgba(247, 83, 21, .2); }
.coil-art span:nth-child(1) { --i: 0; }
.coil-art span:nth-child(2) { --i: 1; }
.coil-art span:nth-child(3) { --i: 2; }
.coil-art span:nth-child(4) { --i: 3; }
.coil-art span:nth-child(5) { --i: 4; }

.rules-heading { position: relative; z-index: 2; }
.rules-heading h2 { margin: 0; color: #f1dfcb; font-family: Impact, sans-serif; font-size: clamp(82px, 8vw, 146px); line-height: .78; letter-spacing: -4px; text-shadow: 5px 5px 0 #8b3116; }

.rule-list { position: relative; z-index: 2; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(235, 128, 70, .34); }
.rule-list li { display: grid; grid-template-columns: 72px 1fr; align-items: center; padding: 28px 4px; border-bottom: 1px solid rgba(235, 128, 70, .25); }
.rule-list span { color: var(--copper); font: 700 12px/1 "Courier New", monospace; }
.rule-list p { margin: 0; font-family: Georgia, serif; font-size: 21px; line-height: 1.25; text-transform: none; }

.meter { position: relative; z-index: 2; text-align: center; }
.meter-face { position: relative; width: 230px; height: 118px; margin: auto; overflow: hidden; border: 12px solid #201915; border-bottom: 0; border-radius: 230px 230px 0 0; background: conic-gradient(from 270deg at 50% 100%, #a13b1b, #f2a05e 25%, #641c0e 50%, transparent 0); box-shadow: inset 0 0 30px #000, 0 20px 40px #000; }
.meter-face::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 34px; height: 34px; border-radius: 50%; background: #d86a33; transform: translateX(-50%); box-shadow: 0 0 18px #ff6e28; }
.needle { position: absolute; z-index: 3; left: 50%; bottom: 0; width: 5px; height: 93px; transform-origin: 50% 100%; transform: translateX(-50%) rotate(22deg); background: #f5dfcb; clip-path: polygon(50% 0, 100% 100%, 0 100%); animation: needle 3.7s ease-in-out infinite; }
.meter-face i { position: absolute; bottom: 8px; z-index: 4; color: #2c130b; font-size: 9px; font-style: normal; font-weight: 900; }
.meter-face i:nth-of-type(1) { left: 13px; }
.meter-face i:nth-of-type(2) { left: 50%; transform: translateX(-50%); }
.meter-face i:nth-of-type(3) { right: 12px; }
.meter > p { margin-top: 18px; color: #9f836f; font-size: 10px; letter-spacing: 2.5px; }

.foundry {
  min-height: 880px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #07090b;
}

.foundry-bg { position: absolute; z-index: -3; inset: 0; background: url("../assets/images/copper-factory-bg.png") center / cover no-repeat; filter: saturate(.58) brightness(.36); transform: scale(1.02); transition: filter .8s ease, transform 8s ease; }
.foundry::after { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 50% 52%, transparent 0 16%, rgba(6, 7, 9, .86) 72%), linear-gradient(90deg, rgba(5,6,8,.8), transparent 50%, rgba(5,6,8,.8)); }
.foundry.awake .foundry-bg { filter: saturate(1.3) brightness(.8); transform: scale(1.08); }
.foundry.awake::after { background: radial-gradient(circle at 50% 52%, rgba(235, 80, 23, .08) 0 20%, rgba(6, 7, 9, .63) 75%); }

.status-board { width: min(720px, 54vw); padding: 54px 64px; border: 2px solid #5e3a28; background: rgba(10, 12, 13, .88); box-shadow: inset 0 0 60px rgba(239, 91, 27, .06), 0 40px 110px #000; text-align: center; }
.board-kicker { color: #f08b4e; font: 700 11px/1 "Courier New", monospace; letter-spacing: 2.7px; }
.status-board h2 { margin: 22px 0 36px; font: 900 clamp(48px, 4.5vw, 78px)/.95 Impact, sans-serif; letter-spacing: -1px; }
.board-message { margin: 30px 0 0; color: #9e9184; font: italic 15px/1.5 Georgia, serif; text-transform: none; }

.power-switch { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; border: 0; background: transparent; cursor: pointer; }
.switch-track { position: relative; width: 122px; height: 55px; border: 2px solid #5a4438; border-radius: 40px; background: #050607; box-shadow: inset 0 6px 14px rgba(0,0,0,.9); }
.switch-track i { position: absolute; top: 6px; left: 7px; width: 39px; height: 39px; border-radius: 50%; background: linear-gradient(145deg, #6a6d6d, #202525); box-shadow: 3px 4px 8px #000; transition: left .28s ease, background .28s ease, box-shadow .28s ease; }
.power-switch[aria-pressed="true"] .switch-track i { left: 72px; background: linear-gradient(145deg, #ffc17c, #d24d1d); box-shadow: 0 0 18px #ff6024; }
.switch-label { color: #d7c8b9; font-size: 11px; font-weight: 900; letter-spacing: 2px; }

.giant-word { position: absolute; z-index: -1; bottom: -3vw; left: 50%; color: rgba(245, 137, 74, .055); font: 900 28vw/.7 Impact, sans-serif; letter-spacing: -1vw; transform: translateX(-50%); white-space: nowrap; }

.crew {
  min-height: 960px;
  padding: 10vh 8vw 4vh;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(115deg, #0b1015 0 47%, #2a1510 47% 100%);
}

.crew::before { content: ""; position: absolute; inset: 0; opacity: .2; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.06) 80px), repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.035) 80px); }
.crew-copy { position: relative; z-index: 3; width: min(650px, 92%); }
.crew-copy > p:not(.section-number) { margin: 32px 0; width: min(560px, 100%); color: #aaa095; font: 17px/1.65 Georgia, serif; text-transform: none; }
.crew-links { margin-top: 48px; border-top: 1px solid rgba(234, 122, 61, .27); }
.social-plate { display: grid; grid-template-columns: 54px 1fr auto; gap: 20px; align-items: center; padding: 24px 5px; border-bottom: 1px solid rgba(234, 122, 61, .27); transition: padding .25s ease, color .25s ease, background .25s ease; }
.social-plate span { color: var(--copper); font: 700 11px/1 "Courier New", monospace; }
.social-plate strong { font-size: 18px; letter-spacing: .8px; }
.social-plate i { font-size: 20px; font-style: normal; }
.social-plate:hover { padding-inline: 18px; color: var(--copper-hi); background: rgba(231, 94, 34, .08); }

.crew-character { position: relative; z-index: 2; height: 780px; align-self: end; }
.crew-character::before { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; top: 8%; left: 46%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(244, 91, 32, .34), transparent 66%); }
.crew-character img { position: absolute; bottom: -13%; left: 50%; width: min(830px, 60vw); transform: translateX(-50%) scale(1.08); filter: drop-shadow(0 25px 30px rgba(0,0,0,.6)); }
.caution-tape { position: absolute; z-index: 4; left: -10%; right: -25%; top: 52%; padding: 13px; overflow: hidden; color: #160e09; background: repeating-linear-gradient(135deg, #e77135 0 28px, #f5ae61 28px 56px); border-block: 2px solid #4c2011; box-shadow: 0 7px 22px rgba(0,0,0,.45); font-size: 13px; font-weight: 900; letter-spacing: 2px; white-space: nowrap; transform: rotate(-7deg); }

.final {
  min-height: 920px;
  padding: 12vh 7vw 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(rgba(0,0,0,.56), rgba(0,0,0,.82)),
    url("../assets/images/reference-visual.png") center / cover no-repeat;
}

.final::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(4px); background: radial-gradient(circle at center, rgba(109, 37, 14, .28), rgba(5,7,9,.82) 72%); }
.final-inner { position: relative; z-index: 2; width: min(1080px, 76vw); text-align: center; }
.final-inner > p { margin: 0 0 18px; color: #f59b5e; font-size: 11px; font-weight: 900; letter-spacing: 4px; }
.final-inner h2 { margin: 0; font: 900 clamp(100px, 11vw, 210px)/.78 Impact, sans-serif; letter-spacing: -6px; color: #e17036; background: linear-gradient(#ffcb8f, #bd4820 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: 2px #66200f; filter: drop-shadow(0 12px 0 #361109); }
.final-ticker { margin: 34px 0; color: #f5eadd; font-size: 26px; font-weight: 900; letter-spacing: 5px; }
.final-ca { width: min(820px, 100%); margin: 0 auto 22px; padding: 16px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; border: 1px solid rgba(255, 144, 78, .55); color: #f3e8db; background: rgba(5, 8, 10, .8); cursor: pointer; }
.final-ca span { color: var(--copper-hi); font-size: 10px; letter-spacing: 2px; }
.final-ca strong { overflow: hidden; text-overflow: ellipsis; color: #d5cdc4; font: 700 13px/1 "Courier New", monospace; text-transform: none; }
.final-ca i { color: #fff; font-size: 11px; font-style: normal; font-weight: 900; }
.final-actions { justify-content: center; }

footer { position: relative; z-index: 2; width: 100%; padding: 25px 0; display: flex; justify-content: space-between; color: #827a72; border-top: 1px solid rgba(236, 126, 68, .25); font-size: 9px; letter-spacing: 1.5px; }
footer a:hover { color: var(--copper-hi); }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 36px; padding: 15px 22px; color: #15100c; background: linear-gradient(135deg, #ffc07e, #db5e27); border: 1px solid #ffd0a1; box-shadow: 0 14px 50px rgba(0,0,0,.55); font-size: 11px; font-weight: 900; letter-spacing: 2px; transform: translate(-50%, 40px); opacity: 0; transition: .3s ease; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.click-spark { position: fixed; z-index: 140; width: 4px; height: 9px; background: #ffd086; box-shadow: 0 0 10px #ff5b1b; pointer-events: none; animation: click-spark .68s ease-out forwards; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.18,.78,.26,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hero .reveal { animation: hero-in 1s .18s both; }

@keyframes hero-in { from { opacity: 0; transform: translateY(calc(-48% + 24px)); } to { opacity: 1; transform: translateY(-48%); } }
@keyframes pulse { 50% { opacity: .55; transform: scale(.82); } }
@keyframes breathe { 50% { transform: translateY(-9px) rotate(.2deg); } }
@keyframes ring { to { transform: rotate(360deg); } }
@keyframes scroll { 0%,100% { opacity: .2; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scan { from { top: 0; } to { top: 100%; } }
@keyframes needle { 0%,100% { transform: translateX(-50%) rotate(-32deg); } 45% { transform: translateX(-50%) rotate(38deg); } 65% { transform: translateX(-50%) rotate(20deg); } }
@keyframes click-spark { to { transform: translate(var(--sx), var(--sy)) rotate(160deg); opacity: 0; } }

@media (max-width: 1500px) {
  .site-header { grid-template-columns: .8fr auto .8fr; }
  nav { gap: 30px; }
  .hero-copy { width: 52vw; }
  .copper-title { font-size: 9vw; }
  .hero-character-wrap { right: -6vw; width: 68vw; }
  .hero-character { width: 90%; }
  .rules { gap: 3vw; padding-inline: 5vw; }
  .meter-face { width: 190px; }
}

@media (max-width: 1180px) {
  nav { gap: 18px; }
  .nav-link { font-size: 11px; }
  .brand { font-size: 19px; }
  .hero-actions .button { min-width: 175px; }
  .hero-character-wrap { right: -10vw; opacity: .85; }
  .shift-grid { width: 94vw; gap: 4vw; }
  .rules { grid-template-columns: .75fr 1.25fr; }
  .meter { display: none; }
}

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