:root {
  --bg: #f0ebe1;
  --panel: rgba(255, 250, 240, 0.88);
  --panel-strong: #fffaf0;
  --text: #47342f;
  --muted: #847067;
  --accent: #d97b27;
  --accent-soft: #f6d9b5;
  --border: rgba(106, 72, 53, 0.14);
}

@property --glow-deg {
  syntax: "<angle>";
  inherits: true;
  initial-value: -90deg;
}

@property --clr-1 {
  syntax: "<color>";
  inherits: true;
  initial-value: #fef1bb;
}

@property --clr-2 {
  syntax: "<color>";
  inherits: true;
  initial-value: #f7d46a;
}

@property --clr-3 {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffae3b;
}

@property --clr-4 {
  syntax: "<color>";
  inherits: true;
  initial-value: #f8c86d;
}

@property --clr-5 {
  syntax: "<color>";
  inherits: true;
  initial-value: #fff1b0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  background:
    radial-gradient(circle at top, rgba(71, 98, 110, 0.14), transparent 28%),
    radial-gradient(circle at center, rgba(31, 46, 53, 0.3), transparent 42%),
    linear-gradient(180deg, #050708 0%, #0b1115 42%, #120f0c 100%);
  color: var(--text);
}

.landingPage {
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
}

.heroShell {
  position: relative;
  min-height: 560px;
  display: grid;
  /* Wider rail so Stripe pricing cards (and product images) keep a sane aspect ratio in vertical layout. */
  grid-template-columns: minmax(300px, 380px) minmax(300px, 1fr) minmax(220px, 280px);
  align-items: start;
  gap: 24px;
  padding: 40px 24px 24px;
  border-radius: 32px;
  border: 1px solid rgba(255, 221, 166, 0.08);
  background:
    radial-gradient(circle at center 30%, rgba(244, 188, 96, 0.22), rgba(84, 60, 35, 0.14) 24%, rgba(18, 16, 14, 0.92) 58%),
    radial-gradient(circle at center bottom, rgba(255, 170, 73, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(15, 17, 19, 0.98) 0%, rgba(10, 11, 13, 0.98) 100%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.45), 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.raidDrop {
  --raid-success-x: 0px;
  --gradient-glow: var(--clr-1), var(--clr-2), var(--clr-3), var(--clr-4), var(--clr-5), var(--clr-1);
  position: absolute;
  left: auto;
  right: clamp(232px, 21vw, 312px);
  bottom: 18px;
  width: min(420px, 38vw);
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--raid-success-x), -1100px, 0) rotate(-10deg) scale(0.92);
  transform-origin: center top;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.38));
}

.raidDrop::before,
.raidDrop::after {
  content: "";
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.raidDrop::before {
  inset: 4.5% 5% 4.5% 5%;
  z-index: 0;
  border-radius: 28px;
  background: linear-gradient(rgba(35, 21, 10, 0.96) 0 0) padding-box,
    conic-gradient(from var(--glow-deg), var(--gradient-glow)) border-box;
  border: 3px solid transparent;
  filter: blur(0.9rem);
  transform: scale(1.02, 1);
  transform-origin: center center;
}

.raidDrop::after {
  inset: 1.5% 2% 1.5% 2%;
  z-index: 0;
  border-radius: 34px;
  background: conic-gradient(from var(--glow-deg), var(--gradient-glow));
  filter: blur(1.1rem);
  transform: scale(1.03, 1.01);
  transform-origin: center center;
}

.raidDropSuccess {
  --gradient-glow: var(--clr-1), var(--clr-2), var(--clr-3), var(--clr-4), var(--clr-5), var(--clr-1);
}

.raidDropFail {
  --gradient-glow: #2d123a, #4d1d72, #6e32a8, #3c164f, #1c0e29, #2d123a;
}

.raidDropUnknown {
  --gradient-glow: #090909, #232323, #4a4a4a, #1b1b1b, #5d5d5d, #090909;
}

.raidDropActive {
  pointer-events: auto;
  animation: raidSuccessDrop 1200ms cubic-bezier(0.2, 0.82, 0.24, 1) forwards;
}

.raidDropActive::before,
.raidDropActive::after {
  opacity: 1;
  animation: raidSuccessGlowReveal 1200ms ease forwards, glow 10s 1200ms linear infinite;
}

.raidDropActive::after {
  animation: raidSuccessGlowReveal 1200ms ease forwards, raidSuccessGlowPulse 2200ms 1200ms ease-in-out infinite alternate, glow 10s 1200ms linear infinite;
}

.raidDropImage {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
}

.raidDropAvatarFrame {
  position: absolute;
  z-index: 1;
  width: 16.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(-10deg);
  box-shadow: 0 0 0 6px rgba(39, 20, 11, 0.7), 0 8px 16px rgba(0, 0, 0, 0.3);
  background: rgba(34, 22, 18, 0.9);
}

.raidDropAvatarFrameSuccess {
  left: 50.1953125%;
  top: 24.0885417%;
}

.raidDropAvatarFrameFail {
  left: 49.4140625%;
  top: 30.859375%;
}

.raidDropAvatarFrameUnknown {
  left: 52.9296875%;
  top: 49.8697917%;
}

.raidDropAvatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heroShell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.84), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.84), transparent 30%),
    radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.88), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.88), transparent 28%),
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.28) 100%);
}

.heroShell::after {
  content: "";
  position: absolute;
  inset: -4% -8% auto;
  height: 82%;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/CodeKraken.png") center top / min(1300px, 120vw) no-repeat;
  opacity: 0.18;
  filter: blur(6px) saturate(0.9);
}

.heroCenterWrap {
  position: relative;
  z-index: 3;
  align-self: start;
  justify-self: center;
  width: 100%;
  padding-top: 24px;
  padding-bottom: 500px;
  min-height: 0;
}

.heroKraken {
  width: min(940px, 82vw);
  max-width: 100%;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  opacity: 0.96;
}

.heroCenter {
  position: relative;
  max-width: 680px;
  margin: -35px auto 0;
  text-align: center;
  color: #f4e6d0;
}

