* {
  box-sizing:border-box
}
:root {
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#253b56;
  background:var(--club-background);
  font-synthesis:none;
  --blue:#243e65;
  --border:#7f8e9d
}
body {
  margin:0
}
button,input,summary {
  font:inherit
}
button,summary {
  touch-action:manipulation
}
button {
  cursor:pointer;
  min-height:46px;
  border:1px solid #b1bdc9;
  border-radius:8px;
  background:#fff;
  color:var(--blue);
  padding:10px 17px;
  font-weight:600
}
button:hover:not(:disabled) {
  background:#e9eff5;
  border-color:#506886
}
button:disabled {
  opacity:.48;
  cursor:default
}
button:focus-visible,summary:focus-visible,input:focus-visible,a:focus-visible {
  outline:3px solid #ae620c;
  outline-offset:3px
}



.quiet {
  background:transparent;
  border-color:transparent;
  font-size:15px;
  text-decoration:underline;
  text-underline-offset:4px
}
main {
  max-width:1120px;
  margin:auto;
  padding:26px 24px 30px
}
.intro {
  text-align:center;
  margin:0 0 25px
}
.eyebrow {
  font-size:11px!important;
  letter-spacing:2px;
  text-transform:uppercase;
  font-weight:650;
  color:#63776b!important;
  margin:0 0 8px!important
}
h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(30px,4vw,40px);
  font-weight:400;
  letter-spacing:-1px;
  margin:0 0 8px
}
.intro #help {
  margin-top:8px
}
.intro>p {
  font-size:16px;
  color:#596877;
  margin:0
}
.game {
  max-width:576px;
  margin:auto
}
.game-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:15px
}
.difficulty {
  font-size:17px;
  font-weight:650
}
.remaining {
  margin-left:12px;
  font-size:14px;
  color:#536174
}
.new-button {
  font-size:15px;
  background:transparent
}
.new-button span {
  margin-left:14px
}
.board {
  display:grid;
  grid-template-columns:repeat(9,minmax(0,1fr));
  aspect-ratio:1;
  border:3px solid #344d6a;
  background:#fff;
  box-shadow:0 4px 18px #243e6508
}
.board-row {
  display:contents
}
.cell {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:0;
  min-width:0;
  border:0;
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
  border-radius:0;
  padding:0;
  font-size:clamp(24px,5vw,39px);
  line-height:1;
  color:#214d86;
  font-weight:400;
  background:#fff;
  aspect-ratio:1;
  user-select:none
}
.cell.given {
  font-weight:650;
  color:#203d68;
  background:#f5f7fa
}
.cell.box-right {
  border-right:2px solid #344d6a
}
.cell.box-bottom {
  border-bottom:2px solid #344d6a
}
.cell.edge-right {
  border-right:0
}
.cell.edge-bottom {
  border-bottom:0
}
.cell.match {
  background:#e3edf8
}
.cell.selected {
  background:#d6e6f6;
  box-shadow:inset 0 0 0 3px #365f90;
  z-index:1
}
.cell:focus-visible {
  outline:3px solid #ae620c;
  outline-offset:-4px;
  z-index:2
}
.cell:hover:not(:disabled) {
  background:#e8eff8;
  border-color:var(--border)
}
.cell.box-right:hover {
  border-right-color:#344d6a
}
.cell.box-bottom:hover {
  border-bottom-color:#344d6a
}
.cell .entry::after {
  content:"";
  position:absolute;
  bottom:8%;
  left:39%;
  right:39%;
  height:2px;
  background:#6b83a1
}
.cell.wrong::before {
  content:"!";
  position:absolute;
  right:4%;
  top:4%;
  font:700 12px system-ui;
  background:#a32924;
  color:white;
  min-width:14px;
  line-height:14px;
  border-radius:50%
}
.cell.wrong {
  background:#fff0ed
}
.notes {
  width:86%;
  height:86%;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-template-rows:repeat(3,1fr);
  font-size:clamp(10px,1.9vw,14px);
  color:#354d65
}
.notes span {
  display:flex;
  align-items:center;
  justify-content:center
}
.instructions {
  text-align:center;
  color:#566579;
  font-size:14px;
  margin:17px 0 12px
}
.numbers {
  display:grid;
  grid-template-columns:repeat(9,minmax(0,1fr));
  gap:7px
}
.numbers button {
  padding:7px 0;
  min-width:0;
  font-size:27px;
  min-height:54px;
  border-color:#a9b8c8;
  position:relative
}
.numbers button[aria-pressed=true] {
  background:var(--blue);
  border-color:var(--blue);
  color:white;
  box-shadow:0 3px 0 #afbdd0
}
.tools {
  display:grid;
  grid-template-columns:1.65fr 1fr 1fr 1fr;
  gap:8px;
  margin-top:14px
}
.tools button {
  font-size:14px;
  padding:11px 7px;
  background:transparent;
  white-space:nowrap
}
.tools #pencil-state {
  font-size:11px;
  text-transform:uppercase;
  margin-left:5px;
  font-weight:700
}
.tools button[aria-pressed=true] {
  background:#dbe7f3;
  border:2px solid #365f90;
  padding:10px 6px
}
.game-bottom {
  display:flex;
  align-items:center;
  gap:12px;
  position:relative;
  margin-top:14px;
  min-height:44px;
  font-size:12px;
  color:#526574
}
#saved::before {
  content:"✓";
  margin-right:6px
}
#timer {
  margin-left:auto;
  font-variant-numeric:tabular-nums
}
details {
  margin-left:auto
}
summary {
  cursor:pointer;
  padding:12px 2px 12px 12px;
  font-size:14px;
  color:var(--blue);
  list-style:none;
  min-height:44px
}
summary::-webkit-details-marker {
  display:none
}
summary span {
  margin-left:5px
}
.more-panel {
  position:absolute;
  right:0;
  bottom:45px;
  background:#fff;
  box-shadow:0 8px 35px #1c314633;
  border:1px solid #bdc6ce;
  border-radius:10px;
  padding:10px;
  z-index:5;
  width:235px;
  display:grid;
  gap:5px
}
.more-panel button {
  font-size:14px;
  text-align:left;
  border-color:transparent
}
.more-panel label {
  padding:12px 8px;
  font-size:14px;
  display:flex;
  gap:10px;
  align-items:center
}
.more-panel input {
  width:20px;
  height:20px;
  accent-color:var(--blue)
}
.message {
  text-align:center;
  min-height:24px;
  font-size:14px;
  line-height:1.5;
  margin:8px 0;
  color:#405870
}
footer {
  text-align:center;
  border-top:1px solid #dce0dd;
  max-width:576px;
  margin:20px auto 0;
  padding-top:19px;
  font-size:12px;
  color:#617167
}
footer span {
  display:block;
  margin-top:5px
}
.warning {
  padding:14px;
  border:1px solid #a77024;
  background:#fff5dd;
  color:#67410d;
  font-size:14px;
  line-height:1.5;
  border-radius:6px
}
.win {
  margin:15px 0;
  background:#e7efe5;
  border:1px solid #8ba386;
  padding:16px;
  text-align:center;
  line-height:1.5;
  color:#2d4d2c
}
.win strong {
  display:block;
  font-family:Georgia,serif;
  font-size:25px;
  font-weight:400
}
.skip {
  position:fixed;
  top:-80px;
  left:10px;
  z-index:20;
  background:white;
  padding:15px;
  color:var(--blue)
}
.skip:focus {
  top:10px
}
dialog {
  max-width:540px;
  width:calc(100% - 32px);
  padding:30px;
  border:1px solid #a5b0bc;
  border-radius:14px;
  color:#253b56;
  box-shadow:0 24px 100px #17233433
}
dialog::backdrop {
  background:#16283f70
}
dialog h2 {
  font:400 30px Georgia,serif;
  margin:0 0 16px
}
dialog p,dialog li {
  font-size:16px;
  line-height:1.6
}
dialog ul {
  padding-left:22px
}
dialog li {
  margin:10px 0
}
fieldset {
  border:0;
  padding:0;
  margin:22px 0
}
legend {
  font-weight:650;
  margin-bottom:12px
}
fieldset label {
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 10px;
  border:1px solid #c8d0d8;
  margin-bottom:8px;
  border-radius:8px;
  font-weight:600
}
fieldset input {
  width:21px;
  height:21px;
  accent-color:var(--blue)
}
fieldset label span {
  font-size:13px;
  font-weight:400;
  margin-left:auto;
  color:#5a6b7b
}
.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px
}
.primary {
  background:var(--blue);
  border-color:var(--blue);
  color:white
}
.primary:hover:not(:disabled) {
  background:#345782;
  color:white
}
[hidden] {
  display:none!important
}
@media(min-width:1050px) {
  
  main {
    display:grid;
    grid-template-columns:1fr min(576px,max(396px,calc(100svh - 400px)));
    column-gap:65px;
    padding-top:24px;
    max-width:1040px
  }
  .intro {
    text-align:left;
    padding-top:76px
  }
  .intro h1 {
    font-size:49px;
    max-width:220px;
    line-height:1.13
  }
  .intro>p:last-of-type {
    max-width:210px;
    line-height:1.8;
    margin-top:18px
  }
  .game {
    width:100%
  }
  .cell {
    font-size:clamp(28px,4.5vh,39px)
  }
  footer {
    grid-column:2;
    width:100%
  }
  .eyebrow {
    letter-spacing:1.4px!important
  }
}
@media(max-width:620px) {
  
  
  
  .quiet {
    font-size:13px;
    padding:8px;
    min-height:44px
  }
  main {
    padding:22px 12px
  }
  .intro {
    margin-bottom:23px
  }
  .intro h1 {
    font-size:32px
  }
  .intro>p:last-of-type {
    font-size:14px
  }
  .game-top {
    margin-bottom:12px
  }
  .remaining {
    font-size:12px;
    margin-left:9px
  }
  .numbers {
    gap:4px
  }
  .numbers button {
    min-height:47px;
    font-size:25px
  }
  .tools {
    gap:5px;
    grid-template-columns:1.6fr .9fr 1fr 1fr
  }
  .tools button {
    font-size:12px;
    padding:10px 3px
  }
  .tools #pencil-state {
    font-size:9px;
    margin-left:1px
  }
  .instructions {
    font-size:12px;
    line-height:1.5
  }
  .cell {
    font-size:clamp(23px,6.8vw,38px)
  }
  .notes {
    font-size:clamp(9px,2.6vw,14px)
  }
  fieldset label span {
    max-width:120px
  }
  dialog {
    padding:22px
  }
  .dialog-actions button {
    padding:10px;
    font-size:14px
  }
}
@media print {
  body {
    background:white
  }
  
  .intro,.game-top button,.instructions,.numbers,.tools,.game-bottom,.message,footer,dialog,.warning,.win,.skip {
    display:none!important
  }
  main {
    display:block;
    padding:0
  }
  .game {
    width:170mm;
    max-width:170mm;
    margin:10mm auto
  }
  .board {
    box-shadow:none;
    width:170mm
  }
  .cell,.cell.given,.cell.selected,.cell.match {
    background:white!important;
    color:black!important;
    box-shadow:none!important;
    outline:0!important
  }
  .cell.wrong::before {
    display:none
  }
  .game-top {
    margin-bottom:5mm
  }
  .cell .entry::after {
    background:#777
  }
  .notes {
    font-size:12pt
  }
}
@media(max-width:360px) {
  .game-top .remaining {
    display:block;
    margin:4px 0 0
  }
  .new-button {
    white-space:nowrap;
    flex-shrink:0;
    padding-inline:12px
  }
  .new-button span {
    margin-left:5px
  }
}

