/* style.css */

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

:root{
  --bg1:#0f172a;
  --bg2:#1e293b;
  --card:rgba(255,255,255,.07);
  --line:rgba(255,255,255,.12);
  --text:#f8fafc;
  --muted:#cbd5e1;
  --sub:#94a3b8;
  --shadow:0 20px 60px rgba(0,0,0,.32);
}

body{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--text);
  background:#0f172a;
  min-height:100vh;
}

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

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

nav{
  max-width:1100px;
  margin:0 auto;
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

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

.lang-switcher{
  display:flex;
  align-items:center;
  gap:2px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius:999px;
  padding:3px;
}

.lang-btn{
  padding:4px 10px;
  border:none;
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:.15s ease;
}

.lang-btn:hover{
  color:var(--text);
}

.lang-btn.active{
  background:rgba(255,255,255,.15);
  color:var(--text);
}

.share-btn{
  padding:8px 18px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:.2s ease;
}

.share-btn:hover{
  background:rgba(255,255,255,.12);
  transform:translateY(-2px);
}

.qr-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.7);
  backdrop-filter:blur(6px);
  z-index:1000;
  align-items:center;
  justify-content:center;
}

.qr-overlay.active{
  display:flex;
}

.qr-modal{
  position:relative;
  background:var(--bg2);
  border:1px solid var(--line);
  border-radius:24px;
  padding:28px;
  box-shadow:var(--shadow);
}

.qr-modal img{
  display:block;
  width:260px;
  height:260px;
  object-fit:contain;
  border-radius:12px;
}

.qr-close{
  position:absolute;
  top:12px;
  right:14px;
  background:none;
  border:none;
  color:var(--sub);
  font-size:18px;
  cursor:pointer;
  line-height:1;
  transition:.2s;
}

.qr-close:hover{
  color:var(--text);
}

.brand{
  font-size:18px;
  font-weight:800;
  letter-spacing:.08em;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:10px 24px 80px;
}

/* hero */

.hero{
  text-align:center;
  padding:42px 20px 64px;
}

.avatar{
  width:132px;
  height:132px;
  border-radius:50%;
  object-fit:cover;
  margin:0 auto;
  border:4px solid rgba(255,255,255,.14);
  box-shadow:var(--shadow);
}

.hero h1{
  font-size:44px;
  margin-top:20px;
}

.tagline{
  margin-top:12px;
  line-height:1.75;
  color:var(--muted);
  font-size:18px;
}

.socials{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}

.socials a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  transition:.2s ease;
}

.socials a:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,.08);
}

.socials img{
  width:18px;
  height:18px;
  object-fit:contain;
}

/* section */

.section-title{
  font-size:14px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--sub);
  margin-bottom:18px;
}

/* grid */

.games-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
}

.game-card{
  display:block;
  overflow:hidden;
  border-radius:22px;
  border:1px solid var(--line);
  background:var(--card);
  backdrop-filter:blur(12px);
  box-shadow:var(--shadow);

  opacity:0;
  transform:translateY(24px) scale(.98);
}

.game-card.show{
  animation:cardReveal .7s cubic-bezier(.22,1,.36,1) forwards;
}

.game-card:hover{
  transform:translateY(-5px);
}

.card-thumb-wrap{
  position:relative;
}

.card-award{
  position:absolute;
  top:8px;
  right:8px;
  width:32px;
  height:32px;
  filter:drop-shadow(0 1px 4px rgba(0,0,0,0.7));
}

.card-thumb,
.card-thumb-placeholder{
  width:100%;
  aspect-ratio:16/9;
  background:#1e293b;
  object-fit:cover;
  display:flex;
  align-items:center;
  justify-content:center;
}

.card-body{
  padding:18px;
}

.card-title{
  font-size:18px;
  font-weight:800;
  margin-bottom:8px;
}

.card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}

