@charset "UTF-8";
:root {
  --paper:#f8f9f5;
  --ink:#263c35;
  --muted:#8b948a;
  --green:#235a49;
  --line:#e4e8de;
  --soft:#f0f3eb;
  --white:#fffefa;
  --color-U:#f1eee3;
  --color-D:#f4cd50;
  --color-L:#e99753;
  --color-R:#df6558;
  --color-F:#4b9a7b;
  --color-B:#638ec2;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Segoe UI","Microsoft YaHei",Arial,sans-serif;
  -webkit-font-smoothing:antialiased
}

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

button {
  font:inherit;
  color:inherit;
  cursor:pointer
}

button {
  border:0;
  background:none
}

button:disabled {
  opacity:.38;
  cursor:not-allowed
}

button,a {
  touch-action:manipulation
}

button:focus-visible,a:focus-visible,#cube-canvas:focus-visible {
  outline:2px solid #6e9b72;
  outline-offset:4px
}

button {
  transition:background .18s,color .18s,transform .18s,box-shadow .18s
}

button:active:not(:disabled) {
  transform:translateY(1px)
}

a {
  color:inherit;
  text-decoration:none
}

svg.icon {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}

.icon-library {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}

.page-shell {
  max-width:1440px;
  margin:auto;
  padding:0 54px
}

.site-header {
  height:106px;
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--line);
  gap:48px
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:19px;
  font-weight:750;
  letter-spacing:1px;
  line-height:1.25;
  flex-shrink:0
}

.brand-light {
  font-weight:400
}

.brand small {
  display:block;
  font-size:9px;
  font-weight:400;
  letter-spacing:4px;
  margin-top:7px;
  color:#788579
}

.brand-mark {
  width:33px;
  height:33px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  transform:rotate(-8deg)
}

.brand-mark i {
  background:var(--green);
  border-radius:3px
}

.brand-mark i:last-child {
  background:#b5c78b
}

.site-header nav {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:35px;
  margin:auto;
  font-size:13px;
  height:100%
}

.site-header nav>span,.site-header nav>button {
  height:100%;
  padding:0 3px;
  display:flex;
  align-items:center;
  gap:8px;
  position:relative;
  white-space:nowrap
}

.site-header nav>button {
  color:#8a9187
}

.site-header nav>button:hover {
  color:var(--green)
}

.site-header nav .icon {
  width:15px
}

.nav-active {
  font-weight:650
}

.nav-active:after {
  content:"";
  height:3px;
  background:var(--green);
  position:absolute;
  bottom:-1px;
  left:3px;
  right:3px;
  border-radius:2px
}

.header-note {
  display:flex;
  align-items:center;
  gap:9px;
  color:#7a8979;
  font-size:11px;
  white-space:nowrap
}

.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#79a575;
  flex-shrink:0
}

.intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:41px 0 32px;
  gap:20px
}

.eyebrow {
  font-family:var(--mono);
  font-size:9px;
  font-weight:400;
  letter-spacing:1.6px;
  color:#8a9588;
  display:flex;
  align-items:center;
  gap:8px
}

.intro .eyebrow {
  font-size:9px;
  letter-spacing:1.9px;
  color:#71826c
}

.intro .eyebrow>span {
  width:15px;
  height:1px;
  background:#90a581
}

.intro h1 {
  font-size:35px;
  letter-spacing:1px;
  line-height:1.4;
  font-weight:600;
  margin:12px 0 10px
}

.intro h1>span {
  font-weight:400
}

.intro p {
  font-size:12px;
  letter-spacing:.4px;
  color:#8e968b;
  margin:0
}

.edition {
  text-align:right;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding-right:2px
}

.edition>span:first-child {
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:2px;
  color:#8e9989
}

.edition strong {
  font-family:var(--mono);
  font-size:25px;
  font-weight:400;
  letter-spacing:1px
}

.edition strong i {
  font-size:17px;
  font-style:normal;
  color:#9ca796
}

.edition>span:last-child {
  font-size:9px;
  color:#9ba18f;
  letter-spacing:2px
}

.game-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 342px;
  gap:22px
}

.play-card {
  border:1px solid #e1e6da;
  border-radius:20px;
  overflow:hidden;
  background:var(--white);
  min-width:0
}

