@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Exo+2:wght@500;700;800&display=swap');

:root {
  --bg: #f3f6fb;
  --white: #ffffff;
  --ink: #1a2232;
  --ink-soft: #57607a;
  --dark: #1f2b42;
  --dark-2: #172034;
  --line: #dbe2ee;
  --accent: #f3b21d;
  --accent-2: #ffd978;
  --success: #24a86d;
  --danger: #cf4f53;
  --radius: 16px;
  --shadow: 0 24px 45px rgba(27, 41, 66, 0.11);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Barlow', sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(243, 247, 255, 0.92), rgba(237, 242, 252, 0.94)),
    radial-gradient(circle at 15% -10%, rgba(243, 178, 29, 0.2), transparent 30%),
    radial-gradient(circle at 88% -25%, rgba(63, 94, 175, 0.16), transparent 40%),
    url('../img/background.jpg') center / cover fixed no-repeat;
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

.flame-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  filter: saturate(1.12);
}

.flame-background::before,
.flame-background::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.flame-background::before {
  left: 50%;
  bottom: -180px;
  width: min(760px, 82vw);
  height: 520px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 52% 78%, rgba(255, 219, 127, 0.42), rgba(255, 135, 48, 0.25) 34%, rgba(255, 72, 24, 0.08) 58%, transparent 76%),
    radial-gradient(circle at 48% 84%, rgba(255, 245, 190, 0.28), transparent 54%);
  filter: blur(6px);
  animation: flameGlowPulse 5.5s ease-in-out infinite;
}

.flame-background::after {
  left: -20%;
  right: -20%;
  bottom: -16%;
  height: 55%;
  background:
    radial-gradient(circle at 18% 100%, rgba(255, 168, 66, 0.07), transparent 44%),
    radial-gradient(circle at 82% 100%, rgba(255, 128, 45, 0.08), transparent 46%);
  filter: blur(9px);
  animation: hazeDrift 16s linear infinite;
}

.flame-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 96%, rgba(255, 186, 85, 0.12), transparent 37%),
    radial-gradient(circle at 46% 90%, rgba(255, 110, 41, 0.08), transparent 32%),
    radial-gradient(circle at 52% 88%, rgba(255, 224, 140, 0.08), transparent 34%);
  filter: blur(8px);
  animation: hazeDrift 13s linear infinite reverse;
}

.flame-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mix-blend-mode: screen;
}

.flame-particle {
  position: absolute;
  left: calc(var(--x, 50) * 1%);
  bottom: -12vh;
  width: var(--size, 8px);
  height: var(--size, 8px);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 35%, rgba(255, 252, 228, 0.98) 0%, hsla(var(--hue, 35), 100%, 64%, 0.96) 38%, hsla(calc(var(--hue, 35) + 8), 98%, 50%, 0.3) 70%, transparent 100%);
  box-shadow:
    0 0 var(--glow-1, 14px) hsla(var(--hue, 35), 100%, 56%, 0.5),
    0 0 var(--glow-2, 22px) hsla(calc(var(--hue, 35) + 8), 100%, 56%, 0.24);
  filter: blur(var(--blur, 0px));
  transform: translate3d(0, 0, 0) scale(0.42);
  opacity: 0;
  animation:
    emberFloat var(--duration, 9s) linear infinite,
    emberPulse var(--twinkle, 2.6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

.flame-particle.spark {
  width: var(--spark-w, 2px);
  height: var(--spark-h, 26px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 250, 214, 0.95) 0%, hsla(var(--hue, 32), 100%, 63%, 0.78) 38%, hsla(calc(var(--hue, 32) + 6), 98%, 52%, 0.14) 84%, transparent 100%);
  box-shadow:
    0 0 var(--glow-1, 12px) hsla(var(--hue, 32), 100%, 58%, 0.45),
    0 0 var(--glow-2, 20px) hsla(calc(var(--hue, 32) + 8), 100%, 56%, 0.18);
  filter: blur(var(--blur, 0px)) saturate(1.16);
  animation:
    sparkFloat var(--duration, 4.8s) linear infinite,
    emberPulse var(--twinkle, 1.4s) ease-in-out infinite;
}

.flame-particle::after {
  content: '';
  position: absolute;
  inset: 24% 24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 246, 0.9), transparent 72%);
  opacity: 0.65;
}