.countdownBar {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 18px;
  border-radius: 18px;
  background: rgba(20, 16, 12, 0.72);
  border: 1px solid rgba(255, 221, 166, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.countdownLabel {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 230, 208, 0.7);
}

.countdownValue {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffd6a1;
}

.eyebrow {
  margin: 0 0 10px;
  color: #f3ae65;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.heroCopy {
  max-width: 620px;
  margin: 12px auto 20px;
  color: rgba(244, 230, 208, 0.78);
  font-size: 1.05rem;
  text-align: center;
}

.heroJoin {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.heroJoin input {
  min-width: min(320px, 72vw);
  padding: 16px 18px;
  font-size: 1rem;
}


.landingStatus {
  min-height: 0;
  margin: 0 0 10px;
  color: rgba(244, 230, 208, 0.72);
  text-align: center;
  white-space: normal;
}

.landingStatusLine,
.landingStatusHaul,
.landingStatusReturn {
  display: block;
}

.landingStatusLine {
  margin-bottom: 4px;
}

.landingStatusHaul {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffd9b0;
}

.landingStatusHaulCount {
  color: #f3ae65;
  font-size: 1.28em;
}

.landingStatusReturn {
  margin-top: 4px;
}

.landingStatusReturnLine {
  display: block;
  font-size: 0.94rem;
  color: rgba(244, 230, 208, 0.82);
}

.landingStatusReturnDate {
  font-size: 1.04rem;
  font-weight: 700;
  color: #f3ae65;
}

.landingStatusReturnBadge {
  display: inline-block;
  margin: 6px 0 4px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff6ea;
  background: linear-gradient(180deg, rgba(239, 136, 54, 0.95), rgba(184, 82, 24, 0.94));
  border: 1px solid rgba(255, 220, 179, 0.28);
  box-shadow: 0 10px 20px rgba(116, 46, 10, 0.28);
  transform: rotate(-2deg);
}

.landingDialogue {
  max-width: 560px;
  min-height: 72px;
  margin: 0 auto 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(24, 18, 14, 0.72);
  border: 1px solid rgba(255, 221, 166, 0.18);
  color: #ffd9b0;
  line-height: 1.45;
  text-align: center;
  white-space: pre-line;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.heroActions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Primary treasure CTA — matches native <button> gradient + hero join sizing */
.treasureButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  min-height: 54px;
  padding: 16px 22px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(180deg, #e99148, #cf6f1c);
  color: #fff9f0;
  box-shadow: 0 10px 24px rgba(196, 111, 39, 0.22);
  cursor: pointer;
  margin-right: 8px;
}

a.treasureButton:visited {
  color: #fff9f0;
}

.treasureButton:hover {
  transform: translateY(-1px);
}

.ghostButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: #f4e6d0;
  border: 1px solid rgba(255, 221, 166, 0.16);
  box-shadow: none;
}

.backButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  text-decoration: none;
  background: linear-gradient(180deg, #f4b36e, #d97b27);
  color: #fff9f0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(196, 111, 39, 0.18);
}

.heroForegroundWrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1200px, 120vw);
  max-width: none;
  z-index: 2;
  pointer-events: none;
}

.heroForeground {
  display: block;
  width: 100%;
  max-width: none;
  filter: drop-shadow(0 -8px 24px rgba(0, 0, 0, 0.28));
}

.heroSkeletonSpeech {
  position: absolute;
  left: 1%;
  bottom: 83%;
  max-width: min(280px, 28vw);
  padding: 16px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(248, 230, 196, 0.97));
  border: 3px solid rgba(109, 72, 46, 0.34);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.26),
    inset 0 -8px 14px rgba(189, 138, 84, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.65);
  color: #402922;
  z-index: 3;
  opacity: 0;
  transform: translate3d(0, 12px, 0) rotate(-1.8deg) scale(0.96);
  transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
}

.heroSkeletonSpeech::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px dashed rgba(132, 84, 47, 0.24);
  opacity: 0.7;
}

.heroSkeletonSpeech::after {
  content: "";
  position: absolute;
  right: 44px;
  bottom: -10px;
  width: 14px;
  height: 14px;
  background: rgba(241, 219, 183, 0.98);
  border-right: 3px solid rgba(109, 72, 46, 0.34);
  border-bottom: 3px solid rgba(109, 72, 46, 0.34);
  transform: rotate(45deg);
}

.heroSkeletonSpeechVisible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(-1.8deg) scale(1);
  animation: heroSpeechFloat 5s ease-in-out infinite;
}

.heroSkeletonSpeech p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

@keyframes heroSpeechFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-1.8deg) scale(1);
  }
  50% {
    transform: translate3d(0, -4px, 0) rotate(-0.6deg) scale(1.01);
  }
}

.sectionHeading h2,
.sectionHeading p {
  margin: 0;
}

.sectionHeading h2 {
  color: #ffd2aa;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.sectionHeading p {
  color: rgba(248, 230, 206, 0.9);
  margin-top: 6px;
  line-height: 1.45;
}

.supportWidgetPanel,
.lootPanel {
  position: relative;
  z-index: 3;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 18px 14px;
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(255, 221, 166, 0.1);
  backdrop-filter: blur(10px);
}

.heroShell .stripeHeroPanel {
  /* Full height of embed: page scrolls; avoid a short inner viewport that hides lower tiers. */
  overflow: visible;
}

.heroShell .stripeHeroPanel .stripePricingTableWrap {
  min-height: 520px;
  justify-content: flex-start;
  overflow: visible;
}

/* Let the column width drive layout so Stripe’s table can stack plans vertically. */
.heroShell .stripeHeroPanel .stripePricingTablePanel {
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
}

.heroShell .stripeHeroPanel .stripePricingTablePanel stripe-pricing-table {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.stripePricingTableWrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 760px;
  background: #050505;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  padding: 14px;
}

.stripePricingTablePanel {
  width: min(1120px, 100%);
  background: #050505;
  border-radius: 16px;
  padding: 0;
  overflow-x: auto;
}

.stripePricingTablePanel stripe-pricing-table {
  display: block;
  width: 100%;
  min-width: 980px;
  max-width: none;
}

.healthDetails {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(32, 24, 19, 0.86);
  color: #f4e6d0;
  overflow-x: auto;
}

.rewardCard {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 247, 235, 0.92);
  border: 1px solid rgba(106, 72, 53, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rewardCard h3,
.rewardCard p {
  margin: 0;
}

.rewardCard h3 {
  color: #47342f;
  font-size: 1rem;
}

.rewardCard p {
  margin-top: 4px;
  color: #6b5850;
  font-size: 0.92rem;
}

.rewardPlace {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5637;
}

.rewardCoin {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.rewardCoinCorner {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 81px;
  height: 81px;
}

.podiumCoinCorner {
  width: 81px;
  height: 81px;
}

.podiumState {
  padding-right: 42px;
}

.podiumChestCount {
  color: #8a5f3a;
  font-weight: 700;
}

.podiumCardPlaceholder {
  opacity: 0.92;
  border-style: dashed;
}

.podiumChestPlaceholder {
  color: #9d846f;
}

.othersPanel {
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 221, 166, 0.12);
}

.othersSummary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  color: #f2dfc1;
  font-weight: 700;
}

.othersSummary::-webkit-details-marker {
  display: none;
}

.othersHint::before {
  content: "Open";
  color: rgba(244, 230, 208, 0.68);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.othersPanel[open] .othersHint::before {
  content: "Close";
}

.otherStatesList {
  max-height: 220px;
  margin-top: 12px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.otherStateRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 247, 235, 0.92);
  border: 1px solid rgba(106, 72, 53, 0.1);
}

.otherStateName {
  color: #47342f;
  font-weight: 700;
}

.otherStateChests {
  color: #8a5f3a;
  font-weight: 700;
}

.rewardGold .rewardPlace {
  color: #7a5b10;
}

.rewardSilver .rewardPlace {
  color: #59616b;
}

.rewardBronze .rewardPlace {
  color: #7a4528;
}

