/* Stage 4-4 runner game styles only. */

/* =========================
   STAGE 4-4: 3레인 마루판 복구 러너
========================= */

.s44-runner-main {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  width: 1380px;
  margin: 88px auto 0;
  color: #effcff;
}

.s44-game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-sizing: border-box;
  min-height: 88px;
  padding: 12px 24px;
  border: 1px solid rgba(120, 232, 255, .28);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(6, 23, 35, .94), rgba(5, 17, 27, .9));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .34);
}

.s44-game-head > div:first-child {
  display: flex;
  align-items: center;
  min-width: 0;
}

.s44-game-head .s22-drone-hud-round {
  padding: 0;
}

.s44-kicker {
  color: #77e9ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
}

.s44-game-head h1 {
  display: none;
}

.s44-game-head p {
  margin: 0;
  color: rgba(204, 237, 244, .72);
  font-size: 13px;
  font-weight: 750;
}

.s44-head-meters {
  --s44-hud-gauge-width: 234px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.s44-stability-gauge {
  display: grid;
  gap: 7px;
  width: var(--s44-hud-gauge-width);
  min-width: var(--s44-hud-gauge-width);
  padding: 10px 14px;
  border: 1px solid rgba(110, 224, 255, .18);
  border-radius: 10px;
  background: rgba(5, 19, 30, .78);
  box-sizing: border-box;
}

.s44-stability-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.s44-stability-copy span {
  color: #82cbd9;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.s44-stability-copy strong {
  color: #7dffe8;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.s44-stability-track {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(6, 20, 34, 0.92);
  border: 1px solid rgba(120, 200, 230, 0.18);
  box-sizing: border-box;
}

.s44-stability-track span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3ec8ff, #6ef7d8);
  box-shadow: 0 0 12px rgba(90, 230, 255, 0.4);
  transition: width 220ms ease;
}

.s44-stability-track span.is-warning {
  background: linear-gradient(90deg, #ffd45f, #ff9b45);
}

.s44-stability-track span.is-danger {
  background: linear-gradient(90deg, #ff9b5f, #ff395d);
}

.s44-time-gauge {
  display: grid;
  gap: 7px;
  width: var(--s44-hud-gauge-width);
  min-width: var(--s44-hud-gauge-width);
  padding: 10px 14px;
  border: 1px solid rgba(255, 200, 90, .28);
  border-radius: 10px;
  background: rgba(5, 19, 30, .78);
  box-sizing: border-box;
}

.s44-time-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.s44-time-copy span {
  color: #ffe08a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.s44-time-copy strong {
  color: #fff4d0;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.s44-time-track {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(6, 20, 34, 0.92);
  border: 1px solid rgba(255, 200, 90, 0.3);
  box-sizing: border-box;
}

.s44-time-track span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb84a, #ffe36a);
  box-shadow: 0 0 12px rgba(255, 190, 70, 0.42);
  transition: width 80ms linear;
}

.s44-time-track span.is-warning {
  background: linear-gradient(90deg, #ffd45f, #ff9b45);
}

.s44-time-track span.is-danger {
  background: linear-gradient(90deg, #ff9b5f, #ff395d);
}

.s44-score-meter {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-width: 108px;
  min-height: 54px;
  padding: 10px 16px;
  border: 1px solid rgba(110, 224, 255, .18);
  border-radius: 10px;
  background: rgba(5, 19, 30, .78);
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
}

.s44-score-meter span {
  color: #82cbd9;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.s44-score-meter strong {
  color: #f4feff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  min-width: 3ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.s44-game-board {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(120, 232, 255, .28);
  border-radius: 0 0 18px 18px;
  background: rgba(3, 13, 22, .9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
}

.s44-calc-panel {
  position: relative;
  z-index: 8;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 22px 10px;
  border-bottom: 1px solid rgba(110, 240, 231, .22);
  background:
    radial-gradient(circle at 42% 18%, rgba(67, 255, 220, .1), transparent 42%),
    linear-gradient(180deg, rgba(6, 28, 38, .98), rgba(4, 19, 29, .96));
  box-shadow: inset 0 -10px 24px rgba(0, 0, 0, .14);
}

.s44-calc-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 2px;
  position: relative;
  top: -0.9cm;
}

.s44-problem-area {
  display: flex;
  align-items: center;
  margin-left: 110px;
  min-width: 0;
}

.s44-problem-expr {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff8e8;
  font-size: 40px;
  line-height: 1;
}

.s44-problem-expr .s4-mixed,
.s44-problem-expr .s44-problem-mixed {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-size: 40px;
}

.s44-problem-expr .s4-mixed > strong,
.s44-problem-expr .s44-problem-mixed > strong {
  font-size: 0.95em;
  line-height: 1;
}

.s44-problem-expr .s4-mixed .s4-fraction strong {
  font-size: 1em;
  line-height: 0.95;
}

.s44-problem-expr .s4-fraction {
  display: inline-grid;
  grid-template-rows: auto 2px auto;
  gap: 0;
  min-width: auto;
  line-height: 0.95;
}

.s44-problem-expr .s4-fraction strong {
  line-height: 0.95;
}

.s44-problem-expr .s4-fraction i {
  width: calc(100% + 2px);
  min-width: 0;
  height: 2px;
  margin: 1px 0;
  background: #fff0c9;
}

.s44-plus {
  color: #78eaff;
  font-size: 36px;
  font-weight: 900;
}

.s44-step-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 4px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}

.s44-step-chips li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 0 0 auto;
  min-width: 99px;
  max-width: 133px;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(120, 220, 238, .1);
  border-radius: 999px;
  color: rgba(171, 211, 219, .32);
  background: rgba(5, 16, 25, .36);
  font-size: 17px;
  font-weight: 850;
  white-space: nowrap;
}

.s44-step-chips li span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  font-size: 15px;
}