.stage {
  height:435px;
  background:radial-gradient(ellipse at 51% 41%,#f5f5ee 0%,#eef0e6 70%);
  position:relative;
  overflow:hidden
}

.stage-heading {
  position:absolute;
  left:25px;
  right:25px;
  top:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
  z-index:2
}

.mode-pill {
  font-size:10px;
  background:#fcfdf68c;
  border:1px solid #dce3d1;
  padding:7px 11px;
  border-radius:25px;
  display:flex;
  align-items:center;
  gap:6px;
  backdrop-filter:blur(8px)
}

.mode-pill .status-dot {
  width:5px;
  height:5px;
  background:#7c9669
}

.stage-edition {
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:1.8px;
  color:#a2ac97
}

.stage-watermark {
  position:absolute;
  left:0;
  right:0;
  top:76px;
  text-align:center;
  font-size:160px;
  font-family:Arial,sans-serif;
  font-weight:800;
  letter-spacing:-9px;
  color:#e2e7d7;
  opacity:.43;
  line-height:1.2;
  pointer-events:none;
  user-select:none
}

#cube-canvas {
  position:absolute;
  inset:0;
  touch-action:none;
  cursor:grab
}

#cube-canvas canvas {
  display:block;
  width:100%;
  height:100%
}

#cube-canvas:active {
  cursor:grabbing
}

.stage-bottom {
  position:absolute;
  left:24px;
  right:20px;
  bottom:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  pointer-events:none;
  z-index:2
}

.drag-hint {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:9px;
  color:#8c9983
}

.drag-hint .icon {
  width:15px;
  height:15px
}

.drag-hint b {
  font-weight:400;
  margin:0 5px;
  color:#b5beaa
}

.view-tools {
  display:flex;
  align-items:center;
  gap:4px;
  padding:3px;
  border-radius:9px;
  background:#fcfdf6a8;
  border:1px solid #e0e5d5;
  pointer-events:auto
}

.view-tools>span {
  width:1px;
  height:12px;
  background:#dce2d1
}

.icon-button {
  width:30px;
  height:30px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  border-radius:7px;
  color:#75856e
}

.icon-button .icon {
  width:16px;
  height:16px
}

.icon-button:hover {
  background:#e4eadb
}

.scene-badge {
  position:absolute;
  bottom:60px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:6px;
  font-size:9px;
  letter-spacing:.5px;
  color:#718367;
  pointer-events:none;
  white-space:nowrap;
  opacity:.85
}

.scene-badge .icon {
  width:12px;
  height:12px
}

.face-controls {
  padding:18px 24px 22px;
  border-top:1px solid #e1e6da
}

.control-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11px;
  font-weight:600;
  margin-bottom:13px
}

.control-heading small {
  font-family:var(--mono);
  font-size:8px;
  color:#a3ab9e;
  letter-spacing:1.2px;
  font-weight:400;
  margin-left:10px
}

.direction-toggle {
  display:flex;
  align-items:center;
  gap:5px;
  font-size:9px;
  color:#8f9a86;
  padding:3px 0 3px 8px
}

.direction-toggle .icon {
  width:13px;
  height:13px;
  transform:scaleX(-1)
}

.direction-toggle[aria-pressed=true] {
  color:var(--green)
}

.direction-toggle[aria-pressed=true] .icon {
  transform:none
}

.face-buttons {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px
}

.face-buttons button {
  display:flex;
  gap:7px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:8px;
  height:42px;
  background:#fbfcf7
}

.face-buttons button:hover {
  background:#eaf0e1;
  border-color:#bdcbb2;
  transform:translateY(-2px);
  box-shadow:0 3px 5px #26473507
}

.face-buttons button.pressed {
  background:#dce8d1;
  border-color:#a7bc97
}

.face-buttons b {
  font-family:var(--mono);
  font-size:14px;
  font-weight:500
}

.face-buttons button>span:last-child {
  font-size:9px;
  color:#959e8e
}

.face-dot {
  display:block;
  width:7px;
  height:7px;
  border-radius:2px;
  box-shadow:0 0 0 1px #263c3510
}

.color-U {
  background:var(--color-U)
}

.color-D {
  background:var(--color-D)
}

.color-L {
  background:var(--color-L)
}

.color-R {
  background:var(--color-R)
}

.color-F {
  background:var(--color-F)
}

.color-B {
  background:var(--color-B)
}

.challenge-card {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:20px;
  padding:26px 25px 17px;
  display:flex;
  flex-direction:column;
  min-width:0
}

.challenge-title {
  display:flex;
  align-items:center;
  justify-content:space-between
}

.challenge-title .eyebrow {
  font-size:8px;
  letter-spacing:1.6px
}

.challenge-title>.icon {
  width:19px;
  height:19px;
  color:#9aad83
}

.challenge-card h2 {
  font-weight:500;
  font-size:24px;
  margin:17px 0 8px;
  letter-spacing:1px
}

.panel-subtitle {
  font-size:10px;
  color:#98a08e;
  margin:0;
  letter-spacing:.3px
}