.flame-particle.spark::after {
  inset: 7% 26% 48% 26%;
  border-radius: 999px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(243, 178, 29, 0.74);
  outline-offset: 2px;
}

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

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: 'Exo 2', sans-serif;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

.container {
  width: min(1150px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.section {
  padding: 4.8rem 0;
}

.section-head {
  max-width: 700px;
  margin-bottom: 2.2rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.kicker::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.lead {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 12px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
  padding: 0.88rem 1.25rem;
  min-height: 44px;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #191f2d;
  background: linear-gradient(120deg, var(--accent), #ffc95a);
  box-shadow: 0 12px 22px rgba(243, 178, 29, 0.32);
}

.btn-ghost {
  color: #23314c;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(31, 43, 66, 0.35);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.hero-left .btn-ghost,
.page-hero .btn-ghost,
.game-shell .btn-ghost,
.cookie-banner .btn-ghost,
.dark-band .btn-ghost {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
}

.hero-left .btn-ghost:hover,
.page-hero .btn-ghost:hover,
.game-shell .btn-ghost:hover,
.cookie-banner .btn-ghost:hover,
.dark-band .btn-ghost:hover,
.hero-left .btn-ghost:focus-visible,
.page-hero .btn-ghost:focus-visible,
.game-shell .btn-ghost:focus-visible,
.cookie-banner .btn-ghost:focus-visible,
.dark-band .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.top-strip {
  background: #121a2a;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
}

.top-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 0.9rem;
}

.badges {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.badge {
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.badge-warning {
  background: rgba(243, 178, 29, 0.18);
  border-color: rgba(243, 178, 29, 0.74);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(219, 226, 238, 0.8);
}

.site-header .container {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1.2rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff url('../img/logo.png') center / cover no-repeat;
  box-shadow: 0 6px 14px rgba(27, 39, 59, 0.22);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.nav a {
  font-size: 0.94rem;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
  border-color: var(--accent);
}

.hero-left .kicker,
.page-hero .kicker,
.dark-band .kicker {
  color: rgba(255, 255, 255, 0.78);
}

.hero-split {
  padding: 2.3rem 0 3.2rem;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-left {
  background: linear-gradient(130deg, #27344f, #1b2439 75%);
  color: rgba(255, 255, 255, 0.95);
  padding: 3.2rem 3rem;
  position: relative;
  isolation: isolate;
}

.hero-left::before,
.hero-left::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  animation: floatShape 11s ease-in-out infinite;
}

.hero-left::before {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(243, 178, 29, 0.25), transparent 70%);
  top: -70px;
  left: -60px;
}

.hero-left::after {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(145, 177, 255, 0.2), transparent 68%);
  right: 20px;
  bottom: 30px;
  animation-delay: 2.4s;
}

.hero-copy {
  max-width: 510px;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  margin-bottom: 1.1rem;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-token {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin-top: 2rem;
  background: radial-gradient(circle at 30% 30%, #fff5ce, #f2b51f 60%, #be7b00 100%);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.25), inset 0 0 0 18px rgba(26, 34, 50, 0.16), 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: tokenSpin 9s linear infinite;
}

.hero-token::before {
  content: '18+';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #202b40;
  font-size: 2.2rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 800;
}

.hero-right {
  background: linear-gradient(160deg, #d9dee8 10%, #f0f3f9 45%, #e7edf7 100%);
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

.hero-scene {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.4) 0 23%, transparent 24% 100%),
    repeating-linear-gradient(90deg, rgba(18, 26, 42, 0.04) 0 36px, rgba(18, 26, 42, 0.01) 36px 72px);
}

.hero-scene.hero-main-image {
  background:
    linear-gradient(125deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 42%, rgba(0, 0, 0, 0.5) 100%),
    url('../img/main.jpg')
}

.hero-card {
  position: absolute;
  right: 1.8rem;
  top: 2rem;
  width: min(330px, calc(100% - 3.6rem));
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 226, 238, 0.9);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 16px 32px rgba(28, 39, 61, 0.16);
  animation: floatCard 6.5s ease-in-out infinite;
}

.hero-card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.45rem;
}

.hero-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.hero-lights {
  position: absolute;
  left: 2.2rem;
  bottom: 2.3rem;
  display: grid;
  gap: 0.58rem;
}

.hero-lights span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-lights span::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(243, 178, 29, 0.25);
  animation: pulse 2.8s ease-in-out infinite;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 14px 28px rgba(28, 40, 60, 0.07);
  color: var(--ink);
}

.feature-card {
  min-height: 170px;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: auto -35px -45px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 178, 29, 0.26), transparent 70%);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--ink-soft);
}

.step-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.step-line::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 56px;
  height: 2px;
  background: linear-gradient(90deg, rgba(219, 226, 238, 0.2), var(--line) 20%, var(--line) 80%, rgba(219, 226, 238, 0.2));
}

.step {
  text-align: center;
  padding: 1rem;
  position: relative;
}

.step .num {
  font-size: clamp(2.1rem, 4vw, 4rem);
  color: rgba(28, 37, 56, 0.16);
  font-family: 'Exo 2', sans-serif;
  margin-bottom: 0.45rem;
}

.step .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(243, 178, 29, 0.26);
}

