/* LEGACY PvP Home — production stylesheet (2026-08-05) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600&display=swap");

.legacy-home {
  --legacy-obsidian: #07090c;
  --legacy-slate: #192632;
  --legacy-warm-brown: #765247;
  --legacy-ruby: #a51f32;
  --legacy-ruby-deep: #861829;
  --legacy-gold: #caaa69;
  --legacy-gold-muted: #b99a62;
  --legacy-ivory: #f2e9dc;
  --legacy-parchment: #e9dece;
  --legacy-ink: #29241f;
  --legacy-body: #403a34;
  --legacy-muted: #6b6258;
  margin: 0;
  overflow-x: hidden;
  background: var(--legacy-obsidian);
  color: #f4f1eb;
  font-family: "Noto Sans Thai", Inter, "Segoe UI", sans-serif;
}
.legacy-home .legacy-site-shell,
.legacy-home .legacy-site-shell * { box-sizing: border-box; }
.legacy-home .legacy-site-shell { position: relative; isolation: isolate; }
.legacy-home a { color: inherit; text-decoration: none; }
.legacy-home button,
.legacy-home input { font: inherit; }
.legacy-main { display: block; }
.legacy-eyebrow { margin: 0; color: var(--legacy-gold); font: 600 10px/1.2 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; }

/* Navigation */
.legacy-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 92px;
  min-height: 92px;
  padding: 0 clamp(20px, 2.4vw, 46px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  border-bottom: 1px solid rgba(185, 154, 98, .18);
  background: rgba(5, 7, 9, .58);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .16);
  backdrop-filter: blur(16px) saturate(.9);
  -webkit-backdrop-filter: blur(16px) saturate(.9);
}
.legacy-brand { width: 64px; height: 70px; display: flex; flex: none; align-items: center; justify-content: center; }
.legacy-brand img { width: 58px; height: 58px; object-fit: contain; transition: transform .24s ease; }
.legacy-brand:hover img,
.legacy-brand:focus-visible img { transform: translateY(-2px) scale(1.035); }
.legacy-nav { height: 100%; margin: auto; display: flex; align-items: center; gap: 28px; color: #e6e0d8; }
.legacy-nav > a,
.legacy-guide > button {
  position: relative;
  min-height: 60px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: color .24s ease, transform .24s ease;
}
.legacy-nav > a > i,
.legacy-guide > button > i { display: none; }
.legacy-nav > a > span,
.legacy-guide > button > span,
.legacy-nav-actions > * > span {
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #e6e0d8;
  font: 400 17px/1.12 Inter, "Noto Sans Thai", sans-serif;
}
.legacy-nav small,
.legacy-nav-actions small { margin-top: 6px; color: var(--legacy-gold); font: 600 11px/1 Inter, sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.legacy-nav > a::after,
.legacy-guide > button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--legacy-gold-muted);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .26s ease;
}
.legacy-nav > a:hover,
.legacy-nav > a:focus-visible,
.legacy-guide > button:hover,
.legacy-guide > button:focus-visible { color: #fffaf3; transform: translateY(-1px); }
.legacy-nav > a:hover::after,
.legacy-nav > a:focus-visible::after,
.legacy-guide > button:hover::after,
.legacy-guide > button:focus-visible::after,
.legacy-nav > a.is-active::after { transform: scaleX(1); }
.legacy-guide { position: relative; height: 100%; display: flex; align-items: center; }
.legacy-guide-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  min-width: 292px;
  padding: 9px;
  display: none;
  border: 1px solid rgba(185, 154, 98, .23);
  border-radius: 5px;
  background: rgba(7, 10, 14, .9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .44);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}
