:root {
  --bg: #f1f5f7;
  --card: #fff;
  --text: #050505;
  --muted: rgba(0, 0, 0, 0.48);
  --line: rgba(0, 0, 0, 0.08);
  --task: #ffedaa;
  --orange: #ec9500;
  --black: #000;
  --radius: 40px;
  --app-w: 780px;
  --app-scale: 1;
  --create-panel-h: 1686px;
  --release-crop-h: 1760px;
  --page-pad: 24px;
}

* {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

main,
section,
div,
article,
button {
  min-width: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.95), transparent 250px),
    radial-gradient(circle at 84% 16%, rgba(184, 205, 222, 0.75), transparent 280px),
    #d8e0e6;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:active {
  transform: scale(0.98);
}

.demo-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.device-frame {
  position: relative;
  width: 100%;
  max-width: 780px;
  height: min(100dvh, 1688px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  overflow: hidden;
}

@media (min-width: 781px) {
  .device-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 780px;
    max-width: 780px;
    height: 1688px;
    transform: translate(-50%, -50%) scale(var(--app-scale));
    transform-origin: center;
  }
}

.device-screen {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
}

.phone-shell {
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 26px var(--page-pad) 170px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.phone-shell::-webkit-scrollbar,
.image-scroll::-webkit-scrollbar,
.school-options::-webkit-scrollbar,
.province-tabs::-webkit-scrollbar,
.rank-list::-webkit-scrollbar,
.full-rank-page::-webkit-scrollbar {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  color: var(--muted);
  font-size: 22px;
}

.plain-icon,
.text-button {
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.64);
  font-weight: 700;
}

.plain-icon {
  font-size: 22px;
}

.guide-link {
  color: rgba(0, 0, 0, 0.72);
}

.text-button {
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}

.contribution-link {
  color: #000;
  font-size: 28px;
}

.hero-panel {
  padding: 42px 0 24px;
}

.hero-copy {
  text-align: center;
}

.hero-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 24px;
}

.hero-copy h1 {
  margin: 0;
  font-size: 62px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy span {
  display: block;
  margin-top: 18px;
  color: rgba(0, 0, 0, 0.52);
  font-size: 24px;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
  min-width: 0;
}

.hero-actions.single,
.bottom-bar.single {
  grid-template-columns: 1fr;
}

.activity-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 64px;
  margin-top: 10px;
  padding: 0 20px;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f5f7;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.025);
  white-space: nowrap;
}

.activity-volume {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background: url("assets/volume.png") center / contain no-repeat;
}

.activity-type,
.activity-copy {
  color: rgba(0, 0, 0, 0.5);
  font-size: 24px;
  line-height: 1;
}

.activity-type {
  flex: 0 0 auto;
}

.activity-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 28px;
  background: rgba(0, 0, 0, 0.14);
}

.activity-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.9), transparent 0 18%),
    linear-gradient(145deg, #f3cf8e, #ee8f9f 48%, #6ba8de);
}

.activity-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 240ms ease, opacity 240ms ease;
}

.activity-copy.is-switching {
  opacity: 0.58;
  transform: translateX(10px);
}

.primary-button,
.secondary-button,
.task-button {
  min-height: 76px;
  border-radius: 999px;
  border: 0;
  font-size: 28px;
  font-weight: 700;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

.primary-button {
  color: #fff;
  background: var(--black);
}

.secondary-button {
  color: var(--text);
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.12);
}

.task-button {
  min-width: 126px;
  min-height: 60px;
  padding: 0 28px;
  font-size: 24px;
  color: rgba(0, 0, 0, 0.78);
  background: var(--task);
}

.section-card {
  margin-top: 24px;
  padding: 32px var(--page-pad);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-title span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 22px;
}

.section-title h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.section-title .text-button {
  flex: 0 0 auto;
}

.text-button.pill-action {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: #000;
  font-size: 24px;
}

.team-empty {
  display: grid;
  gap: 22px;
}

.team-empty p,
.hint,
.rules-card p,
.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.55;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.team-stat {
  padding: 22px;
  border-radius: 28px;
  background: var(--bg);
}

.team-stat span {
  color: var(--muted);
  font-size: 20px;
}

.team-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.team-score-hero {
  padding: 28px;
  border-radius: 30px;
  background: #f5f7f9;
}

