@font-face {
  font-family: "KeinannPop";
  src:
    url("../../assets/fonts/keinann-pop.woff2") format("woff2"),
    url("../../assets/fonts/keinann-pop.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

:root {
  color-scheme: light;
  font-family:
    "KeinannPop", "Hiragino Maru Gothic ProN", "Yu Gothic",
    sans-serif;
  background: #f4f7f5;
  color: #1d2521;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(229, 194, 112, 0.34), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(121, 166, 169, 0.22), transparent 26%),
    linear-gradient(140deg, #f7fbf8 0%, #dce8df 54%, #cfdad6 100%);
  touch-action: manipulation;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.game-shell {
  position: relative;
  width: min(100%, 1120px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(29, 37, 33, 0.16);
  border-radius: 8px;
  background: #f9faf5;
  box-shadow: 0 18px 42px rgba(29, 37, 33, 0.18);
  touch-action: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.browser-chrome-scroll-space {
  display: none;
}

button,
a {
  touch-action: manipulation;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.hud {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 10px;
}

.stat {
  min-width: 88px;
  padding: 9px 12px 10px;
  border: 1px solid rgba(29, 37, 33, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
}

.stat span {
  display: block;
  color: #5f6a64;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.stat strong {
  display: block;
  min-height: 25px;
  color: #151b18;
  font-size: 22px;
  line-height: 1.1;
}

.sound-toggle {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 5;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(29, 37, 33, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 5px 12px rgba(29, 37, 33, 0.12);
  color: #151b18;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.sound-icon {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: currentColor;
}

.sound-icon::before {
  content: "♪";
  font-family: inherit;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  transform: translate(1px, -1px);
}

.sound-icon::after {
  position: absolute;
  content: none;
}

.sound-toggle.is-muted {
  background: rgba(29, 37, 33, 0.72);
  color: #fff;
}

.sound-toggle.is-muted .sound-icon::after {
  content: "";
  left: 2px;
  top: 10px;
  width: 20px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-42deg);
}

.sound-toggle:focus-visible {
  outline: 3px solid #e3b657;
  outline-offset: 3px;
}

.start-actions {
  position: absolute;
  left: 50%;
  top: 54%;
  z-index: 4;
  display: grid;
  width: min(210px, 68%);
  gap: 10px;
  transform: translate(-50%, -50%);
}

.start-button,
.howto-button {
  min-width: 96px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #1d2521;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.start-button.is-compact {
  display: none;
}

.howto-button {
  border: 1px solid rgba(29, 37, 33, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: #1d2521;
  box-shadow: 0 5px 12px rgba(29, 37, 33, 0.1);
  backdrop-filter: blur(10px);
}

.start-button:focus-visible,
.howto-button:focus-visible {
  outline: 3px solid #e3b657;
  outline-offset: 3px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 96px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(29, 37, 33, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #1d2521;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.game-shell.is-playing .start-actions,
.game-shell.is-ended .start-actions,
.game-shell.is-result .start-actions,
.game-shell.is-playing .home-link,
.game-shell.is-ended .home-link,
.game-shell.is-result .home-link {
  display: none;
}

.home-link:focus-visible {
  outline: 3px solid #e3b657;
  outline-offset: 3px;
}

.continue-button {
  position: absolute;
  left: 50%;
  top: 58%;
  min-width: 132px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: #1d2521;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  transform: translate(-50%, -50%);
  animation: result-enter 260ms cubic-bezier(0.2, 0.86, 0.22, 1) both;
}

.continue-button[hidden] {
  display: none;
}

.continue-button:focus-visible {
  outline: 3px solid #e3b657;
  outline-offset: 3px;
}

.mobile-controls {
  display: none;
}

.howto-panel {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(223, 242, 242, 0.48);
  backdrop-filter: blur(5px);
  touch-action: pan-y;
}

.howto-panel[hidden] {
  display: none;
}

.howto-card {
  display: grid;
  width: min(92%, 560px);
  max-height: min(88dvh, calc(100% - 24px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(29, 37, 33, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(29, 37, 33, 0.22);
  animation: howto-enter 300ms cubic-bezier(0.2, 0.86, 0.22, 1) both;
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
}

.howto-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.howto-head span {
  color: #5f6a64;
  font-size: 12px;
  font-weight: 900;
}

.howto-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(29, 37, 33, 0.16);
  border-radius: 50%;
  background: rgba(249, 250, 245, 0.88);
  color: #1d2521;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.howto-title {
  color: #151b18;
  font-size: 28px;
  line-height: 1.15;
}

.howto-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(29, 37, 33, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(223, 242, 242, 0.88), rgba(183, 218, 193, 0.68));
}

.howto-visual img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.howto-visual .howto-player {
  width: 74px;
  height: 74px;
}

.howto-visual img.howto-snail {
  transform: translateY(-9px);
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.howto-cardlet,
.howto-device {
  border: 1px solid rgba(29, 37, 33, 0.12);
  border-radius: 8px;
  background: rgba(249, 250, 245, 0.72);
}

.howto-cardlet {
  display: grid;
  gap: 7px;
  padding: 11px;
}

.howto-cardlet-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  gap: 4px;
}

.howto-cardlet-image img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.howto-cardlet-image img.howto-snail {
  transform: translateY(-9px);
}

.howto-cardlet h3,
.howto-device h3 {
  margin: 0;
  color: #151b18;
  font-size: 15px;
  line-height: 1.25;
}

.howto-cardlet p,
.howto-device p {
  margin: 0;
  color: #4d5b53;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.howto-device {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.howto-device-sp {
  display: none;
}

.howto-device-sp .howto-control-art {
  flex-wrap: nowrap;
}

.howto-control-art {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  gap: 7px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(223, 242, 242, 0.65);
}

.howto-mouse {
  position: relative;
  display: block;
  width: 42px;
  height: 62px;
  border: 3px solid #1d2521;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.howto-mouse::before {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 12px;
  border-radius: 4px;
  background: #e3b657;
  content: "";
  transform: translateX(-50%);
}

.howto-key {
  display: grid;
  min-width: 34px;
  height: 32px;
  place-items: center;
  border: 2px solid rgba(29, 37, 33, 0.22);
  border-radius: 6px;
  background: #fff;
  color: #1d2521;
  font-size: 13px;
  font-weight: 900;
}

.howto-key-wide {
  min-width: 68px;
  font-size: 11px;
}

.howto-jump-demo {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: rgba(29, 37, 33, 0.82);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.howto-stick-demo {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  aspect-ratio: 1;
  border: 2px solid rgba(29, 37, 33, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.howto-stick-demo i {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 5px 10px rgba(29, 37, 33, 0.14);
  transform: translate(-18%, -50%);
}

.howto-close:focus-visible {
  outline: 3px solid #e3b657;
  outline-offset: 2px;
}

.result-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: min(92%, 430px);
  max-height: min(88dvh, calc(100% - 32px));
  min-width: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  place-items: center;
  padding: 24px 26px 26px;
  border: 1px solid rgba(29, 37, 33, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(29, 37, 33, 0.22);
  transform: translate(-50%, -50%);
  transform-origin: center;
  animation: result-enter 340ms cubic-bezier(0.2, 0.86, 0.22, 1) both;
  backdrop-filter: blur(12px);
  scrollbar-gutter: stable both-edges;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.result-panel[hidden] {
  display: none;
}

.result-label,
.result-row > span {
  color: #5f6a64;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.result-title {
  margin-top: 4px;
  color: #151b18;
  font-size: 34px;
  line-height: 1;
}

.result-summary {
  display: grid;
  width: 100%;
  gap: 8px;
  margin-top: 12px;
}

.result-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 34px;
  gap: 18px;
}

.result-row[hidden] {
  display: none;
}

.result-row strong {
  color: #151b18;
  font-size: 28px;
  line-height: 1;
}

.result-total strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 2px;
  color: #151b18;
  font-size: 52px;
  line-height: 1;
}

.result-breakdown {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.result-breakdown div {
  display: grid;
  grid-template-rows: 54px auto;
  min-height: 94px;
  place-items: center;
  padding: 8px 6px;
  border: 1px solid rgba(29, 37, 33, 0.14);
  border-radius: 8px;
  background: rgba(249, 250, 245, 0.72);
}

.result-breakdown img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.result-breakdown img.result-item-snail {
  transform: translateY(-13px);
  transform-origin: center center;
}

.result-breakdown strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  color: #151b18;
  font-size: 26px;
  line-height: 1;
}

.count-unit {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.result-total .count-unit {
  font-size: 17px;
}

.result-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.result-actions button,
.share-panel button,
.share-panel a,
.profile-panel button,
.profile-panel a {
  min-height: 38px;
  border: 1px solid rgba(29, 37, 33, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #1d2521;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
}

.result-actions button,
.share-panel button,
.share-panel a,
.profile-panel button,
.profile-panel a {
  display: inline-grid;
  place-items: center;
}

.share-panel {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.share-panel[hidden],
.profile-panel[hidden] {
  display: none;
}

.share-panel span {
  grid-column: 1 / -1;
  min-height: 16px;
  color: #5f6a64;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.profile-panel {
  display: grid;
  width: 100%;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(29, 37, 33, 0.12);
  text-align: center;
}

.profile-panel div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.result-actions button:focus-visible,
.share-panel button:focus-visible,
.share-panel a:focus-visible,
.profile-panel button:focus-visible,
.profile-panel a:focus-visible,
.result-home-link:focus-visible {
  outline: 3px solid #e3b657;
  outline-offset: 2px;
}

.result-close-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.restart-button,
.result-home-link {
  min-height: 46px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.restart-button {
  border: 0;
  background: #1d2521;
  color: #fff;
}

.result-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 37, 33, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: #1d2521;
}

.restart-button:focus-visible,
.result-home-link:focus-visible {
  outline: 3px solid #e3b657;
  outline-offset: 3px;
}

@keyframes result-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -47%) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes howto-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  body {
    padding: 10px;
  }

  .game-shell {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .hud {
    top: 10px;
    left: 10px;
    gap: 8px;
  }

  .stat {
    min-width: 64px;
    padding: 8px 9px;
  }

  .stat strong {
    font-size: 19px;
  }

  .sound-toggle {
    right: 10px;
    top: 10px;
    width: 38px;
    height: 38px;
  }

  .start-button.is-compact {
    display: none;
  }

  .start-actions {
    width: min(230px, 70%);
    gap: 9px;
  }

  .howto-panel {
    padding: 12px;
  }

  .howto-card {
    width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    gap: 10px;
    padding: 14px;
  }

  .howto-title {
    font-size: 24px;
  }

  .howto-visual {
    min-height: 76px;
  }

  .howto-visual img {
    width: 46px;
    height: 46px;
  }

  .howto-visual .howto-player {
    width: 58px;
    height: 58px;
  }

  .howto-visual img.howto-snail {
    transform: translateY(-7px);
  }

  .howto-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .howto-cardlet {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
  }

  .howto-cardlet-image {
    grid-row: auto;
    min-height: 48px;
    justify-content: center;
  }

  .howto-cardlet-image img {
    width: 42px;
    height: 42px;
  }

  .howto-cardlet-image img.howto-snail {
    transform: translateY(-7px);
  }

  .howto-cardlet h3 {
    margin-bottom: 3px;
  }

  .howto-device {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .continue-button {
    top: 62%;
  }

  .result-panel {
    width: calc(100% - 32px);
    max-height: calc(100% - 24px);
    min-width: 0;
    padding: 18px;
  }

  .result-title {
    font-size: 30px;
  }

  .result-total strong {
    font-size: 46px;
  }

  .result-breakdown {
    gap: 8px;
  }

  .result-breakdown div {
    grid-template-rows: 48px auto;
    min-height: 88px;
  }

  .result-breakdown img {
    width: 44px;
    height: 44px;
  }

  .result-breakdown img.result-item-snail {
    transform: translateY(-11px);
  }

  .result-actions,
  .share-panel {
    gap: 6px;
  }
}

@media (orientation: portrait) {
  body {
    min-height: 100dvh;
    overflow: hidden;
    padding: 0;
    background: #dce8df;
  }

  .game-shell {
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(100dvh, calc(100dvw * 16 / 9));
    max-width: none;
    border: 0;
    box-shadow: none;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
  }
}

@media (pointer: coarse) {
  html,
  body {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
  }

  body {
    display: block;
    min-height: 100dvh;
    padding: 0;
    background: #dce8df;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .game-shell {
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(100vw, calc(100dvh * 16 / 9));
    height: min(100dvh, calc(100vw * 9 / 16));
    aspect-ratio: 16 / 9;
    border: 0;
    box-shadow: none;
    transform: translate(-50%, -50%);
    transform-origin: center center;
  }

  .game-shell:not(.is-playing),
  .game-shell:not(.is-playing) canvas {
    touch-action: pan-y;
  }

  .browser-chrome-scroll-space {
    display: block;
    width: 1px;
    height: calc(100dvh + 140px);
    opacity: 0;
    pointer-events: none;
  }

  .hud {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    gap: 8px;
  }

  .stat {
    min-width: 64px;
    padding: 7px 9px 8px;
  }

  .stat strong {
    font-size: 18px;
  }

  .sound-toggle {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    width: 38px;
    height: 38px;
  }

  .start-actions {
    width: min(230px, 48%);
    gap: 8px;
  }

  .stat {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: none;
  }

  .mobile-controls {
    position: absolute;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(18px, env(safe-area-inset-left));
    z-index: 4;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
  }

  .stick-zone,
  .jump-button {
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }

  .stick-zone {
    display: grid;
    width: clamp(112px, 20dvh, 139px);
    height: clamp(112px, 20dvh, 139px);
    place-items: center;
  }

  .stick-base {
    position: relative;
    width: clamp(90px, 16dvh, 112px);
    height: clamp(90px, 16dvh, 112px);
    border: 1px solid rgba(29, 37, 33, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.34);
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.22), 0 6px 14px rgba(29, 37, 33, 0.1);
    backdrop-filter: none;
  }

  .stick-base::before,
  .stick-base::after {
    position: absolute;
    top: 50%;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: rgba(29, 37, 33, 0.32);
    content: "";
  }

  .stick-base::before {
    left: 18px;
    transform: translateY(-50%);
  }

  .stick-base::after {
    right: 18px;
    transform: translateY(-50%);
  }

  .stick-thumb {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(29, 37, 33, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 5px 10px rgba(29, 37, 33, 0.14);
    transform: translate(-50%, -50%);
    transition: transform 120ms ease-out;
  }

  .stick-zone.is-active .stick-thumb {
    transition: none;
  }

  .jump-button {
    display: grid;
    width: clamp(70px, 13dvh, 82px);
    height: clamp(70px, 13dvh, 82px);
    place-items: center;
    border: 1px solid rgba(29, 37, 33, 0.22);
    border-radius: 50%;
    background: rgba(29, 37, 33, 0.78);
    box-shadow: 0 6px 14px rgba(29, 37, 33, 0.16);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    backdrop-filter: none;
  }

  .jump-button:active {
    transform: translateY(1px) scale(0.98);
  }

  .result-panel {
    z-index: 7;
  }

  .howto-device-pc {
    display: none;
  }

  .howto-device-sp {
    display: grid;
  }

  .howto-device-sp .howto-control-art {
    flex-wrap: nowrap;
    min-height: 74px;
    gap: 12px;
  }

  .howto-panel {
    padding: 10px;
  }

  .howto-card {
    width: min(92%, 620px);
    max-height: calc(100% - 20px);
    gap: 9px;
    padding: 12px;
  }

  .howto-title {
    font-size: 23px;
  }

  .howto-visual {
    min-height: 64px;
    padding: 7px 10px;
  }

  .howto-visual img {
    width: 42px;
    height: 42px;
  }

  .howto-visual .howto-player {
    width: 58px;
    height: 58px;
  }

  .howto-grid {
    gap: 8px;
  }

  .howto-cardlet {
    gap: 6px;
    padding: 9px;
  }

  .howto-cardlet-image {
    min-height: 44px;
  }

  .howto-cardlet-image img {
    width: 40px;
    height: 40px;
  }

  .howto-device-sp {
    grid-template-columns: minmax(188px, 0.85fr) minmax(0, 1fr);
  }

  .howto-device-sp .howto-control-art {
    min-width: 188px;
    min-height: 74px;
    padding-inline: 10px;
  }

  .result-panel {
    width: min(92%, 430px);
    max-height: calc(100% - 20px);
    padding: 18px;
  }

  .continue-button,
  .start-button {
    z-index: 6;
  }
}

@media (pointer: coarse) and (orientation: portrait) {
  .game-shell {
    width: min(100dvh, calc(100dvw * 16 / 9));
    height: auto;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}