.stats {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  margin-top:27px;
  margin-bottom:18px
}

.stats>div+div {
  border-left:1px solid var(--line);
  padding-left:27px
}

.stat-label {
  font-size:9px;
  color:#99a08f;
  display:flex;
  align-items:center;
  gap:5px;
  letter-spacing:.5px
}

.tiny-clock {
  display:inline-block;
  width:9px;
  height:9px;
  border:1px solid #a3ad95;
  border-radius:50%;
  position:relative
}

.tiny-clock:after {
  content:"";
  position:absolute;
  height:3px;
  width:2px;
  left:3px;
  top:1px;
  border-left:1px solid #a3ad95;
  border-bottom:1px solid #a3ad95
}

.timer {
  font-family:var(--mono);
  font-size:32px;
  font-weight:400;
  line-height:1.2;
  margin-top:9px;
  letter-spacing:-1.5px;
  white-space:nowrap;
  color:#2e493e;
  font-variant-numeric:tabular-nums
}

.timer span {
  font-size:18px;
  color:#9aa88f;
  letter-spacing:-.5px
}

.move-stat {
  display:flex;
  align-items:baseline;
  gap:9px;
  line-height:1.2;
  margin-top:9px
}

.move-stat strong {
  font-family:var(--mono);
  font-size:32px;
  font-weight:400;
  letter-spacing:-1px
}

.move-stat>span {
  font-size:9px;
  color:#9ba490
}

.challenge-status {
  display:flex;
  align-items:center;
  gap:6px;
  color:#829472;
  font-size:9px;
  padding:10px 0 13px;
  border-bottom:1px solid var(--line)
}

.challenge-status>.status-dot {
  width:5px;
  height:5px
}

.status-end {
  margin-left:auto;
  color:#a0a893;
  font-size:8px
}

.difficulty-section {
  margin-top:21px
}

.small-heading {
  font-size:10px;
  display:flex;
  justify-content:space-between;
  align-items:center
}

.small-heading>span:last-child {
  font-size:8px;
  color:#9ba58e
}

.difficulty-options {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  padding:4px;
  background:#f1f4ec;
  border-radius:9px;
  margin-top:11px;
  gap:3px
}

.difficulty-options>button {
  padding:8px 2px;
  font-size:10px;
  color:#959e8c;
  border-radius:6px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  border:1px solid transparent
}

.difficulty-options>button>span {
  font-family:var(--mono);
  font-size:8px;
  color:#a4ad9a
}

.difficulty-options>button.selected {
  background:#fffefa;
  color:#3e604b;
  box-shadow:0 1px 4px #374b2510;
  border-color:#e1e7d6
}

.difficulty-options>button.selected>span {
  color:#7c9070
}

.primary-button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:47px;
  background:var(--green);
  color:#f7f9eb;
  border-radius:9px;
  font-size:12px;
  letter-spacing:1px;
  font-weight:500;
  margin-top:16px
}

.primary-button:hover {
  background:#174836;
  box-shadow:0 4px 12px #235a491a
}

.primary-button .icon {
  width:17px;
  height:17px
}

.primary-button kbd {
  font-family:var(--mono);
  font-size:7px;
  font-weight:400;
  letter-spacing:.5px;
  padding:4px 5px;
  background:#ffffff0d;
  border:1px solid #ffffff22;
  border-radius:3px;
  color:#c0d0bb;
  margin-left:38px
}

.secondary-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:10px
}

.secondary-actions>button {
  border:1px solid var(--line);
  background:#fffefa;
  display:flex;
  gap:6px;
  align-items:center;
  justify-content:center;
  font-size:10px;
  border-radius:8px;
  height:37px;
  color:#78896e
}

.secondary-actions>button:hover:not(:disabled) {
  background:#eef3e7
}

.secondary-actions .icon {
  width:14px;
  height:14px
}

.rewind-action {
  display:flex;
  align-items:stretch;
  min-width:0;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--white);
  overflow:hidden
}

.rewind-amount {
  display:flex;
  align-items:center;
  flex:1;
  min-width:0;
  gap:3px;
  padding-left:7px;
  color:#8d9c7e;
  font-size:9px
}

.rewind-amount input {
  width:40px;
  min-width:0;
  height:31px;
  padding:0 2px;
  border:0;
  background:transparent;
  color:var(--green);
  text-align:center;
  font:12px var(--mono)
}

.rewind-amount input:disabled {
  color:#acb5a0
}

.rewind-amount input:focus-visible {
  outline:1px solid #7b9b6b;
  outline-offset:-2px;
  border-radius:4px
}

