@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --void: #05070b;
  --void-2: #090c12;
  --panel: #0d1119;
  --panel-2: #131a26;
  --steel: #26314485;
  --steel-line: #34435c;
  --steel-line-soft: #26314485;
  --gold: #c9a463;
  --gold-bright: #f2d896;
  --gold-deep: #7c5a26;
  --gold-glow: rgba(201, 164, 99, 0.35);
  --parchment: #e9e3d3;
  --muted: #8b93a6;
  --muted-2: #5c6478;
  --marble: #cfd3d6;

  --sacred: #eae0c2;        --sacred-glow: rgba(234, 224, 194, 0.25);
  --mystic: #6fd8d0;        --mystic-glow: rgba(111, 216, 208, 0.25);
  --phoenix: #ff7a4d;       --phoenix-glow: rgba(255, 122, 77, 0.28);

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-ui: "Rajdhani", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius: 4px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --bg-image: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--void);
  background-image: var(--bg-image),
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(124, 90, 38, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 600px at 100% 20%, rgba(38, 49, 68, 0.35), transparent 60%),
    linear-gradient(180deg, var(--void) 0%, var(--void-2) 100%);
  background-size: cover, auto, auto, auto;
  background-position: center;
  background-attachment: fixed;
  color: var(--parchment);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold-deep); color: var(--gold-bright); }

