@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Share+Tech+Mono&display=swap");

:root {
  --bg: #0b0e1a;
  --panel: rgba(18, 22, 42, 0.92);
  --accent: #37f5ff;
  --accent-2: #ff4ff2;
  --accent-3: #ffd166;
  --text: #e6f0ff;
  --muted: #8a93b2;
  --danger: #ff4d4d;
  --glow: 0 0 14px rgba(55, 245, 255, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #18203f 0%, #0b0e1a 60%);
  color: var(--text);
  font-family: "Share Tech Mono", monospace;
  min-height: 100vh;
  padding: clamp(20px, 2vw, 36px);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(55, 245, 255, 0.18) 0%, rgba(55, 245, 255, 0) 46%),
    radial-gradient(circle at 84% 24%, rgba(255, 79, 242, 0.15) 0%, rgba(255, 79, 242, 0) 44%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      rgba(255, 255, 255, 0) 3px,
      rgba(255, 255, 255, 0) 6px
    );
}

body::after {
  background:
    linear-gradient(120deg, rgba(55, 245, 255, 0.12), rgba(255, 79, 242, 0.1), rgba(255, 209, 102, 0.08));
  mix-blend-mode: screen;
}

body.hype-mode {
  background: radial-gradient(circle at top, #1f2a54 0%, #090d1c 62%);
}

body.hype-mode::before,
body.hype-mode::after {
  opacity: 1;
}

body.hype-mode::before {
  animation: hype-scanline 9s linear infinite;
}

#app {
  position: relative;
  z-index: 1;
  width: min(2200px, 99vw);
  max-width: 2200px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(30px, 2.2vw, 40px);
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(55, 245, 255, 0.6);
}

body.hype-mode .logo {
  animation: logo-glitch 2.4s steps(2, end) infinite;
}

.subtitle {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(13px, 1vw, 16px);
}

.header-controls {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

#hype-toggle {
  min-width: 170px;
}

body.hype-mode #hype-toggle {
  border-color: rgba(255, 79, 242, 0.9);
  box-shadow:
    0 0 14px rgba(255, 79, 242, 0.45),
    0 0 24px rgba(55, 245, 255, 0.28);
}

.screen {
  display: none;
  flex-direction: column;
  gap: 24px;
}

.screen.active {
  display: flex;
}

body.hype-mode .screen.hype-enter {
  animation: screen-hype-enter 420ms cubic-bezier(0.2, 0.82, 0.18, 1);
}

.panel {
  background: var(--panel);
  border: 2px solid rgba(55, 245, 255, 0.2);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--glow);
}

body.hype-mode .panel {
  border-color: rgba(55, 245, 255, 0.34);
  box-shadow:
    0 0 16px rgba(55, 245, 255, 0.38),
    0 0 26px rgba(255, 79, 242, 0.14);
  animation: panel-neon-breathe 2.8s ease-in-out infinite;
}

.panel.wide {
  min-height: 240px;
}

.panel-title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(13px, 0.95vw, 16px);
  color: var(--accent-3);
  margin: 0 0 16px 0;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.row.space {
  justify-content: space-between;
}

