/* SJ 통번역시스템 첫 화면 — 열려 있는 통역방 목록 + 새 통역 시작하기(방 이름 → 언어 → 비밀번호).
   홈페이지(sjchampion.com)와 같은 종이색·짙은 녹색. 폰에서 확대되지 않게 입력은 16px, 누르는 곳은 44px 이상. */
:root{--ink:#2e4436;--muted:#5c6b57;--line:#c9cebd;--paper:#f3f1e8;--field:#faf9f4;--accent:#304b38;--accent-hover:#405e44;--soft:#e1e7d8;--live:#2f6a3c;--err:#993e28;--err-bg:#f6e6dc;--sans:'Malgun Gothic','Apple SD Gothic Neo',sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);line-height:1.6;word-break:keep-all}
html[lang=en] body{word-break:normal}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #4e6952;outline-offset:3px}
[hidden]{display:none!important}
p,h1,h2,ul,ol,fieldset{margin:0;padding:0}
fieldset{border:0;min-width:0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.entry-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 5.3vw;border-bottom:1px solid var(--line)}
.logo{font:34px/1 Georgia,serif}
.logo span{font-size:14px;letter-spacing:.15em;margin-left:6px}
.header-actions{display:flex;align-items:center;gap:20px}
.header-actions>a{font-size:13px;padding:10px 0}
.language-switch{display:flex;gap:2px;border:1px solid var(--line);padding:3px}
.language-switch button{border:0;background:transparent;color:var(--muted);padding:7px 11px;font-size:13px;min-height:36px}
.language-switch button[aria-pressed=true]{background:var(--soft);color:var(--ink)}

/* PC: 왼쪽 사진(원래 첫 화면의 대화 사진), 오른쪽 통역방 목록·방 만들기 */
.home{max-width:1240px;margin:0 auto;padding:44px 5.3vw 60px;display:grid;grid-template-columns:minmax(280px,.85fr) minmax(360px,1fr);gap:clamp(40px,6vw,90px);align-items:start}
.views{min-width:0;max-width:640px}
@media(min-width:851px){#home-view>.eyebrow{visibility:hidden}}   /* 왼쪽 사진 쪽 머리글과 겹치지 않게 — 자리는 남겨 제목 높이를 맞춘다 */
.story{position:sticky;top:30px}
.story-title{font-size:clamp(32px,3.3vw,46px);letter-spacing:-.05em;line-height:1.45;margin:22px 0 14px}
html[lang=en] .story-title{letter-spacing:-.03em}
.story-copy{font-size:14px;line-height:1.9;color:var(--muted)}
.story figure{margin:30px 0 0}
.story img{display:block;width:100%;height:auto;aspect-ratio:1.3;object-fit:cover}
.story figcaption{font:italic 26px/1.3 Georgia,serif;padding-top:14px}
.eyebrow{font-size:11px;letter-spacing:.15em;color:var(--muted)}
h1{font-size:clamp(28px,4.4vw,40px);font-weight:400;letter-spacing:-.04em;line-height:1.35;margin:12px 0 10px}
html[lang=en] h1{letter-spacing:-.02em}
.lead{font-size:15px;color:var(--muted)}
.help{font-size:13px;line-height:1.75;color:var(--muted)}

.primary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:14px 22px;border:0;background:var(--accent);color:#faf8ee;font-size:17px}
.primary:hover{background:var(--accent-hover)}
.primary>span+span{font-size:20px}
.start{width:100%;margin:28px 0 40px;min-height:64px;font-size:19px}
.secondary{min-height:48px;padding:10px 18px;border:1px solid #a5b299;background:transparent;font-size:15px}
.secondary:hover{background:var(--soft)}
.text-button{border:0;background:transparent;padding:10px 0;font-size:13px;text-decoration:underline;text-underline-offset:4px}

.rooms-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:16px;margin-bottom:12px}
.rooms-head h2{font-size:17px;font-weight:400}
.room-list{list-style:none;display:grid;gap:10px}
.room{border:1px solid #c4cbb8;background:var(--field)}
.room.is-live{border-color:#8fa986}
.room-main{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;border:0;background:transparent;padding:16px 18px;text-align:left;min-height:72px}
.room-main:hover{background:#eef1e6}
.room-name{display:block;font-size:17px;overflow-wrap:anywhere}
.room-meta{display:block;font-size:13px;color:var(--muted);margin-top:3px}
.room-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px;white-space:nowrap;font-size:13px}
.room-state{color:var(--muted)}
.room.is-live .room-state{color:var(--live);font-weight:700}
.room.is-live .room-state:before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--live);margin-right:6px;vertical-align:1px}
.room-lock{display:inline-flex;align-items:center;gap:4px;color:var(--muted);font-size:12px}
.room-lock svg{width:12px;height:12px}
.room-pass{display:flex;gap:8px;padding:0 18px 16px}
.room-pass input,.inline-form input,.field input,.field select{width:100%;min-width:0;min-height:48px;border:1px solid #bec6b3;background:#fff;border-radius:0;padding:10px 12px;font-size:16px;color:var(--ink)}
.room>.entry-error{margin:0 18px 16px}
.room-host{display:block;width:100%;border:0;border-top:1px solid var(--line);background:transparent;padding:11px 18px;text-align:left;font-size:13px;min-height:44px}
.room-host:hover{background:#eef1e6}
.empty{border:1px dashed #b9c2ae;padding:22px 18px;font-size:14px;color:var(--muted);line-height:1.8}
#rooms-note:not(:empty){margin-top:8px}
.qr-hint{margin-top:16px}
.code-entry{margin-top:6px}
.code-entry summary{cursor:pointer;font-size:13px;padding:10px 0;text-decoration:underline;text-underline-offset:4px;width:max-content}
.inline-form{display:flex;gap:8px;margin-top:6px}
.inline-form .secondary{flex:none}

.entry-error{font-size:14px;color:var(--err);background:var(--err-bg);padding:11px 13px;margin-top:12px}

.wizard{max-width:560px}
.steps{list-style:none;display:flex;gap:6px;margin:12px 0 4px}
.steps li{flex:1;height:3px;background:var(--line)}
.steps li.on{background:var(--accent)}
.step{display:grid;gap:16px;margin-top:8px}
.field{display:flex;flex-direction:column;gap:7px;font-size:14px;min-width:0}
.field textarea{width:100%;min-width:0;border:1px solid #bec6b3;background:#fff;border-radius:0;padding:10px 12px;font-size:16px;line-height:1.5;color:var(--ink);resize:vertical;font-family:inherit}
.pin-hint{font-size:13px;color:var(--muted);margin-top:-5px}
.pair{display:grid;grid-template-columns:1fr 24px 1fr;gap:8px;align-items:end}
.pair-arrow{text-align:center;padding-bottom:12px;font-size:18px}
.more summary,.choice small{color:var(--muted)}
.soon{margin-top:-4px}.soon-mark{color:#8a7f66;font-size:12px;margin-left:4px}
.more summary{cursor:pointer;font-size:13px;padding:8px 0;width:max-content;text-decoration:underline;text-underline-offset:4px}
.more[open]{display:grid;gap:12px}
.check{display:flex;align-items:center;gap:10px;font-size:15px;min-height:44px}
.check input{width:20px;height:20px;accent-color:var(--accent)}
.choice{display:grid;gap:10px}
.choice label{position:relative;cursor:pointer}
.choice input{position:absolute;opacity:0;width:1px;height:1px}
.choice span{display:block;border:1px solid #bdc6b3;background:var(--field);padding:14px 16px}
.choice strong{display:block;font-size:16px;font-weight:400}
.choice small{display:block;font-size:13px;margin-top:2px}
.choice input:checked+span{background:var(--soft);border-color:#526b4e;box-shadow:inset 3px 0 0 var(--accent)}
.choice input:focus-visible+span{outline:2px solid var(--ink);outline-offset:3px}
.wizard-actions{display:flex;gap:10px;justify-content:space-between;margin-top:26px}
.wizard-actions .primary{flex:1;max-width:320px;margin-left:auto}
#wizard-status:not(:empty){margin-top:10px}

footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 5.3vw;border-top:1px solid var(--line)}
footer>span{font:20px Georgia,serif}
footer>div{display:flex;gap:20px;font-size:13px}
footer a{padding:8px 0}

/* 폰·좁은 화면: 한 줄로. 주된 버튼이 먼저 보이도록 사진은 목록 아래로 */
@media(max-width:850px){.home{grid-template-columns:1fr;gap:30px}.story{position:static;order:2}.story .eyebrow,.story-title,.story-copy{display:none}.story figure{margin:0}.story figcaption{font-size:20px}.views{max-width:none}}
@media(max-width:600px){
  .entry-header{padding:16px 18px;flex-wrap:wrap;gap:10px}
  .logo{font-size:28px}.logo span{font-size:12px}
  .header-actions{gap:12px}
  .home{padding:28px 18px 44px}
  .start{margin:22px 0 32px}
  .room-main{padding:14px}
  .room-pass{padding:0 14px 14px}
  .pair{grid-template-columns:1fr;gap:10px}
  .pair-arrow{display:none}
  .wizard-actions .primary{max-width:none}
  footer{padding:18px;flex-wrap:wrap}
}
