/* OddLoop Studio 사이트 (2026-11-21 다시 짬).
   방향: 영상 밀착 인화지. 흰 종이에 검은 글자, 그 위에 세로 영상 틀(시뮬·오리지널)이 줄지어 놓인다.
   색은 흰 바탕 + 먹 + 노랑 하나(편집기 강조색과 같은 #ffd34d). 빛 번짐·그라데이션·유리·알약은 쓰지 않는다.
   구역은 굵은 줄과 여백으로 나누고, 상자는 영상 틀에만 쓴다. 편집기(/studio)는 따로 빌드되는 어두운 작업대 그대로다. */
:root {
  color-scheme: light;
  --paper: #ffffff; --ink: #0b0c11; --fg: #0b0c11; --mute: #555a66; --dim: #6b707c;
  --hair: #d8d9de; --line: #d8d9de; --line-2: #0b0c11; --wash: #f1f1ee;
  --accent: #ffd34d; --accent-ink: #0b0c11;
  --frame: #06070d;   /* 영상 틀 안쪽(시뮬 배경과 같은 검정) */
  --m-red: #ff5a5f; --m-amber: #ffb020; --m-green: #3dd68c; --m-blue: #3ba9ff; --m-violet: #a970ff; --m-pink: #ff6fb5;
  --danger: #b3142c; --ok: #0b6b3a; --focus: #0b0c11;
  --sans: "Archivo", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "PingFang SC", "Hiragino Sans", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --r: 3px;
  --header-h: 60px; --tab-h: 0px;
  --gut: 20px;
}
:lang(ko) { --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
:lang(ja) { --sans: "Archivo", "Pretendard JP Variable", "Pretendard JP", "Hiragino Sans", "Yu Gothic", sans-serif; }
:lang(zh-Hans) { --sans: "Archivo", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(zh-Hant) { --sans: "Archivo", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--paper); }
body { background: var(--paper); color: var(--fg); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; padding-bottom: var(--tab-h); overflow-x: clip; }
a { color: var(--fg); text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; font-weight: 800; font-stretch: 82%; text-wrap: balance; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ja) h1, :lang(ja) h2, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hant) h1, :lang(zh-Hant) h2 { line-height: 1.22; letter-spacing: -.025em; word-break: keep-all; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.muted { color: var(--mute); } .small { font-size: 14px; } .warn { color: var(--danger); } .ok { color: var(--ok); font-weight: 700; }
.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; min-height: 44px; color: var(--fg); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--mute); } .linklike.danger { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 버튼: 네모. 검게 채운 것 = 이 화면에서 가장 중요한 한 가지, 나머지는 줄만 두른다 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r); background: var(--paper); color: var(--ink); font: 700 15px var(--sans); text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--wash); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; } .btn-primary:hover { background: #2a2c36; }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-kakao { background: #fee500; color: #191600; border-color: #fee500; } .btn-kakao:hover { background: #f2da00; }
.btn-apple { background: #000; color: #fff; border-color: #000; } .btn-apple:hover { background: #222; }
.textlink { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; } .textlink:hover { color: var(--mute); }

/* 로고: 고리(루프) 하나와 공 하나 */
.mark { position: relative; display: inline-block; width: 20px; height: 20px; border-radius: 50%; flex: none; border: 3.5px solid var(--ink); }
.mark::after { content: ""; position: absolute; right: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px var(--ink); }

/* 머리: 로고 | 메뉴(글자, 지금 있는 곳은 밑줄) | 로그인 */
.topbar { position: sticky; top: 0; z-index: 20; height: var(--header-h); display: flex; align-items: center; gap: 36px; padding: 0 max(var(--gut), calc((100% - 1240px) / 2 + var(--gut))); background: var(--paper); border-bottom: 2px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-stretch: 82%; font-size: 19px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; min-height: 44px; }
.seg { display: flex; gap: 26px; align-self: stretch; }
.seg a { display: inline-flex; align-items: center; gap: 7px; color: var(--mute); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; border-bottom: 4px solid transparent; border-top: 4px solid transparent; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.seg svg { width: 18px; height: 18px; display: none; }
.acct { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.acct .me { color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 44px; } .acct .me:hover { text-decoration: underline; }
.acct .icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; color: var(--ink); background: none; border: 0; border-radius: var(--r); cursor: pointer; } .acct .icon-btn:hover { background: var(--wash); }
.acct .icon-btn svg { width: 18px; height: 18px; }
.btn-login { min-height: 44px; }
/* 언어 셀렉트(2026-11-30 규격 §5): 네이티브 select 를 투명하게 덮고, 보이는 글자는 서버가 그린다. 좁으면 이름 대신 짧은 코드. */
.lang-form { margin: 0; }
.lang-pick { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 44px; min-width: 44px; padding: 0 30px 0 11px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper); color: var(--ink); font: 700 14px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.lang-pick:hover { background: var(--wash); }
.lang-pick:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.lang-pick::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.lang-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font: inherit; border: 0; appearance: none; -webkit-appearance: none; }
.lang-pick .lp-code { display: none; }
@media (max-width: 520px) { .lang-pick .lp-name { display: none; } .lang-pick .lp-code { display: inline; } .acct { gap: 8px; } }
/* 오른쪽에서 왼쪽 언어(아랍어) */
:lang(ar) { --sans: "Archivo", system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", "Noto Sans", Tahoma, sans-serif; }
:lang(hi) { --sans: "Archivo", system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", "Noto Sans", sans-serif; }
:lang(th) { --sans: "Archivo", system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", "Noto Sans", sans-serif; }
[dir=rtl] .acct { margin-left: 0; margin-right: auto; }
[dir=rtl] .lang-pick { padding: 0 11px 0 30px; }
[dir=rtl] .lang-pick::after { right: auto; left: 12px; }
[dir=rtl] .demo-tabs button, [dir=rtl] .demo-replay { text-align: right; }
[dir=rtl] .crumb a::before { content: "→"; margin-right: 0; margin-left: 6px; }
.btn[data-go-login][hidden] { display: none; }

/* 모바일: 메뉴는 화면 아래 탭바 */
@media (max-width: 760px) {
  :root { --header-h: 56px; --tab-h: calc(60px + env(safe-area-inset-bottom)); --gut: 16px; }
  .topbar { gap: 12px; }
  .seg { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: var(--tab-h); gap: 0; padding: 0 0 env(safe-area-inset-bottom); background: var(--paper); border-top: 2px solid var(--ink); }
  .seg a { flex: 1; flex-direction: column; justify-content: center; gap: 2px; font-size: 12px; border-bottom: 0; border-top: 4px solid transparent; margin-top: -2px; }
  .seg a[aria-current="page"] { border-top-color: var(--accent); }
  .seg svg { display: block; width: 22px; height: 22px; }
  .acct .me { display: none; }
  .btn-login { padding: 0 14px; font-size: 14px; }
}

.page { max-width: 1240px; margin: 0 auto; padding: 28px var(--gut) 64px; min-height: 60vh; }
.flash { padding: 12px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--hair); margin-bottom: 20px; font-weight: 700; } .flash-error { color: var(--danger); } .flash-ok { color: var(--ok); }

/* 처음 화면: 노란 띠 위에 실제로 도는 시뮬 틀과 장면 고르기, 그 옆에 한 줄 소개 */
.hero { position: relative; margin-top: -28px; padding: 40px 0 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 88px); align-items: center; background: var(--accent); box-shadow: 0 0 0 100vmax var(--accent); clip-path: inset(0 -100vmax); }
.hero h1 { font-size: clamp(34px, 5.4vw, 76px); line-height: .96; letter-spacing: -.03em; font-stretch: 78%; margin: 0 0 22px; max-width: 10.5em; }
:lang(ko) .hero h1, :lang(ja) .hero h1, :lang(zh-Hans) .hero h1, :lang(zh-Hant) .hero h1 { line-height: 1.14; letter-spacing: -.035em; font-size: clamp(30px, 4.6vw, 64px); }
.hero .lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--ink); max-width: 31em; margin: 0 0 26px; }
:lang(ko) .hero .lead { word-break: keep-all; }
.hero-actions { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.hero-actions .btn { min-height: 52px; padding: 0 24px; font-size: 16px; }
.hero-play { display: flex; align-items: stretch; gap: 20px; }
.stage { position: relative; width: clamp(240px, 23vw, 310px); flex: none; }
.stage canvas { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r); background: var(--frame); outline: 2px solid var(--ink); }
.stage canvas[hidden] { display: none; }
.demo { display: flex; flex-direction: column; justify-content: flex-end; width: 9.5em; order: -1; }
.demo-tabs { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.demo-tabs button { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 8px; border: 0; border-bottom: 1px solid var(--ink); background: none; color: var(--ink); font: 600 15px var(--sans); text-align: left; cursor: pointer; }
.demo-tabs button:hover { background: rgba(11,12,17,.08); }
.demo-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.demo-tabs .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 1.5px var(--ink); }
.demo-tabs button[aria-pressed="true"] .dot { box-shadow: none; }
.demo-replay { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 8px; border: 0; background: none; color: var(--ink); font: 700 14px var(--sans); cursor: pointer; text-align: left; }
.demo-replay:hover { background: rgba(11,12,17,.08); } .demo-replay svg { width: 16px; height: 16px; flex: none; }
.demo-note { margin: 6px 0 0; padding: 0 8px; color: var(--ink); font-size: 13px; line-height: 1.4; }
@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 22px 0 26px; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; margin-bottom: 16px; }
  .hero-play { order: 2; gap: 14px; }
  .hero .lead { order: 3; margin: 18px 0 16px; }
  .hero-actions { order: 4; }
  .stage { width: min(56vw, 250px); }
  .demo { order: 0; flex: 1; width: auto; min-width: 0; justify-content: flex-start; }
}

