:root {
  --red: #e10600;
  --red-hover: #ff2a1f;
  --ember: #ff6a1a;
  --bg: #070809;
  --header: #0b0c0e;
  --footer: #101214;
  --text: #f2f2f2;
  --muted: #b8b8b8;
  --line: #2f2f2f;
  --header-h: 62px;
  --footer-h: 46px;
  --neon: #3dff9a;
  --neon-dim: #1bd47a;
  --game-nav-h: 58px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}

html,
body {
  min-height: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
}

body {
  font-family: "Prompt", "Noto Sans Thai", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

body.page-home {
  overflow: auto;
  overflow-x: clip;
  height: auto;
  padding-bottom: var(--game-nav-h);
  background: #0b0d0e;
}

body.page-inner {
  overflow: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video, canvas {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

button,
input {
  font-family: inherit;
}

/* Header */
.site-header {
  height: var(--header-h);
  background: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px 0 18px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #1a1c1e;
}

body.page-home .site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.page-home .site-header.is-scrolled {
  background: rgba(8, 9, 11, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

body.page-home .site-header,
body.page-home .site-header .brand,
body.page-home .site-header .brand img,
body.page-home .site-header .brand-text,
body.page-home .site-header .brand-name,
body.page-home .site-header .brand-ep,
body.page-home .site-header .header-chip,
body.page-home .site-header .header-chip span,
body.page-home .site-header .social-icon,
body.page-home .site-header .menu-btn {
  opacity: 1;
}

body.page-home .brand img {
  mix-blend-mode: normal;
}

body.page-home .brand-ep {
  color: #fff;
}

body.page-home .site-footer {
  background: #0b0d0e;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-left {
  gap: 12px;
  flex: 1;
}

body.page-home .header-left .brand {
  margin-right: 6px;
}

.header-right {
  gap: 20px;
  flex-shrink: 0;
  justify-content: flex-end;
}

body.page-home .brand {
  max-width: none;
}

.header-chip[hidden],
.mobile-nav [data-link][hidden],
.mobile-nav [data-facebook-mobile][hidden] {
  display: none !important;
}

.header-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.header-chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.header-topup-icon {
  animation: topup-bounce 0.9s ease-in-out infinite;
}

@keyframes topup-bounce {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.header-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  flex-shrink: 0;
  pointer-events: none;
  cursor: default;
  user-select: none;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  pointer-events: none;
}

.social-icon.is-link {
  pointer-events: auto;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-chip:hover,
.nav-auth a:not(.header-chip):hover {
  color: #fff;
}

.header-chip:hover,
.social-icon.is-link:hover {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.16);
}

.social-icon.is-link:hover {
  color: #fff;
}

body.page-home .nav-auth a:hover {
  color: #fff8e6;
  filter: drop-shadow(0 0 8px rgba(230, 184, 65, 0.35));
}

body.page-home .site-header a:focus-visible,
body.page-home .site-header button:focus-visible {
  outline: 2px solid #e6b841;
  outline-offset: 3px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(280px, calc(100% - 88px));
}

.brand img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 10px rgba(232, 176, 64, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  line-height: 1;
}

.brand-name {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e6b841;
  filter:
    drop-shadow(0 1px 0 #241308)
    drop-shadow(1px 0 0 #241308)
    drop-shadow(-1px 0 0 #1a0e06)
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-name {
    background-image: linear-gradient(180deg, #fff0b0 0%, #e6b841 52%, #9b641a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.brand-ep {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #dce2ea;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.65);
  padding-left: 1px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 42px;
  flex: 1;
}

.nav-main a,
.nav-auth a:not(.header-chip),
.drop-toggle {
  color: #ddd;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.15s ease;
}

.nav-main a:hover,
.nav-auth a:not(.header-chip):hover,
.drop-toggle:hover {
  color: #fff;
}

.nav-item {
  position: relative;
}

.drop-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.drop-toggle svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  opacity: 0.8;
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 188px;
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #ccc;
}

.dropdown a:hover {
  background: #242424;
  color: #fff;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.nav-auth a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-auth a:not(.header-chip) svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.nav-auth .header-chip {
  color: #fff;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

/* Hero */
.hero {
  --hero-h: 100vh;
  position: relative;
  height: var(--hero-h);
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  background: #050607;
  scroll-margin-top: 0;
}

.hero-cover {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.68) contrast(1.18) brightness(0.78);
}

.hero-grade,
.hero-smoke,
.hero-embers,
.hero-grain,
.hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grade {
  z-index: 1;
  background:
    radial-gradient(ellipse at 52% 58%, rgba(255, 110, 32, 0.16), transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.22), transparent 55%),
    linear-gradient(90deg, rgba(10, 14, 12, 0.42), transparent 22%, transparent 78%, rgba(10, 14, 12, 0.42)),
    linear-gradient(180deg, rgba(6, 8, 10, 0.18), transparent 22%, rgba(8, 10, 12, 0.08) 100%);
  mix-blend-mode: multiply;
}

.hero-grade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 48% 45%, rgba(255, 146, 64, 0.18), transparent 38%);
  mix-blend-mode: overlay;
}

.hero-smoke {
  z-index: 2;
  overflow: hidden;
}

.smoke {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse, rgba(196, 202, 208, 0.28), rgba(120, 126, 132, 0.08) 45%, transparent 70%);
}

.smoke-a {
  width: 62vw;
  height: 48vh;
  left: -8%;
  bottom: -18%;
  animation: smoke-drift-a 22s ease-in-out infinite;
}

.smoke-b {
  width: 50vw;
  height: 42vh;
  right: -10%;
  bottom: -12%;
  animation: smoke-drift-b 26s ease-in-out infinite;
}

.smoke-c {
  width: 38vw;
  height: 36vh;
  left: 32%;
  top: 8%;
  opacity: 0.32;
  animation: smoke-drift-c 18s ease-in-out infinite;
}

.smoke-d {
  width: 44vw;
  height: 28vh;
  left: 18%;
  bottom: 6%;
  opacity: 0.4;
  animation: smoke-drift-a 28s ease-in-out infinite reverse;
}

.hero-embers {
  z-index: 3;
  width: 100%;
  height: 100%;
}

.hero-grain {
  z-index: 4;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-fade {
  top: auto;
  height: 150px;
  z-index: 7;
  background: linear-gradient(180deg, rgba(11, 13, 14, 0) 0%, rgba(11, 13, 14, 0.42) 52%, #0b0d0e 100%);
}

@keyframes smoke-drift-a {
  0%,
  100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, -8%) scale(1.08); }
}

@keyframes smoke-drift-b {
  0%,
  100% { transform: translate(0, 0) scale(1.05); }
  50% { transform: translate(-8%, -6%) scale(1); }
}

@keyframes smoke-drift-c {
  0%,
  100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, 7%) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .smoke,
  .header-topup-icon {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Footer */
.site-footer {
  height: var(--footer-h);
  background: var(--footer);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 22px;
  font-size: 12px;
  color: #cfcfcf;
  position: relative;
  z-index: 40;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links a:hover {
  color: #fff;
}

.to-top {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #ddd;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.to-top svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Inner pages */
.inner {
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(225, 6, 0, 0.12), transparent 50%),
    #0d0d0d;
}

.card {
  width: min(420px, 100%);
  background: #161616;
  border: 1px solid #2a2a2a;
  padding: 36px 32px 28px;
}

.card h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card p.lead {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 13px;
  margin: 0 0 6px;
  color: #ddd;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  height: 42px;
  background: #101010;
  border: 1px solid #333;
  color: #fff;
  padding: 0 12px;
  margin-bottom: 14px;
  outline: none;
}

input:focus {
  border-color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background: var(--red);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--red-hover);
}

.card .alt {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.card .alt a {
  color: #fff;
  text-decoration: underline;
}

.card-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: -8px 0 8px;
}

.wide-card {
  width: min(860px, 100%);
}

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

.faq details {
  scroll-margin-top: calc(var(--header-h) + 12px);
  background: #141414;
  border: 1px solid #2a2a2a;
  padding: 14px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
}

.faq p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.7;
}

.faq a {
  color: #d4af62;
}

.faq a:focus-visible {
  outline: 2px solid #fff0b0;
  outline-offset: 3px;
}

.download-panel {
  text-align: center;
}

.download-panel h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.download-panel .btn {
  width: auto;
  min-width: 240px;
  padding: 0 28px;
  margin-top: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%) translateY(12px);
  background: #1c1c1c;
  border: 1px solid #3a3a3a;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 80;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1180px) {
  .header-chip span {
    font-size: 12px;
  }

  .header-right {
    gap: 14px;
  }

  .header-social {
    gap: 8px;
  }

  .social-icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 980px) {
  .nav-main,
  .nav-auth span.label,
  body.page-home .header-chip,
  body.page-home .nav-auth a {
    display: none;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav-auth {
    gap: 14px;
  }

  .site-header {
    padding: 0 12px 0 12px;
  }

  .header-left {
    gap: 10px;
    min-width: 0;
  }

  .header-right {
    gap: 10px;
  }

  .brand {
    gap: 8px;
    max-width: calc(100% - 92px);
  }

  body.page-home .brand {
    max-width: min(180px, calc(100% - 240px));
    min-width: 42px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 20px;
    letter-spacing: 0.03em;
  }

  .brand-ep {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .game-nav {
    display: none;
  }

  body.page-home {
    padding-bottom: 0;
  }

  .site-footer {
    gap: 10px;
    font-size: 11px;
    padding: 0 12px;
  }

  .footer-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  body {
    overflow: auto;
    overflow-x: clip;
  }

  .hero {
    min-height: 520px;
  }

  .header-social {
    gap: 6px;
  }

  .social-icon {
    width: 32px;
    height: 32px;
  }

  .social-icon svg {
    width: 14px;
    height: 14px;
  }

  body.page-home .header-social {
    display: none;
  }

  body.page-home .brand {
    max-width: calc(100% - 56px);
    min-width: 42px;
  }

  .copyright {
    display: none;
  }

  .site-footer {
    height: auto;
    min-height: var(--footer-h);
    padding: 10px 12px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-ep {
    letter-spacing: 0.1em;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #111814;
  border-bottom: 1px solid #1f3d2c;
  padding: 10px 0 14px;
  z-index: 49;
  max-height: calc(100vh - var(--header-h));
  overflow: auto;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 20px;
  color: #ddd;
  font-size: 14px;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--neon);
  background: #15241c;
}

.mobile-nav a.is-active {
  box-shadow: inset 3px 0 0 var(--neon);
}

/* Game dock nav */
.game-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 46;
  height: var(--game-nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  background: rgba(8, 9, 11, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}

.game-nav-side {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  min-width: 0;
}

.game-nav-side a {
  position: relative;
  color: #c8c8c8;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px 12px;
  white-space: nowrap;
}

.game-nav-side a:hover,
.game-nav-side a.is-active {
  color: #fff;
}

.game-nav-side a.is-active::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 3px;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(61, 255, 154, 0.7);
}

.play-cta {
  width: 168px;
  height: 118px;
  margin-top: -60px;
  display: grid;
  place-items: end center;
  text-decoration: none;
  filter: drop-shadow(0 0 14px rgba(61, 255, 154, 0.45));
}

.play-cta-shape {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--neon);
  display: grid;
  place-items: center;
  padding-top: 18px;
}

.play-cta-shape span {
  width: calc(100% - 5px);
  height: calc(100% - 3px);
  margin-top: 3px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #141618;
  color: var(--neon);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  text-align: center;
}

.play-cta:hover .play-cta-shape,
.play-cta:focus-visible .play-cta-shape,
.play-cta.is-active .play-cta-shape {
  background: #9cffd0;
}

.play-cta:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 4px;
}

.game-nav-side a:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  color: #fff;
}

/* Page sections */
.site-content {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background-color: #0b0d0e;
}

.site-content-upper {
  background-image: url("../img/ranfinn-content-bg.png");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.site-content-lower {
  --bg2-h: calc(100vw * 1536 / 1024);
  container-type: inline-size;
  overflow-x: clip;
}

@supports (width: 1cqw) {
  .site-content-lower {
    --bg2-h: calc(100cqw * 1536 / 1024);
  }
}

.site-content-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(11, 13, 14, 0.32) 24%,
    rgba(11, 13, 14, 0.58) 50%,
    rgba(11, 13, 14, 0.32) 76%,
    transparent 100%
  );
}

.site-content-bg,
.site-content-bg-blend,
.site-content-fade {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.site-content-bg,
.site-content-bg-blend {
  inset: 0;
  overflow: hidden;
}

.site-content-bg {
  background-image: url("../img/ranfinn-content-bg-02.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: center top;
}

.site-content-bg-blend {
  background-image: repeating-linear-gradient(
    180deg,
    #0b0d0e 0,
    rgba(11, 13, 14, 0.65) 40px,
    transparent 110px,
    transparent calc(var(--bg2-h) - 110px),
    rgba(11, 13, 14, 0.65) calc(var(--bg2-h) - 40px),
    #0b0d0e var(--bg2-h)
  );
}

.site-content-fade {
  left: 0;
  right: 0;
  height: 140px;
}

.site-content-fade-bottom {
  bottom: 0;
  background: linear-gradient(180deg, rgba(11, 13, 14, 0), #0b0d0e);
}

.site-content-fade-top {
  top: 0;
  background: linear-gradient(180deg, #0b0d0e, rgba(11, 13, 14, 0));
}

.seo-intro {
  padding: 48px 24px 8px;
  background: #0b0d0f;
}

.seo-intro .section-wrap {
  width: min(1200px, 100%);
  max-width: 760px;
}

.seo-kicker {
  color: #d7c089;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.seo-intro h1 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #f6f3ea;
}

.seo-intro p {
  color: #c5c8ce;
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

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

.page-section {
  padding: 72px 24px 88px;
  scroll-margin-top: calc(var(--header-h) + 12px);
  background: #0b0d0f;
}

.page-section:nth-of-type(even) {
  background: #101214;
}

body.page-home .page-section,
body.page-home .page-section:nth-of-type(even) {
  position: relative;
  z-index: 1;
  background: transparent;
}

.section-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-kicker {
  color: var(--neon);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-note,
.placeholder-copy {
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
}

.slot-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.slot-card {
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 16, 0.85);
  border-radius: 12px;
  padding: 20px;
  color: #c5ccd2;
}

.slot-card strong {
  display: block;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
}

#download .section-wrap {
  width: min(1160px, 100%);
}

#download {
  --gold: #d4af62;
  --gold-soft: #e4c98a;
  --steel: #c5c8ce;
  --download-box: #111110;
  position: relative;
  z-index: 1;
  overflow-x: clip;
}

.download-head {
  max-width: 720px;
}

.download-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.5;
}

#download h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #f6f3ea;
}

.download-lead {
  color: var(--steel);
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

.download-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--gold);
}

.download-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-icon-box {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(212, 175, 98, 0.32);
  border-radius: 10px;
  background: rgba(212, 175, 98, 0.08);
}

.download-icon-box svg {
  width: 24px;
  height: 24px;
}

.download-icon-alert {
  color: #d4a04a;
}

.download-icon-alert svg circle {
  fill: currentColor;
  stroke: none;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border: 1px solid rgba(212, 175, 98, 0.32);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.download-bar,
.download-sub {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 98, 0.22);
  border-radius: 13px;
  background: var(--download-box);
}

.download-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.download-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/ranfinn-content-bg.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.42;
  filter: saturate(0.4) brightness(1.08) contrast(1.12) sepia(0.42) hue-rotate(-12deg);
}

.download-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 6%, rgba(212, 175, 98, 0.16), transparent 40%),
    linear-gradient(180deg, transparent 40%, rgba(10, 10, 9, 0.42) 74%, rgba(8, 8, 7, 0.9) 100%),
    linear-gradient(90deg, rgba(17, 17, 16, 0.9) 0%, rgba(17, 17, 16, 0.64) 34%, rgba(17, 17, 16, 0.22) 66%, rgba(17, 17, 16, 0.06) 100%);
}

