/* 태동 자사 디자인 표준: ~/.claude/rules/DESIGN.tedong.md — 8색 밖의 색을 쓰지 않는다. 세 화면(홈·방·혼자 통역) 공용 */
:root {
  --tide: #16306b;
  --ray: #4a72d0;
  --wave: #6699ff;
  --ice: #99e0ff;
  --mist: #eef2fc;
  --ink: #0b0e16;
  --abyss: #0e1c3e;
  --deep: #04060f;
  /* 상대에게 화면을 보여주며 쓰는 통역기라 눈부심이 적은 어두운 화면 하나로 고정한다 */
  --color-bg: var(--deep);
  --color-surface: var(--abyss);
  --color-line: var(--tide);
  --color-text: #fff;
  --color-muted: var(--mist);
  --color-primary: var(--wave);
  --color-accent: var(--ice);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
/* 폰에서 화면이 저절로 커지지 않게 — 두 번 눌러 확대·가로 화면 글자 키움을 끈다(손가락으로 벌려 확대는 남는다) */
html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    "Apple SD Gothic Neo",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* 화면 규칙의 display가 hidden 속성을 덮지 못하게 — 숨김은 언제나 이긴다 */
[hidden] {
  display: none !important;
}
.wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left));
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}
button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}

header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: max(16px, env(safe-area-inset-top)) 12px;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  line-height: 0;
}
.brand img {
  width: 104px;
  height: auto;
}
header h1 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-muted);
}