/* 칸 머리: 굵은 윗줄 + 제목, 오른쪽에 전체 보기 */
.sec { margin-top: clamp(36px, 5vw, 60px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec > .sec-head, .vmore > .sec-head { border-top: 2px solid var(--ink); padding-top: 14px; }
.sec-head h2 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); }
.sec-head p { margin: 6px 0 0; color: var(--mute); font-size: 15px; }
.page-head { margin: 4px 0 24px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.page-head h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.03em; font-stretch: 78%; margin: 0 0 8px; } .page-head p { margin: 0; color: var(--mute); max-width: 40em; }
.tabs { display: flex; gap: 22px; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); text-decoration: none; font-weight: 700; font-size: 15px; border-bottom: 3px solid transparent; } .tabs a:hover { color: var(--ink); } .tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -8px 0 18px; flex-wrap: wrap; } .gallery-head h2 { margin: 0; font-size: 24px; }

/* 가로로 넘기는 줄 (오리지널) — 오른쪽 끝에서 잘리는 틀이 「더 있다」는 표시다 */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 17vw, 204px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* 장면 틀(둘러보기) · 영상 틀(오리지널) — 같은 모양. 틀은 검은 판 그대로, 아래에 제목과 날짜 */
.sgrid, .vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
@media (min-width: 600px) { .sgrid, .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 16px; } }
@media (min-width: 900px) { .sgrid, .vgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.vgrid-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .vgrid-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) { .vgrid-row > .vcard:nth-child(n+3) { display: none; } }
.scard, .vcard { display: flex; flex-direction: column; gap: 8px; text-decoration: none; min-width: 0; }
.scard .shot, .vcard .shot { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--frame); }
.scard .shot img, .vcard .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard .shot img { object-fit: contain; }
a.scard:hover .nm, .vcard:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
a.scard:hover .shot, .vcard:hover .shot, .scard a.shot:hover { outline: 3px solid var(--accent); outline-offset: 0; }
.scard .nm, .vcard .nm { font-weight: 700; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.vcard .nm { -webkit-line-clamp: 3; }
.scard .meta, .vcard .meta { display: flex; gap: 4px 10px; flex-wrap: wrap; color: var(--dim); font-size: 13px; } .scard .meta a { color: var(--ink); }
.vcard .meta span:first-child { font-family: var(--mono); font-size: 12px; letter-spacing: -.01em; }
.vcard .dur { position: absolute; right: 0; bottom: 0; padding: 3px 7px; background: var(--accent); color: var(--ink); font: 700 12px var(--mono); }
.vcard .play { position: absolute; left: 0; bottom: 0; width: 28px; height: 24px; background: var(--ink); }
.vcard .play::after { content: ""; position: absolute; left: 10px; top: 6px; border: 6px solid transparent; border-left: 9px solid #fff; border-right: 0; }
.scard .row-actions { display: flex; gap: 18px; font-size: 14px; } .scard form { margin: 0; }
.scard.is-hidden { opacity: .45; }

/* 비었을 때: 상자 없이 한 줄과 버튼 */
.empty { display: grid; justify-items: start; gap: 14px; padding: 4px 0 8px; }
.empty p { margin: 0; color: var(--ink); max-width: 32em; font-size: 17px; }
.empty .mark { display: none; }

/* 장면 보기 /s/{code} */
.scene-view { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 44px; align-items: start; }
.player canvas { width: 100%; aspect-ratio: 9/16; display: block; border-radius: var(--r); background: var(--frame); }
.scene-side { border-top: 2px solid var(--ink); padding-top: 16px; }
.scene-side h1 { margin: 0 0 8px; font-size: clamp(28px, 3.2vw, 44px); overflow-wrap: anywhere; } .actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .scene-view { grid-template-columns: 1fr; gap: 20px; } .player { max-width: 400px; margin: 0 auto; width: 100%; } }

/* 오리지널 한 편 /originals/{id} */
.crumb { margin: -8px 0 10px; } .crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 14px; font-weight: 700; } .crumb a::before { content: "←"; margin-right: 6px; text-decoration: none; display: inline-block; }
.video-view { display: grid; grid-template-columns: min(400px, calc(66vh * 9 / 16)) minmax(0, 1fr); grid-template-areas: "player title" "player side"; grid-template-rows: auto 1fr; gap: 0 44px; align-items: start; }
.video-title { grid-area: title; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.06; margin: 0 0 14px; padding-top: 16px; border-top: 2px solid var(--ink); overflow-wrap: anywhere; }
:lang(ko) .video-title { word-break: keep-all; line-height: 1.25; }
.vplayer { grid-area: player; position: relative; aspect-ratio: 9/16; border-radius: var(--r); overflow: hidden; background: var(--frame); }
.vplayer img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vplay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: 0; padding: 0; background: none; border: 0; color: var(--ink); font: 700 15px var(--sans); cursor: pointer; }
.vplay i { width: 56px; height: 52px; background: var(--ink); position: relative; flex: none; }
.vplay i::after { content: ""; position: absolute; left: 21px; top: 15px; border: 11px solid transparent; border-left: 16px solid #fff; border-right: 0; }
.vplay span { display: flex; align-items: center; height: 52px; padding: 0 18px; background: var(--accent); }
.vplay:hover span { background: #ffe07a; }
.video-side { grid-area: side; }
.video-side .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 12px; }
.vmeta { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; color: var(--dim); font: 13px var(--mono); }
.orig { margin-top: 20px; color: var(--mute); } .orig summary { cursor: pointer; font-size: 14px; min-height: 44px; display: flex; align-items: center; } .orig p { margin: 0 0 8px; }
.vmore { margin-top: clamp(36px, 5vw, 60px); }
@media (max-width: 760px) {
  .video-view { grid-template-columns: 1fr; grid-template-areas: "title" "player" "side"; }
  .video-title { padding-top: 0; border-top: 0; }
  .vplayer { width: min(100%, calc(64vh * 9 / 16)); margin: 0 auto; }
  .video-side { margin-top: 18px; }
}
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--ink); } .pager .muted { font: 14px var(--mono); }