.download-bar .download-bg::before {
  inset: 0;
  background-size: cover;
  background-position: 100% 68%;
  opacity: 0.48;
  filter: saturate(0.16) brightness(1.12) contrast(1.22) grayscale(0.28) sepia(0.12);
}

.download-bar .download-bg::after {
  background:
    radial-gradient(ellipse at 8% 40%, rgba(212, 175, 98, 0.07), transparent 42%),
    linear-gradient(90deg, rgba(17, 17, 16, 0.94) 0%, rgba(17, 17, 16, 0.68) 38%, rgba(17, 17, 16, 0.26) 64%, rgba(17, 17, 16, 0.1) 100%);
}

.download-bar > :not(.download-bg),
.download-sub > :not(.download-bg) {
  position: relative;
  z-index: 1;
}

.download-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 22px;
  padding: 20px 24px;
}

.download-bar-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 260px;
  min-width: 0;
}

.download-bar-text {
  min-width: 0;
}

.download-bar-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 4px;
}

.download-bar h3,
.download-sub h3 {
  margin: 0;
  color: #f4f1ea;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.4;
}

.download-bar p,
.download-sub-copy > p:not(.download-badge) {
  margin: 0;
  color: #c8c4bb;
  font-size: 16px;
  line-height: 1.7;
}

