.daily-boss-page header{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.daily-boss-page h1{margin:8px 0}.boss-wallet{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}.boss-wallet span{font-size:13px;color:var(--muted,#b5aaa0)}.boss-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:16px 0}.boss-card{position:relative;align-items:center;text-align:center;padding:22px}.boss-avatar{object-fit:cover;border-radius:50%;border:2px solid #ad843b;max-width:100%;width:88px;height:88px}.boss-help{position:absolute;right:10px;top:10px;background:transparent;border:0;padding:4px}.boss-card-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.boss-card-actions button{display:inline-flex;align-items:center;gap:6px}.boss-card .is-played{opacity:.45}.boss-tiers>div{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:12px 0;border-bottom:1px solid #645333}.boss-ranking{list-style:none;padding:0}.boss-ranking li{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px;border-bottom:1px solid #645333}.boss-ranking li>strong{flex:1;min-width:140px}.boss-admin-list fieldset,[data-boss-admin-form]>fieldset{min-width:0;margin:16px 0;padding:16px;border:1px solid #645333}.boss-admin-list label{display:grid;gap:6px;margin:10px 0}.boss-admin-list input,.boss-admin-list select{max-width:100%;min-width:0}.boss-pool-row{display:grid;grid-template-columns:minmax(100px,1fr) 70px auto;gap:8px;margin:8px 0}.boss-score{font-weight:700;color:#f4d47d;font-variant-numeric:tabular-nums}.daily-boss-page .viewport-page-scroll{padding-bottom:32px}@media(max-width:520px){.boss-grid{grid-template-columns:minmax(0,1fr)}.boss-tiers>div{flex-wrap:wrap}.boss-pool-row{grid-template-columns:minmax(80px,1fr) 50px auto}.daily-boss-page h1{font-size:23px}.boss-wallet span{flex-basis:100%}}
.battle-fixed-shell .battle-title small.boss-score{color:#f4d47d;font-size:18px;font-weight:700}.battle-fixed-shell[data-battle-layout="portrait"] .battle-title small.boss-score{font-size:24px}.battle-fixed-shell[data-battle-layout="landscape"] .battle-title small.boss-score{font-size:20px}
.battle-fixed-shell .boss-health .boss-score{position:absolute;z-index:4;inset:0 8% 0 15%;display:grid;place-items:center;color:#fff;font-size:8cqi;line-height:1;white-space:nowrap;text-shadow:0 2px 3px #000}.boss-weekly-prizes{display:grid;gap:8px;margin:16px 0}.boss-weekly-prizes>div{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.boss-today-score{font-weight:700;color:#f4d47d;font-variant-numeric:tabular-nums}
.wallet-resources{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:760px){.wallet-resources{grid-template-columns:.9fr .8fr 1fr 1.3fr .9fr .9fr}.topbar .wallet-resources .resource-chip strong{font-size:10px;white-space:nowrap}}@media(max-width:360px){.topbar .wallet-resources .resource-chip strong{font-size:9px}}

.boss-card > .nav-alert-coin { left: 7px; right: auto; }
.boss-card-actions button { width: 124px; max-width: 100%; min-height: 54px; justify-content: center; }
.battle-fixed-shell .boss-health .health-bar-fill { border-radius: 0; }

/* Keep stacked boss cards full width when the available area cannot fit two comfortably. */
.boss-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.boss-grid > .boss-card:last-child { grid-column: auto; }

/* Rewards first, with the rules available on demand in the same scrollable dialog. */
.boss-help-dialog.confirmation-card-scroll { display: flex; flex-direction: column; overflow: hidden; }
.boss-help-dialog .confirmation-copy-scroll { flex: 0 1 auto; min-height: 0; max-height: min(58dvh, 480px); white-space: normal; text-align: left; }
.boss-help-dialog .confirmation-actions { flex-shrink: 0; }
.boss-help-rewards h3 { margin: 0 0 10px; color: #f4d47d; font-size: 16px; text-align: center; }
.boss-help-dialog .boss-tiers { display: grid; gap: 8px; }
.boss-help-dialog .boss-tiers > div { padding: 10px 12px; border: 1px solid rgb(214 178 88 / 32%); border-radius: 10px; background: rgb(255 223 153 / 5%); }
.boss-help-dialog .boss-tiers > div > strong { color: #f4d47d; white-space: nowrap; }
.boss-help-rules { margin-top: 16px; border: 1px solid rgb(214 178 88 / 36%); border-radius: 10px; background: rgb(255 223 153 / 4%); }
.boss-help-rules summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; color: #f4d47d; font-weight: 700; cursor: pointer; list-style: none; }
.boss-help-rules summary::-webkit-details-marker { display: none; }
.boss-help-rules summary::after { content: "▾"; font-size: 18px; line-height: 1; }
.boss-help-rules[open] summary::after { content: "▴"; }
.boss-help-rules summary:focus-visible { outline: 2px solid #f4d47d; outline-offset: -3px; border-radius: 10px; }
.boss-help-rules ol { margin: 0; padding: 0 14px 14px 34px; }
.boss-help-rules li { padding-left: 2px; margin-top: 10px; }
.boss-help-rules li::marker { color: #f4d47d; font-weight: 700; }
.boss-help-rules li strong { color: #f8e9c8; }
.boss-help-rules li p { margin: 3px 0 0; line-height: 1.45; }

/* Keep the result alongside the fight action without adding another card row. */
.boss-card-actions { width: 100%; flex-wrap: nowrap; gap: 8px; }
.boss-card-actions button { flex: 0 1 124px; min-width: 0; padding-inline: 6px; white-space: nowrap; }
.boss-today-score { flex: 0 0 auto; margin: 0; white-space: nowrap; color: var(--muted, #b5aaa0); font-size: clamp(11px, 3vw, 14px); }
@media (max-width: 360px) {
  .boss-card-actions { gap: 4px; }
  .boss-card-actions button { gap: 3px; padding-inline: 4px; font-size: 12px; }
  .boss-card-actions button .ui-icon { width: 20px; height: 20px; flex-shrink: 0; }
}
