:root {
  --bg: #030409;
  --panel: #090d1b;
  --panel-soft: #10182b;
  --ink: #f5f7ff;
  --muted: #a7b5d2;
  --line: rgba(76, 134, 255, 0.28);
  --blue: #2d7dff;
  --pink: #ff2f88;
  --red: #ff3366;
  --green: #2bdcff;
  --gold: #ff4b9a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 82% 12%, rgba(255, 47, 136, .18), transparent 34rem), radial-gradient(circle at 9% 38%, rgba(34, 143, 255, .16), transparent 32rem), #02040b; font-family: "Barlow Condensed", Arial, sans-serif; font-size: 18px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header { position: relative; z-index: 10; display: grid; width: min(calc(100% - 32px), 1480px); min-height: 92px; margin: 0 auto; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; text-transform: uppercase; }
.brand span { font-family: Oswald, sans-serif; font-size: 1.55rem; font-weight: 600; letter-spacing: -.03em; }
.brand b { color: var(--pink); font-weight: inherit; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .74rem; letter-spacing: .12em; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { padding: 12px 17px; border-radius: 7px; color: #d6def0; font-family: Oswald, sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.site-header nav a:hover, .site-header nav a:focus-visible, .site-header nav a.active { color: #fff; background: rgba(47, 99, 230, .18); }
.site-header nav a.active { box-shadow: inset 0 -2px 0 var(--pink); }
.session-state { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: #ff7db4; font-size: .88rem; font-weight: 700; letter-spacing: .04em; }

main { width: min(calc(100% - 32px), 1480px); margin: 0 auto; padding-bottom: 90px; }
.hero { position: relative; display: flex; min-height: clamp(490px, 37vw, 560px); margin-top: 16px; padding: clamp(38px, 5vw, 76px); align-items: center; overflow: hidden; border: 1px solid rgba(98, 127, 198, .24); border-radius: 14px; background-image: linear-gradient(90deg, rgba(1, 3, 10, .98) 0%, rgba(1, 4, 12, .9) 29%, rgba(2, 6, 17, .56) 52%, rgba(3, 4, 12, .08) 76%), linear-gradient(0deg, rgba(1, 2, 8, .68), transparent 52%), url("/boss-fight/assets/boss-fight-hero.webp"); background-position: center; background-size: cover; box-shadow: 0 28px 90px rgba(0, 0, 0, .42); isolation: isolate; }
.hero::after { position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: inset 0 -90px 100px rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(255, 47, 137, .08); content: ""; pointer-events: none; }
.hero-copy { width: min(59%, 760px); }
.eyebrow { margin: 0 0 10px; color: #dce6ff; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: Oswald, sans-serif; font-size: clamp(5.2rem, 9vw, 8.5rem); font-weight: 600; line-height: .82; letter-spacing: -.065em; text-transform: uppercase; }
.hero h1 span { color: rgba(10, 5, 17, .42); -webkit-text-stroke: 2px #ff3b8d; text-shadow: 0 0 12px rgba(255, 43, 127, .8), 0 0 36px rgba(227, 43, 127, .5); }
.hero-copy > p:not(.eyebrow) { max-width: 650px; margin: 27px 0 0; color: #c7d0e2; font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: .015em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.primary-button, .ghost-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; border-radius: 4px; color: #fff; background: linear-gradient(135deg, #f12a86, #be145f); box-shadow: 0 0 28px rgba(227, 43, 127, .22); font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.hero-actions .primary-button::after, .hero-actions .ghost-button::after { margin-left: 14px; font-family: Arial, sans-serif; font-size: 1.1rem; content: "→"; }
.ghost-button { border-color: rgba(204, 218, 255, .5); background: rgba(3, 7, 18, .76); box-shadow: none; }
.hero-actions .admin-only.primary-button { border-color: #3677ff; background: rgba(3, 14, 37, .78); box-shadow: none; }
.primary-button:hover, .ghost-button:hover { filter: brightness(1.14); transform: translateY(-1px); }
.hero-stats { display: flex; margin-top: 42px; align-items: center; }
.hero-stats > div { display: flex; min-width: 0; padding: 0 32px; align-items: center; gap: 14px; border-left: 1px solid rgba(190, 208, 245, .34); }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats b { display: grid; width: 52px; height: 52px; place-items: center; color: #ff2f88; font-family: Oswald, sans-serif; font-size: 1.65rem; text-shadow: 0 0 16px rgba(255, 47, 136, .55); }
.hero-stat-logo { display: block; width: 52px; height: 52px; flex: 0 0 52px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(45, 125, 255, .25)); }
.hero-stats span, .hero-stats strong, .hero-stats small { display: block; }
.hero-stats strong { color: #f1f5ff; font-family: Oswald, sans-serif; font-size: 1.32rem; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.hero-stats small { margin-top: 3px; color: #ff3e91; font-size: .82rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }

.battle-dashboard { padding: 64px clamp(18px, 4vw, 54px); margin: 26px 0 0; border: 1px solid rgba(74, 132, 255, .34); border-radius: 16px; background: radial-gradient(circle at 92% 5%, rgba(255, 47, 136, .13), transparent 28rem), radial-gradient(circle at 5% 95%, rgba(45, 125, 255, .13), transparent 26rem), linear-gradient(160deg, rgba(11, 17, 34, .98), rgba(3, 6, 15, .98)); box-shadow: 0 25px 80px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .03); }
.battle-heading, .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.battle-heading h2, .section-heading h2 { margin: 0; font-family: Oswald, sans-serif; font-size: clamp(2.5rem, 4vw, 4rem); line-height: .98; letter-spacing: -.025em; text-transform: uppercase; }
.save-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .83rem; }
.save-status::before { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); content: ""; }
.event-controls { display: flex; gap: 8px; }
.event-button { min-height: 40px; padding: 0 17px; border: 1px solid var(--pink); border-radius: 5px; color: #fff; background: rgba(255, 47, 136, .14); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.event-button:hover { background: rgba(255, 47, 136, .28); }
.finish-button { border-color: rgba(43, 220, 255, .55); background: rgba(43, 220, 255, .1); }
.sleeping-stage { margin-top: 32px; overflow: hidden; border: 1px solid rgba(255, 47, 136, .32); border-radius: 12px; background: #030610; box-shadow: 0 20px 55px rgba(0, 0, 0, .32); }
.sleeping-stage > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.sleeping-copy { display: flex; padding: 22px 30px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; border-top: 1px solid rgba(255, 47, 136, .28); background: linear-gradient(90deg, rgba(7, 13, 29, .98), rgba(27, 5, 22, .98)); text-align: center; }
.sleeping-copy > strong { color: #fff; font-family: Oswald, sans-serif; font-size: clamp(1.35rem, 2vw, 2rem); text-transform: uppercase; }
.sleeping-copy span { color: #b8c5df; font-size: 1.08rem; }
.sleeping-socials { display: grid; width: min(100%, 820px); margin-top: 10px; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); align-items: center; gap: 34px; }
.sleeping-socials a { display: grid; min-width: 0; grid-template-columns: 110px minmax(110px, auto) 30px; align-items: center; justify-content: center; gap: 18px; color: #ff82b7; text-align: left; text-decoration: none; }
.sleeping-socials a > span, .sleeping-socials b, .sleeping-socials small { display: block; }
.sleeping-socials b { color: #fff; font-family: Oswald, sans-serif; font-size: 1.4rem; white-space: nowrap; }
.sleeping-socials small { margin-top: 2px; color: #ff82b7; font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.streamer-logo { width: 110px; height: 86px; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .7)); }
.instagram-mark { width: 24px; height: 24px; filter: invert(42%) sepia(95%) saturate(2971%) hue-rotate(312deg) brightness(103%); transition: transform .2s ease; }
.streamer-divider { display: block; width: 1px; height: 74px; background: rgba(255, 255, 255, .55); }
.sleeping-socials a:hover b, .sleeping-socials a:focus-visible b { color: var(--pink); }
.sleeping-socials a:hover .instagram-mark, .sleeping-socials a:focus-visible .instagram-mark { transform: scale(1.13); }
body.event-idle .battle-dashboard { position: relative; padding: 0; border: 0; background: none; box-shadow: none; }
body.event-idle .battle-heading { position: absolute; z-index: 3; top: 20px; right: 20px; }
body.event-idle .battle-heading > div:first-child { display: none !important; }
body.event-idle .sleeping-stage { margin-top: 0; border-radius: 14px; }
.score-grid { display: grid; margin: 42px 0 32px; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 26px; }
.score-card { display: flex; min-width: 0; padding: 30px; flex-direction: column; justify-content: center; border: 1px solid rgba(73, 130, 255, .3); border-radius: 10px; background: linear-gradient(145deg, rgba(9, 16, 34, .88), rgba(3, 6, 16, .76)); text-align: center; }
.score-card span { display: block; color: #c0cae0; font-size: .92rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.score-card strong { display: block; margin: 5px 0 0; font-family: Oswald, sans-serif; font-size: clamp(3rem, 8vw, 5.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.score-card small { color: #9eabc5; font-size: 1.05rem; }
.boss-score { border-color: rgba(255, 47, 136, .38); }
.boss-score strong { color: var(--pink); text-shadow: 0 0 28px rgba(255, 47, 136, .38); }
.community-score { border-color: rgba(43, 220, 255, .34); }
.community-score strong { color: var(--green); text-shadow: 0 0 28px rgba(43, 220, 255, .32); }
.versus-mark { display: grid; width: 48px; height: 48px; place-items: center; align-self: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #7f8ba8; font-weight: 800; }
.health-label, .health-scale { display: flex; justify-content: space-between; }
.health-label { margin-bottom: 10px; font-size: 1rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.health-track { position: relative; height: 30px; overflow: visible; border: 1px solid rgba(255,255,255,.11); border-radius: 4px; background: #050711; }
.health-track > span { display: block; width: 100%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7924dd, var(--pink), #ff376b); box-shadow: 0 0 24px rgba(255, 47, 136, .36); transition: width .45s ease; }
.giveaway-thresholds { position: absolute; inset: 0; pointer-events: none; }
.threshold { position: absolute; z-index: 2; top: -6px; bottom: -6px; width: 2px; background: var(--green); box-shadow: 0 0 10px var(--green); }
.health-scale { margin-top: 9px; color: #95a3c0; font-size: .82rem; }
.giveaway-grid { display: grid; margin-top: 34px; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.giveaway-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5, 8, 18, .55); opacity: .62; }
.giveaway-card.unlocked { border-color: rgba(255, 47, 136, .58); background: linear-gradient(120deg, rgba(255, 47, 136, .16), rgba(9, 15, 33, .72)); opacity: 1; box-shadow: inset 0 0 24px rgba(255, 47, 136, .08), 0 0 20px rgba(255, 47, 136, .08); }
.giveaway-icon { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 50%; color: #111522; background: var(--gold); font-family: Oswald, sans-serif; font-size: 1.1rem; font-weight: 700; }
.giveaway-card strong, .giveaway-card small { display: block; }
.giveaway-card strong { font-size: 1.18rem; }
.giveaway-card small { margin-top: 3px; color: var(--muted); font-size: .92rem; }
.giveaway-card b { color: #7f8ba3; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; }
.giveaway-card.unlocked b { color: var(--gold); }
.twitch-panel { margin-top: 22px; padding: 18px; border: 1px solid rgba(145, 70, 255, .42); border-radius: 8px; background: linear-gradient(120deg, rgba(74, 25, 135, .2), rgba(5, 9, 21, .78)); }
.twitch-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.twitch-panel-heading .eyebrow { color: #cba7ff; }
.twitch-panel-heading h3 { margin: 0; font-family: Oswald, sans-serif; font-size: 1.65rem; text-transform: uppercase; }
.twitch-panel-heading > strong { color: #cba7ff; font-family: Oswald, sans-serif; font-size: 1.55rem; }
.twitch-redemption-form { display: grid; margin-top: 15px; grid-template-columns: minmax(150px, 1fr) minmax(140px, .7fr) 110px 110px auto; align-items: end; gap: 9px; }
.twitch-redemption-form label { display: grid; gap: 5px; color: #aebbd5; font-size: .78rem; font-weight: 700; }
.twitch-redemption-form input, .twitch-redemption-form select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid rgba(145, 70, 255, .4); border-radius: 5px; color: #fff; background: #0e1528; outline: none; }
.twitch-redemption-form input:focus, .twitch-redemption-form select:focus { border-color: #a970ff; }
.twitch-redemption-form .event-button { height: 42px; }
.twitch-redemption-list { display: grid; max-height: 280px; margin-top: 15px; grid-template-columns: repeat(var(--twitch-column-count, 2), minmax(0, 1fr)); overflow-y: auto; }
.twitch-redemption-column { min-width: 0; padding: 0 14px; }
.twitch-redemption-column:first-child { padding-left: 0; }
.twitch-redemption-column + .twitch-redemption-column { border-left: 1px solid rgba(145, 70, 255, .28); }
.twitch-redemption-column:last-child { padding-right: 0; }
.twitch-redemption-column > header { display: flex; min-height: 46px; padding-bottom: 9px; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(145, 70, 255, .34); }
.twitch-redemption-column > header > div { display: flex; min-width: 0; align-items: center; gap: 9px; }
.twitch-redemption-column > header strong, .twitch-redemption-column > header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.twitch-redemption-column > header strong { color: #fff; }
.twitch-redemption-column > header small { color: #8898b7; font-size: .72rem; text-transform: uppercase; }
.twitch-redemption-column > header > b { color: #cba7ff; font-size: .82rem; white-space: nowrap; }
.twitch-redemption-column ul { margin: 0; padding: 0; list-style: none; }
.twitch-redemption { display: grid; min-width: 0; min-height: 48px; padding: 8px 2px; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; border-bottom: 1px solid rgba(145, 70, 255, .16); }
.twitch-type { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: #8b3cff; font-family: Oswald, sans-serif; font-weight: 700; }
.twitch-type.subs { color: #07111c; background: var(--green); }
.twitch-redemption div { min-width: 0; }
.twitch-redemption strong, .twitch-redemption div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.twitch-redemption strong { color: #fff; }
.twitch-redemption div > span { color: #8898b7; font-size: .78rem; }
.twitch-redemption > b { color: var(--green); font-size: 1.05rem; white-space: nowrap; }
.twitch-redemption > button { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 1px solid rgba(255, 62, 86, .32); border-radius: 4px; color: #ff91a0; background: rgba(255, 62, 86, .08); cursor: pointer; }
.twitch-column-empty { padding: 13px 2px; color: #8291af; font-size: .82rem; }
.day-summary { display: grid; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); }
.day-card { display: grid; padding: 19px 22px; grid-template-columns: 1fr auto; gap: 5px 24px; background: #0b1121; }
.day-card span { color: var(--muted); }
.day-card span small { display: block; margin-top: 3px; color: #71809f; }
.day-card strong { color: var(--green); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.day-card small { color: #909ebb; font-size: .9rem; }

.tracker-section, .rules-section, .archive-section { padding: 46px; margin-top: 26px; border: 1px solid rgba(64, 123, 255, .3); border-radius: 14px; background: radial-gradient(circle at 100% 0, rgba(255, 47, 136, .08), transparent 24rem), linear-gradient(155deg, rgba(9, 15, 32, .96), rgba(3, 6, 15, .96)); }
.event-setup-summary { align-items: center; cursor: pointer; list-style: none; }
.event-setup-summary::-webkit-details-marker { display: none; }
.setup-toggle { display: flex; align-items: center; gap: 10px; color: #cbd7ed; font-size: .88rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.setup-toggle::after { content: "+"; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255, 47, 136, .5); border-radius: 50%; color: var(--pink); font-size: 1.35rem; line-height: 1; }
.setup-toggle-hide { display: none; }
.event-setup-details[open] .setup-toggle::after { content: "−"; }
.event-setup-details[open] .setup-toggle { color: #fff; }
.event-setup-details[open] .setup-toggle-show { display: none; }
.event-setup-details[open] .setup-toggle-hide { display: inline; }
.archive-list { display: grid; margin-top: 28px; gap: 12px; }
.archive-empty { margin: 0; padding: 22px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.archive-card { border: 1px solid var(--line); border-radius: 9px; background: rgba(4, 8, 19, .65); overflow: hidden; }
.archive-card summary { display: grid; padding: 18px 20px; grid-template-columns: 1fr auto; align-items: center; gap: 24px; cursor: pointer; }
.archive-card summary span, .archive-card summary strong, .archive-card summary small { display: block; }
.archive-card summary span:last-child { text-align: right; }
.archive-card summary strong, .archive-card summary b { color: #fff; font-size: 1.15rem; }
.archive-card summary b { color: var(--green); }
.archive-card summary small { margin-top: 3px; color: var(--muted); }
.archive-card summary .archive-boss-result { font-weight: 700; }
.archive-card summary .archive-boss-result.is-defeated { color: var(--green); }
.archive-card summary .archive-boss-result.is-surviving { color: #ff91a0; }
.archive-table { overflow-x: auto; border-top: 1px solid var(--line); }
.archive-table table { min-width: 1320px; }
.archive-twitch { padding: 14px 20px 18px; border-top: 1px solid var(--line); background: rgba(70, 28, 120, .1); }
.archive-twitch > b { display: block; color: #cba7ff; text-transform: uppercase; }
.archive-twitch .twitch-redemption-list { width: 100%; max-height: none; margin-top: 12px; overflow: visible; }
.archive-actions { display: flex; padding: 14px 20px; justify-content: flex-end; border-top: 1px solid var(--line); background: rgba(3, 6, 15, .72); }
.archive-delete-button { min-height: 40px; padding: 0 17px; }
.section-heading > p { max-width: 500px; margin: 0; color: var(--muted); font-size: 1.12rem; text-align: right; }
.table-scroll { margin-top: 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; min-width: 1280px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.match-table { min-width: 0; table-layout: fixed; }
.match-table th { overflow-wrap: anywhere; white-space: normal; }
.match-table th:nth-child(1) { width: 10%; }
.match-table th:nth-child(2) { width: 4%; }
.match-table th:nth-child(3) { width: 10%; }
.match-table th:nth-child(4) { width: 6%; }
.match-table th:nth-child(n+5):nth-child(-n+12) { width: 6.5%; }
.match-table th:nth-child(13) { width: 9%; }
.match-table th:nth-child(14) { width: 9%; }
th { padding: 15px 11px; border-bottom: 2px solid rgba(255, 47, 136, .48); color: #d9e4fa; background: #111a31; font-size: .86rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
th small { color: #8291af; font-size: .68rem; letter-spacing: .04em; }
td { padding: 11px 9px; border-top: 1px solid rgba(66, 122, 241, .17); background: rgba(4, 8, 19, .42); font-size: 1rem; }
tr:nth-child(even) td { background: rgba(22, 31, 53, .35); }
tr.day-break td { border-top: 2px solid rgba(43, 220, 255, .48); }
td:first-child { color: #8fa3d6; font-weight: 700; }
.match-day small { display: block; margin-top: 3px; color: #dce6ff; font-size: .8rem; }
td:last-child { color: var(--green); font-size: 1.04rem; font-weight: 800; text-align: right; }
.result-badge { display: inline-grid; min-width: 32px; min-height: 26px; place-items: center; border-radius: 999px; color: #76839e; background: rgba(118, 131, 158, .1); font-size: .78rem; font-weight: 800; }
.result-badge.is-win { color: #072719; background: var(--green); }
.empty-results td { padding: 38px 20px; color: var(--muted); text-align: center !important; }
table input[type="text"], table input[type="number"] { width: 100%; min-width: 64px; height: 42px; padding: 0 10px; border: 1px solid rgba(70, 129, 255, .32); border-radius: 5px; color: var(--ink); background: #050a18; font-size: 1rem; outline: none; }
table input[type="text"] { min-width: 130px; }
.match-table input[type="text"], .match-table input[type="number"] { min-width: 0; }
.stat-column, #match-rows td:nth-child(n+5):nth-child(-n+12) { min-width: 0; }
.leg-column, .leg-cell { text-align: center; }
.leg-cell input[type="number"] { min-width: 42px; padding: 0 5px; text-align: center; }
table input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 99, 230, .13); }
table input:disabled { color: #75819a; background: rgba(20, 27, 45, .55); cursor: not-allowed; }
.checkbox-cell { text-align: center; }
.checkbox-cell input { width: 20px; height: 20px; accent-color: var(--green); }
.row-action { text-align: center !important; }
.row-save-button { min-width: 92px; height: 36px; padding: 0 12px; border: 1px solid var(--pink); border-radius: 5px; color: #fff; background: linear-gradient(120deg, #c91668, var(--pink)); font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.row-save-button:hover:not(:disabled) { filter: brightness(1.15); }
.row-save-button:disabled { border-color: rgba(91, 110, 148, .24); color: #73809b; background: rgba(75, 91, 124, .1); cursor: default; }
.rules-grid { display: grid; margin-top: 28px; gap: 18px; }
.rules-group { display: grid; gap: 9px; }
.rules-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.rules-group-heading strong { color: #fff; font-size: 1.05rem; }
.rules-group-heading small { color: #7f8ca7; }
.rules-group-grid { display: grid; gap: 10px; }
.damage-rules-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.defense-rules-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.defense-rules-grid label:nth-child(1) { grid-column: 3; }
.defense-rules-grid label:nth-child(2) { grid-column: 4; }
.defense-rules-grid label:nth-child(3) { grid-column: 5; }
.defense-rules-grid label:nth-child(4) { grid-column: 6; }
.rules-grid label { display: flex; min-width: 0; padding: 16px; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: #070b17; }
.damage-rules label { border-top-color: rgba(43, 220, 255, .52); }
.defense-rules label { border-top-color: rgba(255, 47, 136, .52); }
.rules-grid label > span:first-child { min-height: 66px; color: #d5dff3; font-size: 1rem; font-weight: 700; }
.rules-grid input, .rules-grid select { width: 100%; height: 46px; padding: 0 11px; border: 1px solid rgba(111, 137, 200, .27); border-radius: 5px; color: #fff; background: #0e1528; font-size: 1.1rem; font-weight: 800; outline: none; }
.rules-grid input:focus, .rules-grid select:focus { border-color: var(--pink); }
.rules-grid select:disabled { color: #75819a; background: rgba(20, 27, 45, .55); }
.formula-choice select { padding-right: 20px; font-size: .9rem; }
.formula-choice { border-color: rgba(255, 47, 136, .42) !important; }
.formula-description { margin: 10px 0 0; color: var(--muted); }
.rules-grid small { margin-top: 8px; color: #7f8ca7; line-height: 1.2; }
.twitch-config-rules { display: grid; margin-top: 12px; padding: 16px; grid-template-columns: minmax(170px, .7fr) minmax(300px, 1.3fr); align-items: center; gap: 18px; border: 1px solid rgba(145, 70, 255, .38); border-radius: 8px; background: rgba(48, 18, 91, .16); }
.twitch-config-rules > div:first-child strong, .twitch-config-rules > div:first-child small { display: block; }
.twitch-config-rules > div:first-child strong { color: #cba7ff; font-size: 1.1rem; }
.twitch-config-rules > div:first-child small { margin-top: 4px; color: #8291af; }
.twitch-config-grid { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 10px; }
.twitch-config-grid label { display: grid; padding: 12px; grid-template-columns: minmax(120px, 1fr) 110px; align-items: center; gap: 5px 12px; border-left: 1px solid rgba(145, 70, 255, .32); }
.twitch-config-grid label > span { color: #d5dff3; font-weight: 700; }
.twitch-config-grid input { width: 100%; height: 42px; padding: 0 10px; border: 1px solid rgba(145, 70, 255, .36); border-radius: 5px; color: #fff; background: #0e1528; font-size: 1.05rem; font-weight: 800; outline: none; }
.twitch-config-grid input:focus { border-color: #a970ff; }
.twitch-config-grid small { grid-column: 1 / -1; color: #7f8ca7; }
.twitch-connections { display: grid; margin-top: 14px; gap: 8px; }
.twitch-connection { display: flex; min-height: 58px; padding: 10px 12px; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(169, 112, 255, .28); border-radius: 6px; background: rgba(13, 8, 29, .62); }
.twitch-connection.is-connected { border-color: rgba(43, 220, 255, .32); }
.twitch-connection strong, .twitch-connection small { display: block; }
.twitch-connection small { margin-top: 3px; color: #8e9bb6; }
.twitch-connection a, .twitch-connection button { min-height: 36px; padding: 8px 12px; border: 1px solid rgba(169, 112, 255, .48); border-radius: 5px; color: #e2d2ff; background: rgba(92, 45, 145, .2); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.twitch-connection.is-connected button { border-color: rgba(255, 62, 86, .34); color: #ff91a0; background: rgba(255, 62, 86, .08); }
.twitch-connection-note { margin: 0; padding: 10px 12px; color: #8e9bb6; background: rgba(7, 10, 22, .52); }
.fight-days { margin-top: 28px; padding: 18px; border: 1px solid rgba(54, 119, 255, .38); border-radius: 8px; background: rgba(5, 12, 29, .72); }
.fight-days-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.fight-days-heading strong, .fight-days-heading small { display: block; }
.fight-days-heading strong { color: #edf3ff; font-size: 1.12rem; }
.fight-days-heading small { margin-top: 3px; color: #7f8ca7; }
.fight-days-heading .ghost-button { min-height: 40px; padding: 0 16px; }
.fight-days-list { display: grid; margin-top: 14px; gap: 9px; }
.fight-day-row { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(150px, .7fr) minmax(170px, 1fr) minmax(90px, .35fr) 40px; align-items: end; gap: 10px; }
.fight-day-row label { display: grid; gap: 5px; color: #9dacc8; font-size: .8rem; font-weight: 700; }
.fight-day-row input, .fight-day-row select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid rgba(111, 137, 200, .27); border-radius: 5px; color: #fff; background: #0e1528; outline: none; }
.fight-day-row input:focus, .fight-day-row select:focus { border-color: var(--blue); }
.fight-day-row input:disabled, .fight-day-row select:disabled { color: #75819a; background: rgba(20, 27, 45, .55); }
.day-label-input { position: relative; display: block; }
.day-label-input input { padding-right: 38px; }
.day-label-input button { position: absolute; top: 1px; right: 1px; display: grid; width: 36px; height: 40px; padding: 0; place-items: center; border: 0; border-left: 1px solid rgba(111, 137, 200, .2); color: #91a0be; background: transparent; font-size: 1.2rem; cursor: pointer; }
.day-label-input button:hover:not(:disabled) { color: #fff; }
.day-label-input button:disabled { opacity: .35; cursor: default; }
.fight-day-remove-button { display: grid; width: 40px; height: 42px; padding: 0; place-items: center; border: 1px solid rgba(255, 62, 86, .34); border-radius: 5px; color: #ff91a0; background: rgba(255, 62, 86, .08); font-size: 1.3rem; cursor: pointer; }
.fight-day-remove-button:disabled { opacity: .3; cursor: default; }
.giveaway-rules { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(4, 8, 19, .56); }
.giveaway-rules-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.giveaway-rules-heading strong, .giveaway-rules-heading small { display: block; }
.giveaway-rules-heading strong { color: #edf3ff; font-size: 1.12rem; }
.giveaway-rules-heading small { margin-top: 3px; color: #7f8ca7; }
.giveaway-rules-heading .ghost-button { min-height: 40px; padding: 0 16px; }
.giveaway-rules-list { display: grid; margin-top: 14px; gap: 9px; }
.giveaway-rule-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(190px, .6fr) 40px; align-items: end; gap: 10px; }
.giveaway-rule-row label { display: grid; gap: 5px; color: #9dacc8; font-size: .8rem; font-weight: 700; }
.giveaway-rule-row input { width: 100%; height: 42px; padding: 0 11px; border: 1px solid rgba(111, 137, 200, .27); border-radius: 5px; color: #fff; background: #0e1528; outline: none; }
.giveaway-rule-row input:focus { border-color: var(--pink); }
.percentage-input { display: grid; grid-template-columns: 1fr 34px; align-items: center; }
.percentage-input input { border-radius: 5px 0 0 5px; }
.percentage-input b { display: grid; height: 42px; place-items: center; border: 1px solid rgba(111, 137, 200, .27); border-left: 0; border-radius: 0 5px 5px 0; color: var(--muted); background: #080e1d; }
.giveaway-remove-button { display: grid; width: 40px; height: 42px; padding: 0; place-items: center; border: 1px solid rgba(255, 62, 86, .34); border-radius: 5px; color: #ff91a0; background: rgba(255, 62, 86, .08); font-size: 1.3rem; cursor: pointer; }
.giveaway-rules-empty { margin: 0; padding: 12px; color: var(--muted); text-align: center; }
.rules-actions { display: flex; margin-top: 22px; align-items: center; justify-content: flex-end; gap: 20px; }
.rules-command { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; }
.danger-button { border-color: rgba(255, 62, 86, .34); color: #ff91a0; }
.boss-modal { width: min(calc(100% - 32px), 520px); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 1px solid rgba(255, 47, 136, .5); border-radius: 14px; color: var(--ink); background: transparent; box-shadow: 0 30px 100px rgba(0, 0, 0, .8), 0 0 40px rgba(255, 47, 136, .14); }
.boss-modal::backdrop { background: rgba(0, 2, 9, .82); backdrop-filter: blur(7px); }
.boss-modal-card { max-height: calc(100dvh - 34px); padding: 34px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #7ef7e7 rgba(4, 7, 17, .72); background: radial-gradient(circle at 100% 0, rgba(255, 47, 136, .16), transparent 20rem), linear-gradient(150deg, #0c1328, #040711); }
.boss-modal-card::-webkit-scrollbar { width: 9px; }
.boss-modal-card::-webkit-scrollbar-track { background: rgba(4, 7, 17, .72); }
.boss-modal-card::-webkit-scrollbar-thumb { border: 2px solid rgba(4, 7, 17, .72); border-radius: 8px; background: linear-gradient(#7ef7e7, #ff5da2); }
.boss-modal-card::-webkit-scrollbar-thumb:hover { background: #7ef7e7; }
.boss-modal-card h2 { margin: 0; font-family: Oswald, sans-serif; font-size: clamp(2rem, 6vw, 3rem); line-height: 1; text-transform: uppercase; }
.boss-modal-card > #boss-modal-message { margin: 18px 0 0; color: #bcc8df; font-size: 1.15rem; line-height: 1.45; }
.boss-modal-actions { display: flex; margin-top: 28px; justify-content: flex-end; gap: 10px; }
.boss-modal.is-error { border-color: rgba(255, 62, 86, .72); }
.boss-modal.is-error .eyebrow { color: #ff91a0; }
.boss-modal.is-wide { width: min(calc(100% - 32px), 780px); }
.boss-info-content { display: grid; gap: 24px; }
.boss-info-content p { margin: 0; }
.boss-info-content section { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(126, 247, 231, .16); }
.boss-info-content h3 { margin: 0; color: #7ef7e7; font: 700 1.3rem Oswald, sans-serif; text-transform: uppercase; }
.boss-info-content ul { display: grid; gap: 7px; margin: 0; padding-left: 22px; }
.boss-info-content li::marker { color: #ff2f88; }
.boss-info-content strong { color: #f4f8ff; }
.boss-info-content .boss-info-goal { padding: 20px; border: 1px solid rgba(255, 47, 136, .35); border-radius: 8px; background: rgba(255, 47, 136, .08); }
.boss-info-goal > strong { color: #ff8dbd; font: 700 1.25rem Oswald, sans-serif; text-transform: uppercase; }
.boss-impact { --boss-impact-duration: 4s; position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; pointer-events: none; isolation: isolate; }
.boss-impact.is-demo { pointer-events: auto; }
.boss-impact-backdrop { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 50% 58%, rgba(255, 29, 105, .28), transparent 38%), rgba(0, 2, 9, .82); animation: impact-backdrop var(--boss-impact-duration) ease both; }
.boss-impact-stage { display: grid; width: min(94vw, 1180px); height: min(88vh, 780px); margin: 0; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr); align-items: center; gap: clamp(10px, 3vw, 50px); }
.boss-impact-stage img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 38px rgba(0, 0, 0, .78)) drop-shadow(0 0 34px rgba(255, 19, 100, .42)); animation: boss-impact-hit var(--boss-impact-duration) cubic-bezier(.16, .8, .2, 1) both; }
.boss-impact-stage figcaption { padding: 28px 0; animation: impact-copy var(--boss-impact-duration) ease both; }
.boss-impact-stage h2 { margin: 0; font-family: Oswald, sans-serif; font-size: clamp(3.4rem, 7vw, 7rem); line-height: .9; text-transform: uppercase; }
.boss-impact-stage figcaption > p:not(.eyebrow) { max-width: 430px; margin: 22px 0 0; color: #d4dff3; font-size: clamp(1.05rem, 2vw, 1.5rem); line-height: 1.35; }
.boss-impact-stage figcaption > strong { display: block; margin-top: 20px; color: var(--green); font-family: Oswald, sans-serif; font-size: clamp(1.7rem, 3vw, 2.8rem); text-transform: uppercase; }
.boss-impact-demo-stop { margin-top: 24px; }
.boss-impact.is-defeated .boss-impact-stage figcaption > strong { color: var(--pink); }
.boss-impact.is-twitch .boss-impact-stage { position: relative; }
.boss-impact.is-twitch .boss-impact-stage::before { position: absolute; z-index: -1; left: 8%; width: min(54vw, 620px); aspect-ratio: 1; border: 3px solid #a970ff; border-radius: 50%; box-shadow: 0 0 35px #8b3cff, inset 0 0 55px rgba(139, 60, 255, .32); content: ""; animation: twitch-charge var(--boss-impact-duration) ease-out both; }
.boss-impact.is-twitch .boss-impact-backdrop { background: radial-gradient(circle at 38% 50%, rgba(139, 60, 255, .42), transparent 35%), rgba(0, 2, 9, .88); }
.boss-impact.is-twitch .boss-impact-stage h2 { color: #cba7ff; text-shadow: 0 0 24px rgba(139, 60, 255, .7); }
.boss-impact.is-twitch .boss-impact-stage img { filter: drop-shadow(0 24px 38px rgba(0, 0, 0, .78)) drop-shadow(0 0 44px rgba(139, 60, 255, .75)); }
.boss-impact.is-subs .boss-impact-stage::before { border-color: var(--green); box-shadow: 0 0 35px var(--green), inset 0 0 55px rgba(43, 220, 255, .28); }
.boss-impact.is-subs .boss-impact-backdrop { background: radial-gradient(circle at 38% 50%, rgba(43, 220, 255, .36), transparent 35%), rgba(0, 2, 9, .88); }
.boss-impact.is-subs .boss-impact-stage h2 { color: var(--green); text-shadow: 0 0 24px rgba(43, 220, 255, .65); }
.boss-impact.is-subs .boss-impact-stage img { filter: drop-shadow(0 24px 38px rgba(0, 0, 0, .78)) drop-shadow(0 0 44px rgba(43, 220, 255, .68)); }
@keyframes boss-impact-hit { 0% { opacity: 0; transform: translate3d(-8%, -2%, 0) scale(1.12); } 8% { opacity: 1; transform: translate3d(2%, 0, 0) scale(1); } 14% { transform: translate3d(-1%, 0, 0) scale(1.015); } 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate3d(0, 3%, 0) scale(.97); } }
@keyframes impact-copy { 0%, 8% { opacity: 0; transform: translateX(28px); } 18%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(12px); } }
@keyframes impact-backdrop { 0%, 100% { opacity: 0; } 10%, 82% { opacity: 1; } }
@keyframes twitch-charge { 0% { opacity: 0; transform: scale(.35); } 12% { opacity: 1; transform: scale(1.08); } 22%, 72% { opacity: .72; transform: scale(.96); } 82% { opacity: 1; transform: scale(1.03); } 100% { opacity: 0; transform: scale(1.2); } }
footer { display: flex; width: min(calc(100% - 32px), 1480px); min-height: 90px; margin: 0 auto; align-items: center; gap: 20px; border-top: 1px solid var(--line); color: #75819a; }
footer span { margin-right: auto; color: #aeb8cf; font-weight: 800; text-transform: uppercase; }
footer a { text-decoration: none; }

body.stream-view .site-header, body.stream-view .hero, body.stream-view .rules-section, body.stream-view .archive-section, body.stream-view footer { display: none; }
body.stream-view { overflow: hidden; font-size: 16px; }
body.stream-view main { display: grid; width: 100%; height: 100vh; padding: 12px; grid-template-rows: minmax(0, 55fr) minmax(0, 45fr); gap: 10px; }
body.stream-view.stream-hide-dashboard main, body.stream-view.stream-hide-matches main { grid-template-rows: minmax(0, 1fr); }
body.stream-view.stream-hide-dashboard .battle-dashboard, body.stream-view.stream-hide-matches .tracker-section { display: none !important; }
body.stream-view.stream-hide-heading .battle-heading { display: none; }
body.stream-view.stream-hide-heading .battle-dashboard { grid-template-rows: minmax(0, 1fr); }
body.stream-view.stream-hide-score .score-grid, body.stream-view.stream-hide-score .health-block { display: none; }
body.stream-view.stream-hide-giveaways .giveaway-grid, body.stream-view.stream-hide-twitch .twitch-panel, body.stream-view.stream-hide-days .day-summary { display: none !important; }
body.stream-view.stream-hide-scale .health-block { display: none; }
.stream-settings-toggle, .stream-settings { display: none; }
body.stream-view .stream-settings-toggle { position: fixed; z-index: 40; top: 18px; right: 18px; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid rgba(125, 151, 214, .44); border-radius: 50%; color: #dce6ff; background: rgba(5, 10, 24, .9); box-shadow: 0 8px 28px rgba(0, 0, 0, .42); font-size: 1.45rem; line-height: 1; cursor: pointer; backdrop-filter: blur(12px); }
body.stream-view.stream-hide-heading:not(.stream-hide-score) .stream-settings-toggle { top: 12px; right: 4px; width: 30px; height: 30px; font-size: 1rem; }
body.stream-view .stream-settings-toggle:hover, body.stream-view .stream-settings-toggle:focus-visible { border-color: var(--green); color: var(--green); }
body.stream-view .stream-settings { position: fixed; z-index: 41; top: 70px; right: 18px; display: grid; width: 250px; padding: 14px; gap: 8px; border: 1px solid rgba(76, 134, 255, .42); border-radius: 8px; background: rgba(6, 11, 27, .97); box-shadow: 0 18px 48px rgba(0, 0, 0, .62); backdrop-filter: blur(16px); }
body.stream-view .stream-settings > header { display: flex; margin-bottom: 3px; align-items: center; justify-content: space-between; }
body.stream-view .stream-settings > header strong { font-family: Oswald, sans-serif; font-size: 1.1rem; text-transform: uppercase; }
body.stream-view .stream-settings > header button { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; color: #9eabc5; background: transparent; font-size: 1.35rem; cursor: pointer; }
body.stream-view .stream-settings label { display: flex; min-height: 36px; padding: 6px 8px; align-items: center; gap: 10px; border-radius: 4px; color: #dce6ff; background: rgba(29, 43, 75, .42); font-size: 1rem; font-weight: 700; cursor: pointer; }
body.stream-view .stream-settings input { width: 18px; height: 18px; accent-color: var(--green); }
body.stream-view .stream-settings-copy, body.stream-view .stream-settings-reset { min-height: 36px; margin-top: 3px; border: 1px solid rgba(145, 70, 255, .42); border-radius: 4px; color: #d8c4ff; background: rgba(94, 44, 152, .18); font-weight: 700; cursor: pointer; }
body.stream-view .stream-settings-copy { border-color: rgba(43, 220, 255, .42); color: #9defff; background: rgba(43, 220, 255, .1); }

html.animation-overlay, body.animation-overlay { background: transparent !important; }
body.animation-overlay { overflow: hidden; }
body.animation-overlay > :not(.boss-impact):not(script) { display: none !important; }
body.animation-overlay .boss-impact-backdrop { display: none; }
body.animation-overlay .boss-impact-stage img { filter: drop-shadow(0 0 34px rgba(255, 19, 100, .42)); }
body.animation-overlay .boss-impact.is-twitch .boss-impact-stage img { filter: drop-shadow(0 0 44px rgba(139, 60, 255, .75)); }
body.animation-overlay .boss-impact.is-subs .boss-impact-stage img { filter: drop-shadow(0 0 44px rgba(43, 220, 255, .68)); }
body.stream-view .battle-dashboard { display: grid; min-height: 0; margin: 0; padding: 22px 30px; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
body.stream-view .active-fight-content { display: flex; min-height: 0; flex-direction: column; justify-content: center; gap: clamp(5px, 1vh, 10px); }
body.stream-view.event-idle main { display: block; }
body.stream-view.event-idle .battle-dashboard { height: 100%; }
body.stream-view.event-idle .sleeping-stage { display: grid; height: 100%; margin-top: 0; grid-template-rows: minmax(0, 1fr) auto; }
body.stream-view.event-idle .sleeping-stage > img { height: 100%; aspect-ratio: auto; }
body.stream-view .battle-heading { margin-bottom: 8px; }
body.stream-view .battle-heading h2, body.stream-view .section-heading h2 { font-size: clamp(2rem, 2.4vw, 3.2rem); }
body.stream-view .eyebrow { font-size: .82rem; }
body.stream-view .score-grid { min-height: 0; margin: 0; flex: 1 1 auto; gap: 18px; }
body.stream-view .score-card { display: flex; padding: 12px 20px; flex-direction: column; justify-content: center; }
body.stream-view .score-card span { font-size: 1rem; }
body.stream-view .score-card strong { font-size: clamp(4rem, 8vh, 7rem); }
body.stream-view .score-card small { font-size: 1rem; }
body.stream-view .health-label { font-size: 1rem; }
body.stream-view .health-scale { font-size: .86rem; }
body.stream-view .health-track { height: 23px; }
body.stream-view .giveaway-grid { margin-top: 0; }
body.stream-view .giveaway-card { padding: 9px 14px; }
body.stream-view .giveaway-icon { width: 34px; height: 34px; font-size: .9rem; }
body.stream-view .giveaway-card strong { font-size: 1.12rem; }
body.stream-view .giveaway-card small { font-size: .92rem; }
body.stream-view .giveaway-card b { font-size: .82rem; }
body.stream-view .twitch-panel { margin-top: 0; padding: 8px 12px; }
body.stream-view .twitch-panel-heading h3 { font-size: 1.4rem; }
body.stream-view .twitch-panel-heading > strong { font-size: 1.35rem; }
body.stream-view .twitch-panel-heading .eyebrow { display: none; }
body.stream-view .twitch-redemption-list { max-height: none; margin-top: 6px; gap: 10px; overflow: hidden; }
body.stream-view .twitch-redemption-column > header { min-height: 32px; padding-bottom: 4px; }
body.stream-view .twitch-redemption-column > header strong { font-size: 1.02rem; }
body.stream-view .twitch-redemption-column > header > b { font-size: .95rem; }
body.stream-view .twitch-redemption-column > header small, body.stream-view .twitch-column-empty { display: none; }
body.stream-view .twitch-redemption { min-height: 42px; padding: 3px 1px; }
body.stream-view .twitch-redemption strong { font-size: 1rem; }
body.stream-view .twitch-redemption div > span { font-size: .84rem; }
body.stream-view .twitch-redemption > b { font-size: 1rem; }
body.stream-view .twitch-redemption-column ul { max-height: 126px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: rgba(169, 112, 255, .58) transparent; scrollbar-width: thin; }
body.stream-view .twitch-type { width: 24px; height: 24px; }
body.stream-view .day-summary { margin-top: 0; }
body.stream-view .day-card { padding: 9px 14px; }
body.stream-view .day-card strong { font-size: 1.4rem; }
body.stream-view .day-card small { font-size: .92rem; }
body.stream-view .tracker-section { position: relative; z-index: 2; display: grid; min-height: 0; margin: 0; padding: 20px 30px; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
body.stream-view .table-scroll { min-height: 0; margin-top: 12px; overflow: hidden; }
body.stream-view table { height: 100%; }
body.stream-view th { padding: 8px 9px; font-size: 1.08rem; }
body.stream-view th small { font-size: .92rem; }
body.stream-view td { height: 42px; padding: 4px 8px; font-size: 1.35rem; line-height: 1.08; }
body.stream-view .match-day small { display: inline; margin: 0 0 0 6px; font-size: 1.05rem; }
body.stream-view .match-day small::before { content: "· "; }
body.stream-view .result-badge { min-height: 20px; }
body.stream-view .table-scroll:has(tbody tr:nth-child(7)) th { padding: 4px 8px; font-size: .9rem; }
body.stream-view .table-scroll:has(tbody tr:nth-child(7)) th small { font-size: .78rem; }
body.stream-view .table-scroll:has(tbody tr:nth-child(7)) td { height: auto; padding: 1px 7px; font-size: 1.05rem; line-height: 1.05; }
body.stream-view .table-scroll:has(tbody tr:nth-child(7)) .match-day small { display: inline; margin: 0 0 0 5px; font-size: .9rem; }
body.stream-view.stream-dashboard-spacious .score-card strong { font-size: clamp(5rem, 11vh, 8.5rem); }
body.stream-view.stream-dashboard-spacious .twitch-panel-heading h3, body.stream-view.stream-dashboard-spacious .day-card strong { font-size: 1.65rem; }
body.stream-view.stream-dashboard-max .score-card strong { font-size: clamp(5.2rem, 12.8vh, 10rem); }
body.stream-view.stream-dashboard-max .score-card span, body.stream-view.stream-dashboard-max .score-card small { font-size: 1.2rem; }
body.stream-view.stream-hide-matches .score-card strong { font-size: clamp(6rem, 15vh, 11rem); }
body.stream-view.stream-hide-matches .score-grid { align-items: stretch; }
body.stream-view.stream-hide-matches .score-grid .versus-mark { align-self: center; }
body.stream-view.stream-hide-matches .health-label { font-size: 1.12rem; }
body.stream-view.stream-hide-matches .health-track { height: clamp(28px, 4.5vh, 44px); }
body.stream-view.stream-hide-matches .health-scale { font-size: .95rem; }
body.stream-view.stream-hide-matches .twitch-redemption-column ul { height: 126px; max-height: 126px; }
body.stream-view.stream-hide-dashboard th { font-size: 1.2rem; }
body.stream-view.stream-hide-dashboard th small { font-size: 1rem; }
body.stream-view.stream-hide-dashboard td { height: 62px; font-size: 1.5rem; }
body.stream-view.stream-hide-dashboard .match-day small { font-size: 1.2rem; }
body.stream-view.stream-hide-dashboard .table-scroll:has(tbody tr:nth-child(7)) th { padding: 8px 9px; font-size: 1.2rem; }
body.stream-view.stream-hide-dashboard .table-scroll:has(tbody tr:nth-child(7)) th small { font-size: 1rem; }
body.stream-view.stream-hide-dashboard .table-scroll:has(tbody tr:nth-child(7)) td { height: 54px; padding: 5px 8px; font-size: 1.5rem; line-height: 1.08; }
body.stream-view.stream-hide-dashboard .table-scroll:has(tbody tr:nth-child(7)) .match-day small { margin-left: 7px; font-size: 1.2rem; }
body.stream-view.stream-dashboard-crowded .health-label { margin-bottom: 2px; }
body.stream-view.stream-dashboard-crowded .health-track { height: 12px; }
body.stream-view.stream-dashboard-crowded .health-scale { margin-top: 1px; }
body.stream-view.stream-dashboard-crowded .giveaway-card { padding: 2px 10px; gap: 9px; }
body.stream-view.stream-dashboard-crowded .giveaway-icon { width: 25px; height: 25px; }
body.stream-view.stream-dashboard-crowded .twitch-panel { padding: 4px 10px; }
body.stream-view.stream-dashboard-crowded .twitch-redemption-list { margin-top: 2px; }
body.stream-view.stream-dashboard-crowded .twitch-redemption-column > header { min-height: 27px; }
body.stream-view.stream-dashboard-crowded .twitch-redemption-column ul { max-height: 42px; }
body.stream-view.stream-dashboard-crowded .day-card { padding: 3px 10px; gap: 1px 16px; }

@media (min-width: 901px) and (max-height: 1200px) {
  body.stream-view { font-size: 14px; }
  body.stream-view main { grid-template-rows: minmax(0, 52fr) minmax(0, 48fr); }
  body.stream-view .battle-dashboard { padding: 7px 22px; }
  body.stream-view .battle-heading h2, body.stream-view .section-heading h2 { font-size: clamp(1.8rem, 3.2vh, 2.8rem); }
  body.stream-view .eyebrow { margin-bottom: 4px; }
  body.stream-view .score-grid { margin: 0; }
  body.stream-view .score-card { padding: 5px 14px; }
  body.stream-view .score-card strong { font-size: clamp(4.5rem, 9vh, 7rem); }
  body.stream-view .health-label { margin-bottom: 4px; }
  body.stream-view .health-track { height: 18px; }
  body.stream-view .health-scale { margin-top: 3px; }
  body.stream-view .giveaway-grid, body.stream-view .day-summary { margin-top: 0; }
  body.stream-view .giveaway-card, body.stream-view .day-card { padding: 5px 11px; }
  body.stream-view .giveaway-icon { width: 28px; height: 28px; }
  body.stream-view .tracker-section { padding: 12px 22px 8px; }
  body.stream-view .table-scroll { margin-top: 0; }
  body.stream-view th { padding: 6px 8px; }
  body.stream-view td { height: 38px; padding: 4px 7px; }
  body.stream-view .table-scroll:has(tbody tr:nth-child(7)) th { padding: 4px 8px; }
  body.stream-view .table-scroll:has(tbody tr:nth-child(7)) td { height: auto; padding: 2px 7px; }
}

@media (max-width: 900px) {
  body.stream-view { overflow: auto; }
  body.stream-view main { height: auto; min-height: 100vh; grid-template-rows: auto auto; }
  body.stream-view .tracker-section { overflow: visible; }
  body.stream-view .table-scroll { overflow-x: auto; }
  .site-header { padding: 14px 0; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
  .site-header nav { width: 100%; flex-wrap: wrap; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; }
  .session-state { grid-column: 2; grid-row: 1; }
  .site-header nav a { padding: 8px 9px; font-size: .72rem; }
  .hero { min-height: 520px; padding: 42px 34px; background-position: 62% center; }
  .hero-copy { width: min(72%, 680px); }
  .hero-stats > div { padding: 0 16px; }
  .rules-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .defense-rules-grid label { grid-column: auto; }
  .twitch-redemption-list { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .twitch-redemption-column { padding: 14px; }
  .twitch-redemption-column:nth-child(odd) { padding-left: 0; border-left: 0; }
  .twitch-redemption-column:nth-child(even) { padding-right: 0; }
  .twitch-redemption-column:nth-child(n+3) { border-top: 1px solid rgba(145, 70, 255, .28); }
  .twitch-config-rules { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  main, .site-header, footer { width: min(100% - 24px, 1280px); }
  .hero { min-height: 600px; padding: 38px 22px; align-items: flex-end; background-image: linear-gradient(90deg, rgba(1, 3, 10, .95), rgba(2, 5, 15, .55)), linear-gradient(0deg, rgba(1, 2, 8, .94) 0%, rgba(1, 2, 8, .4) 68%), url("/boss-fight/assets/boss-fight-hero.webp"); background-position: 69% center; text-align: left; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(4.4rem, 22vw, 6.6rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions a, .hero-actions button { width: 100%; }
  .hero-stats { display: grid; margin-top: 28px; grid-template-columns: repeat(3, 1fr); }
  .hero-stats > div { padding: 0 8px; gap: 4px; }
  .hero-stats b, .hero-stat-logo { display: none; }
  .hero-stats strong { font-size: .9rem; }
  .hero-stats small { font-size: .62rem; white-space: normal; }
  .battle-dashboard, .tracker-section, .rules-section, .archive-section { padding: 26px 16px; margin-top: 24px; }
  .battle-heading, .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading > p { text-align: left; }
  .sleeping-copy { padding: 18px; align-items: center; flex-direction: column; gap: 5px; }
  .sleeping-socials { grid-template-columns: 1fr; gap: 12px; }
  .sleeping-socials a { grid-template-columns: 78px minmax(110px, 1fr) 26px; }
  .streamer-logo { width: 78px; height: 66px; }
  .streamer-divider { width: min(100%, 260px); height: 1px; justify-self: center; }
  .score-grid { grid-template-columns: 1fr; grid-template-rows: minmax(min-content, 1fr) auto minmax(min-content, 1fr); gap: 10px; }
  .versus-mark { width: auto; height: auto; border: 0; }
  .score-card { padding: 20px; }
  .giveaway-grid, .day-summary, .rules-group-grid { grid-template-columns: 1fr; }
  .rules-group-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .twitch-panel-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .twitch-redemption-form { grid-template-columns: 1fr 1fr; }
  .twitch-redemption-form label:first-child { grid-column: 1 / -1; }
  .twitch-redemption-form .event-button { grid-column: 1 / -1; }
  .twitch-redemption-list { grid-template-columns: 1fr; }
  .twitch-redemption-column { padding: 14px 0; border-left: 0 !important; }
  .twitch-redemption-column + .twitch-redemption-column { border-top: 1px solid rgba(145, 70, 255, .28); }
  .twitch-config-grid { grid-template-columns: 1fr; }
  .twitch-config-grid label { grid-template-columns: 1fr 100px; }
  .twitch-connection { align-items: stretch; flex-direction: column; }
  .twitch-connection a, .twitch-connection button { width: 100%; text-align: center; }
  .fight-days-heading { align-items: stretch; flex-direction: column; }
  .fight-day-row { grid-template-columns: 1fr 40px; }
  .fight-day-row label { grid-column: 1 / -1; }
  .fight-day-remove-button { grid-column: 2; }
  .giveaway-rules-heading { align-items: stretch; flex-direction: column; }
  .giveaway-rule-row { grid-template-columns: 1fr 40px; }
  .giveaway-rule-row label { grid-column: 1 / -1; }
  .giveaway-remove-button { grid-column: 2; }
  .giveaway-card { grid-template-columns: auto 1fr; }
  .giveaway-card b { grid-column: 2; }
  .rules-actions { align-items: stretch; flex-direction: column; }
  .rules-command { align-items: stretch; }
  .event-controls { align-items: stretch; flex-direction: column; }
  .boss-modal-card { padding: 26px 20px; }
  .boss-modal-actions { align-items: stretch; flex-direction: column-reverse; }
  .boss-impact-stage { width: min(94vw, 620px); height: 92vh; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 0; text-align: center; }
  .boss-impact-stage img { min-height: 0; }
  .boss-impact-stage figcaption { padding: 0 14px 28px; }
  .boss-impact-stage figcaption > p:not(.eyebrow) { margin: 12px auto 0; }
  .boss-impact-stage figcaption > strong { margin-top: 10px; }
  .site-header { grid-template-columns: 1fr; }
  .site-header nav, .session-state { grid-column: 1; }
  .session-state { grid-row: 2; justify-content: flex-start; flex-wrap: wrap; }
  .site-header nav { grid-row: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .boss-impact-backdrop, .boss-impact-stage img, .boss-impact-stage figcaption { animation-duration: var(--boss-impact-duration) !important; animation-timing-function: linear !important; transform: none !important; }
}
