/* =========================================
   Game Common Theme
   只负责「公共布局 & UI 风格」
   ========================================= */

:root {
  /* =====================
     布局
  ===================== */
  --content-width: min(1680px, calc(100vw - 32px));
  --gc-shell-gap: clamp(3px, 0.45vw, 5px);
  --gc-main-row-gap: var(--gc-shell-gap);
  --bottom-bar-height: clamp(56px, 8vh, 72px);
  --game-area-height: calc(100dvh - var(--gc-navbar-footprint) - var(--bottom-bar-height) - var(--gc-main-row-gap) - var(--gc-main-row-gap) - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-bottom, 0px));
  --global-navbar-height: clamp(42px, 5.6vh, 56px);
  --gc-navbar-footprint: calc(var(--global-navbar-height) + env(safe-area-inset-top, 0px));
  --gc-bottom-bar-footprint: calc(var(--bottom-bar-height) + 32px);
  --gc-main-stage-height: var(--game-area-height);
  --gc-side-column-min-width: clamp(220px, 17vw, 300px);
  --gc-side-column-max-width: clamp(240px, 19vw, 320px);
  --gc-game-aspect: 1.6;

  --glass-bg: #E8F4FFB8;
  --glass-blur: blur(8px);
  --glass-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

  /* =====================
     游戏区域
  ===================== */
  --game-area-bg: #fff6dc;

  /* =====================
     文字
  ===================== */
  --text-main: #222;
  --text-sub: #777;
  --text-hover: #5aa9d6;

  /* =====================
     按钮
  ===================== */
  --share-bg: #6fbadf;        /* 马卡龙蓝 */
  --share-bg-hover: #5aa9d6;
  --share-text: #ffffff;

  /* 提交答案按钮（.gc-submit-btn，dragmatch / lexibucket / missingwords 共用） */
  --gc-submit-bg: var(--share-bg);
  --gc-submit-text: #ffffff;
  --gc-submit-radius: 10px;
  --gc-submit-disabled-bg: #cccccc;

  /* =====================
     UI Theme Tokens
  ===================== */
  --gc-game-area-radius: 0px;
  --gc-panel-radius: 0px;
  /* 主面板圆角：随视口自动缩放，最大 10px（不用固定 px） */
  --gc-surface-radius: clamp(6px, 0.65vw, 10px);
  --gc-button-radius: 0px;
  --gc-chip-radius: 8px;
  --gc-choice-option-radius: 16px;
  --gc-choice-selected-outline: rgba(111, 186, 223, 0.95);
  --gc-choice-hint-color: #ff6b6b;
  --gc-choice-answer-badge-radius: 8px;
  --gc-choice-answer-correct-bg: rgba(34, 197, 94, 0.92);
  --gc-choice-answer-wrong-bg: rgba(239, 68, 68, 0.90);
  --gc-choice-answer-badge-text: #ffffff;
  --gc-result-icon-shadow: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.22));
  --gc-result-correct-border: #22c55e;
  --gc-result-wrong-border: #f43f5e;
  --gc-result-badge-size: 22px;
  --gc-result-badge-font-size: 13px;
  --gc-choice-hover-y: -2px;
  --gc-choice-selected-y: -4px;
  --gc-choice-hover-brightness: 0.9;
  --gc-choice-transition-duration: 0.3s;
  --gc-hint-blink-duration: 1.2s;

  /* =====================
     语义前景 token（明暗两套，随 data-gc-lightness 切换）
     --gc-fg 主文字 / --gc-surface 卡片底 / --gc-border 边框
     --gc-accent 强调色（默认粉，由皮肤组通过 JS 覆盖成暖/冷色）
  ===================== */
  --gc-fg: #224058;
  --gc-fg-muted: rgba(34, 64, 88, 0.66);
  --gc-surface: rgba(255, 255, 255, 0.86);
  --gc-surface-strong: rgba(255, 255, 255, 0.95);
  --gc-border: rgba(0, 0, 0, 0.10);
  --gc-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
  --gc-accent: #ff95a5;
  --gc-accent-hover: #ffb3bf;

}

/* 暗色/花色背景（经典深 / 星空 / 海滩 / 日落）：浅色奶油卡片 + 深色文字 */
:root[data-gc-lightness="dark"] {
  --gc-surface: rgba(255, 246, 220, 0.72);
  --gc-surface-strong: rgba(255, 246, 220, 0.88);
  --gc-border: rgba(34, 64, 88, 0.16);
  --gc-shadow: 0 14px 26px rgba(0, 0, 0, 0.20);
}

