/* ==========================================================================
   SwiSekai
   "Another world": a warm aurora over the charcoal, the app's own orange for
   what's current and its sky blue for what's done.
   ========================================================================== */

.theme-swi {
  --accent: #ff7a3d;
  --accent-2: #ffa878;
  --swi-pink: #f2548f;
  --swi-sky: #4fc3f7;
  --swi-green: #34c759;
}

.theme-swi ::selection {
  background: rgba(255, 122, 61, 0.45);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.swi-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 56px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.swi-aurora {
  position: absolute;
  inset: -10% -20% auto;
  z-index: -1;
  height: 115%;
  pointer-events: none;
  background:
    radial-gradient(35% 40% at 30% 62%, rgba(255, 122, 61, 0.34), transparent 70%),
    radial-gradient(32% 38% at 70% 58%, rgba(242, 84, 143, 0.28), transparent 70%),
    radial-gradient(25% 30% at 52% 80%, rgba(79, 195, 247, 0.14), transparent 70%);
  filter: blur(10px);
  animation: swi-drift 16s var(--ease-in-out) infinite alternate;
}

@keyframes swi-drift {
  to {
    transform: translate3d(2%, -2%, 0) scale(1.05);
  }
}

/* A few slow motes of light — the "other world" hint, kept faint. */
.swi-motes {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.swi-motes i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd1b8;
  box-shadow: 0 0 10px 2px rgba(255, 170, 120, 0.6);
  opacity: 0;
  animation: swi-mote 9s var(--ease-in-out) infinite;
}

.swi-motes i:nth-child(1) { left: 12%; top: 38%; animation-delay: 0s; }
.swi-motes i:nth-child(2) { left: 22%; top: 70%; animation-delay: 2.4s; }
.swi-motes i:nth-child(3) { left: 78%; top: 30%; animation-delay: 1.1s; }
.swi-motes i:nth-child(4) { left: 88%; top: 62%; animation-delay: 3.6s; }
.swi-motes i:nth-child(5) { left: 64%; top: 82%; animation-delay: 5s; }
.swi-motes i:nth-child(6) { left: 40%; top: 22%; animation-delay: 6.2s; }

@keyframes swi-mote {
  0% { opacity: 0; transform: translateY(20px) scale(0.6); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-60px) scale(1); }
}

.swi-hero .back-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
}

.swi-kana {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent-2);
}

.swi-kana span {
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.swi-title {
  margin-top: 20px;
  font-size: clamp(64px, 13vw, 184px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  background: linear-gradient(100deg, #fff 30%, #ffd2bd 55%, #ff9ec2 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.swi-promise {
  margin-top: 20px;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.swi-promise .dim {
  color: rgba(255, 255, 255, 0.42);
}

.swi-hero .lead {
  max-width: 680px;
  margin: 24px auto 0;
}

.swi-hero .btn-row {
  justify-content: center;
  margin-top: 34px;
}

.store-mac {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 14px;
  background: #fff;
  color: #000;
  text-align: left;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.store-mac:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(255, 170, 120, 0.7);
}

.store-mac:active {
  transform: scale(0.97);
}

.store-mac .i {
  font-size: 26px;
}

.store-mac small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.7;
  line-height: 1.1;
}

.store-mac b {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.swi-stage {
  position: relative;
  width: min(1040px, 100%);
  margin: clamp(48px, 7vw, 88px) auto 0;
  padding-inline: var(--gutter);
}

/* The screenshots are real macOS window captures — rounded corners and
   traffic lights included — so they get a shadow, not a second frame. */
.swi-shot {
  position: relative;
}

.swi-shot img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
}

.swi-stage .swi-shot {
  transform: perspective(2200px) rotateX(10deg);
  transform-origin: 50% 100%;
  transition: transform 1.4s var(--ease-out);
}

.swi-stage:hover .swi-shot {
  transform: perspective(2200px) rotateX(3deg);
}

.swi-icon {
  position: absolute;
  left: calc(var(--gutter) - 28px);
  bottom: 12%;
  z-index: 3;
  width: clamp(84px, 11vw, 132px);
  border-radius: 23%;
  box-shadow: 0 30px 60px -16px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: swi-bob 5.5s var(--ease-in-out) infinite;
}

@keyframes swi-bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(-3deg); }
}

.swi-badge {
  position: absolute;
  right: calc(var(--gutter) - 20px);
  top: 16%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  animation: swi-bob2 6.5s var(--ease-in-out) infinite;
}

.swi-badge small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-2);
}

