@font-face { font-family: "Baloo 2"; src: url(../fonts/baloo2.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0B2E6B; font-family: "Baloo 2", system-ui, sans-serif; color: #fff;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
body { display: flex; align-items: center; justify-content: center; position: fixed; inset: 0; }
#game { display: block; background: #2A86D6; opacity: 0; transition: opacity .5s; touch-action: none; }
body.ready #game { opacity: 1; }
#splash { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(#2A86D6, #C3E6F8); transition: opacity .5s; pointer-events: none; }
#splash b { font-size: min(18vw, 120px); line-height: 1; color: #2EC4B6; -webkit-text-stroke: 10px #fff; paint-order: stroke fill; }
#splash span { font-size: 22px; font-weight: 700; color: #0E4E86; }
body.ready #splash { opacity: 0; }
#rotate { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 18px; background: #0B2E6B; z-index: 30; text-align: center; padding: 24px; font-size: 26px; font-weight: 700; }
#rotate svg { width: 120px; height: 120px; animation: tilt 2s ease-in-out infinite; }
@keyframes tilt { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
body.portrait #rotate { display: flex; }
#parents { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; background: rgba(6, 30, 70, .72); padding: 16px; touch-action: auto; }
#parents.open { display: flex; }
#parents .card { background: #fff; color: #12355C; border-radius: 28px; width: min(680px, 100%); max-height: 100%; overflow: auto; padding: 22px 26px 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); user-select: text; -webkit-user-select: text; }
#parents h2 { margin: 0 0 4px; font-size: 30px; color: #138A80; }
#parents p { margin: 6px 0 12px; font-size: 16px; line-height: 1.4; font-weight: 500; }
#parents .rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
#parents label { display: flex; align-items: center; gap: 10px; background: #EAF5FC; border-radius: 16px; padding: 10px 14px; font-size: 19px; font-weight: 700; cursor: pointer; }
#parents input { width: 26px; height: 26px; accent-color: #2EC4B6; }
#parents .stats { display: flex; gap: 22px; font-size: 17px; font-weight: 600; margin: 8px 0 14px; }
#parents .btns { display: flex; gap: 12px; flex-wrap: wrap; }
#parents button { font: 700 19px "Baloo 2", system-ui, sans-serif; border: 0; border-radius: 16px; padding: 10px 20px; cursor: pointer; }
#parents-close { background: #2EC4B6; color: #fff; }
#reset { background: #FFE3E0; color: #B3261E; }
@media (max-height: 420px) { #parents .rows { grid-template-columns: repeat(3, 1fr); } #parents p { font-size: 14px; } }
