@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Raleway:wght@400;600;700&display=swap");

:root {
  --lake-deep: #071824;
  --ice-cyan: #7de2fc;
  --lure-amber: #ffb020;
  --snow-paper: #f2f7fb;
  --pine-depth: #1f6f5b;
  --bobber-red: #e63946;
  --ink-frost: #0d1b26;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Raleway", "Segoe UI", sans-serif;
  --header-h: 72px;
  --max-w: 1100px;
  --radius: 12px;
  --glow-cyan: 0 0 12px rgba(125, 226, 252, 0.55), 0 0 28px rgba(125, 226, 252, 0.28);
  --glow-amber: 0 0 12px rgba(255, 176, 32, 0.45), 0 0 24px rgba(255, 176, 32, 0.22);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-frost);
  background-color: var(--snow-paper);
  background-image:
    radial-gradient(ellipse 70% 45% at 10% 5%, rgba(125, 226, 252, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 15%, rgba(255, 176, 32, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(31, 111, 91, 0.14), transparent 55%),
    linear-gradient(160deg, #e8f4fa 0%, var(--snow-paper) 45%, #e6eef3 100%);
}

body.is-nav-open { overflow: hidden; }

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

a { color: var(--pine-depth); }
a:hover { color: var(--bobber-red); }

h1, h2, h3 {
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--lake-deep);
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); font-weight: 600; }
h3 { font-size: 1.28rem; font-weight: 600; }

p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

main { flex: 1; }

.wrap {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
  padding: 2.5rem 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(7, 24, 36, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(125, 226, 252, 0.25);
  box-shadow: 0 0 24px rgba(125, 226, 252, 0.12);
}

.header__inner {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
}

.header__mark { width: 36px; height: 36px; display: grid; place-items: center; }
.header__mark svg { width: 36px; height: 36px; filter: drop-shadow(0 0 6px rgba(125, 226, 252, 0.7)); }
.header__name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.header__nav a {
  text-decoration: none;
  color: rgba(242, 247, 251, 0.88);
  font-weight: 600;
  font-size: 0.92rem;
}

.header__nav a[aria-current="page"],
.header__nav a:hover {
  color: var(--ice-cyan);
  text-shadow: 0 0 10px rgba(125, 226, 252, 0.7);
}

.header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.header__toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ice-cyan);
  margin-inline: auto;
  box-shadow: 0 0 6px rgba(125, 226, 252, 0.8);
}

.panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(125, 226, 252, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--glow-cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border: 0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  color: var(--lake-deep);
  background: linear-gradient(180deg, var(--ice-cyan) 0%, #4fc3e0 100%);
  box-shadow:
    0 4px 0 #1a6f85,
    var(--glow-cyan);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
}

.btn:hover {
  filter: brightness(1.06);
  color: var(--lake-deep);
}

.btn:active,
.btn--3d:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #1a6f85,
    0 0 10px rgba(125, 226, 252, 0.4);
}

.btn--amber {
  background: linear-gradient(180deg, var(--lure-amber) 0%, #e09200 100%);
  box-shadow:
    0 4px 0 #9a6400,
    var(--glow-amber);
}

.btn--amber:active {
  box-shadow:
    0 1px 0 #9a6400,
    0 0 10px rgba(255, 176, 32, 0.4);
}

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

.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-content: center;
  padding-top: 1rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: 12%;
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(125, 226, 252, 0.55), transparent 62%),
    radial-gradient(circle at 70% 70%, rgba(255, 176, 32, 0.22), transparent 58%);
  pointer-events: none;
  animation: hole-pulse 10s ease-in-out infinite;
  filter: blur(2px);
}

@keyframes hole-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

.hero__brand {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  font-weight: 700;
  color: var(--lake-deep);
  margin: 0 0 0.75rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(125, 226, 252, 0.35);
  animation: rise-in 0.75s ease both;
}

.hero__lead {
  max-width: 36rem;
  font-size: 1.15rem;
  color: rgba(13, 27, 38, 0.84);
  margin-bottom: 1.5rem;
  position: relative;
  animation: rise-in 0.85s ease 0.06s both;
}

.hero .btn {
  position: relative;
  animation: rise-in 0.95s ease 0.12s both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.games-shelf__title { margin-bottom: 0.4rem; }
.game-shelf__sub { color: rgba(13, 27, 38, 0.72); margin-bottom: 1.75rem; }

.game-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.game-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-amber);
  border-color: rgba(255, 176, 32, 0.55);
}

.game-card__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--lake-deep);
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.game-card:hover .game-card__media img { transform: scale(1.04); }

.game-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.game-card__title { margin: 0; font-size: 1.3rem; }
.game-card__desc { margin: 0; flex: 1; font-size: 0.95rem; color: rgba(13, 27, 38, 0.75); }

