:root {
  --gf-bg: #f5f6f2;
  --gf-surface: #ffffff;
  --gf-surface-soft: #fafbf8;
  --gf-ink: #14201c;
  --gf-muted: #5c6964;
  --gf-line: #d7ded9;
  --gf-line-strong: #bcc8c2;
  --gf-green: #146b50;
  --gf-green-soft: #e7f4ee;
  --gf-gold: #b97712;
  --gf-gold-dark: #875406;
  --gf-gold-soft: #fff4d8;
  --gf-red: #b62c37;
  --gf-red-soft: #feecee;
  --gf-shadow: 0 18px 44px rgba(21, 45, 37, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--gf-bg);
  scroll-behavior: smooth;
}

body.gf-page {
  min-height: 100vh;
  margin: 0;
  color: var(--gf-ink);
  background:
    radial-gradient(circle at 5% 0%, rgba(217, 172, 73, 0.11), transparent 26rem),
    radial-gradient(circle at 96% 4%, rgba(38, 126, 96, 0.08), transparent 28rem),
    var(--gf-bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(20, 107, 80, 0.48);
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: var(--gf-green);
}

.gf-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;
}

[hidden] {
  display: none !important;
}

.gf-appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1280px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  padding: 12px 0;
  background: rgba(245, 246, 242, 0.96);
  border-bottom: 1px solid rgba(215, 222, 217, 0.86);
}

.gf-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.gf-logo {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--gf-gold);
  box-shadow: 0 9px 18px rgba(185, 119, 18, 0.22);
  font: 800 24px/1 Georgia, "Times New Roman", serif;
}

.gf-brand > span:last-child {
  display: grid;
  min-width: 0;
}

.gf-brand strong {
  overflow: hidden;
  font: 800 21px/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gf-brand small {
  margin-top: 3px;
  color: var(--gf-muted);
  font-size: 12px;
  font-weight: 700;
}

.gf-topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-left: auto;
}

.gf-topnav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #345047;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.gf-topnav a:hover {
  border-color: var(--gf-line);
  background: #fff;
}

.gf-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 58px;
}

.gf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--gf-line);
  border-radius: 20px;
  background: var(--gf-surface);
  box-shadow: var(--gf-shadow);
}

.gf-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5.3vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.gf-hero-copy p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--gf-muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
}

.gf-hero-actions {
  display: grid;
  width: min(300px, 100%);
  gap: 10px;
}

.gf-primary-button,
.gf-gold-button,
.gf-secondary-button,
.gf-quiet-button,
.gf-danger-button,
.gf-back-button,
.gf-speak-button {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.gf-primary-button,
.gf-gold-button {
  display: grid;
  gap: 3px;
  justify-items: start;
  padding: 12px 16px;
  color: #fff;
  border: 0;
  text-align: left;
}

.gf-primary-button {
  background: var(--gf-green);
  box-shadow: 0 10px 22px rgba(20, 107, 80, 0.18);
}

.gf-gold-button {
  background: var(--gf-gold);
  box-shadow: 0 10px 22px rgba(185, 119, 18, 0.20);
}

.gf-primary-button span,
.gf-gold-button span {
  font-size: 16px;
}

.gf-primary-button small,
.gf-gold-button small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 650;
}

.gf-primary-button:hover,
.gf-gold-button:hover,
.gf-secondary-button:hover,
.gf-quiet-button:hover,
.gf-danger-button:hover {
  transform: translateY(-1px);
}

.gf-primary-button:hover {
  background: #0f5a43;
}

.gf-gold-button:hover {
  background: #9e6510;
}

.gf-secondary-button,
.gf-quiet-button,
.gf-danger-button {
  padding: 0 15px;
  border: 1px solid var(--gf-line-strong);
  background: #fff;
}

.gf-secondary-button {
  color: var(--gf-green);
  border-color: #9bc9b7;
  background: var(--gf-green-soft);
}

.gf-quiet-button {
  color: #365148;
}

.gf-danger-button {
  color: var(--gf-red);
  border-color: #e4b7bc;
  background: #fff9f9;
}

.gf-quiet-button:hover,
.gf-secondary-button:hover {
  border-color: #70ad96;
  color: var(--gf-green);
}

.gf-danger-button:hover {
  border-color: #ce7f87;
  background: var(--gf-red-soft);
}

.gf-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  gap: 18px;
  margin-top: 18px;
}

.gf-panel {
  border: 1px solid var(--gf-line);
  border-radius: 18px;
  background: var(--gf-surface);
  box-shadow: 0 10px 28px rgba(21, 45, 37, 0.065);
}

.gf-import-panel,
.gf-settings-panel {
  padding: 24px;
}

.gf-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.gf-section-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.gf-section-heading p {
  margin: 6px 0 0;
  color: var(--gf-muted);
  font-size: 13px;
  line-height: 1.55;
}

.gf-section-heading code {
  padding: 2px 5px;
  border: 1px solid #d8e1dc;
  border-radius: 6px;
  color: #31483f;
  background: #f7faf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.gf-count-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #e0c589;
  border-radius: 999px;
  color: var(--gf-gold-dark);
  background: var(--gf-gold-soft);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.gf-paste-area {
  display: block;
  width: 100%;
  min-height: 214px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid var(--gf-line-strong);
  border-radius: 13px;
  color: var(--gf-ink);
  background: #fbfcfb;
  font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none;
}

.gf-paste-area:focus {
  border-color: #6cad96;
  box-shadow: 0 0 0 4px rgba(20, 107, 80, 0.12);
}

.gf-button-row,
.gf-wordbank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.gf-inline-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--gf-muted);
  font-size: 12px;
  line-height: 1.55;
}

