:root {
  --stage3-accent: #d65c96;
  --stage3-accent-strong: #a73971;
  --stage3-accent-soft: #f6d7e9;
  --stage3-gold: #d89b32;
  --stage3-ink: #25262b;
  --stage3-muted: #7d7e87;
  --stage3-line: #eee8ed;
}

.stage3-route,
.stage3-sheet {
  position: fixed;
  inset: 0;
  z-index: 805000;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.stage3-route *,
.stage3-sheet * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.stage3-route {
  overflow: auto;
  background: #f8f7f9;
  color: var(--stage3-ink);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.stage3-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(3.35rem + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) .75rem 0;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  border-bottom: 1px solid rgba(54, 43, 51, .07);
  background: #fff;
}

.stage3-header h1 {
  margin: 0;
  overflow: hidden;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage3-header-mark {
  width: 2.3rem;
  height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  justify-self: end;
}

.stage3-header-mark i {
  width: .24rem;
  height: .24rem;
  display: block;
  border-radius: 50%;
  background: #4e4a50;
}

.stage3-icon-button {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #30353c;
  font-size: 1.75rem;
  line-height: 1;
}

.stage3-main {
  width: min(100%, 32rem);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 0 calc(2rem + env(safe-area-inset-bottom));
}

.stage3-route--ranking .stage3-main {
  padding-bottom: calc(6.75rem + env(safe-area-inset-bottom));
}

.stage3-ranking-hero {
  position: relative;
  min-height: 17.75rem;
  overflow: hidden;
  padding: 1.05rem .875rem 0;
  background: linear-gradient(155deg, #f2cdf0 0%, #fad7e5 42%, #fff0e8 100%);
}

.stage3-ranking-hero::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: 2.75rem;
  width: 9rem;
  height: 7rem;
  opacity: .24;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .9) 0 7%, transparent 8% 100%);
  background-size: 1.35rem 1.35rem;
  transform: rotate(-8deg);
  pointer-events: none;
}

.stage3-spark {
  position: absolute;
  z-index: 1;
  width: 1.6rem;
  height: 1.6rem;
  opacity: .72;
  transform: rotate(45deg);
}

.stage3-spark::before,
.stage3-spark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50% 0;
  background: rgba(255, 255, 255, .88);
}

.stage3-spark::after { transform: rotate(90deg); }
.stage3-spark--one { top: 1.2rem; left: 8%; }
.stage3-spark--two { right: 8%; top: 7rem; width: .9rem; height: .9rem; opacity: .58; }

.stage3-crown {
  position: absolute;
  z-index: 1;
  top: .8rem;
  right: .3rem;
  width: 5rem;
  height: 3.75rem;
  transform: rotate(11deg);
  filter: drop-shadow(0 .35rem .4rem rgba(146, 84, 35, .18));
}

