/* DOT MATGO — meta.css (screens-B)
   map hub · 부적 · 화투 도감 · 기록 · 업적 · 상점 · 설정 · 자유 대전 · 도움말 · 공정성 센터
   Prefixes: hub- (shared kit), mp- (map), dc- (duel card), tl- (talisman), co- (collection), rc- (records), ac- (achievements),
             sh- (shop), st- (settings), qk- (quick), hp- (help), fr- (fairness) */

html.dg-noanim .hub *, html.dg-noanim .hub *::before, html.dg-noanim .hub *::after,
html.dg-noanim #overlay-root *, html.dg-noanim #overlay-root *::after { animation: none !important; transition: none !important; }

/* ======================================================================= shared kit */
.hub {
  color: var(--ink);
  background-color: #efe0bf;
  background-image:
    radial-gradient(rgba(140, 18, 32, .07) 1px, transparent 1px),
    radial-gradient(rgba(115, 62, 57, .06) 1px, transparent 1px);
  background-size: 12px 12px, 12px 12px; background-position: 0 0, 6px 6px;
}
.hub-head {
  flex: none; height: 46px; display: flex; align-items: center; gap: 8px; padding: 4px 8px; position: relative; z-index: 3;
  background: var(--night); color: var(--white);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35), inset 0 2px 0 rgba(108, 242, 255, .12);
}
.hub-head-title {
  flex: 1; min-width: 0; font-family: var(--font-title); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--yellowL);
  text-shadow: 1px 0 0 var(--ink), -1px 0 0 var(--ink), 0 1px 0 var(--ink), 0 -1px 0 var(--ink), 0 2px 0 var(--hwaRedD);
}
.hub-back { min-width: 38px; min-height: 34px; padding: 4px 8px 6px; margin: 0; }
/* 단청 trim under every hub header */
.hub-trim {
  flex: none; height: 6px; position: relative; z-index: 3;
  background: repeating-linear-gradient(90deg, var(--hwaRed) 0 10px, var(--jade) 10px 20px, var(--hwaBlue) 20px 30px, var(--yellow) 30px 40px, var(--jade) 40px 50px);
  box-shadow: 0 2px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, .25);
}
.hub-icon { flex: none; }
.hub-coins {
  display: flex; align-items: center; gap: 4px; padding: 1px 8px 1px 4px; background: var(--ink); color: var(--yellowL);
  font-size: 12px; white-space: nowrap; box-shadow: 0 0 0 2px var(--goldD);
}
.hub-body { padding: 10px 6px 16px; }
.hub-sec { margin: 22px 4px 12px; padding: 16px 10px 10px; }
.hub-sec:first-child { margin-top: 14px; }
.hub-sec-title {
  position: absolute; top: -11px; left: 8px; padding: 1px 9px 2px; font-size: 11px; font-weight: 700; color: var(--white);
  background: var(--hwaRed); box-shadow: var(--px-border), inset 0 -2px 0 rgba(0, 0, 0, .2);
}
.hub-note {
  display: flex; align-items: center; gap: 7px; margin: 8px 4px; padding: 7px 9px; font-size: 11px; line-height: 1.45; word-break: keep-all;
  background: var(--night); color: var(--dokFire); box-shadow: var(--px-border);
}
.hub-note b { color: var(--yellowL); }
.hub-tip { margin: 10px 6px 0; font-family: var(--font-small); font-size: 10px; line-height: 1.5; color: var(--brown); word-break: keep-all; text-align: center; }
.hub .px-btn { min-height: 34px; }

.hub-tabs {
  flex: none; height: 64px; display: flex; gap: 4px; padding: 7px 6px 5px; position: relative; z-index: 4;
  background: var(--night); box-shadow: 0 -2px 0 var(--ink), inset 0 2px 0 rgba(108, 242, 255, .15);
}
.hub-tabs::before { /* 단청 band on top of the tab bar */
  content: ''; position: absolute; left: 0; right: 0; top: -6px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--hwaRed) 0 10px, var(--jade) 10px 20px, var(--hwaBlue) 20px 30px, var(--yellow) 30px 40px, var(--jade) 40px 50px);
  box-shadow: 0 -2px 0 var(--ink);
}
.hub-tab {
  flex: 1; min-width: 0; position: relative; font: inherit; border: 0; border-radius: 0; margin: 0; padding: 2px 0 0; cursor: pointer;
  background: var(--slate); color: var(--grayL); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .1); -webkit-appearance: none; appearance: none;
}
.hub-tab-label { font-family: var(--font-small); font-size: 10px; line-height: 1.2; }
/* picture slot: one height for every tab, so the labels line up (cards 31px · icons 27px) */
.hub-tab-art { height: 32px; display: flex; align-items: center; justify-content: center; }
.hub-tab-cards { display: flex; align-items: center; }
.hub-tab-cards .px-card { box-shadow: 0 0 0 1px var(--ink); }
.hub-tab-cards.vs .px-card:first-child { transform: rotate(-9deg); }
.hub-tab-cards.vs .px-card:last-child { transform: rotate(9deg); }
.hub-tab-vs { position: relative; z-index: 1; margin: 0 -3px; padding: 0 2px 1px; font-family: var(--font-small); font-size: 9px; line-height: 1.1; font-weight: 700;
  color: var(--yellowL); background: var(--hwaRed); box-shadow: 0 0 0 1px var(--ink); }
.hub-tab.on { background: var(--yellow); color: var(--ink); transform: translateY(-4px);
  box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .2), inset 0 2px 0 rgba(255, 255, 255, .5), 0 4px 0 var(--hwaRed); }
.hub-tab:active { transform: translateY(1px); }
.hub-tab-dot { position: absolute; right: 7px; top: 3px; width: 7px; height: 7px; background: var(--hot); box-shadow: 0 0 0 1px var(--ink); animation: px-blink 1s steps(1) infinite; }
/* sub-tabs of a merged bottom tab (대전: AI 대전 · 친구 대전 / 내 정보: 기록 · 도감 · 업적 / 상점: 부적 · 꾸미기): folder tabs on a darker
   hanji strip whose bottom ink line runs under the idle tabs; the open tab has no bottom line and the page colour, so it joins the page */
.hub-sub { flex: none; display: flex; gap: 4px; padding: 8px 10px 0; position: relative; z-index: 2; background: var(--hanjiD);
  box-shadow: inset 0 -2px 0 var(--ink); }
.hub-sub-btn {
  flex: 1 1 0; min-width: 0; height: 34px; position: relative; margin: 0; padding: 0 4px 2px; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap;
  color: var(--brown); background: #c9b184; border: 0; border-radius: 0; cursor: pointer; -webkit-appearance: none; appearance: none;
  box-shadow: inset 0 2px 0 var(--ink), inset 2px 0 0 var(--ink), inset -2px 0 0 var(--ink), inset 0 -2px 0 var(--ink), inset 0 -5px 0 rgba(0, 0, 0, .1);
}
.hub-sub-btn.on { color: var(--ink); background: #efe0bf; cursor: default;
  box-shadow: inset 0 2px 0 var(--ink), inset 2px 0 0 var(--ink), inset -2px 0 0 var(--ink), inset 0 4px 0 var(--hwaRed); }
.hub-sub-btn:not(.on):active { transform: translateY(1px); }
.hub-sub-btn .hub-tab-dot { right: 6px; top: 6px; }

.hub-seg { display: flex; gap: 2px; }
.hub-seg-btn {
  flex: 1; min-width: 0; min-height: 34px; margin: 2px; padding: 0 2px; font: inherit; font-size: 12px; color: var(--ink); background: var(--white);
  border: 0; border-radius: 0; cursor: pointer; box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .14); -webkit-appearance: none; appearance: none; white-space: nowrap;
}
.hub-seg-btn.on { background: var(--yellow); font-weight: 700; box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .45); }
.hub-seg-btn:active { transform: translateY(1px); }
.hub-seg-btn[disabled] { opacity: .4; pointer-events: none; }
.hub-toggle { border: 0; padding: 0; margin: 2px; -webkit-appearance: none; appearance: none; }
.hub-shard { flex: none; }

/* menu modal */
.hub-menu-modal { width: 252px; }
.hub-menu-list { display: flex; flex-direction: column; gap: 3px; white-space: normal; }
.hub-menu-list .px-btn { min-height: 38px; justify-content: flex-start; }