@keyframes swi-bob2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.hex {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 42px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #8fdcff, #3aa9e8);
  color: #fff;
}

.hex .i {
  font-size: 18px;
  stroke-width: 2.6;
}

.hex--now {
  background: linear-gradient(160deg, #ffb08a, #ff6a2b);
}

.hex--locked {
  background: linear-gradient(160deg, #d9dbe0, #a5a9b2);
  color: #5d616b;
}

.swi-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  z-index: 2;
  background: linear-gradient(180deg, rgba(19, 20, 24, 0), var(--bg));
  pointer-events: none;
}

@media (max-width: 700px) {
  .swi-badge {
    display: none;
  }

  .swi-icon {
    left: 6px;
  }
}

/* ── The problem ─────────────────────────────────────────────────────────── */

.swi-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
}

.swi-duo .card {
  padding: clamp(24px, 3vw, 36px);
}

.swi-duo__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.swi-duo .card:last-child .swi-duo__tag {
  color: var(--accent-2);
}

.swi-duo h3 {
  margin-top: 16px;
  font-size: clamp(21px, 2vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.swi-duo p {
  margin-top: 12px;
  color: var(--fg-2);
  line-height: 1.6;
}

.swi-duo .card:last-child {
  border-color: rgba(255, 122, 61, 0.28);
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(255, 122, 61, 0.14), transparent 60%),
    var(--surface);
}

@media (max-width: 860px) {
  .swi-duo {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Playable lesson ─────────────────────────────────────────────────────── */

.swi-lesson {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
}

.swi-quiz,
.swi-mentor {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-l);
  background: #1d1e24;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}

.swi-xp {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.swi-xp__level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swi-xp__bar {
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.swi-xp__fill {
  height: 100%;
  width: calc(var(--xp, 0.4) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--swi-pink));
  transition: width 0.9s var(--ease-out);
}

.swi-xp__num {
  position: relative;
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}

.swi-xp__gain {
  position: absolute;
  right: 0;
  bottom: 100%;
  color: var(--swi-green);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
}

.swi-xp__gain.is-on {
  animation: swi-gain 1.3s var(--ease-out);
}

@keyframes swi-gain {
  0% { opacity: 0; transform: translateY(6px); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-22px); }
}

.swi-quiz__count {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}

.swi-quiz__q {
  margin-top: 10px;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  min-height: 2.4em;
}

.swi-quiz__q code,
.swi-bubble code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.swi-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.swi-option {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #121317;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.25s, background-color 0.25s, transform 0.4s var(--ease-out);
}

.swi-option:hover:not([disabled]) {
  border-color: rgba(79, 195, 247, 0.55);
  transform: translateY(-2px);
}

.swi-option:active:not([disabled]) {
  transform: scale(0.98);
}

.swi-option__key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}

.swi-option code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}

.swi-option .i {
  font-size: 18px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s, transform 0.5s var(--ease-spring);
}

.swi-option.is-right {
  border-color: var(--swi-green);
  background: rgba(52, 199, 89, 0.12);
}

.swi-option.is-right .i {
  opacity: 1;
  transform: none;
  color: var(--swi-green);
}

.swi-option.is-wrong {
  border-color: var(--swi-pink);
  background: rgba(242, 84, 143, 0.1);
  animation: swi-shake 0.42s var(--ease-out);
}

.swi-option.is-wrong .i {
  opacity: 1;
  transform: none;
  color: var(--swi-pink);
}

.swi-option[disabled] {
  cursor: default;
}

.swi-option[disabled]:not(.is-right):not(.is-wrong) {
  opacity: 0.45;
}

@keyframes swi-shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.swi-quiz__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.swi-quiz__hint {
  font-size: 13px;
  color: var(--fg-3);
}

.swi-next {
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--swi-green);
  color: #062e12;
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out), filter 0.2s;
}

