@import url('/base.css');
:root{--paper:#eee3c6;--focus:#e4ac59;--ink:#f0dfc0}body{background:#302a36;color:#ecdfc7;font-family:Georgia,serif;background-image:radial-gradient(ellipse at 75% 30%,#54404d77,transparent 65%)}.shell{max-width:1100px}.masthead{padding:0 0 0 4px}.masthead h1{font-family:Georgia,serif;font-weight:400;font-style:italic;font-size:90px;line-height:1;letter-spacing:-.06em;color:#ebbc76}.masthead .eyebrow{font-family:Arial,sans-serif;color:#beadae;letter-spacing:.22em}.masthead .tagline{font-size:18px;color:#dfcfc3;margin-bottom:0}.moth-mark{position:absolute;right:20px;top:0;width:150px;height:120px;stroke:#b89a83;fill:none;stroke-width:1.2;opacity:.85}.edition-bar{border-color:#8a707b}.modes button{border-color:transparent;font-size:15px;font-family:Georgia,serif}.modes button[aria-pressed=true]{background:#e3c39b;color:#352c36}.edition{font-family:Arial,sans-serif;color:#d2bcb9;font-size:10px}.puzzle-number{font-family:Arial,sans-serif;color:#d9a86d}.brief h2{font-weight:400;font-style:italic;font-size:32px}.objective{color:#e2cfc0;font-size:16px}.campaign-controls label{font-family:Arial,sans-serif;color:#c9b2b3}.campaign-controls select{background:#3a303e;color:#f2dfc1;border-color:#a5868b;font-family:Georgia,serif}.paging button{border-color:#947680}.rules{border-color:#8a707b;color:#e2cfc0}.rules summary{color:#efddc5}.stats{font-family:Arial,sans-serif;border-bottom:1px solid #8a707b;padding-bottom:10px}.stat strong{font-family:Georgia,serif;font-weight:400;color:#ecc68b}.stat-label{color:#cbb7b8}.assistance{color:#cfbabb}.fold-bench{display:grid;grid-template-columns:100px minmax(0,1fr);gap:25px;align-items:center;padding:12px 0 16px}.lantern{text-align:center}.lantern-label{font:9px Arial,sans-serif;letter-spacing:.15em;line-height:1.6;color:#edc98e}.lantern-label small{display:block;font-family:Georgia,serif;color:#d1b8b7;letter-spacing:0;font-size:12px}.target-panes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;background:#a98463;padding:5px;border:1px solid #d7b184;box-shadow:0 0 30px #e2a75814;margin:12px auto 0;max-width:108px}.target-panes>span{aspect-ratio:1;background:#e7b86c;color:#503e33;display:flex;align-items:center;justify-content:center;gap:3px;position:relative;font-size:22px}.lantern>p{font-size:12px;line-height:1.5;color:#cbb3b5;margin:12px 0 0}.paper-area{min-width:0}.paper-label{display:flex;justify-content:space-between;gap:6px;margin-bottom:18px;font:8px Arial,sans-serif;letter-spacing:.12em;color:#bea7aa}.paper-wrap{min-height:120px;display:flex;justify-content:center;align-items:center}.sheet{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));width:min(100%,var(--sheet-width));background:#f0e5c8;box-shadow:5px 8px 0 #1a172033,0 0 0 1px #b49d84;transform:rotate(-1deg);color:#754a35}.paper-cell{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #bcab8f80;border-right:1px solid #bcab8f80;position:relative;font-size:clamp(15px,3vw,24px);font-variant-numeric:tabular-nums;gap:2px}.paper-cell:nth-child(even){background:#ede1c0}.light-count{position:relative;z-index:1}.light-spark{display:block;position:absolute;left:calc(50% - 12px);top:calc(50% - 17px);width:5px;height:5px;border-radius:50%;background:#aa602a;opacity:.8}.target-panes .light-spark{background:#805235;width:4px;height:4px;left:calc(50% - 10px);top:calc(50% - 13px)}.paper-cell.flap{background:#bc88648c}.paper-cell.crease-x{border-left:2px dashed #905738}.paper-cell.crease-y{border-top:2px dashed #905738}.fold-controls{border-top:1px solid #8a707b;padding-top:14px}.fold-controls fieldset{border:0;padding:0;margin:0 0 12px;min-width:0}.fold-controls legend{font-family:Arial,sans-serif;font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#d2b5af;margin-bottom:8px}.fold-options{display:flex;gap:6px;flex-wrap:wrap}.fold-options button{flex:1;min-width:62px;max-width:110px;display:flex;align-items:center;justify-content:center;gap:8px;border-color:#8e727c;padding:7px;font:12px Georgia,serif}.fold-options button b{font:20px Georgia,serif;font-weight:400;color:#e7bd7c}.fold-options button[aria-pressed=true]{background:#d7b28c;color:#362c37}.fold-options button[aria-pressed=true] b{color:#6e3c2b}.fold-preview{display:flex;gap:16px;justify-content:space-between;align-items:center;border-top:1px dotted #896b77;padding-top:13px}.fold-preview p{font-size:13px;color:#d9c3ba;margin:0;max-width:250px}.fold-preview button{flex-shrink:0;background:#e0bd8c;color:#362d37;border-color:#e0bd8c;min-width:125px;font-size:15px}.fold-preview button span{padding-left:8px}.no-creases{font-size:12px;color:#bda4af}.toolbar button{border-color:#987c86}.toolbar #hint{color:#ebc58d}.feedback{color:#e3bc89;font-size:14px}.result{border-color:#d5ab78}.result h3{font-weight:400;font-style:italic;font-size:32px;color:#eac78f}.result-actions button{background:#d9b68a;color:#392f39}.site-credit{border-color:#806672;color:#c7b0b3;font-family:Arial,sans-serif}dialog{background:#3b303e}.embedded .moth-mark{width:80px;height:70px;right:0;top:-8px}@media(max-width:760px){.masthead h1{font-size:74px}.moth-mark{width:115px;height:100px;right:4px;top:0}.fold-bench{grid-template-columns:90px minmax(0,1fr);gap:20px;max-width:600px;margin:auto}.paper-wrap{min-height:100px}.paper-cell{font-size:22px}.paper-label{margin-bottom:15px}.fold-controls{max-width:600px;margin:auto}.fold-options button{max-width:none}.fold-preview p{max-width:320px}}@media(max-width:470px){.fold-bench{grid-template-columns:minmax(0,1fr);gap:18px}.lantern{display:grid;grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr);align-items:center;gap:12px}.lantern>p{margin:0;font-size:11px}.lantern-label{font-size:8px;letter-spacing:.08em}.lantern-label small{font-size:11px;line-height:1.4}.target-panes{width:82px;margin:0;padding:4px;gap:3px}.target-panes>span{font-size:19px}.paper-label{margin-bottom:11px;font-size:8px}.paper-wrap{min-height:0;padding:0 4px}.sheet{--sheet-width:100%}.paper-cell{font-size:20px}.fold-preview{gap:10px;align-items:stretch}.fold-preview button{min-width:103px;padding:8px;font-size:14px}.fold-preview p{font-size:12px}.fold-options{gap:5px}.fold-options button{min-width:55px;font-size:11px;gap:4px;padding:6px}.fold-options button b{font-size:18px}}@media(max-width:390px){.masthead h1{font-size:60px}.moth-mark{width:85px;height:76px;top:-5px;right:-2px}.masthead .tagline{font-size:15px}.fold-preview button span{padding-left:2px}.fold-bench{gap:15px}.paper-cell{font-size:18px}.lantern{gap:6px}.fold-controls{padding-top:12px}.lantern>p{font-size:10px}.fold-controls fieldset{margin-bottom:10px}}

/* A centered paper worktable, with the puzzle notes above the sheet. */
.shell{max-width:980px}.workbench{grid-template-columns:minmax(0,1fr);max-width:780px;margin:0 auto;gap:20px}.brief{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:0 30px}.brief .puzzle-number,.brief h2,.brief .objective{grid-column:1}.brief h2{margin-bottom:8px}.brief .objective{margin-bottom:0}.campaign-controls{grid-column:2;grid-row:1/4;margin-top:0;align-self:center}.rules{grid-column:1/-1;margin-top:16px;margin-bottom:0}.stage{min-width:0}.fold-bench{grid-template-columns:110px minmax(0,1fr);gap:28px;padding-top:16px}.paper-wrap{min-height:160px}@media(max-width:620px){.brief{grid-template-columns:minmax(0,1fr);gap:0}.brief .puzzle-number,.brief h2,.brief .objective,.campaign-controls,.rules{grid-column:1}.campaign-controls{grid-row:auto;margin-top:18px}.fold-bench{grid-template-columns:90px minmax(0,1fr);gap:18px}.paper-wrap{min-height:100px}}@media(max-width:470px){.fold-bench{grid-template-columns:minmax(0,1fr);gap:18px}.paper-wrap{min-height:0}}

.short-edge{display:none}.embedded .sheet{width:min(100%,var(--sheet-width),300px)}.embedded .fold-bench{padding-top:5px;padding-bottom:12px}.embedded .fold-preview p{font-size:12px}.embedded .campaign-controls{margin-top:0}@media(max-width:470px){.long-edge{display:none}.short-edge{display:inline}.fold-options button{min-width:30px;font-size:12px;gap:3px;padding:7px 3px;white-space:nowrap}.fold-options button b{font-size:16px}.fold-options{gap:4px}.embedded .fold-bench{gap:12px}.embedded .paper-label{margin-bottom:8px}.embedded .fold-controls{padding-top:10px}}

.embedded .sheet{width:min(100%,var(--sheet-width),calc(270px * var(--columns) / var(--rows)))}.embedded .fold-preview p{font-size:11px;line-height:1.3}.embedded .fold-preview{padding-top:10px}.embedded .fold-controls fieldset{margin-bottom:10px}.embedded .fold-controls legend{margin-bottom:6px}.embedded .fold-bench{gap:10px}

@media(max-width:470px){.embedded .fold-bench{grid-template-columns:76px minmax(0,1fr);gap:14px;align-items:center}.embedded .lantern{display:block}.embedded .target-panes{width:76px;margin:10px auto 0}.embedded .lantern>p{font-size:10px;margin:8px 0 0}.embedded .lantern-label{font-size:8px}.embedded .lantern-label small{font-size:10px}.embedded .paper-cell{font-size:17px}.embedded .paper-label{font-size:7px;letter-spacing:.04em}.embedded .paper-label span:last-child{display:none}}


/* Selected theme: paper-studio. Promoted from visual study 1. */
:root { --paper: #f8f6ef; --focus: #c13d26; --study-bg: #f8f6ef; --study-ink: #272925; --study-muted: #72736a; --study-line: #c8c8ba; --study-accent: #c13d26; --sheet-bg: #fffdf5; --sheet-ink: #30342b; --sheet-line: #d2d0be; --flap: #eec5ad; }
body { background: var(--study-bg); color: var(--study-ink); font: 15px Arial, sans-serif; }
.shell { max-width: 1180px; padding-top: 30px; }
.masthead { padding: 0px; border-top: 1px solid var(--study-ink); }
.masthead .eyebrow { font: 10px "Courier New", monospace; letter-spacing: 0.14em; color: var(--study-accent); margin: 16px 0px 0px; }
.masthead h1 { font: clamp(80px, 12vw, 148px) / 0.95 Georgia, serif; letter-spacing: -0.085em; color: var(--study-ink); margin: 14px 0px; }
.masthead .tagline { font: 15px Arial, sans-serif; color: var(--study-muted); margin: 0px; }
.moth-mark { display: none; }
.masthead::after { content: ""; position: absolute; right: 30px; top: 44px; width: 105px; height: 105px; background: rgb(193, 61, 38); clip-path: polygon(0px 0px, 100% 0px, 100% 100%, 50% 50%); transform: rotate(-8deg); }
.edition-bar { border-color: var(--study-ink); margin: 24px 0px; padding: 9px 0px; }
.modes button { font: 12px "Courier New", monospace; border: 0px; }
.modes button[aria-pressed="true"] { background: var(--study-accent); color: rgb(255, 253, 245); }
.edition { font: 10px "Courier New", monospace; color: var(--study-muted); }
.workbench { display: block; max-width: none; margin: 0px; }
.brief { display: grid; grid-template-columns: 240px minmax(0px, 1fr); gap: 0px 38px; margin: 0px 0px 24px; }
.brief .puzzle-number, .brief h2 { grid-column: 1; }
.brief .objective { grid-area: 1 / 2 / 3; max-width: 600px; margin: 0px; align-self: center; font: 15px / 1.6 Arial, sans-serif; color: var(--study-muted); }
.brief h2 { font: 31px / 1.06 Georgia, serif; letter-spacing: -0.03em; margin-bottom: 0px; }
.puzzle-number { font: 10px "Courier New", monospace; color: var(--study-accent); margin-bottom: 8px; }
.rules { grid-column: 1 / -1; border-color: var(--study-line); margin-top: 16px; }
.rules summary { color: var(--study-ink); font: 12px "Courier New", monospace; }
.rules p { font: 14px / 1.65 Arial, sans-serif; color: var(--study-muted); }
.stats { border: 0px; padding: 0px; margin-bottom: 16px; font: 12px "Courier New", monospace; gap: 22px; }
.stat strong { font: 26px "Courier New", monospace; color: var(--study-ink); }
.stat-label, .assistance { color: var(--study-muted); }
.intro-coach { border-color: var(--study-line); }
.intro-coach button { font: 12px "Courier New", monospace; border-color: var(--study-line); }
#board { display: grid; grid-template-columns: minmax(0px, 1fr) 215px; gap: 30px; align-items: start; }
.fold-bench { grid-template-columns: 88px minmax(0px, 1fr); gap: 24px; padding: 20px 24px 24px 0px; margin: 0px; border-top: 1px solid var(--study-line); border-right: 1px solid var(--study-line); max-width: none; }
.lantern-label { color: var(--study-accent); font: 9px / 1.5 "Courier New", monospace; letter-spacing: 0.08em; }
.lantern-label small { font: 11px / 1.5 Arial, sans-serif; color: var(--study-muted); letter-spacing: 0px; margin-top: 5px; }
.target-panes { background: none; border: 1px solid var(--study-ink); padding: 0px; gap: 0px; box-shadow: none; width: 84px; margin: 12px auto 0px; }
.target-panes > span { background: rgb(238, 231, 213); color: var(--study-ink); border: 1px solid var(--study-bg); font: 20px "Courier New", monospace; }
.lantern > p { font: 10px / 1.6 Arial, sans-serif; color: var(--study-muted); margin-top: 12px; }
.paper-label { font: 9px "Courier New", monospace; letter-spacing: 0.04em; color: var(--study-muted); margin-bottom: 16px; }
.paper-wrap { min-height: 260px; padding: 10px; align-items: center; }
.sheet { background: var(--sheet-bg); color: var(--sheet-ink); box-shadow: rgb(167, 166, 140) 0px 0px 0px 1px, rgba(37, 39, 29, 0.035) 6px 8px 0px; transform: none; width: min(100%,var(--sheet-width)); max-width: none; }
.paper-cell { font: 23px "Courier New", monospace; border-color: var(--sheet-line); gap: 0px; background: transparent !important; }
.paper-cell:nth-child(2n) { background: none; }
.light-spark { display: none; }
.paper-cell.flap { background: var(--flap) !important; }
.paper-cell.crease-x { border-left: 2px dashed var(--study-accent); }
.paper-cell.crease-y { border-top: 2px dashed var(--study-accent); }
.fold-controls { border: 0px; padding: 0px; margin: 0px; max-width: none; min-width: 0px; }
.fold-controls fieldset { margin-bottom: 20px; }
.fold-controls legend { font: 10px "Courier New", monospace; color: var(--study-muted); margin-bottom: 10px; letter-spacing: 0.03em; }
.fold-options { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 6px; }
.fold-options button { max-width: none; min-width: 0px; padding: 8px 6px; gap: 6px; font: 12px Arial, sans-serif; color: var(--study-ink); border-color: var(--study-line); justify-content: space-between; }
.fold-options button b { font: 18px Arial, sans-serif; color: var(--study-accent); }
.fold-options button[aria-pressed="true"] { background: var(--study-accent); color: rgb(255, 253, 245); border-color: var(--study-accent); }
.fold-options button[aria-pressed="true"] b { color: rgb(255, 253, 245); }
.long-edge { display: inline; }
.short-edge { display: none; }
.fold-preview { display: flex; flex-direction: column; gap: 12px; align-items: stretch; border-color: var(--study-line); padding-top: 14px; }
.fold-preview p { max-width: none; font: 12px / 1.5 Arial, sans-serif; color: var(--study-muted); margin: 0px; }
.fold-preview button { font: 14px Arial, sans-serif; min-width: 0px; background: var(--study-ink); color: var(--study-bg); border-color: var(--study-ink); }
.no-creases { font: 11px Arial, sans-serif; color: var(--study-muted); grid-column: 1 / -1; }
.toolbar button { border-color: var(--study-line); color: var(--study-ink); font: 12px "Courier New", monospace; }
.toolbar #hint { color: var(--study-accent); }
.feedback { font: 13px / 1.5 "Courier New", monospace; color: var(--study-accent); }
.result { border-color: var(--study-accent); }
.result h3 { font: 32px Georgia, serif; color: var(--study-ink); }
.result-actions button { background: var(--study-ink); color: var(--study-bg); }
.site-credit { font: 11px "Courier New", monospace; border-color: var(--study-line); color: var(--study-muted); }
dialog { background: var(--paper); color: var(--study-ink); }
@media (max-width: 900px) {
#board { grid-template-columns: minmax(0px, 1fr) 180px; gap: 22px; }
.fold-bench { grid-template-columns: 80px minmax(0px, 1fr); gap: 16px; padding-right: 18px; }
.paper-wrap { min-height: 220px; padding: 4px; }
.paper-cell { font-size: 21px; }
}
@media (max-width: 760px) {
.shell { padding: 22px 20px 14px; }
.masthead h1 { font-size: clamp(75px, 17vw, 120px); }
.masthead::after { width: 78px; height: 78px; right: 10px; top: 42px; }
.brief { display: block; margin-bottom: 20px; }
.brief h2 { margin-bottom: 12px; }
.brief .objective { font-size: 14px; }
.fold-bench { grid-template-columns: 85px minmax(0px, 1fr); }
.paper-wrap { min-height: 200px; }
.fold-options button { font-size: 11px; padding: 7px 5px; }
.fold-controls legend { font-size: 9px; }
}
@media (max-width: 570px) {
#board { display: block; }
.fold-bench { border-right: 0px; padding: 18px 0px 22px; gap: 16px; grid-template-columns: 80px minmax(0px, 1fr); }
.paper-wrap { min-height: 180px; padding: 4px; }
.paper-label span:last-child { display: none; }
.paper-label { font-size: 8px; }
.paper-cell { font-size: 20px; }
.target-panes { width: 76px; }
.target-panes > span { font-size: 18px; }
.lantern-label { font-size: 8px; }
.lantern-label small { font-size: 10px; }
.lantern > p { font-size: 10px; }
.fold-controls { border-top: 1px solid var(--study-line); padding-top: 14px; }
.fold-controls fieldset { margin-bottom: 12px; }
.fold-options { display: flex; flex-wrap: nowrap; gap: 4px; }
.fold-options button { flex: 1 1 0%; font-size: 11px; gap: 3px; padding: 7px 4px; justify-content: center; }
.fold-options button b { font-size: 16px; }
.fold-preview { flex-direction: row; align-items: center; gap: 14px; }
.fold-preview button { min-width: 110px; font-size: 13px; }
.fold-preview p { font-size: 12px; }
.long-edge { display: none; }
.short-edge { display: inline; }
}
@media (max-width: 390px) {
.shell { padding: 20px 14px 12px; }
.masthead .eyebrow { font-size: 8px; }
.masthead::after { width: 58px; height: 58px; top: 35px; }
.masthead .tagline { font-size: 13px; }
.edition-bar { margin: 18px 0px; }
.modes button { font-size: 11px; padding: 8px; }
.edition { font-size: 9px; }
.paper-cell { font-size: 18px; }
.fold-bench { gap: 12px; grid-template-columns: 70px minmax(0px, 1fr); }
.target-panes { width: 66px; }
.target-panes > span { font-size: 17px; }
.lantern-label { font-size: 7px; }
.paper-wrap { min-height: 140px; }
.fold-preview { gap: 10px; }
.fold-preview button { min-width: 94px; padding: 8px; }
.fold-preview button span { padding-left: 3px; }
.fold-preview p { font-size: 11px; }
.fold-options button { padding: 7px 3px; gap: 3px; }
.stats { gap: 14px; }
.assistance { font-size: 10px; }
}
.embedded .masthead h1 { font-size: 46px; }
.embedded .masthead::after, .embedded .masthead::before { display: none; }
.embedded .masthead h1 { margin-top: 8px; }
.embedded .brief { margin-bottom: 12px; }
.embedded .brief .objective { font-size: 13px; }
.embedded #board { display: block; }
.embedded .fold-bench { border-right: 0px; padding: 8px 0px 12px; grid-template-columns: 76px minmax(0px, 1fr); gap: 14px; }
.embedded .paper-wrap { min-height: 0px; padding: 5px; }
.embedded .sheet { width: min(100%,var(--sheet-width),calc(240px * var(--columns) / var(--rows))); }
.embedded .paper-label { font-size: 8px; margin-bottom: 10px; }
.embedded .paper-cell { font-size: 18px; }
.embedded .target-panes { width: 72px; }
.embedded .lantern-label { font-size: 8px; }
.embedded .lantern-label small { font-size: 10px; }
.embedded .lantern > p { font-size: 10px; }
.embedded .fold-controls { border-top: 1px solid var(--study-line); padding-top: 10px; }
.embedded .fold-options { display: flex; gap: 4px; flex-wrap: nowrap; }
.embedded .fold-options button { flex: 1 1 0%; font-size: 11px; gap: 4px; justify-content: center; padding: 7px 4px; }
.embedded .fold-controls legend { font-size: 9px; margin-bottom: 6px; }
.embedded .fold-controls fieldset { margin-bottom: 10px; }
.embedded .fold-preview { flex-direction: row; gap: 12px; padding-top: 10px; }
.embedded .fold-preview p { font-size: 11px; line-height: 1.4; }
.embedded .fold-preview button { min-width: 98px; font-size: 12px; padding: 8px; }
.embedded .brief h2 { font-size: 23px; }
.embedded .stats { margin-bottom: 10px; }
@media (max-width: 470px) {
.embedded .long-edge { display: none; }
.embedded .short-edge { display: inline; }
.embedded .fold-options button { gap: 3px; padding: 7px 3px; }
.embedded .fold-options button b { font-size: 15px; }
.embedded .paper-label span:last-child { display: none; }
.embedded .paper-cell { font-size: 17px; }
.embedded .paper-label { font-size: 7px; }
.embedded .fold-preview { gap: 9px; }
}
.daily-only .brief { grid-template-columns: 240px minmax(0px, 1fr); }
.lantern { display: block; text-align: center; }
