/* 每日掉寶、寶物排行與機率表：每日任務、排行榜及每日模式的實驗頁共用。 */
.tb-kind-tabs { display: flex; gap: 8px; margin-top: 20px; }
.dl-links > a[href$="#treasure-board"] { display: inline-flex; align-items: center; min-height: 44px; }
.tb-kind-tabs button, .tb-tab { min-height: 44px; padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: calc(14px * var(--fs, 1)); font-weight: 700; cursor: pointer; }
.tb-kind-tabs button[aria-selected="true"], .tb-tab.selected { background: var(--daily); border-color: var(--daily); color: var(--bg); }
.tb-kind-tabs button:focus-visible, .tb-tab:focus-visible { outline: 2px solid var(--daily); outline-offset: 3px; }
.tb-board { border-top: 3px solid var(--daily); }
.tb-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.tb-tabs .tb-tab { font-size: calc(13px * var(--fs, 1)); padding: 9px 14px; }
.tb-me { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 16px 18px; margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--daily) 50%, var(--border)); border-radius: 14px; background: linear-gradient(125deg, var(--daily-soft), var(--surface)); }
.tb-myname { color: var(--muted); font-size: calc(13px * var(--fs, 1)); overflow-wrap: anywhere; }
.tb-myrank { grid-column: 1; color: var(--text); font-size: calc(18px * var(--fs, 1)); }
.tb-myvalue { grid-column: 2; grid-row: 1 / span 2; font-size: calc(24px * var(--fs, 1)); color: var(--daily); font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tb-me small { grid-column: 1 / -1; color: var(--muted); }
.tb-row { grid-template-columns: 2.6em minmax(0, 1fr) auto; min-height: 44px; }
.tb-score { text-align: right; color: var(--daily); font-size: calc(15px * var(--fs, 1)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-values { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.tb-value { flex: 1 1 140px; display: flex; gap: 7px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); font-size: calc(13px * var(--fs, 1)); }
.tb-value strong { margin-left: auto; color: var(--rc); white-space: nowrap; }
@media (max-width: 600px) {
  .tb-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-tabs .tb-tab { min-width: 0; padding: 9px 5px; overflow-wrap: anywhere; }
  .tb-me { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .tb-myvalue { grid-column: 1; grid-row: auto; font-size: calc(22px * var(--fs, 1)); }
  .tb-row { padding: 9px 6px; gap: 6px; }
  .tb-score { font-size: calc(14px * var(--fs, 1)); }
}
.dl-prob-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: calc(13px * var(--fs, 1)); font-variant-numeric: tabular-nums; }
.dl-prob-table caption { text-align: left; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.dl-prob-table th, .dl-prob-table td { padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.dl-prob-table thead th { color: var(--muted); font-size: calc(12px * var(--fs, 1)); }
.dl-prob-table th:first-child { text-align: left; }
.dl-prob-table tbody th .dl-ico { vertical-align: middle; margin-right: 5px; }
.dl-prob-formula { font-family: ui-monospace, monospace; }
.dl-prob-qty { font-size: calc(12px * var(--fs, 1)); }
.dl-chip.dl-chip-odds { background: transparent; color: var(--muted); border-color: var(--border); white-space: normal; line-height: 1.6; }
.dl-ev-table { table-layout: fixed; }
.dl-ev-table th, .dl-ev-table td { white-space: normal; overflow-wrap: anywhere; }

/* 寶物保留金屬漸層圖示，周圍光暈與卡片沿用整站深淺色代號。 */
.dl-loot { position: fixed; inset: 0; z-index: 105; display: grid; place-items: center; padding: 16px; pointer-events: none; background: color-mix(in srgb, var(--bg) 38%, transparent); animation: ms-fade .25s ease-out; }
.dl-loot.out { opacity: 0; transition: opacity .25s; }
.dl-loot-box { position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box; width: min(500px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 26px 24px 20px; text-align: center; border: 1px solid color-mix(in srgb, var(--rc) 70%, var(--border)); border-radius: 26px; pointer-events: auto; background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--rc) 22%, var(--surface)), var(--surface) 72%); box-shadow: 0 24px 80px color-mix(in srgb, var(--text) 22%, transparent), inset 0 1px color-mix(in srgb, var(--rc) 40%, transparent); animation: ms-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.dl-loot-title { position: relative; margin: 10px 0 4px; font-size: calc(30px * var(--fs, 1)); line-height: 1.2; color: var(--text); overflow-wrap: anywhere; }
.dl-loot-progress { position: relative; margin: 8px 0; color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.dl-loot-art { width: 100px; height: 100px; margin: 14px auto 10px; }
.dl-loot-art.revealing > .dl-ico { animation: dl-bounce .5s cubic-bezier(.2, 1.5, .4, 1); }
.dl-loot-art[hidden] { display: none; }
.dl-loot .dl-drop-name { position: relative; font-size: calc(20px * var(--fs, 1)); line-height: 1.4; overflow-wrap: anywhere; }
.dl-loot-list { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 16px; }
.dl-loot-tile { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; flex: 0 1 76px; padding: 10px 5px 8px; border-radius: 15px; border: 1px solid color-mix(in srgb, var(--rc) 48%, var(--border)); background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 14%, var(--surface)), var(--surface)); visibility: hidden; }
.dl-loot-tile.revealed { visibility: visible; animation: dl-bounce .45s ease-out; }
.dl-loot-tile .dl-ico { width: 40px; height: 40px; }
.dl-loot-label { font-size: calc(11px * var(--fs, 1)); line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.dl-loot-qty { margin-top: auto; font-size: calc(17px * var(--fs, 1)); color: var(--rc); font-variant-numeric: tabular-nums; }
.dl-loot-collect { position: relative; min-height: 44px; padding: 10px 24px; border: 1px solid var(--rc); border-radius: 999px; background: var(--surface); color: var(--text); font-size: calc(14px * var(--fs, 1)); font-weight: 800; cursor: pointer; }
.dl-loot-collect:hover, .dl-loot-collect:focus-visible { outline: 2px solid var(--rc); outline-offset: 3px; }
.dl-loot-all { border: 2px solid var(--daily); padding-top: 38px; }
.dl-loot-all::before { content: ''; position: absolute; z-index: -1; inset: -140px; opacity: .24; background: repeating-conic-gradient(from 0deg, var(--daily) 0 3deg, transparent 3deg 25deg); mask: radial-gradient(ellipse, transparent 16%, #000 40%, transparent 68%); animation: dl-spin 24s linear infinite; }
.dl-loot-all::after { content: '✦'; position: absolute; right: 22px; top: 12px; color: var(--daily); font-size: 28px; text-shadow: -390px 48px var(--daily), -360px 215px var(--daily), -12px 225px var(--daily); }
.dl-loot-all .dl-loot-title { font-size: calc(42px * var(--fs, 1)); color: var(--daily); letter-spacing: .04em; text-shadow: 0 2px 20px color-mix(in srgb, var(--daily) 24%, transparent); }
.dl-loot-all .dl-loot-list { margin-top: 26px; }
.dl-loot-all .dl-drop-name { margin-top: 20px; font-size: calc(15px * var(--fs, 1)); font-weight: 600; color: var(--muted); }
.dl-loot-all .dl-loot-tile { animation: none; }
@media (max-width: 600px) {
  /* 每種寶物一張三欄小表，避免公式與權重擠成橫向捲動。 */
  .dl-prob-table, .dl-prob-table tbody { display: block; }
  .dl-prob-table caption { display: block; width: 100%; box-sizing: border-box; }
  .dl-prob-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dl-prob-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
  .dl-prob-table tbody th { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; color: var(--rc); }
  .dl-prob-table td { min-width: 0; padding: 8px 10px; text-align: left; }
  .dl-prob-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font: calc(11px * var(--fs, 1)) system-ui, sans-serif; }
  .dl-prob-table .dl-prob-formula, .dl-prob-table .dl-prob-qty { grid-column: 1 / -1; }
  .dl-prob-table .dl-prob-qty { border-bottom: 0; }
  .dl-loot-box { padding: 22px 16px 18px; }
  .dl-loot-title { font-size: calc(27px * var(--fs, 1)); }
  .dl-loot-list { gap: 6px; }
  .dl-loot-tile { flex-basis: calc((100% - 12px) / 3); }
  .dl-loot-all .dl-loot-title { font-size: calc(34px * var(--fs, 1)); }
  .dl-loot-all .dl-drop-kicker { letter-spacing: .02em; font-size: calc(11px * var(--fs, 1)); }
}
@media (prefers-reduced-motion: reduce) {
  .dl-loot, .dl-loot-box, .dl-loot-tile.revealed, .dl-loot-art.revealing > .dl-ico, .dl-loot-all::before { animation: none; }
  .dl-loot.out { transition: none; }
}
/* 十級掉落機率表（站長 11/16：★1–★10 都要列） */
.dl-lv-table caption { text-align: left; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.dl-lv-table thead th { text-align: center; }
.dl-lv-table thead th .dl-ico { display: block; margin: 0 auto 3px; }
.dl-lv-table tbody th { white-space: nowrap; }
.dl-lv-band { color: var(--muted); font-weight: 600; margin-right: 6px; font-size: calc(12px * var(--fs, 1)); }
.dl-lv-star { color: var(--daily); font-weight: 800; }
.dl-lv-table tr.lv-4 > *, .dl-lv-table tr.lv-7 > * { border-top: 2px solid var(--border); }
.dl-ev-table { table-layout: auto; }
@media (max-width: 600px) {
  .dl-lv-table, .dl-ev-table { font-size: calc(12.5px * var(--fs, 1)); }
  .dl-lv-table th, .dl-lv-table td, .dl-ev-table th, .dl-ev-table td { padding: 6px 4px; }
  .dl-lv-band { display: block; margin: 0; font-size: calc(11px * var(--fs, 1)); }
  .dl-lv-table thead th, .dl-ev-table thead th { white-space: normal; font-size: calc(11.5px * var(--fs, 1)); }
}
