:root {
  --ink: #26263e;
  --muted: #62647a;
  --purple: #6951cd;
  --violet: #6850d0;
  --rule: #dcdce4;
  --paper: #faf9f5;
  --night: #25213c;
  --arcade: "SFMono-Regular", Menlo, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui,
    sans-serif;
  background-color: var(--paper);
  background-image: radial-gradient(#dcdbde 0.8px, transparent 0.8px);
  background-size: 8px 8px;
  color: var(--ink);
  word-break: keep-all;
  line-height: 1.48;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.52;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #325ae2;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
img {
  display: block;
  max-width: 100%;
}
img.pixel,
.pixel {
  image-rendering: pixelated;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}
i svg {
  width: 1.15em;
  height: 1.15em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  position: fixed;
  z-index: 5;
  background: white;
  padding: 8px;
}
header {
  background: #fff;
  border-bottom: 1px solid #dedde3;
}
.headwrap,
main,
footer {
  width: min(1320px, calc(100% - 9vw));
  margin: auto;
}
.headwrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: clamp(22px, 5vw, 86px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  white-space: nowrap;
}
.brand strong {
  font-size: 24px;
  letter-spacing: -1.55px;
  font-weight: 950;
}
.brand em {
  font-style: normal;
  color: var(--purple);
}
.brandmark {
  width: 39px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #7861db;
  color: white;
  font: 900 30px/1 var(--arcade);
  text-shadow: 2px 2px #4b379e;
  clip-path: polygon(
    0 6px,
    6px 6px,
    6px 0,
    calc(100% - 6px) 0,
    calc(100% - 6px) 6px,
    100% 6px,
    100% calc(100% - 6px),
    calc(100% - 6px) calc(100% - 6px),
    calc(100% - 6px) 100%,
    6px 100%,
    6px calc(100% - 6px),
    0 calc(100% - 6px)
  );
}
nav {
  display: flex;
  gap: 8px;
}
nav button,
.tool {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
nav button {
  padding: 9px 14px;
  font-weight: 750;
  color: #66677a;
  font-size: 15px;
  border-radius: 7px;
}
nav button.active {
  color: #6350c4;
  background: #f0ecfc;
}
.headtools {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.tool {
  width: 38px;
  height: 38px;
  border: 1px solid #dedde6;
  border-radius: 9px;
  background: #fff;
  font-size: 18px;
}
.tool:hover,
.outline:hover {
  background: #f4f1fb;
}
main {
  padding: 32px 0 28px;
  min-height: calc(100vh - 137px);
}
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 2.75fr) minmax(248px, 1fr);
  gap: 19px;
}
.hero,
.player,
.card,
.coach,
.game-shell,
.panel {
  border: 2px solid var(--night);
  border-radius: 12px;
  box-shadow: 0 3px 0 rgba(37, 33, 60, 0.92);
  overflow: hidden;
}
.hero {
  min-height: 269px;
  display: flex;
  align-items: center;
  background: #184d54 url(art/hero.png) 66% center/cover no-repeat;
  color: white;
  position: relative;
  isolation: isolate;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0d2d36bd, transparent 73%);
}
.herotext {
  padding: 27px 30px;
  max-width: 66%;
}
.hero-chip,
.tag,
.mini,
.level,
.section-chip {
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-chip {
  color: #fff2a4;
  background: #163d3fdd;
  border: 1px solid #c0d29680;
  border-radius: 5px;
  padding: 3px 9px;
}
.hero h1 {
  font-size: clamp(32px, 3.33vw, 53px);
  font-weight: 950;
  letter-spacing: -2.7px;
  line-height: 1.17;
  margin: 12px 0 8px;
  text-shadow: 2px 3px #113741;
}
.hero p {
  font-size: 16px;
  color: #f0f9f7;
  margin: 0 0 19px;
  text-shadow: 1px 1px #12363b;
}
.yellow,
.primary,
.outline,
.playbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  font-weight: 800;
  padding: 10px 17px;
}
.yellow {
  background: #ffe074;
  border: 2px solid #342e35;
  box-shadow: 0 3px #342e35;
  color: #302b32;
}
.yellow:hover {
  background: #ffea9c;
}
.player {
  background: #fff;
  padding: 22px 22px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.smallhead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 850;
}
.smallhead i {
  color: var(--purple);
}
.playerface {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.avatar {
  background: #e7f4e9;
  border: 1px solid #bddece;
  border-radius: 10px;
  width: 59px;
  height: 56px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.avatar img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.level {
  color: var(--purple);
  font: 800 12px var(--arcade);
}
.playerface strong {
  display: block;
  font-size: 20px;
  letter-spacing: -1px;
}
.xptext,
.statrow,
.statsmall,
.sectionhead,
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.xptext {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.xptext b {
  color: var(--purple);
  font-family: var(--arcade);
}
.xpbar {
  background: #eeeaf7;
  border-radius: 2px;
  height: 9px;
  overflow: hidden;
}
.xpbar > span {
  display: block;
  background: #9273ed;
  height: 100%;
}
.statrow {
  border-top: 1px dashed #d9d6e4;
  margin-top: 17px;
  padding-top: 12px;
  gap: 8px;
}
.statsmall {
  gap: 6px;
  font-size: 14px;
  color: #666277;
}
.statsmall b {
  color: var(--ink);
}
.gold {
  color: #bd8214;
}
.violet {
  color: var(--purple);
}
.sectionhead {
  margin: 32px 0 14px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title h2,
h2 {
  letter-spacing: -1.2px;
}
.section-title h2 {
  font-size: 26px;
  margin: 0;
  line-height: 1.25;
}
.section-icon {
  color: var(--purple);
  font-size: 25px;
}
.section-chip {
  color: #625385;
  background: #ece8f7;
  border: 1px solid #dcd5ed;
  padding: 2px 9px;
  border-radius: 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.card {
  background: white;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 0 var(--night);
}
.cover {
  position: relative;
  background: var(--tint);
  border-bottom: 2px solid var(--night);
}
.cover img {
  width: 100%;
  height: clamp(106px, 9.7vw, 148px);
  object-fit: cover;
}
.stage-no {
  position: absolute;
  left: 9px;
  top: 9px;
  background: #fffdf4ed;
  border: 1px solid #302f42;
  border-radius: 4px;
  padding: 2px 5px;
  font: 800 11px var(--arcade);
  letter-spacing: 0.25px;
  color: #363149;
}
.cardbody {
  padding: 14px 14px 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tag {
  color: var(--accent);
  background: var(--tint);
  border-radius: 4px;
  padding: 2px 6px;
  align-self: flex-start;
  font-size: 12px;
}
.card h3 {
  font-size: clamp(18px, 1.49vw, 23px);
  letter-spacing: -1.2px;
  margin: 6px 0 4px;
}
.card p {
  font-size: 14px;
  color: #595b6c;
  margin: 0 0 14px;
  line-height: 1.55;
  flex: 1;
}
.playbtn {
  width: 100%;
  min-height: 37px;
  background: var(--tint);
  color: var(--accent);
  border: 1px solid var(--edge);
  font-size: 14px;
  padding: 6px;
}
.playbtn:hover {
  filter: brightness(0.95);
}
.coach {
  border-color: #cfc6e8;
  box-shadow: 0 2px #dcd5e9;
  background: #f3effb;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-top: 24px;
}
.coach .robot {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.coach strong {
  display: block;
  font-size: 16px;
}
.coach p {
  margin: 2px 0 0;
  color: #59546f;
  font-size: 15px;
}
.coach .outline {
  margin-left: auto;
  white-space: nowrap;
}
.outline {
  background: #fff;
  border: 1px solid #c9c4d7;
  color: #4e445f;
  font-size: 14px;
}
.primary {
  background: var(--purple);
  color: white;
  border: 1px solid #514099;
  box-shadow: 0 2px 0 #44366c;
}
.primary:hover {
  background: #5c45bd;
}
footer {
  border-top: 1px solid #dcd9df;
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  color: #797785;
  font-size: 13px;
}
footer span:first-child {
  font-weight: 800;
}
dialog {
  border: 2px solid var(--night);
  border-radius: 14px;
  max-width: min(480px, 92vw);
  padding: 25px;
  box-shadow: 0 5px var(--night);
  color: var(--ink);
}
dialog::backdrop {
  background: #211b35a6;
}
dialog h2 {
  margin: 0 0 12px;
}
dialog p {
  color: #595669;
}
dialog .actions {
  justify-content: flex-end;
}
.back {
  font-size: 14px;
  font-weight: 750;
  color: #63547c;
  margin: 0 0 14px;
  padding: 4px 0;
}
.game-shell {
  background: white;
  max-width: 910px;
  margin: 0 auto 16px;
}
.game-top {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--tint);
  border-bottom: 2px solid var(--night);
  padding: 18px 25px;
}
.game-top img {
  width: 110px;
  height: 62px;
  object-fit: cover;
  border: 1px solid var(--edge);
  border-radius: 7px;
}
.game-top h1,
.loghead h1 {
  margin: 1px 0;
  font-size: 30px;
  letter-spacing: -1.6px;
}
.game-top p {
  margin: 3px 0;
  color: #514e60;
  font-size: 14px;
}
.game-inner {
  padding: 27px clamp(17px, 3vw, 38px) 31px;
}
.game-inner h2 {
  margin: 3px 0 8px;
  font-size: 24px;
}
.game-inner p {
  margin: 5px 0 16px;
  color: #605d6c;
}
.actions,
.choices,
.steps,
.keyboard,
.palette,
.levelset {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.actions {
  margin-top: 16px;
}
.levelset {
  margin: 10px 0 20px;
}
.levelset button,
.option,
.pattern button,
.steps button,
.palette button {
  border: 1px solid #c9c4d8;
  border-radius: 7px;
  padding: 9px 15px;
  background: white;
  font-weight: 750;
}
.levelset button.chosen,
.palette button.chosen,
.steps button.chosen {
  background: #eee9ff;
  border-color: var(--purple);
  color: #5944ae;
  box-shadow: inset 0 0 0 1px var(--purple);
}
.roundbar {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b568c;
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 16px;
}
.ticks {
  display: flex;
  gap: 3px;
}
.ticks b {
  width: 22px;
  height: 6px;
  border-radius: 2px;
  background: #e5dfed;
}
.ticks b.lit {
  background: #9275d8;
}
.board {
  background: #f7f6fa;
  border: 1px solid #dedbe6;
  border-radius: 10px;
  padding: 18px;
  margin: 17px 0;
}
.board .caption {
  font-size: 14px;
  color: #605b70;
  margin: 0 0 10px;
}
.beats {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin: 14px 0;
}
.beat {
  text-align: center;
  border-radius: 5px;
  color: #8e8a9e;
  border: 1px solid #d6cfdf;
  padding: 8px 0;
  font-size: 14px;
}
.beat.hit {
  color: #5a3a80;
  background: #e6d8f5;
  font-weight: 800;
}
.beat.pulse,
.step.pulse {
  background: #ffe177;
  color: #35264a;
}
.drumpad {
  width: 100%;
  background: #7660c8;
  color: white;
  border: 2px solid #453369;
  border-radius: 10px;
  box-shadow: 0 4px #423365;
  padding: 18px;
  font-size: 20px;
  font-weight: 850;
  touch-action: manipulation;
}
.drumpad:active {
  transform: translateY(2px);
  box-shadow: 0 2px #423365;
}
.keyboard {
  gap: 3px;
  align-items: stretch;
  flex-wrap: nowrap;
}
.key {
  position: relative;
  flex: 1;
  border: 1px solid #aaa2b6;
  border-bottom: 4px solid #afa6b8;
  border-radius: 0 0 5px 5px;
  background: white;
  min-height: 76px;
  padding: 31px 1px 7px;
  font-size: 16px;
  font-weight: 700;
}
.key.blackafter:after {
  content: "";
  position: absolute;
  right: -5px;
  top: 0;
  width: 9px;
  height: 28px;
  background: #343242;
  border-radius: 0 0 2px 2px;
  z-index: 1;
  pointer-events: none;
}
.key:active,
.key.selected {
  background: #d9f2e5;
}
.slots {
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 2px;
  min-height: 34px;
  color: #645182;
  margin: 6px 0 13px;
}
.notice {
  background: #fff6dc;
  border-radius: 7px;
  padding: 11px 14px;
  color: #70521d;
  margin: 12px 0;
}
.notice.good {
  background: #e4f4e9;
  color: #30644a;
}
.hint {
  background: #f2eefb;
  border-left: 3px solid #9980cc;
  padding: 9px 13px;
  margin-top: 12px;
  font-size: 15px;
}
.loghead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel {
  background: white;
  padding: 20px;
  margin-bottom: 18px;
  border-color: #c5c1d0;
  box-shadow: 0 2px #ccc7d4;
}
.panel h2 {
  font-size: 21px;
  margin: 0 0 10px;
}
.panel p {
  color: #605b6b;
}
.loglist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.loglist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #ebe7ed;
}
.loglist small {
  color: #777081;
}
.badgegrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.badge {
  padding: 10px;
  text-align: center;
  background: #f5f4f7;
  border-radius: 7px;
  color: #696470;
}
.badge.earned {
  background: #fff1c8;
  color: #6a5015;
}
.badge i {
  display: block;
  font-size: 23px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}
.steps button {
  padding: 8px 1px;
}
.steps small {
  display: block;
  font-size: 12px;
  color: #786d85;
}
.palette {
  margin-top: 14px;
  gap: 5px;
}
.palette button {
  padding: 8px 12px;
}
.field {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 15px;
}
.field input,
.field select {
  max-width: 100%;
  margin: 4px 8px 4px 0;
  border: 1px solid #c9c2d3;
  background: white;
  border-radius: 6px;
  padding: 7px 9px;
}
.summary {
  text-align: center;
  padding: 22px 0;
}
.summary .actions {
  justify-content: center;
}
.medal {
  font-size: 40px;
  color: #bd8318;
}
.meta {
  color: #736882;
  font-size: 14px;
}
.form-blocks button {
  background: #d8eee8;
  color: #265f4c;
  font-size: 20px;
}
.form-blocks button:nth-child(2) {
  background: #f8e6bf;
  color: #81571c;
}
.form-blocks button:nth-child(3) {
  background: #e8dbf4;
  color: #694880;
}
@media (min-width: 1550px) {
  .hero {
    min-height: 300px;
  }
  .cardbody {
    padding: 18px;
  }
  .card p {
    font-size: 16px;
  }
}
@media (max-width: 1040px) {
  .cards {
    gap: 9px;
  }
  .cardbody {
    padding: 11px;
  }
  .card p {
    font-size: 13px;
  }
  .hero-row {
    grid-template-columns: 2.35fr 1fr;
  }
  .headwrap,
  main,
  footer {
    width: 94%;
  }
  .player {
    padding: 18px;
  }
  .sectionhead {
    margin-top: 25px;
  }
}
@media (max-width: 800px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .hero-row {
    grid-template-columns: minmax(0, 1.9fr) minmax(205px, 1fr);
    gap: 12px;
  }
  .herotext {
    max-width: 86%;
    padding: 20px;
  }
  .hero {
    min-height: 231px;
  }
  .headwrap {
    gap: 15px;
  }
  .brand strong {
    font-size: 21px;
  }
  .headtools {
    gap: 5px;
  }
  .cover img {
    height: 118px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .card h3 {
    font-size: 20px;
  }
}
@media (max-width: 610px) {
  .headwrap,
  main,
  footer {
    width: 92%;
  }
  .headwrap {
    flex-wrap: wrap;
    gap: 0;
    min-height: 0;
    padding-top: 11px;
  }
  .brandmark {
    width: 33px;
    height: 32px;
    font-size: 25px;
  }
  .brand {
    gap: 7px;
  }
  .headtools {
    order: 1;
  }
  .tool {
    width: 35px;
    height: 35px;
  }
  nav {
    order: 2;
    width: 100%;
    padding: 8px 0 6px;
    gap: 6px;
  }
  nav button {
    font-size: 14px;
    padding: 6px 13px;
  }
  main {
    padding-top: 16px;
  }
  .hero-row {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 218px;
    background-position: 61% center;
  }
  .herotext {
    max-width: 86%;
    padding: 20px 18px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero p {
    font-size: 14px;
    max-width: 215px;
  }
  .player {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    align-items: center;
  }
  .player > .smallhead {
    display: none;
  }
  .playerface {
    margin: 0;
  }
  .playerface strong {
    font-size: 16px;
  }
  .avatar {
    width: 43px;
    height: 43px;
  }
  .statrow {
    grid-column: 1/-1;
    justify-content: space-around;
    margin-top: 10px;
    padding-top: 7px;
  }
  .section-title h2 {
    font-size: 22px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cover img {
    height: 100px;
  }
  .cardbody {
    padding: 11px;
  }
  .card h3 {
    font-size: 19px;
  }
  .card p {
    min-height: 40px;
  }
  .coach {
    padding: 12px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .coach > div {
    flex: 1;
  }
  .coach .outline {
    padding: 6px 10px;
  }
  .coach p {
    font-size: 14px;
  }
  .coach .robot {
    width: 36px;
  }
  .game-top {
    padding: 15px;
    gap: 12px;
  }
  .game-top img {
    width: 70px;
    height: 50px;
  }
  .game-top h1 {
    font-size: 24px;
  }
  .game-top p {
    font-size: 13px;
  }
  .game-inner {
    padding: 17px 13px;
  }
  .board {
    padding: 12px;
  }
  .badgegrid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .key {
    font-size: 14px;
  }
  .loglist li {
    flex-wrap: wrap;
  }
  .loghead h1 {
    font-size: 26px;
  }
  .sectionhead {
    margin-top: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
