/* 점심 경마: racecourse greens, a tote board in amber LEDs, stable wood and hay */
.hr-app {
  --hr-turf: #2f6b3a; --hr-board: #163d2b; --hr-led: #ffb21f; --hr-hay: #e8c46a; --hr-wood: #7b5236; --hr-silk: #b8332a;
  --hr-ink: #f6f1e4; --hr-dim: #c8bfa8; --hr-panel: #24342a; --hr-line: #3f5a49;
  color: var(--hr-ink); background: linear-gradient(#1f4a33, #19392a 240px); border-radius: 10px; padding: 12px; font-variant-numeric: tabular-nums;
}
.hr-app * { box-sizing: border-box; }
.hr-app [hidden] { display: none !important; }
.hr-app.standalone { max-width: 980px; margin: 0 auto; border-radius: 0; min-height: 100dvh; padding: 12px 16px 32px; }
.hr-dim { color: var(--hr-dim); font-size: 12.5px; }
.hr-title { margin: 0 8px 0 0; font-size: 18px; color: var(--hr-hay); }
.hr-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.hr-carrot b { font-size: 18px; color: #ffd08a; }
.hr-grow { flex: 1; }
.hr-next { font-size: 13px; padding: 4px 10px; border-radius: 6px; background: var(--hr-board); color: var(--hr-led); text-shadow: 0 0 6px rgba(255, 178, 31, .6); }

.hr-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hr-line); margin-bottom: 12px; overflow-x: auto; }
.hr-tabs button { padding: 8px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--hr-dim); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.hr-tabs button[aria-selected="true"] { color: var(--hr-ink); border-bottom-color: var(--hr-hay); font-weight: 600; }
.hr-tabs button:focus-visible, .hr-btn:focus-visible, .hr-chip:focus-visible, .hr-item:focus-visible { outline: 2px solid var(--hr-led); outline-offset: 1px; }