/* ============================================================
   PREMIUM: Scroll progress bar with gold shimmer
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 999;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-fill {
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg,
    var(--gold-deep) 0%,
    var(--gold) 40%,
    var(--gold-bright) 50%,
    var(--gold) 60%,
    var(--gold-deep) 100%);
  background-size: 200% 100%;
  animation: scrollShimmer 3s linear infinite;
  box-shadow: 0 0 12px var(--gold-glow);
}
@keyframes scrollShimmer {
  to { background-position: -200% 0; }
}

.ember-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ember {
  position: absolute;
  bottom: -5%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright), var(--gold) 60%, transparent 70%);
  opacity: 0;
  animation-name: rom-ember-rise;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}
@keyframes rom-ember-rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.75; }
  90% { opacity: 0.35; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 20px)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ember-field { display: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.btn { overflow: hidden; }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  animation: rom-ripple 0.6s ease-out;
}
@keyframes rom-ripple {
  to { transform: scale(3.2); opacity: 0; }
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  background: radial-gradient(circle, rgba(242, 216, 150, 0.55), rgba(201, 164, 99, 0.18) 55%, transparent 75%);
  --x: 0px;
  --y: 0px;
  transform: translate3d(var(--x), var(--y), 0) translate(-50%, -50%) scale(1);
  transition: opacity 0.25s ease;
  opacity: 0;
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
.cursor-glow.is-hover {
  transform: translate3d(var(--x), var(--y), 0) translate(-50%, -50%) scale(2.2);
  transition: transform 0.18s ease-out, opacity 0.25s ease;
}
@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

.btn, .tile { will-change: transform; }
.btn::before, .tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) 45%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn:hover::before, .tile:hover::before {
  animation: rom-shine 0.9s ease;
}
@keyframes rom-shine {
  to { transform: translateX(120%); }
}
.tile {
  position: relative;
  overflow: hidden;
}

.hero-stats {
  display: flex;
  gap: clamp(1.4rem, 5vw, 3rem);
  margin: 0.4rem 0 0.2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: var(--gold-bright);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.flip-hint {
  text-align: center;
  color: var(--muted-2);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin: -0.4rem 0 1.1rem;
}

.hero h1 {
  background-size: 220% 100%;
  animation: rom-shimmer 7s ease-in-out infinite;
  text-shadow: 0 4px 30px rgba(201, 164, 99, 0.18);
  filter: drop-shadow(0 2px 1px rgba(0,0,0,0.3));
}
@keyframes rom-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none; }
}

.medallion-tilt {
  cursor: pointer;
}
.medallion-tilt.is-spinning {
  animation: rom-coin-spin 0.9s cubic-bezier(0.45, 0, 0.15, 1);
}
@keyframes rom-coin-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--parchment);
  letter-spacing: 0.02em;
  margin: 0.35em 0 0.2em;
}

.section-sub {
  color: var(--muted);
  max-width: 60ch;
  font-size: 0.98rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.7em 1.4em;
  border-radius: var(--radius);
  border: 1px solid var(--steel-line);
  background: linear-gradient(180deg, #171f2c, #0e131c);
  color: var(--parchment);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-glow), 0 6px 18px -6px rgba(201, 164, 99, 0.35);
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #241a08;
  border: 1px solid var(--gold-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-gold:hover {
  box-shadow: 0 0 0 1px var(--gold-bright), 0 8px 22px -6px rgba(242, 216, 150, 0.55);
}
.btn-ghost {
  background: transparent;
  border-color: var(--steel-line-soft);
  color: var(--muted);
}
.btn-ghost:hover {
  color: var(--gold-bright);
}
.btn-sm {
  padding: 0.5em 1em;
  font-size: 0.75rem;
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.5rem clamp(1.4rem, 4vw, 3.2rem);
  background: rgba(6, 8, 13, 0.75);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--steel-line-soft);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(5, 6, 10, 0.94);
  border-bottom-color: var(--gold-deep);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(201, 164, 99, 0.1);
}
.nav-btn.is-current {
  color: var(--gold-bright);
  border-color: var(--gold-deep);
  background: rgba(201, 164, 99, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand img {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 0 8px rgba(201, 164, 99, 0.4));
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text .b-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--parchment);
  letter-spacing: 0.02em;
}
.brand-text .b-sub {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.85em 1.25em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-btn:hover {
  color: var(--gold-bright);
  border-color: var(--steel-line-soft);
  background: rgba(201, 164, 99, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  color: var(--gold-bright);
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(3rem, 9vw, 6rem) 1.5rem 3.5rem;
}

.hero-ring-wrap {
  position: relative;
  width: clamp(180px, 32vw, 300px);
  height: clamp(180px, 32vw, 300px);
  margin: 0 auto 2.2rem;
  perspective: 900px;
}
.hero-ring-wrap .medallion-glow {
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(180px 180px at var(--mx, 50%) var(--my, 50%), rgba(242, 216, 150, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.hero-ring-wrap:hover .medallion-glow {
  opacity: 1;
}
.hero-ring-wrap .medallion-tilt {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  animation: rom-breathe 6s ease-in-out infinite;
}
@keyframes rom-breathe {
  0%, 100% { filter: drop-shadow(0 0 34px rgba(201, 164, 99, 0.4)) drop-shadow(0 20px 35px rgba(0,0,0,0.8)); }
  50% { filter: drop-shadow(0 0 52px rgba(242, 216, 150, 0.55)) drop-shadow(0 20px 35px rgba(0,0,0,0.8)); }
}
.hero-ring-wrap img.medallion {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hero-ring-wrap::before {
  content: "";
  position: absolute;
  inset: -46px;
  border-radius: 50%;
  border: 1px dashed var(--gold-deep);
  opacity: 0.5;
  animation: rom-spin 40s linear infinite;
}
.hero-ring-wrap::after {
  content: "";
  position: absolute;
  inset: -74px;
  border-radius: 50%;
  border: 1px solid var(--steel-line-soft);
  opacity: 0.55;
  animation: rom-spin 70s linear infinite reverse;
}
@keyframes rom-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ring-wrap::before,
  .hero-ring-wrap::after {
    animation: none;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  letter-spacing: 0.015em;
  margin: 0 0 0.5rem;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .tagline {
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  max-width: 46ch;
  margin: 0 auto 1rem;
  letter-spacing: 0.02em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.4rem;
}

.marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--steel-line-soft);
  border-bottom: 1px solid var(--steel-line-soft);
  background: linear-gradient(90deg, rgba(19, 26, 38, 0.9), rgba(13, 17, 25, 0.9));
  overflow: hidden;
  padding: 0.65rem 0;
}
.live-dot {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fe3c0;
  box-shadow: 0 0 0 0 rgba(143, 227, 192, 0.6);
  animation: rom-live-pulse 2s ease-out infinite;
  z-index: 2;
}
@keyframes rom-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 227, 192, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(143, 227, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 227, 192, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
@media (max-width: 560px) {
  .live-dot { display: none; }
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: rom-marquee 12s linear infinite;
  padding-left: 3rem;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes rom-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--parchment);
}
.marquee-tag {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  border: 1px solid var(--gold-deep);
  color: var(--gold-bright);
}
.marquee-empty {
  font-family: var(--font-ui);
  color: var(--muted-2);
  padding-left: 3rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.section {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
  opacity: 0.4;
}
.section-head {
  text-align: center;
  margin-bottom: 2.4rem;
}
.section-head.left {
  text-align: left;
}

.announce-panel {
  border: 1px solid var(--steel-line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 26, 38, 0.4), rgba(13, 17, 25, 0.4));
  padding: 1.2rem;
}
.announce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

/* ============================================================
   PREMIUM: Card tilt glow follow & Double-line borders
   ============================================================ */
