/* 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: #241a3a;
  --muted: #5f5680;
  --line: #ddd3f5;
  --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%, #5a3fb8 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: #fff; 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: #e4dcff; text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: #fff; 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; }
.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 rgba(36, 26, 78, 0.28); }
.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%, #4a2f9e 0%, var(--plum) 55%, #160f33 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%, #7ef0e8, var(--teal) 65%); box-shadow: 0 0 34px rgba(14, 165, 160, 0.8); }
.cover-orbs i:nth-child(2) { width: 64px; height: 64px; right: 12%; top: 18%; background: radial-gradient(circle at 35% 30%, #ffe08a, var(--gold) 65%); box-shadow: 0 0 30px rgba(242, 183, 5, 0.8); 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%, #ffb3b3, var(--coral) 65%); box-shadow: 0 0 36px rgba(255, 107, 107, 0.8); 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%, #c9b8ff, var(--violet) 65%); box-shadow: 0 0 28px rgba(124, 92, 255, 0.8); 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%, #fff, #b9a8ff 65%); box-shadow: 0 0 20px rgba(255, 255, 255, 0.7); 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: #fff; font-size: 1.9rem; font-weight: 800; line-height: 1.2; margin: 0 0 8px; }
.cover-text { color: #d9d0ff; 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 rgba(255, 255, 255, 0.55); 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(--violet), var(--teal)); color: #fff; border: 0; border-radius: 999px; padding: 16px 38px; font-size: 1.2rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 26px rgba(124, 92, 255, 0.55); }
.play-btn:hover { filter: brightness(1.08); }
.play-btn:active { transform: translateY(2px); }
.cover-note { color: #cfc4f5; 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: #fff; }
.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; }
.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: #efe8ff; }
.action-btn[data-gf-liked] { background: var(--coral); border-color: var(--coral); color: #fff; }
.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: #fff; }
.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%, #7ef0e8, var(--teal) 65%); }
.orb-card .dot.gold { background: radial-gradient(circle at 35% 30%, #ffe08a, var(--gold) 65%); }
.orb-card .dot.coral { background: radial-gradient(circle at 35% 30%, #ffb3b3, var(--coral) 65%); }
.orb-card .dot.violet { background: radial-gradient(circle at 35% 30%, #c9b8ff, 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: #fff; font: inherit; }
form[data-gf-comment-form] button[type="submit"] { background: var(--plum); color: #fff; border: 0; border-radius: 999px; padding: 11px 24px; font-size: 1rem; font-weight: 800; cursor: pointer; }
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: #d9d0ff; margin-top: 44px; }
.site-footer .wrap { padding-top: 30px; padding-bottom: 30px; }
.foot-brand { font-size: 1.3rem; font-weight: 800; color: #fff; margin: 0 0 4px; }
.foot-tag { color: #a99bd9; margin: 0 0 14px; }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-nav a { color: #d9d0ff; }
.foot-copy { color: #a99bd9; 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 rgba(0,0,0,.6); }
.game-capture { margin: 24px auto; max-width: 760px; background: #fff; 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: #fff; 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-game-image { max-width: 240px; }
  .cover .cover-text, .cover .orb-meter { margin-bottom: 12px; }
}
