@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;700;800;900&display=swap");

:root {
  --ink: #263042;
  --muted: #6d7583;
  --paper: #fff9f1;
  --panel: #ffffff;
  --pink: #ff8fbd;
  --blue: #72cee8;
  --yellow: #ffd45e;
  --green: #7fd2a8;
  --purple: #b397e2;
  --orange: #f0a56d;
  --danger: #df5668;
  --line: #eadfd3;
  --shadow: 0 15px 42px rgba(78, 64, 47, .13);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 7%, rgba(255, 143, 189, .18) 0 70px, transparent 71px),
    radial-gradient(circle at 94% 17%, rgba(114, 206, 232, .18) 0 84px, transparent 85px),
    radial-gradient(circle at 82% 94%, rgba(255, 212, 94, .17) 0 88px, transparent 89px),
    var(--paper);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-feature-settings: "palt";
}

button, input { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
.game-stage:focus-visible {
  outline: 4px solid rgba(38, 48, 66, .25);
  outline-offset: 3px;
}

.menu-page,
.result-page,
.ranking-page {
  width: min(100% - 24px, 760px);
  margin: 0 auto;
  padding: 34px 0 max(54px, env(safe-area-inset-bottom));
}

.menu-shell,
.result-shell,
.ranking-shell { width: 100%; }

.game-header { text-align: center; }
.game-kicker,
.panel-eyebrow {
  margin: 0 0 8px;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .14em;
  color: #df6f98;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: .04em;
  font-weight: 900;
}

.game-lead {
  margin: 14px auto 22px;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(.93rem, 3.1vw, 1.06rem);
  line-height: 1.85;
  font-weight: 700;
}
.mobile-break { display: none; }

/* ---------- Start ---------- */
.start-card {
  width: min(100%, 650px);
  margin: 0 auto;
  padding: 22px;
  background: rgba(255,255,255,.96);
  border: 2px solid #fff;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.form-block + .form-block { margin-top: 22px; }
.field-label,
.character-fieldset legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-weight: 900;
  font-size: 1rem;
}
.character-fieldset { border: 0; padding: 0; min-width: 0; }

.name-input {
  width: 100%;
  min-height: 52px;
  padding: 10px 15px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fffdf9;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}
.name-input:focus { border-color: #ef8bb0; }
.field-help,
.form-error {
  margin: 7px 3px 0;
  font-size: .78rem;
  line-height: 1.55;
  font-weight: 700;
}
.field-help { color: var(--muted); }
.form-error { color: #c84256; }

.character-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.character-option {
  min-width: 0;
  min-height: 124px;
  padding: 7px 5px 8px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #fffaf6;
  color: var(--ink);
  cursor: pointer;
}
.character-option__image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 86px;
  overflow: hidden;
}
.character-option__image img {
  display: block;
  width: 74px;
  height: 86px;
  object-fit: contain;
}
.character-option__label {
  display: block;
  margin-top: 3px;
  font-size: .72rem;
  font-weight: 900;
}
.character-option[aria-pressed="true"] {
  border-color: #eb79a4;
  background: #fff0f6;
  box-shadow: inset 0 0 0 2px rgba(235,121,164,.12);
}

.game-rule-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: start;
  margin: 22px 0 18px;
  padding: 14px;
  border-radius: 20px;
  background: #fff5d9;
  border: 2px solid #f3deb0;
}
.rule-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: #fff;
  font-size: 1.3rem;
}
.game-rule-card strong { display: block; margin: 1px 0 4px; }
.game-rule-card p { margin: 0; color: #6f675a; font-size: .82rem; line-height: 1.65; font-weight: 700; }

.primary-button,
.primary-link,
.secondary-link,
.pause-button,
.move-button,
.danger-button {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}
.primary-button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 12px 24px;
  color: #fff;
  background: #e979a3;
  box-shadow: 0 6px 0 #c86187;
  text-decoration: none;
}
.primary-button:active,
.primary-link:active { transform: translateY(3px); box-shadow: 0 3px 0 #c86187; }
.primary-button--wide { width: 100%; }
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  text-decoration: none;
}
.text-link {
  display: inline-block;
  padding: 10px 4px;
  color: #6d6872;
  font-size: .84rem;
  font-weight: 800;
  text-underline-offset: 4px;
}
.menu-actions { display: flex; justify-content: center; margin: 18px 0; }