/* =========================================
   页面基础
   ========================================= */

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-main);

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body.anywb-embed {
  background: transparent;
  overflow: hidden;
}

body.anywb-embed .global-navbar,
body.anywb-embed .top-bar,
body.anywb-embed #topBarMount,
body.anywb-embed #bottomBarMount,
body.anywb-embed .gc-skin-panel,
body.anywb-embed .gc-leaderboard-panel,
body.anywb-embed .game-content-wrapper > :not(.gc-game-row):not(.game-area):not(.game-wrapper):not(.anywb-embed-shell) {
  display: none !important;
}

body.anywb-embed .anywb-embed-shell > :not(.gc-game-row):not(.game-area):not(.game-area-wrapper):not(.gc-side-column) {
  display: none !important;
}

body.anywb-embed .game-content-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.anywb-embed .anywb-embed-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
}

.gc-result-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: var(--gc-result-badge-size);
  height: var(--gc-result-badge-size);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--gc-result-badge-font-size);
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  z-index: 2;
}

.gc-result-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

.gc-result-badge.is-correct {
  background: var(--gc-choice-answer-correct-bg);
}

.gc-result-badge.is-wrong {
  background: var(--gc-choice-answer-wrong-bg);
}

/* 通用 .game-wrapper / .game-area 在 anywb-embed 下强制撑满（所有游戏共享，避免每个游戏都要写一遍） */
body.anywb-embed > .game-wrapper,
body.anywb-embed > :is(.game-content-wrapper, .anywb-embed-shell) > .game-wrapper,
body.anywb-embed .game-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

body.anywb-embed > .game-area,
body.anywb-embed > :is(.game-content-wrapper, .anywb-embed-shell) > .game-area,
body.anywb-embed .game-wrapper > .game-area,
body.anywb-embed .game-content-wrapper > .game-area,
body.anywb-embed .anywb-embed-shell > .game-area,
body.anywb-embed .anywb-embed-shell > .game-area-wrapper,
body.anywb-embed .gc-game-row {
  width: 100%;
  height: 100vh;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

body.anywb-embed {
  --content-width: 100%;
  --game-area-height: 100vh;
}

@supports (height: 100cqb) {
  body.anywb-embed {
    --game-area-height: 100cqb;
  }
}

body.anywb-embed .gc-game-row {
  gap: 0;
}

.game-wrapper {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding:
    calc(var(--gc-navbar-footprint) + var(--gc-main-row-gap))
    0
    env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: calc(
    100dvh
    - env(safe-area-inset-bottom, 0px)
  );
}

.game-wrapper > .gc-game-row {
  margin-top: 0;
  flex: 0 0 auto;
  min-height: 0;
}

.game-wrapper > .bottom-bar,
.game-wrapper > .gc-skin-panel,
.game-wrapper > .gc-leaderboard-panel {
  margin-top: var(--gc-main-row-gap);
}

@keyframes gc-page-pan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none !important;
  }
}

/* =========================================
   Top Bar / Bottom Bar（统一容器）
   ========================================= */

.top-bar,
.bottom-bar {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  margin-block: 0;

  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border-radius: var(--gc-surface-radius);

  box-sizing: border-box;
}

/* ---------- Top Bar ---------- */
.top-bar {
  padding: clamp(6px, 1vh, 10px) clamp(10px, 1.4vw, 14px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: clamp(4px, 0.8vh, 8px);
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.08);
}

.top-bar,
.top-bar .score,
.top-bar .timer,
.top-bar #result,
.top-bar #timer {
  color: #111111 !important;
  text-decoration: none !important;
}

.top-bar-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.top-bar-label {
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.62);
}

.top-bar-value {
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1;
  font-weight: 900;
  color: #111111;
}

.top-bar-extra:empty {
  display: none;
}

.top-bar-extra {
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--gc-chip-radius);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.76);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}

/* ---------- Bottom Bar ---------- */
.bottom-bar {
  min-height: var(--bottom-bar-height);
  padding: clamp(10px, 1.8vh, 14px) clamp(14px, 1.8vw, 24px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gc-shell-gap);
  flex-wrap: wrap;
}