.gf-inline-message[data-tone="error"] {
  color: var(--gf-red);
}

.gf-inline-message[data-tone="success"] {
  color: var(--gf-green);
}

.gf-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.gf-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #32483f;
  font-size: 13px;
  font-weight: 800;
}

.gf-field input[type="number"],
.gf-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--gf-line-strong);
  border-radius: 11px;
  color: var(--gf-ink);
  background: #fbfcfb;
  outline: none;
}

.gf-field input[type="number"]:focus,
.gf-field select:focus {
  border-color: #6cad96;
  box-shadow: 0 0 0 4px rgba(20, 107, 80, 0.12);
}

.gf-range-field {
  grid-column: 1 / -1;
}

.gf-range-field > span {
  display: flex;
  justify-content: space-between;
}

.gf-range-field output {
  color: var(--gf-gold-dark);
}

.gf-range-field input {
  width: 100%;
  accent-color: var(--gf-gold);
}

.gf-language-field {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 13px;
  border: 1px solid var(--gf-line);
  border-radius: 12px;
  color: #32483f;
  font-size: 13px;
  font-weight: 800;
}

.gf-language-field legend {
  padding: 0 5px;
}

.gf-language-field label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gf-language-field input {
  accent-color: var(--gf-green);
}

.gf-switch-row {
  display: flex;
  grid-column: 1 / -1;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid var(--gf-line);
  border-radius: 12px;
  background: var(--gf-surface-soft);
}

.gf-switch-row input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--gf-green);
}

.gf-switch-row span {
  display: grid;
  gap: 3px;
}

.gf-switch-row b {
  color: #2e463d;
  font-size: 13px;
}

.gf-switch-row small {
  color: var(--gf-muted);
  font-size: 11px;
}

.gf-wordbank-panel {
  margin-top: 18px;
  padding: 24px;
}

.gf-wordbank-heading {
  align-items: center;
}

.gf-wordbank-actions {
  margin: 0;
  justify-content: flex-end;
}

.gf-bank-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 11px 0 13px;
  border-top: 1px solid var(--gf-line);
  color: var(--gf-muted);
  font-size: 12px;
}

.gf-bank-meta b {
  color: var(--gf-green);
  font-size: 15px;
}

.gf-word-list {
  display: grid;
  gap: 8px;
}

.gf-empty-state {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 28px;
  border: 1px dashed var(--gf-line-strong);
  border-radius: 14px;
  color: var(--gf-muted);
  background: #fbfcfb;
  text-align: center;
}

.gf-empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gf-ink);
  font-size: 17px;
}

.gf-word-row {
  display: grid;
  grid-template-columns: 54px minmax(150px, 0.75fr) minmax(240px, 1.55fr) minmax(130px, 0.7fr) 42px;
  gap: 9px;
  align-items: stretch;
  padding: 9px;
  border: 1px solid var(--gf-line);
  border-radius: 13px;
  background: #fcfdfb;
}

.gf-row-number {
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--gf-gold-dark);
  background: var(--gf-gold-soft);
  font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gf-word-row input,
.gf-word-row textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #dbe2de;
  border-radius: 9px;
  color: var(--gf-ink);
  background: #fff;
  outline: none;
  font-size: 13px;
  line-height: 1.45;
}

.gf-word-row input:focus,
.gf-word-row textarea:focus {
  border-color: #78b59f;
  box-shadow: 0 0 0 3px rgba(20, 107, 80, 0.10);
}

.gf-word-row input[data-field="word"] {
  font-weight: 850;
}

.gf-word-row textarea {
  resize: vertical;
}

.gf-delete-word {
  display: grid;
  width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid #e7c2c6;
  border-radius: 10px;
  color: var(--gf-red);
  background: #fffafa;
  font-size: 18px;
  font-weight: 700;
}

.gf-delete-word:hover {
  background: var(--gf-red-soft);
}

.gf-game-shell {
  width: min(1500px, calc(100% - 28px));
  min-height: calc(100vh - 28px);
  margin: 14px auto;
}

.gf-game-header {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 10px 14px;
  border: 1px solid var(--gf-line);
  border-radius: 16px;
  background: var(--gf-surface);
  box-shadow: 0 8px 24px rgba(21, 45, 37, 0.07);
}

.gf-game-title-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.gf-game-title-block > div {
  display: grid;
  gap: 2px;
}

.gf-game-title-block strong {
  font-size: 15px;
}

.gf-game-title-block span {
  color: var(--gf-muted);
  font-size: 11px;
}

.gf-back-button {
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--gf-line);
  color: var(--gf-ink);
  background: #fff;
  font-size: 21px;
}

.gf-game-stats {
  display: flex;
  gap: 9px;
  margin-left: auto;
}

.gf-game-stats > div {
  display: grid;
  min-width: 94px;
  gap: 2px;
  padding: 7px 11px;
  border: 1px solid var(--gf-line);
  border-radius: 11px;
  background: var(--gf-surface-soft);
}

.gf-game-stats span {
  color: var(--gf-muted);
  font-size: 10px;
  font-weight: 750;
}

