@font-face {
  font-family: Pretendard;
  src: url('/public/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root { --ink:#27365b; --blue:#bfd0fa; --paper:#f8faff; --tint:#eef3fe; --muted:#5a6785; --line:#dce4f3; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.6 Pretendard,sans-serif; word-break:keep-all; }
button,input,select { font:inherit; color:inherit; }
button,a,select { touch-action:manipulation; }
button { cursor:pointer; }
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible { outline:3px solid var(--ink); outline-offset:4px; }
.site-header { height:96px; max-width:1328px; margin:auto; padding:0 40px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.brand { display:flex; gap:10px; align-items:center; text-decoration:none; color:var(--ink); font-weight:800; font-size:27px; letter-spacing:-1px; }
.brand img { display:block; }
.header-caption { font-size:14px; color:var(--muted); }
main { max-width:1328px; margin:0 auto; padding:64px 40px 48px; }
h1,h2,p,figure { margin:0; }
h1 { font-size:36px; line-height:1.35; letter-spacing:-1.5px; font-weight:750; }
h2 { font-weight:700; letter-spacing:-.6px; }
#welcome { display:grid; grid-template-columns:minmax(320px,.9fr) minmax(360px,1.1fr); gap:72px; align-items:stretch; min-height:540px; }
.entry-form { max-width:416px; padding-top:16px; }
.entry-description { color:var(--muted); margin:20px 0 32px; line-height:1.75; }
label { display:block; font-weight:650; font-size:14px; margin-bottom:9px; }
input { width:100%; height:56px; border:1px solid #b9c7e0; border-radius:12px; background:white; padding:0 16px; min-width:0; }
input::placeholder { color:#73809b; }
#roomHelp { font-size:13px; margin:9px 0 22px; color:var(--muted); }
#joinButton { width:100%; height:56px; border:0; border-radius:12px; background:var(--ink); color:white; font-weight:650; }
#joinButton:hover { background:#384c78; }
#joinButton:disabled { opacity:.65; cursor:wait; }
#joinStatus { min-height:25px; font-size:14px; margin-top:12px; color:#9c3349; }
.permission-note { margin-top:8px; color:var(--muted); font-size:13px; line-height:1.65; }
.entry-canvas { padding:64px 32px 32px; background:var(--tint); border-radius:28px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.greeting-mark { width:148px; height:148px; display:grid; place-items:center; background:var(--blue); border-radius:50%; margin-bottom:32px; }
.greeting-mark img { transform:rotate(-8deg); }
.entry-canvas h2 { font-size:24px; line-height:1.4; }
.entry-canvas>p { margin-top:16px; color:var(--muted); line-height:1.8; }
.canvas-note { margin-top:auto; padding-top:44px; display:flex; gap:9px; align-items:center; font-size:13px; color:var(--muted); text-align:left; }
.canvas-note img { flex-shrink:0; }
.call-heading { display:flex; gap:24px; align-items:center; justify-content:space-between; margin-bottom:24px; }
.room-caption { font-size:13px; color:var(--muted); margin-bottom:4px; }
#roomTitle { font-size:26px; overflow-wrap:anywhere; word-break:break-word; max-width:820px; }
.connection-status { font-size:14px; color:var(--muted); display:flex; gap:8px; align-items:center; flex-shrink:0; }
.connection-status:before { content:''; width:8px; height:8px; background:#8b98b3; border-radius:50%; }
.connection-status[data-state=connected]:before { background:#368663; }
.video-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.video-tile { position:relative; min-width:0; aspect-ratio:4/3; overflow:hidden; background:var(--ink); border-radius:20px; color:white; }
.video-tile video { display:block; width:100%; height:100%; object-fit:contain; }
.local-tile video { transform:scaleX(-1); }
.video-tile figcaption { position:absolute; left:18px; bottom:16px; padding:4px 12px; border-radius:8px; background:rgba(18,29,54,.78); font-size:14px; }
.media-status { position:absolute; right:18px; top:16px; background:rgba(18,29,54,.78); padding:5px 10px; border-radius:8px; font-size:12px; }
.peer-placeholder,.camera-placeholder { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px; text-align:center; background:var(--tint); color:var(--ink); }
.peer-placeholder h2 { font-size:20px; margin-top:20px; }
.peer-placeholder p { font-size:14px; color:var(--muted); margin-top:10px; }
.camera-placeholder { background:var(--ink); color:white; gap:16px; }
.call-controls { display:flex; gap:24px; justify-content:space-between; align-items:center; padding:24px 0; border-bottom:1px solid var(--line); }
.toggle-controls { display:flex; gap:12px; }
.toggle-controls button { height:50px; min-width:142px; padding:0 18px; border:1px solid var(--line); background:white; border-radius:12px; font-weight:600; font-size:14px; }
.toggle-controls button:hover { background:var(--tint); }
.toggle-controls button[aria-pressed=true] { background:var(--ink); border-color:var(--ink); color:white; }
.camera-select { display:flex; align-items:center; gap:12px; max-width:44%; min-width:0; }
.camera-select label { margin:0; white-space:nowrap; font-size:13px; font-weight:500; color:var(--muted); }
select { height:50px; max-width:280px; min-width:120px; border:1px solid var(--line); padding:0 32px 0 12px; border-radius:12px; background:white; text-overflow:ellipsis; }
.call-note { margin-top:16px; font-size:13px; color:var(--muted); }
.site-footer { max-width:1248px; margin:0 auto; padding:28px 0; border-top:1px solid var(--line); display:flex; gap:16px; align-items:center; font-size:14px; font-weight:700; }
.site-footer span { font-weight:400; color:var(--muted); font-size:12px; }
@media(max-width:1000px) {
  #welcome { gap:36px; grid-template-columns:1fr 1fr; }
  .entry-canvas { padding:40px 24px 28px; }
  .camera-select { max-width:48%; flex-direction:column; align-items:flex-start; gap:4px; }
  .call-controls { align-items:flex-end; }
  .media-status { right:12px; top:12px; font-size:11px; }
}
@media(max-width:680px) {
  .site-header { height:76px; margin:0 20px; padding:0; }
  .brand { font-size:24px; gap:8px; }
  .brand img { width:28px; height:28px; }
  .header-caption { font-size:12px; }
  main { padding:32px 20px; }
  h1 { font-size:30px; letter-spacing:-1px; }
  #welcome { display:flex; flex-direction:column; gap:32px; min-height:0; }
  .entry-form { max-width:none; padding:0; }
  .entry-description { margin:16px 0 26px; font-size:15px; }
  .entry-canvas { padding:30px 20px 24px; border-radius:20px; }
  .greeting-mark { width:96px; height:96px; margin-bottom:22px; }
  .greeting-mark img { width:70px; height:70px; }
  .entry-canvas h2 { font-size:20px; }
  .entry-canvas>p { font-size:14px; margin-top:12px; }
  .canvas-note { padding-top:28px; font-size:12px; max-width:260px; }
  .site-footer { margin:0 20px; padding:22px 0; gap:12px; font-size:13px; }
  .site-footer span { font-size:11px; }
  .call-heading { align-items:flex-start; gap:12px; flex-direction:column; margin-bottom:20px; }
  #roomTitle { font-size:24px; }
  .connection-status { font-size:13px; }
  .video-grid { grid-template-columns:1fr; gap:14px; }
  .video-tile { border-radius:16px; aspect-ratio:4/3; }
  .video-tile figcaption { left:12px; bottom:12px; font-size:12px; }
  .peer-placeholder h2 { font-size:18px; }
  .peer-placeholder p { font-size:13px; }
  .peer-placeholder img { width:48px; height:48px; }
  .call-controls { gap:20px; align-items:stretch; flex-direction:column; padding:20px 0; }
  .toggle-controls { gap:10px; }
  .toggle-controls button { min-width:0; flex:1; padding:0 12px; }
  .camera-select { max-width:none; flex-direction:row; align-items:center; justify-content:space-between; }
  .camera-select select { width:62%; max-width:none; min-width:0; }
  .call-note { font-size:12px; }
  .media-status { font-size:10px; }
  .permission-note { font-size:12px; }
}
