/* Table Tools: one clear hero at a time, small identity, rich dice without an expensive 3D engine. */
#home{max-width:950px;margin:auto}
#home .lead{margin-bottom:20px}
#home .lead h1{max-width:820px}
#home .hero-cards{grid-template-columns:minmax(0,1fr);gap:13px}
#home .hero-card{text-decoration:none;color:var(--ink);min-height:152px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:26px;padding:22px;text-align:left;border-radius:19px}
#home .hero-card .preview{min-width:140px;max-width:140px;width:140px;transform:none;height:auto;display:flex;justify-content:center;align-items:center}
#home .hero-card>div:last-child{flex:1;min-width:0}
#home .hero-card h3{font-size:clamp(23px,3.6vw,31px);line-height:1.06;letter-spacing:-.025em}
#home .hero-card p{max-width:560px;line-height:1.55;font-size:13px;margin:8px 0}
#home .hero-card .openlink{font-size:12px;color:var(--gold);font-weight:800}
#home .hero-card:nth-child(2){--haze:#15ae8f38}
#home .hero-card:nth-child(3){--haze:#619be846}
#home .hero-cta{margin-top:15px}
#first,#scores,#dice,#journal{max-width:950px;margin:auto}
#dice .twocol,#journal .twocol{grid-template-columns:minmax(0,1fr);gap:15px}
#dice .twocol>.panel,#journal .twocol>.panel{min-width:0}
#scores .sc2-main{grid-template-columns:minmax(0,1fr)!important;max-width:950px}
#scores .sc2-main>div{min-width:0}
#scores .sc2-panel{max-width:100%}
#dice .dice-symbol-details{max-width:900px;margin:16px auto 0;padding:0 15px 15px;border:1px solid var(--line);background:var(--panel);border-radius:18px}
#dice .dice-symbol-details>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:67px;padding:6px 8px;cursor:pointer;color:var(--ink);font-size:17px;font-family:Georgia,serif;font-weight:700}
#dice .dice-symbol-details>summary::-webkit-details-marker{display:none}
#dice .dice-symbol-details>summary small{color:var(--mute);font:normal 12px sans-serif}
#dice .dice-symbol-details[open]>summary{border-bottom:1px solid var(--line)}
#dice .dice-symbol-inner{padding:17px 2px 0}
#dice .dice-symbol-inner .lead{margin-bottom:14px}
#dice .dice-symbol-inner .lead h3{font:normal 28px/1.1 Georgia,serif}
#dice .dice-symbol-inner .twocol{grid-template-columns:minmax(0,1fr)!important}
#dice .dice-symbol-inner .panel{min-width:0}
#dice .tray{background:radial-gradient(ellipse at 52% 22%,#3c775f59 0%,transparent 58%),repeating-linear-gradient(135deg,#183f34 0px,#163b34 3px,#12382f 7px);box-shadow:inset 0 0 0 1px #ffffff1c,inset 0 14px 40px #04190e9c,inset 0 -18px 28px #00160d9a,0 12px 28px #0002;border-radius:23px;position:relative;overflow:hidden}
#dice .tray:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 60%,#d2a46d11,transparent 65%);z-index:0}
#dice .die-box{position:relative;isolation:isolate}
#dice .die-box:before{content:"";position:absolute;inset:auto 6px 32px;filter:blur(9px);border-radius:100%;background:#00171089;height:10px;pointer-events:none}
#dice .dice-piece:not(.custom){border:1px solid #fdf2de9c;background:linear-gradient(135deg,#fffdf5 0%,#f6e6c8 48%,#cba77c 100%);box-shadow:0 3px 2px #0003,0 12px 20px #0007,inset 1px 2px 2px #fff,inset -6px -9px 10px #7250294d;transform-origin:50% 54%;will-change:transform;backface-visibility:hidden;color:#1a2425;text-shadow:0 1px #ffffff9c}
#dice .dice-piece:not(.custom):after{content:"";position:absolute;inset:5px;border:1px solid #ffffff42;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px 2px #fff7}
#dice .dice-piece.type-4{clip-path:polygon(50% 5%,97% 92%,3% 92%);border-radius:0;padding-top:21px}
#dice .dice-piece.type-8{clip-path:polygon(50% 0%,100% 50%,50% 100%,0% 50%);border-radius:0}
#dice .dice-piece.type-10{clip-path:polygon(50% 0%,94% 31%,80% 85%,50% 100%,20% 85%,6% 31%);border-radius:0}
#dice .dice-piece.type-12{clip-path:polygon(31% 0%,69% 0%,100% 31%,100% 69%,69% 100%,31% 100%,0% 69%,0% 31%);border-radius:0}
#dice .dice-piece.type-20{clip-path:polygon(50% 0%,96% 25%,96% 75%,50% 100%,4% 75%,4% 25%);border-radius:0}
#dice .dice-piece.type-100{border-radius:43%}
#dice .tray[data-material="gem"] .dice-piece:not(.custom){color:#e6f9ff;text-shadow:0 1px 2px #0005;background:linear-gradient(135deg,#9fe8ff,#3385b4 45%,#122955 100%);border-color:#bce8ff;box-shadow:0 10px 19px #051723ad,inset 3px 3px 8px #e7f9ff6b,inset -5px -7px 10px #061b47}
#dice .tray[data-material="gem"] .pip{background:#dffbff;box-shadow:inset 1px 1px 2px #062736}
#dice .tray[data-material="ember"] .dice-piece:not(.custom){color:#4a230a;background:linear-gradient(135deg,#fff0a4,#eeb753 52%,#a64a26);border-color:#fff2b6;box-shadow:0 10px 17px #2710088f,inset 2px 3px 9px #fff6b2,inset -5px -7px 10px #762a0c65}
#dice .dice-piece.rolling:not(.custom){animation:roomDiceRoll .67s cubic-bezier(.19,.68,.22,1.02) both}
#dice .dice-piece.landed:not(.custom){animation:roomDiceLand .42s cubic-bezier(.2,1.1,.36,1) both}
#dice .dice-piece.held{border:2px solid #f7d97c!important;box-shadow:0 0 0 4px #f7d97c44,0 0 29px #ffd07979,inset 0 2px 6px #fff9}
#dice .die-corner{font-weight:800;font-size:9px}
#dice .tray-result{border-radius:13px}
#dice .dice-symbol-details .dice-piece.custom{border-radius:20px;box-shadow:0 8px 30px #0007,inset 1px 2px #fff7}
#dice #customDieVisual.rolling{animation:roomDiceRoll .67s cubic-bezier(.19,.68,.22,1.02) both}
@keyframes roomDiceRoll{0%{transform:translate3d(-22px,-45px,0) rotate(-124deg) scale(.77);filter:brightness(1.27)}22%{transform:translate3d(14px,8px,0) rotate(70deg) scale(.97)}43%{transform:translate3d(-8px,-16px,0) rotate(187deg) scale(1.05)}70%{transform:translate3d(5px,5px,0) rotate(300deg) scale(.98)}100%{transform:rotate(var(--r,0deg)) translate3d(0,0,0) scale(1);filter:none}}
@keyframes roomDiceLand{0%{transform:rotate(var(--r,0deg)) scale(1.16)}55%{transform:rotate(var(--r,0deg)) scale(.95)}100%{transform:rotate(var(--r,0deg)) scale(1)}}
@media(max-width:920px){#home .hero-card{min-height:150px}#home .hero-card .preview{min-width:110px;width:110px;max-width:110px}}
@media(max-width:600px){#home .hero-card{gap:13px;min-height:139px;padding:14px 13px}#home .hero-card .preview{min-width:78px;width:78px;max-width:78px;transform:none;height:auto}#home .hero-card .mini-die{font-size:19px}#home .hero-card .preview-orb{width:22px;height:22px}#home .hero-card h3{font-size:23px}#home .hero-card p{font-size:11px;margin:5px 0 7px}#dice .dice-symbol-details{margin-top:13px}#dice .die-box{gap:5px}#dice .dice-piece.type-4{padding-top:15px}#dice .tray-dice{gap:8px}}
@media(prefers-reduced-motion:reduce){#dice .dice-piece,#dice .dice-piece.rolling,#dice .dice-piece.landed{animation:none!important;transition:none!important;will-change:auto}}

/* Small, useful route-specific help after the real tool, never above it. */
.tools-faq{max-width:950px;margin:16px auto 0}
.tools-faq details{display:none;padding:0 14px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.tools-faq details.on{display:block}
.tools-faq summary{cursor:pointer;min-height:47px;display:flex;align-items:center;font-size:12px;color:var(--mute);font-weight:700}
.tools-faq p{font-size:12px;color:var(--mute);line-height:1.65;max-width:790px}
.tools-faq a{color:var(--gold)}
