.nc-tutorial-launch {
  align-items: center;
  background: #050a18c7;
  border: 1px solid #607eb45c;
  border-radius: 13px;
  color: #b9c8e4;
  cursor: pointer;
  display: flex;
  font-size: .68rem;
  font-weight: 900;
  justify-content: center;
  letter-spacing: .16em;
  margin-top: 8px;
  min-height: 43px;
  padding: 0 14px;
  transition: border-color .16s, color .16s, transform .16s, box-shadow .16s;
  width: 100%;
}

.nc-tutorial-launch::before {
  color: var(--pink);
  content: "◆";
  font-size: .7rem;
  margin-right: 9px;
  text-shadow: 0 0 10px var(--pink);
}

.nc-tutorial-launch:hover,
.nc-tutorial-launch:focus-visible {
  border-color: #ff3bbda6;
  box-shadow: 0 0 22px #ff3bbd1f;
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

body.nc-tutorial-open {
  overflow: hidden;
}

.nc-tutorial-backdrop {
  align-items: center;
  animation: nc-tutorial-fade .2s ease-out both;
  background:
    radial-gradient(circle at 50% 22%, #315fcf3d, transparent 38%),
    #01030af2;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  overflow-y: auto;
  padding: 12px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 300;
}

.nc-tutorial {
  background:
    linear-gradient(145deg, #101d3bfa, #040713fc),
    #070d1d;
  border: 1px solid #4f82e278;
  border-radius: 22px;
  box-shadow:
    inset 0 1px #ffffff12,
    0 32px 90px #000c,
    0 0 55px #3a7bff29;
  display: flex;
  flex-direction: column;
  max-height: calc(100svh - 24px);
  overflow: hidden;
  position: relative;
  width: min(100%, 430px);
}

.nc-tutorial::before {
  background: #27f4ff1a;
  border-radius: 50%;
  content: "";
  filter: blur(34px);
  height: 210px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: -155px;
  transform: translateX(-50%);
  width: 320px;
}

.nc-tutorial__top {
  align-items: center;
  border-bottom: 1px solid #506ea930;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr auto;
  min-height: 52px;
  padding: 10px 13px 9px 17px;
  position: relative;
}

.nc-tutorial__signal {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .59rem;
  font-weight: 900;
  letter-spacing: .23em;
  margin: 0;
  text-shadow: 0 0 12px #27f4ff73;
}

.nc-tutorial__exit {
  align-items: center;
  background: #071022;
  border: 1px solid #607eb44f;
  border-radius: 8px;
  color: #8fa0bd;
  cursor: pointer;
  display: flex;
  font-size: .58rem;
  font-weight: 900;
  gap: 7px;
  letter-spacing: .12em;
  min-height: 30px;
  padding: 0 9px;
}

.nc-tutorial__exit b {
  color: #dce7fa;
  font-size: .85rem;
}

.nc-tutorial__exit:hover,
.nc-tutorial__exit:focus-visible {
  border-color: #ff3bbd99;
  color: #fff;
  outline: none;
}

.nc-tutorial__body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 19px 20px 13px;
  position: relative;
  scrollbar-color: #315180 #050a17;
  scrollbar-width: thin;
}

.nc-tutorial__step {
  color: var(--pink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .2em;
  margin: 0 0 5px;
}

.nc-tutorial__title {
  color: #f7fbff;
  font-size: clamp(1.4rem, 7vw, 1.85rem);
  font-weight: 950;
  letter-spacing: -.035em;
  line-height: 1;
  margin: 0;
  text-shadow: 0 0 22px #27f4ff2b;
}

.nc-tutorial__lead {
  color: #9baac5;
  font-size: .78rem;
  line-height: 1.52;
  margin: 9px 0 15px;
}

.nc-tutorial__lead strong {
  color: #edf5ff;
}

.nc-objectives {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, 1fr);
}

.nc-objective {
  align-items: center;
  background: #020612a6;
  border: 1px solid #506ea936;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 89px;
  padding: 9px 5px 7px;
  text-align: center;
}

.nc-objective span {
  color: #71809b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.nc-objective strong {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 4px 0 3px;
}

.nc-objective small {
  color: #65748f;
  font-size: .54rem;
  line-height: 1.25;
}

.nc-objective--moves strong {
  color: var(--cyan);
  text-shadow: 0 0 12px #27f4ff73;
}

.nc-objective--score strong {
  color: var(--lime);
  text-shadow: 0 0 12px #7dff5563;
}

.nc-objective--ice strong {
  color: #b7d8ff;
  text-shadow: 0 0 12px #5aa2ff73;
}

.nc-callout {
  align-items: flex-start;
  background: linear-gradient(90deg, #27f4ff12, #3a7bff0d);
  border: 1px solid #27f4ff3d;
  border-radius: 11px;
  color: #a9b9d5;
  display: flex;
  font-size: .68rem;
  gap: 9px;
  line-height: 1.45;
  margin-top: 10px;
  padding: 9px 10px;
}

.nc-callout b {
  color: var(--cyan);
  flex: 0 0 auto;
}

.nc-callout--pink {
  background: linear-gradient(90deg, #ff3bbd12, #a862ff0c);
  border-color: #ff3bbd42;
}

.nc-callout--pink b {
  color: var(--pink);
}

.nc-practice-wrap {
  align-items: center;
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(0, 1fr) 118px;
}

.nc-demo-board {
  aspect-ratio: 1;
  background: #020510;
  border: 1px solid #35528f63;
  border-radius: 14px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  padding: 7px;
  position: relative;
  touch-action: none;
  width: 100%;
}

.nc-demo-tile {
  --demo-color: var(--cyan);
  background:
    radial-gradient(circle at 28% 18%, #ffffff73, transparent 18%),
    linear-gradient(145deg, color-mix(in srgb, var(--demo-color) 84%, white 16%), color-mix(in srgb, var(--demo-color) 56%, black 44%));
  border: 1px solid color-mix(in srgb, var(--demo-color) 65%, white 12%);
  border-radius: 7px;
  box-shadow: inset 0 1px 1px #ffffff4d, inset 0 -4px 8px #0005, 0 0 7px color-mix(in srgb, var(--demo-color) 50%, transparent);
  cursor: pointer;
  min-height: 0;
  min-width: 0;
  padding: 0;
  position: relative;
  transition: filter .15s, transform .18s, opacity .2s;
}

.nc-demo-tile::after {
  border: 1px solid #fff4;
  content: "";
  height: 30%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 30%;
}

.nc-demo-tile--cyan { --demo-color: var(--cyan); }
.nc-demo-tile--pink { --demo-color: var(--pink); }
.nc-demo-tile--lime { --demo-color: var(--lime); }
.nc-demo-tile--violet { --demo-color: var(--violet); }
.nc-demo-tile--amber { --demo-color: var(--amber); }
.nc-demo-tile--blue { --demo-color: var(--blue); }

.nc-demo-tile.is-target {
  animation: nc-target-pulse .75s ease-in-out infinite alternate;
  z-index: 2;
}

.nc-demo-tile.is-selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cyan), 0 0 20px var(--cyan);
  filter: brightness(1.2);
  transform: scale(.94);
}

.nc-demo-tile.is-matched {
  animation: nc-demo-clear .56s ease-out both;
}

.nc-demo-hint {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.nc-demo-arrow {
  color: var(--cyan);
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 0 14px var(--cyan);
  animation: nc-arrow-bob .7s ease-in-out infinite alternate;
}

.nc-demo-hint strong {
  color: #eef6ff;
  font-size: .67rem;
  letter-spacing: .09em;
  margin-top: 5px;
}

.nc-demo-hint span {
  color: #71809b;
  font-size: .6rem;
  line-height: 1.4;
  margin-top: 4px;
}

.nc-practice-status {
  color: #8fa0bd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .05em;
  margin: 10px 0 0;
  min-height: 18px;
  text-align: center;
}

.nc-practice-status.is-success {
  color: var(--lime);
  text-shadow: 0 0 10px #7dff5552;
}

.nc-power-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.nc-power-card {
  background: #020612a6;
  border: 1px solid #506ea936;
  border-radius: 13px;
  min-height: 142px;
  padding: 11px;
  text-align: center;
}

.nc-power-card strong {
  color: #f0f6ff;
  display: block;
  font-size: .7rem;
  letter-spacing: .1em;
  margin: 8px 0 5px;
}

.nc-power-card p {
  color: #75849f;
  font-size: .62rem;
  line-height: 1.42;
  margin: 0;
}

.nc-stripe-demo,
.nc-prism-demo,
.nc-ice-demo {
  aspect-ratio: 1;
  border: 1px solid #fff;
  border-radius: 9px;
  display: inline-block;
  position: relative;
  width: 47px;
}

.nc-stripe-demo {
  background: repeating-linear-gradient(0deg, #ff3bbd 0 7px, #fff 7px 10px, #ff3bbd 10px 16px);
  box-shadow: 0 0 16px #ff3bbd99;
  overflow: visible;
}

.nc-stripe-demo--v {
  background: repeating-linear-gradient(90deg, #27f4ff 0 7px, #fff 7px 10px, #27f4ff 10px 16px);
  box-shadow: 0 0 16px #27f4ff99;
}

.nc-stripe-demo::before,
.nc-stripe-demo::after {
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 13px #ff3bbd;
  content: "";
  height: 4px;
  left: -28px;
  opacity: .85;
  position: absolute;
  right: -28px;
  top: 11px;
}

.nc-stripe-demo::after { top: 31px; }

.nc-stripe-demo--v::before,
.nc-stripe-demo--v::after {
  background: linear-gradient(180deg, transparent, #fff, transparent);
  bottom: -28px;
  box-shadow: 0 0 13px #27f4ff;
  height: auto;
  left: 11px;
  right: auto;
  top: -28px;
  width: 4px;
}

.nc-stripe-demo--v::after { left: 31px; }

.nc-prism-demo {
  animation: nc-prism-spin 3s linear infinite;
  background: conic-gradient(var(--cyan), var(--blue), var(--violet), var(--pink), var(--amber), var(--lime), var(--cyan));
  border-radius: 50%;
  box-shadow: inset 0 0 9px #fff, 0 0 17px #a862ffb3;
}

.nc-prism-demo::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 9px 3px #fff;
  content: "";
  height: 6px;
  left: 9px;
  position: absolute;
  top: 8px;
  width: 6px;
}

.nc-ice-demo {
  background: linear-gradient(130deg, #ffffffbd, transparent 36%), #53a7ff80;
  border: 2px solid #ddf5ff;
  box-shadow: inset 0 0 9px #fff, 0 0 15px #55b2ffa8;
}

.nc-ice-demo::before,
.nc-ice-demo::after {
  background: linear-gradient(#fff, #6ec0ff38);
  border-radius: 99px;
  content: "";
  height: 31px;
  left: 23px;
  position: absolute;
  top: 4px;
  transform: rotate(35deg);
  width: 2px;
}

.nc-ice-demo::after {
  height: 23px;
  left: 21px;
  top: 22px;
  transform: rotate(-48deg);
}

.nc-wide-demo {
  align-items: center;
  background: #020612a6;
  border: 1px solid #506ea936;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: 68px 1fr;
  min-height: 91px;
  padding: 11px 13px;
}

.nc-wide-demo strong {
  color: #f0f6ff;
  display: block;
  font-size: .72rem;
  letter-spacing: .09em;
}

.nc-wide-demo p {
  color: #7887a3;
  font-size: .65rem;
  line-height: 1.46;
  margin: 4px 0 0;
}

.nc-ice-cluster {
  height: 58px;
  position: relative;
}

.nc-ice-cluster .nc-ice-demo {
  left: 8px;
  position: absolute;
  top: 5px;
  width: 47px;
}

.nc-ice-cluster::before,
.nc-ice-cluster::after {
  background: var(--cyan);
  border: 1px solid #fff;
  border-radius: 6px;
  box-shadow: 0 0 10px var(--cyan);
  content: "";
  height: 24px;
  position: absolute;
  right: 0;
  width: 24px;
}

.nc-ice-cluster::before { top: 2px; }
.nc-ice-cluster::after { bottom: 2px; }

.nc-tip-list,
.nc-ready-list {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nc-tip-list li,
.nc-ready-list li {
  align-items: center;
  background: #0206129c;
  border: 1px solid #506ea930;
  border-radius: 10px;
  color: #9cadc9;
  display: grid;
  font-size: .68rem;
  gap: 9px;
  grid-template-columns: 25px 1fr;
  line-height: 1.4;
  min-height: 42px;
  padding: 7px 9px;
}

.nc-tip-list b,
.nc-ready-list b {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: center;
  text-shadow: 0 0 10px #27f4ff66;
}

.nc-ready-core {
  align-items: center;
  display: grid;
  gap: 15px;
  grid-template-columns: 92px 1fr;
}

.nc-ready-orb {
  aspect-ratio: 1;
  background: radial-gradient(circle, #27f4ff45, transparent 64%);
  border: 1px solid #27f4ff70;
  border-radius: 50%;
  box-shadow: 0 0 38px #27f4ff26;
  position: relative;
  width: 88px;
}

.nc-ready-orb::before,
.nc-ready-orb::after {
  border: 1px dashed #27f4ffad;
  border-radius: 50%;
  bottom: 8px;
  content: "";
  left: 8px;
  position: absolute;
  right: 8px;
  top: 8px;
  animation: nc-orbit 5s linear infinite;
}

.nc-ready-orb::after {
  border-color: #ff3bbdb5;
  border-style: solid;
  bottom: 24px;
  left: 24px;
  right: 24px;
  top: 24px;
  animation-direction: reverse;
  animation-duration: 3s;
}

.nc-ready-orb span {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px #fff, 0 0 24px var(--cyan);
  height: 19px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 19px;
}

.nc-ready-copy strong {
  color: var(--lime);
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .7rem;
  letter-spacing: .13em;
  margin-bottom: 5px;
  text-shadow: 0 0 12px #7dff5557;
}

.nc-ready-copy p {
  color: #8fa0bc;
  font-size: .67rem;
  line-height: 1.48;
  margin: 0;
}

.nc-tutorial__footer {
  align-items: center;
  background: #030714e8;
  border-top: 1px solid #506ea930;
  display: grid;
  flex: 0 0 auto;
  gap: 9px;
  grid-template-columns: 78px 1fr 112px;
  min-height: 67px;
  padding: 10px 12px;
}

.nc-tutorial__button {
  align-items: center;
  background: #081127;
  border: 1px solid #607eb454;
  border-radius: 10px;
  color: #a3b2cd;
  cursor: pointer;
  display: flex;
  font-size: .61rem;
  font-weight: 900;
  justify-content: center;
  letter-spacing: .1em;
  min-height: 42px;
  padding: 0 9px;
}

.nc-tutorial__button:hover,
.nc-tutorial__button:focus-visible {
  border-color: #27f4ff9c;
  color: #fff;
  outline: none;
}

.nc-tutorial__button:disabled {
  cursor: default;
  opacity: .28;
}

.nc-tutorial__button--next {
  background: linear-gradient(90deg, #27f4ff24, #3a7bff32), #09152c;
  border-color: #27f4ffb5;
  color: #fff;
  box-shadow: 0 0 18px #27f4ff1f;
}

.nc-tutorial__button--next.is-ready {
  animation: nc-next-ready .75s ease-in-out 2 alternate;
}

.nc-tutorial__dots {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: center;
}

.nc-tutorial__dot {
  background: #30405f;
  border: 0;
  border-radius: 999px;
  height: 5px;
  padding: 0;
  transition: background .2s, box-shadow .2s, width .2s;
  width: 5px;
}

.nc-tutorial__dot.is-current {
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
  width: 18px;
}

@keyframes nc-tutorial-fade {
  from { opacity: 0; }
}

@keyframes nc-target-pulse {
  from { box-shadow: 0 0 0 1px #fff8, 0 0 7px var(--demo-color); transform: scale(.92); }
  to { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cyan), 0 0 19px var(--cyan); transform: scale(1); }
}

@keyframes nc-demo-clear {
  0% { filter: brightness(1); opacity: 1; transform: scale(1); }
  45% { filter: brightness(2.4); opacity: 1; transform: scale(1.1); }
  100% { filter: brightness(3); opacity: .3; transform: scale(.18) rotate(18deg); }
}

@keyframes nc-arrow-bob {
  from { transform: translateY(-4px); }
  to { transform: translateY(5px); }
}

@keyframes nc-prism-spin {
  to { filter: hue-rotate(360deg) brightness(1.08); transform: rotate(360deg); }
}

@keyframes nc-orbit {
  to { transform: rotate(360deg); }
}

@keyframes nc-next-ready {
  to { box-shadow: 0 0 27px #27f4ff70; transform: translateY(-1px); }
}

@media (max-width: 390px) {
  .nc-tutorial__body { padding: 16px 14px 11px; }
  .nc-practice-wrap { grid-template-columns: minmax(0, 1fr) 94px; }
  .nc-demo-board { gap: 3px; padding: 5px; }
  .nc-tutorial__footer { grid-template-columns: 68px 1fr 102px; }
  .nc-power-card { padding-inline: 7px; }
}

@media (max-height: 690px) {
  .nc-tutorial__body { padding-bottom: 10px; padding-top: 14px; }
  .nc-tutorial__lead { margin-bottom: 11px; }
  .nc-tutorial__footer { min-height: 59px; padding-bottom: 8px; padding-top: 8px; }
  .nc-objective { min-height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .nc-tutorial-backdrop,
  .nc-demo-tile,
  .nc-ready-orb::before,
  .nc-ready-orb::after,
  .nc-prism-demo,
  .nc-demo-arrow {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
