/* PLAYORA 세포 게임. 회색빛 청록 하나를 바탕으로, 강조는 독 주머니의 호박색 하나만 아껴 씀.
   바깥 페이지는 슬라이드글라스 같은 흰 바탕 + 실험 노트. 게임 안 크기는 모두 em (app.js가 상자 크기로 글자 크기를 정함). */
:root {
  --ink: #1f2c2e; --ink2: #4b5d5f; --paper: #f2f5f4; --paper2: #e3eae8; --line: rgba(31, 44, 46, 0.16);
  --teal: #4f7c7a; --teal2: #8fb3ad; --deep: #142224; --deep2: #1d3133; --glass: rgba(14, 26, 28, 0.62); --glass2: rgba(14, 26, 28, 0.82);
  --amber: #e0a33a; --amber2: #f1c56b; --warn: #c8553a; --snow: #eef4f2; --snow2: #b9cbc8;
  --font-d: "Hahmlet", "Noto Serif KR", "Nanum Myeongjo", serif;
  --font-b: "IBM Plex Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --s1: 0.25em; --s2: 0.5em; --s3: 0.75em; --s4: 1em; --s6: 1.5em; --s8: 2em;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@supports (color: oklch(0 0 0)) {
  :root { --ink: oklch(0.27 0.018 205); --ink2: oklch(0.45 0.022 205); --paper: oklch(0.967 0.005 185); --paper2: oklch(0.928 0.012 185); --teal: oklch(0.54 0.05 190); --teal2: oklch(0.74 0.04 185); --deep: oklch(0.22 0.022 205); --deep2: oklch(0.28 0.026 200); --amber: oklch(0.76 0.135 75); --amber2: oklch(0.84 0.11 82); --warn: oklch(0.58 0.15 38); --snow: oklch(0.96 0.008 180); --snow2: oklch(0.83 0.02 185); }
}
html { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-b); font-size: 16px; line-height: 1.65; -webkit-text-size-adjust: 100%; }
a { color: inherit; }