.download-bar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 1.4 1 420px;
  min-width: 0;
}

.download-bar-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px 14px;
  width: 100%;
}

.download-hint {
  margin: 0;
  color: #9a958c;
  font-size: 14px;
  line-height: 1.65;
}

.download-bar .download-hint {
  text-align: right;
}

.download-win {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.download-win img {
  display: block;
  height: 80px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  border-radius: 8px;
  transition: box-shadow 0.2s ease;
}

.download-win-primary img {
  box-shadow: 0 0 0 1px rgba(212, 175, 98, 0.55);
}

.download-win-label {
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.download-win:hover img,
.download-win:focus-visible img {
  box-shadow: 0 0 0 1px rgba(232, 205, 130, 0.9);
}

.download-win:focus-visible {
  outline: 2px solid #fff0b0;
  outline-offset: 3px;
  border-radius: 10px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.download-btn-primary {
  color: #1a1408;
  background: linear-gradient(180deg, #e4c57a 0%, #d4af62 100%);
}

.download-btn-primary:hover,
.download-btn-primary:focus-visible {
  filter: brightness(1.05);
}

.download-btn-ghost,
.download-btn-secondary {
  color: var(--gold-soft);
  background: #111110;
  border-color: rgba(212, 175, 98, 0.55);
}

.download-btn-ghost:hover,
.download-btn-ghost:focus-visible,
.download-btn-secondary:hover,
.download-btn-secondary:focus-visible {
  border-color: rgba(232, 205, 130, 0.85);
  background: rgba(212, 175, 98, 0.08);
}

.download-btn:focus-visible {
  outline: 2px solid #fff0b0;
  outline-offset: 3px;
}

.download-subs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.download-sub {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 22px;
}

.download-sub-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

.download-sub-copy .download-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.download-sub-copy .download-badge {
  margin-bottom: 8px;
}

.download-sub-copy h3 {
  margin-bottom: 8px;
}

.download-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.download-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.download-steps li span {
  padding: 4px 9px;
  border: 1px solid rgba(212, 175, 98, 0.22);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(212, 175, 98, 0.06);
}

.download-steps li:not(:last-child)::after {
  content: "→";
  font-weight: 500;
}

.download-sub-foot {
  display: grid;
  grid-template-rows: minmax(1.4em, auto) auto;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 98, 0.18);
}

.download-sub-foot > .download-btn {
  grid-row: 2;
  width: 100%;
}

.download-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 98, 0.18);
  color: #c8c4bb;
  font-size: 16px;
  line-height: 1.7;
}

.download-note-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--gold);
}

