.room-mode-section {
  display: grid;
  gap: 10px;
  padding: 14px 16px 4px;
}

.room-mode-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.room-mode-section-head h2,
.room-section-title {
  margin: 0;
  color: #101828;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.room-mode-section-head span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.room-mode-entry-list {
  display: grid;
  gap: 10px;
}

.room-mode-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(156px, 42%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dfe4eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .07);
}

.room-mode-art {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #d98032;
  cursor: pointer;
}

.room-mode-card.expedition .room-mode-art {
  background: #bfd8cf;
}

.room-mode-art > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.room-mode-art-stack {
  position: absolute;
  inset: 36px 8px 8px;
}

.room-mode-art-stack img {
  position: absolute;
  width: 56%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 12px 11px rgba(16, 24, 40, .28));
}

.room-mode-art-stack img:nth-child(1) {
  left: 3%;
  bottom: 0;
  transform: rotate(-7deg);
}

.room-mode-art-stack img:nth-child(2) {
  right: 1%;
  top: 6px;
  transform: rotate(7deg);
}

.room-mode-badge,
.room-mode-random-label {
  position: absolute;
  z-index: 3;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.room-mode-badge {
  left: 9px;
  top: 9px;
  background: #17231f;
}

.room-mode-card.expedition .room-mode-badge {
  background: #f13166;
}

.room-mode-random-label {
  left: 50%;
  bottom: 9px;
  background: #059669;
  transform: translateX(-50%);
  white-space: nowrap;
}

.room-mode-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 12px 10px;
}

.room-mode-card-title {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  color: #101828;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  text-align: left;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.room-mode-tags {
  display: flex;
  gap: 4px;
  overflow: hidden;
}

.room-mode-tags span {
  max-width: 92px;
  overflow: hidden;
  padding: 2px 4px;
  border: 1px solid #dfe5ed;
  border-radius: 4px;
  background: #f8fafc;
  color: #475467;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-mode-card-copy p {
  margin: 0;
  overflow: hidden;
  color: #475467;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-mode-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #101828;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.room-mode-price small {
  color: #667085;
  font-size: 10px;
  font-weight: 700;
}

.room-mode-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #667085;
  font-size: 10px;
}

.room-mode-progress-copy strong {
  color: #07864a;
}

.room-mode-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e9ef;
}

.room-mode-progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #079455;
}

.room-mode-enter {
  min-height: 38px;
  margin-top: auto;
  border: 0;
  border-radius: 6px;
  background: #17231f;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.room-mode-card.expedition .room-mode-enter {
  background: #fa2f67;
}

.room-mode-detail {
  min-height: 100vh;
  background: #f4f7fa;
}

.room-mode-detail .detail-inner {
  width: min(1040px, calc(100% - 28px));
  max-width: 1040px;
  display: block;
  padding: 14px 0 110px;
}

.room-mode-detail .back-row {
  margin-bottom: 12px;
}

.room-hero-shell {
  overflow: hidden;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .08);
}

.room-hero-heading {
  padding: 18px 20px 14px;
}

.room-hero-heading h1 {
  margin: 0;
  color: #101828;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.room-hero-heading p {
  margin: 7px 0 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.expedition-hero-media {
  position: relative;
  aspect-ratio: 2.35 / 1;
  overflow: hidden;
  background: #c7ddd5;
}

.expedition-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.room-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #e4e7ec;
}

.room-hero-meta span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 11px 14px;
  border-right: 1px solid #e4e7ec;
  color: #667085;
  font-size: 10px;
}

.room-hero-meta span:last-child {
  border-right: 0;
}

.room-hero-meta strong {
  overflow: hidden;
  color: #101828;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 2px;
}

.expedition-hero-media .room-mode-badge {
  background: #f13166;
}

.activity-page-heading h1 {
  margin: 0;
  color: #101828;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.activity-page-heading span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.expedition-tier-section,
.room-team-board,
.room-rules,
.room-reward-section {
  margin-top: 14px;
}

.expedition-tier-section {
  padding: 14px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #fff;
}

.expedition-tier-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.expedition-tier-button {
  min-height: 52px;
  display: grid;
  place-content: center;
  gap: 2px;
  border: 1px solid #d8dee7;
  border-radius: 6px;
  background: #fff;
  color: #475467;
  text-align: center;
}

.expedition-tier-button strong {
  color: #101828;
  font-size: 13px;
}

.expedition-tier-button span {
  font-size: 9px;
}

.expedition-tier-button.is-active {
  border-color: #079455;
  background: #edfbf4;
  color: #087443;
}

.expedition-tier-button:disabled {
  opacity: .6;
  cursor: default;
}

.room-team-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.room-team {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 132px;
  border: 2px solid #d7dee7;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  text-align: center;
}

.room-team.ordinary {
  border-color: #9fd8b8;
  background: #f1fbf5;
}

.room-team.boss {
  border-color: #f6a7bd;
  background: #fff3f6;
}

.room-team.is-player-team {
  box-shadow: inset 0 0 0 2px #101828;
}

.room-team strong {
  color: #101828;
  font-size: 17px;
}

.room-team small {
  color: #667085;
  font-size: 10px;
}

.room-team-slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
}

.room-team-slots span {
  width: 9px;
  height: 9px;
  border: 1px solid #98a2b3;
  border-radius: 50%;
  background: #fff;
}

.room-team-slots span.ready {
  border-color: #079455;
  background: #12b76a;
}

.room-random {
  display: grid;
  place-content: center;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  text-align: center;
  font-size: 10px;
}

.room-random strong {
  color: #101828;
  font-size: 16px;
}