.tile, .dl-card, .a-card {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 26, 38, 0.75), rgba(13, 17, 25, 0.75));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 20px -12px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.tile.is-tilting, .dl-card.is-tilting, .a-card.is-tilting {
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tile::after, .dl-card::after, .a-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(242, 216, 150, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.tile:hover::after, .dl-card:hover::after, .a-card:hover::after {
  opacity: 1;
}
.tile:hover, .dl-card:hover, .a-card:hover {
  border-color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px var(--gold-glow),
    0 20px 40px -16px rgba(0,0,0,0.7),
    0 0 30px -10px var(--gold-glow);
}

.announce-grid::-webkit-scrollbar { width: 8px; }
.announce-grid::-webkit-scrollbar-track { background: transparent; }
.announce-grid::-webkit-scrollbar-thumb { background: var(--steel-line); border-radius: 8px; }
.announce-grid::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

.a-card {
  border: 1px solid var(--steel-line-soft);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  position: relative;
}
.a-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.4rem;
  right: 1.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.a-card .a-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.a-badge {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28em 0.7em;
  border-radius: 999px;
  border: 1px solid;
}
.a-badge.maintenance {
  color: #ffb37a;
  border-color: #8a5a30;
  background: rgba(255, 122, 77, 0.08);
}
.a-badge.server-up {
  color: #8fe3c0;
  border-color: #2f6a52;
  background: rgba(111, 216, 160, 0.08);
}
.a-badge.patch {
  color: #b9c7ff;
  border-color: #3c4c8a;
  background: rgba(122, 143, 255, 0.08);
}
.a-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--muted-2);
}
.a-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--gold-bright);
}
.a-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.empty-note {
  color: var(--muted-2);
  font-family: var(--font-ui);
  letter-spacing: 0.03em;
}

/* ============================================================
   PREMIUM: Skeleton loaders
   ============================================================ */
.a-skeleton { padding: 1.3rem 1.4rem; }
.a-skeleton .sk {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(201,164,99,0.10) 50%,
    rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skShimmer 1.6s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.a-skeleton .sk-sm { width: 80px; height: 14px; }
.a-skeleton .sk-lg { width: 60%; height: 18px; }
.a-skeleton .sk-line { width: 100%; height: 12px; }
.a-skeleton .sk-line.short { width: 70%; }
@keyframes skShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.tile {
  text-align: left;
  border: 1px solid var(--steel-line-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: inherit;
  width: 100%;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold-deep);
}
.tile .t-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-deep);
  color: var(--gold-bright);
  background: rgba(201, 164, 99, 0.08);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tile:hover .t-icon {
  transform: scale(1.1) rotate(-6deg);
  background: rgba(201, 164, 99, 0.18);
  box-shadow: 0 0 18px rgba(201, 164, 99, 0.4);
}
.tile .t-icon svg {
  width: 22px;
  height: 22px;
}
.tile h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
  color: var(--parchment);
}
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.tile .t-cta {
  margin-top: auto;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.download-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
}
.dl-card {
  flex: 1 1 260px;
  max-width: 340px;
  border: 1px solid var(--steel-line-soft);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}
.dl-card .dl-icon {
  width: 54px;
  height: 54px;
  color: var(--gold-bright);
}
.dl-card h3 {
  font-family: var(--font-display);
  margin: 0;
}
.dl-card p {
  color: var(--muted-2);
  font-size: 0.82rem;
  margin: 0 0 0.4rem;
}