.swi-next.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.swi-next:hover {
  filter: brightness(1.08);
}

/* Taylor */
.swi-mentor__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
}

.swi-avatar {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, var(--mood-a, #ff7a3d), var(--mood-b, #f2548f), var(--mood-a, #ff7a3d));
  transition: filter 0.4s;
}

.swi-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1d1e24;
  transition: transform 0.6s var(--ease-spring);
}

.swi-mentor[data-mood="thinking"] .swi-avatar {
  --mood-a: #ffd166;
  --mood-b: #ff9f0a;
  animation: swi-spin 2.2s linear infinite;
}

.swi-mentor[data-mood="thinking"] .swi-avatar img {
  animation: swi-spin 2.2s linear infinite reverse;
}

.swi-mentor[data-mood="happy"] .swi-avatar {
  --mood-a: #34c759;
  --mood-b: #4fc3f7;
}

.swi-mentor[data-mood="happy"] .swi-avatar img {
  transform: scale(1.06) rotate(-4deg);
}

.swi-mentor[data-mood="pout"] .swi-avatar {
  --mood-a: #f2548f;
  --mood-b: #ff7a3d;
}

.swi-mentor[data-mood="pout"] .swi-avatar img {
  transform: rotate(6deg);
}

@keyframes swi-spin {
  to {
    transform: rotate(360deg);
  }
}

.swi-mentor__name,
.swi-mentor__sub {
  display: block;
}

.swi-mentor__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.swi-mentor__sub {
  font-size: 13px;
  color: var(--fg-2);
}

.swi-mood {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--mood-a, #ffa878);
  background: rgba(255, 255, 255, 0.05);
}

.swi-mentor[data-mood="happy"] .swi-mood { color: #7ee79b; }
.swi-mentor[data-mood="thinking"] .swi-mood { color: #ffd166; }
.swi-mentor[data-mood="pout"] .swi-mood { color: #ff8fb8; }

.swi-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 260px;
  margin-top: 18px;
}

.swi-bubble {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  animation: swi-bubble-in 0.4s var(--ease-out);
}

@keyframes swi-bubble-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.swi-bubble__who {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-3);
}

.swi-bubble--you {
  align-self: flex-end;
  background: rgba(79, 195, 247, 0.12);
  border: 1px solid rgba(79, 195, 247, 0.25);
}

.swi-bubble--taylor {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
}

.swi-typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}

.swi-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-2);
  animation: swi-dot 1s var(--ease-in-out) infinite;
}

.swi-typing i:nth-child(2) { animation-delay: 0.15s; }
.swi-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes swi-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.swi-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.14em;
  background: var(--accent-2);
  animation: caret 0.9s steps(1) infinite;
}

.swi-mentor__input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 12px 12px 16px;
  border-radius: 14px;
  background: #121317;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-3);
}

.swi-mentor__input > span:first-child {
  flex: 1;
}

.swi-mentor__send {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2f86f6;
  color: #fff;
}

.swi-mentor__send .i {
  font-size: 15px;
  transform: rotate(-90deg);
}

