@charset "UTF-8";
[x-cloak] {
  display: none !important;
}

body:has(.gamegroup) {
  color: #102640;
  background: #eff9ff;
  overflow: hidden;
}
body:has(.gamegroup) .base-ctn {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-image: none;
}
body:has(.gamegroup) .main-ctn {
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  overflow: hidden;
}
body:has(.gamegroup) .main-ctn > div {
  height: 100%;
  min-height: 0;
}
body:has(.gamegroup) .main-ctn .content-ctn {
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
}

.gamegroup {
  --page-w: 1400;
  --page-h: 900;
  --sky: #eff9ff;
  --water: #dceefa;
  --ink: #102640;
  --blue: #294a70;
  --soft-blue: #bdd9ec;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-border: #b9daf5;
  --wood: #dfa345;
  --wood-dark: #9b6d2d;
  --wood-line: rgba(91, 65, 32, 0.36);
  --green: #c9e5cb;
  --green-dark: #397729;
  --red: #5a0712;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: #102640;
  background: #eff9ff;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}
.gamegroup *,
.gamegroup *::before,
.gamegroup *::after {
  box-sizing: border-box;
}
.gamegroup button,
.gamegroup input,
.gamegroup select {
  font: inherit;
}
.gamegroup .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gamegroup .stage {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--page-w) * 1px);
  height: calc(var(--page-h) * 1px);
  overflow: hidden;
  transform-origin: top left;
  background: radial-gradient(96px 44px at 98px 228px, rgba(255, 255, 255, 0.72), transparent 72%), radial-gradient(250px 120px at 1250px 585px, rgba(255, 255, 255, 0.64), transparent 73%), linear-gradient(to bottom, var(--sky) 0 405px, var(--water) 405px 100%);
}
.gamegroup .stage::after {
  content: "";
  position: absolute;
  left: -50px;
  right: -40px;
  bottom: -162px;
  height: 240px;
  z-index: 0;
  background: radial-gradient(960px 170px at 410px 84px, rgba(205, 231, 207, 0.9), transparent 72%), radial-gradient(980px 176px at 1040px 126px, rgba(198, 224, 199, 0.86), transparent 72%);
}
.gamegroup .topbar {
  position: absolute;
  left: 60px;
  top: 20px;
  width: 1280px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}
.gamegroup .title {
  flex: 1 1 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}
