:root {
  --bg-a: #07081f;
  --bg-b: #0d1444;
  --bg-c: #1a0740;
  --ink: #ecf2ff;
  --muted: #b5c0dc;
  --card: rgba(16, 20, 58, 0.78);
  --card-strong: rgba(12, 14, 45, 0.92);
  --edge: rgba(113, 150, 255, 0.24);
  --cyan: #20f6ff;
  --pink: #ff3fb9;
  --gold: #ffd46a;
  --green: #72ff9f;
  --danger: #ff5d79;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "Rajdhani", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(32, 246, 255, 0.12), transparent 38%),
    radial-gradient(circle at 85% 18%, rgba(255, 63, 185, 0.13), transparent 35%),
    linear-gradient(140deg, var(--bg-a), var(--bg-b) 45%, var(--bg-c));
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}

body::before {
  top: -140px;
  left: -120px;
  background: rgba(32, 246, 255, 0.18);
}

body::after {
  right: -120px;
  bottom: -190px;
  background: rgba(255, 63, 185, 0.15);
}

.fx-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.trust-strip,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.fx-nebula {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 78%, rgba(255, 114, 79, 0.12), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(98, 239, 255, 0.1), transparent 34%),
    radial-gradient(circle at 70% 78%, rgba(255, 214, 106, 0.07), transparent 33%);
}

.fx-flame-band {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -28vh;
  height: 60vh;
  background:
    radial-gradient(circle at 18% 74%, rgba(255, 165, 83, 0.22), transparent 36%),
    radial-gradient(circle at 48% 88%, rgba(255, 96, 84, 0.2), transparent 38%),
    radial-gradient(circle at 77% 68%, rgba(255, 210, 105, 0.18), transparent 34%);
  filter: blur(30px);
  opacity: 0.42;
  animation: flameBreath 7.2s ease-in-out infinite alternate;
}

.fx-stars,
.fx-fallings,
.fx-meteors,
.fx-embers {
  position: absolute;
  inset: 0;
}

.fx-star {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 247, 255, 0.95), rgba(238, 247, 255, 0.14) 68%, transparent);
  opacity: 0.28;
  animation: starTwinkle var(--twinkle) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

.fx-falling-star {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: var(--len);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(188, 235, 255, 0.65), rgba(255, 255, 255, 0));
  opacity: 0;
  transform: rotate(-34deg);
  filter: drop-shadow(0 0 8px rgba(183, 238, 255, 0.45));
  animation: fallingStar var(--dur) linear infinite;
  animation-delay: var(--delay);
}

.fx-meteor {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: var(--len);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 246, 216, 0.98), rgba(255, 155, 108, 0.58), rgba(255, 212, 106, 0));
  opacity: 0;
  transform: rotate(-34deg);
  filter: drop-shadow(0 0 11px rgba(255, 186, 128, 0.45));
  animation: meteorRush var(--dur) linear infinite;
  animation-delay: var(--delay);
}

.fx-meteor::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 246, 214, 0.95);
  box-shadow: 0 0 16px rgba(255, 200, 135, 0.8);
}

.fx-ember {
  position: absolute;
  left: calc(var(--x) * 1%);
  bottom: -28px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 225, 166, 0.98), rgba(255, 120, 88, 0.74) 55%, rgba(255, 120, 88, 0));
  opacity: 0;
  filter: blur(0.4px);
  animation: emberRise var(--dur) ease-in infinite;
  animation-delay: var(--delay);
}

@keyframes starTwinkle {
  from {
    opacity: 0.16;
    transform: scale(0.7);
  }
  to {
    opacity: 0.52;
    transform: scale(1);
  }
}

@keyframes fallingStar {
  0% {
    opacity: 0;
    transform: rotate(-34deg) translate3d(0, 0, 0) scaleX(0.35);
  }
  10% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: rotate(-34deg) translate3d(calc(var(--drift-x) * -1), var(--drift-y), 0) scaleX(1);
  }
}

@keyframes meteorRush {
  0% {
    opacity: 0;
    transform: rotate(-34deg) translate3d(0, 0, 0) scaleX(0.45);
  }
  7% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(-34deg) translate3d(calc(var(--drift-x) * -1), var(--drift-y), 0) scaleX(1);
  }
}

@keyframes emberRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.8);
  }
  12% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -118vh, 0) scale(0.45);
  }
}

