@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/cinzel-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/cinzel-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/alegreya-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/alegreya-sans-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/alegreya-sans-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/alegreya-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/alegreya-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/alegreya-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0d0c0b;
  --ink-2: #13120f;
  --ink-3: #1b1915;
  --ink-4: #252219;
  --line: rgb(201 162 78 / 0.18);
  --line-strong: rgb(201 162 78 / 0.42);
  --text: #ebe4d4;
  --muted: #a69e8d;
  --dim: #7a7364;
  --gold: #c9a24e;
  --gold-hi: #ecd393;
  --gold-lo: #7d6229;
  --elmorad: #cf4a3b;
  --elmorad-deep: #3a0f0b;
  --karus: #6f9bd8;
  --karus-deep: #13233d;

  --f-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --f-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 1.9rem;
  --step-4: clamp(1.9rem, 3.4vw, 2.6rem);
  --step-5: clamp(2.6rem, 6.4vw, 5.4rem);

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 5rem;
  --sp-9: 7rem;

  --wrap: 78rem;
  --measure: 68ch;
  --header-h: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 700ms;

  --stud: radial-gradient(circle, #ffeaa4 0 1.4px, #b48c3e 2.4px, #1c1408 3.6px, transparent 4.2px);
  --studs:
    var(--stud) left 5px top 5px / 11px 11px no-repeat,
    var(--stud) right 5px top 5px / 11px 11px no-repeat,
    var(--stud) left 5px bottom 5px / 11px 11px no-repeat,
    var(--stud) right 5px bottom 5px / 11px 11px no-repeat;
  --leather: url("/assets/img/tex-leather.png") 0 0 / 220px 220px;
  --stone: url("/assets/img/tex-stone.png") 0 0 / 340px 340px;
  --trim: #7b602d;
  --bevel: inset 0 0 0 1px rgb(0 0 0 / 0.92), inset 0 0 0 2px var(--trim), inset 0 0 0 3px #17110a, inset 0 1px 0 3px rgb(245 218 150 / 0.14), inset 0 0 42px rgb(0 0 0 / 0.62);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
  color-scheme: dark;
  background: var(--ink);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.045;
  mix-blend-mode: overlay;
}

main {
  flex: 1;
  outline: none;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--gold-hi);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff1cc;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
h4,
.brand__name,
.main-nav a,
.nation__soon,
.class-card__name,
.class-card__soon,
.feat__title,
.feat__soon,
.cat-tile__title,
.guide-row__title,
.calendar__label,
.toc__title,
.pager__title,
.btn,
.prose thead th,
.site-footer__title,
.empty__title {
  font-feature-settings: "locl" 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--sp-3);
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.framed {
  --c: var(--line-strong);
  --s: 14px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--s) no-repeat;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(13 12 11 / 0.82);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-med), border-color var(--t-med);
}

.is-home .site-header {
  position: fixed;
  inset: 0 0 auto;
  background: linear-gradient(rgb(0 0 0 / 0.55), transparent);
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.is-home .site-header.is-scrolled {
  background: rgb(13 12 11 / 0.88);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.site-header__in {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand:hover {
  color: #fff;
}

.brand__mark {
  width: 2.45rem;
  height: 2.45rem;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgb(0 0 0 / 0.75)) drop-shadow(0 0 10px rgb(216 171 79 / 0.28));
  transition: transform var(--t-fast), filter var(--t-fast);
}

.brand:hover .brand__mark {
  transform: scale(1.05);
  filter: drop-shadow(0 3px 10px rgb(0 0 0 / 0.85)) drop-shadow(0 0 14px rgb(243 207 122 / 0.45));
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

.brand__name {
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  color: #fff4d6;
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.85);
}

.brand__name-accent {
  color: var(--gold-hi);
  margin-left: 0.22rem;
}

.brand__sub {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  color: rgb(228 192 108 / 0.78);
  text-transform: uppercase;
}

.main-nav {
  margin-left: auto;
}

.main-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  color: #cfc6b4;
  font-family: var(--f-display);
  font-size: 0.81rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.85);
  transition: color var(--t-fast);
}

.main-nav a:hover,
.main-nav a[aria-current] {
  color: var(--gold-hi);
}

.header-search {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  transition: background-color var(--t-fast), color var(--t-fast);
}

.main-nav + .header-search {
  margin-left: 0;
}

.header-search:hover,
.header-search[aria-current] {
  background: rgb(201 162 78 / 0.12);
  color: var(--gold-hi);
}

.nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    order: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: var(--sp-2);
    padding: 0;
    background: none;
    border: 1px solid var(--line-strong);
    color: var(--text);
    cursor: pointer;
  }

  .header-search,
  .main-nav + .header-search {
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    margin: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-3) 1.25rem var(--sp-5);
  }

  .main-nav a {
    font-size: var(--step-1);
    padding: 0;
  }

  .main-nav__list {
    padding-left: 1.25rem;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 40rem;
  max-height: 68rem;
  padding-top: 7.5rem;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #11141c;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 60% at 70% 30%, #2a3348 0%, transparent 70%),
    linear-gradient(#0b0e15, #1c1f29 60%, #0d0c0b);
}

.hero__stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1600ms var(--ease-out);
}

.hero__stage.is-ready canvas {
  opacity: 1;
}

.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1200ms var(--ease-out);
}

.hero__stage.is-ready .hero__poster {
  opacity: 0;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(8 8 10 / 0.78) 0%, rgb(8 8 10 / 0.35) 38%, transparent 62%),
    linear-gradient(180deg, transparent 55%, rgb(13 12 11 / 0.7) 82%, var(--ink) 100%);
}

.hero__copy {
  padding-bottom: clamp(5rem, 14vh, 9rem);
}

.hero__crest {
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: var(--sp-5);
  filter: drop-shadow(0 4px 14px rgb(0 0 0 / 0.7));
}

.hero__title {
  max-width: 12ch;
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.015em;
  color: #f4ecda;
  text-shadow: 0 2px 2px rgb(0 0 0 / 0.5), 0 10px 40px rgb(0 0 0 / 0.7);
}

.hero__lede {
  max-width: 38ch;
  margin-top: var(--sp-5);
  font-size: var(--step-1);
  color: #d9d0bd;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.8);
}

.hero .search-form {
  margin-top: var(--sp-6);
  max-width: 32rem;
}

.hero__next {
  position: absolute;
  left: 50%;
  bottom: var(--sp-5);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--gold);
  transform: translateX(-50%);
  animation: nudge 2.6s var(--ease-out) infinite;
}

.hero__next .icon {
  width: 1.6rem;
  height: 1.6rem;
}

@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

@media (max-width: 900px) {
  .hero__shade {
    background: linear-gradient(180deg, rgb(8 8 10 / 0.2) 0%, transparent 30%, rgb(13 12 11 / 0.75) 62%, var(--ink) 100%);
  }

  .hero__copy {
    padding-bottom: 5.5rem;
  }
}

.search-form {
  position: relative;
  display: flex;
  background: rgb(10 10 12 / 0.72);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.6), 0 10px 30px rgb(0 0 0 / 0.35);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.search-form:focus-within {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.6), 0 0 0 3px rgb(201 162 78 / 0.18), 0 10px 30px rgb(0 0 0 / 0.35);
}

.search-form__input {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 0 var(--sp-4);
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: var(--step-1);
}

.search-form__input::placeholder {
  color: var(--dim);
}

.search-form__input:focus {
  outline: none;
}

.search-form__input::-webkit-search-cancel-button {
  filter: grayscale(1) brightness(1.6);
}

.search-form__btn {
  display: grid;
  place-items: center;
  width: 58px;
  background: linear-gradient(180deg, #d9b45e, #a8823a);
  border: 0;
  border-left: 1px solid #f0d691;
  color: #1a140a;
  cursor: pointer;
  transition: filter var(--t-fast);
}

.search-form__btn:hover {
  filter: brightness(1.12);
}

.search-form__btn:focus-visible {
  outline-offset: -5px;
  outline-color: #1a140a;
}

.band {
  position: relative;
  padding-block: var(--sp-8);
}

.band + .band {
  padding-top: var(--sp-6);
}

.sec-head {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
  text-align: center;
}

.sec-head__title {
  font-size: var(--step-4);
  color: #f1e8d4;
}

.sec-head__orn {
  width: 13rem;
  height: auto;
  color: var(--gold);
}

.band--nations {
  padding-top: var(--sp-8);
}

.nations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.nation {
  --tone: var(--elmorad);
  --deep: var(--elmorad-deep);
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  justify-items: center;
  min-height: clamp(22rem, 46vw, 32rem);
  padding: var(--sp-7) var(--sp-6);
  overflow: hidden;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  background:
    radial-gradient(80% 60% at 50% 35%, color-mix(in srgb, var(--tone) 30%, transparent), transparent 70%),
    linear-gradient(180deg, var(--deep), #0b0a09 85%);
  border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
}

.nation--karus {
  --tone: var(--karus);
  --deep: var(--karus-deep);
}

.nation::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--tone) 20%, transparent);
  pointer-events: none;
}

.nation::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--grain);
  opacity: 0.08;
}

.nation__img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.nation__crest {
  position: absolute;
  top: 12%;
  left: 50%;
  width: clamp(8rem, 18vw, 12rem);
  height: auto;
  color: color-mix(in srgb, var(--tone) 75%, #fff);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--tone) 55%, transparent));
  opacity: 0.85;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-slow);
}

a.nation:hover .nation__crest {
  transform: translateX(-50%) translateY(-6px) scale(1.03);
  opacity: 1;
}

.nation__body {
  display: grid;
  gap: var(--sp-2);
}

.nation__name {
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f6eedd;
  text-shadow: 0 2px 20px color-mix(in srgb, var(--tone) 60%, transparent);
}

.nation__text {
  max-width: 40ch;
  color: #cfc6b4;
}

.nation__soon {
  color: color-mix(in srgb, var(--tone) 55%, #e8dec8);
  font-family: var(--f-display);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
}

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

  .nation {
    min-height: 20rem;
  }
}

.band--classes {
  background:
    linear-gradient(180deg, transparent, rgb(201 162 78 / 0.035) 50%, transparent);
}

.classes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-3);
}

.class-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: var(--sp-2);
  aspect-ratio: 3 / 4.2;
  padding: var(--sp-5) var(--sp-3);
  overflow: hidden;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  background:
    radial-gradient(90% 55% at 50% 38%, rgb(201 162 78 / 0.14), transparent 70%),
    linear-gradient(180deg, var(--ink-3), #0b0a09);
  border: 1px solid var(--line);
  transition: border-color var(--t-med), transform var(--t-med) var(--ease-out);
}

.class-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px solid rgb(201 162 78 / 0.1);
}