.download-note-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-note-icon svg circle:last-of-type {
  fill: currentColor;
  stroke: none;
}

.download-note-chrome {
  color: var(--gold);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .download-btn,
  .download-win img {
    transition: none;
  }

  .download-btn-primary:hover,
  .download-btn-primary:focus-visible {
    filter: none;
  }
}

@media (max-width: 860px) {
  .download-bar-actions,
  .download-bar-btns {
    align-items: stretch;
    justify-content: stretch;
  }

  .download-bar .download-hint {
    text-align: left;
  }

  .download-win {
    flex: 1 1 200px;
  }

  .download-win img {
    width: 100%;
    max-width: 280px;
    height: auto;
  }
}

@media (max-width: 720px) {
  #download h2 {
    font-size: 30px;
  }

  .download-lead {
    font-size: 16px;
  }

  .download-bar {
    padding: 18px 16px;
  }

  .download-bg::before {
    opacity: 0.34;
  }

  .download-bar .download-bg::before {
    opacity: 0.36;
  }

  .download-bg::after {
    background:
      radial-gradient(ellipse at 10% 6%, rgba(212, 175, 98, 0.14), transparent 38%),
      linear-gradient(180deg, transparent 36%, rgba(10, 10, 9, 0.5) 70%, rgba(8, 8, 7, 0.92) 100%),
      linear-gradient(90deg, rgba(17, 17, 16, 0.86) 0%, rgba(17, 17, 16, 0.52) 42%, rgba(17, 17, 16, 0.18) 100%);
  }

  .download-bar .download-bg::after {
    background:
      radial-gradient(ellipse at 8% 40%, rgba(212, 175, 98, 0.06), transparent 40%),
      linear-gradient(90deg, rgba(17, 17, 16, 0.9) 0%, rgba(17, 17, 16, 0.58) 40%, rgba(17, 17, 16, 0.2) 100%);
  }

  .download-bar-copy {
    align-items: flex-start;
  }

  .download-bar-actions,
  .download-bar-btns {
    width: 100%;
  }

  .download-bar-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .download-win {
    flex: 0 0 auto;
    width: 100%;
  }

  .download-win img {
    width: min(100%, 320px);
    max-width: none;
    height: auto;
    margin: 0 auto;
  }

  .download-subs {
    grid-template-columns: 1fr;
  }

  .download-sub {
    padding: 18px 16px;
  }

  .download-sub-foot {
    grid-template-rows: auto;
  }

  .download-sub-foot > .download-btn {
    grid-row: auto;
  }
}

#news .section-wrap {
  width: min(1200px, 100%);
}

#news {
  --gold: #e6b841;
  --gold-soft: #d7c089;
  --steel: #c5c8ce;
}

.news-head {
  max-width: 720px;
}

.news-kicker {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

#news h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #f6f3ea;
}

.news-lead {
  color: var(--steel);
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

.news-rule {
  display: block;
  width: min(220px, 70%);
  height: 1px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--gold), rgba(230, 184, 65, 0));
}

.news-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  align-items: stretch;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  margin-top: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(12, 13, 14, 0.72);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  cursor: default;
}

.news-slider {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.news-slider-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.news-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.news-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.news-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #000;
}

.news-slider-btn,
.news-slider-dot {
  appearance: none;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.news-slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(230, 184, 65, 0.38);
  border-radius: 50%;
  background: rgba(8, 9, 10, 0.62);
  color: var(--gold);
  cursor: pointer;
  transform: translateY(-50%);
}

.news-slider-prev {
  left: 10px;
}

.news-slider-next {
  right: 10px;
}

.news-slider-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: translateX(-50%);
}

.news-slider-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.news-slider-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.news-slider-dot.is-active::after {
  width: 10px;
  height: 10px;
  background: var(--gold);
}

.news-slider-btn:focus-visible,
.news-slider-dot:focus-visible {
  outline: 2px solid #fff0b0;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .news-slide {
    transition: none;
  }

  .activity-card,
  .activity-card-media img {
    transition: none;
  }

  .activity-card:hover,
  .activity-card:hover img {
    transform: none;
  }
}

.news-feature-copy {
  padding: 32px 32px 28px;
  min-width: 0;
  text-align: left;
}

.news-feature-head {
  margin: 0 0 22px;
}

.news-feature-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.news-feature-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: #d8b66a;
  flex-shrink: 0;
}

.news-feature-copy h3 {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.35em;
  row-gap: 0;
  margin: 0;
  color: #f6f3ea;
  font-size: clamp(30px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.3;
}

.news-feature-line {
  white-space: nowrap;
}

.news-feature-gold {
  color: #d8b66a;
}

.news-feature-sub {
  margin: 10px 0 0;
  color: #c5c8ce;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
}

.news-feature-head::after {
  content: "";
  display: block;
  width: 100px;
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, #d8b66a, rgba(216, 182, 106, 0));
}

.news-body p {
  margin: 0;
  color: #d5d1c8;
  font-size: 16px;
  line-height: 1.7;
}

.news-body p + p {
  margin-top: 14px;
}

.news-activities {
  position: relative;
  margin-top: 72px;
}

.news-activities::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -36px;
  height: 220px;
  background: radial-gradient(ellipse at 50% 0%, rgba(230, 184, 65, 0.16), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.news-activities-head,
.activity-grid {
  position: relative;
  z-index: 1;
}

.news-activities-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.news-activities-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.news-activities-head h2 {
  margin: 0 0 12px;
}

.news-activities-lead {
  margin: 0;
  color: var(--steel);
  font-size: 18px;
  line-height: 1.7;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  overflow-x: clip;
}

.activity-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(230, 184, 65, 0.38);
  border-radius: 16px;
  background: #08090a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  cursor: default;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.activity-card-media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050607;
}

.activity-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.55s ease;
}