.gf-game-stats b {
  color: var(--gf-ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.gf-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-height: calc(100vh - 112px);
  margin-top: 14px;
}

.gf-game-layout.is-teacher {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.gf-game-layout:not(.is-teacher) .gf-prompt-panel {
  min-height: 280px;
}

.gf-game-layout:not(.is-teacher) .gf-clue {
  min-height: 104px;
  font-size: clamp(28px, 3.4vw, 52px);
}

.gf-prompt-panel,
.gf-board-panel {
  border: 1px solid var(--gf-line);
  border-radius: 17px;
  background: var(--gf-surface);
  box-shadow: 0 8px 26px rgba(21, 45, 37, 0.065);
}

.gf-prompt-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 24px;
}

.gf-prompt-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gf-muted);
  font-size: 12px;
  font-weight: 800;
}

.gf-speak-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d7c18d;
  color: var(--gf-gold-dark);
  background: var(--gf-gold-soft);
  font-size: 12px;
}

.gf-timer-track {
  width: 100%;
  height: 10px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ece9;
}

.gf-timer-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--gf-green);
  transform-origin: left center;
  transition: background 180ms ease;
}

.gf-time-left {
  margin: 8px 0 0;
  color: var(--gf-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.gf-clue {
  display: grid;
  flex: 1;
  min-height: 210px;
  align-content: center;
  margin: 22px 0;
  color: var(--gf-ink);
  font: 700 clamp(30px, 4.2vw, 62px)/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.gf-clue[data-language="cn"] {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.gf-teacher-note {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid #e2ca91;
  border-radius: 11px;
  color: #6e4b0f;
  background: var(--gf-gold-soft);
  font-size: 12px;
  line-height: 1.55;
}

.gf-round-feedback {
  min-height: 25px;
  margin: auto 0 0;
  color: var(--gf-muted);
  font-size: 14px;
  font-weight: 800;
}

.gf-round-feedback[data-tone="correct"] {
  color: var(--gf-green);
}

.gf-round-feedback[data-tone="wrong"],
.gf-round-feedback[data-tone="timeout"] {
  color: var(--gf-red);
}

.gf-board-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 18px;
}

.gf-board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 4px 13px;
}

.gf-board-heading h2 {
  margin: 0;
  font-size: 17px;
}

.gf-board-heading span {
  color: var(--gf-muted);
  font-size: 12px;
  font-weight: 750;
}

.gf-board {
  display: grid;
  flex: 1;
  min-height: 0;
  gap: 12px;
}

.gf-board[data-count="2"],
.gf-board[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gf-board[data-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gf-board[data-count="8"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gf-board[data-count="10"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gf-word-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 108px;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  border: 2px solid #cfd8d3;
  border-radius: 16px;
  color: #111a17;
  background: #f8faf8;
  box-shadow: 0 7px 0 #e4e9e6;
  font: 800 clamp(25px, 3.2vw, 52px)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  text-align: center;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.gf-word-card:hover:not(:disabled) {
  border-color: #80b9a4;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 9px 0 #dce5e0;
}

.gf-word-card:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #dce5e0;
}

.gf-word-card.is-correct {
  color: #fff;
  border-color: #0d664a;
  background: var(--gf-green);
  box-shadow: 0 7px 0 #0b503b;
  animation: gf-correct-pop 260ms ease-out;
}

.gf-word-card.is-wrong {
  color: #fff;
  border-color: #8f1f29;
  background: var(--gf-red);
  box-shadow: 0 7px 0 #7b1b24;
  animation: gf-wrong-shake 330ms ease-in-out;
}

.gf-word-card.is-dimmed {
  color: #75817c;
  border-color: #dfe5e1;
  background: #f1f4f2;
  box-shadow: 0 5px 0 #e4e8e6;
  opacity: 0.62;
}

.gf-word-card:disabled {
  cursor: default;
}

@keyframes gf-correct-pop {
  0% { transform: scale(0.96); }
  65% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

@keyframes gf-wrong-shake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-7px); }
  44% { transform: translateX(7px); }
  66% { transform: translateX(-4px); }
  82% { transform: translateX(3px); }
}

.gf-projector-shell {
  display: grid;
  grid-template-rows: auto 8px minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  color: #101815;
  background: #f8faf8;
}

.gf-projector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 3vw, 54px) 14px;
}

.gf-projector-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.gf-projector-brand .gf-logo {
  width: clamp(48px, 4vw, 68px);
  height: clamp(48px, 4vw, 68px);
  border-radius: 18px;
  font-size: clamp(27px, 2.4vw, 39px);
}

.gf-projector-brand > div {
  display: grid;
  gap: 2px;
}

.gf-projector-brand strong {
  font: 800 clamp(22px, 2vw, 34px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}

.gf-projector-brand span {
  color: var(--gf-muted);
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 750;
}

.gf-projector-score {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
  color: var(--gf-muted);
  font-size: clamp(14px, 1.25vw, 20px);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.gf-projector-score b {
  color: var(--gf-ink);
  font-size: 1.18em;
}

.gf-projector-timer {
  overflow: hidden;
  background: #e5ebe7;
}

.gf-projector-timer span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gf-green);
  transform-origin: left center;
}

.gf-projector-board-wrap {
  display: grid;
  min-height: 0;
  padding: clamp(14px, 2vw, 30px) clamp(16px, 2.5vw, 44px) clamp(20px, 3vw, 46px);
}

.gf-projector-board {
  flex: 1;
  min-height: 0;
  gap: clamp(12px, 1.3vw, 24px);
}

.gf-projector-board .gf-word-card {
  min-height: 0;
  padding: clamp(14px, 2vw, 34px);
  border-width: 3px;
  border-radius: clamp(18px, 1.8vw, 28px);
  box-shadow: 0 10px 0 #e0e6e2;
  font-size: clamp(34px, 4vw, 82px);
}

.gf-projector-board .gf-word-card:hover:not(:disabled) {
  box-shadow: 0 12px 0 #dbe4df;
}

.gf-projector-board .gf-word-card.is-correct {
  box-shadow: 0 10px 0 #0b503b;
}

.gf-projector-board .gf-word-card.is-wrong {
  box-shadow: 0 10px 0 #7b1b24;
}

.gf-projector-message {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vw, 42px);
  z-index: 3;
  min-height: 44px;
  margin: 0;
  padding: 10px 20px;
  border: 1px solid rgba(16, 24, 21, 0.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 32, 28, 0.90);
  font-size: clamp(15px, 1.2vw, 21px);
  font-weight: 850;
  transform: translateX(-50%);
  white-space: nowrap;
}