/* Pro (메뉴에서는 뺐다, 주소만 남음) — 상자 대신 두 단과 윗줄 */
.pro h1 { font-size: clamp(34px, 4.6vw, 56px); font-stretch: 78%; margin: 4px 0 10px; } .pro .lead { color: var(--mute); font-size: 17px; max-width: 40em; margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; margin-top: 28px; max-width: 820px; }
.plan { border-top: 2px solid var(--ink); padding: 16px 0 0; }
.plan h2 { margin: 0 0 10px; font-size: 26px; } .plan h2 small { font: 600 13px var(--sans); font-stretch: 100%; color: var(--mute); margin-left: 6px; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 14px; } .plan li { padding: 9px 0; border-bottom: 1px solid var(--hair); }
.plan-pro { border-top: 8px solid var(--accent); padding-top: 10px; }

.auth { max-width: 420px; margin: 20px auto 32px; } .auth h1 { font-size: 40px; font-stretch: 78%; margin: 0 0 10px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); } .auth-buttons { display: grid; gap: 10px; margin: 22px 0; }
.auth .btn { min-height: 52px; font-size: 16px; }
.auth input { width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--paper); color: var(--fg); font: inherit; }
.auth .form { display: grid; gap: 10px; margin-top: 18px; }

.footer { max-width: 1240px; margin: 0 auto; padding: 22px var(--gut) 44px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; color: var(--mute); font-size: 14px; border-top: 2px solid var(--ink); }
.footer a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; } .footer a:hover { color: var(--mute); }
.footer p { margin: 0; }
.footer > div:first-child a { min-height: 0; display: inline; }
.footer-links { display: flex; gap: 0 18px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: calc(28px + var(--tab-h)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); font-weight: 700; z-index: 50; }
.prose { max-width: 680px; } .prose h1 { font-size: clamp(34px, 4.4vw, 52px); font-stretch: 78%; margin: 4px 0 16px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); } .prose li { margin: 8px 0; } .prose ul { padding-left: 1.2em; }
.atable { width: 100%; border-collapse: collapse; font-size: 14px; } .atable th, .atable td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--hair); vertical-align: top; } .atable th { border-bottom: 2px solid var(--ink); } .atable tr.is-hidden { opacity: .5; }
.mine h1 { font-size: clamp(34px, 4.6vw, 56px); font-stretch: 78%; margin: 4px 0 10px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* 오리지널 해보기 /try/{ep} — 왼쪽 무대(원본 코드가 그리는 1080x1920), 오른쪽 조작 */
.try { display: grid; grid-template-columns: min(420px, calc((100vh - var(--header-h) - 120px) * 9 / 16)) minmax(0, 1fr); gap: 0 44px; align-items: start; }
.try-stage { position: sticky; top: calc(var(--header-h) + 16px); }
.try-stage canvas { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r); background: var(--frame); }
.try-busy { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; border-radius: var(--r); background: rgba(6,7,13,.8); color: #fff; font-weight: 700; }
.try-busy[hidden] { display: none; }
.try-title { font-size: clamp(26px, 2.8vw, 40px); margin: 0 0 8px; padding-top: 16px; border-top: 2px solid var(--ink); overflow-wrap: anywhere; } :lang(ko) .try-title { word-break: keep-all; }
.try-transport { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; }
.try-time { margin-left: auto; color: var(--mute); font: 700 14px var(--mono); }
.try-seek { width: 100%; accent-color: var(--ink); min-height: 28px; }
.try-sec { margin-top: 26px; padding: 16px 0 0; border-top: 2px solid var(--ink); }
.try-sec h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 22px; }
.try-changed { background: var(--accent); color: var(--ink); padding: 2px 8px; font: 700 13px var(--sans); font-stretch: 100%; letter-spacing: 0; }
.try-changed:empty { display: none; }
.try-edits { display: grid; gap: 16px; margin-bottom: 16px; }
.try-field { display: grid; gap: 6px; }
.try-label { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 14px; font-weight: 700; } .try-label output { color: var(--ink); font-family: var(--mono); }
.try-field input[type=range] { width: 100%; accent-color: var(--ink); min-height: 28px; }
.try-field.is-color { grid-template-columns: 1fr auto; align-items: center; }
.try-field input[type=color] { width: 48px; height: 44px; padding: 0; border: 1.5px solid var(--ink); border-radius: var(--r); background: none; cursor: pointer; }
.try-input { width: 100%; height: 46px; padding: 0 12px; border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--paper); color: var(--fg); font: inherit; }
.try-seedrow { display: flex; gap: 8px; }
.try-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.try-expmsg { margin: 10px 0 0; min-height: 1.4em; }
@media (max-width: 860px) {
  .try { grid-template-columns: 1fr; }
  .try-stage { position: relative; top: 0; width: min(100%, calc(62vh * 9 / 16)); margin: 0 auto 8px; }
  .try-title { margin-top: 12px; }
}

