/* © 2026 TTLottoStats.com */
:root{
  --bg:#0a0f1e;--surface:#111827;--card:#161f30;--border:#1e2d45;
  --gold:#f5c542;--gold-dim:#b8902e;--danger:#ff6b4a;
  --green:#34d399;--text:#e2e8f0;--muted:#64748b;--radius:10px;
  --purple:#a78bfa;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{background:var(--bg);color:var(--text);font-family:'Space Grotesk',sans-serif;font-size:16px;min-height:100vh;padding:0 0 60px;}

/* NAV */
.site-nav{background:#070c19;border-bottom:1px solid var(--border);padding:10px 20px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;position:sticky;top:0;z-index:100;}
.nav-brand{font-family:'Space Mono',monospace;font-size:13px;font-weight:700;color:var(--gold);text-decoration:none;}
.nav-links{display:flex;gap:5px;flex-wrap:wrap;}
.nav-link{font-size:13px;color:var(--muted);text-decoration:none;padding:5px 10px;border-radius:20px;border:1px solid transparent;transition:all .15s;}
.nav-link:hover{color:var(--text);border-color:var(--border);}
.nav-link.active{color:var(--gold);border-color:var(--gold-dim);}

/* HEADER */
header{background:linear-gradient(135deg,#0a0f1e,#0f1e3a);border-bottom:1px solid var(--border);padding:28px 20px 20px;text-align:center;position:relative;overflow:hidden;}
header::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 60% 80% at 50% -10%,rgba(167,139,250,.12) 0%,transparent 70%);pointer-events:none;}
.header-eyebrow{font-family:'Space Mono',monospace;font-size:12px;letter-spacing:3px;color:var(--purple);text-transform:uppercase;margin-bottom:8px;}
header h1{font-size:clamp(22px,5vw,34px);font-weight:700;color:#fff;letter-spacing:-.5px;}
header h1 span{color:var(--purple);}
.header-sub{margin-top:6px;font-size:15px;color:var(--muted);}

/* LOCAL PLAY WHE NAV */
.playwhe-local-nav{
  max-width:960px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  flex-wrap:wrap;
  background:var(--surface);
  border-bottom:1px solid var(--border);
}
.playwhe-local-nav-link{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border:1px solid transparent;
  border-radius:8px;
  color:#f1f5f9;
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  text-decoration:none;
  transition:color .15s ease,background-color .15s ease,border-color .15s ease;
}
.playwhe-local-nav-link:hover,
.playwhe-local-nav-link:focus-visible{
  color:var(--gold);
  background:rgba(245,197,66,.08);
  border-color:var(--gold-dim);
}
.playwhe-local-nav-link:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:2px;
}
.playwhe-local-nav-link.is-active{
  color:var(--gold);
  border-color:var(--gold-dim);
  background:rgba(245,197,66,.08);
}
.playwhe-local-nav-link.is-unavailable{
  color:#94a3b8;
  cursor:not-allowed;
  opacity:.72;
}

@media (max-width:520px){
  .playwhe-local-nav{justify-content:stretch;}
  .playwhe-local-nav-link{flex:1 1 120px;}
}

/* CONTAINER */
.container{max-width:960px;margin:0 auto;padding:0 16px;}

/* AD SLOT */
.ad-slot{background:var(--card);border:1px dashed var(--border);border-radius:var(--radius);padding:12px;text-align:center;margin:16px 0;min-height:90px;display:flex;align-items:center;justify-content:center;}
.ad-slot ins{display:block;width:100%;}



/* CONTROLS */
.controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 0 4px;}
.btn{background:var(--gold);color:#0a0f1e;border:none;padding:10px 22px;border-radius:var(--radius);font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:15px;cursor:pointer;transition:opacity .15s;}
.btn:hover{opacity:.85;}
.btn:disabled{opacity:.4;cursor:not-allowed;}
.btn-outline{background:transparent;border:1px solid var(--gold);color:var(--gold);}
.btn-purple{background:var(--purple);color:#fff;}

/* Dream Lookup uses one consistent outlined treatment for both controls. */
.dream-search .btn-purple{
  background:transparent;
  border:1px solid var(--gold);
  color:var(--gold);
}

/* STATUS */
#statusBar{font-family:'Space Mono',monospace;font-size:13px;color:var(--muted);padding:8px 0 14px;min-height:28px;}
#statusBar.loading{color:var(--gold);}
#statusBar.error{color:var(--danger);}
#statusBar.ok{color:var(--green);}

/* SECTION TITLE */
.section-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:30px 0 15px;
  color:var(--muted);
  font-size:15px;
  line-height:1.35;
  letter-spacing:2px;
  text-transform:uppercase;
}
.section-title::after{content:'';flex:1;height:1px;background:var(--border);}

/* ANALYSIS TABS */
.tabs{
  display:flex;
  align-items:stretch;
  flex-wrap:wrap;
  gap:4px;
  margin-bottom:16px;
  padding:4px;
  background:#0d1628;
  border:1px solid var(--border);
  border-radius:12px;
}
.tab{
  flex:1 1 120px;
  min-width:100px;
  padding:10px 12px;
  background:transparent;
  border:1px solid transparent;
  border-radius:8px;
  color:#cbd5e1;
  font:600 14px/1.25 'Space Grotesk',sans-serif;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}
.tab:hover{
  background:rgba(255,255,255,.045);
  color:var(--text);
}
.tab:focus-visible{
  outline:2px solid var(--purple);
  outline-offset:2px;
}
.tab.active{
  background:linear-gradient(180deg,rgba(245,197,66,.16),rgba(245,197,66,.06));
  border-color:rgba(245,197,66,.45);
  color:var(--gold);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

/* STAT CARDS */
.stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-bottom:6px;}
.stat-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;text-align:center;}
.stat-icon{font-size:22px;margin-bottom:6px;}

/* TODAY'S DRAWS */
.today-draws-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;}
@media(max-width:500px){.today-draws-row{grid-template-columns:repeat(2,1fr);}}
.today-draw-card{
  padding:19px 15px;
  background:linear-gradient(135deg,var(--card),#0f1e38);
  border:1px solid var(--border);
  border-radius:var(--radius);
  text-align:center;
}
.today-draw-card.has-result{border-color:rgba(167,139,250,.35);}
.today-draw-card.is-next{border-color:var(--green);box-shadow:0 0 12px rgba(52,211,153,.2);position:relative;}
.today-draw-card.is-next .today-draw-time{color:var(--green);}
.next-badge{
  position:absolute;
  top:8px;
  right:8px;
  padding:4px 9px;
  background:var(--green);
  border-radius:20px;
  color:#0a0f1e;
  font-size:12px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
}
.today-draw-ball.next-ball{background:radial-gradient(circle at 35% 35%,#34d399,#059669);animation:pulse 2s infinite;}
.today-draw-balls{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;min-height:111px;margin:0 auto 8px;}
.today-draw-balls .today-draw-ball{margin:0;}
.play-whe-promo-balls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;max-width:100%;min-height:38px;}
.play-whe-promo-ball{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ff7b7b 0%,#dc2626 48%,#991b1b 100%);border:2px solid #b91c1c;box-shadow:inset 0 2px 1px rgba(255,255,255,.28),0 3px 8px rgba(127,29,29,.35);color:#fff;font:800 13px/1 Arial,sans-serif;letter-spacing:0;text-shadow:0 1px 2px rgba(0,0,0,.75);}
.today-draw-time{
  margin-bottom:10px;
  color:#dbe4f0;
  font-family:'Space Mono',monospace;
  font-size:15px;
  line-height:1.4;
  letter-spacing:1px;
  text-transform:uppercase;
}
.today-draw-ball{
  width:62px;
  height:62px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 8px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#a78bfa,#7c3aed);
  color:#fff;
  font-family:'Space Mono',monospace;
  font-size:25px;
  font-weight:700;
}
.today-draw-ball.pending{background:var(--surface);border:2px dashed var(--border);}
.today-draw-mark{
  color:#e8eef7;
  font-size:16px;
  font-style:italic;
  line-height:1.4;
}
.today-draw-mark.pending{color:var(--border);}
.stat-card .val{
  color:var(--gold);
  font-family:'Space Mono',monospace;
  font-size:29px;
  font-weight:700;
  line-height:1;
}
.stat-card .mark-name{
  margin-top:3px;
  color:var(--purple);
  font-size:15px;
  font-style:italic;
  line-height:1.4;
}
.stat-card .lbl{
  margin-top:4px;
  color:#cbd5e1;
  font-size:15px;
  line-height:1.4;
  letter-spacing:1px;
  text-transform:uppercase;
}




/* ==========================================================
   VERSION 2 — MARK RESEARCH CARDS
   Objective historical analysis only.
   ========================================================== */

.mark-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.mark-card{
  min-width:0;
  min-height:100%;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
  padding:0;
  background:
    linear-gradient(180deg,rgba(255,255,255,.018),transparent 32%),
    #131e31;
  border:1px solid #263955;
  border-radius:14px;
  cursor:pointer;
  text-align:left;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.mark-card:hover{
  transform:translateY(-3px);
  border-color:rgba(155,114,255,.72);
  background:
    linear-gradient(180deg,rgba(155,114,255,.055),transparent 34%),
    #162238;
  box-shadow:0 16px 38px rgba(0,0,0,.22);
}

.mark-card:focus-visible{
  outline:2px solid var(--purple);
  outline-offset:3px;
}

.mark-card.has-unusual-gap{
  border-color:rgba(245,197,66,.78);
}

.mark-card.has-unusual-gap:hover{
  border-color:var(--gold);
}

.mark-card-header{
  display:flex;
  line-height:1.5;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:17px 17px 14px;
  border-bottom:1px solid rgba(255,255,255,.065);
}

.mark-identity{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
}

.mark-number{
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(155,114,255,.1);
  border:1px solid rgba(155,114,255,.3);
  color:#c4adff;
  font-family:'Space Mono',monospace;
  font-size:25px;
  font-weight:700;
  line-height:1;
}

.mark-heading .m-name{
  color:var(--text);
  font-size:15px;
  font-weight:700;
  line-height:1.22;
  white-space:normal;
  overflow:visible;
  overflow-wrap:anywhere;
  text-overflow:clip;
}

.mark-heading .m-classification{
  margin-top:5px;
  color:var(--muted);
  font-family:'Space Mono',monospace;
  font-size:10px;
  letter-spacing:1.1px;
  line-height:1.2;
  text-transform:uppercase;
}

.mark-status-icon{
  flex:0 0 auto;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.08);
  color:var(--muted);
  font-size:12px;
}

.mark-card.has-unusual-gap .mark-status-icon{
  color:var(--gold);
  background:rgba(245,197,66,.08);
  border-color:rgba(245,197,66,.28);
}

.mark-card-body{
  display:flex;
  line-height:1.5;
  flex:1;
  flex-direction:column;
  padding:15px 17px 16px;
}

.mark-primary-metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.mark-metric{
  min-width:0;
  padding:10px 11px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.065);
  border-radius:9px;
}

.mark-metric-label{
  display:block;
  margin-bottom:5px;
  color:var(--muted);
  font-size:10px;
  font-weight:600;
  letter-spacing:.8px;
  line-height:1.2;
  text-transform:uppercase;
}

.mark-metric-value{
  display:block;
  color:var(--text);
  font-family:'Space Mono',monospace;
  font-size:17px;
  font-weight:700;
  line-height:1.1;
}

.mark-evidence{
  margin-top:12px;
  padding:11px 12px;
  border-left:2px solid rgba(155,114,255,.72);
  border-radius:0 8px 8px 0;
  background:rgba(155,114,255,.045);
}

.mark-card.has-unusual-gap .mark-evidence{
  border-left-color:var(--gold);
  background:rgba(245,197,66,.045);
}

.mark-evidence-label{
  margin-bottom:4px;
  color:var(--muted);
  font-family:'Space Mono',monospace;
  font-size:9px;
  letter-spacing:1.1px;
  text-transform:uppercase;
}

.mark-evidence-text{
  color:#ccd6e5;
  font-size:12px;
  font-weight:600;
  line-height:1.4;
}

.mark-last-seen{
  margin-top:12px;
  padding-top:11px;
  border-top:1px solid rgba(255,255,255,.055);
}

.mark-last-seen-label{
  margin-bottom:4px;
  color:var(--muted);
  font-size:10px;
  font-weight:600;
  letter-spacing:.8px;
  text-transform:uppercase;
}

.mark-last-seen-value{
  color:#aebbcf;
  font-size:11px;
  line-height:1.45;
}

.mark-card-footer{
  display:flex;
  line-height:1.5;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:auto;
  padding-top:12px;
  color:var(--muted);
  font-size:10px;
}

.mark-related{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.mark-open-report{
  flex:0 0 auto;
  color:#9b72ff;
  font-weight:600;
}

/* ==========================================================
   SHELF MARKS — longest current absences
   ========================================================== */

.shelf-intro{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.shelf-intro p{
  margin:0;
  color:var(--text);
  font-size:15px;
  font-weight:600;
}

.shelf-intro span{
  color:var(--muted);
  font-family:'Space Mono',monospace;
  font-size:10px;
  letter-spacing:.7px;
  text-transform:uppercase;
}

.shelf-surface{
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(255,255,255,.025),transparent 24%),
    #111c2e;
  border:1px solid #2a3d5b;
  border-radius:15px;
  box-shadow:0 12px 34px rgba(0,0,0,.16);
}

.shelf-table{
  width:100%;
}

.shelf-head,
.shelf-row{
  display:grid;
  grid-template-columns:minmax(150px,1.7fr) minmax(90px,1fr) minmax(68px,.75fr) minmax(78px,.85fr);
  align-items:center;
  column-gap:12px;
}

.shelf-head{
  padding:11px 16px;
  background:rgba(255,255,255,.035);
  border-bottom:1px solid rgba(255,255,255,.09);
  color:#dbe4f0;
  font-family:'Space Mono',monospace;
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  line-height:1.2;
  text-transform:uppercase;
}

.shelf-head span:not(:first-child),
.shelf-date,
.shelf-days,
.shelf-draws{
  text-align:right;
}

.shelf-body{
  display:flex;
  flex-direction:column;
}

.shelf-row{
  width:100%;
  padding:11px 16px;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.065);
  color:var(--text);
  font:inherit;
  text-align:left;
  cursor:pointer;
  transition:background .16s ease, box-shadow .16s ease;
}

.shelf-row:last-child{
  border-bottom:0;
}

.shelf-row:hover,
.shelf-row:focus-visible{
  background:rgba(155,114,255,.075);
}

.shelf-row:focus-visible{
  outline:2px solid var(--purple);
  outline-offset:-2px;
}

.shelf-mark{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}

.shelf-ball{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:50%;
  font-size:15px;
}

.shelf-mark-name{
  min-width:0;
  overflow:hidden;
  font-size:15px;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.shelf-date,
.shelf-days,
.shelf-draws{
  font-family:'Space Mono',monospace;
  font-size:14px;
}

.shelf-date,
.shelf-days{
  color:#c3cedd;
}

.shelf-draws{
  color:#f2f5fb;
  font-size:17px;
  font-weight:700;
}

/* ==========================================================
   VERSION 2 — MARK RESEARCH REPORT
   ========================================================== */

.mark-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:200;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(3,8,17,.82);
  backdrop-filter:blur(8px);
  animation:modalBackdropIn .18s ease;
}

.mark-report{
  position:relative;
  width:min(920px,100%);
  max-height:min(880px,92vh);
  overflow-y:auto;
  background:#111b2d;
  border:1px solid #2a3d59;
  border-radius:18px;
  box-shadow:0 30px 90px rgba(0,0,0,.5);
  animation:reportIn .22s ease;
}

.mark-report-close{
  position:sticky;
  top:12px;
  z-index:5;
  float:right;
  width:36px;
  height:36px;
  margin:12px 12px -48px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.1);
  border-radius:50%;
  background:#18253a;
  color:var(--muted);
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.mark-report-close:hover{
  color:var(--text);
  border-color:rgba(155,114,255,.6);
}

.mark-report-nav {
  position: sticky;
  top: 12px;
  z-index: 5;
  margin: 12px 0 -48px 16px;
  height: 36px;
  pointer-events: none;
}

.mark-report-back {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: #18253a;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  pointer-events: auto;
}

.mark-report-back:hover:not(:disabled) {
  border-color: rgba(155,114,255,.6);
  background: #223451;
}

.mark-report-back:focus-visible,
.report-related-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.mark-report-back:disabled {
  opacity: .42;
  cursor: default;
}

.report-hero{
  display:flex;
  align-items:center;
  gap:18px;
  padding:25px 68px 22px 24px;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(circle at top left,rgba(155,114,255,.11),transparent 42%),
    #131f33;
}

.report-number{
  width:70px;
  height:70px;
  flex:0 0 70px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:17px;
  background:rgba(155,114,255,.12);
  border:1px solid rgba(155,114,255,.35);
  color:#c7b2ff;
  font-family:'Space Mono',monospace;
  font-size:28px;
  font-weight:700;
}

.report-eyebrow{
  color:var(--purple);
  font-family:'Space Mono',monospace;
  font-size:10px;
  letter-spacing:1.5px;
  text-transform:uppercase;
}

.report-title{
  margin-top:5px;
  color:var(--text);
  font-size:25px;
  font-weight:700;
  line-height:1.15;
}

.report-subtitle{
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.report-content{
  padding:22px 24px 26px;
}

.report-section{
  margin-top:22px;
}

.report-section:first-child{
  margin-top:0;
}

.report-section-title{
  margin-bottom:10px;
  color:#91a0b5;
  font-family:'Space Mono',monospace;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.45px;
  text-transform:uppercase;
}

.report-metric-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}

.report-metric{
  min-width:0;
  padding:13px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
}

.report-metric-label{
  color:var(--muted);
  font-size:10px;
  font-weight:600;
  line-height:1.25;
  text-transform:uppercase;
}

.report-metric-value{
  margin-top:7px;
  color:var(--text);
  font-family:'Space Mono',monospace;
  font-size:20px;
  font-weight:700;
  line-height:1.1;
}

.report-panel{
  padding:14px 15px;
  background:rgba(255,255,255,.022);
  border:1px solid rgba(255,255,255,.065);
  border-radius:10px;
}

.report-evidence{
  border-left:3px solid var(--purple);
}

.report-evidence.unusual{
  border-left-color:var(--gold);
  background:rgba(245,197,66,.04);
}

.report-evidence strong{
  display:block;
  margin-bottom:5px;
  color:var(--text);
  font-size:14px;
}

.report-evidence p{
  margin:0;
  color:#aebbcf;
  font-size:13px;
  line-height:1.55;
}

.report-related-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}

.report-related-card{
  padding:12px 14px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.065);
  border-radius:9px;
}

