/* Blobby Volley 2 – minimal, modern, offline */
:root {
  --bg: #0b1020;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --accent: #6ee7ff;
  --accent2: #a78bfa;
  --good: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans",
    "Liberation Sans", sans-serif;
  background: radial-gradient(1200px 700px at 20% 10%, rgba(110, 231, 255, 0.18), transparent 60%),
    radial-gradient(1000px 700px at 80% 20%, rgba(167, 139, 250, 0.18), transparent 55%),
    radial-gradient(900px 700px at 50% 80%, rgba(52, 211, 153, 0.10), transparent 60%),
    linear-gradient(180deg, #070a14, var(--bg));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(110, 231, 255, 0.95), rgba(167, 139, 250, 0.9));
  box-shadow: 0 10px 25px rgba(110, 231, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.hud {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
}

.badge.left {
  color: rgba(110, 231, 255, 0.95);
}

.badge.right {
  color: rgba(167, 139, 250, 0.95);
}

.points {
  font-weight: 900;
  font-size: 18px;
  min-width: 22px;
  text-align: center;
}

.divider {
  color: var(--muted);
}

.btn {
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0px);
}

.layout {
  padding: 18px 20px 22px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  background: radial-gradient(1200px 500px at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%);
}

.hintbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
}

.status {
  font-size: 13px;
  color: var(--muted);
}

.small {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kbd {
  display: inline-block;
  min-width: 16px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.side {
  display: grid;
  gap: 12px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel2);
  box-shadow: var(--shadow);
  padding: 12px 12px;
}

.cardTitle {
  font-weight: 800;
  margin: 4px 2px 10px;
}

.onlineGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.onlineFields {
  display: grid;
  gap: 8px;
}

.fieldLabel {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.ta {
  width: 100%;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  padding: 10px 10px;
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
}

.advanced {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.advanced > summary {
  cursor: pointer;
  list-style: none;
}

.advanced > summary::-webkit-details-marker {
  display: none;
}

.ta:focus {
  border-color: rgba(110, 231, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.12);
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.footer {
  padding: 10px 20px 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .small {
    display: none;
  }
}
