/* PLAYORA 새총 무너뜨리기 */
:root {
  --bark: #2a1f17; --bark-2: #1c140e; --panel: rgba(33, 24, 17, 0.94); --line: rgba(246, 236, 216, 0.18);
  --ink: #f6ecd8; --ink-2: rgba(246, 236, 216, 0.8); --ink-3: rgba(246, 236, 216, 0.55);
  --acc: #e2703a; --acc-2: #c45a27; --acc-ink: #fffaf2; --gold: #f2c14e; --gold-off: rgba(246, 236, 216, 0.2);
  --page: #f6f0e4; --page-ink: #2a1f17; --page-2: #66584a; --page-line: #e2d6c1; --page-acc: #a94b22; --page-card: #fbf7ef;
  --f-body: "IBM Plex Sans KR", "Pretendard", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  --f-disp: "Jua", "IBM Plex Sans KR", sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* 공용 부품(plkit.css) 색 */
  --k-ink: var(--ink); --k-ink-2: var(--ink-2); --k-ink-3: var(--ink-3); --k-line: var(--line); --k-chip: rgba(33, 24, 17, 0.78); --k-chip-hover: rgba(33, 24, 17, 0.95);
  --k-btn: rgba(246, 236, 216, 0.08); --k-acc: var(--acc); --k-acc-2: var(--acc-2); --k-acc-ink: var(--acc-ink); --k-focus: #ffd98a;
  --k-scrim: rgba(18, 12, 8, 0.55); --k-sheet: #fbf6ec; --k-sheet-ink: #2a1f17; --k-sheet-2: #6d5f50; --k-sheet-line: #e8dcc8;
  --k-toast: #1c140e; --k-toast-ink: #f6ecd8; --k-ai: var(--gold); --k-ai-ink: #2b1b05;
}
@supports (color: oklch(0 0 0)) {
  :root {
    --bark: oklch(0.25 0.025 60); --acc: oklch(0.67 0.15 45); --acc-2: oklch(0.59 0.15 42); --gold: oklch(0.83 0.13 85);
    --page: oklch(0.955 0.015 80); --page-ink: oklch(0.25 0.025 60); --page-2: oklch(0.47 0.03 65); --page-line: oklch(0.88 0.025 80); --page-acc: oklch(0.52 0.14 42);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--page); color: var(--page-ink); font: 400 16px/1.7 var(--f-body); word-break: keep-all; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
a { color: inherit; }

/* ---------------------------------------------------------------- 페이지 머리 */
.mast { display: flex; align-items: baseline; gap: var(--s4); padding: var(--s3) clamp(var(--s4), 3vw, var(--s6)); border-bottom: 1px solid var(--page-line); }
.mast-brand { text-decoration: none; font-size: 14px; color: var(--page-2); white-space: nowrap; }
.mast-brand b { font-weight: 700; letter-spacing: 0.08em; color: var(--page-ink); margin-right: 6px; }
.mast-more { margin-left: auto; font-size: 14px; color: var(--page-2); white-space: nowrap; }
.head { max-width: 1240px; margin: 0 auto; padding: var(--s3) clamp(var(--s3), 3vw, var(--s6)) var(--s2); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s4); }
.head h1 { margin: 0; font: 400 clamp(36px, 4.6vw, 52px)/1.05 var(--f-disp); letter-spacing: -0.01em; }
.head p { margin: 0; color: var(--page-2); font-size: 15px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(0px, 2vw, var(--s5)); }

/* ---------------------------------------------------------------- 게임 무대 */
.ss { width: 100%; height: clamp(420px, calc(100svh - 132px), 820px); background: var(--bark); border-radius: 12px; }
@media (max-width: 640px) { .ss { border-radius: 0; height: min(86svh, 780px); min-height: 520px; } .head p { display: none; } }
html.embed, html.embed body { height: 100%; overflow: hidden; background: var(--bark); }
html.embed .mast, html.embed .head, html.embed .about, html.embed .foot { display: none !important; }
html.embed .wrap { padding: 0; max-width: none; }
html.embed .ss { position: fixed; inset: 0; width: auto; height: auto; min-height: 0; border-radius: 0; }
.nojs { padding: var(--s5); color: var(--ink); }
.bar-mode { padding: 6px var(--s3); border-radius: 999px; background: rgba(33, 24, 17, 0.72); font-size: 13px; color: var(--ink); }
.bar-home .bar-l { visibility: hidden; }