.activity-card-tyranny img {
  object-position: 50% 46%;
}

.activity-card-weekly img {
  object-position: 50% 42%;
}

.activity-card-boss img {
  object-position: 52% 38%;
}

.activity-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0) 0%, rgba(8, 9, 10, 0.55) 58%, #08090a 100%);
  pointer-events: none;
}

.activity-card-icon {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(230, 184, 65, 0.42);
  border-radius: 50%;
  background: rgba(8, 9, 10, 0.72);
  color: var(--gold);
}

.activity-card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.activity-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.activity-card-badge {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.activity-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.activity-card-body p:last-child {
  margin: 0;
  color: #c5c8ce;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.activity-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 210, 110, 0.92);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42), 0 0 24px rgba(230, 184, 65, 0.16);
}

.activity-card:hover img {
  transform: scale(1.06);
}

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

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

  .news-slider,
  .news-slider-viewport {
    height: auto;
  }

  .news-slider-viewport {
    aspect-ratio: 16 / 9;
  }

  .news-feature-copy {
    padding: 24px 22px 22px;
  }
}

@media (max-width: 720px) {
  #news h2 {
    font-size: 30px;
  }

  .news-lead,
  .news-activities-lead,
  .news-body p,
  .activity-card-body p:last-child {
    font-size: 16px;
  }

  .news-feature {
    margin-top: 36px;
  }

  .news-activities {
    margin-top: 52px;
  }

  .news-feature-copy,
  .activity-card-body {
    padding: 22px 18px;
  }

  .news-feature-copy h3 {
    font-size: clamp(24px, 7vw, 28px);
  }

  .news-feature-sub {
    font-size: 18px;
  }

  .activity-card h3 {
    font-size: 20px;
  }
}

#server-info .section-wrap {
  width: min(1200px, 100%);
}

#server-info {
  --gold: #d4af62;
  --gold-soft: #e4c98a;
  --steel: #c5c8ce;
  --server-box: #111110;
  --server-ink: #f4f1ea;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.server-info-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.server-info-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/ranfinn-content-bg-02.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: center top;
}

.server-info-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 13, 14, 0.22) 0%,
    transparent 12%,
    transparent 82%,
    rgba(11, 13, 14, 0.55) 100%
  );
}

#server-info > .section-wrap,
#server-info > .server-features {
  position: relative;
  z-index: 1;
}

#server-info .server-head {
  max-width: 720px;
}

.server-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.5;
}

#server-info h2 {
  font-size: clamp(32px, 4.8vw, 56px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #f6f3ea;
}

.server-lead {
  color: var(--steel);
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
}

.server-rule {
  display: block;
  width: min(220px, 70%);
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 175, 98, 0));
}

.server-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.09fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}

.server-level,
.server-jobs {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.server-level,
.server-jobs {
  border: 1px solid rgba(212, 175, 98, 0.28);
  border-radius: 18px;
  background: var(--server-box);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.server-level {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: var(--server-box);
}

.server-level-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.server-level-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/ranfinn-content-bg.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.42;
  filter: saturate(0.4) brightness(1.08) contrast(1.12) sepia(0.42) hue-rotate(-12deg);
}

.server-level-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 6%, rgba(212, 175, 98, 0.16), transparent 40%),
    linear-gradient(180deg, transparent 40%, rgba(10, 10, 9, 0.42) 74%, rgba(8, 8, 7, 0.9) 100%),
    linear-gradient(90deg, rgba(17, 17, 16, 0.9) 0%, rgba(17, 17, 16, 0.64) 34%, rgba(17, 17, 16, 0.22) 66%, rgba(17, 17, 16, 0.06) 100%);
}

.server-level-main,
.server-level-meta {
  position: relative;
  z-index: 1;
}

.server-level-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.server-level-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.5;
}

.server-level-spark {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.server-level-spark svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

.server-level-value {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(88px, 13vw, 188px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fff6d6 0%, #f3d78a 38%, #d4af62 78%, #b48a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 4px rgba(212, 175, 98, 0.42));
}

.server-level-label {
  margin-top: 4px;
  color: var(--gold);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.server-level-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 98, 0.32);
  text-align: left;
}

.server-level-meta div {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 0 20px;
}

.server-level-meta div:first-child {
  padding-left: 0;
  border-right: 0;
  position: relative;
}

.server-level-meta div:first-child::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 42px;
  transform: translateY(-50%);
  background: rgba(212, 175, 98, 0.38);
}

.server-level-meta-icon {
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.server-level-meta-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.server-level-meta div:first-child .server-level-meta-icon svg {
  fill: currentColor;
  stroke: none;
}

.server-level-meta span:not(.server-level-meta-icon) {
  color: #f0ece3;
  font-size: 17px;
  line-height: 1.55;
}

.server-level-meta strong {
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.server-jobs {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 28px 16px;
}

.server-jobs-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.server-jobs-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 4px;
  flex-shrink: 0;
  color: var(--gold);
}

.server-jobs-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.server-jobs h3 {
  margin: 0 0 6px;
  color: var(--server-ink);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.4;
}

.server-jobs-lead {
  margin: 0;
  color: var(--steel);
  font-size: 17px;
  line-height: 1.7;
}

.server-job-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 0;
  padding: 0;
}

.server-job-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  aspect-ratio: 1.3 / 1;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 98, 0.28);
  border-radius: 10px;
  background: #0c0c0b;
  color: inherit;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.server-job-media {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #0a0a0b;
}

.server-job-media img {
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
  object-position: center;
  display: block;
  image-rendering: auto;
  transition: transform 0.35s ease;
}

