/* Daily Orbs — night-sky orb theme. Deep plum header, lavender page,
   glowing orbs in teal, coral, gold and violet. Nothing here is shared
   with the clef quiz sites: different palette, different header, different
   stage, different cover. */
:root {
  --plum: #241a4e;
  --plum-2: #3a2a7a;
  --violet: #7c5cff;
  --teal: #0ea5a0;
  --coral: #ff6b6b;
  --gold: #f2b705;
  --bg: #f6f1ff;
  --card: #ffffff;
  --ink: var(--plum);
  --muted: #5f5680;
  --line: #ddd3f5;
  --stage-shadow: color-mix(in srgb, var(--plum) 28%, transparent);
  --teal-glow: color-mix(in srgb, var(--teal) 80%, transparent);
  --gold-glow: color-mix(in srgb, var(--gold) 80%, transparent);
  --coral-glow: color-mix(in srgb, var(--coral) 80%, transparent);
  --violet-glow: color-mix(in srgb, var(--violet) 80%, transparent);
  --white-glow: color-mix(in srgb, var(--card) 70%, transparent);
  --white-border: color-mix(in srgb, var(--card) 55%, transparent);
  --button-glow: color-mix(in srgb, var(--violet) 55%, transparent);
  --text-shadow: color-mix(in srgb, var(--plum) 60%, transparent);
  --button-start: var(--violet);
  --button-end: var(--teal);
  --radius: 28px;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.7; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }
