/* フェイズ、ゲーム開始、決着、重要イベントの通知。 */

.phase-notice {
  position: fixed;
  inset: 82px 12px auto;
  z-index: 20;
  display: grid;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
}

.phase-notice.show {
  animation:
    phase-notice-in var(--notice-phase-in-ms, 180ms) ease-out both,
    notice-out var(--notice-out-ms, 220ms) ease-in calc(var(--notice-duration, 1450ms) - var(--notice-out-ms, 220ms)) forwards;
}

.phase-notice.show.notice-target-pending:is(.notice-effect-warrior, .notice-effect-weapon) {
  animation: phase-notice-in var(--notice-phase-in-ms, 180ms) ease-out both;
}

.phase-notice.notice-levelup.show {
  animation:
    levelup-notice-in var(--notice-levelup-in-ms, 260ms) ease-out both,
    notice-out var(--notice-out-ms, 220ms) ease-in calc(var(--notice-duration, 1650ms) - var(--notice-out-ms, 220ms)) forwards;
}

.phase-notice.notice-awaken.show {
  animation:
    awaken-notice-in var(--notice-awaken-in-ms, 360ms) cubic-bezier(0.18, 0.9, 0.24, 1) both,
    notice-out var(--notice-out-long-ms, 260ms) ease-in calc(var(--notice-duration, 2200ms) - var(--notice-out-long-ms, 260ms)) forwards;
}

.phase-notice.notice-special.show {
  animation:
    special-notice-in var(--notice-special-in-ms, 220ms) cubic-bezier(0.18, 0.9, 0.24, 1) both,
    notice-out var(--notice-out-ms, 220ms) ease-in calc(var(--notice-duration, 1450ms) - var(--notice-out-ms, 220ms)) forwards;
}

.phase-notice.notice-special-wait.show {
  animation:
    special-notice-in var(--notice-special-in-ms, 220ms) cubic-bezier(0.18, 0.9, 0.24, 1) both,
    notice-out var(--notice-out-ms, 220ms) ease-in calc(var(--notice-duration, 5000ms) - var(--notice-out-ms, 220ms)) forwards;
}

/* PCでは中央の選択詳細を隠しすぎないよう、特殊ウェイト通知だけ少し上へ寄せる。 */
@media (hover: hover) and (pointer: fine) {
  .phase-notice.notice-special-wait {
    top: 62px;
  }
}

.phase-notice.notice-effect-warrior.show,
.phase-notice.notice-effect-weapon.show {
  animation:
    effect-notice-in var(--notice-effect-in-ms, 220ms) cubic-bezier(0.18, 0.9, 0.24, 1) both,
    notice-out var(--notice-out-ms, 220ms) ease-in calc(var(--notice-duration, 1450ms) - var(--notice-out-ms, 220ms)) forwards;
}

.phase-notice.notice-finish.show {
  animation:
    finish-notice-in var(--notice-finish-in-ms, 300ms) cubic-bezier(0.18, 0.9, 0.24, 1) both,
    notice-out var(--notice-out-long-ms, 260ms) ease-in calc(var(--notice-duration, 2200ms) - var(--notice-out-long-ms, 260ms)) forwards;
}

.speed-fast .phase-notice {
  --notice-phase-in-ms: 120ms;
  --notice-levelup-in-ms: 180ms;
  --notice-awaken-in-ms: 250ms;
  --notice-special-in-ms: 150ms;
  --notice-effect-in-ms: 150ms;
  --notice-finish-in-ms: 220ms;
  --notice-out-ms: 150ms;
  --notice-out-long-ms: 180ms;
}

.game-start-notice {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
}

.game-start-notice.show {
  animation:
    game-start-overlay-in var(--duel-overlay-in-ms, 180ms) ease-out both,
    game-start-overlay-out var(--duel-overlay-out-ms, 220ms) ease-in calc(var(--duel-notice-duration, 1450ms) - var(--duel-overlay-out-ms, 220ms)) forwards;
}

