:root{
  --bg0:#0b1020;
  --bg1:#131a33;
  --ink:#f4f7ff;
  --muted:#b9c2ea;
  --card:#101734;
  --card2:#0f1530;
  --accent:#78e7a5;
  --accent2:#ff7bd1;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 600px at 30% 0%, #18235a 0%, rgba(24,35,90,0) 70%),
    radial-gradient(900px 500px at 90% 30%, #2a1b5a 0%, rgba(42,27,90,0) 70%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  color:var(--ink);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:20px;
  overflow-y:auto;
}

.wrap{
  width:min(980px, 100%);
  display:grid;
  gap:12px;
}

.top, .bottom{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border:1px solid rgba(255,255,255,0.10);
  border-radius:14px;
  padding:12px 14px;
}

.title{
  font-weight:800;
  letter-spacing:0.3px;
  font-size:18px;
}
.hint{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}
.small{
  color:var(--muted);
  font-size:12px;
}

.gameShell{
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.10);
  border-radius:16px;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:center;
}

canvas{
  /* Size is set in JS to an integer scale (crisp pixels/text). */
  width:auto;
  height:auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border-radius:12px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  outline:1px solid rgba(255,255,255,0.10);
  background: #0c122a;
}
