:root {
  color-scheme: dark;
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
  background: #0b1014;
}

* { box-sizing: border-box; }

html,
body,
#game {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

#game {
  display: block;
  outline: 0;
  background: #0b1014;
}

#keyboard-status {
  position: fixed;
  left: 50%;
  bottom: 52px;
  z-index: 40;
  max-width: min(680px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid rgba(255, 190, 92, 0.55);
  border-radius: 8px;
  background: rgba(22, 16, 10, 0.92);
  color: #ffd18a;
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}

#keyboard-status[data-status="active"] {
  border-color: rgba(85, 230, 165, 0.42);
  background: rgba(8, 25, 22, 0.82);
  color: #78e4bc;
}

#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  color: #edf3f4;
  text-shadow: 0 1px 3px #000;
}

.scorebar {
  position: absolute;
  top: 18px;
  left: 50%;
  display: flex;
  gap: 16px;
  padding: 10px 18px;
  transform: translateX(-50%);
  border: 1px solid #ffffff1f;
  border-radius: 5px;
  background: #10171dcc;
  font-size: 12px;
  letter-spacing: .09em;
}

.scorebar b { color: #78e4bc; margin-left: 5px; }
.scorebar i { font-style: normal; }

#player-hud {
  position: absolute;
  left: 24px;
  bottom: 28px;
  width: min(390px, calc(100vw - 48px));
  padding: 14px 16px 13px;
  border-left: 4px solid #78e4bc;
  background: linear-gradient(90deg, #10171df2, #10171d78);
}

.player-hud-head { display: flex; align-items: baseline; justify-content: space-between; }
.player-hud-head span { color: #aeb9bd; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.player-hud-head b { color: #edf3f4; font-size: 30px; line-height: 1; }
#health-track { position: relative; height: 12px; margin-top: 7px; overflow: hidden; border-radius: 2px; background: #080d11; }
#health-track i, #health-track strong { position: absolute; inset: 0 auto 0 0; width: 100%; transition: width .12s ease, background .2s ease; }
#health-track i { background: #e7a45c; transition: width .7s ease .18s; }
#health-track strong { background: #67d8ad; }
#received-damage { position: absolute; top: 8px; right: 62px; color: #ff786b; font-size: 18px; font-weight: 900; opacity: 0; }
#received-damage.show { animation: damage-pop .65s ease-out; }
.player-state-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 9px; align-items: center; margin-top: 10px; }
.player-state-row b { color: #9cabb0; font-size: 10px; letter-spacing: .12em; }
.player-state-row strong { color: #8fa0a6; font-size: 11px; }
.player-state-row strong.effective { color: #65dfb1; }
.player-state-row strong.excessive { color: #f2a85f; }
.player-state-row strong.wasted { color: #ff6f64; }
.player-state-row strong.forced { color: #67bde8; }
.player-state-row span { color: #dce4e6; font-size: 13px; font-weight: 850; }
.session-mini, .training-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 9px; }
.session-mini span, .training-mini span { display: flex; justify-content: space-between; gap: 5px; padding: 5px 7px; background: #0b111699; }
.session-mini i, .training-mini i { color: #77868c; font-size: 8px; font-style: normal; letter-spacing: .08em; }
.session-mini b, .training-mini b { color: #dbe5e7; font-size: 10px; }

#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
}

#crosshair::before,
#crosshair::after {
  position: absolute;
  content: "";
  background: #fff;
  box-shadow: 0 0 2px #000;
}

#crosshair::before { top: 2px; left: 8px; width: 2px; height: 14px; }
#crosshair::after { top: 8px; left: 2px; width: 14px; height: 2px; }

#hit-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -52%) scale(1.3);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

#hit-marker.show { animation: hit .13s ease-out; }

#damage-number {
  position: absolute;
  top: calc(50% - 42px);
  left: calc(50% + 26px);
  opacity: 0;
  color: #ffd78a;
  font-size: 18px;
  font-weight: 800;
}

#damage-number.show { animation: damage .45s ease-out; }

#status {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  color: #89969c;
  font-size: 10px;
  letter-spacing: .2em;
}

#kill-feed {
  position: absolute;
  top: 104px;
  left: 20px;
  display: grid;
  gap: 5px;
  width: min(360px, 42vw);
  font-size: 14px;
  letter-spacing: .04em;
}

#kill-feed div {
  padding: 8px 11px;
  border-left: 3px solid #78e4bc;
  background: linear-gradient(90deg, #10171de6, #10171d00);
  transition: opacity .8s ease;
}

#kill-feed div.hit { border-left-color: #f1c96a; color: #f4e4ac; }
#kill-feed div.headshot { border-left-color: #ffd75a; color: #ffe589; font-size: 15px; font-weight: 850; }
#kill-feed div.kill { border-left-color: #62dfb0; color: #83ebc4; font-size: 15px; font-weight: 850; }
#kill-feed div.damage { border-left-color: #ee9b55; color: #ffba79; }
#kill-feed div.critical, #kill-feed div.death { border-left-color: #ef5d55; color: #ff837b; font-size: 15px; font-weight: 850; }
#kill-feed div.info { border-left-color: #7796a5; color: #b5c6cc; }
#kill-feed div.fade { opacity: .28; }

#enemy-health-popup { position: absolute; top: calc(50% + 46px); left: 50%; min-width: 150px; padding: 6px 9px; transform: translateX(-50%); opacity: 0; background: #0b1116dc; transition: opacity .18s; }
#enemy-health-popup.show { opacity: 1; }
#enemy-health-popup small { color: #aeb9bd; font-size: 8px; letter-spacing: .12em; }
#enemy-health-popup > div { height: 5px; margin-top: 3px; background: #381717; }
#enemy-health-popup > div i { display: block; width: 100%; height: 100%; background: #dd735e; transition: width .16s; }
#enemy-health-popup b { position: absolute; top: 5px; right: 8px; font-size: 11px; }

#damage-direction { position: absolute; top: 50%; left: 50%; width: 250px; height: 250px; transform: translate(-50%, -50%) rotate(var(--damage-angle, 0deg)); opacity: 0; }
#damage-direction i { position: absolute; top: 0; left: 50%; width: 82px; height: 18px; transform: translateX(-50%); border-top: 5px solid #ff594f; border-radius: 50%; filter: drop-shadow(0 0 5px #b51610); }
#damage-direction.show { animation: damage-direction .55s ease-out; }
#damage-direction.critical i { width: 116px; border-top-width: 8px; border-color: #ff2c26; }

#weapon-hud {
  position: absolute;
  right: 26px;
  bottom: 28px;
  min-width: 190px;
  padding: 13px 17px 11px;
  border-right: 4px solid #78e4bc;
  background: linear-gradient(270deg, #10171de6, #10171d70);
  text-align: right;
}

#objective-hud {
  position: absolute;
  top: 82px;
  right: 26px;
  min-width: 210px;
  padding: 12px 17px 14px;
  border-top: 3px solid #78e4bc;
  background: linear-gradient(225deg, #10171df2, #10171d9c);
  text-align: right;
}

#objective-hud small {
  display: block;
  color: #9ba8ad;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
}

#objective-hud b {
  display: block;
  margin-top: 2px;
  color: #edf3f4;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.04em;
}

#weapon-hud > div:nth-child(2) { line-height: .95; }
#weapon-hud b { font-size: 44px; font-weight: 800; }
#weapon-hud span { margin-left: 6px; color: #9ba8ad; font-size: 20px; }
#weapon-hud .empty b { color: #ef685d; }
#fire-mode { color: #78e4bc; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
#fire-mode.auto { color: #f0b36e; }
#reload-state { color: #9ba8ad; font-size: 10px; letter-spacing: .12em; }

footer {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #b6c0c4;
  font-size: 12px;
  white-space: nowrap;
}

#start-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(650px, calc(100% - 36px));
  max-height: 94vh;
  overflow-y: auto;
  padding: 38px;
  transform: translate(-50%, -50%);
  border: 1px solid #ffffff21;
  border-radius: 8px;
  background: #0e151be8;
  box-shadow: 0 24px 80px #0009;
  text-align: center;
  backdrop-filter: blur(8px);
}

#start-panel[hidden] { display: none; }
#start-panel .eyebrow { margin: 0 0 12px; color: #7e9199; font-size: 10px; letter-spacing: .18em; }
#start-panel h1 { margin: 0; font-size: clamp(42px, 9vw, 68px); letter-spacing: -.05em; }
#start-panel h1 span { color: #6de0b3; }
#start-panel > p:not(.eyebrow) { margin: 12px 0 24px; color: #b7c2c6; font-size: 14px; }
#start-panel small { display: block; margin-top: 15px; color: #748188; font-size: 11px; }

.menu-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 22px 0 18px;
  padding: 5px;
  border: 1px solid #ffffff18;
  border-radius: 6px;
  background: #080d1199;
}

.menu-tab { padding: 9px 8px; background: transparent; color: #87969c; font-size: 11px; letter-spacing: .08em; }
.menu-tab:hover { background: #172229; color: #dce6e8; }
.menu-tab.active { background: #273c3d; color: #85e5c0; box-shadow: inset 0 -2px #68d9ae; }
.menu-page { display: none; }
.menu-page.active { display: block; }
.menu-actions { display: flex; justify-content: center; gap: 10px; }
.text-button { margin-top: 12px; padding: 6px 9px; background: transparent; color: #92a2a8; font-size: 11px; }
.text-button:hover { background: #182229; color: #dce5e7; }
.text-button i { margin-left: 7px; padding: 2px 5px; border-radius: 8px; background: #e36855; color: #fff; font-size: 8px; font-style: normal; }

.modal-panel { position: fixed; top: 50%; left: 50%; z-index: 35; width: min(720px, calc(100% - 36px)); max-height: 86vh; padding: 24px; transform: translate(-50%, -50%); border: 1px solid #ffffff26; border-radius: 8px; background: #0c1318f7; box-shadow: 0 24px 90px #000c; }
.modal-panel[hidden] { display: none; }
.modal-panel > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.modal-panel h2 { margin: 2px 0 0; }
.modal-panel header small { color: #6fdcb2; letter-spacing: .15em; }
#changelog-list { display: grid; gap: 8px; max-height: 62vh; overflow-y: auto; padding-right: 5px; text-align: left; }
#changelog-list details { padding: 11px 13px; border: 1px solid #ffffff16; border-radius: 5px; background: #111a20; }
#changelog-list summary { cursor: pointer; color: #dce5e7; font-weight: 800; }
#changelog-list summary time { float: right; color: #728087; font-size: 10px; font-weight: 500; }
#changelog-list ul { margin: 10px 0 0; padding-left: 19px; color: #aebbc0; font-size: 12px; line-height: 1.7; }
.mode-heading { display: grid; gap: 5px; margin-bottom: 16px; padding: 13px; border-left: 3px solid #68d9ae; background: #10191f; text-align: left; }
.mode-heading strong { color: #e7edef; font-size: 14px; }
.mode-heading span { color: #8fa0a6; font-size: 11px; line-height: 1.6; }
.guide-page { text-align: left; }
.guide-intro { margin-bottom: 12px; padding: 17px; border: 1px solid #5ad8aa42; border-radius: 6px; background: linear-gradient(135deg, #17312d, #10191f); }
.guide-intro h2 { margin: 0 0 7px; color: #83e8c2; font-size: 18px; }
.guide-intro p { margin: 0; color: #c2cdcf; font-size: 12px; line-height: 1.75; }
.guide-diagrams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 13px 0; }
.guide-diagrams figure { margin: 0; padding: 12px; border: 1px solid #ffffff18; border-radius: 5px; background: #10191f; }
.guide-diagrams figcaption { margin-top: 8px; color: #aebabe; font-size: 10px; line-height: 1.5; }
.cover-diagram { position: relative; height: 102px; overflow: hidden; border-radius: 4px; background: linear-gradient(#26333a 0 72%, #313940 72%); }
.cover-diagram i { position: absolute; z-index: 2; bottom: 0; left: 20%; width: 38%; height: 85%; background: #557875; }
.cover-diagram span { position: absolute; bottom: 8%; width: 28px; height: 66px; border-radius: 14px 14px 7px 7px; background: #c38874; box-shadow: 0 -18px 0 -5px #d6a184; }
.cover-diagram.good span { left: 53%; }
.cover-diagram.bad span { left: 65%; }
.cover-diagram b { position: absolute; top: 8px; right: 10px; font-size: 22px; }
.cover-diagram.good b { color: #78e4bc; }
.cover-diagram.bad b { color: #ef8c68; }
.score-details { padding: 12px 14px; border: 1px solid #ffffff1d; border-radius: 5px; background: #0a1015a8; }
.score-details > summary { color: #78e4bc; font-size: 12px; font-weight: 800; cursor: pointer; }
.score-details details { margin-top: 8px; padding: 9px 10px; border-left: 2px solid #526970; background: #111a20; }
.score-details details summary { color: #d2dcde; font-size: 11px; cursor: pointer; }
.score-details details p { margin: 7px 0 0; color: #98a7ac; font-size: 10px; line-height: 1.75; }

#result-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10;
  width: min(720px, calc(100% - 36px));
  max-height: 94vh;
  overflow-y: auto;
  padding: 36px;
  transform: translate(-50%, -50%);
  border: 1px solid #ffffff26;
  border-radius: 8px;
  background: #0b1218f5;
  box-shadow: 0 30px 100px #000d;
  text-align: center;
  backdrop-filter: blur(12px);
}

#result-panel[hidden] { display: none; }
#result-panel .eyebrow { margin: 0 0 7px; color: #78e4bc; font-size: 10px; letter-spacing: .2em; }
#result-panel h2 { margin: 0 0 24px; font-size: 44px; letter-spacing: .08em; }
.result-grade { display: grid; justify-items: center; gap: 3px; margin: -10px auto 18px; }
.result-grade > span { color: #839198; font-size: 10px; letter-spacing: .16em; }
.result-grade > b { color: #78e4bc; font-size: 72px; line-height: .95; text-shadow: 0 0 24px #78e4bc44; }
.result-grade > b[data-grade="D"], .result-grade > b[data-grade="E"] { color: #ef9b69; }
.result-grade > strong { color: #e8eff0; font-size: 14px; }
.result-grade > small { max-width: 420px; color: #aab6ba; font-size: 11px; }
#result-player { margin: -17px 0 18px; color: #9fb0b6; font-size: 13px; font-weight: 700; letter-spacing: .12em; }

.result-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}

.result-stats > div {
  padding: 14px 8px;
  border: 1px solid #ffffff18;
  border-radius: 5px;
  background: #121b21;
}

.result-stats small { display: block; color: #839198; font-size: 9px; letter-spacing: .14em; }
.result-stats b { display: block; margin-top: 5px; color: #edf3f4; font-size: 28px; }
.result-stats em { display: block; margin-top: 3px; color: #8fa0a6; font-size: 9px; font-style: normal; }
.result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
button.secondary { border: 1px solid #ffffff26; background: #1a252c; color: #d3dcdf; }
button.secondary:hover { background: #26343c; }
.manual-open { margin-left: 8px; }

#manual-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 20;
  width: min(760px, calc(100% - 36px));
  max-height: 92vh;
  overflow-y: auto;
  padding: 34px;
  transform: translate(-50%, -50%);
  border: 1px solid #ffffff26;
  border-radius: 8px;
  background: #0b1218fa;
  box-shadow: 0 30px 110px #000e;
  text-align: center;
  backdrop-filter: blur(12px);
}

#manual-panel[hidden] { display: none; }
#manual-panel .eyebrow { margin: 0 0 6px; color: #78e4bc; font-size: 10px; letter-spacing: .18em; }
#manual-panel h2 { margin: 0 0 22px; font-size: 30px; }
.manual-content { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; text-align: left; }
.manual-content article { padding: 14px; border: 1px solid #ffffff17; border-radius: 5px; background: #121b21; }
.manual-content h3 { margin: 0 0 7px; color: #78e4bc; font-size: 13px; }
.manual-content p { margin: 0; color: #b7c2c6; font-size: 12px; line-height: 1.75; }
.icon-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; padding: 0; border: 1px solid #ffffff22; background: #172127; color: #d7e0e2; font-size: 20px; }

.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 22px; text-align: left; }
.settings label { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; color: #aeb9bd; font-size: 12px; }
.settings input { grid-column: 1; width: 100%; accent-color: #68d9ae; }
.settings input[type="text"] {
  grid-column: 1 / -1;
  padding: 8px 9px;
  border: 1px solid #ffffff26;
  border-radius: 4px;
  background: #182229;
  color: #e7edef;
  font: inherit;
}
.settings output { grid-column: 2; grid-row: 2; color: #68d9ae; }
.settings select { grid-column: 1 / -1; width: 100%; padding: 7px 9px; border: 1px solid #ffffff26; border-radius: 4px; background: #182229; color: #e7edef; }

.keybinds { margin: -5px 0 20px; padding: 10px 12px; border: 1px solid #ffffff18; border-radius: 5px; background: #0a101588; text-align: left; }
.keybinds summary { color: #9eabb0; font-size: 12px; cursor: pointer; }
#keybind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 11px; }
.bind-row { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #9eabb0; font-size: 10px; }
.bind-button { min-width: 74px; padding: 6px 8px; border: 1px solid #ffffff20; background: #1c292f; color: #cfe0e3; font-size: 10px; }
.bind-button.waiting { background: #6b806d; color: #fff; }
#bind-message { margin-top: 9px !important; color: #718087 !important; }

.tactical-result { margin-top: 18px; padding-top: 16px; border-top: 1px solid #ffffff18; text-align: left; }
.tactical-result h3 { margin: 0 0 10px; color: #dce7e9; font-size: 13px; letter-spacing: .12em; }
.tactical-components { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.tactical-components > div { padding: 10px; border: 1px solid #ffffff17; border-radius: 4px; background: #111a20; }
.tactical-components small { display: block; min-height: 25px; color: #829198; font-size: 8px; line-height: 1.4; }
.tactical-components b { display: block; color: #7fe2bd; font-size: 24px; }
.exposure-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 8px; }
.exposure-breakdown span { display: grid; grid-template-columns: 8px 1fr; gap: 2px 7px; align-items: center; padding: 8px; background: #0d151a; }
.exposure-breakdown i { grid-row: 1 / 3; width: 7px; height: 100%; border-radius: 4px; }
.exposure-breakdown i.effective { background: #67d9af; }
.exposure-breakdown i.excessive { background: #dab95f; }
.exposure-breakdown i.wasted { background: #e36c5e; }
.exposure-breakdown i.forced { background: #6aa8da; }
.exposure-breakdown b { color: #e4ebed; font-size: 15px; }
.exposure-breakdown small { color: #809097; font-size: 8px; }
.coaching-notes { display: grid; gap: 5px; margin-top: 10px; }
.coaching-notes p { margin: 0; padding: 8px 10px; border-left: 2px solid #e4af62; background: #171a1c; color: #bdc8cb; font-size: 10px; }
.replay-foundation { margin-top: 12px; }
.replay-foundation > strong { color: #9caaaf; font-size: 10px; letter-spacing: .1em; }
#result-moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 7px; }
.moment-card { display: grid; gap: 3px; padding: 9px; border: 1px solid #ffffff18; border-top: 2px solid #e47666; border-radius: 4px; background: #10181e; }
.moment-card.best { border-top-color: #68d9ae; }
.moment-card:hover { background: #18242b; }
.moment-card span { color: #8f9ea3; font-size: 8px; }
.moment-card b { color: #e7edef; font-size: 18px; }
.moment-card small, .moment-card em { color: #7f8e94; font-size: 8px; font-style: normal; line-height: 1.4; }
.compact { margin-top: 8px; padding: 7px 12px; font-size: 9px; }

body.replay-active #hud { display: none; }

#replay-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  color: #e8eff0;
  text-shadow: 0 1px 3px #000;
}

#replay-panel[hidden] { display: none; }
.replay-header { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: flex-start; }
.replay-header .eyebrow { margin: 0 0 3px; color: #ef897c; font-size: 9px; letter-spacing: .18em; }
.replay-header h2 { margin: 0; font-size: 24px; letter-spacing: .06em; }
.replay-header .icon-close { position: static; pointer-events: auto; }
.replay-timeline { position: absolute; left: 50%; bottom: 116px; width: min(760px, calc(100% - 40px)); height: 6px; transform: translateX(-50%); border-radius: 4px; background: #ffffff29; box-shadow: 0 2px 8px #0009; }
#replay-progress { height: 100%; border-radius: inherit; background: #72dcb5; }
#replay-marker { position: absolute; top: -6px; width: 2px; height: 18px; background: #ff6b60; box-shadow: 0 0 9px #ff6b60; }
.replay-status { position: absolute; bottom: 127px; left: 50%; display: flex; justify-content: space-between; width: min(760px, calc(100% - 40px)); transform: translateX(-50%); font-size: 10px; }
.replay-status span { color: #bac6c9; }
.replay-status strong { color: #ff968b; letter-spacing: .1em; }
.replay-controls { position: absolute; right: 18px; bottom: 18px; left: 18px; display: flex; justify-content: center; align-items: center; gap: 7px; padding: 13px; border: 1px solid #ffffff22; border-radius: 6px; background: #0c1318eb; box-shadow: 0 16px 50px #000c; pointer-events: auto; backdrop-filter: blur(10px); }
.replay-controls button { padding: 8px 13px; font-size: 10px; }
.replay-controls label { display: flex; align-items: center; gap: 5px; color: #94a3a8; font-size: 9px; }
.replay-controls select { padding: 6px; border: 1px solid #ffffff22; border-radius: 4px; background: #19242a; color: #e5edef; }
.replay-controls .check { padding-left: 6px; }
.replay-controls input { accent-color: #68d9ae; }
.replay-callout { position: absolute; top: 92px; right: 24px; width: min(330px, calc(100% - 48px)); padding: 17px; border: 1px solid #ff776b73; border-left: 4px solid #ff675c; border-radius: 5px; background: #130f10ed; box-shadow: 0 18px 55px #000b; pointer-events: auto; backdrop-filter: blur(8px); }
.replay-callout[hidden] { display: none; }
.replay-callout.positive { border-color: #68d9ae73; border-left-color: #68d9ae; background: #0e1714ed; }
.replay-callout b { display: block; color: #f4d1cc; font-size: 15px; }
.replay-callout.positive b { color: #9ee9cd; }
.replay-callout span { display: block; margin-top: 3px; color: #ff8176; font-size: 25px; font-weight: 850; }
.replay-callout.positive span { color: #68d9ae; }
.replay-callout p { margin: 8px 0 12px; color: #bdc7ca; font-size: 11px; line-height: 1.7; }
.replay-callout button { padding: 8px 16px; font-size: 10px; }
#replay-annotations { position: fixed; inset: 0; pointer-events: none; }
.replay-ring { position: absolute; width: 76px; height: 76px; transform: translate(-50%, -50%); border: 4px solid #ff6258; border-radius: 50%; box-shadow: 0 0 0 2px #31070599, 0 0 18px #ff6258a6; animation: replay-ring-in .32s ease-out; }
.replay-ring.positive { border-color: #68d9ae; box-shadow: 0 0 0 2px #052f2099, 0 0 18px #68d9aea6; }
.replay-ring b { position: absolute; top: -13px; left: -13px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #ff6258; color: #fff; font-size: 12px; }
.replay-ring.positive b { background: #42b98c; }
.replay-ring span { position: absolute; top: 72px; left: 50%; padding: 4px 7px; transform: translateX(-50%); background: #0b1014e8; color: #fff; font-size: 9px; white-space: nowrap; }

@keyframes replay-ring-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.result-log {
  max-height: 190px;
  margin-top: 18px;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid #ffffff18;
  border-radius: 5px;
  background: #080d11a8;
  text-align: left;
}

.result-log strong { color: #9eabb0; font-size: 11px; letter-spacing: .12em; }
.result-log ol { display: grid; gap: 4px; margin: 9px 0 0; padding: 0; list-style: none; }
.result-log li { padding: 4px 7px; border-left: 2px solid #78e4bc; color: #ccd5d8; font-size: 11px; }
.result-log li.death { border-left-color: #ef685d; }
.result-log time { display: inline-block; width: 52px; color: #738188; }

button {
  padding: 12px 24px;
  border: 0;
  border-radius: 4px;
  background: #68d9ae;
  color: #09100d;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:hover { background: #87e8c4; }
#flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; background: #75e7bd; }
#blood-overlay {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 8% 12%, #6c0d0dcc 0 3%, transparent 11%),
    radial-gradient(circle at 92% 22%, #731010aa 0 4%, transparent 14%),
    radial-gradient(ellipse at 55% 102%, #630909e6 0 16%, transparent 43%),
    linear-gradient(90deg, #500707c9 0%, transparent 18%, transparent 82%, #500707c9 100%);
  box-shadow: inset 0 0 120px 35px #5d0909d9;
  transition: opacity .28s ease;
}
body.low-health #blood-overlay { opacity: .78; animation: low-health-pulse 1.25s ease-in-out infinite; }
body.ads #crosshair { transform: translate(-50%, -50%) scale(.72); }
body.ads .scorebar { opacity: .62; }

@keyframes hit {
  0% { opacity: 1; transform: translate(-50%, -52%) scale(1.5); }
  100% { opacity: 0; transform: translate(-50%, -52%) scale(.8); }
}

@keyframes damage {
  0% { opacity: 1; transform: translateY(0) scale(1.15); }
  100% { opacity: 0; transform: translateY(-24px) scale(.9); }
}

@keyframes low-health-pulse {
  0%, 100% { opacity: .68; filter: saturate(.9); }
  50% { opacity: .88; filter: saturate(1.25); }
}

@keyframes damage-pop {
  0% { opacity: 1; transform: translateY(0) scale(1.2); }
  100% { opacity: 0; transform: translateY(-22px) scale(.9); }
}

@keyframes damage-direction {
  0%, 32% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 620px) {
  .scorebar { width: calc(100% - 24px); flex-wrap: wrap; justify-content: center; gap: 7px 11px; padding-inline: 12px; font-size: 10px; }
  #player-hud { left: 12px; bottom: 58px; width: min(360px, calc(100vw - 24px)); }
  #kill-feed { left: 12px; width: min(330px, calc(100vw - 24px)); font-size: 12px; }
  footer { font-size: 10px; }
  .settings { grid-template-columns: 1fr; }
  .guide-diagrams, .tactical-components, .exposure-breakdown, #result-moments { grid-template-columns: 1fr 1fr; }
  .replay-controls { flex-wrap: wrap; }
  .replay-timeline { bottom: 170px; }
  .replay-status { bottom: 181px; }
  #keybind-grid { grid-template-columns: 1fr 1fr; }
  #weapon-hud { right: 12px; bottom: 42px; min-width: 150px; }
  #weapon-hud b { font-size: 36px; }
  #objective-hud { top: 76px; right: 12px; min-width: 150px; }
  #objective-hud b { font-size: 34px; }
  #result-panel { padding: 26px 18px; }
  .result-stats { grid-template-columns: 1fr 1fr; }
  .result-actions { flex-direction: column; }
  .manual-open { display: block; width: 100%; margin: 8px 0 0; }
  #manual-panel { padding: 30px 18px 22px; }
  .manual-content { grid-template-columns: 1fr; }
}