.raiderMarqueeSection {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(8, 8, 9, 0.94);
  border: 1px solid rgba(255, 221, 166, 0.08);
  backdrop-filter: blur(10px);
}

.raiderMarqueeSection .sectionHeading p {
  margin-top: 2px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.formRaidMetaSection .formCountdownRow {
  margin-top: 8px;
}

.formRaidMetaSection .formRaidAllTime {
  margin-top: 14px;
}

.formPlayersRaidersRail.raidersRail {
  min-height: 200px;
  height: min(480px, calc(100vh - 280px));
  max-height: min(480px, calc(100vh - 280px));
  flex: 0 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, black 4%, black 96%, transparent 100%);
}

.formControlPage.container {
  max-width: min(1240px, calc(100% - 32px));
}

.formPlayersToolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.formPlayersSearchInput {
  flex: 1;
  min-width: 160px;
}

.formPlayersWorkspace {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(280px, 1fr) minmax(260px, 300px);
  gap: 16px;
  align-items: start;
}

.formPlayersRailCol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 12px;
  align-self: start;
  max-height: calc(100vh - 24px);
}

.formPlayersRailTitle {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.formPlayersRailLede {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
  text-align: left;
}

.formPlayersRailActions {
  margin: 0;
}

.formPlayersRailActions .button {
  margin-right: 0;
}

.formPlayersListCol {
  min-width: 0;
}

.formPlayersGrid.playerGrid {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
  margin: 0;
}

.formPlayerDetailAside {
  display: none;
  width: 100%;
  justify-self: end;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 239, 228, 0.95));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

@media (max-width: 960px) {
  .formPlayersWorkspace {
    grid-template-columns: 1fr;
  }

  .formPlayersRailCol {
    position: static;
    max-height: none;
  }

  .formPlayersRaidersRail.raidersRail {
    max-height: 360px;
    height: auto;
    min-height: 240px;
  }

  .formPlayerDetailAside {
    justify-self: stretch;
  }
}

.raidersRail {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  height: 1260px;
  min-height: 1260px;
  max-height: 1260px;
  mask-image: linear-gradient(180deg, transparent 0%, black 7%, black 93%, transparent 100%);
}

.raidersTrack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.raidersTrackAuto {
  animation: raidersSail 48s linear infinite;
}

.raidersRail:hover .raidersTrackAuto {
  animation-play-state: paused;
}

.raiderCard {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 250, 240, 0.88);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.raiderCardActive {
  border-color: rgba(217, 123, 39, 0.5);
  box-shadow: 0 10px 30px rgba(217, 123, 39, 0.14);
}

.raiderCard:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.raiderAvatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(233, 145, 72, 0.2);
  background: #f3e4d4;
  flex: 0 0 auto;
}

.raiderMeta h3 {
  margin: 0;
  font-size: 1rem;
}

.raiderMeta p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.container {
  max-width: 1040px;
  margin: 28px auto;
  padding: 28px;
  background: var(--panel);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(103, 78, 56, 0.14);
  backdrop-filter: blur(14px);
}

h1 {
  text-align: center;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: 0.02em;
}

.lede {
  margin: 10px auto 28px;
  max-width: 700px;
  text-align: center;
  color: var(--muted);
}

section {
  margin-bottom: 20px;
  background: var(--panel-strong);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
}

section h2,
section h3,
.redeemGroup h4 {
  margin-top: 0;
}

button,
input {
  --radius: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-size: 0.95rem;
  padding: 10px 14px;
}

button {
  cursor: pointer;
  margin-right: 8px;
  background: linear-gradient(180deg, #e99148, #cf6f1c);
  color: #fff9f0;
  border: none;
  box-shadow: 0 10px 24px rgba(196, 111, 39, 0.22);
}

button:hover {
  transform: translateY(-1px);
}

.summaryBar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.summaryBar span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7d4c22;
  font-weight: 600;
}

.announcementPreviewPanel {
  margin: 0 0 20px;
}

.announcementPreviewPanel h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.announcementPreviewControls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 12px;
}

.announcementPreviewControls label {
  font-weight: 600;
}

.announcementPreviewControls select {
  min-width: 12rem;
  max-width: 100%;
}

.codeAnnouncements {
  display: grid;
  gap: 16px;
  margin: 0 0 20px;
}

.codeAnnouncementCard {
  padding: 16px;
  border: 1px solid rgba(44, 62, 80, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.codeAnnouncementTitle {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.codeAnnouncementBlock + .codeAnnouncementBlock {
  margin-top: 12px;
}

.codeAnnouncementBlockHeader {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
}

.codeAnnouncementActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.codeAnnouncementText {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f7f3ec;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Form page — player stats dashboard */
.formPlayerStatsToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.formPlayerStatsStatus {
  font-size: 0.88rem;
  color: var(--muted);
}

.formPlayerStatsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.formStatCard {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 239, 228, 0.92));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
}

.formStatCardTitle {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5c4037;
}

.formStatCardBody {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.95rem;
  color: var(--text);
}

.formStatEmphasis {
  font-weight: 700;
}

.formStatFree {
  color: #1a5f32;
}

.formStatPaid {
  color: #0d47a1;
}

.formStatCardValue {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: #3e2723;
  line-height: 1.1;
}

.formStatCardHint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.formStatCardMeta {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.35;
}

.formStatCardCompact .formStatCardTitle {
  font-size: 0.76rem;
}

.formStatCardValueSm {
  font-size: 1.35rem;
}

.formPlayerStatsSecondaryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

  border-color: rgba(180, 83, 9, 0.55);
  box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.12);
}

.inlineCode {
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(71, 52, 47, 0.08);
  padding: 0 4px;
  border-radius: 4px;
}

.formPlayerStatsSummary {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.playerGrid,
.profileGrid {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.playerGrid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.playerCard,
.profileCard {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,239,228,0.92));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.playerCard:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(233, 145, 72, 0.2);
  transform: translateY(-2px);
}

.playerCard.active {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(233, 145, 72, 0.12), rgba(247,239,228,0.95));
  box-shadow: 0 0 0 2px rgba(233, 145, 72, 0.3);
}

.playerCard,
.profileHeader {
  display: flex;
  gap: 14px;
  align-items: center;
}

.playerAvatar,
.profileAvatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid rgba(233, 145, 72, 0.24);
  flex: 0 0 auto;
  background: #f3e4d4;
}

.playerAvatarFallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--muted);
}

.playerBody h3,
.playerBody p,
.profileMeta h3,
.profileMeta p {
  margin: 0 0 6px;
}

