/* dk-games — shared design tokens */

:root {
  --bg: #f5ecdb;
  --bg-soft: #fdf6e8;
  --ink: #3a2418;
  --ink-soft: #6a4f3d;
  --line: rgba(58, 36, 24, 0.16);
  --accent: #d97a3c;
  --accent-deep: #a8521e;
  --accent-soft: #f0b878;
  --success: #4d8b4f;
  --danger: #c1454a;
  --shadow: 0 12px 32px rgba(58, 36, 24, 0.18);

  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "SUIT", "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); }
a:hover { text-decoration: underline; }

button {
  font: inherit;
  cursor: pointer;
}

.app-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(217, 122, 60, 0.34);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.hero {
  background: linear-gradient(140deg, #fff5e1 0%, #ffe0bd 100%);
  padding: 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.game-card.locked {
  opacity: 0.5;
  pointer-events: none;
}

.game-card-icon {
  font-size: 1.7rem;
}

.game-card-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.game-card-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.game-card-best {
  font-size: 0.78rem;
  color: var(--accent-deep);
  font-weight: 700;
}

.site-footer {
  margin-top: 56px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.site-footer a { color: var(--accent-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .app-shell { padding: 22px 16px 60px; }
  .hero { padding: 24px; }
  .hero h1 { font-size: 1.5rem; }
}