/* ---------------------------------------------------------------- 바깥 페이지 */
.mast { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 1.25rem; background: var(--deep); color: var(--snow); font-size: 0.86rem; font-weight: 500; }
.mast a { text-decoration: none; }
.mast-brand b { font-family: var(--font-d); font-weight: 700; letter-spacing: 0.06em; margin-right: 0.6rem; color: var(--snow); }
.mast-brand span { color: var(--snow2); }
.mast-more { margin-left: auto; border-bottom: 2px solid var(--amber); }
.head { max-width: 1060px; margin: 0 auto; padding: 1.5rem 1.25rem 0.9rem; display: flex; align-items: baseline; gap: 0.3rem 1.4rem; flex-wrap: wrap; }
.head h1 { font-family: var(--font-d); font-weight: 700; font-style: normal; font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: 1; margin: 0; letter-spacing: -0.02em; }
.head p { margin: 0; font-weight: 500; color: var(--ink2); font-size: 0.95rem; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 12px; }
.about { max-width: 1060px; margin: 2.6rem auto 0; padding: 0 1.25rem; }
.about-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 2.8rem; }
.about h2 { font-family: var(--font-d); font-weight: 700; font-style: normal; font-size: 1.55rem; line-height: 1.3; margin: 2.4rem 0 0.6rem; word-break: keep-all; letter-spacing: -0.01em; }
.about h2:first-child { margin-top: 0; }
.about h3 { font-size: 1.03rem; font-weight: 700; margin: 1.3rem 0 0.25rem; font-style: normal; }
.about p, .about li { word-break: keep-all; }
.about p { margin: 0 0 0.85rem; }
.about ol { padding-left: 1.3rem; margin: 0 0 1rem; } .about li { margin: 0 0 0.45rem; }
.about .note { border-left: 4px solid var(--teal); background: var(--paper2); padding: 0.75rem 1rem; font-size: 0.95rem; }
.stagetab-wrap { overflow-x: auto; margin: 0.4rem 0 1rem; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.stagetab { border-collapse: collapse; width: 100%; font-size: 0.88rem; min-width: 34rem; }
.stagetab th, .stagetab td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; word-break: keep-all; }
.stagetab thead th { font-weight: 700; color: var(--ink2); font-size: 0.8rem; letter-spacing: 0.02em; }
.stagetab tbody th { font-family: var(--font-d); font-weight: 700; white-space: nowrap; }
.about dl { margin: 0; }
.about dt { font-weight: 700; margin-top: 1rem; }
.about dd { margin: 0.2rem 0 0; color: var(--ink2); }
.about .more { margin-top: 2.2rem; font-size: 0.9rem; line-height: 1.9; color: var(--ink2); }
.about .more a { text-decoration: none; border-bottom: 1px solid rgba(31, 44, 46, 0.3); }
.about-side h3 { margin-top: 0; font-family: var(--font-d); font-weight: 700; font-size: 1.1rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.3rem; }
.about-side h3 ~ h3 { margin-top: 1.6rem; }
.keytab { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.keytab th { text-align: left; padding: 0.35rem 0.6rem 0.35rem 0; font-weight: 700; white-space: nowrap; vertical-align: top; }
.keytab td { padding: 0.35rem 0; color: var(--ink2); border-bottom: 1px solid var(--line); word-break: keep-all; }
.foot { max-width: 1060px; margin: 3rem auto 0; padding: 1.2rem 1.25rem 2.6rem; border-top: 3px solid var(--ink); font-size: 0.85rem; color: var(--ink2); }
.foot a { margin-right: 1.1rem; font-weight: 700; color: var(--ink); text-decoration: none; display: inline-block; }
.foot p { margin: 0.7rem 0 0; }
@media (max-width: 820px) { .about-cols { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; } .mast { padding: 0.5rem 0.9rem; } .head { padding: 1rem 0.9rem 0.7rem; } .about, .foot { padding-left: 0.9rem; padding-right: 0.9rem; } .wrap { padding: 0 6px; } }
html.embed .mast, html.embed .head, html.embed .about, html.embed .foot { display: none; }
html.embed, html.embed body { height: 100%; overflow: hidden; background: var(--deep); }
html.embed .wrap { max-width: none; padding: 0; }
.nojs { padding: 2em; color: var(--snow); }

/* ---------------------------------------------------------------- 게임 상자 */
.cell { position: relative; box-sizing: border-box; width: 100%; aspect-ratio: 16 / 10; max-height: 84vh; min-height: 300px; margin: 0 auto; background: var(--deep); color: var(--snow); border-radius: 10px; overflow: hidden; font-family: var(--font-b); line-height: 1.4; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: none; contain: layout paint; }
@media (max-width: 640px) and (orientation: portrait) { .cell { aspect-ratio: 10 / 15; max-height: 82vh; } }
html.embed .cell { position: fixed; inset: 0; width: auto; height: auto; aspect-ratio: auto; max-height: none; min-height: 0; border-radius: 0; }
.cell * { box-sizing: border-box; }
.cell button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
.cell button:disabled { cursor: default; }
.cell :focus-visible { outline: 2px solid var(--amber2); outline-offset: 2px; }
.cl-cv { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }

/* HUD */
.cl-hud { position: absolute; inset: 0; pointer-events: none; }
.cl-hud[hidden] { display: none; }
.cl-hud.dim .cl-top, .cl-hud.dim .cl-stab { opacity: 0.35; }
.cl-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s2) var(--s3); }
.cl-st { display: flex; flex-direction: column; gap: 0.3em; min-width: 0; flex: 1 1 auto; }
.cl-st b { font-family: var(--font-d); font-weight: 700; font-size: 1.05em; letter-spacing: -0.01em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-tasks { display: flex; flex-wrap: wrap; gap: 0.3em; }
.chip { display: inline-flex; gap: 0.3em; align-items: baseline; padding: 0.15em 0.6em; border-radius: 1em; background: var(--glass); font-size: 0.82em; white-space: nowrap; }
.chip b { font-variant-numeric: tabular-nums; }
.chip.done { background: rgba(224, 163, 58, 0.9); color: #1d1405; }
.cl-meters { display: flex; flex-direction: column; gap: 0.32em; flex: 0 0 auto; padding: 0.4em 0.6em; background: var(--glass); border-radius: 0.5em; }
.cl-m { display: grid; grid-template-columns: 2.6em 8.5em; align-items: center; font-size: 0.8em; }
.cl-bar { height: 0.62em; border-radius: 0.4em; background: rgba(238, 244, 242, 0.16); overflow: hidden; }
.cl-bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 0.25s var(--ease); }
.cl-bar.g i { background: var(--teal2); } .cl-bar.g.full i { background: var(--amber2); }
.cl-bar.h i { background: #d9e6e2; } .cl-bar.h.low i { background: var(--warn); }
.cl-pts { display: flex; flex-direction: column; align-items: center; padding: 0.3em 0.7em; background: var(--glass); border-radius: 0.5em; flex: 0 0 auto; }
.cl-pts span { font-size: 0.72em; color: var(--snow2); white-space: nowrap; }
.cl-pts b { font-family: var(--font-d); font-size: 1.3em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cl-tb { display: flex; gap: 0.35em; pointer-events: auto; flex: 0 0 auto; }
.tb { width: 2.5em; height: 2.5em; display: grid; place-items: center; border: 0; border-radius: 0.5em; background: var(--glass); padding: 0; }
.tb svg { width: 1.3em; height: 1.3em; }
.tb:hover { background: var(--glass2); }
.cl-msg { position: absolute; left: 50%; top: 5.2em; transform: translateX(-50%); margin: 0; max-width: min(30em, 90%); padding: 0.45em 1em; border-radius: 0.5em; background: var(--glass2); font-size: 0.92em; text-align: center; opacity: 0; transition: opacity 0.3s; word-break: keep-all; }
.cl-msg.on { opacity: 1; }
.cl-intro { position: absolute; left: var(--s4); bottom: 4.6em; max-width: min(26em, 70%); padding: 0.7em 1em; border-left: 3px solid var(--amber); background: var(--glass2); border-radius: 0 0.5em 0.5em 0; transition: opacity 0.7s, transform 0.7s var(--ease); }
.cl-intro b { display: block; font-family: var(--font-d); font-size: 1.35em; line-height: 1.2; }
.cl-intro span { display: block; color: var(--snow2); font-size: 0.85em; margin-top: 0.15em; }
.cl-intro p { margin: 0.45em 0 0; font-size: 0.88em; word-break: keep-all; }
.cl-intro.out { opacity: 0; transform: translateY(0.5em); }
.cl-tut { position: absolute; left: var(--s3); bottom: var(--s3); max-width: min(24em, 62%); padding: 0.7em 0.9em; background: var(--snow); color: var(--ink); border-radius: 0.5em; pointer-events: auto; box-shadow: 0 0.3em 1.2em rgba(0, 0, 0, 0.3); }
.cl-tut[hidden] { display: none; }
.cl-tut p { margin: 0 0 0.35em; font-size: 0.92em; word-break: keep-all; }
.cl-tut .step { font-size: 0.75em; color: var(--ink2); margin-right: 0.8em; }
.lnk { background: none; border: 0; padding: 0.3em 0; text-decoration: underline; text-underline-offset: 0.2em; font-size: 0.82em; color: inherit; opacity: 0.85; }
.cl-hand { position: absolute; width: 2.8em; height: 3.4em; pointer-events: none; transform: translate(-30%, -10%); filter: drop-shadow(0 0.15em 0.3em rgba(0, 0, 0, 0.4)); }
.cl-hand[hidden] { display: none; }
.cl-hand svg { width: 100%; height: 100%; }
.cl-hand.stab svg, .cl-hand.pull svg { animation: press 1.2s ease-in-out infinite; }
.cl-hand.m.stab .lb { animation: blink 1.2s steps(1) infinite; }
@keyframes press { 0%, 100% { transform: scale(1); } 30%, 70% { transform: scale(0.86); } }
@keyframes blink { 0% { opacity: 0.2; } 30% { opacity: 1; } 75% { opacity: 0.2; } }
.cl-fis { position: absolute; left: 50%; bottom: var(--s4); transform: translateX(-50%); padding: 0.7em 1.6em; border: 0; border-radius: 2em; background: var(--amber); color: #1d1405; font-weight: 700; font-size: 1.05em; pointer-events: auto; box-shadow: 0 0 0 0.25em rgba(224, 163, 58, 0.3); animation: glow 1.6s ease-in-out infinite; white-space: nowrap; }
.cl-fis[hidden] { display: none; }
@keyframes glow { 50% { box-shadow: 0 0 0 0.6em rgba(224, 163, 58, 0.12); } }
.cl-stab { display: none; position: absolute; right: var(--s4); bottom: var(--s4); width: 5.6em; height: 5.6em; border-radius: 50%; border: 0.18em solid rgba(238, 244, 242, 0.7); background: rgba(20, 34, 36, 0.55); color: var(--snow); font-weight: 700; font-size: 1em; pointer-events: auto; place-items: center; touch-action: none; }
.cell.touch .cl-stab { display: grid; }
.cell .cl-stab { touch-action: none; }
.cl-stab.on, .cl-stab.busy { background: rgba(224, 163, 58, 0.82); color: #1d1405; border-color: var(--amber2); }
.cell.touch .cl-fis { left: var(--s4); transform: none; bottom: 1.6em; }
.cl-joy { position: absolute; width: 6.4em; height: 6.4em; margin: -3.2em 0 0 -3.2em; border-radius: 50%; border: 2px solid rgba(238, 244, 242, 0.45); background: rgba(238, 244, 242, 0.08); pointer-events: none; }
.cl-joy[hidden] { display: none; }
.cl-joy i { position: absolute; left: 50%; top: 50%; width: 2.2em; height: 2.2em; margin: -1.1em 0 0 -1.1em; border-radius: 50%; background: rgba(238, 244, 242, 0.55); }
.cl-toast { position: absolute; left: 50%; bottom: 5.4em; transform: translate(-50%, 0.5em); padding: 0.4em 1em; border-radius: 1.4em; background: var(--snow); color: var(--ink); font-size: 0.88em; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.35s var(--ease); white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.cl-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 화면들 */
.cl-scr { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s4); background: rgba(10, 20, 22, 0.5); overflow: hidden; }
.cl-scr[hidden] { display: none; }
.md { position: relative; max-width: 34em; width: 100%; max-height: 100%; overflow: auto; padding: 1.2em 1.4em; border-radius: 0.6em; background: var(--snow); color: var(--ink); box-shadow: 0 0.5em 2em rgba(0, 0, 0, 0.35); }
.md h2 { font-family: var(--font-d); font-weight: 700; font-style: normal; font-size: 1.5em; line-height: 1.25; margin: 0 0 0.4em; letter-spacing: -0.01em; word-break: keep-all; }
.md p { margin: 0 0 0.6em; word-break: keep-all; }
.md .kick { font-size: 0.78em; font-weight: 700; letter-spacing: 0.04em; color: var(--teal); margin: 0 0 0.3em; }
.md .sub { color: var(--ink2); font-size: 0.9em; }
.btns { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0.8em 0; }
.btn { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.6em 1.1em; border: 2px solid var(--ink); border-radius: 0.45em; background: transparent; color: var(--ink); font-weight: 700; white-space: nowrap; transition: background 0.15s; }
.btn small { font-weight: 500; font-size: 0.8em; color: var(--ink2); }
.btn:hover:not(:disabled) { background: var(--paper2); }
.btn.pri { background: var(--ink); color: var(--snow); }
.btn.pri small { color: var(--snow2); }
.btn.pri:hover:not(:disabled) { background: var(--deep2); }
.btn.warn { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn.sm { padding: 0.35em 0.8em; font-size: 0.88em; }
.btn:disabled { opacity: 0.45; }
.keys { width: 100%; border-collapse: collapse; font-size: 0.86em; margin: 0.5em 0 0.6em; }
.keys th { text-align: left; padding: 0.3em 0.8em 0.3em 0; white-space: nowrap; vertical-align: top; }
.keys td { padding: 0.3em 0; color: var(--ink2); border-bottom: 1px solid var(--line); word-break: keep-all; }

/* 시작 화면: 왼쪽에 치우친 큰 제목 */
.cl-scr.title { place-items: center start; background: linear-gradient(90deg, rgba(10, 20, 22, 0.78) 0%, rgba(10, 20, 22, 0.45) 46%, rgba(10, 20, 22, 0) 72%); padding-left: clamp(1em, 5%, 3em); }
.md.title { background: none; box-shadow: none; color: var(--snow); padding: 0; max-width: 27em; overflow: visible; }
.md.title .kick { color: var(--amber2); }
.ti-h { font-size: 3.4em !important; line-height: 1 !important; margin: 0.05em 0 0.25em !important; }
.ti-sub { font-size: 1.02em; color: var(--snow); max-width: 23em; }
.ti-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5em; margin: 1em 0 0.8em; }
.md.title .btn { border-color: rgba(238, 244, 242, 0.7); color: var(--snow); min-width: 13em; }
.md.title .btn small { color: var(--snow2); }
.md.title .btn.pri { background: var(--amber); border-color: var(--amber); color: #1d1405; }
.md.title .btn.pri small { color: #4a3510; }
.md.title .btn:hover:not(:disabled) { background: rgba(238, 244, 242, 0.12); }
.md.title .btn.pri:hover:not(:disabled) { background: var(--amber2); }
.ti-note { font-size: 0.82em; color: var(--snow2); max-width: 24em; }
.ti-foot { display: flex; gap: 1.2em; }
.cell.port .cl-scr.title { place-items: end start; background: linear-gradient(0deg, rgba(10, 20, 22, 0.85) 0%, rgba(10, 20, 22, 0.5) 55%, rgba(10, 20, 22, 0.1) 100%); padding: var(--s4); }
.cell.port .ti-h { font-size: 2.8em !important; }

/* 카드·도감 */
.md.card { max-width: 40em; display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 1em 1.3em; align-items: start; }
.md.card > .btn.pri, .md.card .btns { grid-column: 1 / -1; justify-self: end; margin: 0; }
.cd-art canvas { width: 11em; height: 11em; display: block; }
.cd-txt h2 { margin-bottom: 0.1em; }
.latin { font-size: 0.85em; color: var(--ink2); }
.cd-facts { margin: 0.4em 0 0.6em; padding-left: 1.1em; }
.cd-facts li { margin: 0 0 0.4em; word-break: keep-all; }
.cd-role { font-size: 0.88em; padding: 0.5em 0.7em; background: var(--paper2); border-radius: 0.4em; margin: 0; }
.cd-role b { color: var(--teal); margin-right: 0.3em; }
.md.codex { max-width: 44em; }
.cx-head { display: flex; align-items: baseline; gap: 1em; flex-wrap: wrap; }
.cx-head h2 { margin: 0; } .cx-head p { margin: 0; color: var(--ink2); } .cx-head .btn { margin-left: auto; }
.cx-grid { list-style: none; margin: 0.8em 0 0.4em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.4em, 1fr)); gap: 0.5em; }
.cx-it { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.25em; padding: 0.4em 0.2em 0.5em; border: 1px solid var(--line); border-radius: 0.5em; background: var(--paper); }
.cx-it canvas { width: 4.8em; height: 4.8em; }
.cx-it span { font-size: 0.82em; font-weight: 700; word-break: keep-all; text-align: center; }
.cx-it.lock span { color: var(--ink2); font-weight: 500; }
.cx-it:hover:not(:disabled) { border-color: var(--ink); }
.cx-note { font-size: 0.78em; color: var(--ink2); margin: 0.3em 0 0; }
.cell.port .md.card { grid-template-columns: minmax(0, 1fr); }
.cell.port .cd-art canvas { width: 8em; height: 8em; margin: 0 auto; }

/* 진화(편집) 화면 */
.cl-scr.editor { padding: 0; background: none; place-items: stretch; }
.md.ed { max-width: none; max-height: none; height: 100%; border-radius: 0; padding: 0; background: none; box-shadow: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(19em, 24em); overflow: hidden; color: var(--snow); }
.ed-view { position: relative; min-height: 0; }
.ed-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.ed-hint { position: absolute; left: var(--s4); right: var(--s4); bottom: var(--s3); margin: 0; padding: 0.4em 0.8em; background: var(--glass2); border-radius: 0.4em; font-size: 0.86em; word-break: keep-all; pointer-events: none; }
.cell.port .ed-hint { bottom: var(--s2); font-size: 0.78em; padding: 0.3em 0.6em; opacity: 0.92; }
.ed-side { display: flex; flex-direction: column; min-height: 0; background: var(--snow); color: var(--ink); padding: 0.9em 0.9em 0.8em; }
.ed-head h2 { font-size: 1.2em; margin: 0 0 0.1em; }
.ed-head p { margin: 0 0 0.4em; font-size: 0.9em; color: var(--ink2); }
.ed-head b { font-family: var(--font-d); font-size: 1.3em; color: var(--ink); }
.ed-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; min-height: 0; border-top: 1px solid var(--line); }
.ed-row { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto 2.3em 4.4em; gap: 0.3em 0.45em; align-items: center; padding: 0.4em 0.1em; border-bottom: 1px solid var(--line); }
.ed-row.sel { background: rgba(224, 163, 58, 0.18); }
.ed-row .ico { width: 2.4em; height: 2.4em; }
.ed-row .nm b { display: block; font-size: 0.92em; line-height: 1.25; }
.ed-row .nm small { display: block; font-size: 0.74em; color: var(--ink2); line-height: 1.3; word-break: keep-all; }
.ed-row .lv { display: flex; gap: 0.2em; }
.ed-row .lv i { width: 0.55em; height: 0.55em; border-radius: 50%; border: 1.5px solid var(--ink2); }
.ed-row .lv i.on { background: var(--teal); border-color: var(--teal); }
.pm { height: 2.3em; border: 1.5px solid var(--ink); border-radius: 0.4em; background: transparent; font-weight: 700; padding: 0; white-space: nowrap; font-size: 0.86em; }
.pm.plus { background: var(--ink); color: var(--snow); }
.pm:disabled { opacity: 0.35; }
.ed-row.look { grid-template-columns: 2.4em minmax(0, 1fr); }
.ed-row.look .sw { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.35em; }
.hue { width: 2.2em; height: 2.2em; border-radius: 50%; border: 2px solid transparent; padding: 0; }
.hue.on { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--snow); }
.pat { height: 2.2em; padding: 0 0.7em; border: 1.5px solid var(--line); border-radius: 0.4em; background: transparent; font-size: 0.82em; }
.pat.on { border-color: var(--ink); background: var(--paper2); font-weight: 700; }
.ed-real { flex: 0 0 auto; font-size: 0.8em; color: var(--ink2); margin: 0.5em 0; min-height: 3.2em; word-break: keep-all; }
.ed-head, .ed-side > .btn.pri { flex: 0 0 auto; }
.ed-real b { color: var(--ink); margin-right: 0.3em; }
.ed-side > .btn.pri { align-self: stretch; justify-content: center; }
.cell.port .md.ed { grid-template-columns: minmax(0, 1fr); grid-template-rows: 34% minmax(0, 1fr); }
.cell.port .ed-side { padding: 0.6em 0.7em; }
.cell.port .ed-real { min-height: 0; }

/* 그 밖의 창 */
.md.pause, .md.dead, .md.confirm, .md.free { max-width: 30em; }
.md.dead .cause { font-weight: 700; color: var(--warn); }
.md.dead .tip { font-size: 0.88em; padding: 0.5em 0.7em; background: var(--paper2); border-radius: 0.4em; }
.fl { list-style: none; margin: 0.6em 0; padding: 0; display: grid; gap: 0.4em; }
.fl .btn { width: 100%; justify-content: flex-start; }
.cl-scr.ending { background: linear-gradient(90deg, rgba(10, 20, 22, 0.82), rgba(10, 20, 22, 0.35) 70%, rgba(10, 20, 22, 0)); place-items: center start; }
.md.ending { background: none; box-shadow: none; color: var(--snow); max-width: 30em; }
.md.ending .kick { color: var(--amber2); }
.md.ending .keys td { color: var(--snow2); border-color: rgba(238, 244, 242, 0.15); }
.md.ending .sub { color: var(--snow2); }
.md.ending .btn { border-color: rgba(238, 244, 242, 0.7); color: var(--snow); }
.md.ending .btn.pri { background: var(--amber); border-color: var(--amber); color: #1d1405; }
.md.ending .btn:hover:not(:disabled) { background: rgba(238, 244, 242, 0.12); }
.md.ending .btn.pri:hover:not(:disabled) { background: var(--amber2); }
.cell.port .cl-scr.ending { place-items: end start; background: linear-gradient(0deg, rgba(10, 20, 22, 0.88), rgba(10, 20, 22, 0.3)); }

/* 세로 화면 HUD */
.cell.port .cl-top { flex-wrap: wrap; gap: var(--s2); }
.cell.port .cl-st { flex: 1 1 calc(100% - 10.5em); order: 1; min-width: 0; }
.cell.port .cl-tb { order: 2; }
.cell.port .cl-meters { order: 3; flex: 1 1 auto; flex-direction: row; gap: 0.8em; }
.cell.port .cl-m { grid-template-columns: 2.4em minmax(3em, 1fr); flex: 1 1 0; }
.cell.port .cl-pts { order: 4; flex-direction: row; gap: 0.4em; align-items: baseline; }
.cell.port .cl-msg { top: 8.4em; }
.cell.port .cl-intro { bottom: 8em; max-width: calc(100% - 2em); }
.cell.port .cl-tut { bottom: 8em; max-width: calc(100% - 1.5em); }
.cell.port .cl-toast { bottom: 7.4em; }
@media (prefers-reduced-motion: reduce) {
  .cl-fis, .cl-hand svg, .cl-hand .lb { animation: none !important; }
  .cl-bar i, .cl-intro, .cl-toast, .cl-msg { transition: none; }
}