.gf-projector-message:empty {
  display: none;
}

.gf-projector-message[data-tone="correct"] {
  background: rgba(15, 108, 76, 0.94);
}

.gf-projector-message[data-tone="wrong"],
.gf-projector-message[data-tone="timeout"] {
  background: rgba(170, 40, 51, 0.94);
}

.gf-result-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: min(88vh, 800px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  color: var(--gf-ink);
  background: transparent;
}

.gf-result-dialog::backdrop {
  background: rgba(10, 17, 14, 0.62);
}

.gf-result-card {
  display: grid;
  max-height: min(88vh, 800px);
  padding: 28px;
  overflow: auto;
  border: 1px solid var(--gf-line);
  border-radius: 20px;
  background: #fff;
}

.gf-result-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: var(--gf-gold);
  font: 800 25px/1 Georgia, "Times New Roman", serif;
}

.gf-result-card h2 {
  margin: 17px 0 0;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.04em;
}

.gf-result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.gf-result-stats > div {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--gf-line);
  border-radius: 13px;
  background: var(--gf-surface-soft);
}

.gf-result-stats span {
  color: var(--gf-muted);
  font-size: 12px;
  font-weight: 750;
}

.gf-result-stats strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.gf-result-review {
  margin-top: 24px;
}

.gf-result-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gf-line);
}

.gf-result-section-head h3 {
  margin: 0;
  font-size: 18px;
}

.gf-result-section-head span {
  color: var(--gf-muted);
  font-size: 12px;
  font-weight: 750;
}

.gf-review-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.gf-review-empty {
  padding: 18px;
  border-radius: 12px;
  color: var(--gf-green);
  background: var(--gf-green-soft);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.gf-review-item {
  display: grid;
  grid-template-columns: 44px minmax(100px, 0.5fr) minmax(0, 1.5fr);
  gap: 11px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--gf-line);
  border-radius: 12px;
  background: #fcfdfb;
}

.gf-review-item > b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #8b252d;
  background: var(--gf-red-soft);
  font-size: 12px;
}

.gf-review-item strong {
  font: 800 18px/1.2 Georgia, "Times New Roman", serif;
}

.gf-review-item p {
  margin: 0;
  color: var(--gf-muted);
  font-size: 12px;
  line-height: 1.55;
}

.gf-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.gf-result-actions button {
  flex: 1 1 170px;
}

.gf-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid #b9c7c0;
  border-radius: 12px;
  color: #fff;
  background: #1d2c26;
  box-shadow: 0 16px 36px rgba(10, 24, 18, 0.22);
  font-size: 13px;
  font-weight: 750;
}

body.gf-projector-page {
  overflow: hidden;
}

body.gf-game-active {
  padding-bottom: 0 !important;
}

body.gf-game-active .gf-appbar,
body.gf-game-active #site-icp-footer {
  display: none !important;
}

@media (min-width: 1101px) {
  body.gf-game-active {
    overflow: hidden;
  }
}

body.gf-projector-page {
  padding-bottom: 0 !important;
}

body.gf-projector-page .gf-appbar,
body.gf-projector-page .gf-shell,
body.gf-projector-page .gf-game-shell,
body.gf-projector-page #site-icp-footer {
  display: none !important;
}

