/* 첫 화면 (언어 고르기). 바탕: 클라우드 · 샌드의 바탕화면 색이 섞인 판 위에 큰 빛 덩어리 넷이
   20 ~ 40초에 한 번씩 아주 조금 오감 — 너울처럼, 멀미 나지 않게. "움직임 줄이기"면 멈춤. */
#gate { position: fixed; inset: 0; z-index: 900; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  background: linear-gradient(120deg, #F4F6FA 0%, #E7EDF6 30%, #F3EDFA 50%, #F5EBDF 75%, #F8F2E8 100%);
  transition: opacity 400ms cubic-bezier(.4,0,1,1), transform 400ms cubic-bezier(.4,0,1,1); }
#gate.leave { opacity: 0; transform: scale(1.015); pointer-events: none; }

.g-sea { position: absolute; inset: -20%; pointer-events: none; }
.g-sea i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .9; will-change: transform; }
.g-sea .s1 { left: 0%; top: 5%; width: 60%; height: 60%; background: radial-gradient(closest-side, #E1E9F7, rgba(225,233,247,0)); animation: g-swell-a 34s ease-in-out infinite alternate; }
.g-sea .s2 { right: 0%; bottom: 0%; width: 65%; height: 65%; background: radial-gradient(closest-side, #F3E6D4, rgba(243,230,212,0)); animation: g-swell-b 40s ease-in-out infinite alternate; }
.g-sea .s3 { left: 30%; top: 30%; width: 45%; height: 45%; background: radial-gradient(closest-side, #EFE8F8, rgba(239,232,248,0)); animation: g-swell-c 28s ease-in-out infinite alternate; }
.g-sea .s4 { left: 5%; bottom: 5%; width: 50%; height: 50%; background: radial-gradient(closest-side, #F7EFE3, rgba(247,239,227,0)); animation: g-swell-b 46s ease-in-out infinite alternate-reverse; }
@keyframes g-swell-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(8%, 5%) scale(1.06); } }
@keyframes g-swell-b { from { transform: translate(0, 0) scale(1.04); } to { transform: translate(-7%, -4%) scale(1); } }
@keyframes g-swell-c { from { transform: translate(-4%, 3%) scale(1); } to { transform: translate(5%, -3%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .g-sea i { animation: none; } }

/* TintOS 글자 (상단바의 글자를 크게) */
.g-brand { position: relative; display: flex; gap: 4px; font-family: "Space Grotesk", sans-serif; font-size: 64px; line-height: 1; }
.g-brand .t { font-weight: 600; letter-spacing: -2px; color: var(--ink); }
.g-brand .o { font-weight: 480; color: var(--subtle); }

/* 한국어 / English: 판은 스퀴클 28, 고른 칸의 알약은 판 안쪽 8 px 여백, 옮길 때 250 ms (열기 곡선) */
.g-pick { position: relative; width: min(520px, calc(100vw - 32px)); height: 112px; display: grid; grid-template-columns: 1fr 1fr; padding: 8px; box-sizing: border-box; }
.g-knob { position: absolute; top: 8px; bottom: 8px; left: 8px; width: calc(50% - 8px); border-radius: 999px; z-index: 1;
  background: #fff; box-shadow: 0 6px 18px rgba(36,61,110,.12), 0 0 0 1px rgba(143,170,216,.35);
  transition: transform 250ms cubic-bezier(0,0,.2,1); }
.g-pick[data-at="en"] .g-knob { transform: translateX(100%); }
.g-pick button { position: relative; z-index: 2; border: 0; background: none; cursor: pointer; border-radius: 999px;
  font-family: "IBM Plex Sans KR", "Space Grotesk", sans-serif; font-size: 22px; font-weight: 600; color: var(--muted); transition: color 180ms ease; }
.g-pick button[aria-checked="true"] { color: var(--ink); }
.g-pick button:hover { color: var(--ink); }
.g-pick button:focus { outline: none; }
.g-pick button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

/* 시작 단추: 평소에는 옅은 강조색 바탕 + 강조색 글자, 올리거나 누르거나 키보드로 오면 진한 강조색 + 흰 글자 (180 ms).
   자리: 화면 밑에서 3분의 1 (단추의 가운데가 위에서 2/3). */
.g-start { position: absolute; left: calc(50% - 110px); top: calc(66.667% - 27px); width: 220px; height: 54px; border: 0; padding: 0; background: none; cursor: pointer;
  display: grid; place-items: center; transition: transform 120ms cubic-bezier(.2,0,0,1); }
.g-start > span { font-family: "IBM Plex Sans KR", "Space Grotesk", sans-serif; font-size: 17px; font-weight: 700; color: var(--accent); transition: color 180ms ease; }
.g-start > svg.shape path { transition: fill 180ms ease, stroke 180ms ease; }
.g-start:hover > svg.shape path, .g-start:focus-visible > svg.shape path, .g-start:active > svg.shape path { fill: #3c56dd; stroke: #5a72ff; }
.g-start:hover > span, .g-start:focus-visible > span, .g-start:active > span { color: #fff; }
.g-start:active { transform: scale(.98); }
.g-start:focus { outline: none; }