.step h3 {
  margin-bottom: 0.55rem;
}

.step p {
  color: var(--ink-soft);
}

.dark-band {
  background: linear-gradient(120deg, var(--dark), #202a3e 35%, var(--dark-2) 100%);
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  overflow: hidden;
}

.dark-band::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 178, 29, 0.24), transparent 70%);
  right: -100px;
  top: -80px;
}

.dark-band .section-head .lead,
.dark-band .section-head p {
  color: rgba(255, 255, 255, 0.8);
}

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

.stat-box {
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  backdrop-filter: blur(2px);
}

.stat-box strong {
  display: block;
  font-size: clamp(1.8rem, 4.3vw, 2.8rem);
  color: var(--white);
  font-family: 'Exo 2', sans-serif;
}

.stat-box span {
  color: rgba(255, 255, 255, 0.75);
}

.page-hero {
  padding: 3.4rem 0 2.7rem;
}

.page-hero .box {
  background: linear-gradient(130deg, #202c43, #1d2537 60%, #151f31);
  color: var(--white);
  border-radius: 24px;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}

.page-hero .box::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 178, 29, 0.3), transparent 70%);
  right: -80px;
  top: -60px;
}

.page-hero p {
  max-width: 760px;
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.86);
}

.subnav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.subnav a,
.subnav button {
  padding: 0.55rem 0.9rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.2s ease;
}

.subnav button {
  cursor: pointer;
  font-family: inherit;
}

.subnav a:hover,
.subnav button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.info-list {
  display: grid;
  gap: 1rem;
}

.info-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.info-row span {
  color: var(--ink-soft);
}

.timeline {
  display: grid;
  gap: 1rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(var(--accent), rgba(243, 178, 29, 0.06));
}

.timeline-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.2rem 1rem 2.2rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 12px;
  top: 1.15rem;
}

.timeline-item time {
  display: block;
  color: var(--ink-soft);
  font-size: 0.87rem;
  margin-bottom: 0.3rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review-card {
  padding: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 28px rgba(18, 30, 52, 0.08);
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.stars {
  color: #f2ae1b;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.review-card p {
  color: var(--ink-soft);
}

.game-card {
  display: grid;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.game-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #d6dfef;
  box-shadow: 0 14px 24px rgba(23, 36, 60, 0.15);
}

.media-main {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #cfdaf0;
  overflow: hidden;
  box-shadow: 0 20px 32px rgba(22, 34, 58, 0.18);
}

.media-main img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.game-showcase {
  margin: 0;
  width: 100%;
  border-radius: 14px;
  border: 1px solid #d3def2;
  box-shadow: 0 18px 28px rgba(19, 30, 51, 0.16);
  margin-bottom: 1rem;
  overflow: hidden;
}

.game-showcase img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.game-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.79rem;
  color: #2e3d5c;
  background: #eef2fa;
  border: 1px solid #d6deee;
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  font-weight: 700;
}

.game-shell {
  background: linear-gradient(150deg, #222f46 0%, #172031 100%);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 18px 34px rgba(3, 8, 20, 0.38);
}

.game-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.balance-pill {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.input-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.input-inline label {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.8);
}

.input-inline input,
.input-inline select,
.input-inline textarea,
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  background: var(--white);
  border: 1px solid #cdd7ea;
  border-radius: 10px;
  padding: 0.65rem 0.72rem;
  font: inherit;
  color: var(--ink);
}

.input-inline input,
.input-inline select {
  width: 95px;
  height: 38px;
  padding: 0.32rem 0.5rem;
}

.help {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
}

.reel-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.reel-window {
  height: 180px;
  background: linear-gradient(180deg, #0f1727, #151f31);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.5);
}

.reel-window::before,
.reel-window::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 38px;
  z-index: 2;
  pointer-events: none;
}

.reel-window::before {
  top: 0;
  background: linear-gradient(180deg, rgba(15, 23, 39, 0.95), transparent);
}

.reel-window::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(15, 23, 39, 0.95), transparent);
}