/* 머리 정보: 다음 열매, 점수, 보기 단추 */
.hud-next { position: absolute; top: 50px; left: var(--s2); z-index: 6; display: flex; align-items: center; gap: var(--s2); max-width: calc(100% - 150px); padding: 3px var(--s3) 3px 3px; border-radius: 999px; background: rgba(33, 24, 17, 0.8); color: var(--ink); pointer-events: none; }
.hud-next canvas { width: 32px; height: 32px; flex: none; border-radius: 50%; background: rgba(246, 236, 216, 0.1); }
.nx-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.nx-t b { font: 400 16px/1.1 var(--f-disp); white-space: nowrap; }
.nx-t em { font-style: normal; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-n { flex: none; font-size: 12px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.hud-score { position: absolute; top: 50px; right: var(--s2); z-index: 6; display: flex; align-items: baseline; gap: 6px; padding: 4px var(--s3); border-radius: 12px; background: rgba(33, 24, 17, 0.8); color: var(--ink); pointer-events: none; }
.hud-score small { font-size: 12px; color: var(--ink-3); }
.hud-score b { font: 400 22px/1.1 var(--f-disp); min-width: 3ch; text-align: right; }
.zoom { position: absolute; right: var(--s2); top: 96px; z-index: 6; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.zb { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(33, 24, 17, 0.72); color: var(--ink); font: 600 18px/1 var(--f-body); }
.zb:hover { background: rgba(33, 24, 17, 0.95); }
.zfit { width: auto; padding: 0 10px; border-radius: 18px; font-size: 12px; }
.ss.lowh .zoom { flex-direction: row; top: 92px; }
.tip { position: absolute; left: 50%; bottom: var(--s4); z-index: 7; transform: translateX(-50%); margin: 0; max-width: calc(100% - 24px); padding: 8px var(--s4); border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; animation: tipIn 0.4s var(--ease); }
@keyframes tipIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.coach { position: absolute; z-index: 7; display: flex; flex-direction: column; gap: 2px; max-width: min(300px, calc(100% - 16px)); padding: 10px 14px 12px; border-radius: 14px; background: #fffaf0; color: #2a1f17; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); pointer-events: none; }
.coach b { font: 700 16px/1.35 var(--f-body); color: var(--acc-2); }
.coach span { font-size: 13px; line-height: 1.5; }

/* ---------------------------------------------------------------- 처음 화면 */
.scr-home { pointer-events: none; padding: 52px var(--s4) var(--s4) clamp(var(--s3), 3.5vw, var(--s7)); align-items: stretch; }
.scr-home > * { pointer-events: auto; }
.scr-home { flex-direction: column; justify-content: center; gap: var(--s4); width: min(500px, 52%); }
.home-brand, .home-act { padding: var(--s4) var(--s5); border-radius: 16px; background: var(--panel); }
.home-brand { padding-bottom: var(--s4); }
.kicker { margin: 0; font: 600 13px/1.4 var(--f-body); color: var(--gold); letter-spacing: 0.04em; }
.logo { margin: 4px 0 0; font: 400 clamp(44px, 5.6vw, 58px)/0.98 var(--f-disp); white-space: nowrap; color: var(--ink); letter-spacing: -0.01em; }
.tag { margin: var(--s3) 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.home-act { display: flex; flex-direction: column; gap: var(--s2); }
.mt { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); min-height: 48px; padding: 8px var(--s4); text-align: left; border-radius: 12px; border: 1px solid var(--line); background: rgba(246, 236, 216, 0.06); color: var(--ink); transition: transform 0.18s var(--ease), border-color 0.18s; }
.mt:hover { transform: translateX(3px); border-color: var(--ink-3); }
.mt b { font: 400 24px/1.1 var(--f-disp); }
.mt-d { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mt-main { background: var(--acc); border-color: var(--acc-2); color: var(--acc-ink); }
.mt-main b { font-size: 28px; }
.mt-main .mt-d { color: rgba(255, 250, 242, 0.92); }
.home-sub { display: flex; gap: var(--s2); }
.home-sub button { height: 34px; padding: 0 var(--s4); border-radius: 999px; border: 1px solid var(--line); background: transparent; font: 600 13px/1 var(--f-body); color: var(--ink); }
.home-sub button:hover { border-color: var(--ink-3); }
.ss.port .scr-home { width: 100%; justify-content: space-between; padding: 52px var(--s3) var(--s3); }
.ss.port .logo { font-size: clamp(40px, 12vw, 60px); }
.ss.port .tag { font-size: 13.5px; }
.ss.lowh:not(.port) .scr-home { gap: var(--s2); padding-top: 50px; padding-bottom: var(--s2); width: min(520px, 62%); }
.ss.lowh:not(.port) .home-brand { padding: var(--s3) var(--s4); }
.ss.lowh:not(.port) .logo { font-size: 44px; }
.ss.lowh:not(.port) .tag { display: none; }
.ss.lowh:not(.port) .home-act { padding: var(--s3) var(--s4); }
.ss.lowh:not(.port) .mt { min-height: 40px; padding: 4px var(--s3); }
.ss.lowh:not(.port) .mt b { font-size: 20px; }
.ss.lowh:not(.port) .mt-main b { font-size: 22px; }

/* ---------------------------------------------------------------- 단계 고르기 */
.scr-levels { align-items: center; justify-content: center; padding: 52px var(--s3) var(--s3); background: rgba(20, 14, 9, 0.5); }
.lv-box { display: flex; flex-direction: column; gap: var(--s2); width: min(780px, 100%); max-height: 100%; padding: var(--s3) var(--s4) var(--s4); border-radius: 16px; background: var(--panel); color: var(--ink); }
.lv-head { display: flex; align-items: center; gap: var(--s3); }
.lv-title { margin: 0; font: 400 24px/1.1 var(--f-disp); }
.lv-sum { margin: 0 0 0 auto; font-size: 13px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.lv-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tab { display: flex; align-items: center; gap: 6px; min-width: 0; height: 40px; padding: 0 var(--s3); border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); overflow: hidden; }
.tab b { font: 400 18px/1 var(--f-disp); flex: none; }
.tab span { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tab em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--gold); flex: none; }
.tab[aria-selected="true"] { background: var(--acc); border-color: var(--acc-2); color: var(--acc-ink); }
.tab[aria-selected="true"] span, .tab[aria-selected="true"] em { color: var(--acc-ink); }
.tab[data-lock] { opacity: 0.6; }
.lv-note { margin: 0; font-size: 13px; color: var(--ink-2); }
.lv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.lv { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(246, 236, 216, 0.06); color: var(--ink); text-align: left; transition: transform 0.15s var(--ease), border-color 0.15s; }
.lv:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--ink-3); }
.lv b { font: 400 22px/1 var(--f-disp); }
.lv-n { max-width: 100%; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.lv-s { display: flex; gap: 3px; }
.st { display: inline-block; width: 14px; height: 14px; background: var(--gold-off); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.st.on { background: var(--gold); }
.ss.port .lv-tabs span { display: none; }
.ss.port .lv-grid, .ss.pk-narrow .lv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ss.lowh .lv-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ss.lowh .lv-n { display: none; }
.ss.lowh .lv { padding: 5px 8px; }
.ss.lowh .lv b { font-size: 18px; }

/* ---------------------------------------------------------------- 결과·멈춤 */
.scr-res, .scr-pause { align-items: center; justify-content: center; padding: 52px var(--s3) var(--s3); background: rgba(20, 14, 9, 0.42); }
.res, .pause { display: flex; flex-direction: column; gap: var(--s2); width: min(400px, 100%); max-height: 100%; overflow-y: auto; padding: var(--s4) var(--s5) var(--s5); border-radius: 18px; background: var(--panel); color: var(--ink); }
.r-kick { margin: 0; font-size: 13px; color: var(--ink-3); }
.r-title, .p-title { margin: 0; font: 400 40px/1.05 var(--f-disp); }
.stars { display: flex; gap: var(--s2); margin: var(--s1) 0; }
.stars .st { width: 46px; height: 46px; }
.stars .st.on { animation: starIn 0.5s var(--ease) both; }
@keyframes starIn { from { transform: scale(0.2) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.r-score { display: flex; align-items: baseline; gap: var(--s2); margin: 0; }
.r-score span { font-size: 13px; color: var(--ink-3); }
.r-score b { font: 400 32px/1 var(--f-disp); }
.r-line { margin: 0; font-size: 14px; color: var(--ink-2); }
.r-need { color: var(--ink-3); font-size: 13px; }
.r-btns, .p-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.pause .btn { width: 100%; }
.p-row .btn { width: auto; flex: 1 1 auto; }
.ss.lowh .r-title, .ss.lowh .p-title { font-size: 30px; }
.ss.lowh .stars .st { width: 34px; height: 34px; }
.ss.lowh .res, .ss.lowh .pause { padding: var(--s3) var(--s4) var(--s4); gap: 6px; }
.ss.lowh .r-score b { font-size: 26px; }

/* 창 안: 열매 목록 */
.h-shots { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.h-shots li { display: flex; align-items: center; gap: var(--s2); }
.h-ic { width: 28px; height: 28px; flex: none; }
.mtitle { font-family: var(--f-disp); font-weight: 400; }

/* ---------------------------------------------------------------- 소개 글 */
.about { max-width: 1240px; margin: var(--s7) auto 0; padding: 0 clamp(var(--s4), 3vw, var(--s6)); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s7); }
.about-main { max-width: 760px; }
.about h2 { margin: var(--s7) 0 var(--s3); font: 400 30px/1.25 var(--f-disp); }
.about h2:first-child { margin-top: 0; }
.about h3 { margin: var(--s5) 0 var(--s2); font: 700 18px/1.4 var(--f-body); }
.about p, .about li { color: #3d3226; }
.about ol, .about ul { padding-left: 1.3em; }
.about li { margin: 4px 0; }
.about dl { margin: 0; }
.about dt { margin-top: var(--s4); font-weight: 700; }
.about dd { margin: 4px 0 0; color: #3d3226; }
.about .note { padding: var(--s3) var(--s4); border-left: 3px solid var(--page-acc); background: var(--page-card); font-size: 14.5px; }
.about .more { margin-top: var(--s6); font-size: 14px; line-height: 1.9; color: var(--page-2); }
.about .more a { color: var(--page-ink); }
.about-side { position: sticky; top: var(--s4); align-self: start; padding: var(--s5); border-radius: 14px; background: var(--page-card); border: 1px solid var(--page-line); }
.about-side h3 { margin: var(--s5) 0 var(--s2); font: 400 20px/1.3 var(--f-disp); }
.about-side h3:first-child { margin-top: 0; }
.keytab { width: 100%; border-collapse: collapse; font-size: 14px; }
.keytab th { width: 38%; padding: 6px 8px 6px 0; text-align: left; vertical-align: top; color: var(--page-2); font-weight: 600; }
.keytab td { padding: 6px 0; border-bottom: 1px solid var(--page-line); }
.shot-tab td:first-child { width: 30%; font-weight: 700; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: var(--s5); } .about-side { position: static; } }
.foot { max-width: 1240px; margin: var(--s7) auto 0; padding: var(--s5) clamp(var(--s4), 3vw, var(--s6)) var(--s7); border-top: 1px solid var(--page-line); font-size: 13px; color: var(--page-2); }
.foot a { margin-right: var(--s4); white-space: nowrap; }
.foot p { margin: var(--s3) 0 0; }
@media (prefers-reduced-motion: reduce) { .mt, .lv { transition: none; } .tip, .stars .st.on { animation: none; } }
.ss.ov .hud-next, .ss.ov .hud-score, .ss.ov .zoom, .ss.ov .tip, .ss.ov .coach { display: none; }
.ss.shot-clean .bar, .ss.shot-clean .hud-next, .ss.shot-clean .hud-score, .ss.shot-clean .zoom, .ss.shot-clean .tip, .ss.shot-clean .coach { display: none; }