.howto-details {
  width: min(100%, 650px);
  margin: 18px auto 0;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
}
.howto-details summary {
  padding: 15px 17px;
  cursor: pointer;
  font-weight: 900;
}
.howto-body { padding: 0 17px 17px; color: var(--muted); font-size: .84rem; line-height: 1.7; font-weight: 700; }
.drop-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}
.drop-guide li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mini-drop {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid rgba(38,48,66,.08);
}
.mini-drop--pink { background: var(--pink); }
.mini-drop--blue { background: var(--blue); }
.mini-drop--yellow { background: var(--yellow); }
.mini-drop--green { background: var(--green); }
.mini-drop--orange { background: var(--orange); }
.mini-drop--purple { background: var(--purple); }
.mini-drop--white { background: #fff; border-color: #cdd3da; }
.mini-drop--danger {
  background: #121419;
  color: #fff;
  border: 0;
  border-radius: 0;
  clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
  font-weight: 900;
  filter: drop-shadow(0 2px 1px rgba(24, 25, 30, .22));
}

/* ---------- Play ---------- */
.play-body { overscroll-behavior: none; }
.play-page {
  width: min(100% - 14px, 650px);
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom));
}
.play-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.player-chip { display: flex; align-items: center; gap: 8px; min-width: 0; }
.player-chip__avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(68,57,45,.12);
}
.player-chip__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 19%;
}
.player-chip__label { display: block; font-size: .59rem; font-weight: 900; letter-spacing: .12em; color: var(--muted); }
.player-chip strong { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.pause-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: .74rem;
}

.status-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 7px;
}
.status-item {
  min-width: 0;
  padding: 7px 7px;
  text-align: center;
  background: rgba(255,255,255,.94);
  border: 2px solid var(--line);
  border-radius: 17px;
}
.status-item strong {
  display: block;
  margin-top: 1px;
  font-size: 1.14rem;
  font-variant-numeric: tabular-nums;
}
.status-item--miss strong { color: var(--danger); }
.status-label { display: block; color: var(--muted); font-size: .59rem; font-weight: 900; letter-spacing: .11em; }

.game-stage-wrap {
  width: 100%;
  padding: 5px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ff9fc5, #86d8ed, #ffe07e);
  box-shadow: var(--shadow);
}
.game-stage {
  position: relative;
  width: 100%;
  height: clamp(430px, 68svh, 650px);
  min-height: 430px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(#def5ff 0%, #fbfdff 69%, #fff1c8 70%, #f1d694 100%);
  touch-action: none;
  user-select: none;
  isolation: isolate;
}
.sky-circle { position: absolute; border-radius: 50%; opacity: .5; pointer-events: none; }
.sky-circle--one { width: 115px; height: 115px; left: -35px; top: 52px; background: #ffd1e1; }
.sky-circle--two { width: 74px; height: 74px; right: 36px; top: 95px; background: #fff0a7; }
.sky-circle--three { width: 52px; height: 52px; left: 54%; top: 26px; background: #c8efda; }
.ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.45) 0 12px, transparent 13px),
    radial-gradient(circle at 72% 40%, rgba(255,255,255,.35) 0 17px, transparent 18px),
    #f2d99c;
}
.catcher {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 5;
  width: clamp(76px, 17vw, 96px);
  height: clamp(116px, 25vw, 144px);
  transform: translateX(-50%);
  pointer-events: none;
  will-change: left;
}
.catcher img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 7px 4px rgba(57,51,42,.15)); }

.drop {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: var(--size, 34px);
  height: var(--size, 34px);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset -5px -6px 0 rgba(80,50,50,.08), 0 4px 8px rgba(68,83,100,.12);
  will-change: transform;
}
.drop:not(.drop--danger)::before,
.drop:not(.drop--danger)::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
}
.drop:not(.drop--danger)::before { width: 26%; height: 26%; left: 20%; top: 17%; }
.drop:not(.drop--danger)::after { width: 10%; height: 10%; left: 50%; top: 15%; }
.drop--pink { background: var(--pink); }
.drop--blue { background: var(--blue); }
.drop--yellow { background: var(--yellow); }
.drop--green { background: var(--green); }
.drop--orange { background: var(--orange); }
.drop--purple { background: var(--purple); }
.drop--white { background: #fff; border: 2px solid #ccd2da; }
.drop--danger {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(255,255,255,.08) 45% 54%, transparent 55%),
    #111318;
  color: #fff;
  clip-path: polygon(20% 0, 80% 0, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0 80%, 0 20%);
  font-size: calc(var(--size, 38px) * .64);
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 1px 0 #000;
  filter: drop-shadow(0 4px 3px rgba(25, 25, 30, .28));
}