@keyframes hub-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes hub-bob-x { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
@keyframes hub-glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
@keyframes hub-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes hub-stamp { 0% { transform: rotate(-14deg) scale(2.2); opacity: 0; } 60% { transform: rotate(-14deg) scale(.9); opacity: 1; } 100% { transform: rotate(-14deg) scale(1); opacity: 1; } }

/* ======================================================================= map */
.hub-map { background: var(--night); }
.mp-head {
  flex: none; height: 64px; display: flex; align-items: center; gap: 7px; padding: 5px 6px 5px 7px; position: relative; z-index: 3; color: var(--white);
  background: var(--night); box-shadow: inset 0 2px 0 rgba(108, 242, 255, .12);
}
.mp-face { flex: none; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--yellowL) 0 40%, var(--yellow) 41% 100%); box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .2); }
.mp-face canvas { margin-top: 8px; }
.mp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mp-line1 { display: flex; align-items: center; gap: 5px; min-width: 0; }
.mp-lv { flex: none; font-size: 11px; line-height: 1.3; padding: 0 4px; background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mp-name { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-title-tag { font-family: var(--font-small); font-size: 10px; color: var(--yellowL); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-exp { display: flex; align-items: center; gap: 4px; }
.mp-exp-k { font-size: 9px; color: var(--dokFire); }
.mp-exp-bar { flex: 1; height: 7px; min-width: 30px; }
.mp-exp-bar > .fill { background: var(--dokFire); }
.mp-exp-n { font-size: 9px; color: var(--grayL); }
.mp-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mp-shards { display: flex; align-items: center; gap: 1px; padding: 2px 4px; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 2px var(--slate); }   /* 2px ring like the 엽전 chip above: their outer edges line up */
.mp-shard-n { font-size: 9px; color: var(--yellowL); margin-left: 3px; }
.mp-menu { flex: none; margin: 0; min-width: 36px; min-height: 44px !important; padding: 3px 7px 5px; }

.mp-view { position: relative; overflow: hidden; }
.mp-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.mp-scroll::-webkit-scrollbar { width: 0; }
.mp-world { position: relative; width: 360px; }
.mp-canvas { position: absolute; left: 0; top: 0; }
.mp-fx { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; }
.mp-where {
  position: absolute; left: 6px; right: 6px; top: 6px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 3px 8px 4px; font-size: 11px; font-weight: 700; pointer-events: none; color: var(--ink); background: var(--hanji);
  box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 4px 0 rgba(0, 0, 0, .25);
}
.mp-where span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-where b { flex: none; font-weight: 400; padding: 0 5px; color: var(--white); background: var(--ink); }
.mp-where::before { content: ''; flex: none; width: 8px; height: 8px; box-shadow: 0 0 0 1px var(--ink); background: var(--pink); }
.mp-where-summer::before { background: var(--green); } .mp-where-autumn::before { background: var(--orange); }
.mp-where-winter::before { background: var(--white); } .mp-where-palace::before { background: var(--dokFire); }
.mp-goto { position: absolute !important; right: 8px; bottom: 10px; z-index: 4; min-height: 34px; animation: hub-bob .8s steps(2) infinite; }
.mp-goto.up .px-btn-icon { transform: rotate(180deg); }

.mp-start { position: absolute; z-index: 1; display: flex; flex-direction: column; padding: 2px 6px 3px; background: var(--hanji); box-shadow: var(--px-border); font-size: 10px; line-height: 1.25; }
.mp-start b { color: var(--hwaRed); font-size: 11px; }
.mp-band {
  position: absolute; z-index: 1; width: 126px; padding: 4px 7px 5px; color: var(--ink); background: var(--hanji);
  box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .12), 3px 4px 0 rgba(24, 20, 37, .35);
}
.mp-band.l { left: 8px; } .mp-band.r { right: 8px; }
.mp-band::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--pink); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); }
.mp-band-summer::before { background: var(--green); } .mp-band-autumn::before { background: var(--orange); }
.mp-band-winter::before { background: var(--hwaBlue); } .mp-band-palace::before { background: var(--dokFire); }
.mp-band-k { margin-top: 3px; font-family: var(--font-small); font-size: 10px; color: var(--brown); }
.mp-band-t { font-family: var(--font-title); font-size: 15px; line-height: 1.2; }
.mp-band-p { font-size: 10px; color: var(--hwaRed); }
.mp-band-palace { background: var(--night); color: var(--white); }
.mp-band-palace .mp-band-k { color: var(--dokFire); } .mp-band-palace .mp-band-p { color: var(--yellowL); }
.mp-gate { position: absolute; right: 10px; top: 306px; z-index: 1; display: flex; align-items: center; gap: 5px; padding: 3px 8px 4px; font-size: 11px; font-weight: 700;
  color: var(--yellowL); background: var(--ink); box-shadow: 0 0 0 2px var(--slate); }
.mp-gate.open { color: var(--ink); background: var(--gold); box-shadow: var(--px-border); animation: hub-glow 1s steps(2) infinite; }

/* nodes */
.mp-node { position: absolute; z-index: 1; width: 76px; height: 76px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; font: inherit;
  -webkit-appearance: none; appearance: none; }
.mp-node.palace { width: 92px; height: 92px; }
.mp-med { position: absolute; left: 0; top: 0; z-index: 1; }
.mp-node:active .mp-med { transform: translateY(2px); }
.mp-halo { position: absolute; left: -8px; top: -8px; right: -8px; bottom: -4px; z-index: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(254, 231, 97, .85) 0 38%, rgba(254, 231, 97, .35) 39% 52%, transparent 53%); }
.mp-node.current .mp-halo { animation: mp-halo 1s steps(2) infinite; }
.mp-node.palace.current .mp-halo { background: radial-gradient(circle, rgba(108, 242, 255, .8) 0 38%, rgba(108, 242, 255, .3) 39% 52%, transparent 53%); }
@keyframes mp-halo { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
html.dg-noanim .mp-node.current .mp-halo { opacity: .8; }
.mp-card { position: absolute; right: -4px; bottom: 2px; z-index: 2; transform: rotate(10deg); box-shadow: 2px 2px 0 rgba(24, 20, 37, .5); }
.mp-mo { position: absolute; left: -4px; top: -2px; z-index: 2; padding: 0 4px; font-size: 11px; line-height: 16px; color: var(--white); background: var(--ink);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink); }
.mp-node.open .mp-mo { background: var(--hwaRed); } .mp-node.cleared .mp-mo { background: var(--greenD); }
.mp-node.palace .mp-mo { left: 2px; top: 2px; background: var(--hwaBlueD); color: var(--dokFire); }
.mp-label { position: absolute; left: 50%; top: 78px; transform: translateX(-50%); z-index: 2; white-space: nowrap; padding: 1px 6px 2px;
  font-size: 11px; font-weight: 700; color: var(--ink); background: var(--cream); box-shadow: var(--px-border); }
.mp-node.palace .mp-label { top: 96px; background: var(--night); color: var(--dokFire); }
.mp-node.locked .mp-label { background: var(--grayL); color: var(--grayD); }
.mp-boss { position: absolute; right: 0; top: -4px; z-index: 3; padding: 0 3px; font-size: 9px; line-height: 13px; color: var(--yellowL); background: var(--hwaRedD);
  box-shadow: 0 0 0 1px var(--ink); }
.mp-shardmark { position: absolute; left: 0; bottom: 6px; z-index: 3; padding: 2px; background: var(--ink); box-shadow: 0 0 0 1px var(--goldD); line-height: 0; }
.mp-lock { position: absolute; left: 50%; top: 24px; margin-left: -13px; z-index: 3; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  background: var(--grayL); box-shadow: var(--px-border); }
.mp-node.palace .mp-lock { top: 34px; }
.mp-stamp { position: absolute; right: 2px; top: 40px; z-index: 3; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: 15px; color: var(--white); background: var(--hwaRed); transform: rotate(-14deg);
  box-shadow: 0 0 0 2px var(--hwaRedD), 0 0 0 3px var(--cream); animation: hub-stamp .3s steps(4) both; }
.mp-flag { position: absolute; left: 50%; top: -30px; z-index: 4; padding: 2px 8px 3px; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--yellow);
  white-space: nowrap; box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .2); animation: hub-bob-x .8s steps(2) infinite; transform: translateX(-50%); }