.social-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--steel-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.social-btn svg {
  width: 18px;
  height: 18px;
}
.social-btn:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  transform: translateY(-2px);
}

#socFacebook {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.4);
}
#socFacebook:hover {
  color: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 0 14px -2px rgba(24, 119, 242, 0.6);
}
#socDiscord {
  color: #5865f2;
  border-color: rgba(88, 101, 242, 0.4);
}
#socDiscord:hover {
  color: #5865f2;
  border-color: #5865f2;
  box-shadow: 0 0 14px -2px rgba(88, 101, 242, 0.6);
}
#socTwitter {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
#socTwitter:hover {
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 14px -2px rgba(255, 255, 255, 0.5);
}
#socThread {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
#socThread:hover {
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 14px -2px rgba(255, 255, 255, 0.5);
}
#socInstagram {
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.4);
}
#socInstagram:hover {
  color: #ffffff;
  border-color: transparent;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 0 14px -2px rgba(214, 36, 159, 0.6);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--steel-line-soft);
  padding: 2.4rem 1.5rem 1.6rem;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.85rem;
}
.site-footer .f-brand {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}

/* ============================================================
   PREMIUM: Panels & Overlays
   ============================================================ */
.panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
  background: radial-gradient(120% 90% at 50% 40%, rgba(20, 26, 38, 0.55), rgba(3, 4, 7, 0.86));
  backdrop-filter: blur(8px);
}
.panel-overlay.is-open {
  display: flex;
}
.panel {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(201, 164, 99, 0.15),
    0 30px 70px -20px rgba(0, 0, 0, 0.9),
    0 0 90px -30px rgba(201, 164, 99, 0.35);
  padding: 0;
  animation: rom-panel-in 0.36s var(--ease);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(242, 216, 150, 0.6) 0%, transparent 25%, transparent 75%, rgba(242, 216, 150, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}
.panel::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: 0.8;
  pointer-events: none;
}
@keyframes rom-panel-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--steel-line-soft);
  background: linear-gradient(90deg, rgba(201, 164, 99, 0.1), transparent 65%);
  flex-shrink: 0;
}
.ph-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.ph-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  background: radial-gradient(circle at 35% 30%, rgba(242, 216, 150, 0.18), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
}
.ph-icon svg {
  width: 20px;
  height: 20px;
}
.ph-eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 0.15rem;
}
.panel-head h2 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin: 0;
  color: var(--gold-bright);
  line-height: 1.1;
}
.panel-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--steel-line);
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, transform 0.35s var(--ease), background 0.2s;
}
.panel-close svg {
  transition: transform 0.35s var(--ease);
}
.panel-close:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(201, 164, 99, 0.1);
}
.panel-close:hover svg {
  transform: rotate(90deg);
}