.server-job-name {
  display: grid;
  place-items: center;
  min-height: 36px;
  height: 36px;
  padding: 0 6px;
  color: var(--server-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  background: #080808;
}

.server-job-card:hover,
.server-job-card:focus-visible {
  border-color: rgba(232, 205, 130, 0.82);
  box-shadow: 0 0 14px rgba(212, 175, 98, 0.18);
}

.server-job-card.is-active {
  border-color: #e8c882;
  box-shadow: 0 0 0 1px rgba(232, 205, 130, 0.35), 0 0 16px rgba(212, 175, 98, 0.28);
}

.server-job-card:hover img,
.server-job-card:focus-visible img {
  transform: scale(1.06);
}

.server-job-card:focus-visible {
  outline: 2px solid #fff0b0;
  outline-offset: 3px;
}

.server-jobs-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 10px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  width: fit-content;
  transition: color 0.18s ease, transform 0.18s ease;
}

.server-jobs-link:hover {
  color: #fff0b0;
  transform: translateX(4px);
}

.server-jobs-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.server-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 0;
  min-height: 72px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 98, 0.28);
  border-radius: 18px;
  background: var(--server-box);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.server-strip li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 0 20px;
  color: var(--server-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.server-strip li + li {
  border-left: 0;
}

.server-strip li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 36px;
  transform: translateY(-50%);
  background: rgba(212, 175, 98, 0.38);
}

.server-strip-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--gold);
}

.server-strip-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.server-features {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding: 8px 0 0;
}

.server-features .section-wrap,
.server-features-head,
.feature-top,
.feature-assist {
  position: relative;
  z-index: 1;
}

.server-features-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.feature-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 400px;
}

.feature-top-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  min-height: 0;
}

.feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  border: 1px solid rgba(212, 175, 98, 0.32);
  border-radius: 16px;
  background: #111110;
  color: inherit;
  cursor: default;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.feature-card:hover {
  border-color: rgba(232, 205, 130, 0.72);
  box-shadow: 0 0 16px rgba(212, 175, 98, 0.14);
}

.feature-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #111110;
  background-size: cover;
  background-repeat: no-repeat;
}

.feature-card-boss .feature-card-media,
.feature-card-economy .feature-card-media,
.feature-card-burn .feature-card-media {
  background-image: none;
}

.feature-card-boss .feature-card-media::before,
.feature-card-economy .feature-card-media::before,
.feature-card-burn .feature-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: cover;
  background-repeat: no-repeat;
}

.feature-card-boss .feature-card-media::before {
  background-image: url("../ranfinn-boss-feature.png?v=1");
  background-position: 78% center;
  filter: brightness(0.64) saturate(0.78) contrast(1.06);
}

.feature-card-economy .feature-card-media::before {
  background-image: url("../ranfinn-economy.png?v=1");
  background-position: right center;
  filter: brightness(0.5) saturate(0.68) contrast(1.1);
}

.feature-card-burn .feature-card-media::before {
  background-image: url("../ranfinn-burn.png?v=1");
  background-position: 86% center;
  filter: brightness(0.58) saturate(0.74) contrast(1.06);
}

.feature-card-boss .feature-card-media::after,
.feature-card-economy .feature-card-media::after,
.feature-card-burn .feature-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 17, 16, 0.82) 0%, rgba(17, 17, 16, 0.4) 34%, rgba(17, 17, 16, 0.12) 60%, rgba(11, 13, 14, 0.28) 100%),
    linear-gradient(180deg, rgba(9, 11, 11, 0.12) 0%, transparent 48%, rgba(9, 11, 11, 0.22) 100%);
}

.feature-card-f5 .feature-card-media {
  background-image: url("../ranfinn-auto-skill-f5.png?v=1");
  background-position: right center;
}

.feature-card-f6 .feature-card-media {
  background-image: url("../ranfinn-auto-potion-f6.png?v=1");
  background-position: right center;
}

.feature-card-copy {
  position: relative;
  z-index: 1;
  max-width: min(32ch, 58%);
  padding: 28px 32px;
}

.feature-card-boss .feature-card-copy {
  max-width: min(38ch, 54%);
}

.feature-card-economy .feature-card-copy,
.feature-card-burn .feature-card-copy {
  max-width: min(28ch, 56%);
}

.feature-card-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: #d4af62;
}

.feature-card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin: 0 0 10px;
  color: #f4f1ea;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.45;
}

.feature-card p {
  margin: 0;
  color: #c8c4bb;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
}

.feature-assist {
  margin-top: 24px;
}

.feature-assist-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  color: #d4af62;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

.feature-assist-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 98, 0.7), rgba(212, 175, 98, 0));
}

.feature-assist-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.feature-card-key {
  aspect-ratio: 2.5 / 1;
}

.feature-card-key .feature-card-copy {
  max-width: min(34ch, 52%);
}

@media (prefers-reduced-motion: reduce) {
  .server-jobs-link,
  .server-job-card,
  .server-job-media img,
  .feature-card {
    transition: none;
  }

  .server-jobs-link:hover,
  .server-job-card:hover img,
  .server-job-card:focus-visible img {
    transform: none;
  }
}

@media (max-width: 980px) {
  .server-hero,
  .feature-top {
    grid-template-columns: 1fr;
  }

  .feature-top {
    min-height: 0;
  }

  .feature-top-side {
    grid-template-rows: none;
    gap: 18px;
  }

  .feature-card-boss {
    min-height: 280px;
  }

  .feature-card-economy,
  .feature-card-burn {
    min-height: 180px;
  }

  .feature-card-boss .feature-card-copy,
  .feature-card-key .feature-card-copy {
    max-width: min(42ch, 62%);
  }
}

