:root{
  --bg:#000;
  --g:#22c55e;
  --w:rgba(255,255,255,.92);
  --m:rgba(255,255,255,.66);
  --line:rgba(34,197,94,.35);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: var(--bg);
  color: var(--w);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.scan{
  pointer-events:none;
  position:fixed; inset:0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
  opacity:.06;
  mix-blend-mode: overlay;
}

.topbar{
  position:sticky; top:0; z-index:5;
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(34,197,94,.20);
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
}
.brand{font-weight:900; letter-spacing:1px; color: var(--g)}
.user{font-size:12px; color: var(--m)}

.wrap{max-width: 1200px; margin: 0 auto; padding: 18px 14px 40px;}

.screen{min-height: calc(100vh - 64px); display:grid; place-items:center;}
.panel{
  width:min(720px, 96vw);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(0,0,0,.65);
}

.title{font-size: 48px; font-weight: 1000; letter-spacing: 1px; color: var(--g)}
.subtitle{margin-top: 6px; color: var(--m); font-weight:700}

.row{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top: 12px}
input{
  flex: 1;
  min-width: 240px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.92);
  outline:none;
}
input:focus{border-color: rgba(34,197,94,.55); box-shadow: 0 0 0 3px rgba(34,197,94,.12)}

.btn{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  letter-spacing:.4px;
  cursor:pointer;
}
.btn:hover{border-color: rgba(34,197,94,.55)}
.btn--ok{border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.14)}

.menuBtns{display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px}
.hint{margin-top: 10px; color: rgba(255,255,255,.60); font-size: 12px;}

.gameFrame{
  width:min(980px, 96vw);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
  background: rgba(0,0,0,.65);
  position:relative;
}
canvas{display:block; width:100%; height:auto; image-rendering: pixelated; background:#000}
.hud{
  position:absolute; left:0; right:0; top:0;
  display:flex; justify-content:flex-start; align-items:center;
  padding: 10px 12px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0,0,0,.55);
}
.hudRight{color: rgba(34,197,94,.92)}
.controlsHint{
  position:absolute; left:12px; bottom:12px;
  font-size: 12px;
  color: rgba(255,255,255,.60);
}

.tableWrap{margin-top: 12px; overflow:auto; max-height: 60vh; border: 1px solid rgba(255,255,255,.10); border-radius: 16px;}
.tbl{width:100%; border-collapse: collapse; font-size: 13px;}
.tbl th, .tbl td{padding: 10px 10px; border-bottom: 1px solid rgba(255,255,255,.08)}
.tbl th{position:sticky; top:0; background: rgba(0,0,0,.85); color: rgba(255,255,255,.78); text-align:left}
.tbl td{color: rgba(255,255,255,.88)}
.tbl .right{text-align:right}

.toast{
  position:fixed; bottom:16px; left:50%; transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  border:1px solid rgba(34,197,94,.55);
  background: rgba(0,0,0,.75);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show{opacity:1; transform: translateX(-50%) translateY(-6px)}

.walletRow{margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.14)}

@media (max-width: 520px){
  .title{font-size: 38px}
}