.panel-switch {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid var(--steel-line-soft);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.panel-switch::-webkit-scrollbar {
  display: none;
}
.ps-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--steel-line);
  color: var(--muted);
  background: transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.ps-btn svg {
  width: 13px;
  height: 13px;
}
.ps-btn:hover {
  color: var(--parchment);
  border-color: var(--steel-line);
}
.ps-btn.is-active {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(201, 164, 99, 0.12);
}
.panel-body {
  padding: 1.6rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.panel-pop-in {
  opacity: 0;
  transform: translateY(10px);
  animation: rom-pop-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes rom-pop-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .panel-pop-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
.panel-body::-webkit-scrollbar { width: 8px; }
.panel-body::-webkit-scrollbar-thumb { background: var(--steel-line); border-radius: 8px; }

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.guide-item {
  border: 1px solid var(--steel-line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.guide-item h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.guide-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.class-select {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.1rem;
  align-items: start;
}

.cs-roster {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cs-roster-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  padding: 0.5rem;
  border: 1px solid var(--steel-line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.cs-roster-item:hover {
  border-color: var(--gold-deep);
  transform: translateX(2px);
}
.cs-roster-item.is-active {
  border-color: var(--gold);
  background: linear-gradient(90deg, rgba(201, 164, 99, 0.16), rgba(201, 164, 99, 0.03));
  box-shadow: 0 0 0 1px rgba(201, 164, 99, 0.25);
}
.cs-roster-thumb {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--steel-line);
  background: radial-gradient(circle at 50% 30%, rgba(201, 164, 99, 0.18), transparent 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.cs-roster-item.is-active .cs-roster-thumb {
  border-color: var(--gold);
}
.cs-roster-thumb img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center top;
}
.cs-roster-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--parchment);
  line-height: 1.2;
}
.cs-roster-item.is-active .cs-roster-name {
  color: var(--gold-bright);
}
.cs-roster-role {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.cs-display {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 1.2rem;
  border: 1px solid var(--steel-line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(201, 164, 99, 0.07), rgba(13, 17, 25, 0.4));
  padding: 1.1rem;
  overflow: hidden;
}
.cs-display-art {
  position: relative;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(201, 164, 99, 0.16), transparent 70%);
  border: 1px solid var(--steel-line-soft);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-display-art img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: auto;
  object-fit: contain;
  transform-origin: center center;
  animation: csArtIn 0.4s var(--ease);
}
@keyframes csArtIn {
  from { opacity: 0; transform: scale(0.9) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cs-zoom-hint {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--parchment);
  background: rgba(3, 4, 7, 0.65);
  border: 1px solid var(--steel-line);
  padding: 0.3em 0.7em;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
}
.cs-zoom-hint svg {
  width: 12px;
  height: 12px;
}
.cs-display-art:hover .cs-zoom-hint {
  opacity: 1;
}
.cs-display-info {
  min-width: 0;
}
.cs-role-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--gold-deep);
  background: rgba(201, 164, 99, 0.1);
  padding: 0.25em 0.7em;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.cs-display-info h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--parchment);
}
.cs-display-info > p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.cs-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.cs-stat {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 0.6rem;
}
.cs-stat span {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.cs-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--void-2);
  border: 1px solid var(--steel-line-soft);
  overflow: hidden;
}
.cs-bar i {
  display: block;
  height: 100%;
  width: var(--v, 50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transform-origin: left;
  animation: csBarIn 0.6s var(--ease) both;
}
@keyframes csBarIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.cs-move {
  border-top: 1px solid var(--steel-line-soft);
  padding-top: 0.9rem;
}
.cs-move-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.cs-move h4 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-bright);
}
.cs-move p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.cs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 6vh 1.5rem 3vh;
  background: rgba(3, 4, 7, 0.92);
  backdrop-filter: blur(10px);
}
.cs-lightbox.is-open {
  display: flex;
}
.cs-lightbox img {
  max-height: 62vh;
  max-width: min(90vw, 480px);
  width: auto;
  object-fit: contain;
  animation: csLightboxIn 0.3s var(--ease);
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
}
@keyframes csLightboxIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.cs-lightbox-caption {
  text-align: center;
  max-width: 460px;
}
.cs-lightbox-caption h3 {
  margin: 0.3rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--parchment);
}
.cs-lightbox-caption p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.cs-lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--steel-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, transform 0.35s var(--ease);
}
.cs-lightbox-close:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  transform: rotate(90deg);
}
@media (prefers-reduced-motion: reduce) {
  .cs-display-art img,
  .cs-bar i,
  .cs-lightbox img {
    animation: none;
  }
}

@media (max-width: 700px) {
  .class-select {
    grid-template-columns: 1fr;
  }
  .cs-roster {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    scrollbar-width: none;
  }
  .cs-roster::-webkit-scrollbar {
    display: none;
  }
  .cs-roster-item {
    flex-direction: column;
    text-align: center;
    flex-shrink: 0;
    width: 92px;
    gap: 0.4rem;
  }
  .cs-roster-item:hover {
    transform: none;
  }
  .cs-display {
    grid-template-columns: 1fr;
  }
}