/* =========================================
   Game Area（每个游戏不同内容）
   ========================================= */

.game-area {
  width: min(100%, var(--content-width));
  height: 100%;
  min-height: clamp(320px, 54dvh, var(--game-area-height));
  margin-inline: auto;
  margin-block: 0;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
  overflow: hidden;

  /* 作为 stage 容器，供内部游戏用 cqh（% of game-area 高度）做等比例缩放 */
  container: gc-stage / size;

  background: var(--game-area-bg);
  border-radius: var(--gc-surface-radius);
  box-sizing: border-box;
}

.game-area:fullscreen,
.game-area:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
}

/* 伪全屏（真机 iOS Safari 不支持任意元素的原生 Fullscreen API）：
   .game-area fixed 铺满视口，并隐藏全局导航等 */
.app-pseudo-fullscreen .game-area {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
  z-index: 9999;
}

.app-pseudo-fullscreen {
  overflow: hidden;
  overscroll-behavior: none;
}

/* =========================================
   Fullscreen：右下角“退出全屏”按钮（原生 / 伪全屏共用）
   ========================================= */
.gc-fs-exit {
  position: absolute;
  right: clamp(6px, 1.5vw, 14px);
  bottom: clamp(6px, 1.5vh, 12px);
  z-index: 99999;
  width: 44px;
  width: clamp(38px, 7cqh, 52px);
  height: 44px;
  height: clamp(38px, 7cqh, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
  transition: background 160ms ease, transform 160ms ease;
}
.gc-fs-exit:hover {
  background: rgba(0, 0, 0, 0.62);
  transform: scale(1.06);
}
.gc-fs-exit svg {
  position: absolute;
  left: 18%;
  top: 18%;
  width: 64%;
  height: 64%;
  display: block;
  pointer-events: none;
}
html:not(.app-fullscreen) .gc-fs-exit {
  display: none !important;
}

.game-area > .gc-game-area-inner {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  box-sizing: border-box;
  overflow: hidden;
}

.gc-game-row {
  width: min(100%, var(--content-width));
  height: var(--gc-main-stage-height);
  min-height: var(--gc-main-stage-height);
  max-height: var(--gc-main-stage-height);
  flex: 0 0 auto;
  margin-inline: auto;
  margin-block: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(var(--gc-side-column-min-width), var(--gc-side-column-max-width));
  align-items: stretch;
  column-gap: var(--gc-main-row-gap);
  row-gap: 0;
  box-sizing: border-box;
}

.gc-game-row > * {
  min-height: 0;
}

.gc-game-row .game-area {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  align-self: stretch;
  margin-inline: 0;
  margin-block: 0;
  min-width: 0;
}

.gc-side-column {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: var(--gc-main-row-gap);
  margin-left: 0;
  overflow: hidden;
}

.gc-side-column > .top-bar,
.gc-side-column > .gc-template-panel {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  margin-inline: 0;
  align-self: stretch;
}

.gc-template-panel {
  width: 100%;
  height: auto;
  min-height: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--gc-surface-radius);
  box-sizing: border-box;
  padding: clamp(12px, 1.8vh, 14px);
  display: none;
  overflow: auto;
}

.gc-side-column > .top-bar {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.gc-side-column > .gc-template-panel {
  flex: 1 1 auto;
  height: 100%;
  max-height: 100%;
}

.gc-skin-panel {
  width: min(100%, var(--content-width));
  margin: 0 auto 6px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--gc-surface-radius);
  box-sizing: border-box;
  padding: 10px;
  display: none;
}