.hr-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; min-height: 32px; border: 1px solid var(--hr-line); border-radius: 6px; background: #2c4436; color: var(--hr-ink); font: inherit; font-size: 13px; cursor: pointer; }
.hr-btn:hover:not(:disabled) { border-color: var(--hr-hay); }
.hr-btn:disabled { opacity: .45; cursor: default; }
.hr-btn.hot { background: var(--hr-silk); border-color: #d2503f; }
.hr-btn.sm { padding: 3px 9px; min-height: 26px; font-size: 12.5px; }
.hr-btn.on { border-color: var(--hr-hay); color: var(--hr-hay); }
.hr-btn small { opacity: .8; font-size: 11.5px; }
.hr-link { background: none; border: 0; color: var(--hr-dim); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }

/* stable */
.hr-herd { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.hr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--hr-line); border-radius: 999px; background: var(--hr-panel); color: var(--hr-ink); font: inherit; font-size: 13px; cursor: pointer; }
.hr-chip.on { border-color: var(--hr-hay); background: #33452c; }
.hr-chip.add { padding: 5px 12px; color: var(--hr-hay); }
.hr-chip canvas { width: 36px; height: 27px; image-rendering: pixelated; }
.hr-barn { position: relative; border-radius: 8px; overflow: hidden; border: 2px solid #4a3222; }
.hr-barn canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; cursor: pointer; }
.hr-closed { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; background: rgba(20, 30, 22, .85); color: var(--hr-dim); }
.hr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 680px) { .hr-cols { grid-template-columns: 1fr; } }
.hr-card { padding: 12px; border: 1px solid var(--hr-line); border-radius: 8px; background: var(--hr-panel); }
.hr-name { display: flex; align-items: baseline; gap: 8px; }
.hr-name b { font-size: 17px; }
.hr-bars { display: grid; gap: 6px; margin: 10px 0; }
.hr-bar { display: grid; grid-template-columns: 72px 1fr 32px; align-items: center; gap: 8px; font-size: 12.5px; }
.hr-bar i { position: relative; height: 8px; border-radius: 4px; background: #183024; overflow: visible; }
.hr-bar i b { display: block; height: 100%; border-radius: 4px; background: #6fbf73; }
.hr-bar.low i b { background: #e5484d; }
.hr-bar.mood i b { background: #e27aa8; }
.hr-bar.mane i b { background: var(--hr-hay); }
.hr-bar.stat i b { background: var(--hr-led); }
.hr-bar i em { position: absolute; top: -3px; width: 2px; height: 14px; background: #f6f1e4; opacity: .7; }
.hr-bar small { text-align: right; color: var(--hr-dim); }
.hr-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.hr-groom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.hr-groom > span:last-child { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }

/* tote board */
.hr-tote { border-radius: 8px; background: var(--hr-board); border: 2px solid #0e2a1d; padding: 8px 10px; margin-bottom: 8px; }
.hr-totehead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 13.5px; }
.hr-led { color: var(--hr-led); font-weight: 700; text-shadow: 0 0 6px rgba(255, 178, 31, .65); letter-spacing: .04em; }
.hr-totehead .hr-led { font-size: 20px; }
.hr-board { overflow-x: auto; }
.hr-board table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hr-board th { font-size: 11.5px; font-weight: 400; color: #8fb59a; text-align: left; padding: 3px 6px; }
.hr-board td { padding: 5px 6px; border-top: 1px solid #224d37; white-space: nowrap; }
.hr-board tr[data-entry] { cursor: pointer; }
.hr-board tr.sel td { background: rgba(255, 178, 31, .14); }
.hr-board tr.mine td:nth-child(2) { color: #ffd08a; }
.hr-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; color: #fff; font-weight: 700; font-size: 12px; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }

/* the race */
.hr-track { position: relative; border-radius: 8px; overflow: hidden; border: 2px solid #0e2a1d; }
.hr-track canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.hr-call { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: 6px; background: rgba(14, 42, 29, .82); color: #fff; font-size: 13.5px; font-weight: 600; min-height: 26px; }
.hr-call:empty { display: none; }
.hr-overlay { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); pointer-events: none; text-align: center; }
.hr-overlay.count { font-size: 56px; font-weight: 800; color: #fff; text-shadow: 0 3px 0 var(--hr-silk), 0 0 20px rgba(0, 0, 0, .4); animation: hr-pop .5s ease-out; }
.hr-overlay.result { display: flex; flex-direction: column; gap: 4px; padding: 10px 18px; border-radius: 8px; background: rgba(22, 61, 43, .92); border: 1px solid var(--hr-led); font-size: 14px; text-align: left; }
.hr-overlay.result b { color: var(--hr-led); }
.hr-overlay.result small { color: var(--hr-dim); }
@keyframes hr-pop { from { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.hr-confetti { position: absolute; top: -8px; width: 6px; height: 9px; animation: hr-fall 2.2s ease-in forwards; }
@keyframes hr-fall { to { transform: translate(var(--dx), 260px) rotate(540deg); opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .hr-overlay.count, .hr-confetti { animation: none; } }

.hr-betbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; padding: 10px; border: 1px solid var(--hr-line); border-radius: 8px; background: var(--hr-panel); }
.hr-betpick { min-width: 140px; }
.hr-seg { display: inline-flex; border: 1px solid var(--hr-line); border-radius: 6px; overflow: hidden; }
.hr-seg button { padding: 5px 10px; border: 0; background: none; color: var(--hr-dim); font: inherit; font-size: 13px; cursor: pointer; }
.hr-seg button.on { background: #2c4436; color: var(--hr-led); font-weight: 600; }
.hr-amount { display: inline-flex; align-items: center; gap: 4px; }
.hr-amount input { width: 84px; height: 30px; padding: 0 8px; border: 1px solid var(--hr-line); border-radius: 6px; background: #183024; color: var(--hr-ink); font: inherit; }
.hr-mybets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; margin-bottom: 8px; }
.hr-bet { padding: 3px 8px; border-radius: 999px; background: #2c4436; }
.hr-bet.won { background: #6b5214; color: #ffe2a6; }
.hr-bet.lost { opacity: .6; }
.hr-raceactions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* shop */
.hr-shop { display: grid; gap: 12px; margin: 10px 0; }
.hr-shoprow b { display: block; margin-bottom: 6px; }
.hr-shoprow > div { display: flex; gap: 6px; flex-wrap: wrap; }
.hr-item { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; padding: 6px 8px; border: 1px solid var(--hr-line); border-radius: 8px; background: var(--hr-panel); color: var(--hr-ink); font: inherit; font-size: 12px; cursor: pointer; }
.hr-item.on { border-color: var(--hr-hay); }
.hr-item small { color: var(--hr-dim); }
.hr-sw { width: 26px; height: 16px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .3); }
.hr-hat canvas { width: 40px; height: 40px; image-rendering: pixelated; }
.hr-foal { padding: 12px; border: 1px dashed var(--hr-hay); border-radius: 8px; }
.hr-foal p { margin: 4px 0 8px; }

.hr-log { list-style: none; margin: 0; padding: 0; font-size: 13px; max-height: 320px; overflow: auto; }
.hr-log li { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--hr-line); }
.hr-log time { color: var(--hr-dim); flex: none; }

.hr-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50; padding: 9px 16px; border-radius: 8px; background: var(--hr-board); color: #ffe2a6; border: 1px solid var(--hr-led); font-size: 14px; transition: opacity .2s, transform .2s; }
.hr-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* life, farewell, hall of fame */
.hr-life { margin: 8px 0 2px; font-size: 12.5px; color: var(--hr-dim); }
.hr-lifebar { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #6fbf73 0 15%, #e8c46a 15% 65%, #c98a6a 65%); opacity: .35; margin-bottom: 4px; }
.hr-lifebar b { position: absolute; left: 0; top: -1px; height: 8px; border-radius: 4px; background: var(--hr-ink); opacity: .9; }
.hr-lifebar em { position: absolute; top: -2px; width: 1px; height: 10px; background: var(--hr-ink); }
.hr-base { display: block; margin: -4px 0 2px 80px; font-size: 11.5px; color: var(--hr-dim); }
.hr-retire { display: block; margin-top: 10px; }
.hr-farewell { width: min(380px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--hr-hay); border-radius: 12px; background: #1f3a2b; color: var(--hr-ink); text-align: center; }
.hr-farewell::backdrop { background: rgba(0, 0, 0, .55); }
.hr-farewell p { margin: 6px 0; }
.hr-farewell .hr-actions { justify-content: center; margin-top: 12px; }
.hr-fwart { margin: 0 auto 8px; width: 144px; }
.hr-fwart canvas { width: 144px; height: 108px; image-rendering: pixelated; }
.hr-fwart.died canvas { filter: saturate(.6) brightness(1.15); animation: hr-float 3s ease-in-out infinite; }
@keyframes hr-float { 50% { transform: translateY(-6px); } }
.hr-hall { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.hr-plaque { display: grid; grid-template-columns: 32px 72px 1fr; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--hr-line); border-radius: 8px; background: linear-gradient(90deg, #2f3a22, var(--hr-panel) 40%); }
.hr-plaque.mine { border-color: var(--hr-hay); }
.hr-rank { text-align: center; font-weight: 700; color: var(--hr-hay); }
.hr-hallart canvas { width: 72px; height: 54px; image-rendering: pixelated; }
.hr-hallwho { display: flex; flex-direction: column; min-width: 0; }
.hr-hallwho small { color: var(--hr-dim); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .hr-fwart.died canvas { animation: none; } }

/* leagues */
.hr-leagues { display: flex; gap: 4px; margin-bottom: 6px; overflow-x: auto; }
.hr-leagues:empty { display: none; }
.hr-leagues button { padding: 6px 12px; border: 1px solid var(--hr-line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #183024; color: var(--hr-dim); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.hr-leagues button[aria-selected="true"] { background: var(--hr-board); color: var(--hr-led); font-weight: 700; }
.hr-leagues small { font-weight: 400; opacity: .85; }
.hr-board-note { margin: 2px 0 8px; font-size: 12.5px; color: #cfe6d6; }

/* 갈기 도트 그리기 and 염색 */
.hr-paintdlg { width: min(860px, calc(100vw - 24px)); padding: 12px 14px 16px; border: 1px solid var(--hr-line); border-radius: 12px; background: #1d3a2a; color: var(--hr-ink); }
.hr-paintdlg::backdrop { background: rgba(0, 0, 0, .6); }
.hr-painthead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 16px; }
.hr-paintbody { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 14px; align-items: start; }
.hr-paintbody canvas[data-paintcv] { width: 100%; height: auto; image-rendering: pixelated; border-radius: 8px; cursor: crosshair; touch-action: none; }
.hr-painttools { display: grid; gap: 8px; align-content: start; }
.hr-pal { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.hr-pc { aspect-ratio: 1; min-width: 24px; border: 2px solid rgba(0, 0, 0, .35); border-radius: 6px; cursor: pointer; }
.hr-pc:first-child { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.hr-pc.on { outline: 3px solid var(--hr-led); outline-offset: 1px; }
.hr-pc:focus-visible { outline: 3px solid var(--hr-led); }
.hr-ptools { display: flex; gap: 4px; flex-wrap: wrap; }
.hr-pprev { display: flex; gap: 8px; }
.hr-pprev canvas { width: 96px; height: 72px; image-rendering: pixelated; background: #2f6b3a; border-radius: 6px; }
.hr-pick { position: relative; cursor: pointer; }
.hr-pick input[type="color"] { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
@media (max-width: 720px) { .hr-paintbody { grid-template-columns: 1fr; } }
.hr-breedbtn { margin-top: 8px; }
.hr-breeddlg { width: min(640px, calc(100vw - 24px)); max-height: 90vh; overflow-y: auto; padding: 12px 14px 16px; border: 1px solid var(--hr-line); border-radius: 12px; background: #1d3a2a; color: var(--hr-ink); }
.hr-breeddlg::backdrop { background: rgba(0, 0, 0, .6); }
.hr-breeddlg label { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.hr-breeddlg input { padding: 6px 8px; border: 1px solid var(--hr-line); border-radius: 6px; background: #12261b; color: var(--hr-ink); font: inherit; }
.hr-pair { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; margin: 4px 0 8px; }
.hr-bface { display: inline-grid; place-items: center; width: 72px; height: 54px; border-radius: 8px; background: #2f6b3a; }
.hr-bface canvas { width: 72px; height: 54px; image-rendering: pixelated; }
.hr-bface.q { font-size: 24px; color: var(--hr-dim); }
.hr-mates { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.hr-mates .hr-bface { width: 40px; height: 30px; }
.hr-mates .hr-bface canvas { width: 40px; height: 30px; }
.hr-warn { color: #ffb4a8; font-size: 12.5px; margin: 4px 0; }

/* training odds, injuries, brushing */
.hr-oddbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #12261b; margin: 6px 0 3px; }
.hr-oddbar i { display: block; height: 100%; }
.hr-oddbar .sup { background: linear-gradient(90deg, #e5484d, #f5c518, #3fae5a, #5ec8f2, #8e5bd6); }
.hr-oddbar .great { background: #f5c518; } .hr-oddbar .ok { background: #5aa36a; } .hr-oddbar .fail { background: #7a7f88; } .hr-oddbar .inj { background: #e5484d; }
.hr-odds small { font-size: 11.5px; color: var(--hr-dim); }
.hr-odds b { font-weight: 600; }
.hr-odds b.sup { color: #c8a8ff; } .hr-odds b.great { color: #f5c518; } .hr-odds b.fail { color: #aab0b8; } .hr-odds b.inj { color: #ff8a80; }
.hr-trains { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.hr-injury { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; margin: 6px 0; border: 1px solid #e5484d; border-radius: 8px; background: rgba(229, 72, 77, .14); font-size: 13px; }
.hr-bar.tired b { background: #8a8f99; }
canvas.brushing { cursor: none; touch-action: none; }
.hr-curcol { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hr-pc.big { width: 30px; height: 30px; min-width: 30px; aspect-ratio: auto; display: inline-block; }
.hr-curcol b { font-family: ui-monospace, monospace; font-size: 12.5px; min-width: 64px; }
.hr-curcol .hr-pick input[type="color"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.hr-pal { grid-template-columns: repeat(10, 1fr); }
.hr-recentwrap { display: grid; gap: 3px; }
.hr-draft { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.hr-dprev { display: flex; gap: 6px; }
.hr-dprev canvas { width: 96px; height: 72px; image-rendering: pixelated; background: #2f6b3a; border-radius: 8px; }
.hr-draft input { padding: 5px 8px; border: 1px solid var(--hr-line); border-radius: 6px; background: #12261b; color: var(--hr-ink); font: inherit; width: 120px; }

/* 성격, 프로필 */
.hr-traitline { margin: 2px 0 6px; font-size: 12.5px; }
.hr-trait { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #3a2f5a; color: #e3d7ff; font-size: 12px; cursor: help; }
.hr-profdlg { width: min(620px, calc(100vw - 24px)); max-height: 90vh; overflow-y: auto; padding: 12px 14px 16px; border: 1px solid var(--hr-line); border-radius: 12px; background: #1d3a2a; color: var(--hr-ink); }
.hr-profdlg::backdrop { background: rgba(0, 0, 0, .6); }
.hr-profdlg h4 { margin: 14px 0 6px; color: var(--hr-hay); font-size: 13.5px; }
.hr-phead { display: flex; gap: 12px; align-items: center; }
.hr-phead p { margin: 3px 0; font-size: 13px; }
.hr-pname { font-size: 18px; }
.hr-pface { display: inline-grid; place-items: center; width: 64px; height: 48px; border-radius: 8px; background: #2f6b3a; color: var(--hr-dim); }
.hr-pface canvas { width: 64px; height: 48px; image-rendering: pixelated; }
.hr-pface.big, .hr-pface.big canvas { width: 128px; height: 96px; }
.hr-tree { display: grid; gap: 6px; justify-items: center; }
.hr-trow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hr-pnode { display: grid; justify-items: center; gap: 1px; padding: 4px 6px; border: 1px solid var(--hr-line); border-radius: 8px; background: var(--hr-panel); font-size: 12px; min-width: 84px; }
.hr-pnode small { color: var(--hr-dim); font-size: 11px; }
.hr-pnode.sm .hr-pface, .hr-pnode.sm .hr-pface canvas { width: 48px; height: 36px; }
.hr-pnode.me { border-color: var(--hr-hay); }
.hr-pnode.empty { opacity: .5; }
.hr-trend { width: 100%; height: auto; border-radius: 8px; }
.hr-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; margin-top: 4px; }
.hr-legend i { display: inline-block; width: 10px; height: 3px; margin-right: 4px; vertical-align: middle; }
.hr-hist { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hr-hist th, .hr-hist td { padding: 4px 6px; border-bottom: 1px solid var(--hr-line); text-align: left; }
.hr-hist tr.win td { color: var(--hr-led); font-weight: 600; }
.hr-studs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin: 6px 0 10px; }
.hr-stud { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--hr-line); border-radius: 8px; background: var(--hr-panel); color: var(--hr-ink); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.hr-stud span { display: grid; gap: 1px; flex: 1; min-width: 0; }
.hr-stud small { color: var(--hr-dim); font-size: 11px; }
.hr-stud em { font-style: normal; color: var(--hr-led); white-space: nowrap; }
.hr-stud { position: relative; }
.hr-stud.g4 { background: linear-gradient(135deg, rgba(242, 181, 28, .12), var(--hr-panel)); }
.hr-stud.g4 small:first-of-type { color: #f2c94c; }
/* the chosen one: thick, glowing and labelled, so a 전설's gold never reads as "selected" */
.hr-stud.on { border: 2px solid #7fe08a; padding: 4px 7px; background: linear-gradient(135deg, rgba(127, 224, 138, .18), var(--hr-panel)); box-shadow: 0 0 0 2px rgba(127, 224, 138, .25), 0 0 14px rgba(127, 224, 138, .35); }
.hr-stud.on::after { content: '✓ 선택'; position: absolute; top: -9px; right: 8px; padding: 0 6px; border-radius: 999px; background: #7fe08a; color: #12261b; font-size: 11px; font-weight: 700; line-height: 17px; }
.hr-chip.on { border: 2px solid #7fe08a; box-shadow: 0 0 10px rgba(127, 224, 138, .35); }
.hr-breedwhy { margin: 6px 0 0; padding: 6px 10px 6px 26px; border-radius: 8px; background: rgba(229, 72, 77, .12); color: #ffb4a8; font-size: 12.5px; }
.hr-breedwhy li + li { margin-top: 2px; }
.hr-ready { margin: 6px 0 0; color: #7fe08a; font-size: 12.5px; }
.hr-stud .hr-bface { width: 48px; height: 36px; }
.hr-stud .hr-bface canvas { width: 48px; height: 36px; }
/* 친구 교배: a friend's code to load, and my own horse's code to hand out */
.hr-friendrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 8px; }
.hr-friendrow input[data-friendcode] { width: 110px; text-transform: uppercase; letter-spacing: 2px; }
.hr-friendrow input[data-offerfee] { width: 90px; }
.hr-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 4px; }
.hr-code { padding: 2px 10px; border-radius: 6px; background: #12261b; border: 1px solid var(--hr-line); font-family: ui-monospace, monospace; font-size: 16px; font-weight: 700; letter-spacing: 3px; color: var(--hr-hay); }
.hr-sep { border: 0; border-top: 1px dashed var(--hr-line); margin: 12px 0 8px; }
.hr-stud:disabled { opacity: .6; cursor: not-allowed; }
/* 운영자 선물 */
.hr-giftart { font-size: 56px; line-height: 1; animation: hr-gift .7s cubic-bezier(.3, 1.8, .5, 1); }
.hr-gift strong { font-size: 22px; color: var(--hr-hay); }
@keyframes hr-gift { from { transform: scale(.3) rotate(-20deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hr-giftart { animation: none; } }
/* 정신력 and 영양제 */
.hr-bar.mind b { background: #8f7be8; }
.hr-bar.burn b { background: repeating-linear-gradient(45deg, #e5484d 0 6px, #b3261e 6px 12px); }
.hr-btn.tonic { border-color: #8f7be8; }
.hr-trains.rushing .hr-btn:not(:disabled) { border-color: #f5c518; box-shadow: 0 0 0 1px #f5c518, 0 0 12px rgba(245, 197, 24, .45); animation: hr-rush .8s ease-in-out infinite alternate; }
@keyframes hr-rush { to { box-shadow: 0 0 0 1px #f5c518, 0 0 4px rgba(245, 197, 24, .2); } }
@media (prefers-reduced-motion: reduce) { .hr-trains.rushing .hr-btn { animation: none; } }
/* 점검: covers the game (not the site's menus, so people can go elsewhere); the message stays in view while scrolling */
.nw-maint { position: absolute; inset: 0; z-index: 900; padding: 16px; border-radius: inherit; background: rgba(10, 8, 6, .85); backdrop-filter: blur(3px); }
.nw-maint > div { position: sticky; top: 30vh; margin: 12vh auto 0; }
.nw-maint[hidden] { display: none !important; }
.nw-maint > div { max-width: 420px; display: grid; gap: 8px; padding: 22px 24px; border-radius: 14px; background: #241b15; border: 1px solid #6b4a2a; color: #f3e9d2; text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.nw-maint b { font-size: 22px; color: #ffd166; }
.nw-maint p { margin: 0; font-size: 15px; line-height: 1.5; }
.nw-maint small { color: #b9a888; font-size: 12.5px; }
