/* Prima Canzonetta — White Glass Peach v3 */
:root {
  --bg:#ffffff;--text:#111111;--muted:#666666;
  --max:500px;--logo-w:500px;--logo-h:500px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{

height: auto;
  min-height: 100%;
  overflow-y: auto;

  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  font-size:16px;
}
.container{max-width:var(--max);margin:0 auto;padding:28px;min-height:100vh}
.header{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:12px}
.brand{display:flex;align-items:center;gap:12px}
.logo img{width:56px;height:56px;object-fit:contain;;display:block;box-shadow:0 10px 30px rgba(255,255,255,255)}
.title{font-weight:600;color:var(--text);letter-spacing:0.02em}
.subtitle{font-size:13px;color:var(--muted)}
.nav{display:flex;gap:18px;align-items:center}
.nav a{text-decoration:none;color:var(--muted);padding:8px 10px;border-radius:999px;transition:all 260ms ease;font-weight:600}
.nav a:hover{color:var(--text);background:rgba(0,0,0,0.04);transform:translateY(-2px);}
.menu-pill{display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,0.7);backdrop-filter:blur(10px);border:1px solid rgba(0,0,0,0.04);cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,0.06)}
.menu-pill span{font-weight:600;color:var(--text)}
footer{margin-top:40px;color:#777;font-size:13px;padding:28px 0;border-top:1px solid rgba(0,0,0,0.03);text-align:center;opacity:0;transform:translateY(10px);transition:opacity 520ms ease,transform 520ms ease}
footer.visible{opacity:1;transform:translateY(0);}
.overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:9999;opacity:0;pointer-events:none;transition:opacity 360ms ease}
.overlay.open{opacity:1;pointer-events:auto}
.overlay-panel{width:100%;height:100%;background:rgba(255,255,255,0.6);backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:center}
.overlay-panel nav{display:flex;flex-direction:column;gap:18px;align-items:center}
.overlay-panel nav a{font-weight:700;color:var(--text);font-size:22px;text-decoration:none}
.fade-up{opacity:0;transform:translateY(8px);transition:opacity 520ms ease,transform 520ms ease}
.fade-up.in{opacity:1;transform:translateY(0)}
@media(max-width:900px){.container{padding:20px}}
@media(max-width:600px){
  .nav{display:none}
  .menu-pill{display:flex}
  .container{padding:16px}
}

/* 🎮 Game area */
.game-section{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  margin:40px 0;
  padding:20px;
  background:rgba(255,255,255,255);
  backdrop-filter:blur(10px);
  box-shadow:0 10px 30px rgba(0,0,0,0.04);
}
#gameCanvas{
  display:block;
  background:#f7f7f7;
  border-radius:12px;
  box-shadow:inset 0 2px 8px rgba(0,0,0,0.06);
  width:100%;
  max-width:600px;
  height:auto;
}
.hint{
  font-size:14px;
  color:var(--muted);
  margin-top:12px;
}

.game-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

canvas#gameCanvas {
  width: 100%;
  max-width: 600px;
  height: auto;         /* let it scale responsively */
  aspect-ratio: 3 / 4;  /* keeps proportions similar to 600x800 */
  border-radius: 12px;
  background: linear-gradient(#f9f9f9, #f0f0f0);
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  display: block;
}

.hint {
  margin-top: 12px;
  color: #777;
  font-size: 13px;
}

/* Make footer visible and spaced from game */
footer {
  margin-top: 60px;
  color: #777;
  font-size: 13px;
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  opacity: 1; /* Ensure it's visible */
}