/* Dice Tables site: the app's About look. Paper page over a faint dice sketch, the About gradient for the hero and the sticky bar. */
*{box-sizing:border-box}
html{scroll-behavior:smooth;color-scheme:dark}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;font:400 18px/1.55 "Shantell Sans",system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto}
.phone img{height:100%}
a{color:var(--pick)}
.wrap{max-width:var(--maxw,1040px);margin:0 auto;padding:0 16px}
[id]{scroll-margin-top:92px}

/* Sticky compact bar: icon, name, Play. Hidden while the hero is on screen (JS adds .show);
   without JS it is simply always there. */
.bar{position:fixed;top:calc(8px + env(safe-area-inset-top));left:16px;right:16px;max-width:calc(var(--maxw,1120px) - 32px);margin:0 auto;z-index:20;height:60px;display:flex;align-items:center;gap:12px;padding:0 12px 0 14px;
  border-radius:28px;background:linear-gradient(135deg,#1A5AC8,#3C2FB8 50%,#7000B4);box-shadow:0 10px 28px rgba(30,20,80,.35),0 2px 6px rgba(30,20,80,.2);
  transition:transform .25s ease,opacity .25s ease}
.js .bar{transform:translateY(calc(-100% - 24px));opacity:0;pointer-events:none}
.js .bar.show{transform:none;opacity:1;pointer-events:auto}
@media (prefers-reduced-motion:reduce){.bar{transition:none}}
.bar .home{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-decoration:none}
.bar b{font-weight:800;font-size:19px;color:var(--bar-ink,#fff);white-space:nowrap}
.bar .plink{font-weight:700;font-size:15px;color:var(--bar-ink,#fff);text-decoration:none;opacity:.85;padding:8px 4px}
.bar .plink:hover{opacity:1;text-decoration:underline}
.bar .button{padding:8px 16px;font-size:15px;white-space:nowrap}

.button{display:inline-block;padding:14px 26px;border-radius:999px;background:#fff;color:#2A1F86;font-weight:800;text-decoration:none}
.button:hover{background:#EDE8FF}
.button.violet{background:var(--pick);color:#1B1550}

/* A phone-shaped frame for a still or an animation */
.phone{display:block;margin:0;width:min(250px,100%);aspect-ratio:9/16;border-radius:24px;overflow:hidden;
  border:1px solid rgba(255,255,255,.18);box-shadow:0 18px 44px rgba(0,0,0,.5);background:#3C2FB8}
.phone img,.phone picture{display:block;width:100%;height:100%;object-fit:cover}
.shots{display:flex;gap:14px;justify-content:center;flex-wrap:nowrap}
.shots .phone{width:calc(50% - 7px);max-width:240px}

h2{margin:0 0 8px;font-size:15px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--pick)}
.lead{margin:0 0 12px;font-size:20px;line-height:1.4;color:var(--ink)}
ul.pts{margin:0;padding-left:20px}
ul.pts li{margin-bottom:4px}
.tours{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.tours li{padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--chip)}
.tours strong{display:block;color:var(--ink);font-size:17px}
.tours span{font-size:15px;color:var(--muted)}
@media (min-width:640px){.tours{grid-template-columns:1fr 1fr}}

.disc{max-width:960px;margin:40px auto 0;padding:24px 0 48px;border-top:1px solid var(--line);font-size:15px;color:var(--muted);text-align:center}
.disc h3{margin:0 0 6px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;opacity:.8}
.disc p{margin:0 auto 8px;max-width:72ch;text-wrap:balance}
.disc a{color:var(--pick)}

/* Privacy pages */
.small.hero{padding-bottom:36px}
.facts{display:grid;gap:10px;margin:0 0 8px;grid-template-columns:1fr 1fr}
.facts div{padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--chip)}
.facts dt{font-size:13px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;color:var(--pick)}
.facts dd{margin:2px 0 0;font-weight:800;font-size:18px;line-height:1.3;color:var(--ink)}
@media(min-width:760px){.facts{grid-template-columns:repeat(4,1fr)}}
.pv .lead{font-size:24px;font-weight:800}
.pv p,.pv li{color:var(--muted)}
.pv .lead{color:var(--ink)}
.pv-sec{margin:0 0 28px}
.pv .updated{font-size:15px}
.back{margin:28px 0 56px;text-align:center}

/* C: Paper bento. A light page; the gradient lives in one rounded hero panel, and the features are a grid of tiles. */
:root{--paper:#F3EFFA;--ink:#17142B;--muted:#4B4670;--pick:#5B3FD6;--line:rgba(30,20,80,.14);--chip:#fff;--bar-ink:#fff;--maxw:1120px;
  --blue:#1A5AC8;--violet:#3C2FB8;--purple:#7000B4}
html{color-scheme:light;background:var(--paper)}
body{background:transparent;color:var(--ink)}
a{color:var(--pick)}
h2{color:var(--pick)}
.button{background:var(--ink);color:#fff}
.button:hover{background:#2c2760}
.bar .button{background:#fff;color:#2A1F86}
.bar .button:hover{background:#EDE8FF}
.hero{padding:16px 0 0}
.panel{position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(135deg,var(--blue),var(--violet) 50%,var(--purple));padding:36px 24px 190px;color:#fff}
.panel-text{position:relative;z-index:1}
.icon{width:72px;height:72px;border-radius:17px;box-shadow:0 10px 28px rgba(0,0,0,.35)}
h1{margin:14px 0 4px;font-size:clamp(42px,11vw,76px);line-height:1;font-weight:800;letter-spacing:-.02em;color:#fff}
.tagline{margin:0 0 22px;font-size:21px;color:rgba(255,255,255,.9);max-width:34ch;text-wrap:balance}
.panel .button{background:#fff;color:#2A1F86}
.panel .cut{position:absolute;right:-24px;bottom:-24px;width:200px;filter:drop-shadow(0 14px 22px rgba(0,0,0,.4));transform:rotate(-6deg)}
.why{max-width:640px;margin:44px auto 36px;text-align:left;font-size:22px;line-height:1.5}
.why .sign{display:block;margin-top:8px;font-size:19px;color:var(--muted)}
.bento{display:grid;gap:14px;margin-bottom:48px}
.tile{position:relative;overflow:hidden;border-radius:24px;background:var(--chip);border:1px solid var(--line);padding:22px;display:flex;flex-direction:column;gap:18px}
.tile p,.tile li{color:var(--muted)}
.tile .lead{color:var(--ink)}
.tile .phone{align-self:center;border-color:rgba(30,20,80,.2);box-shadow:0 14px 34px rgba(30,20,80,.3)}
.tile .shots{justify-content:center}
.tile .shots .phone{width:calc(50% - 7px)}
.tile .m{margin:12px 0 0}
.tile .tours li{background:var(--paper)}
.tile .tours span{color:var(--muted)}
.t-rules{background:#EDE6FF}
.t-tally{background:#E4EEFF}
.t-tables{background:#FFF3DC}
.t-easy{background:#fff}
.t-priv{background:#E3F5EC}
.cta{margin:20px 0 0}

@media(min-width:640px){
  .tile .phone{width:210px}
}
@media(min-width:900px){
  .panel{padding:64px 56px;min-height:420px;display:flex;align-items:center}
  .panel .cut{right:40px;bottom:auto;top:50%;margin-top:-190px;width:380px}
  .bento{grid-template-columns:repeat(6,1fr);gap:18px}
  .tile{flex-direction:row;align-items:center;padding:28px;gap:24px}
  .tile .t-copy{flex:1;min-width:0}
  .t-dice,.t-rules,.t-tally,.t-tables{grid-column:span 3;flex-direction:column;align-items:stretch}
  .t-easy{grid-column:span 3;flex-direction:column;align-items:stretch}
  .t-priv{grid-column:span 3;flex-direction:column;align-items:flex-start;justify-content:flex-start}
  .tile .phone{flex:none}
  .tile .phone{width:210px}
  .t-tables .shots .phone{width:calc(50% - 7px)}
}

/* privacy */
.hero.small .panel{padding:36px 24px 150px}
.pv{padding-bottom:0}
.pv .bento{margin-bottom:16px}
.t-sum{background:#EDE6FF}
.t-sum .lead{font-size:28px;font-weight:800}
.t-data{background:#E4EEFF}
.t-data .facts div{background:#fff}
.t-data .facts dd{color:var(--ink)}
.pv .tile{display:block}
.pv-sec.tile:nth-of-type(n){background:#fff}
@media(min-width:900px){
  .hero.small .panel{padding:48px 56px;min-height:260px}
  .hero.small .panel .cut{width:260px;margin-top:-130px}
  .pv .t-sum{grid-column:span 6}
  .pv .t-data{grid-column:span 6}
  .pv .pv-sec{grid-column:span 3}
  .pv .t-sum,.pv .t-data{flex-direction:column}
}
.pv .facts dd{color:var(--ink)}

/* Tiles slide in once as they scroll into view (JS adds .in; without JS or with reduced motion they are just there).
   The bento clips sideways so the slide never makes the page scroll. */
.bento,.pv .bento{overflow-x:clip}
@media (prefers-reduced-motion:no-preference){
  .js .tile{opacity:0;transform:translate3d(-48px,0,0);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1);will-change:opacity,transform}
  .js .tile:nth-child(even){transform:translate3d(48px,0,0)}
  .js .tile.in{opacity:1;transform:none}
}
.pv .tile{opacity:1!important;transform:none!important;transition:none!important}

/* ---- Sketched look: pencil borders, doodle accents, hand-written touches ---- */
:root{--bg-tile:url(assets/bg-sketch-wire.webp);--bg-tile-size:720px;--graphite:rgba(23,20,43,.6)}
/* The sketch sits on its own fixed layer, so it stays put while the page scrolls (background-attachment:fixed is unreliable on phones). */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--paper) var(--bg-tile) 0 0/var(--bg-tile-size) var(--bg-tile-size)}
.doodle.d6{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Cg fill=%22none%22 stroke=%22%233C2FB8%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M24 4.5 42.5 14.5 42 34 24 44 5.8 33.8 5.5 14.2Z%22/%3E%3Cpath d=%22M5.5 14.2 24 24.3 42.5 14.5M24 24.3 24 44%22/%3E%3C/g%3E%3Cg fill=%22%233C2FB8%22%3E%3Cellipse cx=%2224%22 cy=%2214.3%22 rx=%222.6%22 ry=%221.6%22/%3E%3Ccircle cx=%2211.4%22 cy=%2223%22 r=%221.9%22/%3E%3Ccircle cx=%2218.6%22 cy=%2235%22 r=%221.9%22/%3E%3Ccircle cx=%2228.5%22 cy=%2226%22 r=%221.8%22/%3E%3Ccircle cx=%2233.2%22 cy=%2229.2%22 r=%221.8%22/%3E%3Ccircle cx=%2237.8%22 cy=%2232.3%22 r=%221.8%22/%3E%3C/g%3E%3C/svg%3E")}
.doodle.spark{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 %3E%3Cg fill=%22none%22 stroke=%22%233C2FB8%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M24 5 V18 M24 30 V43 M5 24 H18 M30 24 H43 M11 11 L18 18 M30 30 L37 37 M37 11 L30 18 M18 30 L11 37%22/%3E%3C/g%3E%3C/svg%3E")}
.doodle.d20{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22%3E%3Cg fill=%22none%22 stroke=%22%233C2FB8%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M24 3 43 14 43 34 24 45 5 34 5 14Z%22/%3E%3Cpath d=%22M24 14 36 32 12 32Z%22/%3E%3Cpath d=%22M24 3 24 14M5 14 24 14 43 14M5 14 12 32 5 34M12 32 24 45 36 32M43 14 36 32 43 34%22/%3E%3C/g%3E%3C/svg%3E")}
.doodle.arrow{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 %3E%3Cg fill=%22none%22 stroke=%22%233C2FB8%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 38 C12 10 30 6 42 20 M33 15 L42 21 L35 29%22/%3E%3C/g%3E%3C/svg%3E")}
.doodle.pencil{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 %3E%3Cg fill=%22none%22 stroke=%22%233C2FB8%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 39 L12 28 L33 7 L41 15 L20 36 Z M12 28 L20 36 M29 11 L37 19 M6 43 H22%22/%3E%3C/g%3E%3C/svg%3E")}
.doodle.lock{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 48%22 %3E%3Cg fill=%22none%22 stroke=%22%233C2FB8%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M11 22 H37 V43 H11 Z M17 22 V15 C17 4 31 4 31 15 V22 M24 30 V36%22/%3E%3C/g%3E%3C/svg%3E")}
.doodle{position:absolute;top:12px;right:14px;width:40px;height:40px;background-size:contain;background-repeat:no-repeat;opacity:.75;transform:rotate(8deg);pointer-events:none;z-index:1}
.tile:nth-child(even) .doodle{transform:rotate(-8deg)}
.tile h2{display:inline-block;max-width:calc(100% - 52px);padding-bottom:9px;margin-bottom:6px}
.tile h2,.pv-sec h2{background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 28 6%22 preserveAspectRatio=%22none%22%3E%3Cg fill=%22none%22 stroke=%22%235B3FD6%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M0 4 Q7 0 14 4 T28 4%22/%3E%3C/g%3E%3C/svg%3E") 0 100%/28px 6px repeat-x}
.tile{border:0;box-shadow:none}
.tile::before,.tile::after{content:"";position:absolute;pointer-events:none;border-style:solid;border-color:var(--graphite)}
.tile::before{inset:0;border-width:1.8px;border-radius:24px 22px 26px 21px;filter:url(#rough)}
.tile::after{inset:5px 4px 4px 6px;border-width:1px;border-radius:20px 24px 19px 23px;border-color:rgba(23,20,43,.28);filter:url(#rough2)}
.tile .phone{border:2px solid #17142B;box-shadow:4px 5px 0 rgba(23,20,43,.14);transform:rotate(-1.2deg)}
.tile .shots .phone:nth-child(even),.tile:nth-child(even)>.phone{transform:rotate(1.2deg)}
.tile ul.pts{list-style:none;padding-left:24px}
.tile ul.pts li{position:relative}
.tile ul.pts li::before{content:"";position:absolute;left:-23px;top:.38em;width:15px;height:15px;background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22 %3E%3Cg fill=%22none%22 stroke=%22%235B3FD6%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%228%22 cy=%228%22 r=%225.6%22/%3E%3Ccircle cx=%228%22 cy=%228%22 r=%221.1%22/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.tours li{border:1.5px dashed rgba(23,20,43,.35);position:relative;padding-left:44px}
.tours li::before{content:"";position:absolute;left:12px;top:14px;width:20px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 22 20%22 %3E%3Cg fill=%22none%22 stroke=%22%235B3FD6%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 11 L8 16 L19 4%22/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
.panel h1{display:inline-block;padding-bottom:12px;background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 10%22 preserveAspectRatio=%22none%22%3E%3Cg fill=%22none%22 stroke=%22%23ffffff%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 7 C60 1 140 9 198 3%22/%3E%3C/g%3E%3C/svg%3E") 0 100%/100% 10px no-repeat;opacity:1}
.why .sign{font-family:Caveat,"Segoe Print",cursive;font-weight:600;font-size:34px;line-height:1;margin-top:6px;color:var(--pick);transform:rotate(-3deg);transform-origin:left}

/* Sticky bar: the dice cut-out bleeds off the right edge, behind the buttons */
.bar{overflow:hidden}
.bar .bar-dice{width:46px;height:auto;flex:none;margin:-4px -2px -4px -6px;transform:rotate(-8deg);pointer-events:none;filter:drop-shadow(0 3px 6px rgba(0,0,0,.3))}
.bar .home,.bar .plink,.bar .button{position:relative;z-index:1}
.bar .home{flex:0 1 auto;margin-right:auto}
.bar b{font-size:18px}
@media(max-width:440px){.bar b{display:block;font-size:16px}.bar{gap:8px;padding-left:12px}.bar .plink{padding:8px 2px}}
@media(max-width:360px){.bar b{font-size:15px}}

/* privacy page: the same pencil borders, no doodles, quieter */
.pv .tile::after{display:none}
.pv .tile::before{border-width:1.4px;border-color:rgba(23,20,43,.4)}
.pv .tile h2{display:block;max-width:none;background-image:none;padding-bottom:0}
.pv .tile ul.pts li::before{opacity:.7}
/* Privacy page: "← Home" in the bar; on narrow screens it stands in for the name */
.bar .plink{white-space:nowrap}
@media(max-width:440px){.bar:has(.bar-home) .home b{display:none}.bar:has(.bar-home) .home{margin-right:0}.bar .bar-home{margin-right:auto}}
@media(max-width:400px){.bar:not(:has(.bar-home)) .plink{display:none}}

.cta-end{text-align:center;margin:36px 0 0}
.plink-more{font-weight:800;color:var(--pick);text-decoration:none;display:inline-block;margin-top:6px}
.plink-more:hover{text-decoration:underline}
/* Desktop bar: the dice cut-out large in the middle, cropped by the bar */
@media(min-width:900px){
  .bar .home{position:static}
  .bar .home b{position:relative;z-index:1}
  .bar .bar-dice{position:absolute;left:50%;top:50%;width:190px;margin:0;transform:translate(-50%,-50%);z-index:0;opacity:.55}
}
.why p{margin:0 0 14px}
/* Fonts: Grandstander for display (titles, headings, buttons, the bar), Shantell Sans for text */
body{font-family:"Shantell Sans",system-ui,sans-serif}
h1,h2,.bar b,.lead,.button{font-family:Grandstander,system-ui,sans-serif}
h1{letter-spacing:0}
h2{letter-spacing:.04em}
/* Grandstander sits high in its line box: nudge it back to optical centre */
.bar b{top:2px}
.button{padding-top:16px;padding-bottom:12px}
.bar .button{padding-top:10px;padding-bottom:6px}
.pv .why p{color:var(--ink)}
/* "Read the privacy policy" as a centred button in the privacy tile */
.priv-cta{align-self:stretch;text-align:center;margin:auto 0 0;padding-top:14px}
.button.priv-btn{background:#fff;color:#2A1F86;border:1.5px solid rgba(60,47,184,.35);padding:12px 22px 9px;font-size:16px}
.button.priv-btn:hover{background:#EDE8FF}
/* Bar: name, then Home | Privacy on the left; Play on the right */
.bar .home{margin-right:0}
.bar-nav{position:relative;z-index:1;display:flex;align-items:center;gap:8px;margin-right:auto;padding-left:6px;font-family:Grandstander,system-ui,sans-serif;font-weight:700;font-size:15px;white-space:nowrap}
.bar-nav a{color:#fff;opacity:.8;text-decoration:none;padding:8px 2px;position:relative;top:1px}
.bar-nav a:hover{opacity:1;text-decoration:underline}
.bar-nav a[aria-current]{opacity:1;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
.bar-nav span{color:#fff;opacity:.45}
@media(max-width:440px){.bar .home b{display:none}.bar-nav{padding-left:0}}
@media(min-width:900px){.bar .bar-dice{opacity:1}}
/* Bar runs up to the top edge: only its bottom corners round */
.bar{top:0;height:calc(60px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);border-radius:0 0 28px 28px}
/* The bar's dice roll a little as the bar slides in */
.js .bar .bar-dice{transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.js .bar:not(.show) .bar-dice{transform:rotate(-40deg)}
@media(min-width:900px){.js .bar:not(.show) .bar-dice{transform:translate(-50%,-50%) rotate(-30deg)}}
@media (prefers-reduced-motion:reduce){.js .bar .bar-dice{transition:none}}
/* More breathing room at the bar's ends */
.bar{padding-left:28px;padding-right:20px}
@media(max-width:440px){.bar{padding-left:18px;padding-right:12px}}
.pv .why{margin-top:12px}
.hero.small .tagline{font-family:Grandstander,system-ui,sans-serif;font-weight:700;font-size:clamp(24px,4vw,30px);margin-top:6px}
.why{max-width:760px}
.h1-home{color:inherit;text-decoration:none}.h1-home:hover{opacity:.9}
/* Privacy: Short / Full toggle */
.pv-toggle{display:flex;width:max-content;max-width:100%;margin:0 auto 22px;padding:4px;gap:4px;border-radius:999px;background:rgba(60,47,184,.1);border:1px solid rgba(60,47,184,.2)}
.pv-toggle[hidden]{display:none}
.pv-toggle button{border:0;border-radius:999px;background:none;color:var(--ink);font:700 15px Grandstander,system-ui,sans-serif;padding:10px 18px 7px;cursor:pointer;min-height:40px}
.pv-toggle button[aria-pressed=true]{background:linear-gradient(135deg,#1A5AC8,#3C2FB8 50%,#7000B4);color:#fff}
.pv-toggle button:focus-visible{outline:2px solid #3C2FB8;outline-offset:2px}
main.pv.short .pv-sec{display:none}
main.pv:not(.short) .t-data{display:none}