.class-finder {
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(201, 164, 99, 0.08), rgba(19, 26, 38, 0.5));
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.4rem;
  position: relative;
  overflow: hidden;
}
.cf-head h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--gold-bright);
}
.cf-head p {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.cf-step {
  display: none;
}
.cf-step.is-active {
  display: block;
  animation: cfFadeIn 0.25s var(--ease);
}
.cf-question {
  margin: 0 0 0.7rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--parchment);
}
.cf-options {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cf-opt {
  font-family: var(--font-body);
  font-size: 0.84rem;
  padding: 0.6em 1em;
  border-radius: var(--radius);
  border: 1px solid var(--steel-line);
  color: var(--parchment);
  background: var(--void-2);
  transition: border-color 0.2s, transform 0.2s;
}
.cf-opt:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.cf-result {
  display: none;
  text-align: center;
}
.cf-result.is-active {
  display: block;
  animation: cfFadeIn 0.3s var(--ease);
}
.cf-result-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.cf-result-glyph {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 16px rgba(201, 164, 99, 0.5);
}
.cf-result h4 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  color: var(--parchment);
}
.cf-result p {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}
@keyframes cfFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.feature-item {
  display: flex;
  gap: 0.8rem;
  border: 1px solid var(--steel-line-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.feature-item .f-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item .f-icon svg {
  width: 16px;
  height: 16px;
}
.feature-item h4 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--parchment);
}
.feature-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.campus-tabs {
  position: relative;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.campus-tab-indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  border-radius: 2px;
  transition: left 0.3s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.campus-tab {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5em 1em;
  border-radius: 999px;
  border: 1px solid var(--steel-line);
  color: var(--muted);
  background: transparent;
}
.campus-tab.is-active {
  color: var(--accent, var(--gold-bright));
  border-color: var(--accent, var(--gold));
  background: var(--accent-glow, rgba(201, 164, 99, 0.1));
}
.campus-panel-body {
  --accent: var(--gold);
  --accent-glow: var(--gold-glow);
}
.campus-view {
  display: none;
  border: 1px solid var(--steel-line-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
  z-index: 0;
  overflow: hidden;
}
.campus-view.is-active {
  display: block;
}
.campus-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 300px 200px at 90% -10%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.campus-view::after {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(8, 10, 16, 0.55), rgba(8, 10, 16, 0.88)),
    var(--campus-bg);
  background-size: cover;
  background-position: center;
  animation: campus-bg-drift 24s ease-in-out infinite alternate;
}
@keyframes campus-bg-drift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
  .campus-view::after {
    animation: none;
  }
}
.campus-view h3 {
  font-family: var(--font-display);
  color: var(--accent);
  margin: 0 0 0.3rem;
  position: relative;
}
.campus-view .c-tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
  position: relative;
}
.campus-view p {
  color: var(--muted);
  font-size: 0.92rem;
  position: relative;
  max-width: 60ch;
}
.campus-traits {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  position: relative;
}
.campus-traits span {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

@media (max-width: 880px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 39;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 8, 13, 0.97);
    border-bottom: 1px solid var(--steel-line-soft);
    padding: 0.6rem 1rem 1rem;
    gap: 0.2rem;
    display: none;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .main-nav.is-open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .header-actions .btn-label {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero .tagline {
    font-size: 0.9rem;
  }
  .panel-body {
    padding: 1.2rem;
  }
  .hero-ring-wrap::before {
    inset: -28px;
  }
  .hero-ring-wrap::after {
    inset: -46px;
  }
}

@media (max-width: 480px) {
  .site-header {
    gap: 0.6rem;
    padding: 0.85rem 1rem;
  }
  .brand {
    gap: 0.5rem;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand-text .b-main {
    font-size: 1.05rem;
  }
  .brand-text .b-sub {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .btn-sm {
    padding: 0.5em 0.8em;
    font-size: 0.72rem;
  }
  .nav-toggle {
    width: 40px;
    height: 40px;
  }
  .nav-toggle svg {
    width: 18px;
    height: 18px;
  }
  .lang-btn {
    padding: 0.4em 0.55em;
    font-size: 0.72rem;
  }
  .lang-code {
    display: none;
  }

  .hero {
    padding: 2.2rem 1rem 2.4rem;
  }
  .hero-ring-wrap {
    width: clamp(140px, 42vw, 200px);
    height: clamp(140px, 42vw, 200px);
    margin-bottom: 1.4rem;
  }
  .hero h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .hero-stats {
    gap: 1.4rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }
  .hero-ctas .btn {
    width: 100%;
  }

  .section {
    padding: 2.4rem 1.1rem;
  }
  .section-title {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
  }

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

  .download-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .dl-card {
    max-width: none;
  }

  .social-row {
    gap: 0.5rem;
  }
  .social-btn {
    width: 38px;
    height: 38px;
  }

  .panel-head {
    padding: 1rem 1.1rem;
  }
  .panel-head h2 {
    font-size: 1.08rem;
  }
  .ph-icon {
    width: 36px;
    height: 36px;
  }
  .panel-switch {
    padding: 0.6rem 1.1rem;
  }

  .bgm-toggle {
    width: 42px;
    height: 42px;
  }
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.site-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: rom-bg-cycle 21s infinite;
}
.bg-sg {
  background-image: url('/assets/campuses/sg.jpg');
  animation-delay: 0s;
}
.bg-mp {
  background-image: url('/assets/campuses/mp.jpg');
  animation-delay: 7s;
}
.bg-pnx {
  background-image: url('/assets/campuses/pnx.jpg');
  animation-delay: 14s;
}
@keyframes rom-bg-cycle {
  0% { opacity: 0; }
  4% { opacity: 1; }
  29% { opacity: 1; }
  36% { opacity: 0; }
  100% { opacity: 0; }
}
.site-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(124, 90, 38, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(5,7,11,0.45) 0%, rgba(5,7,11,0.6) 60%, rgba(5,7,11,0.75) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .site-bg-layer {
    animation: none;
    opacity: 0;
  }
  .site-bg-layer.bg-sg {
    opacity: 1;
  }
}

.lang-switch {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--parchment);
  padding: 0.45em 0.7em;
  border-radius: var(--radius);
  border: 1px solid var(--steel-line);
  background: transparent;
  transition: border-color 0.2s, background 0.2s;
}
.lang-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 164, 99, 0.08);
}
.lang-flag {
  font-size: 1.05rem;
  line-height: 1;
}
.lang-code {
  text-transform: uppercase;
}
.lang-caret {
  width: 12px;
  height: 12px;
  color: var(--muted-2);
  transition: transform 0.2s var(--ease);
}
.lang-btn[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 170px;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-deep);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(201, 164, 99, 0.12);
  z-index: 60;
  animation: rom-panel-in 0.22s var(--ease);
}
.lang-menu.is-open {
  display: flex;
}
.lang-opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.5em 0.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.lang-opt:hover {
  color: var(--parchment);
  background: rgba(201, 164, 99, 0.08);
}
.lang-opt.is-active {
  color: var(--gold-bright);
  border-color: var(--gold-deep);
  background: rgba(201, 164, 99, 0.1);
}
.lang-opt .lang-flag {
  font-size: 1rem;
}
@media (max-width: 880px) {
  .lang-switch {
    order: -1;
  }
  .lang-menu {
    right: auto;
    left: 0;
  }
}