.townCenterLine {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.playerId {
  color: var(--muted);
}

.playerLevelIcon,
.profileLevelIcon {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  margin-left: 6px;
}

.codeAccordions,
.redeemColumns {
  display: grid;
  gap: 16px;
}

.codeAccordions {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.codeAccordion,
.redeemColumn {
  background: #fffdf8;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 14px;
}

.redeemDetailPanel {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px;
}

.redeemDetailPanel + .redeemDetailPanel {
  margin-top: 12px;
}

.redeemDetailSummary,
.redeemBlockedSummary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.redeemDetailSummary::-webkit-details-marker,
.redeemBlockedSummary::-webkit-details-marker {
  display: none;
}

.redeemDetailCount,
.redeemBlockedCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7d4c22;
  font-size: 0.85rem;
}

.redeemDetailBody,
.redeemBlockedList {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.codeAccordionSummary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.codeAccordionSummary::-webkit-details-marker {
  display: none;
}

.codeCount {
  min-width: 2rem;
  padding: 4px 10px;
  border-radius: 999px;
  text-align: center;
  color: white;
  font-size: 0.85rem;
}

.codeCountActive {
  background: #4aa36b;
}

.codeCountInactive {
  background: #bb6d57;
}

.codeList {
  display: grid;
  gap: 10px;
}

.codeItem {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.codeItemActive {
  border-left: 5px solid #4aa36b;
}

.codeItemInactive {
  border-left: 5px solid #bb6d57;
  opacity: 0.86;
}

.codeSource {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.redeemSummary {
  margin-top: 14px;
}

.redeemProgress {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #fffdf8;
  border: 1px solid var(--border);
}

.redeemProgressBar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(217, 123, 39, 0.14);
}

.redeemProgressFill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3ae65 0%, #cf6f1c 100%);
  transition: width 220ms ease;
}

.redeemProgressLabel,
.redeemProgressStats {
  margin: 0;
}

.redeemProgressLabel {
  font-weight: 700;
  color: #7d4c22;
}

.redeemProgressStats {
  color: var(--muted);
}

.redeemBlockedPanel {
  margin-top: 14px;
  background: #fffdf8;
}

.redeemBlockedCount {
  background: rgba(187, 109, 87, 0.14);
  color: #9d4f3d;
}

.landingSummary {
  margin: 18px auto 0;
  max-width: 760px;
  text-align: left;
}

.lootStream {
  position: relative;
  flex: 0 0 auto;
  min-height: 500px;
  overflow: hidden;
}

.raidCount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 248, 238, 0.9);
  border: 1px solid rgba(217, 123, 39, 0.18);
  color: var(--text);
}

.raidCountLabel {
  font-weight: 700;
}

.raidCountValue {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #cf6f1c;
}

.raidCountValueSecondary {
  font-size: 1.45rem;
  color: #b85a14;
}

.raidCountActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 12px;
  justify-content: center;
}

.raidCountActions .treasureButton {
  margin-right: 0;
}

.landingCodesMonthPanel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 248, 238, 0.9);
  border: 1px solid rgba(217, 123, 39, 0.18);
  color: var(--text);
}

.landingCodesMonthPanel .raidCount.landingCodesMonthStat {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.landingCodesMonthByline {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--muted);
}

.podiumPanel {
  display: grid;
  gap: 12px;
}

.podium {
  display: grid;
  gap: 10px;
}

.podiumCard {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 248, 238, 0.92);
  border: 1px solid rgba(217, 123, 39, 0.14);
}

.podiumCard h3,
.podiumCard p {
  margin: 0;
}

.podiumCard p {
  margin-top: 4px;
  color: var(--muted);
}

.podiumMedal {
  display: inline-flex;
  padding: 4px 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.podium1 .podiumMedal {
  background: linear-gradient(180deg, #f7d676, #d8a322);
  color: #4f3600;
}

.podium2 .podiumMedal {
  background: linear-gradient(180deg, #d8dde4, #a3acb8);
  color: #303846;
}

.podium3 .podiumMedal {
  background: linear-gradient(180deg, #d9a07b, #a46031);
  color: #45210f;
}

.lootCard {
  position: relative;
  margin-bottom: 14px;
  padding: 14px 16px 12px;
  border-radius: 18px;
  background: rgba(255, 248, 238, 0.92);
  border: 1px solid rgba(217, 123, 39, 0.18);
  color: var(--text);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  animation: lootFloat 8s ease-in infinite;
}

.lootCard h3 {
  margin: 10px 0 0;
  font-size: 1rem;
}

.lootMeta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.lootCardEscape {
  background: rgba(43, 27, 19, 0.78);
  border-color: rgba(255, 184, 107, 0.22);
  color: #f5ddbc;
}

.lootStamp {
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid #cf6f1c;
  color: #cf6f1c;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.lootStampEscape {
  border-color: #f3ae65;
  color: #f3ae65;
}

@keyframes raidersSail {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-50% - 6px));
  }
}

@keyframes lootFloat {
  0% {
    transform: translateY(120px);
    opacity: 0;
  }
  12% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(-18px);
    opacity: 1;
  }
  100% {
    transform: translateY(-140px);
    opacity: 0;
  }
}

@keyframes raidSuccessDrop {
  0% {
    opacity: 0;
    transform: translate3d(var(--raid-success-x), -1100px, 0) rotate(-10deg) scale(0.92);
  }
  12% {
    opacity: 1;
    transform: translate3d(var(--raid-success-x), -860px, 0) rotate(-8deg) scale(0.96);
  }
  72% {
    opacity: 1;
    transform: translate3d(var(--raid-success-x), 0, 0) rotate(0deg) scale(1);
  }
  83% {
    opacity: 1;
    transform: translate3d(var(--raid-success-x), -24px, 0) rotate(1deg) scale(1.01);
  }
  93% {
    opacity: 1;
    transform: translate3d(var(--raid-success-x), 0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(var(--raid-success-x), 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes glow {
  100% {
    --glow-deg: 270deg;
  }
}

@keyframes raidSuccessGlowReveal {
  0% {
    opacity: 0;
  }
  72% {
    opacity: 0;
  }
  84% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

@keyframes raidSuccessGlowPulse {
  0% {
    filter: blur(1rem);
  }
  100% {
    filter: blur(1.35rem);
  }
}

.debugPanel {
  margin-top: 14px;
  background: #fffdf8;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 14px;
}

.debugPanel summary {
  cursor: pointer;
  font-weight: 700;
}

.debugPanel pre {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #f7f0e6;
  color: var(--text);
  overflow: auto;
}

.redeemGroup {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px;
  margin-bottom: 10px;
}

.redeemFailure {
  border-left: 5px solid #bb6d57;
}

.emptyState {
  color: var(--muted);
  margin: 0;
}

.siteFooter {
  position: relative;
  z-index: 3;
  margin-top: 18px;
  padding: 16px 18px 6px;
  text-align: center;
}

.siteFooterNav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 10px;
}

.siteFooterNav a {
  color: rgba(244, 230, 208, 0.78);
  text-decoration: none;
  font-weight: 600;
}

.siteFooterNav a:hover {
  color: #ffd9b0;
}

.siteFooterDiscordLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.siteFooterDiscordIcon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.92;
}

.siteFooterNav a.siteFooterDiscordLink:hover .siteFooterDiscordIcon {
  opacity: 1;
}

.infoSection h3#discord {
  scroll-margin-top: 12px;
}

.siteFooterCopy {
  margin: 0;
  color: rgba(244, 230, 208, 0.56);
  font-size: 0.92rem;
}

.infoPage {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(71, 98, 110, 0.14), transparent 28%),
    radial-gradient(circle at center, rgba(31, 46, 53, 0.3), transparent 42%),
    linear-gradient(180deg, #050708 0%, #0b1115 42%, #120f0c 100%);
}

.infoShell {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 221, 166, 0.08);
  background:
    radial-gradient(circle at center 20%, rgba(244, 188, 96, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(15, 17, 19, 0.98) 0%, rgba(10, 11, 13, 0.98) 100%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.35), 0 24px 70px rgba(0, 0, 0, 0.35);
  color: #f4e6d0;
}

.infoTopBar {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.infoHero {
  text-align: center;
  margin-bottom: 20px;
}

.infoHero .heroCopy {
  color: rgba(244, 230, 208, 0.78);
}

.infoNav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
}

.infoNav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.1);
  border: 1px solid rgba(255, 221, 166, 0.18);
  color: #ffd9b0;
  text-decoration: none;
  font-weight: 700;
}

