:root{
  --bg:#F6F4FB;
  --surface:#FFFFFF;
  --surface-2:#EDE9F9;
  --ink:#0B0B0E;
  --muted:#5B5766;
  --line:#0B0B0E;
  --accent:#FF3D81;
  --accent-ink:#5A0021;
  --accent-2:#FFC53D;
  --accent-2-ink:#4A3200;
  --accent-3:#6C4CE0;
  --accent-3-ink:#FFFFFF;
  --radius:12px;
  --maxw:1360px;
}
[data-theme="night"]{
  --bg:#15121F;
  --surface:#1F1B2E;
  --surface-2:#272138;
  --ink:#F5F2FF;
  --muted:#A79FC2;
  --line:#F5F2FF;
  --accent:#FF6699;
  --accent-ink:#3A0016;
  --accent-2:#FFD666;
  --accent-2-ink:#3A2900;
  --accent-3:#9C82FF;
  --accent-3-ink:#1E1240;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Manrope',sans-serif;
  transition:background .25s ease, color .25s ease;
}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 28px;}
h1,h2,h3{font-family:'Unbounded',sans-serif; letter-spacing:-0.01em; margin:0;}
.eyebrow{
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  background:var(--accent-2);
  color:var(--accent-2-ink);
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border:2px solid var(--line);
  border-radius:8px;
}
a{color:inherit; text-decoration:none;}

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 24px; border-radius:10px;
  font-size:14px; font-weight:700; cursor:pointer;
  border:2.5px solid var(--line);
  box-shadow:5px 5px 0 var(--line);
  transition:transform .12s ease, box-shadow .12s ease;
  font-family:'Manrope',sans-serif;
}
.btn:active{transform:translate(3px,3px); box-shadow:2px 2px 0 var(--line);}
.btn-primary{background:var(--accent); color:#fff;}
.btn-secondary{background:var(--surface); color:var(--ink);}
button.btn{font-family:'Manrope',sans-serif;}

/* ---------- NAV ---------- */
header{
  position:sticky; top:0; z-index:40;
  background:var(--bg);
  border-bottom:2.5px solid var(--line);
}
nav{display:flex; align-items:center; justify-content:space-between; padding:16px 0;}
.logo{display:flex; align-items:center; gap:10px;}
.logo-mark{
  width:34px; height:34px; border-radius:8px;
  border:2.5px solid var(--line);
  background:var(--accent-3);
  display:grid; grid-template-columns:repeat(2,1fr); gap:3px;
  padding:5px;
}
.logo-mark span:nth-child(1){background:var(--accent);}
.logo-mark span:nth-child(2){background:var(--accent-2);}
.logo-mark span:nth-child(3){background:var(--accent-2);}
.logo-mark span:nth-child(4){background:var(--accent);}
.logo-mark span{border-radius:2px;}
.logo-text{font-family:'Unbounded',sans-serif; font-weight:700; font-size:16px;}
.logo-sub{font-family:'JetBrains Mono',monospace; font-size:10px; color:var(--muted); letter-spacing:0.1em; display:block; margin-top:2px;}

.nav-links{display:flex; align-items:center; gap:8px;}
.nav-links a{
  font-size:14px; font-weight:600; color:var(--ink);
  padding:8px 14px; border-radius:8px; border:2px solid transparent;
}
.nav-links a:hover{border-color:var(--line); background:var(--accent-2);}

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

.logo-img{width:34px; height:34px; border-radius:8px; object-fit:cover; border:2.5px solid var(--line);}

.lang-toggle{
  display:flex; align-items:center; justify-content:center;
  width:40px; height:30px; border-radius:9px;
  border:2.5px solid var(--line);
  background:var(--surface-2);
  font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:700;
  color:var(--ink);
}
.lang-toggle:hover{background:var(--accent-2);}

.theme-toggle{
  position:relative;
  width:56px; height:30px;
  border-radius:9px;
  background:var(--surface-2);
  border:2.5px solid var(--line);
  cursor:pointer;
  padding:0;
}
.theme-toggle .knob{
  position:absolute; top:2px; left:2px;
  width:20px; height:20px; border-radius:5px;
  border:2px solid var(--line);
  background:var(--accent-2);
  transition:transform .2s ease, background .2s ease;
}
[data-theme="night"] .theme-toggle .knob{transform:translateX(24px); background:var(--accent-3);}

.burger{display:none; width:36px; height:36px; border:2.5px solid var(--line); border-radius:8px; background:var(--surface); cursor:pointer; flex-direction:column; align-items:center; justify-content:center; gap:4px;}
.burger span{width:16px; height:2px; background:var(--ink); border-radius:2px;}

.mobile-menu{
  display:none; flex-direction:column; gap:8px;
  border-bottom:2.5px solid var(--line);
  background:var(--bg);
  padding:12px 0 20px;
}
.mobile-menu a{padding:12px 28px; font-size:15px; font-weight:600; color:var(--ink);}
.mobile-menu.open{display:flex;}

/* ---------- HERO ---------- */
.hero{padding:88px 0 110px; overflow:hidden;}
.hero .wrap{display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center;}
.hero h1{font-size:clamp(38px,5.6vw,62px); font-weight:900; line-height:1.04; margin:18px 0 22px;}
.hero p{font-size:17px; color:var(--muted); max-width:480px; line-height:1.6; margin:0 0 32px;}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap;}