.report-related-card span{
  display:block;
  color:var(--muted);
  font-size:9px;
  letter-spacing:1px;
  text-transform:uppercase;
}

.report-related-card strong{
  display:block;
  margin-top:5px;
  color:var(--text);
  font-size:13px;
}

.report-associations{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.report-association{
  padding:5px 9px;
  background:rgba(155,114,255,.07);
  border:1px solid rgba(155,114,255,.18);
  border-radius:20px;
  color:#bca9e8;
  font-size:11px;
}

.report-timeline{
  display:grid;
  gap:8px;
}

.report-timeline-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  background:rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.055);
  border-radius:8px;
}

.report-timeline-item strong{
  color:var(--text);
  font-family:'Space Mono',monospace;
  font-size:12px;
}

.report-timeline-item span{
  color:var(--muted);
  font-size:11px;
  text-align:right;
}

@keyframes modalBackdropIn{
  from{opacity:0}
  to{opacity:1}
}

@keyframes reportIn{
  from{
    opacity:0;
    transform:translateY(12px) scale(.985);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@media(max-width:1100px){
  .mark-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

}

@media(max-width:760px){
  .mark-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .report-metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:520px){
  .tabs{
    gap:3px;
    padding:3px;
  }

  .tab{
    flex:1 1 110px;
    padding:9px 6px;
    font-size:12px;
  }

  .recent-day-header{
    padding:11px 12px 9px;
  }

  .recent-day-caption{
    font-size:9px;
  }

  .recent-weekday{
    font-size:14px;
  }

  .recent-date{
    font-size:15px;
  }

  .recent-results{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .recent-result{
    padding:10px 6px 11px;
    border-bottom:1px solid rgba(255,255,255,.06);
  }

  .recent-time{
    font-size:12px;
  }

  .recent-result:nth-child(even){
    border-right:0;
  }

  .recent-result:nth-last-child(-n+2){
    border-bottom:0;
  }

  .shelf-intro{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }

  .shelf-head,
  .shelf-row{
    grid-template-columns:minmax(98px,1.45fr) minmax(52px,.9fr) minmax(47px,.7fr) minmax(55px,.8fr);
    column-gap:6px;
  }

  .shelf-head{
    padding:10px;
    font-size:8px;
    letter-spacing:.55px;
  }

  .shelf-row{
    padding:10px;
  }

  .shelf-mark{
    gap:7px;
  }

  .shelf-ball{
    width:30px;
    height:30px;
    flex-basis:30px;
    font-size:13px;
  }

  .shelf-mark-name,
  .shelf-date,
  .shelf-days,
  .shelf-draws{
    font-size:12px;
  }

  .shelf-draws{
    font-size:15px;
  }

  .mark-grid{
    grid-template-columns:1fr;
  }

  .mark-card{
    min-height:0;
  }

  .mark-primary-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .mark-modal{
    padding:8px;
  }

  .mark-report{
    max-height:96vh;
    border-radius:14px;
  }

  .report-hero{
    align-items:flex-start;
    padding:20px 52px 18px 16px;
  }

  .report-number{
    width:54px;
    height:54px;
    flex-basis:54px;
    font-size:22px;
  }

  .report-title{
    font-size:20px;
  }

  .report-content{
    padding:18px 16px 22px;
  }

  .report-related-grid{
    grid-template-columns:1fr;
  }
}


/* DREAM LOOKUP */
.dream-box{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;}
.dream-search{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap;}
.dream-search input{flex:1;min-width:200px;background:var(--surface);border:1px solid var(--border);color:var(--text);padding:10px 16px;border-radius:var(--radius);font-family:'Space Grotesk',sans-serif;font-size:16px;}
.dream-search input:focus{outline:none;border-color:var(--purple);}
.dream-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px;}
.dream-result-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;}
.drc-header{display:flex;align-items:center;gap:12px;margin-bottom:10px;}
.drc-num{font-family:'Space Mono',monospace;font-size:32px;font-weight:700;}
.drc-title{font-size:16px;font-weight:700;color:var(--text);}
.drc-subtitle{font-size:13px;color:var(--purple);font-style:italic;margin-top:2px;}
.drc-associations{font-size:14px;color:var(--muted);line-height:1.6;margin-bottom:10px;}
.drc-stats{display:flex;gap:8px;flex-wrap:wrap;}
.drc-stat{background:var(--card);border:1px solid var(--border);border-radius:6px;padding:4px 10px;font-size:13px;font-family:'Space Mono',monospace;}


/* UNDER TODAY TABLE */
.under-wrap{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:16px;overflow-x:auto;}
.under-table{width:100%;border-collapse:collapse;font-size:14px;margin-bottom:4px;}
.under-table th{font-family:'Space Mono',monospace;font-size:13px;letter-spacing:1.5px;text-transform:uppercase;color:#dbe4f0;padding:8px 10px;text-align:center;border-bottom:1px solid var(--border);}
.under-table th:first-child{text-align:left;}
.under-table td{padding:9px 10px;border-bottom:1px solid rgba(30,45,69,.6);text-align:center;font-family:'Space Mono',monospace;}
.under-table td:first-child{text-align:left;color:#e8eef7;font-size:13px;}
.under-table tr.today-row td{color:var(--gold);font-weight:700;}
.under-table tr.today-row td:first-child{color:var(--gold);}
.under-ball{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
  border:2px solid #e2ad00;
  border-radius:50%;
  background:#ffd21f;
  color:#171717;
  font-size:16px;
  font-weight:700;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 3px 8px rgba(133,93,0,.24);
}
.under-mark{font-size:12px;color:var(--purple);display:block;font-style:italic;margin-top:2px;}
.under-na{color:var(--border);}
.under-note{font-size:13px;color:var(--muted);margin-top:10px;}

/* RECENT DRAWS */
.recent-groups{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.recent-day-group{
  overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.02),transparent 30%),var(--card);
  border:1px solid var(--border);
  border-radius:12px;
}
.recent-day-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 15px 10px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.recent-weekday{
  color:#ffffff;
  font:700 15px/1.2 'Space Mono',monospace;
  letter-spacing:1.4px;
  text-transform:uppercase;
}
.recent-date{
  margin-top:3px;
  color:#e8eef7;
  font-size:16px;
  font-weight:600;
}
.recent-day-caption{
  color:var(--muted);
  font:10px/1.2 'Space Mono',monospace;
  letter-spacing:.7px;
  text-transform:uppercase;
}
.recent-results{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.recent-result{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  padding:11px 8px 13px;
  border-right:1px solid rgba(255,255,255,.06);
}
.recent-result:last-child{
  border-right:0;
}
.recent-time{
  color:#dbe4f0;
  font:600 13px/1.2 'Space Mono',monospace;
}
.recent-ball.under-ball{
  width:38px;
  height:38px;
  margin:0;
  font-size:15px;
}
.recent-balls{min-height:38px;display:flex;align-items:center;justify-content:center;gap:5px;}
.recent-balls .recent-ball.under-ball{flex:0 0 38px;}
.recent-balls .play-whe-promo-ball{width:29px;height:29px;flex-basis:29px;font-size:10px;}
.recent-mark-name{
  min-height:15px;
  max-width:100%;
  overflow:hidden;
  color:var(--muted);
  font-size:11px;
  line-height:1.2;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.recent-pending{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px dashed var(--border);
  border-radius:50%;
  color:var(--muted);
  font:16px/1 'Space Mono',monospace;
}
.recent-pending.is-unavailable{
  width:auto;
  min-width:38px;
  padding:0 5px;
  border-radius:6px;
  font-size:10px;
}
.recent-result.is-missing .recent-time{
  color:#52627a;
}

/* LEGEND */
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-bottom:10px;}
.legend span{display:flex;align-items:center;gap:5px;}
.dot{width:8px;height:8px;border-radius:50%;}

/* SPINNER */
.spinner{display:inline-block;width:14px;height:14px;border:2px solid var(--border);border-top-color:var(--gold);border-radius:50%;animation:spin .7s linear infinite;vertical-align:middle;margin-right:6px;}
@keyframes spin{to{transform:rotate(360deg);}}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(52,211,153,.4);}50%{box-shadow:0 0 0 8px rgba(52,211,153,0);}}

/* SHARE */
.share-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:14px 0 4px;border-top:1px solid var(--border);margin-top:16px;}
.share-label{font-size:13px;color:var(--muted);letter-spacing:1px;text-transform:uppercase;}
.share-btn{display:inline-flex;align-items:center;gap:5px;padding:7px 16px;border-radius:20px;font-size:14px;font-weight:600;text-decoration:none;border:1px solid;transition:opacity .15s;cursor:pointer;font-family:'Space Grotesk',sans-serif;background:transparent;}
.share-btn:hover{opacity:.8;}
.share-fb{background:#1877f2;border-color:#1877f2;color:#fff;}
.share-wa{background:#25d366;border-color:#25d366;color:#fff;}
.share-tw{background:#000;border-color:#333;color:#fff;}
.share-copy{border-color:var(--border);color:var(--muted);}

/* FOOTER */
.site-footer{background:#070c19;border-top:1px solid var(--border);padding:28px 20px;margin-top:40px;}
.footer-inner{max-width:960px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px;margin-bottom:20px;}
.footer-col h4{font-size:13px;letter-spacing:2px;text-transform:uppercase;color:var(--gold);margin-bottom:10px;}
.footer-col p,.footer-col a{font-size:14px;color:var(--muted);line-height:1.7;display:block;text-decoration:none;}
.footer-col a:hover{color:var(--text);}
.footer-bottom{max-width:960px;margin:0 auto;padding-top:16px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;font-size:13px;color:var(--muted);}
.rg-badge{display:inline-flex;align-items:center;gap:5px;background:rgba(255,107,74,.1);border:1px solid rgba(255,107,74,.3);border-radius:20px;padding:3px 10px;font-size:12px;color:var(--danger);font-weight:600;}


/* VERSION 2 — DREAM LOOKUP EVIDENCE */

.dream-result-card{
  cursor:pointer;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease;
}

.dream-result-card:hover{
  transform:translateY(-2px);
  border-color:rgba(155,114,255,.62);
  background:#172238;
}

.dream-result-card:focus-visible{
  outline:2px solid var(--purple);
  outline-offset:3px;
}

.dream-result-card.has-unusual-gap{
  border-color:rgba(245,197,66,.7);
}

.drc-num{
  color:#c4adff;
}

/* Dream result number ball: give the glyph a real, centered box. */
.dream-result-card .drc-num {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 2px;
  border: 2px solid rgba(255,220,92,.8);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
}

.dream-evidence{
  margin-top:11px;
  padding:9px 10px;
  border-left:2px solid rgba(155,114,255,.7);
  border-radius:0 7px 7px 0;
  background:rgba(155,114,255,.045);
  color:#b8c4d5;
  font-size:11px;
  font-weight:600;
  line-height:1.4;
}

.dream-result-card.has-unusual-gap .dream-evidence{
  border-left-color:var(--gold);
  background:rgba(245,197,66,.045);
  color:#dfca7d;
}

@media (max-width: 520px) {
  .dream-result-card .drc-num {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 26px;
  }
}

/* VERSION 2 — UNDER TODAY RESULTS */

.under-result{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  padding:4px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
}

.under-result:hover{
  background:rgba(155,114,255,.08);
}

.under-result:focus-visible{
  outline:2px solid var(--purple);
  outline-offset:2px;
}

/* VERSION 2 — PLAY WHE BALL AND NAME REFINEMENTS */

.mark-heading{
  flex:1;
  min-width:0;
}

.mark-number,
.report-number,
.drc-num{
  color:#17120a;
  background:
    radial-gradient(
      circle at 34% 28%,
      #fff5a8 0%,
      #f8d84a 32%,
      #e2ae16 70%,
      #a96f00 100%
    );
  border-color:rgba(255,220,92,.8);
  text-shadow:0 1px 0 rgba(255,255,255,.38);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.65),
    inset 0 -4px 7px rgba(122,72,0,.24),
    0 4px 12px rgba(0,0,0,.25);
}

.mark-card.has-unusual-gap .mark-number{
  border-color:#ffe37b;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.7),
    inset 0 -4px 7px rgba(122,72,0,.24),
    0 0 0 2px rgba(245,197,66,.2),
    0 4px 12px rgba(0,0,0,.25);
}

@media(max-width:1200px) and (min-width:761px){
  .mark-heading .m-name{
    font-size:14px;
  }
}


.under-result:hover .under-ball,
.under-result:focus-visible .under-ball {
  background: #ffe15c !important;
  border-color: #c99500 !important;
  transform: translateY(-1px);
}

/* =========================================================
   Version 2 — Readability and accessibility typography pass
   ========================================================= */

/* General supporting text */
.header-sub,
#statusBar,
.legend,
.share-label,
.footer-bottom,
.rg-badge {
  font-size: 15px;
  line-height: 1.55;
}

/* Main controls */
.btn,
.share-btn,
.tab-btn {
  font-size: 16px;
  line-height: 1.25;
}

.btn {
  padding: 12px 24px;
}

.mark-name,
.mark-card .mark-name {
  font-size: 18px;
  line-height: 1.25;
}

.mark-status,
.mark-status-label,
.mark-frequency-label,
.mark-gap-label,
.mark-card-footer,
.mark-card-footer span {
  font-size: 13px;
  line-height: 1.45;
}

.mark-frequency,
.mark-gap,
.mark-stat-value {
  font-size: 19px;
}

.mark-evidence,
.m-statline,
.m-last-seen,
.stat-evidence {
  font-size: 14px;
  line-height: 1.55;
}

/* Under Today */
.under-wrap {
  padding: 20px;
}

.under-table {
  font-size: 16px;
}

.under-table th {
  font-size: 15px;
  line-height: 1.35;
  padding: 12px 12px;
}

.under-table td {
  padding: 12px;
  line-height: 1.4;
}

.under-table td:first-child {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.under-mark {
  max-width: 130px;
  margin: 5px auto 0;
  font-size: 14px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.under-note {
  font-size: 14px;
  line-height: 1.55;
  margin-top: 14px;
}

.under-na,
.under-today-label {
  font-size: 14px;
}

/* Dream search and result cards */
.dream-search input {
  min-height: 46px;
  font-size: 17px;
}

.drc-title {
  font-size: 18px;
}

.drc-subtitle,
.drc-associations,
.drc-stat {
  font-size: 15px;
  line-height: 1.55;
}

/* Research modal */
.mark-modal {
  font-size: 16px;
}

.mark-modal p,
.mark-modal li,
.mark-modal .modal-text,
.mark-modal .research-copy,
.mark-modal .evidence-copy {
  font-size: 16px;
  line-height: 1.65;
}

.mark-modal h2 {
  font-size: clamp(24px, 4vw, 31px);
  line-height: 1.2;
}

.mark-modal h3 {
  font-size: 19px;
  line-height: 1.35;
}

/* Existing inline helper paragraphs */
#frequencyWindowNote {
  font-size: 15px !important;
  line-height: 1.55;
}

/* Player-facing copy should remain readable against the dark surfaces. */
.header-sub,
#statusBar,
#dreamTopSection p,
#tabMarks .analysis-intro p,
.shelf-intro p,
.shelf-intro span,
.under-note,
.legend,
.share-label,
.drc-associations,
.mark-evidence-text,
.report-subtitle,
.report-timeline-item span {
  color: #dbe4f0;
}

#dreamTopSection p,
#tabMarks .analysis-intro p,
.shelf-intro p,
.shelf-intro span,
.under-note,
.legend,
.drc-associations {
  font-size: 14px !important;
  line-height: 1.55;
}

#dreamTopSection p,
#tabMarks .analysis-intro p {
  color: #dbe4f0 !important;
}

#dreamResultsTop p {
  color: #dbe4f0 !important;
  font-size: 14px !important;
  line-height: 1.55;
}

#frequencyWindowNote {
  color: #dbe4f0 !important;
}

.nav-link,
.share-copy,
.recent-mark-name,
.under-mark {
  color: #dbe4f0;
}

.dream-search input::placeholder {
  color: #b8c4d6;
  opacity: 1;
}

.mark-heading .m-classification,
.mark-metric-label,
.mark-evidence-label,
.mark-last-seen-label,
.report-section-title,
.report-metric-label,
.report-related-card span {
  color: #cbd5e1;
  font-size: 13px;
}

.mark-evidence-text,
.mark-last-seen-value,
.report-subtitle,
.report-timeline-item span {
  font-size: 14px;
  line-height: 1.55;
}

/* Tablet and mobile */
@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .section-title {
    font-size: 14px;
    letter-spacing: 1.6px;
  }

  .today-draw-card {
    padding: 17px 12px;
  }

  .today-draw-time {
    font-size: 14px;
  }

  .today-draw-mark {
    font-size: 15px;
  }

  .under-wrap {
    padding: 8px;
    overflow: visible;
  }

  .under-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 12px;
  }

  .under-table th,
  .under-table td {
    min-width: 0;
    padding: 7px 2px;
    overflow-wrap: anywhere;
  }

  .under-table th {
    font-size: 11px;
    letter-spacing: .2px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .under-table th:first-child,
  .under-table td:first-child {
    width: 68px;
    font-size: 12px;
    white-space: normal;
  }

  .under-ball {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .under-mark {
    max-width: 52px;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .under-na {
    font-size: 12px;
  }

  .mark-evidence,
  .m-statline,
  .m-last-seen,
  .stat-evidence {
    font-size: 14px;
  }
}


/* =========================================================
   Individual mark report — readable research details
   ========================================================= */

.report-section {
  margin-top: 26px;
}

.report-section-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.4px;
  margin-bottom: 13px;
  color: var(--text);
}

/* Recent appearance timeline */
.report-timeline {
  display: grid;
  gap: 10px;
}

.report-timeline-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.report-timeline-item strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 4px;
}