.infoSection {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 221, 166, 0.12);
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255, 248, 238, 0.94);
  border: 1px solid rgba(217, 123, 39, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.infoSection:first-of-type {
  border-top: 0;
}

.infoSection h2 {
  margin: 0 0 12px;
  color: #d89250;
}

.infoSection h3 {
  margin: 18px 0 8px;
  color: #c07030;
}

.infoSection p {
  margin: 0 0 12px;
  color: #6f5a4f;
  line-height: 1.55;
}

.infoSection ul,
.infoSection ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

.infoSupportPortalWrap {
  margin: 18px 0 0;
  text-align: center;
}

.infoSupportPortalButton {
  font-weight: 700;
  min-width: min(100%, 280px);
}

.infoSection li {
  color: #6f5a4f;
  line-height: 1.55;
  margin-bottom: 6px;
}

.infoFaqList {
  display: grid;
  gap: 12px;
}

.infoFaqItem {
  border-radius: 16px;
  border: 1px solid rgba(217, 123, 39, 0.12);
  background: rgba(255, 252, 246, 0.9);
  padding: 14px 16px;
}

.infoFaqItem summary {
  cursor: pointer;
  font-weight: 700;
  color: #d89250;
}

.infoFaqItem p {
  margin: 12px 0 0;
  color: #6f5a4f;
}

.infoFooter {
  margin-top: 12px;
  padding-bottom: 0;
}

.subscribedPage {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(71, 98, 110, 0.14), transparent 28%),
    radial-gradient(circle at center, rgba(31, 46, 53, 0.3), transparent 42%),
    linear-gradient(180deg, #050708 0%, #0b1115 42%, #120f0c 100%);
}

.subscribedShell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(255, 221, 166, 0.08);
  background:
    radial-gradient(circle at center 18%, rgba(244, 188, 96, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(15, 17, 19, 0.98) 0%, rgba(10, 11, 13, 0.98) 100%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.35), 0 24px 70px rgba(0, 0, 0, 0.35);
  color: #f4e6d0;
}

.subscribedHero {
  text-align: center;
  padding: 26px 24px 28px;
  margin-bottom: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.98), rgba(250, 239, 221, 0.95));
  border: 1px solid rgba(217, 123, 39, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  color: #47342f;
}

.subscribedHeroImage {
  display: block;
  width: min(100%, 560px);
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.12));
}

.subscribedMark {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.subscribedMarkRing {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 3px solid rgba(79, 178, 110, 0.5);
  box-shadow: 0 0 0 12px rgba(79, 178, 110, 0.1);
}

.subscribedMarkTick {
  position: relative;
  font-size: 3rem;
  font-weight: 800;
  color: #3fa163;
}

.subscribedActions {
  justify-content: center;
}

.subscribedHero .eyebrow {
  color: #d97b27;
}

.subscribedHero h1 {
  color: #47342f;
}

.subscribedHero .heroCopy {
  color: #6f5a4f;
}

.subscribedSummaryPanel {
  margin-top: 10px;
}

.subscribedSummaryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.subscribedCard {
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255, 248, 238, 0.94);
  border: 1px solid rgba(217, 123, 39, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  color: #47342f;
}

.subscribedCard h2 {
  margin: 0 0 12px;
  color: #d89250;
}

.subscribedCard p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.subscribedCardHighlight {
  background: linear-gradient(180deg, rgba(255, 247, 235, 0.98), rgba(252, 239, 220, 0.95));
}

.subscribedCardWarning {
  background: linear-gradient(180deg, rgba(255, 244, 240, 0.98), rgba(255, 234, 226, 0.94));
}

.subscribedCardWide {
  grid-column: 1 / -1;
}

.subscribedEditorPanel {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.86);
  border: 1px solid rgba(217, 123, 39, 0.12);
}

.subscribedEditorLabel {
  display: block;
  margin-bottom: 10px;
  color: #6f5a4f;
  font-weight: 700;
}

.subscribedPlayerInput {
  width: 100%;
  min-height: 96px;
  padding: 14px 16px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(111, 90, 79, 0.22);
  background: rgba(255, 253, 250, 0.98);
  color: #47342f;
  font: inherit;
  line-height: 1.5;
}

.subscribedPlayerInput:focus {
  outline: none;
  border-color: rgba(217, 123, 39, 0.5);
  box-shadow: 0 0 0 4px rgba(217, 123, 39, 0.12);
}

.subscribedEditorActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.subscribedCard .ghostButton {
  background: rgba(255, 249, 240, 0.98);
  color: #5b463d;
  border: 1px solid rgba(91, 70, 61, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.subscribedCard .ghostButton:hover {
  background: rgba(252, 243, 229, 1);
  border-color: rgba(91, 70, 61, 0.42);
  color: #47342f;
}

#subscribedManifestStatus {
  margin-top: 12px;
  color: #6f5a4f;
}

.subscribedList {
  margin: 12px 0 0;
  padding-left: 18px;
}

.subscribedList li {
  margin: 6px 0;
}

#subscribedPlayerValidation {
  display: grid;
  gap: 14px;
}

.subscribedValidationGrid {
  display: grid;
  gap: 14px;
}

.subscribedRaiderCard {
  cursor: default;
  align-items: flex-start;
  background: rgba(255, 252, 246, 0.96);
}

.subscribedRaiderCard:hover {
  transform: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.subscribedInlineActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.subscribedInlineButton {
  min-width: 0;
}

.subscribedUndoNotice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(244, 248, 238, 0.96);
  border: 1px solid rgba(113, 146, 92, 0.22);
  color: #41553a;
}

.subscribedPlayerCard {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(217, 123, 39, 0.12);
  background: rgba(255, 252, 246, 0.92);
}

.subscribedPlayerCardFound {
  border-color: rgba(74, 163, 107, 0.28);
  background: linear-gradient(180deg, rgba(245, 255, 249, 0.98), rgba(237, 250, 242, 0.95));
}

.subscribedPlayerCardMissing {
  border-color: rgba(187, 109, 87, 0.24);
  background: linear-gradient(180deg, rgba(255, 247, 244, 0.98), rgba(255, 240, 235, 0.95));
}

