/* TLOS — foundations, layout, components, responsive behavior. */
@font-face {
  font-family: Cinzel;
  src: url("../assents/fonts/Cinzel.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --bg: #0b0d10;
  --surface: #12151a;
  --gold: #d5b375;
  --gold-bright: #f0d7a2;
  --ink: #eee9df;
  --muted: #a6a6a8;
  --line: rgba(213, 179, 117, 0.22);
  --serif: Cinzel, Georgia, serif;
  --sans: "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
}
body.modal-open {
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 6px;
}
::selection {
  background: #81643d;
  color: white;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
}
h2 {
  font-size: clamp(32px, 3.5vw, 52px);
  letter-spacing: -1.6px;
}
em {
  font-style: normal;
  color: var(--gold);
}
p {
  color: var(--muted);
}
svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wrap {
  width: min(1200px, calc(100% - 100px));
  margin-inline: auto;
}
.section {
  padding-block: 110px;
  scroll-margin-top: 20px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #83858a;
  margin-bottom: 55px;
}
.section-kicker span {
  width: 60px;
  height: 1px;
  background: var(--line);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
}
.heading-aside {
  font-size: 14px;
  line-height: 1.8;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 15px 25px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.button:hover {
  transform: translateY(-3px);
}
.button.gold {
  background: linear-gradient(120deg, #dfc08a, #b88e51);
  color: #17130d;
  border-color: #e8ca91;
}
.button.glass {
  background: #0d1016a8;
  backdrop-filter: blur(10px);
}
.button.glass:hover {
  border-color: var(--gold);
}
.button.icon-button,
.hero-actions .button.icon-button {
  width: 54px;
  padding: 0;
  color: var(--ink);
}
.button.icon-button:hover {
  color: var(--gold-bright);
}
.text-button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: var(--gold);
  font-size: 13px;
}
.round-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 19px;
}
.round-button:hover {
  background: #d5b37520;
  border-color: var(--gold);
}
/* Header and atmospheric opening */
.site-header {
  height: 86px;
  padding: 0 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid #ffffff12;
  background: linear-gradient(#090b0ee8, #090b0e10);
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font: 600 12px/1.35 var(--serif);
  letter-spacing: 1.4px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 5px;
  margin-top: 3px;
}
.brand-sigil {
  font: 27px var(--serif);
  color: var(--gold);
  border: 1px solid var(--line);
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  clip-path: polygon(
    20% 0,
    80% 0,
    100% 20%,
    100% 80%,
    80% 100%,
    20% 100%,
    0 80%,
    0 20%
  );
}
.header-right {
  display: flex;
  align-items: center;
  gap: 36px;
}
.dev-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #c1c2be;
  display: flex;
  align-items: center;
  gap: 9px;
}
.dev-label i {
  height: 5px;
  width: 5px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px #d5b37580;
}
.discord-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  border: 1px solid #ffffff25;
  padding: 9px 15px;
  background: #ffffff06;
}
.discord-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.hero {
  min-height: 800px;
  height: 100svh;
  max-height: 1100px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("../assents/images/hero.png") center center/cover no-repeat;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      #080b0fe8 0%,
      #080b0fc0 28%,
      #080b0f35 62%,
      #080b0f10
    ),
    linear-gradient(
      0deg,
      var(--bg),
      transparent 30%,
      transparent 75%,
      #080b0f75
    );
}
.hero-content {
  padding-top: 120px;
}
.hero .eyebrow {
  display: flex;
  gap: 13px;
  align-items: center;
}
.hero .eyebrow > span {
  height: 1px;
  width: 28px;
  background: var(--gold);
}
h1 {
  font-size: clamp(40px, 4.2vw, 65px);
  letter-spacing: -2px;
  line-height: 1.13;
  max-width: 760px;
  text-shadow: 0 2px 30px #0008;
}
h1 em {
  display: inline-block;
}
.hero-description {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.8;
  color: #c3c0ba;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 3px;
  font-size: 9px;
  color: #a19c90;
  margin-top: 35px;
}
.tiny-line {
  width: 22px;
  height: 1px;
  background: var(--gold);
}
.scroll-cue {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 2.5px;
  color: #a9a69c;
}
.scroll-cue > span:last-child {
  font-size: 22px;
  color: var(--gold);
}
.hero-edition {
  position: absolute;
  right: 4%;
  bottom: 65px;
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: 2px;
  color: #a6a29a;
}
.hero-edition b {
  font-weight: 400;
  margin-top: 30px;
  color: var(--gold);
}
.embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.ember {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #efb05d;
  box-shadow: 0 0 9px #efb05d;
  border-radius: 50%;
  animation: float-up 12s linear infinite;
  opacity: 0;
}
@keyframes float-up {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  20%,
  65% {
    opacity: 0.55;
  }
  100% {
    transform: translate(70px, -300px);
    opacity: 0;
  }
}
/* Story */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-grid h2 {
  margin-bottom: 28px;
}
.story-grid p:not(.eyebrow) {
  font-size: 15px;
  margin-top: 18px;
}
.story-grid blockquote {
  font-family: var(--serif);
  font-size: 17px;
  margin: 30px 0 18px;
  padding-left: 22px;
  border-left: 1px solid var(--gold);
  color: #d7c6a7;
}
.story-visual {
  position: relative;
  padding: 15px;
}
.story-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: 65%;
  filter: saturate(0.8);
}
.image-frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  pointer-events: none;
}
.image-caption {
  position: absolute;
  bottom: 35px;
  left: 35px;
  right: 35px;
  display: grid;
  padding-top: 45px;
  background: linear-gradient(transparent, #000b);
  font: 19px var(--serif);
  letter-spacing: 2px;
}
.image-caption small {
  font: 11px var(--sans);
  letter-spacing: 0.4px;
  margin-top: 10px;
  color: #cfcbc2;
}
.story-seal {
  position: absolute;
  top: -30px;
  right: 35px;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  background: var(--bg);
  color: var(--gold);
  font: 32px var(--serif);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  margin-top: 85px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.pillars [data-icon] {
  color: var(--gold);
  margin-bottom: 18px;
}
.pillars h3 {
  font-size: 17px;
  margin-bottom: 12px;
}
.pillars p {
  font-size: 13px;
  max-width: 300px;
}
/* Class selection: original bitmap sprites, animated by CSS frame positions. */
.classes-section {
  background:
    radial-gradient(ellipse at 50% 50%, #30251b55, transparent 65%), #101113;
  border-block: 1px solid var(--line);
}
.gender-switch,
.filter-tabs {
  display: flex;
  gap: 3px;
  border: 1px solid var(--line);
  padding: 4px;
}
.gender-switch button,
.filter-tabs button {
  background: none;
  border: 0;
  padding: 9px 15px;
  font-size: 12px;
  color: var(--muted);
}
.gender-switch button[aria-pressed="true"],
.filter-tabs button[aria-pressed="true"] {
  background: #d5b37518;
  color: var(--gold-bright);
}
.class-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.class-card {
  position: relative;
  background: linear-gradient(0deg, #15130f, #211d17);
  border: 1px solid #5e584d;
  padding: 20px 8px 25px;
  min-width: 0;
  transition:
    transform 0.25s,
    border-color 0.25s;
  overflow: hidden;
}
.class-card:before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #ffffff10;
  pointer-events: none;
}
.class-card:after {
  content: "◆";
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 10px;
  color: #6d6555;
}
.class-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}
.class-card[aria-pressed="true"] {
  border-color: #e2bd76;
  box-shadow:
    0 0 0 3px #d5b37514,
    inset 0 0 45px #d5b37508;
}
.class-card[aria-pressed="true"]:before {
  border-color: #b98c40;
}
.class-card[aria-pressed="true"]:after {
  color: var(--gold);
}
.sprite-well {
  width: 160px;
  height: 180px;
  margin: 0 auto 10px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, #ae86452b 0 40%, transparent 41%);
}
.sprite-well:after {
  content: "";
  position: absolute;
  bottom: 12px;
  width: 85px;
  height: 20px;
  background: #494842;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  border-bottom: 8px solid #2e302e;
  z-index: 0;
}
.sprite {
  width: 192px;
  height: 192px;
  background-size: 1152px 13824px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  z-index: 1;
  animation: sprite-idle 1.2s steps(4) infinite;
}
.class-card:not([aria-pressed="true"]) .sprite {
  animation-play-state: paused;
}
.class-card h3 {
  font-size: 16px;
  margin-top: 8px;
  white-space: nowrap;
}
.class-card p {
  font-size: 11px;
  margin-top: 6px;
}
.class-card[aria-pressed="true"] h3,
.class-card[aria-pressed="true"] p {
  color: var(--gold-bright);
}
@keyframes sprite-idle {
  to {
    background-position-x: -768px;
  }
}
.class-detail {
  margin-top: 30px;
  border-block: 1px solid var(--line);
  padding: 30px 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  min-height: 168px;
}
.class-detail h3 {
  font-size: 23px;
  margin: 8px 0 12px;
}
.class-detail p {
  font-size: 13px;
}
.detail-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
}
.detail-block {
  border-left: 1px solid var(--line);
  padding-left: 25px;
}
.detail-block strong {
  display: block;
  font: 17px var(--serif);
  margin: 12px 0;
}
.class-detail .eyebrow {
  margin: 0;
}
/* Character carousel */
.character-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 510px;
  background: radial-gradient(ellipse at 28% 75%, #45413542, transparent 60%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.portrait-area {
  position: relative;
  height: 510px;
  z-index: 1;
}
.portrait-area img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 10px 30px #0007);
  animation: portrait-in 0.45s ease;
}
.portrait-orbit {
  width: 390px;
  height: 390px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: absolute;
  left: 8%;
  top: 60px;
}
.portrait-orbit:after {
  content: "";
  position: absolute;
  inset: 25px;
  border: 1px dashed #d5b37522;
  border-radius: 50%;
}
.character-copy {
  padding: 85px 60px 40px 45px;
  align-self: center;
  z-index: 1;
}
.character-copy h3 {
  font-size: 48px;
  margin: 18px 0 25px;
}
.character-copy p {
  font-size: 15px;
  max-width: 420px;
}
.character-pagination {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 35px;
}
.character-pagination > span {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
}
.character-thumbnails {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
  overflow-x: auto;
  padding: 6px;
}
.thumbnail {
  width: 76px;
  min-width: 76px;
  height: 85px;
  background: #1a1c20;
  border: 1px solid #45423b;
  padding: 0;
  overflow: hidden;
  opacity: 0.55;
  transition:
    opacity 0.2s,
    border 0.2s;
}
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.thumbnail[aria-pressed="true"],
.thumbnail:hover {
  opacity: 1;
  border-color: var(--gold);
}
.editorial-note {
  text-align: center;
  font-size: 11px;
  margin-top: 25px;
  color: #777b81;
}
@keyframes portrait-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Places and media */
.world-section {
  background: #111417;
  border-block: 1px solid #ffffff09;
}
.world-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.world-card {
  height: 410px;
  position: relative;
  border: 1px solid #ffffff15;
  padding: 0;
  background: #090b0e;
  text-align: left;
  overflow: hidden;
}
.world-card > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.65);
  transition:
    transform 0.7s,
    filter 0.7s;
}
.world-card:hover > img {
  transform: scale(1.05);
  filter: saturate(1);
}
.world-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, #070b10e8 100%);
}
.world-label {
  position: absolute;
  inset: auto 28px 28px;
  display: grid;
  z-index: 1;
}
.world-label small {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 15px;
}
.world-label strong {
  font: 23px/1.4 var(--serif);
  margin-bottom: 20px;
}
.world-label > span {
  border-top: 1px solid #ffffff20;
  padding-top: 15px;
  font-size: 12px;
  color: #b9b6ac;
  display: flex;
  justify-content: space-between;
}
.world-label b {
  font-size: 20px;
  color: var(--gold);
  font-weight: 400;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-card {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
.video-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.video-poster {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid #ffffff18;
  background: #16191c;
}
.video-poster img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  filter: brightness(0.75);
}
.video-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.95);
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border: 1px solid #dfc492;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #090c10b0;
  color: var(--gold);
}
.video-card:first-child .video-play {
  width: 72px;
  height: 72px;
}
.video-card h3 {
  font-size: 17px;
  margin-top: 15px;
}
.video-card p {
  font-size: 11px;
  margin-top: 7px;
  letter-spacing: 1px;
}
.video-card:first-child h3 {
  font-size: 25px;
}
.video-tag {
  position: absolute;
  left: 15px;
  bottom: 15px;
  font-size: 9px;
  letter-spacing: 1.5px;
  background: #080b10c9;
  padding: 4px 9px;
  color: #e8d3a8;
}
.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 65px 0 25px;
}
.gallery-heading h3 {
  font-size: 22px;
}
.gallery-heading > span {
  font-size: 9px;
  letter-spacing: 2px;
  color: #92938e;
}
.gallery-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
}
.gallery-item {
  padding: 0;
  background: none;
  border: 1px solid #ffffff15;
  flex: 0 0 31%;
  scroll-snap-align: start;
  position: relative;
}
.gallery-item img {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
}
.gallery-item span {
  position: absolute;
  inset: auto 0 0;
  background: #000c;
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
}
.gallery-item:hover {
  border-color: var(--gold);
}
* {
  scrollbar-width: thin;
  scrollbar-color: #6e5938 #14161a;
}
/* Community, footer, navigation dock and dialog */
.community {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse at center, #25233480, transparent 65%), #0f1015;
}
.community-inner {
  position: relative;
  z-index: 1;
}
.discord-large {
  color: var(--gold);
  margin-bottom: 22px;
}
.discord-large svg {
  width: 45px;
  height: 45px;
}
.community h2 {
  font-size: clamp(35px, 4vw, 60px);
  margin-bottom: 25px;
}
.community p:not(.eyebrow) {
  font-size: 15px;
}
.discord-button {
  background: #5865f2;
  border-color: #8992ff;
  color: white;
  margin-top: 32px;
  padding-inline: 32px;
  box-shadow: 0 8px 40px #5865f224;
}
.discord-button:hover {
  background: #6874ff;
  box-shadow: 0 8px 40px #5865f250;
}
.community small {
  display: block;
  margin-top: 18px;
  font-size: 11px;
  color: #88858f;
}
.community-rune {
  font: 430px/1 var(--serif);
  color: #d5b37505;
  position: absolute;
  inset: 60px 0 0;
  pointer-events: none;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 42px 140px;
  gap: 25px;
}
.footer p,
.footer > a:last-child {
  font-size: 11px;
}
.footer > a:last-child {
  color: var(--gold);
}
.dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: #11141aee;
  backdrop-filter: blur(20px);
  border: 1px solid #8e734759;
  box-shadow: 0 10px 50px #0009;
  border-radius: 14px;
}
.dock a {
  width: 76px;
  height: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #8e9199;
  border-radius: 7px;
  position: relative;
  transition:
    color 0.2s,
    background 0.2s;
}
.dock a > span:last-child {
  font-size: 9px;
}
.dock svg {
  width: 19px;
  height: 19px;
}
.dock a.active,
.dock a:hover {
  color: var(--gold);
  background: #d5b3750e;
}
.dock a.active:after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 18px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.media-modal {
  width: min(1100px, 95vw);
  max-height: 92svh;
  padding: 22px;
  border: 1px solid var(--line);
  background: #101318;
  color: var(--ink);
  overflow: auto;
}
.media-modal::backdrop {
  background: #000d;
  backdrop-filter: blur(8px);
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.modal-top h2 {
  font: 20px var(--serif);
  letter-spacing: 0;
}
.modal-top button {
  flex-shrink: 0;
}
#modal-content iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}
#modal-content img {
  max-height: 70svh;
  width: 100%;
  object-fit: contain;
}
#modal-caption {
  font-size: 12px;
  margin-top: 15px;
}
#modal-caption a {
  color: var(--gold);
  text-decoration: underline;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--gold);
  color: #000;
  padding: 12px;
}
.skip-link:focus {
  top: 15px;
}
.noscript {
  padding: 20px;
  text-align: center;
  background: #272018;
  color: var(--gold);
}
.progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.progress-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: baseline;
}
.progress-list span {
  font-family: var(--serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.progress-list b {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.progress-list i {
  grid-column: 1 / -1;
  position: relative;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: repeating-linear-gradient(
      90deg,
      transparent 0 calc(10% - 1px),
      rgba(213, 179, 117, 0.12) calc(10% - 1px) 10%
    ),
    var(--surface);
  overflow: hidden;
}
.progress-list i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a6a35, var(--gold), var(--gold-bright));
  box-shadow: 0 0 18px rgba(240, 215, 162, 0.45);
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-list i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--value) * 1%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: progress-shine 2.8s ease-in-out infinite;
  opacity: 0;
}
.progress-list li:nth-child(2) i::before {
  transition-delay: 0.15s;
}
.progress-list li:nth-child(3) i::before {
  transition-delay: 0.3s;
}
.progress-list li:nth-child(4) i::before {
  transition-delay: 0.45s;
}
.progress-list li:nth-child(5) i::before {
  transition-delay: 0.6s;
}
.progress-list li:nth-child(6) i::before {
  transition-delay: 0.75s;
}
.progress-list.is-visible i::before {
  width: calc(var(--value) * 1%);
}
.progress-list.is-visible i::after {
  opacity: 1;
}
@keyframes progress-shine {
  from {
    background-position: -60% 0;
  }
  to {
    background-position: 160% 0;
  }
}
@media (min-width: 1600px) {
  .hero-content {
    padding-top: 100px;
  }
  .hero-art {
    background-position: center 42%;
  }
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 60px);
  }
  .story-grid {
    gap: 40px;
  }
  .class-cards {
    gap: 10px;
  }
  .class-card h3 {
    font-size: 13px;
  }
  .sprite-well {
    width: 130px;
  }
  .character-copy {
    padding-right: 20px;
  }
  .world-label {
    inset: auto 20px 22px;
  }
  .world-label strong {
    font-size: 20px;
  }
  .section-heading {
    align-items: start;
  }
  .filter-tabs {
    flex-wrap: wrap;
  }
  .video-grid {
    gap: 18px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .section {
    padding-block: 70px;
  }
  .site-header {
    height: 74px;
    padding-inline: 20px;
  }
  .brand {
    font-size: 9px;
    gap: 9px;
  }
  .brand-sigil {
    width: 34px;
    height: 37px;
    font-size: 22px;
  }
  .brand small {
    font-size: 7px;
  }
  .dev-label {
    display: none;
  }
  .discord-link {
    padding: 8px 10px;
    font-size: 11px;
  }
  .hero {
    min-height: 730px;
    max-height: 950px;
  }
  .hero-art {
    background-position: 63% center;
  }
  .hero:before {
    background:
      linear-gradient(90deg, #080b0fd9, #080b0f45),
      linear-gradient(0deg, var(--bg), transparent 70%);
  }
  .hero-content {
    padding-top: 150px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
  }
  h1 {
    font-size: 42px;
    letter-spacing: -1.5px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .button {
    font-size: 11px;
    padding: 14px 16px;
  }
  .hero-note {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .scroll-cue {
    bottom: 35px;
    white-space: nowrap;
  }
  .hero-edition {
    display: none;
  }
  .section-kicker {
    margin-bottom: 35px;
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .story-visual img {
    height: 290px;
  }
  .pillars {
    gap: 22px;
    margin-top: 45px;
  }
  .pillars h3 {
    font-size: 14px;
  }
  .pillars p {
    font-size: 12px;
  }
  .section-heading {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
  }
  .class-cards {
    display: flex;
    overflow-x: auto;
    padding: 6px 4px 15px;
    scroll-snap-type: x mandatory;
  }
  .class-card {
    flex: 0 0 155px;
    scroll-snap-align: center;
  }
  .class-card h3 {
    font-size: 13px;
  }
  .sprite-well {
    width: 140px;
  }
  .class-detail {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .class-detail > div:first-child {
    grid-column: 1/-1;
  }
  .detail-block {
    padding-left: 15px;
  }
  .character-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .portrait-area {
    height: 350px;
  }
  .portrait-orbit {
    width: 290px;
    height: 290px;
    left: 50%;
    transform: translateX(-50%);
    top: 30px;
  }
  .character-copy {
    padding: 25px 20px 35px;
  }
  .character-copy h3 {
    font-size: 34px;
    margin: 12px 0 18px;
  }
  .character-copy p {
    font-size: 14px;
  }
  .character-pagination {
    margin-top: 24px;
  }
  .character-thumbnails {
    justify-content: start;
  }
  .thumbnail {
    width: 64px;
    min-width: 64px;
    height: 72px;
  }
  .world-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .world-card {
    height: 320px;
  }
  .world-card > img {
    object-position: center 40%;
  }
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
  .video-card:first-child {
    grid-column: 1/-1;
    grid-row: auto;
  }
  .video-card h3 {
    font-size: 14px;
  }
  .video-card:first-child h3 {
    font-size: 21px;
  }
  .gallery-heading {
    align-items: start;
    gap: 20px;
  }
  .gallery-heading h3 {
    font-size: 19px;
  }
  .gallery-heading > span {
    font-size: 8px;
  }
  .gallery-item {
    flex-basis: 80%;
  }
  .community p br {
    display: none;
  }
  .community h2 {
    font-size: 36px;
  }
  .footer {
    flex-wrap: wrap;
    padding-bottom: 125px;
  }
  .footer p {
    display: none;
  }
  .dock {
    width: calc(100% - 20px);
    max-width: 570px;
    bottom: 10px;
    padding: 6px 4px;
    gap: 0;
    border-radius: 12px;
  }
  .dock a {
    width: auto;
    flex: 1;
    min-width: 0;
    height: 52px;
  }
  .dock a > span:last-child {
    font-size: 8px;
  }
  .dock svg {
    width: 18px;
    height: 18px;
  }
  .dock a.active:after {
    bottom: -7px;
  }
  .media-modal {
    padding: 14px;
  }
  .modal-top h2 {
    font-size: 15px;
  }
  .heading-aside {
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  h1 {
    font-size: 36px;
  }
  .header-right .discord-link > span:nth-child(2) {
    display: none;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .dock a > span:last-child {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .embers {
    display: none;
  }
}
