:root{
  --line:#3b5480;
  --text:#edf3ff;
  --muted:#a8bddf;
  --hot:#ffd45d;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:radial-gradient(circle at top,#263663 0%,#121a31 42%,#090d18 100%);
}
.wrap{max-width:1400px;margin:0 auto;padding:18px}
.topbar{
  display:flex;justify-content:space-between;align-items:flex-start;gap:16px;
  margin-bottom:16px;padding:16px 18px;border-radius:18px;
  background:linear-gradient(180deg,rgba(24,33,56,.94),rgba(12,18,31,.94));
  border:1px solid var(--line);box-shadow:0 14px 38px rgba(0,0,0,.34)
}
.topbar h1{margin:0 0 6px;font-size:clamp(1.35rem,3vw,2.2rem)}
.topbar p,.hint{margin:0;color:var(--muted);line-height:1.4}
.game-shell{
  padding:14px;border-radius:18px;
  background:linear-gradient(180deg,rgba(14,20,37,.98),rgba(8,12,23,.98));
  border:1px solid var(--line);
  box-shadow:0 18px 48px rgba(0,0,0,.36)
}
#game{
  width:100%;height:auto;display:block;border-radius:12px;background:#000;
  border:1px solid #31456d;image-rendering:pixelated;image-rendering:crisp-edges;
}
.notes{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:16px
}
.notes>div{
  background:linear-gradient(180deg,rgba(19,27,46,.92),rgba(12,18,32,.92));
  border:1px solid var(--line);border-radius:16px;padding:14px 16px
}
.notes h2{margin:0 0 8px;font-size:1rem;color:var(--hot)}
.notes p{margin:0;color:var(--muted);line-height:1.5}
.touch-controls{display:none;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:12px}
.touch-controls button{
  min-width:74px;min-height:58px;border:none;border-radius:14px;
  background:#20345e;color:#fff;font-size:1.35rem;font-weight:800;
  box-shadow:inset 0 0 0 2px #44639d,0 8px 14px rgba(0,0,0,.28)
}
.touch-controls button:active{transform:translateY(1px)}
@media (max-width:920px){
  .topbar{flex-direction:column}
  .touch-controls{display:flex}
}