.legacy-guide:hover .legacy-guide-menu,
.legacy-guide > button[aria-expanded="true"] + .legacy-guide-menu { display: grid; }
.legacy-guide-menu::before { content: ""; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; border-top: 1px solid rgba(185,154,98,.3); border-left: 1px solid rgba(185,154,98,.3); background: #0a0c0f; transform: translateX(-50%) rotate(45deg); }
.legacy-guide-menu a { min-height: 62px; padding: 10px 14px; display: flex; align-items: center; border-radius: 3px; color: #eee9e2; transition: background .2s ease, color .2s ease, transform .2s ease; }
.legacy-guide-menu a + a { border-top: 1px solid rgba(255,255,255,.045); }
.legacy-guide-menu a > span { display: flex; align-items: flex-start; flex-direction: column; font: 400 16px/1.18 Inter, "Noto Sans Thai", sans-serif; }
.legacy-guide-menu a small { margin-top: 6px; color: #8f7a54; font-size: 10px; }
.legacy-guide-menu a:hover,
.legacy-guide-menu a:focus-visible { outline: none; background: rgba(185,154,98,.08); color: #fff; transform: translateX(2px); }
.legacy-nav-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.legacy-nav-actions > * { min-height: 54px !important; padding: 7px 16px !important; display: flex; align-items: center; gap: 10px; border: 1px solid transparent !important; border-radius: 3px !important; background: rgba(5,7,9,.28) !important; color: #f2eee8 !important; cursor: pointer; }
.legacy-nav-actions .legacy-contact-admin { border-color: rgba(185,154,98,.52) !important; background: rgba(5,7,9,.38) !important; }
.legacy-nav-actions i { color: var(--legacy-gold-muted); font-size: 16px; }
.legacy-nav-actions > * > span { font-size: 14px; }
.legacy-nav-actions small { margin-top: 5px; font-size: 10px; }
.legacy-nav-actions > *:hover,
.legacy-nav-actions > *:focus-visible { border-color: var(--legacy-gold-muted) !important; background: rgba(185,154,98,.1) !important; }
.legacy-nav-toggle { display: none; border: 0; background: none; color: #d7c7aa; cursor: pointer; }
.legacy-mobile-contact { display: none !important; }
.legacy-nav a:focus-visible,
.legacy-guide > button:focus-visible,
.legacy-nav-actions > *:focus-visible { outline: 2px solid rgba(202,170,105,.8); outline-offset: 4px; }

/* Modal controller shared by login and account management */
.legacy-home .legacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
}
.legacy-home .legacy-modal.is-open { display: flex; }
.legacy-home .legacy-modal__panel { position: relative; z-index: 1; width: min(900px,100%); margin: 6vh auto 24px; pointer-events: auto; }
.legacy-home.legacy-body-modal-open { overflow: hidden; }
.legacy-modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }

/* Hero */
.legacy-hero {
  position: relative;
  isolation: isolate;
  height: 100vh;
  min-height: 720px;
  padding: 92px 5vw 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(rgba(255,247,225,.035),rgba(22,17,13,.06)), url("../images/hero/hero-home-main-v1.webp") center/cover no-repeat;
}
.legacy-hero::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg,rgba(9,24,39,.05),transparent 28%,transparent 74%,rgba(11,16,23,.12) 84%,rgba(11,16,23,.48) 94%,rgba(11,16,23,.88) 100%); }
.legacy-hero-copy { position: relative; z-index: 3; width: 100%; height: 100%; max-width: 1100px; padding-top: 86px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.legacy-logo-stage { position: relative; width: clamp(420px,37vw,650px); display: grid; place-items: center; }
.legacy-hero-logo { position: relative; z-index: 2; width: 100%; height: auto; animation: legacy-logo-float 7s ease-in-out infinite, legacy-logo-glow 7s ease-in-out infinite; }
.legacy-tagline { margin: -5px 0 0; padding: 2px 8px 4px; color: #f2eee8; font-size: 21px; font-weight: 500; text-shadow: 0 2px 5px rgba(0,0,0,.92),0 0 12px rgba(0,0,0,.38); }
.legacy-actions { margin-top: 23px; display: flex; gap: 12px; }
.legacy-actions a { position: relative; width: 300px; height: 72px; display: flex; align-items: center; justify-content: center; gap: 18px; overflow: hidden; border: 1px solid rgba(211,173,101,.9); border-radius: 3px; background: linear-gradient(180deg,#a51f2d,#7b1722); color: #fff8ea; box-shadow: 0 5px 13px rgba(4,10,17,.34),inset 0 1px rgba(255,255,255,.1); transition: transform .24s ease,border-color .24s ease,box-shadow .24s ease,filter .24s ease; }
.legacy-actions a + a { background: rgba(7,18,30,.88); }
.legacy-actions a i { color: #f2ca78; font-size: 31px; transition: transform .24s ease; }
.legacy-actions a span,
.legacy-actions a small { display: block; }
.legacy-actions a span { font: 600 22px/1 Inter, sans-serif; text-transform: uppercase; }
.legacy-actions a small { margin-top: 5px; font: 400 13px/1.1 "Noto Sans Thai",sans-serif; text-transform: none; }
.legacy-actions a::after { content: ""; position: absolute; top: -35%; bottom: -35%; left: -48%; width: 28%; background: linear-gradient(90deg,transparent,rgba(255,242,207,.32),transparent); transform: skewX(-18deg); transition: left .58s ease; }
.legacy-actions a:hover,
.legacy-actions a:focus-visible { border-color: #efd08d; filter: saturate(1.08) brightness(1.06); transform: translateY(-3px) scale(1.01); }
.legacy-actions a:hover::after,
.legacy-actions a:focus-visible::after { left: 122%; }
.legacy-stats { position: absolute; bottom: 28px; left: 50%; width: min(1040px,calc(100% - 40px)); height: 82px; display: grid; grid-template-columns: repeat(5,1fr); border: 1px solid rgba(185,154,98,.42); background: rgba(7,10,14,.76); box-shadow: 0 5px 16px rgba(0,0,0,.26); transform: translateX(-50%); backdrop-filter: blur(11px); }
.legacy-stats article { position: relative; min-width: 0; padding: 14px 8px 10px 58px; border-right: 1px solid rgba(255,255,255,.07); }
.legacy-stats article:last-child { border-right: 0; }
.legacy-stats article > i { position: absolute; top: 24px; left: 19px; color: var(--legacy-gold-muted); font-size: 28px; }
.legacy-stats span,
.legacy-stats b { display: block; }
.legacy-stats span { color: #e6e0d8; font-size: 10px; text-transform: uppercase; }
.legacy-stats b { margin-top: 5px; color: var(--legacy-gold); font: 600 20px/1 Inter,sans-serif; }
.legacy-stats b.is-online { display: inline-flex; align-items: center; gap: 8px; color: #53df6e; }
.legacy-stats b.is-online::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #53df6e; box-shadow: 0 0 0 3px rgba(83,223,110,.12),0 0 10px rgba(83,223,110,.78); animation: legacy-online-pulse 2.4s ease-in-out infinite; }
.legacy-atmosphere { position: absolute; z-index: 2; inset: 92px 0 0; overflow: hidden; pointer-events: none; }
.legacy-sun-glow { position: absolute; top: -8%; left: -7%; width: 50vw; height: 60vh; border-radius: 50%; background: radial-gradient(circle,rgba(255,244,200,.38),rgba(255,205,110,.12) 32%,transparent 70%); animation: legacy-sun-breathe 8s ease-in-out infinite; }
.legacy-sun-ray { position: absolute; top: -15%; left: 6%; width: 8vw; height: 92vh; background: linear-gradient(180deg,rgba(255,245,205,.2),transparent); filter: blur(8px); opacity: .16; transform: rotate(-24deg); transform-origin: top; animation: legacy-ray-drift 10s ease-in-out infinite; }
.legacy-sun-ray--two { left: 17%; width: 5vw; animation-delay: -4s; }
.legacy-bird { position: absolute; width: 22px; height: 8px; border-top: 2px solid rgba(34,43,50,.65); border-radius: 50%; animation: legacy-bird-flight 20s linear infinite; }
.legacy-bird::after { content: ""; position: absolute; top: -2px; left: 11px; width: 11px; height: 8px; border-top: 2px solid rgba(34,43,50,.65); border-radius: 50%; transform: rotate(12deg); }
.legacy-bird--one { top: 29%; left: 21%; }.legacy-bird--two { top: 24%; left: 34%; animation-delay: -8s; }.legacy-bird--three { top: 34%; left: 47%; animation-delay: -14s; }
.legacy-motes i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,222,137,.75); animation: legacy-mote 11s linear infinite; }
.legacy-motes i:nth-child(1){left:12%;top:68%}.legacy-motes i:nth-child(2){left:22%;top:78%;animation-delay:-3s}.legacy-motes i:nth-child(3){left:37%;top:64%;animation-delay:-6s}.legacy-motes i:nth-child(4){left:52%;top:72%;animation-delay:-8s}.legacy-motes i:nth-child(5){left:68%;top:62%;animation-delay:-2s}.legacy-motes i:nth-child(6){left:83%;top:76%;animation-delay:-7s}

/* One continuous surface below the Hero */
.legacy-home-world-content { position: relative; background: linear-gradient(90deg,rgba(17,25,35,.94) 0%,rgba(25,38,50,.88) 55%,rgba(118,82,71,.82) 100%); }
.legacy-live-competitive-bg { position: relative; overflow: hidden; padding-top: 52px; --legacy-hall-surface:#f2e9dc; --legacy-hall-panel:#e9dece; }
.legacy-live-feed { position: relative; z-index: 2; margin: 0 4vw 34px; overflow: hidden; border: 1px solid rgba(194,158,83,.24); border-radius: 14px; background: radial-gradient(circle at 88% 0,rgba(116,20,34,.13),transparent 32%),linear-gradient(180deg,#181719,#1d1a1d); color: #ded7cf; box-shadow: 0 22px 50px rgba(49,37,27,.22),inset 0 1px rgba(255,255,255,.035); }
.legacy-live-feed > header { min-height: 78px; padding: 18px 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.075); background: linear-gradient(180deg,rgba(255,255,255,.022),transparent); }
.legacy-live-feed > header div { display: flex; align-items: center; }
.legacy-live-feed header i { width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #5ee68d; box-shadow: 0 0 12px #5ee68d; }
.legacy-live-feed h2 { margin: 0; color: #f5efe5; font: 400 24px Georgia,serif; letter-spacing: .06em; }
.legacy-live-feed__poring { width: 64px; height: 64px; margin-left: 17px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.34)); transform: translateY(1px) scale(1.18); transform-origin: left center; }
.legacy-live-feed > header p { margin: 0; color: #b0a69d; font-size: 14px; }
.legacy-feed-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.legacy-feed-column { min-width: 0; padding: 22px; border-right: 1px solid rgba(255,255,255,.075); }
.legacy-feed-column:last-child { border-right: 0; }
.legacy-feed-column h3 { margin: 0 0 12px; color: #d7b568; font: 400 18px Georgia,serif; letter-spacing: .055em; }
.legacy-feed-column h3 small { margin-top: 5px; display: block; color: #958b83; font: 500 11px Inter,sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.legacy-feed-list { display: grid; }
.legacy-feed-list article { min-height: 40px; padding: 10px 2px; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.055); color: #ded7cf; font-size: 14px; transition: background .2s ease; }
.legacy-feed-list article p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legacy-feed-list article:hover { background: rgba(165,31,50,.09); color: #fff3e5; }
.legacy-feed-list p,
.legacy-empty { margin: 0; color: #d4cdc6; font-size: 14px; line-height: 1.55; }
.legacy-feed-list time { color: #958b83; font-size: 11px; white-space: nowrap; }
.legacy-live-feed-status { margin: 0; padding: 0 22px 14px; color: #a79d95; font-size: 11px; }
.legacy-live-feed-status.is-error { color: #ef737b; }

/* Competitive Hall */
.legacy-competitive { position: relative; padding: 72px 4vw 64px; overflow-x: clip; isolation: isolate; }
.legacy-competitive__masthead { position: relative; z-index: 3; max-width: 1440px; margin: 0 auto 26px; padding: 0 0 22px; display: flex; align-items: end; justify-content: space-between; gap: 32px; border-bottom: 1px solid rgba(213,177,102,.22); }
.legacy-competitive__masthead .legacy-eyebrow { color: var(--legacy-gold); font-size: 11px; }
.legacy-competitive__masthead h2 { margin: 7px 0 6px; color: #fff8ed; font: 400 clamp(34px,3.2vw,48px)/1.12 "Noto Sans Thai",sans-serif; letter-spacing: -.025em; }
.legacy-competitive__masthead > div > p:last-child { margin: 0; display: flex; align-items: center; gap: 10px; color: #a9a29a; font: 500 12px Inter,sans-serif; text-transform: uppercase; }
.legacy-competitive__masthead > div > p i { width: 3px; height: 3px; border-radius: 50%; background: var(--legacy-gold-muted); }
.legacy-competitive__masthead > span { padding-left: 20px; display: block; border-left: 2px solid rgba(202,170,105,.36); color: #d9b96f; font: 600 12px Inter,sans-serif; letter-spacing: .12em; text-align: left; }
.legacy-competitive__masthead > span small { margin-top: 7px; display: block; color: #918b85; font: 400 12px "Noto Sans Thai",sans-serif; letter-spacing: 0; }
.legacy-competitive-art { position: absolute; z-index: 1; top: 146px; width: 405px; height: 710px; pointer-events: none; user-select: none; }
.legacy-competitive-art::before { position: absolute; inset: 14% 4% 4%; content: ""; border-radius: 50%; opacity: .72; filter: blur(30px); }
.legacy-competitive-art img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 30px rgba(0,0,0,.38)); -webkit-mask-image: linear-gradient(to bottom,#000 0 93%,rgba(0,0,0,.86) 97%,transparent 100%); mask-image: linear-gradient(to bottom,#000 0 93%,rgba(0,0,0,.86) 97%,transparent 100%); }
.legacy-competitive-art--assassin { top: 216px; left: max(0px,calc(50% - 960px)); }
.legacy-competitive-art--assassin::before { background: radial-gradient(circle,rgba(148,34,53,.24),transparent 66%); }
.legacy-competitive-art--assassin img { object-position: left bottom; }
.legacy-competitive-art--baphomet { top: -22px; right: max(-66px,calc(50% - 1026px)); width: 610px; height: 870px; }
.legacy-competitive-art--baphomet::before { background: radial-gradient(circle,rgba(172,117,46,.22),rgba(91,24,38,.12) 46%,transparent 70%); }
.legacy-competitive-art--baphomet img { object-position: right bottom; }
.legacy-primary-rankings { position: relative; z-index: 2; width: min(1072px,100%); max-width: 1072px; margin: auto; padding: 8px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: stretch; overflow: hidden; border: 1px solid rgba(217,186,120,.3); border-radius: 14px; background: linear-gradient(135deg,rgba(10,13,17,.58),rgba(37,27,26,.45)); box-shadow: 0 28px 70px rgba(0,0,0,.3),inset 0 1px rgba(255,240,205,.08),0 0 0 1px rgba(0,0,0,.18); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.legacy-primary-rankings::before { position: absolute; z-index: 4; top: 8px; bottom: 8px; left: 50%; width: 1px; content: ""; background: linear-gradient(transparent,rgba(209,173,99,.46) 15%,rgba(209,173,99,.26) 85%,transparent); pointer-events: none; }
.legacy-primary-rankings::after { display: none; }
.legacy-ranking,
.legacy-woe,
.legacy-guild-legacy,
.legacy-record-plaque { border: 1px solid rgba(91,63,37,.16); border-radius: 12px; background: linear-gradient(180deg,var(--legacy-parchment),var(--legacy-ivory)); box-shadow: 0 20px 46px rgba(20,17,16,.16),0 3px 9px rgba(70,44,25,.08),inset 0 1px rgba(255,255,255,.72); transition: transform .3s ease,border-color .3s ease,box-shadow .3s ease; }
.legacy-ranking,
.legacy-woe { min-width: 0; min-height: 556px; padding: 0 24px 18px; overflow: hidden; border: 0; border-radius: 7px; background: linear-gradient(180deg,rgba(244,234,218,.82),rgba(228,212,189,.75)); box-shadow: inset 0 1px rgba(255,255,255,.7); -webkit-backdrop-filter: blur(8px) saturate(.88); backdrop-filter: blur(8px) saturate(.88); }
.legacy-ranking > header,
.legacy-woe > header { position: relative; min-height: 106px; margin: 0 -24px 14px; padding: 22px 23px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; overflow: hidden; border-bottom: 1px solid rgba(111,73,47,.2); background: linear-gradient(115deg,rgba(119,31,42,.15),rgba(206,168,91,.08) 62%,rgba(255,255,255,.25)); box-shadow: inset 5px 0 var(--legacy-ruby-deep),inset 0 -18px 32px rgba(113,67,38,.035); isolation: isolate; }
.legacy-ranking > header::after,
.legacy-woe > header::after { position: absolute; inset: auto 18px 0 22px; height: 1px; content: ""; background: linear-gradient(90deg,rgba(143,25,43,.42),rgba(192,149,61,.24),transparent); }
.legacy-ranking > header > div,
.legacy-woe > header > div,
.legacy-ranking > header > span,
.legacy-woe > header > span { position: relative; z-index: 2; }
.legacy-ranking { background: linear-gradient(180deg,rgba(244,234,219,.8),rgba(228,212,190,.72)); }
.legacy-ranking--mvp > header { background: linear-gradient(115deg,rgba(74,35,39,.16),rgba(150,104,63,.075) 66%,rgba(255,255,255,.24)); box-shadow: inset 5px 0 #674049,inset 0 -18px 32px rgba(74,35,39,.035); }
.legacy-woe > header { background: linear-gradient(115deg,rgba(184,148,63,.19),rgba(125,81,44,.075) 68%,rgba(255,255,255,.25)); box-shadow: inset 5px 0 #b58c39,inset 0 -18px 32px rgba(105,72,22,.04); }
.legacy-primary-rankings header small { color: #766a60; font: 600 11px Inter,sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.legacy-primary-rankings header > span { padding: 8px 11px; border: 1px solid rgba(134,24,41,.22); border-radius: 3px; background: rgba(255,252,246,.58); color: var(--legacy-ruby-deep); font: 700 10px Inter,sans-serif; letter-spacing: .12em; box-shadow: inset 0 1px rgba(255,255,255,.75); }
.legacy-primary-rankings h3 { margin: 7px 0 0; color: var(--legacy-ruby-deep); font: 650 29px/1.08 Inter,sans-serif; letter-spacing: -.025em; }
.legacy-ranking-art { position: absolute; z-index: 1; pointer-events: none; user-select: none; }
.legacy-ranking-art--emperium { top: 9px; right: 90px; width: 70px; height: 78px; object-fit: contain; opacity: .82; filter: saturate(.78) drop-shadow(0 5px 6px rgba(105,72,22,.16)); }
.legacy-champion-podium { min-height: 205px; padding: 2px 0 10px; display: grid; grid-template-columns: 1fr 1.16fr 1fr; grid-template-rows: 1fr; align-items: end; gap: 8px; }
.legacy-champion-rank { min-width: 0; min-height: 152px; padding: 10px 8px 12px; display: flex; align-items: center; justify-content: flex-end; flex-direction: column; overflow: hidden; border: 1px solid rgba(100,69,42,.17); border-radius: 8px 8px 5px 5px; background: linear-gradient(180deg,rgba(255,252,245,.86),rgba(229,215,194,.82)); color: var(--legacy-ink); text-align: center; box-shadow: inset 0 1px rgba(255,255,255,.78),0 6px 14px rgba(66,43,27,.1); transition: transform .25s ease,box-shadow .25s ease; }
.legacy-champion-rank--1 { min-height: 190px; grid-column: 2; grid-row: 1; border-color: rgba(132,24,41,.37); background: linear-gradient(155deg,rgba(146,27,48,.96),rgba(104,18,34,.96)); color: #fff8e9; box-shadow: inset 0 1px rgba(255,229,165,.34),0 13px 24px rgba(85,15,29,.23); }
.legacy-champion-rank--2 { grid-column: 1; grid-row: 1; }
.legacy-champion-rank--3 { grid-column: 3; grid-row: 1; }
.legacy-champion-rank > span { color: #8b7b6a; font: 700 8px Inter,sans-serif; letter-spacing: .13em; }
.legacy-champion-rank--1 > span { color: #e5c77e; }
.legacy-rank-badge { position: relative; width: 64px; height: 64px; margin: 7px 0 6px; display: block; overflow: hidden; border: 2px solid #b9a274; border-radius: 11px; background: #d8d2c7; box-shadow: 0 7px 13px rgba(43,30,22,.2),inset 0 0 0 2px rgba(255,255,255,.34); }
.legacy-rank-badge::after { position: absolute; inset: 3px; content: ""; border: 1px solid rgba(255,248,222,.5); border-radius: 7px; box-shadow: inset 0 0 9px rgba(24,18,15,.1); pointer-events: none; }
.legacy-champion-rank--1 .legacy-rank-badge { width: 88px; height: 88px; margin-block: 7px 6px; border-color: #e3bd58; box-shadow: 0 9px 22px rgba(40,8,14,.36),0 0 22px rgba(231,191,91,.28),inset 0 0 0 2px rgba(255,241,187,.35); }
.legacy-champion-rank--2 .legacy-rank-badge { border-color: #aab4ba; }
.legacy-champion-rank--3 .legacy-rank-badge { border-color: #a56e60; }
.legacy-rank-badge img { width: 100%; height: 100%; display: block; object-fit: cover; }
.legacy-champion-rank--2 .legacy-rank-badge img { object-position: 50% 28%; }
.legacy-champion-rank--3 .legacy-rank-badge img { object-position: 50% 29%; }
.legacy-champion-rank b { max-width: 100%; overflow: hidden; color: #211d19; font-size: 17px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; text-shadow: 0 1px rgba(255,255,255,.72); white-space: nowrap; }
.legacy-champion-rank--1 b { color: #fffaf0; font-size: 19px; text-shadow: 0 2px 5px rgba(28,3,8,.55); }
.legacy-champion-rank em { margin-top: 4px; color: #7f1527; font: 750 17px Inter,sans-serif; font-style: normal; text-shadow: 0 1px rgba(255,255,255,.62); }
.legacy-champion-rank--1 em { color: #f5d77e; font-size: 19px; text-shadow: 0 2px 5px rgba(28,3,8,.5); }
.legacy-champion-rank em small { margin-left: 3px; font-size: 8px; letter-spacing: .08em; opacity: .68; }
.legacy-contenders-title { min-height: 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(87,61,47,.14); }
.legacy-contenders-title span { color: var(--legacy-ruby-deep); font: 700 10px Inter,sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.legacy-contenders-title small { color: var(--legacy-muted); font: 600 9px Inter,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.legacy-contenders { margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 7px; list-style: none; }
.legacy-contenders li { min-width: 0; min-height: 42px; padding: 7px 8px; display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 7px; border: 1px solid rgba(87,61,47,.1); border-radius: 4px; background: rgba(249,243,233,.72); box-shadow: inset 0 1px rgba(255,255,255,.38); transition: background .2s ease,transform .2s ease; }
.legacy-contenders li:last-child:nth-child(odd) { grid-column: 1/-1; }
.legacy-contenders li span { color: #897b6d; font: 650 11px Inter,sans-serif; }
.legacy-contenders li b { overflow: hidden; color: #26211d; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.legacy-contenders li em { color: #7f1527; font: 700 13px Inter,sans-serif; font-style: normal; }
.legacy-champion-empty { min-height: 360px; display: grid; place-items: center; color: var(--legacy-muted); }
.legacy-woe-hall,
.legacy-woe-hall *,
.legacy-guild-legacy,
.legacy-guild-legacy * { box-sizing: border-box; }
.legacy-woe-hall { position: relative; z-index: 3; width: 100%; max-width: 1490px; margin: 52px auto 0; }
.legacy-woe-hall::before { position: absolute; z-index: -1; inset: -18px -20px; content: ""; border: 1px solid rgba(205,169,96,.14); border-radius: 18px; background: radial-gradient(circle at 50% 18%,rgba(180,129,42,.14),transparent 38%),linear-gradient(135deg,rgba(8,11,15,.52),rgba(45,27,25,.34)); box-shadow: 0 28px 64px rgba(0,0,0,.25),inset 0 1px rgba(255,245,216,.05); pointer-events: none; }
.legacy-woe-feature { position: relative; width: 100%; min-height: 0; aspect-ratio: 3.92/1; display: grid; grid-template-columns: 31% 38% 31%; overflow: hidden; border: 0; border-radius: 4px; background: #d8c3a5; color: var(--legacy-ink); box-shadow: 0 24px 50px rgba(0,0,0,.34); isolation: isolate; }
.legacy-woe-feature > * { position: relative; z-index: 1; }
.legacy-woe-feature::before,.legacy-woe-feature::after { position: absolute; z-index: 5; content: ""; pointer-events: none; }
.legacy-woe-feature::before { display: none; }
.legacy-woe-feature::after { z-index: 0; top: -12.1029%; left: -.316%; width: 100.5793%; height: 124.5083%; background: url("../images/castle/legacy-woe-hall-bg-v3.png") center/100% 100% no-repeat; }
.legacy-woe-shrine { position: relative; min-width: 0; overflow: hidden; border-right: 1px solid rgba(99,61,28,.26); background: none; }
.legacy-woe-command { position: relative; min-width: 0; padding: 35px 22px 10px; text-align: center; background: radial-gradient(circle at 50% 62%,rgba(255,234,166,.26),transparent 42%); }
.legacy-woe-command > header small { color: #705f4f; font: 700 12px Inter,sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.legacy-woe-command > header h3 { margin: 6px 0 0; color: var(--legacy-ruby-deep); font: 600 38px/1.05 Georgia,serif; letter-spacing: .018em; text-shadow: 0 1px rgba(255,255,255,.48); }
.legacy-woe-stage { position: relative; width: 280px; height: 235px; margin: 0 auto; display: grid; place-items: center; }
.legacy-woe-aura { position: absolute; inset: 8px 8px 0; pointer-events: none; }
.legacy-woe-aura span { position: absolute; inset: 22px 4px 0; border: 1px solid rgba(177,139,58,.26); border-radius: 50%; background: radial-gradient(circle,rgba(255,237,173,.48),rgba(186,139,49,.12) 38%,transparent 68%); box-shadow: inset 0 0 48px rgba(192,148,58,.14),0 0 34px rgba(183,136,50,.12); }
.legacy-woe-aura span::before,.legacy-woe-aura span::after { position: absolute; content: ""; background: linear-gradient(transparent,rgba(172,132,55,.28),transparent); }
.legacy-woe-aura span::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.legacy-woe-aura span::after { top: 50%; right: 7%; left: 7%; height: 1px; }
.legacy-woe-flag { position: relative; z-index: 2; width: 154px; height: 231px; transform: translateY(-1px); transform-origin: center; filter: drop-shadow(0 12px 10px rgba(65,37,18,.24)); }
.legacy-woe-flag__base { position: absolute; inset: 0; width: 154px; height: 231px; object-fit: contain; }
.legacy-woe-flag__emblem { position: absolute; z-index: 2; top: 82px; left: 49px; width: 56px; height: 56px; display: grid; place-items: center; filter: drop-shadow(0 2px 2px rgba(91,52,23,.2)); }
.legacy-woe-flag__emblem img { width: 56px; height: 56px; object-fit: contain; }
.legacy-woe-intel { z-index: 8; min-width: 0; margin: 58px 34px 34px 22px; padding: 8px 22px; display: grid; align-content: center; gap: 0; overflow: visible; border: 1px solid rgba(118,77,35,.26); border-radius: 4px; background: linear-gradient(180deg,rgba(244,233,214,.58),rgba(222,202,173,.48)); box-shadow: inset 0 1px rgba(255,255,255,.4),0 12px 22px rgba(72,42,22,.08); }
.legacy-woe-intel__row { min-height: 64px; padding: 7px 4px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 14px; border-bottom: 1px solid rgba(111,72,38,.24); }
.legacy-woe-intel__row:last-child { border-bottom: 0; }
.legacy-woe-intel__row > i { color: #553719; font-size: 31px; text-align: center; filter: drop-shadow(0 2px 1px rgba(255,255,255,.45)); }
.legacy-woe-intel__row div { min-width: 0; }
.legacy-woe-intel__row small { display: block; color: #786757; font: 700 11px Inter,sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.legacy-woe-intel__row strong { margin-top: 4px; display: block; overflow: hidden; color: #332a23; font-size: 18px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.legacy-woe-intel__row span { margin-top: 3px; display: block; color: #786c61; font-size: 12px; }
.legacy-woe-intel__row--castle { z-index: 3; }
.legacy-woe-picker { position: relative; max-width: 100%; }
.legacy-woe-picker__trigger { width: 100%; min-height: 29px; margin: 1px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0,1fr) 24px; align-items: center; gap: 8px; border: 0; background: none; color: #332a23; text-align: left; cursor: pointer; }
.legacy-woe-picker__trigger strong { margin: 0; font-size: 18px; }
.legacy-woe-picker__trigger > i { color: #8a6332; font-size: 18px; text-align: center; transition: transform .18s ease; }
.legacy-woe-picker__trigger[aria-expanded="true"] > i { transform: rotate(180deg); }
.legacy-woe-picker__trigger:focus-visible { outline: 1px solid rgba(157,111,42,.72); outline-offset: 2px; border-radius: 3px; }
.legacy-woe-picker__menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: -6px; left: -8px; max-height: 198px; padding: 6px; overflow-y: auto; border: 1px solid rgba(119,76,35,.48); border-radius: 5px; background: rgba(244,232,212,.98); box-shadow: 0 18px 34px rgba(57,35,20,.3),inset 0 1px rgba(255,255,255,.7); scrollbar-color: rgba(128,88,47,.55) transparent; scrollbar-width: thin; }
.legacy-woe-picker__menu::-webkit-scrollbar { width: 6px; }
.legacy-woe-picker__menu::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(128,88,47,.5); }
.legacy-woe-picker__menu[hidden] { display: none; }
.legacy-woe-picker__menu > button { width: 100%; min-height: 48px; padding: 7px 9px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid rgba(96,65,42,.14); background: transparent; color: #332a23; text-align: left; cursor: pointer; }
.legacy-woe-picker__menu > button:last-child { border-bottom: 0; }
.legacy-woe-picker__menu > button span { min-width: 0; }
.legacy-woe-picker__menu > button b { display: block; overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.legacy-woe-picker__menu > button small { margin-top: 2px; font-size: 9px; }
.legacy-woe-picker__menu > button em { max-width: 110px; overflow: hidden; color: #816b58; font: 600 11px Inter,sans-serif; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.legacy-woe-picker__menu > button:hover,.legacy-woe-picker__menu > button:focus-visible { outline: 0; background: rgba(143,27,44,.08); }
.legacy-woe-picker__menu > button.is-active { background: linear-gradient(90deg,rgba(143,27,44,.13),rgba(195,151,63,.07)); color: var(--legacy-ruby-deep); box-shadow: inset 3px 0 var(--legacy-ruby); }
.legacy-record-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 10px; }
.legacy-record-grid > article { height: 100%; }
.legacy-guild-legacy { position: relative; z-index: 2; width: 100%; max-width: 1490px; margin: 16px auto 0; padding: 0 16px 14px; overflow: hidden; border: 2px solid rgba(190,145,58,.82); border-radius: 6px; background: linear-gradient(180deg,rgba(244,234,219,.94),rgba(226,209,184,.88)); box-shadow: 0 26px 58px rgba(0,0,0,.26),inset 0 0 0 3px rgba(255,246,218,.34),inset 0 1px rgba(255,255,255,.8); -webkit-backdrop-filter: blur(8px) saturate(.88); backdrop-filter: blur(8px) saturate(.88); }
.legacy-guild-legacy::before { position: absolute; top: 0; right: 22px; left: 22px; height: 1px; content: ""; background: linear-gradient(90deg,transparent,rgba(184,145,67,.32),transparent); }
.legacy-guild-legacy > header { position: relative; min-height: 78px; margin: 0 -16px; padding: 10px 26px 10px 132px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(111,73,47,.28); background: linear-gradient(115deg,rgba(119,31,42,.13),rgba(206,168,91,.075) 62%,rgba(255,255,255,.26)); box-shadow: inset 4px 0 var(--legacy-ruby-deep),inset 0 -18px 32px rgba(113,67,38,.04); }
.legacy-guild-legacy > header > div { display: flex; align-items: center; gap: 12px; }
.legacy-guild-legacy > header > span { padding: 7px 16px; border: 1px solid rgba(150,105,39,.32); background: rgba(255,248,230,.62); color: var(--legacy-ruby-deep); font: 700 10px Inter,sans-serif; letter-spacing: .12em; clip-path: polygon(8% 0,92% 0,100% 50%,92% 100%,8% 100%,0 50%); }
.legacy-guild-legacy h3,
.legacy-guild-legacy h4 { margin: 0; color: var(--legacy-ruby-deep); }
.legacy-guild-legacy h3 { margin-top: 3px; font: 500 31px Georgia,serif; letter-spacing: .045em; text-transform: uppercase; }
.legacy-guild-legacy .legacy-eyebrow { color: var(--legacy-muted); font-size: 10px; }
.legacy-guild-icon { position: absolute; z-index: 3; top: 8px; left: 24px; width: 100px; height: 108px; display: grid; place-items: center; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
.legacy-guild-icon img { width: 98px; height: 104px; object-fit: contain; filter: saturate(1.02) contrast(1.05) drop-shadow(0 8px 10px rgba(95,53,25,.24)); }
.legacy-guild-showcase { margin-top: 12px; padding-left: 104px; display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: 14px; }
.legacy-guild-showcase > article { min-width: 0; padding: 9px 13px; border: 1px solid rgba(154,111,43,.42); border-radius: 7px; background: linear-gradient(180deg,rgba(255,250,239,.48),rgba(219,198,167,.15)); box-shadow: inset 0 1px rgba(255,255,255,.62),0 8px 18px rgba(76,48,26,.06); }
.legacy-guild-showcase > article + article { border-left: 1px solid rgba(112,76,43,.22); }
.legacy-guild-showcase h4 { margin-bottom: 9px; display: flex; align-items: baseline; justify-content: space-between; font-size: 18px; }
.legacy-guild-showcase h4 small { color: var(--legacy-muted); font: 600 9px Inter,sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.legacy-guild-showcase ol { margin: 0; padding: 0; display: grid; gap: 2px; list-style: none; }
.legacy-guild-board li,.legacy-castle-records li { min-width: 0; min-height: 32px; padding: 3px 9px; display: grid; align-items: center; gap: 9px; border: 1px solid rgba(95,66,43,.12); border-radius: 3px; background: linear-gradient(90deg,rgba(255,255,255,.34),rgba(205,181,143,.09)); }
.legacy-guild-board li:first-child,.legacy-castle-records li:first-child { border-color: rgba(137,27,44,.2); background: linear-gradient(90deg,rgba(145,29,46,.08),rgba(255,255,255,.28) 58%,rgba(205,166,86,.08)); box-shadow: inset 3px 0 rgba(139,26,43,.58); }
.legacy-guild-board li { grid-template-columns: 34px minmax(0,1fr) auto; }
.legacy-guild-board li > span,.legacy-castle-records li > span { color: #9a7940; font: 700 12px Inter,sans-serif; }
.legacy-guild-board li b,.legacy-castle-records li b { overflow: hidden; color: var(--legacy-ink); font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.legacy-guild-board li em { color: var(--legacy-ruby-deep); font: 700 14px Inter,sans-serif; font-style: normal; }
.legacy-guild-board li em small { margin-left: 3px; font-size: 8px; opacity: .62; }
.legacy-castle-records li { grid-template-columns: 34px minmax(0,1fr) auto; }
.legacy-castle-records li div { min-width: 0; }
.legacy-castle-records li small { margin-top: 2px; display: block; overflow: hidden; color: var(--legacy-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.legacy-castle-records li em { padding: 5px 8px; border: 1px solid rgba(134,24,41,.14); border-radius: 3px; color: var(--legacy-ruby-deep); font: 650 13px Inter,sans-serif; font-style: normal; }
.legacy-guild-empty { grid-template-columns: 1fr !important; place-items: center; color: var(--legacy-muted); }
.legacy-record-plaque { position: relative; min-height: 204px; padding: 0 16px 8px; overflow: hidden; border: 2px solid rgba(178,134,55,.62); border-radius: 6px; background: linear-gradient(180deg,rgba(244,234,219,.88),rgba(228,212,190,.78)); box-shadow: 0 18px 36px rgba(0,0,0,.2),inset 0 0 0 2px rgba(255,248,226,.32),inset 0 1px rgba(255,255,255,.75); -webkit-backdrop-filter: blur(8px) saturate(.88); backdrop-filter: blur(8px) saturate(.88); }
.legacy-record-plaque::before,.legacy-record-plaque::after { position: absolute; z-index: 3; width: 16px; height: 16px; content: ""; pointer-events: none; }
.legacy-record-plaque::before { top: 5px; left: 5px; border-top: 1px solid rgba(183,139,54,.68); border-left: 1px solid rgba(183,139,54,.68); }
.legacy-record-plaque::after { right: 5px; bottom: 5px; border-right: 1px solid rgba(183,139,54,.5); border-bottom: 1px solid rgba(183,139,54,.5); }
.legacy-record-plaque > header { min-height: 70px; margin: 0 -16px 7px; padding: 6px 13px; display: grid; grid-template-columns: 66px minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid rgba(111,73,47,.24); background: linear-gradient(115deg,rgba(119,31,42,.14),rgba(206,168,91,.07) 62%,rgba(255,255,255,.3)); }
.legacy-record-plaque i { width: 68px; height: 66px; display: grid; place-items: center; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; font-style: normal; }
.legacy-record-plaque i.legacy-record-icon { overflow: visible; background: none; }
.legacy-record-icon img { width: 62px; height: 64px; object-fit: contain; filter: saturate(.96) contrast(1.03) drop-shadow(0 5px 6px rgba(103,72,28,.18)); }
.legacy-woe-record[data-record-code="K/D"] .legacy-record-icon img { width: 60px; height: 64px; }
.legacy-woe-record[data-record-code="EB"] .legacy-record-icon img { width: 64px; height: 66px; }
.legacy-woe-record[data-record-code="EC"] .legacy-record-icon img { width: 72px; height: 58px; }
.legacy-record-plaque h4 { margin: 0; color: var(--legacy-ruby-deep); font-size: 18px; font-weight: 650; }
.legacy-record-plaque header p { margin: 3px 0 0; color: var(--legacy-muted); font: 550 10px Inter,sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.legacy-record-plaque header > span { padding: 6px 11px; border: 1px solid rgba(152,105,39,.24); background: rgba(255,248,230,.52); color: var(--legacy-ruby-deep); font: 700 10px Inter,sans-serif; letter-spacing: .08em; clip-path: polygon(10% 0,90% 0,100% 50%,90% 100%,10% 100%,0 50%); }
.legacy-record-holder { min-height: 72px; padding: 10px 12px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid rgba(126,23,40,.23); border-radius: 5px; background: linear-gradient(125deg,#951a31,#68101f); box-shadow: inset 0 1px rgba(255,220,163,.24),0 7px 14px rgba(93,20,33,.14); }
.legacy-record-holder > span { color: #e6c878; font: 700 11px Inter,sans-serif; }
.legacy-record-holder div { min-width: 0; }
.legacy-record-holder b { display: block; overflow: hidden; color: #fff8ea; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.legacy-record-holder small { margin-top: 2px; display: block; color: #d4bba8; font: 600 8px Inter,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.legacy-record-holder em { color: #f1cf78; font: 700 20px Inter,sans-serif; font-style: normal; }
.legacy-record-plaque ol { margin: 7px 0 0; padding: 0; list-style: none; }
.legacy-record-plaque li { min-height: 28px; display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 8px; border-top: 1px solid rgba(87,61,47,.13); font-size: 13px; }
.legacy-record-plaque li span { color: #8b7c6c; text-align: center; }
.legacy-record-plaque li b { overflow: hidden; color: var(--legacy-ink); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.legacy-record-plaque li em { color: var(--legacy-ruby-deep); font: 650 13px Inter,sans-serif; font-style: normal; }
.legacy-record-plaque .legacy-mini-rank__empty { min-height: 120px; display: grid; place-items: center; color: var(--legacy-muted); }
@media (hover:hover) {
  .legacy-guild-legacy:hover,.legacy-record-plaque:hover { transform: translateY(-2px); border-color: rgba(134,24,41,.23); box-shadow: 0 20px 42px rgba(64,47,34,.12),inset 0 1px rgba(255,255,255,.68); }
  .legacy-champion-rank:hover { transform: translateY(-3px); }
  .legacy-champion-rank--1:hover { box-shadow: inset 0 1px rgba(255,229,165,.38),0 16px 30px rgba(85,15,29,.28); }
  .legacy-contenders li:hover,.legacy-guild-showcase li:hover { background: linear-gradient(90deg,rgba(151,28,46,.07),rgba(190,146,57,.04)); transform: translateX(2px); }
}

/* Legacy Records */
.legacy-systems { padding: 64px 4vw 68px; color: #eee8df; }
.legacy-streak-legends__header { max-width: 1440px; margin: 0 auto 28px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 48px; }
.legacy-streak-archive h2 { margin: 8px 0 0; color: #fff8eb; font: 400 clamp(34px,4vw,52px)/1.15 "Noto Sans Thai",sans-serif; }
.legacy-streak-legends__intro { max-width: 760px; margin: 15px 0 0; color: #c4bbb2; font-size: 15px; line-height: 1.75; }
.legacy-streak-season { min-width: 220px; padding: 4px 0 4px 22px; border-left: 2px solid rgba(190,151,73,.34); }
.legacy-streak-season span,
.legacy-streak-season strong,
.legacy-streak-season small { display: block; }
.legacy-streak-season span { color: #87929d; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.legacy-streak-season strong { margin-top: 5px; color: #d2af61; font: 500 20px Inter,sans-serif; }
.legacy-streak-season small { margin-top: 4px; color: #958d86; font-size: 11px; }
.legacy-streak-layout { max-width: 1440px; margin: auto; display: grid; grid-template-columns: minmax(0,1080px) minmax(280px,320px); align-items: stretch; gap: 40px; }
.legacy-streak-archive__body { min-width: 0; min-height: 460px; display: grid; grid-template-columns: 210px minmax(0,1fr); overflow: hidden; border: 1px solid rgba(205,174,109,.17); border-radius: 12px; background: rgba(9,12,16,.82); box-shadow: 0 24px 58px rgba(0,0,0,.26),inset 0 1px rgba(255,255,255,.025); }
.legacy-streak-tabs { padding: 16px 12px; display: flex; flex-direction: column; overflow: visible; border-right: 1px solid rgba(255,255,255,.075); background: linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.008)); }
.legacy-streak-tabs > header { padding: 4px 9px 14px; }
.legacy-streak-tabs > header span,
.legacy-streak-tabs > header small { display: block; }
.legacy-streak-tabs > header span { color: #d0ad5d; font: 600 9px Inter,sans-serif; letter-spacing: .14em; }
.legacy-streak-tabs > header small { margin-top: 5px; color: #7f858b; font-size: 10px; }
.legacy-streak-tabs button { position: relative; min-width: 0; min-height: 42px; padding: 8px 12px 8px 17px; border: 0; border-radius: 4px; background: transparent; color: #aaa39d; font-size: 14px; text-align: left; cursor: pointer; transition: color .2s ease,background .2s ease,transform .2s ease; }
.legacy-streak-tabs button::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 0; width: 2px; border-radius: 2px; background: transparent; }
.legacy-streak-tabs button[aria-selected="true"] { color: #fff4dc; background: linear-gradient(90deg,rgba(161,28,43,.18),rgba(161,28,43,.025)); }
.legacy-streak-tabs button[aria-selected="true"]::before { background: linear-gradient(180deg,#b42538,#d6b465); box-shadow: 0 0 10px rgba(184,40,57,.32); }
.legacy-streak-window { min-width: 0; padding: 27px 28px 18px; }
.legacy-streak-window > header { min-height: 82px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.legacy-streak-window > header p { margin: 0 0 5px; color: #817d79; font: 600 9px Inter,sans-serif; letter-spacing: .13em; }
.legacy-streak-window > header h3 { margin: 0; color: #e5c577; font: 500 23px Georgia,serif; }
.legacy-streak-window > header div > span { margin-top: 6px; display: block; color: #aaa39d; font-size: 12px; }
.legacy-streak-window > header > strong { padding: 7px 10px; border: 1px solid rgba(205,174,109,.24); color: #d4b362; font: 600 9px Inter,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.legacy-streak-table-head,
.legacy-streak-table > li { display: grid; grid-template-columns: 52px minmax(0,1.2fr) minmax(130px,.72fr) 92px; align-items: center; gap: 14px; }
.legacy-streak-table-head { min-height: 38px; border-bottom: 1px solid rgba(255,255,255,.075); color: #7f858b; font: 500 9px Inter,sans-serif; letter-spacing: .05em; }
.legacy-streak-table { margin: 0; padding: 0; list-style: none; }
.legacy-streak-table > li { min-height: 61px; border-bottom: 1px solid rgba(255,255,255,.06); color: #dcd5ce; transition: opacity .2s ease,transform .2s ease,background .2s ease; }
.legacy-streak-table > li:last-child { border-bottom: 0; }
.legacy-streak-table > li > span:first-child { color: #d3b15e; font: 500 12px Inter,sans-serif; text-align: center; }
.legacy-streak-table > li > strong { min-width: 0; overflow: hidden; color: #f1ebe3; font-size: 16px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.legacy-streak-table > li strong small { margin-top: 4px; display: block; color: #9b9188; font: 500 9px Inter,sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.legacy-streak-table > li > span:nth-child(3) { display: flex; align-items: baseline; gap: 7px; }
.legacy-streak-table > li > span:nth-child(3) b { color: #d5cec6; font: 500 12px Inter,sans-serif; }
.legacy-streak-table > li > span:nth-child(3) small { color: #7f858b; font: 500 10px Inter,sans-serif; }
.legacy-streak-table > li > em { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; font-style: normal; text-align: right; }
.legacy-streak-table > li > em b { color: #e3bf68; font: 600 20px Inter,sans-serif; }
.legacy-streak-table > li > em small { color: #8f867d; font: 600 8px Inter,sans-serif; letter-spacing: .08em; }
.legacy-streak-table.is-changing > li { opacity: 0; transform: translateY(5px); }
.legacy-streak-table__empty { grid-template-columns: 1fr !important; min-height: 180px !important; place-items: center; color: #aaa198 !important; }
.legacy-streak-art-stage { position: relative; min-height: 460px; overflow: visible; pointer-events: none; }
.legacy-streak-art-stage::after { content: ""; position: absolute; right: -15px; bottom: 4px; left: -15px; height: 34px; border-radius: 50%; background: radial-gradient(ellipse,rgba(0,0,0,.48),transparent 67%); filter: blur(7px); }
.legacy-streak-art-stage > p { position: absolute; z-index: 2; top: 13px; left: 4px; margin: 0; }
.legacy-streak-art-stage > p span,
.legacy-streak-art-stage > p strong,
.legacy-streak-art-stage > p small { display: block; }
.legacy-streak-art-stage > p span { color: #857f79; font: 600 9px Inter,sans-serif; letter-spacing: .18em; }
.legacy-streak-art-stage > p strong { margin-top: 5px; color: #d5b466; font: 500 18px Georgia,serif; }
.legacy-streak-art-stage > p small { margin-top: 5px; color: #918a83; font-size: 10px; }
.legacy-streak-art-stage > img { position: absolute; z-index: 1; right: -160px; bottom: 0; width: 550px; max-width: none; height: auto; filter: drop-shadow(0 22px 28px rgba(0,0,0,.52)) drop-shadow(0 0 18px rgba(188,131,68,.1)); }

/* Closing section */
.legacy-join--friendly { position: relative; min-height: 470px; padding: 44px 7vw 36px; display: grid; grid-template-columns: minmax(420px,560px) minmax(0,620px); justify-content: center; align-items: center; gap: clamp(26px,3vw,54px); overflow: hidden; }
.legacy-join__friends { min-height: 390px; display: grid; place-items: end center; overflow: visible; }
.legacy-join__friends img { width: min(108%,600px); max-width: none; height: auto; object-fit: contain; filter: drop-shadow(0 22px 32px rgba(0,0,0,.48)) drop-shadow(0 0 16px rgba(224,189,112,.08)); }
.legacy-join__message h2 { margin: 11px 0 17px; color: #fff8eb; font: 400 clamp(36px,4.4vw,58px)/1.08 Georgia,serif; letter-spacing: -.018em; }
.legacy-join__message h2 span { color: #e0bd70; }
.legacy-join__message > p:not(.legacy-eyebrow) { margin: 0; color: #ded5cc; font-size: 16px; line-height: 1.8; }
.legacy-join__message > p small { color: #a99f97; }
.legacy-join__friendly-links { margin-top: 27px; display: flex; gap: 34px; }
.legacy-join__friendly-links a { min-width: 185px; padding: 0 0 9px; border-bottom: 1px solid rgba(213,177,102,.27); transition: border-color .2s ease,transform .2s ease; }
.legacy-join__friendly-links a span,
.legacy-join__friendly-links a strong { display: block; }
.legacy-join__friendly-links a span { color: #a99f97; font-size: 11px; }
.legacy-join__friendly-links a strong { margin-top: 4px; color: #e2bd70; font-size: 15px; }
.legacy-join__friendly-links a b { display: inline-block; transition: transform .2s ease; }
.legacy-join__friendly-links a:hover { border-color: #d5b166; transform: translateY(-2px); }
.legacy-join__friendly-links a:hover b { transform: translateX(4px); }

/* Footer */
.legacy-footer { position: relative; z-index: 1; min-height: 100px; padding: 24px 4vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid rgba(185,154,98,.14); background: rgba(7,9,12,.93); color: #8d9399; font-size: 11px; }
.legacy-footer .legacy-brand { justify-self: start; }
.legacy-footer p { margin: 0; }
.legacy-footer nav { justify-self: end; display: flex; gap: 18px; }
.legacy-footer nav a:hover { color: var(--legacy-gold); }

/* Fixed desktop production canvas and world */
@media (min-width:1101px) and (hover:hover) and (pointer:fine) {
  .legacy-home.legacy-fixed-canvas { background: #07090c; }
  .legacy-fixed-canvas .legacy-site-shell { left: 50%; width: 1920px; min-width: 1920px; margin-left: -960px; }
  .legacy-fixed-canvas .legacy-header { right: auto; left: 50%; width: 1920px; min-width: 1920px; padding: 0 46px; transform: translateX(-50%); }
  .legacy-fixed-canvas .legacy-hero { width: 1920px; height: 941px; min-height: 941px; padding: 92px 96px 30px; background-size: 1920px auto; }
  .legacy-fixed-canvas .legacy-live-competitive-bg { width: 1920px; }
  .legacy-fixed-canvas .legacy-live-feed { width: 1760px; margin-inline: auto; }
  .legacy-fixed-canvas .legacy-competitive { padding: 68px 80px; }
  .legacy-fixed-canvas .legacy-competitive > header,
  .legacy-fixed-canvas .legacy-woe-hall,
  .legacy-fixed-canvas .legacy-guild-legacy,
  .legacy-fixed-canvas .legacy-streak-legends__header,
  .legacy-fixed-canvas .legacy-streak-layout { width: 1440px; max-width: none; }
  .legacy-fixed-canvas .legacy-primary-rankings { width: 1072px; max-width: none; }
  .legacy-fixed-canvas .legacy-systems { padding-inline: 80px; }
  .legacy-fixed-canvas .legacy-join--friendly { padding-inline: 96px; }
  .legacy-fixed-world { background: #d9ccb8; }
  .legacy-fixed-world .legacy-site-shell { background: transparent; }
  .legacy-fixed-world .legacy-site-shell::before { content: ""; position: fixed; z-index: 0; top: 0; left: 50%; width: 1920px; height: 100vh; min-height: 941px; pointer-events: none; background: linear-gradient(180deg,rgba(255,247,225,.035),rgba(22,17,13,.06)),url("../images/hero/hero-home-main-v1.webp") center -10px/1920px auto no-repeat #d9ccb8; box-shadow: inset 0 -100px 120px rgba(79,60,43,.08); transform: translateX(-50%); }
  .legacy-fixed-world .legacy-main,
  .legacy-fixed-world .legacy-footer { position: relative; z-index: 1; }
  .legacy-fixed-world .legacy-hero {
    background:
      linear-gradient(rgba(255,247,225,.035),rgba(22,17,13,.06)),
      url("../images/hero/hero-home-main-v1.webp") center -10px / 1920px auto no-repeat;
  }
}

/* Responsive */
@media (max-width:1100px) {
  .legacy-competitive-art { display: none; }
  .legacy-primary-rankings { gap: 10px; }
  .legacy-primary-rankings::before,.legacy-primary-rankings::after { display: none; }
  .legacy-header { background: rgba(5,7,9,.78); }
  .legacy-nav-toggle { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .legacy-nav { position: absolute; top: 92px; right: 0; left: 0; height: auto; margin: 0; padding: 18px 24px; display: none; align-items: stretch; flex-direction: column; gap: 0; background: rgba(7,9,12,.97); box-shadow: 0 18px 36px rgba(0,0,0,.46); }
  .legacy-nav.is-open { display: flex; }
  .legacy-nav > a,
  .legacy-guide > button { width: 100%; min-height: 62px; padding: 9px 4px; justify-content: flex-start; }
  .legacy-nav > a > i,
  .legacy-guide > button > i { width: 28px; display: inline-block; color: var(--legacy-gold-muted); }
  .legacy-nav > a > span,
  .legacy-guide > button > span { align-items: flex-start; font-size: 16px; }
  .legacy-nav > a::after,
  .legacy-guide > button::after { display: none; }
  .legacy-guide { height: auto; display: block; }
  .legacy-guide-menu { position: static; min-width: 0; margin: 0 0 7px 32px; transform: none; border-radius: 4px; background: rgba(255,255,255,.025); box-shadow: none; }
  .legacy-guide-menu::before { display: none; }
  .legacy-mobile-contact { display: flex !important; }
  .legacy-contact-admin { display: none !important; }
  .legacy-primary-rankings { grid-template-columns: 1fr 1fr; }
  .legacy-woe-feature { aspect-ratio: auto; grid-template-columns: 280px minmax(0,1fr); background: #dfccb0; }
  .legacy-woe-feature::after { display: none; }
  .legacy-woe-shrine { background-image: url("../images/castle/legacy-woe-hall-bg-v3.png"); background-position: left center; background-size: auto 124.51%; background-repeat: no-repeat; }
  .legacy-woe-command { background-image: radial-gradient(circle at 50% 62%,rgba(255,234,166,.26),transparent 42%),url("../images/castle/legacy-woe-hall-bg-v3.png"); background-position: center,center; background-size: auto,auto 124.51%; background-repeat: no-repeat; }
  .legacy-woe-intel { grid-column: 1/-1; padding: 8px 22px; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .legacy-woe-intel__row { min-height: 86px; border-right: 1px solid rgba(111,72,38,.18); border-bottom: 0; }
  .legacy-woe-intel__row:last-child { border-right: 0; }
  .legacy-record-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .legacy-ranking { min-height: 0; }
  .legacy-streak-layout { grid-template-columns: 1fr; }
  .legacy-streak-art-stage { display: none; }
}
@media (max-width:760px) {
  .legacy-header { height: 74px; min-height: 74px; padding: 0 16px; }
  .legacy-brand { width: 48px; height: 62px; }.legacy-brand img { width: 46px; height: 46px; }
  .legacy-nav { top: 74px; }
  .legacy-nav-actions > button { min-width: 44px; padding-inline: 12px !important; }
  .legacy-nav-actions > button > span { display: none; }
  .legacy-hero { min-height: 844px; padding: 74px 16px 20px; align-items: flex-start; background-position: 58% center; }
  .legacy-atmosphere { inset: 74px 0 0; }
  .legacy-hero-copy { padding-top: 115px; justify-content: flex-start; }
  .legacy-logo-stage { width: min(88vw,380px); }
  .legacy-tagline { margin-top: 4px; font-size: 14px; text-align: center; }
  .legacy-actions { width: min(310px,90vw); margin-top: 22px; flex-direction: column; }
  .legacy-actions a { width: 100%; height: 65px; }
  .legacy-stats { bottom: 18px; width: calc(100% - 28px); height: 78px; grid-template-columns: repeat(5,145px); overflow-x: auto; overflow-y: hidden; }
  .legacy-live-competitive-bg { padding-top: 38px; }
  .legacy-live-feed { margin: 0 16px 24px; }
  .legacy-live-feed > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .legacy-feed-grid,
  .legacy-primary-rankings,
  .legacy-record-grid,
  .legacy-guild-showcase { grid-template-columns: 1fr; }
  .legacy-feed-column { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.075); }
  .legacy-competitive { padding: 52px 16px 46px; }
  .legacy-competitive__masthead { padding: 0 0 18px; align-items: flex-start; flex-direction: column; gap: 15px; }
  .legacy-competitive__masthead h2 { font-size: 34px; }
  .legacy-competitive__masthead > span { padding: 0; border-top: 1px solid rgba(202,170,105,.22); border-left: 0; padding-top: 12px; }
  .legacy-woe-feature { grid-template-columns: 1fr; }
  .legacy-woe-shrine { display: none; }
  .legacy-woe-command { padding: 26px 16px 18px; }
  .legacy-woe-command > header h3 { font-size: 31px; }
  .legacy-woe-intel { grid-column: auto; margin: 0; padding: 8px 18px 18px; grid-template-columns: 1fr; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; }
  .legacy-woe-intel__row { min-height: 76px; border-right: 0; border-bottom: 1px solid rgba(111,72,38,.18); }
  .legacy-woe-intel__row:last-child { border-bottom: 0; }
  .legacy-ranking { min-height: 0; padding: 0 18px 18px; }
  .legacy-ranking > header { margin-inline: -18px; padding-inline: 18px; }
  .legacy-ranking-art--emperium { right: 76px; width: 62px; }
  .legacy-competitive-art { display: none; }
  .legacy-guild-legacy { min-height: 0; padding: 0; }
  .legacy-guild-legacy > header { padding: 14px 16px; }
  .legacy-guild-icon { position: static; width: 52px; height: 54px; flex: 0 0 52px; }
  .legacy-guild-icon img { width: 50px; height: 52px; }
  .legacy-guild-showcase { margin: 12px 12px 0; padding-left: 0; }
  .legacy-guild-showcase > article { padding: 17px 15px; }
  .legacy-guild-showcase > article + article { border-top: 1px solid rgba(87,61,47,.12); border-left: 0; }
  .legacy-guild-legacy h3 { font-size: 21px; }
  .legacy-champion-podium { min-height: 190px; gap: 5px; }
  .legacy-champion-rank { min-height: 142px; padding-inline: 5px; }
  .legacy-champion-rank--1 { min-height: 176px; }
  .legacy-contenders { grid-template-columns: 1fr; }
  .legacy-contenders li:last-child:nth-child(odd) { grid-column: auto; }
  .legacy-systems { padding: 38px 16px 58px; }
  .legacy-streak-legends__header { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .legacy-streak-season { padding: 14px 0 0; border-top: 1px solid rgba(214,173,91,.25); border-left: 0; }
  .legacy-streak-layout { grid-template-columns: 1fr; }
  .legacy-streak-art-stage { display: none; }
  .legacy-streak-archive__body { min-height: 0; grid-template-columns: 1fr; }
  .legacy-streak-tabs { padding: 10px; display: grid; grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.075); }
  .legacy-streak-tabs > header { grid-column: 1/-1; }
  .legacy-streak-tabs button { min-height: 44px; font-size: 13px; }
  .legacy-streak-window { padding: 22px 12px 14px; }
  .legacy-streak-table-head,
  .legacy-streak-table > li { grid-template-columns: 42px minmax(0,1fr) 76px; gap: 8px; }
  .legacy-streak-table-head > :nth-child(3),
  .legacy-streak-table > li > span:nth-child(3) { display: none; }
  .legacy-join--friendly { min-height: 0; padding: 54px 22px 42px; grid-template-columns: 1fr; gap: 18px; }
  .legacy-join__friends { order: 2; min-height: 310px; max-height: none; }
  .legacy-join__friends img { width: min(112vw,440px); max-width: none; height: auto; object-fit: contain; }
  .legacy-join__message h2 { font-size: 38px; }
  .legacy-join__friendly-links { flex-direction: column; gap: 17px; }
  .legacy-footer { padding-inline: 18px; grid-template-columns: 1fr; gap: 18px; }
  .legacy-footer nav { justify-self: start; }
  .legacy-sun-ray--two,.legacy-bird--three,.legacy-motes i:nth-child(n+6) { display: none; }
}

@keyframes legacy-logo-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
@keyframes legacy-logo-glow { 0%,100%{filter:drop-shadow(0 6px 4px rgba(3,9,15,.68)) drop-shadow(0 10px 10px rgba(3,9,15,.3))} 50%{filter:drop-shadow(0 7px 4px rgba(3,9,15,.74)) drop-shadow(0 11px 12px rgba(3,9,15,.34)) drop-shadow(0 0 9px rgba(202,170,105,.2))} }
@keyframes legacy-online-pulse { 0%,100%{opacity:.78;transform:scale(.9)} 50%{opacity:1;transform:scale(1.08)} }
@keyframes legacy-sun-breathe { 0%,100%{opacity:.75;transform:scale(.98)} 50%{opacity:1;transform:scale(1.04)} }
@keyframes legacy-ray-drift { 0%,100%{transform:rotate(-24deg) translateX(0)} 50%{transform:rotate(-20deg) translateX(30px)} }
@keyframes legacy-bird-flight { 0%{transform:translate(-20vw,20px)} 100%{transform:translate(75vw,-35px)} }
@keyframes legacy-mote { 0%{opacity:0;transform:translateY(35px)} 20%,70%{opacity:.8} 100%{opacity:0;transform:translateY(-80px)} }

@media (prefers-reduced-motion:reduce) {
  .legacy-home * { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}
