:root {
  --ink: #19314a;
  --muted: #5d6f81;
  --line: rgba(25, 49, 74, 0.16);
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --blue: #2c92e6;
  --cyan: #20c7d8;
  --pink: #ff6fba;
  --gold: #ffca52;
  --green: #35b675;
  --danger: #d84e6f;
  --shadow: 0 18px 48px rgba(43, 75, 110, 0.22);
  --radius: 8px;
  color: var(--ink);
  font-family: "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #e9f6ff;
  color: var(--ink);
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  padding: 14px;
  background-image:
    linear-gradient(180deg, rgba(245, 252, 255, 0.86), rgba(238, 245, 249, 0.98)),
    var(--park-bg);
  background-position: center;
  background-size: cover;
  background-attachment: scroll, fixed;
  background-repeat: no-repeat;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto;
  gap: 12px;
  align-items: center;
  max-width: 1680px;
  margin: 0 auto 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brandMark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: white;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(32, 199, 216, 0.3);
}

.brandText {
  min-width: 0;
}

.brandText b {
  display: block;
  font-size: 17px;
}

.brandText span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modeTabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 28px rgba(35, 72, 102, 0.12);
}

.modeBtn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  white-space: nowrap;
}

.modeBtn.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(25, 49, 74, 0.1);
}

.layout {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 12px;
  align-items: start;
}

.stagePanel,
.sidePanel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stagePanel {
  min-height: calc(100vh - 92px);
}

.sidePanel {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.surfaceHead,
.sideHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.surfaceTitle,
.sideTitle {
  min-width: 0;
}

.surfaceTitle b,
.sideTitle b {
  display: block;
  font-size: 17px;
}

.surfaceTitle span,
.sideTitle span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selectLine {
  display: flex;
  gap: 8px;
  align-items: center;
}

.selectLine select,
.searchBox {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
}

.primaryBtn,
.ghostBtn,
.chipBtn {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
  font-weight: 700;
}

.primaryBtn {
  color: white;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 8px 18px rgba(44, 146, 230, 0.25);
}

.ghostBtn.active,
.chipBtn.active {
  border-color: rgba(44, 146, 230, 0.4);
  background: #e6f6ff;
  color: #176ea8;
}

.chipRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contentPad {
  padding: 14px;
}

.parkStage {
  position: relative;
  min-height: calc(100vh - 146px);
  aspect-ratio: 16 / 9;
  background-image: var(--park-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.parkStage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 95, 170, 0.05), rgba(0, 0, 0, 0.22)),
    radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.24), transparent 34%);
  pointer-events: none;
}

.hudMinimap {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 148px;
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background:
    radial-gradient(circle at 60% 42%, rgba(53, 182, 117, 0.85), transparent 26%),
    linear-gradient(145deg, rgba(84, 194, 238, 0.92), rgba(72, 178, 111, 0.92));
  box-shadow: 0 10px 26px rgba(0, 41, 85, 0.28);
  overflow: hidden;
}

.hudMinimap img {
  position: absolute;
  width: 54px;
  height: 54px;
  object-fit: contain;
  right: 20px;
  bottom: 20px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28));
}

.questBox {
  position: absolute;
  top: 26px;
  right: 24px;
  max-width: min(540px, calc(100% - 210px));
  display: grid;
  gap: 6px;
  justify-items: end;
}

.questBox b {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #684800;
  background: linear-gradient(180deg, #fff3a8, #ffce5c);
  box-shadow: 0 8px 16px rgba(93, 88, 28, 0.2);
}

.questBox span {
  display: block;
  color: white;
  font-size: 14px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.parkActor {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: clamp(130px, 16vw, 220px);
  transform: translateX(-50%);
  animation: actorIdle 2.2s ease-in-out infinite;
}

.parkActor img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.28));
}

