﻿* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #242024;
  --muted: #63565b;
  --line: #e8dce0;
  --wash: #fce8f0;
  --pink: #fce8f0;
  --rose: #d88ea9;
  --display: "Bricolage Grotesque", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif KR", Batang, serif;
  --title-scale: 1;
  --title-font: var(--display);
  --title-color: #e52d78;
}
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 "Noto Sans KR", "Malgun Gothic", sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
.bar, main { width: min(1184px, calc(100% - 80px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.bar { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr; align-items: center; gap: 24px; }
.bar .brand { grid-area: 1 / 1; }
.top.has-logo-above-line .bar { position: relative; }
.bar nav { grid-area: 1 / 2; }
.bar .private-group { grid-area: 1 / 3; justify-self: end; }
.brand { justify-self: start; min-width: 0; max-width: 100%; font: 800 var(--logo-size, 25px)/1.12 var(--display); letter-spacing: -.045em; overflow-wrap: anywhere; text-decoration: none; }
nav { display: flex; gap: 28px; font-size: 13px; font-weight: 700; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.private { display: inline-flex; align-items: center; justify-content: center; justify-self: end; gap: 10px; min-height: 46px; min-width: 164px; padding: 10px 18px; border: 1px solid var(--rose); border-radius: 3px; background: var(--pink); text-decoration: none; white-space: nowrap; font: 800 14px/1.2 var(--display); letter-spacing: .015em; transition: background-color .15s, border-color .15s; }
.private .telegram-logo { flex: none; width: 28px; height: 28px; }
.private-copy { display: grid; gap: 2px; }
.private-copy small { font: 600 10px/1.25 "Noto Sans KR", sans-serif; letter-spacing: 0; }
.cover.cover-custom-placement { display: block; }
#site-placement:not(.free-canvas) #cover-title { font: 800 calc(clamp(36px, 6.5vw, 105px) * var(--title-scale))/.95 var(--title-font); color: var(--title-color); letter-spacing: -.075em; }
#site-placement .private { justify-self: auto; max-width: 100%; min-width: min(138px, 100%); }
.private[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
.private[href]:hover { border-color: var(--ink); background: #f2cddc; }
.private[href]:focus-visible { outline-color: #754052; }
main { padding: 28px 0 50px; }
.cover { display: grid; grid-template-columns: fit-content(58%) minmax(0, 1fr); align-items: stretch; gap: clamp(14px, 2vw, 28px); }
.cover-copy { align-self: end; padding: 5px 0 10px; }
.cover-copy h1 { margin: 0; font: 800 calc(clamp(64px, 9.7vw, 145px) * var(--title-scale))/.84 var(--title-font); color: var(--title-color); letter-spacing: -.075em; white-space: nowrap; }
.custom-design .cover-copy h1 { white-space: normal; }
#private-intro:not(:empty) { margin-top: 12px; }
.private span { overflow-wrap: anywhere; white-space: normal; }
.cover-name { margin: 0; font: 300 clamp(25px, 3.1vw, 42px)/1.3 var(--serif); letter-spacing: -.025em; }
.cover-description { margin: 8px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; word-break: keep-all; }
.cover-photo { position: relative; display: grid; place-items: center; min-width: 0; height: clamp(250px, 22vw, 285px); overflow: hidden; border: 1px solid var(--line); background: var(--wash); }
@media (min-width: 761px) {
  .cover > .cover-photo { width: 100%; }
  .cover > .cover-photo, .paired-pc .placement-cell > .cover-photo {
    --frame-max-width: 570px;
    max-width: min(var(--element-width, 100%), var(--frame-max-width));
    justify-self: start;
  }
}
.cover-photo::after { content: ""; position: absolute; inset: 9px; border: 1px solid #fff; pointer-events: none; }
.cover-photo:has(img:not([hidden]))::after, .cover-photo:has(img:not([hidden])) .cover-photo-label { display: none; }
.cover-photo-label { color: var(--muted); font: 300 15px/1.5 var(--serif); }
.cover-photo img, .screen-content img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-photo img { object-fit: contain; }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 12px; }
.section-bar .status { margin-inline-start: auto; }
.section-bar h2, .chat-header h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.status { font: 800 12px/1.2 var(--display); letter-spacing: .035em; white-space: nowrap; }
.status i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e52d78; margin-right: 5px; vertical-align: 1px; }
.status.offline { color: var(--muted); }
.status.offline i { background: #999292; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 28%); gap: 18px; align-items: stretch; }
.broadcast, .chat { min-width: 0; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.screen { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #171717; }
.screen-content { position: absolute; inset: 0; isolation: isolate; display: grid; place-items: center; padding: 16px; text-align: center; background: var(--wash); color: var(--ink); }
.screen-content { z-index: 2; pointer-events: none; }
.screen-content img:not([hidden]) { z-index: -1; display: block; }
.screen-content:has(img:not([hidden]))::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 18%); pointer-events: none; }
.screen-content p { margin: 0; font-size: clamp(17px, 2.15vw, 27px); font-weight: 800; letter-spacing: -.055em; }
#screen-note:not([data-state="error"]) { font-size: 13px; font-weight: 400; color: #A99BA2; letter-spacing: normal; }
#screen-note[data-state="offline"] { position: relative; z-index: 1; color: #B5A9AF; }
.layout:not(.mobile-theater) > .broadcast { align-self: start; }
#retry { position: absolute; z-index: 2; right: 8px; bottom: 8px; }
#chat-help:empty { display: none; }
.screen video, .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.chat-header, .chat-footer { padding: 11px 15px; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat { display: flex; flex-direction: column; min-height: 255px; }
.chat-header { background: #fbf0f4; border-bottom: 1px solid var(--line); }
.chat-mode { color: var(--muted); font-size: 12px; }
.chat-footer { border-top: 1px solid var(--line); }
.chat-footer p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.messages { flex: 1 1 0; min-height: 100px; overflow: auto; overflow-wrap: anywhere; padding: 8px 15px; font-size: 14px; }
.messages p { margin: 8px 0; }
.messages strong { margin-right: 5px; }
label { display: block; font-size: 12px; margin-bottom: 4px; }
.input-row { display: flex; gap: 7px; }
input, button { padding: 8px 11px; min-height: 40px; border-radius: 2px; }
input { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
button { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; white-space: nowrap; }
button:hover { background: #424242; }
:focus-visible { outline: 2px solid #686161; outline-offset: 3px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; margin-top: 22px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--wash); }
@media (max-width: 760px) {
  .bar, main { width: calc(100% - 32px); }
  .bar { min-height: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 5px 10px; }
  .bar nav { display: none; }
  .bar .private-group { grid-area: 1 / 2; max-width: min(235px, 58vw); }
  .brand { font-size: min(var(--logo-size, 23px), 8vw); }
  main { padding-top: 10px; }
  .private { min-width: 138px; min-height: 44px; padding-inline: 10px; font-size: 13px; }
  .private .telegram-logo { width: 24px; height: 24px; }
  .cover { grid-template-columns: fit-content(calc(100% - 78px)) minmax(0, 1fr); gap: 4px 6px; }
  #site-placement:not(.free-canvas) #cover-title { font-size: calc(clamp(40px, 14vw, 88px) * var(--title-scale)); }
  .cover-copy { display: contents; }
  .cover-copy .identity-group { grid-area: 1 / 1; }
  .cover-copy h1 { font-size: min(calc(clamp(32px, 14vw, 85px) * var(--title-scale)), 17vw); white-space: normal; overflow-wrap: anywhere; }
  #private-intro { grid-column: 1 / -1; }
  .cover-name { font-size: clamp(23px, 5.9vw, 38px); }
  .cover-description { margin-top: 4px; font-size: 12px; }
  .cover:not(.cover-custom-placement) .cover-photo { grid-area: 1 / 2; align-self: start; justify-self: start; width: min(var(--detail-photo-width, 100%), 132px); height: auto; aspect-ratio: 2 / 1; max-height: var(--detail-photo-height, 66px); }
  .cover-photo { height: clamp(88px, 29vw, 142px); }
  .cover-photo-label { font-size: 11px; text-align: center; }
  .top:has(+ main .cover-custom-placement) { display: none; }
  .top.has-logo-above-line:has(+ main .cover-custom-placement) { display: block; position: absolute; inset: 0 0 auto; border-bottom: 0; pointer-events: none; }
  .top.has-logo-above-line .bar { min-height: 29px; }
  .top.has-logo-above-line .bar::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; border-bottom: 1px solid var(--line); }
  .top.has-logo-above-line .brand { pointer-events: auto; }
  .section-bar { padding: 0 0 9px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .chat { min-height: 268px; }
  input { font-size: 16px; }
}