.bgm-player {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 60;
  display: flex;
  align-items: center;
}
.bgm-toggle {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--steel-line);
  background: rgba(9, 12, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.bgm-toggle:hover {
  border-color: var(--gold);
  box-shadow: 0 0 16px -2px var(--gold-glow), 0 4px 18px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}
.bgm-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: opacity 0.15s, transform 0.15s;
}
.bgm-icon-play { opacity: 1; }
.bgm-icon-pause { opacity: 0; transform: scale(0.85); }
.bgm-player.is-playing .bgm-icon-play { opacity: 0; transform: scale(0.85); }
.bgm-player.is-playing .bgm-icon-pause { opacity: 1; transform: scale(1); }
.bgm-eq { display: none; }
.bgm-toggle::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--gold-glow);
  opacity: 0;
  animation: bgm-spin 12s linear infinite;
  transition: opacity 0.3s;
}
.bgm-player.is-playing .bgm-toggle::before {
  opacity: 1;
}
@keyframes bgm-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.bgm-panel {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 44px;
  padding: 0 0.9rem 0 1rem;
  margin-right: -22px;
  padding-right: calc(22px + 0.9rem);
  background: rgba(9, 12, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--steel-line);
  border-radius: 999px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.28s var(--ease), opacity 0.2s, padding 0.28s var(--ease);
}
.bgm-player:hover .bgm-panel,
.bgm-player:focus-within .bgm-panel {
  max-width: 220px;
  opacity: 1;
}
.bgm-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.bgm-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: var(--steel-line);
  outline: none;
  flex-shrink: 0;
}
.bgm-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px var(--gold-glow);
  cursor: pointer;
  margin-top: -1px;
}
.bgm-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px var(--gold-glow);
  cursor: pointer;
}
.bgm-volume::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: var(--steel-line);
}
.bgm-mute {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
}
.bgm-mute:hover {
  color: var(--gold-bright);
}
.bgm-mute-icon {
  width: 18px;
  height: 18px;
}
.bgm-mute-off { display: none; }
.bgm-player.is-muted .bgm-mute-on { display: none; }
.bgm-player.is-muted .bgm-mute-off { display: block; }