.rewind-action>button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:0 9px;
  border-left:1px solid var(--line);
  color:#658052;
  font-size:10px;
  white-space:nowrap
}

.rewind-action>button:hover:not(:disabled) {
  background:#eef3e7
}

.rewind-action>button .icon {
  width:12px;
  height:12px
}

.rewind-note {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:8px;
  color:#99a58c;
  font-size:9px
}

.rewind-note>button {
  padding:2px 0;
  color:#7e9270;
  font-size:9px;
  text-decoration:underline;
  text-underline-offset:3px
}

.best-line {
  margin-top:22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:9px
}

.best-line>span {
  display:flex;
  gap:6px;
  align-items:center;
  color:#8d9c7e
}

.best-line .icon {
  width:13px;
  height:13px
}

.best-line strong {
  font-weight:400;
  font-size:8px;
  color:#a0a991
}

.reset-button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:15px;
  padding:11px 0 0;
  font-size:9px;
  color:#a3ac98;
  border-top:1px solid var(--line)
}

.reset-button .icon {
  width:12px;
  height:12px
}

.reset-button:hover {
  color:var(--green)
}

.panel-footnote {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  font-size:8px;
  color:#a9b09e;
  margin-top:auto;
  padding-top:13px
}

.panel-footnote .status-dot {
  width:4px;
  height:4px;
  background:#a9b999
}

.history-card,.net-card {
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--white);
  padding:22px 24px;
  min-width:0
}

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

.section-title h2,.net-copy h2 {
  font-size:13px;
  font-weight:500;
  letter-spacing:.3px;
  margin:0
}

.section-title>.eyebrow {
  font-size:8px;
  letter-spacing:1.3px;
  white-space:nowrap
}

.move-history {
  display:flex;
  align-items:center;
  gap:6px;
  height:48px;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#d3ddca transparent
}

.history-empty {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:10px;
  color:#adb5a0
}

.history-empty .icon {
  width:18px;
  height:18px;
  color:#b8c2ac
}

.move-chip {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:31px;
  height:28px;
  padding:0 5px;
  background:#f1f4e9;
  color:#708365;
  border:1px solid #e3e9d8;
  border-radius:5px;
  flex-shrink:0;
  font-family:var(--mono);
  font-size:12px
}

.move-chip:last-child {
  background:#e2edd5;
  color:var(--green);
  border-color:#c8d7ba
}

.history-overflow {
  color:#9aab8b;
  font-family:var(--mono);
  font-size:10px;
  margin-right:3px;
  white-space:nowrap
}

.scramble-line {
  font-size:8px;
  border-top:1px solid #edf0e6;
  padding-top:11px;
  display:flex;
  gap:13px;
  line-height:1.6;
  color:#a7ae9c
}

.scramble-line>span {
  white-space:nowrap;
  flex-shrink:0
}

.scramble-line code {
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:.4px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
  min-width:0;
  color:#9ca58e
}

.scramble-label {
  padding-top:4px
}

.scramble-label small {
  display:block;
  color:#96a687;
  font-size:8px;
  margin-top:5px
}

.scramble-step {
  display:inline-flex;
  align-items:baseline;
  gap:4px;
  padding:3px 5px;
  border:1px solid #e3e9d8;
  border-radius:4px;
  background:#f6f8f0
}

.scramble-step small {
  color:#acb79e;
  font-size:7px
}

.scramble-step b {
  color:#788a69;
  font-size:10px;
  font-weight:400
}

.scramble-step.next-rewind {
  background:#e4edd9;
  border-color:#a5ba8f
}

.scramble-step.next-rewind b {
  color:var(--green)
}

.scramble-step.rewound {
  opacity:.42
}

.scramble-step.rewound b {
  text-decoration:line-through
}

.rewind-history {
  display:flex;
  gap:13px;
  padding-top:13px;
  color:#869775;
  font-size:9px;
  align-items:flex-start
}

.rewind-history[hidden] {
  display:none
}

.rewind-history>span {
  flex-shrink:0;
  padding-top:5px
}

#rewind-moves {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  min-width:0
}

.rewind-chip {
  display:flex;
  align-items:center;
  gap:7px;
  padding:4px 7px;
  border-radius:5px;
  background:#edf3e4;
  border:1px solid #dce6ce
}

.rewind-chip small {
  font-size:8px;
  color:#8e9e7f
}

.rewind-chip b {
  color:var(--green);
  font:11px var(--mono)
}

.rewind-chip.active {
  background:#deebce;
  border-color:#9ab480
}

.net-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:20px
}

.net-copy {
  flex-shrink:0
}

.net-copy .eyebrow {
  font-size:7px;
  letter-spacing:1.2px;
  margin-bottom:9px
}