.subscribedPlayerAvatar,
.subscribedPlayerAvatarFallback {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  background: #f3e4d4;
  border: 2px solid rgba(217, 123, 39, 0.15);
}

.subscribedPlayerAvatarFallback {
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #847067;
}

.subscribedPlayerMeta h3 {
  margin: 0 0 8px;
  color: #47342f;
}

.subscribedPlayerHeadingRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.subscribedPlayerHeadingRow h3 {
  margin: 0;
}

.subscribedSourceBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(217, 123, 39, 0.12);
  color: #a85f22;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.subscribedSourceBadgeMuted {
  background: rgba(111, 90, 79, 0.1);
  color: #6f5a4f;
}

.subscribedPlayerMeta p {
  margin: 0 0 6px;
}

.subscribedConfirmPanel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(217, 123, 39, 0.14);
}

.subscribedConfirmPanel p {
  margin: 0 0 12px;
}

.subscribedConfirmError {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 241, 235, 0.98);
  border: 1px solid rgba(187, 109, 87, 0.22);
  color: #a14a32;
}

.subscribedDuplicateWarning {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 241, 235, 0.92);
  border: 1px solid rgba(187, 109, 87, 0.2);
  color: #9d4c34;
}

.subscribedOutcomeGrid {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(220px, 0.9fr) minmax(220px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.subscribedOutcomeStage {
  display: grid;
  gap: 12px;
  align-self: start;
  position: relative;
  z-index: 4;
}

.subscribedOutcomeHero {
  position: relative;
  isolation: isolate;
  z-index: 2;
}

.subscribedOutcomeSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: #6f5a4f;
  font-weight: 700;
}

.subscribedOutcomeSignal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 10px;
}

.subscribedOutcomeSignalBadge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7a04f, #d66f16);
  color: #fff8ef;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(214, 111, 22, 0.22);
}

.subscribedOutcomeSignalDots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.subscribedOutcomeSignalDots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(214, 111, 22, 0.82);
  animation: subscribedSignalPulse 1.2s ease-in-out infinite;
}

.subscribedOutcomeSignalDots span:nth-child(2) {
  animation-delay: 0.15s;
}

.subscribedOutcomeSignalDots span:nth-child(3) {
  animation-delay: 0.3s;
}

.subscribedOutcomeStatus {
  min-height: 1.6em;
  color: #7b5f4e;
  font-weight: 700;
}

.subscribedOutcomeDropWrap {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: visible;
  z-index: 5;
}

.subscribedOutcomeDrop {
  position: absolute;
  left: 0%;
  right: auto;
  bottom: -40%;
  width: min(420px, 100%);
  z-index: 12;
  transform: translate3d(-100%, -980px, 0) rotate(-10deg) scale(0.92);
}

.subscribedOutcomeActions {
  margin-top: 18px;
  justify-content: center;
}

.subscribedReturnButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #e99148, #cf6f1c);
  color: #fff9f0;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(196, 111, 39, 0.22);
  cursor: pointer;
}

.subscribedReturnButton:hover {
  transform: translateY(-1px);
}

.subscribedCrewRail,
.subscribedLootStream {
  min-height: 220px;
}

.subscribedCrewRail {
  overflow: visible;
  height: auto;
  min-height: auto;
  max-height: none;
  mask-image: none;
}

.subscribedCrewTrack {
  display: grid;
  gap: 12px;
}

.subscribedCrewCard {
  position: relative;
  cursor: default;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.subscribedCrewCard:hover {
  transform: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.subscribedCrewCardActive {
  border-color: #df7f2b;
  border-width: 2px;
  background: linear-gradient(180deg, rgba(255, 245, 225, 0.99) 0%, rgba(255, 232, 198, 0.98) 100%);
  box-shadow: 0 0 0 4px rgba(223, 127, 43, 0.16), 0 20px 34px rgba(191, 117, 53, 0.22);
  transform: translateY(-4px);
}

.subscribedCrewCardBadge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7a04f, #d66f16);
  color: #fff7ed;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 18px rgba(214, 111, 22, 0.28);
}

@keyframes subscribedSignalPulse {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.85);
  }

  40% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 960px) {
  .heroShell {
    grid-template-columns: 1fr;
    padding: 24px 16px 160px;
    min-height: auto;
    overflow: visible;
  }

  .heroShell .heroCenterWrap {
    order: 1;
    padding-bottom: clamp(180px, 42vw, 320px);
  }

  .heroShell .lootPanel {
    order: 2;
  }

  .heroShell .stripeHeroPanel {
    order: 3;
    max-height: none;
    overflow-y: visible;
  }

  .heroShell .stripeHeroPanel .stripePricingTableWrap {
    min-height: 760px;
  }

  .raidDrop {
    --raid-success-x: -50%;
    left: 50%;
    bottom: 88px;
    width: min(460px, 86vw);
    transform: translate3d(var(--raid-success-x), -920px, 0) rotate(-10deg) scale(0.92);
  }

  .heroKraken {
    width: min(520px, 92vw);
  }

  .heroForegroundWrap {
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    bottom: 0;
  }

  .heroForeground {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left bottom;
  }

  .heroSkeletonSpeech {
    left: 2%;
    bottom: 10%;
    max-width: min(220px, 52vw);
    padding: 12px 14px;
  }

  .heroSkeletonSpeech::after {
    top: -10px;
    right: auto;
    left: 36px;
    bottom: auto;
    border-right: none;
    border-bottom: none;
    border-top: 3px solid rgba(109, 72, 46, 0.34);
    border-left: 3px solid rgba(109, 72, 46, 0.34);
    transform: rotate(45deg);
  }

  .lootPanel {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .landingPage {
    padding: 12px;
  }

  .stripePricingTableWrap {
    min-height: 760px;
  }

  .raiderMarqueeSection {
    margin-top: 14px;
    padding: 16px 14px;
  }

  .raiderCard {
    min-width: 220px;
  }

  .subscribedPage {
    padding: 12px;
  }

  .subscribedShell {
    padding: 22px 16px;
  }

  .subscribedPlayerHeadingRow {
    align-items: flex-start;
    flex-direction: column;
  }

  .subscribedEditorActions {
    flex-direction: column;
  }

  .subscribedOutcomeGrid {
    grid-template-columns: 1fr;
  }

  .subscribedOutcomeDropWrap {
    min-height: 280px;
  }

  .subscribedOutcomeDrop {
    width: min(360px, 92%);
    bottom: -40%;
  }

  .container {
    margin: 0;
    border-radius: 0;
    padding: 18px;
  }

  .infoPage {
    padding: 12px;
  }

  .infoShell {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .heroJoin input {
    min-width: 100%;
  }

  .playerCard,
  .profileHeader {
    align-items: flex-start;
  }

  .seoStaticShell {
    padding: 20px 16px;
  }

  .seoStaticHeroArt .seoStaticKrakenMark {
    width: min(200px, 48vw);
  }
}

/* SEO static pages (gift codes, podium) */
.seoStaticPage {
  min-height: 100vh;
  padding: 24px;
}

.seoStaticShell {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 221, 166, 0.12);
  background:
    radial-gradient(circle at top right, rgba(244, 188, 96, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(22, 24, 28, 0.96) 0%, rgba(12, 11, 10, 0.98) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.seoStaticHero {
  text-align: center;
  margin-bottom: 28px;
}

.seoStaticHeroArt {
  margin-bottom: 12px;
}

.seoStaticKrakenMark {
  width: min(240px, 52vw);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  opacity: 0.95;
}

.seoStaticUpdated {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 12px;
}

.seoStaticSection {
  margin-top: 28px;
}

.seoStaticSection h2 {
  margin-bottom: 8px;
}

.seoStaticHint {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.seoCodeList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seoCodeItem {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.seoCodeItem code {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.seoCodeMeta {
  font-size: 0.85rem;
  color: var(--muted);
}

.seoCodeListMuted .seoCodeItem {
  opacity: 0.88;
}

.seoCodeEmpty {
  padding: 14px;
  color: var(--muted);
  font-style: italic;
}

.seoStaticFooter {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.seoPodiumGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .seoPodiumGrid {
    grid-template-columns: 1fr;
  }
}

.seoPodiumCard {
  padding: 20px 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  text-align: center;
}

.seoPodiumRank {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.seoPodiumState {
  font-size: clamp(1.65rem, 5.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 10px;
}

.seoPodiumStat {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--muted);
  margin: 0;
}

.seoRankTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.92rem;
}

.seoRankTable th,
.seoRankTable td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.seoRankTable th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Gift codes page — hero, chips, ship art */
.giftCodesPage .seoStaticShell {
  max-width: 1000px;
}

/* Match landing .heroShell: blurred art in ::after + vignette in ::before */
.giftCodesPage .giftCodesHero,
.podiumPage .podiumHero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 22px 18px 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 221, 166, 0.1);
  background:
    radial-gradient(circle at center 30%, rgba(244, 188, 96, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(15, 17, 19, 0.55) 0%, rgba(10, 11, 13, 0.72) 100%);
}

.giftCodesHero::before,
.podiumHero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.84), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.84), transparent 30%),
    radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.88), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.88), transparent 28%),
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.28) 100%);
}

