/* 갈매기 한줄게임 — 밝은 아이보리, 짙은 남색 글자, 주황 강조 */
:root {
  color-scheme: light;
  --bg: #FBF7EE;
  --panel: #FFFFFF;
  --panel2: #F6F0E4;
  --ink: #15233A;
  --ink2: #34425A;
  --muted: #667085;
  --line: #E7DECC;
  --line2: #D8CCB4;
  --accent: #E0701F;       /* 장식·그래프 */
  --accent-btn: #BF5410;   /* 흰 글자 버튼 (대비 4.6:1) */
  --accent-btn-h: #A6480C;
  --accent-ink: #B4520C;   /* 아이보리 위 주황 글자 */
  --accent-soft: #FCE9DA;
  --navy: #15233A;
  --good: #25774A; --good-bg: #E3F1E8;
  --warn: #8A5F0C; --warn-bg: #FBF0D6;
  --bad: #A93434; --bad-bg: #F8E3E1;
  --info: #2A5E9E; --info-bg: #E5EDF7;
  --r: 14px;
  --shadow: 0 1px 2px rgba(21, 35, 58, .05), 0 6px 20px rgba(21, 35, 58, .06);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 .6em; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #2F6BB3; outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.good-ink { color: var(--good); }
.center { text-align: center; margin: 16px 0; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.ico { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.shell { max-width: 1180px; margin: 0 auto; padding: 24px 20px 64px; min-height: 60vh; }
.loading { color: var(--muted); padding: 24px 0; }
.loading.page { padding: 80px 0; text-align: center; }
.empty, .empty-card { color: var(--muted); padding: 22px; background: var(--panel); border: 1px dashed var(--line2); border-radius: var(--r); text-align: center; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--panel2); }
.btn.primary { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.btn.primary:hover { background: var(--accent-btn-h); }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink2); }
.btn.ghost:hover { background: rgba(21, 35, 58, .06); }
.btn.sm { min-height: 34px; padding: 5px 12px; font-size: 14px; }
.btn.lg { min-height: 48px; padding: 10px 22px; font-size: 16px; }
.btn.icon-only { padding: 5px 9px; }
.btn[disabled] { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; padding: 2px 4px; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:hover { color: var(--ink); }

/* 머리글 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 238, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.gull { width: 40px; height: 25px; color: var(--navy); }
.brand .logo { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.brand.small .logo { width: 30px; height: 30px; }
.bname { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.bslogan { font-size: 13px; color: var(--muted); margin-left: 2px; }
.brand.small .gull { width: 32px; height: 20px; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.nav a:hover { background: rgba(21, 35, 58, .06); }
.nav a.on { background: var(--navy); color: #fff; }
.acct { flex: none; }
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 999px; background: var(--panel); cursor: pointer; font-weight: 600; font-size: 14px; max-width: 180px; }
.menu summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 160px; padding: 6px; display: flex; flex-direction: column; }
.menu-pop a, .menu-pop button { text-align: left; padding: 9px 12px; border-radius: 8px; text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 15px; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--panel2); }

/* 바닥글 */
.foot { border-top: 1px solid var(--line); background: var(--panel2); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 28px 20px 40px; color: var(--ink2); font-size: 14px; }
.foot-in p { margin: 10px 0; }
.foot-in nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-in nav a { color: var(--muted); }

/* 공통 조각 */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent-ink); margin: 0 0 8px; letter-spacing: .01em; }
.lead { font-size: 17px; color: var(--ink2); max-width: 70ch; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--panel2); color: var(--ink2); border: 1px solid var(--line); white-space: nowrap; }
.chip .ico { width: 14px; height: 14px; vertical-align: -2px; }
.chip.soft { background: var(--info-bg); color: var(--info); border-color: transparent; }
.chip.maker { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chip.work { text-decoration: none; }
.chip.on-img { position: absolute; right: 10px; top: 10px; background: rgba(255, 255, 255, .92); border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.st-new { background: #EEF0F3; color: #4A5568; border-color: transparent; }
.st-review { background: var(--info-bg); color: var(--info); border-color: transparent; }
.st-planned { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.st-done { background: var(--good-bg); color: var(--good); border-color: transparent; }
.st-confirmed { background: #fff; color: var(--good); border-color: #9BCBAE; }
.st-hold { background: #F1ECE3; color: #6F5E45; border-color: transparent; }
.st-no { background: #F0F0F0; color: #5B5B5B; border-color: transparent; }
.ver-chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--navy); color: #fff; vertical-align: 2px; font-variant-numeric: tabular-nums; }
.ver-chip.big { font-size: 15px; padding: 3px 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tags span { font-size: 13px; padding: 1px 9px; border-radius: 999px; background: var(--panel2); color: var(--ink2); }
.hint { font-size: 14px; padding: 8px 12px; border-radius: 10px; margin: 8px 0; display: flex; gap: 6px; align-items: flex-start; }
.hint.good { background: var(--good-bg); color: var(--good); }
.hint.warn { background: var(--warn-bg); color: var(--warn); }
.err { color: var(--bad); font-size: 14px; }
.block { margin-top: 48px; }
.block > h2, .block-head h2 { font-size: 22px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.block > h2 { margin-bottom: 16px; }
.more { font-size: 14px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; text-decoration: none; }
.more:hover { color: var(--ink); text-decoration: underline; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 14px; }
.page-head { margin: 8px 0 26px; }
.page-head h1 { font-size: 32px; margin-bottom: 8px; }
.page-head.narrow { max-width: 520px; margin: 60px auto; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; }
.filters label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink2); font-weight: 600; }
select, input[type=text], input:not([type]), textarea { background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; }
textarea { width: 100%; resize: vertical; line-height: 1.6; }
select { padding-right: 28px; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink2); cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--accent-btn); }
.sel { font-size: 14px; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* 홈 머리 */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 28px 0 8px; }
.hero h1 { font-size: 52px; letter-spacing: -0.035em; margin-bottom: 14px; }
.hero .lead { margin-bottom: 22px; }
.today, .flow-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.today-label { display: flex; gap: 6px; align-items: center; padding: 10px 16px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.today img, .today-vid { aspect-ratio: 16/9; object-fit: cover; width: 100%; display: block; background: #111; }
.today-body { padding: 16px 18px 18px; }
.today-body h2 { font-size: 22px; margin-bottom: 8px; }
.question { background: var(--accent-soft); padding: 8px 12px; border-radius: 10px; }
.question b { color: var(--accent-ink); margin-right: 6px; }
.flow-card { padding: 20px 22px; }
.flow-card.wide .flow { grid-template-columns: repeat(5, 1fr); }
.flow-card h2 { font-size: 18px; margin-bottom: 12px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: f; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; }
.flow li::before { content: counter(f); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; }
.flow li span { font-size: 13.5px; color: var(--muted); }

/* 작품 카드 */
.wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wgrid.one { grid-template-columns: 1fr; }
.wcard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; }
.wcard:hover { border-color: var(--line2); box-shadow: 0 2px 4px rgba(21, 35, 58, .06), 0 12px 28px rgba(21, 35, 58, .1); }
.wc-cover { position: relative; aspect-ratio: 16/9; background: #1b2233; }
.wc-cover img { width: 100%; height: 100%; object-fit: cover; }
.wc-cover picture { display: block; width: 100%; height: 100%; } /* 휴대폰 가로형 카드에서는 글자 없는 게임 장면(움짤 첫 장면)을 쓴다 */
.wc-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; pointer-events: none; }
.wc-vid.on { opacity: 1; }
.wc-cover .chip { z-index: 1; }
.wc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.wc-series { font-size: 13px; color: var(--muted); font-weight: 600; }
.wcard h3 { font-size: 21px; margin: 2px 0 2px; }
.wc-line { font-size: 14.5px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 12px; }
.wc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.wc-ver { font-size: 12.5px; color: var(--muted); text-align: right; }
.wgrid.one .wcard { flex-direction: row; }
.wgrid.one .wc-cover { width: 46%; flex: none; }
.wgrid.one .wc-body { padding: 20px 24px; }
.wgrid.one h3 { font-size: 26px; }
.kscore { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.k-label { font-size: 12px; font-weight: 700; color: var(--accent-ink); width: 100%; }
.k-num { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.k-n { font-size: 13px; color: var(--muted); }
.k-none { font-size: 14px; color: var(--muted); }

/* 오늘의 끼룩스코어 판 */
.ks-board { margin-top: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 20px 14px; }
.ks-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.ks-head h2 { font-size: 21px; }
.ks-head h2 small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.ks-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; color: var(--ink2); }
.ks-sum b { font-size: 18px; color: var(--ink); margin-right: 2px; font-variant-numeric: tabular-nums; }
.ks-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ks-tile { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--panel2); text-decoration: none; border: 1px solid transparent; }
.ks-tile:hover { border-color: var(--line2); }
.ks-tile img { width: 76px; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; }
.ks-body { display: flex; flex-direction: column; min-width: 0; }
.ks-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-line { display: flex; align-items: baseline; gap: 8px; }
.ks-num { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.ks-meta { font-size: 12.5px; color: var(--muted); }
.ks-none { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ks-note { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; }

/* 패치 카드, 반영 사례 */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.pcard { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-decoration: none; }
.pcard img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.pcard b { font-size: 15px; display: block; line-height: 1.4; }
.pcard:hover { border-color: var(--line2); }
.applied { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ap { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; }
.ap-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.ap p { font-size: 14.5px; margin-bottom: 6px; }

/* 작품 페이지 */
.whead { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.wh-cover { position: relative; }
.wh-cover img, .wh-vid { display: block; border-radius: 16px; aspect-ratio: 16/9; object-fit: cover; width: 100%; box-shadow: var(--shadow); background: #111; }
.wh-trailer { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 9px 16px 9px 12px; background: rgba(14, 19, 32, .78); color: #fff; font: 700 14.5px var(--font); cursor: pointer; backdrop-filter: blur(4px); }
.wh-trailer:hover { background: var(--accent-btn); }
video.trailer { width: 100%; border-radius: 12px; background: #000; display: block; margin: 8px 0; aspect-ratio: 16/9; }
.wh-info h1 { font-size: 36px; margin: 2px 0 4px; letter-spacing: -0.03em; }
.wh-info .lead { margin: 8px 0 18px; }
.facts { margin: 22px 0 0; display: grid; gap: 8px; }
.facts div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; font-size: 14.5px; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.about-work { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
.about-list { margin: 0; padding-left: 20px; color: var(--ink2); max-width: 80ch; }
.about-list li { margin: 4px 0; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shot { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: zoom-in; background: #111; }
.shot img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.lightbox { position: fixed; inset: 0; background: rgba(10, 14, 24, .88); display: grid; place-items: center; z-index: 60; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; border-radius: 8px; }
.chapters { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.chapters h3 { font-size: 17px; margin-bottom: 8px; }
.chlist { list-style: none; margin: 0; padding: 0; }
.chlist li { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.chlist li:first-child { border-top: 0; }
.chn { font-weight: 800; color: var(--accent-ink); }
.chs { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }

/* 끼룩스코어 판 */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.t-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.t-label small { font-weight: 500; }
.t-val { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.t-val b { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.t-val b.none { font-size: 18px; color: var(--muted); font-weight: 600; }
.t-val .n { color: var(--muted); font-size: 14px; }
.t-small { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 1px 8px; border-radius: 999px; }
.t-sub { font-size: 13px; color: var(--ink2); margin-top: 4px; }
.rerate-strip { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 12px; background: var(--good-bg); color: #1D5638; border-radius: 12px; padding: 10px 14px; }
.rerate-strip .rr b { font-size: 18px; }
.versions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px; font-size: 14px; }
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 10px; margin-top: 12px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-line { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: 3px; margin-right: 4px; }
.lg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.lg-patch { display: inline-block; width: 1px; height: 14px; background: #B9AE98; }
.chart-plot { position: relative; }
.chart-plot svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart-plot .tick { font-size: 11.5px; fill: #7C8596; font-variant-numeric: tabular-nums; }
.chart-plot .tick.ptag { fill: #6F644F; font-weight: 700; }
.chart-plot .dlabel { font-size: 13px; font-weight: 800; fill: var(--ink); }
.chart-plot .empty { border: 0; }
.tip { position: absolute; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; box-shadow: var(--shadow); padding: 8px 12px; font-size: 13px; pointer-events: none; min-width: 200px; z-index: 2; }
.tip div { margin-top: 3px; }
.tip small { color: var(--muted); }
.tscroll { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data th { color: var(--muted); font-weight: 600; font-size: 13px; }
.doc table.data td { white-space: normal; }

/* 탭 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; font-size: 15.5px; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--accent); }
.split { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.formbox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: sticky; top: 76px; }
.gate p { margin-bottom: 12px; }
.gbtn { min-height: 44px; margin: 10px 0; }
.sortbar { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.sortbar button { border: 1px solid var(--line2); background: var(--panel); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.sortbar button[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sortbar .more { margin-left: auto; }
.list { display: flex; flex-direction: column; gap: 12px; }

/* 평가 폼 */
.rform, .fform { display: flex; flex-direction: column; gap: 12px; }
.mine-now { font-size: 14.5px; background: var(--panel2); border-radius: 10px; padding: 8px 12px; }
.scores { border: 0; padding: 0; margin: 0; }
.scores legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.score-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.score-row label { position: relative; }
.score-row input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.score-row span { display: grid; place-items: center; height: 38px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel); font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; }
.score-row input:checked + span { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.score-row input:focus-visible + span { outline: 3px solid #2F6BB3; outline-offset: 1px; }
.score-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; justify-content: center; padding: 6px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; }
.seg .chip { background: none; border: 0; font-size: 13.5px; }
.seg input:checked + span { border-color: var(--navy); background: var(--navy); }
.seg input:checked + span .chip { color: #fff; }
.seg input:focus-visible + span { outline: 3px solid #2F6BB3; }

/* 평가·의견 목록 */
.review { display: grid; grid-template-columns: 58px 1fr; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.rv-score { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--panel2); border-radius: 12px; height: 58px; }
.rv-score b { font-size: 24px; line-height: 1; }
.rv-score span { font-size: 11px; color: var(--muted); }
.rv-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; font-size: 14.5px; }
.rerate { font-size: 13px; font-weight: 700; color: var(--good); background: var(--good-bg); border-radius: 999px; padding: 1px 9px; }
.rv-meta, .fb-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
.ctx { display: inline-flex; align-items: center; gap: 4px; }
.ctx .ico { width: 15px; height: 15px; }
.ver { font-weight: 700; color: var(--ink2); }
.spoil summary { cursor: pointer; color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.fb { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.fb-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.fb-no { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fb p { margin-bottom: 4px; }
.fb .note { background: var(--panel2); border-radius: 10px; padding: 8px 12px; font-size: 14px; margin-top: 8px; }
.vote { display: inline-flex; gap: 5px; align-items: center; border: 1px solid var(--line2); background: var(--panel); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink2); }
.vote .ico { width: 15px; height: 15px; }
.vote.on { background: var(--accent-soft); border-color: #F2C39E; color: var(--accent-ink); }
.vote[disabled] { cursor: default; opacity: .7; }
.confirm-box { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--good-bg); color: #1D5638; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.timeline { list-style: none; padding: 10px 0 0 12px; margin: 10px 0 0; border-left: 2px solid var(--line); }
.timeline li { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.timeline li p { width: 100%; margin: 0; font-size: 14px; }
.flowline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.flowline .arrow { color: var(--muted); }

/* 패치노트 */
.patch { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.patch-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; }
.patch-head h3 { font-size: 19px; }
.pn { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pn b { color: var(--ink2); font-size: 14.5px; }
.pn p { margin: 0; }
.pn.check b { color: var(--accent-ink); }
.pfb { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.credits { display: grid; gap: 10px; margin: 0 0 12px; }
.credits div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.credits dt { color: var(--muted); font-weight: 600; }
.credits dd { margin: 0; }

/* 플레이 화면 */
body.playing .top, body.playing .foot { display: none; }
body.playing .shell { max-width: none; padding: 0; min-height: 0; }
.play { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #0E1320; }
.pbar { height: 52px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.pb-back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--ink2); font-size: 14px; font-weight: 600; padding: 6px 8px; border-radius: 8px; }
.pb-back:hover { background: rgba(21, 35, 58, .06); }
.pb-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pb-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-timer { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--ink2); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.pb-timer .tm-all { color: var(--muted); }
.dotlive { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.pb-timer.idle .dotlive { background: #A0A7B4; }
.pb-actions { display: flex; gap: 6px; }
.stage { flex: 1; position: relative; min-height: 0; background: #0E1320; overflow: hidden; }
.stage iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; display: block; background: #0E1320; transform-origin: 0 0; }
/* 전체 화면·몰입 모드 */
.play:fullscreen { width: 100vw; height: 100vh; }
.pb-actions [data-full].on { background: var(--navy); color: #fff; }
.imm-bar { display: none; position: absolute; left: calc(10px + env(safe-area-inset-left)); top: calc(8px + env(safe-area-inset-top)); z-index: 6; gap: 6px; }
.imm-bar button { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(14, 19, 32, .6); color: #fff; font: 600 13px var(--font); }
body.immersive .pbar { display: none; }
body.immersive .imm-bar { display: flex; }
body.immersive .drawer { top: 0; }
body.immersive .play { height: 100vh; height: 100dvh; background: #0E1320; }

/* 세로 화면 안내·작은 화면 경고 */
.gate-screen { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; background: rgba(14, 19, 32, .94); color: #fff; text-align: center; }
.gate-screen .ico { width: 44px; height: 44px; }
.gate-screen p { max-width: 420px; line-height: 1.7; }
.gate-screen .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.gate-screen .btn.primary { background: var(--accent-btn); border-color: var(--accent-btn); }
/* 화면 버튼 (터치 기기에서 키보드 대신) */
.kpad { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.kpad > div { position: absolute; display: flex; gap: 8px; pointer-events: auto; }
.kpad button { min-width: 52px; height: 52px; padding: 0 10px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(14, 19, 32, .55); color: #fff; font: 700 15px var(--font); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.kpad button.hit { background: rgba(224, 112, 31, .85); }
.kp-right { right: 14px; bottom: 16px; flex-wrap: wrap; justify-content: flex-end; max-width: 260px; }
.kp-right button { width: 60px; height: 60px; border-radius: 50%; font-size: 17px; }
.kp-left { left: 14px; bottom: 16px; flex-direction: column; }
.kp-left button { height: 44px; min-width: 60px; font-size: 13.5px; }
.kp-top { right: 12px; top: 10px; }
.kp-top button { height: 38px; min-width: 0; font-size: 13px; border-radius: 12px; }
.kpad.min > div { display: none; }
.kp-show { position: absolute; right: 12px; top: 10px; pointer-events: auto; height: 38px !important; min-width: 0 !important; font-size: 13px !important; border-radius: 12px !important; }
/* 기기 지원 표시 */
.devices { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dv { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.dv-ok { background: var(--good-bg); color: var(--good); }
.dv-beta { background: var(--info-bg); color: var(--info); }
.dv-small { background: var(--warn-bg); color: var(--warn); }
.dv-no { background: #F0F0F0; color: #5B5B5B; }
/* 낮은 화면(휴대폰 가로): 위 막대를 오른쪽 세로 막대로 — 게임이 화면 높이를 다 쓴다(줄이는 비율이 커짐) */
@media (max-height: 520px) and (orientation: landscape) {
  .play { flex-direction: row; }
  .play .pbar { order: 2; height: auto; width: calc(48px + env(safe-area-inset-right)); flex-direction: column; justify-content: flex-start; gap: 6px; padding: calc(6px + env(safe-area-inset-top)) env(safe-area-inset-right) calc(6px + env(safe-area-inset-bottom)) 0; border-bottom: 0; border-left: 1px solid var(--line); }
  .play .pb-title, .play .pb-timer { display: none; }
  .play .pb-back { padding: 8px; }
  .play .pb-back span, .play .pb-actions .btn span { display: none; }
  .play .pb-actions { flex-direction: column; gap: 6px; margin-top: auto; }
  .play .pbar .btn.sm { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; }
}
@media (max-height: 520px) and (orientation: portrait) {
  .pbar { height: 40px; gap: 6px; }
  .pb-back span, .pb-actions .btn span, .pb-timer .tm-all, .pb-title .ver-chip { display: none; }
  .pbar .btn.sm { min-height: 30px; padding: 3px 9px; }
  .drawer { top: 40px; }
  .kpad button { min-width: 44px; height: 44px; }
  .kp-right button { width: 50px; height: 50px; font-size: 15px; }
  .kp-left button { height: 36px; }
}
.drawer { position: fixed; top: 52px; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); border-left: 1px solid var(--line); box-shadow: -8px 0 30px rgba(0, 0, 0, .18); z-index: 30; display: flex; flex-direction: column; }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 0 14px; }
.dr-head .tabs { margin: 0; border: 0; }
.dr-body { overflow-y: auto; padding: 8px 14px 24px; }
.dr-body .formbox { position: static; }

/* 창·알림 */
.modal-back { position: fixed; inset: 0; background: rgba(15, 20, 32, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { position: relative; background: var(--panel); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); width: min(460px, 100%); max-height: 90vh; overflow-y: auto; padding: 24px 24px 22px; }
.modal.wide { width: min(720px, 100%); }
.modal h2 { font-size: 22px; margin-bottom: 8px; }
.modal-x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.modal-x:hover { background: var(--panel2); }
.fine { font-size: 13px; color: var(--muted); padding-left: 18px; margin: 12px 0 0; }
.devlogin { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line2); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 70; align-items: center; pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14.5px; box-shadow: var(--shadow); transition: opacity .4s, transform .4s; max-width: min(520px, 90vw); }
.toast.good { background: #1F6A42; }
.toast.bad { background: #8F2C2C; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* 성적표 */
.board { padding-top: 4px; }
.bd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.bd-head h1 { font-size: 34px; }
.bd-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.bd-row { display: grid; grid-template-columns: 1.5fr repeat(6, 1fr); gap: 10px; align-items: stretch; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.bd-work { display: flex; gap: 10px; align-items: center; }
.bd-work img { width: 104px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; }
.bd-work b { display: block; font-size: 16px; }
.bd-cell { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-left: 1px solid var(--line); }
.bd-cell.live { background: var(--accent-soft); border-radius: 10px; border-left: 0; }
.bl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bnum { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.bnum.none { font-size: 15px; color: var(--muted); font-weight: 600; }
.bn { font-size: 12.5px; color: var(--ink2); }
.delta { font-size: 13px; font-weight: 700; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--muted); }
body.tv .top, body.tv .foot { display: none; }
body.tv .shell { max-width: none; padding: 28px 36px; }
body.tv .bnum { font-size: 40px; }
body.tv .bl { font-size: 15px; }
body.tv .bn { font-size: 15px; }
body.tv .bd-work b { font-size: 21px; }
body.tv .bd-work img { width: 150px; }
body.tv .bd-head h1 { font-size: 44px; }

/* 내 활동·관리 */
.mygrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mycard { display: grid; grid-template-columns: 120px 1fr; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; align-items: start; }
.mycard img { border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 20px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { font-size: 18px; display: flex; gap: 6px; align-items: center; }
.card label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.card .row label { flex: 1; }
.card fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.card legend { font-size: 13.5px; color: var(--muted); padding: 0 4px; }
.pfb-pick { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.pfb-pick .chk { display: block; font-weight: 400; }
.arow { display: flex; flex-direction: column; gap: 6px; }
.aform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 0 4px 8px; }
.aform input { flex: 1; min-width: 200px; }

.ov { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 12px; font-size: 14px; }
.ov span { color: var(--muted); }
.ov b { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-weight: 600; }

/* 업적 */
.bg-title { font-size: 15px; color: var(--muted); margin: 18px 0 10px; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.bcard { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.bcard b { font-size: 15px; }
.bcard p { font-size: 13px; color: var(--ink2); margin: 2px 0 4px; }
.medal { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #EEEAE1; color: #A39C8E; border: 2px solid #E0D9CB; }
.medal .ico { width: 24px; height: 24px; }
.bcard.on .medal { background: linear-gradient(160deg, #FFE45C, #F5A300); color: #243029; border-color: #243029; }
.bcard:not(.on) b { color: var(--muted); }
.bprog { height: 6px; background: var(--panel2); border-radius: 999px; overflow: hidden; margin: 4px 0 2px; }
.bprog i { display: block; height: 100%; background: #F5A300; border-radius: 999px; }
/* 랭킹 */
.rk-works { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rk-works a { display: grid; grid-template-columns: 36px 96px 1fr auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 8px 8px; text-decoration: none; }
.rk-works img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.rk-no { font-size: 22px; font-weight: 800; text-align: center; color: var(--accent-ink); }
.rk-t { display: flex; flex-direction: column; min-width: 0; }
.rk-v { text-align: right; display: flex; flex-direction: column; }
.rk-v b { font-size: 24px; }
.rk-rule { font-size: 14px; color: var(--ink2); display: flex; gap: 6px; align-items: center; margin: 0 0 10px; }
.rk-table td.num { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rk-table tr.podium td:first-child { font-weight: 800; color: var(--accent-ink); }
.rk-table tr.p1 { background: #FFF6D6; }
/* 관리 통계 */
.tiles.six { grid-template-columns: repeat(7, 1fr); margin-bottom: 12px; }
.stats .block-head .small { display: inline-flex; gap: 8px; align-items: center; }
.charts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.mini-chart { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px 4px; }
.mini-chart figcaption { font-size: 13.5px; font-weight: 700; color: var(--ink2); margin-bottom: 4px; }
.mini-chart svg { width: 100%; height: auto; display: block; }
.mini-chart .tick { font-size: 11px; fill: #7C8596; }
@media (max-width: 1000px) { .tiles.six { grid-template-columns: repeat(4, 1fr); } .charts2 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .tiles.six { grid-template-columns: repeat(2, 1fr); } .rk-works a { grid-template-columns: 28px 64px 1fr auto; } .rk-works img { width: 64px; } }

/* 문서 */
.doc { max-width: 780px; }
.doc h1 { font-size: 34px; margin-bottom: 12px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }

/* 좁은 화면 */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 40px; }
  .wgrid { grid-template-columns: repeat(2, 1fr); }
  .ks-tiles { grid-template-columns: repeat(2, 1fr); }
  .whead { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .formbox { position: static; }
  .bd-row { grid-template-columns: repeat(3, 1fr); }
  .bd-work { grid-column: 1 / -1; }
  .bd-cell:nth-child(2), .bd-cell:nth-child(5) { border-left: 0; }
  .admin-grid { grid-template-columns: 1fr; }
  .flow-card.wide .flow { grid-template-columns: 1fr; }
  .bslogan { display: none; }
}
@media (max-width: 720px) {
  .shell { padding: 16px 16px 48px; }
  .top-in { flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px; }
  .nav { order: 3; width: 100%; flex: none; margin: 0 -4px; }
  .acct { margin-left: auto; }
  .hero h1 { font-size: 34px; }
  .wgrid { grid-template-columns: 1fr; }
  .ks-board { padding: 14px 12px 10px; }
  .ks-tile { grid-template-columns: 56px 1fr; }
  .ks-tile img { width: 56px; }
  .wgrid.one .wcard { flex-direction: column; }
  .wgrid.one .wc-cover { width: 100%; }
  .wgrid.one .wc-body { padding: 14px 16px 16px; }
  .wh-info h1 { font-size: 28px; }
  .shots { grid-template-columns: 1fr 1fr; }
  .tiles { gap: 8px; }
  .t-val b { font-size: 28px; }
  .mygrid { grid-template-columns: 1fr; }
  .chlist li { grid-template-columns: 38px 1fr; }
  .chlist .chs { grid-column: 2; justify-content: flex-start; }
  .chlist li > .muted { display: none; }
  .pn { grid-template-columns: 1fr; gap: 2px; }
  .bd-row { grid-template-columns: 1fr 1fr; }
  .bd-cell { border-left: 0; }
  .pbar { gap: 8px; padding: 0 8px; }
  .pb-back span, .pb-actions .btn span, .pb-timer .tm-all { display: none; }
  .pb-title .ver-chip { display: none; }
  .page-head h1 { font-size: 26px; }
  .review { grid-template-columns: 48px 1fr; gap: 10px; padding: 12px; }
  .rv-score { height: 48px; }
  .score-row span { height: 34px; font-size: 14px; }
}

/* ── 갈매기 한줄게임 (2026-09-29 리브랜딩) ── */
.nav-sub { display: flex; gap: 2px; margin-left: auto; padding-left: 8px; }
.nav-sub a { font-weight: 500; font-size: 14.5px; color: var(--muted); }
#games, #idea, #how, #write { scroll-margin-top: 80px; }

/* 첫 화면: 15초 한 줄 입력 영상 → 게임 */
@media (min-width: 1001px) { .hero { grid-template-columns: 1fr 1.2fr; gap: 36px; } }
.reel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 10px 12px; display: grid; gap: 10px; }
.reel-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b0d12; }
.reel-poster, .reel-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-vid { opacity: 0; transition: opacity .5s; }
.reel.on .reel-vid { opacity: 1; }
.reel-sound { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(12, 16, 26, .68); color: #fff; font: 700 13px var(--font); cursor: pointer; backdrop-filter: blur(4px); }
.reel-sound[aria-pressed="true"] { background: var(--accent-btn); }
.reel-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 999px; background: rgba(12, 16, 26, .78); color: #fff; font: 800 15px var(--font); cursor: pointer; }
.reel-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .14); }
.reel-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
.reel-cap { display: grid; gap: 4px; padding: 0 6px; }
.reel-line { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.45; min-height: 2.9em; }
.reel-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reel-title { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; text-decoration: none; }
.reel-title .ico { width: 16px; height: 16px; color: var(--accent-ink); }
.reel-note { margin: 0; padding: 0 6px; font-size: 12.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .reel-vid, .reel-bar i { transition: none; } }
.hero h1 { font-size: 48px; line-height: 1.22; }
.ol-label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent-ink); }
.ol-dots { display: flex; justify-content: center; gap: 6px; }
.ol-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line2); cursor: pointer; }
.ol-dots button[aria-current="true"] { background: var(--accent); width: 22px; border-radius: 5px; }

/* 게임 카드: 그림 → 이름 → 한 줄 → 장르 → 플레이 */
.wcard { position: relative; }
.wcard h3 a.wc-link { text-decoration: none; }
.wc-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.wcard:focus-within { border-color: var(--line2); }
.wc-idea { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.5; margin: 6px 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wcard .tags { margin-bottom: 12px; }
.wc-foot { align-items: center; }
.wc-play, .wc-meta { position: relative; z-index: 1; }
.wc-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.wc-meta .ico { width: 14px; height: 14px; color: var(--accent); vertical-align: -2px; }

/* 오늘 방송하는 게임 */

/* 홈의 한줄제보 */
.idea-home { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: var(--panel2); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.ih-intro h2 { display: flex; align-items: center; gap: 8px; font-size: 24px; margin-bottom: 6px; }
.ih-form { display: flex; gap: 8px; margin: 12px 0 8px; }
.ih-form input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line2); border-radius: 12px; background: var(--panel); font-size: 16px; }
.ih-form input:focus { border-color: var(--accent); outline: none; }
.ih-list { display: flex; flex-direction: column; gap: 8px; }
.ih-list .more { align-self: flex-end; }
.imini { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.imini .chip { align-self: flex-start; }
.imini b { font-size: 15.5px; line-height: 1.45; }
.imini:hover { border-color: var(--line2); }

/* 최근 업데이트: 문제 → 변경 → 확인 */
.upcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.upcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.up-head { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; text-decoration: none; font-size: 14px; }
.up-head img { width: 72px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.up-head .muted { display: block; }
.upcard h3 { font-size: 17px; }
.up-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink2); }
.up-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: baseline; }
.up-steps li span { font-size: 12px; font-weight: 800; color: var(--muted); }
.up-steps li.go span { color: var(--accent-ink); }
.up-steps li.go a { font-weight: 700; color: var(--accent-ink); white-space: nowrap; }

/* 한줄게임은 이렇게 만들어져요 */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: how; }
.how-steps li { counter-increment: how; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.how-steps li::before { content: counter(how); width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 4px; }
.how-steps li:not(:last-child)::after { content: "\2192"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 800; z-index: 1; }
.how-steps b { font-size: 16px; }
.how-steps span { font-size: 14px; color: var(--ink2); }
.how-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14.5px; color: var(--ink2); }
.how-note .ico { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent-ink); }

/* 게임 페이지: 이 게임의 한 줄 */
.wh-idea { margin: 10px 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid #F3CFB0; }
.wh-idea p { margin: 2px 0 0; font-size: 19px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.wi-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--accent-ink); }
.wh-idea.sub { background: var(--panel2); border-color: var(--line); }
.wh-idea.sub p { font-size: 16px; }
.wh-idea .more { display: inline-block; margin-top: 4px; font-size: 13.5px; }

/* 한줄제보 페이지 */
.ideas-head h1 { display: flex; align-items: center; gap: 10px; }
.idea-write { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.idea-form { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.if-line { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.if-line input { min-height: 52px; padding: 10px 14px; border: 2px solid var(--line2); border-radius: 12px; font-size: 17px; font-weight: 600; background: var(--panel); }
.if-line input:focus, .if-more textarea:focus { border-color: var(--accent); outline: none; }
.if-more summary { cursor: pointer; color: var(--ink2); font-weight: 600; }
.if-more textarea { width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; resize: vertical; background: var(--panel); }
.idea-rules { margin: 0; padding: 14px 16px 14px 32px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; color: var(--ink2); }
.idea-rules li { margin: 4px 0; }
.idea { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.idea.mine { border-color: var(--line2); }
.idea.hl { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 112, 31, .18); }
.idea-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.idea-line { font-size: 18px; font-weight: 700; line-height: 1.45; margin: 0; }
.idea-body { font-size: 14.5px; color: var(--ink2); margin: 0; }
.idea-note { font-size: 14px; margin: 0; padding: 8px 10px; background: var(--panel2); border-radius: 8px; }
.idea-note b { color: var(--accent-ink); margin-right: 6px; }
.idea-game { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--good-bg); }
.idea-game img { width: 72px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.idea-foot { display: flex; justify-content: flex-end; }
.btn.want { gap: 6px; }
.btn.want.on { background: var(--accent-soft); border-color: #F3CFB0; color: var(--accent-ink); }
.btn.want.on .ico { fill: currentColor; }
.chip.is-new { background: var(--panel2); }
.chip.is-review { background: var(--info-bg); color: var(--info); border-color: transparent; }
.chip.is-trial { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.is-playable { background: var(--good-bg); color: var(--good); border-color: transparent; }
.chip.is-hold { background: var(--panel2); color: var(--muted); }
.iform { flex-wrap: wrap; }

/* 플레이 화면: 한 판 끝나면 평가 권하기 */
.pb-nudge { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); animation: nudgein .4s ease-out; }
@keyframes nudgein { from { opacity: 0; transform: translateY(-4px); } }

/* 관리: 최근 7일 흐름 */

@media (max-width: 1000px) {
  .hero h1 { font-size: 38px; }
  .idea-home { grid-template-columns: 1fr; }
  .upcards { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .how-steps li:not(:last-child)::after { display: none; }
  .idea-write { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { padding-top: 12px; }
  .hero h1 { font-size: 31px; }
  .hero .btn.lg { flex: 1; justify-content: center; }
  .nav-sub { margin-left: 0; }
  .idea-home { padding: 16px; }
  .ih-form { flex-direction: column; }
  .ih-form .btn { justify-content: center; }
  .how-steps { grid-template-columns: 1fr; }
  .wh-idea p { font-size: 17px; }
  .pb-nudge { position: fixed; top: 46px; right: 8px; z-index: 40; box-shadow: var(--shadow); }
  .pb-actions .pb-nudge span { display: inline; }
}
.card label.chk { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
@media (max-width: 720px) { .btn.sm.wc-play { min-height: 44px; padding: 8px 18px; font-size: 15px; } .btn.sm.want { min-height: 40px; } }

/* 게임 페이지: 15초 소개 · 1분 영상 단추 */
.wh-vbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; } /* 영상 자막(왼쪽 아래)을 가리지 않게 영상 밑에 */
.wh-vbtns .wh-trailer { position: static; }
.wh-trailer.ghost { background: rgba(255, 255, 255, .88); color: var(--ink); }
.wh-trailer.ghost:hover { background: #fff; }
@media (max-width: 720px) { .reel-meta .btn.sm { min-height: 44px; padding: 8px 18px; font-size: 15px; } .reel-line { font-size: 16px; } }

/* ── 2026-09-30: 새 게임·업데이트 표시, 넓은 화면 4칸, 관리 화면 탭·새 글 ── */
.wc-tag { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--accent); box-shadow: 0 1px 6px rgba(0, 0, 0, .28); letter-spacing: .01em; }
.wc-tag.upd { background: #2F6BB3; }
@media (min-width: 1240px) { .wgrid:not(.one) { grid-template-columns: repeat(4, 1fr); gap: 18px; } .wgrid:not(.one) .wc-foot { flex-wrap: wrap; gap: 8px; } }
.tabs button small { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.admin-head h1 { margin-bottom: 4px; }
.atabs { position: sticky; top: 0; z-index: 3; background: var(--bg); padding-top: 4px; }
.acount { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 800; line-height: 1.5; color: #fff; background: var(--accent); vertical-align: 1px; }
.acount[hidden] { display: none; }
.admin-link { gap: 4px; }
.admin-link .ico { width: 15px; height: 15px; }
.acct { display: flex; align-items: center; gap: 8px; }
.chip.new { background: var(--accent); color: #fff; border-color: transparent; }
.review.arv.fresh, .arow.fresh > .fb, .arow.fresh > .idea { border-left: 4px solid var(--accent); background: #FFF8F1; }
.review.arv.is-hidden p { opacity: .62; }
.review.arv .rv-head .chip.work { font-size: 13px; }
.apanel { min-height: 240px; }
.more-row { display: flex; justify-content: center; margin-top: 12px; }
.reports { margin-top: 12px; padding: 10px 14px; border-left: 4px solid var(--warn); }
.reports summary { cursor: pointer; font-weight: 700; color: var(--warn); display: flex; align-items: center; gap: 6px; }
.reports .list { margin-top: 10px; }
#precent .patch { margin: 0; }
@media (max-width: 720px) { .admin-link span { display: none; } .atabs button { padding: 10px 10px; } }
/* 휴대폰: 게임 카드를 가로형으로 (표지는 왼쪽, 제목·한 줄·플레이는 오른쪽) — 8개 게임이 한눈에 */
@media (max-width: 560px) {
  .wgrid:not(.one) { gap: 12px; }
  .wgrid:not(.one) .wcard { display: grid; grid-template-columns: 40% 1fr; }
  .wgrid:not(.one) .wc-cover { aspect-ratio: auto; height: 100%; min-height: 128px; }
  .wgrid:not(.one) .wc-body { padding: 10px 12px 12px; }
  .wgrid:not(.one) .wcard h3 { font-size: 16.5px; line-height: 1.3; }
  .wgrid:not(.one) .wc-idea { font-size: 13.5px; line-height: 1.45; margin: 4px 0 8px; }
  .wgrid:not(.one) .wcard .tags { display: none; }
  .wgrid:not(.one) .wc-foot { border-top: 0; padding-top: 0; flex-wrap: wrap; gap: 6px; align-items: center; }
  .wgrid:not(.one) .btn.sm.wc-play { min-height: 40px; padding: 6px 14px; font-size: 14px; }
  .wgrid:not(.one) .wc-tag { right: 6px; top: 6px; padding: 2px 7px; font-size: 11px; }
}
/* 플레이 중에는 당겨서 새로고침·튕김이 일어나지 않게 (게임 조작 중 실수로 새로고침되면 판이 날아간다) */
html.playing, html.playing body { overscroll-behavior: none; }
.pbar, .gate-screen, .imm-bar { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* 가로 휴대폰: 평가·의견 창은 오른쪽 세로 막대 옆에서 열린다 (.drawer 기본 규칙 뒤에 두어야 이긴다) */
@media (max-height: 520px) and (orientation: landscape) {
  .drawer { top: 0; right: calc(48px + env(safe-area-inset-right)); width: min(440px, calc(100% - 48px)); }
}

/* ── 같은 세계(길드 사무국): 단편 애니메이션 · 같은 세계의 게임들 ── */
.wb-film { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: #0d1220; cursor: pointer; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.wb-film img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wb-film:hover img { transform: scale(1.03); }
.wb-play { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(13, 18, 32, .78); color: #fff; font-size: 15px; backdrop-filter: blur(4px); }
.wb-play svg { width: 18px; height: 18px; }
.wb-play small { color: rgba(255, 255, 255, .78); font-size: 13px; }
.wb-play b { white-space: nowrap; }
.wb-film.sm .wb-play { left: 10px; bottom: 10px; padding: 7px 12px; font-size: 14px; }
.world-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: 20px; }
.world-band h2 { font-size: 24px; margin-bottom: 8px; }
.world-band .lead { font-size: 16px; }
.wb-games { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 10px; }
.wb-game { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); text-decoration: none; min-width: 0; }
.wb-game:hover { border-color: var(--line2); background: var(--panel); }
.wb-game img { width: 84px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; }
.wb-game span { display: flex; flex-direction: column; min-width: 0; }
.wb-game b { font-size: 15px; }
.wb-game small { color: var(--accent-ink); font-size: 12.5px; font-weight: 700; }
.wb-game em { font-style: normal; color: var(--ink2); font-size: 13.5px; margin-top: 2px; }
.world-box .wbx { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 20px; align-items: center; }
.world-box .wbx-side .tagline { font-weight: 700; color: var(--accent-ink); margin-bottom: 4px; }
.world-box .wbx-side .muted { font-size: 14.5px; margin-bottom: 12px; }
.world-box .wbx-list { display: grid; gap: 10px; }
.world-box .wb-game img { width: 120px; }
.world-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center; margin-top: 8px; }
.world-player { position: relative; }
.world-film { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); background: #0d1220; box-shadow: var(--shadow); }
.wp-cover { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r); background: transparent; cursor: pointer; }
.wp-big { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(13, 18, 32, .72); color: #fff; backdrop-filter: blur(4px); transition: transform .2s ease, background .2s ease; }
.wp-big svg { width: 32px; height: 32px; margin-left: 4px; }
.wp-cover:hover .wp-big, .wp-cover:focus-visible .wp-big { transform: scale(1.08); background: var(--accent); }
.world-text h1 { font-size: 30px; margin-bottom: 6px; }
.world-text .tagline { font-size: 18px; font-weight: 700; color: var(--accent-ink); }
.world-games { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.world-game { display: grid; grid-template-columns: 200px 1fr; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.world-game img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.world-game h3 { font-size: 19px; margin-bottom: 4px; }
.world-game h3 a { text-decoration: none; }
.world-game p { color: var(--ink2); font-size: 15px; }
.wg-place { color: var(--accent-ink) !important; font-weight: 700; font-size: 13.5px !important; margin-bottom: 2px; }
.world-time { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; border-left: 3px solid var(--line2); }
.world-time li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-left: 14px; }
.world-time b { color: var(--accent-ink); }
@media (max-width: 860px) {
  .world-band, .world-hero, .world-box .wbx { grid-template-columns: 1fr; }
  .world-games { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .world-band { padding: 14px; gap: 16px; }
  .wb-name { display: none; }
  .wp-big { width: 60px; height: 60px; }
  .wp-big svg { width: 26px; height: 26px; }
  .world-band h2 { font-size: 20px; }
  .wb-games { grid-template-columns: 1fr; }
  .world-game { grid-template-columns: 1fr; }
  .world-time li { grid-template-columns: 1fr; gap: 2px; }
  .world-text h1 { font-size: 24px; }
}
