/* 舒尔特方格 · 样式（.g-schulte 前缀） */

.g-schulte {
  padding-left: 12px;
  padding-right: 12px;
  gap: 10px;
}
.g-schulte .sch-board-wrap { padding: 2px 0; }

/* 目标条 */
.g-schulte .s-target {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), rgba(255, 255, 255, 0.03));
}
.g-schulte .s-target-k {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.g-schulte .s-target-v {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  min-width: 1.4em;
  text-align: center;
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
}
.g-schulte .s-target-p {
  font-size: 12px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.g-schulte .s-target-k2 {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--faint);
}

/* 方格 */
.g-schulte .sch-board {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: min(100%, calc(100dvh - 344px));
  margin: 0 auto;
  display: grid;
  gap: 6px;
  touch-action: manipulation;
}
.g-schulte .sch-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03));
  color: var(--text);
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(19px, 6.4vw, 32px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: opacity 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease, transform 0.1s ease;
  touch-action: manipulation;
}
.g-schulte .sch-cell:active {
  transform: scale(0.95);
  border-color: var(--line-2);
  background: var(--surface-3);
}
.g-schulte .sch-cell.done {
  opacity: 0.26;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.04);
  transform: scale(0.965);
  pointer-events: none;
}
.g-schulte .sch-cell.wrong {
  border-color: rgba(255, 92, 108, 0.7);
  background: rgba(255, 92, 108, 0.14);
  color: #ffb3ba;
  animation: schShake 0.3s ease;
}
@keyframes schShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  45% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
  85% { transform: translateX(2px); }
}

.g-schulte .sch-seg { flex: none; }
.g-schulte .sch-seg .seg { width: 100%; }
.g-schulte .sch-hint { text-align: center; font-size: 10.5px; }

/* ---------------- 弹层 ---------------- */
.s-layer {
  position: fixed;
  inset: 0;
  z-index: 94;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(4, 6, 11, 0.6);
  animation: fadeIn 0.18s ease both;
}
.s-sheet {
  width: min(100%, 352px);
  max-height: min(84vh, 640px);
  overflow-y: auto;
  background: linear-gradient(180deg, #161c2b, #111623);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 19px;
  box-shadow: 0 34px 80px -18px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: popIn 0.22s cubic-bezier(0.22, 1.1, 0.36, 1) both;
}
.s-sheet-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.s-sheet-title { font-size: 18px; font-weight: 800; line-height: 1.3; }
.s-sheet-sub { font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.s-sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.s-sheet-actions .btn { flex: 1; }

.s-guide { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.s-guide-row { font-size: 12.5px; line-height: 1.65; color: var(--dim); }
.s-guide-row b { display: inline-block; min-width: 34px; margin-right: 6px; color: var(--accent); font-weight: 700; }

.s-win { margin-top: 14px; }
.s-win-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-win-stats .stat { background: rgba(255, 255, 255, 0.045); }
.s-win-tip { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--dim); text-align: center; }
.s-win-record { color: var(--ok); font-weight: 700; }

@media (max-height: 720px) {
  .g-schulte .sch-hint { display: none; }
  .g-schulte .s-target-k2 { display: none; }
}