.s44-step-chips li.active {
  border-color: rgba(122, 255, 222, .36);
  color: #d8fff6;
  background: rgba(38, 111, 100, .28);
}

.s44-step-chips li.done {
  border-color: rgba(102, 225, 255, .18);
  color: rgba(131, 230, 247, .62);
  background: rgba(20, 69, 79, .28);
}

.s44-process-area {
  padding: 2px 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  top: -0.9cm;
}

.s44-equation-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: max-content;
  max-width: 100%;
  margin-left: 110px;
}

.s44-equation-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: max-content;
  max-width: none;
  color: #fff4d8;
  font-weight: 900;
  line-height: 1;
}

.s44-equation-line.is-pending {
  font-size: 28px;
  opacity: .42;
}

.s44-equation-line.is-done {
  font-size: 28px;
  opacity: .68;
}

.s44-equation-line.is-active {
  font-size: 30px;
  opacity: 1;
}

.s44-eq-sign {
  width: 24px;
  text-align: center;
  flex: 0 0 24px;
}

.s44-eq-body {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 0.14em 0.22em;
  min-width: 0;
  white-space: nowrap;
}

.s44-eq-body.is-pending-part {
  opacity: .45;
}

.s44-eq-body.is-focus-part {
  opacity: 1;
}

.s44-step-hint {
  justify-self: end;
  max-width: 220px;
  padding: 2px 8px;
  border-radius: 999px;
  color: rgba(196, 244, 238, .78);
  background: rgba(14, 58, 54, .42);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.s44-equation-line.is-active .s44-step-hint {
  color: rgba(220, 252, 246, .92);
  background: rgba(22, 78, 72, .52);
}

.s44-process-op {
  color: #7eeedf;
  font-weight: 900;
}

.s44-blank-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 6px;
  background: rgba(12, 34, 42, .5);
  box-shadow: inset 0 0 0 2px rgba(170, 211, 216, .38);
}

.s44-blank-slot.is-highlight {
  background: rgba(255, 236, 120, .46);
  box-shadow: inset 0 0 0 2px rgba(255, 224, 120, .95);
}

.s44-eq-body.is-pending-part .s44-blank-slot:not(.is-highlight) {
  opacity: .5;
}

