﻿*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary:      #1A1235;
  --bg-secondary:    #27205A;
  --accent-primary:  #A882DC;
  --accent-secondary:#7A55C0;
  --text-primary:    #F6F3FF;
  --text-secondary:  #CABFE8;
  --button-primary:  #822038;
  --button-hover:    #9E2845;
  --gradient-start:  #7A55C0;
  --gradient-end:    #A882DC;
  --shadow-color:    rgba(8, 4, 18, 0.55);
  --border-color:    rgba(168, 130, 220, 0.4);
  --border-subtle:   rgba(246, 243, 255, 0.15);
  --font-body:       'Outfit', sans-serif;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.star {
  position: absolute;
  background-color: #FFF;
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle 5s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0.3; }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  z-index: 100;
  transition: all 0.3s ease;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

header.scrolled {
  background: var(--bg-secondary);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  height: 50px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 70vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(114, 48, 196, 0.55) 0%, rgba(26, 18, 53, 0.88) 100%);
  z-index: -1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
  line-height: 1.2;
  text-shadow: 0 0 10px var(--shadow-color);
}

.hero p {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  max-width: 700px;
  color: var(--text-secondary);
}

.static-text {
  color: var(--text-primary);
}

.typewriter {
  position: relative;
  display: inline-block;
  color: var(--accent-primary);
  font-weight: 900;
  min-height: 1.2em;
}

.typewriter::after {
  content: "|";
  position: absolute;
  right: -8px;
  top: 0;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.cta-button {
  display: inline-block;
  background-color: var(--button-primary);
  color: var(--text-primary);
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-color);
  background-color: var(--button-hover);
}

.section.dark-bg {
  background-color: var(--bg-primary);
  padding: 6rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

.game-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.game-card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px var(--shadow-color);
}

.game-card--featured {
  flex-direction: row;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 0 1px rgba(181, 21, 43, 0.12), 0 12px 40px rgba(10, 5, 20, 0.8);
}

.game-card--featured .game-card__art {
  flex: 0 0 45%;
  min-height: 280px;
}

.game-card--featured .game-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
}

.game-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent-primary);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3em 0.85em;
  border-radius: 100px;
  z-index: 2;
}

.game-card__badge--live {
  background: #1a6b3a;
}

.game-card__art {
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.3);
}

.game-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card__art img {
  transform: scale(1.03);
}

.game-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.game-card__body h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--accent-primary);
}

