/* PLAYORA 여드름 짜기. 민트 청록 하나를 바탕으로, 강조는 토마토색 하나(타이머·경고)만 아껴 씀.
   바깥 페이지는 관리실 타일 벽 같은 색 기운 적은 흰 바탕. 게임 안 크기는 모두 em (app.js가 상자 크기로 글자 크기를 정함). */
:root {
  --ink: #1f2a29; --ink2: #4f605d; --paper: #f3f6f5; --paper2: #e4ecea; --line: rgba(31, 42, 41, 0.16);
  --anchor: #2f8f83; --anchor2: #9fd8cd; --anchor3: #dcefeb; --accent: #e5533d; --wood: #c58d58; --star: #f2b84b;
  --font-d: "Jua", "Gowun Dodum", "Malgun Gothic", sans-serif;
  --font-b: "Gowun Dodum", "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.016 185); --ink2: oklch(0.46 0.02 185); --paper: oklch(0.97 0.004 180); --paper2: oklch(0.93 0.01 180); --anchor: oklch(0.58 0.09 180); --anchor2: oklch(0.85 0.06 178); --anchor3: oklch(0.94 0.025 178); --accent: oklch(0.62 0.18 33); }
}
html { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-b); font-size: 16px; line-height: 1.7; -webkit-text-size-adjust: 100%; }
a { color: inherit; }