.mp-flag::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.mp-pin { position: absolute; top: 16px; z-index: 4; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--white); box-shadow: var(--px-border); animation: hub-bob 1s steps(2) infinite; }
.mp-pin.r { right: -46px; } .mp-pin.l { left: -46px; }
.mp-node.palace .mp-pin.r { right: -40px; } .mp-node.palace .mp-pin.l { left: -40px; }

/* duel card modal */
.dc-modal { width: 320px; padding: 8px 8px 10px; }
.dc-modal .px-modal-x { top: 12px; right: 12px; z-index: 5; }
/* the × floats over the banner, so this untitled body needs no 32px gutter for it: everything under the banner ends on the banner's edge */
.dc-modal .px-modal-body:first-child { padding-right: 2px; }
.dc-body { white-space: normal; padding: 0 2px 2px; }
.dc-banner { position: relative; width: 300px; height: 116px; margin: 0 auto 8px; overflow: hidden; box-shadow: var(--px-border); background: var(--navy); }
.dc-bg { position: absolute; left: 0; top: 0; }
.dc-face { position: absolute; left: 4px; bottom: -6px; z-index: 1; }
.dc-titles { position: absolute; left: 100px; right: 6px; bottom: 8px; z-index: 2; color: var(--white); }
.dc-titles::before { content: ''; position: absolute; inset: -5px -6px -8px -14px; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 22, 46, 0), rgba(16, 22, 46, .5) 22%, rgba(16, 22, 46, .62)); }
.dc-kicker { display: inline-block; padding: 0 5px; font-size: 10px; color: var(--ink); background: var(--yellowL); box-shadow: 0 0 0 1px var(--ink); }
.dc-title { margin-top: 3px; font-family: var(--font-title); font-size: 17px; line-height: 1.2; word-break: keep-all;
  text-shadow: 1px 0 0 var(--ink), -1px 0 0 var(--ink), 0 1px 0 var(--ink), 0 -1px 0 var(--ink), 0 2px 0 var(--ink); }
.dc-bossbadge { position: absolute; left: 6px; top: 6px; z-index: 2; padding: 0 4px; font-size: 10px; color: var(--yellowL); background: var(--hwaRedD); box-shadow: 0 0 0 1px var(--ink); }
.dc-clear { position: absolute; right: 8px; top: 34px; z-index: 2; padding: 1px 6px; font-family: var(--font-title); font-size: 14px; color: var(--white);
  background: var(--hwaRed); transform: rotate(10deg); box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--hwaRedD); }
.dc-who { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 12px; }
.dc-who b { font-size: 14px; }
.dc-who span { font-size: 11px; color: var(--brown); }
.dc-who .dc-ai { margin-left: auto; padding: 0 5px; font-size: 10px; color: var(--white); background: var(--plum); box-shadow: 0 0 0 1px var(--ink); }
.dc-say { position: relative; margin: 6px 0 8px 10px; padding: 5px 8px 6px; font-size: 11px; line-height: 1.5; background: var(--white); box-shadow: var(--px-border); word-break: keep-all; }
.dc-say { --tail-y: 6px; }
.dc-cards { display: flex; justify-content: center; gap: 8px; margin: 2px 0 8px; }
.dc-card { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dc-card .px-card { box-shadow: 2px 2px 0 rgba(24, 20, 37, .35); }
.dc-ck { font-family: var(--font-small); font-size: 10px; line-height: 1.2; color: var(--brown); }
.dc-stakes { display: flex; gap: 6px; margin: 2px 0 4px; }
.dc-stat { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 3px 2px 4px; background: var(--white); box-shadow: var(--px-border); }
.dc-stat.me .dc-v { color: var(--greenD); } .dc-stat.foe .dc-v { color: var(--hwaRed); }
.dc-k { font-family: var(--font-small); font-size: 10px; color: var(--grayD); }
.dc-v { font-size: 15px; font-weight: 700; line-height: 1.2; }
.dc-note { font-family: var(--font-small); font-size: 9px; line-height: 1.1; color: var(--jade); white-space: nowrap; }
.dc-hint { font-family: var(--font-small); font-size: 10px; color: var(--brown); text-align: center; margin: 2px 0 6px; word-break: keep-all; }
.dc-reward { display: flex; align-items: center; gap: 5px; padding: 4px 8px; background: var(--ink); color: var(--yellowL); font-size: 12px; box-shadow: 0 0 0 2px var(--goldD); }
.dc-rk { color: var(--gray); margin-right: auto; font-size: 11px; }
.dc-exp { color: var(--dokFire); margin-left: 4px; }
.dc-shard { display: flex; align-items: center; gap: 3px; margin-left: 4px; color: var(--gold); font-size: 11px; }
.dc-modal .px-modal-btns { justify-content: stretch; }
.dc-modal .px-modal-btns .px-btn { flex: 1; min-height: 40px; }
.dc-modal .px-modal-btns .px-btn.hwa { font-family: var(--font-title); font-size: 16px; }

/* ======================================================================= talisman */
.hub-right { display: flex; flex: none; }
.tl-hero { display: flex; align-items: flex-end; gap: 6px; margin: 6px 4px 8px; padding: 8px 10px 8px; min-height: 76px; overflow: hidden; }
.tl-hero-art { flex: none; margin: -4px 0 -6px -4px; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .4)); }
.tl-hero-face { flex: none; margin-bottom: -8px; }
.tl-hero-say { position: relative; flex: 1; min-width: 0; align-self: center; padding: 5px 8px 6px; font-size: 11px; line-height: 1.45; color: var(--ink);
  background: var(--white); box-shadow: var(--px-border); word-break: keep-all; }
