:root {
  --bg:#0b1020;
  --panel:#0f172a;
  --ink:#e5e7eb;
  --yaj:#fef08a;
  --accent:#f59e0b;
}
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px;
}
header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 6px 0 4px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111827;
  border: 1px solid rgba(255,255,255,.08);
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 6px 26px rgba(0,0,0,.28);
}
.logo img {
  height: 28px;
  width: auto;
  display: block;
}
h1 {
  font-size: 1.08rem;
  margin: 6px 0 10px;
  text-align: center;
}
.card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 34px rgba(0,0,0,.3);
}
.meta {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 6px 0 10px;
  font-size: .95rem;
}
.pill {
  background: rgba(255,255,255,.06);
  padding: 6px 10px;
  border-radius: 999px;
}
canvas {
  width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(180deg,#1f2937 0%,#0b1020 100%);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
button {
  flex: 1;
  appearance: none;
  border: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  background: var(--accent);
  color: #111827;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245,158,11,.35);
}
button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: none;
}
.controls {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.controls button {
  background: rgba(255,255,255,.08);
  color: var(--ink);
  box-shadow: none;
}
.hint {
  text-align: center;
  opacity: .85;
  font-size: .9rem;
  margin: 8px 0;
}
footer {
  opacity: .8;
  font-size: .85rem;
  text-align: center;
  margin-top: 10px;
}