a { color: var(--plum-2); }
.site-header { background: linear-gradient(120deg, var(--plum) 0%, var(--plum-2) 70%, var(--plum-2) 100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 15px; padding-bottom: 15px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--card); text-decoration: none; }
.brand-orbs { display: inline-flex; gap: 3px; }
.brand-orbs i { width: 13px; height: 13px; border-radius: 50%; display: block; }
.brand-orbs i:nth-child(1) { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.brand-orbs i:nth-child(2) { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.brand-orbs i:nth-child(3) { background: var(--coral); box-shadow: 0 0 10px var(--coral); }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--line); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--card); text-decoration: underline; }
main { max-width: 1020px; margin: 0 auto; padding: 0 20px 44px; }
.hero { padding-top: 26px; }
.hero h1 { font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--plum); text-align: center; }
.hero-sell { text-align: center; margin: 0 0 4px; }
.tagline { color: var(--muted); font-size: 1.12rem; margin: 0 0 20px; text-align: center; }
.today-line { text-align: center; color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; }
.today-line b { color: var(--plum); }
.stage { position: relative; aspect-ratio: 16 / 10; background: var(--plum); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 44px var(--stage-shadow); }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at 20% 0%, var(--plum-2) 0%, var(--plum) 55%, var(--plum) 100%); z-index: 2; overflow: hidden; }
.cover-orbs { position: absolute; inset: 0; }
.cover-orbs i { position: absolute; border-radius: 50%; opacity: 0.9; animation: drift 5s ease-in-out infinite alternate; }
.cover-orbs i:nth-child(1) { width: 90px; height: 90px; left: 8%; top: 12%; background: radial-gradient(circle at 35% 30%, var(--card), var(--teal) 65%); box-shadow: 0 0 34px var(--teal-glow); }
.cover-orbs i:nth-child(2) { width: 64px; height: 64px; right: 12%; top: 18%; background: radial-gradient(circle at 35% 30%, var(--card), var(--gold) 65%); box-shadow: 0 0 30px var(--gold-glow); animation-delay: 0.7s; }
.cover-orbs i:nth-child(3) { width: 110px; height: 110px; right: 6%; bottom: 10%; background: radial-gradient(circle at 35% 30%, var(--card), var(--coral) 65%); box-shadow: 0 0 36px var(--coral-glow); animation-delay: 1.2s; }
.cover-orbs i:nth-child(4) { width: 54px; height: 54px; left: 16%; bottom: 14%; background: radial-gradient(circle at 35% 30%, var(--card), var(--violet) 65%); box-shadow: 0 0 28px var(--violet-glow); animation-delay: 1.8s; }
.cover-orbs i:nth-child(5) { width: 34px; height: 34px; left: 46%; top: 8%; background: radial-gradient(circle at 35% 30%, var(--card), var(--violet) 65%); box-shadow: 0 0 20px var(--white-glow); animation-delay: 0.4s; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-12px); } }
.cover-inner { position: relative; z-index: 1; text-align: center; padding: 20px; max-width: 560px; }
.cover-title { color: var(--card); font-size: 1.9rem; font-weight: 800; line-height: 1.2; margin: 0 0 8px; }
.cover-text { color: var(--line); font-size: 1.05rem; margin: 0 0 18px; }
.orb-meter { display: flex; gap: 8px; justify-content: center; margin: 0 0 18px; }
.orb-meter i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--white-border); display: block; }
.orb-meter i.full { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px var(--gold); }
.orb-meter i.full.teal { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 12px var(--teal); }
.orb-meter i.full.coral { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 12px var(--coral); }
.orb-meter i.full.violet { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 12px var(--violet); }
.play-btn { background: linear-gradient(120deg, var(--button-start), var(--button-end)); color: var(--card); border: 0; border-radius: 999px; padding: 16px 38px; font-size: 1.2rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 26px var(--button-glow); }
.play-btn:hover { filter: brightness(1.08); }
.play-btn:active { transform: translateY(2px); }
.cover-note { color: var(--line); font-size: 0.92rem; margin: 16px 0 0; }
.loader { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--plum); z-index: 3; font-size: 1.15rem; font-weight: 700; color: var(--card); }
.loader-orbs { display: flex; gap: 12px; }
.loader-orbs i { width: 22px; height: 22px; border-radius: 50%; animation: bounce 0.8s ease-in-out infinite alternate; }
.loader-orbs i:nth-child(1) { background: var(--teal); box-shadow: 0 0 16px var(--teal); }
.loader-orbs i:nth-child(2) { background: var(--gold); box-shadow: 0 0 16px var(--gold); animation-delay: 0.15s; }
.loader-orbs i:nth-child(3) { background: var(--coral); box-shadow: 0 0 16px var(--coral); animation-delay: 0.3s; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-14px); } }
.stage[data-gf-state="loading"] .loader { display: flex; }
.stage[data-gf-state="loading"] .cover, .stage[data-gf-state="playing"] .cover { display: none; }
[data-gf-loading] { display: none; }
.stage[data-gf-state="loading"] [data-gf-loading] { display: flex; }
.game-actions { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 18px 0 6px; }
.score-share { margin: 14px auto 0; max-width: 640px; text-align: center; }
.score-share summary { cursor: pointer; font-weight: 800; color: var(--plum); }
.score-picks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; }
.score-picks button { min-width: 40px; min-height: 40px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); font-weight: 800; cursor: pointer; }
.score-picks button[aria-pressed="true"] { border-color: var(--plum); background: var(--plum); color: var(--card); }
.score-text { word-break: break-word; }
.action-btn { background: var(--card); color: var(--plum); border: 2px solid var(--plum); border-radius: 999px; padding: 9px 20px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.action-btn:hover { background: var(--bg); }
.action-btn[data-gf-liked] { background: var(--coral); border-color: var(--coral); color: var(--plum); }
.share-msg { color: var(--plum-2); font-size: 0.95rem; font-weight: 600; }
.source-note { color: var(--muted); font-size: 0.95rem; text-align: center; }
article.page, .hero + * { text-align: left; }
h2 { font-size: 1.6rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--plum); margin: 2.2em 0 0.6em; }
h3 { font-size: 1.2rem; color: var(--plum); margin: 1.6em 0 0.5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; background: var(--card); border-radius: 12px; overflow: hidden; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
th { background: var(--plum); color: var(--card); }
.orb-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 1em; }
.orb-card { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 14px; text-align: center; }
.orb-card .dot { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 8px; display: block; }
.orb-card .dot.teal { background: radial-gradient(circle at 35% 30%, var(--card), var(--teal) 65%); }
.orb-card .dot.gold { background: radial-gradient(circle at 35% 30%, var(--card), var(--gold) 65%); }
.orb-card .dot.coral { background: radial-gradient(circle at 35% 30%, var(--card), var(--coral) 65%); }
.orb-card .dot.violet { background: radial-gradient(circle at 35% 30%, var(--card), var(--violet) 65%); }
.orb-card b { display: block; color: var(--plum); }
.orb-card span { color: var(--muted); font-size: 0.92rem; }
.faq details { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 700; color: var(--plum); cursor: pointer; }
.faq details p { margin: 8px 0 4px; }
.page { max-width: 780px; margin: 0 auto; padding-top: 30px; }
.page h1 { font-size: 2.2rem; line-height: 1.2; color: var(--plum); letter-spacing: -0.02em; margin: 0 0 0.6em; }
.comments { max-width: 780px; margin: 0 auto; border-top: 4px solid var(--plum); padding-top: 10px; }
.comments h2 { margin-top: 0.8em; }
.comments-intro { color: var(--muted); }
.comment { border-top: 1px solid var(--line); padding: 14px 0; }
.comment.reply { margin-left: 28px; }
.comment-meta { font-size: 0.95rem; color: var(--muted); margin-bottom: 4px; }
.owner-badge { background: var(--gold); color: var(--plum); font-size: 0.75rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.reply-btn { background: none; border: 0; color: var(--plum-2); cursor: pointer; padding: 0; font-size: 0.95rem; font-weight: 700; }
form[data-gf-comment-form] { margin-top: 18px; }
form[data-gf-comment-form] label { display: block; font-weight: 700; margin-bottom: 12px; }
form[data-gf-comment-form] input, form[data-gf-comment-form] textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 2px solid var(--plum); border-radius: 12px; background: var(--card); font: inherit; }
form[data-gf-comment-form] button[type="submit"] { background: var(--plum); color: var(--card); border: 0; border-radius: 999px; padding: 11px 24px; font-size: 1rem; font-weight: 800; cursor: pointer; }
.install-btn { background: var(--plum); color: var(--card); border: 0; border-radius: 999px; padding: 11px 24px; font-size: 1rem; font-weight: 800; cursor: pointer; }
.install-btn:hover { filter: brightness(1.15); }
.foot-install { margin: 18px 0 0; }
.foot-install-ios { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }
form[data-gf-comment-form] button[data-gf-reply-cancel] { background: none; border: 2px solid var(--muted); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.site-footer { background: var(--plum); color: var(--line); margin-top: 44px; }
.site-footer .wrap { padding-top: 30px; padding-bottom: 30px; }
.foot-brand { font-size: 1.3rem; font-weight: 800; color: var(--card); margin: 0 0 4px; }
.foot-tag { color: var(--line); margin: 0 0 14px; }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-nav a { color: var(--line); }
.foot-copy { color: var(--line); font-size: 0.9rem; margin: 0; }
@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .stage { aspect-ratio: 3 / 4; min-height: 480px; }
  .cover-title { font-size: 1.5rem; }
  .orb-cards { grid-template-columns: repeat(2, 1fr); }
}