.tl-hero-say b { display: block; color: var(--dokFireD); font-size: 11px; }
.tl-hero-say { --tail-y: auto; }
.tl-hero-say::before { bottom: 16px; }
.tl-row { display: flex; align-items: center; gap: 9px; margin: 8px 4px; padding: 8px 8px 8px 8px; }
.tl-row.owned { background: #fff3c9; }
.tl-row.flash { box-shadow: var(--px-border), 0 0 0 5px rgba(254, 231, 97, .9); }
.tl-art { flex: none; filter: drop-shadow(2px 2px 0 rgba(24, 20, 37, .35)); }
.tl-row.owned .tl-art { animation: hub-bob 1.6s steps(2) infinite; }
.tl-main { flex: 1; min-width: 0; }
.tl-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.tl-pips { display: inline-flex; gap: 2px; }
.tl-pips i { width: 8px; height: 8px; background: var(--hanjiD); box-shadow: 0 0 0 1px var(--ink); }
.tl-pips i.on { background: var(--hwaRed); }
.tl-desc { font-size: 11px; line-height: 1.45; color: var(--brownD); word-break: keep-all; margin-top: 1px; }
.tl-eff { display: flex; flex-wrap: wrap; gap: 3px 6px; margin-top: 3px; }
.tl-now, .tl-next { font-family: var(--font-small); font-size: 10px; padding: 0 4px; box-shadow: 0 0 0 1px var(--ink); }
.tl-now { background: var(--jade); color: var(--ink); }
.tl-next { background: var(--white); color: var(--hwaRedD); }
.tl-act { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tl-buy { width: 68px; min-height: 26px; margin: 0; padding: 4px 4px 6px; gap: 3px; }
.tl-buy-k { font-family: var(--font-small); font-size: 10px; color: var(--brown); }
.tl-max { width: 68px; min-height: 26px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  color: var(--white); background: var(--hwaRed); box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .25); }

/* ======================================================================= collection */
.co-top { display: flex; align-items: center; gap: 10px; margin: 6px 4px 10px; padding: 8px 10px; }
.co-top-l { flex: none; text-align: center; }
.co-top-k { font-family: var(--font-small); font-size: 10px; color: var(--dokFire); }
.co-top-v { font-size: 13px; color: var(--grayL); }
.co-top-v b { font-size: 22px; color: var(--yellowL); font-weight: 400; }
.co-top-r { flex: 1; min-width: 0; }
.co-bar { height: 9px; }
.co-bar > .fill { background: var(--yellow); }
.co-top-s { margin-top: 4px; font-family: var(--font-small); font-size: 10px; color: var(--grayL); word-break: keep-all; }
.co-claim { margin: 0 4px 10px !important; width: calc(100% - 8px) !important; animation: hub-glow 1s steps(2) infinite; }
.co-grid { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.co-row { display: flex; align-items: center; gap: 6px; padding: 5px 6px; background: var(--hanji); box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .08); }
.co-row.done { background: #fff3c9; box-shadow: var(--px-border), inset 0 0 0 2px var(--gold); }
.co-mo { flex: none; width: 50px; display: flex; flex-direction: column; line-height: 1.2; }
.co-mo b { font-size: 14px; color: var(--hwaRed); font-weight: 400; }
.co-mo span { font-size: 11px; font-weight: 700; }
.co-row.bonus .co-mo b { font-size: 12px; font-family: var(--font); font-weight: 700; color: var(--goldD); }
.co-row.bonus .co-mo span { font-family: var(--font-small); font-size: 10px; font-weight: 400; }
.co-cards { flex: 1; display: flex; gap: 6px; }
.co-cell { position: relative; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; line-height: 0; }
.co-cell .px-card, .co-cell .co-sil { box-shadow: 2px 2px 0 rgba(24, 20, 37, .3); }
.co-cell:active { transform: translateY(1px); }
.co-q { position: absolute; left: 0; right: 0; top: 18px; text-align: center; font-family: var(--font-title); font-size: 16px; line-height: 1; color: var(--grayL);
  text-shadow: 0 2px 0 var(--ink); pointer-events: none; }
.co-badge { flex: none; width: 46px; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--grayD); }
.co-badge.ready, .co-badge.paid { padding: 2px 0; color: var(--ink); background: var(--gold); box-shadow: var(--px-border); transform: rotate(-4deg); }
.co-badge.ready { animation: hub-glow 1s steps(2) infinite; }
.co-badge b { font-family: var(--font-title); font-size: 13px; font-weight: 400; color: var(--hwaRedD); }
.co-modal { width: 316px; }
.co-detail { display: flex; gap: 10px; white-space: normal; align-items: flex-start; padding: 0 2px; min-height: 208px; }   /* = the longest card text (1월 송학): every card's popup has one size */   /* boxes' outlines end on the 닫기 button's edge line */
.co-big-wrap { flex: none; padding: 6px; background: var(--blanket); box-shadow: var(--px-border), inset 0 0 0 3px var(--blanketD); }
.co-big-wrap.unknown { background: var(--night); box-shadow: var(--px-border), inset 0 0 0 3px var(--slate); }
.co-big { filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .35)); }
.co-info { flex: 1; min-width: 0; } /* the modal body's own 2px padding keeps the boxes' pixel borders whole */
.co-name { font-weight: 700; font-size: 13px; line-height: 1.3; }
.co-tags { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0; }
.co-tag { font-family: var(--font-small); font-size: 10px; padding: 0 4px; color: var(--white); background: var(--slate); box-shadow: 0 0 0 1px var(--ink); }
.co-tag.k-gwang { background: var(--hwaRed); } .co-tag.k-animal { background: var(--ochre); } .co-tag.k-ribbon { background: var(--hwaBlue); }
.co-tag.k-pi { background: var(--greenD); } .co-tag.k-bonus { background: var(--goldD); }
.co-text { font-size: 11px; line-height: 1.5; word-break: keep-all; margin-bottom: 6px; }
.co-month { padding: 4px 6px 5px; background: var(--white); box-shadow: var(--px-border); }
.co-month-h { font-size: 11px; font-weight: 700; color: var(--hwaRedD); }
.co-month-m { font-family: var(--font-small); font-size: 10px; color: var(--plum); }
.co-month-t { font-size: 11px; line-height: 1.45; word-break: keep-all; }
.co-when { margin-top: 5px; font-family: var(--font-small); font-size: 10px; color: var(--grayD); }

/* ======================================================================= records & achievements */
.rc-prof { display: flex; align-items: center; gap: 10px; margin: 6px 4px 8px; }
.rc-face { flex: none; width: 64px; height: 64px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--yellowL) 0 40%, var(--yellow) 41% 100%); box-shadow: var(--px-border); }
.rc-pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rc-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.rc-title { font-size: 11px; color: var(--yellowL); }
.rc-exp { height: 7px; } .rc-exp > .fill { background: var(--dokFire); }
.rc-expn { font-size: 9px; color: var(--grayL); }
.rc-big3 { display: flex; gap: 6px; margin: 4px 4px 2px; }
.rc-big { flex: 1; padding: 6px 2px 5px; text-align: center; background: var(--hwaRed); color: var(--white); box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .2); }
.rc-big:nth-child(2) { background: var(--hwaBlue); } .rc-big:nth-child(3) { background: var(--ochre); }
.rc-big-v { font-size: 17px; line-height: 1.2; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.rc-big-k { font-family: var(--font-small); font-size: 10px; opacity: .9; }
.rc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.rc-tile { padding: 3px 4px 4px; background: var(--white); box-shadow: 0 0 0 1px var(--hanjiD), inset 0 -2px 0 rgba(0, 0, 0, .06); text-align: center; }
.rc-k { font-family: var(--font-small); font-size: 10px; color: var(--grayD); white-space: nowrap; }
.rc-v { font-size: 14px; line-height: 1.2; }
.rc-tile.good .rc-v { color: var(--greenD); } .rc-tile.hot .rc-v { color: var(--hwaRed); }
.rc-receipt { position: relative; margin: 2px 8px 4px; padding: 8px 12px 10px; background: var(--white); font-size: 12px;
  box-shadow: 0 0 0 1px var(--hanjiD), 3px 3px 0 rgba(24, 20, 37, .15);
  background-image: repeating-linear-gradient(to bottom, transparent 0 21px, rgba(217, 196, 155, .55) 21px 22px); }
.rc-r-h { display: flex; justify-content: space-between; padding-bottom: 4px; margin-bottom: 4px; border-bottom: 2px dashed var(--hanjiD); font-weight: 700; color: var(--hwaRedD); }
.rc-r-h span:last-child { font-weight: 400; color: var(--grayD); font-size: 10px; }
.rc-r-line { display: flex; justify-content: space-between; line-height: 22px; }
.rc-r-line b { font-weight: 400; }
.rc-r-line.mult b { color: var(--hwaRed); }
.rc-r-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; padding-top: 4px; border-top: 2px solid var(--ink); font-weight: 700; }
.rc-r-total b { font-family: var(--font-title); font-size: 22px; font-weight: 400; color: var(--hwaRed); }
.rc-r-seal { position: absolute; left: 64px; bottom: 6px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: 12px; color: var(--hwaRed); box-shadow: 0 0 0 2px var(--hwaRed); transform: rotate(-12deg); opacity: .8; }
.rc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; text-align: center; color: var(--brown); word-break: keep-all; }
.rc-empty-cards { display: flex; gap: 4px; opacity: .6; }
.rc-foes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 2px; }
.rc-foe { display: flex; flex-direction: column; align-items: center; }
.rc-foe-k { font-size: 9px; color: var(--grayD); }
.rc-foe.on .rc-foe-k { color: var(--greenD); } .rc-foe.open .rc-foe-k { color: var(--hwaRed); }
.rc-shards { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; }
.rc-shards b { font-weight: 400; color: var(--goldD); }
.rc-ending { margin-left: auto; color: var(--hwaRed); font-weight: 700; }
.ac-top { display: flex; align-items: center; gap: 10px; margin: 6px 4px 10px; }
.ac-trophy { flex: none; animation: hub-bob 1.4s steps(2) infinite; }
.ac-sum { flex: 1; min-width: 0; }
.ac-sum-v { font-size: 13px; color: var(--grayL); } .ac-sum-v b { font-size: 22px; color: var(--yellowL); font-weight: 400; }
.ac-bar { height: 8px; margin: 2px 0 4px; } .ac-bar > .fill { background: var(--gold); }
.ac-sum-k { font-family: var(--font-small); font-size: 10px; color: var(--grayL); word-break: keep-all; }
.ac-row { display: flex; align-items: center; gap: 8px; margin: 6px 4px; padding: 6px 8px; background: var(--hanjiD); box-shadow: var(--px-border); color: var(--brown); }
.ac-row.on { background: var(--hanji); color: var(--ink); box-shadow: var(--px-border), inset 4px 0 0 var(--gold); }
.ac-icon { flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--slate); box-shadow: 0 0 0 2px var(--ink); }
.ac-row.on .ac-icon { background: var(--yellow); }
.ac-main { flex: 1; min-width: 0; }
.ac-name { font-weight: 700; font-size: 12px; }
.ac-desc { font-size: 11px; line-height: 1.4; word-break: keep-all; }
.ac-when { font-size: 9px; color: var(--grayD); }
.ac-rw { flex: none; display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--grayD); }
.ac-rw.got { color: var(--goldD); }

