:root {
  --ink: #172320;
  --muted: #6a7773;
  --paper: #f5f3ee;
  --card: #fffcf7;
  --line: #dfdfd8;
  --green: #0b8064;
  --green-deep: #075542;
  --white: #f7f4e9;
  --red: #e85443;
  --cube-green: #35a26e;
  --yellow: #f0c844;
  --orange: #ed8a3c;
  --blue: #3989c7;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: Manrope, system-ui, sans-serif; }
button { font: inherit; }

.app-shell { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 30px 0 22px; }
.hero { position: relative; max-width: 780px; padding: 10px 0 48px; }
.brand { position: absolute; top: 0; right: 0; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -.7px; text-decoration: none; }
.brand span:last-child { color: var(--green); }
.brand-mark { display: inline-grid; place-items: center; margin-right: 5px; color: var(--green); font-size: 17px; transform: rotate(14deg); }
.eyebrow, .kicker, .solution-label { color: var(--green); font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-top: 54px; }
.eyebrow span { width: 21px; height: 1px; background: currentColor; }
h1 { margin: 13px 0 13px; font-size: clamp(37px, 5vw, 63px); font-weight: 800; letter-spacing: -3.5px; line-height: 1.03; }
h1 em { color: var(--green); font-style: normal; }
.intro { max-width: 570px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.readiness { display: inline-flex; align-items: center; gap: 8px; margin-top: 23px; border-radius: 100px; color: #5b6863; font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #d6a431; box-shadow: 0 0 0 4px #f3e5be; }
.readiness.ready .status-dot { background: #25a877; box-shadow: 0 0 0 4px #d5eee5; }

.workspace { display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; align-items: stretch; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: 0 9px 26px rgba(24, 37, 32, .035); }
.cube-card { padding: 29px 31px 23px; }
.solution-card { display: flex; flex-direction: column; padding: 29px 31px 22px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.card-heading h2 { margin: 6px 0 0; font-size: 23px; letter-spacing: -1.1px; }
.kicker { margin: 0; }
.text-button { border: 0; background: none; color: #65726d; cursor: pointer; font-size: 12px; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--green); }
.orientation-note { margin: 20px 0 18px; padding: 10px 12px; border-left: 2px solid #b9d7cd; background: #f1f8f5; color: #5c6c66; font-size: 11px; line-height: 1.5; }
.orientation-note strong { color: #315c51; }

.palette { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.swatch { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 8px 5px 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #65716d; cursor: pointer; font-size: 10px; transition: .15s ease; }
.swatch i { display: block; width: 16px; height: 16px; border: 1px solid rgba(30,40,36,.17); border-radius: 50%; }
.swatch:hover { background: #f3f2ed; }
.swatch.selected { border-color: #b8cec6; background: #edf6f2; color: #285c4d; font-weight: 700; }
.swatch[data-color="U"] i { background: var(--white); }.swatch[data-color="R"] i { background: var(--red); }.swatch[data-color="F"] i { background: var(--cube-green); }.swatch[data-color="D"] i { background: var(--yellow); }.swatch[data-color="L"] i { background: var(--orange); }.swatch[data-color="B"] i { background: var(--blue); }

.cube-net { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-areas: ". u . ." "l f r b" ". d . ."; gap: 11px; align-items: center; width: min(100%, 450px); margin: 0 auto 25px; }
.face { position: relative; aspect-ratio: 1; min-width: 0; padding: 5px; border: 1px solid #d6d9d5; border-radius: 6px; background: #e8e9e4; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.face-u { grid-area: u; }.face-l { grid-area: l; }.face-f { grid-area: f; }.face-r { grid-area: r; }.face-b { grid-area: b; }.face-d { grid-area: d; }
.face-name { position: absolute; z-index: 1; top: -15px; left: 0; color: #8c9692; font-family: "DM Mono", monospace; font-size: 7px; letter-spacing: .2px; white-space: nowrap; }
.stickers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; width: 100%; height: 100%; }
.stickers[data-size="3"] { gap: 2.5px; }
.stickers[data-size="4"] { gap: 2.2px; }
.stickers[data-size="5"] { gap: 2px; }
.stickers[data-size="6"] { gap: 1.8px; }
.stickers[data-size="7"] { gap: 1.5px; }
#size-selector { font-family: "DM Mono", monospace; }
.sticker { position: relative; border: 0; border-radius: 2px; cursor: pointer; box-shadow: inset 0 -1px 1px rgba(0,0,0,.13); transition: transform .12s, outline .12s; }
.sticker:hover { z-index: 2; outline: 2px solid rgba(21, 104, 81, .72); outline-offset: 1px; transform: scale(1.055); }
.sticker.color-U { background: var(--white); }.sticker.color-R { background: var(--red); }.sticker.color-F { background: var(--cube-green); }.sticker.color-D { background: var(--yellow); }.sticker.color-L { background: var(--orange); }.sticker.color-B { background: var(--blue); }
.entry-actions, .solution-actions { display: flex; gap: 10px; }
.entry-actions { justify-content: flex-end; align-items: center; }
.secondary-button, .solve-button, .play-button { min-height: 39px; border-radius: 7px; padding: 0 14px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .14s, box-shadow .14s, background .14s; }
.secondary-button { border: 1px solid #d7ddd9; background: transparent; color: #50605a; }.secondary-button:hover { background: #f4f5f1; }
.solve-button, .play-button { border: 1px solid var(--green); background: var(--green); color: white; box-shadow: 0 4px 11px rgba(11,128,100,.18); }.solve-button:hover:not(:disabled), .play-button:hover { background: var(--green-deep); transform: translateY(-1px); }.solve-button:disabled { cursor: wait; opacity: .57; }
.solve-button span, .play-button span { margin-left: 8px; font-size: 16px; vertical-align: -1px; }
.validation-message { min-height: 18px; margin: 13px 0 0; color: #73807b; font-size: 11px; text-align: right; }.validation-message.error { color: #bd5144; }

.move-count { margin-top: 5px; color: #60716a; font-family: "DM Mono", monospace; font-size: 10px; }
.solution-empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; min-height: 306px; text-align: center; }.empty-orbit { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border: 1px dashed #a7cabe; border-radius: 50%; color: var(--green); font-size: 20px; }.empty-orbit span { animation: float 2.8s ease-in-out infinite; }.solution-empty h3 { margin: 0; font-size: 16px; letter-spacing: -.5px; }.solution-empty p { max-width: 220px; margin: 7px 0 0; color: #7a8581; font-size: 12px; line-height: 1.55; }
.hidden { display: none; }.solution-result { flex: 1; padding: 41px 0 3px; }.solution-label { margin: 0 0 12px; }.move-list { display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; min-height: 112px; }.move { min-width: 40px; border: 1px solid #c9ded5; border-radius: 5px; background: #eff7f3; color: #166d57; font-family: "DM Mono", monospace; font-size: 18px; font-weight: 500; line-height: 39px; text-align: center; }.move.active { border-color: var(--green); background: var(--green); color: white; box-shadow: 0 4px 9px rgba(11,128,100,.22); }.notation-note { margin: 17px 0; color: #74817c; font-size: 11px; line-height: 1.5; }.notation-note b { color: #3b564c; }.play-button { margin-left: auto; }.playback-status { min-height: 17px; margin: 10px 0 0; color: #54766b; font-size: 11px; text-align: right; }
.how-it-works { display: flex; gap: 9px; margin-top: auto; padding-top: 17px; border-top: 1px solid #e6e5df; color: #77817d; font-size: 10px; line-height: 1.55; }.how-it-works p { margin: 0; }.how-it-works strong { color: #52635d; }.mini-icon { color: var(--green); font-size: 15px; }
footer { display: flex; justify-content: space-between; padding: 24px 2px 0; color: #96a09c; font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .4px; text-transform: uppercase; }
@keyframes float { 50% { transform: translateY(-4px) rotate(10deg); } }
@media (max-width: 830px) { .workspace { grid-template-columns: 1fr; }.solution-empty { min-height: 220px; }.solution-card { min-height: 390px; } }
@media (max-width: 530px) { .app-shell { width: min(100% - 26px, 1180px); padding-top: 20px; }.hero { padding-bottom: 32px; }.brand { position: static; display: inline-block; }.eyebrow { margin-top: 37px; }h1 { font-size: 40px; letter-spacing: -2.5px; }.cube-card, .solution-card { padding: 23px 17px 18px; }.cube-net { gap: 7px; }.face { padding: 3px; }.face-name { top: -13px; font-size: 5.5px; }.orientation-note { font-size: 10px; }.swatch span { display: none; }.swatch { padding: 5px; }.entry-actions { align-items: stretch; flex-direction: column-reverse; }.entry-actions button { width: 100%; }.solution-actions { flex-wrap: wrap; }.play-button { margin-left: 0; }.solution-result { padding-top: 28px; } footer { gap: 10px; font-size: 7px; } }
