:root {
  --bg: #070708;
  --card: #101014;
  --ink: #f4f1ec;
  --muted: #a7a7b2;
  --red: #ff2424;
  --red-deep: #c11212;
  --orange: #ff8a1e;
  --line: rgba(255, 255, 255, 0.14);
  --serif: "Cinzel", "Times New Roman", serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: #070708 url("media/backdrop.jpg") right center / cover no-repeat;
}

#dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}

.page-corner {
  position: fixed;
  top: 12px;
  width: 296px;
  height: auto;
  z-index: 6;
  pointer-events: none;
  user-select: none;
}

.page-corner-l { left: 12px; }
.page-corner-r { right: 12px; transform: scaleX(-1); }

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 30vw);
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 1.5rem;
  padding: 2.2vh 2vw 2.4vh 3.2vw;
}

.mast {
  position: relative;
  z-index: 3;
  grid-column: 1;
  grid-row: 1;
  text-align: center;
  padding-top: 0.4rem;
}

.brand {
  position: relative;
  width: min(680px, 94%);
  margin: 0 auto;
}

.brand-ornament {
  width: 100%;
  height: auto;
  display: block;
  color: #ff2424;
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12.6%;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 30, 30, 0.28));
}

.mast h1 {
  margin: -1.5rem 0 0;
  font-weight: 700;
  font-size: clamp(28px, 3.3vw, 52px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.mast h1 span {
  color: var(--red);
  letter-spacing: 0.12em;
}

.path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0.4rem 0 0;
  color: #d9d4cc;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 12px;
}

.line {
  width: min(120px, 12vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  position: relative;
}

.line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--red);
  transform: translateY(-50%) rotate(45deg);
}

.line:first-child::after { right: -2px; }
.line:last-child::after { left: -2px; }

.paths {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
  margin-top: 0.4vh;
  padding-bottom: 1vh;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  height: min(62vh, 560px);
  padding: 18px 14px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    #0e0e12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  outline: none;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card-grief { border-color: rgba(255, 40, 40, 0.72); }
.card-pvp { border-color: rgba(255, 122, 30, 0.7); }
.card-lock { border-color: rgba(255, 255, 255, 0.12); }

.card:hover,
.card:focus-visible,
.card.is-on {
  z-index: 2;
  transform: translateY(-6px);
}

.card-grief:hover,
.card-grief:focus-visible,
.card-grief.is-on {
  border-color: #ff3a3a;
  box-shadow: 0 0 0 1px rgba(255, 40, 40, 0.45), 0 22px 48px rgba(180, 0, 0, 0.22);
}

.card-pvp:hover,
.card-pvp:focus-visible,
.card-pvp.is-on {
  border-color: #ff9a3a;
  box-shadow: 0 0 0 1px rgba(255, 140, 40, 0.4), 0 22px 48px rgba(180, 70, 0, 0.2);
}

.card-lock:hover,
.card-lock:focus-visible,
.card-lock.is-on {
  border-color: rgba(220, 224, 230, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card-lock::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(168, 172, 180, 0.16), rgba(70, 72, 78, 0.05) 28%, rgba(12, 12, 14, 0.18)),
    linear-gradient(112deg, transparent 28%, rgba(214, 218, 224, 0.05) 42%, rgba(245, 246, 248, 0.38) 50%, rgba(186, 190, 198, 0.14) 57%, transparent 74%);
}

.card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.icon-stage {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 128px;
  max-height: 210px;
  overflow: visible;
}

.glow {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 70%;
  height: 58%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0.8;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.card-grief .glow { background: radial-gradient(circle, rgba(255, 30, 30, 0.85), transparent 68%); }
.card-pvp .glow { background: radial-gradient(circle, rgba(255, 140, 30, 0.75), transparent 68%); }
.card-redhold .glow { background: radial-gradient(circle, rgba(180, 20, 20, 0.55), transparent 70%); }
.card-bloom .glow { background: radial-gradient(circle, rgba(180, 180, 190, 0.28), transparent 70%); }

.card:hover .glow,
.card:focus-visible .glow,
.card.is-on .glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.icon-stage img {
  position: absolute;
  pointer-events: none;
}

.icon-stage img.still {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.icon-stage img.motion {
  object-fit: fill;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.icon-stage img.motion:not([src]) {
  visibility: hidden;
}

.card.is-on .icon-stage img.motion { opacity: 1; }
.card.is-on .icon-stage img.still { opacity: 0; }

.eyebrow {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #c4c0b8;
}

.card h2 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 2.1vw, 38px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.card-grief h2 { color: var(--red); text-shadow: 0 0 18px rgba(255, 30, 30, 0.35); }
.card-pvp h2 { color: var(--orange); text-shadow: 0 0 18px rgba(255, 120, 20, 0.3); }

.card-lock h2 {
  color: #f2f2f4;
  font-size: clamp(15px, 1.25vw, 20px);
  letter-spacing: 0.12em;
  max-width: 11ch;
}

.mark {
  margin: 12px 0 8px;
  color: #8e8e98;
}

.mark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.card-grief .mark { color: #ff4a4a; }
.card-pvp .mark { color: #ff9a3c; }

.blurb {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: #d5d1ca;
  letter-spacing: 0.01em;
}

.go {
  margin-top: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #eee;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.go svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-grief .go { border-color: rgba(255, 60, 60, 0.8); color: #ffd0d0; }
.card-pvp .go { border-color: rgba(255, 150, 50, 0.85); color: #ffe0c2; }
.go.is-quiet { opacity: 0.45; cursor: default; }

.card-grief .go:hover,
.card-pvp .go:hover,
.card-grief .go:focus-visible,
.card-pvp .go:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.monument {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  min-height: 0;
  margin-right: -2vw;
  margin-bottom: -2.4vh;
}

#statue-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0;
  transition: opacity 0.7s ease;
}

#statue-still.is-set { opacity: 1; }

#statue-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.7s ease;
}

#statue-canvas.is-done {
  opacity: 0;
  pointer-events: none;
}

.notice {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  width: min(440px, calc(100vw - 32px));
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.notice.is-in {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.notice-card {
  position: relative;
  overflow: hidden;
  padding: 18px 22px 16px;
  text-align: center;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%),
    #121216;
  border: 1px solid rgba(220, 224, 230, 0.22);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.notice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 36%, rgba(245, 246, 248, 0.16) 50%, transparent 64%);
}

.notice-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #b7b7c0;
}

.notice-card h3 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-card p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 24px 18px 40px;
  }

  .monument {
    grid-column: 1;
    grid-row: 1;
    height: 46vh;
    min-height: 280px;
    margin: 0 0 -40px;
  }

  .mast { grid-row: 2; }
  .paths {
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card { height: auto; min-height: 420px; }
}

@media (max-width: 640px) {
  .paths { grid-template-columns: 1fr; }
  .mast h1 { letter-spacing: 0.08em; font-size: 28px; }
  .path { letter-spacing: 0.18em; font-size: 11px; }
  .line { width: 36px; }
  .brand { width: min(100%, 420px); }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .glow,
  .icon-stage img.motion,
  #statue-still,
  #statue-canvas {
    transition: none;
  }

  .card:hover,
  .card:focus-visible,
  .card.is-on { transform: none; }

  #statue-still { opacity: 1; }
  #statue-canvas,
  #dust { display: none; }
}