.report-timeline-item span {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

/* Spirit and partner marks */
.report-related-grid {
  gap: 13px;
}

.report-related-card {
  padding: 16px 17px;
}

.report-related-card span {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 6px;
}

.mark-modal .report-related-card > span {
  color: #f8fafc;
}

.report-related-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
}

.report-related-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  margin: -5px -8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.mark-modal .report-related-link,
.mark-modal .report-related-link > span {
  color: #f8fafc;
}

.report-related-link:hover {
  border-color: rgba(155,114,255,.45);
  background: rgba(155,114,255,.12);
  color: #fff;
}

.report-related-link:hover > span,
.report-related-link:focus-visible,
.report-related-link:focus-visible > span {
  color: var(--gold);
}

/* Primary analyzer headings stay readable across desktop and mobile. */
.section-title,
.report-section-title,
.tab:not(.active) {
  color: #f8fafc;
}

.tab:not(.active):hover {
  color: var(--text);
}

/* Dream association chips */
.report-associations {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.report-association {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 210, 31, 0.28);
  border-radius: 999px;
  background: rgba(255, 210, 31, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  appearance: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.report-association:hover {
  background: rgba(255, 210, 31, 0.15);
  border-color: rgba(255, 210, 31, 0.55);
  transform: translateY(-1px);
}

.report-association:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Compact local results for dream-association exploration. */
.association-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 8, 17, .82);
  backdrop-filter: blur(8px);
}