.s44-blank-box {
  width: 26px;
  height: 28px;
  min-width: 26px;
  min-height: 28px;
  padding: 0;
  vertical-align: middle;
}

.s44-blank-frac {
  padding: 5px 9px 6px;
  vertical-align: middle;
}

.s44-blank-frac .s4-fraction {
  display: inline-grid;
  grid-template-rows: minmax(24px, auto) 3px minmax(24px, auto);
  gap: 0;
  line-height: 1;
  min-width: 30px;
  align-items: center;
  justify-items: center;
}

.s44-blank-num-space {
  display: block;
  width: 26px;
  height: 24px;
  min-height: 24px;
  margin: 0 auto;
}

.s44-blank-frac .s4-fraction i {
  width: 100%;
  min-width: 28px;
  height: 3px;
  margin: 0;
  background: rgba(255, 240, 200, .95);
}

.s44-blank-frac .s4-fraction strong {
  color: #fff8e8;
  font-size: 1em;
  line-height: 1;
  min-width: 18px;
  text-align: center;
}

.s44-process-mixed .s44-blank-frac {
  margin-left: 1px;
}

.s44-process-em {
  color: #fff8e8;
  padding: 0 0.08em;
  border-radius: 8px;
  background: rgba(122, 255, 222, .12);
  box-shadow: inset 0 0 0 1px rgba(122, 255, 222, .28);
}

.s44-process-int {
  color: #fff8e8;
  font-weight: 950;
  font-size: 1em;
  line-height: 0.95;
}

.s44-runner-main .s4-mixed,
.s44-equation-stack .s4-mixed,
.s44-problem-expr .s4-mixed,
.s44-runner-main .s44-problem-mixed,
.s44-runner-main .s44-process-mixed {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-size: inherit;
}

.s44-equation-line .s4-mixed > strong,
.s44-equation-line .s4-mixed .s4-fraction strong,
.s44-equation-line .s4-fraction strong,
.s44-equation-line .s44-process-int {
  font-size: 1em;
  line-height: 0.95;
}

.s44-runner-main .s4-mixed > strong,
.s44-equation-stack .s4-mixed > strong,
.s44-runner-main .s44-problem-mixed > strong,
.s44-runner-main .s44-process-mixed > strong {
  font-size: 1em;
  line-height: 0.95;
}

.s44-runner-main .s4-mixed .s4-fraction strong,
.s44-equation-stack .s4-mixed .s4-fraction strong,
.s44-runner-main .s44-problem-mixed .s4-fraction strong,
.s44-runner-main .s44-process-mixed .s4-fraction strong {
  font-size: 1em;
  line-height: 0.95;
}

.s44-runner-main .s4-fraction,
.s44-equation-stack .s4-fraction,
.s44-problem-expr .s4-fraction {
  display: inline-grid;
  grid-template-rows: auto 2px auto;
  align-items: center;
  gap: 0;
  min-width: auto;
  line-height: 0.95;
  vertical-align: middle;
}

.s44-equation-stack .s4-fraction strong,
.s44-equation-stack .s4-mixed > strong,
.s44-problem-expr .s4-fraction strong,
.s44-problem-expr .s4-mixed > strong {
  color: #fff8e8;
}

.s44-runner-main .s4-fraction i,
.s44-equation-stack .s4-fraction i,
.s44-problem-expr .s4-fraction i {
  width: calc(100% + 2px);
  min-width: 0;
  height: 2px;
  margin: 1px 0;
  background: #fff0c9;
}

.s44-equation-line.is-active .s4-fraction i {
  height: 2px;
}