@media (max-width: 1100px) {
  .gf-hero {
    grid-template-columns: 1fr;
  }

  .gf-hero-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gf-setup-grid {
    grid-template-columns: 1fr;
  }

  .gf-game-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .gf-clue {
    min-height: 150px;
  }

  .gf-board {
    min-height: 430px;
  }

  .gf-projector-board {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .gf-appbar,
  .gf-shell,
  .gf-game-shell {
    width: min(100% - 20px, 1280px);
  }

  .gf-appbar {
    position: static;
    flex-wrap: wrap;
    gap: 10px;
  }

  .gf-topnav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .gf-topnav a {
    flex: 0 0 auto;
  }

  .gf-shell {
    padding-top: 14px;
  }

  .gf-hero,
  .gf-import-panel,
  .gf-settings-panel,
  .gf-wordbank-panel {
    padding: 18px;
  }

  .gf-hero-copy h1 {
    font-size: clamp(34px, 11vw, 50px);
  }

  .gf-hero-actions,
  .gf-settings-grid,
  .gf-result-stats {
    grid-template-columns: 1fr;
  }

  .gf-language-field,
  .gf-switch-row,
  .gf-range-field {
    grid-column: auto;
  }

  .gf-wordbank-heading {
    align-items: flex-start;
  }

  .gf-wordbank-actions {
    justify-content: flex-start;
  }

  .gf-word-row {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .gf-word-row .gf-row-number {
    grid-row: span 3;
  }

  .gf-word-row input,
  .gf-word-row textarea {
    grid-column: 2;
  }

  .gf-word-row .gf-delete-word {
    grid-column: 3;
    grid-row: 1;
  }

  .gf-game-header {
    flex-wrap: wrap;
  }

  .gf-game-stats {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .gf-game-stats > div {
    flex: 1;
    min-width: 0;
  }

  .gf-game-layout {
    margin-top: 10px;
  }

  .gf-prompt-panel,
  .gf-board-panel {
    padding: 16px;
  }

  .gf-clue {
    min-height: 120px;
    font-size: clamp(27px, 8.5vw, 42px);
  }

  .gf-board {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px;
  }

  .gf-word-card {
    min-height: 92px;
    padding: 10px;
    border-radius: 13px;
    font-size: clamp(21px, 6.8vw, 31px);
  }

  .gf-projector-shell {
    grid-template-rows: auto 7px minmax(0, 1fr);
  }

  .gf-projector-header {
    align-items: flex-start;
    padding: 12px 14px 9px;
  }

  .gf-projector-brand .gf-logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 24px;
  }

  .gf-projector-brand strong {
    font-size: 19px;
  }

  .gf-projector-brand span,
  .gf-projector-score {
    font-size: 11px;
  }

  .gf-projector-board-wrap {
    position: relative;
    padding: 10px 10px 18px;
  }

  .gf-projector-board .gf-word-card {
    font-size: clamp(21px, 6.5vw, 36px);
    box-shadow: 0 6px 0 #e0e6e2;
  }

  .gf-projector-message {
    bottom: 12px;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gf-review-item {
    grid-template-columns: 38px 1fr;
  }

  .gf-review-item p {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Reference prototype theme: dark, minimal, keyboard-like word tray */
:root {
  --gf-bg: #07100f;
  --gf-surface: #0d1718;
  --gf-surface-soft: #111c1e;
  --gf-ink: #f5f8f6;
  --gf-muted: #8da0a3;
  --gf-line: #253f45;
  --gf-line-strong: #35575f;
  --gf-green: #20b58f;
  --gf-green-soft: #10352c;
  --gf-gold: #f0d54b;
  --gf-gold-dark: #f0d54b;
  --gf-gold-soft: #2e2c16;
  --gf-red: #e34d59;
  --gf-red-soft: #35191e;
  --gf-shadow: none;
}

html,
body.gf-page {
  background: #07100f;
}

body.gf-page {
  color: var(--gf-ink);
  background-image: none;
}

body.gf-page #site-icp-footer {
  color: #73888b !important;
  background: rgba(7, 16, 15, 0.98) !important;
  border-top-color: #1d3438 !important;
  box-shadow: none !important;
}

body.gf-page #site-icp-footer a {
  color: #73888b !important;
}

.gf-appbar {
  position: static;
  width: 100%;
  min-height: 64px;
  padding: 10px 24px;
  border-bottom: 1px solid #162a2d;
  background: #07100f;
}

.gf-brand strong {
  color: #f5f8f6;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.gf-brand small {
  color: #789094;
}

.gf-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #07100f;
  background: var(--gf-gold);
  box-shadow: none;
  font-size: 20px;
}

.gf-topnav {
  display: none;
}

.gf-shell {
  width: min(1440px, calc(100% - 32px));
  padding: 0 0 54px;
}

.gf-hero {
  display: block;
  padding: 38px 20px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.gf-hero h1 {
  max-width: none;
  margin: 0;
  color: #f7faf8;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(32px, 4.8vw, 58px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.gf-hero p {
  max-width: 720px;
  margin: 13px auto 0;
  color: #8fa3a6;
  font-size: 14px;
  line-height: 1.7;
}

.gf-setup-grid {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
  margin-top: 0;
}

.gf-panel {
  border: 1px solid #27444a;
  border-radius: 14px;
  color: var(--gf-ink);
  background: #0d1718;
  box-shadow: none;
}

.gf-mode-panel,
.gf-import-panel {
  min-height: 340px;
  padding: 22px;
}

.gf-mode-panel .gf-hero-actions {
  width: 100%;
  margin-top: 10px;
}

.gf-mode-panel .gf-primary-button,
.gf-mode-panel .gf-gold-button {
  min-height: 82px;
  align-content: center;
  justify-items: center;
  padding: 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: center;
}

.gf-mode-note {
  margin: 17px 0 0;
  color: #778b8e;
  font-size: 12px;
  text-align: center;
}

.gf-section-heading h2 {
  color: #f5f8f6;
  font-size: 20px;
}

.gf-section-heading p,
.gf-bank-meta,
.gf-inline-message,
.gf-switch-row small,
.gf-field {
  color: #8da0a3;
}

.gf-section-heading code {
  border-color: #29464c;
  color: #64cce4;
  background: #091214;
}

.gf-count-badge {
  border-color: #3b5960;
  color: #c3d1d3;
  background: #111d1f;
}

.gf-paste-area,
.gf-field input[type="number"],
.gf-field select,
.gf-word-row input,
.gf-word-row textarea {
  border-color: #315159;
  color: #f5f8f6;
  background: #081113;
  box-shadow: none;
}

.gf-paste-area:focus,
.gf-field input[type="number"]:focus,
.gf-field select:focus,
.gf-word-row input:focus,
.gf-word-row textarea:focus {
  border-color: #48b6cf;
  box-shadow: 0 0 0 3px rgba(72, 182, 207, 0.12);
}

.gf-paste-area::placeholder,
.gf-word-row input::placeholder,
.gf-word-row textarea::placeholder {
  color: #52686c;
}

.gf-primary-button {
  color: #06120f;
  background: #27b79b;
  box-shadow: none;
}

.gf-primary-button small {
  color: rgba(4, 18, 15, 0.72);
}

.gf-gold-button {
  color: #171503;
  background: var(--gf-gold);
  box-shadow: none;
}

.gf-gold-button small {
  color: rgba(23, 21, 3, 0.70);
}

.gf-primary-button:hover {
  background: #3ac7aa;
}

.gf-gold-button:hover {
  background: #f5dc63;
}

.gf-secondary-button,
.gf-quiet-button,
.gf-danger-button {
  border-color: #35545a;
  color: #d8e3e4;
  background: #101b1d;
  box-shadow: none;
}

.gf-secondary-button {
  border-color: #2c7f93;
  color: #75d5e8;
  background: #0b2025;
}

.gf-danger-button {
  border-color: #6c353d;
  color: #ef7d86;
  background: #1b1013;
}

.gf-secondary-button:hover,
.gf-quiet-button:hover {
  border-color: #5bc3da;
  color: #8ce3f2;
  background: #102327;
  transform: none;
}

.gf-danger-button:hover {
  border-color: #b94f5b;
  color: #ff9aa2;
  background: #271216;
  transform: none;
}

.gf-settings-panel,
.gf-wordbank-panel {
  margin-top: 16px;
  overflow: hidden;
}

.gf-panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  background: #0d1718;
}

.gf-panel-summary::-webkit-details-marker {
  display: none;
}

.gf-panel-summary > span:first-child {
  display: grid;
  gap: 3px;
}

.gf-panel-summary b {
  color: #f5f8f6;
  font-size: 15px;
}

.gf-panel-summary small {
  color: #7f9396;
  font-size: 11px;
}

.gf-summary-action {
  color: #69cfe7;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.gf-settings-panel[open] .gf-panel-summary,
.gf-wordbank-panel[open] .gf-panel-summary {
  border-bottom: 1px solid #223c41;
}

.gf-panel-body {
  padding: 20px;
  background: #0b1416;
}

.gf-settings-grid {
  gap: 13px;
}

.gf-language-field,
.gf-switch-row {
  border-color: #29454b;
  color: #d7e1e2;
  background: #0e191b;
}

.gf-switch-row b {
  color: #d9e4e5;
}

.gf-field input[type="number"],
.gf-field select {
  color-scheme: dark;
}

.gf-range-field input {
  accent-color: #43b6ce;
}

.gf-wordbank-heading {
  margin-bottom: 12px;
}

.gf-word-row {
  border-color: #243d42;
  background: #0e191b;
}

.gf-row-number {
  color: #e7d360;
  background: #282612;
}

.gf-delete-word {
  border-color: #60343b;
  color: #ee7681;
  background: #1a1013;
}

.gf-empty-state {
  border-color: #315159;
  color: #83979a;
  background: #091214;
}

.gf-empty-state strong {
  color: #eaf0ee;
}

.gf-game-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0 18px 18px;
}

.gf-game-header {
  min-height: 62px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid #193034;
  border-radius: 0;
  color: #eff4f2;
  background: #07100f;
  box-shadow: none;
}

.gf-game-title-block strong {
  color: #f3f7f5;
}

.gf-game-title-block span {
  color: #73888b;
}

.gf-back-button {
  border-color: #2e4c52;
  color: #cfe0e2;
  background: #0d181a;
}

.gf-game-stats > div {
  border-color: #28464c;
  background: #0d181a;
}

.gf-game-stats span {
  color: #74898c;
}

.gf-game-stats b {
  color: #f2f7f5;
}

.gf-game-layout {
  gap: 12px;
  min-height: calc(100vh - 80px);
  margin-top: 12px;
}

.gf-prompt-panel,
.gf-board-panel {
  border-color: #27464c;
  background: #0a1415;
  box-shadow: none;
}

.gf-game-layout:not(.is-teacher) .gf-prompt-panel {
  min-height: 268px;
}

.gf-prompt-panel {
  padding: 20px 24px;
}

.gf-prompt-topline {
  color: #7f9497;
}

.gf-speak-button {
  border-color: #3b5960;
  color: #8cdfef;
  background: #0d2024;
}

.gf-timer-track {
  height: 6px;
  background: #1b2d31;
}

.gf-timer-fill {
  background: #48c3d9;
}

.gf-time-left {
  color: #74898c;
}

.gf-clue {
  color: #f7faf8;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 850;
}

.gf-teacher-note {
  border-color: #5f5920;
  color: #e8d76b;
  background: #272512;
}

.gf-round-feedback[data-tone="correct"] {
  color: #32d3a5;
}

.gf-round-feedback[data-tone="wrong"],
.gf-round-feedback[data-tone="timeout"] {
  color: #f0717b;
}

.gf-board-panel {
  position: relative;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(42, 73, 79, 0.10), transparent 34%),
    #091315;
}

.gf-board-heading {
  padding: 4px 6px 13px;
}

.gf-board-heading h2 {
  color: #edf3f1;
  font-size: 15px;
}

.gf-board-heading span {
  color: #73888b;
}

.gf-board {
  gap: 12px;
  padding: 12px;
  border: 1px solid #1f3a40;
  border-radius: 16px;
  background: #071011;
  box-shadow: inset 0 0 0 1px rgba(77, 160, 178, 0.04);
}

.gf-word-card {
  min-height: 104px;
  border: 1px solid #46616a;
  border-radius: 12px;
  color: #f7faf8;
  background: #172326;
  box-shadow: 0 5px 0 #020607;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.gf-word-card:hover:not(:disabled) {
  border-color: #61c9df;
  color: #ffffff;
  background: #1c2d31;
  box-shadow: 0 7px 0 #020607;
}

.gf-word-card:active:not(:disabled) {
  box-shadow: 0 2px 0 #020607;
}

.gf-word-card.is-correct {
  border-color: #2bc69d;
  background: #168a69;
  box-shadow: 0 5px 0 #07392b;
}

.gf-word-card.is-wrong {
  border-color: #f06d77;
  background: #bd3845;
  box-shadow: 0 5px 0 #54151d;
}

.gf-word-card.is-dimmed {
  border-color: #263a3f;
  color: #607277;
  background: #111a1c;
  box-shadow: 0 3px 0 #020303;
}

.gf-projector-shell {
  color: #f5f8f6;
  background: #07100f;
}

.gf-projector-header {
  padding: 12px 22px 10px;
  border-bottom: 1px solid #1b3337;
}

.gf-projector-brand .gf-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 20px;
}