.team-score-hero span,
.team-rank-row span {
  color: rgba(0, 0, 0, 0.5);
  font-size: 21px;
}

.team-score-hero strong {
  display: block;
  margin-top: 8px;
  font-size: 46px;
  line-height: 1.05;
}

.team-rank-row {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.team-rank-row span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  font-weight: 700;
}

.task-section {
  overflow: hidden;
}

.task-progress {
  margin: -4px 0 18px;
}

.task-progress-copy {
  margin-bottom: 12px;
  color: rgba(0, 0, 0, 0.58);
  font-size: 24px;
  font-weight: 700;
}

.task-progress-track {
  width: 100%;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f3;
}

.task-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd76a, #ffb21f);
  transition: width 260ms ease;
}

.task-rank-gap {
  margin-top: 12px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 22px;
  line-height: 1.35;
}

.task-list {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
}

.task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 122px;
  padding: 28px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.task-card:first-child {
  border-top: 0;
}

.task-card h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  min-width: 0;
}

.task-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-bonus {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 26px;
  font-weight: 500;
  white-space: nowrap;
}

.task-card p {
  margin: 8px 0 0;
  color: rgba(0, 0, 0, 0.5);
  font-size: 22px;
}

.task-button.done {
  color: rgba(0, 0, 0, 0.35);
  background: #edf0f2;
}

.task-button.locked {
  color: rgba(0, 0, 0, 0.32);
  background: #edf0f2;
}

.work-list,
.school-options,
.reward-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.school-option,
.reward-list div {
  border: 0;
  border-radius: 30px;
  background: var(--bg);
}

.work-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}

.cover-art {
  position: relative;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.8), transparent 18px),
    linear-gradient(135deg, #1c2b55, #70c9cb 50%, #ffe191);
}

.cover-art.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  animation: shimmer 1s infinite;
}

.work-main h3 {
  margin: 0;
  font-size: 27px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-main p,
.rank-row p,
.school-option p,
.reward-list span {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 21px;
}

.work-main p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill,
.region-tag {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(0, 0, 0, 0.64);
  background: #fff;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
}

.region-tag {
  min-height: 26px;
  margin-left: 8px;
  padding: 0 8px;
  color: #6f4f00;
  background: rgba(255, 210, 31, 0.22);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.small-black {
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #000;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.tab {
  position: relative;
  min-height: 62px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.48);
  font-size: 26px;
  font-weight: 700;
}

.tab.active {
  color: #000;
  background: transparent;
}

.tab.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 5px;
  border-radius: 999px;
  background: #000;
}

.tab:disabled {
  opacity: .38;
}

.province-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -2px 0 20px;
  padding: 0 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.province-tab {
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.52);
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.province-tab.active {
  color: #000;
  background: #f1f3f5;
}

.rank-list {
  max-height: 522px;
  overflow-y: auto;
  border-top: 0;
  border-bottom: 0;
  scrollbar-width: none;
}

.rank-row,
.school-option {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 0;
  background: transparent;
  text-align: left;
}

.school-option {
  padding: 20px;
  border-bottom: 0;
  border-radius: 30px;
  background: #fff;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row.is-mine {
  background: transparent;
}

.my-rank-sticky {
  margin-top: 14px;
  padding-top: 2px;
  border-top: 0;
}

.my-rank-sticky .rank-row {
  padding: 18px 0 0;
  border-bottom: 0;
}

.rank-no {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #fff;
  background: #000;
  font-size: 24px;
  font-weight: 700;
}

.rank-top-1 .rank-no {
  color: #5a3300;
  background: linear-gradient(145deg, #ffe9a3, #f2b832);
}

.rank-top-2 .rank-no {
  color: #30343a;
  background: linear-gradient(145deg, #f5f7fb, #bcc4d0);
}

.rank-top-3 .rank-no {
  color: #5a2f12;
  background: linear-gradient(145deg, #ffd2a2, #c97838);
}

.rank-main,
.school-main {
  flex: 1;
  min-width: 0;
}

.rank-main h3,
.school-main h3 {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  font-size: 26px;
  white-space: nowrap;
}

.rank-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-score {
  flex: 0 0 auto;
  min-width: 0;
  text-align: right;
  font-size: 24px;
  font-weight: 700;
}

.rank-score span {
  display: block;
  margin-top: 6px;
  color: var(--orange);
  font-size: 18px;
}

.masonry-grid {
  column-count: 2;
  column-gap: 18px;
  max-width: 100%;
  overflow: hidden;
}

.song-tile {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: 30px;
  background: #f3f5f7;
  text-align: left;
  box-sizing: border-box;
}

.song-tile-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 30px 30px 20px 20px;
  aspect-ratio: 1 / 1.18;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.86), transparent 34px),
    linear-gradient(145deg, #111827, #c5411f 58%, #ffd78a);
}

.song-tile:nth-child(2n) .song-tile-cover {
  aspect-ratio: 1 / 0.86;
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.9), transparent 30px),
    linear-gradient(145deg, #26305e, #5ec6c8 54%, #ffe391);
}