.gamegroup .title h1 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  min-width: 0;
  color: #092342;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
}
.gamegroup .title h1 > span {
  flex: 0 0 auto;
}
.gamegroup .title p {
  margin: 8px 0 0;
  color: #59708c;
  font-size: 18px;
  font-weight: 700;
}
.gamegroup .title-event {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 3px 8px;
  margin-left: -8px;
  border-radius: 999px;
  font-size: 20px;
  color: #0d5f96;
  background: rgba(255, 255, 255, 0.48);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.gamegroup .title-event::after {
  content: ">";
  flex: 0 0 auto;
  font-size: 0.72em;
  opacity: 0.86;
  transform: translateY(1px);
}
.gamegroup .title-event:hover {
  background: #e6f3ff;
  color: #083f6d;
}
.gamegroup .top-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.gamegroup .view-switcher {
  display: flex;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  flex-shrink: 0;
  padding: 5px;
  border: 1px solid #c8e2f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 4px 10px rgba(87, 125, 154, 0.1);
}
.gamegroup .view-link {
  box-sizing: border-box;
  height: 32px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #315777;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  padding: 5px;
  border: 1px solid #c8e2f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 4px 10px rgba(87, 125, 154, 0.1);
}
.gamegroup .view-link:hover {
  background: #e6f3ff;
}
.gamegroup .view-link.active {
  color: #fff;
  background: var(--blue);
}
.gamegroup .round-switcher {
  width: 360px;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px;
  border: 1px solid #c8e2f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 4px 10px rgba(87, 125, 154, 0.1);
}
.gamegroup .round-switcher button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #a7d2f2;
  border-radius: 999px;
  color: #fff;
  background: #2f6d9f;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.gamegroup .round-switcher button:hover:not(:disabled) {
  background: #255f8d;
}
.gamegroup .round-switcher button:focus-visible {
  outline: 3px solid #1587ff;
  outline-offset: 2px;
}
.gamegroup .round-switcher button:disabled {
  border-color: #c7d8e3;
  color: #7890a2;
  background: #e8f1f7;
  cursor: not-allowed;
}
.gamegroup .round-current {
  min-width: 80px;
  color: #092342;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}
.gamegroup .mobile-topbar {
  display: none;
}
.gamegroup .mobile-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.gamegroup .mobile-back-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
[data-theme=light] .gamegroup .mobile-back-btn {
  background-image: url("/static/101/images/btn-back-l.png");
}
[data-theme=black] .gamegroup .mobile-back-btn {
  background-image: url("/static/101/images/btn-back.png");
}
.gamegroup .mobile-back-btn {
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}
.gamegroup .mobile-group-name {
  min-width: 0;
  color: #092342;
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gamegroup .layout {
  position: absolute;
  left: 60px;
  top: 82px;
  z-index: 2;
  width: 1280px;
  display: grid;
  grid-template-columns: 900px 360px;
  grid-template-rows: 790px;
  gap: 20px;
  align-items: stretch;
}
.gamegroup .watch-panel,
.gamegroup .leader-panel {
  border: 2px solid var(--panel-border);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 252, 255, 0.76));
  box-shadow: inset 0 0 28px rgba(180, 219, 247, 0.34), 0 4px 9px rgba(80, 120, 150, 0.16);
  overflow: hidden;
}
.gamegroup .watch-panel {
  grid-column: 1;
  height: 790px;
  display: flex;
  flex-direction: column;
}
.gamegroup .panel-head {
  height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #00172d;
  background: var(--soft-blue);
  font-size: 14px;
  font-weight: 900;
}
.gamegroup .panel-head small {
  color: #48667f;
  font-size: 14px;
  font-weight: 700;
}
.gamegroup .panel-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.gamegroup .panel-title {
  margin: 0;
  color: #092342;
  font-size: 15px;
  font-weight: 900;
}
.gamegroup .player-search {
  width: 210px;
  height: 34px;
  box-sizing: border-box;
  padding: 0 34px 0 12px;
  border: 1px solid #9bc9e9;
  border-radius: 17px;
  outline: 0;
  color: #0d2948;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-weight: 600;
}
.gamegroup .player-search::-moz-placeholder {
  color: #66819a;
}
.gamegroup .player-search::placeholder {
  color: #66819a;
}
.gamegroup .player-search:focus {
  border-color: #1587ff;
  box-shadow: 0 0 0 3px rgba(21, 135, 255, 0.14);
}
.gamegroup .search-wrap {
  position: relative;
}
.gamegroup .search-wrap::after {
  content: "⌕";
  position: absolute;
  right: 12px;
  top: 50%;
  color: #39739f;
  font-size: 18px;
  transform: translateY(-52%);
  pointer-events: none;
}
.gamegroup .search-empty {
  grid-column: 1/-1;
  padding: 54px 20px;
  color: #66819a;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.gamegroup .rank-empty {
  padding: 32px 20px;
}
.gamegroup .board-list {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: max-content;
  gap: 12px;
  align-content: start;
  overflow-y: auto;
}
.gamegroup .player-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  padding: 10px 8px 9px;
  border: 1px solid #d4e9fa;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 3px 8px rgba(86, 126, 156, 0.12);
  cursor: pointer;
}
.gamegroup .player-card:focus-visible {
  outline: 3px solid #1587ff;
  outline-offset: 2px;
}
.gamegroup .player-card.is-me {
  border-color: #42b85d;
  background: #eef8df;
  box-shadow: 0 0 0 3px rgba(66, 184, 93, 0.14), 0 3px 8px rgba(86, 126, 156, 0.12);
}
.gamegroup .player-card.result-correct {
  animation: gg-card-correct 720ms ease-out;
}
.gamegroup .player-card.result-wrong {
  animation: gg-card-wrong 520ms ease-out;
}
.gamegroup .mini-board {
  position: relative;
  width: 140px;
  height: 140px;
  flex: 0 0 140px;
  align-self: center;
  border: 2px solid #d4993f;
  border-radius: 7px;
  overflow: hidden;
  background: repeating-linear-gradient(to right, transparent 0 calc(12.5% - 1px), var(--wood-line) calc(12.5% - 1px) 12.5%), repeating-linear-gradient(to bottom, transparent 0 calc(12.5% - 1px), var(--wood-line) calc(12.5% - 1px) 12.5%), var(--wood);
  box-shadow: 0 5px 0 var(--wood-dark), inset 0 0 16px rgba(255, 232, 176, 0.34);
}
.gamegroup .rp-board-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.gamegroup .player-name {
  min-width: 0;
  margin: 0;
  color: #0d2948;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gamegroup .player-info {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}
.gamegroup .player-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gamegroup .metric {
  min-height: auto;
  padding: 0;
  border-radius: 8px;
  background: transparent;
}
.gamegroup .metric span {
  display: none;
}
.gamegroup .metric strong {
  display: inline-block;
  min-width: 0;
  margin: 2px 0 0;
  color: var(--green-dark);
  font-size: 14px;
  line-height: 1;
}
.gamegroup .metric strong.result-correct {
  animation: gg-number-correct 720ms ease-out;
}
.gamegroup .metric strong.result-wrong {
  animation: gg-number-wrong 520ms ease-out;
}
.gamegroup .metric:first-child strong::before {
  content: "第";
  margin-right: 1px;
  font-size: 11px;
  color: #66819a;
}
.gamegroup .metric:first-child strong::after {
  content: "题";
  margin-left: 1px;
  font-size: 11px;
  color: #66819a;
}
.gamegroup .result-pop {
  position: absolute;
  right: 8px;
  bottom: 32px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  pointer-events: none;
  animation: gg-result-pop 900ms ease-out forwards;
}
.gamegroup .result-pop.correct {
  background: #2d9d48;
}
.gamegroup .result-pop.wrong {
  background: #d84242;
}
.gamegroup .board-detail {
  position: absolute;
  left: 0;
  top: 0;
  width: 900px;
  height: 100%;
  z-index: 10;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 13px;
  background: rgba(225, 243, 253, 0.97);
  backdrop-filter: blur(6px);
}
.gamegroup .detail-card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  box-shadow: inset 0 0 34px rgba(181, 221, 250, 0.34);
}
.gamegroup .detail-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid #b9daf5;
  border-radius: 50%;
  color: var(--blue);
  background: #f2f9ff;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.gamegroup .detail-close:focus-visible {
  outline: 3px solid #1587ff;
  outline-offset: 2px;
}
.gamegroup .detail-board {
  order: 2;
  width: var(--detail-board-size, min(680px, 100% - 40px));
  max-width: none;
  height: auto;
  flex: 0 0 auto;
  align-self: center;
  border-radius: 12px;
  box-shadow: 0 10px 0 var(--wood-dark), inset 0 0 34px rgba(255, 232, 176, 0.38);
}
.gamegroup .detail-board.mini-board {
  aspect-ratio: 1/1;
}
.gamegroup .detail-info {
  order: 1;
  width: var(--detail-board-size, min(680px, 100% - 40px));
  box-sizing: border-box;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(185, 218, 245, 0.9);
  border-radius: 12px;
  background: rgba(250, 253, 255, 0.86);
  box-shadow: 0 8px 18px rgba(48, 99, 139, 0.14);
}
.gamegroup .detail-name {
  margin: 0;
  min-width: 0;
  color: #0d2948;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gamegroup .detail-meta {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
}
.gamegroup .detail-metric {
  min-width: 112px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(217, 238, 224, 0.88);
}
.gamegroup .detail-metric span {
  color: #66819a;
  font-size: 13px;
  font-weight: 800;
}
.gamegroup .detail-metric strong {
  margin-left: 8px;
  color: var(--green-dark);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}
