:root {
  color-scheme: dark;
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
  background: #080b0d;
  color: #f5f8f6;
  --mint: #55f2c2;
  --lime: #b7f254;
  --yellow: #ffd34e;
  --coral: #ff5871;
  --blue: #65a7ff;
  --ink: #080b0d;
  --panel: rgba(12, 17, 19, 0.95);
  --line: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
html, body { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; margin: 0; overflow: hidden; background: var(--ink); overscroll-behavior: none; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible + i { outline: 2px solid var(--mint); outline-offset: 3px; }

.game-shell {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 540px;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(circle at 62% 45%, rgba(24, 56, 48, .35), transparent 43%), linear-gradient(145deg, #101719 0%, #090d10 55%, #101411 100%);
}

#gameCanvas { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.ambient-grid { position: absolute; z-index: 0; inset: 0; opacity: .18; pointer-events: none; background-image: linear-gradient(rgba(91, 145, 127, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 145, 127, .13) 1px, transparent 1px); background-size: 52px 52px; transform: perspective(620px) rotateX(64deg) scale(1.7) translateY(10%); transform-origin: center bottom; }
.vignette { position: absolute; z-index: 2; inset: 0; pointer-events: none; box-shadow: inset 0 0 150px 24px rgba(0, 0, 0, .78); }

.topbar {
  position: absolute; z-index: 10; top: 0; left: 0; right: 0; height: 82px;
  display: grid; grid-template-columns: 250px 120px minmax(230px, 1fr) 96px 72px auto; align-items: center; gap: 14px;
  padding: 12px 20px; border-bottom: 1px solid var(--line); background: rgba(8, 12, 14, .82); backdrop-filter: blur(14px);
}
.brand-block { display: flex; align-items: center; gap: 12px; }
.brand-block h1 { margin: 0; font-size: 18px; line-height: 1; letter-spacing: 0; }
.brand-block span { display: block; margin-top: 5px; color: #71817e; font-size: 8px; font-weight: 800; }
.brand-mark { position: relative; width: 35px; height: 38px; flex: 0 0 35px; }
.brand-mark i { position: absolute; display: block; }
.brand-mark i:nth-child(1) { left: 1px; top: 8px; width: 25px; height: 25px; border-radius: 50% 50% 47% 47%; background: var(--coral); box-shadow: 0 0 14px rgba(255, 88, 113, .7); }
.brand-mark i:nth-child(2) { left: 21px; top: 1px; width: 14px; height: 9px; border-radius: 100% 0 100% 0; background: var(--lime); transform: rotate(-20deg); }
.brand-mark i:nth-child(3) { left: 16px; top: -4px; width: 4px; height: 47px; background: white; transform: rotate(40deg); box-shadow: 0 0 9px white; }

.day-block { position: relative; padding-left: 14px; border-left: 1px solid var(--line); }
.day-block > span { display: block; color: #73827f; font-size: 8px; font-weight: 800; }
.day-block strong { display: block; margin-top: 4px; font-size: 16px; }
.day-block b { color: var(--mint); font-size: 21px; font-variant-numeric: tabular-nums; }
.day-block em { display: none; position: absolute; right: -3px; top: -5px; padding: 2px 4px; color: var(--yellow); border: 1px solid rgba(255, 211, 78, .35); font-size: 7px; font-style: normal; font-weight: 800; }
.day-block.endless em { display: block; }

.score-block { width: 100%; max-width: 440px; justify-self: center; }
.score-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.score-copy span:last-child { text-align: right; }
.score-copy small { color: #7b8986; font-size: 8px; font-weight: 700; }
.score-copy strong { display: block; margin-top: 2px; font-size: 18px; font-variant-numeric: tabular-nums; }
.score-copy span:first-child strong { color: var(--mint); }
.coin-block { display: grid; grid-template-columns: 22px 1fr; align-items: center; column-gap: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.coin-block strong { font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.coin-block small { grid-column: 2; margin-top: 2px; color: #7a8886; font-size: 8px; }
.coin-icon { display: inline-block; width: 17px; height: 17px; border: 3px solid var(--yellow); border-radius: 2px; transform: rotate(45deg); box-shadow: 0 0 10px rgba(255, 211, 78, .5), inset 0 0 6px rgba(255, 211, 78, .35); }

.timer-block { --timer: 1; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--mint) calc(var(--timer) * 1turn), rgba(255,255,255,.08) 0); }
.timer-ring { width: 52px; height: 52px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: #0c1113; }
.timer-ring strong { font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; }
.timer-ring small { margin-top: 2px; color: #71807e; font-size: 7px; }
.timer-block.urgent { background: conic-gradient(var(--coral) calc(var(--timer) * 1turn), rgba(255,255,255,.08) 0); animation: timer-pulse .75s ease-in-out infinite alternate; }
@keyframes timer-pulse { to { filter: drop-shadow(0 0 8px rgba(255, 88, 113, .5)); } }

.life-readout { position: absolute; z-index: 11; right: 17px; top: 86px; height: 58px; display: grid; place-items: center; padding: 0 5px; overflow: visible; pointer-events: none; }
.life-readout[hidden] { display: none; }
.life-hearts { display: flex; align-items: center; gap: 3px; min-width: 34px; min-height: 48px; padding: 3px 5px; transform: perspective(270px) rotateY(-13deg) rotateZ(-6deg); transform-origin: right center; transform-style: preserve-3d; filter: drop-shadow(0 9px 9px rgba(0,0,0,.48)); }
.life-hearts i { position: relative; width: 31px; height: 36px; flex: 0 0 31px; display: grid; place-items: center; color: #ff5871; transform: translateZ(var(--heart-depth, 2px)) scale(var(--heart-scale, .72)); transform-origin: center; transform-style: preserve-3d; }
.life-hearts i::before { content: "♥"; font: 900 39px/1 "Segoe UI Symbol", "Arial Unicode MS", sans-serif; color: #ff5871; text-shadow: 0 1px 0 #ffb0bd, 0 5px 0 #8d2437, 0 0 14px rgba(255,65,94,.78); }
.life-hearts i::after { content: ""; position: absolute; left: 18%; right: 7%; bottom: -1px; height: 6px; border-radius: 50%; background: rgba(255,45,76,.27); filter: blur(3px); transform: translateZ(-7px); }
.life-hearts.life-hit { animation: life-hud-hit .48s cubic-bezier(.2,.72,.25,1) both; }
.life-hearts.life-hit i:last-child::before { animation: life-survivor-pulse .52s ease-out both; }
.life-loss-effect { position: absolute; z-index: 4; right: 1px; top: 50%; width: 54px; height: 54px; opacity: 0; visibility: hidden; transform: translateY(-50%); filter: drop-shadow(0 0 12px rgba(255,40,72,.78)); }
.life-loss-effect .heart-half { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; display: grid; place-items: center; color: #ff4562; font: 900 43px/1 "Segoe UI Symbol", sans-serif; text-shadow: 0 2px 0 #8d2437, 0 0 13px #ff3859; transform: translate(-50%,-50%); }
.life-loss-effect .heart-half-left { clip-path: inset(0 49% 0 0); }
.life-loss-effect .heart-half-right { clip-path: inset(0 0 0 49%); }
.life-loss-effect > i { --burst-angle: 0deg; --burst-distance: -31px; position: absolute; left: 50%; top: 50%; width: 3px; height: 10px; border-radius: 2px; opacity: 0; background: #ff9aaa; box-shadow: 0 0 7px #ff3957; transform-origin: 50% 0; }
.life-loss-effect > i:nth-of-type(1) { --burst-angle: 5deg; --burst-distance: -34px; } .life-loss-effect > i:nth-of-type(2) { --burst-angle: 48deg; --burst-distance: -28px; }
.life-loss-effect > i:nth-of-type(3) { --burst-angle: 92deg; --burst-distance: -37px; } .life-loss-effect > i:nth-of-type(4) { --burst-angle: 138deg; --burst-distance: -30px; }
.life-loss-effect > i:nth-of-type(5) { --burst-angle: 183deg; --burst-distance: -35px; } .life-loss-effect > i:nth-of-type(6) { --burst-angle: 227deg; --burst-distance: -29px; }
.life-loss-effect > i:nth-of-type(7) { --burst-angle: 276deg; --burst-distance: -36px; } .life-loss-effect > i:nth-of-type(8) { --burst-angle: 321deg; --burst-distance: -31px; }
.life-loss-effect.active { visibility: visible; animation: life-loss-visibility .74s linear both; }
.life-loss-effect.active .heart-half-left { animation: heart-half-left-break .68s cubic-bezier(.16,.68,.2,1) both; }
.life-loss-effect.active .heart-half-right { animation: heart-half-right-break .68s cubic-bezier(.16,.68,.2,1) both; }
.life-loss-effect.active > i { animation: heart-loss-particle .58s cubic-bezier(.16,.72,.2,1) both; }
@keyframes life-hud-hit { 0%,100% { filter: drop-shadow(0 9px 9px rgba(0,0,0,.48)); } 18% { filter: drop-shadow(0 0 18px #ff3957) brightness(1.7); } 42% { filter: drop-shadow(-5px 2px 10px rgba(255,40,72,.85)) brightness(.82); } }
@keyframes life-survivor-pulse { 0% { filter: brightness(2.1); } 45% { filter: brightness(.72); } 100% { filter: brightness(1); } }
@keyframes life-loss-visibility { 0%,72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes heart-half-left-break { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.5); } 14% { opacity: 1; transform: translate(-50%,-50%) scale(1.35); } 100% { opacity: 0; transform: translate(-86%,-20%) rotate(-28deg) scale(.72); } }
@keyframes heart-half-right-break { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.5); } 14% { opacity: 1; transform: translate(-50%,-50%) scale(1.35); } 100% { opacity: 0; transform: translate(-9%,-8%) rotate(31deg) scale(.72); } }
@keyframes heart-loss-particle { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--burst-angle)) translateY(-4px) scale(.4); } 16% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--burst-angle)) translateY(var(--burst-distance)) scale(.12); } }

.top-actions { display: flex; gap: 7px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.035); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .15s ease; }
.icon-button:hover { border-color: rgba(85,242,194,.45); background: rgba(85,242,194,.07); }
.icon-button:active { transform: scale(.94); }
.pause-button span { display: flex; gap: 5px; }
.pause-button span i { display: block; width: 4px; height: 15px; background: currentColor; }
.pause-button.is-paused span i:first-child { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid currentColor; background: transparent; }
.pause-button.is-paused span i:last-child { display: none; }
.settings-button > i { position: relative; width: 17px; height: 17px; display: block; border: 3px dotted currentColor; border-radius: 50%; }
.settings-button > i::after { content: ""; position: absolute; inset: 3px; border: 1px solid currentColor; border-radius: 50%; }
.skill-button > span { position: relative; width: 22px; height: 19px; display: block; }
.skill-button > span::before, .skill-button > span::after { content: ""; position: absolute; background: currentColor; opacity: .75; }
.skill-button > span::before { left: 10px; top: 3px; width: 2px; height: 13px; }
.skill-button > span::after { left: 4px; top: 9px; width: 14px; height: 2px; }
.skill-button span i { position: absolute; width: 7px; height: 7px; border: 2px solid currentColor; border-radius: 50%; background: #0c1113; }
.skill-button span i:nth-child(1) { left: 7px; top: 0; }
.skill-button span i:nth-child(2) { left: 0; bottom: 0; }
.skill-button span i:nth-child(3) { right: 0; bottom: 0; }

.basket-panel { position: absolute; z-index: 12; top: 82px; right: 0; bottom: 0; width: 330px; padding: 20px 16px 16px; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(14px); transform: translateX(103%); transition: transform .3s cubic-bezier(.2,.85,.2,1); }
.basket-panel.open { transform: translateX(0); }
.panel-heading { display: flex; justify-content: space-between; align-items: end; padding: 0 6px 15px; }
.eyebrow { color: var(--mint); font-size: 8px; line-height: 1; font-weight: 900; }
.panel-heading h2 { margin: 5px 0 0; font-size: 18px; }
.panel-heading > strong { color: var(--yellow); font-size: 23px; font-variant-numeric: tabular-nums; }
.pool-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #34423e transparent; }
.pool-item { min-height: 52px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; padding: 7px 6px; border-top: 1px solid rgba(255,255,255,.055); }
.pool-item:first-child { border-top: 0; }
.pool-fruit { position: relative; width: 29px; height: 29px; border-radius: 50%; background: var(--fruit); box-shadow: 0 0 10px color-mix(in srgb, var(--fruit) 65%, transparent); }
.pool-fruit::before { content: ""; position: absolute; left: 13px; top: -5px; width: 11px; height: 7px; border-radius: 100% 0 100% 0; background: var(--leaf, #7ee359); transform: rotate(-18deg); }
.pool-fruit::after { content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.58); transform: rotate(-30deg); }
.pool-item h3 { margin: 0; font-size: 13px; }
.pool-item p { margin: 4px 0 0; overflow: hidden; color: #8a9995; font-size: 10px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.pool-item > strong { color: #98aaa5; font-size: 11px; }

.play-hud { position: absolute; z-index: 6; left: 28px; top: 106px; display: flex; align-items: center; gap: 18px; pointer-events: none; }
.combo-readout { width: 75px; opacity: .35; transform: translateY(3px); transition: opacity .18s ease, transform .18s ease; }
.combo-readout.active { opacity: 1; transform: translateY(0); }
.combo-readout > span { color: #7d8b88; font-size: 8px; font-weight: 800; }
.combo-readout strong { display: flex; align-items: flex-start; line-height: .9; }
.combo-readout b { font-size: 35px; font-weight: 900; font-variant-numeric: tabular-nums; }
.combo-readout small { margin: 4px 0 0 4px; color: var(--mint); font-size: 14px; }
.combo-readout.punch { animation: combo-punch .18s ease; }
@keyframes combo-punch { 50% { transform: scale(1.12) rotate(-2deg); } }
.event-banner { position: absolute; z-index: 9; top: 106px; left: 50%; width: 290px; padding: 11px 18px; text-align: center; border-top: 1px solid rgba(255,211,78,.65); border-bottom: 1px solid rgba(255,211,78,.22); background: rgba(8,12,14,.88); transform: translate(-50%, -190%); opacity: 0; pointer-events: none; transition: transform .32s ease, opacity .25s ease; }
.event-banner.visible { transform: translate(-50%, 0); opacity: 1; }
.event-banner span { display: block; color: var(--yellow); font-size: 7px; font-weight: 900; }
.event-banner strong { font-size: 15px; }
.basket-toggle { display: grid; }
.basket-toggle.active { color: #07110d; border-color: var(--mint); background: var(--mint); }
.basket-glyph { height: 17px; display: flex; align-items: end; gap: 3px; }
.basket-glyph i { width: 7px; border-radius: 50% 50% 45% 45%; background: currentColor; }
.basket-glyph i:nth-child(1) { height: 10px; }
.basket-glyph i:nth-child(2) { height: 17px; }
.basket-glyph i:nth-child(3) { height: 12px; }

.modal-layer { position: absolute; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; pointer-events: none; background: rgba(4, 7, 8, .67); backdrop-filter: blur(0); transition: opacity .26s ease, backdrop-filter .26s ease, visibility 0s linear .26s; }
.modal-layer.visible { visibility: visible; opacity: 1; pointer-events: auto; backdrop-filter: blur(9px); transition-delay: 0s; }
#skillTreeModal { z-index: 40; }
#settingsModal { z-index: 80; }
#skillTreeModal.visible, #realityModal.visible { background: rgba(4, 7, 8, .96); backdrop-filter: none; }
.game-shell.upgrade-screen > #gameCanvas,
.game-shell.upgrade-screen > .ambient-grid,
.game-shell.upgrade-screen > .vignette,
.game-shell.upgrade-screen > .topbar,
.game-shell.upgrade-screen > .life-readout,
.game-shell.upgrade-screen > .play-hud,
.game-shell.upgrade-screen > .event-banner,
.game-shell.upgrade-screen > .hit-milestone { display: none; }
#skillTreeModal.visible .skill-tree-panel, #realityModal.visible .reality-panel { isolation: isolate; }
.start-panel, .small-panel, .result-panel { width: min(430px, 100%); text-align: center; }
.start-panel h2 { margin: 7px 0 7px; font-size: 47px; line-height: 1; letter-spacing: 0; }
.start-panel > p { margin: 0 0 23px; color: #91a09c; font-size: 13px; }
.start-fruit { position: relative; width: 100px; height: 106px; margin: 0 auto 22px; filter: drop-shadow(0 0 18px rgba(255,88,113,.3)); }
.start-fruit i { position: absolute; display: block; }
.start-fruit .fruit-body { left: 10px; top: 19px; width: 76px; height: 78px; border-radius: 48% 52% 46% 46%; background: var(--coral); clip-path: polygon(50% 3%, 72% 0, 95% 22%, 100% 62%, 74% 98%, 50% 89%, 27% 100%, 2% 65%, 4% 25%, 28% 2%); }
.start-fruit .fruit-leaf { left: 51px; top: 4px; width: 40px; height: 23px; border-radius: 100% 0 100% 0; background: var(--lime); transform: rotate(-13deg); }
.start-fruit .fruit-cut { left: 47px; top: -10px; width: 6px; height: 128px; background: #fff; transform: rotate(40deg); box-shadow: 0 0 12px 2px white; }
.primary-button { min-width: 210px; min-height: 50px; padding: 0 22px; border: 0; color: #06110d; background: var(--mint); font-size: 12px; font-weight: 900; cursor: pointer; transition: filter .18s ease, transform .14s ease; }
.primary-button:hover { filter: brightness(1.1); }
.primary-button:active { transform: scale(.97); }
.start-panel .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; }
.start-panel h2 + .primary-button { margin-top: 16px; }
.start-panel .primary-button > i { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.run-record { margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #687672; font-size: 8px; }
.run-record strong { color: #a4b3af; font-size: 10px; }
.run-record i { width: 2px; height: 2px; margin: 0 4px; background: #61706c; }

.tutorial-modal { z-index: 25; }
.tutorial-panel { width: min(500px, 100%); padding: 25px 28px 27px; border: 1px solid rgba(85,242,194,.24); background: #0c1315; box-shadow: 0 26px 90px rgba(0,0,0,.58); }
.tutorial-heading { margin-bottom: 17px; }
.tutorial-heading h2 { margin: 5px 0 0; font-size: 28px; }
.tutorial-list { margin-bottom: 21px; border-top: 1px solid var(--line); }
.tutorial-row { min-height: 60px; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.tutorial-row kbd, .tutorial-gear { width: 58px; min-height: 28px; display: grid; place-items: center; border: 1px solid rgba(85,242,194,.34); color: var(--mint); background: rgba(85,242,194,.055); box-shadow: inset 0 -2px 0 rgba(85,242,194,.1); font-size: 9px; font-weight: 900; }
.tutorial-row strong, .tutorial-row small { display: block; }
.tutorial-row strong { font-size: 13px; }
.tutorial-row small { margin-top: 4px; color: #8e9d99; font-size: 10px; line-height: 1.4; }
.tutorial-language { min-height: 46px; margin: -8px 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #8e9d99; font-size: 10px; font-weight: 800; }
.tutorial-language select { min-width: 142px; height: 34px; padding: 0 34px 0 12px; border: 1px solid rgba(85,242,194,.28); border-radius: 4px; color: #dffcf3; background-color: #111a1c; font: inherit; font-size: 11px; cursor: pointer; }
.tutorial-language select:focus-visible { outline: 1px solid var(--mint); outline-offset: 3px; }
.tutorial-gear { position: relative; width: 30px; min-height: 30px; margin-left: 14px; border: 3px dotted var(--mint); border-radius: 50%; background: transparent; box-shadow: none; }
.tutorial-gear::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--mint); border-radius: 50%; }
.tutorial-panel .primary-button { width: 100%; }
.small-panel h2 { margin: 8px 0 24px; font-size: 37px; }

.settings-panel { width: min(440px, 100%); max-height: min(94vh, 720px); padding: 22px; overflow-y: auto; border: 1px solid var(--line); background: #0d1315; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.modal-heading h2 { margin: 5px 0 0; font-size: 24px; }
.close-button { width: 36px; height: 36px; border: 1px solid var(--line); color: #8d9b98; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.setting-row { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid var(--line); cursor: pointer; }
.setting-row strong { display: block; font-size: 13px; }
.setting-row small { display: block; margin-top: 4px; color: #72817d; font-size: 9px; }
.language-row { cursor: default; }
.language-row select { min-width: 132px; height: 34px; padding: 0 34px 0 12px; border: 1px solid rgba(85,242,194,.28); border-radius: 4px; color: #dffcf3; background-color: #111a1c; font: inherit; font-size: 11px; cursor: pointer; }
.language-row select:hover { border-color: rgba(85,242,194,.58); }
.language-row select:focus-visible { outline: 1px solid var(--mint); outline-offset: 3px; }
.setting-row input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.setting-row > i { position: relative; width: 42px; height: 23px; flex: 0 0 42px; border-radius: 12px; background: #26302e; transition: background .18s ease; }
.setting-row > i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #8c9996; transition: transform .18s ease, background .18s ease; }
.setting-row input:checked + i { background: rgba(85,242,194,.28); }
.setting-row input:checked + i::after { background: var(--mint); transform: translateX(19px); box-shadow: 0 0 9px rgba(85,242,194,.55); }
.volume-row { cursor: default; }
.redeem-row { align-items: flex-end; cursor: default; }
.redeem-control { width: min(220px, 58%); display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 5px; }
.redeem-control input { position: static; min-width: 0; height: 36px; padding: 0 9px; opacity: 1; pointer-events: auto; border: 1px solid rgba(255,255,255,.12); color: #eaf3f0; background: #091011; outline: none; font: 800 11px ui-monospace, Consolas, monospace; }
.redeem-control input:focus { border-color: rgba(85,242,194,.55); box-shadow: 0 0 0 1px rgba(85,242,194,.12); }
.redeem-control input.invalid { animation: redeem-invalid .34s steps(2,end); border-color: #ff5e6f; }
.redeem-control button { height: 36px; border: 1px solid rgba(85,242,194,.3); color: var(--mint); background: rgba(85,242,194,.05); font-size: 9px; font-weight: 900; cursor: pointer; }
.redeem-control button:hover { color: #06110d; background: var(--mint); }
@keyframes redeem-invalid { 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }
.volume-control { width: 190px; display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: center; gap: 11px; }
.volume-control output { color: #a8bbb6; font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.volume-control input[type="range"] { position: static; width: 100%; height: 18px; margin: 0; opacity: 1; pointer-events: auto; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.volume-control input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, rgba(85,242,194,.82), rgba(255,79,216,.72)); }
.volume-control input[type="range"]::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5.5px; border: 2px solid #08100e; border-radius: 50%; background: #eafff8; box-shadow: 0 0 10px rgba(85,242,194,.6); -webkit-appearance: none; }
.volume-control input[type="range"]::-moz-range-track { height: 3px; background: rgba(85,242,194,.52); }
.volume-control input[type="range"]::-moz-range-progress { height: 3px; background: #55f2c2; }
.volume-control input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid #08100e; border-radius: 50%; background: #eafff8; box-shadow: 0 0 10px rgba(85,242,194,.6); }
.volume-control input[type="range"]:focus-visible { outline: 1px solid var(--mint); outline-offset: 4px; }
.performance-note { min-height: 43px; display: flex; align-items: center; gap: 8px; color: #5f706b; border-top: 1px solid var(--line); font-size: 8px; }
.performance-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 6px var(--lime); }

.skill-tree-panel { width: min(1180px, 96vw); height: min(810px, 92vh); padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); background: #0b1113; box-shadow: 0 25px 100px rgba(0,0,0,.55); overflow: hidden; }
.tree-heading { display: flex; justify-content: space-between; align-items: flex-end; flex: 0 0 auto; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.tree-heading h2 { margin: 6px 0 4px; font-size: 28px; }
.tree-heading p { margin: 0; color: #7f8e8a; font-size: 11px; }
.tree-heading p strong { color: var(--mint); font-size: 13px; }
.tree-points { min-width: 130px; padding: 10px 14px; text-align: right; border: 1px solid rgba(255,211,78,.25); background: rgba(255,211,78,.045); }
.tree-points span { display: block; color: #8c9996; font-size: 9px; }
.tree-points strong { display: block; margin-top: 3px; color: var(--yellow); font-size: 24px; font-variant-numeric: tabular-nums; }
.tree-root { position: relative; width: 210px; min-height: 54px; margin: 17px auto 9px; display: flex; align-items: center; justify-content: center; gap: 11px; flex: 0 0 auto; border: 1px solid rgba(255,211,78,.35); background: rgba(255,211,78,.055); }
.tree-root::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 1px; height: 10px; background: rgba(255,211,78,.45); }
.root-symbol { width: 22px; height: 22px; border: 2px solid var(--yellow); transform: rotate(45deg); box-shadow: 0 0 10px rgba(255,211,78,.3); }
.tree-root strong, .tree-root small { display: block; }
.tree-root strong { font-size: 12px; }
.tree-root small { margin-top: 3px; color: #798783; font-size: 8px; }
.skill-tree { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; overflow-y: auto; padding: 0 3px 12px; scrollbar-width: thin; scrollbar-color: #35433f transparent; }
.tree-branch { --branch: var(--mint); position: relative; min-width: 0; padding: 0 8px 8px; }
.tree-branch::before { content: ""; position: absolute; left: 34px; top: 52px; bottom: 25px; width: 1px; background: color-mix(in srgb, var(--branch) 38%, transparent); }
.branch-heading { position: relative; z-index: 1; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--branch); }
.branch-mark { width: 16px; height: 16px; border: 2px solid currentColor; transform: rotate(45deg); background: #0b1113; box-shadow: 0 0 9px color-mix(in srgb, var(--branch) 38%, transparent); }
.branch-heading strong { display: block; font-size: 13px; }
.branch-heading small { display: block; margin-top: 3px; color: #71807c; font-size: 8px; }
.skill-node { position: relative; z-index: 1; width: 100%; min-height: 88px; margin: 0 0 9px; padding: 12px 12px 11px 48px; display: block; text-align: left; border: 1px solid rgba(255,255,255,.09); color: #eaf0ee; background: #101719; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.skill-node::before { content: ""; position: absolute; left: 24px; top: 50%; width: 10px; height: 1px; background: color-mix(in srgb, var(--branch) 42%, transparent); transform: translate(-100%, -50%); }
.skill-node:hover:not(:disabled) { border-color: color-mix(in srgb, var(--branch) 50%, transparent); background: color-mix(in srgb, var(--branch) 7%, #101719); transform: translateY(-2px); }
.skill-node:active:not(:disabled) { transform: scaleX(1.025) scaleY(.96); }
.skill-node.locked { opacity: .4; cursor: default; }
.skill-node.can-buy { border-color: color-mix(in srgb, var(--branch) 48%, transparent); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--branch) 70%, transparent); }
.skill-node.maxed { border-color: color-mix(in srgb, var(--branch) 58%, transparent); background: color-mix(in srgb, var(--branch) 9%, #101719); cursor: default; }
.skill-node h3 { margin: 0; font-size: 13px; }
.skill-node p { min-height: 26px; margin: 5px 0 8px; color: #8b9995; font-size: 10px; line-height: 1.35; }
.node-cost { display: flex; align-items: center; gap: 6px; color: var(--yellow); font-size: 10px; font-weight: 900; }
.node-cost i { width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg); }
.skill-node.locked .node-cost { color: #68736f; }
.skill-node.maxed .node-cost { color: var(--branch); }
.tree-footer { flex: 0 0 auto; min-height: 67px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.tree-footer > span { color: #71807c; font-size: 9px; }
.skill-node.learn-pop { animation: node-learn .44s cubic-bezier(.2,1.4,.35,1); }
@keyframes node-learn { 35% { transform: scaleX(1.06) scaleY(.9); } 70% { transform: scaleX(.97) scaleY(1.06) translateY(-3px); } }

.shop-panel { width: min(1020px, 96vw); padding: 24px; border: 1px solid var(--line); background: #0c1214; box-shadow: 0 25px 90px rgba(0,0,0,.5); }
.shop-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 19px; }
.shop-heading h2 { margin: 6px 0 3px; font-size: 27px; }
.shop-heading p { margin: 0; color: #71817c; font-size: 10px; }
.shop-heading p strong { color: var(--yellow); }
.shop-wallet { height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid rgba(255,211,78,.24); background: rgba(255,211,78,.05); }
.shop-wallet strong { color: var(--yellow); font-size: 20px; font-variant-numeric: tabular-nums; }
.offer-grid { display: grid; grid-template-columns: repeat(var(--slots, 3), minmax(0, 1fr)); gap: 10px; }
.offer-card { position: relative; min-width: 0; min-height: 270px; padding: 14px; display: flex; flex-direction: column; align-items: stretch; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.025); text-align: left; overflow: hidden; transform-origin: center bottom; }
.offer-card[data-rarity="uncommon"] { border-color: rgba(85,242,194,.25); }
.offer-card[data-rarity="rare"] { border-color: rgba(101,167,255,.35); }
.offer-card[data-rarity="legendary"] { border-color: rgba(255,211,78,.4); }
.offer-preview { width: 100%; height: 105px; display: block; }
.rarity { align-self: flex-start; margin: 0 0 8px; color: #879691; font-size: 9px; font-weight: 900; }
.offer-card[data-rarity="uncommon"] .rarity { color: var(--mint); }
.offer-card[data-rarity="rare"] .rarity { color: var(--blue); }
.offer-card[data-rarity="legendary"] .rarity { color: var(--yellow); }
.offer-card h3 { margin: 0; font-size: 17px; }
.offer-card p { flex: 1; min-height: 34px; margin: 7px 0 13px; color: #93a19d; font-size: 11px; line-height: 1.5; }
.buy-button { width: 100%; height: 37px; display: flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid rgba(255,211,78,.25); color: var(--yellow); background: rgba(255,211,78,.05); font-size: 10px; font-weight: 900; cursor: pointer; }
.buy-button .coin-icon { width: 12px; height: 12px; border-width: 2px; box-shadow: none; }
.buy-button:hover:not(:disabled) { color: #10130b; background: var(--yellow); }
.buy-button:disabled { color: #59635f; border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.025); cursor: default; }
.offer-card.bought::after { content: "已加入"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--mint); background: rgba(7,12,12,.83); font-size: 16px; font-weight: 900; animation: bought-stamp .42s cubic-bezier(.2,1.35,.35,1) both; }
.offer-card.purchase-pop { animation: purchase-pop .48s cubic-bezier(.2,1.45,.35,1); }
.offer-grid.refresh-out .offer-card { animation: refresh-out .16s ease-in both; }
.offer-grid.refresh-in .offer-card { animation: refresh-in .42s cubic-bezier(.2,1.35,.35,1) both; }
.offer-grid.refresh-in .offer-card:nth-child(2) { animation-delay: .035s; }
.offer-grid.refresh-in .offer-card:nth-child(3) { animation-delay: .07s; }
.offer-grid.refresh-in .offer-card:nth-child(4) { animation-delay: .105s; }
.offer-grid.refresh-in .offer-card:nth-child(5) { animation-delay: .14s; }
@keyframes purchase-pop { 0% { transform: scale(1); } 35% { transform: scaleX(1.08) scaleY(.88); } 68% { transform: scaleX(.96) scaleY(1.07) translateY(-5px); } 100% { transform: scale(1); } }
@keyframes bought-stamp { 0% { opacity: 0; transform: scale(.72); } 65% { opacity: 1; transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes refresh-out { to { opacity: 0; transform: scaleX(1.08) scaleY(.78) translateY(12px); } }
@keyframes refresh-in { 0% { opacity: 0; transform: scaleX(.84) scaleY(1.18) translateY(-16px); } 68% { opacity: 1; transform: scaleX(1.04) scaleY(.96) translateY(3px); } 100% { opacity: 1; transform: scale(1); } }
.shop-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.shop-footer > span { color: #71807c; font-size: 9px; }
.shop-actions { display: flex; align-items: center; gap: 9px; }
.refresh-button { height: 50px; min-width: 112px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.13); color: #d5dfdc; background: rgba(255,255,255,.035); font-size: 11px; font-weight: 800; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.refresh-button:hover:not(:disabled) { border-color: rgba(85,242,194,.45); background: rgba(85,242,194,.07); }
.refresh-button:active:not(:disabled) { transform: scaleX(1.07) scaleY(.9); }
.refresh-button:disabled { color: #59635f; cursor: default; }
.refresh-button.refresh-pop { animation: refresh-button-pop .42s cubic-bezier(.2,1.4,.35,1); }
.refresh-glyph { color: var(--mint); font-size: 19px; line-height: 1; }
.refresh-button small { display: flex; align-items: center; gap: 3px; color: var(--yellow); font-size: 9px; }
.refresh-button .coin-icon { width: 10px; height: 10px; border-width: 2px; box-shadow: none; }
@keyframes refresh-button-pop { 35% { transform: scaleX(1.1) scaleY(.86); } 68% { transform: scaleX(.96) scaleY(1.08); } }

.result-panel { max-width: 390px; }
.result-symbol { width: 70px; height: 70px; margin: 0 auto 21px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; color: var(--coral); font-size: 39px; box-shadow: 0 0 28px rgba(255,88,113,.2); }
.win-panel .result-symbol { color: var(--yellow); font-size: 25px; }
.result-panel h2 { margin: 8px 0 18px; font-size: 39px; }
.result-score { margin-bottom: 22px; }
.result-score span { display: block; color: #73817e; font-size: 9px; }
.result-score strong { display: block; margin-top: 5px; font-size: 21px; font-variant-numeric: tabular-nums; }
.text-button { display: block; margin: 13px auto 0; border: 0; color: #778581; background: transparent; font-size: 10px; cursor: pointer; }
.text-button:hover { color: white; }

.toast { position: absolute; z-index: 96; left: 50%; bottom: 30px; min-width: 190px; padding: 11px 17px; text-align: center; color: #dffff5; border: 1px solid rgba(85,242,194,.34); background: rgba(11,18,18,.94); font-size: 10px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-height: 720px) and (min-width: 821px) {
  .topbar { height: 70px; }
  .basket-panel { top: 70px; padding-top: 13px; }
  .pool-item { min-height: 45px; }
  .play-hud, .event-banner { top: 91px; }
  .offer-card { min-height: 220px; }
  .offer-preview { height: 78px; }
}

@media (max-width: 1050px) and (min-width: 821px) {
  .topbar { grid-template-columns: 180px 100px minmax(180px, 1fr) 78px 62px auto; padding-left: 12px; padding-right: 12px; gap: 9px; }
  .brand-block h1 { font-size: 15px; }
  .score-copy { gap: 14px; }
}

@media (max-width: 820px) {
  .coin-block { display: none; }
  .game-shell { min-height: 0; max-height: 100dvh; }
  .topbar { height: 72px; grid-template-columns: 55px minmax(70px,1fr) 44px 116px; gap: 6px; padding: max(8px, env(safe-area-inset-top)) 7px 7px; }
  .brand-block, .coin-block small, .top-actions .settings-button { display: none; }
  .day-block { padding-left: 0; border-left: 0; }
  .day-block > span { font-size: 7px; }
  .day-block strong { font-size: 11px; }
  .day-block b { font-size: 16px; }
  .score-block { max-width: none; }
  .score-copy { grid-template-columns: 1fr; gap: 0; }
  .score-copy span:last-child { display: none; }
  .score-copy small { font-size: 7px; }
  .score-copy strong { font-size: 14px; }
  .coin-block { grid-template-columns: 17px 1fr; column-gap: 5px; padding-left: 6px; }
  .coin-block .coin-icon { width: 15px; height: 15px; border-width: 2px; }
  .coin-block strong { font-size: 14px; }
  .timer-block { width: 46px; height: 46px; }
  .timer-ring { width: 40px; height: 40px; }
  .timer-ring strong { font-size: 13px; }
  .top-actions { display: flex; gap: 5px; }
  .top-actions .icon-button, .pause-button, .basket-toggle { width: 34px; height: 34px; }

  .basket-panel { top: 72px; right: 0; bottom: 0; width: min(340px, 88vw); height: auto; padding: 19px 14px max(15px, env(safe-area-inset-bottom)); border-left: 1px solid var(--line); border-top: 0; transform: translateX(103%); }
  .basket-panel.open { transform: translateX(0); }
  .pool-list { display: block; }
  .basket-toggle { width: 38px; height: 38px; }
  .play-hud { left: 14px; top: 89px; gap: 7px; }
  .combo-readout { width: 60px; }
  .combo-readout b { font-size: 30px; }
  .event-banner { top: 82px; left: 50%; width: min(285px, calc(100% - 26px)); }
  .toast { left: 50%; bottom: 85px; }

  .start-panel h2 { font-size: 39px; }
  .start-fruit { transform: scale(.86); margin-bottom: 13px; }
  .settings-panel { padding: 18px; }
  .settings-panel, .compendium-scroll, .reality-panel { overscroll-behavior: contain; touch-action: pan-y; }
  .pc-only { display: none; }
  .skill-tree-panel { width: 96vw; height: 94vh; padding: 16px 13px; }
  .tree-heading h2 { font-size: 22px; }
  .tree-points { min-width: 104px; padding: 8px 10px; }
  .tree-points strong { font-size: 19px; }
  .tree-root { margin-top: 12px; }
  .skill-tree { grid-template-columns: 1fr; gap: 8px; }
  .tree-branch { padding-bottom: 2px; }
  .skill-node { min-height: 78px; }
  .tree-footer { position: sticky; bottom: 0; background: #0b1113; }
  .tree-footer > span { display: none; }
  .tree-footer { justify-content: flex-end; }
  .tree-footer .primary-button { width: min(220px, 100%); min-width: 0; }
  .shop-panel { max-height: 90vh; overflow-y: auto; padding: 18px 14px; }
  .shop-heading { margin-bottom: 13px; }
  .shop-heading h2 { font-size: 22px; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-card { min-height: 224px; padding: 11px; }
  .offer-preview { height: 72px; }
  .offer-card h3 { font-size: 15px; }
  .offer-card p { font-size: 10px; line-height: 1.45; }
  .shop-footer { position: sticky; bottom: -18px; padding: 12px 0 18px; background: #0c1214; }
  .shop-footer .primary-button { min-width: 150px; }
  .vignette { box-shadow: inset 0 0 85px 8px rgba(0,0,0,.78); }
}

@media (max-width: 420px) {
  .topbar { grid-template-columns: 54px minmax(80px,1fr) 41px 124px; gap: 5px; padding-left: 6px; padding-right: 6px; }
  .score-copy strong { font-size: 12px; }
  .offer-card { min-height: 196px; padding: 9px; }
  .offer-card h3 { font-size: 13px; }
  .offer-card p { font-size: 8px; }
  .shop-heading p { display: none; }
  .shop-footer > span { display: none; }
  .shop-footer { justify-content: center; }
}

@media (pointer: coarse) { .pc-only { display: none; } }
@media (pointer: coarse) { .desktop-tutorial-only { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Radial progression and compendium */
.compendium-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #35433f transparent; }
.compendium-scroll .pool-list { display: block; overflow: visible; }
.compendium-fruit { min-height: 78px; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; padding: 9px 6px; align-items: center; }
.compendium-fruit .fruit-preview { width: 58px; height: 58px; display: block; }
.compendium-fruit h3 { font-size: 14px; }
.compendium-fruit p { margin-top: 5px; overflow: visible; color: #9baca7; font-size: 11px; line-height: 1.5; white-space: normal; text-overflow: clip; }
.patch-researcher-note { display: block; margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(255,94,111,.24); color: #aeb9b5; font-size: 9px; line-height: 1.55; }
.patch-researcher-note b { display: block; margin-bottom: 4px; color: #ff8191; font: 900 8px/1.2 ui-monospace, Consolas, monospace; }
.patch-researcher-note q { display: block; quotes: none; }
.compendium-recipe-link { display: inline-flex; align-items: center; gap: 3px; margin-left: 3px; color: #ffd86a; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.compendium-recipe-link:hover { color: #fff1b0; }
.compendium-recipe-link:focus-visible { outline: 1px solid #ffd86a; outline-offset: 3px; }
.compendium-recipe-link span { font-size: 9px; }
.upgrade-settings-button { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); color: #b8c5c1; background: rgba(255,255,255,.025); cursor: pointer; }
.upgrade-settings-button:hover { color: var(--mint); border-color: rgba(85,242,194,.48); background: rgba(85,242,194,.07); }
.upgrade-settings-button:active { transform: scale(.94); }
.reality-heading-actions { display: flex; align-items: stretch; gap: 8px; }
.compendium-fruit > strong { align-self: start; margin-top: 7px; font-size: 10px; }
.pool-item.locked { filter: saturate(.1); opacity: .44; }
.pool-item.locked .pool-fruit { background: #39413f; box-shadow: none; }
.pool-item.locked .pool-fruit::before, .pool-item.locked .pool-fruit::after { display: none; }
.pool-item .fruit-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.pool-item .fruit-meta small { color: #64726e; font-size: 8px; }
.glossary-panel { margin: 14px 4px 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.glossary-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.glossary-heading span { color: #c7d2ce; font-size: 10px; font-weight: 800; }
.glossary-heading strong { color: #61706b; font-size: 8px; font-weight: 700; }
.glossary-list { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 10px; }
.term { position: relative; color: inherit; text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: var(--mint); text-underline-offset: 3px; cursor: help; }
.term-chip { padding: 5px 7px; color: #a9b8b3; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025); font-size: 9px; }
.floating-term-tooltip { position: fixed; z-index: 1000; width: min(240px, calc(100vw - 16px)); padding: 10px 11px; color: #e3eeeb; border: 1px solid rgba(85,242,194,.38); background: #111a1b; box-shadow: 0 12px 34px rgba(0,0,0,.55); font-size: 10px; line-height: 1.55; text-align: left; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .14s ease, transform .14s ease; }
.floating-term-tooltip.visible { opacity: 1; transform: translateY(0); }
.combo-readout.locked { opacity: .18; }

.skill-tree-viewport { flex: 1; min-height: 0; overflow: auto; border-top: 1px solid rgba(255,255,255,.045); border-bottom: 1px solid rgba(255,255,255,.045); scrollbar-width: thin; scrollbar-color: #35433f transparent; }
.skill-tree-panel .tree-root { display: none; }
.skill-tree-panel .skill-tree {
  position: relative; display: block; flex: none; width: 1800px; height: 1450px; padding: 0; overflow: hidden;
  background-image: radial-gradient(circle at center, transparent 0 99px, rgba(255,255,255,.045) 100px 101px, transparent 102px 174px, rgba(255,255,255,.035) 175px 176px, transparent 177px 249px, rgba(255,255,255,.03) 250px 251px, transparent 252px 324px, rgba(255,255,255,.026) 325px 326px, transparent 327px);
}
.tree-connections { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tree-center { position: absolute; z-index: 2; left: 50%; top: 50%; width: 132px; height: 70px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(255,211,78,.48); background: #171911; transform: translate(-50%, -50%); box-shadow: 0 0 22px rgba(255,211,78,.11); }
.tree-center .root-symbol { width: 19px; height: 19px; }
.tree-center strong, .tree-center small { display: block; }
.tree-center strong { font-size: 11px; }
.tree-center small { margin-top: 3px; color: #77837f; font-size: 7px; }
.skill-tree-panel .skill-node { position: absolute; z-index: 2; width: 158px; min-height: 82px; margin: 0; padding: 11px 9px 10px 43px; transform: translate(-50%, -50%); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.skill-tree-panel .skill-node::before { display: none; }
.skill-tree-panel .skill-node:hover:not(:disabled) { transform: translate(-50%, calc(-50% - 3px)); }
.skill-tree-panel .skill-node:active:not(:disabled) { transform: translate(-50%, -50%) scaleX(1.035) scaleY(.94); }
.node-branch { display: block; margin-bottom: 3px; color: var(--branch); font-size: 7px; font-weight: 900; }
.skill-tree-panel .skill-node h3 { font-size: 12px; }
.skill-tree-panel .skill-node p { min-height: 24px; margin: 4px 0 6px; font-size: 9px; }
.skill-tree-panel .skill-node.revealed { animation: node-reveal .42s cubic-bezier(.2,1.35,.35,1) both; }
@keyframes node-reveal { from { opacity: 0; transform: translate(-50%, -50%) scale(.68); } 70% { transform: translate(-50%, -50%) scale(1.05); } }

@media (min-width: 821px) {
  .basket-panel { width: 370px; }
}

@media (max-width: 820px) {
  .skill-tree-panel .skill-tree { width: 1800px; height: 1450px; }
  .skill-tree-viewport { margin-left: -1px; }
  .skill-tree-panel .skill-node { width: 158px; }
  .compendium-fruit { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .compendium-fruit .fruit-preview { width: 52px; height: 52px; }
}

/* Central HIT reactor */
.play-hud { z-index: auto; inset: 82px 0 0; display: grid; place-items: center; pointer-events: none; }
.combo-orbit { --heat-color: #55f2c2; --accent-color: #55f2c2; position: relative; width: 420px; height: 420px; transform: translateY(2%); }
#comboWaveCanvas { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; }
.combo-readout { position: absolute; z-index: 3; left: 50%; top: 50%; width: 112px; height: 112px; display: grid; place-content: center; justify-items: center; isolation: isolate; border: 1px solid color-mix(in srgb, var(--heat-color) 58%, transparent); border-radius: 50%; color: var(--heat-color); background: rgba(7,12,13,.84); box-shadow: inset 0 0 25px rgba(0,0,0,.72), 0 0 22px color-mix(in srgb, var(--heat-color) 18%, transparent); opacity: .82; transform: translate(-50%, -50%); transition: color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease; }
.combo-readout::before, .combo-readout::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .24s ease, border-color .24s ease, box-shadow .24s ease; }
.combo-readout::before { inset: -14px; border: 1px solid transparent; border-top-color: var(--accent-color); border-right-color: color-mix(in srgb, var(--heat-color) 70%, transparent); border-bottom-color: var(--accent-color); box-shadow: 0 0 12px color-mix(in srgb, var(--accent-color) 35%, transparent); }
.combo-readout::after { inset: -24px; border: 1px solid color-mix(in srgb, var(--heat-color) 22%, transparent); box-shadow: inset 0 0 17px color-mix(in srgb, var(--accent-color) 13%, transparent), 0 0 18px color-mix(in srgb, var(--heat-color) 12%, transparent); }
.combo-orbit.charged .combo-readout { box-shadow: inset 0 0 27px rgba(0,0,0,.74), 0 0 25px color-mix(in srgb, var(--heat-color) 29%, transparent), 0 0 46px color-mix(in srgb, var(--accent-color) 12%, transparent); }
.combo-orbit.charged .combo-readout::before { opacity: .48; animation: reactor-orbit 5.8s linear infinite; }
.combo-orbit.overdrive .combo-readout::before { opacity: .78; animation-duration: 3.5s; box-shadow: 0 0 15px color-mix(in srgb, var(--accent-color) 48%, transparent); }
.combo-orbit.overdrive .combo-readout::after { opacity: .48; animation: reactor-counter-orbit 7s linear infinite; }
.combo-orbit.hyper .combo-readout { border-color: color-mix(in srgb, var(--accent-color) 74%, white 10%); box-shadow: inset 0 0 28px rgba(0,0,0,.76), 0 0 28px color-mix(in srgb, var(--heat-color) 42%, transparent), 0 0 64px color-mix(in srgb, var(--accent-color) 23%, transparent); }
.combo-orbit.hyper .combo-readout::before { opacity: 1; animation-duration: 2.2s; }
.combo-orbit.hyper .combo-readout::after { opacity: .75; animation-duration: 4.4s; }
.combo-orbit.transcendent .combo-readout { border-color: color-mix(in srgb, #5cf4ff 58%, #ffe56b); box-shadow: inset 0 0 28px rgba(0,0,0,.78), 0 0 24px color-mix(in srgb, #5cf4ff 38%, transparent), 0 0 52px color-mix(in srgb, #ffe56b 16%, transparent); }
.combo-orbit.transcendent .combo-readout::before { border-left-color: #ffe56b; animation-duration: 1.75s; }
.combo-orbit.singularity .combo-readout { color: #ffe56b; border-color: color-mix(in srgb, #ffe56b 72%, white 10%); box-shadow: inset 0 0 30px rgba(0,0,0,.8), 0 0 28px color-mix(in srgb, #ffe56b 35%, transparent), 0 0 58px color-mix(in srgb, #ff62bd 17%, transparent); }
.combo-orbit.singularity .combo-readout::after { border-color: color-mix(in srgb, #ff62bd 42%, transparent); animation-duration: 3.2s; }
.combo-orbit.limitbreak .combo-readout { color: #ff7ccc; border-color: color-mix(in srgb, #ff62bd 78%, white 12%); box-shadow: inset 0 0 31px rgba(0,0,0,.82), 0 0 30px color-mix(in srgb, #ff62bd 38%, transparent), 0 0 62px color-mix(in srgb, #5cf4ff 18%, transparent); }
.combo-orbit.limitbreak .combo-readout::before { animation-duration: 1.2s; }
.combo-orbit.limitbreak .combo-readout::after { animation-duration: 2.45s; }
@keyframes reactor-orbit { to { transform: rotate(1turn); } }
@keyframes reactor-counter-orbit { to { transform: rotate(-1turn) scale(1.035); } }
.combo-readout.active { opacity: 1; transform: translate(-50%, -50%); }
.combo-readout.locked { opacity: .32; }
.combo-readout > span { color: currentColor; font-size: 10px; font-weight: 900; letter-spacing: 0; }
.combo-readout strong { display: block; margin-top: 1px; line-height: .88; }
.combo-readout b { color: #f7fbf9; font-size: 43px; text-shadow: 0 0 14px color-mix(in srgb, var(--heat-color) 65%, transparent); }
.combo-readout > small { margin-top: 6px; color: currentColor; font-size: 12px; font-weight: 900; }
.combo-time-track { width: 62px; height: 3px; margin-top: 8px; overflow: hidden; background: rgba(255,255,255,.1); }
.combo-time-track i { display: block; width: 0; height: 100%; background: currentColor; box-shadow: 0 0 8px currentColor; transition: width .07s linear; }
.combo-readout.punch { animation: center-hit-punch .2s cubic-bezier(.2,1.5,.35,1); }
@keyframes center-hit-punch { 45% { transform: translate(-50%, -50%) scale(1.14); } }

.score-copy strong { font-size: 20px; }
.score-copy small, .day-block > span, .coin-block small { font-size: 9px; }
.score-copy span:first-child strong.score-punch { animation: score-punch .22s cubic-bezier(.2,1.5,.35,1); }
@keyframes score-punch { 45% { transform: scale(1.18) translateY(-1px); filter: brightness(1.5); } }
.timer-block.urgent { color: #ff6b78; animation: urgent-time .42s ease-in-out infinite alternate; }
@keyframes urgent-time { from { transform: translateX(-1px) scale(.98); filter: drop-shadow(0 0 5px rgba(255,70,86,.4)); } to { transform: translateX(2px) scale(1.07); filter: drop-shadow(0 0 15px rgba(255,70,86,.85)); } }

/* Day settlement */
.day-result-modal { z-index: 24; background: rgba(4,7,8,.52); }
.day-result-panel { width: min(500px, 92vw); padding: 30px 34px 28px; border-top: 1px solid rgba(255,211,78,.62); border-bottom: 1px solid rgba(255,211,78,.22); background: rgba(10,15,16,.94); box-shadow: 0 28px 100px rgba(0,0,0,.6); text-align: center; }
.day-result-panel h2 { margin: 7px 0 19px; font-size: 34px; }
.result-total { padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.result-total span { display: block; color: #83918e; font-size: 11px; }
.result-score-line { min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 5px; }
.result-total strong { display: block; color: var(--yellow); font-size: 38px; font-variant-numeric: tabular-nums; }
.new-record-badge { position: relative; padding: 3px 7px 3px 14px; color: #5cf4ff; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: 0; text-shadow: 0 0 8px currentColor; }
.new-record-badge::before { content: ""; position: absolute; left: 3px; top: 50%; width: 6px; height: 6px; border: 1px solid currentColor; transform: translateY(-50%) rotate(45deg); box-shadow: 0 0 7px currentColor; }
.new-record-badge[hidden] { display: none; }
.day-result-modal.visible .new-record-badge:not([hidden]) { animation: record-badge-in .55s cubic-bezier(.2,1.4,.3,1) .18s both; }
@keyframes record-badge-in { from { opacity: 0; transform: translateX(-6px) scale(.82); } to { opacity: 1; transform: translateX(0) scale(1); } }
.result-stats { padding: 8px 0; }
.result-stat { min-height: 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.055); opacity: 0; transform: translateY(11px); }
.day-result-modal.visible .result-stat { animation: result-row-in .42s cubic-bezier(.2,1.2,.35,1) forwards; }
.day-result-modal.visible .result-stat:nth-child(2) { animation-delay: .2s; }
.day-result-modal.visible .result-stat:nth-child(3) { animation-delay: .4s; }
.day-result-modal.visible .result-stat:nth-child(4) { animation-delay: .6s; }
.result-stat span { color: #8d9c98; font-size: 12px; }
.result-stat strong { color: #eef5f2; font-size: 16px; font-variant-numeric: tabular-nums; }
.result-stat[hidden] { display: none; }
.result-stat-value { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.new-record-badge.compact { padding: 2px 5px 2px 11px; font-size: 7px; }
.new-record-badge.compact::before { left: 2px; width: 5px; height: 5px; }
@keyframes result-row-in { to { opacity: 1; transform: translateY(0); } }

/* Pan-and-zoom radial tree */
.skill-tree-panel { width: min(1440px, 98vw); height: min(920px, 96vh); padding: 22px 24px; }
.skill-tree-viewport { position: relative; overflow: clip; margin-left: 0; cursor: grab; touch-action: none; overscroll-behavior: none; scrollbar-width: none; user-select: none; }
.skill-tree-viewport.dragging { cursor: grabbing; }
.skill-tree-panel .skill-tree { width: 2700px; height: 2300px; overflow: visible; contain: layout paint style; transform-origin: 0 0; will-change: transform; background-image: none; }
.skill-tree-panel .skill-tree.camera-transition { transition: transform .42s cubic-bezier(.2,.82,.22,1); }
.skill-tree-panel .skill-node { width: 184px; min-height: 94px; padding: 13px 11px 12px 48px; }
.skill-tree-panel .skill-node h3 { font-size: 14px; }
.skill-tree-panel .skill-node p { min-height: 28px; font-size: 11px; line-height: 1.42; }
.skill-tree-panel .node-branch { font-size: 8px; }
.skill-tree-panel .node-cost { font-size: 11px; }
.tree-center { width: 150px; height: 78px; }
.tree-center strong { font-size: 13px; }
.tree-center small { font-size: 9px; }
.tree-view-controls { position: absolute; z-index: 30; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.tree-view-controls button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); color: #cbd8d4; background: rgba(10,16,17,.92); font-size: 18px; cursor: pointer; }
.tree-view-controls button:hover { color: var(--mint); border-color: rgba(85,242,194,.5); }
.tree-heading h2 { font-size: 30px; }
.tree-heading p, .tree-footer > span { font-size: 11px; }
.tree-tabs { display: flex; gap: 6px; margin: 0; }
.tree-tabs button { min-width: 78px; height: 30px; padding: 0 13px; border: 1px solid rgba(255,255,255,.12); color: #82908c; background: rgba(255,255,255,.025); font-size: 10px; font-weight: 800; cursor: pointer; }
.tree-tabs button:hover { color: #dfe9e6; border-color: rgba(85,242,194,.35); }
.tree-tabs button.active { color: #07110d; border-color: var(--mint); background: var(--mint); }
.tree-tabs button.anomaly-tab { color: #ff94a2; border-color: rgba(255,94,111,.3); background: rgba(255,79,104,.04); font-family: ui-monospace, Consolas, monospace; }
.tree-tabs button.anomaly-tab:hover { color: #ffdce1; border-color: rgba(255,94,111,.62); }
.tree-tabs button.anomaly-tab.active { color: #16070a; border-color: #ff5e6f; background: #ff5e6f; box-shadow: 0 0 13px rgba(255,79,104,.28); }
.tree-footer-actions { display: flex; align-items: center; gap: 9px; }
.reboot-button { min-width: 116px; height: 50px; padding: 0 16px; border: 1px solid rgba(255,121,200,.38); color: #ff9dd6; background: rgba(255,121,200,.06); font-size: 11px; font-weight: 900; cursor: pointer; transition: transform .15s ease, background .18s ease, color .18s ease; }
.reboot-button:hover { background: rgba(255,121,200,.13); }
.reboot-button:active { transform: scale(.96); }
.reboot-button.confirming { color: #101008; border-color: var(--yellow); background: var(--yellow); animation: reboot-alert .5s ease-in-out infinite alternate; }
@keyframes reboot-alert { to { box-shadow: 0 0 18px rgba(255,211,78,.35); } }

/* Permanent reality layer */
#realityModal { z-index: 26; }
.reality-panel { width: min(1080px, 96vw); max-height: 92vh; padding: 28px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.11); background: #0b1113; box-shadow: 0 28px 100px rgba(0,0,0,.62); overflow: hidden; }
.reality-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.reality-heading h2 { margin: 6px 0 5px; font-size: 32px; }
.reality-heading p { margin: 0; color: #7e8d89; font-size: 11px; }
.reality-parts { min-width: 145px; padding: 10px 14px; text-align: right; border-left: 2px solid var(--yellow); background: rgba(255,211,78,.045); }
.reality-parts span { display: block; color: #899692; font-size: 9px; }
.reality-parts strong { display: block; margin-top: 3px; color: var(--yellow); font-size: 27px; font-variant-numeric: tabular-nums; }
.reality-grid { min-height: 0; overflow-y: auto; padding: 8px 2px 18px; scrollbar-width: thin; scrollbar-color: #35433f transparent; }
.reality-group { --group: var(--mint); padding: 14px 0 5px; border-bottom: 1px solid rgba(255,255,255,.075); }
.reality-group:last-child { border-bottom: 0; }
.reality-group-heading { min-height: 45px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 0 10px 8px 13px; border-left: 3px solid var(--group); }
.reality-group-heading span { color: var(--group); font-size: 12px; font-weight: 900; }
.reality-group-heading p { margin: 4px 0 0; color: #778782; font-size: 9px; }
.reality-group-heading > strong { flex: 0 0 auto; color: color-mix(in srgb, var(--group) 76%, white); font-size: 10px; }
.reality-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
.reality-group[data-reality-group="risk"] .reality-group-grid { grid-template-columns: 1fr; }
.reality-group[data-reality-group="risk"] .reality-upgrade { min-height: 104px; }
.reality-upgrade { --upgrade: var(--mint); min-height: 116px; display: grid; grid-template-columns: minmax(0, 1fr) 94px; align-items: center; gap: 16px; padding: 14px 8px 14px 13px; border-bottom: 1px solid rgba(255,255,255,.075); border-left: 2px solid color-mix(in srgb, var(--upgrade) 70%, transparent); }
.reality-upgrade-copy > span { color: var(--upgrade); font-size: 8px; font-weight: 900; }
.reality-upgrade h3 { margin: 4px 0 3px; font-size: 15px; }
.reality-upgrade p { margin: 0; color: #8a9995; font-size: 10px; line-height: 1.45; }
.reality-upgrade-copy > strong { display: block; margin-top: 6px; color: #cbd7d3; font-size: 10px; }
.reality-upgrade button { height: 38px; border: 1px solid color-mix(in srgb, var(--upgrade) 38%, transparent); color: var(--upgrade); background: color-mix(in srgb, var(--upgrade) 6%, #0c1213); font-size: 10px; font-weight: 900; cursor: pointer; }
.reality-upgrade button:hover:not(:disabled) { color: #07110d; background: var(--upgrade); }
.reality-upgrade button:active:not(:disabled) { transform: scaleX(1.05) scaleY(.92); }
.reality-upgrade button:disabled { color: #596460; border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.02); cursor: default; }
.reality-upgrade.anomaly-upgrade { position: relative; overflow: hidden; border-bottom-color: rgba(255,94,111,.2); background: rgba(255,79,104,.035); }
.reality-upgrade.anomaly-upgrade::after { content: "5Lq6  E4BA  HUM4N"; position: absolute; right: 10px; top: 7px; color: rgba(255,94,111,.12); font: 900 9px ui-monospace, Consolas, monospace; pointer-events: none; }
.reality-upgrade.anomaly-upgrade h3 { color: #ffd8de; }
.reality-upgrade.anomaly-upgrade button:not(:disabled) { box-shadow: 0 0 16px rgba(255,79,104,.1); }
.reality-footer { min-height: 67px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.reality-footer > span { color: #788681; font-size: 10px; }

/* Reboot failure and wake sequence */
.reboot-transition { position: absolute; z-index: 100; inset: 0; overflow: hidden; visibility: hidden; opacity: 0; pointer-events: none; background: transparent; }
.reboot-transition.active { visibility: visible; opacity: 1; pointer-events: auto; }
.reboot-interference, .reboot-cracks, .reboot-shards, .reboot-blackout, .reboot-focus, .reboot-lid { position: absolute; inset: 0; pointer-events: none; }
.reboot-interference { opacity: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 5px), linear-gradient(90deg, transparent 0 35%, rgba(85,242,194,.11) 36% 38%, transparent 39% 67%, rgba(255,88,113,.11) 68% 70%, transparent 71%); mix-blend-mode: screen; }
.reboot-transition.fault .reboot-interference { opacity: .7; animation: reboot-static .1s steps(2,end) infinite; }
@keyframes reboot-static { 0% { transform: translateY(-2px) scaleY(1.02); filter: hue-rotate(0deg); } 50% { transform: translate(3px, 2px) scaleY(.985); filter: hue-rotate(55deg); } 100% { transform: translate(-2px, 0); filter: hue-rotate(-35deg); } }
.reboot-cracks { left: 50%; top: 48%; width: 0; height: 0; opacity: 0; }
.reboot-cracks i { position: absolute; left: 0; top: 0; width: 64vmax; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(125,238,255,.5) 16%, rgba(255,255,255,.08) 55%, transparent); box-shadow: 0 0 5px rgba(170,246,255,.72); transform-origin: left center; }
.reboot-cracks i::after { content: ""; position: absolute; left: 19%; top: 0; width: 19vmax; height: 1px; background: inherit; transform: rotate(24deg); transform-origin: left; }
.reboot-cracks i:nth-child(1) { transform: rotate(8deg); } .reboot-cracks i:nth-child(2) { transform: rotate(48deg); } .reboot-cracks i:nth-child(3) { transform: rotate(91deg); } .reboot-cracks i:nth-child(4) { transform: rotate(137deg); }
.reboot-cracks i:nth-child(5) { transform: rotate(181deg); } .reboot-cracks i:nth-child(6) { transform: rotate(226deg); } .reboot-cracks i:nth-child(7) { transform: rotate(279deg); } .reboot-cracks i:nth-child(8) { transform: rotate(326deg); }
.reboot-transition.shatter .reboot-cracks { animation: crack-flash .62s ease-out both; }
@keyframes crack-flash { 0% { opacity: 0; transform: scale(.08); } 18%,64% { opacity: 1; transform: scale(1); } 100% { opacity: .2; transform: scale(1.06); } }
.reboot-shards i { --tx: 0vw; --ty: 0vh; --turn: 0deg; position: absolute; width: 28vw; height: 30vh; opacity: 0; border: 1px solid rgba(210,250,255,.32); background: rgba(5,10,12,.16); backdrop-filter: contrast(1.6) saturate(.55) brightness(.78); clip-path: polygon(4% 8%, 91% 0, 100% 77%, 64% 100%, 0 86%); }
.reboot-shards i:nth-child(1) { left: -4%; top: -4%; --tx: -13vw; --ty: -12vh; --turn: -9deg; } .reboot-shards i:nth-child(2) { left: 22%; top: -6%; --tx: -5vw; --ty: -16vh; --turn: 7deg; } .reboot-shards i:nth-child(3) { left: 48%; top: -4%; --tx: 5vw; --ty: -16vh; --turn: -6deg; } .reboot-shards i:nth-child(4) { right: -4%; top: -3%; --tx: 14vw; --ty: -12vh; --turn: 10deg; }
.reboot-shards i:nth-child(5) { left: -5%; top: 27%; --tx: -16vw; --ty: -3vh; --turn: 8deg; } .reboot-shards i:nth-child(6) { left: 23%; top: 25%; --tx: -6vw; --ty: 5vh; --turn: -8deg; } .reboot-shards i:nth-child(7) { left: 50%; top: 27%; --tx: 8vw; --ty: 3vh; --turn: 9deg; } .reboot-shards i:nth-child(8) { right: -5%; top: 28%; --tx: 16vw; --ty: -2vh; --turn: -7deg; }
.reboot-shards i:nth-child(9) { left: -3%; bottom: -4%; --tx: -13vw; --ty: 14vh; --turn: -10deg; } .reboot-shards i:nth-child(10) { left: 24%; bottom: -5%; --tx: -4vw; --ty: 17vh; --turn: 8deg; } .reboot-shards i:nth-child(11) { left: 51%; bottom: -4%; --tx: 5vw; --ty: 17vh; --turn: -7deg; } .reboot-shards i:nth-child(12) { right: -4%; bottom: -3%; --tx: 14vw; --ty: 14vh; --turn: 11deg; }
.reboot-transition.shatter .reboot-shards i { animation: screen-shard-fall .88s cubic-bezier(.42,0,.8,.28) both; }
.reboot-transition.shatter .reboot-shards i:nth-child(3n+2) { animation-delay: .045s; } .reboot-transition.shatter .reboot-shards i:nth-child(3n) { animation-delay: .085s; }
@keyframes screen-shard-fall { 0% { opacity: 1; transform: translate(0,0) rotate(0) scale(1); } 70% { opacity: .88; } 100% { opacity: 0; transform: translate(var(--tx),var(--ty)) rotate(var(--turn)) scale(.91); } }
.reboot-blackout { opacity: 0; background: #000; transition: opacity .16s linear; }
.reboot-transition.blackout .reboot-blackout { opacity: 1; }
.reboot-power-state { position: absolute; z-index: 5; left: 50%; top: 50%; display: grid; justify-items: center; color: #ff5e6f; opacity: 0; transform: translate(-50%,-48%) scale(.94); text-align: center; }
.reboot-power-state i { position: relative; width: 44px; height: 44px; margin-bottom: 15px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; box-shadow: 0 0 16px rgba(255,94,111,.28); }
.reboot-power-state i::before { content: ""; position: absolute; left: 50%; top: -8px; width: 2px; height: 25px; background: currentColor; transform: translateX(-50%); box-shadow: 0 0 8px currentColor; }
.reboot-power-state span { font-size: 9px; font-weight: 900; } .reboot-power-state strong { margin-top: 6px; color: #eaf3f0; font-size: 22px; }
.reboot-transition.blackout .reboot-power-state { animation: power-fail-in .38s steps(3,end) .12s both, power-fail-pulse .5s steps(2,end) .5s infinite; }
@keyframes power-fail-in { to { opacity: 1; transform: translate(-50%,-50%) scale(1); } } @keyframes power-fail-pulse { 50% { opacity: .58; } }
.reboot-lid { z-index: 6; height: 51%; opacity: 0; background: #000; }
.reboot-lid-top { bottom: auto; transform-origin: top; } .reboot-lid-bottom { top: auto; transform-origin: bottom; }
.reboot-transition.blackout .reboot-lid { opacity: 1; }
.reboot-transition.wake .reboot-blackout { opacity: 0; transition-duration: .48s; }
.reboot-transition.wake .reboot-power-state { animation: power-fail-out .22s ease both; }
.reboot-transition.wake .reboot-lid-top { animation: eyelid-open-top 1.55s cubic-bezier(.22,.76,.24,1) .08s both; }
.reboot-transition.wake .reboot-lid-bottom { animation: eyelid-open-bottom 1.55s cubic-bezier(.22,.76,.24,1) .08s both; }
@keyframes power-fail-out { to { opacity: 0; transform: translate(-50%,-54%) scale(.9); } }
@keyframes eyelid-open-top { 0% { transform: translateY(0); } 24% { transform: translateY(-18%); } 46% { transform: translateY(-8%); } 100% { transform: translateY(-103%); } }
@keyframes eyelid-open-bottom { 0% { transform: translateY(0); } 24% { transform: translateY(18%); } 46% { transform: translateY(8%); } 100% { transform: translateY(103%); } }
.reboot-focus { z-index: 4; opacity: 0; backdrop-filter: blur(18px) brightness(.62); background: rgba(190,245,233,.035); }
.reboot-transition.wake .reboot-focus { animation: reboot-focus-clear 1.6s ease-out .12s both; }
@keyframes reboot-focus-clear { 0% { opacity: 1; backdrop-filter: blur(18px) brightness(.58); } 55% { opacity: .72; backdrop-filter: blur(7px) brightness(.86); } 100% { opacity: 0; backdrop-filter: blur(0) brightness(1); } }
.game-shell.reboot-fault #gameCanvas, .game-shell.reboot-fault .topbar, .game-shell.reboot-fault .play-hud { animation: system-fault-shake .12s steps(2,end) infinite; }
@keyframes system-fault-shake { 0% { transform: translate(0,0); filter: contrast(1); } 50% { transform: translate(3px,-2px); filter: contrast(1.35) hue-rotate(18deg); } 100% { transform: translate(-2px,2px); filter: contrast(.82); } }

.hazard-damage { position: absolute; z-index: 72; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; background: rgba(255,28,57,.06); }
.hazard-damage.visible { visibility: visible; animation: hazard-damage-flash .78s cubic-bezier(.16,.74,.25,1) both; }
.hazard-damage-cracks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.hazard-damage-cracks i { position: absolute; left: 0; top: 0; width: 62vmax; height: 2px; opacity: .8; background: linear-gradient(90deg, #fff 0 2%, #ff5e6f 3% 18%, rgba(255,94,111,.22) 44%, transparent 72%); box-shadow: 0 0 7px rgba(255,45,76,.72); transform-origin: left; }
.hazard-damage-cracks i::after { content: ""; position: absolute; left: 22%; top: 0; width: 18vmax; height: 1px; background: inherit; transform: rotate(29deg); transform-origin: left; }
.hazard-damage-cracks i:nth-child(1) { transform: rotate(12deg); } .hazard-damage-cracks i:nth-child(2) { transform: rotate(73deg); } .hazard-damage-cracks i:nth-child(3) { transform: rotate(139deg); }
.hazard-damage-cracks i:nth-child(4) { transform: rotate(194deg); } .hazard-damage-cracks i:nth-child(5) { transform: rotate(251deg); } .hazard-damage-cracks i:nth-child(6) { transform: rotate(317deg); }
.hazard-damage > strong { position: absolute; left: 50%; top: 62%; color: rgba(255,224,229,.86); font: 900 9px ui-monospace, Consolas, monospace; transform: translateX(-50%); text-shadow: 0 0 8px #ff3957; }
@keyframes hazard-damage-flash { 0% { opacity: 0; filter: contrast(1); } 9% { opacity: 1; filter: contrast(1.6); } 28% { opacity: .82; } 100% { opacity: 0; filter: contrast(1); } }

.patch-notice-modal { z-index: 82; }
.patch-notice-panel { width: min(390px, calc(100vw - 28px)); padding: 27px 24px 24px; border: 1px solid rgba(255,94,111,.3); background: #101213; text-align: center; box-shadow: 0 25px 90px rgba(0,0,0,.64), inset 0 3px rgba(255,94,111,.5); }
.patch-notice-panel .eyebrow { color: #ff6c80; }
.patch-notice-panel h2 { margin-bottom: 22px; font-size: 25px; }
.patch-notice-panel .primary-button { width: 100%; background: #ff5e6f; }

.anomaly-clear-modal { z-index: 94; background: rgba(2,4,5,.8); }
.anomaly-clear-panel { width: min(470px, calc(100vw - 28px)); padding: 29px 28px 27px; border: 1px solid rgba(255,57,87,.42); border-top-color: #ff3957; background: #0c0e0f; box-shadow: 0 28px 110px rgba(0,0,0,.82), inset 0 0 38px rgba(255,40,66,.04); text-align: center; }
.anomaly-clear-symbol { position: relative; width: 58px; height: 58px; margin: 0 auto 16px; border: 2px solid #ff4962; border-radius: 48% 48% 42% 42%; box-shadow: 0 0 20px rgba(255,40,66,.2); }
.anomaly-clear-symbol::before, .anomaly-clear-symbol::after { content: ""; position: absolute; top: 19px; width: 10px; height: 8px; border-radius: 50%; background: #ff2647; box-shadow: 0 0 9px #ff2647; animation: skull-eyes-live .24s steps(2,end) infinite; }
.anomaly-clear-symbol::before { left: 11px; } .anomaly-clear-symbol::after { right: 11px; }
.anomaly-clear-symbol i:first-child { position: absolute; left: 50%; bottom: 4px; width: 22px; height: 14px; border: 2px solid #ff4962; border-top: 0; transform: translateX(-50%); }
.anomaly-clear-symbol i:last-child { position: absolute; left: 50%; top: 31px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid #ff4962; transform: translateX(-50%); }
.anomaly-clear-panel .eyebrow { color: #ff5e6f; font-family: ui-monospace, Consolas, monospace; }
.anomaly-clear-panel h2 { margin: 8px 0 10px; font-size: 27px; }
.anomaly-clear-panel p { margin: 0; color: #9faaa7; font-size: 11px; line-height: 1.6; }
.anomaly-clear-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: 25px; }
.anomaly-clear-actions button { height: 48px; border: 1px solid rgba(255,255,255,.12); color: #aab5b2; background: rgba(255,255,255,.025); font-size: 10px; font-weight: 900; cursor: pointer; }
.anomaly-clear-actions .danger-confirm { color: #160306; border-color: #ff3957; background: #ff3957; animation: danger-confirm-jitter .32s steps(2,end) infinite; }
@keyframes danger-confirm-jitter { 0%,100% { transform: translate(0); } 34% { transform: translate(1px,-1px); } 67% { transform: translate(-1px,1px); } }
.anomaly-clear-done { width: 100%; margin-top: 24px; background: #ff5e6f; }
.anomaly-clear-done[hidden], .anomaly-clear-actions[hidden] { display: none; }
.anomaly-clear-modal.completed .anomaly-clear-symbol::before, .anomaly-clear-modal.completed .anomaly-clear-symbol::after { opacity: 0; animation: none; }
.anomaly-clear-modal.completed .anomaly-clear-symbol { opacity: .5; filter: grayscale(1); }

.anomaly-purge-effect { position: absolute; z-index: 108; inset: 0; overflow: hidden; visibility: hidden; opacity: 0; pointer-events: none; background: rgba(10,0,2,.08); }
.anomaly-purge-effect::before { content: ""; position: absolute; inset: 0; opacity: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 5px); mix-blend-mode: screen; }
.anomaly-purge-effect i { position: absolute; background: #ff1f40; opacity: 0; box-shadow: 0 0 35px #ff1f40, inset 0 0 22px #ff1f40; }
.anomaly-purge-effect i:nth-child(1), .anomaly-purge-effect i:nth-child(2) { left: 0; right: 0; height: 9px; }
.anomaly-purge-effect i:nth-child(1) { top: 0; } .anomaly-purge-effect i:nth-child(2) { bottom: 0; }
.anomaly-purge-effect i:nth-child(3), .anomaly-purge-effect i:nth-child(4) { top: 0; bottom: 0; width: 9px; }
.anomaly-purge-effect i:nth-child(3) { left: 0; } .anomaly-purge-effect i:nth-child(4) { right: 0; }
.anomaly-purge-effect strong { position: absolute; left: 50%; top: 50%; color: #ff6d80; opacity: 0; font: 900 11px ui-monospace, Consolas, monospace; transform: translate(-50%,-50%); text-shadow: 0 0 12px #ff2847; }
.anomaly-purge-effect.active { visibility: visible; opacity: 1; pointer-events: auto; }
.anomaly-purge-effect.active::before { animation: purge-static .12s steps(2,end) 12; }
.anomaly-purge-effect.active i { animation: purge-edge-pulse .48s steps(2,end) 3; }
.anomaly-purge-effect.active i:nth-child(2) { animation-delay: .06s; } .anomaly-purge-effect.active i:nth-child(3) { animation-delay: .11s; } .anomaly-purge-effect.active i:nth-child(4) { animation-delay: .16s; }
.anomaly-purge-effect.active strong { animation: purge-code-flash 1.45s steps(3,end) both; }
.game-shell.anomaly-purging #gameCanvas, .game-shell.anomaly-purging .skill-tree-panel { animation: system-fault-shake .1s steps(2,end) infinite; }
@keyframes purge-edge-pulse { 0%,100% { opacity: 0; } 40%,68% { opacity: .94; } }
@keyframes purge-static { 0%,100% { opacity: .08; transform: translateY(0); } 50% { opacity: .72; transform: translateY(3px); } }
@keyframes purge-code-flash { 0%,18% { opacity: 0; } 26%,76% { opacity: .9; } 34%,55% { opacity: .28; transform: translate(calc(-50% + 3px),calc(-50% - 1px)); } 100% { opacity: 0; } }

@media (max-width: 820px) {
  .play-hud { inset: 72px 0 0; left: 0; top: 0; }
  .combo-orbit { width: 290px; height: 290px; transform: translateY(4%); }
  .combo-readout { width: 88px; height: 88px; }
  .combo-readout b { font-size: 33px; }
  .combo-readout > small { margin-top: 3px; font-size: 10px; }
  .combo-time-track { width: 48px; margin-top: 5px; }
  .skill-tree-panel { width: 98vw; height: 97vh; padding: 14px 12px; }
  .skill-tree-panel .skill-tree { width: 2600px; height: 2200px; }
  .skill-tree-panel .skill-node { width: 174px; }
  .tree-heading h2 { font-size: 23px; }
  .tree-points { min-width: 98px; }
  .tree-points strong { font-size: 19px; }
  .day-result-panel { padding: 25px 22px 23px; }
  .tree-footer-actions { width: 100%; justify-content: flex-end; }
  .reboot-button { min-width: 104px; padding: 0 10px; }
  .reality-panel { width: 98vw; max-height: 96vh; padding: 18px 14px; }
  .reality-heading { align-items: center; padding-bottom: 14px; }
  .reality-heading h2 { font-size: 25px; }
  .reality-heading p { display: none; }
  .reality-parts { min-width: 108px; padding: 8px 10px; }
  .reality-parts strong { font-size: 21px; }
  .reality-group { padding-top: 11px; }
  .reality-group-heading { min-height: 40px; padding-left: 9px; }
  .reality-group-heading p { max-width: 250px; }
  .reality-group-grid { grid-template-columns: 1fr; }
  .reality-upgrade { min-height: 105px; grid-template-columns: minmax(0, 1fr) 82px; gap: 9px; padding-left: 10px; }
  .reality-footer > span { display: none; }
  .reality-footer { justify-content: flex-end; }
}

/* Compact skill icons and selected-upgrade inspector */
.tree-heading { min-height: 74px; display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 14px; padding: 7px 0; }
.tree-heading-title { min-width: 0; }
.tree-heading-title h2 { margin: 3px 0 0; font-size: 21px; }
.tree-heading-title p { display: none; }
.tree-heading-actions .tree-tabs { flex: 0 0 auto; }
.tree-selection { --branch: var(--mint); position: absolute; z-index: 45; width: 330px; min-height: 180px; display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 48px; align-items: start; gap: 12px; padding: 16px; border: 1px solid color-mix(in srgb, var(--branch) 46%, transparent); border-left: 3px solid var(--branch); background: rgba(10,16,18,.97); box-shadow: 0 22px 60px rgba(0,0,0,.64), 0 0 28px color-mix(in srgb, var(--branch) 12%, transparent); cursor: default; user-select: text; transition: opacity .12s ease, transform .16s ease; }
.tree-selection[hidden] { display: none; }
.tree-selection.positioning { opacity: 0; transform: translateY(5px); }
.tree-selection-icon { grid-column: 1; grid-row: 1; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--branch) 48%, transparent); background: #101719; box-shadow: inset 0 0 16px rgba(0,0,0,.45), 0 0 18px color-mix(in srgb, var(--branch) 10%, transparent); }
.tree-selection-copy { grid-column: 2; grid-row: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 13px auto auto; row-gap: 4px; }
.tree-selection-copy > span { grid-column: 1; grid-row: 1; color: var(--branch); font-size: 8px; font-weight: 900; }
.tree-selection-copy > div { grid-column: 1; grid-row: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tree-selection-copy h3 { min-width: 0; margin: 0; overflow: visible; font-size: 16px; line-height: 1.15; white-space: normal; }
.tree-selection-copy strong { flex: 0 0 auto; color: #99aaa5; font-size: 8px; }
.tree-selection-copy p { grid-column: 1; grid-row: 3; margin: 0; overflow: visible; color: #b8c5c1; font-size: 13px; line-height: 1.5; }
.tree-skill-buy { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 48px; border: 1px solid color-mix(in srgb, var(--branch) 48%, transparent); color: var(--branch); background: color-mix(in srgb, var(--branch) 7%, #0d1415); font-size: 12px; font-weight: 900; cursor: pointer; }
.tree-skill-buy.affordable { color: #07110d; border-color: var(--branch); background: var(--branch); box-shadow: 0 0 17px color-mix(in srgb, var(--branch) 20%, transparent); }
.tree-skill-buy:active:not(:disabled) { transform: scaleX(1.035) scaleY(.94); }
.tree-skill-buy:disabled { color: #65716e; border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.025); cursor: default; box-shadow: none; }

.skill-tree-panel .skill-node { width: 76px; height: 76px; min-height: 76px; padding: 0; display: grid; place-items: center; overflow: visible; border-radius: 6px; background: #101719; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.skill-tree-panel .skill-node.can-buy { border-color: color-mix(in srgb, var(--branch) 62%, transparent); box-shadow: inset 0 0 14px color-mix(in srgb, var(--branch) 8%, transparent), 0 8px 22px rgba(0,0,0,.28); }
.skill-tree-panel .skill-node.selected { border-color: color-mix(in srgb, var(--branch) 82%, white 16%); background: color-mix(in srgb, var(--branch) 9%, #101719); box-shadow: inset 0 0 16px color-mix(in srgb, var(--branch) 12%, transparent), 0 0 18px color-mix(in srgb, var(--branch) 24%, transparent); }
.skill-tree-panel .skill-node.is-anomaly { background: #111113; box-shadow: inset 0 0 0 1px rgba(255,94,111,.025), 0 8px 22px rgba(0,0,0,.34); }
.skill-tree-panel .skill-node.is-anomaly .skill-icon-canvas { filter: saturate(.86) contrast(1.08); }
.skill-tree-panel .skill-node.is-anomaly.can-buy { border-color: #ff8796; box-shadow: inset 0 0 12px rgba(255,79,104,.1), 0 0 12px rgba(255,79,104,.16); }
.skill-tree-panel .skill-node.is-anomaly.maxed { background: rgba(255,79,104,.1); filter: brightness(1.14); }
@keyframes anomaly-node-ready { 50% { border-color: #ff8796; box-shadow: inset 0 0 15px rgba(255,79,104,.13), 2px 0 15px rgba(255,79,104,.22); } }
.skill-tree.anomaly-figure .tree-center { width: 78px; height: 196px; flex-direction: column; gap: 13px; border-color: rgba(255,94,111,.5); background: #151012; box-shadow: inset 0 0 36px rgba(255,79,104,.07), 0 0 26px rgba(255,79,104,.13); clip-path: polygon(14% 0,86% 0,100% 7%,100% 93%,86% 100%,14% 100%,0 93%,0 7%); }
.skill-tree.anomaly-figure .tree-center .root-symbol { width: 25px; height: 25px; flex: 0 0 25px; border-color: #ff5e6f; box-shadow: 0 0 12px rgba(255,94,111,.38); }
.skill-tree.anomaly-figure .tree-center > div { display: grid; justify-items: center; gap: 7px; }
.skill-tree.anomaly-figure .tree-center strong { color: #ff93a1; font: 900 9px ui-monospace, Consolas, monospace; writing-mode: vertical-rl; }
.skill-tree.anomaly-figure .tree-center small { max-width: 64px; margin: 0; color: rgba(255,147,161,.58); font: 800 7px ui-monospace, Consolas, monospace; text-align: center; overflow-wrap: anywhere; }
.skill-tree-panel .skill-node.purge-node { width: 86px; height: 86px; min-height: 86px; border-radius: 50%; }
.skill-tree-panel .skill-node.purge-node .node-battery { right: -8px; }
.skull-eyes { position: absolute; z-index: 3; left: 50%; top: 43%; width: 23px; display: flex; justify-content: space-between; opacity: 0; transform: translate(-50%,-50%); pointer-events: none; }
.skull-eyes i { width: 6px; height: 5px; border-radius: 50%; background: #ff1f40; box-shadow: 0 0 5px #ff1f40, 0 0 11px rgba(255,31,64,.85); }
.skill-node.purge-node.purge-armed .skull-eyes { opacity: 1; animation: skull-eyes-live .22s steps(2,end) infinite; }
@keyframes skull-eyes-live { 50% { opacity: .38; filter: brightness(1.8); } }
.skill-tree-panel .skill-node.purge-node.purge-armed { border-color: #ff2d4d; box-shadow: inset 0 0 22px rgba(255,31,64,.2), 0 0 25px rgba(255,31,64,.32); animation: purge-node-armed .34s steps(2,end) infinite; }
@keyframes purge-node-armed { 50% { transform: translate(calc(-50% + 1px), calc(-50% - 1px)); } }
.skill-tree-panel .skill-node.purge-node.purged { opacity: .38; filter: grayscale(.88) brightness(.62); border-color: rgba(255,255,255,.12); background: #0b0e0f; box-shadow: none; animation: none; }
.skill-tree-panel .skill-node.purge-node.purged::after { opacity: .12; animation: none; box-shadow: none; }
.skill-tree-panel .skill-node.purge-node.pie-patched { border-color: rgba(255,76,96,.72); background: rgba(102,18,28,.18); box-shadow: inset 0 0 18px rgba(255,40,65,.12), 0 0 18px rgba(255,40,65,.2); animation: angel-node-breathe 1.35s ease-in-out infinite alternate; }
@keyframes angel-node-breathe { to { box-shadow: inset 0 0 20px rgba(255,40,65,.2), 0 0 25px rgba(255,40,65,.32); } }
.tree-selection.anomaly-copy-jitter .tree-selection-copy p { color: #ffd7dd; text-shadow: 1px 0 rgba(255,45,75,.5), -1px 0 rgba(92,244,255,.25); animation: anomaly-copy-jitter .3s steps(2,end) infinite; }
@keyframes anomaly-copy-jitter { 0%,100% { transform: translate(0,0); } 35% { transform: translate(1px,-.5px); } 70% { transform: translate(-1px,.5px); } }
.tree-skill-buy.patch-toggle { position: relative; padding-left: 58px; text-align: left; color: #ff9aaa; border-color: rgba(255,94,111,.35); background: rgba(255,79,104,.05); }
.tree-skill-buy.patch-toggle::before { content: ""; position: absolute; left: 13px; top: 50%; width: 34px; height: 18px; border-radius: 10px; background: #2b3030; transform: translateY(-50%); }
.tree-skill-buy.patch-toggle::after { content: ""; position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #89928f; transform: translateY(-50%); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.tree-skill-buy.patch-toggle.affordable::before { background: rgba(255,61,87,.3); }
.tree-skill-buy.patch-toggle.affordable::after { background: #ff3d57; box-shadow: 0 0 9px rgba(255,61,87,.72); transform: translate(16px,-50%); }
.skill-tree-panel .skill-node.maxed { border-color: color-mix(in srgb, var(--branch) 82%, white 16%); background: color-mix(in srgb, var(--branch) 12%, #101719); box-shadow: inset 0 0 19px color-mix(in srgb, var(--branch) 18%, transparent), 0 0 19px color-mix(in srgb, var(--branch) 30%, transparent), 0 8px 22px rgba(0,0,0,.3); cursor: pointer; }
.skill-tree-panel .skill-node.maxed::after { content: ""; position: absolute; inset: 5px; border: 1px solid color-mix(in srgb, var(--branch) 72%, white 10%); box-shadow: inset 0 0 10px color-mix(in srgb, var(--branch) 20%, transparent); pointer-events: none; }
@keyframes mastery-frame { to { border-color: color-mix(in srgb, var(--branch) 90%, white 20%); box-shadow: inset 0 0 17px color-mix(in srgb, var(--branch) 34%, transparent), 0 0 8px color-mix(in srgb, var(--branch) 28%, transparent); } }
.skill-tree-panel .skill-node.maxed .skill-icon-canvas { filter: brightness(1.2) saturate(1.18); }
.node-battery { position: absolute; z-index: 4; right: -10px; top: 50%; width: 13px; height: 50px; display: flex; flex-direction: column-reverse; gap: 1px; padding: 2px; border: 1px solid color-mix(in srgb, var(--branch) 44%, white 8%); background: #081011; box-shadow: 0 4px 10px rgba(0,0,0,.55); transform: translateY(-50%); }
.node-battery::before { content: ""; position: absolute; left: 3px; right: 3px; top: -4px; height: 3px; background: color-mix(in srgb, var(--branch) 42%, #172220); }
.node-battery i { flex: 1 1 0; min-height: 1px; background: rgba(255,255,255,.08); }
.node-battery i.filled { background: var(--branch); box-shadow: 0 0 5px color-mix(in srgb, var(--branch) 68%, transparent); }
.skill-node.maxed .node-battery { border-color: color-mix(in srgb, var(--branch) 72%, white 20%); box-shadow: 0 0 9px color-mix(in srgb, var(--branch) 42%, transparent); }
@keyframes battery-mastered { to { filter: brightness(1.38); box-shadow: 0 0 13px color-mix(in srgb, var(--branch) 58%, transparent); } }
.node-upgrade { position: absolute; z-index: 5; left: -8px; top: -9px; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #d8ffc9; border-radius: 50%; color: #07120a; background: #86f36f; box-shadow: 0 0 9px rgba(134,243,111,.48); font-size: 15px; font-weight: 1000; line-height: 1; }
@keyframes upgrade-ready { to { transform: translateY(-2px); filter: brightness(1.14); } }
.skill-icon-frame { position: relative; width: 58px; height: 58px; display: grid; place-items: center; color: var(--branch); }
.skill-icon-canvas { width: 58px; height: 58px; display: block; }
.skill-icon-core { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; background: color-mix(in srgb, var(--branch) 8%, #0b1113); box-shadow: 0 0 12px color-mix(in srgb, var(--branch) 24%, transparent); font-size: 12px; font-weight: 900; }
.tree-selection-icon .skill-icon-frame, .tree-selection-icon .skill-icon-canvas { width: 43px; height: 43px; }
.tree-footer { position: relative; z-index: 35; padding-bottom: max(0px, env(safe-area-inset-bottom)); background: #0b1113; }

/* First learning boot */
.learning-awakening { --charge: 0; position: absolute; z-index: 80; inset: 0; display: grid; place-content: center; justify-items: center; overflow: hidden; color: var(--mint); background: #080d0e; touch-action: none; user-select: none; }
.learning-awakening[hidden] { display: none; }
.learning-power-node { position: relative; z-index: 3; width: 112px; height: 112px; padding: 0; border: 0; border-radius: 50%; color: var(--mint); background: radial-gradient(circle, rgba(85,242,194,.12), rgba(9,16,17,.96) 60%); box-shadow: inset 0 0 24px rgba(0,0,0,.75), 0 0 calc(10px + var(--charge) * 28px) rgba(85,242,194,.3); cursor: pointer; transform: scale(calc(1 + var(--charge) * .045)); transition: box-shadow .12s ease, transform .12s ease; -webkit-tap-highlight-color: transparent; }
.learning-power-node svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.learning-power-node circle { fill: none; stroke-width: 3; }
.learning-power-node .power-track { stroke: rgba(255,255,255,.09); }
.learning-power-node .power-progress { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 301.6; stroke-dashoffset: 301.6; filter: drop-shadow(0 0 5px rgba(85,242,194,.7)); }
.learning-power-glyph { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; transform: translate(-50%,-46%); filter: drop-shadow(0 0 7px rgba(85,242,194,.55)); }
.learning-power-glyph i { position: absolute; left: 50%; top: -9px; width: 3px; height: 25px; border-radius: 2px; background: currentColor; transform: translateX(-50%); box-shadow: 0 0 6px currentColor; }
.learning-awakening-copy { z-index: 3; margin-top: 18px; display: grid; justify-items: center; gap: 4px; pointer-events: none; }
.learning-awakening-copy strong { font-size: 18px; font-weight: 900; }
.learning-awakening-copy span { color: #8ea09b; font-size: 9px; }
.learning-awakening-copy small { margin-top: 3px; color: color-mix(in srgb, var(--mint) 80%, white); font-size: 8px; }
.learning-awakening-wave { position: absolute; z-index: 2; left: 50%; top: 50%; width: 120px; height: 120px; border: 2px solid var(--mint); border-radius: 50%; opacity: 0; transform: translate(-50%,-50%) scale(.8); box-shadow: 0 0 28px rgba(85,242,194,.25); pointer-events: none; }
.learning-awakening-particles { position: absolute; z-index: 4; left: 50%; top: 50%; pointer-events: none; }
.learning-awakening-particles i { --angle: 0deg; --distance: -190px; position: absolute; width: 4px; height: 14px; border-radius: 3px; background: var(--mint); opacity: 0; box-shadow: 0 0 8px var(--mint); transform: translate(-50%,-50%) rotate(var(--angle)) translateY(0); }
.learning-awakening-particles i:nth-child(1) { --angle: 0deg; --distance: -210px; } .learning-awakening-particles i:nth-child(2) { --angle: 30deg; --distance: -175px; } .learning-awakening-particles i:nth-child(3) { --angle: 60deg; --distance: -225px; } .learning-awakening-particles i:nth-child(4) { --angle: 90deg; --distance: -190px; } .learning-awakening-particles i:nth-child(5) { --angle: 120deg; --distance: -215px; } .learning-awakening-particles i:nth-child(6) { --angle: 150deg; --distance: -180px; } .learning-awakening-particles i:nth-child(7) { --angle: 180deg; --distance: -230px; } .learning-awakening-particles i:nth-child(8) { --angle: 210deg; --distance: -188px; } .learning-awakening-particles i:nth-child(9) { --angle: 240deg; --distance: -218px; } .learning-awakening-particles i:nth-child(10) { --angle: 270deg; --distance: -178px; } .learning-awakening-particles i:nth-child(11) { --angle: 300deg; --distance: -225px; } .learning-awakening-particles i:nth-child(12) { --angle: 330deg; --distance: -195px; }
.skill-tree-panel.learning-locked { padding: 0; background: #080d0e; }
#skillTreeModal.learning-mode { z-index: 90; padding: 0; background: #080d0e; backdrop-filter: none; }
#skillTreeModal.learning-mode .skill-tree-panel.learning-locked { position: fixed; z-index: 91; inset: 0; width: 100%; height: 100%; border: 0; box-shadow: none; }
#skillTreeModal.learning-mode .skill-tree-viewport, #skillTreeModal.learning-mode .learning-awakening { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; }
.game-shell.learning-boot #gameCanvas, .game-shell.learning-boot .topbar, .game-shell.learning-boot .play-hud, .game-shell.learning-boot .event-banner, .game-shell.learning-boot .hit-milestone { visibility: hidden; }
.skill-tree-panel.learning-locked .tree-heading, .skill-tree-panel.learning-locked .tree-footer, .skill-tree-panel.learning-locked .skill-tree, .skill-tree-panel.learning-locked .tree-selection, .skill-tree-panel.learning-locked .tree-view-controls, .skill-tree-panel.learning-locked .tree-compendium-panel { display: none; }
.skill-tree-panel.learning-locked .skill-tree-viewport { flex: 1; border: 0; }
.learning-awakening.charging .learning-power-glyph { animation: learning-power-hum .5s ease-in-out infinite alternate; }
@keyframes learning-power-hum { to { filter: drop-shadow(0 0 14px rgba(85,242,194,.95)); transform: translate(-50%,-46%) scale(1.06); } }
.learning-awakening.awakened { pointer-events: none; animation: learning-dark-release .72s ease .12s both; }
.learning-awakening.awakened .learning-power-node, .learning-awakening.awakened .learning-awakening-copy { animation: learning-core-release .48s cubic-bezier(.2,.8,.25,1) both; }
.learning-awakening.awakened .learning-awakening-wave { animation: learning-wave-release .82s cubic-bezier(.12,.7,.18,1) both; }
.learning-awakening.awakened .learning-awakening-particles i { animation: learning-particle-release .7s cubic-bezier(.12,.72,.2,1) both; }
@keyframes learning-core-release { 45% { opacity: 1; transform: scale(1.14); filter: brightness(1.7); } to { opacity: 0; transform: scale(.74); filter: brightness(2); } }
@keyframes learning-wave-release { 0% { opacity: .95; transform: translate(-50%,-50%) scale(.8); } 70% { opacity: .45; } to { opacity: 0; transform: translate(-50%,-50%) scale(8.5); } }
@keyframes learning-particle-release { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--angle)) translateY(-55px) scale(.5); } 18% { opacity: 1; } to { opacity: 0; transform: translate(-50%,-50%) rotate(var(--angle)) translateY(var(--distance)) scale(.15); } }
@keyframes learning-dark-release { 0%, 20% { background: #080d0e; } to { background: transparent; } }
.skill-tree-panel.learning-ui-enter .tree-heading, .skill-tree-panel.learning-ui-enter .skill-tree, .skill-tree-panel.learning-ui-enter .tree-footer, .skill-tree-panel.learning-ui-enter .tree-view-controls { animation: learning-ui-enter .72s cubic-bezier(.15,.78,.2,1) both; }
@keyframes learning-ui-enter { from { opacity: 0; clip-path: circle(0 at 50% 50%); } to { opacity: 1; clip-path: circle(145% at 50% 50%); } }

@media (max-width: 820px) {
  .life-readout { right: 2px; top: 69px; height: 48px; padding: 0 2px; }
  .life-hearts { gap: 1px; min-height: 39px; padding: 2px; transform: perspective(210px) rotateY(-12deg) rotateZ(-6deg) scale(.94); transform-origin: right center; }
  .life-hearts i { width: 27px; height: 31px; flex-basis: 27px; }
  .life-hearts i::before { font-size: 34px; }
  .life-loss-effect { right: -1px; width: 48px; height: 48px; transform: translateY(-50%) scale(.9); }
  .hazard-damage > strong { top: 66%; font-size: 8px; }
  .topbar { grid-template-columns: 48px minmax(40px, 1fr) 42px auto; gap: 4px; padding-left: 4px; padding-right: 4px; }
  .day-block { grid-column: 1; }
  .score-block { grid-column: 2; }
  .timer-block { grid-column: 3; }
  .top-actions { grid-column: 4; min-width: 0; justify-self: end; }
  .top-actions .settings-button { display: grid; }
  .top-actions { gap: 5px; }
  .top-actions .icon-button, .pause-button, .basket-toggle { width: 31px; height: 31px; }
  #skillTreeModal { padding: max(4px, env(safe-area-inset-top)) 4px max(4px, env(safe-area-inset-bottom)); }
  .skill-tree-panel { width: 100%; height: 100%; padding: 10px 8px 0; }
  .tree-heading { min-height: 38px; grid-template-columns: minmax(0, 1fr) 58px; grid-template-rows: 28px; align-items: center; gap: 6px; padding: 4px 0; }
  .tree-heading-title { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 6px; }
  .tree-heading-title .eyebrow { display: none; }
  .tree-heading-title h2 { margin: 0; font-size: 11px; white-space: nowrap; }
  .tree-heading-actions .tree-tabs { gap: 3px; }
  .tree-heading-actions .tree-tabs button { min-width: 34px; height: 28px; padding: 0 4px; font-size: 7px; }
  .tree-points { grid-column: 2; grid-row: 1; min-width: 58px; height: 28px; padding: 3px 4px; }
  .tree-points span { font-size: 7px; }
  .tree-points strong { margin-top: 0; font-size: 13px; line-height: 1; }
  .tree-selection { width: min(330px, calc(100% - 16px)); min-height: 166px; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 46px; gap: 10px; padding: 13px; }
  .tree-selection-icon { width: 46px; height: 46px; }
  .tree-selection-icon .skill-icon-frame, .tree-selection-icon .skill-icon-canvas { width: 44px; height: 44px; }
  .tree-selection-copy { grid-template-rows: 11px auto auto; row-gap: 3px; }
  .tree-selection-copy > span { font-size: 7px; }
  .tree-selection-copy h3 { font-size: 14px; }
  .tree-selection-copy strong { font-size: 7px; }
  .tree-selection-copy p { font-size: 11.5px; line-height: 1.4; }
  .tree-skill-buy { height: 46px; font-size: 11px; }
  .skill-tree-panel .skill-tree { width: 2600px; height: 2200px; }
  .skill-tree-panel .skill-node { width: 70px; height: 70px; min-height: 70px; }
  .skill-icon-frame, .skill-icon-canvas { width: 54px; height: 54px; }
  .tree-view-controls { right: 8px; bottom: 8px; }
  .tree-view-controls button { width: 34px; height: 34px; }
  .tree-footer { min-height: calc(58px + env(safe-area-inset-bottom)); padding: 7px 0 max(7px, env(safe-area-inset-bottom)); }
  .tree-footer-actions { width: 100%; justify-content: flex-end; }
  .tree-footer .primary-button { min-height: 44px; }
  .tutorial-panel { width: calc(100vw - 32px); padding: 22px 20px 23px; }
  .desktop-tutorial-only { display: none; }
}

@media (max-width: 420px) {
  .topbar { grid-template-columns: 46px minmax(36px, 1fr) 40px auto; gap: 3px; padding-left: 4px; padding-right: 4px; }
  .tree-selection { min-height: 158px; padding: 11px; }
  .tree-selection-copy p { font-size: 11.5px; }
}

@media (max-height: 500px) {
  .game-shell { min-height: 0; max-height: 100dvh; }
  #skillTreeModal { padding: 4px; }
  .skill-tree-panel { width: 100%; height: 100%; padding: 6px 10px 0; }
  .tree-heading { min-height: 36px; grid-template-columns: minmax(0, 1fr) 82px; grid-template-rows: 28px; align-items: center; gap: 7px; padding: 3px 0; }
  .tree-heading-title { display: flex; align-items: center; gap: 7px; }
  .tree-heading-title .eyebrow { display: none; }
  .tree-heading-title h2 { margin: 0; font-size: 15px; white-space: nowrap; }
  .tree-heading-actions .tree-tabs { gap: 3px; }
  .tree-heading-actions .tree-tabs button { min-width: 42px; height: 29px; padding: 0 5px; font-size: 7px; }
  .tree-points { min-width: 82px; height: 29px; padding: 3px 7px; }
  .tree-points span { font-size: 7px; }
  .tree-points strong { margin-top: 0; font-size: 14px; line-height: 1; }
  .tree-footer { min-height: 47px; padding: 4px 0; }
  .tree-footer .primary-button { min-height: 39px; height: 39px; }
  .tree-selection { min-height: 0; max-height: min(152px, calc(100% - 12px)); height: min(152px, calc(100% - 12px)); grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 38px; gap: 7px; padding: 8px 10px; }
  .tree-selection-icon { width: 40px; height: 40px; }
  .tree-selection-icon .skill-icon-frame, .tree-selection-icon .skill-icon-canvas { width: 38px; height: 38px; }
  .tree-selection-copy { grid-template-rows: 9px auto minmax(0, 1fr); row-gap: 2px; }
  .tree-selection-copy h3 { font-size: 13px; }
  .tree-selection-copy p { max-height: 52px; overflow-y: auto; font-size: 10.5px; line-height: 1.3; }
  .tree-skill-buy { height: 38px; font-size: 10px; }
}

@media (max-width: 820px) {
  .settings-panel { width: calc(100vw - 24px); max-height: calc(100dvh - 20px); padding: 17px; }
  .setting-row { min-height: 62px; gap: 10px; }
  .redeem-row { display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 8px; padding: 9px 0 12px; }
  .redeem-control { width: 100%; grid-template-columns: minmax(0, 1fr) 60px; }
  .redeem-control input, .redeem-control button { height: 38px; }
  .anomaly-clear-panel { padding: 24px 18px 20px; }
  .anomaly-clear-panel h2 { font-size: 22px; }
  .anomaly-clear-actions { grid-template-columns: 1fr; }
  .anomaly-clear-actions button { height: 46px; }
  .anomaly-purge-effect strong { width: calc(100% - 36px); text-align: center; font-size: 9px; }
  .skill-tree-panel .skill-node.purge-node { width: 78px; height: 78px; min-height: 78px; }
}

/* Skill-tree probability drawer */
.skill-tree-panel { position: relative; }
.tree-heading { grid-template-columns: minmax(210px, .72fr) minmax(460px, 1.28fr); }
.tree-heading-actions { width: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.tree-heading-actions .tree-points { margin-left: auto; }
.tree-probability-button { height: 42px; min-width: 108px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(85,242,194,.28); color: #b8cbc5; background: rgba(85,242,194,.045); font-size: 10px; font-weight: 900; cursor: pointer; }
.tree-probability-button:hover { color: var(--mint); border-color: rgba(85,242,194,.55); }
.tree-probability-button.active { color: #07110d; border-color: var(--mint); background: var(--mint); }
.tree-probability-button .basket-glyph { width: 23px; height: 15px; }
.tree-probability-button .basket-glyph i { width: 5px; }
.probability-label-short { display: none; }
.tree-compendium-panel { z-index: 55; top: 96px; right: 24px; bottom: 89px; width: min(400px, calc(100% - 48px)); height: auto; padding: 17px 15px 14px; border: 1px solid rgba(85,242,194,.2); border-right: 0; background: rgba(8,14,15,.98); box-shadow: -22px 0 55px rgba(0,0,0,.5); transform: translateX(calc(100% + 26px)); }
.tree-compendium-panel.open { transform: translateX(0); }
.tree-compendium-panel .panel-heading { padding-bottom: 11px; }
.tree-compendium-panel .panel-heading h2 { font-size: 17px; }
.tree-compendium-panel .panel-heading > strong::after { content: " 种"; color: #7e8d89; font-size: 8px; }
.probability-chart { flex: 0 0 auto; margin: 0 6px 12px; padding: 10px 10px 9px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.018); }
.probability-chart-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: #8d9b97; font-size: 8px; font-weight: 900; }
.probability-chart-heading strong { color: #dce9e5; font-size: 9px; }
.probability-stack { width: 100%; height: 13px; display: flex; overflow: hidden; background: rgba(255,255,255,.045); }
.probability-stack i { position: relative; flex: var(--weight) 1 0; min-width: 2px; background: var(--fruit-color); box-shadow: inset -1px 0 rgba(5,9,10,.62), 0 0 8px color-mix(in srgb, var(--fruit-color) 28%, transparent); }
.probability-stack i:hover { filter: brightness(1.25); }
.probability-chart-note { margin-top: 6px; color: #5f6e6a; font-size: 7px; }

@media (max-width: 820px) {
  .tree-heading { grid-template-columns: minmax(0, 1fr) auto; }
  .tree-heading-actions { width: auto; max-width: 100%; gap: 3px; }
  .tree-heading-actions .tree-points { margin-left: 0; }
  .tree-heading-actions .tree-points { min-width: 52px; }
  .tree-heading-actions .upgrade-settings-button { width: 28px; height: 28px; flex-basis: 28px; }
  .tree-heading-actions .upgrade-settings-button > i { width: 14px; height: 14px; border-width: 2px; }
  .tree-probability-button { width: 54px; min-width: 54px; height: 28px; padding: 0 3px; gap: 3px; font-size: 7px; }
  .tree-probability-button .basket-glyph { width: 17px; height: 13px; }
  .probability-label-long { display: none; }
  .probability-label-short { display: inline; }
  .tree-footer > span { display: none; }
  .tree-footer-actions { width: 100%; min-width: 0; }
  .tree-compendium-panel { top: 46px; right: 8px; bottom: calc(59px + env(safe-area-inset-bottom)); width: min(350px, calc(100% - 16px)); padding: 13px 10px max(10px, env(safe-area-inset-bottom)); transform: translateX(calc(100% + 10px)); }
  .tree-compendium-panel .panel-heading { padding: 0 4px 9px; }
  .probability-chart { margin: 0 4px 9px; padding: 8px; }
  .reality-heading-actions { gap: 5px; }
  .reality-heading-actions .upgrade-settings-button { width: 38px; height: 38px; flex-basis: 38px; }
}

@media (max-width: 350px) {
  .tree-probability-button { width: 44px; min-width: 44px; }
  .probability-label-short { display: none; }
}

@media (max-height: 500px) {
  .tree-heading { grid-template-columns: minmax(0, 1fr) auto; }
  .tree-probability-button { min-width: 82px; height: 29px; padding: 0 7px; font-size: 8px; }
  .tree-compendium-panel { top: 42px; right: 10px; bottom: 48px; width: min(390px, calc(100% - 20px)); padding: 9px 10px; }
  .tree-compendium-panel .panel-heading { padding: 0 4px 6px; }
  .tree-compendium-panel .panel-heading h2 { font-size: 14px; }
  .probability-chart { margin-bottom: 6px; padding: 6px 8px; }
  .probability-chart-note { display: none; }
}

/* Quieter playfield, with HIT energy moved to cut waves and the frame */
.ambient-grid { opacity: .1; }
.combo-orbit { width: 440px; height: 440px; }
#comboWaveCanvas { opacity: .46; }
.combo-readout::before, .combo-readout::after { display: none; }
.combo-orbit.charged .combo-readout,
.combo-orbit.overdrive .combo-readout,
.combo-orbit.hyper .combo-readout,
.combo-orbit.transcendent .combo-readout,
.combo-orbit.singularity .combo-readout,
.combo-orbit.limitbreak .combo-readout { box-shadow: inset 0 0 24px rgba(0,0,0,.78), 0 0 18px color-mix(in srgb, var(--heat-color) 24%, transparent); }

.event-banner { width: min(360px, calc(100% - 28px)); padding: 10px 46px 12px; overflow: hidden; border: 1px solid rgba(255,211,78,.42); border-left: 3px solid var(--yellow); border-right: 3px solid #55f2c2; background: rgba(8,13,14,.94); box-shadow: 0 12px 34px rgba(0,0,0,.38); clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%); }
.event-banner::before, .event-banner::after { content: ""; position: absolute; top: 50%; width: 25px; height: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; transform: translateY(-50%); opacity: .7; }
.event-banner::before { left: 13px; color: var(--yellow); }
.event-banner::after { right: 13px; color: #55f2c2; }
.event-banner.visible { animation: fever-banner .56s cubic-bezier(.18,1.45,.3,1), fever-breathe .7s ease-in-out .56s infinite alternate; }
.event-banner span { color: #55f2c2; font-size: 8px; }
.event-banner strong { display: block; margin-top: 2px; color: #fff3a5; font-size: 20px; text-shadow: 0 0 12px rgba(255,211,78,.42); }
.hit-milestone { --milestone-color: #55f2c2; position: absolute; z-index: 13; left: 50%; top: 22%; width: min(340px, calc(100% - 36px)); text-align: center; color: var(--milestone-color); opacity: 0; transform: translate(-50%, 10px) scale(.78); pointer-events: none; }
.hit-milestone span { display: inline-block; padding: 0 15px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; color: currentColor; font-size: 10px; font-weight: 900; letter-spacing: 0; text-shadow: 0 0 10px currentColor; }
.hit-milestone strong { display: block; margin-top: 4px; color: #f8fffc; font-size: 44px; font-weight: 950; line-height: .95; letter-spacing: 0; text-shadow: 0 2px 0 rgba(0,0,0,.75), 0 0 10px var(--milestone-color), 0 0 26px color-mix(in srgb, var(--milestone-color) 52%, transparent); }
.hit-milestone strong b { color: inherit; font-size: inherit; }
.hit-milestone.visible { animation: hit-milestone-reveal 1.4s cubic-bezier(.18,.88,.28,1) both; }
@keyframes hit-milestone-reveal { 0% { opacity: 1; transform: translate(-50%, 12px) scale(.72); } 14% { opacity: 1; transform: translate(-50%, 0) scale(1.13); } 32%,72% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -7px) scale(.96); } }
.game-shell .vignette { transition: box-shadow .3s ease; }
.game-shell.fever .vignette { box-shadow: inset 0 0 74px 8px rgba(255,211,78,.22), inset 0 0 135px 26px rgba(85,242,194,.1); animation: fever-frame .68s ease-in-out infinite alternate; }
@keyframes fever-banner { from { opacity: 0; transform: translate(-50%, -90%) scaleX(.72); } 70% { opacity: 1; transform: translate(-50%, 4px) scaleX(1.04); } }
@keyframes fever-breathe { to { filter: brightness(1.2); box-shadow: 0 13px 38px rgba(0,0,0,.42), 0 0 20px rgba(255,211,78,.14); } }
@keyframes fever-frame { to { box-shadow: inset 0 0 82px 11px rgba(255,211,78,.3), inset 0 0 145px 30px rgba(85,242,194,.15); } }

@media (max-width: 820px) {
  .combo-orbit { width: min(330px, calc(100vw - 8px)); height: min(330px, calc(100vw - 8px)); }
  .hit-milestone { top: 20%; width: min(320px, calc(100% - 52px)); }
  .hit-milestone strong { font-size: 34px; }
  .event-banner { top: 80px; padding-left: 40px; padding-right: 40px; }
  .event-banner strong { font-size: 17px; }
}

@media (max-height: 500px) {
  .combo-orbit { width: min(296px, calc(100vh - 96px)); height: min(296px, calc(100vh - 96px)); }
  .hit-milestone { top: 24%; }
  .hit-milestone strong { font-size: 32px; }
}
