:root {
  --paper: #f7f5ef;
  --panel: #fffefb;
  --ink: #273c34;
  --muted: #66736b;
  --line: #dedfd5;
  --sage: #e9eee5;
  --green: #345845;
  --gold: #b58a32;
  --silver: #7f8b9b;
  --bronze: #aa7150;
  --grey: #000;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--green); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #bb913d; outline-offset: 4px; }
h1, h2, h3, h4, p, blockquote { margin: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.2; }
.page-shell { max-width: 1160px; padding: 0 46px; margin: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 112px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: Georgia, serif; font-size: 26px; letter-spacing: -.7px; }
.brand-mark { display: block; flex-shrink: 0; width: 42px; height: 42px; border-radius: 5px; object-fit: contain; }
.quiet-button { border: 0; background: transparent; font-size: 13px; font-weight: 600; padding: 10px 0 10px 12px; }
.quiet-button span { display: inline-grid; place-items: center; border: 1px solid #a6afa7; border-radius: 50%; width: 19px; height: 19px; margin-left: 7px; font-size: 11px; }
.eyebrow { display: block; font-size: 10px; letter-spacing: 2.1px; font-weight: 650; color: var(--muted); }
.daily-heading { display: flex; justify-content: space-between; align-items: center; margin: 36px 0 14px; }
.daily-date { font-size: 12px; color: var(--muted); }
.puzzle-labels { display: flex; flex-direction: column; gap: 5px; }
.difficulty-label { font-size: 12px; color: var(--muted); }
.site-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 0 30px; border-top: 1px solid var(--line); margin-top: 48px; font-size: 11px; color: var(--muted); }
.credits { max-width: 420px; text-align: right; }
.credits summary { cursor: pointer; }
.credits p { text-align: left; margin-top: 12px; font-size: 12px; }
.muted { color: var(--muted); }
.loading { padding: 110px 0; text-align: center; }
.loading h1 { margin: 16px 0; }
.primary-button { background: var(--green); color: white; border: 0; border-radius: 8px; padding: 11px 20px; margin-top: 20px; }
.gold { color: var(--gold); }
.silver { color: var(--silver); }
.bronze { color: var(--bronze); }
.grey { color: var(--grey); }
.emerald { color: #16865e; }
.gold { --star-fill: linear-gradient(115deg, #947017 8%, #f5b82f 24%, #fffbd8 38%, #ffdf64 46%, #af7814 60%, #ffdc61 77%, #fff2b1 88%); --star-glow: #e6af3759; }
.silver { --star-fill: linear-gradient(115deg, #58677b 8%, #b9c5d4 24%, #ffffff 38%, #e0e9f4 46%, #75859b 60%, #dfe8f2 77%, #ffffff 88%); --star-glow: #a6c0df66; }
.bronze { --star-fill: linear-gradient(115deg, #854222 8%, #ce894b 24%, #ffe7be 38%, #eeb074 46%, #92502d 60%, #eab280 77%, #fff1d5 88%); --star-glow: #d08b5259; }
.emerald { --star-fill: linear-gradient(115deg, #086841 8%, #2dbb7a 24%, #ceffdd 38%, #74e4b0 46%, #138150 60%, #57dfa4 77%, #d8ffe8 88%); --star-glow: #2bce7d59; }
.star-shine { background-image: var(--star-fill); background-size: 200% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 #7d663c55) drop-shadow(0 0 6px var(--star-glow)); animation: star-shimmer 5s ease-in-out infinite; }
@keyframes star-shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); max-width: 620px; padding: 30px; line-height: 1.7; }
dialog::backdrop { background: #152a2470; }
.dialog-heading { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.dialog-heading h2 { font-size: 27px; }
dialog p { margin-top: 16px; font-size: 14px; }
.star-rules { list-style: none; padding: 0; font-size: 14px; }
.star-rules li { margin: 8px 0; }
.star-rules span { margin-right: 10px; font-size: 21px; }
@media (max-width: 700px) {
  .page-shell { padding: 0 22px; }
  .site-header { min-height: 84px; }
  .brand { font-size: 23px; }
  .brand-mark { width: 36px; height: 36px; }
  .daily-heading { margin-top: 26px; gap: 16px; }
  .daily-heading .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  .daily-date { font-size: 10px; }
  .site-footer { display: block; }
  .credits { text-align: left; margin-top: 12px; }
  dialog { max-width: calc(100vw - 32px); padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