/* Narrow screens: explicit width breaks the aspect-ratio/min-height width expansion. */
.stage { width: 100%; max-width: 100%; min-width: 0; }
.cover-inner { width: 100%; min-width: 0; }
@media (max-width: 640px) {
  .site-header .wrap { gap: 6px 12px; padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 1.2rem; }
  .site-nav { gap: 12px; font-size: .94rem; }
  .site-nav a[href="/privacy"], .site-nav a[href="/terms"] { display: none; }
  .hero { padding-top: 18px; }
  .tagline { font-size: 1rem; line-height: 1.5; margin-bottom: 12px; }
  .today-line { font-size: .85rem; line-height: 1.4; margin-bottom: 12px; }
  .cover-inner { padding: 14px; }
  .cover-title { font-size: 1.4rem; }
  .cover-text { font-size: .95rem; line-height: 1.5; }
  .orb-meter { gap: 4px; max-width: 304px; margin-left: auto; margin-right: auto; }
  .orb-meter i { flex: 1 1 0; min-width: 0; width: auto; height: auto; aspect-ratio: 1; max-width: 18px; }
  .play-btn { max-width: 100%; padding: 14px 22px; font-size: 1.05rem; min-height: 48px; }
  .action-btn { min-height: 44px; padding: 9px 15px; }
}

.cover-game-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .22; padding: 14px; }
.cover-orbs { opacity: .35; }
.cover-inner { text-shadow: 0 1px 4px var(--text-shadow); }
.game-capture { margin: 24px auto; max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.game-capture img { display: block; width: 100%; height: auto; border-radius: 8px; }
.game-capture figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }

.guide-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.guide-nav a { padding: 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-weight: 650; text-decoration: none; }
.guide-nav a:hover, .guide-nav a:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
h2[id] { scroll-margin-top: 20px; }
main > p, main > ol, main > ul { max-width: 80ch; }