.reel-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 0.2s linear;
}

.reel-track.spinning {
  animation: reelSpin 0.11s linear infinite;
}

.reel-symbol {
  height: 60px;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0.45rem;
}

.reel-symbol::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), transparent 64%);
}

.reel-glyph {
  width: 34px;
  height: 34px;
  color: var(--symbol-color, #ffd978);
  filter: drop-shadow(0 0 6px rgba(255, 189, 85, 0.52)) drop-shadow(0 0 12px rgba(255, 132, 58, 0.26));
  position: relative;
  z-index: 1;
}

.reel-glyph svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.win-line {
  margin-top: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.win-line strong {
  color: var(--accent-2);
}

.glow {
  box-shadow: 0 0 0 2px rgba(243, 178, 29, 0.7), 0 0 16px rgba(243, 178, 29, 0.45);
}

.chest-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.chest {
  color: #fff;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: linear-gradient(160deg, #24304a, #1a2438);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-size: 1.8rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.chest:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.35);
}

.chest::before {
  content: '';
  position: absolute;
  inset: -60% 45% 0 -30%;
  transform: rotate(25deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 70%);
}

.chest.open {
  background: linear-gradient(170deg, #30415f, #202b42);
  transform: scale(0.98);
}

.chest.safe {
  box-shadow: 0 0 0 1px rgba(36, 168, 109, 0.5), 0 0 22px rgba(36, 168, 109, 0.45);
}

.chest.trap {
  box-shadow: 0 0 0 1px rgba(207, 79, 83, 0.55), 0 0 22px rgba(207, 79, 83, 0.45);
}

.duel-board {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.duel-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.card-slot {
  padding-bottom: 25px;
    padding-top: 25px;
  background: rgba(9, 15, 25, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  min-height: 120px;
  flex: 1 1 140px;
  display: grid;
  place-items: center;
}

.playing-card {
  width: 88px;
  height: 118px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(155deg, #fefefe, #e3e8f2);
  color: #1e2636;
  position: relative;
  box-shadow: 0 14px 18px rgba(0, 0, 0, 0.28);
  transform-origin: center;
  animation: dealCard 0.34s ease;
}

.playing-card.enemy {
  background: linear-gradient(150deg, #202b43, #273a5a);
  color: rgba(255, 255, 255, 0.9);
}

.playing-card .rank {
  position: absolute;
  left: 8px;
  top: 6px;
  font-weight: 800;
  font-family: 'Exo 2', sans-serif;
}

.playing-card .suit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.match-log {
  display: grid;
  gap: 0.45rem;
  max-height: 164px;
  overflow: auto;
  padding-right: 0.2rem;
}

.match-log p {
  margin: 0;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
}

.match-log p.win {
  border-left: 3px solid var(--accent);
}

.match-log p.loss {
  border-left: 3px solid var(--danger);
}

.match-log p.tie {
  border-left: 3px solid #8ea2ca;
}

.skyforge-shell {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(140, 167, 225, 0.35);
  padding: 1.2rem;
  background:
    radial-gradient(circle at 15% -30%, rgba(102, 145, 232, 0.35), transparent 45%),
    radial-gradient(circle at 85% -30%, rgba(255, 190, 93, 0.24), transparent 42%),
    linear-gradient(155deg, #111f36 0%, #0f1a31 42%, #0a1428 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 36px rgba(6, 12, 26, 0.45);
  overflow: hidden;
}

.skyforge-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 18% 78%, rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 50% 100%, rgba(255, 166, 72, 0.18), transparent 42%);
  pointer-events: none;
}

.skyforge-shell > * {
  position: relative;
  z-index: 1;
}

.skyforge-one-col {
  grid-template-columns: 1fr;
  max-width: 980px;
}

.sky-toolbar {
  display: grid;
  grid-template-columns: minmax(172px, 1.35fr) minmax(132px, 0.85fr) repeat(4, minmax(136px, 1fr));
  gap: 0.62rem;
  align-items: stretch;
  margin-bottom: 1.1rem;
}

.sky-toolbar > * {
  min-width: 0;
}

.sky-toolbar .balance-pill {
  justify-content: center;
  min-height: 46px;
  border-radius: 13px;
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  font-size: 1.08rem;
}

.sky-toolbar .input-inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.28rem;
  align-content: center;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 13px;
  padding: 0.34rem 0.52rem;
}

.sky-toolbar .input-inline label {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.sky-toolbar .input-inline input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border-radius: 9px;
  border: 1px solid #c9d6f0;
  background: linear-gradient(180deg, #f9fbff, #eaf0fc);
  color: #1c2840;
  font-weight: 700;
}

.sky-toolbar .btn {
  min-height: 46px;
  padding: 0.7rem 0.95rem;
  white-space: nowrap;
}

.sky-toolbar #cards-draw {
  box-shadow: 0 12px 24px rgba(255, 193, 78, 0.35);
}

.sky-toolbar #cards-cast {
  color: #ecf4ff;
  border: 1px solid rgba(154, 199, 255, 0.45);
  background: linear-gradient(120deg, #4f77bf, #355a97);
  box-shadow: 0 10px 18px rgba(59, 91, 156, 0.42);
}

.sky-toolbar #cards-cast:disabled {
  color: rgba(228, 236, 255, 0.62);
  border-color: rgba(117, 142, 191, 0.24);
  background: linear-gradient(120deg, #334f82, #2a3f67);
  box-shadow: none;
}

.sky-toolbar #cards-focus {
  border-color: rgba(143, 239, 255, 0.45);
  background: linear-gradient(120deg, rgba(126, 219, 255, 0.18), rgba(126, 219, 255, 0.08));
}

.sky-toolbar #cards-reset {
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
}

.sky-status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 1.22fr) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: stretch;
  margin-bottom: 0.9rem;
}

.sky-hero-panel {
  border: 1px solid rgba(156, 182, 236, 0.32);
  border-radius: 14px;
  padding: 0.78rem 0.82rem;
  background: linear-gradient(160deg, rgba(17, 30, 51, 0.88), rgba(12, 22, 39, 0.84));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  min-height: 112px;
}

.sky-hero-panel h3 {
  font-size: 1.03rem;
  margin-bottom: 0.48rem;
  letter-spacing: 0.01em;
}

.sky-hero-panel.player h3 {
  color: #ffe29d;
}

.sky-hero-panel.enemy h3 {
  color: #a9c7ff;
}

.sky-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.sky-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 0.28rem 0.2rem;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.sky-stat strong {
  display: inline-block;
  margin-top: 0.08rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
}

.sky-stat.hp strong {
  color: #ffadb1;
}

.sky-stat.armor strong {
  color: #c4d5ff;
}

.sky-stat.mana strong {
  color: #8deeff;
}

.sky-phase {
  border: 1px dashed rgba(208, 224, 255, 0.34);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.35;
  color: rgba(241, 248, 255, 0.92);
  padding: 0.74rem 0.86rem;
  min-height: 112px;
}

.sky-phase.busy {
  animation: skyPhasePulse 1.05s ease-in-out infinite;
}

.sky-arena {
  margin: 0.35rem 0 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 0.92rem;
  position: relative;
}

.sky-arena.clash {
  animation: skyArenaClash 0.34s ease;
}

.sky-slot {
  min-width: 0;
}

.sky-card-stage {
  min-height: 184px;
  border-radius: 16px;
  border: 1px dashed rgba(196, 215, 252, 0.36);
  background:
    linear-gradient(160deg, rgba(11, 25, 47, 0.9), rgba(8, 18, 37, 0.92)),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.08), transparent 60%);
  display: grid;
  place-items: center;
  padding: 0.55rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.sky-card-stage::before {
  content: '';
  position: absolute;
  inset: auto 0 -40px 0;
  height: 76px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 181, 83, 0.35), transparent 72%);
}