.net-copy h2 {
  font-size:12px
}

.progress-label {
  display:flex;
  align-items:center;
  gap:5px;
  font-size:8px;
  color:#a1ac92;
  margin-top:15px
}

.progress-label .status-dot {
  width:4px;
  height:4px
}

.cube-net {
  display:grid;
  grid-template-columns:repeat(4,31px);
  grid-template-rows:repeat(3,31px);
  gap:3px;
  flex-shrink:0
}

.net-face {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.5px;
  padding:1.5px;
  background:#e7eadd;
  border-radius:3px
}

.net-face[data-net=U] {
  grid-column:2;
  grid-row:1
}

.net-face[data-net=L] {
  grid-column:1;
  grid-row:2
}

.net-face[data-net=F] {
  grid-column:2;
  grid-row:2
}

.net-face[data-net=R] {
  grid-column:3;
  grid-row:2
}

.net-face[data-net=B] {
  grid-column:4;
  grid-row:2
}

.net-face[data-net=D] {
  grid-column:2;
  grid-row:3
}

.net-tile {
  border-radius:1px;
  box-shadow:inset 0 0 0 1px #263c3505
}

.site-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:24px 0 27px;
  font-size:9px;
  color:#a4ad97
}

.site-footer>span {
  display:flex;
  align-items:center;
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:.5px
}

.footer-dot {
  font-size:13px;
  margin:0 13px;
  color:#98aa84
}

.site-footer>div {
  display:flex;
  align-items:center;
  gap:15px
}

.site-footer button {
  font-size:9px;
  display:flex;
  align-items:center;
  gap:6px;
  color:#9ba68f;
  white-space:nowrap;
  padding:3px 0
}

.site-footer button:hover {
  color:var(--green)
}

.site-footer .icon {
  width:13px;
  height:13px
}

.footer-divider {
  width:1px;
  height:12px;
  background:var(--line)
}

.toast {
  position:fixed;
  bottom:27px;
  left:50%;
  transform:translate(-50%,10px);
  background:#244e40f2;
  color:#fbfcec;
  box-shadow:0 5px 30px #20453720;
  border:1px solid #ffffff25;
  border-radius:10px;
  padding:12px 22px;
  font-size:12px;
  opacity:0;
  pointer-events:none;
  z-index:20;
  transition:.22s;
  max-width:calc(100vw - 32px);
  text-align:center
}

.toast.visible {
  opacity:1;
  transform:translate(-50%,0)
}

dialog {
  border:1px solid #dce4d2;
  border-radius:21px;
  background:var(--white);
  color:var(--ink);
  padding:28px 32px 30px;
  width:min(620px,calc(100% - 32px));
  max-height:calc(100dvh - 40px);
  box-shadow:0 25px 100px #1a392630
}

dialog::backdrop {
  background:#24362b48;
  backdrop-filter:blur(5px)
}

.dialog-header {
  display:flex;
  align-items:center;
  justify-content:space-between
}

.dialog-header .eyebrow {
  font-size:9px
}

dialog h2 {
  font-size:23px;
  font-weight:500;
  letter-spacing:.5px;
  margin:16px 0 12px
}

dialog>p {
  font-size:12px;
  color:#8b9b7c;
  line-height:1.8;
  margin:0
}

.help-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px 28px;
  margin:29px 0 24px
}

.help-number {
  font-family:var(--mono);
  font-size:10px;
  color:#9cad86
}

.help-grid h3 {
  font-size:14px;
  font-weight:500;
  margin:6px 0 9px
}

.help-grid p {
  font-size:11px;
  line-height:2;
  color:#8a9980;
  margin:0
}

kbd {
  font-family:var(--mono);
  font-size:9px;
  background:#f0f3e9;
  padding:1px 5px;
  border:1px solid #dfe6d5;
  border-radius:4px;
  color:#668358
}

.help-note {
  font-size:10px;
  line-height:1.9;
  color:#95a086;
  background:#f0f3e9;
  padding:12px 15px;
  border-radius:9px
}

.dialog-primary {
  width:100%;
  margin-top:19px
}

.dialog-primary .icon {
  margin-left:6px
}

.records-list {
  margin:25px 0;
  display:flex;
  flex-direction:column;
  gap:12px
}

.record-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:17px;
  background:#f2f5ec;
  border-radius:10px
}

.record-row strong {
  font-size:13px;
  font-weight:500
}

.record-row small {
  font-size:10px;
  color:#94a183;
  margin-left:10px
}

.record-row .record-time {
  font-family:var(--mono);
  font-size:18px;
  color:#4c6f3f
}

.record-row .record-empty {
  font-size:11px;
  color:#a0ad91
}

