:root {
  color-scheme: dark;
  --bg: #0f1117;
  --bg-elevated: #171b24;
  --panel: #1c2130;
  --text: #eef1f6;
  --muted: #9aa3b2;
  --accent: #c9a24d;
  --accent-soft: rgba(201, 162, 77, 0.14);
  --line: #2a3140;
  --ok: #6ecf8d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 162, 77, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(90, 120, 200, 0.06) 0%, transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(15, 17, 23, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.page-wrap,
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-studio {
  padding-top: 56px;
}

.hero-game {
  padding-top: 20px;
}

.game-icon {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.hero-banner {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center 35%;
}

.game-list {
  display: grid;
  gap: 16px;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 77, 0.45);
}

.game-card-icon {
  width: 192px;
  height: 192px;
  border-radius: 28px;
  flex-shrink: 0;
}

.game-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  color: var(--text);
}

.game-card-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.game-card-link {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

.screenshot-grid {
  display: grid;
  gap: 16px;
}

.screenshot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  padding: 72px 0 48px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #111;
}

.button-secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

.section {
  padding: 28px 0 56px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.section-intro {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 640px;
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 22px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-panel {
  margin-top: 8px;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201, 162, 77, 0.12) 0%, rgba(28, 33, 48, 0.9) 55%);
  border: 1px solid var(--line);
}

.cta-panel h2 {
  margin-top: 0;
}

.cta-panel p {
  color: var(--muted);
  margin: 0 0 18px;
}

.prose {
  padding: 40px 0 64px;
}

.prose h1 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.prose .meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose h2 {
  margin: 32px 0 10px;
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: #d5dbe6;
}

.prose ul {
  padding-left: 1.2rem;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
}

.contact-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.reset-page {
  max-width: 520px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.reset-status {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.reset-status-info {
  color: var(--muted);
}

.reset-status-ok {
  color: var(--ok);
  border-color: rgba(110, 207, 141, 0.35);
}

.reset-status-error {
  color: #f0a0a0;
  border-color: rgba(240, 160, 160, 0.35);
}

.reset-form {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.reset-field {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.reset-field span {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
}

.reset-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
  text-align: center;
}

.reset-field input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.reset-form .button {
  justify-self: center;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 14px 28px;
  min-width: 220px;
}

.reset-form .button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.site-footer {
  padding-top: 28px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero-centered {
  text-align: center;
}

.hero-centered .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-centered .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.hero-centered.hero-game {
  padding-top: 16px;
  padding-bottom: 24px;
}

.game-eyebrow {
  font-size: 2.25rem;
  padding: 0;
  margin-bottom: 20px;
  background: none;
  border-radius: 0;
  letter-spacing: 0.06em;
}

.hero-game-icon {
  display: block;
  margin: 0 auto 28px;
  width: 206px;
  height: 206px;
  border-radius: 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.screenshots-section {
  text-align: center;
}

.screenshots-section .screenshot-grid {
  text-align: left;
  margin-top: 8px;
}

.class-scroll-section {
  padding-top: 14px;
  padding-bottom: 28px;
  text-align: center;
}

.class-scroll-section .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.class-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  text-align: left;
}

.class-scroll::-webkit-scrollbar {
  height: 8px;
}

.class-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.class-tile {
  flex: 0 0 auto;
  width: 158px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.class-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 77, 0.45);
}

.class-tile img {
  width: 115px;
  height: 115px;
  border-radius: 18px;
  object-fit: contain;
  object-position: center top;
  background: #12151c;
}

.class-tile span {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.class-name-title {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.class-hero {
  display: flex;
  justify-content: center;
  margin: 0 0 36px;
}

.class-detail-icon {
  width: 280px;
  height: 280px;
  border-radius: 20px;
  object-fit: contain;
  object-position: center top;
  background: var(--panel);
  border: 1px solid var(--line);
  flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.class-info-text {
  margin: 0;
  color: #d5dbe6;
  font-size: 1.08rem;
  line-height: 1.55;
  white-space: pre-line;
}

.class-block {
  margin: 0 0 36px;
}

.class-block h2 {
  margin: 0 0 14px;
}

.about-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.about-game-icon {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 132px;
  height: 132px;
  border-radius: 24px;
}

.about-intro {
  margin-bottom: 0;
}

.about-section {
  text-align: center;
  padding-top: 20px;
}

.about-section .about-intro {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 28px;
  align-items: start;
  margin-top: 28px;
  text-align: left;
}

.about-points-divider {
  width: 1px;
  align-self: stretch;
  background: var(--line);
  min-height: 100%;
}

.about-point {
  padding: 0;
  text-align: center;
}

.about-point h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #ffa91e;
}

.about-point p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.about-closing {
  margin: 28px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.55;
}

.store-section {
  text-align: center;
  padding-top: 12px;
}

.store-section h2 {
  margin-bottom: 20px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 760px;
  margin: 0 auto;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 77, 0.45);
}

.store-badge img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.class-detail {
  padding-bottom: 64px;
}

.game-title {
  color: #ffa91e;
  font-weight: 700;
}

.class-detail #class-name.game-title {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.passive-skill {
  margin: 0 0 8px;
}

.class-detail h2.game-title {
  color: #ffa91e;
  font-weight: 700;
}

.spell-body .game-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.info-highlight {
  color: #f2d046;
  font-weight: 700;
}

.info-highlight-number {
  font-size: 1.12em;
}

.class-detail #class-info,
.class-detail #passive-skill-info,
.class-detail #class-lore,
.spell-body p {
  white-space: pre-line;
}

.spell-list {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.spell-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.spell-icon {
  width: 108px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.spell-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.spell-body p {
  margin: 0 0 8px;
}

.spell-mana {
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 52px;
  }

  .hero-studio {
    padding-top: 40px;
  }

  .game-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-header,
  .class-hero,
  .spell-card {
    flex-direction: column;
  }

  .about-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-points-divider {
    width: 100%;
    height: 1px;
    min-height: 1px;
  }

  .class-detail-icon {
    width: min(100%, 280px);
    height: auto;
    aspect-ratio: 1;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}