.gf-projector-brand strong {
  color: #f7faf8;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(17px, 1.35vw, 23px);
  letter-spacing: -0.02em;
}

.gf-projector-brand span,
.gf-projector-score {
  color: #799095;
}

.gf-projector-score b {
  color: #f5f8f6;
}

.gf-projector-timer {
  background: #17282c;
}

.gf-projector-timer span {
  background: #49c5db;
}

.gf-projector-board-wrap {
  padding: 12px 18px 20px;
}

.gf-projector-board {
  gap: clamp(10px, 1vw, 18px);
  padding: clamp(12px, 1.2vw, 20px);
  border: 1px solid #1f3b41;
  border-radius: 18px;
  background: #081113;
}

.gf-projector-board .gf-word-card {
  border-width: 1px;
  border-radius: clamp(12px, 1vw, 18px);
  box-shadow: 0 8px 0 #020607;
  font-size: clamp(32px, 3.6vw, 72px);
}

.gf-projector-message {
  border-color: #36545a;
  color: #edf4f2;
  background: rgba(11, 24, 26, 0.96);
}

.gf-projector-message[data-tone="correct"] {
  background: rgba(18, 126, 94, 0.96);
}

.gf-projector-message[data-tone="wrong"],
.gf-projector-message[data-tone="timeout"] {
  background: rgba(178, 49, 61, 0.96);
}