#win-dialog {
  max-width:430px;
  text-align:center
}

.win-icon {
  margin:16px auto;
  width:65px;
  height:65px;
  display:grid;
  place-items:center;
  background:#edf2de;
  border-radius:50%;
  color:#7e9b4e
}

.win-icon .icon {
  width:30px;
  height:30px
}

.win-stats {
  display:flex;
  justify-content:center;
  gap:65px;
  margin:25px 0
}

.win-stats>div {
  display:flex;
  flex-direction:column;
  gap:8px
}

.win-stats span {
  font-size:10px;
  color:#92a17d
}

.win-stats strong {
  font-family:var(--mono);
  font-size:25px;
  font-weight:400
}

.loading {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-direction:column;
  color:#859675;
  font-size:12px;
  background:#eef1e7;
  z-index:4;
  transition:opacity .4s
}

.loading.hidden {
  opacity:0;
  pointer-events:none
}

.loading-cube {
  width:25px;
  height:25px;
  border-radius:5px;
  border:2px solid #b5c89c;
  animation:loading-turn 1.4s infinite
}

.loading.error {
  padding:35px;
  text-align:center;
  line-height:1.8
}

.stage:fullscreen {
  height:100dvh;
  width:100vw;
  border-radius:0
}

.stage:fullscreen .stage-watermark {
  top:calc(50% - 140px);
  font-size:230px
}

.stage:fullscreen .scene-badge {
  bottom:85px
}

@keyframes loading-turn {
  0% {
    transform:rotate(0)
  }
  100% {
    transform:rotate(180deg)
  }
}

.scene-badge {
  top:65px;
  bottom:auto;
  left:auto;
  right:26px;
  transform:none;
  font-size:9px
}

.stage:fullscreen .scene-badge {
  top:75px;
  bottom:auto
}

@media(min-width:1600px) {
  .page-shell {
    max-width:1540px;
    padding:0 68px
  }
  .site-header {
    height:118px
  }
  .intro {
    padding:47px 0 38px
  }
  .intro h1 {
    font-size:39px
  }
  .game-layout {
    grid-template-columns:minmax(0,1fr) 365px;
    gap:26px
  }
  .stage {
    height:495px
  }
  .challenge-card {
    padding:31px 29px 22px
  }
  .challenge-card h2 {
    margin-top:24px
  }
  .stats {
    margin-top:34px;
    margin-bottom:24px
  }
  .difficulty-section {
    margin-top:25px
  }
  .primary-button {
    height:51px;
    margin-top:20px
  }
  .secondary-actions>button {
    height:40px
  }
  .best-line {
    margin-top:27px
  }
  .reset-button {
    margin-top:19px
  }
  .stage-watermark {
    font-size:190px;
    top:85px
  }
}

@media(max-width:1180px) {
  .page-shell {
    padding:0 30px
  }
  .game-layout {
    grid-template-columns:minmax(0,1fr) 315px;
    gap:18px
  }
  .site-header {
    gap:30px
  }
  .header-note {
    display:none
  }
  .site-header nav {
    margin-left:auto;
    margin-right:0
  }
  .stage {
    height:420px
  }
  .challenge-card {
    padding:24px 21px 17px
  }
  .face-controls {
    padding:17px 19px 21px
  }
  .face-buttons {
    gap:7px
  }
  .face-buttons button {
    gap:6px
  }
  .face-buttons button>span:last-child {
    display:none
  }
  .net-card {
    padding:18px 15px
  }
  .cube-net {
    grid-template-columns:repeat(4,28px);
    grid-template-rows:repeat(3,28px);
    gap:2px
  }
  .net-copy .eyebrow {
    font-size:6px
  }
  .net-copy h2 {
    font-size:11px
  }
  .net-copy .progress-label {
    font-size:7px
  }
  .timer {
    font-size:30px
  }
  .stats>div+div {
    padding-left:21px
  }
  .stage-watermark {
    font-size:135px;
    top:90px
  }
}