.gc-skin-panel .gc-skin-tabs{
  display:flex;
  gap:8px;
  align-items:flex-end;
  margin-bottom:10px;
  flex-wrap:wrap;
  position: relative;
  padding-bottom: 2px;
}
.gc-skin-panel .gc-skin-tabs::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(0,0,0,0.12);
}
.gc-skin-panel .gc-skin-tab{
  border:1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.55);
  color: var(--text-main);
  border-bottom: 0;
  border-top-left-radius: var(--gc-chip-radius);
  border-top-right-radius: var(--gc-chip-radius);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  position: relative;
  top: 1px;
}
.gc-skin-panel .gc-skin-tab[data-selected="true"]{
  background: rgba(255,255,255,0.82);
  box-shadow: 0 -2px 0 0 rgba(0,0,0,0.04) inset, 0 0 0 2px rgba(37, 99, 235, 0.22);
  border-color: var(--share-bg);
  color: #111827;
  z-index: 1;
}
.gc-skin-panel .gc-skin-strip{
  display:flex;
  align-items:stretch;
  gap:8px;
}
.gc-skin-panel .gc-skin-nav{
  width:36px;
  border:1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.60);
  border-radius: var(--gc-chip-radius);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--text-main);
  padding: 0;
}
.gc-skin-panel .gc-skin-nav[disabled]{
  opacity: 0.35;
  cursor: default;
}
.gc-skin-panel .gc-skin-nav svg{
  width:18px;
  height:18px;
  fill: currentColor;
}
.gc-skin-panel .gc-skin-list{
  flex: 1;
  display:flex;
  gap:10px;
  overflow:hidden;
  scroll-behavior:smooth;
  padding: 2px 2px 4px;
}
.gc-skin-panel .gc-skin-item{
  flex: 0 0 auto;
  width: 148px;
  height: 76px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--gc-panel-radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}
.gc-skin-panel .gc-skin-item::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.10);
  opacity: 0;
  transition: opacity 120ms ease;
}
.gc-skin-panel .gc-skin-item:hover::before{
  opacity: 1;
}
.gc-skin-panel .gc-skin-item[data-selected="true"]{
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35), 0 12px 24px rgba(0,0,0,0.14);
}

.gc-leaderboard-panel{
  width: min(100%, var(--content-width));
  margin: 0 auto 6px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--gc-surface-radius);
  box-sizing: border-box;
  padding: 10px 0;
}

.gc-leaderboard-panel .gc-panel-title{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #111827;
  padding: 0 12px 8px 12px;
  margin-bottom: 0;
}

.gc-leaderboard-panel .gc-lb-table{
  padding: 0 12px;
}

.gc-leaderboard-panel .gc-lb-row{
  display: grid;
  grid-template-columns: 52px 1fr 78px 92px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 0px;
}

.gc-leaderboard-panel .gc-lb-head{
  font-size: 11px;
  font-weight: 900;
  color: rgba(17,24,39,0.82);
  background: rgba(0,0,0,0.05);
}

.gc-leaderboard-panel .gc-lb-body .gc-lb-row{
  font-size: 12px;
  font-weight: 700;
  color: rgba(17,24,39,0.92);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.08);
}

.gc-leaderboard-panel .gc-lb-body .gc-lb-row + .gc-lb-row{
  margin-top: 8px;
}

.gc-leaderboard-panel .gc-lb-empty{
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(17,24,39,0.62);
  font-weight: 700;
}

.gc-panel-title {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.gc-panel-list {
  display: grid;
  gap: 8px;
}

.gc-template-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--gc-chip-radius);
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.65);
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  color: var(--text-main);
}

.gc-template-item:hover {
  border-color: rgba(0,0,0,0.22);
}

.gc-template-item:focus,
.gc-template-item:focus-visible {
  outline: none;
}

.gc-template-item[data-selected="true"] {
  border-color: var(--share-bg);
  box-shadow: 0 0 0 2px rgba(111, 186, 223, 0.25);
}

.gc-item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--gc-chip-radius);
  background: rgba(0,0,0,0.05);
  flex: 0 0 auto;
}

.gc-item-label {
  min-width: 0;
}

.gc-skin-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--gc-chip-radius);
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.65);
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  color: var(--text-main);
}

.gc-skin-item[data-selected="true"] {
  border-color: var(--share-bg);
  box-shadow: 0 0 0 2px rgba(111, 186, 223, 0.25);
}

.gc-skin-swatch {
  width: 42px;
  height: 28px;
  border-radius: var(--gc-chip-radius);
  border: 1px solid rgba(0,0,0,0.12);
  flex: 0 0 auto;
}

/* =========================================
   Global Navbar（跨页面导航）
   ========================================= */
