@import url("../Fightr.Monetization.Web/web-promotion.css");
@import url("../Fightr.Design/tokens.css");
@import url("../Fightr.Design/controls.css");
@import url("timer-settings.css");
@import url("timer-display.css");
* { box-sizing: border-box; }
html { min-height: 100%; margin: 0; background: radial-gradient(circle at top, #303030 0, #101010 42%, #000 100%); color: #F4F3EA; font-family: var(--fightr-font); }
body { min-height: 100%; margin: 0; background: radial-gradient(circle at top, #303030 0, #101010 42%, #000 100%); color: #F4F3EA; font-family: var(--fightr-font); }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid #69b8ff; outline-offset: 3px; }
.content { min-height: 100vh; }
.timer-shell { width: min(100%, 620px); margin: 0 auto; padding: 24px 16px 38px; }
.app-bar { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin-bottom: 28px; }
.app-bar h1 { margin: 0; text-align: center; font-size: clamp(2rem, 9vw, 2.8rem); letter-spacing: -.04em; }
.icon-button { width: 44px; height: 44px; border: 0; background: transparent; color: #f7fbff; font-size: 2.35rem; line-height: 1; }
.icon-button:disabled { opacity: .92; cursor: default; }
.icon-button:last-child { justify-self: end; font-size: 1.8rem; color: #d9e5f5; }
.setup-screen { display: grid; gap: 18px; }
.quick-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, auto) 44px; gap: 10px; align-items: end; }
.quick-settings-button { margin-bottom: 2px; }
.per-fight-card { order: 1; }
.fights-card { order: 2; }
.training-summary { order: 3; }
.bottom-start-action { grid-column: 1 / -1; order: 4; min-height: 58px; }
.preset-picker { display: grid; gap: 5px; min-width: 0; color: #aac0d9; font-size: .74rem; font-weight: 700; }
.preset-picker select { width: 100%; min-height: 51px; border: 1px solid #365470; border-radius: 13px; background: #091a2c; color: #f4f9ff; padding: 0 33px 0 13px; font: inherit; font-size: .95rem; }
.training-summary { border: 1px solid #294664; border-radius: 19px; background: linear-gradient(135deg, rgba(17, 43, 69, .94), rgba(5, 21, 37, .97)); box-shadow: inset 0 1px rgba(255,255,255,.03), 0 16px 42px rgba(0,0,0,.24); }
.card-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.card-title h2 { margin: 0; font-size: clamp(1.3rem, 5vw, 1.65rem); letter-spacing: -.025em; }
.training-summary h2 { margin: 0; font-size: clamp(1.3rem, 5vw, 1.65rem); letter-spacing: -.025em; }
.section-icon { color: #2f8bff; font-weight: 800; display: grid; place-items: center; border: 2px solid #2f8bff; border-radius: 50%; }
.section-icon { width: 42px; height: 42px; font-size: 1.35rem; }
.fight-stepper { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; gap: 12px; min-height: 124px; text-align: center; border: 1px solid #2c4965; border-radius: 18px; background: rgba(2, 14, 28, .62); padding: 14px; }
.round-icon-button { width: 58px; height: 58px; border: 1px solid #243f5c; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #1d3b5d, #102137); color: #3b91ff; font-size: 2.2rem; }
.round-icon-button:first-child { color: #c8d4e3; }
.large-number { display: block; font-size: 3.25rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.fight-stepper p { margin: 7px 0 0; color: #9eb3cc; }
.training-summary p { margin: 7px 0 0; color: #9eb3cc; }
.training-summary small { margin: 7px 0 0; color: #9eb3cc; }
.fight-stepper p { font-size: 1rem; }
.time-row { border-radius: 12px; cursor: pointer; }
.time-row:focus-visible { outline: 2px solid var(--fight-red-light); outline-offset: 2px; }
.time-row.is-disabled { cursor: not-allowed; }
.time-colon { padding: 0 .04em; }
.training-summary { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 16px; padding: 17px; border-color: #2189fc; }
.summary-trophy { width: 96px; height: 96px; display: grid; place-items: center; border: 1px solid #1964b8; border-radius: 50%; background: radial-gradient(circle, #153e71, #071a32 70%); font-size: 3rem; filter: saturate(1.3); }
.training-summary h2 { line-height: 1.2; }
.training-summary h2 em { color: #338fff; font-style: normal; }
.training-summary p strong { color: #338fff; font-style: normal; }
.training-summary p { font-size: 1.05rem; }
.training-summary small { display: block; font-size: .95rem; }
.validation-message { color: #ff9d9d; margin: 0; }
.complete-note { color: #a8d9ae; font-weight: 700; margin: 0; }
.primary-action { border: 0; border-radius: 14px; padding: 15px 19px; font-weight: 800; }
.secondary-action { border: 0; border-radius: 14px; padding: 15px 19px; font-weight: 800; }
.start-action { width: 100%; background: linear-gradient(115deg, #A80E0D, #D42A27); color: #F4F3EA; box-shadow: 0 10px 24px rgba(168,14,13,.32); font-size: 1.22rem; letter-spacing: .03em; text-transform: uppercase; }
.top-start-action { width: auto; min-height: 51px; padding-inline: 18px; font-size: .95rem; }
.start-action:hover { background: linear-gradient(115deg, #2c8dff, #43a0ff); }
.secondary-action { background: #fff; color: #16191b; }
.ghost-action { border: 1px solid rgba(255,255,255,.48); border-radius: 11px; background: rgba(0,0,0,.14); color: white; padding: 9px 12px; }
#blazor-error-ui { display: none; }
@media (max-width: 430px) {
.timer-shell { padding-inline: 12px; }
.training-summary { grid-template-columns: 80px 1fr; gap: 12px; }
.summary-trophy { width: 72px; height: 72px; font-size: 2.25rem; }
.training-summary h2 { font-size: 1.25rem; }
.quick-actions { gap: 7px; }
.preset-picker select { font-size: .82rem; }
.top-start-action { padding-inline: 12px; }
}
html { background: radial-gradient(circle at top, #292826 0, var(--carbon) 45%, var(--fight-black) 100%); color: var(--chalk); }
body { background: radial-gradient(circle at top, #292826 0, var(--carbon) 45%, var(--fight-black) 100%); color: var(--chalk); }
button:focus-visible { outline-color: var(--fight-red-light); }
.timer-shell { width: min(100%, 760px); padding-top: 12px; }
.app-bar { grid-template-columns: minmax(0, 1fr) 44px; margin-bottom: 14px; min-height: 42px; }
.app-bar h1 { text-align: left; font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: -.03em; }
.icon-button:last-child { color: var(--steel); font-size: 1.55rem; }
.training-summary { border-color: var(--line); background: linear-gradient(135deg, rgba(37,37,35,.98), rgba(16,16,16,.98)); box-shadow: inset 0 1px rgba(255,255,255,.03), 0 12px 30px rgba(0,0,0,.2); }
.section-icon { color: var(--fight-red-light); }
.preset-picker select { border-color: var(--line); background: #121211; color: var(--chalk); }
.preset-picker { color: var(--steel); }
.compact-section-title { gap: 9px; margin-bottom: 7px; min-height: 30px; }
.compact-section-title h2 { font-size: .95rem; color: var(--steel); text-transform: uppercase; letter-spacing: .08em; }
.compact-section-title .section-icon { width: 28px; height: 28px; border-width: 1px; font-size: .95rem; }
.fight-stepper { grid-template-columns: 52px 1fr 52px; min-height: 76px; gap: 8px; padding: 8px; border-color: var(--line); background: #121211; }
.round-icon-button { width: 44px; height: 44px; justify-self: center; border-color: #625c59; background: #292825; color: var(--fight-red-light); font-size: 1.8rem; }
.large-number { font-size: 2.4rem; }
.fight-stepper p { margin-top: 2px; font-size: .78rem; color: var(--steel); }
.fight-stepper p { color: var(--steel); }
.training-summary p { color: var(--steel); }
.training-summary small { color: var(--steel); }
.training-summary { grid-template-columns: 72px 1fr; gap: 13px; padding: 13px; border-color: var(--fight-red); }
.summary-trophy { width: 62px; height: 62px; border-color: var(--fight-red); background: #191817; font-size: 2rem; filter: none; }
.training-summary h2 { font-size: clamp(1.15rem, 4vw, 1.45rem); }
.training-summary h2 em { color: var(--fight-red-light); }
.training-summary p strong { color: var(--fight-red-light); }
.training-summary p { margin-top: 4px; font-size: .92rem; }
.training-summary small { margin-top: 5px; font-size: .82rem; }
.training-summary .total-duration { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(215,215,208,.2); }
.start-action:hover { background: linear-gradient(115deg, var(--fight-red), var(--fight-red-light)); }
.template-manager { display: grid; gap: 9px; border-top: 1px solid rgba(215,215,208,.2); padding-top: 15px; }
.template-manager h2 { margin: 0; }
.template-manager p { margin: 0; }
.template-manager p { color: var(--steel); font-size: .88rem; }
.template-save-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.template-save-row input { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px; background: #121211; color: var(--chalk); }
.template-save-row button { border: 1px solid var(--fight-red); border-radius: 10px; background: var(--fight-red); color: var(--chalk); padding: 9px 11px; font-weight: 800; }
.template-list button { border: 1px solid var(--fight-red); border-radius: 10px; background: var(--fight-red); color: var(--chalk); padding: 9px 11px; font-weight: 800; }
.template-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.template-list li { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; }
.template-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-list button { padding: 5px 8px; background: #292825; border-color: var(--line); }
.template-list .delete-template { color: #ffb4ae; }
.section-icon { color: var(--fight-red-light) !important; border-color: var(--fight-red-light) !important; }
.round-icon-button { color: var(--fight-red-light) !important; }
.template-overwrite-picker { display: grid; gap: 5px; color: var(--steel); font-size: .85rem; }
.template-overwrite-picker select { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #121211; color: var(--chalk); padding: 0 10px; font: inherit; }
@media (orientation: landscape) and (min-width: 600px) {
.timer-shell { width: min(100%, 1080px); padding: 10px 24px 22px; }
.app-bar { margin-bottom: 8px; }
.setup-screen { grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-actions { grid-column: 1 / -1; }
.training-summary { grid-column: 1 / -1; }
.fight-stepper { max-width: 620px; margin: 0 auto; }
}
.access-gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, #291010 0, #101010 48%, #000 100%); color: #f4f3ea; }
.access-card { width: min(100%, 520px); display: grid; justify-items: center; gap: 16px; padding: clamp(28px, 7vw, 48px); border: 1px solid rgba(215,215,208,.22); border-radius: 24px; background: rgba(16,16,16,.95); text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,.48); }
.access-card h1 { margin: 0; }
.access-card p { margin: 0; }
.access-card p { color: #d7d7d0; line-height: 1.55; }
.access-mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #a80e0d; color: #f4f3ea; font-size: 1.4rem; font-weight: 900; }
.access-spinner { width: 36px; height: 36px; border: 4px solid rgba(244,243,234,.2); border-top-color: #d42a27; border-radius: 50%; animation: access-spin .8s linear infinite; }
@keyframes access-spin { to { transform: rotate(360deg); } }
.access-actions { width: 100%; display: grid; gap: 10px; }
.access-actions button { min-height: 46px; }
.credit-balance { color: #f4f3ea; font-size: 1.1rem; }
.monetization-panel { display: grid; gap: 12px; margin-bottom: 18px; padding: 16px; border: 1px solid rgba(215,215,208,.24); border-radius: 16px; background: linear-gradient(135deg, rgba(168,14,13,.17), rgba(16,16,16,.92)); }
.monetization-panel h2 { margin: 0; font-size: 1.05rem; }
.credit-status-button { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid #5d5b57; border-radius: 14px; background: linear-gradient(135deg, #1d1c1a, #0c0c0b); color: var(--chalk); text-align: left; box-shadow: inset 0 1px rgba(255,255,255,.04); }
.credit-status-button:hover { border-color: var(--fight-red-light); }
.credit-status-compact { min-height: 52px; padding: 5px 6px 5px 10px; }
.credit-status-settings { width: 100%; min-height: 70px; padding: 10px 12px; }
.credit-status-icon { color: #ffbf25; font-size: 1.25rem; }
.credit-status-copy { min-width: 0; display: grid; gap: 2px; }
.credit-status-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credit-status-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credit-status-copy strong { font-size: .93rem; }
.credit-status-copy small { color: var(--steel); font-size: .7rem; font-weight: 500; }
.credit-status-plus { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--fight-red), var(--fight-red-light)); color: #fff; font-size: 1.8rem; line-height: 1; box-shadow: 0 5px 14px rgba(168,14,13,.3); }
.credit-status-settings .credit-status-copy strong { font-size: 1.05rem; }
.credit-status-settings .credit-status-copy small { font-size: .82rem; }
.debug-credit-button { min-height: 38px; border: 1px dashed #7d7770; border-radius: 10px; background: #161513; color: var(--steel); }
.debug-credit-button:disabled { opacity: .45; }
.monetization-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }
.monetization-dialog { position: relative; width: min(100%, 520px); max-height: calc(100dvh - 32px); overflow-y: auto; display: grid; justify-items: center; gap: 14px; border: 1px solid var(--fight-red-light); border-radius: 24px; padding: 28px 26px 20px; background: radial-gradient(circle at 50% 0, rgba(90,34,31,.4), #1a1917 35%, #10100f 100%); box-shadow: 0 24px 90px rgba(0,0,0,.75), 0 0 32px rgba(168,14,13,.2); text-align: center; }
.dialog-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--steel); font-size: 2rem; line-height: 1; }
.dialog-credit-icon { width: 76px; height: 76px; display: grid; place-items: center; border: 2px solid var(--fight-red-light); border-radius: 50%; color: var(--fight-red-light); }
.dialog-credit-icon svg { width: 56px; height: 56px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dialog-credit-icon .coin-stack-back { opacity: .82; }
.dialog-credit-icon .coin-stack-front { fill: rgba(168,14,13,.12); }
.monetization-dialog h2 { margin: 0; }
.monetization-dialog p { margin: 0; }
.monetization-dialog h2 { font-size: clamp(1.55rem, 6vw, 2rem); }
.monetization-dialog > p:not(.monetization-message) { max-width: 410px; color: var(--steel); line-height: 1.45; }
.dialog-actions { width: 100%; display: grid; gap: 12px; margin-top: 4px; }
.dialog-action { width: 100%; min-height: 86px; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--fight-red-light); border-radius: 17px; padding: 11px 15px; background: linear-gradient(135deg, #24221f, #121211); color: var(--chalk); text-align: left; }
.dialog-action:hover { background: linear-gradient(135deg, #332623, #171614); box-shadow: 0 0 18px rgba(168,14,13,.22); }
.dialog-action:disabled { opacity: .55; cursor: wait; }
.dialog-action-icon { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--fight-red-light); border-radius: 50%; color: var(--chalk); font-size: 1.3rem; }
.dialog-action > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.dialog-action strong { font-size: 1.05rem; }
.dialog-action small { color: var(--steel); font-size: .86rem; line-height: 1.3; }
.dialog-action-arrow { color: var(--steel); font-size: 2rem; }
.dialog-secondary-actions { width: 100%; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 18px; border-top: 1px solid rgba(215,215,208,.2); padding-top: 14px; }
.dialog-secondary-actions button { border: 0; background: transparent; color: var(--steel); text-decoration: underline; }
.dialog-cancel { border: 0; background: transparent; color: var(--steel); text-decoration: underline; }
.dialog-secondary-actions button { min-height: 38px; }
.dialog-cancel { min-height: 42px; padding: 4px 22px; font-size: 1rem; text-decoration: none; }
.text-action { border: 0; background: transparent; color: #d7d7d0; text-decoration: underline; }
.monetization-message { margin: 0; color: #f4f3ea; font-weight: 700; }
.monetization-loading { display: flex; align-items: center; justify-content: center; gap: 9px; }
.loading-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.28); border-top-color: var(--fight-red-light); border-radius: 50%; animation: monetization-spin .8s linear infinite; }
@keyframes monetization-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
.quick-actions { grid-template-columns: minmax(0, 1fr) minmax(140px, 1.1fr) 44px; gap: 7px; }
.credit-status-compact { padding-left: 7px; gap: 6px; }
.credit-status-compact .credit-status-icon { display: none; }
.credit-status-plus { width: 36px; height: 36px; }
.monetization-dialog { padding: 25px 16px 16px; border-radius: 20px; }
.dialog-action { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding-inline: 11px; }
.dialog-action-icon { width: 46px; height: 46px; }
}
.app-bar { grid-template-columns: 132px minmax(0, 1fr) 44px; column-gap: 8px; }
.app-bar-with-logo { grid-template-columns: minmax(0, 1fr) 44px; }
.app-logo { width: 128px; height: 42px; object-fit: contain; object-position: left center; }
.app-bar h1 { text-align: center; }
@media (max-width: 430px) {
.app-bar { grid-template-columns: 108px minmax(0, 1fr) 44px; column-gap: 5px; }
.app-logo { width: 104px; height: 36px; }
.app-bar h1 { font-size: 1.25rem; }
}
.crash-report-prompt { margin: 1rem auto; padding: 1rem; max-width: 42rem; color: #fff; background: #242424; border: 1px solid #555; border-radius: 1rem; }
.diagnostic-error { margin: 1rem auto; padding: 1rem; max-width: 42rem; color: #fff; background: #242424; border: 1px solid #555; border-radius: 1rem; }
.crash-report-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.crash-report-actions button { padding: .65rem 1rem; border-radius: .5rem; white-space: normal; }
.diagnostics-settings p { font-size: .9rem; line-height: 1.5; }
.privacy-policy-link { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 44px; max-width: 100%; padding: 6px 10px; color: #e5e5df; text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; border-radius: 6px; }
.privacy-policy-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.privacy-policy-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.dialog-secondary-actions .privacy-policy-link { padding: 0 4px; }
.access-card > .privacy-policy-link { margin-top: 12px; }
.localized-app { display: contents; }
.app-startup { min-height: 100dvh; width: 100%; display: grid; place-content: center; justify-items: center; background: #000; padding: 24px; position: relative; }
.app-startup img { display: block; width: min(72vw, 320px); max-height: 60dvh; height: auto; object-fit: contain; }
.startup-actions { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: 16px; right: 16px; text-align: center; }
.access-gate[data-testid="access-loading"] { padding: 0; background: #000; }
.stored-data-notice { position: relative; z-index: 11; padding: .75rem 1rem; margin: .5rem 0; border: 1px solid #d8aa4a; border-radius: .6rem; background: #302715; color: #fff5dc; overflow-wrap: anywhere; }
.stored-data-notice p { margin: 0 0 .5rem; }
.stored-data-notice button { min-height: 44px; padding: .45rem .8rem; }
.stored-data-notice button:focus-visible { outline: 3px solid #fff5dc; outline-offset: 3px; }
