/* Site-level pieces shared by the light-themed pages: content sections,
   game cards, FAQ, footer, contact form and simple content pages. */

a { color: var(--accent-dark); }
@media (prefers-color-scheme: dark) { a { color: #ff9b74; } }

/* ---------- SEO / content section under the games ---------- */
.seo {
  margin-top: 36px; padding: 22px 20px; border-radius: 18px;
  background: var(--card); box-shadow: var(--shadow); line-height: 1.6;
}
.seo h1 { margin: 0 0 8px; font-size: 26px; font-weight: 900; line-height: 1.2; }
.seo h2 { margin: 26px 0 8px; font-size: 20px; font-weight: 900; }
.seo h2:first-child { margin-top: 0; }
.seo p, .seo li { font-weight: 600; color: var(--text); }
.lead { font-size: 16px; color: var(--muted); font-weight: 700; }
.seo .lead { color: var(--text); opacity: .85; }
.more { margin: 22px 0 0; }

.ticks, .steps { padding-left: 0; list-style: none; margin: 8px 0; }
.ticks li, .steps li { position: relative; padding: 4px 0 4px 30px; }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; background: var(--accent);
}
.steps { counter-reset: step; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; background: var(--accent2);
}

.faq { border-top: 1px solid var(--line); padding: 2px 0; }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 12px 28px 12px 0; position: relative; font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 8px; font-size: 22px; font-weight: 900; color: var(--accent);
  transition: transform .25s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 14px; color: var(--muted); }

.game-cards { display: grid; gap: 10px; margin: 18px 0 8px; }
.game-card {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px;
  text-decoration: none; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s;
}
.game-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gc-icon {
  flex: none; width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 900; color: #fff; font-size: 18px;
}
.gc-2048 { background: linear-gradient(135deg, #a07cff, #7c5cf2); font-size: 15px; }
.gc-sudoku { background: linear-gradient(135deg, #ff9a5b, #ff5d8f); font-size: 26px; }
.gc-casino { background: radial-gradient(circle at 30% 30%, #3a1470, #07040f); color: #ff2bd6; text-shadow: 0 0 8px #ff2bd6; font-size: 26px; }
.gc-text b { display: block; font-size: 16px; }
.gc-text small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; line-height: 1.4; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 30px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; line-height: 1.5; }

/* ---------- Simple content pages ---------- */
.page h1 { margin: 6px 0 8px; font-size: 40px; font-weight: 900; letter-spacing: -1px; line-height: 1.1; }
.page .lead { margin: 0 0 20px; }
.prose { line-height: 1.65; }
.prose h2 { margin: 26px 0 6px; font-size: 20px; font-weight: 900; }
.prose p { font-weight: 600; }
.fine { font-size: 12px; color: var(--muted); font-weight: 700; }

/* ---------- Contact form ---------- */
.form-card {
  display: block; padding: 22px 20px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow);
  animation: panelIn .45s cubic-bezier(.2, .9, .3, 1);
}
.form-card[hidden] { display: none; }
.grid2 { display: grid; gap: 0 14px; }
@media (min-width: 480px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-weight: 700; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-weight: 800; font-size: 14px;
  color: #b42318; background: #fde7e7;
}
@media (prefers-color-scheme: dark) { .form-error { color: #ffb4ad; background: #4a1d1f; } }
.form-error[hidden] { display: none; }
#contact-form .btn { width: 100%; justify-content: center; padding: 13px; font-size: 16px; }

#contact-done { text-align: center; }
#contact-done h2 { margin: 6px 0; font-size: 24px; font-weight: 900; }
#contact-done p { color: var(--muted); font-weight: 700; margin: 0 0 18px; }
.done-icon {
  width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center;
  font-size: 32px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #43c6ac, #2fb67c);
  animation: pop 400ms ease;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-top: 10px; }
.nf-tiles { display: flex; justify-content: center; gap: 10px; margin: 10px 0 18px; }
.nf-tiles span {
  width: 74px; height: 74px; border-radius: 14px; display: grid; place-items: center;
  font-size: 40px; font-weight: 900; color: #fff; background: #ff9d5c; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .1);
  animation: appear .4s cubic-bezier(.2, 1.4, .5, 1) backwards;
}
.nf-tiles span:nth-child(2) { background: #f7c548; animation-delay: .08s; }
.nf-tiles span:nth-child(3) { background: #ff5c64; animation-delay: .16s; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.nf-links .btn { text-decoration: none; }
.btn { text-decoration: none; }