.features__title { margin-bottom: 1.5rem; }
.features__grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, 1fr);
}

.feature-tile { padding: 1.35rem 1.25rem; }
.feature-tile h3 { margin-bottom: 0.45rem; }
.feature-tile p { margin: 0; font-size: 0.98rem; }

.faq { padding: 1.5rem 1.4rem; }
.faq h2 { margin-bottom: 1rem; }
.faq details {
  border-top: 1px solid rgba(7, 24, 36, 0.1);
  padding: 0.85rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary {
  color: var(--pine-depth);
  text-shadow: 0 0 8px rgba(125, 226, 252, 0.35);
}
.faq details p { margin: 0.65rem 0 0; color: rgba(13, 27, 38, 0.78); }

.cta-band {
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(125, 226, 252, 0.18), rgba(255, 176, 32, 0.14));
  border-radius: var(--radius);
  border: 1px solid rgba(125, 226, 252, 0.35);
  box-shadow: var(--glow-cyan);
}
.cta-band p { max-width: 36rem; margin: 0 auto 1.25rem; }

.page-head { margin-bottom: 1.5rem; }
.lead { font-size: 1.12rem; color: rgba(13, 27, 38, 0.8); max-width: 42rem; }

.content-panel {
  padding: 1.4rem 1.35rem;
  margin-bottom: 1.2rem;
}

.tip-list { padding-left: 1.15rem; }
.tip-list li { margin-bottom: 0.45rem; }

.blog-list { display: grid; gap: 1.25rem; }
.blog-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  overflow: hidden;
}
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.blog-card__body { padding: 1.2rem 1.25rem; }
.blog-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
  color: rgba(13, 27, 38, 0.6);
  margin-bottom: 0.85rem;
}
.category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine-depth);
  margin-bottom: 0.45rem;
}

.form-stack { display: grid; gap: 0.55rem; max-width: 480px; }
.form-stack input,
.form-stack textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(125, 226, 252, 0.45);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: inherit;
  box-shadow: inset 0 0 8px rgba(125, 226, 252, 0.08);
}
.form-stack textarea { min-height: 140px; resize: vertical; }
.form-status { display: none; color: var(--pine-depth); font-weight: 600; }
.form-status.is-visible { display: block; }

.article-header { margin-bottom: 1.5rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  color: rgba(13, 27, 38, 0.6);
  font-size: 0.9rem;
}
.article-content img {
  width: min(100%, 420px);
  border-radius: var(--radius);
  margin: 0 0 1.25rem;
  box-shadow: var(--glow-cyan);
}
.article-content section { margin-bottom: 1.5rem; }
.article-cta {
  padding: 1.35rem;
  margin: 2rem 0 1.25rem;
  text-align: center;
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 600;
}

.not-found { text-align: center; padding-top: 4rem; padding-bottom: 4rem; }
.not-found h1 { font-size: 5rem; color: var(--ice-cyan); text-shadow: var(--glow-cyan); }

.footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.25rem;
  background: var(--lake-deep);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 -8px 32px rgba(125, 226, 252, 0.08);
}
.footer a { color: var(--ice-cyan); }
.footer a:hover { color: var(--lure-amber); }
.footer h3 { color: #fff; font-size: 1.15rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.4rem; }
.footer__inner {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto 1.5rem;
}
.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer__base {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(125, 226, 252, 0.18);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 320px;
  padding: 1rem 1.1rem;
  display: none;
  gap: 0.75rem;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(125, 226, 252, 0.45);
  box-shadow: var(--glow-cyan);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.9rem; }

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.player-modal.is-open { display: flex; }
.player-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 36, 0.78);
}
.player-modal__panel {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: var(--snow-paper);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--glow-cyan), 0 24px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(125, 226, 252, 0.4);
}
.player-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(7, 24, 36, 0.1);
  flex: 0 0 auto;
  background: var(--lake-deep);
}
.player-modal__title {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}
.player-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ice-cyan);
  width: 44px;
  height: 44px;
  text-shadow: 0 0 8px rgba(125, 226, 252, 0.8);
}
.player-modal__frame {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: min(62vh, 560px);
  aspect-ratio: 16 / 10;
  background: #000;
}
.player-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 860px) {
  .features__grid { grid-template-columns: 1fr; }
  .blog-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header__toggle { display: flex; }
  .header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(7, 24, 36, 0.98);
    border-bottom: 1px solid rgba(125, 226, 252, 0.2);
  }
  .header__nav.is-open { display: flex; }
  .header__nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .hero { min-height: auto; padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

@media (max-width: 560px) {
  .player-modal {
    padding: 0;
    align-items: stretch;
  }
  .player-modal__panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .player-modal__frame {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
    height: calc(100dvh - 56px);
  }
}