@media(max-width:900px) {
  .page-shell {
    padding:0 24px
  }
  .site-header {
    height:87px
  }
  .brand {
    font-size:17px
  }
  .site-header nav {
    gap:22px;
    font-size:11px
  }
  .intro {
    padding:30px 0 27px
  }
  .intro h1 {
    font-size:29px
  }
  .intro p {
    font-size:10px
  }
  .intro .eyebrow {
    font-size:7px;
    letter-spacing:1.4px
  }
  .game-layout {
    grid-template-columns:minmax(0,1fr) 280px;
    gap:16px
  }
  .challenge-card {
    padding:22px 18px 16px
  }
  .challenge-card h2 {
    font-size:22px
  }
  .challenge-title .eyebrow {
    font-size:7px
  }
  .panel-subtitle {
    font-size:9px
  }
  .timer {
    font-size:27px
  }
  .timer span {
    font-size:16px
  }
  .move-stat strong {
    font-size:28px
  }
  .stats>div+div {
    padding-left:19px
  }
  .primary-button kbd {
    margin-left:20px
  }
  .difficulty-options>button {
    gap:4px;
    font-size:9px
  }
  .difficulty-options>button>span {
    font-size:7px
  }
  .stage {
    height:410px
  }
  .stage-heading {
    left:16px;
    right:16px;
    top:18px
  }
  .stage-edition {
    font-size:6px;
    letter-spacing:1px
  }
  .stage-watermark {
    font-size:100px;
    letter-spacing:-5px;
    top:102px
  }
  .drag-hint {
    font-size:7px;
    gap:4px
  }
  .drag-hint b {
    margin:0 2px
  }
  .stage-bottom {
    left:16px;
    right:13px;
    bottom:16px
  }
  .icon-button {
    width:26px;
    height:26px
  }
  .face-controls {
    padding:17px 16px
  }
  .face-buttons button {
    height:38px
  }
  .control-heading small {
    display:none
  }
  .face-buttons {
    gap:5px
  }
  .face-buttons b {
    font-size:13px
  }
  .face-dot {
    width:6px;
    height:6px
  }
  .section-title h2 {
    font-size:11px
  }
  .section-title>.eyebrow {
    font-size:7px
  }
  .history-card {
    padding:20px 17px
  }
  .net-card {
    gap:7px;
    padding:17px 12px
  }
  .net-copy .eyebrow {
    font-size:5px;
    letter-spacing:.6px
  }
  .net-copy h2 {
    font-size:10px
  }
  .cube-net {
    grid-template-columns:repeat(4,25px);
    grid-template-rows:repeat(3,25px)
  }
  .site-footer>span {
    font-size:6px
  }
  .site-footer {
    font-size:8px;
    gap:10px
  }
  .site-footer>div {
    gap:10px
  }
}