@media (max-width: 720px) {
  #server-info h2 {
    font-size: 30px;
  }

  .server-lead,
  .server-jobs-lead,
  .feature-card p {
    font-size: 16px;
  }

  .server-hero {
    margin-top: 40px;
  }

  .server-features {
    margin-top: 40px;
    padding: 8px 0 0;
  }

  .server-level,
  .server-jobs {
    min-height: 0;
    padding: 24px 20px;
  }

  .server-level-bg::before {
    opacity: 0.34;
  }

  .server-level-bg::after {
    background:
      radial-gradient(ellipse at 10% 6%, rgba(212, 175, 98, 0.14), transparent 38%),
      linear-gradient(180deg, transparent 36%, rgba(10, 10, 9, 0.5) 70%, rgba(8, 8, 7, 0.92) 100%),
      linear-gradient(90deg, rgba(17, 17, 16, 0.86) 0%, rgba(17, 17, 16, 0.52) 42%, rgba(17, 17, 16, 0.18) 100%);
  }

  .server-level-value {
    font-size: clamp(72px, 18vw, 120px);
  }

  .feature-assist-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-copy {
    max-width: none;
    padding: 22px 22px 20px;
  }

  .feature-card-boss .feature-card-copy,
  .feature-card-key .feature-card-copy {
    max-width: none;
  }

  .feature-card-key {
    aspect-ratio: auto;
    display: grid;
    grid-template-rows: auto minmax(168px, 38vw);
  }

  .feature-card-key .feature-card-media {
    position: relative;
    inset: auto;
    grid-row: 2;
    min-height: 168px;
    background-position: right center;
    background-size: auto 108%;
  }

  .feature-card-key .feature-card-copy {
    grid-row: 1;
  }

  .feature-card h3 {
    font-size: 22px;
  }

  .server-level-meta strong {
    font-size: 32px;
  }

  .server-job-grid {
    grid-template-columns: 1fr 1fr;
  }

  .server-job-name {
    font-size: 16px;
  }

  .server-strip {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .server-strip li {
    justify-content: flex-start;
    text-align: left;
    min-height: 56px;
    padding: 14px 20px;
    font-size: 16px;
  }

  .server-strip li + li::before {
    left: 20px;
    right: 20px;
    top: 0;
    width: auto;
    height: 1px;
    transform: none;
  }
}

/* Requirements */
#requirements {
  --gold: #d4af62;
  --gold-soft: #e4c98a;
  --steel: #c5c8ce;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

#requirements.page-section {
  padding: 52px 24px 60px;
}

.req-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.req-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../ranfinn-features-bg.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.req-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 13, 14, 0.72) 0%, rgba(11, 13, 14, 0.38) 26%, rgba(11, 13, 14, 0.1) 48%, transparent 70%),
    linear-gradient(180deg, rgba(11, 13, 14, 0.58) 0%, transparent 20%, transparent 80%, rgba(11, 13, 14, 0.68) 100%);
}

#requirements .section-wrap {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
}

.req-head {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.req-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.5;
}

#requirements h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #f6f3ea;
}

.req-lead {
  margin: 0;
  color: var(--steel);
  font-size: 16px;
  line-height: 1.55;
}

.req-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
}

.req-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 90px;
  padding: 16px 18px;
  border: 1px solid rgba(212, 175, 98, 0.28);
  border-radius: 12px;
  background: rgba(17, 17, 16, 0.94);
  color: inherit;
  cursor: default;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.req-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 64px;
  pointer-events: none;
  background: radial-gradient(ellipse at 100% 0%, rgba(212, 175, 98, 0.16), transparent 72%);
}

.req-card:hover {
  border-color: rgba(212, 175, 98, 0.52);
}

.req-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 175, 98, 0.32);
  border-radius: 10px;
  background: rgba(212, 175, 98, 0.08);
  color: var(--gold);
}

.req-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.req-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-right: 52px;
}

.req-label {
  margin: 0 0 4px;
  color: #b8b4ab;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.req-value {
  margin: 0;
  color: #f4f1ea;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.req-mark {
  position: absolute;
  right: 10px;
  top: 50%;
  z-index: 0;
  width: 72px;
  height: 72px;
  color: var(--gold);
  opacity: 0.07;
  transform: translateY(-50%);
  pointer-events: none;
}

.req-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

@media (max-width: 720px) {
  #requirements.page-section {
    padding: 44px 16px 52px;
  }

  #requirements h2 {
    font-size: 28px;
  }

  .req-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .req-card {
    min-height: 0;
    padding: 16px;
  }

  .req-copy {
    padding-right: 40px;
  }

  .req-value {
    font-size: 16px;
  }

  .req-mark {
    width: 52px;
    height: 52px;
    right: 8px;
    opacity: 0.045;
  }
}

/* Contact */
#line-official {
  --gold: #d4af62;
  --gold-soft: #e4c98a;
  --steel: #c5c8ce;
  --line: #06c755;
  position: relative;
  isolation: isolate;
}

body.page-home #line-official.page-section {
  background: #090b0b;
  padding: 52px 24px 60px;
}

#line-official .section-wrap {
  width: min(1160px, 100%);
}

.contact-head {
  max-width: 720px;
}

.contact-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.6;
}

#line-official h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #f6f3ea;
}

.contact-lead {
  margin: 0;
  color: var(--steel);
  font-size: 16px;
  line-height: 1.6;
}

.contact-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  column-gap: 32px;
  align-items: stretch;
  margin-top: 24px;
  padding: 30px;
  border: 1px solid rgba(212, 175, 98, 0.28);
  border-radius: 16px;
  background: #111110;
  box-sizing: border-box;
}

.contact-main {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-main-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.contact-main-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../ranfinn-features-bg.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.contact-main-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(17, 17, 16, 0.88) 0%, rgba(17, 17, 16, 0.62) 48%, rgba(17, 17, 16, 0.28) 100%);
}

.contact-main > :not(.contact-main-scene) {
  position: relative;
  z-index: 1;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border: 1px solid rgba(212, 175, 98, 0.32);
  border-radius: 10px;
  background: rgba(212, 175, 98, 0.08);
  color: var(--gold);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-main h3 {
  margin: 0 0 8px;
  color: #f6f3ea;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-copy {
  margin: 0;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px;
  width: 100%;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  box-sizing: border-box;
  transition: filter 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.contact-btn-line {
  color: #fff;
  background: var(--line);
  border: 1px solid #06c755;
}

.contact-btn-line:hover {
  filter: brightness(1.06);
}

.contact-btn-fb {
  color: #fff;
  background: #0c0c0b;
  border: 1px solid rgba(196, 186, 162, 0.42);
}

.contact-btn-fb:hover {
  border-color: rgba(212, 175, 98, 0.62);
  background: #141412;
}

.contact-hint {
  margin: 0;
  color: #9b978e;
  font-size: 13px;
  line-height: 1.6;
}

.contact-qr {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.contact-qr::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(212, 175, 98, 0.28);
  pointer-events: none;
}

.contact-qr-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.contact-qr-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
}

.contact-qr-frame img {
  display: block;
  width: 168px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.contact-qr-caption {
  margin: 12px 0 6px;
  color: #e8e4da;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.contact-qr-open {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
}

.contact-qr-open:hover {
  color: var(--gold-soft);
}

#line-official a:focus-visible {
  outline: 2px solid #fff0b0;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-btn,
  .contact-qr-open {
    transition: none;
  }
}

@media (max-width: 800px) {
  .contact-card {
    grid-template-columns: 1fr;
    row-gap: 0;
    column-gap: 0;
    padding: 24px;
  }

  .contact-qr {
    margin-top: 22px;
    padding: 22px 0 0;
  }

  .contact-qr::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

@media (max-width: 720px) {
  body.page-home #line-official.page-section {
    padding: 44px 16px 52px;
  }

  #line-official h2 {
    font-size: 28px;
  }

  .contact-lead {
    font-size: 15px;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-btn {
    width: 100%;
  }
}

/* Classes */
#classes {
  --gold: #d4af62;
  --gold-soft: #e4c98a;
}