.sky-card-stage.enemy::before {
  background: radial-gradient(circle at 50% 0%, rgba(148, 177, 255, 0.34), transparent 72%);
}

.sky-card-stage:empty::after {
  content: 'Awaiting Sigil';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(204, 219, 249, 0.58);
}

.sky-card-stage.enemy:empty::after {
  content: 'Enemy Sigil';
}

.sky-slot small {
  display: block;
  margin-top: 0.42rem;
  text-align: center;
  color: rgba(240, 247, 255, 0.72);
  font-size: 0.95rem;
}

.sky-versus {
  display: grid;
  place-items: center;
  gap: 0.56rem;
}

.sky-vs {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 247, 255, 0.38);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  font-family: 'Exo 2', sans-serif;
  font-weight: 800;
  color: rgba(248, 252, 255, 0.95);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05);
}

.sky-impact {
  min-width: 132px;
  min-height: 30px;
  padding: 0.2rem 0.45rem 0.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(231, 241, 255, 0.84);
}

.sky-impact.win {
  color: #ffe39e;
}

.sky-impact.loss {
  color: #ffbcc0;
}

.sky-impact.tie {
  color: #cadbff;
}

.sky-hand-wrap {
  margin-top: 0.88rem;
}

.sky-hand-wrap h3 {
  margin-bottom: 0.56rem;
  font-size: 1.05rem;
  color: rgba(247, 252, 255, 0.96);
}