.association-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(700px, 86vh);
  overflow-y: auto;
  padding: 28px;
  background: #111b2d;
  border: 1px solid #2a3d59;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}

.association-dialog-header {
  padding-right: 44px;
  margin-bottom: 18px;
}

.association-dialog-header h2 {
  margin: 5px 0 0;
  color: #f8fafc;
  font-size: clamp(21px, 4vw, 26px);
  line-height: 1.25;
}

.association-modal-results {
  display: grid;
  gap: 8px;
}

.association-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  color: #f8fafc;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.association-result:hover,
.association-result:focus-visible {
  background: rgba(245, 197, 66, .1);
  border-color: rgba(245, 197, 66, .55);
  color: var(--gold);
}

.association-result:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.association-result-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.association-result-identity .mark-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin-right: 0;
  vertical-align: middle;
}

.association-result-arrow {
  flex: 0 0 auto;
  margin-left: 12px;
  color: var(--gold);
  font-size: 18px;
}

.association-empty {
  margin: 0;
  color: #dbe4f0;
  font-size: 15px;
  line-height: 1.5;
}

/* More room inside the association panel */
.report-panel .report-associations {
  padding: 2px;
}

/* Mobile readability */
@media (max-width: 700px) {
  .report-section {
    margin-top: 23px;
  }

  .report-section-title {
    font-size: 17px;
  }

  .report-timeline-item {
    padding: 13px 14px;
  }

  .report-timeline-item strong {
    font-size: 16px;
  }

  .report-timeline-item span {
    font-size: 15px;
  }

  .report-related-card strong {
    font-size: 16px;
  }

  .report-association {
    min-height: 35px;
    padding: 7px 12px;
    font-size: 15px;
  }
}