.global-navbar:not(.qb-navbar) {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--content-width));
  height: var(--gc-navbar-footprint);
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-inline: clamp(14px, 1.8vw, 18px);

  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border-radius: var(--gc-panel-radius);
}
.global-navbar:not(.qb-navbar) .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-main);
  text-decoration: none;
}
.global-navbar:not(.qb-navbar) .brand:hover{
  color: #fff;
}
.global-navbar:not(.qb-navbar) .brand .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.global-navbar:not(.qb-navbar) .brand .logo svg {
  width: 90%;
  height: 90%;
}
.global-navbar:not(.qb-navbar) .tagline{
  margin-left: 16px;
  color: var(--text-sub);
  font-weight: 400;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-navbar:not(.qb-navbar) .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.global-navbar:not(.qb-navbar) .nav-actions .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: var(--gc-chip-radius);
  font-weight: 400;
  font-size: 12px;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
}
.global-navbar:not(.qb-navbar) .nav-actions .nav-btn:hover {
  background: rgba(255, 255, 255, 0.65);
  color: #6fbadf;
}
.global-navbar:not(.qb-navbar) .nav-actions .user,
.global-navbar:not(.qb-navbar) .nav-actions .user-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--gc-chip-radius);
  background: rgba(0,0,0,0.05);
  color: var(--text-main);
  text-decoration: none;
}
.global-navbar:not(.qb-navbar) .nav-actions .login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25.2px;
  padding: 0 14px;
  border-radius: var(--gc-chip-radius);
  background: #6fbadf;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.global-navbar:not(.qb-navbar) .nav-actions .login-link:hover {
  background: #5ca8d5;
}
.global-navbar:not(.qb-navbar) .nav-actions .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ddd;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.global-navbar:not(.qb-navbar) .nav-actions .avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #FFF6DC;
}
.global-navbar:not(.qb-navbar) .nav-actions .username {
  font-size: 12px;
  font-weight: 400;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 页面在有全局导航时预留顶部间距 */
.with-global-navbar .game-wrapper {
  margin-top: 0;
}

/* 全屏或弹窗打开时隐藏全局导航 */
.app-fullscreen .global-navbar {
  display: none !important;
}

.popup-open .global-navbar {
  display: none !important;
}

/* 移动端导航汉堡按钮 */
.gc-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  padding: 0;
}
.gc-nav-toggle .gc-menu-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 16px;
  gap: 4px;
}
.gc-nav-toggle .gc-menu-icon span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
}
.gc-nav-toggle .gc-menu-icon span:nth-child(2) {
  width: 70%;
  align-self: flex-end;
}
.gc-nav-toggle .gc-close-icon {
  display: none;
  width: 20px;
  height: 20px;
}
.global-navbar:not(.qb-navbar).gc-nav-open .gc-nav-toggle .gc-menu-icon {
  display: none;
}
.global-navbar:not(.qb-navbar).gc-nav-open .gc-nav-toggle .gc-close-icon {
  display: block;
}

/* 移动端导航下拉面板 */
.gc-nav-drawer {
  position: fixed;
  top: var(--gc-navbar-footprint);
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--content-width));
  max-height: calc(100dvh - var(--gc-navbar-footprint) - 8px);
  overflow-y: auto;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border-radius: var(--gc-panel-radius);
  padding: 10px;
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  z-index: 10000;
}
.global-navbar:not(.qb-navbar).gc-nav-open + .gc-nav-drawer,
body.gc-nav-open .gc-nav-drawer {
  display: flex;
}
.gc-nav-drawer .gc-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--gc-chip-radius);
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
}
.gc-nav-drawer .gc-nav-btn:hover {
  background: rgba(0,0,0,0.06);
}
.gc-nav-drawer .gc-nav-user {
  margin-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 6px;
}

/* =========================================
   Timer / Score（通用）
   ========================================= */

.game-timer {
  font-size: 16px;
  font-weight: 600;
}

/* =========================================
   Bottom Bar - 左侧信息
   ========================================= */

.game-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.game-title,
.bottom-bar .game-title,
:root[data-gc-skin="wordwall"] .bottom-bar .game-title {
  font-size: 18px;
  font-weight: 600;
  cursor: text;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  caret-color: #111111;
  opacity: 1 !important;
  text-shadow: none !important;
  border-radius: 0;
  transition: box-shadow 0.16s ease, background-color 0.16s ease;
}

.game-title[contenteditable="true"]:focus,
.bottom-bar .game-title[contenteditable="true"]:focus,
:root[data-gc-skin="wordwall"] .bottom-bar .game-title[contenteditable="true"]:focus {
  outline: none;
  border-radius: 0;
  box-shadow: 0 0 0 1px #60a5fa;
  background: rgba(96, 165, 250, 0.08);
}