.card-tag{
  font-size:12px;
  padding:2px 8px;
  border-radius:99px;
  background:var(--card);
  border:1px solid var(--border, #e2e8f0);
  color:var(--muted);
  white-space:nowrap;
}

.card-tagline{
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
  line-height:1.5;
}

.card-langs{
  margin-top:8px;
  display:flex;
  gap:4px;
}
.card-langs .fi{
  width:20px;
  height:15px;
  border-radius:2px;
}

.status{
  color:var(--muted);
  padding:20px;
}

.footer{
  margin-top:60px;
  text-align:center;
  color:var(--sub);
  font-size:14px;
}

/* animation */

@keyframes cardReveal{
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

/* mobile */

@media(max-width:700px){

  nav{
    padding:18px;
  }

  .container{
    padding:0 16px 60px;
  }

  .hero h1{
    font-size:34px;
  }

  .tagline{
    font-size:16px;
  }

  .socials a{
    padding:10px 14px;
  }

}
/* =========================
   game.html styles
========================= */

.wrap{
  max-width:920px;
  margin:0 auto;
  padding:10px 24px 80px;
}

.breadcrumb{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:10px 0 20px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--sub);
  font-size:14px;
}

.breadcrumb a:hover{
  color:#fff;
}

article{
  border-radius:28px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(12px);
  box-shadow:var(--shadow);
  padding:38px;
}

.back-home{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:28px;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  transition:.2s ease;
}

.back-home:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,.08);
}

/* markdown */

.md h1{
  font-size:42px;
  line-height:1.2;
  margin-bottom:18px;
}

.md h2{
  font-size:28px;
  margin:42px 0 14px;
}

.md h3{
  font-size:22px;
  margin:30px 0 10px;
}

.md p,
.md li{
  font-size:17px;
  line-height:1.9;
  color:#e2e8f0;
  margin-bottom:14px;
}

.md ul,
.md ol{
  padding-left:24px;
  margin-bottom:16px;
}

.md strong{
  color:#fff;
}

.md a{
  color:#7dd3fc;
}

.md img{
  max-width:100%;
  border-radius:18px;
  margin:20px 0;
  border:1px solid var(--line);
}

.md hr{
  border:none;
  border-top:1px solid var(--line);
  margin:34px 0;
}

.md code{
  background:rgba(255,255,255,.08);
  padding:.2em .45em;
  border-radius:8px;
  font-size:14px;
}

.md pre{
  background:#020617;
  padding:18px;
  border-radius:18px;
  overflow:auto;
  margin:18px 0;
  border:1px solid var(--line);
}

.md pre code{
  background:none;
  padding:0;
}

.md iframe{
  width:100%;
  min-height:520px;
  border-radius:20px;
  border:1px solid var(--line);
  margin:24px 0;
  background:#ddd;
}

/* mobile */

@media(max-width:700px){

  .wrap{
    padding:0 16px 60px;
  }

  article{
    padding:24px;
    border-radius:22px;
  }

  .md h1{
    font-size:30px;
  }

  .md h2{
    font-size:24px;
  }

  .md p,
  .md li{
    font-size:16px;
  }

  .md iframe{
    min-height:320px;
  }

}
.game-launch{
  min-height:420px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:40px 24px;
}

.game-launch-icon{
  font-size:54px;
  line-height:1;
  opacity:.9;
  margin-bottom:26px;
}

.game-launch-title{
  font-size:38px;
  font-weight:800;
  margin-bottom:14px;
}

.game-launch-sub{
  font-size:17px;
  color:var(--muted);
  margin-bottom:28px;
}

.game-launch button{
  padding:14px 30px;
  border:none;
  border-radius:999px;
  background:#38bdf8;
  color:#fff;
  font-size:18px;
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
}

.game-launch button:hover{
  transform:translateY(-2px);
}

.game-embed iframe{
  width:100%;
  min-height:520px;
  border:none;
  display:block;
}

@media(max-width:700px){

  .game-launch{
    min-height:300px;
    padding:30px 18px;
  }

  .game-launch-icon{
    font-size:42px;
    margin-bottom:18px;
  }

  .game-launch-title{
    font-size:28px;
  }

  .game-launch-sub{
    font-size:15px;
  }

  .game-launch button{
    font-size:16px;
    padding:12px 24px;
  }

  .game-embed iframe{
    min-height:340px;
  }
}