.sky-hand {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.76rem;
}

.sky-hand-card {
  position: relative;
  border-radius: 16px;
  padding: 0.72rem 0.72rem 0.66rem;
  border: 1px solid rgba(147, 177, 236, 0.38);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    linear-gradient(155deg, rgba(18, 35, 62, 0.95), rgba(10, 20, 38, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 16px 22px rgba(2, 7, 18, 0.42);
  color: rgba(244, 250, 255, 0.95);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.22rem;
}

.sky-hand-card::before {
  content: '';
  position: absolute;
  inset: -38% 18% auto -20%;
  height: 130px;
  transform: rotate(13deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 76%);
  pointer-events: none;
}

.sky-hand-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 224, 152, 0.66);
  box-shadow: 0 22px 26px rgba(2, 8, 19, 0.5);
}

.sky-hand-card[data-affordable='false'] {
  opacity: 0.5;
  filter: saturate(0.78);
  cursor: not-allowed;
}

.sky-hand-card.selected {
  border-color: rgba(255, 224, 152, 0.95);
  box-shadow:
    0 0 0 2px rgba(255, 201, 101, 0.58),
    0 22px 28px rgba(2, 8, 19, 0.54);
  transform: translateY(-5px) scale(1.01);
  animation: skySelectedGlow 1.55s ease-in-out infinite;
}

.sky-hand-card.stage-card {
  width: min(100%, 286px);
  pointer-events: none;
  min-height: 196px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 30px rgba(1, 6, 15, 0.5);
}

.sky-hand-card.entry-player {
  animation: skyCardEnterLeft 0.36s cubic-bezier(0.2, 0.9, 0.22, 1);
}

.sky-hand-card.entry-enemy {
  animation: skyCardEnterRight 0.36s cubic-bezier(0.2, 0.9, 0.22, 1);
}

.sky-hand-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.45rem;
}

.sky-hand-head h4 {
  font-size: 1.12rem;
  line-height: 1.16;
  color: #f5fbff;
}

.sky-cost {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  background: rgba(126, 230, 255, 0.18);
  border: 1px solid rgba(126, 230, 255, 0.64);
  color: #a8f0ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.sky-class {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(221, 231, 251, 0.64);
}

.sky-sigil {
  margin: 0.56rem auto 0.52rem;
  width: 80px;
  height: 80px;
  color: var(--sigil-color, #ffd978);
  filter: drop-shadow(0 0 8px rgba(255, 206, 112, 0.5)) drop-shadow(0 0 16px rgba(255, 138, 76, 0.26));
}

.sky-sigil svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sky-attr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.sky-attr {
  font-size: 0.69rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.28rem 0.34rem;
  display: flex;
  align-items: center;
  gap: 0.23rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(234, 245, 255, 0.88);
}

.sky-attr strong {
  margin-left: auto;
  color: #f8fcff;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.93rem;
}

.sky-attr-icon {
  width: 12px;
  height: 12px;
  color: #ffcd73;
  display: inline-flex;
}

.sky-attr-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 0.7;
}

