:root{
  --bg: #9ad3ff;
  --cloud: #ffffff;
  --accent: #ffb347;
  --hud: rgba(255,255,255,0.9);
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial; background:linear-gradient(#cfeefe,var(--bg)); min-height:100vh}
.app{max-width:900px;margin:0 auto;padding:20px}
.screen{display:flex;flex-direction:column;align-items:center;gap:16px}
.hidden{display:none}
h1{margin:8px 0}
.characters{display:flex;gap:16px}
.char-btn{background:var(--hud);border:2px solid #fff;padding:8px;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;transition:transform .12s}
.char-btn:hover{transform:translateY(-4px)}
.char-btn img{width:96px;height:96px}

.hud{display:flex;flex-direction:column;gap:8px;padding:12px;background:linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));border-radius:8px}
.hud .level,.hud .question{font-weight:700}

#game-screen .game-area{display:flex;gap:16px;align-items:flex-start}
.sidebar{width:300px;display:flex;flex-direction:column;align-items:stretch}
.answers{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.answer-btn{padding:8px 10px;border-radius:8px;border:none;background:var(--accent);color:#fff;font-weight:800;cursor:pointer;font-size:20px}
.answer-btn.cheat{box-shadow:0 0 0 6px rgba(255,179,71,0.18), 0 8px 20px rgba(0,0,0,0.12);background:#ffd27a;transform:scale(1.04);}
/* sky: 3 columns x 3 rows for mobile-friendly layout */
#sky{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,100px);gap:14px;position:relative;flex:1;height:auto;border-radius:12px;overflow:visible;background:transparent;min-width:0;padding:12px}

/* cloud base styles (grid children) */
.cloud{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:140px;height:72px;background:rgba(255,255,255,0.0);border-radius:14px;box-shadow:0 10px 20px rgba(17,24,39,0.12);margin:0 auto;overflow:visible;background-image:url('/assets/clouds/cloud.svg');background-size:contain;background-position:center}
.cloud img{display:none}
.cloud .cloud-label{position:absolute;bottom:8px;right:10px;background:rgba(255,255,255,0.85);padding:4px 8px;border-radius:10px;font-weight:700;z-index:5}

/* entrance animation */
.cloud{opacity:0;transform:translateY(12px) scale(0.98);transition:opacity .36s ease, transform .36s cubic-bezier(.2,.8,.2,1)}
.cloud.show{opacity:1;transform:none}

/* player positioning so it appears above the cloud */
.player{position:absolute;width:64px;height:64px;left:50%;bottom:46px;transform:translate(-50%,0);z-index:20;pointer-events:none}
.player img{width:100%;height:100%;display:block}

@media (max-width:820px){
  .app{padding:12px}
  .cloud{width:120px;height:64px}
  .char-btn img{width:72px;height:72px}
  .game-area{flex-direction:column}
  .sidebar{width:100%}
}