@media (max-width: 900px) {
  .swi-lesson {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .swi-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── The quest map (sticky) ──────────────────────────────────────────────── */

.swi-quest {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
}

.swi-map-wrap {
  position: sticky;
  top: calc(50vh - 350px);
  align-self: start;
  display: grid;
  place-items: center;
  height: 700px;
}

.swi-map {
  position: relative;
  width: 320px;
  height: 660px;
}

.swi-map > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.swi-map__trail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
}

.swi-map__trail-lit {
  fill: none;
  stroke: url(#swi-trail);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--trail, 0));
  transition: stroke-dashoffset 0.9s var(--ease-out);
}

.swi-node {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 120px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.swi-node .hex {
  width: 74px;
  height: 82px;
  transition: background 0.6s var(--ease-out), transform 0.6s var(--ease-spring), filter 0.6s;
  background: linear-gradient(160deg, #d9dbe0, #a5a9b2);
  color: #5d616b;
}

.swi-node .hex .i {
  font-size: 30px;
}

.swi-node .hex .i--check {
  display: none;
}

.swi-node b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-3);
  transition: color 0.4s;
}

.swi-node.is-done .hex {
  background: linear-gradient(160deg, #8fdcff, #3aa9e8);
  color: #fff;
}

.swi-node.is-done .hex .i--check {
  display: block;
}

.swi-node.is-done .hex .i--lock,
.swi-node.is-now .hex .i--lock {
  display: none;
}

.swi-node.is-now .hex {
  background: linear-gradient(160deg, #ffb08a, #ff6a2b);
  color: #fff;
  transform: scale(1.1);
  filter: drop-shadow(0 0 22px rgba(255, 122, 61, 0.65));
}

.swi-node .hex .i--star {
  display: none;
}

.swi-node.is-now .hex .i--star {
  display: block;
}

.swi-node.is-done b,
.swi-node.is-now b {
  color: var(--fg);
}

.swi-gem {
  position: absolute;
  width: 26px;
  height: 34px;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(160deg, #d9dbe0, #a5a9b2);
  transition: background 0.6s var(--ease-out);
}

.swi-gem.is-done {
  background: linear-gradient(160deg, #8fdcff, #3aa9e8);
}

.swi-summit {
  position: absolute;
  left: 50%;
  top: 612px;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
}

.swi-summit__disc {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(160deg, #e5e7eb, #b4b8c0);
  color: #555a63;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12);
  transition: background 0.6s, color 0.6s, box-shadow 0.6s;
}

.swi-summit__disc .i {
  font-size: 34px;
}

.swi-summit b {
  font-size: 14px;
  color: var(--fg-3);
}

.swi-summit.is-now .swi-summit__disc {
  background: linear-gradient(160deg, #ffd166, #ff9f0a);
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 170, 60, 0.6);
}

.swi-summit.is-now b {
  color: var(--fg);
}

.swi-steps {
  display: grid;
}

.swi-step {
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px;
  opacity: 0.3;
  transition: opacity 0.6s var(--ease-out);
}

.swi-step.is-active {
  opacity: 1;
}

.swi-step__n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.swi-step h3 {
  margin-top: 14px;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.swi-step p {
  margin-top: 16px;
  max-width: 470px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--fg-2);
}

.swi-step .window {
  margin-top: 26px;
  max-width: 520px;
}

@media (max-width: 900px) {
  .swi-quest {
    grid-template-columns: minmax(0, 1fr);
  }

  .swi-map-wrap {
    display: none;
  }

  .swi-step {
    min-height: 0;
    opacity: 1;
    padding-block: 32px;
    border-top: 1px solid var(--line);
  }
}

/* ── Gallery ─────────────────────────────────────────────────────────────── */

.swi-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.swi-gallery > :nth-child(1) { grid-column: span 7; }
.swi-gallery > :nth-child(2) { grid-column: span 5; grid-row: span 2; }
.swi-gallery > :nth-child(3) { grid-column: span 7; }
.swi-gallery > :nth-child(4) { grid-column: span 12; }

.swi-gallery img {
  transition: transform 1.2s var(--ease-out);
}

.swi-gallery > :hover img {
  transform: scale(1.015);
}

@media (max-width: 760px) {
  .swi-gallery > :nth-child(n) {
    grid-column: span 12;
    grid-row: auto;
  }
}

/* ── Code ────────────────────────────────────────────────────────────────── */

.swi-code {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: #d6d3e3;
  background: #1a1a1f;
  tab-size: 4;
}

.swi-code .k { color: #ff7ab2; }
.swi-code .t { color: #dabaff; }
.swi-code .f { color: #67b7a4; }
.swi-code .s { color: #ff8170; }
.swi-code .c { color: #7f8c98; font-style: italic; }
.swi-code .p { color: #6bdfff; }
.swi-code .a { color: #fd8f3f; }

.swi-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--fg-3);
}