.cart-stack{position:relative; height:360px; max-width:340px; margin:0 auto;}
.cart{
  position:absolute;
  width:190px; height:250px;
  border:2.5px solid var(--line);
  border-radius:14px;
  box-shadow:6px 6px 0 var(--line);
  padding:16px;
  display:flex; flex-direction:column; justify-content:space-between;
  transition:transform .3s ease;
}
.cart .cart-label{
  font-family:'JetBrains Mono',monospace;
  font-size:10px; letter-spacing:0.08em; text-transform:uppercase;
  padding:4px 8px; border-radius:6px; border:2px solid var(--line);
  align-self:flex-start;
  background:rgba(255,255,255,0.85);
  color:var(--ink);
}
.cart .cart-title{
  font-family:'Unbounded',sans-serif; font-weight:700; font-size:15px;
  background:rgba(255,255,255,0.85); color:var(--ink);
  padding:4px 8px; border-radius:6px; align-self:flex-start;
}
.cart-1{background:var(--accent-2); top:10px; left:70px; transform:rotate(-8deg); z-index:1;}
.cart-2{background:var(--surface); top:40px; left:10px; transform:rotate(6deg); z-index:2;}
.cart-3{background:var(--accent-3); top:70px; left:110px; transform:rotate(3deg); z-index:3;}
.cart-4{background:var(--accent); top:100px; left:45px; transform:rotate(-4deg); z-index:4;}
.cart-stack:hover .cart{transform:rotate(0deg) translateY(-4px);}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .cart{transition:none;}
}

/* ---------- SECTION SHARED ---------- */
section{padding:88px 0;}
.section-head{display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:44px; flex-wrap:wrap;}
.section-head h2{font-size:clamp(26px,3.2vw,34px); font-weight:900; margin-top:14px;}
.section-head p{color:var(--muted); font-size:15px; max-width:420px; margin:14px 0 0;}

/* page header (blog/legal pages) */
.page-hero{padding:64px 0 40px;}
.page-hero h1{font-size:clamp(30px,4.4vw,46px); font-weight:900; margin-top:14px;}
.page-hero .updated{font-size:13px; color:var(--muted); font-family:'JetBrains Mono',monospace; margin-top:10px;}

/* ---------- GAMES ---------- */
.games-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
.game-card{
  background:var(--surface);
  border:2.5px solid var(--line);
  border-radius:var(--radius);
  box-shadow:6px 6px 0 var(--line);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .15s ease, box-shadow .15s ease;
}
.game-card:hover{transform:translate(-3px,-3px); box-shadow:9px 9px 0 var(--line);}
.game-cover{
  height:180px;
  display:flex; align-items:flex-end;
  padding:16px;
  position:relative;
  border-bottom:2.5px solid var(--line);
}
.game-cover .tag{
  font-family:'JetBrains Mono',monospace;
  font-size:11px; letter-spacing:0.06em;
  padding:5px 10px; border-radius:6px;
  background:var(--ink);
  color:var(--bg);
  text-transform:uppercase;
  border:2px solid var(--line);
}
.game-body{padding:20px; display:flex; flex-direction:column; gap:10px; flex:1;}
.game-body h3{font-size:19px; font-weight:700;}
.game-body p{margin:0; font-size:14px; color:var(--muted); line-height:1.55; flex:1;}
.store-row{display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; padding-top:14px; border-top:2px solid var(--line);}
.store-badge{
  font-size:12px; font-weight:700;
  padding:7px 12px; border-radius:7px;
  border:2px solid var(--line);
  color:var(--ink);
  background:var(--surface-2);
}
.store-badge:hover{background:var(--accent-2);}