/* 애드센스 자리(partials/ad.php, 2026-11-18): 목록·상세의 콘텐츠 사이·아래. 채워지지 않으면 자리째 접는다. */
.ad-slot { margin: clamp(32px, 5vw, 56px) auto 0; max-width: 970px; min-height: 100px; }
.ad-slot.ad-between { margin: 28px auto; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }

/* 접히는 기기(앱이 html 에 data-fold·--hinge-gap·--pane-l 을 넣어 줄 때): 글이 이어지는 쪽은 왼쪽 화면 안에만 둬서 힌지 띠를 비켜 간다 */
@media (min-width: 600px) {
  html[data-fold="flat"][data-fold-orient="vertical"] body { max-width: var(--pane-l, calc((100vw - var(--hinge-gap, 0px)) / 2)); }
  html[data-fold="flat"][data-fold-orient="vertical"] .topbar { gap: 14px; } html[data-fold="flat"][data-fold-orient="vertical"] .seg { gap: 12px; } html[data-fold="flat"][data-fold-orient="vertical"] .seg a { font-size: 14px; }
  html[data-fold="flat"][data-fold-orient="vertical"] .rail { margin-right: 0; padding-right: 0; }
  html[data-fold="flat"][data-fold-orient="vertical"] .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 22px 0 26px; }
  html[data-fold="flat"][data-fold-orient="vertical"] .hero-copy { display: contents; }
  html[data-fold="flat"][data-fold-orient="vertical"] .hero h1 { order: 1; margin-bottom: 16px; }
  html[data-fold="flat"][data-fold-orient="vertical"] .hero-play { order: 2; gap: 14px; }
  html[data-fold="flat"][data-fold-orient="vertical"] .hero .lead { order: 3; margin: 18px 0 16px; }
  html[data-fold="flat"][data-fold-orient="vertical"] .hero-actions { order: 4; }
  html[data-fold="flat"][data-fold-orient="vertical"] .stage { width: min(40vw, 250px); }
  html[data-fold="flat"][data-fold-orient="vertical"] .demo { order: 0; flex: 1; width: auto; min-width: 0; justify-content: flex-start; }
}

/* 회원 탈퇴 화면 (2026-11-29) */
.auth .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; } .auth .check input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.auth .btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }

/* 신고·차단 (2026-11-30) */
.sitem { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sc-tools { display: flex; gap: 6px 16px; flex-wrap: wrap; margin: 0; font-size: 13px; align-items: center; }
.sc-tools a:not(.btn) { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.sc-tools .linklike { color: var(--mute); font-size: 13px; }
.scene-side .sc-tools { margin-top: 4px; }
.reasons { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; } .reasons legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.blocklist { list-style: none; padding: 0; margin: 0 0 12px; } .blocklist li { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid var(--hair); padding: 2px 0; }
.auth .field { display: grid; gap: 6px; font-weight: 700; } .auth textarea { width: 100%; padding: 10px 14px; border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--paper); color: var(--fg); font: inherit; font-weight: 400; resize: vertical; }
