:root {
  color-scheme: dark;
  --ink: #0b0e16;
  --paper: #f5f5f7;
  --line: rgba(245, 245, 247, 0.16);
  --muted: rgba(245, 245, 247, 0.62);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--paper);
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.title {
  margin: 0;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hint.touch { display: none; }

.full {
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.full:hover { background: rgba(255, 255, 255, 0.06); }

#game {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #07110f;
  touch-action: none;
}

@media (pointer: coarse) {
  .hint.desk { display: none; }
  .hint.touch {
    display: block;
    flex-basis: 100%;
    font-size: 0.82rem;
  }
  .bar { flex-wrap: wrap; gap: 0.7rem; }
}

@media (max-width: 720px) {
  .bar { gap: 0.7rem; }
}
