/* Price Battle pages: battle.php, battles.php, seller_battle.php, battle_guide.php */
.bt-page { padding: 1.5rem 0 3rem; display: flex; flex-direction: column; gap: 1.2rem; }
.bt-page h1 { margin: .2rem 0 0; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.bt-page h1 a { color: inherit; text-decoration: none; }
.bt-page h2 { margin: 0 0 .6rem; font-size: 1.12rem; }
.bt-kicker { margin: 0; font-size: .85rem; font-weight: 600; color: #475569; }
.bt-kicker a { color: #1D4ED8; }
.bt-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem; }
.bt-when { margin: 0; padding: .55rem .9rem; border-radius: 12px; background: #fff; border: 1px solid #E2E8F0; font-size: .88rem; max-width: 30rem; }
.bt-when.is-live::before { content: ''; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: #DC2626; margin-right: .45rem; vertical-align: middle; }
.bt-cols { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start; }
.bt-main { flex: 999 1 34rem; min-width: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.bt-side { flex: 1 1 20rem; min-width: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.bt-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 1.2rem; }
.bt-card p { margin: .3rem 0; }
.bt-muted { color: #475569; font-size: .88rem; }
.bt-label { margin: 0; font-size: .85rem; font-weight: 600; color: #475569; }
.bt-pricerow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .8rem; }
.bt-price { margin: 0; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.bt-price #btPrice { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.bt-change { font-weight: 700; font-size: .9rem; }
.bt-change.is-down { color: #1D4ED8; } .bt-change.is-up { color: #C2410C; }
.bt-lead { margin: 0; padding: .6rem .9rem; border-radius: 12px; font-weight: 700; font-size: .92rem; }
.bt-lead.is-down { background: #DBEAFE; color: #1E3A8A; } .bt-lead.is-up { background: #FFEDD5; color: #7C2D12; }
.bt-chart { margin-top: .8rem; }
.bt-chart svg { width: 100%; height: auto; display: block; }
.bt-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-size: .82rem; color: #475569; margin: .3rem 0 0; }
.bt-key { display: inline-block; width: 14px; vertical-align: middle; margin-right: .25rem; }
.bt-key-line { height: 3px; background: #1D4ED8; border-radius: 2px; }
.bt-key-target { border-top: 2px dashed #EA580C; }
.bt-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #E2E8F0; }
.bt-bar-thin { height: 10px; }
.bt-bar-down { background: #1D4ED8; transition: width .4s; } .bt-bar-up { background: #EA580C; transition: width .4s; }
.bt-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: .9rem; }
.bt-team { border-radius: 12px; padding: .9rem; }
.bt-team-down { background: #EFF6FF; border: 1px solid #DBEAFE; } .bt-team-up { background: #FFF7ED; border: 1px solid #FED7AA; }
.bt-team-name { font-weight: 700; font-size: .85rem; margin: 0; }
.bt-team-down .bt-team-name { color: #1E40AF; } .bt-team-up .bt-team-name { color: #9A3412; }
.bt-team-num { font-size: 1.6rem; font-weight: 800; margin: .2rem 0 0 !important; }
.bt-feed { list-style: none; margin: 0; padding: 0; }
.bt-feed li { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-top: 1px solid #F1F5F9; font-size: .92rem; }
.bt-feedtext { flex: 1; min-width: 0; }
.bt-badge { width: 1.75rem; height: 1.75rem; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; background: #F1F5F9; color: #334155; }
.bt-badge-join { background: #DBEAFE; color: #1E40AF; } .bt-badge-push { background: #FFEDD5; color: #9A3412; } .bt-badge-team { background: #FEF9C3; color: #854D0E; }
.bt-pot { background: #0B1F4D; color: #fff; border-radius: 16px; padding: 1.2rem; }
.bt-pot .bt-label { color: #C7D2FE; }
.bt-pot p { margin: .35rem 0; font-size: .88rem; color: #E0E7FF; }
.bt-potnum { font-size: 2.2rem !important; font-weight: 800; color: #F5C518 !important; margin: .1rem 0 !important; }
.bt-act-down { border: 2px solid #1D4ED8; } .bt-act-up { border: 2px solid #EA580C; }
.bt-qty { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .6rem 0; }
.bt-qty label { font-weight: 600; font-size: .9rem; }
.bt-qty input { width: 3.6rem; height: 44px; text-align: center; border: 1px solid #CBD5E1; border-radius: 10px; font-size: 1rem; font-weight: 700; }
.bt-step { width: 44px; height: 44px; border-radius: 10px; border: 1px solid #CBD5E1; background: #fff; font-size: 1.2rem; cursor: pointer; }
.bt-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border: 0; border-radius: 12px; font-size: 1rem; font-weight: 700; color: #fff; cursor: pointer; text-decoration: none; margin-top: .4rem; padding: 0 1rem; box-sizing: border-box; }
.bt-btn:disabled { background: #94A3B8 !important; cursor: not-allowed; }
.bt-btn-down { background: #1D4ED8; } .bt-btn-down:hover { background: #1E40AF; color: #fff; }
.bt-btn-up { background: #EA580C; } .bt-btn-up:hover { background: #C2410C; }
.bt-btn-dark { background: #0B1F4D; }
.bt-guess { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .5rem; }
.bt-gbtn { min-height: 44px; border-radius: 10px; background: #fff; font-weight: 700; cursor: pointer; font-size: .9rem; }
.bt-gbtn-down { border: 2px solid #1D4ED8; color: #1D4ED8; } .bt-gbtn-up { border: 2px solid #EA580C; color: #C2410C; }
.bt-gbtn-down[aria-pressed="true"] { background: #1D4ED8; color: #fff; } .bt-gbtn-up[aria-pressed="true"] { background: #EA580C; color: #fff; }
.bt-gbtn:disabled { cursor: default; opacity: .75; }
.bt-gbtn[aria-pressed="true"]:disabled { opacity: 1; }
.bt-gsplit { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; color: #475569; }
.bt-ink-down { color: #1E40AF; } .bt-ink-up { color: #9A3412; }
.bt-share { display: flex; gap: .5rem; margin-top: .5rem; }
.bt-share input { flex: 1; min-width: 0; height: 44px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 .7rem; font-size: .88rem; color: #334155; }
.bt-btn-small { height: 44px; padding: 0 1rem; border: 0; border-radius: 10px; background: #F5C518; color: #0B1F4D; font-weight: 700; cursor: pointer; }
.bt-mine { background: #F8FAFC; }
.bt-error { margin: 0; padding: .7rem .9rem; border-radius: 10px; background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; font-size: .9rem; }
.bt-rulegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .6rem 1.5rem; font-size: .9rem; color: #334155; }
/* list + setup */
.bt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.bt-item { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.bt-item a.bt-itemlink { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.bt-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #F1F5F9; display: block; }
.bt-itembody { padding: .9rem; display: flex; flex-direction: column; gap: .25rem; }
.bt-itemprice { font-size: 1.4rem; font-weight: 800; }
.bt-pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.bt-pill.is-down { background: #DBEAFE; color: #1E3A8A; } .bt-pill.is-up { background: #FFEDD5; color: #7C2D12; } .bt-pill.is-live { background: #FEE2E2; color: #991B1B; }
.bt-form { display: flex; flex-direction: column; gap: 1.2rem; }
.bt-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.bt-form legend { font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: .3rem; }
.bt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; }
.bt-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.bt-field label { font-weight: 600; font-size: .88rem; }
.bt-field input, .bt-field select { height: 46px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 .7rem; font-size: 1rem; background: #fff; min-width: 0; width: 100%; box-sizing: border-box; }
.bt-field .bt-target { border: 2px solid #EA580C; }
.bt-preview td, .bt-preview th { padding: .5rem .3rem; border-bottom: 1px solid #F1F5F9; text-align: right; font-size: .9rem; }
.bt-preview td:first-child, .bt-preview th:first-child { text-align: left; }
.bt-preview { width: 100%; border-collapse: collapse; }
.bt-flash { margin: 0; padding: .8rem 1rem; border-radius: 12px; font-size: .95rem; }
.bt-flash.is-ok { background: #DCFCE7; border: 1px solid #86EFAC; color: #14532D; }
.bt-flash.is-err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.bt-steps { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
@media (max-width: 30rem) { .bt-teams { grid-template-columns: 1fr; } .bt-price #btPrice { font-size: 2.1rem; } }