/* ======================================================================= shop */
.sh-preview { margin: 6px 4px 8px; padding: 8px; }
.sh-stage { position: relative; width: 316px; height: 124px; margin: 0 auto; box-shadow: var(--px-border); overflow: hidden; }
.sh-mat { position: absolute; left: 0; top: 0; }
.sh-cards { position: absolute; inset: 0; }
.sh-cards .px-card { position: absolute; filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, .4)); }
.sh-cards .c1 { left: 40px; top: 18px; transform: rotate(-8deg); }
.sh-cards .c2 { left: 92px; top: 22px; transform: rotate(5deg); }
.sh-cards .c3 { left: 176px; top: 16px; transform: rotate(-3deg); }
.sh-cards .c4 { left: 248px; top: 46px; transform: rotate(9deg); }
.sh-pv-name { display: flex; flex-direction: column; align-items: center; margin-top: 6px; color: var(--white); text-align: center; }
.sh-pv-name b { font-family: var(--font-title); font-size: 15px; font-weight: 400; color: var(--yellowL); }
.sh-pv-name span { font-size: 11px; line-height: 1.5; min-height: 3em; color: var(--grayL); word-break: keep-all; }   /* 2 lines kept: picking another item never moves the page */
.sh-seg { margin: 0 2px 6px; }   /* the segment buttons' own 2px margin brings their outline onto the panels' edge line */
.sh-tip { margin: 0 6px 5px; }   /* 깔개 tab only: the starter mat keeps the chapter mats in story duels */
.sh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 2px 4px 8px; }
.sh-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 5px; margin: 0; border: 0; font: inherit; cursor: pointer;
  color: var(--ink); background: var(--hanji); box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .1); -webkit-appearance: none; appearance: none; }
.sh-item.sel { background: var(--yellowL); box-shadow: var(--px-border), inset 0 0 0 3px var(--hwaRed), inset 0 -6px 0 rgba(0, 0, 0, .1); }   /* ring inside: the tile keeps its size and edge line */
.sh-item:active { transform: translateY(1px); }
.sh-thumb { height: 58px; display: flex; align-items: center; justify-content: center; }
.sh-thumb .px-art { box-shadow: 2px 2px 0 rgba(24, 20, 37, .3); }
.sh-name { font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; word-break: keep-all; }
.sh-price { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--brown); }
.sh-eq { color: var(--white); background: var(--greenD); padding: 0 4px; box-shadow: 0 0 0 1px var(--ink); font-size: 10px; }
.sh-own { color: var(--greenD); font-size: 10px; }
.sh-foot, .qk-foot { flex: none; padding: 8px 10px 9px; background: var(--sand); box-shadow: 0 -2px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, .4); position: relative; z-index: 3; }
.sh-foot .px-btn, .qk-foot .px-btn { margin: 0; width: 100%; min-height: 42px; }

/* ======================================================================= settings */
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--hanjiD); }
.st-row:last-child { border-bottom: 0; }
.st-row.stacked { flex-direction: column; align-items: stretch; gap: 4px; }
.st-row.stacked .hub-seg { width: 100%; }
.st-label { min-width: 0; }
.st-l { font-weight: 700; font-size: 12px; }
.st-sub { font-family: var(--font-small); font-size: 10px; line-height: 1.4; color: var(--brown); word-break: keep-all; }
.st-slrow { display: flex; align-items: center; gap: 8px; padding: 0 2px 6px; }
.st-slider[disabled] { opacity: .4; }
.st-preview { margin: 2px 0 6px; padding: 6px 8px; min-height: 30px; font-size: 12px; color: var(--white); background: var(--night); box-shadow: var(--px-border); }
.st-inline { display: flex; align-items: center; gap: 10px; }
.st-hintcard { line-height: 0; }
.st-rnote { margin-bottom: 4px; }
.st-reset { margin-top: 6px !important; }
.st-url { font-size: 12px; }
.st-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.st-btns .px-btn { justify-content: flex-start; }
.st-btns3 { grid-template-columns: 1fr 1fr 1fr; }
.st-btns3 .px-btn { justify-content: center; padding-left: 4px; padding-right: 4px; font-size: 12px; white-space: nowrap; }
.st-fair { min-height: 42px !important; justify-content: center; font-size: 14px; font-weight: 700; }
.st-fair-sub { margin: 4px 2px 10px; text-align: center; }
.st-data .px-btn { margin-top: 6px; }
.st-ver { margin-top: 6px; font-family: var(--font-small); font-size: 10px; color: var(--grayD); text-align: center; }

/* ======================================================================= quick */
.qk-vs { display: flex; align-items: flex-start; justify-content: space-around; gap: 4px; margin: 6px 4px 6px; padding: 8px 6px; min-height: 120px;
  background: linear-gradient(90deg, var(--hwaBlueD) 0 50%, var(--hwaRedD) 50% 100%); }
.qk-side { width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--white); text-align: center; }
.qk-side b { font-size: 13px; text-shadow: 0 2px 0 var(--ink); }
.qk-style { font-family: var(--font-small); font-size: 10px; padding: 0 4px; color: var(--ink); background: var(--yellowL); box-shadow: 0 0 0 1px var(--ink); }
.qk-vsmark { flex: none; align-self: center; font-family: var(--font-title); font-size: 24px; color: var(--yellow); text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); }
.qk-rand { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 34px; color: var(--yellowL);
  background: var(--night); box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px var(--yellow), 0 0 0 7px var(--ink); border-radius: 50%; margin: 3px 0; }   /* 82px tall, like a 38 medallion (76 + 3 + 3) */
.qk-rand.small { width: 52px; height: 52px; margin: 6px 0 8px;   /* 66px tall, like a 30 medallion in the pool */ font-size: 22px; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--yellow), 0 0 0 6px var(--ink); }
.qk-pool { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 4px; }
.qk-op { display: flex; flex-direction: column; align-items: center; padding: 2px 0 3px; margin: 0; border: 0; background: none; cursor: pointer; font: inherit;
  -webkit-appearance: none; appearance: none; }
.qk-op.on { background: rgba(210, 35, 42, .12); box-shadow: 0 0 0 2px var(--hwaRed); }
.qk-op-name { font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.qk-op.locked .qk-op-name { color: var(--grayD); font-weight: 400; }
.qk-pool-note { margin-top: 6px; font-family: var(--font-small); font-size: 10px; color: var(--brown); text-align: center; }
.qk-k { margin: 4px 0 1px; font-family: var(--font-small); font-size: 10px; color: var(--brown); }
.qk-desc { margin-top: 6px; font-size: 11px; line-height: 1.45; word-break: keep-all; color: var(--brownD); }
.qk-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.qk-chip { font-size: 11px; padding: 1px 6px; background: var(--white); box-shadow: 0 0 0 1px var(--ink); }
.qk-start { font-family: var(--font-title) !important; font-size: 18px !important; }

/* ======================================================================= help (규칙 도움말) */
.hp-backdrop { background: rgba(16, 22, 46, .72); align-items: stretch; justify-content: stretch; }
.hp-sheet { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; animation: hp-up .2s steps(4); }
@keyframes hp-up { from { transform: translateY(28px); opacity: .4; } to { transform: none; opacity: 1; } }
.hp-overlay-tag { flex: none; font-family: var(--font-small); font-size: 10px; color: var(--ink); background: var(--yellowL); padding: 0 5px; box-shadow: 0 0 0 2px var(--ink); }
.hp-tabs { flex: none; display: flex; gap: 4px; padding: 7px 7px 6px; position: relative; z-index: 2; background: var(--hanjiD);
  box-shadow: 0 2px 0 var(--ink), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.hp-tab {
  flex: 1; min-width: 0; height: 32px; margin: 2px; padding: 0 2px; display: flex; align-items: center; justify-content: center; gap: 4px;
  font: inherit; font-size: 12px; font-weight: 700; color: var(--brownD); background: var(--hanji); border: 0; border-radius: 0; cursor: pointer; white-space: nowrap;
  box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .5); -webkit-appearance: none; appearance: none;
}
.hp-tab.on { background: var(--hwaRed); color: var(--white); box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .3), 0 3px 0 var(--ink); }
.hp-tab:active { transform: translateY(1px); }
.hp-body { padding-top: 8px; }
.hp-em { color: var(--hwaRed); font-weight: 700; }

