/* Stone / slate material skin. Layout and behaviour stay identical to CanadaPC28. */
body.stone {
  --stone-wall: #d6d0c4;
  --stone-card: #eae5da;
  --stone-soft: #e0dace;
  --stone-edge: #b6ad9e;
  --stone-edge-dark: #938a7c;
  --stone-ink: #252722;
  --stone-muted: #6e6a60;
  --stone-accent: #8f4b33;
  --stone-slate: #303530;
  --stone-slate-edge: #1e221e;
  background-color: var(--stone-wall);
  background-image:
    radial-gradient(ellipse at 18% 16%, rgba(255,255,255,.20), transparent 54%),
    radial-gradient(ellipse at 82% 78%, rgba(74,68,56,.08), transparent 62%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  color: var(--stone-ink);
}
body.stone .theme-toggle { display: none !important; }
body.stone .theme-curtain,
body.stone .tank-reflection,
body.stone .map-glass-optics { display: none !important; }
body.stone .home-header { transform: none !important; }
body.stone .draw-core::before,
body.stone .recent-draws::before { display: none !important; }

/* Slate header */
body.stone header { background: transparent; }
body.stone .mast {
  background-color: var(--stone-slate);
  background-image:
    radial-gradient(ellipse at 16% 20%, rgba(255,255,255,.12), transparent 48%),
    radial-gradient(ellipse at 84% 82%, rgba(0,0,0,.18), transparent 58%),
    repeating-linear-gradient(112deg, rgba(255,255,255,.025) 0 1px, transparent 1px 5px),
    linear-gradient(112deg, #3a403a, #292d29 46%, #323730);
  border: 1px solid var(--stone-slate-edge);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.28), 0 3px 0 rgba(43,42,36,.18);
  color: #f0ebdf;
}
body.stone .mast .brand, body.stone .brand-wolf, body.stone .wordmark { color: #f0ebdf; }
body.stone .brand-letters { color: #f0ebdf; }
body.stone .brand-digits { color: #d77958; }
body.stone .mast nav { background: transparent; box-shadow: none; border: 0; }
body.stone .mast nav a { color: #cfc9bb; }
body.stone .mast nav a:hover, body.stone .mast nav a[aria-current="page"] { color: #fff8ea; border-color: #d77958; }
body.stone .wordmark .mark { background: url("wolf-mark.png") center/contain no-repeat; clip-path: none; }

/* Stone cards */
body.stone :is(.draw-core, .forecast, .recent-draws, .tool-case, .archive-chart, .edition-focus) {
  background-color: var(--stone-card);
  background-image:
    radial-gradient(ellipse at 20% 14%, rgba(255,255,255,.30), transparent 55%),
    radial-gradient(ellipse at 78% 82%, rgba(75,68,56,.07), transparent 62%),
    repeating-linear-gradient(118deg, rgba(255,255,255,.022) 0 1px, transparent 1px 5px);
  border: 1px solid var(--stone-edge);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 0 rgba(102,94,80,.12), 0 2px 0 rgba(95,86,70,.10);
}
body.stone .draw-core { border-top: 3px solid var(--stone-accent); }
body.stone .forecast { border-color: var(--stone-edge); }
body.stone .recent-draws { background-color: #e5dfd2; }

/* Matte granite balls */
body.stone .draw-balls b {
  background-color: #4a4b44;
  background-image:
    radial-gradient(circle at 27% 22%, rgba(255,255,255,.28) 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 69%, rgba(0,0,0,.35) 0 1px, transparent 1.6px),
    radial-gradient(circle at 42% 34%, #66675e, #44453f 62%, #30312c);
  background-size: 7px 7px, 11px 11px, 100% 100%;
  color: #f6f0e3 !important;
  box-shadow: inset 0 2px 1px rgba(255,255,255,.16), inset 0 -3px 2px rgba(0,0,0,.28), 0 2px 1px rgba(52,50,42,.25);
}
body.stone .draw-balls .ball-meridian { display: none; }
body.stone .draw-balls .ball-digit { color: #f6f0e3 !important; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
body.stone #numbers #total { color: var(--stone-accent); }
body.stone .draw-sum { border-left-color: var(--stone-edge); }

/* Table as carved stone ledger */
body.stone .recent-table thead { background: #d8d1c3; }
body.stone .recent-table thead th { color: #5d594f; border-bottom-color: var(--stone-edge); }
body.stone .recent-table tbody tr { border-bottom-color: #c9c1b2; }
body.stone .recent-table tbody tr:hover { background: #f0ebdf; }
body.stone .recent-balls i { background: #d3ccbf; color: #34362f; }
body.stone .recent-sum { color: var(--stone-accent); }

/* Stone tool cards */
body.stone .tool-case { box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(102,94,80,.10); }
body.stone .case-calendar { background-color: #e6dfd0; }
body.stone .case-share { background-color: #dedbd2; }
body.stone .case-scan { background-color: #dcd6cd; }
body.stone .case-lid { border-bottom-color: var(--stone-edge); }
body.stone .case-tools a { border-top-color: #c9c1b2; }
body.stone .case-tools a:hover { color: var(--stone-accent); }

/* Buttons and capsules */
body.stone .quiet-link { color: var(--stone-accent); }
body.stone .seq-all, body.stone .prediction-board-link, body.stone .peel {
  background: #d5cebf;
  border-color: var(--stone-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
body.stone .seq-all:hover { background: #c9c1b1; }
body.stone .archive-chart .seq-field { background: #ded8cc; border-radius: 8px; }

/* Prediction page surfaces */
body.stone .pick-ticket,
body.stone .pick-votes,
body.stone .pick-history,
body.stone .pick-current {
  background-color: var(--stone-card);
  background-image:
    radial-gradient(ellipse at 20% 16%, rgba(255,255,255,.24), transparent 56%),
    linear-gradient(120deg, rgba(255,255,255,.10), rgba(70,65,55,.035));
  border-color: var(--stone-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(102,94,80,.12);
}
body.stone .pick-face, body.stone .pick-publication { background: transparent !important; }
body.stone .pick-publication { background-color: #ddd6c8 !important; border-left: 1px solid var(--stone-edge); }
body.stone .pick-votes, body.stone .pick-history { background-image: none !important; }
body.stone .pick-votes { background-color: #e7e1d5 !important; }
body.stone .pick-history { background-color: #e7e1d5 !important; }
body.stone .pick-page .pick-table tbody tr > :is(td, th) { background-color: #e7e1d5; }
body.stone .pick-page .pick-table thead th { background-color: #d8d1c3 !important; border-bottom-color: var(--stone-edge); }
body.stone .pick-table tr:is(:hover,:focus-within) td, body.stone .pick-table tr:is(:hover,:focus-within) th[scope="row"] { background-color: #f0ebdf !important; }
body.stone .pick-ticket { border-top: 3px solid var(--stone-accent); }
body.stone .pick-table tr { border-bottom-color: #c9c1b2; }
body.stone .pick-table th { background: #d8d1c3; }

/* Footer / navigation */
body.stone footer { background: transparent; border-top-color: var(--stone-edge); color: var(--stone-muted); }
body.stone .footer-links a, body.stone .interlinks a { color: var(--stone-muted); }
body.stone .footer-links a:hover, body.stone .interlinks a:hover { color: var(--stone-accent); }

@media (max-width: 720px) {
  body.stone .mast { border-radius: 10px; }
  body.stone .draw-balls b { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 2px rgba(0,0,0,.28); }
}
