/* PLAYORA 농장 키우기 */
:root {
  --ink: #3d2b20; --ink-2: #6a5444; --ink-3: #9a8574;
  --paper: #fbf6ea; --paper-2: #f3ead6; --paper-3: #e8dcc2; --line: #e2d3b8; --white: #fffdf7;
  --wood: #8a5a34; --wood-d: #5d3d26; --wood-dd: #47301f; --wood-l: #c99462;
  --acc: #d9563a; --acc-2: #b8432b; --acc-ink: #fffaf3;
  --leaf: #4f9a4a; --leaf-2: #3d7f39; --gold: #f2c14e; --sky: #5f9ac9; --warn: #c2482e;
  --page: #f4f0e2; --page-ink: #2e231b; --page-2: #6b5a4a; --page-line: #e2d9c3;
  --f-body: "IBM Plex Sans KR", "Pretendard", system-ui, -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --f-disp: "Gowun Batang", "Nanum Myeongjo", "Batang", serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r1: 8px; --r2: 12px; --r3: 16px; --r4: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@supports (color: oklch(0 0 0)) {
  :root {
    --ink: oklch(0.3 0.035 50); --ink-2: oklch(0.47 0.035 55); --ink-3: oklch(0.63 0.03 60);
    --paper: oklch(0.973 0.017 88); --paper-2: oklch(0.94 0.028 86); --paper-3: oklch(0.9 0.035 84); --line: oklch(0.87 0.035 80); --white: oklch(0.993 0.008 90);
    --wood: oklch(0.5 0.075 58); --wood-d: oklch(0.38 0.055 55); --wood-dd: oklch(0.32 0.045 55); --wood-l: oklch(0.7 0.08 65);
    --acc: oklch(0.6 0.16 38); --acc-2: oklch(0.52 0.15 36);
    --leaf: oklch(0.62 0.12 142); --leaf-2: oklch(0.54 0.11 142);
    --page: oklch(0.955 0.018 95); --page-line: oklch(0.88 0.025 90);
  }
}
* { 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; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- 페이지 머리 */
.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.1em; 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(--s4) clamp(var(--s3), 3vw, var(--s6)) var(--s3); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); }
.head h1 { margin: 0; font: 700 clamp(30px, 4vw, 44px)/1.1 var(--f-disp); color: var(--wood-dd); 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)); }