@keyframes flameBreath {
  from {
    opacity: 0.33;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0.52;
    transform: translateY(-8px) scale(1.03);
  }
}

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

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

button {
  color: inherit;
}

main {
  min-height: 60vh;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.small-text {
  font-size: 0.95rem;
  color: var(--muted);
}

.trust-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 27, 0.75);
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px 0;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
}

.pill.age {
  border-color: rgba(255, 98, 143, 0.8);
  color: #ffd3e5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 9, 28, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(96, 108, 207, 0.25);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.2rem, 1.6vw + 0.6rem, 1.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
}

.logo span {
  background: linear-gradient(90deg, #ff75ca, #78f4ff 60%, #ffd46a);
  color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: 0.25s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
}

.profile-pill {
  border: 1px solid rgba(32, 246, 255, 0.45);
  color: #aefbff;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 1.08rem;
}

.hero {
  padding: 78px 0 64px;
  position: relative;
  background: radial-gradient(circle at 15% 5%, rgba(32, 246, 255, 0.12), transparent 38%),
    radial-gradient(circle at 85% 18%, rgba(255, 63, 185, 0.13), transparent 35%),
    linear-gradient(140deg, #07081faa, #0d1444aa 45%, #1a0740aa), url(../img/background.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 80, 189, 0.7);
  padding: 9px 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd5ee;
  margin-bottom: 16px;
}

.hero h1,
.page-hero h1 {
  font-family: "Orbitron", sans-serif;
  line-height: 1.04;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4.4rem);
  max-width: 900px;
}

.gradient-text {
  background: linear-gradient(95deg, #f9bbff, #ff45bc 34%, #34e7ff 68%, #ffd46a);
  color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted);
  max-width: 740px;
  font-size: clamp(1.1rem, 1.3vw, 1.45rem);
  margin-top: 16px;
}

.button-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(95deg, #ff43b7, #22e8ff);
  color: #f7fbff;
  text-shadow: 0 1px 1px rgba(7, 8, 25, 0.55);
  box-shadow: 0 12px 30px rgba(28, 221, 255, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(32, 246, 255, 0.52);
  color: #c8faff;
}

.btn-danger {
  background: rgba(255, 93, 121, 0.13);
  border-color: rgba(255, 93, 121, 0.55);
  color: #ffc8d1;
}

.stats-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  color: #eaf6ff;
}

.stat-card span {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section {
  padding: 54px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #7ef8ff;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
}

.section-heading h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.6rem, 3.1vw, 3rem);
  line-height: 1.12;
}

