@import url("./styles/game.css");
@import url("./styles/kart.css");
@import url("./styles/learning.css");

:root {
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: #354d43;
  background: #f7f4eb;
  font-synthesis: none;
  --ink: #354d43;
  --moss: #dcebb8;
  --paper: #fffcf5;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .5; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, canvas:focus-visible { outline: 3px solid #477f84; outline-offset: 5px; }
button svg { flex-shrink: 0; }
button { border: 0; }
[hidden] { display: none !important; }
.home-shell { max-width: 1220px; margin: auto; padding: 0 56px; }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #dfe3d6; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-size: 30px; font-weight: 850; letter-spacing: -1.5px; min-height: 64px; }
.brand-light { font-weight: 500; }
.brand-wordmark { display: flex; flex-wrap: wrap; align-items: baseline; line-height: 1; }
.brand-subtitle { flex-basis: 100%; margin-top: 6px; font-size: 12px; font-weight: 750; letter-spacing: 1px; }
.header-right { display: flex; align-items: center; gap: 22px; }
.made-for { font-size: 12px; color: #667467; }
.icon-button { min-width: 52px; min-height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eeeee2; border: 1px solid #d8dece; }
.icon-button:hover { background: #dce6cd; }
.home-main { max-width: 1010px; margin: auto; }
.welcome-copy { padding: 32px 0 30px; position: relative; }
.welcome-copy::after { content: ""; position: absolute; width: 220px; height: 220px; right: 2%; top: 24px; border: 1px dashed #c3cfb2; border-radius: 50%; z-index: -1; box-shadow: 0 0 0 34px #eceddf, 0 0 0 35px #e4e8d8; }
.welcome-tag { display: flex; gap: 7px; align-items: center; color: #607355; font-size: 10px; font-weight: 800; letter-spacing: 2px; margin-bottom: 18px; }
.welcome-copy h1 { font-size: clamp(34px, 3.6vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -2px; margin: 0 0 12px; }
.welcome-copy h1 span { color: #738a62; }
.welcome-copy p { font-size: 15px; line-height: 1.8; margin: 0; color: #6a7569; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.section-heading h2 { font-size: 20px; letter-spacing: -.5px; margin: 0; }
.section-heading > span { font-size: 11px; color: #707c6d; }
.adventure-card { text-align: left; width: 100%; padding: 0; border-radius: 24px; background: var(--paper); border: 1px solid #d4dfcb; overflow: hidden; box-shadow: 0 6px 0 #e1e4d7, 0 15px 40px #46563909; transition: transform .18s, box-shadow .18s; }
.adventure-card:hover { transform: translateY(-3px); box-shadow: 0 9px 0 #dce3d0, 0 20px 40px #46563912; }
.card-landscape { height: 255px; position: relative; background: #c6e7dc; overflow: hidden; }
.card-landscape canvas { width: 100%; height: 100%; display: block; }
.game-badge { position: absolute; top: 22px; left: 24px; display: flex; align-items: center; gap: 6px; border-radius: 20px; padding: 9px 12px; background: #fffcf2e8; font-weight: 800; font-size: 9px; letter-spacing: 1.2px; color: #526444; }
.scene-label { position: absolute; bottom: 18px; left: 24px; background: #344f417d; color: #fff9e9; border-radius: 20px; padding: 7px 12px; font-size: 10px; letter-spacing: .3px; }
.card-content { padding: 25px 28px 27px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.game-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 9px; font-weight: 800; letter-spacing: 1.3px; color: #6d795b; }
.tag-learning { font-size: 10px; letter-spacing: 0; background: #eff0df; border-radius: 20px; padding: 4px 9px; font-weight: 500; }
.card-content h3 { font-size: 29px; letter-spacing: -1px; margin: 9px 0 6px; }
.card-content p { font-size: 12px; margin: 0; color: #6c7869; line-height: 1.6; }
.card-play { display: flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 9px; padding: 0 25px; min-height: 64px; border-radius: 20px; background: #dceab7; color: #3c5536; border: 1px solid #c6d89c; box-shadow: 0 4px 0 #c5d5a5; font-size: 16px; font-weight: 800; }
.collection-note { margin: 30px 0 36px; display: flex; align-items: center; justify-content: center; gap: 16px; color: #78816c; }
.collection-note p { font-size: 11px; line-height: 1.7; margin: 0; }
.collection-note strong { font-weight: 500; color: #8a907e; }
.note-doodle { color: #b9a16c; transform: rotate(-15deg); }
.note-trail { font-size: 28px; letter-spacing: 6px; color: #a4af94; }
.home-footer { min-height: 78px; padding: 20px 0; border-top: 1px solid #dfe3d6; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 10px; color: #7d8575; }
.home-footer > span:first-child { display: flex; align-items: center; gap: 7px; }
.local-progress { width: 100%; text-align: center; }
.system-notice { position: fixed; bottom: 10px; left: 10px; right: 10px; max-width: 760px; margin: auto; display: flex; align-items: center; gap: 12px; background: #fff6db; border: 2px solid #b89a56; border-radius: 14px; padding: 12px 16px; font-size: 13px; z-index: 20; box-shadow: 0 4px 20px #0002; }
.system-notice button { min-width: 64px; min-height: 48px; background: #e8ddb9; border-radius: 10px; padding: 8px; }
@media (max-width: 650px) {
  .home-shell { padding: 0 22px; }
  .site-header { height: 86px; }
  .brand { font-size: 26px; gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .made-for { display: none; }
  .welcome-copy { padding: 24px 0; }
  .welcome-copy::after { width: 100px; height: 100px; right: 0; top: 60px; }
  .welcome-copy h1 { font-size: 32px; letter-spacing: -1.6px; }
  .welcome-copy p { font-size: 13px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading > span { display: none; }
  .card-landscape { height: 200px; }
  .card-content { padding: 22px 20px; flex-wrap: wrap; gap: 18px; }
  .card-content h3 { font-size: 27px; }
  .card-play { width: 100%; border-radius: 16px; }
  .game-badge { left: 16px; top: 16px; }
  .scene-label { left: 16px; }
  .home-footer { justify-content: center; text-align: center; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .collection-note { gap: 10px; }
  .note-trail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