/* ---------------------------------------------------------------- 바깥 페이지 */
.mast { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 1.25rem; background: var(--ink); color: #eef4f2; font-size: 0.86rem; }
.mast a { text-decoration: none; }
.mast-brand b { font-family: var(--font-d); font-weight: 400; letter-spacing: 0.06em; margin-right: 0.6rem; }
.mast-brand span { color: #b8c9c5; }
.mast-more { margin-left: auto; border-bottom: 2px solid var(--anchor2); }
.head { max-width: 1060px; margin: 0 auto; padding: 1.4rem 1.25rem 0.9rem; display: flex; align-items: baseline; gap: 0.3rem 1.2rem; flex-wrap: wrap; }
.head h1 { font-family: var(--font-d); font-weight: 400; font-style: normal; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
.head p { margin: 0; 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: 400; font-style: normal; font-size: 1.6rem; line-height: 1.3; margin: 2.4rem 0 0.6rem; word-break: keep-all; }
.about h2:first-child { margin-top: 0; }
.about h3 { font-size: 1.04rem; 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(--anchor); background: var(--paper2); padding: 0.75rem 1rem; font-size: 0.95rem; }
.typetab-wrap { overflow-x: auto; margin: 0.4rem 0 1rem; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.typetab { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 30rem; }
.typetab th, .typetab td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; word-break: keep-all; }
.typetab thead th { font-weight: 700; color: var(--ink2); font-size: 0.82rem; }
.typetab tbody th { font-family: var(--font-d); font-weight: 400; 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, 42, 41, 0.3); }
.about-side h3 { margin-top: 0; font-family: var(--font-d); font-weight: 400; font-size: 1.15rem; 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: #eaf1ef; touch-action: manipulation; -webkit-touch-callout: none; }
html.embed .wrap { max-width: none; padding: 0; }

/* ---------------------------------------------------------------- 게임 상자 */
.pm { position: relative; box-sizing: border-box; width: 100%; aspect-ratio: 16 / 10; max-height: 86vh; min-height: 320px; margin: 0 auto; background: #eaf1ef; color: var(--ink); border-radius: 12px; overflow: hidden; font-family: var(--font-b); line-height: 1.4; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; contain: layout paint; }
@media (max-width: 640px) and (orientation: portrait) { .pm { aspect-ratio: 10 / 16; max-height: 84vh; } }
html.embed .pm { position: fixed; inset: 0; width: auto; height: auto; aspect-ratio: auto; max-height: none; min-height: 0; border-radius: 0; }
.pm * { box-sizing: border-box; }
.pm button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
.pm button:disabled { cursor: default; }
.pm :focus-visible { outline: 3px solid var(--anchor); outline-offset: 2px; }
.pm [hidden] { display: none !important; }
.pm-cv { position: absolute; inset: 0; display: block; touch-action: none; }
.nojs { padding: 2em; }

/* HUD */
.pm-hud { position: absolute; inset: 0; pointer-events: none; }
.pm-hud > * { pointer-events: auto; }
.pm-tag { position: absolute; left: 0.6em; top: 0.6em; max-width: min(15em, 46%); background: #fff; border: 2px solid var(--ink); border-radius: 0.7em; padding: 0.35em 0.7em 0.4em; box-shadow: 0 0.2em 0 rgba(31, 42, 41, 0.3); display: flex; flex-direction: column; gap: 0.05em; }
.pm-tag b { font-family: var(--font-d); font-weight: 400; font-size: 1.15em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-tag span { font-size: 0.78em; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-tag .pm-left { color: var(--anchor); font-weight: 700; font-size: 0.82em; }
.pm-tr { position: absolute; right: 0.6em; top: 0.6em; display: flex; gap: 0.45em; align-items: flex-start; }
.landscape .pm-tr { right: 7.5em; }
.pm-ib { width: 2.7em; height: 2.7em; border-radius: 0.7em; border: 2px solid var(--ink); background: #fff; box-shadow: 0 0.18em 0 rgba(31, 42, 41, 0.3); display: grid; place-items: center; padding: 0; }
.pm-ib svg { width: 1.5em; height: 1.5em; }
.pm-ib:active { transform: translateY(0.12em); box-shadow: 0 0.06em 0 rgba(31, 42, 41, 0.3); }
.pm-timer { display: flex; flex-direction: column; align-items: center; width: 3.2em; }
.pm-timer svg { width: 3.1em; height: 3.1em; display: block; }
.pm-timer span { font-size: 0.74em; font-weight: 700; background: #fff; border: 1.5px solid var(--ink); border-radius: 1em; padding: 0 0.45em; margin-top: -0.35em; white-space: nowrap; }
.pm-timer.low span { background: var(--accent); color: #fff; }
.pm-timer.low svg { animation: pm-shake 0.5s infinite; }
@keyframes pm-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

.pm-tools { position: absolute; display: flex; gap: 0.35em; }
.portrait .pm-tools { left: 0; right: 0; bottom: 0.55em; justify-content: center; padding: 0 0.4em; }
.landscape .pm-tools { right: 0.4em; top: 0; bottom: 0; width: 6.1em; flex-direction: column; justify-content: center; align-items: center; }
.pm-tool { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.12em; width: 3.7em; padding: 0.2em 0 0.15em; background: none; border: 0; }
.pm-tool svg { width: 3.1em; height: 3.1em; padding: 0.45em; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 0.2em 0 rgba(31, 42, 41, 0.35); color: var(--ink); transition: transform 0.15s var(--ease); }
.pm-tool span { font-size: 0.74em; font-weight: 700; color: #fff; text-shadow: 0 1px 0 rgba(60, 30, 10, 0.6); white-space: nowrap; }
.pm-tool i { position: absolute; top: 0; right: 0.15em; font-style: normal; font-size: 0.62em; background: var(--ink); color: #fff; border-radius: 0.5em; padding: 0 0.35em; line-height: 1.5; }
.pm-tool[aria-pressed="true"] svg { background: var(--anchor3); border-color: var(--anchor); box-shadow: 0 0.06em 0 var(--anchor); transform: translateY(0.14em); outline: 3px solid var(--anchor); }
.pm-tool.flash svg { animation: pm-bounce 0.7s var(--ease) 2; }
@keyframes pm-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-0.4em) scale(1.08); } }
@media (hover: none) { .pm-tool i { display: none; } }
.pm-say { position: absolute; max-width: 14em; background: #fff; border: 2px solid var(--ink); border-radius: 1em; padding: 0.4em 0.75em; font-size: 0.95em; box-shadow: 0 0.18em 0 rgba(31, 42, 41, 0.25); pointer-events: none; animation: pm-pop 0.3s var(--ease); }
.pm-say::after { content: ""; position: absolute; left: 1.2em; bottom: -0.55em; width: 0.9em; height: 0.9em; background: #fff; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.pm-hint { position: absolute; left: 50%; transform: translateX(-50%); max-width: min(24em, 92%); background: var(--ink); color: #fff; border-radius: 0.8em; padding: 0.45em 0.9em; font-size: 0.9em; text-align: left; pointer-events: none; animation: pm-pop 0.3s var(--ease); }
.portrait .pm-hint { bottom: 7.6em; }
.landscape .pm-hint { bottom: 0.8em; left: calc(50% - 3.4em); }
@keyframes pm-pop { from { opacity: 0; transform: translateY(0.4em) scale(0.96); } }
.pm-hint { animation-name: pm-hint-in; }
@keyframes pm-hint-in { from { opacity: 0; margin-bottom: -0.4em; } }

/* 타이틀 */
.pm-title { position: absolute; inset: 0; pointer-events: none; }
.pm-title > * { pointer-events: auto; }
.pm-sign { position: absolute; left: 0.9em; top: 0.9em; background: #fff; border: 2px solid var(--ink); border-radius: 0.6em; padding: 0.55em 1em 0.6em; box-shadow: 0 0.25em 0 rgba(31, 42, 41, 0.3); transform: rotate(-2deg); transform-origin: 20% 0; }
.pm-sign::before, .pm-sign::after { content: ""; position: absolute; top: -0.9em; width: 2px; height: 0.9em; background: var(--ink); }
.pm-sign::before { left: 1.2em; } .pm-sign::after { right: 1.2em; }
.pm-sign h2 { margin: 0; font-family: var(--font-d); font-weight: 400; font-size: 2.2em; line-height: 1.05; letter-spacing: 0.01em; }
.pm-sign h2::after { content: ""; display: block; height: 0.16em; margin-top: 0.12em; background: var(--anchor); border-radius: 1em; width: 62%; }
.pm-sign p { margin: 0.25em 0 0; font-size: 0.85em; color: var(--ink2); }
.pm-cards { position: absolute; display: flex; flex-direction: column; gap: 0.5em; }
.portrait .pm-cards { left: 0.9em; right: 0.9em; bottom: 3.3em; }
.landscape .pm-cards { left: 0.9em; width: min(17em, 40%); top: 7.2em; }
.pm-card { text-align: left; background: #fff; border: 2px solid var(--ink); border-left: 0.6em solid var(--anchor); border-radius: 0.6em; padding: 0.45em 0.8em 0.5em; box-shadow: 0 0.22em 0 rgba(31, 42, 41, 0.3); display: flex; flex-direction: column; transition: transform 0.15s var(--ease); }
.pm-card b { font-family: var(--font-d); font-weight: 400; font-size: 1.25em; line-height: 1.2; }
.pm-card span { font-size: 0.8em; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-card:nth-child(2) { border-left-color: var(--wood); }
.pm-card:nth-child(3) { border-left-color: #8fb4c9; }
.pm-card:hover { transform: translateX(0.2em); }
.pm-card:active { transform: translateY(0.15em); box-shadow: 0 0.07em 0 rgba(31, 42, 41, 0.3); }
.pm-mini { position: absolute; display: flex; gap: 0.4em; flex-wrap: wrap; }
.portrait .pm-mini { left: 0.9em; bottom: 0.6em; }
.landscape .pm-mini { left: 0.9em; bottom: 0.5em; }
.pm-mini button { background: #fff; border: 2px solid var(--ink); border-radius: 0.6em; padding: 0.2em 0.65em; font-size: 0.82em; display: inline-flex; align-items: center; gap: 0.3em; box-shadow: 0 0.14em 0 rgba(31, 42, 41, 0.3); white-space: nowrap; }
.pm-mini button svg { width: 1.3em; height: 1.3em; }
.pm-try { position: absolute; margin: 0; font-size: 0.85em; background: rgba(255, 255, 255, 0.92); border: 1.5px dashed var(--anchor); border-radius: 1em; padding: 0.2em 0.7em; color: var(--ink); pointer-events: none; white-space: nowrap; transition: opacity 0.4s; }
.portrait .pm-try { right: 0.9em; top: 6.75em; }
.landscape .pm-try { right: 1em; bottom: 0.7em; }
.pm-try.done { opacity: 0; }

/* 창 */
.pm-scr { position: absolute; inset: 0; background: rgba(31, 42, 41, 0.45); display: grid; place-items: center; padding: 0.6em; }
.md { position: relative; width: min(31em, 100%); max-height: 100%; overflow: auto; background: #fff; border: 2px solid var(--ink); border-radius: 1em; padding: 1em 1.15em 1.05em; box-shadow: 0 0.35em 0 rgba(31, 42, 41, 0.35); animation: pm-pop 0.3s var(--ease); }
.md h2 { margin: 0 0 0.4em; font-family: var(--font-d); font-weight: 400; font-size: 1.55em; line-height: 1.2; }
.md p { margin: 0 0 0.6em; word-break: keep-all; }
.md .small { font-size: 0.85em; color: var(--ink2); }
.md .row { display: flex; gap: 0.5em; flex-wrap: wrap; margin-top: 0.8em; }
.pm-btn { border: 2px solid var(--ink); background: #fff; border-radius: 0.75em; padding: 0.5em 1em; font-weight: 700; box-shadow: 0 0.2em 0 rgba(31, 42, 41, 0.35); white-space: nowrap; }
.pm-btn.pri { background: var(--anchor); color: #fff; }
.pm-btn.warn { background: var(--accent); color: #fff; }
.pm-btn:active { transform: translateY(0.14em); box-shadow: 0 0.06em 0 rgba(31, 42, 41, 0.35); }
.opts { display: flex; gap: 0.5em; flex-wrap: wrap; margin: 0.3em 0 0.6em; }
.pm-opt { border: 2px solid var(--ink); background: #fff; border-radius: 2em; padding: 0.3em 0.9em; white-space: nowrap; }
.pm-opt[aria-pressed="true"] { background: var(--anchor3); border-color: var(--anchor); }
.pm-opt b { color: var(--anchor); }
.pm-opt[aria-pressed="false"] b { color: var(--ink2); }

/* 결과: 코르크판에 전·후 사진 두 장 + 꼬리표 */
.md-result { width: min(30em, 100%); padding: 0.8em; }
.rs .cork { display: flex; justify-content: center; gap: 0.9em; padding: 0.9em 0.6em 1em; border-radius: 0.7em; border: 2px solid var(--ink); background-color: #c9a06c; background-image: radial-gradient(rgba(90, 55, 20, 0.35) 1px, transparent 1.6px), radial-gradient(rgba(255, 235, 200, 0.35) 1px, transparent 1.6px); background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px; }
.pol { position: relative; margin: 0; background: #fff; padding: 0.4em 0.4em 0.2em; box-shadow: 0 0.2em 0.4em rgba(40, 25, 10, 0.35); width: 9em; }
.pol.a { transform: rotate(-3deg); } .pol.b { transform: rotate(2.5deg); }
.pol::before { content: ""; position: absolute; top: -0.35em; left: 50%; width: 0.8em; height: 0.8em; margin-left: -0.4em; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); }
.pol .pv { display: block; width: 100%; aspect-ratio: 5 / 6; }
.pol figcaption { text-align: center; font-family: var(--font-d); font-size: 1.05em; line-height: 1.5; }
.rs-tag { margin: 0.7em 0.2em 0; }
.rs-tag h2 { display: inline-block; margin: 0 0.4em 0 0; vertical-align: middle; }
.stars { display: inline-flex; gap: 0.15em; vertical-align: middle; }
.st { display: inline-block; width: 1.9em; height: 1.9em; color: #dfe7e5; }
.st svg { width: 100%; height: 100%; display: block; }
.st.on { color: var(--star); }
.stars .st.on { animation: pm-stamp 0.42s var(--ease) both; }
@keyframes pm-stamp { from { transform: scale(1.8) rotate(-12deg); opacity: 0; } }
.rs-sub { margin: 0.35em 0 0.2em !important; font-weight: 700; }
.rs-bye { color: var(--ink2); }
.rs-tip { font-size: 0.85em; background: var(--anchor3); border-radius: 0.6em; padding: 0.45em 0.7em; }
.rs.fail .cork { filter: saturate(0.7); }

/* 예약 장부 */
.md-stages { display: flex; flex-direction: column; }
.bk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; }
.bk-head p { margin: 0; font-weight: 700; color: var(--ink2); }
.bk-list { overflow: auto; max-height: min(26em, 60vh); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background-image: repeating-linear-gradient(transparent 0 2.95em, rgba(47, 143, 131, 0.16) 2.95em 3em); }
.bk-row { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; align-items: center; gap: 0.5em; width: 100%; min-height: 3em; padding: 0.2em 0.4em; background: none; border: 0; border-bottom: 1px dashed rgba(31, 42, 41, 0.2); text-align: left; }
.bk-row:disabled { opacity: 0.42; }
.bk-row.now { background: var(--anchor3); }
.bk-t { font-family: var(--font-d); color: var(--anchor); }
.bk-n b { display: block; font-size: 0.98em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-n small { display: block; font-size: 0.75em; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-s .st { width: 1.15em; height: 1.15em; }
.bk-s small { color: var(--ink2); }

/* 연습 고르기 */
.pr-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(13em, 1fr)); gap: 0.45em; }
.pr-it { display: flex; gap: 0.6em; align-items: center; text-align: left; border: 2px solid var(--ink); background: #fff; border-radius: 0.8em; padding: 0.4em 0.6em; box-shadow: 0 0.16em 0 rgba(31, 42, 41, 0.3); }
.pr-cv { width: 2.8em; height: 2.8em; flex: none; border-radius: 50%; border: 2px solid var(--ink); }
.pr-it b { display: block; } .pr-it small { display: block; font-size: 0.78em; color: var(--ink2); }

/* 원장님 안내 */
.tut { display: flex; gap: 0.8em; align-items: flex-start; }
.coach { width: 4.6em; height: 4.6em; flex: none; border-radius: 50%; border: 2px solid var(--ink); }
.bub { position: relative; flex: 1; background: var(--anchor3); border: 2px solid var(--ink); border-radius: 1.2em; padding: 0.55em 0.85em; }
.bub::before { content: ""; position: absolute; left: -0.6em; top: 1.2em; width: 1em; height: 1em; background: var(--anchor3); border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.bub b { font-family: var(--font-d); font-weight: 400; color: var(--anchor); }
.bub p { margin: 0.2em 0 0; }

/* ------------------------------------------------ 시안 B: 오려 붙인 스티커북 */
.pm[data-theme="B"] { --font-d: "Gaegu", "Gowun Dodum", sans-serif; --anchor: #2e6a4f; --anchor3: #e4efe7; background: #2f6b4f; }
.pm[data-theme="B"] .pm-sign { background: #fffdf6; border: 0; border-radius: 0.2em; box-shadow: 0 0.3em 0.6em rgba(0, 0, 0, 0.3); transform: rotate(-3deg); }
.pm[data-theme="B"] .pm-sign::before, .pm[data-theme="B"] .pm-sign::after { top: -0.5em; width: 3.2em; height: 1.2em; background: rgba(236, 222, 170, 0.85); transform: rotate(-8deg); }
.pm[data-theme="B"] .pm-sign h2 { font-weight: 700; font-size: 2.5em; }
.pm[data-theme="B"] .pm-card, .pm[data-theme="B"] .pm-tag, .pm[data-theme="B"] .pm-mini button, .pm[data-theme="B"] .pm-ib { border: 0; border-radius: 0.25em; box-shadow: 0 0.22em 0.45em rgba(0, 0, 0, 0.3); }
.pm[data-theme="B"] .pm-card { border-left: 0; background: #fffdf6; }
.pm[data-theme="B"] .pm-card:nth-child(1) { transform: rotate(-1deg); } .pm[data-theme="B"] .pm-card:nth-child(2) { transform: rotate(1.2deg); } .pm[data-theme="B"] .pm-card:nth-child(3) { transform: rotate(-0.6deg); }
.pm[data-theme="B"] .pm-card b, .pm[data-theme="B"] .pm-tag b { font-weight: 700; font-size: 1.4em; }
.pm[data-theme="B"] .pm-tool svg { border-radius: 0.3em; border: 0; box-shadow: 0 0.2em 0.4em rgba(0, 0, 0, 0.35); }
.pm[data-theme="B"] .pm-tool span { color: #26302b; text-shadow: none; }
.pm[data-theme="B"] .pm-try { border-color: #e8772e; }

/* ------------------------------------------------ 시안 C: 밤 조명 돋보기 */
.pm[data-theme="C"] { --font-d: "Do Hyeon", "IBM Plex Sans KR", sans-serif; --font-b: "IBM Plex Sans KR", "Malgun Gothic", sans-serif; --ink: #e9eef5; --ink2: #9fb0c6; --anchor: #f2d48a; --anchor3: #2a3446; background: #18212f; color: #e9eef5; }
.pm[data-theme="C"] .pm-sign, .pm[data-theme="C"] .pm-card, .pm[data-theme="C"] .pm-tag, .pm[data-theme="C"] .pm-mini button, .pm[data-theme="C"] .pm-ib, .pm[data-theme="C"] .pm-say, .pm[data-theme="C"] .md, .pm[data-theme="C"] .pm-btn, .pm[data-theme="C"] .pm-opt { background: #222d3f; border-color: #3b4a63; box-shadow: none; }
.pm[data-theme="C"] .pm-sign { transform: none; border-width: 0 0 0 4px; border-color: #f2d48a; border-radius: 0.3em; }
.pm[data-theme="C"] .pm-sign::before, .pm[data-theme="C"] .pm-sign::after { display: none; }
.pm[data-theme="C"] .pm-sign h2::after { background: #f2d48a; }
.pm[data-theme="C"] .pm-card { border-left: 4px solid #f2d48a; }
.pm[data-theme="C"] .pm-tool svg { background: #222d3f; border-color: #4b5d7a; color: #e9eef5; box-shadow: none; }
.pm[data-theme="C"] .pm-tool span { color: #c9d4e2; text-shadow: none; }
.pm[data-theme="C"] .pm-say::after { background: #222d3f; border-color: #3b4a63; }
.pm[data-theme="C"] .pm-try { background: rgba(24, 33, 47, 0.9); border-color: #f2d48a; color: #e9eef5; }
.pm[data-theme="C"] .pm-btn.pri { background: #f2d48a; color: #18212f; }
.pm[data-theme="C"] .pm-tool i { background: #f2d48a; color: #18212f; }
.pm[data-theme="C"] .pm-timer span { background: #222d3f; color: #e9eef5; border-color: #3b4a63; }
.pm[data-theme="C"] .pm-hint { background: #f2d48a; color: #18212f; }
.pm[data-theme="C"] .pm-tool[aria-pressed="true"] svg { background: #3a4760; }

@media (prefers-reduced-motion: reduce) { .pm *, .pm *::before, .pm *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

/* ---------------------------------------------------------------- v2 (2026-11-29): 밝고 쨍하게, 크고 둥글고 눌리는 단추 */
.pm[data-theme="A"] { --anchor: #14ae9b; --anchor2: #8be6d8; --anchor3: #dcf7f2; --accent: #ff5a43; background: #e9a88c; }
.pm[data-theme="A"] .md { background: linear-gradient(180deg, #ffffff 0%, #fff4ee 100%); border: 0; border-radius: 1.4em; box-shadow: 0 0 0 0.28em #fff, 0 0 0 0.48em rgba(214, 120, 96, 0.45), 0 1.1em 2.2em rgba(90, 30, 15, 0.45); }
.pm[data-theme="A"] .pm-btn { position: relative; border: 0; border-radius: 999px; padding: 0.72em 1.45em 0.78em; min-height: 2.9em; color: #4a2a22; background: linear-gradient(180deg, #ffffff 0%, #ffe9e1 100%); box-shadow: inset 0 0.12em 0 #fff, inset 0 -0.18em 0 rgba(200, 110, 90, 0.2), 0 0.3em 0 #e0a090, 0 0.5em 0.8em rgba(110, 40, 20, 0.25); transition: transform 0.08s, box-shadow 0.08s; }
.pm[data-theme="A"] .pm-btn::after { content: ""; position: absolute; left: 12%; right: 12%; top: 0.16em; height: 38%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)); pointer-events: none; }
.pm[data-theme="A"] .pm-btn.pri { color: #fff; text-shadow: 0 0.06em 0 rgba(0, 80, 70, 0.5); background: linear-gradient(180deg, #5fe3cf 0%, #17b9a4 60%, #0d9c8a 100%); box-shadow: inset 0 0.12em 0 rgba(255, 255, 255, 0.6), inset 0 -0.2em 0 rgba(0, 80, 70, 0.3), 0 0.32em 0 #0a7d6f, 0 0.55em 0.9em rgba(0, 70, 60, 0.35); }
.pm[data-theme="A"] .pm-btn.warn { color: #fff; background: linear-gradient(180deg, #ff9b84, #ff5a43); box-shadow: inset 0 0.12em 0 rgba(255, 255, 255, 0.6), 0 0.3em 0 #c23a26, 0 0.5em 0.8em rgba(120, 20, 0, 0.3); }
.pm[data-theme="A"] .pm-btn:active { transform: translateY(0.24em); box-shadow: inset 0 0.12em 0 #fff, 0 0.06em 0 #e0a090; }
.pm[data-theme="A"] .pm-btn.pri:active { box-shadow: inset 0 0.12em 0 rgba(255, 255, 255, 0.6), 0 0.06em 0 #0a7d6f; }
.pm[data-theme="A"] .pm-ib { width: 3em; height: 3em; border-radius: 50%; border: 0; background: linear-gradient(180deg, #ffffff, #ffe6dc); box-shadow: inset 0 0.1em 0 #fff, 0 0.22em 0 #dc9a88, 0 0.35em 0.6em rgba(100, 30, 15, 0.3); }
.pm[data-theme="A"] .pm-ib:active { transform: translateY(0.18em); box-shadow: 0 0.04em 0 #dc9a88; }
.pm[data-theme="A"] .pm-tool svg { width: 3.4em; height: 3.4em; border: 0; background: linear-gradient(180deg, #ffffff, #ffe6dc); box-shadow: inset 0 0.1em 0 #fff, 0 0.24em 0 #dc9a88, 0 0.4em 0.7em rgba(100, 30, 15, 0.3); }
.pm[data-theme="A"] .pm-tool[aria-pressed="true"] svg { background: linear-gradient(180deg, #8ff0e2, #20c2ad); color: #fff; outline: 0; box-shadow: inset 0 0.1em 0 rgba(255, 255, 255, 0.6), 0 0.06em 0 #0a7d6f, 0 0 0 0.2em #fff, 0 0 0 0.36em #14ae9b; transform: translateY(0.18em); }
.pm[data-theme="A"] .pm-tool span { color: #fff; text-shadow: 0 1px 2px rgba(90, 30, 15, 0.8); }
.pm[data-theme="A"] .pm-card { border: 0; border-radius: 1em; border-left: 0; background: linear-gradient(180deg, #ffffff, #fff1eb); box-shadow: inset 0 0.1em 0 #fff, 0 0.26em 0 #e0a090, 0 0.45em 0.8em rgba(100, 30, 15, 0.22); padding: 0.6em 1em 0.65em; }
.pm[data-theme="A"] .pm-card:first-child { background: linear-gradient(180deg, #5fe3cf 0%, #17b9a4 70%); color: #fff; box-shadow: inset 0 0.12em 0 rgba(255, 255, 255, 0.55), 0 0.28em 0 #0a7d6f, 0 0.45em 0.8em rgba(0, 70, 60, 0.3); }
.pm[data-theme="A"] .pm-card:first-child span { color: rgba(255, 255, 255, 0.92); }
.pm[data-theme="A"] .pm-scr { background: radial-gradient(ellipse at 50% 40%, rgba(255, 230, 220, 0.1), rgba(70, 20, 10, 0.5)); }
.pm[data-theme="A"] .md canvas.coach { display: none; }

/* ---------------------------------------------------------------- v3 (2026-11-29 저녁): 더 밝게, 엄지로 누르기 쉬운 크고 둥근 단추, 또렷한 글자 */
.pm[data-theme="A"] { background: #ffc6b2; }
.pm[data-theme="A"] .pm-tools { gap: 0.3em; }
.pm[data-theme="A"].portrait .pm-tools { bottom: 0.45em; padding: 0 0.3em; }
.pm[data-theme="A"].landscape .pm-tools { gap: 0.2em; }
.pm[data-theme="A"] .pm-tool { width: auto; flex: 0 1 4.8em; min-width: 0; gap: 0.28em; padding: 0; }
.pm[data-theme="A"] .pm-tool svg { box-sizing: border-box; width: min(4.2em, 100%); height: auto; aspect-ratio: 1 / 1; padding: 0.7em; }
.pm[data-theme="A"].landscape .pm-tool { flex: 0 0 auto; width: 5.4em; }
.pm[data-theme="A"].landscape .pm-tool svg { width: 3.7em; }
.pm[data-theme="A"] .pm-tool span { font-size: 0.82em; font-weight: 700; line-height: 1.35; color: #fff; background: rgba(58, 26, 20, 0.66); border-radius: 999px; padding: 0.06em 0.7em 0.12em; text-shadow: none; }
.pm[data-theme="A"] .pm-tool[aria-pressed="true"] span { background: #0b9a87; }
.pm[data-theme="A"] .pm-tool i { top: -0.1em; right: 0.1em; background: #3b2a25; }
.pm[data-theme="A"] .pm-ib { width: 3.3em; height: 3.3em; }
.pm[data-theme="A"] .pm-ib svg { width: 1.55em; height: 1.55em; color: #4a2a22; }
.pm[data-theme="A"] .pm-tag { border: 0; border-radius: 1.1em; background: linear-gradient(180deg, #ffffff, #fff3ee); box-shadow: inset 0 0.1em 0 #fff, 0 0.22em 0 #e7a996, 0 0.4em 0.8em rgba(120, 40, 30, 0.22); padding: 0.45em 0.95em 0.5em; }
.pm[data-theme="A"] .pm-tag .pm-left { color: #0b9a87; font-size: 0.86em; }
.pm[data-theme="A"] .pm-timer span { border: 0; box-shadow: 0 0.12em 0 #e7a996; }
.pm-hint { width: max-content; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.pm[data-theme="A"] .pm-hint { background: rgba(48, 24, 18, 0.88); border-radius: 1.2em; padding: 0.55em 1.15em 0.6em; font-size: 0.98em; line-height: 1.45; text-align: center; box-shadow: 0 0.3em 0.8em rgba(60, 20, 10, 0.3); }
.pm[data-theme="A"].portrait .pm-hint { bottom: 7.3em; }
.pm[data-theme="A"] .pm-say { border: 0; border-radius: 1.2em; word-break: keep-all; box-shadow: 0 0.22em 0 #e7a996, 0 0.4em 0.8em rgba(120, 40, 30, 0.2); }
.pm[data-theme="A"] .pm-say::after { border: 0; }
.pm[data-theme="A"] .pm-mini { gap: 0.5em; }
.pm[data-theme="A"] .pm-mini button { border: 0; border-radius: 999px; min-height: 2.75em; padding: 0.35em 1.05em; font-size: 0.9em; font-weight: 700; color: #4a2a22; background: linear-gradient(180deg, #ffffff, #ffece4); box-shadow: inset 0 0.1em 0 #fff, 0 0.2em 0 #e0a090, 0 0.35em 0.6em rgba(100, 30, 15, 0.22); }
.pm[data-theme="A"] .pm-mini button:active { transform: translateY(0.16em); box-shadow: 0 0.05em 0 #e0a090; }
.pm[data-theme="A"] .pm-card { border-radius: 1.3em; min-height: 3.5em; justify-content: center; }
.pm[data-theme="A"] .pm-opt { min-height: 2.6em; border-radius: 999px; }
.pm[data-theme="A"] .md .row .pm-btn { min-height: 3em; }
.pm[data-theme="A"] .pm-sign { border: 0; border-radius: 1.1em; background: linear-gradient(180deg, #ffffff, #fff3ee); box-shadow: inset 0 0.1em 0 #fff, 0 0.26em 0 #e7a996, 0 0.45em 0.9em rgba(120, 40, 30, 0.25); transform: rotate(-1.5deg); }
.pm[data-theme="A"] .pm-sign::before, .pm[data-theme="A"] .pm-sign::after { display: none; }
.pm[data-theme="A"] .pm-sign h2::after { background: linear-gradient(90deg, #3ee6cf, #0b9a87); }
.pm[data-theme="A"] .pm-try { border: 0; background: rgba(48, 24, 18, 0.82); color: #fff; border-radius: 999px; padding: 0.3em 0.95em; }
.pm[data-theme="A"].portrait .pm-try { top: 7.3em; }
.pm[data-theme="A"] .pm-mini button { min-height: max(44px, 3em); }
.pm[data-theme="A"] .pm-opt { min-height: max(44px, 2.6em); }
.pm[data-theme="A"] .pm-btn, .pm[data-theme="A"] .md .row .pm-btn { min-height: max(44px, 3em); }
.pm[data-theme="A"] .pm-card { min-height: max(44px, 3.5em); }
.pm[data-theme="A"] .pm-tool { min-height: 44px; }
.pm[data-theme="A"].portrait .pm-try { top: 7.9em; }
.pm[data-theme="A"].portrait .pm-cards { bottom: 4.1em; gap: 0.45em; }
.pm[data-theme="A"].portrait .pm-tag { max-width: calc(100% - 9.2em); }
.pm[data-theme="A"].landscape .pm-tag { max-width: min(19em, 40%); }
@media (pointer: coarse) { .pm-tool i { display: none; } }

/* 2026-11-30 고침: 휴대폰에서 길게 눌러도 돋보기·메뉴가 뜨지 않고, 두 번 탭해도 화면이 커지지 않게 (게임 상자 전체) */
.pm, .pm * { -webkit-touch-callout: none; touch-action: manipulation; }
.pm .pm-cv { touch-action: none; }
/* 가로로 돌린 휴대폰처럼 낮은 화면: 도구 6개가 화면 안에 (app.js가 --tk를 정함), 멈춤 단추·예약 장부 줄은 손가락 크기(44px) 이상 */
.pm[data-theme="A"].landscape .pm-tools { font-size: calc(var(--tk, 1) * 1em); }
.pm[data-theme="A"] .pm-ib { width: max(44px, 3.3em); height: max(44px, 3.3em); }
.bk-row { min-height: max(44px, 3em); }
.bk-list { background-image: repeating-linear-gradient(transparent 0 calc(max(44px, 3em) - 1px), rgba(47, 143, 131, 0.16) calc(max(44px, 3em) - 1px) max(44px, 3em)); }