.parkNameplate {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  min-width: 140px;
  text-align: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.joystick {
  position: absolute;
  left: 34px;
  bottom: 34px;
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  border: 2px solid rgba(255, 255, 255, 0.64);
}

.joystick::after {
  content: "";
  position: absolute;
  inset: 31px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.jumpBtn {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 86px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(180deg, #ff96cb, #ff62a9);
  box-shadow: 0 10px 24px rgba(115, 33, 79, 0.28);
}

.hudDock {
  position: absolute;
  left: 178px;
  bottom: 26px;
  right: 136px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hudDock span {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(0, 41, 85, 0.18);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gachaScene {
  position: relative;
  min-height: calc(100vh - 146px);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr);
  gap: 14px;
  padding: 14px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(14, 45, 82, 0.44)),
    var(--gacha-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.summonStage {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.86), rgba(61, 190, 218, 0.36) 22%, rgba(38, 54, 128, 0.1) 55%, transparent 68%);
  overflow: hidden;
}

.summonStage::before,
.summonStage::after {
  content: "";
  position: absolute;
  inset: -24%;
  background: conic-gradient(from 0deg, transparent 0 10deg, rgba(255, 255, 255, 0.66) 14deg 18deg, transparent 24deg 44deg);
  animation: spin 7s linear infinite;
}

.summonStage::after {
  animation-duration: 11s;
  animation-direction: reverse;
  opacity: 0.45;
}

.gachaLogo {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  max-width: min(48%, 320px);
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.24));
}

.summonRing {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(62%, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 12px solid rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 0 44px rgba(255, 255, 255, 0.9),
    0 0 52px rgba(32, 199, 216, 0.7),
    0 0 96px rgba(255, 111, 186, 0.48);
  z-index: 1;
  animation: ringPulse 2.1s ease-in-out infinite;
}

.resultHero {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  width: min(52%, 360px);
  transform: translateX(-50%);
  animation: revealCard 5.2s ease-in-out both;
}

.resultHero img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.34));
}

.hologramLayer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--holo-img);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: holoFlash 5.2s ease-in-out both;
  pointer-events: none;
}

.resultPanel {
  position: relative;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  overflow: auto;
  display: grid;
  grid-template-rows: auto 1fr;
}

.resultPanelHead {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.resultGrid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.resultCard {
  position: relative;
  min-height: 184px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(35, 72, 102, 0.16);
  animation: resultIn 0.58s ease both;
}

.resultCard img {
  width: 100%;
  height: 154px;
  display: block;
  object-fit: cover;
}

.resultCard b {
  display: block;
  padding: 8px 9px 2px;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resultCard span {
  display: block;
  padding: 0 9px 8px;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storyScene {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
  padding: 14px;
}

.videoShell {
  background: #101927;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(16, 25, 39, 0.22);
}

.videoShell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.videoMeta,
.assetList,
.timelineRail,
.profileGrid,
.meshStats {
  display: grid;
  gap: 8px;
}

.videoThumbs {
  display: grid;
  gap: 8px;
}

.videoThumb,
.assetRow,
.charButton,
.motionButton {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 7px;
  text-align: left;
}

.motionButton {
  grid-template-columns: 1fr auto;
}

.videoThumb.active,
.assetRow.active,
.charButton.active,
.motionButton.active {
  border-color: rgba(44, 146, 230, 0.56);
  background: #eaf7ff;
}

.videoThumb img,
.charButton img,
.assetRow img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  background: #dfeaf2;
}

.videoThumb b,
.assetRow b,
.charButton b,
.motionButton b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.videoThumb span,
.assetRow span,
.charButton span,
.motionButton span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.characterScene {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
  padding: 14px;
}

.portraitStage {
  position: relative;
  min-height: 620px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(219, 246, 255, 0.68)),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.95), rgba(44, 146, 230, 0.24) 54%, rgba(255, 111, 186, 0.18));
}

.portraitStage img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(92%, 560px);
  max-height: 96%;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 26px 24px rgba(39, 76, 111, 0.24));
}

.portraitName {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.portraitName b {
  font-size: 24px;
}

.portraitName span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.galleryGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.galleryItem {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  text-align: left;
  padding: 0;
}

.galleryItem img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #edf7fb;
}