.class-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.class-card__emblem {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 46%;
  color: var(--gold);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 18px rgb(201 162 78 / 0.35));
  transition: color var(--t-med), filter var(--t-med);
}

.class-card__emblem svg {
  width: 100%;
  height: auto;
}

.class-card__name {
  font-family: var(--f-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.class-card__soon {
  color: #968c79;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  font-family: var(--f-display);
}

a.class-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

a.class-card:hover .class-card__emblem {
  color: var(--gold-hi);
  filter: drop-shadow(0 0 26px rgb(236 211 147 / 0.55));
}

@media (max-width: 960px) {
  .classes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .classes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .classes li:last-child {
    grid-column: 1 / -1;
  }

  .classes li:last-child .class-card {
    aspect-ratio: 16 / 9;
  }
}

.featured {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: repeat(3, minmax(9rem, auto));
  gap: var(--sp-3);
}

.feat {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 9rem;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  transition: border-color var(--t-med);
}

.feat--lead {
  grid-row: 1 / span 3;
  min-height: 26rem;
}

.feat__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.feat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgb(8 8 8 / 0.92));
}

a.feat:hover {
  border-color: var(--line-strong);
}

a.feat:hover .feat__img {
  transform: scale(1.04);
}

.feat__body {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-5);
}

.feat--lead .feat__body {
  padding: var(--sp-6);
}

.feat__cat {
  color: var(--gold);
  font-size: var(--step--1);
  font-weight: 700;
}

.feat__title {
  font-family: var(--f-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.2;
}

.feat--lead .feat__title {
  font-size: var(--step-3);
}

.feat__desc {
  max-width: 52ch;
  color: #cfc6b4;
}

.feat--empty {
  justify-content: center;
  align-items: center;
  background:
    repeating-linear-gradient(135deg, rgb(201 162 78 / 0.03) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border-style: dashed;
}

.feat--empty::after {
  display: none;
}

.feat__soon {
  color: #968c79;
  font-family: var(--f-display);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
}

@media (max-width: 760px) {
  .featured {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .feat--lead {
    grid-row: auto;
    min-height: 18rem;
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp-7);
  align-items: start;
}

.split .sec-head {
  justify-items: start;
  text-align: left;
  margin-bottom: var(--sp-5);
}

.split .sec-head__orn {
  width: 9rem;
}

.updates {
  list-style: none;
  border-top: 1px solid var(--line);
}

.update {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}

.update__date {
  color: var(--muted);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.update__title {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

a.update__title:hover {
  color: var(--gold-hi);
}

.update__tag {
  padding: 0 var(--sp-2);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 0.78rem;
  line-height: 1.6;
}

.update--empty .update__date,
.update--empty .update__title {
  display: block;
  height: 0.7rem;
  background: linear-gradient(90deg, var(--ink-3), var(--ink-4), var(--ink-3));
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}

.update--empty .update__date {
  width: 5.5rem;
}

.update--empty:nth-child(2) .update__title { width: 70%; }
.update--empty:nth-child(3) .update__title { width: 85%; }
.update--empty:nth-child(4) .update__title { width: 55%; }

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.calendar__day {
  min-height: 11rem;
  padding: var(--sp-3);
  border-right: 1px solid var(--line);
}

.calendar__day:last-child {
  border-right: 0;
}

.calendar__day.is-today {
  background: linear-gradient(180deg, rgb(201 162 78 / 0.12), transparent 70%);
  box-shadow: inset 0 2px 0 var(--gold);
}

.calendar__label {
  margin-bottom: var(--sp-3);
  color: var(--muted);
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.is-today .calendar__label {
  color: var(--gold-hi);
}

.calendar__events {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}

.calendar__event {
  display: grid;
  padding: var(--sp-2);
  background: var(--ink-3);
  border-left: 2px solid var(--gold);
  font-size: var(--step--1);
  line-height: 1.3;
}

.calendar__event time {
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.calendar__event a,
.calendar__event span {
  color: var(--text);
  text-decoration: none;
}

.calendar__empty {
  color: var(--ink-4);
}

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

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

  .calendar__day {
    display: grid;
    grid-template-columns: 7rem 1fr;
    align-items: start;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .calendar__day:last-child {
    border-bottom: 0;
  }

  .calendar__label {
    margin: 0;
  }
}

.cat-index {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: var(--sp-3);
}

.cat-tile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  height: 100%;
  min-height: 6rem;
  padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--t-med), background-color var(--t-med);
}

a.cat-tile:hover {
  border-color: var(--line-strong);
}

a.cat-tile:hover .cat-tile__title {
  color: var(--gold-hi);
}

.cat-tile__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  transform: rotate(45deg);
}

.cat-tile__icon .icon {
  width: 1.4rem;
  height: 1.4rem;
  transform: rotate(-45deg);
}

.cat-tile__body {
  display: grid;
  gap: var(--sp-1);
  padding-left: var(--sp-2);
}

.cat-tile__title {
  font-family: var(--f-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.2;
  transition: color var(--t-fast);
}

.cat-tile__desc {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.5;
}

.cat-tile__count {
  color: var(--muted);
  font-size: var(--step--1);
  white-space: nowrap;
}

.cat-tile--empty {
  border-style: dashed;
}

.cat-tile--empty .cat-tile__icon {
  border-color: var(--line);
}

.cat-tile--empty .cat-tile__title {
  color: #968c79;
  font-size: var(--step--1);
  letter-spacing: 0.22em;
}

.guide-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.guide-row {
  border-bottom: 1px solid var(--line);
}

.guide-row__link {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: var(--sp-6);
  row-gap: var(--sp-1);
  padding: var(--sp-5) var(--sp-3);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--t-fast);
}

.guide-row__link:hover {
  background: rgb(201 162 78 / 0.05);
}

.guide-row__title {
  font-family: var(--f-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.25;
}

.guide-row__link:hover .guide-row__title {
  color: var(--gold-hi);
}

.guide-row__desc {
  grid-column: 1;
  color: var(--muted);
  max-width: 70ch;
}

.guide-row__meta {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  justify-items: end;
  align-content: start;
  gap: var(--sp-1);
  color: var(--muted);
  font-size: var(--step--1);
  white-space: nowrap;
}

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

  .guide-row__meta {
    grid-column: 1;
    grid-row: auto;
    display: flex;
    gap: var(--sp-4);
    margin-top: var(--sp-2);
  }
}

.empty {
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  border: 1px dashed var(--line);
  background: repeating-linear-gradient(135deg, rgb(201 162 78 / 0.025) 0 12px, transparent 12px 24px);
}

.empty__mark {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--sp-2);
  opacity: 0.6;
}

.empty__title {
  font-family: var(--f-display);
  font-size: var(--step-1);
}

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

.page-head {
  position: relative;
  isolation: isolate;
  padding-block: var(--sp-7) var(--sp-7);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 15% 0%, rgb(111 155 216 / 0.12), transparent 60%),
    radial-gradient(60% 120% at 85% 0%, rgb(207 74 59 / 0.12), transparent 60%),
    linear-gradient(180deg, #15130f, var(--ink));
}

.page-head::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.page-head__row {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.page-head__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  transform: rotate(45deg);
  margin: 0.6rem;
  background: rgb(201 162 78 / 0.05);
}

.page-head__icon .icon {
  width: 2rem;
  height: 2rem;
  transform: rotate(-45deg);
}

.page-head__title {
  font-size: var(--step-4);
  font-weight: 700;
  max-width: 26ch;
  color: #f4ecda;
}

.page-head__lede {
  margin-top: var(--sp-3);
  max-width: 62ch;
  color: #cfc6b4;
  font-size: var(--step-1);
}

.page-head .search-form {
  margin-top: var(--sp-5);
  max-width: 40rem;
}

@media (max-width: 640px) {
  .page-head__icon {
    display: none;
  }
}

.crumbs {
  margin-bottom: var(--sp-5);
  font-size: var(--step--1);
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
  padding-block: var(--sp-2);
}

.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

.crumbs [aria-current] {
  color: var(--gold-hi);
}

.crumbs__sep {
  width: 0.9em;
  height: 0.9em;
  color: var(--gold-lo);
}

.guide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-5);
  color: var(--muted);
  font-size: var(--step--1);
}

.guide__meta > span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.guide__meta .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--gold);
}

.guide__layout {
  padding-block: var(--sp-7);
}

.guide__layout.has-toc {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
  max-height: calc(100vh - var(--header-h) - var(--sp-7));
  overflow: auto;
  font-size: var(--step--1);
}

.toc__title {
  font-family: var(--f-display);
  font-size: var(--step-0);
  font-weight: 700;
  cursor: default;
  list-style: none;
  margin-bottom: var(--sp-3);
  color: var(--gold-hi);
}

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

