/* A quiet metallic table under the cards; effects live outside the app render. */
.battlefield.nc-playmat {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 48%, #26373738 0, #0c11152b 48%, #06090ee8 100%),
    repeating-linear-gradient(90deg, transparent 0, transparent 63px, #b5cee007 64px),
    repeating-linear-gradient(0deg, transparent 0, transparent 63px, #b5cee007 64px),
    linear-gradient(140deg, #111920, #0c1219 48%, #15201d);
  box-shadow: inset 0 0 100px #0008, inset 0 1px #b2d5e412, 0 20px 75px #0005;
}
.battlefield.nc-playmat::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid #9ab3c10f;
  clip-path: polygon(0 0, 14% 0, 14% 1px, 86% 1px, 86% 0, 100% 0, 100% 100%, 86% 100%, 86% calc(100% - 1px), 14% calc(100% - 1px), 14% 100%, 0 100%);
  background: linear-gradient(90deg, #d6e73a0c, transparent 20%, transparent 80%, #d6e73a08);
}
.nc-playmat .board-row {
  background: radial-gradient(ellipse at 50% 50%, #3453440a, transparent 75%);
}
.nc-playmat .centerline {
  background: linear-gradient(90deg, #080e11c9, #24313690 35%, #24313690 65%, #080e11c9);
  border-color: #8ba4aa23;
  box-shadow: 0 -1px #0008, 0 1px #0008;
}
.nc-playmat .own-hand {
  background: linear-gradient(0deg, #05090fe8, #111a20a6 55%, #14222930);
  box-shadow: inset 0 1px #bbd6d50c;
}
.nc-playmat .gigs-zone {
  background: linear-gradient(90deg, #0810142e, transparent 30%, transparent 75%, #0810142e);
}
.nc-playmat .battle-card {
  box-shadow: 0 5px 9px #0007, 0 1px #e3f3f12b;
}
.nc-playmat .battle-card.available {
  box-shadow: 0 0 0 1px #cddd3d3a, 0 0 12px #dce53c19, 0 6px 12px #0007;
}
.nc-playmat .battle-card.spent {
  box-shadow: 0 2px 5px #0009;
}
.nc-fx-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
  z-index: 45;
  overflow: hidden;
  contain: layout style paint;
  --nc-yellow: #ecff50;
  --nc-cyan: #77e9e0;
  --nc-red: #ff6c85;
  --nc-fx-color: var(--nc-yellow);
}
.nc-fx-layer *, .nc-fx-layer *::before, .nc-fx-layer *::after { box-sizing: border-box; pointer-events: none !important; }
.nc-fx-layer .rival, .nc-fx-layer .red, .nc-fx-layer .loss { --nc-fx-color: var(--nc-red); }
.nc-fx-layer .cyan, .nc-fx-layer .draw { --nc-fx-color: var(--nc-cyan); }
.nc-fx-turn {
  position: absolute;
  transform: translate(-50%, -50%);
  width: min(360px, 78vw);
  padding: 17px 38px 19px;
  text-align: center;
  color: var(--nc-fx-color);
  background: linear-gradient(90deg, transparent, #070c13e8 14%, #101b21f2 50%, #070c13e8 86%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--nc-fx-color) 38%, transparent);
  animation: nc-turn-in 1.4s both;
  filter: drop-shadow(0 5px 15px #0008);
}
.nc-fx-turn-rule { position: absolute; inset: 5px 45px; border-block: 1px solid #cedbe113; }
.nc-fx-turn-index { display: block; font: 9px var(--mono, monospace); letter-spacing: 3px; opacity: .7; margin-bottom: 5px; }
.nc-fx-turn strong { display: block; font: 700 clamp(28px, 4vw, 39px)/1 var(--heading, sans-serif); letter-spacing: 3px; text-shadow: 0 0 18px color-mix(in srgb, var(--nc-fx-color) 30%, transparent); }
.nc-fx-turn-sub { display: block; font: 7px var(--mono, monospace); letter-spacing: 4px; margin-top: 8px; opacity: .55; }
.nc-fx-roll {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--nc-fx-color);
  padding: 18px 38px;
  min-width: 192px;
  background: radial-gradient(ellipse, #060c13e8 20%, #060c13b8 52%, transparent 75%);
  animation: nc-roll-scene 1.4s both;
}
.nc-fx-roll-caption { font: 8px var(--mono, monospace); letter-spacing: 3px; margin-bottom: 11px; opacity: .8; }
.nc-fx-die {
  width: 87px;
  height: 93px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  background: linear-gradient(145deg, color-mix(in srgb, var(--nc-fx-color) 18%, #10171c), #0b141b 65%);
  clip-path: polygon(50% 0, 94% 23%, 94% 76%, 50% 100%, 6% 76%, 6% 23%);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--nc-fx-color) 20%, transparent));
  animation: nc-die-settle .64s cubic-bezier(.19,.75,.2,1) both;
}
.nc-fx-die::before { content: ""; position: absolute; inset: 2px; clip-path: polygon(50% 0, 94% 23%, 94% 76%, 50% 100%, 6% 76%, 6% 23%, 50% 0, 50% 3%, 8% 25%, 8% 75%, 50% 97%, 92% 75%, 92% 25%, 50% 3%); background: var(--nc-fx-color); opacity: .8; }
.nc-fx-die-line { position: absolute; display: block; width: 50%; height: 1px; background: var(--nc-fx-color); opacity: .16; left: 25%; top: 50%; }
.nc-fx-die-line.a { transform: rotate(60deg) translateY(-10px); }.nc-fx-die-line.b { transform: rotate(-60deg) translateY(10px); }.nc-fx-die-line.c { transform: rotate(90deg); }
.nc-fx-die-value { position: relative; font: 700 39px/1 var(--heading, sans-serif); text-shadow: 0 0 15px color-mix(in srgb, var(--nc-fx-color) 28%, transparent); animation: nc-die-value .6s both; }
.nc-fx-die-sides { position: relative; font: 8px var(--mono, monospace); letter-spacing: 2px; opacity: .65; margin-top: 5px; }
.nc-fx-roll-result { font: 7px var(--mono, monospace); letter-spacing: 3px; opacity: .6; margin-top: 11px; }
.nc-fx-card-ring { position: absolute; border: 1px solid var(--nc-fx-color); border-radius: 7px; box-shadow: 0 0 17px color-mix(in srgb, var(--nc-fx-color) 30%, transparent), inset 0 0 13px color-mix(in srgb, var(--nc-fx-color) 15%, transparent); animation: nc-card-ring .8s ease-out both; }
.nc-fx-card-ring::before, .nc-fx-card-ring::after { content: ""; position: absolute; width: 15px; height: 15px; border-color: var(--nc-fx-color); border-style: solid; }
.nc-fx-card-ring::before { top: -3px; left: -3px; border-width: 2px 0 0 2px; }.nc-fx-card-ring::after { bottom: -3px; right: -3px; border-width: 0 2px 2px 0; }
.nc-fx-card-label { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); white-space: nowrap; font: 7px var(--mono, monospace); letter-spacing: 1.5px; color: var(--nc-fx-color); background: #0a1118e8; padding: 4px 7px; }
.nc-fx-attack-line { position: absolute; height: 2px; transform-origin: 0 50%; background: linear-gradient(90deg, transparent, var(--nc-fx-color) 50%, white); box-shadow: 0 0 9px var(--nc-fx-color); animation: nc-attack-line .5s ease-out both; }
.nc-fx-attack-line::after { content: ""; position: absolute; width: 12px; height: 12px; right: -1px; top: -5px; border-top: 2px solid white; border-right: 2px solid white; transform: rotate(45deg); }
.nc-fx-impact { position: absolute; width: 90px; height: 90px; transform: translate(-50%, -50%) rotate(var(--nc-impact-angle, -25deg)); animation: nc-impact .45s ease-out both; }
.nc-fx-impact::before, .nc-fx-impact::after { content: ""; position: absolute; left: 0; top: 50%; height: 2px; width: 100%; background: linear-gradient(90deg, transparent, #fff8 25%, white 50%, #ffce7ba8 75%, transparent); box-shadow: 0 0 8px #fff9; }
.nc-fx-impact::after { transform: rotate(70deg); opacity: .5; }.nc-fx-impact.heavy { width: 120px; height: 120px; }
.nc-fx-zone-pulse { position: absolute; border: 1px solid color-mix(in srgb, var(--nc-fx-color) 55%, transparent); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--nc-fx-color) 12%, transparent), transparent); animation: nc-zone-pulse .65s ease-out both; }
.nc-fx-spark { position: absolute; width: 6px; height: 6px; background: var(--nc-fx-color); box-shadow: 0 0 9px var(--nc-fx-color); animation: nc-spark-flight .62s cubic-bezier(.4,.01,.2,1) both; }
.nc-fx-gig-gain { position: absolute; padding: 8px 13px; color: var(--nc-fx-color); background: #0a1118e8; border-inline: 2px solid var(--nc-fx-color); font: 700 20px var(--heading, sans-serif); letter-spacing: 2px; white-space: nowrap; transform: translate(-50%, -50%); text-shadow: 0 0 12px color-mix(in srgb, var(--nc-fx-color) 30%, transparent); animation: nc-gain 1.2s ease-out both; }
.nc-fx-opening-scan { position: absolute; overflow: hidden; border: 1px solid #77e9e055; animation: nc-scan-edge .95s ease-out both; }
.nc-fx-opening-scan::after { content: ""; position: absolute; inset: -20% 0 auto; height: 22%; background: linear-gradient(0deg, #77e9e016, transparent); border-bottom: 1px solid #a6fff078; animation: nc-scan-pass .8s ease-out both; }
.nc-fx-result-flash { position: absolute; inset: 0; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--nc-fx-color) 12%, transparent), transparent 70%); animation: nc-result-flash .95s ease-out both; }
.nc-fx-verdict { position: absolute; width: min(650px, 96vw); padding: 29px 16px; transform: translate(-50%, -50%); text-align: center; color: var(--nc-fx-color); background: linear-gradient(90deg, transparent, #070c12ed 17%, #111c24f2 50%, #070c12ed 83%, transparent); border-block: 1px solid color-mix(in srgb, var(--nc-fx-color) 40%, transparent); animation: nc-verdict 1.65s both; }
.nc-fx-verdict-caption { display: block; font: 8px var(--mono, monospace); letter-spacing: 4px; opacity: .65; margin-bottom: 10px; }
.nc-fx-verdict strong { font: 700 clamp(25px, 4vw, 49px)/1 var(--heading, sans-serif); letter-spacing: 2px; text-shadow: 0 0 25px color-mix(in srgb, var(--nc-fx-color) 35%, transparent); }
@keyframes nc-turn-in { 0% { opacity: 0; transform: translate(-50%,-50%) scaleX(.78); } 15%,68% { opacity: 1; transform: translate(-50%,-50%) scaleX(1); } 100% { opacity: 0; transform: translate(-50%,-50%) scaleX(1.06); } }
@keyframes nc-roll-scene { 0% { opacity: 0; } 12%,72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes nc-die-settle { 0% { transform: translateY(-23px) rotate(-38deg) scale(.7); opacity: .4; } 38% { transform: translateY(5px) rotate(14deg) scale(1.05); } 65% { transform: translateY(-2px) rotate(-4deg); } 100% { transform: translateY(0) rotate(0); opacity: 1; } }
@keyframes nc-die-value { 0%,35% { opacity: 0; filter: blur(4px); } 65%,100% { opacity: 1; filter: blur(0); } }
@keyframes nc-card-ring { 0% { opacity: 0; transform: scale(.96); } 18% { opacity: 1; transform: scale(1.025); } 60% { opacity: .8; } 100% { opacity: 0; transform: scale(1.04); } }
@keyframes nc-attack-line { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 16% { opacity: 1; } 47% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); opacity: 0; } }
@keyframes nc-impact { 0% { opacity: 0; scale: .35; } 20% { opacity: 1; scale: 1.1; } 100% { opacity: 0; scale: 1.4; } }
@keyframes nc-zone-pulse { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@keyframes nc-spark-flight { 0% { opacity: 0; transform: translate(0,0) scale(.4) rotate(45deg); } 10% { opacity: .95; } 45% { transform: translate(calc(var(--nc-dx) * .45 + var(--nc-bend)), calc(var(--nc-dy) * .45)) scale(1) rotate(130deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--nc-dx),var(--nc-dy)) scale(.25) rotate(225deg); } }
@keyframes nc-gain { 0% { opacity: 0; margin-top: 7px; } 18%,65% { opacity: 1; margin-top: 0; } 100% { opacity: 0; margin-top: -20px; } }
@keyframes nc-scan-edge { 0% { opacity: 0; } 18% { opacity: .7; } 100% { opacity: 0; } }
@keyframes nc-scan-pass { 0% { top: -20%; } 100% { top: 100%; } }
@keyframes nc-result-flash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@keyframes nc-verdict { 0% { opacity: 0; filter: blur(5px); } 18%,70% { opacity: 1; filter: blur(0); } 100% { opacity: 0; filter: blur(0); } }
.nc-fx-reduced .nc-fx-attack-line, .nc-fx-reduced .nc-fx-impact, .nc-fx-reduced .nc-fx-spark, .nc-fx-reduced .nc-fx-opening-scan { display: none !important; }
.nc-fx-reduced *, .nc-fx-reduced *::before, .nc-fx-reduced *::after { animation: none !important; transition: none !important; }
.nc-fx-reduced .nc-fx-die-value, .nc-fx-reduced .nc-fx-die, .nc-fx-reduced .nc-fx-turn, .nc-fx-reduced .nc-fx-roll, .nc-fx-reduced .nc-fx-verdict { opacity: 1; filter: none; }
.nc-fx-reduced .nc-fx-result-flash { opacity: .4; }
@media (prefers-reduced-motion: reduce) {
  .nc-fx-layer *, .nc-fx-layer *::before, .nc-fx-layer *::after { animation: none !important; transition: none !important; }
  .nc-fx-attack-line, .nc-fx-impact, .nc-fx-spark, .nc-fx-opening-scan { display: none !important; }
}
@media (max-width: 570px) {
  .nc-fx-turn { padding: 13px 25px; }.nc-fx-turn strong { font-size: 29px; letter-spacing: 2px; }
  .nc-fx-die { width: 69px; height: 75px; }.nc-fx-die-value { font-size: 31px; }
  .nc-fx-roll { padding: 13px 29px; min-width: 154px; }.nc-fx-roll-caption { font-size: 7px; }
  .nc-fx-gig-gain { font-size: 16px; padding: 6px 9px; }.nc-fx-verdict strong { font-size: 28px; }
}
