.qpark {
  --pk-ink: #174b40;
  --pk-green: #167b55;
  --pk-line: #dbe5da;
  color: var(--pk-ink);
  width: min(100%, 950px);
  margin: 0 auto;
  padding: clamp(0.85rem, 3vw, 2.2rem) clamp(0.2rem, 2vw, 1.5rem) 2rem;
  font-size: 1rem;
  line-height: 1.45;
}
.qpark *,
.qpark *::before,
.qpark *::after {
  box-sizing: border-box;
}
.qpark [hidden] {
  display: none !important;
}
.qpark button,
.qpark select {
  font: inherit;
  color: inherit;
}
.qpark button {
  min-height: 2.75rem;
  appearance: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
}
.qpark button:disabled {
  opacity: 0.48;
  cursor: default;
}
.qpark :is(button, select, summary):focus-visible {
  outline: 3px solid #2169ae;
  outline-offset: 3px;
}
.qpark p {
  margin: 0;
}
.qpark h1,
.qpark h2,
.qpark h3 {
  color: var(--pk-ink);
  line-height: 1.12;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.024em;
}
.qpark .pk-head {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.1rem;
}
.qpark .pk-head h1 {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
}
.qpark .pk-head p,
.qpark .pk-title-row p {
  color: #466459;
  margin-top: 0.35rem;
}
.qpark .pk-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.58rem;
  margin: 0.85rem 0;
}
.qpark .pk-tab {
  background: #fffef9;
  border: 1px solid var(--pk-line);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  font-weight: 750;
}
.qpark .pk-tab[aria-pressed='true'] {
  background: #e7f4e9;
  border-color: #528f71;
  box-shadow: inset 0 0 0 1px #528f71;
}
.qpark .pk-tab-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  color: #693714;
  background: #ffd3a9;
}
.qpark .pk-tab-geode .pk-tab-icon {
  color: #2e5c71;
  background: #d1e9e9;
}
.qpark .pk-tab-syllabes .pk-tab-icon {
  color: #65541b;
  background: #f9e7a3;
}
.qpark .pk-tab-miroirs .pk-tab-icon {
  color: #60466e;
  background: #eadcf0;
}
.qpark .pk-mirror-stage {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 3vw, 1.7rem);
  padding: clamp(0.8rem, 2vw, 1.3rem);
  border: 1px solid #d7c9e0;
  border-radius: 1rem;
  background: linear-gradient(130deg, #f7f2f9, #e4edeb);
}
.qpark .pk-mirror-glass {
  flex: 0 0 clamp(5.1rem, 14vw, 8.7rem);
  height: clamp(6.1rem, 16vw, 9.4rem);
  display: grid;
  place-items: center;
  border: 4px double #9a83a2;
  border-radius: 4.3rem 4.3rem 0.65rem 0.65rem;
  background: linear-gradient(
    124deg,
    #e1f0ed 0 28%,
    #fcfffd 29% 36%,
    #dfeced 37% 61%,
    #eff7f5 62% 70%,
    #d6e8e9 71%
  );
  color: #365855;
}
.qpark .pk-mirror-step {
  color: #604766;
  font-size: 0.94rem;
  margin-bottom: 0.2rem;
}
.qpark .pk-mirror-answer {
  margin-top: 0.9rem;
}
.qpark .pk-pose-order {
  display: flex;
  flex-wrap: wrap;
  list-style: decimal inside;
  gap: 0.4rem;
  margin: 0.55rem 0;
  padding: 0;
}
.qpark .pk-pose-order li {
  min-width: 3.2rem;
  padding: 0.35rem 0.55rem;
  border: 1px dashed #ad98b4;
  border-radius: 0.45rem;
  background: #faf6fb;
  font-size: 0.92rem;
}
.qpark .pk-pose-wrong {
  outline: 2px dashed #914621;
}
.qpark .pk-pose-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.qpark .pk-pose-card {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem;
  border: 1px solid #b9a9c0;
  border-radius: 0.7rem;
  background: #fff;
  text-align: left;
  font-weight: 650;
}
.qpark .pk-pose-card svg {
  flex: 0 0 auto;
}
.qpark .pk-pose-card kbd {
  margin-left: auto;
  color: #654e69;
  font:
    650 0.85rem/1 system-ui,
    sans-serif;
}
.qpark .pk-pose-card:not(:disabled):hover {
  background: #f4eef6;
}
.qpark .pk-panel {
  padding: clamp(0.85rem, 3vw, 1.7rem);
  border: 1px solid var(--pk-line);
  background: #fffef9;
  border-radius: 1.3rem;
  box-shadow: 0 6px 22px rgb(24 72 50 / 5%);
}
.qpark .pk-title-row {
  margin-bottom: 1rem;
}
.qpark h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.qpark h3 {
  font-size: 1.12rem;
}
.qpark .pk-main,
.qpark .pk-soft {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.86rem;
  border: 1px solid #aac3b3;
  border-radius: 0.78rem;
  background: #fffef9;
  font-weight: 720;
}
.qpark .pk-main {
  background: #176a4d;
  border-color: #176a4d;
  color: white;
}
.qpark .pk-main:not(:disabled):hover {
  background: #12583f;
}
.qpark .pk-soft:not(:disabled):hover,
.qpark .pk-tab:hover {
  background: #eff6ed;
}
.qpark .pk-actions,
.qpark .pk-small-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.qpark .pk-actions {
  margin-top: 0.75rem;
}
.qpark .pk-small-actions {
  margin-top: 0.4rem;
}
.qpark .pk-feedback {
  margin: 0.85rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.qpark .pk-status {
  color: #365f51;
}
.qpark .pk-status[data-kind='success'],
.qpark .pk-status[data-kind='retry'],
.qpark .pk-status[data-kind='example'] {
  padding: 0.6rem 0.85rem;
  border-radius: 0.6rem;
  font-weight: 650;
}
.qpark .pk-status[data-kind='success'] {
  background: #dbf1df;
  color: #185230;
}
.qpark .pk-status[data-kind='retry'] {
  background: #fff0d4;
  color: #714613;
}
.qpark .pk-status[data-kind='example'] {
  background: #e6f0fa;
  color: #284f66;
}
.qpark .pk-rule {
  border-top: 1px solid var(--pk-line);
  padding-top: 0.2rem;
}
.qpark .pk-rule summary {
  min-height: 2.7rem;
  display: flex;
  width: fit-content;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}
.qpark .pk-rule summary::-webkit-details-marker {
  display: none;
}
.qpark .pk-rule summary::after {
  content: '+';
  font-size: 1.15rem;
  margin-left: 0.2rem;
}
.qpark .pk-rule[open] summary::after {
  content: '−';
}
.qpark .pk-rule p {
  padding: 0.1rem 0 0.6rem;
  max-width: 59ch;
  color: #395e50;
}
.qpark .pk-drum-stage {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.2rem 0.9rem;
  background:
    radial-gradient(ellipse at 70% 105%, #fee0a2, transparent 72%), #fff3d9;
  border: 1px solid #edd9a9;
  border-radius: 1rem;
  padding: clamp(0.7rem, 2vw, 1rem);
}
.qpark .pk-dragon-scene {
  position: relative;
  grid-row: 1 / 3;
  overflow: hidden;
  align-self: center;
  border-radius: 0.72rem;
  background: #e2eac6;
}
.qpark .pk-dragon-scene img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}
.qpark .pk-slide-bird {
  display: none;
  place-items: center;
  position: absolute;
  left: 88%;
  top: 76%;
  box-sizing: border-box;
  width: 1.8rem;
  height: 1.8rem;
  transform: translate(-50%, -50%);
  border: 2px solid #72502f;
  border-radius: 50%;
  color: #583d24;
  background: #ffe87e;
}
.qpark .pk-won .pk-slide-bird {
  display: grid;
  animation: pk-dragon-slide 1s ease-in-out;
}
@keyframes pk-dragon-slide {
  from {
    left: 70%;
    top: 41%;
  }
  to {
    left: 88%;
    top: 76%;
  }
}
.qpark .pk-beats {
  display: flex;
  justify-content: center;
  gap: clamp(0.26rem, 1.4vw, 0.7rem);
}
.qpark .pk-beat {
  display: grid;
  place-items: center;
  gap: 0.2rem;
  min-width: 3.3rem;
  color: #42594e;
  font-size: 0.875rem;
  font-weight: 680;
}
.qpark .pk-beat-symbol {
  width: 2.85rem;
  height: 2.55rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: #ffe2c7;
  color: #8e421e;
  border: 1px solid #d6a982;
}
.qpark .pk-beat.gauche svg {
  transform: scaleX(-1);
}
.qpark .pk-beat.droite .pk-beat-symbol {
  background: #d8ede3;
  border-color: #9dbdaf;
  color: #22664d;
}
.qpark .pk-beat.silence .pk-beat-symbol {
  background: #fff8e6;
  border: 2px dashed #aa9c78;
  color: #685d3d;
  font-weight: 800;
  letter-spacing: 0.055em;
}
.qpark .pk-beat.pk-lit .pk-beat-symbol {
  outline: 3px solid #174b40;
  outline-offset: 1px;
}
.qpark .pk-beat.pk-matched .pk-beat-symbol {
  box-shadow: inset 0 -4px #437c56;
}
.qpark .pk-drums {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.7rem, 3vw, 1.9rem);
  padding: 1rem 0.25rem 0.1rem;
}
.qpark .pk-drum {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  padding: 0.2rem 0.4rem;
  color: #663e27;
  font-weight: 750;
  touch-action: manipulation;
  user-select: none;
}
.qpark .pk-drum-skin {
  display: grid;
  place-items: center;
  width: clamp(5.2rem, 12vw, 8.3rem);
  height: clamp(3.45rem, 7vw, 4.95rem);
  margin: 0.05rem 0.1rem 0.9rem;
  border: 4px solid #e9a775;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 25%, #ffecbe, #f9c78e);
  color: #9b542d;
  box-shadow:
    0 0.35rem #ce6f39,
    0 0.78rem #ac512f,
    0 0.95rem 0 -0.1rem #e7ca93;
  transition:
    transform 0.09s,
    filter 0.09s;
}
.qpark .pk-drum.gauche .pk-drum-skin svg {
  transform: scaleX(-1);
}
.qpark .pk-drum.droite .pk-drum-skin {
  border-color: #78bf9f;
  background: radial-gradient(ellipse at 40% 25%, #e3f0cc, #addec2);
  color: #296c53;
  box-shadow:
    0 0.35rem #58a679,
    0 0.78rem #347c5a,
    0 0.95rem 0 -0.1rem #c4c996;
}
.qpark .pk-drum.pk-hit .pk-drum-skin,
.qpark .pk-drum:active .pk-drum-skin {
  transform: translateY(0.35rem);
  filter: brightness(1.12);
  outline: 3px solid currentColor;
}
.qpark .pk-drum kbd {
  font:
    650 0.85rem/1 system-ui,
    sans-serif;
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  border: 1px solid #c7bba0;
  border-radius: 0.3rem;
  background: #fffef5;
}
.qpark .pk-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}
.qpark .pk-settings label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.94rem;
  font-weight: 650;
}
.qpark .pk-settings select {
  border: 1px solid #b9cbbb;
  min-height: 2.75rem;
  padding: 0.35rem 1.9rem 0.35rem 0.6rem;
  border-radius: 0.55rem;
  background: #f7faf2;
}
.qpark .pk-map-layout {
  display: grid;
  align-items: center;
  grid-template-columns: 1.09fr 1fr;
  gap: clamp(0.6rem, 2vw, 1.4rem);
}
.qpark .pk-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid #b0caa1;
  aspect-ratio: 1.6;
  min-height: 11rem;
  background: #e2efd7;
}
.qpark .pk-cell {
  display: grid;
  place-items: center;
  background: #e4f0d6;
  border-right: 1px dashed rgb(53 104 56 / 22%);
  border-bottom: 1px dashed rgb(53 104 56 / 22%);
}
.qpark .pk-cell:nth-child(even) {
  background: #d9ebcd;
}
.qpark .pk-cell.folly {
  color: #ac352c;
}
.qpark .pk-cell.geode {
  color: #485e7d;
  background: #e7eddd;
}
.qpark .pk-cell.tree {
  color: #62956d;
}
.qpark .pk-cell.water,
.qpark .pk-cell.bridge {
  background:
    repeating-linear-gradient(
      -8deg,
      transparent 0 11px,
      rgb(255 255 255 / 18%) 12px 13px
    ),
    #99d5d5;
}
.qpark .pk-cell.bridge {
  color: #765c35;
}
.qpark .pk-cell.bridge svg {
  background: #f1d7a4;
  border-radius: 0.3rem;
  padding: 0.15rem;
}
.qpark .pk-bird {
  position: absolute;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  color: #573b22;
  background: #ffe87e;
  border: 2px solid #866326;
  border-radius: 50%;
  transform: translate(-50%, -30%);
  margin-left: 0.55rem;
  box-shadow: 0 2px 0 rgb(62 71 45 / 18%);
  transition:
    top 0.32s ease,
    left 0.32s ease;
}
.qpark .pk-path {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0.55rem 0;
}
.qpark .pk-slot {
  display: inline-grid;
  place-items: center;
  height: 2rem;
  width: 2rem;
  border: 1px dashed #b3c5b4;
  border-radius: 0.44rem;
  background: #f1f6ea;
  font-size: 1.3rem;
  line-height: 1;
}
.qpark .pk-slot.filled {
  background: #e3f0e3;
  border-style: solid;
  color: #2a6146;
}
.qpark .pk-slot.passed {
  box-shadow: inset 0 -3px #598565;
}
.qpark .pk-slot.blocked,
.qpark .pk-word-slot.blocked {
  outline: 2px dashed #914621;
  outline-offset: 1px;
}
.qpark .pk-directions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}
.qpark .pk-dir {
  display: grid;
  place-items: center;
  min-width: 3.15rem;
  background: white;
  border: 1px solid #a9c3b2;
  border-radius: 0.6rem;
  padding: 0.27rem 0.35rem;
  font-size: 0.875rem;
  font-weight: 650;
}
.qpark .pk-dir b {
  font-size: 1.22rem;
}
.qpark .pk-dir:not(:disabled):hover,
.qpark .pk-chunk:not(:disabled):hover {
  background: #e8f2e8;
}
.qpark .pk-word-stage {
  padding: clamp(0.8rem, 2vw, 1.2rem);
  border-radius: 1rem;
  border: 1px solid #b9d8d5;
  background: linear-gradient(165deg, #eef7ed, #dff1ef);
}
.qpark .pk-word-clue {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.qpark .pk-word-pic {
  display: grid;
  place-items: center;
  background: #fff9e9;
  border-radius: 1rem;
  width: 4rem;
  height: 4rem;
  flex: 0 0 auto;
  font-size: 2.4rem;
}
.qpark .pk-word-clue p {
  font-weight: 650;
}
.qpark .pk-word-answer {
  color: #124b45;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}
.qpark .pk-word-slots {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.95rem 0 0.65rem;
}
.qpark .pk-word-slot {
  display: inline-grid;
  place-items: center;
  min-width: 3.25rem;
  min-height: 2.65rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.55rem;
  border: 2px dashed #82a9a8;
  color: #557c76;
  font-weight: 750;
  font-size: 1.35rem;
}
.qpark .pk-word-slot.filled {
  border-style: solid;
  background: #f8ffef;
  color: #255846;
}
.qpark .pk-chunks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.46rem;
}
.qpark .pk-chunk {
  padding: 0.35rem 0.8rem;
  min-width: 3.2rem;
  border: 1px solid #809d90;
  border-bottom-width: 3px;
  border-radius: 0.7rem;
  font-size: 1.22rem;
  font-weight: 730;
  background: #fffef9;
}
.qpark .pk-sailing {
  height: 2.7rem;
  position: relative;
  margin-top: 0.7rem;
  border-bottom: 3px solid #6bb3bb;
}
.qpark .pk-sailing svg {
  position: absolute;
  bottom: 0;
  left: calc(85% - 1rem);
  color: #37686b;
  fill: #ffdf91;
  animation: pk-sail 1.3s ease-out;
}
@keyframes pk-sail {
  from {
    left: 12%;
  }
  to {
    left: calc(85% - 1rem);
  }
}
.qpark.pk-reduced *,
.qpark.pk-reduced *::before,
.qpark.pk-reduced *::after {
  transition: none !important;
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .qpark *,
  .qpark *::before,
  .qpark *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 660px) {
  .qpark .pk-drum-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .qpark .pk-dragon-scene {
    grid-row: auto;
    margin-bottom: 0.35rem;
  }
  .qpark .pk-dragon-scene img {
    max-height: 10rem;
    object-position: 50% 48%;
  }
  .qpark .pk-map-layout {
    grid-template-columns: 1fr;
  }
  .qpark .pk-map {
    max-height: 15rem;
    min-height: 9rem;
    width: 100%;
    aspect-ratio: 2.2;
  }
  .qpark .pk-head {
    gap: 0.55rem;
  }
  .qpark .pk-tab {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.48rem 0.2rem;
    font-size: 0.9rem;
  }
  .qpark .pk-nav {
    gap: 0.36rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qpark .pk-nav .pk-tab {
    flex-direction: row;
    align-items: center;
    padding-left: 0.5rem;
  }
  .qpark .pk-pose-card {
    flex-direction: column;
    text-align: center;
    padding: 0.34rem;
    font-size: 0.9rem;
  }
  .qpark .pk-pose-card kbd {
    margin: 0;
  }
  .qpark .pk-head > .pk-soft {
    padding: 0.4rem 0.6rem;
  }
}
@media (max-width: 420px) {
  .qpark .pk-head {
    display: grid;
  }
  .qpark .pk-head > .pk-soft {
    width: max-content;
  }
  .qpark .pk-beat {
    min-width: 0;
    font-size: 0.875rem;
    flex: 0 1 3.15rem;
  }
  .qpark .pk-beat-symbol {
    width: min(2.5rem, 100%);
  }
  .qpark .pk-settings {
    gap: 0.5rem;
  }
  .qpark .pk-word-pic {
    width: 2.9rem;
    height: 3.15rem;
    font-size: 1.9rem;
  }
}