.game-title::selection,
.bottom-bar .game-title::selection,
:root[data-gc-skin="wordwall"] .bottom-bar .game-title::selection {
  color: #111111;
  -webkit-text-fill-color: #111111;
  background: rgba(59, 130, 246, 0.18);
}

.game-title::-moz-selection,
.bottom-bar .game-title::-moz-selection,
:root[data-gc-skin="wordwall"] .bottom-bar .game-title::-moz-selection {
  color: #111111;
  background: rgba(59, 130, 246, 0.18);
}

.game-author {
  font-size: 12px;
  color: var(--text-sub);
}

/* =========================================
   Bottom Bar - 右侧操作区
   ========================================= */

.game-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

 
/* =========================
   Action Buttons（无边框）
========================= */

.action-group {
  display: flex;
  gap: 10px;
}

.action-btn {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(111, 186, 223, 0.28);
  border-radius: 10px;
  background: rgba(255,255,255,0.66);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);

  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;

  font-size: 14px;
  font-weight: 600;
  color: #38506a;
  cursor: pointer;

  transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
  color: #28445e;
  border-color: rgba(90, 169, 214, 0.48);
  background: rgba(255,255,255,0.82);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.action-btn[hidden] {
  display: none !important;
}

.action-btn .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.action-btn .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
}

.gc-action-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

#btn-like .dashicons {
  color: #98a2b3;
}

#btn-like[data-liked="true"] {
  color: var(--text-sub);
}

#btn-like[data-liked="true"] .dashicons {
  color: #e11d48;
}

#btn-like:disabled {
  opacity: 0.85;
}

/* =========================
   Share Button（强调）
========================= */

.share-btn {
  min-height: 38px;
  margin-top: 0;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(90, 169, 214, 0.3);

  background: var(--share-bg);
  color: var(--share-text);

  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 16px rgba(90, 169, 214, 0.2);

  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 12px 20px rgba(90, 169, 214, 0.26);
}

.share-btn .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Submit Button（提交答案，各游戏共用）
   使用方：dragmatch / lexibucket / missingwords
   禁用态由 JS 加 disabled 属性或 .submitted 类触发
========================= */
.gc-submit-btn {
  appearance: none;
  -webkit-appearance: none;
  min-width: clamp(92px, calc(15cqh), 126px);
  min-height: clamp(28px, calc(5.25cqh), 42px);
  margin: 0;
  padding: clamp(4px, calc(0.875cqh), 7px) clamp(10px, calc(2.25cqh), 18px);
  border: 1px solid transparent;
  border-radius: var(--gc-submit-radius);
  background: var(--gc-submit-bg);
  color: var(--gc-submit-text);
  font-size: clamp(11px, calc(1.875cqh), 15px);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(90, 169, 214, 0.22);
  transition: opacity 0.2s, transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.gc-submit-btn:hover:not(:disabled):not(.submitted) {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(90, 169, 214, 0.26);
}

.gc-submit-btn:active:not(:disabled):not(.submitted) {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(90, 169, 214, 0.18);
}

/* 已提交 / 禁用：统一灰底，不再出现位移、阴影与 hover 反馈 */
.gc-submit-btn:disabled,
.gc-submit-btn.submitted {
  cursor: not-allowed;
  background: var(--gc-submit-disabled-bg);
  box-shadow: none;
  transform: none;
  opacity: 1;
  pointer-events: none;
}

/* =========================
   More 按钮 + 下拉面板
========================= */
.gc-more-btn {
  display: none;
  position: relative;
}
.gc-more-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10010;
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
  padding: 8px;
  border-radius: var(--gc-panel-radius);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}
.gc-more-panel .action-btn {
  width: 100%;
  justify-content: flex-start;
}
.bottom-bar.gc-more-open .gc-more-panel {
  display: flex;
}

/* 横屏（iPhone/iPad 横屏）底部更窄，下拉朝上贴 More 按钮上沿展示，避免超出屏幕底部 */
@media (max-width: 1100px) and (orientation: landscape) {
  .gc-more-panel {
    top: auto;
    bottom: calc(100% + 6px);
    max-height: min(60vh, 320px);
    overflow-y: auto;
  }
}

/* =========================================
   Pagination（通用分页）
   ========================================= */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    position: relative;
    color: #386484;
}

