/* PLAYORA 축구선수 키우기. 종이색 + 먹색 남색 + 주홍 하나. 스티커 앨범과 경기 안내 책자 느낌.
   게임 안 크기는 모두 em: .career의 글자 크기를 app.js가 상자 크기에 맞춰 정한다(가로 61.25em×세로 38.3em, 세로 화면 24.4em×43.75em). */
:root {
  --paper: #f3ecdc; --paper2: #e9e0cb; --paper3: #d9cdb3; --ink: #1b2440; --ink2: #4b5372; --acc: #e8492a; --pitch: #3f8f5a; --gold: #f2b632;
  --up: #cfe6d2; --dn: #f6d3c8; --line: rgba(27, 36, 64, 0.2);
  --font-d: "Black Han Sans", "Gothic A1", "Malgun Gothic", sans-serif;
  --font-b: "Gothic A1", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --s1: 0.25em; --s2: 0.5em; --s3: 0.75em; --s4: 1em; --s6: 1.5em;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@supports (color: oklch(0 0 0)) {
  :root { --paper: oklch(0.945 0.024 88); --paper2: oklch(0.905 0.03 87); --paper3: oklch(0.85 0.04 86); --ink: oklch(0.27 0.055 268); --ink2: oklch(0.45 0.045 268); --acc: oklch(0.62 0.2 32); --pitch: oklch(0.59 0.11 152); --gold: oklch(0.81 0.145 84); --up: oklch(0.9 0.05 150); --dn: oklch(0.89 0.055 35); }
}
html { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-b); font-size: 16px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
/* ---------------------------------------------------------------- 페이지 (머리말, 소개글, 푸터) */
.mast { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.7rem 1.25rem; border-bottom: 3px solid var(--ink); font-size: 0.9rem; font-weight: 700; }
.mast a { text-decoration: none; }
.mast-brand b { font-family: var(--font-d); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.04em; margin-right: 0.6rem; }
.mast-more { border-bottom: 2px solid var(--acc); }
.head { max-width: 1040px; margin: 0 auto; padding: 1.3rem 1.25rem 0.9rem; }
.head h1 { font-family: var(--font-d); font-weight: 400; font-style: normal; font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
.head p { margin: 0.35rem 0 0; font-weight: 700; color: var(--ink2); font-size: 0.95rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 12px; }
.about { max-width: 1040px; margin: 2.5rem auto 0; padding: 0 1.25rem; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 2.5rem; }
.about h2 { font-family: var(--font-d); font-weight: 400; font-style: normal; font-size: 1.6rem; line-height: 1.25; border-top: 3px solid var(--ink); padding-top: 0.7rem; margin: 2.4rem 0 0.6rem; word-break: keep-all; }
.about h2:first-child { margin-top: 0; }
.about h3 { font-size: 1.05rem; font-weight: 800; margin: 1.3rem 0 0.3rem; font-style: normal; }
.about p, .about li, .about dd { line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.about p { margin: 0 0 0.8rem; }
.about ol { padding-left: 1.3rem; margin: 0; }
.about li { margin-bottom: 0.4rem; }
.about .note { border-left: 4px solid var(--acc); padding: 0.1rem 0 0.1rem 0.9rem; font-size: 0.95rem; }
.about dt { font-weight: 800; margin-top: 1.1rem; }
.about dd { margin: 0.2rem 0 0; }
.about .more { margin-top: 2rem; font-size: 0.9rem; line-height: 2; }
.about-side { align-self: start; border: 3px solid var(--ink); border-radius: 10px; padding: 0.4rem 1rem 1rem; background: var(--paper2); box-shadow: 6px 6px 0 var(--ink); }
.keytab { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.keytab th, .keytab td { border-bottom: 1px solid var(--line); padding: 0.45rem 0.3rem; text-align: left; vertical-align: top; line-height: 1.5; }
.keytab th { white-space: nowrap; font-weight: 800; padding-right: 0.8rem; }
.foot { max-width: 1040px; margin: 3rem auto 0; padding: 1.2rem 1.25rem 2.5rem; border-top: 3px solid var(--ink); font-size: 0.88rem; }
.foot a { margin-right: 1.1rem; font-weight: 700; display: inline-block; }
.foot p { color: var(--ink2); margin: 0.9rem 0 0; line-height: 1.7; word-break: keep-all; }
.nojs { padding: 2rem; font-weight: 700; }
@media (max-width: 820px) { .about { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .mast { padding: 0.6rem 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; }
html.embed .wrap { max-width: none; padding: 0; }

/* ---------------------------------------------------------------- 게임 상자 */
.career { position: relative; box-sizing: border-box; width: 100%; aspect-ratio: 16 / 10; max-height: calc(100svh - 16px); margin: 0 auto; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; font-family: var(--font-b); font-size: 16px; line-height: 1.45; display: grid; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.career *, .career *::before, .career *::after { box-sizing: border-box; }
@media (max-width: 700px) { .career { aspect-ratio: auto; height: min(calc(100svh - 10px), 780px); } }
html.embed .career { position: fixed; inset: 0; width: auto; height: auto; aspect-ratio: auto; max-height: none; border: 0; border-radius: 0; }
.career:fullscreen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; }
.career.land { grid-template-columns: 34.25em minmax(0, 1fr); grid-template-rows: 2.9em 21.4em minmax(0, 1fr); grid-template-areas: "bar bar" "stage panel" "strip panel"; }
.career.port { grid-template-columns: minmax(0, 1fr); grid-template-rows: 2.9em 13.7em auto minmax(0, 1fr); grid-template-areas: "bar" "stage" "strip" "panel"; }
.career button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
.dsp { font-family: var(--font-d); font-weight: 400; font-style: normal; }

/* 위쪽 줄 */
.bar { grid-area: bar; display: flex; align-items: center; gap: 0.5em; padding: 0 0.55em; background: var(--ink); color: var(--paper); min-width: 0; }
.bar .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.5em; font-weight: 700; font-size: 0.9em; white-space: nowrap; overflow: hidden; }
.bar .who span { overflow: hidden; text-overflow: ellipsis; }
.bar .who canvas { width: 1.7em; height: 1.7em; flex: none; }
.bar .who .role { flex: none; font-size: 0.82em; font-weight: 800; background: var(--paper); color: var(--ink); border-radius: 1em; padding: 0.05em 0.6em; }
.bar .money { font-family: var(--font-d); font-size: 0.95em; white-space: nowrap; flex: none; }
.ib { width: 2.15em; height: 2.15em; flex: none; display: grid; place-items: center; border: 0; border-radius: 0.4em; background: rgba(243, 236, 220, 0.14); padding: 0; }
.ib svg { width: 1.2em; height: 1.2em; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib.off { opacity: 0.4; }
.ib.on2 { background: var(--paper); color: var(--ink); }
.ib:focus-visible, .btn:focus-visible, .sw:focus-visible, .cb:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

/* 장면 */
.stage { grid-area: stage; position: relative; background: #1d2747; overflow: hidden; border-bottom: 3px solid var(--ink); min-width: 0; min-height: 0; }
.land .stage { border-right: 3px solid var(--ink); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ov { position: absolute; inset: 0; pointer-events: none; }
.ov .cap { position: absolute; left: 0.6em; top: 0.6em; max-width: 62%; background: var(--paper); border: 2px solid var(--ink); border-radius: 0.3em; padding: 0.12em 0.5em; font-weight: 800; font-size: 0.8em; box-shadow: 0.15em 0.15em 0 var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov .score { position: absolute; left: 50%; top: 0.5em; transform: translateX(-50%); display: flex; align-items: center; gap: 0.45em; background: var(--ink); color: var(--paper); border: 2px solid var(--paper); border-radius: 0.45em; padding: 0.12em 0.6em; white-space: nowrap; font-size: 0.92em; font-weight: 800; max-width: 96%; }
.ov .score b { font-family: var(--font-d); font-weight: 400; font-size: 1.35em; line-height: 1.1; }
.ov .score i { font-style: normal; font-weight: 700; opacity: 0.8; font-size: 0.86em; }
.ov .score canvas { position: static; width: 1.3em; height: 1.3em; flex: none; }
.ov .plate { position: absolute; right: 0.6em; bottom: 0.6em; max-width: 70%; background: var(--paper); border: 2px solid var(--ink); border-radius: 0.3em; padding: 0.1em 0.5em; font-size: 0.78em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov .news { position: absolute; left: 0.6em; right: 0.6em; top: 2.7em; display: grid; gap: 0.22em; justify-items: start; }
.ov .news span { background: rgba(27, 36, 64, 0.88); color: var(--paper); padding: 0.14em 0.55em; border-radius: 0.25em; font-size: 0.78em; font-weight: 700; max-width: 100%; }
.ov .logo { position: absolute; left: 0.75em; top: 0.6em; color: var(--paper); line-height: 0.98; font-size: 2.7em; text-shadow: 0.07em 0.07em 0 var(--ink); }
.ov .logo small { display: block; font-family: var(--font-b); font-size: 0.26em; font-weight: 800; margin-top: 0.55em; text-shadow: none; background: var(--acc); color: #fff; padding: 0.15em 0.5em; border-radius: 0.2em; width: max-content; max-width: 100%; }
.port .ov .logo { font-size: 2.1em; }
.ov .flash { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%) rotate(-4deg); font-size: 3.4em; color: var(--gold); text-shadow: 0.06em 0.06em 0 var(--ink), -0.03em -0.03em 0 var(--ink); white-space: nowrap; animation: pop 0.5s var(--ease) both; }
@keyframes pop { from { transform: translate(-50%, -50%) rotate(-4deg) scale(0.4); opacity: 0; } to { transform: translate(-50%, -50%) rotate(-4deg) scale(1); opacity: 1; } }
/* 타이밍 게이지 */
.gauge { position: absolute; left: 6%; right: 6%; bottom: 0.7em; pointer-events: auto; background: var(--paper); border: 2px solid var(--ink); border-radius: 0.5em; padding: 0.4em 0.5em; box-shadow: 0.18em 0.18em 0 var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5em; align-items: center; }
.gauge .trk { position: relative; height: 1.5em; background: var(--paper3); border: 2px solid var(--ink); border-radius: 0.3em; overflow: hidden; }
.gauge .zone { position: absolute; top: 0; bottom: 0; background: var(--up); border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.gauge .zone2 { position: absolute; top: 0; bottom: 0; background: var(--pitch); }
.gauge .mk { position: absolute; top: -2px; bottom: -2px; width: 0.36em; margin-left: -0.18em; background: var(--acc); border: 1.5px solid var(--ink); border-radius: 0.2em; }
.gauge .btn { min-height: 2.2em; padding: 0.2em 0.9em; }

/* 선수 정보 */
.strip { grid-area: strip; min-width: 0; min-height: 0; overflow: hidden; background: var(--paper2); padding: 0.6em 0.7em; display: grid; gap: 0.7em; align-content: start; }
.land .strip { grid-template-columns: 7.6em minmax(0, 1fr) 9.4em; border-right: 3px solid var(--ink); }
.port .strip { grid-template-columns: minmax(0, 1fr); gap: 0.3em; padding: 0.4em 0.6em 0.45em; border-bottom: 3px solid var(--ink); }
.port.nostrip .strip, .career.title .strip { display: none; }
.career.title.land { grid-template-rows: 2.9em minmax(0, 1fr); grid-template-areas: "bar bar" "stage panel"; }
.career.title.port { grid-template-rows: 2.9em 13.7em minmax(0, 1fr); grid-template-areas: "bar" "stage" "panel"; }
.pc { display: grid; gap: 0.3em; justify-items: center; text-align: center; min-width: 0; }
.pc canvas { width: 6.6em; height: 7.6em; display: block; }
.pc .nm { font-weight: 800; font-size: 0.9em; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc .sub { font-size: 0.72em; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.port .pc { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; align-items: center; text-align: left; gap: 0.5em; }
.port .pc canvas { width: 2.3em; height: 2.3em; grid-row: 1; }
.port .pc .nm { font-size: 0.86em; }
.port .pc .ovr { grid-column: 3; }
.ovr { display: flex; align-items: baseline; gap: 0.3em; font-size: 0.74em; font-weight: 800; }
.ovr b { font-family: var(--font-d); font-weight: 400; font-size: 1.9em; line-height: 1; }
.stats { display: grid; gap: 0.2em; align-content: start; min-width: 0; }
.st { display: grid; grid-template-columns: 4.3em minmax(0, 1fr) 1.7em; align-items: center; gap: 0.4em; font-size: 0.8em; line-height: 1.2; }
.st b { font-weight: 700; white-space: nowrap; }
.st.key b { font-weight: 800; }
.st.key b::after { content: ""; display: inline-block; width: 0.38em; height: 0.38em; border-radius: 50%; background: var(--acc); margin-left: 0.3em; vertical-align: 0.15em; }
.st i { height: 0.62em; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 0.3em; overflow: hidden; }
.st i em { display: block; height: 100%; background: var(--ink); }
.st span { font-family: var(--font-d); text-align: right; }
.port .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.15em 0.5em; }
.port .st { grid-template-columns: auto minmax(0, 1fr); gap: 0.2em; font-size: 0.76em; }
.port .st i { display: none; }
.port .st.key b::after { display: none; }
.port .st.key b { text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 2px; }
.mt { display: grid; gap: 0.3em; align-content: start; min-width: 0; }
.mt .m { display: grid; grid-template-columns: 1fr auto; gap: 0 0.3em; font-size: 0.72em; font-weight: 700; line-height: 1.2; }
.mt .m i { grid-column: 1 / -1; height: 0.5em; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 0.3em; overflow: hidden; margin-top: 0.1em; }
.mt .m i em { display: block; height: 100%; background: var(--pitch); }
.mt .m.low i em { background: var(--acc); }
.mt .m b { font-family: var(--font-d); font-weight: 400; }
.port .mt { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5em; }
.flags { display: flex; flex-wrap: wrap; gap: 0.25em; }
.port .flags { display: none; }

/* 오른쪽(아래쪽) 판 */
.panel { grid-area: panel; position: relative; min-width: 0; min-height: 0; overflow: hidden; padding: 0.75em 0.85em 0.8em; display: flex; flex-direction: column; gap: 0.5em; background: var(--paper); background-image: radial-gradient(rgba(27, 36, 64, 0.07) 1px, transparent 1.4px); background-size: 0.8em 0.8em; }
.port .panel { padding: 0.55em 0.65em 0.6em; gap: 0.4em; }
.panel h2 { font-family: var(--font-d); font-weight: 400; font-style: normal; font-size: 1.5em; line-height: 1.15; margin: 0; word-break: keep-all; }
.port .panel h2 { font-size: 1.3em; }
.kicker { font-size: 0.74em; font-weight: 800; letter-spacing: 0.03em; color: var(--ink2); display: flex; gap: 0.5em; align-items: center; flex-wrap: wrap; }
.kicker b { background: var(--ink); color: var(--paper); padding: 0.05em 0.5em; border-radius: 0.2em; letter-spacing: 0; }
.txt { margin: 0; font-size: 0.96em; line-height: 1.58; word-break: keep-all; overflow-wrap: anywhere; }
.port .txt { font-size: 0.9em; line-height: 1.5; }
.txt.sm { font-size: 0.84em; color: var(--ink2); }
.note2 { margin: 0; font-size: 0.84em; font-weight: 700; border-left: 0.3em solid var(--acc); padding-left: 0.5em; line-height: 1.4; word-break: keep-all; }
.grow { flex: 1; min-height: 0; }
.opts { display: grid; gap: 0.42em; margin-top: auto; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.42em; }
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35em; }
.btn { font-weight: 700; background: var(--paper); border: 2px solid var(--ink); border-radius: 0.45em; padding: 0.42em 0.65em; min-height: 2.5em; text-align: left; box-shadow: 0.17em 0.17em 0 var(--ink); display: flex; align-items: center; gap: 0.5em; line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; transition: transform 0.08s var(--ease), box-shadow 0.08s var(--ease); min-width: 0; }
.btn:active:not(:disabled) { transform: translate(0.12em, 0.12em); box-shadow: 0.05em 0.05em 0 var(--ink); }
.btn.pri { background: var(--ink); color: var(--paper); justify-content: center; text-align: center; box-shadow: 0.17em 0.17em 0 var(--acc); }
.btn.sm { min-height: 2.15em; padding: 0.2em 0.5em; font-size: 0.86em; justify-content: center; text-align: center; }
.btn.warn { border-style: dashed; }
.btn:disabled { opacity: 0.38; box-shadow: none; cursor: default; }
.btn .l { flex: 1; min-width: 0; }
.btn .l small { display: block; font-size: 0.74em; font-weight: 700; color: var(--ink2); margin-top: 0.1em; }
.btn.pri .l small { color: inherit; opacity: 0.8; }
.btn .tag { flex: none; font-size: 0.7em; font-weight: 800; border: 1.5px solid currentColor; border-radius: 1em; padding: 0.02em 0.5em; white-space: nowrap; }
.btn .pct { flex: none; font-family: var(--font-d); font-weight: 400; font-size: 1.3em; min-width: 2.2em; text-align: right; line-height: 1; }
.btn .n { flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 0.72em; font-weight: 800; }
.btn canvas { flex: none; width: 1.9em; height: 1.9em; }
.chips { display: flex; flex-wrap: wrap; gap: 0.28em; }
.chip { font-size: 0.76em; font-weight: 800; padding: 0.08em 0.5em; border-radius: 1em; border: 1.5px solid var(--ink); background: var(--paper); white-space: nowrap; }
.chip.up { background: var(--up); }
.chip.dn { background: var(--dn); }
.chip.ink { background: var(--ink); color: var(--paper); }
.chip.gold { background: var(--gold); }
/* 시즌 달력 */
.cal { display: grid; grid-template-columns: repeat(3, minmax(0, 1.25fr)) repeat(3, minmax(0, 1fr)); gap: 0.25em; }
.cb { border: 2px solid var(--ink); border-radius: 0.35em; padding: 0.14em 0.2em; font-size: 0.68em; font-weight: 700; text-align: center; background: var(--paper); line-height: 1.25; white-space: nowrap; overflow: hidden; min-width: 0; }
.cb b { display: block; font-size: 1.16em; font-weight: 800; }
.cb.now { background: var(--ink); color: var(--paper); }
.cb.done { opacity: 0.45; }
.cb.ev { border-style: dashed; }
.cb.wc { background: var(--gold); border-style: solid; }
/* 할 일 */
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.36em; margin-top: auto; }
.act { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.02em; padding: 0.28em 0.5em; min-height: 2.95em; }
.act b { font-size: 0.9em; font-weight: 800; white-space: nowrap; }
.act small { font-size: 0.68em; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.act.pick { background: var(--gold); }
.port .act { min-height: 2.75em; padding: 0.2em 0.45em; }
.port .btn.sm { min-height: max(2.55em, 34px); min-width: 36px; }
.port .slotrow .x { width: max(2.4em, 34px); height: max(2.4em, 34px); }
.port .c-opt { display: none; }
.port .ib { width: max(2.15em, 34px); height: max(2.15em, 34px); }
.port .sw { min-width: max(2.15em, 34px); min-height: max(2.15em, 34px); }
.port .sw.dot { width: max(2.15em, 34px); }
.port .gauge .btn { min-height: max(2.2em, 34px); }
.port .btn { min-height: max(2.5em, 34px); }
.port .offer { padding-top: 0.28em; padding-bottom: 0.28em; }
.port .offer .nt { display: none; }
.port .panel h2.planh { display: none; }
/* 만들기 */
.crow { display: grid; grid-template-columns: 3.3em minmax(0, 1fr); gap: 0.4em; align-items: center; }
.crow > b { font-size: 0.78em; font-weight: 800; }
.sws { display: flex; flex-wrap: wrap; gap: 0.28em; }
.sw { border: 2px solid var(--ink); border-radius: 0.4em; background: var(--paper); min-width: 2.15em; min-height: 2.15em; padding: 0.1em 0.45em; font-size: 0.78em; font-weight: 700; display: grid; place-items: center; white-space: nowrap; }
.sw.dot { width: 2.15em; padding: 0; border-radius: 50%; }
.sw.on { box-shadow: 0 0 0 0.16em var(--paper), 0 0 0 0.32em var(--acc); }
.sw.txt2.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.field { border: 2px solid var(--ink); border-radius: 0.45em; background: #fffdf6; padding: 0.35em 0.6em; font: inherit; font-weight: 800; font-size: 1em; color: var(--ink); width: 100%; min-width: 0; min-height: 2.4em; user-select: text; -webkit-user-select: text; }
.desc { font-size: 0.8em; line-height: 1.4; color: var(--ink2); margin: 0; min-height: 2.8em; word-break: keep-all; font-weight: 500; }
.steps { display: flex; gap: 0.3em; }
.steps i { flex: 1; height: 0.3em; background: var(--paper3); border-radius: 0.2em; }
.steps i.on { background: var(--ink); }
/* 표 */
.tb { width: 100%; border-collapse: collapse; font-size: 0.8em; }
.tb td, .tb th { padding: 0.14em 0.35em; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; line-height: 1.35; }
.tb th { font-size: 0.86em; color: var(--ink2); font-weight: 800; }
.tb td.r, .tb th.r { text-align: right; }
.tb tr.me td { background: var(--ink); color: var(--paper); font-weight: 800; }
.big { display: flex; align-items: center; gap: 0.7em; flex-wrap: wrap; }
.big .sc { font-family: var(--font-d); font-size: 2.3em; line-height: 1; white-space: nowrap; }
.big .rt { font-family: var(--font-d); font-size: 1.5em; line-height: 1; background: var(--ink); color: var(--paper); border-radius: 0.3em; padding: 0.2em 0.4em; }
.big .rt.hi { background: var(--gold); color: var(--ink); border: 2px solid var(--ink); }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.5em; text-align: center; font-weight: 800; font-size: 0.92em; }
.vs canvas { width: 3em; height: 3em; display: block; margin: 0 auto 0.2em; }
.vs .x { font-family: var(--font-d); font-size: 1.4em; }
.offer { align-items: center; }
.offer .l b { display: block; }
.sumg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3em; }
.sumg div { border: 2px solid var(--ink); border-radius: 0.35em; padding: 0.15em 0.2em; text-align: center; font-size: 0.7em; font-weight: 700; background: var(--paper); line-height: 1.25; }
.sumg b { display: block; font-family: var(--font-d); font-weight: 400; font-size: 1.5em; }
.aw { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1em 0.5em; align-items: baseline; border-bottom: 1px solid var(--line); padding: 0.18em 0; font-size: 0.88em; }
.aw b { font-weight: 800; }
.aw.win { background: var(--gold); border: 2px solid var(--ink); border-radius: 0.35em; padding: 0.2em 0.5em; }
.aw span { font-size: 0.86em; font-weight: 700; white-space: nowrap; }
.tut { margin: 0; padding-left: 1.3em; font-size: 0.9em; line-height: 1.55; display: grid; gap: 0.35em; word-break: keep-all; }
.slotrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.45em; align-items: center; }
.slot { align-items: center; }
.slot canvas { width: 2.3em; height: 2.3em; border-radius: 0.3em; }
.slotrow .x svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.port .bar .cn, .port .bar .money, .land .pc .mny { display: none; }
.slot .x { flex: none; width: 2.1em; height: 2.1em; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; font-weight: 800; padding: 0; }

/* 창 */
.modal { position: absolute; inset: 0; z-index: 20; background: rgba(27, 36, 64, 0.6); display: grid; place-items: center; padding: 0.9em; }
.modal[hidden] { display: none; }
.sheet { background: var(--paper); border: 3px solid var(--ink); border-radius: 0.7em; box-shadow: 0.35em 0.35em 0 var(--ink); width: min(100%, 31em); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.sheet.wide { width: min(100%, 40em); }
.sheet header { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; padding: 0.5em 0.7em; border-bottom: 3px solid var(--ink); }
.sheet header h3 { margin: 0; font-family: var(--font-d); font-weight: 400; font-style: normal; font-size: 1.25em; }
.sheet header .ib { background: var(--ink); color: var(--paper); }
.sheet .body { padding: 0.65em 0.75em 0.8em; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; gap: 0.42em; overscroll-behavior: contain; }
.sheet .body p { margin: 0; font-size: 0.88em; line-height: 1.55; word-break: keep-all; }
.dex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4em; }
.dex div { border: 2px solid var(--ink); border-radius: 0.4em; padding: 0.3em 0.5em; font-size: 0.78em; line-height: 1.35; background: var(--paper2); word-break: keep-all; }
.dex div.got { background: var(--paper); }
.dex b { display: block; font-family: var(--font-d); font-weight: 400; font-size: 1.2em; }
.dex div:not(.got) b { color: var(--ink2); }
.toasts { position: absolute; left: 0.6em; top: 5.5em; z-index: 30; display: grid; gap: 0.3em; justify-items: start; pointer-events: none; max-width: 80%; }
.toast { background: var(--gold); border: 2px solid var(--ink); border-radius: 0.4em; padding: 0.22em 0.6em; font-size: 0.8em; font-weight: 800; box-shadow: 0.15em 0.15em 0 var(--ink); animation: tin 0.3s var(--ease) both; }
@keyframes tin { from { transform: translateX(-1.5em); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .btn, .toast, .ov .flash { transition: none; animation: none; } }
