.gr-board {
  --gr-safe-left: var(--game-safe-left, env(safe-area-inset-left, 0px));
  --gr-safe-right: var(--game-safe-right, env(safe-area-inset-right, 0px));
  --gr-safe-top: var(--game-safe-top, env(safe-area-inset-top, 0px));
  --gr-safe-bottom: var(--game-safe-bottom, env(safe-area-inset-bottom, 0px));
  position: fixed !important;
  inset: auto !important;
  top: calc(var(--gr-view-top, 0px) + (var(--gr-view-height, 100dvh) + var(--gr-safe-top) - var(--gr-safe-bottom)) / 2) !important;
  left: calc(var(--gr-view-left, 0px) + (var(--gr-view-width, 100vw) + var(--gr-safe-left) - var(--gr-safe-right)) / 2) !important;
  transform: translate(-50%, -50%) !important;
  width: min(620px, calc(var(--gr-view-width, 100vw) - var(--gr-safe-left) - var(--gr-safe-right) - 24px)) !important;
  max-width: none !important;
  max-height: calc(var(--gr-view-height, 100dvh) - var(--gr-safe-top) - var(--gr-safe-bottom) - 24px) !important;
  min-height: 0 !important;
  height: auto;
  margin: 0 !important;
  padding: 22px !important;
  border: 2px solid #ae9656 !important;
  border-radius: 22px !important;
  background: #162939 !important;
  color: #f8e8a0 !important;
  box-shadow: 0 22px 80px #07172588 !important;
  font: 14px/1.5 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif !important;
  text-align: left !important;
  overflow: hidden !important;
  overscroll-behavior: contain;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.gr-board[open] { display: flex !important; flex-direction: column; gap: 16px; }
.gr-board::backdrop { background: #071b2b9e !important; backdrop-filter: blur(6px); }
.gr-board *, .gr-board *::before, .gr-board *::after { box-sizing: border-box; }
.gr-board [hidden], .gr-board .gr-source, .gr-board .gr-duplicate, .gr-board .gr-unavailable { display: none !important; }
.gr-board .gr-native-panel { display: flex !important; flex: 1 1 auto; flex-direction: column; min-height: 0; gap: 16px; position: static !important; inset: auto !important; width: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; overflow: hidden !important; color: inherit !important; }
.gr-board .gr-header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.gr-board .gr-header h2 { margin: 0 !important; padding: 0 !important; font-size: 24px !important; line-height: 1.3; font-weight: 800; color: #ffe796 !important; letter-spacing: .3px; }
.gr-board .gr-close { display: grid !important; place-items: center; flex: none; width: 40px !important; height: 40px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 1px solid #71836f !important; border-radius: 11px !important; background: #213c4a !important; color: #f7ebae !important; box-shadow: none !important; font: 26px/1 system-ui !important; cursor: pointer; }
.gr-board .gr-content { display: flex; flex-direction: column; gap: 16px; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.gr-board .gr-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #789080 #162939; }
.gr-board .gr-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 14px; padding: 17px 12px; border: 1px solid #71836f; border-radius: 14px; background: #203c4b; text-align: center; }
.gr-board .gr-summary > div { min-width: 0; }
.gr-board .gr-summary small { display: block; margin-bottom: 4px; color: #b5cbb8; font-size: 12px; line-height: 1.4; }
.gr-board .gr-summary strong { display: block; color: #ffe899; font-size: 21px; line-height: 1.3; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gr-board .gr-rules { margin: 0 0 14px; padding: 0 0 12px; border: 0; border-bottom: 1px solid #536d6b; border-radius: 0; background: none; color: #b5cbb8; }
.gr-board .gr-rules > summary { width: max-content; max-width: 100%; margin: auto; padding: 7px 12px; border: 0 !important; border-radius: 8px; background: transparent !important; color: #b5cbb8 !important; box-shadow: none !important; cursor: pointer; font-size: 13px; line-height: 1.5; list-style-position: inside; }
.gr-board .gr-rules > summary:hover { background: #243d47; }
.gr-board .gr-rule-copy { margin: 10px 2px 0 !important; color: #b8ccba !important; font-size: 12px !important; line-height: 1.8 !important; white-space: pre-line; overflow-wrap: anywhere; }
.gr-board .gr-table { width: 100% !important; table-layout: fixed; border-collapse: collapse; margin: 0 !important; background: none !important; color: #f4e6ad !important; }
.gr-board .gr-table th, .gr-board .gr-table td { padding: 12px 8px !important; border: 0; border-bottom: 1px solid #45615e !important; background: transparent; text-align: center !important; font-size: 13px !important; line-height: 1.45; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.gr-board .gr-table th { color: #bbcfb8 !important; font-weight: 700 !important; }
.gr-board .gr-table .gr-position { width: 52px; }
.gr-board .gr-table .gr-nickname { width: 35%; text-align: left !important; }
.gr-board .gr-table .gr-self > td { background: #344f3e !important; color: #ffe58b !important; font-weight: 800; }
.gr-board .gr-empty { padding: 22px 8px; margin: 0 !important; text-align: center; color: #b8ccba !important; font-size: 13px !important; }
.gr-board .gr-footer { flex: none; min-width: 0; }
.gr-board .gr-status { margin: 0 0 9px !important; color: #bfd0ba !important; font-size: 12px !important; line-height: 1.5; overflow-wrap: anywhere; }
.gr-board .gr-status:empty { display: none !important; }
.gr-board .gr-actions { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 8px; margin: 0 !important; padding: 0 !important; }
.gr-board .gr-actions > :is(button,a) { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100% !important; max-width: none !important; min-width: 0 !important; min-height: 40px !important; height: auto !important; padding: 8px 10px !important; margin: 0 !important; border: 1px solid #71836f !important; border-radius: 11px !important; background: #203b48 !important; color: #f4e8b4 !important; box-shadow: none !important; text-decoration: none !important; text-align: center; font: 650 13px/1.4 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif !important; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.gr-board .gr-actions > .gr-primary { grid-column: 1 / -1; grid-row: 1; min-height: 46px !important; border-color: #ffe195 !important; background: #f4d36f !important; color: #172a34 !important; font-weight: 850 !important; box-shadow: inset 0 0 0 2px #ffe79e !important; }
.gr-board .gr-actions > :is(button,a):hover { filter: brightness(1.07); }
.gr-board .gr-actions > button:disabled { opacity: .5; cursor: default; }
.gr-board :is(button,a,summary):focus-visible { outline: 2px solid #ffde87 !important; outline-offset: 2px; }
@media (max-width: 440px) {
 .gr-board { padding: 16px !important; border-radius: 18px !important; }
 .gr-board[open], .gr-board .gr-native-panel, .gr-board .gr-content { gap: 12px; }
 .gr-board .gr-header h2 { font-size: 22px !important; }
 .gr-board .gr-summary { gap: 6px; padding: 14px 6px; }
 .gr-board .gr-summary strong { font-size: 18px; }
 .gr-board .gr-summary small { font-size: 10px; }
 .gr-board .gr-table .gr-position { width: 34px; }
 .gr-board .gr-table .gr-nickname { width: 31%; }
 .gr-board .gr-table th, .gr-board .gr-table td { padding: 11px 4px !important; font-size: 12px !important; }
 .gr-board .gr-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .gr-board .gr-actions > :is(button,a) { font-size: 12px !important; }
}
@media (orientation: landscape) and (max-height: 500px) {
 .gr-board { width: min(680px,calc(var(--gr-view-width,100vw) - var(--gr-safe-left) - var(--gr-safe-right) - 24px)) !important; padding: 12px 16px !important; border-radius: 16px !important; }
 .gr-board[open], .gr-board .gr-native-panel, .gr-board .gr-content { gap: 9px; }
 .gr-board .gr-header { min-height: 32px; }
 .gr-board .gr-header h2 { font-size: 21px !important; }
 .gr-board .gr-close { width: 32px !important; height: 32px !important; font-size: 23px !important; }
 .gr-board .gr-summary { padding: 8px; margin-bottom: 7px; }
 .gr-board .gr-summary small { margin-bottom: 2px; font-size: 10px; }
 .gr-board .gr-summary strong { font-size: 17px; }
 .gr-board .gr-rules { margin-bottom: 5px; padding-bottom: 4px; }
 .gr-board .gr-rules > summary { padding-block: 4px; font-size: 12px; }
 .gr-board .gr-table th, .gr-board .gr-table td { padding: 8px 6px !important; font-size: 12px !important; }
 .gr-board .gr-actions > :is(button,a) { min-height: 31px !important; padding: 5px 8px !important; font-size: 12px !important; }
 .gr-board .gr-actions > .gr-primary { min-height: 36px !important; }
 .gr-board .gr-status { font-size: 11px !important; margin-bottom: 5px !important; }
}
@media (orientation: landscape) and (max-height: 300px) {
 .gr-board { padding: 8px 12px !important; }
 .gr-board[open], .gr-board .gr-native-panel, .gr-board .gr-content { gap: 6px; }
 .gr-board .gr-header { min-height: 27px; }
 .gr-board .gr-header h2 { font-size: 18px !important; }
 .gr-board .gr-close { width: 27px !important; height: 27px !important; }
 .gr-board .gr-summary { padding: 5px; }
 .gr-board .gr-summary strong { font-size: 15px; }
 .gr-board .gr-actions { gap: 5px; }
 .gr-board .gr-actions > :is(button,a) { min-height: 27px !important; }
 .gr-board .gr-actions > .gr-primary { min-height: 31px !important; }
}
:root[data-gr-density="compact"] .gr-board { padding: 8px 12px !important; }
:root[data-gr-density="compact"] .gr-board[open], :root[data-gr-density="compact"] .gr-board .gr-native-panel, :root[data-gr-density="compact"] .gr-board .gr-content { gap: 6px; }
:root[data-gr-density="compact"] .gr-board .gr-header { min-height: 27px; }
:root[data-gr-density="compact"] .gr-board .gr-header h2 { font-size: 18px !important; }
:root[data-gr-density="compact"] .gr-board .gr-close { width: 27px !important; height: 27px !important; }
:root[data-gr-density="compact"] .gr-board .gr-summary { padding: 5px; }
:root[data-gr-density="compact"] .gr-board .gr-summary strong { font-size: 15px; }
:root[data-gr-density="compact"] .gr-board .gr-actions { gap: 5px; }
:root[data-gr-density="compact"] .gr-board .gr-actions > :is(button,a) { min-height: 27px !important; }
:root[data-gr-density="compact"] .gr-board .gr-actions > .gr-primary { min-height: 31px !important; }