.game-card__status {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.game-card__body p:not(.game-card__status) {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.game-card__body .cta-button {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  align-self: flex-start;
}

.game-card__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.game-card__platforms {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.platform-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.platform-link:hover {
  background: rgba(168, 130, 220, 0.3);
  color: var(--text-primary);
}

.platform-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.game-card:not(.game-card--featured) .game-card__art {
  height: 260px;
}

.about {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  border-radius: 2px;
}

.about-content {
  background-color: var(--bg-secondary);
  padding: 2.5rem 8rem;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.about-content::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, var(--accent-primary), transparent);
  z-index: -1;
  filter: blur(20px);
  opacity: 0.3;
}

.angular-decor {
  position: absolute;
  width: 100px;
  height: 100px;
  border-style: solid;
  border-width: 3px;
  border-color: var(--accent-primary) transparent transparent var(--accent-primary);
  opacity: 0.5;
}

.decor-top-left {
  top: 20px;
  left: 20px;
  transform: rotate(-45deg);
}

.decor-bottom-right {
  bottom: 20px;
  right: 20px;
  transform: rotate(135deg);
}

footer {
  background-color: #110D28;
  color: var(--text-primary);
  padding: 3rem 2rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
  display: block;
}

.footer-info {
  flex: 1;
  min-width: 260px;
}

.footer-info p {
  color: var(--text-secondary);
  max-width: 340px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-column {
  min-width: 140px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.copyright {
  font-size: 0.82rem;
  color: #888;
}

.footer-supporters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-supporter__logo {
  height: 75px;
  opacity: 0.35;
  filter: grayscale(20%);
  transition: opacity 0.3s ease;
}

.footer-supporter__logo:hover {
  opacity: 0.6;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s, background 0.2s;
}

.social-icon:hover,
.social-icon:focus-visible {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: rgba(100,13,28,0.18);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.legal-link {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: #888;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
  text-decoration: none;
  transition: color 0.15s;
}

.legal-link:hover {
  color: var(--text-primary);
}

.legal-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 900;
}

.legal-modal[hidden] { display: none; }

.legal-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.legal-modal__card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  padding: 2rem 2rem 1.75rem;
  max-width: 520px;
  width: calc(100% - 2rem);
  max-height: 80vh;
  overflow-y: auto;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  opacity: 0.7;
  transition: opacity 0.15s;
  padding: 0.1rem 0.3rem;
}

.legal-modal__close:hover { opacity: 1; }

#legal-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  padding-right: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#legal-modal-body p + p { margin-top: 0.6rem; }

#legal-modal-body a {
  color: var(--accent-primary);
  text-decoration: none;
}

#legal-modal-body a:hover { text-decoration: underline; }

.mt-notice {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 300px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  padding: 1rem 2.5rem 1rem 1.1rem;
  z-index: 998;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.mt-notice[hidden] { display: none; }

.mt-notice__header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

.mt-notice__icon { flex-shrink: 0; }

.mt-notice__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mt-notice__text {
  margin-bottom: 0.5rem;
  font-style: italic;
}

.mt-notice__text a {
  color: var(--accent-primary);
  text-decoration: none;
}

.mt-notice__text a:hover { text-decoration: underline; }

.mt-notice__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1em 0.25em;
  border-radius: 4px;
  transition: color 0.15s;
}

.mt-notice__close:hover { color: var(--text-primary); }

.mt-notice__noshow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 0.5rem;
  padding-right: 1.5rem;
}

.mt-notice__noshow input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 13px;
  height: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

#cookie-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 320px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  padding: 1.1rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 999;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

#cookie-bar.is-hidden { display: none; }

.cookie-popup {
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  padding: 0.85rem 1rem;
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--text-secondary);
  box-sizing: border-box;
}

.cookie-popup[hidden] { display: none; }

.cookie-popup code {
  font-size: 0.72rem;
  color: var(--accent-primary);
}

.cookie-bar__header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.cookie-bar__header p {
  flex: 1;
  margin: 0;
}

.legal-toggle {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--accent-primary);
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.legal-toggle:hover { opacity: 1; }

.cookie-bar__actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4em 1.1em;
  border-radius: 100px;
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  background: none;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s;
}

.cookie-btn--accept {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.cookie-btn--accept:hover { background: var(--button-hover); border-color: var(--button-hover); }
.cookie-btn--decline:hover { border-color: var(--accent-primary); }

.lang-picker {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  font-family: var(--font-body);
  font-size: 14px;
}

.lang-picker__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(29, 20, 43, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.45em 0.9em 0.45em 0.7em;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.lang-picker__btn:hover { border-color: var(--accent-primary); }

.lang-picker__flag {
  width: 26px;
  height: 19px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.lang-picker__chevron {
  width: 11px;
  height: 11px;
  fill: currentColor;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.lang-picker.is-open .lang-picker__chevron { transform: rotate(180deg); }

.lang-picker__panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  list-style: none;
  padding: 0.5rem;
  min-width: 180px;
  max-height: 280px;
  overflow-y: auto;
}

.lang-picker.is-open .lang-picker__panel { display: block; }

.lang-picker__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.52em 0.85em;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  transition: background 0.15s;
  white-space: nowrap;
}

.lang-picker__option:hover,
.lang-picker__option.is-active {
  background: rgba(100, 13, 28, 0.25);
}

.lang-picker__option .fi {
  width: 26px;
  height: 19px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

@media screen and (max-width: 900px) {
  .game-card--featured {
    flex-direction: column;
  }

  .game-card--featured .game-card__art {
    flex: none;
    height: 240px;
  }

  .game-card--featured .game-card__body {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-secondary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    z-index: 105;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 1.25rem 0;
    margin-left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-heading,
  .section-title {
    font-size: 2rem;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .lang-picker {
    top: auto;
    bottom: 5.5rem;
    right: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .cta-button {
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
  }

  .mt-notice {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 1rem;
    max-width: none;
  }

  #cookie-bar {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
  }
}