/* ---------------------------------------------------------------- 게임 틀 */
.fm { position: relative; width: 100%; height: clamp(560px, calc(100svh - 132px), 860px); background: #86bd58; color: var(--ink); overflow: hidden; border-radius: var(--r2); isolation: isolate;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; font: 400 14px/1.45 var(--f-body); }
@media (max-width: 640px) { .fm { border-radius: 0; height: calc(100svh - 96px); min-height: 560px; } .head { padding-top: var(--s3); } .head p { display: none; } }
html.embed, html.embed body { height: 100%; overflow: hidden; background: var(--wood-dd); }
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 .fm { position: fixed; inset: 0; width: auto; height: auto; min-height: 0; border-radius: 0; }
.fm:fullscreen { border-radius: 0; }
.fm button:focus-visible, .fm input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nojs { padding: var(--s6); text-align: center; }
.fm > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.fm svg { width: 20px; height: 20px; flex: none; }

/* 위: 날짜 · 돈 · 레벨 */
.hud { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); padding: var(--s2); pointer-events: none; }
.hud-l, .hud-r { display: flex; gap: 6px; align-items: center; pointer-events: auto; min-width: 0; }
.hud-l { flex-wrap: wrap; }
.hud-r { flex: none; } .hud-r .ib { flex: none; } /* 좁은 화면에서 오른쪽 단추가 28px로 작아지던 것 → 왼쪽 칩이 줄을 바꿈 */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; border-radius: 18px; border: 2px solid var(--wood-d); background: var(--paper); color: var(--ink); box-shadow: 0 2px 0 rgba(60, 40, 25, 0.35); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip .wx { width: 20px; height: 20px; }
.d-day { font: 700 15px/1 var(--f-disp); }
.d-clock { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.money b { font: 700 16px/1 var(--f-disp); font-variant-numeric: tabular-nums; min-width: 2.5em; text-align: right; }
.money .unit { color: var(--ink-2); font-weight: 600; }
.coin { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 2px solid #b8862a; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.12); flex: none; }
.lv { gap: 8px; padding-right: 10px; }
.lv-n { font: 700 15px/1 var(--f-disp); }
.xpbar { width: 64px; height: 8px; border-radius: 4px; background: var(--paper-3); overflow: hidden; border: 1px solid rgba(60, 40, 25, 0.25); }
.xpbar i { display: block; height: 100%; width: 0; background: var(--leaf); border-radius: 4px; transition: width 0.3s var(--ease); }
.ib { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--wood-d); background: var(--paper); color: var(--wood-dd); display: inline-flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 2px 0 rgba(60, 40, 25, 0.35); }
.ib:hover { background: var(--white); }
.ib.sm { width: 32px; height: 32px; box-shadow: none; border-width: 1.5px; }
.ib.sm svg { width: 16px; height: 16px; }
.fm.narrow .d-clock { display: none; }
.fm.narrow .xpbar { width: 40px; }
.fm.narrow .chip { padding: 0 10px 0 7px; height: 34px; }
.fm.narrow .ib { width: 34px; height: 34px; }
.fm.tiny .hud { padding: 6px; }
.fm.tiny .hud-r { gap: 4px; }
.fm.tiny .ib { width: 32px; height: 32px; }
.fm.tiny .chip { padding: 0 8px 0 6px; gap: 4px; }
.fm.tiny .money .unit, .fm.narrow .money.big .unit { display: none; }
.fm.tiny .xpbar { width: 30px; }
.fm.tiny .money b { min-width: 0; }

/* 아래: 안내 줄 · 고르는 줄 · 도구 막대 */
.dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; flex-direction: column; align-items: stretch; pointer-events: none; }
.hint { align-self: flex-start; margin: 0 var(--s2) 6px; max-width: calc(100% - 16px); padding: 5px 12px; border-radius: 14px; background: rgba(48, 33, 23, 0.78); color: #fbf3e2; font-size: 12.5px; line-height: 1.4; pointer-events: none; }
.fm.short .hint, .fm.sheet-on.port .hint { display: none; }
.tray { pointer-events: auto; display: flex; gap: 6px; overflow-x: auto; overscroll-behavior: contain; padding: 6px var(--s2); background: var(--paper-2); border-top: 2px solid var(--wood-d); scrollbar-width: thin; touch-action: pan-x; }
.chipb { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 44px; padding: 0 12px 0 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--white); color: var(--ink); }
.chipb img { width: 26px; height: 26px; }
.chipb .cn { font-weight: 600; font-size: 13px; }
.chipb .cp { font-size: 12px; color: var(--ink-2); }
.chipb.on { border-color: var(--acc); background: #fff3ea; box-shadow: 0 0 0 2px rgba(217, 86, 58, 0.18); }
.chipb:disabled { opacity: 0.5; }
.chipb.clear { border-style: dashed; }
.bar { pointer-events: auto; display: flex; align-items: stretch; justify-content: space-between; gap: var(--s2); padding: 6px var(--s2) calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--wood-d); border-top: 2px solid var(--wood-dd); }
.grp { display: flex; gap: 6px; min-width: 0; }
.tools { flex: 1 1 auto; }
.tb { position: relative; flex: 1 1 0; min-width: 0; max-width: 84px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 2px; border-radius: 12px; border: 2px solid transparent; background: rgba(255, 248, 232, 0.1); color: #f8eedb; }
.tb img { width: 30px; height: 30px; }
.tb span { font-size: 12px; font-weight: 600; line-height: 1.1; }
.tb:hover { background: rgba(255, 248, 232, 0.18); }
.tb.on { background: var(--paper); color: var(--ink); border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); transition: transform 0.15s var(--ease); }
.places .tb { flex: 0 0 64px; }
.tb .dot { position: absolute; top: 4px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); border: 2px solid var(--wood-d); }
.fm.narrow .bar { gap: 4px; padding-left: 4px; padding-right: 4px; }
.fm.narrow .grp { gap: 3px; }
.fm.narrow .places .tb { flex: 0 0 44px; }
.fm.narrow .tb { height: 52px; border-radius: 10px; }
.fm.narrow .tb img { width: 26px; height: 26px; }
.fm.short .tb { height: 46px; flex-direction: row; gap: 4px; }
.fm.short .tb img { width: 24px; height: 24px; }
.fm.short.narrow .tb span { display: none; }
.fm.short .bar { padding-top: 4px; padding-bottom: 4px; }
.fm.short .chipb { height: 38px; }
.pulse { animation: pulse 1.1s var(--ease) infinite; }
.tb.pulse { border-color: var(--gold); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 193, 78, 0.85); } 70% { box-shadow: 0 0 0 10px rgba(242, 193, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 193, 78, 0); } }