.gamegroup .leader-panel {
  grid-column: 2;
  height: 790px;
  max-height: 790px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.gamegroup .leader-body {
  flex: 1;
  min-height: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.gamegroup .leader-table {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #bfe0fb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}
.gamegroup .leader-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}
.gamegroup .leader-table thead {
  color: var(--blue);
  background: #e6f3ff;
}
.gamegroup .leader-table th,
.gamegroup .leader-table td {
  height: 56px;
  padding: 0 14px;
  border-bottom: 1px solid #d0e2f2;
  text-align: left;
  white-space: nowrap;
}
.gamegroup .leader-table tbody tr {
  transition: transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 500ms ease;
  will-change: transform;
}
.gamegroup .leader-table tbody tr:last-child td {
  border-bottom: 0;
}
.gamegroup .leader-table tbody tr.watching {
  color: var(--green-dark);
  background: #eef8df;
  font-weight: 800;
}
.gamegroup .leader-table tbody tr.rank-updated td {
  animation: gg-rank-updated 900ms ease-out;
}
.gamegroup .leader-table th:nth-child(1),
.gamegroup .leader-table td:nth-child(1) {
  width: 66px;
  text-align: center;
}
.gamegroup .leader-table th:nth-child(3),
.gamegroup .leader-table td:nth-child(3) {
  text-align: right;
}
.gamegroup .rank-medal {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42), 0 2px 4px rgba(0, 0, 0, 0.14);
}
.gamegroup .rank-medal.gold {
  background: #ffc13a;
}
.gamegroup .rank-medal.silver {
  background: #aeb9c2;
}
.gamegroup .rank-medal.bronze {
  background: #c47c4d;
}
.gamegroup .leader-link {
  color: #0d5f96;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.gamegroup .leader-link:hover {
  color: #083f6d;
}
.gamegroup .summary-strip {
  flex: 0 0 auto;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gamegroup .summary {
  min-height: 78px;
  padding: 12px;
  border-radius: 9px;
  color: var(--blue);
  background: #eef7ff;
}
.gamegroup .summary span {
  display: block;
  color: #66819a;
  font-size: 12px;
  font-weight: 700;
}
.gamegroup .summary strong {
  display: block;
  margin-top: 8px;
  color: var(--red);
  font-size: 14px;
  line-height: 1;
}
.gamegroup .pager {
  flex-shrink: 0;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  border-top: 1px solid #98bfaa;
  background: rgba(255, 255, 255, 0.92);
  color: #7a8792;
  font-size: 14px;
  line-height: 1;
}
.gamegroup .pager .pager-page,
.gamegroup .pager .pager-ellipsis {
  flex: 0 0 auto;
  min-width: 24px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  text-align: center;
  line-height: 1;
  background: transparent;
}
.gamegroup .pager .pager-nav {
  flex: 0 0 auto;
  min-width: 56px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #0d5f96;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.gamegroup .pager .pager-nav:hover:not(:disabled) {
  color: #083f6d;
  background: transparent;
}
.gamegroup .pager .pager-nav:focus-visible {
  outline: 2px solid #1587ff;
  outline-offset: 3px;
}
.gamegroup .pager .pager-nav:disabled {
  border: 0;
  color: #a9b6c0;
  background: transparent;
  cursor: not-allowed;
}
.gamegroup .pager .is-disabled {
  color: #a9b6c0;
  cursor: not-allowed;
}
.gamegroup .pager .is-link {
  color: #0d5f96;
  font-weight: 800;
  cursor: pointer;
}
.gamegroup .pager .pager-page {
  color: #0d5f96;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.gamegroup .pager .pager-page:hover:not(:disabled) {
  color: #083f6d;
}
.gamegroup .pager .pager-page:focus-visible {
  outline: 2px solid #1587ff;
  outline-offset: 1px;
}
.gamegroup .pager .pager-ellipsis {
  color: #7a8792;
  font: inherit;
  cursor: default;
}
.gamegroup .pager .current {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  cursor: default;
}

@keyframes gg-rank-updated {
  0%, 100% {
    background-color: transparent;
  }
  35% {
    background-color: rgba(255, 204, 70, 0.3);
  }
}
@keyframes gg-card-correct {
  0%, 100% {
    border-color: #d4e9fa;
    box-shadow: 0 3px 8px rgba(86, 126, 156, 0.12);
  }
  35% {
    border-color: #42b85d;
    box-shadow: 0 0 0 4px rgba(66, 184, 93, 0.2), 0 5px 14px rgba(45, 157, 72, 0.2);
  }
}
@keyframes gg-card-wrong {
  0%, 100% {
    border-color: #d4e9fa;
    box-shadow: 0 3px 8px rgba(86, 126, 156, 0.12);
  }
  40% {
    border-color: #e25a5a;
    box-shadow: 0 0 0 3px rgba(226, 90, 90, 0.16);
  }
}
@keyframes gg-number-correct {
  0% {
    color: #2d9d48;
    opacity: 0;
    transform: translateY(6px) scale(0.75);
  }
  45% {
    color: #168635;
    opacity: 1;
    transform: translateY(-2px) scale(1.25);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
@keyframes gg-number-wrong {
  0%, 100% {
    transform: translateX(0);
  }
  25%, 75% {
    color: #d84242;
    transform: translateX(-2px);
  }
  50% {
    color: #d84242;
    transform: translateX(2px);
  }
}
@keyframes gg-result-pop {
  0% {
    opacity: 0;
    transform: translateY(5px) scale(0.7);
  }
  25% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(0.92);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gamegroup .player-card.result-correct,
  .gamegroup .player-card.result-wrong,
  .gamegroup .metric strong.result-correct,
  .gamegroup .metric strong.result-wrong,
  .gamegroup .result-pop {
    animation-duration: 1ms;
  }
}
@media (max-width: 760px) {
  body:has(.gamegroup) {
    overflow: auto;
  }
  body:has(.gamegroup) .base-ctn {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }
  body:has(.gamegroup) .main-ctn {
    height: auto;
    min-height: calc(100vh - 48px);
    min-height: calc(100dvh - 48px);
    overflow: visible;
  }
  body:has(.gamegroup) .main-ctn .content-ctn {
    height: auto;
    overflow: visible;
  }
  .gamegroup {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .gamegroup .stage {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 100dvh;
    padding: 0 12px 28px;
    transform: none !important;
    background: radial-gradient(150px 70px at 100% 26%, rgba(255, 255, 255, 0.58), transparent 70%), linear-gradient(to bottom, var(--sky) 0 360px, var(--water) 360px 100%);
  }
  .gamegroup .stage::after {
    display: none;
  }
  .gamegroup .topbar,
  .gamegroup .layout {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
  }
  .gamegroup .topbar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    padding-top: 48px;
  }
  .gamegroup .title,
  .gamegroup .top-actions,
  .gamegroup .view-link {
    display: none !important;
  }
  .gamegroup .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  .gamegroup .mobile-topbar-left {
    gap: 6px;
  }
  .gamegroup .mobile-back-btn {
    width: 28px;
    height: 28px;
  }
  .gamegroup .mobile-group-name {
    font-size: 15px;
  }
  .gamegroup .mobile-topbar .round-switcher {
    width: auto;
    flex-shrink: 0;
    gap: 4px;
    padding: 3px;
    box-shadow: 0 2px 6px rgba(87, 125, 154, 0.08);
  }
  .gamegroup .mobile-topbar .round-switcher button {
    height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }
  .gamegroup .mobile-topbar .round-switcher .round-current {
    min-width: 44px;
    font-size: 11px;
  }
  .gamegroup .layout {
    margin-top: 14px;
    display: block;
  }
  .gamegroup .watch-panel,
  .gamegroup .leader-panel {
    height: auto;
    border-radius: 10px;
  }
  .gamegroup .panel-head {
    height: 48px;
    padding: 0 14px;
  }
  .gamegroup .board-list {
    flex: none;
    height: auto;
    overflow-y: visible;
    padding: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .gamegroup .pager {
    gap: 8px;
    padding: 0 8px;
  }
  .gamegroup .pager .pager-nav {
    width: 28px;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .gamegroup .pager .pager-nav::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
  }
  .gamegroup .pager .pager-nav-label {
    display: none;
  }
  .gamegroup .pager .pager-prev::before {
    transform: translateX(2px) rotate(-135deg);
  }
  .gamegroup .pager .pager-next::before {
    transform: translateX(-2px) rotate(45deg);
  }
  .gamegroup .mini-board {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    flex-basis: auto;
  }
  .gamegroup .board-detail {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    padding: 48px 0 0;
    border-radius: 0;
    z-index: 10000;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .gamegroup .detail-card {
    padding: 0;
    gap: 10px;
    width: 100%;
    height: auto;
    justify-content: flex-start;
    align-items: stretch;
  }
  .gamegroup .detail-close {
    position: static;
    align-self: flex-end;
    flex: 0 0 auto;
    margin: 0 12px 0 0;
    width: 32px;
    height: 32px;
  }
  .gamegroup .detail-board {
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
    height: calc(100vw - 8px);
    margin: 0 4px;
    flex: 0 0 auto;
    align-self: stretch;
    border-radius: 0;
  }
  .gamegroup .detail-info {
    width: auto;
    margin: 0 12px;
  }
  .gamegroup .detail-name {
    font-size: 20px;
  }
  .gamegroup .detail-metric {
    min-width: 0;
    padding: 7px 9px;
  }
  .gamegroup .leader-panel {
    margin-top: 14px;
  }
  .gamegroup .leader-body {
    padding: 12px;
  }
}
@media (max-width: 430px) {
  .gamegroup .mobile-group-name {
    font-size: 14px;
  }
  .gamegroup .mobile-topbar .round-switcher button {
    height: 24px;
    padding: 0 6px;
    font-size: 10px;
  }
  .gamegroup .mobile-topbar .round-switcher .round-current {
    min-width: 38px;
    font-size: 10px;
  }
  .gamegroup .board-list {
    padding: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .gamegroup .detail-name {
    font-size: 18px;
  }
  .gamegroup .detail-metric span {
    display: none;
  }
  .gamegroup .detail-metric strong {
    margin-left: 0;
    font-size: 17px;
  }
  .gamegroup .summary {
    padding: 8px;
  }
  .gamegroup .summary span {
    font-size: 11px;
  }
  .gamegroup .summary strong {
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  .gamegroup .board-list {
    grid-template-columns: 1fr;
  }
  .gamegroup .summary-strip {
    grid-template-columns: 1fr;
  }
}
/* Competition problems page */
:root {
  --page-w: 1400;
  --page-h: 900;
  --sky: #eff9ff;
  --water: #dceefa;
  --ink: #102640;
  --blue: #294a70;
  --soft-blue: #bdd9ec;
  --panel-border: #b9daf5;
  --wood: #dfa345;
  --wood-dark: #9b6d2d;
  --green: #397729;
  --green-soft: #e5f3e1;
  --red: #8f2633;
  --red-soft: #f8e2e5;
  --muted: #607991;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow: hidden;
  color: var(--ink);
  background: var(--sky);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 14px;
}

button, input, select {
  font: inherit;
}

button, a, select {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stage {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(var(--page-w) * 1px);
  height: calc(var(--page-h) * 1px);
  overflow: hidden;
  transform: translateX(-50%);
  transform-origin: top center;
}

.stage::after {
  content: "";
  position: absolute;
  left: -50px;
  right: -40px;
  bottom: -162px;
  height: 240px;
  z-index: 0;
  background: radial-gradient(960px 170px at 410px 84px, rgba(205, 231, 207, 0.9), transparent 72%), radial-gradient(980px 176px at 1040px 126px, rgba(198, 224, 199, 0.86), transparent 72%);
}

.topbar {
  position: absolute;
  left: 60px;
  top: 20px;
  width: 1280px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.title h1 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: #092342;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
}

.title-event {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  margin-left: -8px;
  border-radius: 999px;
  color: #0d5f96;
  background: rgba(255, 255, 255, 0.48);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.title-event::after {
  content: ">";
  font-size: 0.72em;
  opacity: 0.86;
  transform: translateY(1px);
}

.title-event:hover {
  background: #e6f3ff;
  color: #083f6d;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.view-switcher,
.round-switcher {
  display: flex;
  align-items: center;
  padding: 5px;
  border: 1px solid #c8e2f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 4px 10px rgba(87, 125, 154, 0.1);
}

.view-switcher {
  flex-shrink: 0;
  width: -moz-fit-content;
  width: fit-content;
}

.view-link {
  box-sizing: border-box;
  width: 88px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #315777;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.view-link:hover {
  background: #e6f3ff;
}

.view-link.active {
  color: #fff;
  background: var(--blue);
}

.round-switcher {
  width: 360px;
  flex-shrink: 0;
  justify-content: space-between;
  gap: 10px;
}

.round-switcher button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #a7d2f2;
  border-radius: 999px;
  color: #fff;
  background: #2f6d9f;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.round-switcher button:hover:not(:disabled) {
  background: #255f8d;
}

.round-switcher button:disabled {
  border-color: #c7d8e3;
  color: #7890a2;
  background: #e8f1f7;
  cursor: not-allowed;
}

.round-current {
  min-width: 80px;
  color: #092342;
  font-weight: 900;
  text-align: center;
}

:focus-visible {
  outline: 3px solid #1587ff;
  outline-offset: 2px;
}

.layout {
  position: absolute;
  left: 60px;
  top: 82px;
  z-index: 2;
  width: 1280px;
  height: 770px;
}

.problem-layout {
  display: grid;
  grid-template-columns: 310px 950px;
  gap: 20px;
}

.problem-panel,
.problem-detail-panel {
  min-width: 0;
  border: 2px solid var(--panel-border);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 252, 255, 0.78));
  box-shadow: inset 0 0 28px rgba(180, 219, 247, 0.34), 0 4px 9px rgba(80, 120, 150, 0.16);
  overflow: hidden;
}

.problem-panel {
  display: flex;
  flex-direction: column;
}

.panel-head {
  min-height: 66px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #00172d;
  background: var(--soft-blue);
}

.panel-head h2, .section-head h3, .answer-overview h3 {
  margin: 0;
}

.panel-head h2 {
  font-size: 17px;
}

.panel-head small {
  color: #48667f;
  font-weight: 700;
}

select {
  height: 34px;
  border: 1px solid #9bc9e9;
  border-radius: 17px;
  outline: 0;
  color: #0d2948;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 600;
}

select {
  max-width: 108px;
  padding: 0 26px 0 10px;
  cursor: pointer;
}

.problem-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #c8deed;
  background: rgba(238, 248, 254, 0.76);
}

.summary {
  position: relative;
  padding: 12px 5px;
  text-align: center;
}

.summary + .summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: #c7dfef;
}

.summary span {
  display: block;
  color: #648097;
  font-size: 11px;
  font-weight: 700;
}

.summary strong {
  display: block;
  margin-top: 3px;
  color: #143b60;
  font-size: 17px;
}

.problem-list {
  flex: 1;
  min-height: 0;
  padding: 10px 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 9px;
  overflow-y: auto;
  scrollbar-color: #a9cce3 transparent;
}

.problem-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 12px 5px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  border: 1px solid #c4deef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 2px 5px rgba(81, 124, 154, 0.08);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.problem-card:hover {
  border-color: #84bce1;
  background: #fff;
  transform: translateY(-1px);
}

.problem-card.active {
  border-color: #4e91c3;
  background: #eef8ff;
  box-shadow: inset 4px 0 #397ba9, 0 3px 8px rgba(61, 117, 157, 0.15);
}

.problem-number {
  position: absolute;
  left: 5px;
  top: 4px;
  z-index: 1;
  width: auto;
  height: auto;
  border: 0;
  color: #1d557f;
  background: transparent;
  font-size: 9px;
  font-weight: 900;
}

.problem-card.active .problem-number {
  color: var(--blue);
  background: transparent;
}

.problem-info {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.problem-thumbnail {
  position: relative;
  width: 122px;
  height: 122px;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid var(--wood-dark);
  border-radius: 4px;
  background-color: var(--wood);
  background-image: linear-gradient(rgba(91, 65, 32, 0.42) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 65, 32, 0.42) 1px, transparent 1px);
  background-size: 15px 15px;
  box-shadow: inset 0 0 7px rgba(122, 73, 15, 0.18);
}

.problem-thumbnail .stone {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.problem-thumbnail .black {
  background: #17212a;
}

.problem-thumbnail .white {
  border: 1px solid #cbd3d8;
  background: #f8fbfd;
}

.problem-info p {
  margin: 5px 0 0;
  color: #6c8499;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}

.problem-result {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  color: #6c8194;
  font-size: 11px;
  text-align: center;
}

.problem-result .accuracy {
  margin-right: 5px;
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
}

.problem-result .correct-count,
.problem-result .wrong-count {
  min-width: 38px;
  padding: 3px 5px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.problem-result .correct-count {
  border-radius: 999px 0 0 999px;
  color: var(--green);
  background: var(--green-soft);
}

.problem-result .wrong-count {
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 0 999px 999px 0;
  color: var(--red);
  background: var(--red-soft);
}

.pager {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid #c8deed;
  background: rgba(239, 248, 253, 0.82);
}

.pager button {
  min-width: 32px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #a7d2f2;
  border-radius: 7px;
  color: #fff;
  background: #2f6d9f;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.pager button:hover:not(:disabled):not([aria-current=page]) {
  background: #255f8d;
}

.pager button[aria-current=page] {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.pager button:disabled {
  border-color: #c7d8e3;
  color: #7890a2;
  background: #e8f1f7;
  cursor: not-allowed;
}

.problem-detail-panel {
  position: relative;
  display: flex;
  flex-direction: column;
}

.mobile-problem-switcher {
  display: none;
}

.detail-head {
  min-height: 52px;
  padding: 7px 16px;
}

.detail-head > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.detail-title-row {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.detail-head h2 {
  margin: 0;
}

.eyebrow {
  color: #446a87;
  font-size: 11px;
  font-weight: 800;
}

.problem-description {
  color: #49667f;
  font-size: 12px;
}

.live-status {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid #9ccaaa;
  border-radius: 999px;
  color: #2c6e35;
  background: rgba(235, 248, 235, 0.88);
  font-size: 12px;
  font-weight: 800;
}

.problem-detail-body {
  flex: 1;
  min-height: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  grid-template-rows: minmax(0, 1.2fr) auto minmax(0, 0.8fr);
  gap: 12px;
  overflow: hidden;
}

.board-section,
.answer-overview,
.fastest-section,
.records-section {
  border: 1px solid #c6deed;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 2px 6px rgba(70, 112, 143, 0.08);
}

.board-section {
  position: relative;
  grid-column: 1;
  grid-row: 1/4;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  align-self: stretch;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.problem-board {
  position: relative;
  width: auto;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 7px solid var(--wood-dark);
  border-radius: 5px;
  color: rgba(70, 48, 20, 0.68);
  background-color: var(--wood);
  background-image: linear-gradient(rgba(91, 65, 32, 0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 65, 32, 0.4) 1px, transparent 1px);
  background-size: 43px 43px;
  background-position: 3px 3px;
  box-shadow: inset 0 0 18px rgba(122, 73, 15, 0.22), 0 4px 8px rgba(70, 72, 61, 0.16);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.problem-board:hover {
  border-color: #80571f;
  box-shadow: inset 0 0 18px rgba(122, 73, 15, 0.22), 0 5px 13px rgba(52, 91, 120, 0.24);
}

.problem-board::before,
.problem-board::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(75, 48, 18, 0.76);
  box-shadow: 108px 0 rgba(75, 48, 18, 0.76), -108px 0 rgba(75, 48, 18, 0.76);
}

.problem-board::after {
  transform: translateY(129px);
}

.answer-overview {
  padding: 9px 12px;
}

.answer-overview {
  grid-column: 2;
  grid-row: 2;
}

.answer-overview h3, .section-head h3 {
  color: #133855;
  font-size: 14px;
}

.answer-metrics {
  margin-top: 7px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.answer-metric {
  padding: 6px 2px;
  border-radius: 7px;
  text-align: center;
  background: #eef6fb;
}

.answer-metric span {
  display: block;
  color: #6b8193;
  font-size: 9px;
}

.answer-metric strong {
  display: block;
  margin-top: 1px;
  color: #183d5e;
  font-size: 16px;
}

.answer-metric.correct {
  background: var(--green-soft);
}

.answer-metric.correct strong {
  color: var(--green);
}

.answer-metric.wrong {
  background: var(--red-soft);
}

.answer-metric.wrong strong {
  color: var(--red);
}

.answer-distribution {
  height: 18px;
  margin-top: 7px;
  display: flex;
  overflow: hidden;
  border-radius: 9px;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.answer-distribution span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
}

.distribution-correct {
  background: #5f9b56;
}

.distribution-wrong {
  background: #a94451;
}

.distribution-pending {
  background: #9aacb9;
}

.fastest-section {
  grid-column: 2;
  grid-row: 3;
  min-height: 0;
  padding: 12px;
  overflow: auto;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-head small {
  color: #71889b;
  font-size: 10px;
}

.fastest-list {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.fastest-list li {
  min-height: 34px;
  display: grid;
  grid-template-columns: 28px 1fr 50px;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #e0ebf2;
  color: #516d84;
  font-size: 11px;
}

.rank {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #315b7d;
  background: #dbeefa;
  font-weight: 900;
}

.fastest-list li:first-child .rank {
  color: #704407;
  background: #f5d274;
}

.student-name,
.student-link {
  color: #173a58;
  font-weight: 800;
}

.student-link {
  text-decoration: none;
  cursor: pointer;
}

.student-link:hover {
  color: #0d5f96;
}

.answer-time {
  color: #173f60;
  text-align: right;
}

.records-section {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.records-section select {
  height: 28px;
}

.record-table-wrap {
  min-height: 0;
  margin-top: 8px;
  overflow: auto;
}

.record-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: center;
}

.record-table th {
  position: sticky;
  top: 0;
  padding: 7px 3px;
  color: #46657e;
  background: #dceefa;
  font-weight: 800;
}

.record-table td {
  padding: 7px 3px;
  border-bottom: 1px solid #dfeaf1;
  color: #3f5d73;
}

.record-table tbody tr:hover {
  background: #f0f8fd;
}

.result-tag {
  display: inline-block;
  min-width: 42px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.result-tag.correct {
  color: var(--green);
  background: var(--green-soft);
}

.result-tag.wrong {
  color: var(--red);
  background: var(--red-soft);
}

.board-mode-toolbar {
  flex: 0 0 36px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.board-mode-button {
  height: 36px;
  border: 1px solid #9fc9e5;
  border-radius: 7px;
  color: #245273;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(70, 112, 143, 0.1);
}

.board-mode-button:hover,
.board-mode-button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

@media (max-width: 1399px) {
  body {
    overflow: auto;
    background: linear-gradient(to bottom, var(--sky), var(--water));
  }
  .stage {
    position: relative;
    left: auto;
    width: min(100% - 32px, 1240px);
    height: auto;
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 0 28px;
    overflow: visible;
    transform: none;
  }
  .stage::after {
    display: none;
  }
  .topbar,
  .layout {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
  }
  .topbar {
    align-items: flex-start;
    gap: 16px;
  }
  .title h1 {
    font-size: 24px;
  }
  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .layout {
    height: auto;
    margin-top: 18px;
  }
  .problem-layout {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 16px;
  }
  .problem-panel {
    max-height: 720px;
  }
  .problem-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .problem-list {
    grid-template-columns: 1fr;
    max-height: 600px;
  }
  .problem-card {
    min-height: 106px;
    padding: 12px 10px 12px 106px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 6px;
  }
  .problem-info {
    align-items: flex-start;
  }
  .problem-thumbnail {
    position: absolute;
    left: 24px;
    top: 50%;
    width: 72px;
    height: 72px;
    margin: 0;
    border-width: 2px;
    transform: translateY(-50%);
    background-size: 9px 9px;
  }
  .problem-thumbnail .stone {
    width: 9px;
    height: 9px;
  }
  .problem-info p {
    width: 100%;
    margin: 0;
    text-align: left;
  }
  .problem-result {
    width: 100%;
    justify-content: flex-start;
  }
  .problem-detail-panel {
    min-height: 720px;
  }
  .problem-detail-body {
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-rows: minmax(420px, 1fr) auto auto;
    overflow: visible;
  }
  .problem-board {
    width: 100%;
    height: auto;
  }
  .board-mode-toolbar {
    width: 100%;
  }
  .answer-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .stage {
    width: min(100% - 32px, 760px);
  }
  .topbar {
    display: block;
  }
  .top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    margin-top: 14px;
  }
  .view-switcher {
    order: 2;
    justify-content: center;
  }
  .round-switcher {
    order: 1;
    width: auto;
  }
  .problem-layout {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
  }
  .problem-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: 0;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .problem-detail-panel {
    order: 1;
    z-index: 1;
  }
  .problem-panel,
  .problem-detail-panel {
    max-height: none;
    min-height: 0;
    margin-bottom: 14px;
  }
  .problem-panel {
    margin-bottom: 0;
  }
  .problem-panel .problem-summary {
    display: none;
  }
  .mobile-problem-switcher {
    width: 160px;
    min-height: 34px;
    padding: 3px;
    border: 1px solid #a7d2f2;
    border-radius: 999px;
    display: inline-grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 2px 5px rgba(26, 75, 112, 0.12);
    color: #092342;
    font-size: 14px;
    font-weight: 900;
  }
  .mobile-problem-step {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #245f8d;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #2f6d9f;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-problem-step:hover:not(:disabled),
  .mobile-problem-step:focus-visible {
    background: #255f8d;
  }
  .mobile-problem-step:disabled {
    border-color: #c7d8e3;
    color: #7890a2;
    background: #e8f1f7;
    cursor: not-allowed;
  }
  .detail-head .eyebrow {
    display: none;
  }
  .mobile-problem-switcher strong {
    min-width: 0;
    color: inherit;
    font-size: inherit;
    text-align: center;
    white-space: nowrap;
  }
  .problem-panel .pager {
    display: none;
  }
  .problem-panel .problem-list {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 30;
    max-height: min(68vh, 560px);
    padding: 10px;
    border: 2px solid var(--panel-border);
    border-radius: 13px;
    display: none;
    background: rgba(247, 252, 255, 0.98);
    box-shadow: 0 14px 30px rgba(34, 76, 108, 0.24);
    overflow-y: auto;
  }
  .problem-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 460px;
  }
  .problem-card {
    min-height: 0;
    padding: 12px 5px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .problem-info {
    align-items: center;
  }
  .problem-thumbnail {
    position: relative;
    left: auto;
    top: auto;
    width: 122px;
    height: 122px;
    margin: 0 auto;
    border-width: 3px;
    transform: none;
    background-size: 15px 15px;
  }
  .problem-thumbnail .stone {
    width: 13px;
    height: 13px;
  }
  .problem-info p {
    width: auto;
    margin: 5px 0 0;
    text-align: center;
  }
  .problem-result {
    width: 100%;
    justify-content: center;
  }
  .detail-head > div {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 8px;
    white-space: normal;
  }
  .detail-title-row {
    display: contents;
    white-space: normal;
  }
  .detail-title-row h2 {
    grid-column: 2;
    grid-row: 1;
    font-size: 16px;
  }
  .problem-description {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .live-status {
    display: none;
  }
  .problem-detail-body {
    display: block;
    padding: 12px;
  }
  .board-section,
  .answer-overview,
  .fastest-section,
  .records-section {
    margin-bottom: 12px;
  }
  .problem-board {
    width: min(100%, 480px);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
  }
  .board-mode-toolbar {
    width: min(100%, 480px);
  }
  .record-table {
    min-width: 580px;
  }
}
@media (max-width: 700px) {
  .stage {
    width: min(100% - 24px, 520px);
    padding-top: 20px;
  }
  .title h1 {
    flex-wrap: wrap;
    font-size: 24px;
  }
  .layout {
    margin-top: 14px;
  }
  .problem-panel .panel-head,
  .problem-detail-panel .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .problem-board {
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
    background-size: calc((min(100vw - 72px, 360px) - 14px) / 9) calc((min(100vw - 72px, 360px) - 14px) / 9);
  }
  .problem-board::before,
  .problem-board::after {
    display: none;
  }
  .board-mode-toolbar {
    width: min(100%, 360px);
  }
}
@media (max-width: 430px) {
  .stage {
    width: min(100% - 20px, 420px);
    padding-top: 12px;
  }
  .title h1 {
    font-size: 23px;
  }
  .round-switcher button {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }
  .round-current {
    min-width: 64px;
    font-size: 12px;
  }
  .problem-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .problem-list {
    grid-template-columns: 1fr;
  }
  .problem-card {
    min-height: 106px;
    padding: 12px 10px 12px 106px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 6px;
  }
  .problem-info {
    align-items: flex-start;
  }
  .problem-thumbnail {
    position: absolute;
    left: 24px;
    top: 50%;
    width: 72px;
    height: 72px;
    margin: 0;
    border-width: 2px;
    transform: translateY(-50%);
    background-size: 9px 9px;
  }
  .problem-thumbnail .stone {
    width: 9px;
    height: 9px;
  }
  .problem-info p {
    width: 100%;
    margin: 0;
    text-align: left;
  }
  .problem-result {
    width: 100%;
    justify-content: flex-start;
  }
  .problem-result .accuracy {
    font-size: 16px;
  }
  .answer-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .board-mode-button {
    font-size: 11px;
  }
}/*# sourceMappingURL=gamegroup.css.map */