.game-start-notice::before,
.game-start-notice::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(680px, 94vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 225, 154, 0.95), transparent);
  box-shadow: 0 0 22px rgba(255, 225, 154, 0.44);
  transform: translate(-50%, -50%) rotate(-8deg) scaleX(0);
}

.game-start-notice.show::before {
  animation: game-start-slash-a 760ms cubic-bezier(0.18, 0.9, 0.24, 1) both;
}

.game-start-notice.show::after {
  animation: game-start-slash-b 760ms cubic-bezier(0.18, 0.9, 0.24, 1) both;
}

.game-start-copy {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 34px 14px;
  border-top: 1px solid rgba(255, 225, 154, 0.62);
  border-bottom: 1px solid rgba(255, 225, 154, 0.62);
  background:
    linear-gradient(90deg, transparent, rgba(16, 18, 16, 0.78) 18%, rgba(16, 18, 16, 0.84) 82%, transparent),
    radial-gradient(circle at 50% 48%, rgba(255, 225, 154, 0.17), transparent 62%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
  transform: translateY(2px) scale(0.94);
}

.game-start-copy::before,
.game-start-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.game-start-copy::before {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 225, 154, 0.18), transparent 58%),
    linear-gradient(90deg, transparent, rgba(255, 225, 154, 0.08) 48%, transparent);
}

.game-start-copy::after {
  width: 42%;
  background: linear-gradient(110deg, transparent, rgba(255, 248, 210, 0.2), transparent);
  transform: translateX(-160%) skewX(-16deg);
}

.game-start-notice.show .game-start-copy {
  animation:
    game-start-copy-in var(--duel-copy-in-ms, 360ms) cubic-bezier(0.18, 0.9, 0.24, 1) both,
    game-start-copy-out var(--duel-copy-out-ms, 220ms) ease-in calc(var(--duel-notice-duration, 1450ms) - var(--duel-copy-out-ms, 220ms)) forwards;
}

.game-start-notice.show .game-start-copy::after {
  animation: duel-copy-sheen 900ms ease-out 150ms both;
}

.speed-fast .game-start-notice {
  --duel-overlay-in-ms: 120ms;
  --duel-overlay-out-ms: 150ms;
  --duel-copy-in-ms: 260ms;
  --duel-copy-out-ms: 150ms;
}