/* Today's Draws — Play Whe yellow balls */
.today-draw-ball {
  background:
    radial-gradient(
      circle at 35% 30%,
      #fff4a3 0%,
      #ffd21f 38%,
      #e5ad00 100%
    ) !important;
  color: #171717 !important;
  border: 2px solid #e2ad00;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.65),
    0 4px 11px rgba(133, 93, 0, 0.3);
}

.today-draw-card.has-result {
  border-color: rgba(255, 210, 31, 0.35);
}

.today-draw-card.has-result:hover .today-draw-ball {
  transform: translateY(-1px);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.72),
    0 6px 14px rgba(133, 93, 0, 0.38);
}

/* Final contrast and control alignment pass */
.mark-related,
.mark-open-report {
  color: #f1f5f9;
}

.mark-card-footer .mark-related {
  color: #f8fafc !important;
  opacity: 1 !important;
}

.mark-open-report {
  transition: color .15s ease;
}

.mark-card:hover .mark-open-report,
.mark-card:focus-visible .mark-open-report {
  color: var(--gold);
}

.dream-search .btn {
  min-width: 88px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px 16px;
  line-height: 1.25;
  vertical-align: middle;
}

.dream-search .btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.mark-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-right: .18em;
  vertical-align: -.2em;
  object-fit: contain;
}