.stage3-crown span {
  position: absolute;
  right: .4rem;
  bottom: .35rem;
  left: .4rem;
  height: 1.35rem;
  border: .14rem solid #d59435;
  border-radius: .35rem .35rem .7rem .7rem;
  background: linear-gradient(180deg, #ffe18b, #e9aa43);
}

.stage3-crown span::after {
  content: "";
  position: absolute;
  top: .3rem;
  left: 50%;
  width: .48rem;
  height: .48rem;
  border: .1rem solid #f0bc50;
  background: #d95f79;
  transform: translateX(-50%) rotate(45deg);
}

.stage3-crown i {
  position: absolute;
  z-index: -1;
  bottom: 1.05rem;
  width: 2.1rem;
  height: 2.3rem;
  border: .14rem solid #d59435;
  border-radius: 50% 50% .2rem .2rem;
  background: linear-gradient(145deg, #ffeda7, #edb14d);
  clip-path: polygon(0 0, 50% 42%, 100% 0, 87% 100%, 13% 100%);
}

.stage3-crown i::before {
  content: "";
  position: absolute;
  top: -.18rem;
  left: 50%;
  width: .48rem;
  height: .48rem;
  border: .12rem solid #d59435;
  border-radius: 50%;
  background: #ffe488;
  transform: translate(-50%, -45%);
}

.stage3-crown i:nth-child(1) { left: .3rem; transform: rotate(-24deg); }
.stage3-crown i:nth-child(2) { left: 1.48rem; bottom: 1.2rem; }
.stage3-crown i:nth-child(3) { right: .3rem; transform: rotate(24deg); }

.stage3-heart-wall {
  position: relative;
  z-index: 2;
  min-height: 12.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem .75rem .75rem;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .48);
  box-shadow: 0 .5rem 1.5rem rgba(163, 84, 127, .1), inset 0 1px rgba(255, 255, 255, .72);
}

.stage3-heart-wall::before,
.stage3-heart-wall::after {
  content: "";
  position: absolute;
  top: 3.05rem;
  width: 7.5rem;
  height: 5rem;
  opacity: .56;
  background: repeating-linear-gradient(155deg, rgba(255, 255, 255, .92) 0 .6rem, rgba(244, 211, 240, .9) .65rem 1rem, transparent 1.05rem 1.25rem);
  clip-path: polygon(100% 50%, 79% 33%, 72% 2%, 52% 27%, 28% 7%, 29% 42%, 0 50%, 29% 61%, 28% 96%, 52% 73%, 72% 98%, 79% 67%);
}

.stage3-heart-wall::before { left: -.85rem; }
.stage3-heart-wall::after { right: -.85rem; transform: scaleX(-1); }

.stage3-heart-label {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 8.5rem;
  padding: .42rem .9rem .5rem;
  border-radius: 0 0 1rem 1rem;
  color: #4a3f48;
  background: rgba(255, 246, 242, .82);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  transform: translateX(-50%);
}

.stage3-heart-label span { color: #d34d82; }

.stage3-heart-visual {
  position: relative;
  z-index: 1;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage3-heart-avatar {
  position: relative;
  width: 3.55rem;
  height: 3.55rem;
  display: grid;
  place-items: center;
  border: .18rem solid #fff;
  border-radius: 50%;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 .25rem .75rem rgba(150, 76, 113, .17);
  font-size: .78rem;
  font-weight: 750;
}

.stage3-heart-avatar--sender { background: #758edc; }
.stage3-heart-avatar--receiver { margin-left: -.22rem; background: #e46f9c; }

.stage3-heart-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.stage3-heart-avatar[data-avatar-frame="gold"] {
  border-color: #f0b323;
  box-shadow: 0 0 0 .1875rem #fff2b8, 0 0 0 .3125rem #d89a12;
}

.stage3-heart-avatar[data-avatar-frame="rose"] {
  border-color: #f25f80;
  box-shadow: 0 0 0 .1875rem #ffe0e7, 0 0 0 .3125rem #e3436b;
}

.stage3-heart-avatar[data-avatar-frame="blue"] {
  border-color: #3595e6;
  box-shadow: 0 0 0 .1875rem #dcedff, 0 0 0 .3125rem #1b72ba;
}

.stage3-heart-avatar[data-avatar-frame="cosmic"] {
  border-color: #7659bf;
  box-shadow: 0 0 0 .1875rem #f3d8ff, 0 0 0 .3125rem #4f83d7;
}

.stage3-heart-pulse {
  z-index: 2;
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  margin: 0 -.35rem;
  border: .12rem solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #ef5f91;
  box-shadow: 0 .15rem .5rem rgba(212, 55, 111, .28);
  font-size: .72rem;
  font-style: normal;
  animation: stage3-heart-beat 2s ease-in-out infinite;
}

@keyframes stage3-heart-beat {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.1); }
}

.stage3-heart-wall > strong {
  z-index: 1;
  width: min(100%, 19rem);
  overflow: hidden;
  color: #4e424a;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage3-heart-wall > strong.is-switching { animation: stage3-ticker-fade .42s ease both; }
.stage3-heart-wall > small { z-index: 1; margin-top: .24rem; color: #9b7d90; font-size: .6rem; }

.stage3-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.stage3-tabs::-webkit-scrollbar { display: none; }

.stage3-scope-tabs {
  position: absolute;
  z-index: 3;
  right: .875rem;
  bottom: 0;
  left: .875rem;
  height: 4.55rem;
  align-items: stretch;
  padding: .34rem;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: .5rem .5rem 0 0;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 -.25rem .9rem rgba(118, 72, 101, .08);
  backdrop-filter: blur(.75rem);
  -webkit-backdrop-filter: blur(.75rem);
}

.stage3-scope-tabs button {
  position: relative;
  min-width: 0;
  min-height: 3.8rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 .5rem;
  border: 0;
  border-radius: .38rem;
  color: #81757d;
  background: transparent;
}

.stage3-scope-tabs button span { font-size: 1rem; font-weight: 700; }
.stage3-scope-tabs button small { margin-top: .18rem; font-size: .58rem; }
.stage3-scope-tabs button.is-active { color: #fff; background: #242328; box-shadow: 0 .25rem .65rem rgba(44, 33, 42, .17); }

.stage3-ranking-content {
  padding: .85rem .875rem 0;
  background: #fff;
}

.stage3-barrage {
  height: 2.25rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: .24rem .35rem;
  border: 1px solid #f0e5eb;
  border-radius: .38rem;
  background: #fff7fa;
}

.stage3-barrage-badge {
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 .52rem;
  border-radius: .28rem;
  color: #fff;
  background: #d85b91;
  font-size: .62rem;
  font-weight: 700;
}

.stage3-barrage-track {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  padding: 0 .55rem;
  color: #765f6d;
  font-size: .66rem;
  white-space: nowrap;
}

.stage3-barrage-track span { display: block; overflow: hidden; text-overflow: ellipsis; }
.stage3-barrage-track span.is-switching { animation: stage3-ticker-fade .42s ease both; }

@keyframes stage3-ticker-fade {
  from { opacity: 0; transform: translateY(.35rem); }
  to { opacity: 1; transform: translateY(0); }
}

.stage3-period-tabs {
  width: 100%;
  margin-top: .85rem;
  padding: .24rem;
  border-radius: .42rem;
  background: #f2f2f5;
}

.stage3-period-tabs button {
  min-width: 4.35rem;
  min-height: 2.35rem;
  flex: 0 0 auto;
  padding: 0 .7rem;
  border: 0;
  border-radius: .32rem;
  color: #77777f;
  background: transparent;
  font-size: .78rem;
  font-weight: 600;
}

.stage3-period-tabs button.is-active {
  color: #fff;
  background: #d991d2;
  box-shadow: 0 .2rem .55rem rgba(183, 104, 174, .22);
}

.stage3-date-row {
  min-height: 4.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem .2rem .55rem;
  border-bottom: 1px solid #f0ecf0;
}

.stage3-date-row button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: 0;
  border: 0;
  color: #3f3d43;
  background: transparent;
  font-size: .91rem;
  font-weight: 650;
}

.stage3-calendar-icon {
  position: relative;
  width: 1.1rem;
  height: 1.05rem;
  flex: 0 0 auto;
  border: .1rem solid #9b8493;
  border-radius: .16rem;
}

.stage3-calendar-icon::before {
  content: "";
  position: absolute;
  top: .21rem;
  right: 0;
  left: 0;
  border-top: .09rem solid #9b8493;
}

.stage3-calendar-icon::after {
  content: "";
  position: absolute;
  top: -.18rem;
  left: .2rem;
  width: .42rem;
  height: .3rem;
  border-right: .1rem solid #9b8493;
  border-left: .1rem solid #9b8493;
}

.stage3-date-row strong {
  display: flex;
  align-items: center;
  gap: .32rem;
  color: #4b454b;
  font-size: .88rem;
}

.stage3-date-row strong i {
  color: #e14d5b;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 500;
}

.stage3-list-head {
  height: 2.65rem;
  display: grid;
  grid-template-columns: 3.05rem minmax(0, 1fr) 5.8rem;
  align-items: center;
  padding: 0 .75rem 0 .25rem;
  color: #8a8590;
  font-size: .69rem;
}

.stage3-list-head span:first-child { text-align: center; }
.stage3-list-head span:last-child { text-align: right; }

.stage3-list {
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #f1edf0;
}

.stage3-list-item {
  position: relative;
  min-height: 4.35rem;
  display: grid;
  grid-template-columns: 2.5rem 2.75rem minmax(0, 1fr) minmax(4.4rem, auto);
  align-items: center;
  gap: .5rem;
  padding: .62rem .55rem .62rem .25rem;
  border-bottom: 1px solid #f1edf0;
  background: #fff;
  animation: stage3-list-enter .45s ease both;
}

.stage3-list-item:nth-child(2) { animation-delay: .04s; }
.stage3-list-item:nth-child(3) { animation-delay: .08s; }
.stage3-list-item:nth-child(n+4) { animation-delay: .12s; }

@keyframes stage3-list-enter {
  from { opacity: 0; transform: translateY(.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

.stage3-list-item.is-top-1 { background: linear-gradient(90deg, rgba(255, 247, 221, .76), #fff 68%); }
.stage3-list-item.is-top-2 { background: linear-gradient(90deg, rgba(241, 241, 247, .76), #fff 68%); }
.stage3-list-item.is-top-3 { background: linear-gradient(90deg, rgba(255, 235, 228, .68), #fff 68%); }

.stage3-rank-medal {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
}

.stage3-rank-medal img { width: 2.15rem; height: 2.15rem; display: block; object-fit: contain; }

.stage3-rank-number {
  width: 2.35rem;
  color: #918c95;
  font-size: .88rem;
  font-weight: 750;
  text-align: center;
}

.stage3-avatar-fallback {
  width: 2.75rem;
  height: 2.75rem;
  display: block;
  overflow: hidden;
  border: .1rem solid #fff;
  border-radius: 50%;
  background: #f0eaf0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5919f' stroke-width='1.7'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 21a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E") center/1.55rem no-repeat;
  box-shadow: 0 .15rem .45rem rgba(89, 64, 80, .1);
}

.stage3-avatar-fallback img { width: 100%; height: 100%; display: block; object-fit: cover; }

.stage3-rank-user,
.stage3-rank-score { min-width: 0; }

.stage3-rank-user { display: flex; flex-direction: column; justify-content: center; }

.stage3-rank-name {
  overflow: hidden;
  color: #353239;
  font-size: .8rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage3-rank-user small {
  margin-top: .2rem;
  overflow: hidden;
  color: #a29ba4;
  font-size: .56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage3-rank-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stage3-rank-score small { color: #a39ba2; font-size: .56rem; }
.stage3-rank-score strong { max-width: 7.25rem; margin-top: .15rem; overflow: hidden; color: #c94e83; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }

.stage3-loading,
.stage3-empty {
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem .75rem;
  color: var(--stage3-muted);
  font-size: .75rem;
  text-align: center;
}

.stage3-loading-dot {
  width: 1.25rem;
  height: 1.25rem;
  margin-bottom: .55rem;
  border: .12rem solid #eadce6;
  border-top-color: #cf6597;
  border-radius: 50%;
  animation: stage3-loading-spin .75s linear infinite;
}

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

.stage3-empty strong { color: #625b62; font-size: .82rem; }
.stage3-empty small { margin-top: .3rem; color: #aaa2a9; font-size: .62rem; }

.stage3-empty-cup {
  position: relative;
  width: 2.2rem;
  height: 1.7rem;
  margin-bottom: .65rem;
  border: .14rem solid #ccb9c6;
  border-radius: .2rem .2rem .75rem .75rem;
}

.stage3-empty-cup::before,
.stage3-empty-cup::after {
  content: "";
  position: absolute;
  top: .18rem;
  width: .8rem;
  height: .72rem;
  border: .13rem solid #ccb9c6;
}

.stage3-empty-cup::before { right: 100%; border-right: 0; border-radius: .5rem 0 0 .5rem; }
.stage3-empty-cup::after { left: 100%; border-left: 0; border-radius: 0 .5rem .5rem 0; }

.stage3-refresh-note {
  margin: 0;
  padding: 1rem 0 .25rem;
  color: #aaa4aa;
  font-size: .6rem;
  text-align: center;
}

.stage3-menu-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  object-fit: contain;
}

.stage3-ranking-tab {
  min-width: 0;
  height: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.stage3-ranking-tab .icon-wrapper {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.stage3-ranking-tab .tabbar-text {
  margin-top: .125rem;
  color: #999;
  font-size: .625rem;
  line-height: 1;
  white-space: nowrap;
}

.stage3-ranking-tabbar {
  position: fixed;
  right: 0;
  bottom: .9375rem;
  left: 0;
  z-index: 30;
  padding: 0 .9375rem;
}

.stage3-ranking-tabbar .tabbar-glass {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 3.125rem;
  border: .03125rem solid rgba(255, 255, 255, .9);
  border-radius: 1.5625rem;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 .25rem 1.25rem rgba(74, 144, 217, .15);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.stage3-ranking-tabbar .tabbar-item {
  display: flex;
  min-width: 0;
  height: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stage3-ranking-tabbar .icon-wrapper {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  transition: all .3s cubic-bezier(.68, -.55, .265, 1.55);
}

.stage3-ranking-tabbar .icon-wrapper.active {
  background: linear-gradient(135deg, #4a90d9, #67b8f7, #8ec5f0);
  box-shadow: 0 .1875rem .625rem rgba(74, 144, 217, .35);
  transform: scale(1.05) translateY(-.125rem);
  animation: stage3-ranking-float 2s ease-in-out infinite;
}

@keyframes stage3-ranking-float {
  0%, 100% { transform: scale(1.05) translateY(-.125rem); }
  50% { transform: scale(1.05) translateY(-.25rem); }
}

.stage3-ranking-tabbar .uvicon {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-family: uvicon-iconfont;
}

.stage3-ranking-tabbar .uv-icon__icon {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-family: uvicon-iconfont;
  color: #666;
}

.stage3-ranking-tabbar .tabbar-text {
  margin-top: .125rem;
  font-size: .625rem;
  line-height: 1;
  transition: all .3s ease;
}

.stage3-ranking-tabbar .tabbar-text.nor { color: #999; }
.stage3-ranking-tabbar .tabbar-text.sel { color: #4a90d9; font-weight: 600; }

.stage3-ranking-tabbar .icon-wrapper.active .uv-icon__icon { color: #fff; }

.stage3-ranking-image {
  width: 1.625rem;
  height: 1.625rem;
  display: block;
  object-fit: contain;
}

.stage3-tab-icon {
  width: 1.625rem;
  height: 1.625rem;
  display: block;
  object-fit: contain;
}

.stage3-gift-button {
  position: fixed;
  right: 1rem;
  bottom: calc(5.25rem + env(safe-area-inset-bottom));
  z-index: 790000;
  min-height: 2.5rem;
  padding: 0 .875rem;
  border: 0;
  border-radius: 999px;
  background: var(--stage3-gold);
  box-shadow: 0 .25rem .875rem rgba(178, 104, 16, .24);
  color: #fff;
  font-size: .8125rem;
}

.stage3-sheet {
  z-index: 810000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 22, 30, .36);
}

.stage3-sheet-surface {
  width: min(100%, 32rem);
  max-height: min(80dvh, 38rem);
  overflow: auto;
  padding: 1rem;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 .75rem 2.5rem rgba(26, 45, 64, .2);
}

.stage3-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .875rem;
  color: #252b31;
  font-size: 1rem;
}

.stage3-sheet-head button {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #838b94;
  font-size: 1.5rem;
}

.stage3-gift-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .625rem;
}

.stage3-gift-option {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem;
  border: 1px solid #e9edf2;
  border-radius: .5rem;
  background: #fff;
  text-align: left;
}

.stage3-gift-option.is-active {
  border-color: var(--stage3-gold);
  background: #fff8ec;
}

.stage3-gift-icon {
  position: relative;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff0cf;
  color: #bf7317;
  font-weight: 700;
}

.stage3-gift-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.stage3-gift-option strong,
.stage3-gift-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage3-gift-option strong { color: #323a43; font-size: .8125rem; }
.stage3-gift-option small { margin-top: .25rem; color: #858e98; font-size: .6875rem; }

.stage3-gift-submit {
  width: 100%;
  min-height: 2.75rem;
  margin-top: .875rem;
  border: 0;
  border-radius: .5rem;
  background: var(--stage3-gold);
  color: #fff;
  font-size: .875rem;
}

.stage3-gift-submit:disabled { opacity: .5; }

@media (max-width: 360px) {
  .stage3-ranking-hero { min-height: 17.5rem; padding-right: .7rem; padding-left: .7rem; }
  .stage3-scope-tabs { right: .7rem; left: .7rem; }
  .stage3-ranking-content { padding-right: .7rem; padding-left: .7rem; }
  .stage3-period-tabs button { min-width: 4.15rem; padding-right: .6rem; padding-left: .6rem; }
  .stage3-date-row button { font-size: .82rem; }
  .stage3-list-item { grid-template-columns: 2.15rem 2.5rem minmax(0, 1fr) minmax(4.1rem, auto); gap: .38rem; padding-right: .3rem; padding-left: .1rem; }
  .stage3-rank-medal,
  .stage3-rank-number { width: 2.05rem; }
  .stage3-rank-medal img { width: 1.95rem; height: 1.95rem; }
  .stage3-avatar-fallback { width: 2.5rem; height: 2.5rem; }
  .stage3-rank-user small { display: none; }
  .stage3-rank-score strong { font-size: .7rem; }
  .stage3-gift-list { grid-template-columns: 1fr; }
}

@media (min-width: 720px) {
  .stage3-route--ranking .stage3-main { overflow: hidden; box-shadow: 0 0 2.5rem rgba(81, 55, 73, .11); }
}

@media (prefers-reduced-motion: reduce) {
  .stage3-heart-pulse,
  .stage3-loading-dot,
  .stage3-list-item,
  .stage3-heart-wall > strong.is-switching,
  .stage3-barrage-track span.is-switching { animation: none; }
}