.song-tile:nth-child(3n) .song-tile-cover {
  aspect-ratio: 1 / 1.34;
  background:
    radial-gradient(circle at 30% 72%, rgba(255,255,255,.8), transparent 36px),
    linear-gradient(145deg, #174330, #5ab67c 56%, #fff2b8);
}

.song-tile-body {
  display: block;
  padding: 18px 18px 22px;
}

.song-tab {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f1f5f7;
  color: #000;
  font-size: 22px;
}

.song-tile h3 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1.22;
}

.song-tile p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.35;
}

.reward-list div {
  padding: 24px;
}

.reward-list strong {
  display: block;
  font-size: 25px;
}

.bottom-bar {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  padding: 18px var(--page-pad) calc(34px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(241,245,247,0), var(--bg) 32%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.bottom-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sheet {
  position: absolute;
  z-index: 50;
  inset: 0;
}

.sheet-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.sheet-panel {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-height: 86%;
  border-radius: 40px 40px 0 0;
  background: var(--bg);
  overflow: hidden;
}

.school-panel {
  display: flex;
  flex-direction: column;
  height: 1180px;
  padding: 16px var(--page-pad) 42px;
}

.sheet-handle {
  width: 68px;
  height: 8px;
  margin: 16px auto 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.sheet-head span {
  color: var(--muted);
  font-size: 22px;
}

.sheet-head h2 {
  margin: 8px 0 0;
  font-size: 36px;
}

.close-button {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 34px;
}

.school-search input {
  width: 100%;
  min-height: 76px;
  border: 0;
  border-radius: 999px;
  padding: 0 30px;
  background: #fff;
  font-size: 25px;
  outline: none;
}

.school-options {
  flex: 1;
  align-content: start;
  grid-auto-rows: max-content;
  margin-top: 22px;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.image-sheet {
  height: 1438px;
  background: var(--bg);
}

.create-panel {
  right: 0;
  left: 0;
  width: 100%;
  height: var(--create-panel-h);
  max-height: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.create-panel .image-close {
  z-index: 8;
  color: #000;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.release-panel {
  display: flex;
  flex-direction: column;
  height: min(1500px, 88dvh);
  max-height: 88dvh;
}

.image-close {
  position: absolute;
  z-index: 2;
  right: 28px;
  top: 28px;
}

.image-scroll,
.release-scroll {
  position: relative;
  height: calc(100% - 48px);
  overflow: auto;
  padding: 0 0 34px;
  scrollbar-width: none;
}

.release-scroll {
  flex: 1;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.image-scroll img,
.release-image-crop img,
.image-fit img {
  display: block;
  width: 100%;
  height: auto;
}

.release-image-crop {
  width: 100%;
  height: var(--release-crop-h);
  overflow: hidden;
}

.release-image-crop img {
  max-width: none;
}

.release-action-dock {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 18px;
  padding: 20px var(--page-pad) calc(28px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(241, 245, 247, 0.88), var(--bg) 20%);
}

.release-action {
  min-height: 92px;
  border-radius: 999px;
  font-size: 31px;
  font-weight: 800;
}

.primary-release {
  border: 0;
  color: #fff;
  background: #000;
}

.secondary-release {
  color: #000;
  border: 2px solid #c6cbd0;
  background: transparent;
}

.image-fit {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.image-fit img {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: fill;
}

.hotspot {
  position: absolute;
  left: var(--page-pad);
  right: var(--page-pad);
  border: 0;
  color: transparent;
  background: rgba(0, 0, 0, 0.001);
}

.create-hotspot {
  top: auto;
  bottom: calc(var(--create-panel-h) * 0.04625);
  height: calc(var(--create-panel-h) * 0.07375);
}

.player-page {
  position: absolute;
  z-index: 70;
  inset: 0;
  display: block;
  background: #000;
}

.player-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.player-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.player-back {
  position: absolute;
  z-index: 72;
  top: 44px;
  left: 34px;
  width: 120px;
  height: 120px;
  border: 0;
  background: rgba(255,255,255,0.001);
}

.guide-dialog {
  position: absolute;
  z-index: 68;
  inset: 0;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  padding: var(--page-pad);
}

.guide-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  max-height: calc(100% - 48px);
  overflow-y: auto;
  border-radius: 36px;
  background: #fff;
  padding: 34px;
  scrollbar-width: none;
}

.guide-card::-webkit-scrollbar {
  display: none;
}

.guide-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.guide-card-head h2 {
  margin: 0;
  font-size: 36px;
}

.guide-list {
  display: grid;
  gap: 12px;
}

.guide-list div {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: 22px;
  background: #f5f7f9;
}

.guide-list strong {
  font-size: 24px;
}

.guide-list span,
.guide-card p {
  margin: 0;
  color: rgba(0, 0, 0, 0.56);
  font-size: 20px;
  line-height: 1.45;
}

.guide-card p {
  margin-top: 22px;
}

.full-rank-page,
.detail-page {
  position: absolute;
  z-index: 65;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 34px var(--page-pad) 120px;
  background: var(--bg);
  scrollbar-width: none;
  overscroll-behavior-x: none;
}

.detail-page::-webkit-scrollbar {
  display: none;
}

.contribution-summary {
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 24px;
  background: #fff;
  font-size: 28px;
  font-weight: 800;
}

.contribution-list {
  display: grid;
  gap: 18px;
}

.contribution-day {
  display: grid;
  gap: 14px;
}

.contribution-day h3 {
  margin: 8px 0 0;
  color: rgba(0, 0, 0, 0.48);
  font-size: 24px;
}

.contribution-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
}

.contribution-item strong {
  display: block;
  font-size: 22px;
}

.contribution-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

.contribution-points {
  color: var(--orange);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.full-rank-header {
  position: sticky;
  z-index: 2;
  top: -34px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: -34px calc(var(--page-pad) * -1) 22px;
  padding: 34px var(--page-pad) 22px;
  background: linear-gradient(180deg, var(--bg) 78%, rgba(241, 245, 247, 0));
}

.back-button {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 54px;
  line-height: 1;
}

.full-rank-header h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
}

.full-rank-tabs {
  margin-bottom: 18px;
}

.full-province-tabs {
  margin-top: -4px;
  margin-bottom: 20px;
}

.full-rank-list {
  display: grid;
  gap: 0;
  padding-bottom: 60px;
  border-top: 0;
}

.toast {
  position: absolute;
  z-index: 90;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: calc(100% - 48px);
  min-height: 0;
  padding: 26px 34px;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: none;
  font-size: 26px;
  font-weight: 300;
  line-height: 40px;
  transform: translate(-50%, calc(-50% + 8px)) scale(0.98);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.toast.is-leaving {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px)) scale(0.98);
}

.toast-mark {
  display: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 520px) {
  :root {
    --radius: 26px;
  }

  .topbar {
    height: 48px;
    font-size: 14px;
  }

  .plain-icon {
    font-size: 14px;
  }

  .hero-panel {
    padding-top: 28px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy p,
  .hero-copy span {
    font-size: 15px;
  }

  .hero-copy h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .activity-strip {
    height: 44px;
    margin-top: 8px;
    padding: 0 12px;
    gap: 8px;
  }

  .activity-volume {
    width: 20px;
    height: 20px;
  }

  .activity-type,
  .activity-copy {
    font-size: 15px;
  }

  .activity-divider {
    height: 20px;
  }

  .activity-avatar {
    width: 22px;
    height: 22px;
  }

  .primary-button,
  .secondary-button {
    min-height: 54px;
    font-size: 17px;
  }

  .section-card {
    margin-top: 16px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .section-title {
    gap: 12px;
    margin-bottom: 16px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .text-button,
  .contribution-link {
    font-size: 16px;
  }

  .text-button.pill-action {
    min-height: 36px;
    padding: 0 16px;
    font-size: 15px;
  }

  .team-empty p,
  .hint,
  .rules-card p,
  .empty-state,
  .task-progress-copy {
    font-size: 15px;
  }

  .team-score-hero {
    padding: 18px;
    border-radius: 20px;
  }

  .team-score-hero span,
  .team-rank-row span {
    font-size: 13px;
  }

  .team-score-hero strong {
    font-size: 30px;
  }

  .team-rank-row {
    gap: 8px;
    margin-top: 12px;
  }

  .team-rank-row span {
    min-height: 32px;
    padding: 0 12px;
  }

  .task-progress-track {
    height: 10px;
  }

  .task-rank-gap {
    margin-top: 8px;
    font-size: 13px;
  }

  .task-guide {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
  }

  .task-guide button {
    font-size: 14px;
  }

  .task-card {
    min-height: 86px;
    gap: 10px;
    padding: 18px 0;
  }

  .task-card h3 {
    font-size: 17px;
  }

  .task-title-text {
    display: block;
  }

  .task-bonus {
    font-size: 15px;
  }

  .task-card p,
  .work-main p,
  .rank-row p,
  .school-option p,
  .reward-list span {
    font-size: 13px;
  }

  .task-button {
    min-width: 72px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .work-item {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 0;
  }

  .cover-art {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .work-main h3,
  .rank-main h3,
  .school-main h3 {
    font-size: 17px;
  }

  .small-black,
  .status-pill {
    grid-column: auto;
    justify-self: end;
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .tab {
    min-height: 46px;
    font-size: 17px;
  }

  .province-tab {
    min-height: 40px;
    padding: 0 14px;
    font-size: 15px;
  }

  .rank-no {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 15px;
  }

  .rank-row,
  .school-option {
    gap: 10px;
  }

  .rank-score {
    font-size: 15px;
  }

  .rank-score span {
    font-size: 11px;
  }

  .region-tag {
    margin-left: 5px;
    min-height: 20px;
    padding: 0 6px;
    font-size: 10px;
  }

  .masonry-grid {
    column-gap: 10px;
  }

  .song-tile {
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
    border-radius: 20px;
  }

  .song-tile-cover {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 14px 14px;
  }

  .song-tab {
    min-height: 34px;
    padding: 0 12px;
    font-size: 14px;
  }

  .song-tile h3 {
    font-size: 15px;
  }

  .song-tile p {
    font-size: 12px;
  }

  .bottom-bar {
    gap: 10px;
    padding-top: 12px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .school-panel {
    height: min(76dvh, 590px);
  }

  .sheet-head h2 {
    font-size: 24px;
  }

  .sheet-head span {
    font-size: 14px;
  }

  .school-search input {
    min-height: 52px;
    font-size: 16px;
  }

  .close-button {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .create-panel .image-close {
    right: 16px;
    top: 16px;
  }

  .guide-card {
    max-height: calc(100% - 32px);
    border-radius: 24px;
    padding: 22px;
  }

  .guide-card-head {
    margin-bottom: 16px;
  }

  .guide-card-head h2 {
    font-size: 22px;
  }

  .guide-list {
    gap: 8px;
  }

  .guide-list div {
    gap: 3px;
    padding: 14px;
    border-radius: 16px;
  }

  .guide-list strong {
    font-size: 15px;
  }

  .guide-list span,
  .guide-card p {
    font-size: 13px;
  }

  .release-panel {
    height: 88dvh;
  }

  .release-action-dock {
    gap: 10px;
    padding-top: 12px;
  }

  .release-action {
    min-height: 54px;
    font-size: 17px;
  }

  .full-rank-header h2 {
    font-size: 26px;
  }

  .detail-page {
    padding-top: 24px;
    padding-bottom: 80px;
  }

  .detail-page .full-rank-header {
    top: -24px;
    margin-top: -24px;
    padding-top: 24px;
    padding-bottom: 14px;
  }

  .detail-page .back-button {
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

  .detail-page .full-rank-header h2 {
    font-size: 22px;
  }

  .contribution-summary {
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 20px;
  }

  .contribution-day {
    gap: 10px;
  }

  .contribution-day h3 {
    font-size: 14px;
  }

  .contribution-item {
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .contribution-item strong {
    font-size: 16px;
  }

  .contribution-item p {
    font-size: 12px;
  }

  .contribution-points {
    font-size: 16px;
  }

  .toast {
    max-width: calc(100% - 48px);
    padding: 18px 22px;
    border-radius: 14px;
    font-size: 17px;
    line-height: 24px;
  }
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