.sky-ability {
  margin-top: 0.5rem;
  font-size: 0.71rem;
  line-height: 1.34;
  color: rgba(240, 247, 255, 0.9);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  padding: 0.42rem 0.46rem;
  background: rgba(255, 255, 255, 0.04);
  min-height: 52px;
}

.sky-ability strong {
  color: #ffe6b2;
}

#cards-log {
  margin-top: 0.82rem;
  min-height: 74px;
  max-height: 158px;
  border: 1px dashed rgba(185, 205, 243, 0.32);
  border-radius: 12px;
  padding: 0.4rem;
  background: linear-gradient(160deg, rgba(8, 20, 38, 0.82), rgba(6, 14, 30, 0.86));
}

#cards-log p {
  font-size: 0.8rem;
  line-height: 1.3;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.alert {
  margin-top: 15px;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  border: 1px solid;
  font-size: 0.92rem;
}

.alert-warning {
  color: #3d3214;
  background: #fff6dc;
  border-color: #f2d898;
}

.alert-dark {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(20, 30, 49, 0.92);
  border-color: rgba(255, 255, 255, 0.22);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1rem;
  font-weight: 700;
  position: relative;
  font-family: 'Exo 2', sans-serif;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  padding: 0 1rem 1rem;
  color: var(--ink-soft);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid label {
  font-weight: 600;
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

th,
td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: 'Exo 2', sans-serif;
  background: #f7f9fd;
}

.legal {
  display: grid;
  gap: 1.3rem;
}

.legal section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
}

.legal h3 {
  margin-bottom: 0.55rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  margin: 0;
  padding-left: 1.15rem;
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.ach-item {
  padding: 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.ach-item.unlocked {
  border-color: rgba(243, 178, 29, 0.8);
  box-shadow: 0 0 0 3px rgba(243, 178, 29, 0.18);
}

.ach-item small {
  color: var(--ink-soft);
}

.site-footer {
  margin-top: 3rem;
  background: #111a2a;
  color: rgba(255, 255, 255, 0.8);
  padding: 2.4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.2rem;
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 0.55rem;
}

.footer-grid section:first-child h4 {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-grid section:first-child h4::before {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff url('../img/logo.png') center / cover no-repeat;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.26);
}

.footer-grid a {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.84);
}

.footer-note {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.68);
}

.cookie-banner {
  position: fixed;
  z-index: 60;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(21, 30, 48, 0.95);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0.9rem;
  display: none;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.age-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 10, 17, 0.74);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.age-modal.show {
  display: flex;
}

.age-box {
  width: min(460px, 100%);
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 1.4rem;
  text-align: center;
  box-shadow: 0 26px 40px rgba(0, 0, 0, 0.24);
}

.age-badge {
  width: 92px;
  height: 92px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 800;
  color: #1e2a40;
  background: radial-gradient(circle at 30% 30%, #fff6d7, var(--accent), #ca8906);
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.toast-wrap {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 80;
  display: grid;
  gap: 0.5rem;
  width: min(320px, calc(100% - 2rem));
}

.toast {
  background: #152238;
  color: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font-size: 0.9rem;
  animation: toastIn 0.25s ease;
}

.text-muted {
  color: var(--ink-soft);
}

.space-top {
  margin-top: 1rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes tokenSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(243, 178, 29, 0.35);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(15px);
  }
}

@keyframes reelSpin {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-60px);
  }
}

