/* 플레이 화면 HUD(11/2 2단계, docs/dev/29-hud.md): 위 바·여론조사 띠·카드(.panel)·프로필·활동 카드·게이지를 로비와 같은 일러스트 판으로.
   css/hud-common.css 뒤에 불러 index.html 안쪽 규칙을 덮는다. 판 그림(assets/hud/): 카드 dock.webp(크림·금 징) · 프로필 panel-dark.webp · 활동 카드 choice.webp · 알약 pill-dark.webp */

/* ── 위 바: 아래에 금테 한 줄, 체력·자금은 어두운 알약 판, 오른쪽 둥근 버튼은 네모 판 ── */
.top { box-shadow: inset 0 -3px 0 #B07820, 0 2px 0 #1A1412; }
.hud span { border: solid transparent; border-width: 8px 14px; border-image: url(../assets/hud/pill-dark.webp) 22 48 fill / 8px 14px; border-radius: 0; background: none; padding: 1px 0; box-shadow: none; }
.hud small { color: #E8C873; }
.hud b { color: #FFF6DE; }
.hud .hb { height: 7px; border-radius: 2px; background: #0F0C0A; box-shadow: 0 0 0 1px #B07820; }
.hud .hb i { border-radius: 1px; background: linear-gradient(#9BE59F, #4FB35A); }
.hud .low .hb i { background: linear-gradient(#FF9A85, #D9533B); }
.top .snd { width: 38px; height: 38px; border: 0; border-radius: 0; background: url(../assets/hud/square.webp) center / contain no-repeat; color: #2A211E; }
.top .snd svg { width: 18px; height: 18px; }

/* ── 여론조사 띠: 크림 종이 + 금테 ── */
.ticker { background: linear-gradient(#FFF8E8, #F6E9C8); border-bottom: 0; box-shadow: inset 0 -2px 0 #D9A62E, 0 1px 0 #8A6A2C; color: #2A211E; }
.ticker .ruling { background: #2A211E; color: #FFE58A; box-shadow: inset 0 0 0 1.5px #D9A62E; }
.ticker .tk-r { color: #B3122A; }

/* ── 카드: 크림 판(금 징) ── */
.panel, .retire, .create { border: 16px solid transparent; border-image: url(../assets/hud/dock.webp) 40 fill / 16px; border-radius: 0; background: none; box-shadow: none; padding: 6px 6px 8px; }

/* ── 프로필: 어두운 판(금 징). 위에 붙던 당 색 테이프는 판의 금테가 대신한다 ── */
.profile { border: 18px solid transparent; border-image: url(../assets/hud/panel-dark.webp) 44 fill / 18px; border-radius: 0; background: none; box-shadow: none; padding: 6px 4px 4px; overflow: visible; }
.profile::before { display: none; }
.party-block { border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(242, 199, 68, .65), inset 0 3px 0 rgba(255, 255, 255, .18), 0 2px 0 #0F0C0A; }
.profile .avatar.px { box-shadow: 0 0 0 2px #D9A62E, 0 0 0 4px #1A1412; }
.ovr { border-color: rgba(217, 166, 46, .35); }

/* ── 게이지: 금테 홈 + 윗면 빛 ── */
.bar { height: 8px; border-radius: 2px; background: #EADBB8; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25), 0 0 0 1px #B07820; }
.bar i { border-radius: 1px; background: linear-gradient(color-mix(in srgb, var(--pc) 70%, #fff), var(--pc)); }
.profile .bar { background: #0F0C0A; box-shadow: 0 0 0 1px #8A6A2C; }

/* ── 꼬리표(연도·내 프로필 …): 창 꼬리표와 같은 금테 ── */
.sticker { border: 2px solid #2A211E; border-radius: 3px; box-shadow: inset 0 0 0 2px rgba(242, 199, 68, .85), inset 0 3px 0 rgba(255, 255, 255, .28), 0 2px 0 #2A211E; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }

/* ── 활동 카드: 선택지와 같은 크림 판, 고르면 당 색 테두리와 옅은 물 ── */
.act { border: 10px solid transparent; border-image: url(../assets/hud/choice.webp) 30 fill / 10px; border-radius: 0; background: none; box-shadow: none; padding: 6px 6px 4px; }
@media (hover: hover) { .act:hover:not(:disabled) { border-color: transparent; filter: brightness(1.03); } }
.act.sel { border-color: transparent; background: none; outline: 3px solid var(--pc); outline-offset: -3px; box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--pc) 9%, transparent); }
.act:disabled { opacity: .55; }
.a-icon { box-shadow: 0 0 0 2px #E8C873; }
body.noparty .act.sel { outline-color: #2A211E; }

/* ── 진행 줄(폰에서 카드 아래 붙박이): 크림 판 색으로 스며들게, 판 안쪽 여백에 맞춰 ── */
@media (max-width: 759px) { .act-panel .go-bar { margin: 14px -6px -8px; background: linear-gradient(to bottom, rgba(251, 239, 213, 0), #FBEFD5 14px); border-radius: 0; } }   /* 흐려지는 띠는 짧게: 짧은 화면에서 뒤 제목이 비치지 않게 */
/* ── 정당 지지도 막대: 게이지와 같은 금테 홈 ── */
.poll-row .pbar { border-radius: 2px; background: #EADBB8; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25), 0 0 0 1px #B07820; }
.poll-row .pbar i { border-radius: 1px; background-image: linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, 0)); }
/* ── 프로필 안 노선 상자: 금빛 테두리 ── */
.profile .line-chip { border-color: rgba(217, 166, 46, .45) !important; border-radius: 6px; }
/* ── 자기 투자 카드: 활동 카드와 같은 판 ── */
.inv { border: 8px solid transparent !important; border-image: url(../assets/hud/choice.webp) 30 fill / 8px !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.inv.sel { outline: 3px solid var(--pc); outline-offset: -3px; box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--pc) 9%, transparent) !important; }
/* ── 1년 뒤 예상: 판 위의 메모지 ── */
.go-est { background: #FFFBF0 !important; border: 1.5px dashed #D9A62E !important; border-radius: 4px !important; box-shadow: none !important; }