.stage-message {
  position: absolute;
  left: 50%;
  top: 58px;
  z-index: 11;
  transform: translateX(-50%);
  margin: 0;
  padding: 7px 13px;
  max-width: calc(100% - 36px);
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 5px 13px rgba(57,63,68,.12);
  font-size: .8rem;
  font-weight: 900;
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}
.stage-message--show { opacity: 1; }
.stage-message--catch { color: #24805e; }
.stage-message--miss { color: #c33d54; }

.overlay-panel {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(255,250,242,.80);
  backdrop-filter: blur(5px);
}
.overlay-panel--visible { display: grid; }
.panel-card {
  width: min(100%, 420px);
  padding: 23px 18px 20px;
  text-align: center;
  background: rgba(255,255,255,.98);
  border: 3px solid #fff;
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(52,56,64,.18);
}
.panel-card h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 7vw, 2.4rem); }
.panel-card p:not(.panel-eyebrow) { margin: 0 0 16px; color: var(--muted); line-height: 1.7; font-weight: 700; }
.panel-card .text-link { display: block; margin-top: 10px; }

.play-tip { margin: 9px 4px 0; text-align: center; color: var(--muted); font-size: .74rem; line-height: 1.5; font-weight: 800; }
.danger-inline {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: #111318;
  color: #fff;
  border: 0;
  clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
  font-weight: 900;
}