.room-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.room-rule {
  padding: 12px 14px;
  border-left: 4px solid #98a2b3;
  background: #fff;
  color: #475467;
  font-size: 11px;
  line-height: 1.55;
}

.room-rule strong {
  display: block;
  margin-bottom: 2px;
  color: #101828;
  font-size: 13px;
}

.room-reward-pools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.room-reward-pool {
  min-width: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 10px;
}

.room-reward-pool.is-ordinary {
  border-color: #8fcfac;
  background: #effaf4;
}

.room-reward-pool.is-boss {
  border-color: #ee9eb6;
  background: #fff1f5;
}

.room-reward-pool h3 {
  margin: 0;
  color: #101828;
  font-size: 17px;
}

.room-reward-pool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.room-reward-pool-head > strong {
  flex: none;
  border: 1px solid #c9d2de;
  border-radius: 5px;
  padding: 4px 6px;
  background: #f8fafc;
  color: #344054;
  font-size: 10px;
}

.room-reward-pool p,
.room-section-caption {
  margin: 4px 0 0;
  color: #667085;
  font-size: 10px;
  line-height: 1.5;
}

.room-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.room-reward-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe4ea;
  border-radius: 6px;
  background: #fff;
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
}

.room-reward-card.is-jackpot {
  border-color: #e8a53d;
  background: #fffaf0;
}

.room-reward-card-image {
  position: relative;
  aspect-ratio: .78 / 1;
  overflow: hidden;
  background: #f3f5f7;
}

.room-reward-slot {
  position: absolute;
  left: 5px;
  top: 5px;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 4px;
  padding: 3px 4px;
  background: rgba(16, 24, 40, .86);
  color: #fff;
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
}

.room-reward-card.is-jackpot .room-reward-slot {
  border-color: #fff1c7;
  background: #b54708;
}

.room-reward-grade {
  position: absolute;
  right: 5px;
  top: 5px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 4px;
  padding: 3px 4px;
  background: #d92d20;
  color: #fff;
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
}

.room-reward-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.room-reward-card-copy {
  display: grid;
  gap: 2px;
  padding: 7px;
}

.room-reward-card-copy strong {
  min-height: 28px;
  display: -webkit-box;
  overflow: hidden;
  color: #101828;
  font-size: 10px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.room-reward-card-copy span {
  color: #667085;
  font-size: 9px;
}

.room-reward-card-copy b {
  color: #b54708;
  font-size: 12px;
}

.room-action-bar {
  position: sticky;
  bottom: 72px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(120px, auto) minmax(220px, 1fr);
  gap: 8px;
  margin-top: 16px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 32px rgba(16, 24, 40, .14);
  backdrop-filter: blur(16px);
}

.room-action-stat {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 0 8px;
}

.room-action-stat span {
  color: #667085;
  font-size: 9px;
}

.room-action-stat strong {
  color: #101828;
  font-size: 14px;
}

.room-action-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.room-primary-action,
.room-secondary-action {
  min-height: 46px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
}

.room-primary-action {
  border: 0;
  background: #fa2f67;
  color: #fff;
}

.room-primary-action:disabled {
  background: #98a2b3;
  cursor: default;
}

.room-secondary-action {
  border: 1px solid #d0d5dd;
  padding: 0 15px;
  background: #fff;
  color: #344054;
}

@media (min-width: 760px) {
  .home-stage {
    grid-template-areas:
      "filters"
      "meta"
      "pools"
      "more";
  }

}

@media (max-width: 759px) {
  .activity-page-heading {
    margin-bottom: 8px;
  }

  .room-mode-section {
    padding: 12px 11px 2px;
  }

  .room-mode-card {
    grid-template-columns: minmax(152px, 46%) minmax(0, 1fr);
    min-height: 184px;
  }

  .room-mode-art {
    min-height: 184px;
  }

  .room-mode-card-copy {
    padding: 11px 9px 9px;
  }

  .room-mode-card-title {
    font-size: 18px;
  }

  .room-mode-detail .player-header {
    position: sticky;
    top: 0;
  }

  .room-mode-detail .detail-inner {
    width: min(100% - 20px, 720px);
    padding-top: 10px;
  }

  .room-hero-heading {
    padding: 12px 14px 9px;
  }

  .room-hero-heading h1 {
    font-size: 27px;
  }

  .expedition-hero-media {
    aspect-ratio: 1.9 / 1;
  }

  .room-hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-hero-meta span:nth-child(2) {
    border-right: 0;
  }

  .room-hero-meta span:nth-child(-n+2) {
    border-bottom: 1px solid #e4e7ec;
  }

  .expedition-tier-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-top: 8px;
  }

  .expedition-tier-section {
    margin-top: 10px;
    padding: 10px 14px 11px;
  }

  .expedition-tier-button {
    min-height: 48px;
  }

  .expedition-tier-button strong {
    font-size: 10px;
    white-space: nowrap;
  }

  .expedition-tier-button span {
    font-size: 8px;
  }

  .room-team-board {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  }

  .room-team {
    min-height: 122px;
    padding: 9px 5px;
  }

  .room-team strong {
    font-size: 14px;
  }

  .room-rules,
  .room-reward-pools {
    grid-template-columns: 1fr;
  }

  .room-reward-pool {
    padding: 8px;
  }

  .room-reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .room-action-bar {
    position: static;
    bottom: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-action-buttons {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .room-action-stat {
    grid-row: 2;
  }
}

@media (max-width: 380px) {
  .room-mode-card {
    grid-template-columns: 138px minmax(0, 1fr);
  }

  .room-mode-card-copy p {
    display: none;
  }

  .room-team-board {
    grid-template-columns: 1fr;
  }

  .room-random {
    min-height: 46px;
  }
}