@media (max-width: 640px) {
  .bgm-panel {
    display: none;
  }
  .bgm-toggle {
    width: 46px;
    height: 46px;
  }
}

.teaser-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 1rem;
  background: radial-gradient(120% 90% at 50% 40%, rgba(20, 26, 38, 0.7), rgba(3, 4, 7, 0.94));
  backdrop-filter: blur(10px);
  animation: rom-teaser-fade 0.4s var(--ease);
}
.teaser-overlay.is-open {
  display: flex;
}
@keyframes rom-teaser-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.teaser-box {
  position: relative;
  width: 100%;
  max-width: 860px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-deep);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow:
    0 0 0 1px rgba(201, 164, 99, 0.15),
    0 30px 70px -20px rgba(0, 0, 0, 0.9),
    0 0 90px -30px rgba(201, 164, 99, 0.35);
  padding: 0.7rem;
  animation: rom-panel-in 0.4s var(--ease);
}
.teaser-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--steel-line-soft);
}
.teaser-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.teaser-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--gold-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #241a08;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.teaser-close svg {
  width: 14px;
  height: 14px;
}
.teaser-close:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px -6px rgba(242, 216, 150, 0.55);
}
@media (max-width: 560px) {
  .teaser-box {
    padding: 0.5rem;
  }
  .teaser-close {
    top: -12px;
    right: -8px;
    font-size: 0.66rem;
    padding: 0.45em 0.6em;
  }
}

/* ============================================================
   PREMIUM: Toasts, Konami Mode, Keyboard Hints
   ============================================================ */
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}
.toast {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.7em 1.2em;
  border-radius: 999px;
  background: rgba(13, 17, 25, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--gold-deep);
  color: var(--gold-bright);
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,164,99,0.15);
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.toast-warn { border-color: #8a5a30; color: #ffb37a; }

.konami-mode .ember {
  background: radial-gradient(circle, #fff, var(--gold-bright) 60%, transparent 70%);
  animation-duration: 4s !important;
}
.konami-mode .hero h1 {
  background: linear-gradient(90deg, #fff, var(--gold-bright), var(--phoenix), var(--gold-bright), #fff);
  background-size: 300% 100%;
  animation: rom-shimmer 2s linear infinite;
}

.kbd-hint {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 60;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(13,17,25,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--steel-line);
  border-radius: 999px;
  padding: 0.5em 0.9em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s var(--ease);
}
.kbd-hint:hover { border-color: var(--gold); color: var(--gold-bright); }
.kbd-hint kbd {
  font-family: monospace;
  background: var(--void-2);
  border: 1px solid var(--steel-line);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}
.kbd-list {
  display: none;
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  background: rgba(13,17,25,0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.8);
  min-width: 180px;
  white-space: nowrap;
}
.kbd-hint.is-open .kbd-list { display: flex; }
.kbd-list span { display: flex; justify-content: space-between; gap: 1rem; }
@media (max-width: 640px) { .kbd-hint { display: none; } }

/* ============================================================
   PREMIUM: Refined Scrollbar & Transitions
   ============================================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-deep), var(--gold));
  border-radius: 5px;
  border: 2px solid var(--void);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-bright); }

.btn-gold.is-magnetic, .nav-btn.is-magnetic, .social-btn.is-magnetic, .ps-btn.is-magnetic {
  transition: none;
}

*:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress-fill,
  .a-skeleton .sk { animation: none; }
  .tile, .dl-card, .a-card { transform: none !important; }
}
