:root {
  --teal: #2dbfb2;
  --teal-dark: #1c8a81;
  --ink: #2f3436;
  --muted: #697175;
  --line: #e4eeed;
  --bg: #ffffff;
  --soft: #f2faf9;
  --cream: #fbf3e4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--teal-dark); }
img { max-width: 100%; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.site-header img { height: 42px; display: block; }
.site-header nav a { margin-left: 22px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.site-header nav a:hover { color: var(--teal-dark); }

/* hero */
.hero { background: var(--soft); text-align: center; padding: 40px 16px 56px; }
.hero .art { max-width: 960px; margin: 0 auto 36px; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(28,138,129,.12); }
.hero .art img { width: 100%; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.hero .logo { width: min(360px, 72%); display: block; margin: 0 auto; }
.hero .tagline { font-size: 20px; color: var(--muted); max-width: 640px; margin: 20px auto 0; }

/* sections */
main section { max-width: 1040px; margin: 0 auto; padding: 64px 16px 8px; }
main section:last-of-type { padding-bottom: 72px; }
h2 { font-size: 28px; margin: 0 0 20px; color: var(--teal-dark); letter-spacing: -.01em; }
.lead { font-size: 17px; max-width: 760px; margin: 0 0 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--cream); border-radius: 18px; padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: #4c5457; }

.info { width: 100%; border-collapse: collapse; }
.info th, .info td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info th { width: 34%; color: var(--muted); font-weight: 600; }

/* footer */
.site-footer { background: var(--ink); color: #c9d1d3; font-size: 14px; }
.site-footer .inner { max-width: 1040px; margin: 0 auto; padding: 28px 16px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer a { color: #9fe3dc; text-decoration: none; margin-left: 18px; }
.site-footer a:first-child { margin-left: 0; }

/* legal pages */
.legal { max-width: 800px; margin: 0 auto; padding: 48px 16px 72px; }
.legal h1 { font-size: 30px; color: var(--teal-dark); margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; color: var(--ink); }

.notfound { text-align: center; padding: 96px 16px; }
.notfound img { width: 120px; }

@media (max-width: 600px) {
  .site-header img { height: 34px; }
  .site-header nav a { margin-left: 14px; font-size: 14px; }
  .hero { padding: 24px 16px 40px; }
  .hero .art { border-radius: 16px; margin-bottom: 28px; }
  .hero .tagline { font-size: 17px; }
  main section { padding-top: 48px; }
  h2 { font-size: 24px; }
  .info th, .info td { display: block; width: 100%; padding: 4px 0; border: 0; }
  .info tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .site-footer .inner { flex-direction: column; text-align: center; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* games */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.game { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 2px 0 var(--line), 0 10px 30px rgba(28,138,129,.08); transition: transform .3s ease, box-shadow .3s ease; }
.game:hover { transform: translateY(-6px); box-shadow: 0 2px 0 var(--line), 0 18px 40px rgba(28,138,129,.16); }
.game .shot { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.game .shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.game:hover .shot img { transform: scale(1.05); }
.badge { position: absolute; top: 14px; left: 14px; background: var(--teal); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em;
  padding: 6px 14px; border-radius: 999px; box-shadow: 0 3px 0 #1f9a8f; animation: badge 2.4s ease-in-out infinite; }
@keyframes badge { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.game .body { padding: 20px 22px 24px; }
.game .genre { font-size: 13px; font-weight: 700; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .08em; }
.game h3 { margin: 4px 0 8px; font-size: 22px; }
.game h3 span { color: var(--muted); font-weight: 600; font-size: 17px; margin-left: 4px; }
.game p { margin: 0 0 14px; color: #4c5457; }
.platforms span { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--cream); border-radius: 8px; padding: 3px 10px; margin-right: 6px; }
@media (max-width: 600px) { .games { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .badge { animation: none; } .game, .game .shot img { transition: none; } }