.row.center {
  justify-content: center;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.input {
  flex: 1;
  background: #0c1124;
  border: 2px solid rgba(55, 245, 255, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: "Share Tech Mono", monospace;
  font-size: 17px;
}

.btn {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 18px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.hype-mode .btn {
  animation: btn-neon-breathe 2.2s ease-in-out infinite;
}

.btn:hover {
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-color: transparent;
}

body.hype-mode .btn.primary {
  background-size: 220% 220%;
  animation:
    btn-neon-breathe 2.2s ease-in-out infinite,
    btn-primary-shift 3.6s linear infinite;
}

.btn.active {
  border-color: var(--accent-2);
  box-shadow: 0 0 12px rgba(255, 79, 242, 0.4);
  background: rgba(255, 79, 242, 0.12);
}

.btn.tab {
  padding: 7px 12px;
  font-size: 10px;
}

.btn.tab.active {
  border-color: var(--accent);
  box-shadow: var(--glow);
  background: rgba(55, 245, 255, 0.15);
}

.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-label {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--accent-3);
}

.entry-mode-row {
  margin-top: 12px;
}

.status {
  margin-top: 10px;
  color: var(--accent);
  min-height: 24px;
  font-size: 14px;
}

.hint {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.stage-list-wrap {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.stage-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
}

.stage-nav-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  font-size: 13px;
}

.grid {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: clamp(320px, 62vh, 700px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px;
  scroll-snap-type: y proximity;
  scroll-padding-block: clamp(56px, 10vh, 120px);
  scrollbar-width: thin;
  scrollbar-color: rgba(55, 245, 255, 0.5) rgba(12, 17, 38, 0.8);
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0,
    rgba(0, 0, 0, 1) 5%,
    rgba(0, 0, 0, 1) 95%,
    rgba(0, 0, 0, 0.5) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0,
    rgba(0, 0, 0, 1) 5%,
    rgba(0, 0, 0, 1) 95%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.stage-ghost {
  flex: 0 0 clamp(72px, 14vh, 132px);
  pointer-events: none;
}

.grid::-webkit-scrollbar {
  width: 10px;
}

.grid::-webkit-scrollbar-track {
  background: rgba(12, 17, 38, 0.8);
  border-radius: 999px;
}

.grid::-webkit-scrollbar-thumb {
  background: rgba(55, 245, 255, 0.5);
  border-radius: 999px;
}

.card {
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  background: rgba(8, 12, 30, 0.9);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.stage-card {
  scroll-snap-align: center;
  width: 100%;
  min-height: 186px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(55, 245, 255, 0.24);
  transform-origin: center center;
  transform: perspective(1000px) rotateX(var(--roll-rotate, 0deg))
    scale(var(--roll-scale, 1));
  opacity: var(--roll-opacity, 1);
  transition:
    transform 140ms linear,
    opacity 140ms linear,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.stage-card.is-focused {
  border-color: rgba(55, 245, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(55, 245, 255, 0.35),
    0 0 20px rgba(55, 245, 255, 0.22);
}

.stage-main {
  flex: 1;
  min-width: 0;
}

.stage-title-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.stage-title-row .card-title {
  margin-bottom: 0;
}

.card-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 24px;
}

.stage-time {
  margin-left: auto;
  color: var(--accent-3);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.35);
  white-space: nowrap;
}

.stage-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stage-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  border: 1px solid rgba(55, 245, 255, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--accent);
  background: rgba(55, 245, 255, 0.1);
}

.tag-chip.muted {
  color: var(--muted);
  border-color: rgba(138, 147, 178, 0.4);
  background: rgba(138, 147, 178, 0.1);
}

.stage-actions {
  display: flex;
  align-items: center;
}

.card-meta {
  color: var(--muted);
  font-size: 12px;
}

.stage-scroll-hint {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.lobby-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rules-col {
  background: rgba(8, 12, 30, 0.45);
  border: 1px solid rgba(55, 245, 255, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
}

.rules-title {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--accent-3);
  margin-bottom: 10px;
}

.rules-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  display: grid;
  gap: 6px;
}

.rules-list code {
  background: rgba(12, 17, 38, 0.95);
  border: 1px solid rgba(55, 245, 255, 0.22);
  border-radius: 6px;
  padding: 1px 6px;
}

@media (max-width: 960px) {
  body {
    padding: 16px;
  }

  .panel {
    padding: 18px;
  }

  .title {
    font-size: 24px;
  }

  .body {
    font-size: 15px;
  }

  .timer-value {
    font-size: 20px;
  }
}

@media (max-width: 720px) {
  .stage-list-wrap {
    flex-direction: column;
    gap: 8px;
  }

  .stage-nav {
    flex-direction: row;
    justify-content: flex-start;
  }

  .stage-nav-btn {
    min-width: 40px;
    min-height: 40px;
    font-size: 12px;
  }

  .grid {
    max-height: 56vh;
    padding: 10px 8px;
    scroll-padding-block: 42px;
  }

  .lobby-rules {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rules-list {
    font-size: 13px;
  }

  .stage-ghost {
    flex-basis: 52px;
  }

  .stage-card {
    flex-direction: column;
    min-height: 0;
  }

  .card-title {
    font-size: 20px;
  }

  .stage-time {
    font-size: 16px;
  }

  .stage-desc {
    font-size: 14px;
  }

  .tag-chip {
    font-size: 11px;
  }

  .stage-actions {
    justify-content: flex-end;
  }
}

.title {
  font-size: clamp(26px, 1.8vw, 34px);
  font-weight: 700;
  margin-bottom: 8px;
}

.meta {
  color: var(--muted);
  font-size: 16px;
}

.body {
  margin-top: 14px;
  line-height: 1.7;
  font-size: 17px;
}

.body h1,
.body h2,
.body h3,
.body h4,
.body h5,
.body h6 {
  margin: 14px 0 8px;
  color: var(--accent-3);
}

.body p,
.body ul,
.body ol,
.body pre,
.body blockquote {
  margin: 10px 0;
}

.body ul,
.body ol {
  padding-left: 20px;
}

.body code {
  background: rgba(12, 17, 38, 0.95);
  border: 1px solid rgba(55, 245, 255, 0.22);
  border-radius: 6px;
  padding: 1px 6px;
}

.body pre {
  overflow-x: auto;
  background: rgba(12, 17, 38, 0.95);
  border: 1px solid rgba(55, 245, 255, 0.22);
  border-radius: 8px;
  padding: 12px;
}

.body pre code {
  border: none;
  padding: 0;
  background: transparent;
}

.body a {
  color: var(--accent);
}

.body blockquote {
  border-left: 3px solid rgba(55, 245, 255, 0.45);
  padding-left: 10px;
  color: var(--muted);
}

.timer {
  text-align: right;
}

.timer-label {
  font-size: 14px;
  color: var(--muted);
}

.timer-value {
  font-family: "Press Start 2P", monospace;
  font-size: 26px;
  color: var(--accent);
  transition: color 0.18s ease, text-shadow 0.18s ease, transform 0.18s ease;
}

body.hype-mode .timer-value {
  text-shadow: 0 0 12px rgba(55, 245, 255, 0.45);
}

body.hype-mode .timer-value.is-hype-warn-1 {
  color: #ffd166;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.6);
}

body.hype-mode .timer-value.is-hype-warn-2 {
  color: #ff9a4a;
  text-shadow: 0 0 16px rgba(255, 154, 74, 0.72);
  animation:
    hype-timer-pulse 0.75s ease-in-out infinite,
    hype-timer-jitter 0.22s steps(2, end) infinite;
}

body.hype-mode .timer-value.is-hype-warn-3 {
  color: #ff4d4d;
  text-shadow: 0 0 18px rgba(255, 77, 77, 0.88);
  animation:
    hype-timer-pulse 0.45s ease-in-out infinite,
    hype-timer-jitter-hard 0.1s steps(2, end) infinite;
}

.timer-penalty {
  color: var(--accent-2);
  font-size: 14px;
}

.hint-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dist-files {
  color: var(--muted);
  font-size: 14px;
}

.hidden {
  display: none;
}

.hint-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(12, 17, 38, 0.8);
}

.hint-text {
  flex: 1;
  font-size: 15px;
}

.board {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.board-pager {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.board-page-label {
  min-width: 78px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.board-pager .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.board-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(8, 12, 30, 0.6);
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

body.hype-mode .board-item {
  border: 1px solid rgba(55, 245, 255, 0.16);
}

body.hype-mode .board-item.hype-enter {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  animation: board-enter 440ms cubic-bezier(0.18, 0.8, 0.32, 1) forwards;
}

body.hype-mode .board-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(55, 245, 255, 0.3);
}

.board-item.highlight {
  border: 1px solid rgba(255, 209, 102, 0.8);
  background: rgba(255, 209, 102, 0.18);
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.4);
}

body.hype-mode .board-item.hype-rank-up {
  animation:
    board-rank-up 520ms cubic-bezier(0.2, 0.72, 0.18, 1),
    glow-pulse 920ms ease-out;
}

.solve-banner {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translate(-50%, -30%) scale(0.8);
  opacity: 0;
  padding: 20px 30px;
  border-radius: 14px;
  background: rgba(8, 12, 30, 0.92);
  border: 2px solid rgba(55, 245, 255, 0.5);
  box-shadow: 0 0 30px rgba(55, 245, 255, 0.5);
  font-family: "Press Start 2P", monospace;
  color: var(--accent-3);
  font-size: 18px;
  letter-spacing: 1px;
  text-align: center;
  z-index: 1000;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.solve-banner.active {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

body.hype-mode .solve-banner.hype-burst {
  animation: solve-hype-burst 360ms cubic-bezier(0.2, 0.8, 0.15, 1);
}

body.shake {
  animation: screen-shake 0.5s ease-in-out;
}

body.hype-mode.hype-pulse-soft::after {
  animation: hype-pulse-soft 300ms ease-out;
}

body.hype-mode.hype-pulse-mid::after {
  animation: hype-pulse-mid 340ms ease-out;
}

body.hype-mode.hype-pulse-hard::after {
  animation: hype-pulse-hard 420ms ease-out;
}

@keyframes screen-shake {
  0% { transform: translate(0, 0); }
  15% { transform: translate(-8px, 4px); }
  30% { transform: translate(10px, -6px); }
  45% { transform: translate(-12px, 8px); }
  60% { transform: translate(8px, -4px); }
  75% { transform: translate(-6px, 6px); }
  100% { transform: translate(0, 0); }
}

.gameover {
  text-align: center;
  border-color: var(--danger);
  box-shadow: 0 0 18px rgba(255, 77, 77, 0.6);
}

.gameover-title {
  font-family: "Press Start 2P", monospace;
  font-size: 34px;
  color: var(--danger);
  margin-bottom: 12px;
}

.gameover-sub {
  font-size: 18px;
  color: var(--accent-3);
  margin-bottom: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(4px);
}

.modal.hidden {
  display: none;
}

.modal-content {
  width: min(620px, 94vw);
  text-align: center;
}

.modal-text {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 16px;
}

.modal-ready {
  margin: 16px 0 12px;
  font-family: "Press Start 2P", monospace;
  color: var(--accent-3);
  font-size: 14px;
}

@keyframes hype-scanline {
  0% {
    background-position:
      0 0,
      0 0,
      0 0;
  }
  100% {
    background-position:
      0 0,
      0 0,
      0 96px;
  }
}

@keyframes logo-glitch {
  0%,
  72%,
  100% {
    transform: translate(0, 0);
    text-shadow:
      0 0 12px rgba(55, 245, 255, 0.6),
      0 0 2px rgba(255, 79, 242, 0.24);
  }
  74% {
    transform: translate(-1px, 0);
    text-shadow:
      -2px 0 0 rgba(255, 79, 242, 0.65),
      2px 0 0 rgba(55, 245, 255, 0.72);
  }
  76% {
    transform: translate(1px, 0);
    text-shadow:
      2px 0 0 rgba(255, 79, 242, 0.65),
      -2px 0 0 rgba(55, 245, 255, 0.72);
  }
}

@keyframes panel-neon-breathe {
  0%,
  100% {
    box-shadow:
      0 0 14px rgba(55, 245, 255, 0.34),
      0 0 24px rgba(255, 79, 242, 0.12);
  }
  50% {
    box-shadow:
      0 0 24px rgba(55, 245, 255, 0.46),
      0 0 38px rgba(255, 79, 242, 0.22);
  }
}

@keyframes btn-neon-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(55, 245, 255, 0);
    border-color: rgba(255, 255, 255, 0.24);
  }
  50% {
    box-shadow: 0 0 12px rgba(55, 245, 255, 0.34);
    border-color: rgba(55, 245, 255, 0.52);
  }
}

@keyframes btn-primary-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes screen-hype-enter {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
    filter: saturate(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@keyframes board-enter {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes board-rank-up {
  0% {
    transform: translateX(-8px) scale(0.985);
  }
  55% {
    transform: translateX(2px) scale(1.02);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 0 rgba(255, 209, 102, 0);
  }
  45% {
    box-shadow: 0 0 18px rgba(255, 209, 102, 0.58);
  }
  100% {
    box-shadow: 0 0 14px rgba(255, 209, 102, 0.4);
  }
}

@keyframes solve-hype-burst {
  0% {
    transform: translate(-50%, 2px) scale(0.96);
    filter: saturate(1);
  }
  55% {
    transform: translate(-50%, -4px) scale(1.045);
    filter: saturate(1.4);
  }
  100% {
    transform: translate(-50%, 0) scale(1);
    filter: saturate(1);
  }
}

@keyframes hype-timer-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes hype-timer-jitter {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-1px, 1px) rotate(-0.35deg);
  }
  50% {
    transform: translate(1px, -1px) rotate(0.35deg);
  }
  75% {
    transform: translate(-1px, -1px) rotate(-0.25deg);
  }
  100% {
    transform: translate(1px, 1px) rotate(0.25deg);
  }
}

@keyframes hype-timer-jitter-hard {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-2px, 1px) rotate(-0.8deg);
  }
  40% {
    transform: translate(2px, -1px) rotate(0.8deg);
  }
  60% {
    transform: translate(-2px, -1px) rotate(-0.7deg);
  }
  80% {
    transform: translate(2px, 1px) rotate(0.7deg);
  }
  100% {
    transform: translate(-1px, 0) rotate(-0.45deg);
  }
}

@keyframes hype-pulse-soft {
  0% {
    opacity: 1;
    filter: brightness(1) saturate(1);
  }
  50% {
    opacity: 0.92;
    filter: brightness(1.1) saturate(1.08);
  }
  100% {
    opacity: 0.84;
    filter: brightness(1.04) saturate(1.03);
  }
}

@keyframes hype-pulse-mid {
  0% {
    opacity: 1;
    filter: brightness(1) saturate(1);
  }
  45% {
    opacity: 0.9;
    filter: brightness(1.2) saturate(1.16);
  }
  100% {
    opacity: 0.78;
    filter: brightness(1.08) saturate(1.08);
  }
}

@keyframes hype-pulse-hard {
  0% {
    opacity: 1;
    filter: brightness(1) saturate(1) hue-rotate(0deg);
  }
  35% {
    opacity: 0.95;
    filter: brightness(1.32) saturate(1.28) hue-rotate(4deg);
  }
  70% {
    opacity: 0.86;
    filter: brightness(1.18) saturate(1.2) hue-rotate(-2deg);
  }
  100% {
    opacity: 0.74;
    filter: brightness(1.1) saturate(1.1) hue-rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hype-mode::before,
  body.hype-mode::after,
  body.hype-mode .logo,
  body.hype-mode .panel,
  body.hype-mode .btn,
  body.hype-mode .screen,
  body.hype-mode .timer-value,
  body.hype-mode .board-item,
  body.hype-mode .solve-banner {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