@media(max-width:700px) {
  .page-shell {
    padding:0 18px
  }
  .site-header {
    height:82px;
    gap:10px
  }
  .brand {
    font-size:16px;
    gap:10px
  }
  .brand small {
    font-size:7px;
    letter-spacing:3px;
    margin-top:5px
  }
  .brand-mark {
    width:28px;
    height:28px;
    gap:3px
  }
  .site-header nav {
    gap:17px;
    font-size:10px
  }
  .site-header nav>button:last-child .icon {
    display:none
  }
  .site-header nav .nav-active {
    display:none
  }
  .intro {
    padding:28px 0 24px
  }
  .intro h1 {
    font-size:27px;
    letter-spacing:.2px;
    margin:11px 0 9px
  }
  .intro .eyebrow {
    font-size:6px;
    letter-spacing:1.2px
  }
  .intro p {
    font-size:10px;
    line-height:1.8;
    max-width:280px
  }
  .edition {
    display:none
  }
  .game-layout {
    grid-template-columns:1fr;
    gap:16px
  }
  .play-card {
    border-radius:17px
  }
  .stage {
    height:398px
  }
  .stage-heading {
    left:20px;
    right:20px;
    top:20px
  }
  .stage-edition {
    font-size:7px;
    letter-spacing:1px
  }
  .stage-watermark {
    font-size:120px;
    top:77px;
    letter-spacing:-7px
  }
  .stage-bottom {
    left:18px;
    right:17px
  }
  .drag-hint {
    font-size:8px;
    gap:5px
  }
  .scene-badge {
    font-size:8px;
    bottom:57px
  }
  .face-controls {
    padding:18px
  }
  .face-buttons {
    gap:7px
  }
  .face-buttons button {
    height:40px
  }
  .face-buttons button>span:last-child {
    display:none
  }
  .face-buttons b {
    font-size:14px
  }
  .face-buttons .face-dot {
    width:7px;
    height:7px
  }
  .control-heading {
    margin-bottom:12px
  }
  .control-heading small {
    display:inline;
    font-size:7px;
    letter-spacing:1px
  }
  .challenge-card {
    padding:24px;
    border-radius:17px;
    display:grid;
    grid-template-columns:1fr 1fr;
    column-gap:18px
  }
  .challenge-title {
    grid-column:1/-1
  }
  .challenge-title .eyebrow {
    font-size:8px
  }
  .challenge-card h2 {
    grid-column:1/-1;
    margin-top:13px
  }
  .panel-subtitle {
    grid-column:1/-1;
    font-size:10px
  }
  .stats {
    grid-column:1/-1;
    margin-top:24px;
    margin-bottom:14px;
    grid-template-columns:1fr 1fr
  }
  .stats>div+div {
    padding-left:25px
  }
  .timer {
    font-size:35px
  }
  .timer span {
    font-size:21px
  }
  .move-stat strong {
    font-size:35px
  }
  .challenge-status {
    grid-column:1/-1;
    padding-bottom:15px
  }
  .difficulty-section {
    grid-column:1/-1;
    margin-top:20px
  }
  .difficulty-options>button {
    font-size:11px;
    padding:10px 2px;
    gap:8px
  }
  .difficulty-options>button>span {
    font-size:9px
  }
  .small-heading {
    font-size:11px
  }
  .small-heading>span:last-child {
    font-size:9px
  }
  .primary-button {
    grid-column:1/-1;
    height:49px;
    margin-top:15px;
    font-size:13px
  }
  .primary-button kbd {
    margin-left:auto
  }
  .challenge-card>.primary-button {
    padding:0 18px
  }
  .challenge-card>.primary-button>.icon {
    margin-right:0
  }
  .challenge-card>.primary-button>span {
    margin-right:auto
  }
  .secondary-actions {
    grid-column:1/-1;
    gap:10px
  }
  .secondary-actions>button {
    height:41px;
    font-size:11px
  }
  .rewind-note {
    grid-column:1/-1;
    font-size:10px
  }
  .rewind-note>button {
    font-size:10px
  }
  .rewind-action>button {
    font-size:11px;
    padding:0 12px
  }
  .rewind-amount input {
    width:44px;
    height:37px;
    font-size:13px
  }
  .best-line {
    grid-column:1/-1;
    margin-top:22px;
    font-size:10px
  }
  .best-line strong {
    font-size:9px
  }
  .reset-button {
    grid-column:1/-1;
    margin-top:18px;
    padding-top:15px;
    font-size:10px
  }
  .panel-footnote {
    grid-column:1/-1;
    padding-top:14px;
    font-size:8px
  }
  .history-card {
    padding:22px
  }
  .section-title h2 {
    font-size:13px
  }
  .section-title>.eyebrow {
    font-size:8px
  }
  .move-history {
    height:53px
  }
  .history-empty {
    font-size:11px
  }
  .scramble-line {
    font-size:9px
  }
  .scramble-line code {
    font-size:9px
  }
  .net-card {
    padding:23px 26px
  }
  .net-copy .eyebrow {
    font-size:8px;
    letter-spacing:1.3px;
    margin-bottom:12px
  }
  .net-copy h2 {
    font-size:15px
  }
  .net-copy .progress-label {
    font-size:9px;
    margin-top:20px
  }
  .cube-net {
    grid-template-columns:repeat(4,32px);
    grid-template-rows:repeat(3,32px);
    gap:3px
  }
  .site-footer {
    padding:21px 0 25px;
    flex-wrap:wrap;
    justify-content:center;
    gap:16px
  }
  .site-footer>span {
    font-size:6px;
    letter-spacing:0
  }
  .site-footer>div {
    gap:18px
  }
  .site-footer button {
    font-size:10px
  }
  .help-grid {
    gap:21px
  }
  .help-grid h3 {
    font-size:13px
  }
  .help-grid p {
    font-size:10px
  }
  .help-grid kbd {
    font-size:8px
  }
  dialog {
    padding:21px 22px 24px
  }
  dialog h2 {
    font-size:20px
  }
  .help-note {
    font-size:9px
  }
  .win-stats {
    gap:45px
  }
}

@media(max-width:370px) {
  .page-shell {
    padding:0 12px
  }
  .brand {
    font-size:14px
  }
  .site-header nav {
    gap:12px;
    font-size:9px
  }
  .intro h1 {
    font-size:24px
  }
  .intro .eyebrow {
    font-size:5px
  }
  .stage {
    height:355px
  }
  .stage-edition {
    font-size:6px
  }
  .stage-watermark {
    font-size:100px
  }
  .face-controls {
    padding:17px 13px
  }
  .face-buttons {
    gap:5px
  }
  .face-buttons button {
    gap:5px
  }
  .drag-hint {
    font-size:7px
  }
  .challenge-card {
    padding:22px
  }
  .net-card {
    padding:22px
  }
  .cube-net {
    grid-template-columns:repeat(4,28px);
    grid-template-rows:repeat(3,28px)
  }
  .help-grid {
    grid-template-columns:1fr
  }
  .help-grid p {
    font-size:11px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}

@media(max-width:700px) {
  .scene-badge {
    display:none
  }
}
