/* base.css — 디자인 토큰 + 리셋 + 공통 컨트롤 + 앱 루트 */

:root {
  --bg: #141414;
  --bg-soft: #1a1a1a;
  --panel: #202020;
  --panel-2: #262626;
  --line: #2e2e2e;
  --line-soft: #262626;
  --text: #e8f0fa;
  --muted: #a8a8a8;
  --dim: #777777;
  --accent: #6ce0b6;
  --accent-dim: #2f6e59;
  --warn: #ff9f6a;
  --danger: #ff6a6a;
  --vio: #ff9aaa;
  --cel: #aa99ff;
  --brs: #ffcc66;
  --woo: #77ddff;
  --per: #88dd44;
  --hover: rgba(255,255,255,0.06);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

button {
  font: inherit;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, transform 60ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
button:hover { background: var(--hover); }
button:active { transform: scale(0.97); }
button.primary { background: var(--accent-dim); border-color: #3f8a72; color: #eaf6f1; }
button.primary:hover { background: #2c6452; }
button.ghost { background: transparent; }
button.danger { color: #ffd6d6; border-color: #6e2f2f; background: #3a1e1e; }
button.icon {
  width: 44px; height: 44px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
button.big {
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
}

input, select {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.app {
  display: grid;
  grid-template-rows: 1fr;
  width: 100vw;
  height: 100vh;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}