.s44-lanes {
  position: relative;
  overflow: hidden;
  height: 378px;
  background:
    linear-gradient(90deg, rgba(1, 8, 14, .7), transparent 24%, transparent 78%, rgba(1, 8, 14, .54)),
    repeating-linear-gradient(90deg, rgba(179, 121, 70, .018) 0 136px, rgba(36, 20, 12, .028) 137px 140px),
    linear-gradient(180deg, #543923 0%, #35241a 100%);
  perspective: 900px;
}

.s44-lane {
  position: absolute;
  left: 0;
  width: 100%;
  height: 33.333%;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(91, 224, 229, .18);
  background: rgba(2, 10, 15, .16);
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
}

.s44-lane:nth-child(1) { top: 0; }
.s44-lane:nth-child(2) { top: 33.333%; }
.s44-lane:nth-child(3) { top: 66.666%; border-bottom: 0; }

.s44-lane.is-player-lane {
  background: linear-gradient(90deg, rgba(62, 255, 226, .19), rgba(67, 221, 255, .055) 48%, rgba(20, 70, 68, .015) 80%);
  box-shadow: inset 0 0 44px rgba(57, 244, 220, .11);
}

.s44-lane-name {
  position: absolute;
  left: 28px;
  top: 12px;
  color: rgba(170, 239, 240, .28);
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

.s44-player {
  --s44-player-lane: 1;
  position: absolute;
  z-index: 6;
  left: 10%;
  top: calc((var(--s44-player-lane) * 33.333%) + 16.666%);
  width: 86px;
  height: 86px;
  border: 3px solid rgba(159, 255, 239, .9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 37%, #eaffff 0 6%, transparent 7%),
    radial-gradient(circle at 62% 37%, #eaffff 0 6%, transparent 7%),
    radial-gradient(circle at 50% 50%, #2e8093 0 34%, #123d50 36% 58%, #071923 60%);
  box-shadow: 0 0 0 10px rgba(68, 255, 225, .12), 0 0 42px rgba(60, 255, 221, .58);
  transform: translate(-50%, -50%);
  transition: top .13s cubic-bezier(.2, .9, .2, 1.2);
  pointer-events: none;
}

.s44-player::before,
.s44-player::after {
  content: "";
  position: absolute;
  top: 33px;
  width: 22px;
  height: 10px;
  border: 2px solid #7ef6e3;
  border-radius: 50%;
  background: rgba(6, 25, 34, .9);
}

.s44-player::before { left: -20px; }
.s44-player::after { right: -20px; }

.s44-player span {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: #8bffe8;
  transform: translateX(-50%);
}

.s44-player i {
  position: absolute;
  left: 50%;
  top: -14px;
  width: 3px;
  height: 15px;
  background: #7ef6e3;
}

.s44-player i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffdf78;
  box-shadow: 0 0 10px #ffda62;
  transform: translateX(-50%);
}

.s44-player > span::after {
  content: "";
  position: absolute;
  left: 60px;
  top: 0;
  width: 70px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(120, 255, 231, .8), transparent);
  box-shadow: 0 0 10px rgba(96, 255, 224, .46);
  animation: s44-scan-beam 1.15s ease-in-out infinite;
}

.s44-card-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.s44-plank-card {
  position: absolute;
  top: calc((var(--s44-lane) * 33.333%) + 16.666%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 118px;
  width: auto;
  min-height: 76px;
  height: auto;
  margin-top: -38px;
  padding: 12px 16px;
  border: 4px solid rgba(112, 58, 20, .96);
  border-radius: 10px 18px 9px 15px;
  color: #fff8e8;
  background:
    linear-gradient(12deg, transparent 46%, rgba(255,255,255,.1) 47% 49%, transparent 50%),
    repeating-linear-gradient(0deg, rgba(65, 31, 12, .1) 0 2px, transparent 3px 16px),
    linear-gradient(180deg, #e8aa66, #b56a38);
  box-shadow:
    inset 0 0 0 2px rgba(255, 232, 186, .42),
    0 16px 28px rgba(0, 0, 0, .56),
    0 0 0 1px rgba(255, 220, 150, .42);
  will-change: left;
}

.s44-plank-card .s4-fraction {
  display: inline-grid;
  grid-template-rows: auto 2px auto;
  align-items: center;
  gap: 0;
  min-width: auto;
  line-height: 0.95;
}

.s44-plank-card .s4-fraction strong,
.s44-plank-card .s4-mixed > strong {
  color: #fff9ed;
  line-height: 0.95;
  text-shadow: 0 2px 3px rgba(46, 20, 5, .72);
}

.s44-plank-card .s4-fraction i {
  width: calc(100% + 2px);
  min-width: 26px;
  height: 2px;
  margin: 1px 0;
  background: #fff2d9;
}

.s44-plank-card .s4-mixed {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.s44-plank-card .s4-mixed > strong {
  font-size: 30px;
}

.s44-plank-card .s4-mixed .s4-fraction strong {
  font-size: 30px;
}

.s44-plank-card .s4-fraction strong {
  font-size: 30px;
}

.s44-int-card {
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 2px 3px rgba(46, 20, 5, .72);
}

.s44-plank-card.is-convert {
  min-width: 228px;
  padding-inline: 14px;
}

.s44-convert-card-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.s44-convert-card-value .s4-fraction strong {
  font-size: 30px;
}

.s44-convert-card-value .s4-fraction i {
  width: 0.95em;
  min-width: 28px;
  height: 3px;
  margin: 1px 0;
}

.s44-card-arrow {
  color: #4a260f;
  font-size: 28px;
  font-weight: 950;
  text-shadow: 0 1px rgba(255, 239, 198, .55);
}

.s44-plank-card::before,
.s44-plank-card::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #573018;
  box-shadow: none;
}

.s44-plank-card::after { left: auto; right: 12px; }

.s44-plank-card::before { top: 10px; }
.s44-plank-card::after { bottom: 10px; }

.s44-plank-card.is-hazard {
  border-color: rgba(255, 181, 144, .46);
  color: #ffe1d1;
  background:
    linear-gradient(58deg, transparent 46%, #4a1c17 47% 51%, transparent 52%),
    linear-gradient(180deg, #75452f, #3e2720);
}

.s44-plank-card.is-caught-wrong {
  z-index: 9;
  border-color: #ff8b79;
  background:
    linear-gradient(58deg, transparent 45%, #ff6158 47% 51%, transparent 53%),
    linear-gradient(180deg, #9c4635, #4b2420);
  box-shadow: 0 0 30px rgba(255, 73, 65, .72);
  animation: s44-wrong-card .22s ease forwards;
}

.s44-action-feedback {
  position: absolute;
  z-index: 12;
  left: 17%;
  top: 50%;
  padding: 7px 14px;
  border-radius: 999px;
  opacity: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.s44-action-feedback.is-correct {
  border: 1px solid rgba(126, 255, 220, .7);
  background: rgba(17, 102, 86, .9);
  box-shadow: 0 0 24px rgba(69, 255, 211, .44);
  animation: s44-feedback-rise .7s ease forwards;
}

.s44-action-feedback.is-wrong {
  border: 1px solid rgba(255, 137, 120, .7);
  background: rgba(124, 43, 38, .92);
  box-shadow: 0 0 24px rgba(255, 80, 67, .4);
  animation: s44-feedback-rise .7s ease forwards;
}

.s44-floor-repair-track {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 6px 16px 8px;
  border-top: 1px solid rgba(117, 224, 234, .16);
  background: rgba(4, 17, 25, .97);
}

.s44-floor-repair-track > span {
  color: #78cbd4;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

#s44-floor-repair-track {
  display: grid;
  grid-template-columns: repeat(19, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
}

.s44-repair-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 26px;
  overflow: hidden;
  border: 1px solid rgba(170, 216, 216, .13);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(83, 57, 38, .4), rgba(37, 26, 20, .72));
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.s44-repair-tile.repaired {
  border-color: rgba(255, 216, 149, .72);
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent),
    linear-gradient(180deg, #d99552, #88502c);
  box-shadow: 0 0 11px rgba(255, 190, 95, .34);
  animation: s44-tile-repair .48s ease;
}

.s44-repair-tile.is-row-complete {
  border-color: #8fffe8;
  box-shadow: 0 0 14px rgba(83, 255, 220, .5);
}

.s44-crack {
  font-size: 15px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.s44-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
  padding: 7px 20px;
  border-top: 1px solid rgba(111, 224, 246, .18);
  background: rgba(5, 18, 28, .96);
}

.s44-controls > div {
  display: flex;
  gap: 8px;
}

.s44-controls button,
.s44-result-card button {
  min-width: 86px;
  padding: 8px 15px;
  border: 1px solid rgba(116, 243, 224, .42);
  border-radius: 8px;
  color: #eafffb;
  background: linear-gradient(180deg, rgba(30, 105, 103, .92), rgba(12, 61, 72, .96));
  font-weight: 900;
  cursor: pointer;
}

.s44-result-layer:empty { display: none; }

.s44-result-layer {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(1, 8, 13, .78);
  backdrop-filter: blur(6px);
}

.s44-result-card {
  display: grid;
  justify-items: center;
  width: 520px;
  padding: 38px 42px;
  border: 1px solid rgba(112, 246, 222, .48);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(9, 38, 46, .98), rgba(4, 18, 28, .98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .55), 0 0 40px rgba(78, 255, 217, .08);
  text-align: center;
}

.s44-result-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 2px solid #85ffe5;
  border-radius: 50%;
  color: #9effe9;
  font-size: 36px;
  font-weight: 950;
  box-shadow: 0 0 26px rgba(83, 255, 218, .22);
}

.s44-result-card.is-fail {
  border-color: rgba(255, 129, 116, .5);
}

.s44-result-card.is-fail .s44-result-icon {
  border-color: #ff887c;
  color: #ffb5a9;
  box-shadow: 0 0 26px rgba(255, 83, 83, .2);
}

.s44-result-card h2 {
  margin: 18px 0 6px;
  color: #f4ffff;
  font-size: 29px;
}

.s44-result-card p {
  margin: 0 0 22px;
  color: rgba(207, 237, 241, .78);
  font-size: 15px;
}

.s44-result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  width: 100%;
  margin-bottom: 24px;
}

.s44-result-stats span {
  display: grid;
  gap: 5px;
  padding: 11px 8px;
  border: 1px solid rgba(107, 224, 235, .18);
  border-radius: 9px;
  color: #83cbd5;
  font-size: 11px;
  font-weight: 800;
  background: rgba(5, 20, 29, .7);
}

.s44-result-stats strong {
  color: #f2ffff;
  font-size: 20px;
}

.s44-stability-gauge.is-damaged {
  animation: s44-hud-damage .5s ease;
}

.s44-stability-gauge.is-damaged .s44-stability-copy strong {
  color: #ff8c7c;
}

#s44-score.is-score-up {
  color: #91ffe8;
  animation: s44-score-pop .5s ease;
}

.s44-game-board.is-correct .s44-lanes {
  animation: s44-correct-flash .5s ease;
}

.s44-game-board.is-wrong {
  animation: s44-board-shake .36s ease;
}

@keyframes s44-correct-flash {
  0%, 100% { box-shadow: inset 0 0 0 rgba(67, 255, 214, 0); }
  45% { box-shadow: inset 0 0 90px rgba(67, 255, 214, .3); }
}

@keyframes s44-board-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

@keyframes s44-scan-beam {
  0%, 100% { opacity: .25; transform: scaleX(.45); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

@keyframes s44-wrong-card {
  to { opacity: 0; transform: scale(1.18) rotate(-5deg); }
}

@keyframes s44-feedback-rise {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.85); }
  28% { opacity: 1; transform: translate(-50%, -12px) scale(1.06); }
  100% { opacity: 0; transform: translate(-50%, -46px) scale(1); }
}

@keyframes s44-tile-repair {
  0% { transform: scale(.7); filter: brightness(2); }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes s44-hud-damage {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px) scale(1.12); }
  60% { transform: translateX(4px) scale(1.08); }
}

@keyframes s44-score-pop {
  50% { transform: scale(1.22); text-shadow: 0 0 14px rgba(110, 255, 225, .7); }
}