/* 深色背景：分页文字浅色 */
:root[data-gc-lightness="dark"] .pagination-container {
    color: #fff6dc;
}

/* 计数器文字样式 */
.page-counter {
    font-size: 1.2rem;
    font-weight: 600;
    color: inherit;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-counter .separator {
    font-size: 1rem;
    color: inherit;
    font-weight: normal;
}

/* 按钮基础样式 */
.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-btn .icon {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

/* 状态 1: Available */
.nav-btn:not(:disabled) {
    color: var(--share-bg);
}

.nav-btn:not(:disabled):hover {
    transform: scale(1.1);
    background: transparent;
    box-shadow: none;
}

.nav-btn:not(:disabled):active {
    transform: scale(0.9);
}

/* 状态 2: Disabled */
.nav-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 禁用态：hover/active/focus 一律不出现背景、阴影与缩放，图标保持灰色 */
.nav-btn:disabled:hover,
.nav-btn:disabled:active,
.nav-btn:disabled:focus {
    transform: none;
    background: transparent;
    box-shadow: none;
    color: #ccc;
}

/* 进度条 */
.auto-next-progress {
    width: 100%;
    height: 4px;
    background-color: #eee;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.auto-next-progress.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--share-bg);
    animation: progress 3s linear forwards;
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}


:root[data-gc-template="wide"] {
  --content-width: min(1820px, calc(100vw - 24px));
}

:root[data-gc-template="compact"] {
  --content-width: min(1400px, calc(100vw - 40px));
}

@keyframes gc-theme-enter-beach {
  from { transform: translateY(12px) scale(0.94); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes gc-theme-enter-plants {
  from { transform: scale(1.18); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes gc-theme-enter-starlight {
  0% { transform: scale(0.92); opacity: 0; filter: brightness(1.35); }
  100% { transform: scale(1); opacity: 1; filter: brightness(1); }
}

.game-area.gc-theme-enter-active .card-container {
  will-change: transform, opacity, filter;
}

:root[data-gc-skin-theme="beach"] .game-area.gc-theme-enter-active .card-container {
  animation: gc-theme-enter-beach 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

:root[data-gc-skin-theme="plants"] .game-area.gc-theme-enter-active .card-container {
  animation: gc-theme-enter-plants 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

:root[data-gc-skin-theme="starlight"] .game-area.gc-theme-enter-active .card-container {
  animation: gc-theme-enter-starlight 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

:root[data-gc-skin-theme="classic"] .game-area.gc-theme-enter-active .card-container {
  animation: gc-theme-enter-beach 260ms ease-out both;
}

.game-area.gc-theme-enter-active .card-container:nth-child(6n + 1) { animation-delay: 0ms; }
.game-area.gc-theme-enter-active .card-container:nth-child(6n + 2) { animation-delay: 40ms; }
.game-area.gc-theme-enter-active .card-container:nth-child(6n + 3) { animation-delay: 80ms; }
.game-area.gc-theme-enter-active .card-container:nth-child(6n + 4) { animation-delay: 120ms; }
.game-area.gc-theme-enter-active .card-container:nth-child(6n + 5) { animation-delay: 160ms; }
.game-area.gc-theme-enter-active .card-container:nth-child(6n + 6) { animation-delay: 200ms; }


.gc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gc-modal {
  width: 420px;
  max-width: calc(100% - 24px);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 14px;
  box-sizing: border-box;
  color: var(--text-main);
}

.gc-modal-title {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}

.gc-modal-desc {
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.gc-modal-actions {
  display: grid;
  gap: 10px;
}

.gc-modal-btn {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
  color: var(--text-main);
  text-align: left;
}

.gc-modal-btn.gc-primary {
  border-color: var(--share-bg);
  box-shadow: 0 0 0 2px rgba(111, 186, 223, 0.25);
}

.gc-modal-btn.gc-ghost {
  background: transparent;
}

.gc-pinyin-floating {
  position: fixed;
  top: 12px;
  left: 12px;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 14px;
  border-radius: 14px;
  background: var(--primary, #7acbdc);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
  z-index: 10000;
}

.gc-pinyin-floating.hidden {
  display: none;
}

.gc-pinyin-floating__title {
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
}

.gc-pinyin-floating__hint {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.gc-pinyin-floating__keys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gc-pinyin-floating__key {
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}

.gc-pinyin-floating__key:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.28);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

@media (max-width: 960px) {
  .gc-pinyin-floating {
    width: min(320px, calc(100vw - 24px));
  }
}

@media (max-width: 1100px) {
  :root {
    --content-width: min(100vw - 24px, 1400px);
  }

  .gc-game-row {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .gc-game-row .game-area {
    height: auto;
    max-width: none;
    aspect-ratio: var(--gc-game-aspect);
    align-self: center;
    margin-inline: auto;
  }

  .gc-side-column,
  .gc-side-column > .top-bar,
  .gc-side-column > .gc-template-panel,
  .game-wrapper > .gc-skin-panel {
    display: none !important;
  }

  /* 移动/平板纵屏：导航栏占满屏宽，折叠按钮集合成汉堡菜单 */
  .gc-nav-toggle {
    display: flex;
  }
  .global-navbar:not(.qb-navbar) .tagline,
  .global-navbar:not(.qb-navbar) .nav-actions {
    display: none;
  }

  /* 移动/平板纵屏：bottom-bar 只留 restart + share + more，其余进 more 下拉 */
  .bottom-bar {
    position: relative;
  }
  #btn-edit,
  #btn-mute,
  #btn-fullscreen {
    display: none !important;
  }
  .gc-more-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 720px) {
  :root {
    --content-width: calc(100vw - 16px);
    --global-navbar-height: 44px;
    --bottom-bar-height: clamp(88px, 20dvh, 140px);
    --gc-bottom-bar-footprint: 88px;
  }

  .game-wrapper {
    padding-top: calc(var(--gc-navbar-footprint) + var(--gc-main-row-gap));
  }

  .global-navbar:not(.qb-navbar) {
    width: 100vw;
    left: 0;
    transform: none;
    border-radius: 0;
  }

  .gc-nav-drawer {
    width: 100vw;
    left: 0;
    transform: none;
    border-radius: 0;
  }

  .global-navbar:not(.qb-navbar) .tagline {
    display: none;
  }

  .gc-skin-panel {
    display: none !important;
  }

  .gc-leaderboard-panel {
    width: calc(100vw - 16px);
    margin-inline: auto;
  }

  .gc-leaderboard-panel .gc-lb-table {
    padding: 0 6px;
  }

  .gc-leaderboard-panel .gc-lb-row {
    grid-template-columns: minmax(36px, 0.5fr) minmax(0, 1.4fr) minmax(52px, 0.8fr) minmax(56px, 1fr);
    gap: 4px;
    padding: 6px 4px;
    font-size: 11px;
  }

  .top-bar,
  .bottom-bar,
  .gc-template-panel,
  .gc-skin-panel,
  .gc-leaderboard-panel {
    border-radius: 12px;
  }

  .top-bar,
  .gc-template-panel {
    height: auto;
    min-height: 0;
  }

  .bottom-bar {
    align-items: stretch;
  }

  .game-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .game-actions .action-group {
    flex: 0 0 auto;
  }
}

/* =========================================
   白板远程指针（viewer 端渲染，跟随 player 鼠标）
   ========================================= */
.gc-wb-pointer {
  position: fixed;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
  border: 2px solid var(--gc-wb-pointer-color, rgba(255, 80, 120, 0.92));
  background: radial-gradient(circle, rgba(255, 80, 120, 0.35) 0 32%, transparent 33%);
  box-shadow: 0 0 12px var(--gc-wb-pointer-glow, rgba(255, 80, 120, 0.55));
  z-index: 9999;
  will-change: left, top, opacity;
}

.gc-wb-pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: currentColor;
}

/* =========================================
   Game Area 门控（整体淡入，避免元素逐个冒出）
   状态：boot(默认隐藏) -> ready(整体淡入)
   预留：waiting(等待壳/loading) 等扩展状态
   使用：HTML 上给 .game-area 加 data-gc-gate="boot"，
        首帧渲染完成后 JS 调 gcUpdateGameAreaGate("ready")。
   ========================================= */
.game-area[data-gc-gate="boot"] {
  opacity: 0;
  pointer-events: none;
}

.game-area[data-gc-gate="ready"] {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 220ms ease;
}

.game-area[data-gc-gate="waiting"] {
  opacity: 0;
  pointer-events: none;
}
