/* GLOBE TICKER CRYPTO だけの部品（土台は style.css＝GLOBE TICKER と同じ） */
:root { --btc: #f7931a; --eth: #627eea; }
.brand-txt .crypto { font-style: normal; font-size: .62em; letter-spacing: .14em; color: #fff; background: linear-gradient(90deg, #f7931a, #f0b90b); padding: 3px 8px 2px; border-radius: 6px; vertical-align: 4px; margin-left: 2px; }
.top-right .vs button { padding: 7px 12px; }
.top-right .vs { background: var(--panel); }
main { padding-top: 14px; }
.loading { padding: 30px; text-align: center; color: var(--muted); }
.coin-img { width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--line); }
.coin-img.lg { width: 44px; height: 44px; }
.seg.small button { padding: 4px 10px; font-size: 12px; }

/* 体温計 */
.gauges { display: grid; grid-template-columns: 1.1fr 1.1fr 1.3fr 1fr; gap: 10px; }
.gc { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 12px 16px; min-height: 132px; position: relative; overflow: hidden; }
.gc h3 { margin: 0; font-size: 12px; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; gap: 6px; }
.gc h3 i { font: 700 9px var(--head); letter-spacing: .16em; font-style: normal; color: var(--accent); }
.gc .big { font: 800 26px/1.15 var(--mono); margin-top: 6px; letter-spacing: -.01em; }
.gc .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.gc .sub b { font-family: var(--mono); }
.dom-wrap { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.donut { width: 84px; height: 84px; flex: none; }
.legend { display: grid; gap: 3px; font-size: 12px; flex: 1; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.legend b { font-family: var(--mono); margin-left: auto; padding-left: 8px; }
.fng { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.fng svg.meter { width: 120px; height: 70px; flex: none; }
.fng .lbl { font-weight: 900; font-size: 15px; }
.gc .hist { display: flex; align-items: flex-end; gap: 2px; height: 26px; margin-top: 6px; }
.gc .hist i { flex: 1; border-radius: 2px 2px 0 0; min-width: 2px; }
.gc .past { font-size: 11px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.gc .past b { font-family: var(--mono); }

/* 2列（国内比較・ライブ約定） */
.duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; margin-top: 10px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 12px 16px; min-width: 0; }
.p-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.p-head h2 { margin: 0; font-size: 15px; font-weight: 900; display: flex; align-items: center; gap: 7px; margin-right: auto; }
.p-note { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.dom-body { overflow-x: auto; }
table.dom { width: 100%; border-collapse: collapse; font-size: 13px; }
.dom th { font-size: 11px; color: var(--muted); font-weight: 700; text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.dom td { padding: 9px 8px; text-align: right; font-family: var(--mono); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dom th:first-child, .dom td:first-child { text-align: left; font-family: inherit; font-weight: 700; }
.dom td.best { font-weight: 800; }
.dom td.best.buy { color: var(--up); }
.dom td.best.sell { color: var(--down); }
.dom .tag { font: 700 9px 'Noto Sans JP'; color: #fff; padding: 1px 5px; border-radius: 99px; margin-right: 4px; vertical-align: 1px; }
.dom .tag.buy { background: var(--up); }
.dom .tag.sell { background: var(--down); }
.dom tr.maint td { color: var(--muted); font-size: 12px; }
.dom tr.maint td:last-child { text-align: left; font-family: inherit; }
.dom tr.world td { color: var(--muted); font-size: 12px; border-bottom: 0; }
.spread-bar { display: inline-block; width: 40px; height: 5px; border-radius: 3px; background: var(--line2); vertical-align: middle; margin-right: 6px; position: relative; overflow: hidden; }
.spread-bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }

/* ライブ約定 */
.big-sel { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.big-sel select, .bar-r input[type=search] { font: inherit; font-size: 12px; color: var(--text); background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 8px; padding: 4px 6px; }
.press-bar { height: 10px; border-radius: 99px; background: var(--down); overflow: hidden; }
.press-bar i { display: block; height: 100%; width: 50%; background: var(--up); transition: width .6s; }
.press-l { display: flex; justify-content: space-between; font-size: 12px; margin-top: 3px; }
.press-l b { font-family: var(--mono); }
.trades-h, .tr { display: grid; grid-template-columns: 62px 1fr 42px 1fr 1.2fr; gap: 6px; align-items: center; }
.trades-h { font-size: 10px; color: var(--muted); font-weight: 700; padding: 8px 6px 4px; border-bottom: 1px solid var(--line); }
.trades-h span:nth-child(n+4), .tr span:nth-child(n+4) { text-align: right; }
.trades { height: 196px; overflow: hidden; font-size: 12px; }
.tr { padding: 3px 6px; border-bottom: 1px solid var(--line); font-family: var(--mono); animation: trIn .35s ease-out; }
.tr .ex { font-family: 'Noto Sans JP', sans-serif; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .sd { font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 11px; }
.tr.b { --tone: var(--up); } .tr.s { --tone: var(--down); }
.tr.big { background: color-mix(in srgb, var(--tone) 14%, transparent); font-weight: 800; }
@keyframes trIn { from { background: color-mix(in srgb, var(--tone) 12%, transparent); } }
.bigs-h { font-size: 12px; font-weight: 900; margin-top: 10px; display: flex; gap: 6px; align-items: baseline; }
.bigs-h small { font-weight: 500; color: var(--muted); }
.bigs { max-height: 98px; overflow-y: auto; font-size: 12px; margin-top: 4px; }
.bigs p { margin: 4px 0; }
.bg-i { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.bg-i .tm { font-family: var(--mono); color: var(--muted); font-size: 11px; }
.bg-i b { font-family: var(--mono); }
.bg-i .ex { color: var(--muted); font-size: 11px; margin-left: auto; }

/* 大口のお知らせ */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; min-width: 250px; max-width: 320px; padding: 10px 14px; border-radius: 12px; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: toastIn .3s ease-out; font-size: 13px; }
.toast.b { background: linear-gradient(135deg, var(--up), color-mix(in srgb, var(--up) 70%, #000)); }
.toast.s { background: linear-gradient(135deg, var(--down), color-mix(in srgb, var(--down) 70%, #000)); }
.toast b { font: 800 18px var(--mono); display: block; }
.toast small { opacity: .85; }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } }

/* ランキング */
.rank { margin-top: 18px; }
.rank .bar { margin-top: 0; padding: 10px 0; flex-wrap: wrap; border-bottom: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.rank .bar h2 { margin: 0 6px 0 0; font-size: 17px; font-weight: 900; white-space: nowrap; }
.rank .bar h2 small { font: 700 11px var(--head); letter-spacing: .14em; color: var(--accent); }
.bar-r { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.bar-r input[type=search] { width: 150px; padding: 6px 10px; }
.chk { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.tbl .cn { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.tbl .cn b { font-weight: 700; }
.tbl .cn small { color: var(--muted); font: 600 11px var(--mono); }
.tbl .cn .jp { color: var(--muted); font-size: 11px; font-weight: 500; }
.tbl th.nm { text-align: left; }
.tbl td.rk, .tbl th.rk { text-align: center; color: var(--muted); }
.tbl td.st { text-align: center; padding: 0 4px; }
.tbl td.st .star { margin: 0; }
.tbl svg { width: 110px; height: 30px; }
.card .coin-img { width: 20px; height: 20px; }
.c-chgs { display: flex; flex-wrap: wrap; gap: 2px 10px; white-space: nowrap; font: 600 11px var(--mono); margin-top: 6px; position: relative; }
.c-chgs span { color: var(--muted); font-family: 'Noto Sans JP', sans-serif; font-weight: 500; margin-right: 2px; }

/* ヒートマップ（時価総額の大きさで枠を変える） */
.heat.cr { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); grid-auto-rows: 74px; grid-auto-flow: dense; }
.heat.cr .hm { aspect-ratio: auto; padding: 7px 9px; }
.heat.cr .hm.x4 { grid-column: span 4; grid-row: span 3; }
.heat.cr .hm.x3 { grid-column: span 2; grid-row: span 2; }
.heat.cr .hm.x2 { grid-column: span 2; }
.heat.cr .hm.x4 .pc { font-size: 34px; } .heat.cr .hm.x4 .nm { font-size: 20px; }
.heat.cr .hm.x3 .pc { font-size: 24px; } .heat.cr .hm.x3 .nm { font-size: 15px; }
.heat.cr .hm .pc { font-size: 15px; }
.hm .nm { display: flex; align-items: center; gap: 5px; }
.hm .nm img { width: 16px; height: 16px; border-radius: 50%; }
.hm.x4 .nm img { width: 30px; height: 30px; }

/* 詳細 */
.m-chgs { display: flex; gap: 14px; flex-wrap: wrap; font: 600 13px var(--mono); margin-bottom: 4px; }
.m-chgs span { font: 500 11px 'Noto Sans JP', sans-serif; color: var(--muted); margin-right: 3px; }
.about a { color: var(--accent); }
.foot-l a { color: var(--accent); text-decoration: none; }

@media (max-width: 1100px) {
  .gauges { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .gauges { grid-template-columns: 1fr; gap: 8px; }
  .gc { min-height: 0; }
  .top-right .vs button { padding: 5px 8px; }
  .clock { display: none; }
  .brand-txt .crypto { font-size: .58em; padding: 2px 5px 1px; }
  .rank .bar { padding: 8px 0; }
  .rank .bar h2 { width: 100%; }
  .rank .tabs { width: 100%; }
  .bar-r { margin-left: 0; width: 100%; }
  .bar-r input[type=search] { flex: 1; min-width: 0; }
  .trades-h, .tr { grid-template-columns: 54px 1fr 34px 1fr 1.3fr; gap: 4px; }
  .heat.cr { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); grid-auto-rows: 64px; }
  .heat.cr .hm.x4 { grid-column: span 3; grid-row: span 2; }
  .toasts { left: 16px; right: 16px; }
  .toast { max-width: none; }
}