/* The screenshot is a readable preview, not text beneath other text. */
.cover-game-image { position: static; inset: auto; display: block; width: min(100%, 300px); height: auto; object-fit: contain; opacity: 1; padding: 0; margin: 0 auto 14px; border-radius: 8px; }
.page { min-width: 0; overflow-wrap: anywhere; }
.page table { table-layout: fixed; }
@media (max-width: 640px) {
  .cover .cover-text, .cover .orb-meter { display: none; }
  .cover-title { font-size: 1.3rem; }
  .page th, .page td { padding: 8px; }
}

@media (min-width: 641px) {
  .hero { padding-top: 20px; }
  .tagline { margin-bottom: 14px; }
  .today-line { margin-bottom: 12px; }
  .cover-inner { width: 62%; max-width: 640px; }
  .cover-game-image { width: 100%; max-width: 480px; height: auto; margin-bottom: clamp(14px, 1.6vw, 20px); }
  .play-btn { font-size: clamp(1.2rem, 1.8vw, 1.5rem); padding: clamp(16px, 1.6vw, 22px) clamp(38px, 4vw, 54px); }
  .cover-note { font-size: clamp(.92rem, 1.3vw, 1.08rem); }
  .cover .cover-text, .cover .orb-meter { margin-bottom: 12px; }
}

/* Guide and site links remain available from every page. */
.footer-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 20px 0; }
.foot-heading { color: var(--card); font-weight: 800; margin: 0 0 10px; }
.footer-groups .foot-nav { margin-bottom: 0; gap: 10px 18px; }
.breadcrumbs { font-size: 0.95rem; margin-bottom: 12px; }
@media (max-width: 620px) { .footer-groups { grid-template-columns: 1fr; gap: 22px; } }

/* Crawlable guide directory below the player. */
.guide-directory { margin: 24px 0 30px; padding: 20px; background: var(--card); border: 2px solid var(--line); border-radius: 20px; }
.guide-directory-title { font-size: 1.25rem; font-weight: 800; color: var(--plum); margin: 0 0 14px; }
.guide-directory ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.guide-directory li { min-width: 0; margin: 0; }
.guide-directory li a { display: block; height: 100%; padding: 14px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); text-decoration: none; }
.guide-directory strong { display: block; font-size: 1rem; }
.guide-directory span { display: block; margin-top: 6px; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.guide-directory a:hover, .guide-directory a:focus-visible { outline: 2px solid var(--plum-2); outline-offset: 2px; }
.guide-directory-more { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 16px 0 0; font-size: .95rem; }
.hint-step { margin: 12px 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.hint-step summary { font-weight: 700; color: var(--plum); cursor: pointer; min-height: 30px; }
.hint-step p { margin: 12px 0 0; }
.date-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 20px 0; }
@media (max-width: 820px) { .guide-directory ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .guide-directory ul { grid-template-columns: 1fr; } .guide-directory { padding: 15px; } }

/* Related playable games stay on this site. */
.related-play { margin: 24px 0; }
.related-play h2 { margin-bottom: 12px; }
.game-list { display: grid; gap: 18px; margin: 24px 0; }
.game-link-card { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); text-decoration: none; }
.game-link-card > img { width: 160px; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.game-link-card > span { min-width: 0; }
.game-link-card strong { display: block; font-size: 1.2rem; }
.game-link-card span span { display: block; color: var(--muted); }
.game-link-card .card-action { color: var(--plum-2); font-weight: 700; margin-top: 8px; }
.game-link-card:hover, .game-link-card:focus-visible { outline: 2px solid var(--plum-2); outline-offset: 2px; }
.game-guide { padding-top: 10px; }

/* Today's four puzzles, shown above the player. */
.today-cards { margin: 6px 0 18px; }
.today-title { font-size: 1.15rem; line-height: 1.3; margin: 0 0 10px; text-align: center; }
.today-title span { color: var(--muted); font-weight: 600; }
.today-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.today-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 12px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; line-height: 1.4; }
.today-name { font-size: 1rem; color: var(--plum); }
.today-blurb { flex: 1; font-size: .88rem; color: var(--muted); }
.today-links { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .9rem; }
.today-links a { font-weight: 700; }
.today-play { min-height: 32px; padding: 5px 14px; background: var(--plum); color: var(--card); border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.today-play:hover, .today-play:focus-visible { background: var(--plum-2); }
@media (max-width: 820px) { .today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .today-card { padding: 10px; } .today-blurb { font-size: .82rem; } }
@media (max-width: 340px) { .today-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .game-link-card { grid-template-columns: minmax(0,1fr); gap: 12px; } .game-link-card > img { width: 100%; max-width: 320px; } }