/* ---------- TEAM ---------- */
.team-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
.team-card{
  background:var(--surface);
  border:2.5px solid var(--line);
  border-radius:var(--radius);
  box-shadow:5px 5px 0 var(--line);
  padding:24px 18px;
  text-align:center;
  transition:transform .15s ease, box-shadow .15s ease;
}
.team-card:hover{transform:translate(-2px,-2px); box-shadow:7px 7px 0 var(--line);}
.avatar-photo{
  width:64px; height:64px; border-radius:10px;
  margin:0 auto 14px; object-fit:cover;
  border:2.5px solid var(--line);
  display:block;
}
.avatar{
  width:64px; height:64px; border-radius:10px;
  margin:0 auto 14px;
  display:flex; align-items:center; justify-content:center;
  font-family:'Unbounded',sans-serif; font-weight:700; font-size:16px;
  color:#fff;
  border:2.5px solid var(--line);
}
.team-card h3{font-size:15px; font-weight:700;}
.team-card .role{font-size:12px; color:var(--muted); margin-top:4px; font-family:'JetBrains Mono',monospace;}
.team-social{display:flex; justify-content:center; gap:6px; margin-top:14px;}
.team-social a{
  width:28px; height:28px; border-radius:6px;
  border:2px solid var(--line);
  background:var(--surface-2);
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:700; color:var(--ink);
}
.team-social a:hover{background:var(--accent-2);}