.gf-result-dialog {
  color: #f5f8f6;
}

.gf-result-dialog::backdrop {
  background: rgba(1, 6, 6, 0.78);
}

.gf-result-card {
  border-color: #2b494f;
  color: #f5f8f6;
  background: #0c1718;
}

.gf-result-card h2 {
  color: #f7faf8;
}

.gf-result-mark {
  color: #07100f;
  background: var(--gf-gold);
}

.gf-result-stats > div,
.gf-review-item {
  border-color: #29464c;
  background: #101b1d;
}

.gf-result-stats span,
.gf-review-item p {
  color: #819598;
}

.gf-review-empty {
  color: #43d3aa;
  background: #10352c;
}

.gf-result-section-head {
  border-bottom-color: #274247;
}

.gf-result-section-head h3 {
  color: #f1f6f4;
}

.gf-review-item strong {
  color: #f5f8f6;
}

.gf-toast {
  border-color: #3d5d63;
  color: #eef4f2;
  background: #101c1e;
  box-shadow: none;
}

@media (max-width: 900px) {
  .gf-appbar {
    padding: 9px 14px;
  }

  .gf-shell {
    width: calc(100% - 20px);
    padding-top: 0;
  }

  .gf-hero {
    padding: 26px 8px 22px;
  }

  .gf-hero h1 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .gf-setup-grid {
    grid-template-columns: 1fr;
  }

  .gf-mode-panel,
  .gf-import-panel {
    min-height: 0;
    padding: 17px;
  }

  .gf-panel-body {
    padding: 15px;
  }

  .gf-game-shell {
    padding: 0 8px 8px;
  }

  .gf-game-header {
    padding: 7px 0;
  }

  .gf-game-layout {
    min-height: 0;
  }

  .gf-board {
    padding: 8px;
  }

  .gf-projector-header {
    padding: 10px 12px 8px;
  }

  .gf-projector-board-wrap {
    padding: 8px 8px 14px;
  }
}

.gf-board[data-count="4"] .gf-word-card:nth-child(n+3),
.gf-board[data-count="6"] .gf-word-card:nth-child(n+4) {
  translate: 12px 0;
}