/* 목차 */
.hp-cover { display: flex; align-items: center; gap: 10px; margin: 4px 4px 8px; padding: 8px; }
.hp-cover-face { flex: none; width: 68px; height: 68px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: var(--hwaBlueD); box-shadow: 0 0 0 2px var(--ink), inset 0 -6px 0 rgba(0, 0, 0, .3); }
.hp-cover-say { flex: 1; min-width: 0; position: relative; padding: 6px 8px 7px; font-size: 11px; line-height: 1.45; word-break: keep-all;
  color: var(--ink); background: var(--white); box-shadow: var(--px-border); }
.hp-cover-say { --tail-y: 14px; }
.hp-cover-say b { display: block; color: var(--hwaRed); }
.hp-quick { display: flex; gap: 4px; margin: 0 2px 4px; }   /* + the buttons' 2px margin = the panels' edge line */
.hp-quick .px-btn { flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; }
.hp-toc { margin-top: 22px; }
.hp-toc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 6px; }
.hp-toc-item {
  display: flex; align-items: center; gap: 6px; min-height: 36px; margin: 2px; padding: 4px 6px 6px; font: inherit; font-size: 12px; text-align: left;
  color: var(--ink); background: var(--white); border: 0; border-radius: 0; cursor: pointer; -webkit-appearance: none; appearance: none;
  box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.hp-toc-item:active { transform: translateY(1px); background: var(--yellowL); }
.hp-toc-no { flex: none; min-width: 20px; height: 18px; line-height: 18px; text-align: center; font-size: 11px; color: var(--white); background: var(--hwaBlue); box-shadow: 0 0 0 1px var(--ink); }
.hp-toc-h { flex: 1; min-width: 0; font-weight: 700; line-height: 1.25; word-break: keep-all; }

/* 책 한 쪽 */
.hp-pnav { display: flex; align-items: center; gap: 6px; margin: 0 4px 4px; }
.hp-pnav-grp { flex: 1; min-width: 0; font-family: var(--font-small); font-size: 10px; color: var(--brown); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-pnav-no { flex: none; font-size: 11px; padding: 1px 6px; color: var(--yellowL); background: var(--ink); }
.hp-page { margin: 6px 4px 10px; padding: 12px 10px 12px; touch-action: pan-y; }
.hp-page::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--hwaRed) 0 8px, var(--jade) 8px 16px, var(--hwaBlue) 16px 24px, var(--yellow) 24px 32px); }
.hp-page-h { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font-family: var(--font-title); font-size: 19px; line-height: 1.2; color: var(--hwaRedD); }
.hp-page-no { flex: none; width: 26px; height: 26px; line-height: 26px; text-align: center; font-size: 13px; color: var(--yellowL); background: var(--hwaRed); box-shadow: var(--px-border); }
.hp-banners { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 8px; }
.hp-mat { position: relative; display: flex; justify-content: center; margin: 0 0 10px; padding: 12px 6px 9px; overflow: hidden;
  background: var(--blanket); box-shadow: var(--px-border), inset 0 0 0 3px var(--blanketD), inset 0 3px 0 3px rgba(0, 0, 0, .15); }
.hp-mat::after { content: ''; position: absolute; inset: 5px; border: 1px dashed rgba(255, 244, 220, .35); pointer-events: none; }
.hp-mat.dark { background: var(--night); box-shadow: var(--px-border), inset 0 0 0 3px var(--hwaBlueD); }
.hp-mat-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.hp-mat-row.tight { gap: 2px; }
.px-card.hp-tapcard { cursor: pointer; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .35)); }
.px-card.hp-tapcard:active { transform: translateY(-2px); }
.hp-dia { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: center; gap: 3px; }
.hp-op { align-self: flex-start; margin-top: 18px; font-family: var(--font-title); font-size: 16px; line-height: 1; color: var(--yellowL); text-shadow: 0 2px 0 var(--ink); }
.hp-dg { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hp-dg-cards { display: flex; align-items: center; min-height: 56px; }
.hp-dg-cards.fan .px-card + .px-card { margin-left: -22px; }
.hp-dg-k { font-family: var(--font-small); font-size: 10px; line-height: 13px; color: var(--cream); white-space: nowrap; padding: 0 2px; }
.hp-dg.hot .hp-dg-k { color: var(--ink); background: var(--yellow); padding: 0 4px; box-shadow: 0 0 0 1px var(--ink); }
.hp-dg-text { min-width: 36px; height: 56px; padding: 0 5px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--ink);
  background: var(--cream); box-shadow: 0 0 0 2px var(--ink), inset 0 -3px 0 rgba(0, 0, 0, .15); white-space: nowrap; }
.hp-dg.hot .hp-dg-text { background: var(--yellow); color: var(--hwaRedD); }
.hp-dg-empty { width: 36px; height: 56px; display: flex; align-items: center; justify-content: center; font-family: var(--font-small); font-size: 10px;
  color: rgba(255, 244, 220, .7); border: 2px dashed rgba(255, 244, 220, .45); }
.hp-paras { display: flex; flex-direction: column; gap: 7px; }
.hp-p { position: relative; margin: 0; padding-left: 13px; font-size: 12px; line-height: 1.6; word-break: keep-all; }
.hp-p::before { content: ''; position: absolute; left: 1px; top: 7px; width: 6px; height: 6px; background: var(--hwaRed); box-shadow: 0 0 0 1px var(--ink); }
.hp-p.num { padding-left: 0; }
.hp-p.num::before { display: none; }
.hp-rel { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin-top: 10px; }
.hp-pnav2 { display: flex; gap: 6px; margin: 0 4px; }
.hp-pnav2 .px-btn { flex: 1 1 0; min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.hp-deal { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px 2px; }
.hp-deal-chip { min-width: 28px; padding: 2px 3px 3px; display: flex; flex-direction: column; align-items: center; font-size: 10px; line-height: 1.2; color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink), inset 0 -2px 0 rgba(0, 0, 0, .2); }
.hp-deal-chip b { font-size: 10px; } .hp-deal-chip span { font-size: 13px; }
.hp-deal-chip.r-first { background: var(--yellow); } .hp-deal-chip.r-second { background: var(--dokFire); }
.hp-deal-chip.r-floor { background: var(--green); } .hp-deal-chip.r-pile { background: var(--grayL); }
.hp-deal-ar { font-style: normal; font-weight: 700; color: var(--yellowL); }
.hp-story { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; }
.hp-story-side { width: 96px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--white); }
.hp-story-side .px-hp { width: 86px; }
.hp-story-vs { font-family: var(--font-title); font-size: 20px; color: var(--yellow); text-shadow: 0 2px 0 var(--hwaRedD); }
.hp-fair { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 0 4px; font-size: 11px; line-height: 1.45; color: var(--white); word-break: keep-all; }
.hp-fair b { color: var(--dokFire); }
.hp-seal-fb { padding: 2px 6px; font-size: 12px; color: var(--yellowL); background: var(--hwaRed); box-shadow: 0 0 0 2px var(--ink); }

/* 월별 화투표 */
.hp-mtop { margin: 4px 4px 10px; }
.hp-mtop-h { font-family: var(--font-title); font-size: 15px; color: var(--yellowL); }
.hp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 6px; }
.hp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px 1px 1px; font-size: 12px; color: var(--ink); background: var(--white); box-shadow: 0 0 0 2px var(--ink); }
.hp-mtop-s { font-size: 11px; line-height: 1.45; color: var(--grayL); word-break: keep-all; }
.hp-kt { display: inline-block; padding: 0 4px; font-family: var(--font-small); font-size: 10px; line-height: 13px; white-space: nowrap; color: var(--white);
  background: var(--slate); box-shadow: 0 0 0 1px var(--ink); }
.hp-kt.k-gwang { background: var(--gold); color: var(--ink); }
.hp-kt.k-animal { background: var(--ochre); }
.hp-kt.k-gukjin { background: var(--plum); }
.hp-kt.k-hong { background: var(--hwaRed); }
.hp-kt.k-cheong { background: var(--hwaBlue); }
.hp-kt.k-cho { background: var(--greenD); }
.hp-kt.k-bi { background: var(--grayD); }
.hp-kt.k-pi { background: var(--brownL); }
.hp-kt.k-ssang { background: var(--jade); color: var(--ink); }
.hp-kt.k-bonus { background: var(--magenta); }
.hp-kx { font-family: var(--font-small); font-size: 9px; line-height: 11px; color: var(--hwaRedD); white-space: nowrap; }
.hp-mrow { --season: var(--pink); position: relative; display: flex; align-items: center; gap: 4px; margin: 0 4px 6px; padding: 6px 6px 5px 12px;
  background: var(--hanji); box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .08); }
