/* Màn đố "Ếch Ngồi Đáy Giếng": toàn màn hình, không khung thẻ, nút to cho trẻ. */
* { box-sizing:border-box; margin:0; padding:0; }
[hidden] { display:none !important; }
html, body { height:100%; }
body { font-family:"Segoe UI",system-ui,sans-serif; color:#fff8df; background:#06392e; overflow-x:hidden; }
a { color:inherit; }
.de { min-height:100svh; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }

/* Sân khấu */
.de-stage { position:relative; min-height:0; background:linear-gradient(#8fd6f5,#d8f3ff 60%); overflow:hidden; }
.de-stage svg { display:block; width:100%; height:100%; position:absolute; inset:0; }
.de-sky { transition:opacity .35s; }
.de-moon, .de-night { opacity:0; transition:opacity .35s; pointer-events:none; }
.de-stage.is-night .de-night { opacity:.55; }
.de-stage.is-night .de-moon { opacity:1; }
.de-stage.is-night .de-sun { opacity:0; }
.de-sun { transition:opacity .35s; }
#de-frog { will-change:transform; }
.de-frog-body { transform-box:fill-box; transform-origin:50% 100%; animation:de-breathe 1.6s ease-in-out infinite; cursor:pointer; }
.de-eye { transform-box:fill-box; transform-origin:center; animation:de-blink 3.4s infinite; }
@keyframes de-breathe { 0%,100% { transform:scale(1,1) } 50% { transform:scale(1.05,.94) } }
@keyframes de-blink { 0%,92%,100% { transform:scaleY(1) } 95% { transform:scaleY(.1) } }
.de-party { opacity:0; }
.de-stage.is-out .de-party { opacity:1; }
.de-stage.is-out .de-party circle, .de-stage.is-out .de-party rect { transform-box:fill-box; animation:de-fall 1.8s ease-in infinite; }
.de-party :nth-child(2n) { animation-delay:.35s !important; }
.de-party :nth-child(3n) { animation-delay:.7s !important; }
@keyframes de-fall { from { transform:translateY(-30px) rotate(0) } to { transform:translateY(260px) rotate(320deg); opacity:0 } }
.de-day { position:absolute; left:18px; top:14px; font:700 clamp(30px,5vw,56px) Comfortaa,"Segoe UI",sans-serif; color:#0b4a3a; text-shadow:0 2px 0 #fff8; }
.de-stage.is-night + .de-panel, .de-stage.is-night .de-day { color:#fff8df; text-shadow:none; }

/* Bảng lời */
.de-panel { display:flex; flex-direction:column; justify-content:center; gap:22px; padding:clamp(20px,4vw,56px); text-align:center; align-items:center; }
.de-top { position:absolute; right:14px; top:10px; display:flex; gap:6px; z-index:3; }
.de-top a, .de-top button { min-height:44px; padding:10px 12px; background:transparent; border:0; color:#fff8df; font:700 15px Comfortaa,"Segoe UI",sans-serif; cursor:pointer; text-decoration:none; }
h1, .de-btn, .de-pick, h2 { font-family:Comfortaa,"Segoe UI",sans-serif; font-weight:700; }
.de-kicker { color:#ffd666; font:700 20px Comfortaa,"Segoe UI",sans-serif; }
h1 { font-size:clamp(28px,3.6vw,48px); line-height:1.25; max-width:14em; }
.de-rule { display:flex; gap:28px; justify-content:center; font-size:clamp(20px,2.2vw,28px); font-weight:700; }
.de-rule span { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.de-rule svg { width:34px; height:34px; }
.de-picks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; width:min(520px,100%); }
.de-pick { min-height:104px; border:0; border-radius:26px; background:#ffd666; color:#173f2c; font-size:44px; line-height:1; cursor:pointer; box-shadow:0 7px 0 #b98d1f; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; }
.de-pick small { font-size:16px; }
.de-pick:hover { transform:translateY(-2px); }
.de-pick:active { transform:translateY(5px); box-shadow:0 2px 0 #b98d1f; }
.de-btn { display:inline-flex; align-items:center; justify-content:center; min-height:58px; padding:14px 30px; border-radius:999px; border:0; background:#00c69e; color:#0d3327; font-size:20px; text-decoration:none; cursor:pointer; box-shadow:0 5px 0 #008f73; }
.de-link { min-height:44px; display:inline-flex; align-items:center; background:transparent; border:0; color:#fff8df; font:700 17px Comfortaa,"Segoe UI",sans-serif; text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1px; cursor:pointer; padding:0 8px; }
.de-row { display:flex; flex-wrap:wrap; gap:6px 18px; justify-content:center; }
#de-tell { font:700 clamp(24px,3vw,40px) Comfortaa,"Segoe UI",sans-serif; min-height:1.4em; }
#de-verdict { font-size:clamp(32px,4vw,56px); line-height:1.2; }
#de-verdict.is-right { color:#7ee8c4; }
#de-verdict.is-wrong { color:#ffb3a0; }
.de-why { font-size:19px; line-height:1.7; max-width:24em; }
.de-end-box, .de-ask-box, .de-watch-box { display:flex; flex-direction:column; align-items:center; gap:18px; width:100%; }
#de-share-note { min-height:1.5em; font-size:15px; color:#cfe6da; }
.de-pick:focus-visible, .de-btn:focus-visible, .de-link:focus-visible, .de-top *:focus-visible { outline:3px solid #fff; outline-offset:3px; }

@media (max-width:820px), (orientation:portrait) {
  .de { grid-template-columns:1fr; grid-template-rows:46svh auto; }
  .de-panel { justify-content:flex-start; gap:12px; padding:14px 16px 24px; }
  .de-top { top:auto; bottom:auto; right:6px; top:6px; }
  .de-top a, .de-top button { color:#0b4a3a; }
  .de-day { top:auto; bottom:8px; left:12px; font-size:26px; color:#fff8df; text-shadow:none; }
  .de-ask-box, .de-watch-box, .de-end-box { gap:12px; }
  h1 { font-size:clamp(23px,6.6vw,34px); }
  .de-pick { min-height:86px; font-size:38px; }
  .de-why { font-size:17px; }
}
@media (prefers-reduced-motion:reduce) {
  .de-frog-body, .de-eye, .de-stage.is-out .de-party circle, .de-stage.is-out .de-party rect { animation:none; }
}