.giftCodesHero::after {
  content: "";
  position: absolute;
  inset: -6% -12% auto;
  height: 88%;
  min-height: 200px;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/CodeKraken_buriedtreasure.png") center 32% / min(1100px, 130vw) no-repeat;
  opacity: 0.2;
  filter: blur(7px) saturate(0.92);
}

.giftCodesHero > *,
.podiumHero > * {
  position: relative;
  z-index: 2;
}

.giftCodesHeroArt {
  margin: 0 auto 16px;
  max-width: min(720px, 100%);
}

.giftCodesHeroImage {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(280px, 42vw);
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
}

.giftCodesHeroCopy {
  color: rgba(244, 230, 208, 0.82);
}

.giftCodesPage .seoStaticHero h1 {
  color: #ffe8d0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.giftCodesSectionTitle {
  margin: 0 0 8px;
  color: #ffd2aa;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.giftCodesPage .giftCodesSectionTitle {
  scroll-margin-top: 14px;
}

.giftCodesPageNav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 200, 140, 0.18);
  background: rgba(255, 240, 220, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 220, 179, 0.06);
}

.giftCodesPageNavLabel {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 220, 190, 0.55);
}

.giftCodesPageNavList {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.giftCodesPageNavList li {
  display: inline-flex;
  align-items: center;
}

.giftCodesPageNavList li + li::before {
  content: "·";
  margin-right: 10px;
  color: rgba(255, 200, 160, 0.35);
  font-weight: 800;
}

.giftCodesPageNavList a {
  color: #ffd39a;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.giftCodesPageNavList a:hover {
  color: #fff2e6;
  text-decoration: underline;
  text-decoration-color: rgba(255, 200, 150, 0.45);
}

.giftCodesPageNavList a:focus-visible {
  outline: 2px solid rgba(255, 215, 160, 0.85);
  outline-offset: 3px;
  border-radius: 4px;
}

.giftCodesSectionHint {
  margin: 0 0 16px;
  color: rgba(248, 230, 206, 0.9);
  font-size: 0.95rem;
  line-height: 1.45;
}

.giftCodesActiveBlock,
.giftCodesManualBlock {
  padding: 22px 20px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 180, 90, 0.28);
  background:
    radial-gradient(circle at 20% 0%, rgba(239, 136, 54, 0.18), transparent 45%),
    linear-gradient(165deg, rgba(48, 32, 24, 0.92) 0%, rgba(18, 14, 12, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 220, 179, 0.08), 0 12px 32px rgba(0, 0, 0, 0.25);
}

.giftCodesActiveBlock {
  margin-top: 28px;
}

.giftCodesManualBlock {
  margin-top: 32px;
}

.giftCodesActiveRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 280px);
  gap: 20px;
  align-items: start;
}

.giftCodesActiveColumn {
  min-width: 0;
  justify-self: start;
}

.giftCodesActiveList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.giftCodesChip {
  list-style: none;
  margin: 0;
}

.giftCodesChip code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.giftCodesChipActive {
  width: fit-content;
  max-width: 100%;
  padding: 0;
}

.giftCodesChipActive > .giftCodesChipRedeem {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 220, 179, 0.38);
  background: linear-gradient(180deg, rgba(239, 136, 54, 0.98), rgba(184, 82, 24, 0.95));
  box-shadow: 0 6px 16px rgba(120, 48, 12, 0.35);
  color: inherit;
  text-decoration: none;
}

.giftCodesChipActive > .giftCodesChipRedeem:focus-visible {
  outline: 2px solid rgba(255, 230, 200, 0.95);
  outline-offset: 3px;
}

.giftCodesChipActive code {
  color: #fff8f0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.giftCodesInactiveBlock {
  margin-top: 32px;
  padding: 22px 20px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 221, 166, 0.12);
  background: rgba(255, 250, 240, 0.04);
}

.giftCodesInactiveRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 280px);
  gap: 20px;
  align-items: start;
}

.giftCodesInactiveGrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  align-items: flex-start;
  min-width: 0;
}

.giftCodesChipInactive {
  width: fit-content;
  max-width: 100%;
  padding: 0;
}

.giftCodesChipInactive > .giftCodesChipRedeemMuted {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 221, 166, 0.14);
  background: rgba(255, 247, 235, 0.14);
  box-shadow: none;
  color: inherit;
  text-decoration: none;
}

.giftCodesChipInactive > .giftCodesChipRedeemMuted:focus-visible {
  outline: 2px solid rgba(255, 210, 170, 0.65);
  outline-offset: 3px;
}

.giftCodesChipInactive code {
  color: rgba(244, 230, 208, 0.72);
  font-weight: 600;
  text-shadow: none;
}

.giftCodesEmpty {
  width: 100%;
  flex-basis: 100%;
  padding: 12px 0;
  color: rgba(248, 230, 206, 0.65);
  font-style: italic;
  font-size: 0.95rem;
}