#classes .section-kicker {
  color: var(--gold);
}

#classes .section-wrap {
  width: min(1160px, 100%);
}

.class-shell {
  margin-top: 28px;
}

.class-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin-bottom: 12px;
}

.class-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(12, 12, 11, 0.72);
  color: #c8c4bb;
  padding: 10px 8px;
  cursor: pointer;
  min-height: 72px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.class-tab img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  pointer-events: none;
}

.class-tab .th {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}

.class-tab[aria-selected="true"] {
  color: var(--gold-soft);
  background: rgba(212, 175, 98, 0.1);
  border-color: rgba(212, 175, 98, 0.82);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 98, 0.35);
}

.class-tab:hover {
  border-color: rgba(212, 175, 98, 0.45);
  color: #f4f1ea;
}

.class-tab:focus-visible {
  outline: 2px solid #fff0b0;
  outline-offset: 2px;
  z-index: 1;
}

.class-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  align-items: stretch;
  height: 400px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 98, 0.22);
  border-radius: 13px;
  background:
    radial-gradient(ellipse at 68% 42%, rgba(212, 175, 98, 0.14), transparent 46%),
    #0a0a09;
  transition: opacity 0.22s ease;
}

.class-panel.is-switching {
  opacity: 0;
}

.class-copy {
  min-width: 0;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.class-copy h3 {
  margin: 0 0 4px;
  color: #f6f3ea;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
}

.class-en {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Oswald, "Prompt", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.class-blurb {
  margin: 0 0 16px;
  color: #c8c4bb;
  font-size: 15px;
  line-height: 1.65;
}

.class-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.class-points li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid rgba(212, 175, 98, 0.16);
}

.class-points li:last-child {
  padding-bottom: 0;
}

.class-points strong {
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.class-points span {
  color: #d0d5da;
  font-size: 14px;
  line-height: 1.55;
}

.class-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.class-figure img {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  transform: scale(1.5);
  transform-origin: 90% 10%;
}

.class-figure[data-class="archer"] img { transform: scale(1.52); transform-origin: 88% 16%; }
.class-figure[data-class="swordman"] img { transform: scale(1.48); transform-origin: 90% 6%; }
.class-figure[data-class="shaman"] img { transform: scale(1.5); transform-origin: 90% 12%; }
.class-figure[data-class="scientist"] img { transform: scale(1.5); transform-origin: 88% 8%; }
.class-figure[data-class="brawler"] img { transform: scale(1.48); transform-origin: 90% 8%; }
.class-figure[data-class="assassin"] img { transform: scale(1.52); transform-origin: 90% 4%; }

.class-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, #0a0a09 0%, rgba(10, 10, 9, 0.94) 16%, rgba(10, 10, 9, 0.25) 34%, transparent 50%);
}

.class-glow,
.class-emblem {
  position: absolute;
  pointer-events: none;
}

.class-glow {
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 62% 40%, rgba(212, 175, 98, 0.32), transparent 48%),
    linear-gradient(90deg, rgba(10, 10, 9, 0.5) 0%, transparent 22%);
  mix-blend-mode: screen;
}

.class-emblem {
  z-index: 2;
  right: 7%;
  top: 50%;
  width: min(240px, 48%);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.18;
  filter: grayscale(0.15) sepia(0.8) saturate(0.9) hue-rotate(-12deg) brightness(1.35);
  mix-blend-mode: screen;
}

.class-placeholder {
  color: #8b969e;
  text-align: center;
  padding: 48px 20px;
  line-height: 1.6;
  background: #000;
}

@media (prefers-reduced-motion: reduce) {
  .class-panel {
    transition: none;
  }
}

@media (max-width: 980px) {
  .class-panel {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .class-figure {
    order: 1;
    height: 340px;
  }

  .class-copy {
    order: 2;
    padding: 22px 20px 24px;
  }

  .class-copy h3 {
    font-size: 28px;
  }

  .class-glow {
    background:
      radial-gradient(ellipse at 50% 40%, rgba(212, 175, 98, 0.2), transparent 55%),
      linear-gradient(180deg, transparent 70%, rgba(10, 10, 9, 0.45) 100%);
  }
}

@media (max-width: 980px) {
  .game-nav {
    display: none;
  }

  body.page-home {
    padding-bottom: 0;
  }

  .hero {
    min-height: 480px;
  }
}

@media (max-width: 720px) {
  .page-section {
    padding: 56px 16px 72px;
  }

  .page-section h2 {
    font-size: 26px;
  }

  .site-content,
  .site-content-upper,
  .site-content-lower {
    overflow-x: clip;
    max-width: 100%;
  }

  .site-content-upper {
    background-size: 100% auto;
    background-position: center top;
  }

  .site-content-bg {
    background-size: 100% auto;
    background-position: center top;
  }

  .site-content-fade {
    height: 96px;
  }

  .site-content-overlay {
    background: linear-gradient(
      90deg,
      rgba(11, 13, 14, 0.12) 0%,
      rgba(11, 13, 14, 0.62) 16%,
      rgba(11, 13, 14, 0.78) 50%,
      rgba(11, 13, 14, 0.62) 84%,
      rgba(11, 13, 14, 0.12) 100%
    );
  }

  .hero-fade {
    height: 110px;
  }

  .class-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .class-tab {
    min-height: 78px;
    padding: 10px 6px;
  }

  .class-tab img {
    width: 36px;
    height: 36px;
  }

  .class-tab .th {
    font-size: 12px;
  }

  .class-figure {
    height: 260px;
  }

  .class-points li {
    grid-template-columns: 70px minmax(0, 1fr);
  }
}
