:root { color-scheme: dark; --background: #202122; --panel: #292a2d; --ink: #f4f3f5; --muted: #a1a0a7; --line: #45454c; --tile: #27282b; --accent: #bfa6ef; --accent-dark: #675181; --success: #9caf7c; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--background); font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .32; }
button, a { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); }
.sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.skip-link { position: fixed; top: -60px; left: 15px; padding: 12px; z-index: 10; background: var(--panel); color: var(--ink); }
.skip-link:focus { top: 8px; }
.site-header { flex: none; border-bottom: 1px solid #38383e; }
.header-inner { max-width: 520px; width: 100%; padding: 17px 18px 14px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: auto; }
.heading { text-align: center; }
h1 { margin: 0; font-size: 39px; font-weight: 850; letter-spacing: -2px; line-height: 1.1; }
h1 > span { font-size: 29px; margin-left: 6px; display: inline-block; color: var(--accent); vertical-align: 2px; font-weight: 400; }
#puzzle-number { margin: 9px 0 0; color: var(--muted); font-size: 13px; font-weight: 450; letter-spacing: .3px; }
.puzzle-navigation { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 3px; margin: 4px auto 0; max-width: 300px; }
.puzzle-navigation #puzzle-number { margin: 0; line-height: 1.5; }
#puzzle-date { display: block; color: #aaa4b3; font-size: 10px; line-height: 1.6; margin-top: 1px; }
.day-button { display: inline-grid; place-items: center; width: 36px; height: 40px; border-radius: 5px; background: transparent; color: #d2c5e3; font-size: 30px; line-height: 1; }
.day-button:hover:not(:disabled) { background: #36313e; }
.puzzle-navigation.is-practice { display: block; }
.icon-button { background: transparent; border-radius: 6px; width: 44px; height: 44px; display: inline-grid; place-items: center; color: #b9b6c2; }
.icon-button:hover { background: #303035; color: var(--ink); }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.game { flex: 1; min-height: 0; display: flex; flex-direction: column; width: min(100%, 520px); margin: 0 auto; outline: none; }
.play-area { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.loading-state { text-align: center; color: var(--muted); padding: 40px 24px; font-size: 13px; line-height: 1.6; }
.board-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 16px 10px; scrollbar-width: thin; scrollbar-color: #52515c transparent; overscroll-behavior: contain; }
.ladder { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 7px; margin: 0; padding: 0; }
.ladder-row { width: min(100%, 324px); position: relative; }
.word-row, .active-row { width: min(100%, 324px); margin: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0; background: transparent; }
.word-row { border-radius: 0; }
.word-row > span, .active-row > span { display: grid; place-items: center; height: 60px; border: 2px solid #63626a; background: var(--tile); color: var(--ink); font-size: 29px; font-weight: 700; line-height: 1; }
.word-row > .target-letter { background: #71608b; border-color: #9a84bc; }
.word-row:hover > span { border-color: var(--accent); }
.word-row > .changed-letter { box-shadow: inset 0 -3px 0 #b49ad9; }
.ladder-row.future-row { opacity: .32; }
.ladder-row.current-row .word-row > span { border-color: #b3a2cf; }
.ladder-row.final-row .word-row > span { background: #526342; border-color: #82986b; color: #fafcf7; }
.active-row { margin-top: 7px; outline-offset: 4px; }
.active-row > span { border-color: #48484f; background: transparent; }
.active-row > .filled { border-color: #8c849b; }
.active-row > .cursor { border-color: var(--accent); }
.finished-label { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 2px; margin: 16px 0 0; color: #a7bc8f; }
.finished-label > span { margin-left: 4px; }
.board-status { height: 30px; flex: none; text-align: center; padding: 3px 15px 0; }
#move-message { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.game-tools { display: flex; gap: 8px; justify-content: center; align-items: center; height: 43px; flex: none; margin: 0 auto 9px; }
#move-message.is-error { color: #f0ad9e; }
.tool-button { width: 38px; height: 38px; display: inline-grid; place-items: center; color: #c2bdcb; background: transparent; font-size: 25px; border-radius: 5px; }
.tool-button:hover:not(:disabled) { background: #303035; }
.tool-divider { height: 17px; width: 1px; background: var(--line); margin: 0 4px; }
.text-button { background: transparent; color: var(--muted); padding: 10px 8px; font-size: 12px; min-height: 36px; border-radius: 4px; }
.text-button:hover:not(:disabled) { color: var(--ink); background: #ffffff06; }
.hint-button { color: #bba6db; margin-left: 10px; }
.hint-button > span { font-size: 17px; vertical-align: -1px; margin-left: 2px; }
.hint-box { position: relative; flex: none; background: #3a3247; border: 1px solid #6a557e; border-radius: 6px; padding: 10px 38px 8px 14px; margin: 0 15px 14px; }
.hint-box p { font-size: 12px; line-height: 1.6; margin: 0; }
.hint-box .text-button { color: #dac8f5; padding-left: 0; padding-bottom: 0; min-height: 30px; }
.small-close { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; font-size: 22px; }
.keyboard-dock { flex: none; width: min(100%, 430px); margin: 0 auto; padding: 0 12px max(14px, env(safe-area-inset-bottom)); }
.keyboard { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.keyboard-row { display: flex; justify-content: center; width: 100%; gap: 5px; }
.keyboard-row:nth-child(2) { width: 90%; }
.key { flex: 1; min-width: 0; height: 49px; border-radius: 4px; background: #626168; color: #fff; padding: 0; font-size: 14px; font-weight: 650; user-select: none; }
.key:hover:not(:disabled) { background: #81768f; }
.key:active:not(:disabled), .key.is-pressed { background: var(--accent-dark); transform: translateY(1px); }
.key-wide { flex: 1.55; font-size: 11px; }
.key-backspace { font-size: 20px; }
.footer-links { display: flex; justify-content: center; gap: 29px; padding-top: 9px; }
.footer-links .text-button { color: #a7a3af; font-size: 12px; min-height: 34px; }
.footer-links .crossword-link { display: inline-grid; place-items: center; color: #cfb5f1; text-decoration: none; white-space: nowrap; }
.footer-links .crossword-link:hover { text-decoration: underline; }
dialog { width: min(470px, calc(100% - 30px)); max-height: calc(100dvh - 36px); border: 1px solid #45434c; border-radius: 9px; background: var(--panel); color: var(--ink); padding: 28px; box-shadow: 0 20px 90px #0006; }
dialog::backdrop { background: #0009; }
dialog h2 { font-size: 24px; line-height: 1.3; font-weight: 500; text-align: center; margin: 4px 15px 27px; letter-spacing: -.4px; }
dialog h2 strong { font-weight: 800; }
dialog p { font-size: 14px; line-height: 1.7; color: #d1cdd8; }
.dialog-close { position: absolute; right: 5px; top: 5px; border-radius: 5px; width: 38px; height: 38px; color: #aaa3b5; background: transparent; font-size: 25px; }
.dialog-close:hover { background: #39363e; color: white; }
.help-goal { margin-top: 0; font-weight: 600; }
.example { margin: 22px auto; max-width: 270px; display: grid; gap: 6px; }
.example > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.example span { display: grid; place-items: center; height: 49px; font-size: 25px; font-weight: 700; border: 2px solid #67646c; }
.example .example-change { border-color: #a78bc7; background: #66517f; }
.primary-button { min-height: 44px; background: var(--accent); color: #251e30; border-radius: 5px; font-size: 14px; font-weight: 650; padding: 12px 20px; display: block; margin: 24px auto 3px; }
.primary-button:hover { background: #d2baf9; }
.history-tabs { display: flex; border-bottom: 1px solid #4a4651; margin-bottom: 14px; }
.history-tabs button { flex: 1; padding: 12px 5px; background: transparent; border-bottom: 2px solid transparent; color: #b2aabf; font-size: 14px; }
.history-tabs button[aria-selected="true"] { color: #dbc6fa; border-color: var(--accent); }
.archive-controls { margin-bottom: 10px; }
.archive-month-controls { display: grid; grid-template-columns: 36px minmax(0, 1fr) 85px 36px; gap: 6px; align-items: center; }
.archive-month-controls .icon-button { width: 36px; height: 40px; font-size: 27px; }
.archive-controls select, .archive-date-form input { min-width: 0; height: 40px; padding: 7px 8px; border: 1px solid #5d5369; border-radius: 5px; color: var(--ink); background: #323035; font: inherit; font-size: 13px; }
.archive-date-form { display: grid; grid-template-columns: minmax(0, 1fr) 44px 54px; gap: 6px; margin: 10px 0 0; }
.archive-date-form .text-button { color: #cfb5f1; font-size: 12px; border: 1px solid #5d5369; min-height: 40px; padding: 8px 5px; }
.archive-message { margin: 6px 0 0; color: #f0ad9e; font-size: 12px; line-height: 1.5; }
.archive-message:empty { display: none; }
.history-list { display: flex; flex-direction: column; gap: 6px; max-height: min(50dvh, 430px); overflow-y: auto; padding: 3px; }
.puzzle-choice { display: grid; grid-template-columns: 80px 1fr 65px 20px; align-items: center; gap: 8px; padding: 14px 12px; background: #323136; border: 1px solid #45414c; border-radius: 4px; text-align: left; }
.puzzle-choice:hover, .puzzle-choice.current-puzzle { border-color: #a58bbc; }
.puzzle-choice-date { font-size: 11px; color: #c1b9cd; }
.puzzle-choice strong { font-size: 14px; letter-spacing: 1px; }
.puzzle-choice-par { font-size: 11px; color: #ada4b8; }
.puzzle-choice-check { color: #bdd5a2; text-align: right; }
#win-dialog { text-align: center; }
.win-spark { display: block; font-size: 43px; line-height: 1; color: var(--accent); margin: 11px 0 16px; }
#win-title { font-weight: 750; font-size: 29px; margin-bottom: 12px; }
#win-path { font-weight: 650; letter-spacing: 1.5px; font-size: 16px; }
#win-message { font-size: 13px; }
.share-status { min-height: 20px; margin: 9px 0 0; font-size: 12px; }
#solution-button { color: #c7b1e2; }
.solution-text { font-size: 12px; line-height: 1.8; font-weight: 600; }
.next-word { padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .header-inner { padding-top: 12px; padding-bottom: 12px; } h1 { font-size: 35px; } h1 > span { font-size: 26px; } .board-scroll { padding-top: 22px; } .keyboard-dock { padding-left: 8px; padding-right: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); } .key { height: 49px; } .keyboard-row { gap: 4px; } .footer-links { padding-top: 7px; } .tool-button, .text-button { min-height: 40px; } dialog { padding: 26px 22px; } .puzzle-choice { grid-template-columns: 64px 1fr 56px 14px; padding: 13px 9px; gap: 5px; } }
@media (max-width: 350px) { .word-row > span, .active-row > span { height: 51px; font-size: 25px; } .key { font-size: 12px; height: 45px; } .key-wide { font-size: 10px; } .key-backspace { font-size: 18px; } .footer-links { gap: 17px; } }
.home-link { color: inherit; text-decoration: none; }
.home-link > span { color: #cfb5f1; font-size: .72em; margin-left: .2em; }
@media (max-height: 650px) { .header-inner { padding-top: 8px; padding-bottom: 8px; } h1 { font-size: 30px; } #puzzle-number { margin-top: 5px; font-size: 12px; } .board-scroll { padding-top: 13px; } .key { height: 40px; } .keyboard { gap: 5px; } .game-tools { height: 37px; margin-bottom: 4px; } .footer-links { padding-top: 4px; } .board-status { height: 26px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