.social{max-width:760px;margin:28px auto;padding:0 22px 40px;line-height:1.6}.social h2{font:400 26px Georgia,serif}.social h1:focus{outline:none}.card{background:white;border:1px solid #d0d8dc;border-radius:12px;padding:22px;margin:20px 0}.social form label{display:block;font-weight:600;margin-bottom:7px}.social input,.social textarea{font:inherit;color:inherit;border:1px solid #8999a9;border-radius:6px;padding:11px;width:100%;margin-bottom:12px;background:white}.social textarea{resize:vertical}.social textarea:focus-visible{outline:3px solid #ae620c;outline-offset:3px}.inline-form{display:flex;gap:10px;align-items:start}.inline-form input{margin:0;min-width:0}.inline-form button{flex-shrink:0}.fine{font-size:14px;color:#5b6b75}.account-line{display:flex;align-items:center;justify-content:space-between;gap:12px;overflow-wrap:anywhere}.messages{display:grid;gap:12px}.chat-message{border-left:3px solid #b6c8b0;padding:14px 18px;background:white;border-radius:0 10px 10px 0;overflow-wrap:anywhere}.chat-message p{white-space:pre-wrap;margin:6px 0}.chat-message time{font-size:12px;color:#586773;margin-left:12px}.chat-message button{min-height:34px;padding:4px 10px;font-size:13px}.stat-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stat-card{background:#eaf0e7;border-radius:10px;padding:18px;text-align:center}.stat-card strong{display:block;font:32px Georgia,serif}.stat-card span{font-size:14px}.table-wrap{overflow:auto;border:1px solid #c3ced7;border-radius:10px;background:white}table{border-collapse:collapse;width:100%;font-size:15px}th,td{text-align:right;padding:13px 10px;border-bottom:1px solid #e1e5e8}th:first-child,td:first-child{text-align:left;overflow-wrap:anywhere}th{background:#eef2f5}tr:last-child td{border:0}.member-list{list-style:none;padding:0}.member-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e1e5e8;overflow-wrap:anywhere}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:500px){.social{padding-inline:14px}.card{padding:16px}.stat-cards{gap:7px}.stat-card{padding:13px 5px}.stat-card span{font-size:12px}th,td{padding:11px 7px;font-size:13px}.inline-form{display:block}.inline-form input{margin-bottom:10px}}@media print{.social{display:none!important}}
/* Keep the puzzle controls visible on ordinary laptop screens. */
@media(min-width:1050px){main{padding-top:16px;grid-template-columns:1fr min(576px,max(396px,calc(100svh - 464px)))}.game-top{margin-bottom:12px}.instructions{margin:14px 0 8px}.numbers button{min-height:48px}.tools{margin-top:10px}.game-bottom{margin-top:10px}}

.request-list{list-style:none;padding:0}.request-list li{padding:16px 0;border-bottom:1px solid #d5dce1;overflow-wrap:anywhere}.request-list p{margin:4px 0}.request-actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}#request-count{font-size:13px}#request-status,#pending-status,#invite-status{overflow-wrap:anywhere}
.member-list li{display:block}.member-list select{font:inherit;min-height:46px;max-width:100%;padding:8px 12px;border:1px solid #8999a9;border-radius:6px;color:inherit;background:white}.member-list select:focus-visible{outline:3px solid #ae620c;outline-offset:3px}

/* Progress and scoreboards: readable cards and horizontally scrollable tables. */
.score-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.score-heading h2{margin:0}.achievement-list{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.achievement{display:inline-block;padding:9px 14px;border-radius:24px;background:#eee6cf;color:#53421d;font-size:16px}.score-recent{list-style:none;padding:0}.score-recent li{padding:13px 0;border-bottom:1px solid #d6ded9}.score-recent strong,.score-recent span{display:block}.score-recent span{font-size:14px;color:#536174;margin-top:5px}#stats-panel .stat-cards{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}#stats-panel .stat-card strong{font:27px Georgia,serif;overflow-wrap:anywhere}#stats-panel .stat-card span{font-size:15px}#stats-panel .table-wrap:focus-visible{outline:3px solid #ae620c;outline-offset:3px}#stats-panel th{min-width:85px}#stats-panel th:first-child{min-width:120px}#stats-panel h3{margin-top:24px}#scores-status{min-height:1.6em}@media(max-width:400px){#stats-panel .stat-cards{grid-template-columns:1fr 1fr;gap:8px}#stats-panel .stat-card strong{font-size:23px}}

#personal-link-output{padding:16px;background:#f0f4ec;border-radius:8px;margin:14px 0}#personal-link-output label{display:block;font-weight:600;margin-bottom:8px}#personal-link{font-size:15px}#guest-invite-status,#personal-invite-status{overflow-wrap:anywhere}





/* The club edition */
.club-home,.social {color:#263f39}
.club-home {max-width:1120px;margin:26px auto 56px;padding:0 32px}
.edition-line {display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:3px double #667a6f;border-bottom:1px solid #a9b3a7;padding:9px 0;color:#425d50;font:650 .78rem/1.4 system-ui;letter-spacing:.1em;text-transform:uppercase}
.edition-line time {font-weight:500;letter-spacing:.04em}
.home-lead {display:grid;grid-template-columns:1.65fr 1fr;align-items:center;padding:32px 3% 36px;gap:28px;background:#f1eddf;border-bottom:1px solid #aeb2a2}
.home-lead h1,.club-home h2,.social h1,.social h2 {font-family:Georgia,serif;color:#253e35}
.home-lead h1 {font-size:clamp(2.6rem,5.4vw,5rem);line-height:1.02;font-weight:500;letter-spacing:-.055em;margin:0}
.home-lead h1 span {color:#a34b35}
.home-lead p {max-width:48ch;font:1.22rem/1.55 Georgia,serif;margin:18px 0}
.club-home .primary,.social .primary {background:#284c40;color:white;border-color:#284c40}
.still-life {position:relative;width:230px;height:168px;justify-self:center;isolation:isolate}
.still-life>* {position:absolute;box-shadow:3px 7px 0 #37372c19}
.paper-grid {display:grid;grid-template-columns:repeat(3,1fr);left:5px;top:16px;width:123px;height:123px;transform:rotate(-12deg);background:#fffaf0;border:2px solid #546a59}
.paper-grid i {display:grid;place-items:center;border:.5px solid #aeb5a6;font:italic 26px Georgia;color:#365140}
.paper-card {top:7px;right:26px;width:76px;height:112px;border:1px solid #b39e83;border-radius:8px;transform:rotate(15deg);background:#fffaf2;color:#984430;font:30px Georgia;padding:4px 8px}
.paper-card small {display:block;text-align:center;font-size:38px}
.paper-tile {right:37px;bottom:4px;transform:rotate(6deg);border-radius:6px;background:#dfc58c;border:1px solid #b49c68;padding:5px 12px;font:42px Georgia;color:#403b30}
.home-columns {display:grid;grid-template-columns:1.9fr 1fr;gap:34px;margin-top:28px}
.club-home h2 {font-size:1.85rem;font-weight:500;letter-spacing:-.035em;margin:0 0 16px}
.game-menu {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.game-menu button {display:flex;text-align:left;align-items:center;gap:12px;padding:16px 12px;border:1px solid #c9cdbc;border-radius:5px;color:#263f39;background:#fffdf7}
.game-menu b {margin-left:auto;font-size:16px}
.game-mark {flex:none;display:grid;place-items:center;border-radius:4px;background:#e1e8d5;color:#3c5946;width:44px;height:49px;font:32px Georgia}
.game-mark.solitaire {background:#ede3d9;color:#7a392e}.game-mark.word {background:#e8d6ad;color:#574522}.game-mark.garden {background:#dde8df}
.game-menu strong,.game-menu small {display:block}.game-menu strong {font:600 1.15rem Georgia}.game-menu small {font:normal .94rem/1.4 system-ui;margin-top:5px;color:#50615a}
.arcade-extra {display:inline-block;padding:14px 0;color:#394f43}
.club-notes {border-left:1px solid #b9bdaf;padding-left:28px}.club-notes p {font:1.08rem/1.55 Georgia;margin:8px 0}
.club-notes button {padding:6px 0;border:0;background:none;color:#355442;text-decoration:underline;text-underline-offset:4px}
.club-notes hr {border:none;border-top:1px solid #c9cbbc}
.social {max-width:940px}.social h1 {font-weight:500;font-size:clamp(2.5rem,5vw,4.6rem);letter-spacing:-.045em;margin:20px 0 8px}
.social:not([data-section=account]) :is(#admin-panel,#profile-form,.account-line) {display:none}
.social:not([data-section=account]) .account-privacy {display:none}
#chat-panel {max-width:720px}
#chat-form,.chat-message,.score-game {background:#fffcf4;border:1px solid #ccd0c1;border-radius:5px}
.chat-message {border-left:4px solid #9fae94}.chat-message time {font-size:.92rem}
.chat-date {font:normal 1.25rem Georgia;margin:16px 0 0}
.score-switch {display:flex;gap:5px}.score-switch [aria-current=page] {background:#2d5043;color:white}
.score-game {margin:10px 0;padding:0 18px 0;min-width:0}
.score-game summary {cursor:pointer;padding:15px 0;font:600 1.28rem Georgia;color:#314d40}
.score-game[open] {padding-bottom:16px}.score-game .stat-cards {margin-top:8px}
.score-game small {font:normal .95rem system-ui;color:#48604e;margin-left:.65em}
@media(max-width:760px){.club-home{padding:0 16px}.home-columns{grid-template-columns:1fr;gap:20px}.club-notes{border-left:0;border-top:1px solid #aeb2a2;padding:20px 0}.home-lead{grid-template-columns:1fr auto}.still-life{width:140px;transform:scale(.72);transform-origin:center}.paper-grid{left:-30px}.paper-card{right:-8px}.paper-tile{right:-10px}}
@media(max-width:520px){.home-lead{display:block;padding:24px 15px;position:relative}.still-life{display:none}.home-columns{margin-top:20px}.game-menu{grid-template-columns:1fr}.game-menu button{padding:10px 14px}.edition-line{font-size:.69rem}.social .score-heading{flex-wrap:wrap}}
@media print{.club-home{display:none!important}}

.score-columns {display:flex;align-items:center;gap:10px;min-height:44px}
.social .score-columns input {width:20px;height:20px;margin:0}
#club-results:not(:has(#all-columns:checked)) table:has(#leaderboard) tr>:is(:nth-child(2),:nth-child(3),:nth-child(4),:nth-child(6),:nth-child(8)),
#club-results:not(:has(#all-columns:checked)) table:has(#sol-leaderboard) tr>:is(:nth-child(2),:nth-child(3),:nth-child(5),:nth-child(8),:nth-child(9)) {display:none}