@keyframes dealCard {
  from {
    transform: translateY(-16px) rotate(-7deg);
    opacity: 0;
  }

  to {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}

@keyframes skyCardEnterLeft {
  from {
    transform: translateX(-14px) rotate(-3deg) scale(0.97);
    opacity: 0;
  }

  to {
    transform: translateX(0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes skyCardEnterRight {
  from {
    transform: translateX(14px) rotate(3deg) scale(0.97);
    opacity: 0;
  }

  to {
    transform: translateX(0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes skyArenaClash {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.013);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes skyPhasePulse {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 0 0 0 rgba(255, 215, 116, 0);
  }

  50% {
    border-color: rgba(255, 214, 124, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 214, 124, 0.18);
  }
}

@keyframes skySelectedGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(255, 201, 101, 0.58),
      0 22px 28px rgba(2, 8, 19, 0.54);
  }

  50% {
    box-shadow:
      0 0 0 2px rgba(255, 226, 163, 0.85),
      0 0 18px rgba(255, 204, 113, 0.4),
      0 24px 30px rgba(2, 8, 19, 0.58);
  }
}

@keyframes toastIn {
  from {
    transform: translateX(10px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes flameGlowPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(0.96);
    opacity: 0.64;
  }

  50% {
    transform: translateX(-50%) scale(1.05);
    opacity: 0.92;
  }
}

@keyframes hazeDrift {
  0%,
  100% {
    transform: translateX(0) translateY(0);
    opacity: 0.62;
  }

  50% {
    transform: translateX(2.5%) translateY(-1.2%);
    opacity: 0.82;
  }
}

@keyframes emberFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.4);
    opacity: 0;
  }

  10% {
    opacity: var(--peak-opacity, 0.8);
  }

  65% {
    opacity: var(--mid-opacity, 0.66);
  }

  100% {
    transform: translate3d(calc(var(--drift, 0px)), calc(var(--rise, -80vh)), 0) scale(1.16);
    opacity: 0;
  }
}

@keyframes sparkFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--tilt, -6deg)) scale(0.9);
    opacity: 0;
  }

  18% {
    opacity: var(--peak-opacity, 0.62);
  }

  100% {
    transform: translate3d(calc(var(--drift, 0px)), calc(var(--rise, -70vh)), 0) rotate(calc(var(--tilt, -6deg) + 15deg)) scale(1.18);
    opacity: 0;
  }
}

@keyframes emberPulse {
  0%,
  100% {
    filter: blur(var(--blur, 0px)) brightness(0.88);
  }

  50% {
    filter: blur(var(--blur, 0px)) brightness(1.28);
  }
}

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

  .flame-background {
    display: none;
  }
}

@media (max-width: 1100px) {
  .nav {
    gap: 0.8rem;
  }

  .nav a {
    font-size: 0.88rem;
  }

  .hero-wrap {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 2.1rem 1.4rem;
  }

  .hero-token {
    width: 120px;
    height: 120px;
  }

  .hero-token::before {
    font-size: 1.6rem;
  }

  .hero-right {
    min-height: 310px;
  }

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

  .grid-3,
  .step-line,
  .review-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    right: 1.1rem;
    top: 68px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 24px rgba(29, 41, 61, 0.18);
    padding: 0.8rem;
    min-width: 220px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    max-height: calc(100vh - 120px);
    overflow: auto;
  }

  .nav.show {
    display: flex;
  }

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

  .step-line::before {
    display: none;
  }

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

  .sky-status-grid {
    grid-template-columns: 1fr;
  }

  .sky-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sky-toolbar .balance-pill {
    grid-column: span 2;
  }

  .sky-toolbar .input-inline,
  .sky-toolbar .btn {
    grid-column: span 1;
  }

  .sky-hand {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sky-arena {
    grid-template-columns: 1fr;
  }

  .sky-versus {
    order: 2;
  }

  .reel-wrap {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100%, calc(100% - 1.2rem));
  }

  .section {
    padding: 3.6rem 0;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-card {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }

  .hero-right {
    padding: 1rem;
    min-height: 260px;
  }

  .hero-lights {
    left: 1rem;
    bottom: 1rem;
  }

  .game-card-image {
    height: 156px;
  }

  .media-main img {
    height: 220px;
  }

  .game-showcase img {
    height: 190px;
  }

  .sky-hand {
    grid-template-columns: 1fr;
  }

  .sky-hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .sky-toolbar .btn {
    width: 100%;
  }

  .sky-toolbar {
    grid-template-columns: 1fr;
  }

  .sky-toolbar .balance-pill,
  .sky-toolbar .input-inline,
  .sky-toolbar .btn {
    grid-column: span 1;
  }

  .sky-phase {
    font-size: 0.9rem;
    min-height: 92px;
  }

  .sky-card-stage {
    min-height: 162px;
  }

  .info-row {
    flex-direction: column;
  }

  .top-strip .container {
    flex-direction: column;
    justify-content: center;
    padding: 0.35rem 0;
  }
}