.hp-mrow::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--season); box-shadow: 1px 0 0 var(--ink); }
.hp-mrow.s-summer { --season: var(--green); } .hp-mrow.s-autumn { --season: var(--orange); } .hp-mrow.s-winter { --season: var(--blue); }
.hp-mrow.s-bonus { --season: var(--magenta); }
.hp-mrow.focus { background: var(--yellowL); box-shadow: var(--px-border), 0 0 0 4px var(--hwaRed); }
.hp-mlab { flex: none; width: 50px; display: flex; flex-direction: column; line-height: 1.2; }
.hp-mlab b { font-family: var(--font-title); font-size: 16px; color: var(--hwaRedD); }
.hp-mname { font-size: 12px; font-weight: 700; }
.hp-mplant { font-family: var(--font-small); font-size: 10px; color: var(--brown); }
.hp-mcards { flex: 1; min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 2px; }
.hp-mcell { width: 60px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hp-kt-wrap { min-height: 26px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.hp-mnote { flex: 1; min-width: 0; align-self: center; font-family: var(--font-small); font-size: 10px; line-height: 1.45; color: var(--brownD); word-break: keep-all; }

/* 점수표 · 배수표 */
.hp-sec { margin-top: 24px; }
.hp-goal { display: flex; align-items: center; gap: 10px; margin: 4px 4px 4px; }
.hp-goal-n { flex: none; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--ink);
  background: var(--yellow); box-shadow: 0 0 0 2px var(--ink), inset 0 -4px 0 rgba(0, 0, 0, .2), inset 0 3px 0 rgba(255, 255, 255, .4); }
.hp-goal-t { flex: 1; min-width: 0; }
.hp-goal-t b { display: block; font-family: var(--font-title); font-size: 15px; color: var(--yellowL); }
.hp-goal-t span { font-size: 11px; line-height: 1.45; color: var(--grayL); word-break: keep-all; }
.hp-strip { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 6px; }
.hp-strip.tight { gap: 0; }
.hp-strip.tight .px-card + .px-card { margin-left: -7px; }
/* table rows: one height whether or not the row has a points chip; name, text and chip share one centre line */
.hp-tr, .hp-combo, .hp-mult { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 0; border-top: 1px dashed rgba(115, 62, 57, .35); }
.hp-tr-n { flex: none; width: 74px; font-size: 12px; font-weight: 700; line-height: 16px; }
.hp-tr-d { flex: 1; min-width: 0; font-size: 11px; line-height: 16px; color: var(--brownD); word-break: keep-all; }
.hp-pts { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 6px; font-size: 12px; line-height: 1; white-space: nowrap; color: var(--white); background: var(--hwaBlue); box-shadow: 0 0 0 2px var(--ink); }
.hp-pts.gold, .hp-tr.gold .hp-pts { background: var(--gold); color: var(--ink); }
.hp-pts.jade { background: var(--jade); color: var(--ink); }
.hp-pts.red { background: var(--hwaRed); }
.hp-house { padding: 0 3px; font-family: var(--font-small); font-size: 9px; font-weight: 400; white-space: nowrap; vertical-align: 1px; color: var(--white); background: var(--plum); }
.hp-combo .hp-strip { flex: none; flex-wrap: nowrap; margin: 0; }
.hp-combo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hp-combo-t b { font-size: 12px; }
.hp-combo-t span { font-family: var(--font-small); font-size: 10px; color: var(--brownD); word-break: keep-all; }
.hp-note { margin-top: 6px; font-family: var(--font-small); font-size: 10px; line-height: 1.45; color: var(--brown); word-break: keep-all; }
.hp-ex-lines { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 2px; }
.hp-ex-l { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; }
.hp-ex-l > i { font-style: normal; font-weight: 700; color: var(--hwaRed); margin-right: 3px; }
.hp-ex-l.tot b { padding: 0 6px; font-size: 15px; color: var(--white); background: var(--hwaRed); box-shadow: 0 0 0 2px var(--ink); }
.hp-formula { margin: 4px 4px 4px; text-align: center; }
.hp-formula-h { margin-bottom: 6px; font-size: 11px; color: var(--grayL); }
.hp-formula-l { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 4px; }
.hp-fx { padding: 1px 5px; font-size: 12px; white-space: nowrap; color: var(--ink); background: var(--cream); box-shadow: 0 0 0 2px var(--ink); }
.hp-fx.op { padding: 0; font-weight: 700; color: var(--yellowL); background: none; box-shadow: none; }
.hp-fx.a { background: var(--yellow); } .hp-fx.b { background: var(--dokFire); } .hp-fx.c { background: var(--pink); } .hp-fx.d { background: var(--grayL); }
.hp-formula-s { margin-top: 7px; font-family: var(--font-small); font-size: 10px; color: var(--dokFire); }
.hp-gotab { display: flex; flex-direction: column; gap: 3px; }
.hp-gorow { display: grid; grid-template-columns: 1fr 58px 58px; align-items: center; padding: 3px 6px; font-size: 12px; background: var(--white); box-shadow: 0 0 0 1px rgba(24, 20, 37, .3); }
.hp-gorow span { text-align: center; }
.hp-gorow.head { padding-top: 0; padding-bottom: 0; font-family: var(--font-small); font-size: 10px; color: var(--brown); background: none; box-shadow: none; }
.hp-gorow.hot { background: #ffe6cc; }
.hp-gorow.hot span:last-child { font-weight: 700; color: var(--hwaRed); }
.hp-mult-n { flex: none; width: 48px; font-size: 12px; font-weight: 700; line-height: 16px; }
.hp-mult-d { flex: 1; min-width: 0; font-size: 11px; line-height: 16px; color: var(--brownD); word-break: keep-all; }
.hp-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.hp-step { display: flex; align-items: center; gap: 3px; min-width: 0; }
.hp-step-k { flex: 1; min-width: 0; font-size: 11px; font-weight: 700; white-space: nowrap; }
.hub .px-btn.hp-step-b { min-width: 26px; min-height: 26px; height: 26px; margin: 0; padding: 0; font-size: 14px; }
.hp-step-v { min-width: 38px; font-size: 12px; text-align: center; white-space: nowrap; }
.hp-calc-togs { display: flex; gap: 4px; margin: 8px 0 8px; }
.hp-tog { flex: 1 1 0; min-width: 0; min-height: 30px; margin: 2px; padding: 0; font: inherit; font-size: 11px; white-space: nowrap; color: var(--grayD); background: var(--white);
  border: 0; border-radius: 0; cursor: pointer; -webkit-appearance: none; appearance: none; box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.hp-tog.on { font-weight: 700; color: var(--white); background: var(--hwaRed); box-shadow: var(--px-border), inset 0 -3px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .3); }
.hp-calc-out { display: flex; flex-direction: column; align-items: center; padding: 8px 6px 10px; color: var(--white); background: var(--night); box-shadow: var(--px-border); }
.hp-calc-f { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
.hp-cf { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.hp-cf b { font-size: 13px; font-weight: 400; color: var(--white); white-space: nowrap; }
.hp-cf i { font-style: normal; font-family: var(--font-small); font-size: 9px; color: var(--dokFire); white-space: nowrap; }
.hp-cf.eq b { color: var(--yellowL); }
.hp-dg-cards.fan .px-card { position: relative; }
.hp-calc-big { font-family: var(--font-title); font-size: 30px; line-height: 1.25; color: var(--yellowL);
  text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink), 0 3px 0 var(--hwaRedD); }
.hp-calc-wow { font-size: 11px; color: var(--dokFire); }
.hp-calc-wow.empty { visibility: hidden; }

/* ======================================================================= fairness (공정성 센터) */
.fr-intro { margin: 4px 4px 8px; padding: 10px 12px 10px; }
.fr-intro-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; }
.fr-intro-head .fr-seal { flex: none; }
.fr-intro-title { font-family: var(--font-title); font-size: 16px; line-height: 1.3; color: var(--yellowL); word-break: keep-all; }
.fr-motto { font-size: 11px; line-height: 1.4; color: var(--dokFire); word-break: keep-all; }
.fr-p { margin: 7px 0 0; font-size: 12px; line-height: 1.6; color: var(--cream); word-break: keep-all; }
.hub .px-btn.fr-morebtn { margin-top: 8px; }
.fr-seal { filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .4)); }
.fr-seal-fb { display: inline-block; padding: 1px 5px; font-size: 11px; color: var(--yellowL); background: var(--hwaRed); box-shadow: 0 0 0 2px var(--ink); }
.fr-tech-row { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-top: 1px dashed rgba(115, 62, 57, .35); }
.fr-tech-row:nth-child(2) { border-top: 0; padding-top: 2px; }
.fr-tech-k { flex: none; width: 62px; padding: 1px 3px; font-family: var(--font-small); font-size: 10px; line-height: 14px; text-align: center; color: var(--white);
  background: var(--hwaBlue); box-shadow: 0 0 0 1px var(--ink); }