.galleryItem span {
  display: block;
  padding: 7px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modelScene {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(330px, 0.82fr);
  gap: 14px;
  padding: 14px;
}

.modelViewport {
  position: relative;
  min-height: 600px;
  border-radius: var(--radius);
  background-image:
    linear-gradient(180deg, #e4fbff, #fff8ec 65%, #e7f4e9),
    var(--park-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.modelViewport canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}

.meshHologram {
  position: absolute;
  inset: 100px 34px 44px;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  perspective: 780px;
}

.wireframeModel {
  position: relative;
  width: 330px;
  max-width: 58%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  animation: modelTurn 5.8s linear infinite;
  filter: drop-shadow(0 18px 24px rgba(27, 103, 157, 0.24));
}

.wireframeModel span {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(27, 103, 157, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.34), transparent 48%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(44, 146, 230, 0.24) 19px 20px);
}

.wireframeModel span:nth-child(1) {
  transform: rotateX(68deg);
}

.wireframeModel span:nth-child(2) {
  transform: rotateY(68deg);
  border-color: rgba(255, 111, 186, 0.68);
}

.wireframeModel span:nth-child(3) {
  transform: rotateZ(42deg) rotateX(54deg);
  border-color: rgba(32, 199, 216, 0.68);
}

.wireframeModel::before,
.wireframeModel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pink);
  transform: translate(-50%, -50%);
  box-shadow:
    0 -110px 0 -4px var(--blue),
    92px 48px 0 -5px var(--gold),
    -92px 48px 0 -5px var(--cyan);
}

.wireframeModel::after {
  width: 9px;
  height: 9px;
  background: white;
  box-shadow:
    0 -72px 0 -2px white,
    58px 30px 0 -2px white,
    -58px 30px 0 -2px white;
}

.modelBadge {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 41, 85, 0.16);
}

.connectionScene {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric b {
  display: block;
  font-size: 23px;
  line-height: 1.1;
}

.sideBody {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.charList {
  display: grid;
  gap: 7px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.charButton img {
  object-fit: contain;
}

.miniStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.miniStats span {
  border-radius: 6px;
  background: #f4fbff;
  padding: 8px;
  font-size: 12px;
  color: var(--muted);
}

.miniStats b {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.audioLine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 8px;
}

.audioLine b,
.audioLine span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audioLine span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.audioLine audio {
  width: 136px;
  height: 32px;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
}

a {
  color: #176ea8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@keyframes actorIdle {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

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

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.72; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

@keyframes revealCard {
  0% { opacity: 0; transform: translateX(-50%) translateY(80px) scale(0.45) rotateY(80deg); }
  36% { opacity: 0; transform: translateX(-50%) translateY(30px) scale(0.56) rotateY(70deg); }
  56% { opacity: 1; transform: translateX(-50%) translateY(-18px) scale(1.12) rotateY(0); }
  72% { transform: translateX(-50%) translateY(0) scale(0.98); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes holoFlash {
  0%, 28% { opacity: 0; filter: blur(12px) brightness(1.8); }
  48% { opacity: 0.9; filter: blur(0) brightness(1.35); }
  100% { opacity: 0.42; filter: blur(1px) brightness(1); }
}

@keyframes resultIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modelTurn {
  0% { transform: rotateX(58deg) rotateZ(0deg) scale(0.96); }
  50% { transform: rotateX(62deg) rotateZ(180deg) scale(1.04); }
  100% { transform: rotateX(58deg) rotateZ(360deg) scale(0.96); }
}

@media (max-width: 1180px) {
  .topbar,
  .layout,
  .gachaScene,
  .storyScene,
  .characterScene,
  .modelScene {
    grid-template-columns: 1fr;
  }

  .sidePanel {
    position: static;
    max-height: none;
  }

  .stagePanel {
    min-height: auto;
  }

  .parkStage,
  .summonStage,
  .modelViewport {
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 8px;
  }

  .topbar {
    gap: 8px;
  }

  .modeTabs {
    overflow: auto;
  }

  .surfaceHead,
  .sideHead,
  .resultPanelHead {
    align-items: stretch;
    flex-direction: column;
  }

  .parkStage,
  .summonStage,
  .portraitStage,
  .modelViewport {
    min-height: 520px;
  }

  .questBox {
    left: 20px;
    right: 20px;
    top: 182px;
    max-width: none;
    justify-items: start;
  }

  .hudDock {
    left: 18px;
    right: 18px;
    bottom: 132px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .joystick {
    width: 88px;
    left: 20px;
    bottom: 22px;
  }

  .jumpBtn {
    width: 74px;
    right: 20px;
    bottom: 24px;
  }

  .resultGrid,
  .galleryGrid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .audioLine {
    grid-template-columns: 1fr;
  }

  .audioLine audio {
    width: 100%;
  }
}