.toc__list {
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc__item a {
  display: block;
  padding: var(--sp-1) var(--sp-3);
  margin-left: -1px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.toc__item--h3 a {
  padding-left: var(--sp-5);
}

.toc__item a:hover {
  color: var(--text);
}

.toc__item a[aria-current] {
  color: var(--gold-hi);
  border-left-color: var(--gold);
}

@media (max-width: 960px) {
  .guide__layout.has-toc {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

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

  .toc__box {
    background: var(--ink-2);
    border: 1px solid var(--line);
    padding: var(--sp-4) var(--sp-5);
  }

  .toc__title {
    cursor: pointer;
    margin-bottom: 0;
  }

  .toc__box[open] .toc__title {
    margin-bottom: var(--sp-3);
  }
}

.prose {
  max-width: var(--measure);
  font-size: 1.125rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.4em;
  padding-bottom: 0.4em;
  font-size: var(--step-3);
  color: #f4ecda;
  border-bottom: 1px solid var(--line);
}

.prose h3 {
  margin-top: 1.8em;
  font-size: var(--step-2);
  color: var(--gold-hi);
}

.prose h4 {
  margin-top: 1.5em;
  font-family: var(--f-body);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
  margin-top: 0.7em;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose ul li::marker {
  color: var(--gold);
}

.prose ol li::marker {
  color: var(--gold);
  font-weight: 700;
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.prose blockquote {
  margin-inline: 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  border-left: 2px solid var(--gold);
  color: #d3cab8;
  font-style: italic;
}

.prose figure {
  margin-inline: 0;
}

.prose figcaption {
  margin-top: var(--sp-2);
  color: var(--muted);
  font-size: var(--step--1);
}

.prose img {
  border: 1px solid var(--line);
}

.prose hr {
  border: 0;
  height: 1px;
  margin-block: 2.5em;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.prose kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  font: 700 0.85em/1.5 var(--f-body);
  text-align: center;
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 3px;
  color: var(--gold-hi);
}

.prose code {
  padding: 0.1em 0.35em;
  font-size: 0.9em;
  background: var(--ink-3);
  border-radius: 3px;
}

.prose details {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: var(--sp-4) var(--sp-5);
}

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

.prose details[open] summary {
  margin-bottom: var(--sp-3);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.prose th,
.prose td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose thead th {
  background: var(--ink-3);
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-hi);
  white-space: nowrap;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose tbody tr:hover {
  background: rgb(201 162 78 / 0.04);
}

.callout {
  padding: var(--sp-4) var(--sp-5);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}

.callout > * + * {
  margin-top: 0.6em;
}

.callout--tip {
  border-left-color: var(--elmorad);
}

.callout--warn {
  border-left-color: var(--karus);
}

.prose--intro {
  margin-bottom: var(--sp-6);
}

.section {
  padding-block: var(--sp-7) var(--sp-8);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  padding-bottom: var(--sp-7);
}

.pager__link {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-5);
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--t-fast);
}

.pager__link:hover {
  border-color: var(--line-strong);
}

.pager__link--next {
  grid-column: 2;
  text-align: right;
  justify-items: end;
}

.pager__dir {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--muted);
  font-size: var(--step--1);
}

.pager__title {
  font-family: var(--f-display);
  font-size: var(--step-0);
  font-weight: 700;
}

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

  .pager__link--next {
    grid-column: 1;
  }
}

.search-status {
  margin-bottom: var(--sp-5);
  color: var(--muted);
}

.search-status:empty {
  display: none;
}

.error-page {
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-9);
  max-width: 44rem;
  text-align: center;
}

.error-page__code {
  font-family: var(--f-display);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 700;
  line-height: 0.9;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page__title {
  font-size: var(--step-4);
}

.error-page__text {
  color: var(--muted);
  max-width: 52ch;
}

.error-page .search-form {
  width: 100%;
  max-width: 32rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 50px;
  padding: 0 var(--sp-6);
  background: linear-gradient(180deg, #d9b45e, #a8823a);
  border: 1px solid #f0d691;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.35), 0 8px 24px rgb(0 0 0 / 0.4);
  color: #1a140a;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: filter var(--t-fast);
}

.btn:hover {
  filter: brightness(1.1);
  color: #1a140a;
}

.site-footer {
  position: relative;
  margin-top: var(--sp-8);
  background:
    linear-gradient(180deg, var(--ink-2), #090807);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 13px;
  height: 13px;
  background: var(--ink);
  border: 1px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
}

.site-footer__in {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-7);
  padding-block: var(--sp-8) var(--sp-7);
}

.site-footer__brand p {
  margin-top: var(--sp-3);
  max-width: 36ch;
  color: var(--muted);
}

.site-footer__title {
  margin-bottom: var(--sp-3);
  font-size: var(--step-0);
  color: var(--gold-hi);
}

.site-footer__nav ul {
  list-style: none;
  display: grid;
  gap: var(--sp-1);
}

.site-footer__nav a {
  display: inline-block;
  padding-block: var(--sp-1);
  color: var(--muted);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--text);
}

.site-footer__legal {
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
  color: var(--dim);
}

@media (max-width: 760px) {
  .site-footer__in {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

.nation,
.class-card,
.feat,
.cat-tile,
.calendar,
.toc__box,
.pager__link,
.callout,
.empty,
.prose details,
.table-wrap,
.updates {
  border: 1px solid #000;
  box-shadow: var(--bevel), 0 12px 30px rgb(0 0 0 / 0.45);
}

.nation::before,
.class-card::before {
  display: none;
}

.nation {
  --trim: color-mix(in srgb, var(--tone) 55%, #6e5528);
  background:
    var(--studs),
    var(--leather),
    radial-gradient(85% 65% at 50% 35%, color-mix(in srgb, var(--tone) 38%, transparent), transparent 72%),
    linear-gradient(180deg, var(--deep), #0b0a09 88%);
}

.class-card {
  background:
    var(--studs),
    var(--leather),
    radial-gradient(90% 55% at 50% 38%, rgb(201 162 78 / 0.18), transparent 70%),
    linear-gradient(180deg, #1f1911, #0c0a07);
}

.feat {
  background: var(--studs), var(--leather), linear-gradient(160deg, #1f1911, #100d09);
}

.feat--empty {
  border-style: solid;
  background:
    var(--studs),
    var(--leather),
    repeating-linear-gradient(135deg, rgb(201 162 78 / 0.04) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #1a150e, #0e0b08);
}

.cat-tile {
  background: var(--studs), var(--leather), linear-gradient(160deg, #1f1911, #100d09);
}

.cat-tile--empty {
  border-style: solid;
  opacity: 0.85;
}

.calendar,
.toc__box,
.pager__link,
.callout,
.empty,
.prose details,
.updates {
  background: var(--studs), var(--leather), linear-gradient(180deg, #19140d, #100d09);
}

.updates {
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid #000;
}

.update:last-child {
  border-bottom: 0;
}

.calendar__day.is-today {
  background: linear-gradient(180deg, rgb(201 162 78 / 0.16), transparent 70%);
}

a.class-card:hover,
a.feat:hover,
a.cat-tile:hover,
a.nation:hover,
.pager__link:hover {
  --trim: #b48c3e;
}

.band--classes,
.band--split {
  background:
    linear-gradient(180deg, var(--ink) 0%, transparent 16%, transparent 84%, var(--ink) 100%),
    var(--stone),
    linear-gradient(180deg, #17140f, #12100c);
}

.band--split {
  margin-top: var(--sp-6);
}

.page-head {
  background:
    linear-gradient(180deg, transparent 40%, var(--ink)),
    radial-gradient(60% 120% at 15% 0%, rgb(111 155 216 / 0.14), transparent 60%),
    radial-gradient(60% 120% at 85% 0%, rgb(207 74 59 / 0.14), transparent 60%),
    var(--stone),
    linear-gradient(180deg, #1a1712, var(--ink));
}

.site-header,
.is-home .site-header.is-scrolled {
  background: var(--leather), rgb(16 13 10 / 0.94);
}

.is-home .site-header {
  background: linear-gradient(180deg, rgb(12 10 8 / 0.92) 0%, rgb(12 10 8 / 0.72) 82%, transparent 100%);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  opacity: 0.55;
}

.is-home .site-header:not(.is-scrolled)::after {
  opacity: 0;
}

.site-footer {
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.4), transparent 30%),
    var(--stone),
    linear-gradient(180deg, #15120e, #090807);
}

.header-search,
.nav-toggle {
  background: var(--leather), #16120c;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #5a4520;
  border-color: #000;
}

.search-form {
  border-color: #000;
  box-shadow: inset 0 0 0 1px #5a4520, inset 0 0 0 2px #0d0a06, 0 10px 30px rgb(0 0 0 / 0.4);
}

.search-form:focus-within {
  border-color: #000;
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 2px #0d0a06, 0 0 0 3px rgb(201 162 78 / 0.2), 0 10px 30px rgb(0 0 0 / 0.4);
}

.search-form__btn {
  margin: 3px;
  border: 1px solid #f0d691;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.35);
}

.prose--wide {
  max-width: none;
}

.prose--wide > p,
.prose--wide > ul,
.prose--wide > ol,
.prose--wide > blockquote,
.prose--wide > .callout {
  max-width: var(--measure);
}

.cat-subhead {
  font-family: var(--f-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: #f4ecda;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
  font-feature-settings: "locl" 0;
}

.cat-subhead--mt {
  margin-top: var(--sp-7);
}

.quest-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.quest-stat {
  display: grid;
  gap: 0.2rem;
  padding: var(--sp-4) var(--sp-5);
  background: var(--studs), var(--leather), linear-gradient(160deg, #1f1911, #100d09);
  border: 1px solid #000;
  box-shadow: var(--bevel), 0 12px 30px rgb(0 0 0 / 0.45);
}

.quest-stat--gold {
  --trim: #a8823a;
  background:
    var(--studs),
    var(--leather),
    radial-gradient(90% 80% at 50% 0%, rgb(201 162 78 / 0.18), transparent 70%),
    linear-gradient(160deg, #241c11, #110d08);
}

.quest-stat__lbl {
  color: var(--muted);
  font-size: var(--step--1);
  letter-spacing: 0.03em;
}

.quest-stat__val {
  font-family: var(--f-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.quest-stat__sub {
  color: var(--dim);
  font-size: 0.82rem;
}

@media (max-width: 780px) {
  .quest-stats {
    grid-template-columns: 1fr;
  }
}

.quest-hub {
  margin-top: var(--sp-5);
}

.quest-bar {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-4);
  background: var(--studs), var(--leather), linear-gradient(180deg, #1d170f, #110d09);
  border: 1px solid #000;
  box-shadow: var(--bevel), 0 12px 28px rgb(0 0 0 / 0.45);
}

.quest-bar__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.quest-nations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.quest-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0 0.9rem;
  background: #14110c;
  border: 1px solid #3c301c;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
  color: var(--muted);
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
  font-feature-settings: "locl" 0;
}

.quest-pill:hover {
  color: var(--text);
  border-color: var(--gold-lo);
}

.quest-pill.is-active {
  color: #fff3d6;
  border-color: var(--gold);
  background: linear-gradient(180deg, #2d2313, #19130a);
  box-shadow: inset 0 0 14px rgb(201 162 78 / 0.22), 0 0 12px rgb(201 162 78 / 0.16);
}

.quest-pill--elmorad.is-active {
  border-color: var(--elmorad);
  background: linear-gradient(180deg, #3c1410, #1b0908);
  box-shadow: inset 0 0 16px rgb(207 74 59 / 0.3), 0 0 14px rgb(207 74 59 / 0.22);
  color: #ffd8d2;
}

.quest-pill--karus.is-active {
  border-color: var(--karus);
  background: linear-gradient(180deg, #13253e, #0a1220);
  box-shadow: inset 0 0 16px rgb(111 155 216 / 0.3), 0 0 14px rgb(111 155 216 / 0.22);
  color: #d7e7ff;
}

.quest-pill__sym {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
}

.quest-pill--elmorad .quest-pill__sym {
  color: #e46354;
}

.quest-pill--karus .quest-pill__sym {
  color: #82b0ee;
}

.quest-pill__cnt {
  padding: 0.05rem 0.42rem;
  background: rgb(0 0 0 / 0.45);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 2px;
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.quest-pill.is-active .quest-pill__cnt {
  color: var(--text);
  border-color: rgb(255 255 255 / 0.18);
}

.quest-search {
  position: relative;
  flex: 1 1 18rem;
  max-width: 26rem;
}

.quest-search__ic {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: var(--gold);
  pointer-events: none;
}

.quest-search__in {
  width: 100%;
  min-height: 42px;
  padding: 0 0.9rem 0 2.5rem;
  background: #0d0b08;
  border: 1px solid #4d3c20;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.65);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.quest-search__in::placeholder {
  color: var(--dim);
}

.quest-search__in:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.65), 0 0 0 2px rgb(201 162 78 / 0.22);
}

.quest-bar__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid rgb(201 162 78 / 0.14);
}

.quest-brackets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.quest-chip {
  min-height: 32px;
  padding: 0 0.7rem;
  background: rgb(0 0 0 / 0.35);
  border: 1px solid rgb(201 162 78 / 0.18);
  color: var(--muted);
  font-family: var(--f-body);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}

.quest-chip:hover {
  color: var(--text);
  border-color: var(--gold-lo);
}

.quest-chip.is-active {
  background: rgb(201 162 78 / 0.16);
  border-color: var(--gold);
  color: var(--gold-hi);
  font-weight: 700;
}

.quest-count {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.quest-table-frame {
  position: relative;
  overflow-x: auto;
  background: var(--leather), linear-gradient(180deg, #15110b, #0d0b08);
  border: 1px solid #000;
  box-shadow: var(--bevel), 0 16px 40px rgb(0 0 0 / 0.55);
}

.quest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.quest-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(180deg, #261e12, #17120b);
  border-bottom: 1px solid var(--gold-lo);
  box-shadow: inset 0 1px 0 rgb(255 230 165 / 0.12);
  color: var(--gold-hi);
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: left;
  white-space: nowrap;
  font-feature-settings: "locl" 0;
}

.quest-table thead th.qt-col-nation,
.quest-table thead th.qt-col-lvl {
  text-align: center;
}

.qt-col-nation { width: 4.5rem; }
.qt-col-lvl { width: 5rem; }
.qt-col-name { width: 15rem; }
.qt-col-npc { width: 12.5rem; }
.qt-col-rew { width: 14rem; }
.qt-col-ser { width: 9.5rem; }

.qt-row {
  border-bottom: 1px solid rgb(201 162 78 / 0.11);
  transition: background-color var(--t-fast);
}

.qt-row:last-child {
  border-bottom: 0;
}

.qt-row[hidden] {
  display: none !important;
}

.qt-row td {
  padding: 0.75rem 0.9rem;
  vertical-align: middle;
}

.qt-row--elmorad {
  background: linear-gradient(90deg, rgb(207 74 59 / 0.11) 0%, rgb(207 74 59 / 0.025) 26%, transparent 65%);
}

.qt-row--elmorad td:first-child {
  box-shadow: inset 3px 0 0 var(--elmorad);
}

.qt-row--karus {
  background: linear-gradient(90deg, rgb(111 155 216 / 0.11) 0%, rgb(111 155 216 / 0.025) 26%, transparent 65%);
}

.qt-row--karus td:first-child {
  box-shadow: inset 3px 0 0 var(--karus);
}

.qt-row--both td:first-child {
  box-shadow: inset 3px 0 0 var(--gold-lo);
}

.qt-row:hover {
  background-color: rgb(201 162 78 / 0.075);
}

.qt-nation,
.qt-lvl {
  text-align: center;
}

.nation-badge {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: radial-gradient(circle, #1d1811, #0d0a07);
  border: 1px solid rgb(201 162 78 / 0.28);
  box-shadow: inset 0 0 8px rgb(0 0 0 / 0.8), 0 2px 6px rgb(0 0 0 / 0.5);
}

.nation-badge svg {
  width: 1.55rem;
  height: 1.55rem;
}

.nation-badge--elmorad {
  border-color: rgb(207 74 59 / 0.55);
  background: radial-gradient(circle, #2b100d, #110706);
  color: #e86556;
}

.nation-badge--elmorad svg {
  filter: drop-shadow(0 0 6px rgb(207 74 59 / 0.55));
}

.nation-badge--karus {
  border-color: rgb(111 155 216 / 0.55);
  background: radial-gradient(circle, #101f36, #080d17);
  color: #84b3f2;
}

.nation-badge--karus svg {
  filter: drop-shadow(0 0 6px rgb(111 155 216 / 0.55));
}

.nation-badge--both {
  border-color: rgb(201 162 78 / 0.45);
}

.nation-badge__pair {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.nation-badge__pair svg {
  width: 0.95rem;
  height: 0.95rem;
}

.nation-badge__pair .nb-el {
  color: #e46354;
}

.nation-badge__pair .nb-ka {
  color: #82b0ee;
}

.lvl-gem {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  padding: 0.18rem 0.45rem;
  background: linear-gradient(180deg, #251d11, #14100a);
  border: 1px solid var(--gold-lo);
  box-shadow: inset 0 1px 0 rgb(255 230 165 / 0.14);
  color: var(--gold-hi);
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 700;
}

.qt-title {
  display: block;
  color: #f5eedc;
  font-weight: 700;
}

.qt-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  padding: 0.08rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid;
}

.qt-tag--event {
  color: #7ee3f2;
  background: rgb(25 90 105 / 0.28);
  border-color: rgb(100 210 230 / 0.45);
}

.npc-chip {
  display: inline-block;
  color: #d7ccb6;
  font-weight: 500;
}

.qt-desc {
  color: #c8beaa;
  min-width: 15rem;
}

.rew-list,
.prose .rew-list {
  list-style: none;
  display: grid;
  gap: 0.22rem;
  padding: 0;
  margin: 0;
}

.rew-list li + li,
.prose .rew-list li + li {
  margin-top: 0;
}

.rew-item {
  display: inline-block;
  width: fit-content;
  padding: 0.1rem 0.48rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.rew--exp {
  color: #f4d88c;
  background: rgb(201 162 78 / 0.13);
  border-color: rgb(201 162 78 / 0.3);
}

.rew--coin {
  color: #e6c670;
  background: rgb(180 140 50 / 0.12);
  border-color: rgb(180 140 50 / 0.28);
}

.rew--item {
  color: #b8d4f8;
  background: rgb(95 140 205 / 0.12);
  border-color: rgb(95 140 205 / 0.26);
}

.ser-badge {
  display: inline-block;
  padding: 0.14rem 0.5rem;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(201 162 78 / 0.25);
  color: var(--muted);
  font-size: 0.8rem;
}

.qt-dash {
  color: var(--ink-4);
}

.quest-empty {
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  color: var(--muted);
}

@media (max-width: 920px) {
  .quest-table thead {
    display: none;
  }

  .quest-table,
  .quest-table tbody,
  .qt-row,
  .qt-row td {
    display: block;
    width: 100%;
  }

  .qt-row {
    position: relative;
    padding: var(--sp-4);
  }

  .qt-row td {
    padding: 0.22rem 0;
    text-align: left;
  }

  .qt-row td:first-child {
    box-shadow: none;
  }

  .qt-row--elmorad {
    border-left: 3px solid var(--elmorad);
  }

  .qt-row--karus {
    border-left: 3px solid var(--karus);
  }

  .qt-row--both {
    border-left: 3px solid var(--gold-lo);
  }

  .qt-nation,
  .qt-lvl {
    display: inline-block !important;
    width: auto !important;
    vertical-align: middle;
    margin-right: 0.5rem;
  }

  .qt-desc {
    min-width: 0;
  }

  .qt-npc::before,
  .qt-desc::before,
  .qt-ser::before {
    content: attr(data-label) ": ";
    color: var(--gold);
    font-family: var(--f-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .qt-dash,
  .qt-ser--empty {
    display: none !important;
  }

  .prose ul.rew-list {
    padding-left: 0;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .toc,
  .pager,
  .hero__stage,
  body::after {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}


/* ==========================================================================
   Ansiklopedi, Eşya/Skill İkon Vitrini, Alt Menüler, Reklam ve Hesaplayıcı Modülleri
   ========================================================================== */

/* 1. Ana Menü Alt Açılır Listeleri (Moblar, Rehberler, Araçlar, Duyurular) */
.main-nav__list > li {
  position: relative;
}

.main-nav a {
  padding: 0 0.48rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.sub-nav {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 14.5rem;
  padding: var(--sp-2) 0;
  list-style: none;
  background: var(--leather), linear-gradient(180deg, #1b160e, #0e0b08);
  border: 1px solid #000;
  box-shadow: var(--bevel), 0 18px 40px rgb(0 0 0 / 0.72);
  z-index: 80;
}

.has-sub:hover > .sub-nav,
.has-sub:focus-within > .sub-nav {
  display: block;
}

.sub-nav a {
  min-height: 36px;
  padding: 0.35rem var(--sp-4);
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

.sub-nav a::after {
  display: none;
}

.sub-nav a:hover {
  background: rgb(201 162 78 / 0.14);
  color: var(--gold-hi);
}

.sub-nav__sep {
  margin-top: var(--sp-1);
  padding-top: var(--sp-1);
  border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
  .nav-toggle {
    order: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: var(--sp-2);
    padding: 0;
    background: var(--leather), #16120c;
    border: 1px solid #000;
    box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #5a4520;
    color: var(--text);
    cursor: pointer;
  }

  .header-search,
  .main-nav + .header-search {
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    margin: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav__list {
    flex-direction: column;
    padding: var(--sp-3) 1.5rem var(--sp-5);
  }

  .sub-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.25rem 0 0.65rem;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .sub-nav a {
    min-height: 30px;
    padding: 0.15rem 0.6rem;
    background: rgb(201 162 78 / 0.09);
    border: 1px solid var(--line);
    font-size: 0.85rem;
  }
}

/* 2. Hero Hızlı Kısayol Rozetleri & Merkezi Ansiklopedi Kartları */
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--sp-4);
  max-width: 48rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.78rem;
  background: rgb(13 11 8 / 0.78);
  border: 1px solid rgb(201 162 78 / 0.38);
  color: #efe5cf;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}

.hero-pill:hover {
  background: rgb(42 32 16 / 0.88);
  border-color: var(--gold-hi);
  color: #fff6dc;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}

.hub-grid--tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--studs), var(--leather), linear-gradient(165deg, #1d170f, #0f0c08);
  border: 1px solid #000;
  box-shadow: var(--bevel), 0 14px 32px rgb(0 0 0 / 0.5);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.hub-card--gold {
  --trim: #a8823a;
}

.hub-card:hover {
  --trim: #d8ab4f;
  transform: translateY(-2px);
}

.hub-card__ic {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  background: radial-gradient(circle, #2a2012, #120e08);
  border: 1px solid var(--gold-lo);
  color: var(--gold-hi);
}

.hub-card__title {
  font-family: var(--f-display);
  font-size: 1.12rem;
  color: #f6eedc;
}

.hub-card__desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.48;
}

.hub-card__meta {
  margin-top: auto;
  padding-top: var(--sp-2);
  border-top: 1px solid rgb(201 162 78 / 0.16);
  color: var(--gold-hi);
  font-family: var(--f-display);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

@media (max-width: 1020px) {
  .hub-grid,
  .hub-grid--tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hub-grid,
  .hub-grid--tools {
    grid-template-columns: 1fr;
  }
}

/* 3. Sponsorlu Reklam Alanları ("Buraya Reklam Verebilirsiniz") */
.ad-wrap {
  margin-block: var(--sp-5);
}

.ad-slot {
  margin-bottom: var(--sp-5);
}

.ad-slot__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  min-height: 92px;
  padding: var(--sp-3) var(--sp-5);
  text-align: center;
  text-decoration: none;
  background:
    var(--studs),
    radial-gradient(75% 120% at 50% 0%, rgb(201 162 78 / 0.14), transparent 72%),
    var(--leather),
    linear-gradient(180deg, #19140d, #0e0b07);
  border: 1px dashed rgb(201 162 78 / 0.45);
  box-shadow: inset 0 0 24px rgb(0 0 0 / 0.65);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}

.ad-slot--sidebar .ad-slot__box {
  min-height: 220px;
  margin-top: var(--sp-4);
}

.ad-slot__box:hover {
  border-color: var(--gold-hi);
}

.ad-slot__tag {
  font-size: 0.74rem;
  color: var(--dim);
  letter-spacing: 0.06em;
}

.ad-slot__headline {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--gold-hi);
  letter-spacing: 0.04em;
}

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

/* 4. Üst Yeni Sunucu Geri Sayım Barı, USKO Eşya/Skill İkonları ve Cephanelik Vitrini */
.server-countdown-bar {
  position: relative;
  z-index: 50;
  background:
    linear-gradient(90deg, #120d08 0%, #24190c 50%, #120d08 100%);
  border-bottom: 1px solid rgb(201 162 78 / 0.42);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.55);
  font-size: 0.84rem;
}

.server-countdown-bar__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  padding-block: 0.42rem;
}

.server-countdown-bar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.server-countdown-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.14rem 0.55rem;
  background: linear-gradient(180deg, #d7b05c, #9b762d);
  border: 1px solid #f4dc9e;
  color: #140f07;
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.server-countdown-bar__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b0000;
  box-shadow: 0 0 0 2px rgb(139 0 0 / 0.35);
}

.server-countdown-bar__title {
  color: #f6eedc;
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.server-countdown-bar__note {
  color: var(--muted);
  font-size: 0.8rem;
}

.server-countdown-bar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.server-countdown-bar__timer {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-variant-numeric: tabular-nums;
}

.cd-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18rem;
  padding: 0.14rem 0.44rem;
  background: #0b0907;
  border: 1px solid rgb(201 162 78 / 0.38);
}

.cd-unit strong {
  font-family: var(--f-display);
  font-size: 0.92rem;
  color: var(--gold-hi);
}

.cd-unit small {
  font-size: 0.68rem;
  color: var(--muted);
}

.cd-sep {
  color: var(--gold);
  font-weight: 700;
}

.server-countdown-bar__cta {
  padding: 0.18rem 0.6rem;
  background: rgb(201 162 78 / 0.15);
  border: 1px solid var(--gold);
  color: var(--gold-hi);
  font-family: var(--f-display);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.server-countdown-bar__cta:hover {
  background: rgb(201 162 78 / 0.28);
  color: #fff;
}

@media (max-width: 900px) {
  .server-countdown-bar__note {
    display: none;
  }
  .server-countdown-bar__in {
    justify-content: center;
    text-align: center;
  }
}

/* Orijinal USKO Item & Skill İkon Çerçeveleri */
.ko-item-icon,
.ko-skill-icon {
  display: inline-block;
  flex: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 50%, #241b10, #090705 80%);
  border: 1px solid #6b5327;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.75), 0 2px 6px rgb(0 0 0 / 0.65);
  image-rendering: auto;
  vertical-align: middle;
}

.ko-item-icon--xs {
  width: 20px;
  height: 20px;
}

.ko-item-icon--sm,
.ko-skill-icon {
  width: 32px;
  height: 32px;
}

.ko-item-icon--lg {
  width: 52px;
  height: 52px;
  border-color: var(--gold);
}

.db-item-link--icon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.rew-item--icon {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
}

.skill-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.entity-head--with-icon {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
}

.entity-icon-frame {
  display: grid;
  place-items: center;
  flex: none;
  width: 5.2rem;
  height: 5.2rem;
  background: radial-gradient(circle at 50% 50%, #2b2012, #090705 82%);
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 14px rgb(0 0 0 / 0.8), 0 10px 26px rgb(0 0 0 / 0.6);
}

.entity-icon-frame--unique {
  border-color: #f2c46d;
  box-shadow: 0 0 18px rgb(242 196 109 / 0.25);
}

.entity-icon-frame--high {
  border-color: #caa6ff;
}

.entity-pill--icon {
  flex-direction: row !important;
  align-items: center;
  gap: 0.65rem !important;
}

.entity-pill--icon > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.side-card__icon-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}

.side-card__icon-head .side-card__title,
.side-card__icon-head .calc-panel__title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

/* Sınıf Cephaneliği & Öne Çıkan Ekipman Vitrini */
.equip-showcase {
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
  background: var(--studs), var(--leather), linear-gradient(160deg, #1c160e, #0c0a07);
  border: 1px solid #000;
  box-shadow: var(--bevel), 0 16px 38px rgb(0 0 0 / 0.55);
}

.equip-showcase--card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-3);
}

.equip-showcase__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}

.equip-showcase__title {
  font-size: var(--step-1);
  color: #f6eedc;
}

.equip-showcase__desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.equip-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.equip-showcase__actions a {
  text-decoration: none;
}

.equip-class-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  gap: var(--sp-3);
}

.equip-class-box {
  padding: var(--sp-3) var(--sp-4);
  background: rgb(0 0 0 / 0.36);
  border: 1px solid rgb(201 162 78 / 0.22);
}

.equip-class-box__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.equip-class-box__name {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--gold-hi);
  text-decoration: none;
}

.equip-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.equip-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.24rem 0.52rem 0.24rem 0.28rem;
  background: #120e09;
  border: 1px solid rgb(201 162 78 / 0.26);
  color: var(--text);
  font-size: 0.8rem;
  text-decoration: none;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}

.equip-icon-pill:hover {
  border-color: var(--gold-hi);
  background: #1d160e;
  color: #fff;
}

/* Drop Oranları & Fragment Drop Kartları */
.drop-source-grid {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-4);
}

.drop-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
  background: var(--studs), var(--leather), linear-gradient(170deg, #1a140d, #0d0a07);
  border: 1px solid #000;
  box-shadow: var(--bevel), 0 14px 32px rgb(0 0 0 / 0.48);
  padding: var(--sp-4) var(--sp-5);
}

.drop-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.drop-card__title-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.drop-card__title {
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.drop-card__title a {
  color: #f6eedc;
  text-decoration: none;
}

.drop-card__title a:hover {
  color: var(--gold-hi);
}

.drop-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* 200 Maddelik FrmTR Teknik Sorunlar ve Çözümleri Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}

.faq-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 190px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: var(--sp-4) var(--sp-5);
  background: var(--leather), linear-gradient(175deg, #18130c, #0d0a07);
  border: 1px solid rgb(201 162 78 / 0.24);
  box-shadow: var(--bevel);
}

.faq-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.faq-card__num {
  font-family: var(--f-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-hi);
  padding: 0.1rem 0.45rem;
  background: rgb(201 162 78 / 0.14);
  border: 1px solid var(--gold);
}

.faq-card__q {
  font-size: 1.05rem;
  color: #f6eedc;
  line-height: 1.35;
}

.faq-card__a {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.rules-principles {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.3rem;
  color: var(--text);
}

.rules-principles li::marker {
  color: var(--gold);
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .entity-head--with-icon {
    flex-direction: column;
  }
}

/* 5. Alt Gezinti Barları, Sürüm Doğrulama Etiketleri ve Not Kutuları */
.subbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: var(--sp-5);
}

.subbar a {
  text-decoration: none;
}

.ver-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-block: var(--sp-3) var(--sp-4);
}

.ver-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(201 162 78 / 0.24);
  color: var(--muted);
  font-size: 0.8rem;
}

.ver-tag--usko {
  background: rgb(201 162 78 / 0.14);
  border-color: var(--gold);
  color: var(--gold-hi);
  font-weight: 700;
}

.notice {
  padding: var(--sp-4) var(--sp-5);
  margin-block: var(--sp-4);
  background: linear-gradient(90deg, rgb(201 162 78 / 0.12), rgb(20 16 11 / 0.85));
  border-left: 3px solid var(--gold);
  border-top: 1px solid rgb(201 162 78 / 0.2);
  border-right: 1px solid rgb(201 162 78 / 0.2);
  border-bottom: 1px solid rgb(201 162 78 / 0.2);
  color: var(--text);
}

.notice--warn {
  background: linear-gradient(90deg, rgb(207 74 59 / 0.16), rgb(26 11 10 / 0.9));
  border-color: rgb(207 74 59 / 0.35);
  border-left-color: var(--elmorad);
}

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

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  background: linear-gradient(180deg, #d7b05c, #9b762d);
  border: 1px solid #f4dc9e;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.3), 0 4px 14px rgb(0 0 0 / 0.45);
  color: #140f07;
  font-family: var(--f-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
}

.btn-gold:hover {
  background: linear-gradient(180deg, #e5c171, #ae8636);
  color: #090704;
}

/* 6. Eşya Grade Renkleri & Büyük Tablo Performansı (content-visibility) */
.db-row {
  content-visibility: auto;
  contain-intrinsic-size: auto 54px;
}

.db-item-link {
  text-decoration: none;
  color: #f5eedc;
}

.db-item-link:hover {
  text-decoration: underline;
}

.grade-text--unique { color: #f2c46d; }
.grade-text--high   { color: #caa6ff; }
.grade-text--middle { color: #8bc1f7; }
.grade-text--gem    { color: #6ee7b7; }

.grade-badge {
  display: inline-block;
  padding: 0.14rem 0.52rem;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid rgb(201 162 78 / 0.3);
  background: rgb(255 255 255 / 0.04);
  color: var(--muted);
}

.grade-badge--unique {
  color: #f6d28b;
  background: rgb(216 169 92 / 0.15);
  border-color: rgb(216 169 92 / 0.45);
}

.grade-badge--high {
  color: #d6bcfa;
  background: rgb(159 122 234 / 0.15);
  border-color: rgb(159 122 234 / 0.42);
}

.grade-badge--middle {
  color: #90cdf4;
  background: rgb(99 179 237 / 0.14);
  border-color: rgb(99 179 237 / 0.38);
}

.grade-badge--gem {
  color: #6ee7b7;
  background: rgb(52 211 153 / 0.14);
  border-color: rgb(52 211 153 / 0.38);
}

.qt-tag--boss {
  color: #ffd089;
  background: rgb(180 95 25 / 0.28);
  border-color: rgb(235 155 70 / 0.5);
  margin-left: 0.4rem;
}

.rew-list--inline {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* 7. Detay Sayfası 2 Sütunlu Yerleşim, Drop Kutuları ve Stat Matrisi */
.entity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: var(--sp-6);
  align-items: start;
}

.entity-side {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
}

.side-card {
  padding: var(--sp-5);
  background: var(--studs), var(--leather), linear-gradient(170deg, #1c160e, #0e0b08);
  border: 1px solid #000;
  box-shadow: var(--bevel);
}

.side-card__title {
  font-size: 1.05rem;
  color: var(--gold-hi);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}

.side-card__actions {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.side-card__actions a {
  text-align: center;
  text-decoration: none;
}

.side-links {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}

.kv-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.kv-list--cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kv-list div {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.6rem;
  background: rgb(0 0 0 / 0.32);
  border: 1px solid rgb(201 162 78 / 0.14);
}

.kv-list dt {
  font-size: 0.76rem;
  color: var(--dim);
}

.kv-list dd {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.chip-grid,
.prose .chip-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0.6rem;
  padding: 0;
  margin-block: var(--sp-3);
}

.chip-grid li + li,
.prose .chip-grid li + li {
  margin-top: 0;
}

.entity-pill {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.85rem;
  background: #14100b;
  border: 1px solid rgb(201 162 78 / 0.24);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}

a.entity-pill:hover {
  border-color: var(--gold);
  background: #1d170f;
}

.entity-pill span {
  font-size: 0.8rem;
  color: var(--muted);
}

.stat-matrix th,
.stat-matrix td {
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stat-matrix tr th:first-child,
.stat-matrix tr td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #18130c;
}

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

  .entity-side {
    position: static;
  }
}

/* 8. Canavar Detay Künyesi (Raven Harpy Şablonu) */
.mob-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}

.mob-stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--sp-4) var(--sp-5);
  background: var(--studs), var(--leather), linear-gradient(165deg, #1d170f, #0f0c08);
  border: 1px solid #000;
  box-shadow: var(--bevel);
}

.mob-stat-box--gold {
  --trim: #b48c3e;
}

.mob-stat-box__lbl {
  font-size: 0.8rem;
  color: var(--muted);
}

.mob-stat-box__val {
  font-family: var(--f-display);
  font-size: 1.12rem;
  color: var(--gold-hi);
}

.mob-stat-box__sub {
  font-size: 0.8rem;
  color: var(--dim);
}

@media (max-width: 860px) {
  .mob-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* 9. Bölgeler ve Karakter Sınıfları Kart Vitrinleri */
.region-sec + .region-sec {
  margin-top: var(--sp-8);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}

.region-card {
  display: flex;
  flex-direction: column;
  background: var(--leather), linear-gradient(180deg, #19140d, #0d0b08);
  border: 1px solid #000;
  box-shadow: var(--bevel), 0 14px 32px rgb(0 0 0 / 0.5);
  overflow: hidden;
}

.region-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0908;
}

.region-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.region-card:hover .region-card__media img {
  transform: scale(1.04);
}

.region-card__lvl {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.18rem 0.55rem;
  background: rgb(12 10 7 / 0.88);
  border: 1px solid var(--gold-lo);
  color: var(--gold-hi);
  font-family: var(--f-display);
  font-size: 0.76rem;
  font-weight: 700;
}

.region-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
}

.region-card__kicker {
  font-size: 0.78rem;
  color: var(--gold);
}

.region-card__title {
  font-size: 1.22rem;
}

.region-card__title a {
  text-decoration: none;
  color: #f6eedc;
}

.region-card__desc {
  color: var(--muted);
  font-size: 0.94rem;
}

.region-card__foot {
  margin-top: auto;
  padding-top: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.region-banner {
  margin: 0 0 var(--sp-5);
  aspect-ratio: 21 / 9;
  max-height: 26rem;
  overflow: hidden;
  border: 1px solid #000;
  box-shadow: var(--bevel), 0 18px 44px rgb(0 0 0 / 0.6);
}

.region-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 980px) {
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.class-showcase-grid {
  display: grid;
  gap: var(--sp-5);
}

.cls-panel {
  display: grid;
  grid-template-columns: 16rem 1fr;
  background: var(--studs), var(--leather), linear-gradient(165deg, #1b150d, #0d0b08);
  border: 1px solid #000;
  box-shadow: var(--bevel), 0 16px 38px rgb(0 0 0 / 0.55);
  overflow: hidden;
}

.cls-panel__media {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
}

.cls-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cls-panel__emblem {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.4rem;
  background: rgb(12 10 8 / 0.86);
  border: 1px solid var(--gold);
  color: var(--gold-hi);
}

.cls-panel__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6);
}

.cls-panel__role {
  color: var(--gold);
  font-size: 0.86rem;
}

.cls-panel__title a {
  text-decoration: none;
  color: #f6eedc;
}

.cls-panel__desc {
  color: var(--muted);
  max-width: 64ch;
}

.cls-panel__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin: var(--sp-2) 0;
}

.cls-panel__meta div {
  padding: 0.45rem 0.65rem;
  background: rgb(0 0 0 / 0.35);
  border: 1px solid rgb(201 162 78 / 0.15);
}

.cls-panel__meta dt {
  font-size: 0.75rem;
  color: var(--dim);
}

.cls-panel__meta dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.cls-panel__body .btn-gold {
  align-self: flex-start;
}

.class-hero-grid {
  display: grid;
  grid-template-columns: 19rem 1fr;
  gap: var(--sp-5);
  align-items: stretch;
}

.class-hero-card {
  border: 1px solid #000;
  box-shadow: var(--bevel), 0 16px 38px rgb(0 0 0 / 0.55);
  overflow: hidden;
}

.class-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-block: var(--sp-4);
}

.pros-box,
.cons-box {
  padding: var(--sp-4) var(--sp-5);
  background: rgb(0 0 0 / 0.32);
  border: 1px solid rgb(201 162 78 / 0.22);
}

.pros-box { border-top: 3px solid #48bb78; }
.cons-box { border-top: 3px solid var(--elmorad); }

.build-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-block: var(--sp-4);
}

.build-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  background: var(--leather), #14100b;
  border: 1px solid rgb(201 162 78 / 0.28);
}

.skill-pane {
  margin-top: var(--sp-3);
}

@media (max-width: 920px) {
  .cls-panel,
  .class-hero-grid,
  .pros-cons,
  .build-cards,
  .cls-panel__meta {
    grid-template-columns: 1fr;
  }
}

/* 10. İnteraktif Hesaplayıcılar, SSS ve 32 Kategori İçerik Haritası */
.calc-shell {
  margin-top: var(--sp-4);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
  align-items: start;
}

.calc-grid--anvil {
  grid-template-columns: minmax(260px, 24rem) 1fr;
}

.calc-panel {
  padding: var(--sp-5);
  background: var(--studs), var(--leather), linear-gradient(170deg, #1c160e, #0e0b08);
  border: 1px solid #000;
  box-shadow: var(--bevel), 0 14px 34px rgb(0 0 0 / 0.5);
}

.calc-panel__title {
  font-size: 1.25rem;
  color: var(--gold-hi);
  margin-bottom: var(--sp-3);
}

.calc-subhead {
  font-size: 1rem;
  color: #f4ecda;
  margin: var(--sp-4) 0 var(--sp-2);
}

.calc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.calc-fields--row {
  margin-bottom: var(--sp-4);
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.calc-in {
  min-height: 42px;
  padding: 0.4rem 0.75rem;
  background: #0b0907;
  border: 1px solid #4d3c20;
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
}

.calc-in:focus {
  outline: none;
  border-color: var(--gold);
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.calc-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.calc-kpi {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.85rem;
  background: rgb(0 0 0 / 0.42);
  border: 1px solid rgb(201 162 78 / 0.2);
}

.calc-kpi span {
  font-size: 0.78rem;
  color: var(--muted);
}

.calc-kpi strong {
  font-family: var(--f-display);
  font-size: 1.2rem;
  color: var(--text);
}

.calc-kpi--gold strong { color: var(--gold-hi); }
.calc-kpi--ok strong   { color: #68d391; }
.calc-kpi--burn strong { color: #fc8181; }

.anvil-readout {
  padding: var(--sp-4);
  text-align: center;
}

.anvil-readout__lbl {
  display: block;
  font-size: 0.78rem;
  color: var(--dim);
}

.anvil-readout__lvl {
  display: block;
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: var(--gold-hi);
  margin-block: 0.2rem;
}

.anvil-readout__msg {
  font-size: 0.9rem;
  color: var(--muted);
}

.anvil-log {
  list-style: none;
  display: grid;
  gap: 0.3rem;
  max-height: 11rem;
  overflow-y: auto;
  padding: var(--sp-3);
  background: #090806;
  border: 1px solid rgb(201 162 78 / 0.16);
  font-size: 0.86rem;
  color: var(--muted);
}

.stat-alloc-list {
  display: grid;
  gap: 0.5rem;
  margin-top: var(--sp-2);
}

.stat-alloc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.4rem 0.65rem;
  background: rgb(0 0 0 / 0.3);
  border: 1px solid rgb(201 162 78 / 0.15);
}

.stat-alloc-row__in {
  width: 6.5rem;
  text-align: center;
}

.tax-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.tax-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
  padding: var(--sp-5);
  background: var(--leather), linear-gradient(175deg, #18130c, #0d0a07);
  border: 1px solid #000;
  box-shadow: var(--bevel);
}

.tax-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}

.tax-card__title {
  flex: 1;
  font-size: 1.1rem;
}

.tax-card__title a {
  text-decoration: none;
  color: #f6eedc;
}

.tax-sec + .tax-sec {
  margin-top: var(--sp-3);
}

.tax-sec__title {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.tax-topics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tax-topics a {
  display: inline-block;
  padding: 0.12rem 0.48rem;
  background: rgb(255 255 255 / 0.035);
  border: 1px solid rgb(201 162 78 / 0.16);
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.tax-topics a:hover {
  border-color: var(--gold);
  color: var(--text);
}

.guide-row__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.news-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: var(--sp-4);
}

.news-quick-links a {
  text-decoration: none;
}

.faq-list {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.faq-item {
  background: rgb(0 0 0 / 0.34);
  border: 1px solid rgb(201 162 78 / 0.24);
  padding: var(--sp-3) var(--sp-4);
}

.faq-item__q {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--gold-hi);
  cursor: pointer;
}

.faq-item__a {
  margin-top: var(--sp-2);
  color: var(--text);
}

@media (max-width: 860px) {
  .calc-grid,
  .calc-grid--anvil,
  .calc-fields,
  .tax-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   CANLI GB FİYATLARI (KOMPAKT ÜST BAR & EFEKTİF TABLO)
   ====================================================== */
.page-head--compact {
  padding-bottom: var(--sp-4);
}

.gb-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.gb-top-bar__title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.gb-live-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.gb-live-meta strong {
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}

.gb-live-meta__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.55rem;
  background: rgb(16 185 129 / 0.14);
  border: 1px solid rgb(52 211 153 / 0.4);
  color: #6ee7b7;
  font-weight: 600;
  font-size: 0.78rem;
}

.gb-live-meta__sep {
  color: rgb(201 162 78 / 0.4);
}

.gb-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #36d399;
  box-shadow: 0 0 8px #36d399;
}

.gb-refresh-chip {
  margin-left: 0.25rem;
  padding: 0.22rem 0.7rem;
  font-size: 0.76rem;
}

.gb-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0.85rem;
  background: rgb(14 12 9 / 0.85);
  border: 1px solid rgb(201 162 78 / 0.24);
  font-size: 0.82rem;
  color: var(--text);
}

.gb-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.gb-legend__dot {
  width: 0.7rem;
  height: 0.7rem;
  display: inline-block;
  border-radius: 2px;
}

.gb-legend__dot--sell {
  background: rgb(201 162 78 / 0.85);
  border: 1px solid var(--gold-hi);
}

.gb-legend__dot--buy {
  background: rgb(16 185 129 / 0.85);
  border: 1px solid #6ee7b7;
}

.gb-board {
  margin-top: 0;
}

.gb-toolbar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgb(201 162 78 / 0.22);
}

.gb-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gb-matrix-wrap {
  overflow-x: auto;
  border: 1px solid rgb(201 162 78 / 0.3);
  background: rgb(12 10 8 / 0.96);
  box-shadow: 0 14px 36px rgb(0 0 0 / 0.55);
}

.gb-matrix {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}

.gb-matrix th,
.gb-matrix td {
  padding: 0;
  border: 1px solid rgb(201 162 78 / 0.13);
  text-align: center;
  white-space: nowrap;
}

.gb-pair-start {
  border-left: 2px solid rgb(201 162 78 / 0.32) !important;
}

.gb-matrix__vendor-col,
.gb-matrix__vendor {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #13100c;
  text-align: left !important;
  min-width: 175px;
  border-right: 2px solid rgb(201 162 78 / 0.42) !important;
}

.gb-matrix__vendor-col {
  padding: 0.65rem 0.85rem !important;
  font-family: var(--f-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--gold-hi);
}

.gb-matrix__sort-hint {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.gb-matrix__server-head {
  padding: 0.55rem 0.45rem !important;
  background: linear-gradient(180deg, #1f1a13, #15120d);
  border-left: 2px solid rgb(201 162 78 / 0.32) !important;
}

.gb-matrix__server-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.gb-matrix__server-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--gold-hi);
}

.gb-srv-tag {
  display: inline-block;
  padding: 0.08rem 0.36rem;
  font-family: var(--f-body);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

.gb-srv-tag--new {
  background: rgb(201 162 78 / 0.22);
  border: 1px solid rgb(228 192 108 / 0.5);
  color: var(--gold-hi);
}

.gb-srv-tag--classic {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.15);
  color: var(--muted);
}

.gb-srv-tag--launch {
  background: rgb(220 38 38 / 0.22);
  border: 1px solid rgb(248 113 113 / 0.5);
  color: #fca5a5;
}

.gb-matrix__side {
  padding: 0.38rem 0.35rem !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #17130e;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.gb-matrix__side:hover,
.gb-matrix__side.is-sorted {
  background: rgb(201 162 78 / 0.22);
}

.gb-matrix__side--sell {
  color: var(--gold-hi);
}

.gb-matrix__side--buy {
  color: #5eead4;
}

.gb-sort-ic {
  font-style: normal;
  font-size: 0.68rem;
  opacity: 0.55;
  margin-left: 0.15rem;
}

.gb-matrix__side.is-sorted .gb-sort-ic {
  opacity: 1;
}

.gb-matrix__row:hover td {
  background-color: rgb(255 255 255 / 0.03);
}

.gb-matrix__row:hover .gb-matrix__vendor {
  background-color: #1c1711;
}

.gb-vendor-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.gb-vendor-link__mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-hi);
  background: linear-gradient(145deg, rgb(201 162 78 / 0.22), rgb(201 162 78 / 0.06));
  border: 1px solid rgb(201 162 78 / 0.42);
}

.gb-vendor-link__info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.gb-vendor-link__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold-hi);
}

.gb-vendor-link__go {
  font-size: 0.68rem;
  color: var(--muted);
}

.gb-vendor-link:hover .gb-vendor-link__name {
  color: #fff;
}

.gb-cell {
  transition: background-color 0.15s ease;
}

.gb-cell__link {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.65rem 0.42rem;
  text-decoration: none;
  color: inherit;
}

.gb-cell__link:hover {
  background: rgb(255 255 255 / 0.06);
}

.gb-cell__price {
  font-weight: 600;
  font-size: 0.9rem;
}

.gb-cell__unit {
  font-size: 0.68rem;
  color: var(--muted);
  margin-left: 0.12rem;
}

.gb-cell--sell {
  color: #efe4ce;
}

.gb-cell--buy {
  color: #cbd5e1;
}

.gb-cell--pending {
  padding: 0.65rem 0.42rem !important;
  color: var(--muted);
  background: rgb(0 0 0 / 0.25);
}

.gb-cell.is-best-sell {
  background: linear-gradient(180deg, rgb(201 162 78 / 0.28), rgb(201 162 78 / 0.14)) !important;
  box-shadow: inset 0 0 0 1px rgb(228 192 108 / 0.65);
}

.gb-cell.is-best-sell .gb-cell__price {
  font-weight: 800;
  color: #fde68a;
}

.gb-cell.is-best-buy {
  background: linear-gradient(180deg, rgb(16 185 129 / 0.26), rgb(16 185 129 / 0.12)) !important;
  box-shadow: inset 0 0 0 1px rgb(52 211 153 / 0.65);
}

.gb-cell.is-best-buy .gb-cell__price {
  font-weight: 800;
  color: #6ee7b7;
}

.gb-matrix__best-row th,
.gb-matrix__best-row td {
  border-top: 2px solid rgb(201 162 78 / 0.45) !important;
  background: #17130e;
}

.gb-matrix__best-label {
  padding: 0.55rem 0.85rem !important;
}

.gb-matrix__best-label strong {
  display: block;
  font-family: var(--f-display);
  font-size: 0.82rem;
  color: var(--gold-hi);
}

.gb-matrix__best-label small {
  font-size: 0.68rem;
  color: var(--muted);
}

.gb-cell--best-foot {
  padding: 0.48rem 0.35rem !important;
}

.gb-best-foot__val {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
}

.gb-best-foot__val--sell {
  color: var(--gold-hi);
}

.gb-best-foot__val--buy {
  color: #6ee7b7;
}

.gb-best-foot__vendor {
  display: block;
  max-width: 78px;
  margin-inline: auto;
  font-size: 0.65rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   HEADER LANGUAGE SWITCHER & COMPACT NAV FIT
   ========================================================================== */
.site-header__in {
  gap: 0.55rem;
}

.main-nav a {
  padding: 0 0.36rem;
  font-size: 0.75rem;
  letter-spacing: 0.025em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.35rem;
  flex-shrink: 0;
}

.header-actions .header-search {
  margin-left: 0;
  width: 38px;
  height: 38px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgb(18 15 12 / 0.9);
  border: 1px solid var(--line-strong);
  padding: 2px;
  gap: 2px;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.35rem;
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}

.lang-switch__btn:hover {
  color: var(--gold-hi);
  background: rgb(201 162 78 / 0.12);
}

.lang-switch__btn.is-active {
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 1260px) {
  .brand__sub {
    display: none;
  }
  .main-nav a {
    padding: 0 0.28rem;
    font-size: 0.71rem;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 95;
  max-width: 1120px;
  margin-inline: auto;
  background: linear-gradient(180deg, rgb(24 20 15 / 0.97), rgb(14 12 9 / 0.98));
  border: 1px solid var(--gold);
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.82), 0 0 0 1px rgb(228 192 108 / 0.22);
  padding: 1rem 1.35rem;
  backdrop-filter: blur(12px);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner,
.cookie-banner__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cookie-banner__content {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  flex: 1 1 520px;
}

.cookie-banner__badge {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  background: rgb(201 162 78 / 0.15);
  border: 1px solid var(--line-strong);
  color: var(--gold-hi);
  font-size: 1rem;
  flex-shrink: 0;
}

.cookie-banner__title {
  display: block;
  font-family: var(--f-display);
  font-size: 0.92rem;
  color: var(--gold-hi);
  margin-bottom: 0.2rem;
}

.cookie-banner__text p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn--sm {
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
}

/* ==========================================================================
   POWER UP STORE (PUS) SIMULATOR
   ========================================================================== */
.pus-top-bar {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgb(25 21 16 / 0.92), rgb(16 14 11 / 0.95));
  border: 1px solid var(--line-strong);
  margin-bottom: 1.5rem;
}

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

.pus-presets__head strong,
.pus-rates__head strong {
  display: block;
  font-family: var(--f-display);
  font-size: 0.92rem;
  color: var(--gold-hi);
  margin-bottom: 0.15rem;
}

.pus-presets__head span,
.pus-rates__head span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.pus-presets__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pus-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.55rem 0.85rem;
  background: rgb(201 162 78 / 0.08);
  border: 1px solid var(--line-strong);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}

.pus-preset-btn:hover,
.pus-preset-btn.is-active {
  background: rgb(201 162 78 / 0.22);
  border-color: var(--gold-hi);
  transform: translateY(-1px);
}

.pus-preset-btn__title {
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-hi);
}

.pus-preset-btn__desc {
  font-size: 0.72rem;
  color: var(--muted);
}

.pus-rates__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pus-rate-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.pus-rate-field input {
  background: #120f0c;
  border: 1px solid var(--line-strong);
  color: var(--gold-hi);
  padding: 0.45rem 0.65rem;
  font-family: var(--f-mono);
  font-size: 0.88rem;
  font-weight: 700;
}

.pus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1080px) {
  .pus-layout {
    grid-template-columns: 1fr;
  }
}

.pus-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pus-search-wrap {
  display: flex;
  align-items: center;
   justify-content: space-between;
  gap: 0.75rem;
  background: #14110d;
  border: 1px solid var(--line-strong);
  padding: 0.35rem 0.85rem;
}

.pus-search-input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 0.92rem;
  padding: 0.4rem 0;
  outline: none;
}

.pus-search-count {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--gold-hi);
  white-space: nowrap;
}

.pus-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.pus-cat-tab {
  padding: 0.42rem 0.75rem;
  background: #16130f;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--f-display);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}

.pus-cat-tab:hover,
.pus-cat-tab.is-active {
  background: rgb(201 162 78 / 0.18);
  border-color: var(--gold-hi);
  color: var(--gold-hi);
}

.pus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 0.75rem;
}

.pus-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.8rem;
  background: linear-gradient(180deg, rgb(24 20 15 / 0.92), rgb(15 13 10 / 0.96));
  border: 1px solid var(--line);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.pus-tile:hover {
  border-color: var(--line-strong);
}

.pus-tile.is-in-cart {
  border-color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px rgb(228 192 108 / 0.45), 0 6px 20px rgb(0 0 0 / 0.5);
  background: linear-gradient(180deg, rgb(42 33 19 / 0.88), rgb(20 16 11 / 0.96));
}

.pus-tile__top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.pus-tile__icon-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: #0b0907;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
}

.pus-tile__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.pus-tile__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold-hi);
  color: #120e09;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.pus-tile__info {
  min-width: 0;
  flex: 1;
}

.pus-tile__cat {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pus-tile__title {
  font-size: 0.88rem;
  color: #fff3d6;
  margin: 0.1rem 0 0.2rem;
  line-height: 1.25;
}

.pus-tile__desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.pus-tile__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgb(201 162 78 / 0.14);
}

.pus-tile__price strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.9rem;
  color: var(--gold-hi);
}

.pus-tile__price small {
  font-size: 0.7rem;
  color: var(--muted);
}

.pus-tile__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pus-qty-btn {
  width: 28px;
  height: 28px;
  background: #1b1610;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.pus-qty-btn:hover {
  border-color: var(--gold-hi);
  color: var(--gold-hi);
}

.pus-add-btn {
  height: 28px;
  padding: 0 0.65rem;
  background: rgb(201 162 78 / 0.16);
  border: 1px solid var(--gold);
  color: var(--gold-hi);
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.pus-add-btn:hover {
  background: var(--gold);
  color: var(--ink);
}

.pus-bag-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.pus-bag {
  background: linear-gradient(180deg, #1b1610, #110e0a);
  border: 1px solid var(--gold);
  padding: 1.15rem;
}

.pus-bag__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.pus-bag__title {
  font-size: 1rem;
  color: var(--gold-hi);
}

.pus-bag__sub {
  font-size: 0.74rem;
  color: var(--muted);
}

.pus-bag__clear {
  background: transparent;
  border: 1px solid rgb(239 68 68 / 0.45);
  color: #fca5a5;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  cursor: pointer;
}

.pus-bag__list {
  max-height: 290px;
  overflow-y: auto;
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pus-bag__empty {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 1.2rem 0.5rem;
}

.pus-bag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.42rem 0.5rem;
  background: rgb(0 0 0 / 0.32);
  border: 1px solid var(--line);
}

.pus-bag-row__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.pus-bag-row__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.pus-bag-row__title {
  display: block;
  font-size: 0.78rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pus-bag-row__sub {
  font-size: 0.68rem;
  color: var(--gold-hi);
}

.pus-bag-row__controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.pus-bag-row__controls button {
  width: 22px;
  height: 22px;
  background: #1c1711;
  border: 1px solid var(--line-strong);
  color: var(--text);
  cursor: pointer;
}

.pus-bag-row__controls span {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  min-width: 18px;
  text-align: center;
}

.pus-bag__totals {
  border-top: 1px solid var(--line-strong);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pus-bag__metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

.pus-bag__metric strong {
  font-family: var(--f-mono);
  color: var(--text);
}

.pus-bag__metric--primary strong {
  font-size: 1.05rem;
  color: var(--gold-hi);
}

.pus-bag__metric--tl strong {
  font-size: 1rem;
  color: #6ee7b7;
}

.pus-bag__esn {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line-strong);
}

.pus-bag__esn-title {
  font-size: 0.78rem;
  color: var(--gold-hi);
  margin-bottom: 0.45rem;
}

.pus-bag__esn-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pus-esn-chip {
  padding: 0.22rem 0.5rem;
  background: rgb(201 162 78 / 0.15);
  border: 1px solid var(--gold);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--gold-hi);
}

.pus-bag__actions {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pus-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 920px) {
  .pus-guide-grid {
    grid-template-columns: 1fr;
  }
}

.pus-guide-card {
  padding: 1.25rem;
  background: linear-gradient(180deg, #191510, #110e0a);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.pus-guide-card--featured {
  border-color: var(--gold-hi);
}

.pus-guide-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  background: rgb(201 162 78 / 0.16);
  border: 1px solid var(--gold);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--gold-hi);
}

.pus-guide-card__list {
  padding-left: 1.1rem;
  font-size: 0.83rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pus-tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
}

.pus-tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.pus-tips-list__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: rgb(201 162 78 / 0.16);
  border: 1px solid var(--gold);
  color: var(--gold-hi);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   PREMIUM AMORTI CALCULATOR
   ========================================================================== */
.amorti-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.amorti-meter {
  margin: 1rem 0;
  padding: 0.85rem;
  background: #120f0b;
  border: 1px solid var(--line-strong);
}

.amorti-meter__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--gold-hi);
  margin-bottom: 0.45rem;
}

.amorti-meter__bar {
  display: flex;
  height: 16px;
  background: #090806;
  border: 1px solid var(--line);
  overflow: hidden;
}

.amorti-meter__cost {
  background: linear-gradient(90deg, #b45309, #eab308);
  height: 100%;
  transition: width 0.3s ease;
}

.amorti-meter__profit {
  background: linear-gradient(90deg, #059669, #34d399);
  height: 100%;
  transition: width 0.3s ease;
}

.amorti-meter__legend {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.amorti-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.amorti-dot--cost {
  background: #eab308;
}

.amorti-dot--profit {
  background: #34d399;
}

/* ==========================================================================
   FORGOTTEN TEMPLE (FT) WAVE TIMER
   ========================================================================== */
.ft-cockpit {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.ft-cockpit__main,
.ft-next-panel {
  padding: 1.35rem;
  background: linear-gradient(180deg, #1b1610, #110e0a);
  border: 1px solid var(--line-strong);
}

.ft-cockpit__status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ft-status-badge {
  padding: 0.25rem 0.65rem;
  background: rgb(201 162 78 / 0.16);
  border: 1px solid var(--gold);
  font-family: var(--f-display);
  font-size: 0.74rem;
  color: var(--gold-hi);
}

.ft-audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
}

.ft-big-clock {
  text-align: center;
  padding: 1.1rem;
  background: #0d0b08;
  border: 1px solid var(--gold);
  margin-bottom: 1rem;
}

.ft-big-clock__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ft-big-clock__time {
  display: block;
  font-family: var(--f-mono);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--gold-hi);
  line-height: 1.1;
  margin: 0.25rem 0;
}

.ft-big-clock__sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.ft-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.ft-sync-bar {
  display: flex;
  align-items: center;
   justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.ft-sync-bar__label {
  font-size: 0.75rem;
  color: var(--muted);
}

.ft-sync-bar__btns {
  display: flex;
  gap: 0.35rem;
}

.ft-next-card {
  padding: 1rem;
  background: rgb(201 162 78 / 0.08);
  border: 1px solid var(--gold);
  margin-bottom: 1rem;
}

.ft-next-card__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--gold-hi);
  margin-bottom: 0.35rem;
}

.ft-next-mob {
  font-size: 1.35rem;
  color: #fff4d6;
  margin-bottom: 0.45rem;
}

.ft-next-countdown {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ft-next-countdown strong {
  font-family: var(--f-mono);
  font-size: 1.65rem;
  color: #6ee7b7;
}

.ft-upcoming-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ft-upcoming-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  background: #120f0b;
  border: 1px solid var(--line);
  font-size: 0.82rem;
}

.ft-wave-row {
  cursor: pointer;
}

.ft-wave-row.is-passed {
  opacity: 0.42;
}

.ft-wave-row.is-current {
  background: rgb(201 162 78 / 0.22) !important;
  outline: 1px solid var(--gold-hi);
}

.ft-tier-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid var(--line-strong);
}

.ft-tier-badge--boss {
  background: rgb(239 68 68 / 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

.ft-tier-badge--high {
  background: rgb(245 158 11 / 0.2);
  border-color: #f59e0b;
  color: #fcd34d;
}

/* ==========================================================================
   RAFFLE HUB & 10 CUSTOM KO RAFFLE TOOLS
   ========================================================================== */
.raffle-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 0.65rem;
}

.raffle-mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(180deg, #191510, #110e0a);
  border: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all var(--t-fast);
}

.raffle-mode-card:hover,
.raffle-mode-card.is-active {
  background: linear-gradient(180deg, rgb(42 33 19 / 0.92), rgb(20 16 11 / 0.96));
  border-color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px rgb(228 192 108 / 0.35);
}

.raffle-mode-card__num {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--gold-hi);
  text-transform: uppercase;
}

.raffle-mode-card__title {
  font-family: var(--f-display);
  font-size: 0.84rem;
  color: #fff3d6;
}

.raffle-mode-card__desc {
  font-size: 0.72rem;
  color: var(--muted);
}

.raffle-workspace {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 980px) {
  .raffle-workspace {
    grid-template-columns: 1fr;
  }
}

.raffle-textarea {
  width: 100%;
  background: #0e0c09;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 0.84rem;
  padding: 0.65rem;
  resize: vertical;
}

.raffle-wheel-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0.75rem auto 1.1rem;
  display: grid;
  place-items: center;
}

.raffle-wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: var(--gold-hi);
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 6px #000);
}

#raffle-wheel-canvas {
  border-radius: 50%;
  box-shadow: 0 12px 36px rgb(0 0 0 / 0.75);
}

.raffle-result-box {
  padding: 1rem;
  background: #120f0b;
  border: 1px solid var(--gold);
}

.raffle-result-box__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gold-hi);
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.raffle-result-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.raffle-winner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: rgb(201 162 78 / 0.1);
  border: 1px solid var(--line-strong);
}

.raffle-winner-card--sub {
  background: rgb(255 255 255 / 0.03);
  border-style: dashed;
}

.raffle-winner-card__rank {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-hi);
}

.raffle-winner-card__name {
  font-family: var(--f-display);
  font-size: 0.9rem;
  color: #fff4d6;
}

.raffle-winner-card__prize {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: #6ee7b7;
}