.fr-tech-v { flex: 1; min-width: 0; font-size: 11px; line-height: 1.5; word-break: keep-all; }
.fr-small { margin: 4px 0; font-family: var(--font-small); font-size: 10px; line-height: 1.5; color: var(--brownD); word-break: keep-all; }
.fr-demo-btns { display: flex; gap: 6px; margin: 6px 0; }
.fr-demo-btns .px-btn { flex: 1 1 0; min-width: 0; }
.fr-demo-out { display: flex; flex-direction: column; gap: 5px; }
.fr-demo-seal { display: flex; align-items: center; gap: 8px; }
.fr-demo-seal .fr-hash { flex: 1; }
.fr-hash { min-width: 0; padding: 3px 6px 4px; background: var(--white); box-shadow: 0 0 0 2px var(--ink); }
.fr-hash.ok { background: #e4f6d8; box-shadow: 0 0 0 2px var(--greenD); }
.fr-hash.bad { background: #ffe0e0; box-shadow: 0 0 0 2px var(--hwaRed); }
.fr-hash-k { font-family: var(--font-small); font-size: 10px; color: var(--brown); }
.fr-hash-v { font-size: 11px; line-height: 1.35; word-break: break-all; -webkit-user-select: text; user-select: text; }
.fr-verdict { padding: 5px 8px; font-size: 12px; font-weight: 700; text-align: center; color: var(--white); box-shadow: var(--px-border); }
.fr-verdict.ok { background: var(--greenD); }
.fr-verdict.bad { background: var(--hwaRed); }
.fr-deck { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px 2px; margin: 4px 0; }
.fr-cell { display: flex; flex-direction: column; align-items: center; padding: 2px 0 1px; background: var(--slate); box-shadow: 0 0 0 1px var(--ink); }
.fr-cell.r-first, .fr-lg.r-first i { background: var(--yellow); }
.fr-cell.r-second, .fr-lg.r-second i { background: var(--dokFire); }
.fr-cell.r-floor, .fr-lg.r-floor i { background: var(--green); }
.fr-cell.r-pile, .fr-lg.r-pile i { background: var(--grayL); }
.fr-hidden .fr-cell { padding-bottom: 2px; background: var(--slate); }
.fr-pos { font-size: 9px; line-height: 10px; color: var(--ink); }
.fr-legend { display: flex; flex-wrap: wrap; gap: 3px 10px; margin: 2px 0; font-family: var(--font-small); font-size: 10px; }
.fr-lg { display: inline-flex; align-items: center; gap: 3px; }
.fr-lg i { width: 10px; height: 10px; box-shadow: 0 0 0 1px var(--ink); }
.fr-empty { display: flex; align-items: center; gap: 10px; font-size: 11px; line-height: 1.5; color: var(--brownD); word-break: keep-all; }
.hub .px-btn.fr-all { margin: 4px 0 6px; }
.fr-round { margin-top: 8px; background: var(--white); box-shadow: 0 0 0 2px var(--ink); }
.fr-round-top { display: flex; align-items: center; gap: 6px; padding: 5px 6px; }
.fr-round-meta { flex: 1; min-width: 0; }
.fr-round-where { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-round-sub { font-family: var(--font-small); font-size: 10px; line-height: 1.35; color: var(--brown); word-break: keep-all; }   /* wraps at a space instead of cutting '… (스톱)' with an ellipsis on 360px screens */
.fr-status { flex: none; width: 18px; font-size: 14px; font-weight: 700; text-align: center; }
.fr-status.ok { color: var(--greenD); }
.fr-status.bad { color: var(--hwaRed); }
.fr-vbtn { flex: none; }
.fr-detail { display: flex; flex-direction: column; gap: 6px; padding: 6px; background: #fbf4e4; border-top: 2px solid var(--ink); }
.fr-checks { display: flex; flex-direction: column; gap: 3px; }
.fr-check { display: flex; align-items: flex-start; gap: 6px; padding: 3px 5px; background: var(--white); box-shadow: 0 0 0 1px rgba(24, 20, 37, .3); }
.fr-check > i { flex: none; width: 16px; height: 16px; margin-top: 1px; line-height: 16px; text-align: center; font-style: normal; font-weight: 700; color: var(--white); background: var(--grayD); }
.fr-check.ok > i { background: var(--greenD); }
.fr-check.bad > i { background: var(--hwaRed); }
.fr-check b { display: block; font-size: 11px; }
.fr-check span { font-family: var(--font-small); font-size: 10px; line-height: 1.45; color: var(--brownD); word-break: keep-all; }
.fr-input { display: flex; flex-direction: column; gap: 3px; padding: 5px 6px; color: var(--white); background: var(--night); box-shadow: 0 0 0 2px var(--ink); }
.fr-input .fr-hash-k { color: var(--dokFire); }
.fr-input .fr-small { color: var(--grayL); }
.fr-input-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.fr-mono { max-height: 120px; overflow-y: auto; padding: 3px 5px; font-family: var(--font-num); font-size: 10px; line-height: 1.4; word-break: break-all;
  color: var(--yellowL); background: rgba(0, 0, 0, .35); -webkit-user-select: text; user-select: text; }
.fr-cmd { color: var(--green); }
.hub .px-btn.fr-copy { min-height: 26px; padding: 2px 6px 4px; margin: 0; font-size: 10px; }
.fr-maph { font-weight: 700; }
.fr-replay { display: flex; align-items: center; gap: 6px; padding: 4px 6px; font-size: 11px; background: #e4f6d8; box-shadow: 0 0 0 1px var(--greenD); }
.fr-prog { margin: 8px 0 3px; height: 10px; }
.fr-prog > .fill { background: var(--jade); }
.fr-prog-txt { font-size: 10px; line-height: 1.4; text-align: center; color: var(--brownD); word-break: keep-all; }
.fr-res { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 2px 6px; }
.fr-res-cell { display: flex; flex-direction: column; align-items: center; padding: 3px 2px 4px; background: var(--white); box-shadow: 0 0 0 2px var(--ink); }
.fr-res-k { font-family: var(--font-small); font-size: 10px; color: var(--brown); white-space: nowrap; }
.fr-res-v { font-size: 13px; white-space: nowrap; }
.fr-stamp { width: fit-content; margin: 4px auto 6px; padding: 1px 14px 2px; font-family: var(--font-title); font-size: 18px; color: var(--grayD);
  border: 3px solid currentColor; box-shadow: 0 0 0 2px var(--hanji), 0 0 0 4px currentColor; }
.fr-stamp.done.ok { color: var(--greenD); background: #e4f6d8; }
.fr-stamp.done.bad { color: var(--hwaRed); background: #ffe0e0; }
.fr-chart-title { margin: 10px 0 4px; font-size: 11px; font-weight: 700; text-align: center; }
.fr-heat-wrap { display: grid; grid-template-columns: 14px auto; justify-content: center; align-items: center; gap: 3px 4px; }
.fr-axis-y { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-small); font-size: 9px; text-align: center; color: var(--brown); }
.fr-heat, .fr-bars { box-shadow: 0 0 0 2px var(--ink); }
.fr-axis-x { grid-column: 2; font-family: var(--font-small); font-size: 9px; text-align: center; color: var(--brown); }
.fr-heat-legend { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 4px; font-family: var(--font-small); font-size: 9px; color: var(--brown); }
.fr-heat-legend .grad { width: 90px; height: 8px; box-shadow: 0 0 0 1px var(--ink); background: linear-gradient(90deg, #2b4fa8, #fff4dc, #d2232a); }
.fr-bars-wrap { display: flex; justify-content: center; padding: 2px 0; }
.fr-bars-note { text-align: center; }
.fr-stat-note { margin-top: 8px; }
.fr-rerun { display: flex; justify-content: center; margin-top: 6px; }
