
@font-face {
 font-family: 'Zuume';
 src: url('../assets/fonts/Zuume-Regular.ttf') format('truetype');
 font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
 font-family: 'Zuume';
 src: url('../assets/fonts/Zuume-Bold.ttf') format('truetype');
 font-weight: 700; font-style: normal; font-display: swap;
}
:root {
 --green: #446329; 
 --green-deep: #1d2c12;
 --green-bright: #7bb03f;
 --paper: #ebebeb;
 --ink: #14140f;
 --ink-soft: #4c4c44;
 --rule: rgba(20, 20, 15, 0.22);
 --display: zuume, 'Zuume', 'Haettenschweiler', 'Arial Narrow', system-ui, sans-serif;
 --grid-face: 'Times New Roman', Times, 'Tinos', 'Liberation Serif', serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
 margin: 0;
 padding: clamp(0.5rem, 3vw, 2rem);
 font-family: var(--grid-face);
 color: var(--paper);
 background:
 linear-gradient(rgba(18, 30, 12, 0.7), rgba(18, 30, 12, 0.78)),
 url('../assets/bg-newspaper.jpg') center / cover fixed no-repeat;
 background-color: var(--green-deep);
}
.gate {
 position: fixed; inset: 0; z-index: 20;
 display: grid; place-items: center;
 padding: 1.5rem;
 background:
 linear-gradient(rgba(18, 30, 12, 0.82), rgba(18, 30, 12, 0.9)),
 url('../assets/bg-newspaper.jpg') center / cover no-repeat;
}
.gate__card {
 width: min(28rem, 100%);
 padding: 2rem 1.75rem;
 text-align: center;
 color: var(--ink);
 background: url('../assets/paper.jpg') center / cover, var(--paper);
 border: 1px solid rgba(0, 0, 0, 0.35);
 box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.5);
}
.gate__logo { width: min(17rem, 80%); margin-bottom: 1.25rem; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.gate h1 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; margin: 0 0 .4rem; text-transform: uppercase; letter-spacing: .01em; }
.gate p { margin: 0 0 1.25rem; color: var(--ink-soft); font-size: .95rem; }
.gate__dob { display: flex; gap: .5rem; justify-content: center; }
.gate__dob label {
 display: flex; flex-direction: column; gap: .3rem;
 font-family: var(--display); font-size: .72rem; letter-spacing: .12em;
 text-transform: uppercase; color: var(--ink-soft);
}
.gate__dob input {
 width: 4rem; padding: .6rem .4rem; text-align: center;
 font-family: var(--grid-face); font-size: 1.15rem; color: var(--ink);
 background: rgba(255, 255, 255, .65);
 border: 1px solid var(--rule); border-radius: 2px;
}
.gate__dob label:last-child input { width: 6rem; }
.gate__error { min-height: 1.2rem; margin: .75rem 0 .25rem; color: #b3241f; font-size: .85rem; }
.gate__card--closed h1 { font-size: 1.6rem; }
#paper { max-width: 68rem; margin: 0 auto; }
.masthead { text-align: center; margin-bottom: clamp(.75rem, 2vw, 1.25rem); }
.masthead__logo {
 width: min(30rem, 88%);
 filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55));
}
.dateline {
 margin: .5rem auto 0; padding-top: .5rem;
 max-width: 34rem;
 border-top: 1px solid rgba(255, 255, 255, .35);
 font-family: var(--display); font-weight: 400;
 font-size: clamp(.72rem, 2.4vw, .85rem);
 letter-spacing: .16em; text-transform: uppercase;
 color: rgba(255, 255, 255, .82);
}
.sheet {
 display: grid;
 grid-template-columns: 1fr;
 gap: clamp(1rem, 3vw, 2rem);
 padding: clamp(0.75rem, 3vw, 2rem);
 color: var(--ink);
 background: url('../assets/paper.jpg') center / cover, var(--paper);
 border: 1px solid rgba(0, 0, 0, .4);
 box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .45);
}
@media (min-width: 56rem) {
 .sheet {
 grid-template-columns: minmax(18rem, 27rem) minmax(20rem, 1fr);
 align-items: start;
 }
}
.sheet__board { display: flex; flex-direction: column; align-items: stretch; gap: .7rem; min-width: 0; }
@media (max-width: 26rem) {
 body { padding: .4rem; }
 .sheet { padding: .55rem; }
}
.cluebar {
 display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
 width: 100%; max-width: 34rem; margin: 0 auto; min-height: 3.1em;
 padding: .5rem .7rem;
 background: rgba(20, 20, 15, .05);
 border-left: 3px solid var(--green);
 font-size: .95rem; line-height: 1.35;
}
.cluebar__label {
 font-family: var(--display); font-weight: 700; text-transform: uppercase;
 letter-spacing: .1em; font-size: .72rem; color: var(--green-deep);
 white-space: nowrap;
}
.cluebar__text { flex: 1 1 12rem; }
.cluebar__enum { font-family: var(--display); font-size: .78rem; color: var(--ink-soft); }
.board {
 width: 100%;
 max-width: 34rem;
 margin-inline: auto;
 container-type: inline-size;
}
.grid {
 display: grid;
 grid-template-columns: repeat(var(--cols), 1fr);
 background: transparent;
 touch-action: manipulation;
 user-select: none; -webkit-user-select: none;
}
.grid__row { display: contents; }
.cell {
 position: relative;
 display: grid; place-items: center;
 aspect-ratio: 1;
 background: rgba(255, 255, 255, .72);
 box-shadow: inset 0 0 0 1px var(--ink);
 font-family: var(--grid-face);
 font-size: calc(100cqw / var(--cols) * 0.56);
 line-height: 1;
 color: var(--ink);
 cursor: pointer;
}
.cell--black { background: transparent; box-shadow: none; cursor: default; }
.cell__num {
 position: absolute; top: 0; left: 2px;
 font-family: var(--display); font-weight: 700;
 font-size: calc(100cqw / var(--cols) * 0.34);
 line-height: 1.1; color: var(--ink-soft);
 pointer-events: none;
}
.cell__letter { text-transform: uppercase; }
.cell.is-current { background: rgba(123, 176, 63, .34); }
.cell.is-cursor { background: rgba(123, 176, 63, .72); box-shadow: inset 0 0 0 2px var(--green-deep); }
.cell:focus-visible { outline: 2px solid var(--green-deep); outline-offset: -2px; }
.cell.is-locked .cell__letter { font-weight: 700; }
.cell.is-locked { background: rgba(255, 255, 255, .86); }
.cell.is-wrong::after {
 content: ''; position: absolute; left: 18%; right: 18%; bottom: 12%;
 border-bottom: 2px solid #b3241f;
}
.statusbar {
 display: flex; justify-content: space-between; align-items: baseline;
 width: 100%; max-width: 34rem; margin-inline: auto;
 font-family: var(--display); text-transform: uppercase; letter-spacing: .12em;
 font-size: .75rem; color: var(--ink-soft);
}
.statusbar__clock { font-size: 1.35rem; letter-spacing: .04em; color: var(--ink); font-weight: 700; }
.boardtools {
 display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
 width: 100%; max-width: 34rem; margin-inline: auto;
}
.hintcount {
 font-family: var(--display); text-transform: uppercase; letter-spacing: .12em;
 font-size: .72rem; color: #b3241f;
}
.keys {
 display: flex; flex-direction: column; gap: .3rem;
 width: 100%; max-width: 34rem; margin: .2rem auto 0;
}
.keys__row { display: flex; gap: .25rem; justify-content: center; }
.key {
 flex: 1 1 0; min-width: 0; padding: .7rem .1rem; min-height: 2.75rem;
 font-family: var(--display); font-weight: 700; font-size: 1rem;
 letter-spacing: 0; text-transform: uppercase;
 color: var(--ink); background: rgba(255, 255, 255, .62);
 border: 1px solid var(--rule); border-radius: 2px;
 cursor: pointer;
}
.key:hover { background: rgba(255, 255, 255, .85); }
.key:active { background: rgba(123, 176, 63, .55); }
.key--wide { flex-grow: 1.6; }
.bank h2 {
 margin: 0 0 .6rem;
 font-family: var(--display); font-weight: 700; text-transform: uppercase;
 font-size: 1.35rem; letter-spacing: .02em;
 border-bottom: 2px solid var(--ink); padding-bottom: .3rem;
}
.bank__list {
 list-style: none; margin: 0 0 1.5rem; padding: 0;
 columns: 2; column-gap: 1.25rem;
 font-size: 1.02rem; letter-spacing: .02em;
}
.bank__list li { padding: .18rem 0; break-inside: avoid; }
.bank__list li.is-solved {
 color: var(--ink-soft); opacity: .6;
 text-decoration: line-through; text-decoration-color: var(--ink);
 text-decoration-thickness: 2px;
}
.clues { display: grid; gap: 1.25rem 1.5rem; }
@media (min-width: 34rem) and (max-width: 56rem) { .clues { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68rem) { .clues { grid-template-columns: 1fr 1fr; } }
.clues__col h2 {
 margin: 0 0 .6rem;
 font-family: var(--display); font-weight: 700; text-transform: uppercase;
 font-size: 1.35rem; letter-spacing: .02em;
 border-bottom: 2px solid var(--ink); padding-bottom: .3rem;
}
.clues__list { list-style: none; margin: 0; padding: 0; }
.clue { margin: 0 0 .12rem; }
.clue__btn {
 display: grid; grid-template-columns: 1.9rem 1fr auto; gap: .35rem;
 align-items: baseline; text-align: left; width: 100%;
 padding: .3rem .35rem;
 font-family: var(--grid-face); font-size: .95rem; line-height: 1.35;
 letter-spacing: normal; text-transform: none; font-weight: 400;
 color: var(--ink); background: transparent; border: none; border-radius: 2px;
 cursor: pointer;
}
.clue__btn:hover { background: rgba(0, 0, 0, .06); }
.clue__num { font-family: var(--display); font-weight: 700; text-align: right; }
.clue__enum { font-family: var(--display); font-size: .72rem; color: var(--ink-soft); }
.clue.is-current .clue__btn { background: rgba(123, 176, 63, .3); }
.clue.is-solved .clue__text {
 color: var(--ink-soft); opacity: .6;
 text-decoration: line-through; text-decoration-color: var(--ink);
 text-decoration-thickness: 2px;
}
.rules { font-size: .82rem; color: var(--ink-soft); line-height: 1.45; margin: .3rem 0 0; }
.sr-only {
 position: absolute; width: 1px; height: 1px; margin: -1px;
 padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.actions--centre { justify-content: center; }
button {
 font-family: var(--display); font-weight: 700; text-transform: uppercase;
 letter-spacing: .08em; font-size: .9rem;
 padding: .6rem 1.1rem; color: var(--paper); background: var(--green);
 border: none; border-radius: 2px; cursor: pointer;
}
button:hover { background: var(--green-deep); }
button.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
button.ghost:hover { background: rgba(0, 0, 0, .07); }
.sheet--front { display: block; }
.editions__head {
 margin: 0 0 1rem;
 font-family: var(--display); font-weight: 700; text-transform: uppercase;
 font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: .02em;
 border-bottom: 3px double var(--ink); padding-bottom: .4rem;
}
.editions {
 list-style: none; margin: 0; padding: 0;
 display: grid; gap: 1rem;
 grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .editions { grid-template-columns: repeat(3, 1fr); } }
.edition {
 display: flex; flex-direction: column; gap: .3rem; text-align: left;
 width: 100%; height: 100%; padding: 1.1rem 1rem 1.2rem;
 background: transparent; color: var(--ink);
 border: 1px solid var(--rule); border-top: 3px solid var(--ink);
 border-radius: 0; cursor: pointer;
 font-family: var(--grid-face); letter-spacing: normal; text-transform: none;
}
.edition:hover { background: rgba(0, 0, 0, .05); }
.edition__name {
 font-family: var(--display); font-weight: 700; text-transform: uppercase;
 font-size: 1.75rem; line-height: 1;
}
.edition__spec {
 font-family: var(--display); text-transform: uppercase; letter-spacing: .14em;
 font-size: .7rem; color: var(--ink-soft); margin-bottom: .35rem;
}
.edition__blurb { font-size: .95rem; line-height: 1.4; color: var(--ink); }
.edition__last {
 margin-top: .6rem; align-self: flex-start;
 font-family: var(--display); text-transform: uppercase; letter-spacing: .14em;
 font-size: .65rem; color: var(--paper); background: var(--green);
 padding: .18rem .5rem;
}
.hintdialog {
 width: min(28rem, calc(100% - 2rem));
 padding: 1.5rem;
 color: var(--ink);
 background: url('../assets/paper.jpg') center / cover, var(--paper);
 border: 1px solid rgba(0, 0, 0, .4);
 box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .5);
}
.hintdialog::backdrop { background: rgba(18, 30, 12, .72); }
.hintdialog h2 {
 margin: 0 0 .4rem;
 font-family: var(--display); font-weight: 700; text-transform: uppercase;
 font-size: 1.4rem; letter-spacing: .02em;
}
.hintdialog > p { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: .9rem; }
.hintdialog__choices { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .9rem; }
.hintdialog__choice {
 display: flex; flex-direction: column; gap: .2rem; text-align: left;
 width: 100%; padding: .7rem .85rem;
 background: rgba(255, 255, 255, .55); color: var(--ink);
 border: 1px solid var(--rule); border-radius: 2px;
 font-family: var(--grid-face); letter-spacing: normal; text-transform: none;
}
.hintdialog__choice:hover { background: rgba(123, 176, 63, .22); }
.hintdialog__label {
 font-family: var(--display); font-weight: 700; text-transform: uppercase;
 letter-spacing: .04em; font-size: 1rem;
}
.hintdialog__desc { font-size: .82rem; color: var(--ink-soft); line-height: 1.35; }
.hintdialog__close { width: 100%; }
.stoppress {
 margin-top: clamp(1rem, 3vw, 1.5rem); padding: 1.75rem 1.5rem; text-align: center;
 color: var(--ink);
 background: url('../assets/paper.jpg') center / cover, var(--paper);
 border: 3px double var(--ink);
 box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .45);
}
.stoppress__kicker { margin: 0; font-family: var(--display); letter-spacing: .3em; text-transform: uppercase; font-size: .75rem; color: #b3241f; }
.stoppress h2 { margin: .2rem 0 .5rem; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.9rem, 7vw, 3rem); line-height: .95; }
.stoppress__time { margin: 0; font-family: var(--display); font-size: 2.6rem; font-weight: 700; }
.stoppress__status {
 min-height: 1.2em; margin: .6rem 0 0;
 font-family: var(--display); text-transform: uppercase; letter-spacing: .12em;
 font-size: .72rem; color: var(--ink-soft);
}
.stoppress .actions { margin-top: .5rem; }
.stoppress__meta { margin: .1rem 0 1.1rem; font-size: .9rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; font-family: var(--display); }
.fatal { padding: 2rem; color: #b3241f; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) {
 .cell, .key { transition: none; }
}