/* ---------- CONTACT ---------- */
.contact-box{
  background:var(--accent-3);
  color:var(--accent-3-ink);
  border-radius:20px;
  border:2.5px solid var(--line);
  box-shadow:8px 8px 0 var(--line);
  padding:56px 48px;
  display:flex; justify-content:space-between; align-items:center; gap:32px; flex-wrap:wrap;
}
[data-theme="night"] .contact-box{color:#fff;}
.contact-box h2{font-size:clamp(22px,3vw,30px); font-weight:900;}
.contact-box p{opacity:.85; margin:10px 0 0; font-size:14px;}
.contact-box .btn-primary{background:var(--accent-2); color:var(--accent-2-ink);}

/* ---------- CONTACT FORM PAGE ---------- */
.form-card{
  background:var(--surface);
  border:2.5px solid var(--line);
  border-radius:var(--radius);
  box-shadow:8px 8px 0 var(--line);
  padding:36px;
  max-width:640px;
}
.form-row{margin-bottom:18px; display:flex; flex-direction:column; gap:8px;}
.form-row label{font-size:13px; font-weight:700; font-family:'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:0.04em;}
.form-row input, .form-row textarea, .form-row select{
  padding:13px 14px;
  border-radius:9px;
  border:2.5px solid var(--line);
  background:var(--bg);
  color:var(--ink);
  font-family:'Manrope',sans-serif;
  font-size:15px;
  width:100%;
}
.form-row textarea{resize:vertical; min-height:130px;}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus{outline:none; background:var(--surface-2);}
.form-note{position:absolute; left:-9999px;}
.alert{
  padding:16px 18px; border-radius:9px; border:2.5px solid var(--line);
  font-size:14px; font-weight:600; margin-bottom:24px;
}
.alert-success{background:var(--accent-2); color:var(--accent-2-ink);}
.alert-error{background:var(--accent); color:#fff;}

/* ---------- BLOG ---------- */
.blog-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
.blog-card{
  background:var(--surface);
  border:2.5px solid var(--line);
  border-radius:var(--radius);
  box-shadow:6px 6px 0 var(--line);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .15s ease, box-shadow .15s ease;
}
.blog-card:hover{transform:translate(-3px,-3px); box-shadow:9px 9px 0 var(--line);}
.blog-cover{height:120px; border-bottom:2.5px solid var(--line); display:flex; align-items:flex-end; padding:14px;}
.blog-body{padding:20px; display:flex; flex-direction:column; gap:10px; flex:1;}
.blog-body h3{font-size:18px; font-weight:700;}
.blog-body p{margin:0; font-size:14px; color:var(--muted); line-height:1.55; flex:1;}
.blog-meta{font-size:12px; color:var(--muted); font-family:'JetBrains Mono',monospace;}

.prose{max-width:720px; font-size:16px; line-height:1.75;}
.prose h2, .prose h3{margin:32px 0 14px; font-weight:700;}
.prose p{margin:0 0 18px; color:var(--ink);}
.prose ul, .prose ol{margin:0 0 18px; padding-left:22px;}
.prose a{color:var(--accent); font-weight:700; text-decoration:underline;}

/* ---------- FOOTER ---------- */
footer{border-top:2.5px solid var(--line); background:var(--surface); margin-top:20px;}
.foot-top{
  display:grid;
  grid-template-columns:1.4fr 0.8fr 0.8fr 1.2fr;
  gap:40px;
  padding:64px 0 48px;
  border-bottom:2.5px solid var(--line);
}
.foot-brand .logo{margin-bottom:14px;}
.foot-brand p{font-size:14px; color:var(--muted); line-height:1.6; max-width:280px; margin:0 0 18px;}
.foot-social{display:flex; gap:10px;}
.foot-social a{
  width:36px; height:36px; border-radius:8px;
  border:2px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; color:var(--ink);
  background:var(--surface-2);
}
.foot-social a:hover{background:var(--accent-2);}
.foot-col h3{
  font-family:'JetBrains Mono',monospace; font-size:12px; letter-spacing:0.1em;
  text-transform:uppercase; color:var(--muted); margin-bottom:18px; font-weight:500;
}
.foot-col{display:flex; flex-direction:column; gap:12px;}
.foot-col a{font-size:14px; color:var(--ink); font-weight:600;}
.foot-col a:hover{color:var(--accent);}
.foot-news p{font-size:14px; color:var(--muted); margin:0 0 16px; line-height:1.55;}
.news-form{display:flex; gap:8px;}
.news-form input{
  flex:1; min-width:0;
  padding:12px 14px;
  border-radius:9px;
  border:2.5px solid var(--line);
  background:var(--bg);
  color:var(--ink);
  font-family:'Manrope',sans-serif;
  font-size:14px;
}
.news-form input:focus{outline:none; background:var(--surface-2);}
.news-form button{
  padding:12px 18px; border-radius:9px; border:2.5px solid var(--line);
  background:var(--ink); color:var(--bg);
  font-size:14px; font-weight:700; cursor:pointer; white-space:nowrap;
  box-shadow:4px 4px 0 var(--line);
  transition:transform .12s ease, box-shadow .12s ease;
}
.news-form button:active{transform:translate(3px,3px); box-shadow:0 0 0 var(--line);}
.foot-bottom{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:14px;
  padding:26px 0;
}
.foot-legal{display:flex; gap:24px;}
.copy{font-size:13px; color:var(--muted);}
.foot-legal a{font-size:13px; color:var(--muted);}
.foot-legal a:hover{color:var(--ink);}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px){
  .nav-links{display:none;}
  .burger{display:flex;}
  .hero .wrap{grid-template-columns:1fr;}
  .cart-stack{max-width:280px; height:300px;}
  .games-grid{grid-template-columns:1fr 1fr;}
  .blog-grid{grid-template-columns:1fr 1fr;}
  .team-grid{grid-template-columns:1fr 1fr;}
  .contact-box{flex-direction:column; align-items:flex-start; text-align:left;}
  .foot-top{grid-template-columns:1fr 1fr; row-gap:36px;}
}
@media (max-width:560px){
  .wrap{padding:0 20px;}
  .hero{padding:56px 0 64px;}
  section{padding:64px 0;}
  .games-grid{grid-template-columns:1fr;}
  .blog-grid{grid-template-columns:1fr;}
  .team-grid{grid-template-columns:1fr 1fr;}
  .contact-box{padding:36px 26px;}
  .foot-top{grid-template-columns:1fr; padding:48px 0 36px;}
  .news-form{flex-direction:column;}
  .form-card{padding:24px;}
}

:focus-visible{outline:3px solid var(--accent); outline-offset:2px;}