.giftCodesShip {
  margin: 0;
  padding: 10px;
  border-radius: 18px;
  border: 3px solid rgba(255, 200, 120, 0.35);
  background:
    linear-gradient(160deg, rgba(20, 16, 14, 0.5) 0%, rgba(8, 8, 10, 0.65) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 220, 180, 0.12);
}

.giftCodesShip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.giftCodesShipInactive {
  border-color: rgba(180, 160, 140, 0.28);
  background: linear-gradient(160deg, rgba(24, 22, 20, 0.45) 0%, rgba(10, 10, 12, 0.55) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 10px 22px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.giftCodesVerifyBlock {
  margin-top: 8px;
}

.giftCodesSyncNote {
  margin: 8px 0 0;
  color: rgba(248, 230, 206, 0.88);
  font-size: 0.95rem;
  line-height: 1.45;
}

.giftCodesManualBlock .giftCodesSectionTitle {
  margin-bottom: 8px;
}

.giftCodesManualBlock > p:not(.giftCodesManualHint):not(.giftCodesSectionHint) {
  margin: 0 0 12px;
  color: rgba(248, 230, 206, 0.92);
  font-size: 0.95rem;
  line-height: 1.45;
}

.giftCodesManualList {
  margin: 4px 0 0;
  padding-left: 1.35rem;
  line-height: 1.55;
  color: rgba(248, 230, 206, 0.92);
  font-size: 0.95rem;
}

.giftCodesManualList li {
  margin-bottom: 8px;
  padding-left: 0.15rem;
}

.giftCodesManualList li::marker {
  color: rgba(255, 200, 140, 0.85);
  font-weight: 700;
}

.giftCodesManualBlock a {
  color: #ffd9a8;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 200, 140, 0.45);
  text-underline-offset: 2px;
}

.giftCodesManualBlock a:hover {
  color: #fff2e0;
  text-decoration-color: rgba(255, 230, 200, 0.65);
}

.giftCodesManualHint {
  margin-top: 16px;
  margin-bottom: 0;
  color: rgba(248, 230, 206, 0.88);
}

@media (max-width: 720px) {
  .giftCodesActiveRow,
  .giftCodesInactiveRow {
    grid-template-columns: 1fr;
  }

  .giftCodesShip {
    justify-self: center;
    max-width: min(280px, 88vw);
  }

  .giftCodesInactiveRow .giftCodesInactiveGrid {
    order: 1;
  }

  .giftCodesInactiveRow .giftCodesShipInactive {
    order: 0;
  }
}

/* Podium page — hero (large blurred art), headings, past raids */
.podiumPage .seoStaticShell {
  max-width: 1000px;
}

/* Podium hero: same shell as giftCodesHero; larger blurred podium art */
.podiumHero::after {
  content: "";
  position: absolute;
  inset: -14% -18% -8%;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/podium-winners.png") center 38% / min(1750px, 175vw) no-repeat;
  opacity: 0.16;
  filter: blur(12px) saturate(0.9);
}

.podiumHero > * {
  position: relative;
  z-index: 2;
}

.podiumHeroArt {
  margin: 0 auto 16px;
  max-width: min(760px, 100%);
}

.podiumHeroImage {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(300px, 46vw);
  object-fit: contain;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.5));
}

.podiumHeroCopy {
  color: rgba(244, 230, 208, 0.88);
}

.podiumPage .seoStaticHero h1 {
  color: #ffe8d0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.podiumPage .podiumHeroMeta {
  color: rgba(248, 230, 206, 0.72);
  font-size: 0.88rem;
}

.podiumTopSection {
  margin-top: 0;
}

.podiumTopHeadingRow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.podiumTopTitle {
  margin-bottom: 0 !important;
  font-size: 1.52rem;
}

.podiumRaidBadge {
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff8f0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, rgba(239, 136, 54, 0.95), rgba(184, 82, 24, 0.92));
  border: 1px solid rgba(255, 220, 179, 0.35);
  box-shadow: 0 6px 18px rgba(100, 40, 10, 0.35);
  white-space: nowrap;
}

.podiumTopThreeGrid {
  margin-bottom: 20px;
}

.podiumSectionSpaced {
  margin-top: 28px;
}

.podiumPage .podiumPastBlock {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 180, 90, 0.22);
}

.podiumPastLabel {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd2aa;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.podiumPastSelect {
  width: 100%;
  max-width: min(420px, 100%);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 200, 120, 0.35);
  background: linear-gradient(180deg, rgba(32, 22, 16, 0.9) 0%, rgba(18, 12, 10, 0.95) 100%);
  color: #fff8f0;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.podiumPastSelect option {
  background: #141210;
  color: #f4e6d0;
}

.podiumPastDetail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 221, 166, 0.12);
}

.podiumPastDetailTitle {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffd2aa;
}

.podiumPastGrid {
  margin-top: 0;
}

.podiumTableEmpty {
  color: rgba(248, 230, 206, 0.85);
  font-style: italic;
}

/* Podium cards inside warm active block — dark chocolate + light text (gift-codes feel) */
.podiumPage .giftCodesActiveBlock .seoPodiumCard {
  background: rgba(18, 12, 10, 0.5);
  border: 1px solid rgba(255, 180, 90, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 220, 179, 0.05);
  backdrop-filter: blur(8px);
}

.podiumPage .giftCodesActiveBlock .seoPodiumRank {
  color: rgba(248, 230, 206, 0.82);
}

.podiumPage .giftCodesActiveBlock .seoPodiumState {
  color: #ffe8d0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
}

.podiumPage .giftCodesActiveBlock .seoPodiumStat {
  color: rgba(244, 230, 208, 0.9);
}

.podiumPage .giftCodesInactiveBlock .podiumTableWrap {
  overflow-x: auto;
  margin-top: 12px;
  padding: 4px 8px 8px;
  border-radius: 16px;
  border: none;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.45);
}

.podiumPage .giftCodesInactiveBlock .seoRankTable {
  margin-top: 0;
}

.podiumPage .giftCodesInactiveBlock .seoRankTable th {
  color: #ffd2aa;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
}

.podiumPage .giftCodesInactiveBlock .seoRankTable td {
  color: rgba(244, 230, 208, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
}

.podiumPage .giftCodesInactiveBlock .seoRankTable tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.16);
}

.podiumPage .giftCodesInactiveBlock .giftCodesSectionHint {
  color: rgba(248, 230, 206, 0.92);
}

/* Lower sections: dark panels only — no cream/white rim (readable on dark page) */
.podiumPage .giftCodesInactiveBlock {
  margin-top: 0;
  border: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(239, 136, 54, 0.1), transparent 48%),
    linear-gradient(168deg, rgba(40, 28, 22, 0.88) 0%, rgba(12, 10, 9, 0.95) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 179, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.podiumPage .podiumTopCluster {
  margin-top: 0;
}

@media (max-width: 640px) {
  .podiumTopHeadingRow {
    flex-direction: column;
    align-items: flex-start;
  }

  .podiumRaidBadge {
    white-space: normal;
  }
}