.game-start-copy span,
.game-start-copy strong,
.game-start-copy em {
  position: relative;
  z-index: 1;
  display: block;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.game-start-copy span {
  color: rgba(248, 239, 206, 0.82);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.game-start-copy strong {
  color: #ffe19a;
  font-size: clamp(42px, 8vw, 82px);
  font-weight: 950;
  line-height: 1;
  text-shadow:
    0 0 10px rgba(255, 225, 154, 0.48),
    0 3px 0 rgba(96, 50, 25, 0.9),
    0 16px 34px rgba(0, 0, 0, 0.52);
}

.game-start-copy em {
  margin-top: 8px;
  color: rgba(248, 239, 206, 0.9);
  font-size: clamp(14px, 2.4vw, 22px);
  font-style: normal;
  font-weight: 900;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
}

.game-start-notice.immediate-finish-duel-notice {
  z-index: 100;
}

.finish-duel-notice::before,
.finish-duel-notice::after {
  background: linear-gradient(90deg, transparent, rgba(255, 178, 112, 0.98), rgba(255, 232, 170, 0.98), transparent);
  box-shadow:
    0 0 24px rgba(255, 178, 112, 0.52),
    0 0 44px rgba(220, 107, 87, 0.22);
}

.finish-duel-notice .game-start-copy {
  border-color: rgba(255, 178, 112, 0.78);
  background:
    linear-gradient(90deg, transparent, rgba(38, 18, 14, 0.8) 18%, rgba(33, 18, 14, 0.88) 82%, transparent),
    radial-gradient(circle at 50% 48%, rgba(255, 178, 112, 0.2), transparent 62%);
}

.finish-duel-notice .game-start-copy span {
  color: rgba(255, 218, 176, 0.86);
}

.finish-duel-notice .game-start-copy strong {
  color: #ffcf91;
  font-size: clamp(48px, 9vw, 92px);
  text-shadow:
    0 0 12px rgba(255, 178, 112, 0.58),
    0 3px 0 rgba(86, 23, 17, 0.96),
    0 18px 38px rgba(0, 0, 0, 0.58);
}

.finish-overlay {
  --finish-inset-top: max(18px, var(--app-safe-top));
  --finish-inset-bottom: calc(max(18px, var(--app-safe-bottom)) + 18px);
  position: fixed;
  top: var(--app-viewport-offset-top);
  left: var(--app-viewport-offset-left);
  width: var(--app-viewport-width);
  height: var(--app-viewport-height);
  z-index: 2500;
  display: grid;
  align-items: end;
  justify-items: center;
  padding:
    var(--finish-inset-top)
    max(18px, var(--app-safe-right))
    var(--finish-inset-bottom)
    max(18px, var(--app-safe-left));
  background: transparent;
  pointer-events: none;
}

.finish-overlay.is-hidden,
.finish-overlay[hidden] {
  display: none !important;
}

.finish-overlay-panel {
  width: min(430px, calc(100vw - 36px));
  min-height: 0;
  max-width: 100%;
  max-height: calc(var(--app-viewport-height) - var(--finish-inset-top) - var(--finish-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 8px;
  padding: 12px 14px 13px;
  border: 1px solid rgba(255, 190, 122, 0.64);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 231, 154, 0.1), transparent 38%),
    radial-gradient(circle at 50% 0%, rgba(255, 178, 112, 0.16), transparent 54%),
    rgba(16, 13, 10, 0.84);
  backdrop-filter: blur(2px);
  pointer-events: auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 30px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(255, 178, 112, 0.18);
  text-align: center;
}

.finish-overlay-kicker {
  margin: 0;
  color: rgba(255, 218, 176, 0.86);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.finish-overlay h2 {
  margin: 0;
  color: #ffcf91;
  font-size: clamp(22px, 4.8vw, 34px);
  line-height: 1;
  text-shadow:
    0 0 12px rgba(255, 178, 112, 0.52),
    0 2px 0 rgba(86, 23, 17, 0.84),
    0 10px 22px rgba(0, 0, 0, 0.42);
}

.finish-overlay-detail {
  min-height: 1.4em;
  margin: 0;
  color: rgba(248, 239, 206, 0.92);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.finish-overlay-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.finish-overlay-button {
  min-height: 34px;
  padding: 6px 10px;
  border-color: rgba(255, 226, 154, 0.56);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 246, 190, 0.16), rgba(76, 57, 27, 0.64)),
    rgba(26, 24, 19, 0.94);
  color: #fff2c9;
  font-size: 15px;
  font-weight: 900;
}

.finish-overlay-return {
  border-color: rgba(174, 231, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(219, 247, 255, 0.1), rgba(25, 40, 42, 0.68)),
    rgba(18, 27, 28, 0.92);
  color: #e9fbff;
}

@media (max-width: 620px) and (orientation: portrait),
  (max-width: 1100px) and (max-height: 1400px) and (orientation: portrait) and (any-pointer: coarse) {
  .finish-overlay {
    --finish-inset-top: max(14px, var(--app-safe-top));
    --finish-inset-bottom: calc(max(72px, var(--app-safe-bottom)) + 18px);
    align-items: end;
    justify-items: center;
    padding:
      var(--finish-inset-top)
      max(14px, var(--app-safe-right))
      var(--finish-inset-bottom)
      max(14px, var(--app-safe-left));
  }

  .finish-overlay-panel {
    width: min(360px, calc(100vw - 28px));
    gap: 7px;
    padding: 11px 12px 12px;
  }

  .finish-overlay-detail {
    font-size: 13px;
  }

  .finish-overlay-button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 14px;
  }
}

.phase-card {
  position: relative;
  overflow: hidden;
  --notice-sheen-color: rgba(255, 246, 210, 0.2);
  min-width: min(360px, calc(100vw - 32px));
  padding: 12px 18px;
  border: 1px solid var(--notice-border-color, rgba(224, 184, 78, 0.74));
  border-radius: 8px;
  background: var(
    --notice-background,
    radial-gradient(circle at 50% -20%, rgba(255, 225, 154, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 34%),
    rgba(18, 20, 17, 0.94)
  );
  box-shadow: var(
    --notice-shadow,
    0 0 0 1px rgba(255, 225, 154, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(255, 225, 154, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -14px 22px rgba(0, 0, 0, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32)
  );
  text-align: center;
}

.phase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(255, 255, 255, 0.045) 32%, transparent 44%),
    radial-gradient(circle at 50% -18%, rgba(255, 225, 154, 0.11), transparent 42%);
  opacity: 0.9;
}

.phase-card::after {
  content: "";
  position: absolute;
  inset: -24% auto -24% -46%;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent, var(--notice-sheen-color), transparent);
  opacity: 0.8;
  transform: translateX(0) skewX(-16deg);
  animation: notice-card-sheen 980ms ease-out 120ms both;
}

.phase-card > * {
  position: relative;
  z-index: 1;
}

.phase-card-with-art {
  width: min(420px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  text-align: left;
}

.phase-copy {
  min-width: 0;
}

.phase-card span,
.phase-card strong,
.phase-card em,
.phase-card small {
  display: block;
}

.phase-card span {
  color: var(--notice-label-color, var(--muted));
  font-size: var(--notice-label-size, 12px);
  font-weight: 700;
}

.phase-card strong {
  margin-top: 3px;
  color: var(--notice-title-color, #ffe19a);
  font-size: var(--notice-title-size, 22px);
  line-height: 1.2;
  text-shadow: var(--notice-title-shadow, none);
}

.phase-card em {
  margin-top: 6px;
  color: var(--notice-detail-color, var(--muted));
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.phase-card small {
  margin-top: 7px;
  color: var(--notice-small-color, #f2efe4);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.phase-card .effect-result-summary {
  padding: 5px 7px;
  border-left: 2px solid #a9eaff;
  background: rgba(50, 108, 125, 0.2);
  color: #d5f5ff;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.notice-draw {
  --notice-border-color: rgba(79, 179, 169, 0.8);
  --notice-title-color: #9ee7df;
}

.notice-battle {
  --notice-border-color: rgba(220, 107, 87, 0.84);
  --notice-title-color: #ffb09f;
}

.notice-special {
  --notice-sheen-color: rgba(169, 255, 190, 0.18);
  --notice-border-color: rgba(78, 179, 108, 0.92);
  --notice-background:
    linear-gradient(135deg, rgba(21, 44, 31, 0.97), rgba(18, 22, 18, 0.96));
  --notice-shadow:
    0 0 0 1px rgba(119, 228, 150, 0.18),
    0 16px 48px rgba(0, 0, 0, 0.42);
  --notice-label-color: #b8eec5;
  --notice-title-color: #a8f0b7;
  --notice-title-shadow: 0 0 16px rgba(78, 179, 108, 0.35);
  --notice-detail-color: #cdebd4;
}

.notice-special-wait {
  --notice-sheen-color: rgba(255, 241, 168, 0.22);
  --notice-border-color: rgba(244, 211, 94, 0.96);
  --notice-background:
    linear-gradient(135deg, rgba(60, 49, 18, 0.97), rgba(25, 23, 18, 0.96));
  --notice-shadow:
    0 0 0 1px rgba(244, 211, 94, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.42);
  --notice-label-color: #fff1a8;
  --notice-title-color: #ffe275;
  --notice-title-shadow: 0 0 16px rgba(244, 211, 94, 0.36);
  --notice-detail-color: #fff7cc;
  --notice-small-color: #fff7cc;
}

.notice-effect-warrior {
  --notice-sheen-color: rgba(255, 184, 174, 0.2);
  --notice-border-color: rgba(215, 88, 79, 0.9);
  --notice-background:
    linear-gradient(135deg, rgba(68, 30, 29, 0.97), rgba(20, 19, 17, 0.96));
  --notice-shadow:
    0 0 0 1px rgba(255, 155, 146, 0.18),
    0 16px 48px rgba(0, 0, 0, 0.42);
  --notice-label-color: #ffc6bf;
  --notice-title-color: #ffb3aa;
  --notice-title-shadow: 0 0 16px rgba(215, 88, 79, 0.32);
  --notice-detail-color: #f1d2cd;
}

.notice-effect-weapon {
  --notice-sheen-color: rgba(173, 211, 255, 0.2);
  --notice-border-color: rgba(64, 127, 214, 0.9);
  --notice-background:
    linear-gradient(135deg, rgba(27, 47, 80, 0.97), rgba(18, 21, 25, 0.96));
  --notice-shadow:
    0 0 0 1px rgba(138, 184, 255, 0.18),
    0 16px 48px rgba(0, 0, 0, 0.42);
  --notice-label-color: #c8dcff;
  --notice-title-color: #9fc5ff;
  --notice-title-shadow: 0 0 16px rgba(64, 127, 214, 0.34);
  --notice-detail-color: #d4e1f6;
}

.notice-card-art {
  position: relative;
  width: 76px;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(136, 228, 155, 0.78);
  border-radius: var(--card-corner-radius);
  background:
    linear-gradient(180deg, rgba(16, 23, 16, 0.08), rgba(16, 23, 16, 0.7)),
    #263128;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(136, 228, 155, 0.14),
    0 10px 24px rgba(0, 0, 0, 0.34);
}

.notice-effect-warrior .notice-card-art {
  border-color: rgba(255, 155, 146, 0.78);
}

.notice-effect-weapon .notice-card-art {
  border-color: rgba(138, 184, 255, 0.78);
}

.notice-card-art.has-card-art {
  background-image:
    linear-gradient(180deg, rgba(16, 23, 16, 0), rgba(16, 23, 16, 0.14)),
    var(--card-art);
}

.notice-card-art span {
  position: absolute;
  inset: auto 5px 5px;
  padding: 4px 5px;
  border-radius: 5px;
  background: rgba(9, 12, 9, 0.76);
  color: #e8ffe9;
  font-size: 10px;
  line-height: 1.16;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.82);
}

.notice-card-art.has-card-art span {
  opacity: 0;
}

.notice-player-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 224, 136, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 224, 136, 0.18), transparent 68%),
    rgba(13, 15, 12, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 224, 136, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.notice-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.notice-levelup {
  --notice-border-color: rgba(224, 184, 78, 0.92);
  --notice-background: rgba(30, 28, 20, 0.96);
  --notice-title-color: #ffe19a;
  --notice-title-size: 24px;
  --notice-detail-color: #e6cc82;
}

.notice-awaken {
  --notice-border-color: rgba(248, 230, 147, 0.98);
  --notice-background:
    linear-gradient(135deg, rgba(56, 37, 80, 0.96), rgba(36, 29, 20, 0.96));
  --notice-shadow:
    0 0 0 1px rgba(248, 230, 147, 0.22),
    0 20px 64px rgba(0, 0, 0, 0.48);
  --notice-label-color: #d9c7ff;
  --notice-label-size: 13px;
  --notice-title-color: #fff1b8;
  --notice-title-size: 27px;
  --notice-title-shadow: 0 0 18px rgba(224, 184, 78, 0.36);
  --notice-detail-color: #eadfb6;
}

.notice-awaken .phase-card {
  min-width: min(430px, calc(100vw - 32px));
  padding: 16px 22px;
}

.notice-finish {
  --notice-border-color: rgba(255, 238, 171, 0.94);
  --notice-background:
    radial-gradient(circle at 50% 50%, rgba(255, 224, 136, 0.2), transparent 54%),
    rgba(31, 15, 13, 0.96);
  --notice-shadow:
    0 0 0 1px rgba(255, 238, 171, 0.18),
    0 18px 56px rgba(0, 0, 0, 0.46),
    0 0 34px rgba(220, 82, 61, 0.32);
  --notice-label-color: #fff0a8;
  --notice-title-color: #ffe2d9;
  --notice-title-shadow: 0 0 16px rgba(255, 224, 136, 0.4);
}

.notice-general {
  --notice-border-color: rgba(255, 224, 136, 0.9);
  --notice-background:
    linear-gradient(135deg, rgba(41, 35, 24, 0.96), rgba(19, 22, 18, 0.96));
  --notice-shadow:
    0 0 0 1px rgba(255, 224, 136, 0.14),
    0 18px 52px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(255, 224, 136, 0.18);
  --notice-label-color: #ffe19a;
  --notice-title-color: #fff3c4;
  --notice-title-size: 24px;
}

.notice-fall {
  --notice-border-color: rgba(255, 151, 132, 0.92);
  --notice-background:
    radial-gradient(circle at 15% 50%, rgba(220, 107, 87, 0.24), transparent 44%),
    linear-gradient(135deg, rgba(77, 26, 24, 0.98), rgba(18, 20, 17, 0.96));
  --notice-shadow:
    0 0 0 1px rgba(255, 151, 132, 0.16),
    0 18px 54px rgba(0, 0, 0, 0.44),
    0 0 28px rgba(220, 107, 87, 0.24);
  --notice-label-color: #ffc5b9;
  --notice-title-color: #ffe3dc;
  --notice-title-size: 24px;
  --notice-title-shadow: 0 0 16px rgba(220, 107, 87, 0.36);
  --notice-detail-color: #f0c4bc;
}

.notice-fall .notice-player-avatar {
  border-color: rgba(255, 151, 132, 0.72);
  background:
    radial-gradient(circle at 50% 44%, rgba(220, 107, 87, 0.2), transparent 68%),
    rgba(13, 15, 12, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 151, 132, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.34);
}

.empty {
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px dashed var(--field-slot-border);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  background: var(--field-slot-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -12px 22px rgba(0, 0, 0, 0.18);
}

.unit-row > .empty {
  position: relative;
  width: var(--board-card-width);
  height: var(--board-card-height);
  min-height: 0;
  border-color: rgba(242, 219, 157, 0.055);
  color: rgba(232, 226, 204, 0.38);
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.unit-row > .empty::before {
  content: "";
  position: absolute;
  inset: 12% 10% 10%;
  border: 1px solid rgba(242, 219, 157, 0.075);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 82%, rgba(255, 236, 164, 0.075), transparent 62%),
    radial-gradient(ellipse at 50% 22%, rgba(174, 231, 255, 0.035), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 42%, rgba(0, 0, 0, 0.14)),
    rgba(20, 23, 20, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.022),
    inset 0 -14px 22px rgba(0, 0, 0, 0.12);
}

.unit-row > .empty::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 12%;
  height: 12%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.06) 56%, transparent 72%);
  filter: blur(1.5px);
  opacity: 0.44;
  pointer-events: none;
}

.front-row > .empty::before {
  background:
    radial-gradient(ellipse at 50% 82%, rgba(255, 236, 164, 0.085), transparent 62%),
    radial-gradient(ellipse at 50% 26%, rgba(118, 205, 141, 0.05), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%, rgba(0, 0, 0, 0.16)),
    rgba(20, 24, 18, 0.045);
}

.back-row > .empty::before {
  background:
    radial-gradient(ellipse at 50% 82%, rgba(174, 231, 255, 0.065), transparent 64%),
    radial-gradient(ellipse at 50% 24%, rgba(118, 188, 230, 0.045), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.016), transparent 44%, rgba(0, 0, 0, 0.11)),
    rgba(18, 22, 28, 0.04);
}

.unit-row > .empty > * {
  position: relative;
  z-index: 2;
}

.hand > .empty,
.cost > .empty {
  flex: 0 0 var(--compact-card-min-width);
  width: var(--compact-card-min-width);
  min-width: var(--compact-card-min-width);
  max-width: var(--compact-card-min-width);
  height: var(--compact-card-height);
  min-height: 0;
}
