:root {
  --bg: #0b0c0f;
  --sidebar: #0f1115;
  --surface: #12141a;
  --surface-2: #181b22;
  --surface-hover: #1c2028;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #eceef2;
  --muted: #8b909b;
  --accent: #5b8cff;
  --accent-hover: #6e9aff;
  --accent-dim: rgba(91, 140, 255, 0.14);
  --accent-text: #ffffff;
  --ok: #3ecf8e;
  --ok-dim: rgba(62, 207, 142, 0.14);
  --red: #f07178;
  --red-dim: rgba(240, 113, 120, 0.14);
  --busy: #e6b84d;
  --busy-dim: rgba(230, 184, 77, 0.14);
  --radius: 12px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sidebar-w: 240px;
  --sidebar-w-collapsed: 72px;
  --input-bg: #0e1015;
  --dock-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tap: 40px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.011em;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100vw;
  transition: grid-template-columns 0.22s var(--ease);
}

.shell.is-sidebar-collapsed {
  grid-template-columns: var(--sidebar-w-collapsed) minmax(0, 1fr);
}

button,
a,
.game-card,
.lang-pill,
.hashtag-chip,
.nav-item,
.dock-item {
  touch-action: manipulation;
}

.btn,
.nav-item,
.dock-item,
.icon-btn,
.lang-pill,
.hashtag-chip,
.hashtag-copy-all,
.hashtag-add-btn,
.sidebar-toggle,
.game-card {
  transition:
    transform 0.14s var(--ease),
    background 0.14s var(--ease),
    border-color 0.14s var(--ease),
    color 0.14s var(--ease),
    box-shadow 0.14s var(--ease),
    opacity 0.14s var(--ease);
}

.btn:active:not(:disabled),
.nav-item:active,
.dock-item:active,
.icon-btn:active,
.lang-pill:active,
.hashtag-chip:active,
.sidebar-toggle:active,
.game-card:active,
.is-pressed {
  transform: scale(0.98);
}

