@font-face {
  font-family: Fraunces;
  src: url('/_a/fraunces.daf58e7501.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url('/_a/nunito.ba344451ea.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --background: #fbefde;
  --paper: #fff5e1;
  --ink: #18362e;
  --muted: #4d6054;
  --border: #c7c9b5;
  --red: #a43b27;
  --serif: Fraunces, Georgia, 'Times New Roman', serif;
  --sans: Nunito, 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--ink); font: 1rem/1.55 var(--sans); }
.home-page { background-image: radial-gradient(#59371724 .75px, transparent 1px); background-size: 18px 18px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .46; }
:focus-visible { outline: 3px solid #9e422a; outline-offset: 4px; }
::selection { background: #e6ed9b; color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.07; }
.shell { max-width: 1216px; width: calc(100% - 96px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: absolute; background: var(--paper); padding: .5rem; z-index: 10; }
.topbar { padding-top: 25px; }
.topbar-inner {
  min-height: 52px; display: flex; align-items: center; gap: 0; padding: 0 15px;
  border: 2px solid var(--ink); border-radius: 11px; box-shadow: 2px 3px var(--ink); background: #fff3e2;
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 1.24rem/1.15 var(--serif); letter-spacing: -.045em; flex: 0 0 auto; }
.brand-mark { width: 24px; height: 16px; flex: 0 0 24px; background-color: var(--ink); clip-path: polygon(0 72%, 25% 31%, 43% 58%, 70% 11%, 100% 58%, 83% 78%, 71% 59%, 45% 96%, 27% 69%, 12% 91%); }
.topbar nav { gap: 0; margin-left: 14px; padding-left: 5px; border-left: 1px solid var(--ink); }
.topbar nav a { padding: 3px 10px; min-height: 30px; display: inline-flex; align-items: center; }
.topbar nav a + a { border-left: 1px solid #7e8a72; }
.home-page .topbar [data-nav='games'] { display: none; }
.home-page .topbar [data-nav='community'] { border-left: 0; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(15px, 3vw, 34px); }
nav a { font-size: .87rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.nav-progress { white-space: nowrap; }
.nav-progress span { margin-left: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 43px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); line-height: 1.25; text-decoration: none; text-align: center; font-size: .9rem; font-weight: 700; }
.btn:hover:not(:disabled) { background: #dbe3bd; }
.btn.solid { background: var(--ink); color: #fffef6; }
.btn.solid:hover:not(:disabled) { background: #315741; }
.btn.light { background: var(--paper); }
.btn.small { min-height: 37px; font-size: .78rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow i { width: 8px; height: 8px; transform: rotate(45deg); background: #ac4932; }
.games-section { scroll-margin-top: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 25px 0 29px; }
.section-head h1 { font-size: clamp(3rem, 6.6vw, 6.05rem); line-height: .97; letter-spacing: -.062em; }
.midnight-tag {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  border: 2px solid var(--ink); border-radius: 11px; box-shadow: 1px 2px var(--ink); background: var(--paper);
  font-size: .9rem; font-weight: 800;
}
.midnight-tag::before { content: '✦'; color: #9a522a; }
.game-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 23px 20px; }
.game-card {
  --card-face: var(--paper);
  position: relative; display: grid; align-items: center; gap: 9px; min-width: 0;
  border: 2px solid var(--ink); background: var(--card-face);
  box-shadow: 3px 6px var(--ink); text-decoration: none;
  transition: transform .17s ease, box-shadow .17s ease;
}
.game-card:hover { transform: translateY(-3px); box-shadow: 3px 9px var(--ink); }
.game-card:active { transform: translate(2px, 4px); box-shadow: 1px 2px var(--ink); }
.game-card:focus-visible { outline-offset: 6px; }
.game-card h2 { min-width: 0; font-size: clamp(1.65rem, 3.2vw, 2.65rem); letter-spacing: -.055em; }
.game-card p { font-weight: 800; line-height: 1.25; }
.game-card--board {
  grid-column: span 2;
  grid-template: 'title' auto 'art' minmax(0, 1fr) 'copy' auto 'action' auto / minmax(0, 1fr);
  justify-items: center; min-height: clamp(230px, 26vw, 316px); padding: 17px 15px 20px;
  border-radius: 17px; text-align: center;
}
.game-card--ticket {
  grid-column: span 3; isolation: isolate;
  grid-template: 'art title action' auto 'art copy action' auto / clamp(76px, 12vw, 144px) minmax(0, 1fr) auto;
  column-gap: 12px; row-gap: 5px; min-height: clamp(113px, 12vw, 139px); padding: 19px 21px;
  border-radius: 12px;
  /* Two opposite, outlined notches take their fill from the page instead of the ticket. */
  background-image: radial-gradient(circle at 0 50%, var(--background) 0 11px, var(--ink) 11.5px 13px, transparent 13.5px),
                    radial-gradient(circle at 100% 50%, var(--background) 0 11px, var(--ink) 11.5px 13px, transparent 13.5px);
}
.game-card--ticket h2 { align-self: end; font-size: clamp(1.42rem, 2.75vw, 2.15rem); }
.game-card--ticket p { align-self: start; font-size: .94rem; }
.game-card h2 { grid-area: title; }
.game-card p { grid-area: copy; }
.game-art {
  grid-area: art; display: block; justify-self: center;
  width: min(100%, 260px); aspect-ratio: var(--art-ratio); max-width: 100%;
  background-image: url('https://img.blamenick.org/s_2d6d2j3x2a571g/puzzle-break-ticket-art.2f5940c0cf.png'); background-repeat: no-repeat;
  background-size: var(--art-size); background-position: var(--art-position);
  mask-image: linear-gradient(to right, transparent, black 12% 88%, transparent),
              linear-gradient(to bottom, transparent, black 9% 90%, transparent);
  mask-composite: intersect;
}
/* The approved artwork provides the icons. Headings and actions are HTML. */
.game-card--paper { --card-face: #fb937b; --art-ratio: 389 / 181; --art-size: 394.859% 565.746%; --art-position: 8.718% 41.518%; }
.game-card--tile { --card-face: #9ac8ad; --art-ratio: 366 / 189; --art-size: 419.672% 541.799%; --art-position: 50% 41.796%; }
.game-card--case { --card-face: #c4afc8; --art-ratio: 373 / 186; --art-size: 411.796% 550.538%; --art-position: 92.003% 41.408%; }
.game-card--number { --card-face: #fdca64; --art-ratio: 278 / 152; --art-size: 552.518% 673.684%; --art-position: 5.803% 89.450%; }
.game-card--topic { --card-face: #b3d5b0; --art-ratio: 211 / 149; --art-size: 727.962% 687.248%; --art-position: 61.509% 88.914%; }
.card-link {
  grid-area: action; display: inline-grid; place-items: center; min-height: 48px; min-width: min(100%, 164px);
  padding: 4px 17px 6px; border: 2px solid var(--ink); border-radius: 16px;
  background: var(--paper); box-shadow: 1px 3px var(--ink);
  font: 800 clamp(1.12rem, 2.12vw, 1.65rem)/1 var(--serif); white-space: nowrap;
}
.game-card:hover .card-link { background: #fffaf1; }
.game-card--ticket .card-link { min-width: 66px; min-height: 44px; padding-inline: 12px; font-size: clamp(1.03rem, 1.73vw, 1.42rem); border-radius: 11px; }
.home-page .home-bottom { margin-top: 48px; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 17px; }
.today-progress { display: inline-block; font-weight: 800; font-size: .88rem; text-underline-offset: 4px; }

.home-bottom, .info-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; align-items: start; margin-bottom: 56px; }
.community-teaser, .activity { align-self: stretch; background: #e9ebd0; border: 1px solid var(--border); border-radius: 13px; padding: 22px; }
.community-teaser p { margin: .65rem 0 1rem; color: var(--muted); }
.activity { background: var(--paper); }
.activity-bars { min-height: 112px; display: flex; gap: 6px; align-items: end; margin-top: 10px; }
.activity-bars div { position: relative; display: grid; grid-template-rows: 16px 1fr 16px; gap: 3px; justify-items: center; flex: 1; height: 100px; min-width: 0; font-size: .69rem; }
.activity-bars i { width: 70%; height: max(2px, var(--bar)); max-height: 100%; align-self: end; background: #668765; border-radius: 2px; }
.activity-bars div:last-child i { background: #a44c32; }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding-block: 24px; }
.footer-inner > span { font-size: .78rem; color: var(--muted); }
.page-heading { padding: 27px 0; }
.page-heading .back { display: block; width: fit-content; margin: 0 0 24px; font-size: .88rem; font-weight: 700; text-underline-offset: 4px; }
.page-heading h1 { font-size: clamp(2.9rem, 6vw, 5rem); letter-spacing: -.06em; margin: 7px 0 12px; }
.page-heading p { max-width: 640px; color: var(--muted); }
.game-shell, .prose { margin-bottom: 42px; }
.game-tools { display: flex; align-items: end; justify-content: space-between; gap: 14px; border-block: 1px solid var(--border); padding: 12px 0; margin-bottom: 15px; }
.archive, .mode-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.archive label { font-size: .82rem; font-weight: 700; }
input, select, textarea { min-width: 0; border: 1px solid #8b9a85; border-radius: 4px; min-height: 42px; padding: 8px 9px; background: #fffef7; color: var(--ink); }
textarea { width: 100%; display: block; min-height: 88px; }
.play-layout { display: grid; grid-template-columns: minmax(0, 2.08fr) minmax(190px, 1fr); align-items: start; gap: 17px; }
.board, .game-guide { background: var(--paper); border: 1px solid var(--border); border-radius: 6px; padding: clamp(15px, 3.5vw, 29px); }
.board h2, .game-guide h2 { font-size: clamp(1.35rem, 3.3vw, 2rem); letter-spacing: -.034em; }
.board h3 { margin-bottom: 8px; font-size: 1.14rem; }
.board > p, .game-guide p { margin-top: .6rem; color: var(--muted); }
.board-top { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.board-top span, .game-date { font-size: .8rem; font-weight: 750; }
.game-date { margin-bottom: 9px; color: var(--red); }
.game-guide { background: #edf0da; }
.guide-link { display: inline-block; margin-top: 12px; }
.board-form, .actions, .levels { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin: 13px 0 0; }
.board-form label { flex: 1 1 125px; }
.board label:not(.sr-only) { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; font-weight: 650; }
.board > label, [data-community] > label { margin-top: 12px; }
.board [data-action='sync-now'] { margin-top: 12px; }
.board .actions [data-action='sync-now'] { margin-top: 0; }
.game-status { min-height: 1.6em; margin-top: 8px; color: var(--muted); font-size: .87rem; }
.dock-grid { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); width: min(100%, calc(var(--columns) * 34px)); gap: 2px; }
.dock-cell { aspect-ratio: 1; display: grid; place-items: center; min-width: 0; padding: 0; border: 1px solid #9aa78d; border-radius: 3px; background: #e8efcd; font-size: .82rem; font-weight: 700; }
.dock-ui { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 18px; align-items: start; padding-top: 13px; }
.dock-grid { width: min(100%, calc(var(--columns) * 42px)); min-width: min(170px, 100%); }
.dock-cell:hover { border-color: #193c2f; }
.dock-cell.island { background: #405247; color: #fff; }
.piece-list { display: flex; flex-wrap: wrap; gap: 5px; }
.piece-choice { display: grid; gap: 2px; grid-template-columns: 41px 1fr; align-items: center; min-width: 55px; height: 54px; padding: 3px; background: transparent; color: var(--ink); border: 1px solid var(--border); border-radius: 4px; font-size: .7rem; }
.piece-choice[aria-pressed='true'] { border: 2px solid var(--ink); }
.piece-preview { display: block; position: relative; width: 39px; height: 39px; }
.piece-preview i { position: absolute; width: 9px; height: 9px; left: calc(var(--x) * 10px); top: calc(var(--y) * 10px); background: var(--tile); border-radius: 1px; }
.dock-cell[class*='piece-'] { background: var(--tile); }
.piece-0 { --tile: #e58f73; }
.piece-1 { --tile: #97afce; }
.piece-2 { --tile: #e3b851; }
.piece-3 { --tile: #ab97bb; }
.piece-4 { --tile: #8cb295; }
.piece-5 { --tile: #dc9eb5; }
.clue { margin: 17px 0; font: normal clamp(1.3rem, 3vw, 1.9rem)/1.32 var(--serif); }
.hint, .hints { color: var(--ink); padding: 8px 14px; background: #e9edcc; border-radius: 4px; }
.hints { padding-left: 35px; }
.notebook { border-top: 1px solid var(--border); margin-top: 15px; padding-top: 10px; }
.notebook summary { cursor: pointer; font-weight: 700; margin-bottom: 7px; }
.rounds { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.rounds li { border-radius: 4px; padding: 4px 10px; background: #e9edcc; }
.result h2 { margin-top: 9px; }
.result > strong { font: bold clamp(2.3rem, 6vw, 4.2rem)/1.2 var(--serif); }
.result small { font-size: .4em; }
.share-fallback { margin-top: 12px; }
.plain-list { padding: 0; list-style: none; margin-bottom: 0; }
.plain-list li { display: flex; align-items: center; justify-content: space-between; gap: 9px; border-top: 1px solid var(--border); padding: 10px 0; }
.plain-list small { display: block; color: var(--muted); }
#community-list { margin-top: 12px; }
.prose p + p { margin-top: 14px; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
  .game-list { gap: 19px 13px; }
  .game-card--ticket { column-gap: 7px; padding-inline: 16px; }
  .dock-ui { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .topbar { padding-top: 15px; }
  .topbar-inner { min-height: 48px; padding-inline: 8px; }
  .topbar nav { margin-left: 8px; padding-left: 2px; }
  .topbar nav a { padding-inline: 7px; min-height: 44px; }
  .wordmark { font-size: 1.1rem; gap: 5px; }
  .brand-mark { width: 19px; flex-basis: 19px; }
  nav { gap: 10px; }
  nav a { font-size: .77rem; }
  .nav-progress { padding: 6px; }
  .play-layout, .home-bottom, .info-layout { grid-template-columns: minmax(0, 1fr); }
  .section-head { margin: 24px 0 18px; flex-wrap: wrap; gap: 7px 18px; }
  .midnight-tag { padding: 4px 9px; font-size: .78rem; }
  .game-list { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .game-card--board, .game-card--ticket {
    grid-column: auto; grid-template: 'art title action' auto 'art copy action' auto / clamp(50px, 17vw, 94px) minmax(0, 1fr) auto;
    gap: 3px 8px; min-height: 85px; padding: 10px 11px; border-radius: 12px;
    justify-items: start; text-align: left; box-shadow: 2px 4px var(--ink);
  }
  .game-card--ticket { background-image: none; }
  .game-card h2 { align-self: end; font-size: clamp(1.15rem, 4.4vw, 1.65rem); }
  .game-card p { align-self: start; font-size: .84rem; }
  .game-card .card-link { min-width: 52px; min-height: 40px; padding: 3px 7px; font-size: 1.02rem; border-radius: 10px; }
  .home-page .home-bottom { margin-top: 32px; }
  .footer-inner, .game-tools { flex-wrap: wrap; }
  .game-tools { align-items: start; }
}
@media (max-width: 365px) {
  .topbar-inner { flex-wrap: wrap; padding-block: 6px; }
  .home-page .topbar-inner { flex-wrap: nowrap; }
  .home-page .nav-progress span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Ticket games */
.game-redesign { --ticket-band: #f1c09a; --ticket-ink: #293b33; }
.play-tile { --ticket-band: #dcd0eb; }
.play-case { --ticket-band: #f2d995; }
.play-number { --ticket-band: #cfdfb4; }
.game-redesign .page-heading { padding: 0; margin: clamp(15px, 2.5vw, 27px) auto 13px; max-width: 850px; }
.game-redesign .page-heading .back { margin-bottom: 7px; }
.game-redesign .page-heading h1 { font-size: clamp(2.45rem, 5.6vw, 3.65rem); margin: 2px 0 5px; }
.game-redesign .game-shell { max-width: 850px; margin-inline: auto; }
.play-paper .game-shell, .play-tile .game-shell, .play-paper .page-heading, .play-tile .page-heading { max-width: 704px; }
.game-redesign .game-tools { padding: 8px 0; margin-bottom: 12px; }
.game-redesign .play-layout { grid-template-columns: minmax(0, 1fr); }
.game-redesign .board {
  background: #fff8e7;
  border: 2px solid var(--ticket-ink);
  border-radius: 13px;
  box-shadow: 3px 4px var(--ticket-ink);
  padding: 0 18px 17px;
}
.game-redesign .board-top {
  margin: 0 -18px 14px;
  padding: 12px 18px;
  background: var(--ticket-band);
  color: var(--ticket-ink);
  border-bottom: 2px dashed #25332d59;
  border-radius: 10px 10px 0 0;
}
.game-redesign .board-top span { text-align: right; }
.game-redesign .result { padding-top: 18px; }
.game-redesign .game-guide { background: #f4ebd6; }
.game-redesign .game-guide summary, .game-redesign .board summary { cursor: pointer; font-weight: 800; }
.game-redesign .game-guide .game-date { float: right; margin: 2px 0 4px 10px; }
.game-redesign .game-status { padding: 4px 8px; border-left: 3px solid #648665; }
.quick-levels { margin: 0; }
.game-redesign .game-guide .archive { margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--border); }
.quick-levels .btn { min-width: 68px; }
.puzzle-actions { align-items: stretch; }
.game-redesign .btn { min-height: 42px; }
.puzzle-meter { margin-top: 11px; font-size: .86rem; font-variant-numeric: tabular-nums; }
.puzzle-meter > div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.puzzle-meter progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; color: #3b6545; background: #e7deca; }
.puzzle-meter progress::-webkit-progress-bar { background: #e7deca; }
.puzzle-meter progress::-webkit-progress-value { background: #3b6545; border-radius: 99px; }
.puzzle-meter progress::-moz-progress-bar { background: #3b6545; border-radius: 99px; }

.fold-area {
  --cell-width: calc(100% / var(--columns));
  --cell-height: calc(100% / var(--rows));
  --grid-line: #53695f24;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 490px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 15px;
  outline: 2px solid #394943;
  outline-offset: -1px;
  background: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px), #e0e7d7;
  background-size: var(--cell-width) var(--cell-height);
  box-shadow: inset 0 0 0 7px #f6f1df8c, 0 3px #394943;
  touch-action: none;
  user-select: none;
}
.paper-layer, .target-layer, .fold-preview, .fold-hinge { position: absolute; inset: 0; pointer-events: none; }
.paper-square { position: absolute; left: calc(var(--col) * var(--cell-width)); top: calc(var(--row) * var(--cell-height)); width: var(--cell-width); height: var(--cell-height); display: grid; place-items: center; font-weight: 800; line-height: 1; }
.paper-layer {
  --sheet-color: #edaa86;
  --paper-stripe: #fff1d647;
  background: transparent;
}
[data-paper-layer], .fold-base { filter: drop-shadow(0 1px 0 #6b3d2b) drop-shadow(0 3px 4px #52453146); }
.sheet-square {
  background-color: var(--sheet-color);
  background-image: linear-gradient(rgb(109 58 33 / var(--fold-shade, 0)), rgb(109 58 33 / var(--fold-shade, 0))), repeating-linear-gradient(136deg, var(--paper-stripe) 0 6px, transparent 6px 13px);
  background-position: 0 0, calc(-1 * var(--col) * var(--cell-width)) calc(-1 * var(--row) * var(--cell-height));
  box-shadow: inset -1px -1px #7f40201f;
  color: #713421;
  font-size: clamp(.77rem, 3vw, 1.24rem);
  cursor: grab;
  pointer-events: auto;
}
.sheet-square b { display: grid; place-items: center; min-width: 1.45em; min-height: 1.45em; border: 1px solid #8b482e46; border-radius: 50%; background: #fff1dbb8; }
.fold-dragging, .fold-dragging .sheet-square { cursor: grabbing; }
.fold-dragging > [data-paper-layer] { visibility: hidden; }
.fold-preview .sheet-square, .paper-solved .sheet-square { pointer-events: none; }
.fold-preview { filter: drop-shadow(0 2px 2px #51433737); }
.fold-hinge { filter: drop-shadow(0 calc(2px + 8px * var(--fold-lift, 0)) calc(1px + 6px * var(--fold-lift, 0)) #693b2d66); }
.fold-flap { --sheet-color: #efad89; }
.fold-flap.fold-reverse { --sheet-color: #f8d1a7; --paper-stripe: #fff1d67a; }
[data-axis='x'] .fold-reverse b { transform: scaleX(-1); }
[data-axis='y'] .fold-reverse b { transform: scaleY(-1); }
.crease-guide { position: absolute; z-index: 1; display: block; border-color: #994623; border-style: dashed; border-width: 0; filter: drop-shadow(0 0 1px #fff5df); }
[data-axis='x'] .crease-guide { left: var(--guide); top: 5%; bottom: 5%; border-left-width: 2px; }
[data-axis='y'] .crease-guide { top: var(--guide); left: 5%; right: 5%; border-top-width: 2px; }
.target-layer { z-index: 3; }
.target-square { justify-items: end; align-items: start; padding: 4px 5px; color: #243a32; font-size: clamp(.66rem, 2vw, .94rem); }
.target-square b { min-width: 1.3em; padding: 1px 2px; text-align: center; border-radius: 3px; background: #fff8e1eb; }
.target-edge { display: block; position: absolute; inset: 0; border-style: dashed; border-width: 0; border-color: #263b30; filter: drop-shadow(1px 0 #fff8e1) drop-shadow(-1px 0 #fff8e1) drop-shadow(0 1px #fff8e1) drop-shadow(0 -1px #fff8e1); }
.target-edge.north { border-top-width: 2px; }
.target-edge.east { border-right-width: 2px; }
.target-edge.south { border-bottom-width: 2px; }
.target-edge.west { border-left-width: 2px; }
.paper-solved { touch-action: auto; margin-bottom: 22px; }
.paper-solved .target-edge { border-style: solid; border-color: #37624b; }
.play-paper { padding-top: 0; }
.play-paper .page-heading { text-align: center; margin-top: 14px; }
.play-paper .page-heading .back { margin-bottom: 2px; }
.play-paper .page-heading .eyebrow, .play-paper .page-heading p { display: none; }
.play-paper .game-tools { justify-content: center; border-block: 0; padding: 4px 0; }
.play-paper .board { padding-top: 12px; }
.play-paper .board:has(.fold-area) { padding-inline: clamp(10px, 3vw, 24px); }
.play-paper .paper-board-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.play-paper .board .gesture-tip { text-align: center; margin: 0 0 10px; }
.play-paper .puzzle-meter { margin-top: 12px; }
.play-paper .puzzle-actions { justify-content: center; }
.game-redesign .board .gesture-tip { margin: -4px 0 10px; font-size: .87rem; color: #4c5b4e; }
.game-key { display: flex; align-items: center; justify-content: center; gap: 5px 15px; flex-wrap: wrap; font-size: .8rem; }
.game-key span { display: inline-flex; align-items: center; gap: 5px; }
.game-key i { width: 13px; height: 13px; border-radius: 2px; }
.key-paper { background: #b6573e; }
.key-target { border: 1.5px dashed var(--ticket-ink); }

.play-tile .dock-ui { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 0; }
.play-tile .dock-grid {
  width: min(100%, 390px);
  min-width: 0;
  margin-inline: auto;
  padding: 5px;
  gap: 3px;
  background: #ded4ee;
  border: 2px solid #433753;
  border-radius: 9px;
}
.play-tile .dock-cell { color: #392e4d; background: #ece5f5; border-color: #9e8ab6; position: relative; }
.play-tile .dock-cell:hover { border-color: #4f3d5c; }
.play-tile .dock-cell:focus-visible { z-index: 1; }
.play-tile .dock-cell.island { color: #fff8e7; background: #40344f; border-color: #392c4b; font-size: 1.4rem; }
.play-tile .dock-cell[data-placed] { background: var(--tile); border-color: #67576d; }
.play-tile .dock-cell.just-placed { animation: dock-snap .22s ease-out; }
@keyframes dock-snap { 50% { box-shadow: inset 0 0 0 4px #fff7df; } }
.play-tile .dock-cell.drop-valid::after, .play-tile .dock-cell.drop-invalid::after { content: ''; position: absolute; inset: 3px; border: 2px dashed currentColor; border-radius: 2px; pointer-events: none; }
.play-tile .dock-cell.drop-valid::after { color: #194728; background: #90cb9aa0; }
.play-tile .dock-cell.drop-invalid::after { color: #8c3b2d; background: repeating-linear-gradient(135deg,#f4988155 0 5px,#f7b6a4bb 5px 10px); }
.piece-tray { border: 1px dashed #9587a8; border-radius: 9px; padding: 8px 11px; background: #f3ecf5; }
.tray-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: #443554; }
.tray-head h3 { margin: 0; }
.tray-head span { font-size: .8rem; }
.play-tile .piece-choice { grid-template-columns: 50px auto; min-width: 67px; height: 58px; background: #fff9ed; border-color: #b6a6c2; min-height: 50px; padding-inline: 5px; }
.play-tile .piece-choice[aria-pressed='true'] { border-color: #6b486e; box-shadow: 0 0 0 1px #6b486e; }
.play-tile .piece-preview { width: 50px; height: 50px; }
.play-tile .piece-preview i { width: 11px; height: 11px; left: calc(var(--x) * 12px + 2px); top: calc(var(--y) * 12px + 2px); }
.tile-float { position: fixed; top: 0; left: 0; z-index: 5; pointer-events: none; }
.tile-float i { position: absolute; left: calc(var(--x) * 22px - 10px); top: calc(var(--y) * 22px - 10px); width: 21px; height: 21px; background: var(--tile); border: 1px solid #5c4869; border-radius: 3px; }
[data-piece], [data-placed] { cursor: grab; touch-action: none; user-select: none; }
.play-tile .is-dragging { opacity: .65; cursor: grabbing; }

.guided-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(175px, 30%); gap: 14px; align-items: start; }
.guided-main { min-width: 0; }
.guided-main .clue {
  margin: 0 0 13px;
  padding: clamp(13px, 2.3vw, 23px);
  border: 1px solid #bdb398;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ticket-band) 42%, #fffaf0);
}
.game-stub { min-width: 0; background: color-mix(in srgb, var(--ticket-band) 32%, #fffaf0); padding: 11px; border-radius: 8px; border: 1px solid #bdb398; }
.game-stub h3 { display: flex; gap: 6px; align-items: baseline; justify-content: space-between; }
.game-stub h3 span { font: 800 .79rem var(--sans); }
.game-stub .hints { margin: 8px 0; padding: 6px 4px 6px 21px; background: #fff9ea; font-size: .87rem; }
.game-stub .hints li + li { margin-top: 6px; }
.game-stub .btn { margin-top: 7px; padding-inline: 9px; font-size: .83rem; }
.game-stub .btn.plain { background: transparent; border-color: transparent; text-decoration: underline; }
.game-stub textarea { margin-top: 5px; resize: vertical; }
.case-form, .estimate-form { display: grid; justify-items: start; gap: 8px; }
.case-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; width: 100%; }
.case-form legend { margin-bottom: 4px; font-size: .9rem; font-weight: 800; }
.case-letters { display: grid; grid-template-columns: repeat(var(--letters), minmax(0, 1fr)); gap: clamp(3px, 1vw, 7px); width: min(100%, calc(var(--letters) * 56px)); }
.case-letters input { height: clamp(42px, 8vw, 53px); width: 100%; padding: 0; text-align: center; text-transform: uppercase; border: 1.5px solid var(--ticket-ink); background: #fffdf4; font-size: clamp(1rem, 4vw, 1.6rem); font-weight: 800; }
.case-letters [aria-invalid='true'] { background: #f7dfd4; }
.guided-status { margin-top: 9px; padding: 5px 9px; border-left: 3px solid #a44d3a; color: #703c2c; font-size: .88rem; }
.guess-record { margin-top: 12px; padding-top: 9px; border-top: 1px dashed #aa9d7b; }
.guess-record ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.guess-record li { padding: 2px 5px; font-size: .75rem; background: #f5e2d8; border-radius: 3px; letter-spacing: .06em; }
.estimate-input { display: flex; align-items: center; gap: 10px; width: 100%; font-weight: 800; overflow-wrap: anywhere; }
.estimate-input input { flex: 1; min-width: 0; max-width: 270px; padding: 6px 9px; border: 1.5px solid var(--ticket-ink); font: 800 clamp(1.35rem, 4vw, 2.2rem)/1.15 var(--sans); font-variant-numeric: tabular-nums; }
.estimate-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 10px 0; }
.estimate-result div { background: #e5ebd2; border: 1px solid #b0bc98; border-radius: 6px; padding: 7px 9px; }
.estimate-result dt { font-size: .79rem; }
.estimate-result dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }

@media (max-width: 650px) {
  .guided-board { grid-template-columns: minmax(0, 1fr); }
  .game-redesign .page-heading .eyebrow { display: none; }
  .game-redesign .game-tools { flex-wrap: wrap; gap: 6px; }
  .quick-levels .btn { min-width: 54px; }
  .game-redesign .board { padding-inline: 12px; }
  .game-redesign .board-top { margin-inline: -12px; padding-inline: 12px; }
  .game-redesign .game-tools .btn, .game-redesign .archive input { min-height: 36px; }
  .estimate-result { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .play-tile .dock-cell.just-placed { animation: none; }
}

/* Paper Press: layered cut-paper */
.play-paper {
  --pp-canvas: #faf2e4; --pp-ink: #203c33; --pp-coral: #e7a385; --pp-sage: #dfebdc;
  --pp-card: #fffaf1; --pp-mint: #8fcfae; --pp-crease: #1c1f1e; --pp-target: #24386b; --pp-arrow: #a9422a;
  --pp-muted: #4d6054; --pp-edge: rgb(32 60 51 / .15);
  --pp-l1: 0 1px 2px rgb(32 60 51 / .10), 0 2px 4px rgb(32 60 51 / .10);
  --pp-l2: 0 2px 3px rgb(32 60 51 / .14), 0 4px 8px rgb(32 60 51 / .14);
  --pp-l3: 0 4px 10px rgb(32 60 51 / .18);
  --pp-fiber: repeating-linear-gradient(17deg, rgb(32 60 51 / .035) 0 1px, transparent 1px 5px), repeating-linear-gradient(-71deg, rgb(255 255 255 / .06) 0 1px, transparent 1px 7px);
  color: var(--pp-ink);
}
body:has(main.play-paper) { background: #faf2e4; }
body:has(main.play-paper) .topbar-inner { border: 1px solid rgb(32 60 51 / .15); border-radius: 8px; background: #fffaf1; box-shadow: 0 1px 2px rgb(32 60 51 / .10), 0 2px 4px rgb(32 60 51 / .10); }
.play-paper :focus-visible { outline: 2px solid var(--pp-ink); outline-offset: 2px; }

/* Heading, folder tabs, difficulty chips */
.play-paper .paper-layout { padding-block: 24px 56px; }
.play-paper .paper-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.play-paper .paper-heading .back { display: inline-block; margin-bottom: 8px; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.play-paper .paper-heading h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.03em; }
.play-paper .paper-heading p { margin-top: 4px; color: var(--pp-muted); font-size: 14px; font-weight: 600; }
.play-paper .paper-navigation { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; border-bottom: 1px solid var(--pp-edge); }
.play-paper .paper-modes { flex-wrap: nowrap; gap: 4px; }
.play-paper .paper-modes a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border: 1px solid var(--pp-edge); border-bottom: 0; border-radius: 8px 8px 0 0; background: #f1e4cf; box-shadow: var(--pp-l1); font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.play-paper .paper-modes a:hover { transform: translateY(-1px); box-shadow: var(--pp-l3); text-decoration: none; }
.play-paper .paper-modes a[aria-current] { z-index: 1; background: var(--pp-card); box-shadow: var(--pp-l2); transform: translateY(-3px); text-decoration: none; }
.play-paper .paper-modes a[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 5px; background: var(--pp-card); }
.play-paper .quick-levels { gap: 8px; padding-bottom: 10px; }
.play-paper .quick-levels .btn { min-width: 0; min-height: 40px; padding: 6px 14px; border: 1px solid var(--pp-edge); border-radius: 7px; background: var(--pp-card); box-shadow: var(--pp-l1); font-size: 14px; }
.play-paper .quick-levels .btn.solid { background: var(--pp-ink); color: #faf2e4; box-shadow: var(--pp-l2); transform: translateY(-1px); }
.play-paper .paper-route-links { display: flex; gap: 16px; padding-bottom: 12px; font-size: 14px; font-weight: 700; }

/* Two columns and cut-paper cards */
.play-paper .paper-columns { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 36px; align-items: start; }
.play-paper .paper-sidebar { display: grid; gap: 18px; }
.play-paper .paper-panel { position: relative; padding: 20px; border: 1px solid var(--pp-edge); border-radius: 10px; background-color: var(--pp-card); background-image: var(--pp-fiber); box-shadow: var(--pp-l1); }
.play-paper .paper-panel h2 { font-size: 22px; letter-spacing: -.02em; }
.play-paper .paper-panel p { margin-top: 8px; color: var(--pp-muted); font-size: 14px; }
.play-paper .paper-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.play-paper .paper-panel-head span { color: var(--pp-muted); font-size: 13px; font-weight: 600; }
.play-paper .paper-rules { margin-top: 24px; }
.play-paper .paper-today::after { content: ''; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; border-radius: 0 10px 0 4px; background: linear-gradient(225deg, #faf2e4 0 50%, #eadcc4 50%); box-shadow: -1px 1px 2px rgb(32 60 51 / .12); }
.play-paper #paper-daily-progress { display: grid; gap: 4px; margin-top: 12px; }
.play-paper #paper-daily-progress a { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 6px 10px; border-radius: 6px; font-size: 15px; font-weight: 700; text-decoration: none; }
.play-paper #paper-daily-progress a:hover { background: #f4ead8; }
.play-paper #paper-daily-progress b { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.play-paper .progress-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; font-style: normal; line-height: 1; }
.play-paper .progress-mark.done { background: var(--pp-mint); border-color: var(--pp-ink); }
.play-paper .paper-countdown { display: block; margin-top: 8px; font: 800 32px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.play-paper .paper-community ul { display: grid; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.play-paper .paper-community li a { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; text-decoration: none; }
.play-paper .paper-community li small { color: var(--pp-muted); }
.play-paper .paper-community .btn { margin-top: 12px; }
.play-paper .paper-route-panel a { display: inline-block; margin-top: 10px; font-weight: 700; }

/* Board card, stats strip, ribbon progress */
.play-paper.game-redesign .board { padding: 20px; border: 1px solid var(--pp-edge); border-radius: 10px; background-color: var(--pp-card); background-image: var(--pp-fiber); box-shadow: var(--pp-l1); }
.play-paper .paper-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px 14px; border: 1px solid var(--pp-edge); border-radius: 8px; background: #fdf5e8; box-shadow: var(--pp-l1); }
.play-paper .paper-stats div { display: flex; align-items: baseline; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; }
.play-paper .paper-stats span { color: var(--pp-muted); }
.play-paper .paper-stats strong { font: 800 20px/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.play-paper .paper-progress { display: block; width: 100%; height: 12px; margin: 10px 0 16px; border: 0; appearance: none; background: #eadfca; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.play-paper .paper-progress::-webkit-progress-bar { background: #eadfca; }
.play-paper .paper-progress::-webkit-progress-value { background: var(--pp-mint); }
.play-paper .paper-progress::-moz-progress-bar { background: var(--pp-mint); }

/* Sage play surface and coral cardstock */
.play-paper .fold-area { --grid-line: rgb(32 60 51 / .07); width: min(100%, 460px); border-radius: 10px; outline: 0; background: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px), var(--pp-sage); background-size: var(--cell-width) var(--cell-height); box-shadow: inset 0 0 0 1px var(--pp-edge), var(--pp-l1); }
.play-paper .paper-layer { --sheet-color: var(--pp-coral); --paper-stripe: transparent; }
.play-paper .sheet-square { background-image: linear-gradient(rgb(109 58 33 / var(--fold-shade, 0)), rgb(109 58 33 / var(--fold-shade, 0))), var(--pp-fiber); background-position: 0 0; box-shadow: inset -1px -1px rgb(91 42 26 / .06); color: #5b2a1a; }
.play-paper [data-paper-layer], .play-paper .fold-base { filter: drop-shadow(0 1px 1.5px rgb(32 60 51 / .18)) drop-shadow(0 3px 5px rgb(32 60 51 / .10)); }
.play-paper .fold-flap { --sheet-color: #eaab8e; }
.play-paper .fold-flap.fold-reverse { --sheet-color: #f2c3a8; }
.play-paper .fold-preview .crease-guide { inset: 0; border-width: 0; filter: none; }

/* Diagram lines: dotted navy target, near-black crease, terracotta arrow */
.play-paper .paper-goal-edge, .play-paper .paper-hint-line, .play-paper .paper-drag-guide, .play-paper .paper-hint-arrow { position: absolute; left: var(--left); top: var(--top); width: var(--length); height: 0; transform-origin: 0 0; transform: rotate(var(--angle)) translateY(-50%); pointer-events: none; }
.play-paper .paper-goal-edge { border-top: 3px dotted var(--pp-target); }
.play-paper .paper-hint-line, .play-paper .paper-drag-guide { border-top: 3px dashed var(--pp-crease); filter: drop-shadow(0 0 1px #faf2e4); }
.play-paper .paper-hint-overlay { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.play-paper .paper-hint-arrow { border-top: 4px solid var(--pp-arrow); filter: drop-shadow(1.5px 0 0 #faf2e4) drop-shadow(-1.5px 0 0 #faf2e4) drop-shadow(0 1.5px 0 #faf2e4) drop-shadow(0 -1.5px 0 #faf2e4); }
.play-paper .paper-hint-arrow::before { content: ''; position: absolute; left: -7px; top: -9px; width: 14px; height: 14px; border-radius: 50%; background: var(--pp-arrow); }
.play-paper .paper-hint-arrow::after { content: ''; position: absolute; right: -4px; top: -11px; width: 0; height: 0; border-left: 16px solid var(--pp-arrow); border-block: 9px solid transparent; }
.play-paper .paper-board-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.play-paper .paper-ink-switch { min-height: 44px; padding: 8px 16px; border: 1px solid var(--pp-edge); border-radius: 8px; background: var(--pp-card); color: var(--pp-ink); font: inherit; font-size: 14px; font-weight: 700; box-shadow: var(--pp-l1); cursor: pointer; }
.play-paper .paper-ink-switch[aria-pressed='true'] { background: var(--pp-mint); box-shadow: var(--pp-l2); }
.play-paper .key-paper { background: var(--pp-coral); }
.play-paper .key-target { border: 1.5px dotted var(--pp-target); }

/* Layered paper buttons and the note-style tooltip */
.play-paper .btn { border-color: var(--pp-edge); border-radius: 8px; transition: transform .15s, box-shadow .15s, background .15s; }
.play-paper .btn.light { background: var(--pp-card); box-shadow: var(--pp-l1); }
.play-paper .btn.solid { background: var(--pp-ink); color: #faf2e4; box-shadow: var(--pp-l2); }
.play-paper .btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--pp-l3); }
.play-paper .btn.light:hover:not(:disabled) { background: #fff3e0; }
.play-paper .btn:disabled { opacity: 1; color: #6e5840; background: #efe6d6; border-color: #c9b89c; box-shadow: none; cursor: not-allowed; }
.play-paper .puzzle-actions { justify-content: center; gap: 10px; margin-top: 16px; }
.play-paper .puzzle-actions .btn { min-height: 44px; padding: 8px 18px; background: var(--pp-card); box-shadow: var(--pp-l1); }
.play-paper .puzzle-actions .hint-toggle { background: #f6d9c8; }
.play-paper .puzzle-actions .hint-toggle[aria-pressed='true'] { border-color: rgb(32 60 51 / .35); background: var(--pp-coral); box-shadow: var(--pp-l2); transform: translateY(-2px); }
.play-paper .paper-tooltip { position: relative; max-width: 460px; margin: 22px auto 4px; padding: 10px 14px; border: 1px solid var(--pp-edge); border-radius: 8px; background: #fffaf1; box-shadow: var(--pp-l2); font-size: 14px; font-weight: 600; text-align: center; }
.play-paper .paper-tooltip::before { content: ''; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; border-top: 1px solid var(--pp-edge); border-left: 1px solid var(--pp-edge); background: #fffaf1; transform: translateX(-50%) rotate(45deg); }

/* How to fold dialog */
.play-paper .paper-dialog { max-width: 440px; padding: 24px; border: 1px solid var(--pp-edge); border-radius: 10px; background: #fffaf1; color: var(--pp-ink); box-shadow: var(--pp-l3); }
.play-paper .paper-dialog::backdrop { background: rgb(32 60 51 / .35); }
.play-paper .paper-dialog ol { display: grid; gap: 8px; margin: 12px 0 16px; padding-left: 20px; font-size: 15px; }
.play-paper .paper-dialog-close { float: right; width: 36px; height: 36px; border: 0; background: transparent; font-size: 22px; }
.play-paper .paper-fold-diagram { display: none; }

@media (max-width: 900px) {
  .play-paper .paper-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .play-paper .paper-heading { flex-direction: column; align-items: flex-start; }
  .play-paper .paper-heading h1 { font-size: 32px; }
  .play-paper .paper-modes a { padding-inline: 14px; }
  .play-paper .paper-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-paper .puzzle-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .play-paper * { transition: none !important; }
}

.pb-cover {position:relative;min-height:clamp(22rem,58vw,31rem);display:grid;place-items:center;text-align:center;padding:2rem;background:#f4ecd6;isolation:isolate;overflow:hidden}
.pb-cover-inner {display:grid;justify-items:center;gap:.8rem;max-width:38rem}
.pb-cover-inner h1 {margin:0;font-size:clamp(2.5rem,8vw,5.25rem);line-height:1.02;letter-spacing:-.05em}
.pb-cover-inner p {margin:0;max-width:34rem}
.pb-cover-icon {width:min(16rem,65vw);aspect-ratio:var(--art-ratio);background-image:url('https://img.blamenick.org/s_2d6d2j3x2a571g/puzzle-break-ticket-art.2f5940c0cf.png');background-repeat:no-repeat;background-size:var(--art-size);background-position:var(--art-position);mask-image:linear-gradient(to right,transparent,black 12% 88%,transparent),linear-gradient(to bottom,transparent,black 9% 90%,transparent);mask-composite:intersect}
.pb-loading {position:absolute;inset:0;background:#f4ecd6;display:grid;align-content:center;justify-items:center;gap:1rem;font-weight:800;padding:2rem}
.pb-loader-shape {width:3.75rem;height:3.75rem;background:#c5533c;clip-path:polygon(0 0,100% 0,100% 65%,65% 100%,0 100%);animation:pb-fold 800ms ease-in-out infinite alternate}
@keyframes pb-fold {to {transform:scaleX(.32) rotate(12deg);opacity:.68}}
@media(prefers-reduced-motion:reduce) {.pb-loader-shape {animation:none}}
.pb-engage {display:flex;flex-wrap:wrap;gap:.55rem;margin:1rem 0;align-items:center}
.pb-engage [aria-pressed=true] {background:#18362e;color:#fff5e1}
.pb-discussion,.pb-editorial {margin:1.4rem 0 2rem}
.pb-discussion form {display:grid;gap:.65rem;max-width:42rem}
.pb-discussion label {display:grid;gap:.25rem}
.pb-discussion :is(input,textarea) {padding:.58rem .75rem;border:1px solid var(--border);border-radius:6px;background:#fffcf4;color:var(--ink)}
.pb-discussion button {justify-self:start}
.pb-discussion [data-gf-comments] {margin-top:1rem}
.pb-discussion [data-gf-empty]::after {content:'Which puzzle did you try today? Share a tip without giving away the answer.';color:var(--muted)}
.pb-comment {border-top:1px solid var(--border);padding:.7rem 0;overflow-wrap:anywhere}
.pb-comment [data-gf-c-owner] {display:none}
.pb-comment[data-gf-owner] [data-gf-c-owner] {display:inline}
.pb-comment [data-gf-c-time] {font-size:.875rem;color:var(--muted);margin-inline-start:.4rem}
.pb-faq details {padding:.8rem 0;border-top:1px solid var(--border)}
.pb-faq summary {cursor:pointer;font-weight:800}
@media(max-width:520px) {.pb-cover {padding:1rem}.pb-cover-icon {width:min(12rem,62vw)}}

[data-local-puzzle] :is(#score-board, .paper-community, form[data-form="score"], a[href^="/community/"]) {display:none !important}


/* --- games-at-a-glance table, related-games list, footer note --- */
.pb-glance { margin-top: 28px; }
.pb-glance h2 { margin-bottom: 12px; }
.pb-glance table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.pb-glance th, .pb-glance td { text-align: left; padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); vertical-align: top; }
.pb-glance thead th { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.pb-glance tbody tr:last-child td { border-bottom: 0; }
.pb-moregames { margin-top: 24px; }
.pb-moregames ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.pb-moregames li { padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.pb-moregames li:last-child { border-bottom: 0; }
.footer-note { max-width: 38ch; }
@media (max-width: 640px) {
  .pb-glance table, .pb-glance thead, .pb-glance tbody, .pb-glance tr, .pb-glance td { display: block; }
  .pb-glance thead { display: none; }
  .pb-glance tr { padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
  .pb-glance td { border: 0; padding: 2px 0; }
}


/* --- second pass: mobile table, nav hit areas, FAQ rhythm --- */
.pb-glance { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pb-glance table { min-width: 0; }
.pb-glance th { text-align: left; }
.pb-faq { margin-top: 48px; padding-top: 28px; border-top: 2px solid color-mix(in srgb, currentColor 16%, transparent); }
.pb-faq h2 { margin-bottom: 8px; }
.pb-faq details { padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.pb-faq details:last-of-type { border-bottom: 0; }
.pb-faq summary { cursor: pointer; font-weight: 700; }
.pb-faq details p { margin-top: 8px; opacity: 0.85; }
@media (max-width: 768px) {
  .topbar-inner nav a { display: inline-block; padding: 10px 12px; }
  .pb-glance td, .pb-glance th { font-size: 0.95rem; overflow-wrap: anywhere; }
  .game-list { gap: 16px; }
  .pb-faq { margin-top: 36px; }
}