.section-heading p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.info-card,
.game-card,
.surface {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-card {
  padding: 22px;
}

.info-card h3 {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 8px;
}

.info-card p {
  color: var(--muted);
}

.game-card {
  display: flex;
  flex-direction: column;
}

.game-art {
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(255, 63, 185, 0.2), rgba(32, 246, 255, 0.2)),
    linear-gradient(20deg, #081a4f, #210532);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-family: "Orbitron", sans-serif;
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.game-art.fantasy {
  background:
    linear-gradient(125deg, rgba(114, 255, 159, 0.26), rgba(32, 246, 255, 0.24)),
    linear-gradient(15deg, #0e3a50aa, #1f1040aa), url(../img/skyforge.jpg);
}

.game-art.treasure {
  background:
    linear-gradient(130deg, rgba(255, 212, 106, 0.35), rgba(255, 63, 185, 0.18)),
    linear-gradient(15deg, #3a1f02aa, #170b3daa), url(../img/tides-spin.jpg);
}

.game-art.cards {
  padding: 15px;
  text-align: center;
  background:
    linear-gradient(125deg, rgba(123, 160, 255, 0.32), rgba(32, 246, 255, 0.15)),
    linear-gradient(25deg, #122455aa, #1e0838aa), url(../img/mystic-relic.jpg);
}

.game-card-body {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 11px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

.page-hero {
  padding: 64px 0 24px;
}

.page-hero p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 790px;
  font-size: 1.15rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

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

.surface {
  padding: 24px;
}

.surface h3 {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 10px;
}

.surface p,
.surface li {
  color: var(--muted);
}

.surface ul,
.surface ol {
  margin-left: 20px;
  display: grid;
  gap: 8px;
}

.surface + .surface {
  margin-top: 0;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  border-left: 3px solid rgba(32, 246, 255, 0.55);
  padding-left: 12px;
}

.timeline-item strong {
  color: #d8fdff;
  font-family: "Orbitron", sans-serif;
}

.review {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.review strong {
  color: #f7dcff;
}

.review .stars {
  color: #ffd46a;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

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

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7, 10, 38, 0.58);
}

.faq-question {
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 15px;
  text-align: left;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  display: none;
  padding: 0 15px 15px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}

.form-grid {
  display: grid;
  gap: 14px;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(32, 246, 255, 0.48);
  border-color: rgba(32, 246, 255, 0.7);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.success-box,
.error-box {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  display: none;
}

.success-box {
  background: rgba(114, 255, 159, 0.15);
  border: 1px solid rgba(114, 255, 159, 0.6);
  color: #ccffde;
}

.error-box {
  background: rgba(255, 93, 121, 0.14);
  border: 1px solid rgba(255, 93, 121, 0.6);
  color: #ffd2db;
}

.game-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 18px;
}

.game-panel {
  position: relative;
  overflow: hidden;
  background: var(--card-strong);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.game-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 35%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  animation: panelSweep 5.5s linear infinite;
}

.game-illustration {
  margin: 0 0 14px;
  }

.game-illustration img {
  border-radius: 14px;
  width: 100%;
  height: auto;
}

.hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.hud div {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hud div.metric-win {
  border-color: rgba(114, 255, 159, 0.75);
  box-shadow: 0 0 22px rgba(114, 255, 159, 0.23);
  transform: translateY(-1px);
}

.hud div.metric-loss {
  border-color: rgba(255, 93, 121, 0.72);
  box-shadow: 0 0 22px rgba(255, 93, 121, 0.2);
  transform: translateY(-1px);
}

.hud span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.hud strong {
  font-size: 1.45rem;
  font-family: "Orbitron", sans-serif;
}

.log {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px;
  min-height: 60px;
  background: rgba(255, 255, 255, 0.03);
  color: #eaf5ff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.log.log-win {
  border-color: rgba(114, 255, 159, 0.72);
  box-shadow: 0 0 18px rgba(114, 255, 159, 0.2);
}

.log.log-loss {
  border-color: rgba(255, 93, 121, 0.72);
  box-shadow: 0 0 18px rgba(255, 93, 121, 0.2);
}

.log.log-neutral {
  border-color: rgba(255, 212, 106, 0.72);
  box-shadow: 0 0 18px rgba(255, 212, 106, 0.2);
}

.log.log-pulse {
  animation: logPulse 0.42s ease;
}

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

.portal-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(165deg, rgba(123, 160, 255, 0.16), rgba(255, 63, 185, 0.14));
  padding: 16px 12px;
  text-align: center;
  font-weight: 700;
  color: #eaf4ff;
  min-height: 120px;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.portal-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.portal-icon-wrap {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portal-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.portal-icon-wrap .icon-core {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(173, 210, 255, 0.62);
  stroke-width: 2;
}

.portal-icon-wrap .icon-stroke {
  fill: none;
  stroke: #d8f2ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-icon-wrap.good .icon-core {
  fill: rgba(114, 255, 159, 0.15);
  stroke: rgba(114, 255, 159, 0.75);
}

.portal-icon-wrap.bad .icon-core {
  fill: rgba(255, 93, 121, 0.15);
  stroke: rgba(255, 93, 121, 0.75);
}

.portal-icon-wrap.neutral .icon-core {
  fill: rgba(255, 212, 106, 0.16);
  stroke: rgba(255, 212, 106, 0.75);
}

.portal-label {
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.portal-meta {
  color: #bbcae8;
  font-size: 0.86rem;
  font-weight: 600;
}

.portal-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 35%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.portal-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(32, 246, 255, 0.8);
  box-shadow: 0 0 20px rgba(32, 246, 255, 0.18);
}

.portal-card:hover:not(:disabled)::after {
  opacity: 1;
  animation: panelSweep 0.95s linear 1;
}

.portal-card.revealing {
  animation: portalReveal 0.66s ease;
}

.portal-card.selected {
  border-color: rgba(32, 246, 255, 0.92);
  box-shadow: 0 0 26px rgba(32, 246, 255, 0.25);
}

.portal-card.revealed {
  cursor: default;
  background: rgba(255, 255, 255, 0.06);
}

.portal-card.good {
  border-color: rgba(114, 255, 159, 0.75);
}

.portal-card.good.selected {
  box-shadow: 0 0 26px rgba(114, 255, 159, 0.3);
}

.portal-card.bad {
  border-color: rgba(255, 93, 121, 0.75);
}

.portal-card.bad.selected {
  box-shadow: 0 0 26px rgba(255, 93, 121, 0.3);
}

.portal-grid.is-resolving .portal-card:not(.selected) {
  filter: saturate(0.75) brightness(0.88);
}

.portal-card .value {
  display: block;
  font-family: "Orbitron", sans-serif;
  margin-top: 6px;
  font-size: 1.25rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.spin-machine {
  display: grid;
  gap: 10px;
}

.spin-machine .hud {
  margin-bottom: 0 !important;
}

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

.reel {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(123, 160, 255, 0.08));
  min-height: 130px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.reel-symbol {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.reel-symbol svg {
  width: 100%;
  height: 100%;
}

.reel-symbol .svg-core {
  fill: rgba(255, 255, 255, 0.1);
  stroke: rgba(181, 210, 255, 0.55);
  stroke-width: 2;
}

.reel-symbol .svg-line {
  fill: none;
  stroke: #e7f2ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reel-symbol .svg-fill {
  fill: rgba(231, 242, 255, 0.22);
  stroke: #e7f2ff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reel-symbol .svg-accent {
  fill: none;
  stroke: rgba(255, 227, 167, 0.95);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reel-symbol .svg-dot {
  fill: rgba(255, 227, 167, 0.95);
}

.reel-symbol.reel-gem .svg-core {
  fill: rgba(76, 234, 255, 0.16);
  stroke: rgba(103, 248, 255, 0.85);
}

.reel-symbol.reel-gem .svg-fill {
  fill: rgba(140, 244, 255, 0.35);
}

.reel-symbol.reel-map .svg-core {
  fill: rgba(244, 212, 146, 0.12);
  stroke: rgba(255, 213, 138, 0.8);
}

.reel-symbol.reel-map .svg-fill {
  fill: rgba(250, 226, 171, 0.28);
}

.reel-symbol.reel-compass .svg-core {
  fill: rgba(120, 172, 255, 0.13);
  stroke: rgba(142, 212, 255, 0.82);
}

.reel-symbol.reel-compass .svg-fill {
  fill: rgba(154, 229, 255, 0.3);
}

.reel-symbol.reel-crown .svg-core {
  fill: rgba(255, 204, 95, 0.13);
  stroke: rgba(255, 218, 128, 0.84);
}

.reel-symbol.reel-crown .svg-fill {
  fill: rgba(255, 222, 144, 0.33);
}

.reel-symbol.reel-chest .svg-core {
  fill: rgba(255, 166, 110, 0.13);
  stroke: rgba(255, 189, 132, 0.84);
}

.reel-symbol.reel-chest .svg-fill {
  fill: rgba(250, 183, 128, 0.3);
}

.reel-symbol.reel-wave .svg-core {
  fill: rgba(128, 179, 255, 0.12);
  stroke: rgba(126, 240, 255, 0.8);
}

.reel-symbol.reel-wave .svg-fill {
  fill: rgba(142, 231, 255, 0.2);
}

.reel-name {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e7f2ff;
}

.reel.spinning {
  animation: glowPulse 0.45s infinite alternate;
}

.reel.stopping {
  animation: reelStop 0.28s ease;
}

.reel.win {
  border-color: rgba(255, 212, 106, 0.92);
  box-shadow: 0 0 24px rgba(255, 212, 106, 0.34);
  transform: translateY(-2px);
}

.reels.jackpot .reel {
  animation: jackpotPulse 0.55s ease 2;
}

.reels.bonus .reel.win {
  animation: reelWinPulse 0.5s ease 2;
}

@keyframes glowPulse {
  from {
    box-shadow: 0 0 0 rgba(32, 246, 255, 0.1);
  }
  to {
    box-shadow: 0 0 24px rgba(255, 63, 185, 0.4);
  }
}

@keyframes panelSweep {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(430%);
  }
}

@keyframes portalReveal {
  0% {
    transform: translateY(-1px) scale(1);
  }
  45% {
    transform: translateY(-3px) scale(1.025);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes logPulse {
  from {
    transform: scale(0.99);
  }
  to {
    transform: scale(1);
  }
}

@keyframes reelStop {
  0% {
    transform: translateY(6px);
    filter: blur(1px);
  }
  100% {
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes reelWinPulse {
  from {
    box-shadow: 0 0 0 rgba(255, 212, 106, 0.12);
  }
  to {
    box-shadow: 0 0 24px rgba(255, 212, 106, 0.34);
  }
}

@keyframes jackpotPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.stake-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stake-btn {
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.1;
  font-weight: 700;
  cursor: pointer;
}

.stake-btn.active {
  border-color: rgba(255, 212, 106, 0.85);
  color: #ffe9bc;
}

#spinButton,
#autoSpinButton {
  height: 46px;
  padding: 0 18px;
  min-height: 46px;
}

.spin-machine .button-row {
  margin-top: 10px;
}

.hand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.battle-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(155deg, rgba(123, 160, 255, 0.24), rgba(255, 63, 185, 0.15));
  padding: 10px;
  text-align: center;
  color: #ebf5ff;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.battle-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.battle-title {
  font-weight: 700;
  width: 100%;
}

.battle-icon {
  --icon-glow: rgba(122, 210, 255, 0.34);
  --icon-glow-strong: rgba(122, 210, 255, 0.6);
  width: 28px;
  height: 28px;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px var(--icon-glow));
  animation: iconFloat 2.8s ease-in-out infinite;
}

.battle-icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--icon-glow-strong), rgba(255, 255, 255, 0));
  opacity: 0.48;
  filter: blur(6px);
  animation: iconHaloPulse 2.8s ease-in-out infinite;
}

.battle-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.38;
  animation: iconRingSpin 7s linear infinite;
}

.battle-icon svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.battle-icon .school-ring {
  fill: rgba(255, 255, 255, 0.03);
  stroke-width: 2;
}

.battle-icon .school-core {
  fill: rgba(255, 255, 255, 0.06);
}

.battle-icon .school-glyph {
  fill: none;
  stroke: #f2f8ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: iconGlyphPulse 1.9s ease-in-out infinite;
}

.battle-icon .school-accent {
  fill: none;
  stroke: rgba(255, 228, 168, 0.95);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 18 26;
  animation: iconAccentDrift 3.3s linear infinite;
}

.battle-icon.school-flame .school-ring {
  stroke: rgba(255, 133, 91, 0.9);
}

.battle-icon.school-flame {
  --icon-glow: rgba(255, 140, 96, 0.46);
  --icon-glow-strong: rgba(255, 170, 108, 0.66);
}

.battle-icon.school-flame .school-core {
  fill: rgba(255, 126, 96, 0.24);
}

.battle-icon.school-stone .school-ring {
  stroke: rgba(191, 204, 227, 0.86);
}

.battle-icon.school-stone {
  --icon-glow: rgba(212, 226, 245, 0.34);
  --icon-glow-strong: rgba(234, 241, 255, 0.56);
}

.battle-icon.school-stone .school-core {
  fill: rgba(198, 212, 232, 0.2);
}

.battle-icon.school-storm .school-ring {
  stroke: rgba(110, 225, 255, 0.9);
}

.battle-icon.school-storm {
  --icon-glow: rgba(126, 238, 255, 0.44);
  --icon-glow-strong: rgba(175, 249, 255, 0.62);
}

.battle-icon.school-storm .school-core {
  fill: rgba(109, 231, 255, 0.22);
}

.battle-icon.school-tide .school-ring {
  stroke: rgba(120, 172, 255, 0.9);
}

.battle-icon.school-tide {
  --icon-glow: rgba(137, 184, 255, 0.42);
  --icon-glow-strong: rgba(168, 205, 255, 0.62);
}

.battle-icon.school-tide .school-core {
  fill: rgba(123, 173, 255, 0.24);
}

.battle-icon.school-flame .school-accent {
  stroke: rgba(255, 196, 148, 0.96);
}

.battle-icon.school-stone .school-accent {
  stroke: rgba(225, 232, 247, 0.92);
}

.battle-icon.school-storm .school-accent {
  stroke: rgba(169, 246, 255, 0.95);
}

.battle-icon.school-tide .school-accent {
  stroke: rgba(176, 214, 255, 0.95);
}

.battle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(32, 246, 255, 0.2);
}

.battle-card:hover .battle-icon,
.battle-card.selected .battle-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px var(--icon-glow-strong));
}

.battle-card.waiting .battle-icon {
  animation: iconFloat 0.85s ease-in-out infinite;
}

.battle-card.waiting .battle-icon::before {
  animation: iconHaloPulse 0.85s ease-in-out infinite;
}

.battle-card.selected {
  border-color: rgba(32, 246, 255, 0.85);
  box-shadow: 0 0 22px rgba(32, 246, 255, 0.3);
}

.battle-card.waiting {
  animation: glowPulse 0.45s infinite alternate;
}

.battle-card.used {
  opacity: 0.35;
  cursor: not-allowed;
}

.battle-card .school {
  font-size: 0.9rem;
  color: #d5e8ff;
}

.battle-card .school-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 3px;
}

.battle-card .power {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  margin-top: 5px;
}

.battle-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.duel-box {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.duel-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}

.duel-head .battle-icon {
  width: 24px;
  height: 24px;
}

.duel-box.duel-reveal {
  animation: duelReveal 0.36s ease;
}

@keyframes iconFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes iconHaloPulse {
  0% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.62;
    transform: scale(1.04);
  }
  100% {
    opacity: 0.35;
    transform: scale(0.9);
  }
}

@keyframes iconRingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes iconGlyphPulse {
  0% {
    stroke-opacity: 0.7;
  }
  50% {
    stroke-opacity: 1;
  }
  100% {
    stroke-opacity: 0.7;
  }
}

@keyframes iconAccentDrift {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -44;
  }
}

.duel-box.win {
  border-color: rgba(114, 255, 159, 0.78);
  box-shadow: 0 0 20px rgba(114, 255, 159, 0.22);
}

.duel-box.loss {
  border-color: rgba(255, 93, 121, 0.78);
  box-shadow: 0 0 20px rgba(255, 93, 121, 0.2);
}

.duel-box.draw {
  border-color: rgba(255, 212, 106, 0.78);
  box-shadow: 0 0 20px rgba(255, 212, 106, 0.2);
}

@keyframes duelReveal {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.achievement {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.achievement.locked {
  opacity: 0.58;
}

.achievement .badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 11px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.achievement.unlocked .badge {
  border-color: rgba(114, 255, 159, 0.72);
  color: #d6ffe3;
}

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

.kv .surface {
  padding: 20px 22px;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kv .surface h3 {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.55rem, 1.2vw + 1rem, 2.15rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: #e9f4ff;
}

.kv .surface p {
  margin-top: 14px;
  line-height: 1;
}

.kv .surface strong {
  display: inline-block;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 1.5vw + 1.1rem, 2.7rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #d5e5ff;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-content h2,
.legal-content h3 {
  font-family: "Orbitron", sans-serif;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(6, 8, 25, 0.82);
  padding: 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

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

.notice-box {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  margin: 15px 0
}

.toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 26px;
  z-index: 80;
  display: grid;
  gap: 8px;
}

.toast {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 12, 36, 0.95);
  color: #eaf4ff;
  min-width: 210px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.2s ease;
}

.toast.ok {
  border-color: rgba(114, 255, 159, 0.7);
}

.toast.warn {
  border-color: rgba(255, 212, 106, 0.8);
}

.toast.error {
  border-color: rgba(255, 93, 121, 0.7);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  width: min(950px, 92vw);
  background: rgba(8, 11, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 12px;
  z-index: 75;
  display: none;
}

.cookie-banner.show {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(1, 2, 10, 0.93);
  display: grid;
  place-items: center;
  padding: 14px;
  z-index: 90;
}

.age-card {
  width: min(560px, 94vw);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(160deg, rgba(16, 22, 66, 0.95), rgba(33, 8, 48, 0.95));
  padding: 22px;
  text-align: center;
}

.age-card h2 {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 6px;
}

.age-card p {
  color: var(--muted);
}

.age-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fx-fallings,
  .fx-meteors,
  .fx-embers {
    display: none;
  }

  .fx-star,
  .fx-flame-band {
    animation: none !important;
  }

  .fx-star {
    opacity: 0.24;
  }
}

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

  .game-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .nav-links {
    display: none;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .stats-grid,
  .card-grid,
  .grid-2,
  .grid-2.equal,
  .achievement-grid,
  .footer-grid,
  .hand-grid,
  .portal-grid,
  .reels,
  .kv {
    grid-template-columns: 1fr;
  }

  .cookie-banner.show {
    grid-template-columns: 1fr;
  }

  .surface + .surface {
    margin-top: 16px;
  }

  .kv .surface {
    min-height: auto;
    padding: 18px;
  }
}

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

  .btn,
  button.btn {
    width: 100%;
  }
}
.game-panel ol, .game-panel ul {
  padding-left: 15px
}
.game-panel .notice-box {
  margin-top: 15px
}