/* 창 (장터·주문·가게·공방) */
.sheet { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; height: min(78%, 620px); display: flex; flex-direction: column; background: var(--paper); border-top: 3px solid var(--wood-d); border-radius: var(--r4) var(--r4) 0 0; box-shadow: 0 -8px 24px rgba(40, 25, 15, 0.28); animation: up 0.28s var(--ease); }
.fm.wide .sheet { left: auto; top: 0; width: min(430px, 46%); height: auto; border-top: 0; border-left: 3px solid var(--wood-d); border-radius: var(--r4) 0 0 var(--r4); animation: side 0.28s var(--ease); }
.fm.short:not(.wide) .sheet { height: 100%; border-radius: 0; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes side { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sh-h { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s3) var(--s2) var(--s4); }
.sh-h h2 { flex: 1; margin: 0; font: 700 22px/1.2 var(--f-disp); color: var(--wood-dd); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 4px; padding: 0 var(--s3) var(--s2); overflow-x: auto; scrollbar-width: none; flex: none; touch-action: pan-x; }
.tab { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--white); color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.tab.on { background: var(--wood-d); border-color: var(--wood-d); color: var(--paper); }
.sh-b { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--s4) var(--s5); touch-action: pan-y; scrollbar-width: thin; -webkit-user-select: text; user-select: text; }
.sh-b h3 { margin: var(--s4) 0 var(--s2); font: 700 16px/1.3 var(--f-disp); color: var(--wood-d); }
.lead { margin: var(--s1) 0 var(--s3); color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.lead.small { font-size: 12.5px; }
.lead b { color: var(--ink); }
.empty { margin: var(--s4) 0; padding: var(--s4); border-radius: var(--r2); background: var(--paper-2); color: var(--ink-2); font-size: 13.5px; }
.list { display: flex; flex-direction: column; gap: 6px; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: 8px 10px; border-radius: var(--r2); background: var(--white); border: 1px solid var(--line); }
.row .ic { width: 36px; height: 36px; flex: none; }
.row.locked { opacity: 0.62; }
.rt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rt b { font-weight: 700; font-size: 14px; }
.rt > span { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.cnt { font-weight: 600; color: var(--ink-2); font-size: 12.5px; margin-left: 2px; }
.rb { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag { font-style: normal; font-size: 12px; padding: 0 6px; border-radius: 8px; background: var(--paper-3); color: var(--ink); margin-left: 2px; white-space: nowrap; }
.tag.hot { background: #fde3b0; }
.tag.low { background: #e9e2d6; color: var(--ink-2); }
.row-act { display: flex; gap: var(--s2); margin: var(--s2) 0 var(--s3); }
.row-act.wrap { flex-wrap: wrap; }
.needs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.nd { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--warn); font-weight: 600; white-space: nowrap; }
.nd img { width: 22px; height: 22px; }
.nd.ok { color: var(--leaf-2); }
.unl { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; margin: var(--s2) 0; }
.unl .nd { color: var(--ink); font-size: 13.5px; }
.unl .nd img { width: 34px; height: 34px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--s2); }
.tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--s2) 6px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--white); white-space: normal; text-align: center; }
.tile img { width: 44px; height: 44px; }
.tile b { font-size: 13px; }
.tile span { font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.tile.locked { opacity: 0.55; }
.landbox { width: 40px; height: 40px; border-radius: 6px; background: #9fcf72; border: 2px solid var(--wood-d); display: flex; align-items: center; justify-content: center; }
.landbox i { display: block; background: #b58659; border-radius: 2px; }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 20px; border: 2px solid var(--wood-d); background: var(--paper); color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: 0 2px 0 var(--wood-d); }
.btn svg { width: 16px; height: 16px; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 var(--wood-d); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 17px; border-width: 1.5px; box-shadow: 0 2px 0 rgba(60, 40, 25, 0.5); }
.btn.pri { background: var(--acc); border-color: var(--acc-2); color: var(--acc-ink); box-shadow: 0 2px 0 var(--acc-2); }
.btn.pri b { color: #fff2c9; }
.btn.danger { background: #fbeae4; border-color: var(--warn); color: var(--warn); box-shadow: 0 2px 0 var(--warn); }
.btn.pri.danger { background: var(--warn); color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.wide { width: 100%; margin-top: 6px; }
.btn:disabled { opacity: 0.45; box-shadow: none; }
.btn:hover:not(:disabled) { filter: brightness(1.04); }

/* 주문 */
.orders { display: flex; flex-direction: column; gap: var(--s2); }
.ord { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: 10px; border-radius: var(--r3); background: var(--white); border: 1px solid var(--line); }
.ord.can { border-color: var(--leaf); box-shadow: inset 4px 0 0 var(--leaf); }
.ord .face { width: 52px; height: 52px; }
.face.sm { width: 36px; height: 36px; }
.ot { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ot b { font: 700 15px/1.3 var(--f-disp); }
.role { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rw { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.rw b { color: var(--wood-dd); font-size: 14px; }
.ob { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ord.wait { grid-template-columns: 1fr; background: var(--paper-2); border-style: dashed; }
.ow { color: var(--ink-2); font-size: 13px; padding: var(--s2); }
.hearts { display: inline-flex; gap: 2px; }
.hearts i { width: 11px; height: 10px; background: var(--paper-3); clip-path: path('M5.5 10 L0.7 5 A2.9 2.9 0 0 1 5.5 1.2 A2.9 2.9 0 0 1 10.3 5 Z'); }
.hearts i.full { background: #e8607a; }
.hearts i.half { background: linear-gradient(90deg, #e8607a 50%, var(--paper-3) 50%); }
.fm.port .ord, .fm.narrow .ord { grid-template-columns: auto minmax(0, 1fr); }
.fm.port .ob, .fm.narrow .ob { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
.fm.port .row, .fm.narrow .row { grid-template-columns: auto minmax(0, 1fr); }
.fm.port .rb, .fm.narrow .rb { grid-column: 2; justify-content: flex-start; }
.fm.port .row.recipe .rb, .fm.narrow .row.recipe .rb { grid-column: 1 / -1; justify-content: flex-end; }

/* 공방 */
.work-q { padding: var(--s3); border-radius: var(--r3); background: var(--paper-2); }
.wq-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s2); }
.wq-h b { font: 700 15px/1 var(--f-disp); }
.wq-h span { font-size: 12.5px; color: var(--ink-2); }
.slot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s2); align-items: center; padding: 6px 8px; border-radius: var(--r1); background: var(--white); border: 1px solid var(--line); margin-bottom: 6px; }
.slot img { width: 28px; height: 28px; }
.slot.empty { display: block; color: var(--ink-3); font-size: 12.5px; text-align: center; border-style: dashed; background: transparent; padding: 10px; }
.sl-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sl-t b { font-size: 13.5px; }
.sl-t > span:last-child { font-size: 12px; color: var(--ink-2); }
.sl-t .bar { height: 7px; border-radius: 4px; background: var(--paper-3); overflow: hidden; padding: 0; border: 0; display: block; }
.sl-t .bar i { display: block; height: 100%; background: var(--leaf); }
.work-out { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); padding: var(--s3); border-radius: var(--r3); background: #eef7e2; border: 2px solid var(--leaf); }
.wo-items { display: flex; flex-wrap: wrap; gap: 6px 10px; }

/* 메뉴 */
.set { display: flex; flex-direction: column; gap: 4px; padding: var(--s2) var(--s3); border-radius: var(--r3); background: var(--white); border: 1px solid var(--line); }
.set-r { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 44px; font-weight: 600; }
.set-r.col { flex-direction: column; align-items: stretch; padding: 6px 0; }
.set-r input[type=range] { flex: 1; max-width: 220px; accent-color: var(--acc); height: 32px; }
.sw { width: 52px; height: 30px; border-radius: 15px; border: 2px solid var(--wood-d); background: var(--paper-3); position: relative; padding: 0; flex: none; }
.sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 2px solid var(--wood-d); transition: transform 0.2s var(--ease); }
.sw.on { background: var(--leaf); }
.sw.on i { transform: translateX(22px); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.seg button { height: 34px; padding: 0 12px; border-radius: 17px; border: 2px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 600; }
.seg button.on { border-color: var(--acc); background: #fff3ea; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--s4); margin: 0; font-size: 13.5px; }
.stats dt { color: var(--ink-2); }
.stats dd { margin: 0; font-weight: 600; }
.row.letter .rt span { color: var(--ink); font-size: 13.5px; }

/* 작은 창 */
.modal { position: absolute; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; padding: var(--s4); background: rgba(35, 24, 16, 0.5); }
.card { width: min(420px, 100%); max-height: 100%; overflow-y: auto; padding: var(--s5) var(--s5) var(--s4); border-radius: var(--r4); background: var(--paper); border: 3px solid var(--wood-d); box-shadow: 0 12px 30px rgba(30, 20, 10, 0.35); text-align: center; animation: pop 0.3s var(--ease); }
@keyframes pop { from { transform: scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
.card h2 { margin: 0 0 var(--s2); font: 700 22px/1.3 var(--f-disp); color: var(--wood-dd); }
.card p { margin: 0 0 var(--s2); color: var(--ink-2); font-size: 14px; }
.card-b { display: flex; gap: var(--s2); justify-content: center; margin-top: var(--s4); }
.card ul { text-align: left; margin: var(--s2) 0; padding-left: 1.2em; font-size: 13.5px; color: var(--ink); }
.card ul li { margin: 4px 0; }
.lv-burst { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 86px; height: 86px; border-radius: 50%; background: var(--gold); border: 3px solid var(--wood-d); margin-bottom: var(--s2); }
.lv-burst span { font-size: 12px; font-weight: 700; color: var(--wood-dd); }
.lv-burst b { font: 700 34px/1 var(--f-disp); color: var(--wood-dd); }
.next { list-style: none; padding: 0 !important; }
.next li b { color: var(--wood-d); margin-right: 4px; }
.fm.short .card { padding: var(--s3) var(--s4); }
.fm.short .lv-burst { width: 60px; height: 60px; }
.fm.short .lv-burst b { font-size: 24px; }

/* 튜토리얼 말풍선 */
.coach { position: absolute; z-index: 7; top: 54px; left: 50%; transform: translateX(-50%); width: min(470px, calc(100% - 16px)); display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3); border-radius: var(--r3); background: var(--paper); border: 2px solid var(--wood-d); box-shadow: 0 6px 16px rgba(30, 20, 10, 0.25); }
.coach-f { width: 44px; height: 44px; flex: none; }
.coach-t { min-width: 0; flex: 1; }
.coach-t b { font: 700 14px/1.2 var(--f-disp); color: var(--wood-d); }
.coach-t p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.coach-b { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.fm.wide.sheet-on .coach { left: calc((100% - min(430px, 46%)) / 2); }
.fm.port.sheet-on .coach { top: max(48px, calc(var(--hudb, 0px) + 6px)); }
.fm.narrow .coach { top: max(48px, calc(var(--hudb, 0px) + 6px)); padding: var(--s2); gap: var(--s2); } /* --hudb: 위 막대 아래 끝 (app.js hudGap) */
.fm.narrow .coach-f { width: 34px; height: 34px; }
.fm.short .coach { top: 48px; padding: 6px var(--s2); }
.fm.short .coach-f { display: none; }
.fm.short .coach-t p { font-size: 12.5px; }

/* 알림 */
.toast { position: absolute; z-index: 13; left: 50%; bottom: 96px; transform: translate(-50%, 12px); max-width: min(520px, calc(100% - 24px)); padding: 9px 16px; border-radius: 18px; background: rgba(40, 27, 18, 0.9); color: #fbf3e2; font-size: 13.5px; line-height: 1.45; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.25s var(--ease); white-space: normal; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.fm.sheet-on.port .toast, .fm.short.sheet-on .toast { bottom: auto; top: 50px; }
.fm.wide.sheet-on .toast { left: calc((100% - min(430px, 46%)) / 2); }
.tip { position: absolute; z-index: 6; left: 0; top: 0; padding: 4px 10px; border-radius: 10px; background: rgba(40, 27, 18, 0.88); color: #fbf3e2; font-size: 12.5px; pointer-events: none; white-space: nowrap; }
.tip b { font-weight: 700; margin-right: 4px; }

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

/* ---------------------------------------------------------------- 소개 글 */
.about { max-width: 1240px; margin: 0 auto; padding: var(--s6) clamp(var(--s4), 3vw, var(--s6)) var(--s7); display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: var(--s6); align-items: start; }
.about-main { min-width: 0; max-width: 46em; }
.about h2 { margin: var(--s6) 0 var(--s3); font: 700 clamp(22px, 2.6vw, 28px)/1.3 var(--f-disp); color: var(--wood-dd); }
.about h2:first-child { margin-top: 0; }
.about h3 { margin: var(--s5) 0 var(--s2); font: 700 18px/1.35 var(--f-disp); color: var(--wood-d); }
.about p, .about li, .about dd { color: #3e3127; }
.about ol, .about ul { padding-left: 1.3em; }
.about li { margin: 6px 0; }
.about dl { margin: 0; }
.about dt { font-weight: 700; margin-top: var(--s4); }
.about dd { margin: 4px 0 0; }
.about .more { margin-top: var(--s6); font-size: 14px; line-height: 1.9; color: var(--page-2); }
.about .more a { color: var(--page-2); }
.about-side { position: sticky; top: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.about-side h3 { margin: var(--s3) 0 0; }
.keytab { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--white); border-radius: var(--r2); overflow: hidden; }
.keytab th, .keytab td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--page-line); vertical-align: top; }
.keytab th { width: 42%; font-weight: 600; color: var(--page-ink); }
.keytab td { color: var(--page-2); }
.keytab tr:last-child th, .keytab tr:last-child td { border-bottom: 0; }
.wide-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: var(--s2) 0; }
.wide-tab th, .wide-tab td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--page-line); }
.wide-tab thead th { color: var(--page-2); font-weight: 600; border-bottom: 2px solid var(--page-line); }
.tab-scroll { overflow-x: auto; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-side { position: static; } }
.foot { border-top: 1px solid var(--page-line); padding: var(--s5) clamp(var(--s4), 3vw, var(--s6)) var(--s6); max-width: 1240px; margin: 0 auto; font-size: 13.5px; color: var(--page-2); }
.foot a { margin-right: var(--s4); white-space: nowrap; }
.foot p { margin: var(--s3) 0 0; line-height: 1.7; }