.gf-board[data-count="8"] .gf-word-card:nth-child(n+5) {
  translate: 10px 0;
}

.gf-board[data-count="10"] .gf-word-card:nth-child(n+6) {
  translate: 8px 0;
}

@media (max-width: 760px) {
  .gf-board[data-count] .gf-word-card {
    translate: 0 0;
  }
}

.gf-projector-board-wrap {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.gf-projector-clue-panel {
  display: grid;
  min-height: 132px;
  align-content: center;
  gap: 8px;
  padding: 16px 20px;
  border: 1px solid #294a50;
  border-radius: 16px;
  background: #0a1415;
}

.gf-projector-clue-panel > span {
  color: #7f9699;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#gfProjectorClue {
  margin: 0;
  color: #f7faf8;
  font: 850 clamp(30px, 3.8vw, 64px)/1.12 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

#gfProjectorClue[data-language="cn"] {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

@media (max-width: 760px) {
  .gf-projector-board-wrap {
    gap: 8px;
  }

  .gf-projector-clue-panel {
    min-height: 104px;
    padding: 12px 14px;
  }

  #gfProjectorClue {
    font-size: clamp(24px, 7.5vw, 38px);
  }
}

.gf-pk-button {
  display: grid;
  min-height: 44px;
  gap: 3px;
  justify-items: center;
  padding: 12px 16px;
  border: 1px solid #2d8194;
  border-radius: 12px;
  color: #8ce3f2;
  background: #0b2025;
  text-align: center;
  font-weight: 800;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.gf-pk-button span {
  font-size: 16px;
}

.gf-pk-button small {
  color: #709295;
  font-size: 11px;
  font-weight: 650;
}

.gf-pk-button:hover {
  border-color: #5bc3da;
  background: #102a30;
  transform: translateY(-1px);
}

.gf-mode-panel .gf-pk-button {
  min-height: 82px;
  align-content: center;
  padding: 17px;
}

.gf-active-team-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #5c5520;
  border-radius: 999px;
  color: #f2d85b;
  background: #2b2914;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.gf-projector-clue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gf-projector-team-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid #2b4a50;
  border-radius: 999px;
  color: #8da0a3;
  background: #0e1a1c;
}

.gf-projector-team-score i {
  font-style: normal;
  font-weight: 800;
}

.gf-projector-team-score b {
  color: #f4f7f5;
}

.gf-projector-team-score.is-active {
  border-color: #8b7a2d;
  color: #f1d75a;
  background: #2a2814;
}

.gf-projector-team-score.is-active b {
  color: #f1d75a;
}

.gf-book-loader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 12px;
}

.gf-book-loader select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #35545a;
  border-radius: 11px;
  color: #d8e3e4;
  background: #101b1d;
}

.gf-book-loader select:focus {
  border-color: #5bc3da;
  outline: none;
}

@media (max-width: 700px) {
  .gf-book-loader { grid-template-columns: 1fr; }
}

.gf-projector-fullscreen {
  min-height: 34px;
  padding: 0 11px;
  color: #d9e6e8;
  background: #0d181a;
}

@media (min-width: 901px) and (max-height: 1150px) {
  .gf-appbar {
    min-height: 50px;
    padding: 6px 18px;
  }

  .gf-logo {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .gf-brand strong {
    font-size: 15px;
  }

  .gf-shell {
    padding-bottom: 18px;
  }

  .gf-hero {
    padding: 15px 10px 12px;
  }

  .gf-hero h1 {
    font-size: 32px;
  }

  .gf-hero p {
    margin-top: 7px;
    font-size: 12px;
  }

  .gf-setup-grid {
    gap: 10px;
  }

  .gf-mode-panel,
  .gf-import-panel {
    min-height: 0;
    padding: 15px;
  }

  .gf-section-heading {
    margin-bottom: 10px;
  }

  .gf-section-heading h2 {
    font-size: 17px;
  }

  .gf-section-heading p {
    margin-top: 3px;
    font-size: 11px;
  }

  .gf-mode-panel .gf-hero-actions {
    gap: 7px;
    margin-top: 4px;
  }

  .gf-mode-panel .gf-primary-button,
  .gf-mode-panel .gf-gold-button,
  .gf-mode-panel .gf-pk-button {
    min-height: 56px;
    padding: 9px 12px;
  }

  .gf-mode-panel .gf-primary-button span,
  .gf-mode-panel .gf-gold-button span,
  .gf-mode-panel .gf-pk-button span {
    font-size: 13px;
  }

  .gf-mode-panel .gf-primary-button small,
  .gf-mode-panel .gf-gold-button small,
  .gf-mode-panel .gf-pk-button small {
    font-size: 9px;
  }

  .gf-mode-note {
    margin-top: 8px;
    font-size: 10px;
  }

  .gf-paste-area {
    min-height: 128px;
  }

  .gf-panel-summary {
    padding: 11px 16px;
  }

  .gf-settings-panel,
  .gf-wordbank-panel {
    margin-top: 8px;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .gf-game-layout {
    min-height: calc(100vh - 90px);
  }

  .gf-game-layout:not(.is-teacher) .gf-board-panel {
    min-height: 0;
  }
}

@media (min-width: 1101px) {
  body.gf-game-active .gf-game-shell {
    padding-bottom: 0;
  }
}