/* ---------- Sound footer ---------- */
.sound-footer {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(100%, 650px);
  margin: 28px auto 0;
  padding: 17px 12px 4px;
  border-top: 2px dashed rgba(214, 196, 178, .72);
}
.sound-footer p {
  margin: 0;
  color: #8a8190;
  font-size: .69rem;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
}
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 5px 15px 5px 6px;
  border: 2px solid #eadfd3;
  border-radius: 999px;
  background: #fffaf6;
  color: #756d78;
  box-shadow: 0 5px 0 #eadfd3;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.sound-toggle:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #eadfd3;
}
.sound-toggle__bubble {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: #e9e4e8;
  color: #8b838c;
  font-size: 1.05rem;
  font-weight: 900;
  transition: background .15s ease, color .15s ease;
}
.sound-toggle__words {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.sound-toggle__title {
  font-size: .8rem;
  font-weight: 900;
}
.sound-toggle strong {
  min-width: 30px;
  color: #9b929c;
  font-size: .77rem;
  letter-spacing: .06em;
}
.sound-toggle--on {
  border-color: #f3bdd2;
  background: #fff0f6;
  color: #9d5271;
  box-shadow: 0 5px 0 #f1c4d5;
}
.sound-toggle--on:active { box-shadow: 0 2px 0 #f1c4d5; }
.sound-toggle--on .sound-toggle__bubble {
  background: #ff9fc4;
  color: #fff;
}
.sound-toggle--on strong { color: #d75e8a; }


/* ---------- Result ---------- */
.result-shell {
  width: min(100%, 540px);
  margin: 0 auto;
  padding: 28px 20px 24px;
  text-align: center;
  background: rgba(255,255,255,.96);
  border: 2px solid #fff;
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.result-character {
  width: 180px;
  height: 220px;
  margin: 14px auto 6px;
}
.result-character img { display: block; width: 100%; height: 100%; object-fit: contain; }
.result-name { margin-top: 4px; font-size: 1.1rem; font-weight: 900; }
.result-score { display: flex; align-items: baseline; justify-content: center; gap: 7px; margin: 7px 0; }
.result-score strong { font-size: clamp(3rem, 14vw, 5rem); line-height: 1; color: #e46f9b; }
.result-score span { font-size: .83rem; font-weight: 900; letter-spacing: .11em; color: var(--muted); }
.rank-in {
  width: fit-content;
  margin: 12px auto 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff0a4;
  font-weight: 900;
}
.result-message { margin: 8px 0 19px; color: var(--muted); font-weight: 800; }
.result-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.result-actions .primary-button,
.result-actions .secondary-link { width: 100%; }

/* ---------- Ranking ---------- */
.ranking-shell { width: min(100%, 650px); margin: 0 auto; }
.ranking-header { margin-bottom: 20px; }
.ranking-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.ranking-item {
  display: grid;
  grid-template-columns: 42px 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 13px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  border: 2px solid var(--line);
  box-shadow: 0 7px 20px rgba(72,60,46,.07);
}
.ranking-item--1 { border-color: #ebcc68; background: #fffaf0; }
.ranking-item--2 { border-color: #cbd3dd; }
.ranking-item--3 { border-color: #ddb28d; }
.ranking-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f3eee7;
  font-size: 1.15rem;
  font-weight: 900;
}
.ranking-item--1 .ranking-number { background: #ffe07a; }
.ranking-item--2 .ranking-number { background: #e7ebf0; }
.ranking-item--3 .ranking-number { background: #efc5a4; }
.rank-avatar {
  position: relative;
  display: block;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(60,52,43,.12);
}
.rank-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.ranking-info { display: block; min-width: 0; }
.ranking-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .98rem; }
.ranking-info small { display: block; margin-top: 3px; color: var(--muted); font-size: .67rem; font-weight: 700; }
.ranking-score { text-align: right; font-variant-numeric: tabular-nums; }
.ranking-score strong { display: block; font-size: 1.55rem; line-height: 1; color: #e06f99; }
.ranking-score small { display: block; margin-top: 3px; color: var(--muted); font-size: .55rem; font-weight: 900; letter-spacing: .08em; }
.ranking-empty {
  padding: 34px 20px;
  text-align: center;
  border: 2px dashed #ddcfc0;
  border-radius: 25px;
  background: rgba(255,255,255,.72);
}
.ranking-empty p { margin: 0 0 5px; color: var(--muted); }
.ranking-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.danger-button {
  padding: 10px 17px;
  border: 2px solid #edc4c9;
  background: #fff5f6;
  color: #aa4352;
}
.clear-message { min-height: 1.4em; margin: 9px 0 0; text-align: center; color: var(--muted); font-size: .76rem; font-weight: 700; }

@media (hover: hover) and (pointer: fine) {
  .character-option:hover { transform: translateY(-2px); }
  .secondary-link:hover,
  .pause-button:hover,
  .move-button:hover { border-color: #d9c8b7; background: #fffaf6; }
  .sound-toggle:hover { transform: translateY(-1px); }
}

@media (max-width: 520px) {
  .menu-page,
  .result-page,
  .ranking-page { width: min(100% - 18px, 760px); padding-top: 23px; }
  .mobile-break { display: block; }
  .start-card { padding: 17px 14px 18px; border-radius: 24px; }
  .character-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .character-option { min-height: 112px; }
  .character-option__image { height: 78px; }
  .character-option__image img { height: 78px; }
  .drop-guide { grid-template-columns: 1fr; }

  .play-page { width: min(100% - 10px, 650px); padding-top: max(6px, env(safe-area-inset-top)); }
  .player-chip__avatar { width: 40px; height: 40px; }
  .player-chip strong { max-width: 135px; }
  .pause-button { padding-inline: 11px; }
  .status-item { padding: 6px 4px; border-radius: 14px; }
  .status-item strong { font-size: 1.02rem; }
  .game-stage-wrap { padding: 4px; border-radius: 24px; }
  .game-stage { height: clamp(430px, 66svh, 610px); border-radius: 20px; }

  .result-shell { padding: 23px 15px 20px; border-radius: 26px; }
  .result-character { width: 150px; height: 190px; }

  .ranking-item { grid-template-columns: 34px 54px minmax(0, 1fr) auto; gap: 7px; padding: 9px 8px; }
  .ranking-number { width: 32px; height: 32px; font-size: .97rem; }
  .rank-avatar { width: 52px; height: 52px; }
  .ranking-info strong { font-size: .9rem; }
  .ranking-info small { font-size: .61rem; }
  .ranking-score strong { font-size: 1.3rem; }
}

@media (max-width: 360px) {
  .player-chip strong { max-width: 108px; }
  .pause-button { font-size: .68rem; }
  .ranking-item { grid-template-columns: 30px 48px minmax(0, 1fr) auto; }
  .rank-avatar { width: 46px; height: 46px; }
  .ranking-number { width: 29px; height: 29px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Result image download ---------- */
.result-share-card {
  margin: 18px 0 20px;
  padding: 14px 13px 15px;
  border: 2px dashed #efc6d5;
  border-radius: 22px;
  background: #fff8fb;
}
.result-share-card > p:first-child {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
  font-weight: 700;
}
.download-result-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 20px;
  border: 2px solid #f0bfd1;
  border-radius: 999px;
  background: #fff;
  color: #a64e70;
  box-shadow: 0 5px 0 #f0d0dc;
  font-weight: 900;
  cursor: pointer;
}
.download-result-button span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ff9fc4;
  color: #fff;
  font-size: 1rem;
}
.download-result-button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #f0d0dc;
}
.download-result-button:disabled {
  opacity: .58;
  cursor: wait;
}
.download-status {
  min-height: 1.4em;
  margin: 9px 0 0 !important;
  color: #8a8190 !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
}
@media (hover: hover) and (pointer: fine) {
  .download-result-button:hover { background: #fff2f7; }
}

.ppp-home-nav { text-align: center; margin: 20px auto; padding: 8px; }
