:root{color-scheme:light;--ink:#201733;--muted:#5c536b;--paper:#f8f6fb;--white:#fff;--line:#e4ddee;--plum:#211536;--deep:#170e29;--accent:#6036ad;--lav:#eadfff;--gold:#ffdb8c;--max:1184px}
*{box-sizing:border-box}
html{scroll-padding-top:1rem}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.62 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:var(--accent);text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}
button,input,select{font:inherit}
button{cursor:pointer}
img,svg{display:block;max-width:100%}
h1,h2,h3,p{margin:0}
p+p{margin-top:.85rem}
h1,h2,h3{line-height:1.12;letter-spacing:-.026em}
h1{font-family:Georgia,serif;font-size:clamp(2.55rem,6.15vw,5rem);font-weight:700}
h2{font-family:Georgia,serif;font-size:clamp(1.75rem,3.8vw,2.6rem)}
h3{font-size:1.12rem}
:focus-visible{outline:3px solid #a768e4;outline-offset:4px}
[hidden]{display:none!important}
.shell{width:min(var(--max),calc(100% - 44px));margin-inline:auto}
.skip{position:absolute;inset:0 auto auto 1rem;z-index:9;transform:translateY(-150%);background:white;padding:.65rem 1rem}
.skip:focus{transform:none}
.riskstrip{background:#f7dda8;color:#352342;font-size:.8rem;font-weight:750}
.riskstrip .shell{display:flex;align-items:center;justify-content:space-between;gap:.45rem 1rem;flex-wrap:wrap;padding-block:.38rem}
.riskstrip a{color:inherit}
.header{background:#211634;color:white;border-bottom:1px solid #4a3862}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;min-height:70px}
.brand{display:inline-flex;align-items:center;gap:.7rem;color:inherit;text-decoration:none;line-height:1.08;white-space:nowrap}
.brand img{width:39px;height:39px}
.brand strong{display:block;font-size:1rem}
.brand small{display:block;margin-top:.28rem;font-size:.6rem;letter-spacing:.13em;text-transform:uppercase;color:#d4c6e6}
.nav{display:flex;gap:clamp(.7rem,2.2vw,1.7rem);align-items:center}
.nav a{display:inline-flex;min-height:44px;align-items:center;color:#ece5f6;text-decoration:none;font-size:.88rem;font-weight:650;white-space:nowrap}
.nav a:hover,.nav [aria-current]{color:#ffdf95;text-decoration:underline}
.nav-toggle{display:none;color:white;border:1px solid #695484;background:transparent;border-radius:9px;padding:.35rem .75rem;min-height:44px}
.hero{background:radial-gradient(ellipse at 80% 40%,#392451 0%,transparent 58%),linear-gradient(115deg,#19102d,#27163e);color:#fff;overflow:hidden}
.hero-inner{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:1.2rem;padding-block:clamp(2.8rem,6.3vw,5.1rem)}
.hero h1 em{color:#d2b4ff;font-style:normal}
.eyebrow{display:flex;align-items:center;gap:.55rem;margin-bottom:1.05rem;color:var(--accent);font-weight:800;font-size:.72rem;letter-spacing:.13em;text-transform:uppercase}
.eyebrow::before{content:"";width:8px;height:8px;background:currentColor;transform:rotate(45deg);border-radius:1px;flex:none}
.hero .eyebrow{color:var(--gold)}
.lead{font-size:clamp(1rem,2.1vw,1.16rem);max-width:61ch;margin-top:1rem;color:var(--muted)}
.hero .lead{color:#e2d8ec}
.hero-art{width:100%;height:auto;align-self:center}
.actions{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;margin-top:1.45rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:46px;border:1px solid transparent;border-radius:10px;background:var(--accent);color:#fff;font-weight:750;padding:.61rem 1.03rem;text-decoration:none;line-height:1.28;text-align:center}
.btn:hover{filter:brightness(1.12)}
.btn-gold{background:var(--gold);color:#33213f}
.btn-line{background:transparent;border-color:var(--line);color:var(--accent)}
.hero .btn-line{color:#f3eaff;border-color:#806a9b}
.markers{display:flex;flex-wrap:wrap;gap:.5rem 1.15rem;margin:1.3rem 0 0;padding:0;list-style:none;font-size:.77rem;color:#e6dcef}
.markers li::before{content:"◆";color:var(--gold);margin-right:.4rem;font-size:.57rem}
.markers a{color:inherit;font-weight:670}
.legal-ribbon{background:#f0e8fb;border-bottom:1px solid #e4d8f4}
.legal-ribbon .shell{display:flex;justify-content:space-between;align-items:center;gap:.55rem 1rem;flex-wrap:wrap;padding-block:.8rem;font-size:.88rem}
.section-block{padding-block:clamp(2.1rem,5vw,4.2rem)}
.section-block + .section-block{padding-top:0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:.75rem;flex-wrap:wrap;margin-bottom:1.25rem}
.section-head p{margin-top:.45rem;color:var(--muted);max-width:65ch}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.tile{padding:1.1rem;display:flex;flex-direction:column;align-items:start;gap:.6rem;background:white;border:1px solid var(--line);border-radius:15px;min-width:0}
.tile:hover{border-color:#bb9fdd}
.tile h3 a,.tile .tile-link{color:var(--ink);text-decoration:none}
.tile h3 a:hover,.tile .tile-link:hover{text-decoration:underline}
.tile p{font-size:.9rem;color:var(--muted)}
.tile .tile-link{font-weight:760;color:var(--accent);margin-top:auto;display:inline-flex;min-height:44px;align-items:center}
.tile-icon{width:54px;height:54px;object-fit:cover;border-radius:12px;background:#eee5fb;flex:none}
.tile-head{display:flex;align-items:center;gap:.7rem;width:100%}
.tile-icon.text{display:grid;place-items:center;color:var(--accent);font-size:1.35rem;font-weight:800}
.badge{display:inline-block;border-radius:999px;background:#eee5fb;color:#4e2788;font-weight:750;font-size:.71rem;line-height:1.35;padding:.28rem .58rem}
.badge.checked{background:#dff3e9;color:#174c39}
.directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem .85rem;padding:0;list-style:none}
.directory a{display:flex;align-items:center;gap:.65rem;min-height:49px;padding:.35rem .6rem;background:#fff;border:1px solid var(--line);border-radius:9px;text-decoration:none;font-weight:640;line-height:1.25}
.directory img{width:30px;height:30px;border-radius:6px}
.breadcrumb{padding-block:.82rem;font-size:.83rem;color:var(--muted)}
.breadcrumb ol{display:flex;gap:.45rem;flex-wrap:wrap;list-style:none;padding:0;margin:0}
.breadcrumb li+li::before{content:"›";margin-right:.45rem;color:#756187}
.article-hero{background:radial-gradient(ellipse at 88% 25%,#442758 0%,transparent 66%),var(--plum);color:white}
.article-hero .breadcrumb,.article-hero .breadcrumb a,.article-hero .breadcrumb li+li::before{color:#e7d9f3}
.article-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1.3rem;padding:.95rem 0 2.25rem}
.article-top h1{font-size:clamp(2.35rem,5.6vw,4.05rem);max-width:24ch;overflow-wrap:anywhere}
.article-top .eyebrow{color:var(--gold);margin-bottom:.7rem}
.article-top .lead{color:#e6dcec;margin-top:.75rem}
.article-top .btn-line{border-color:#9f88b3;color:#f9f0ff}
.article-top .actions{margin-top:1.05rem}
.action-note{margin-top:.46rem;font-size:.8rem;color:var(--muted)}
.article-top .action-note{color:#e8dcef}
.article-top .action-note a{color:inherit}
.hero-facts{display:flex;flex-wrap:wrap;gap:.45rem;margin:.9rem 0 0}
.hero-facts>div{padding:.38rem .62rem;border:1px solid #785f91;border-radius:8px;line-height:1.35}
.hero-facts dt{color:#eadcf5;font-size:.7rem}
.hero-facts dd{margin:0;color:#fff;font-size:.84rem;font-weight:750}
.payment-notice{padding:.58rem .7rem;background:#fff7e7;border-radius:7px;color:#422b39}
.article-image{width:clamp(88px,16vw,176px);height:auto;aspect-ratio:1;object-fit:cover;border-radius:20%;border:1px solid #a783c8;background:#3a245a}
.byline{display:flex;flex-wrap:wrap;gap:.2rem .75rem;font-size:.82rem;color:#eadcf5;margin-top:.95rem}
.byline a{color:inherit}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:1.4rem;align-items:start;padding-block:1.35rem 3rem}
.prose{min-width:0}
.panel,.toc{padding:clamp(1.05rem,3vw,1.65rem);background:white;border:1px solid var(--line);border-radius:15px;margin-bottom:1rem;overflow-wrap:anywhere}
.panel h2{margin-bottom:.75rem}
.panel h3{margin:.85rem 0 .38rem}
.panel h2 .tile-icon{width:34px;height:34px;display:inline-block;vertical-align:middle;margin-right:.38rem}
.panel :is(ul,ol){padding-left:1.25rem;margin:.75rem 0}
.panel li+li{margin-top:.3rem}
.panel .actions{margin-top:.9rem}
.toc{position:sticky;top:1rem;padding:1rem}
.toc h2{font:750 1rem/1.2 system-ui,sans-serif;margin:0 0 .4rem}
.toc a{display:block;padding:.38rem 0;text-decoration:none;line-height:1.3;font-size:.86rem}
.toc a:hover{text-decoration:underline}
.notice{border:1px solid #e5cd9a;border-left:4px solid #9b6623;background:#fff7e7;padding:.85rem .95rem;border-radius:10px;margin-bottom:1rem}
.notice p{margin-top:.28rem}
.note{color:var(--muted);font-size:.89rem}
.table-wrap{overflow-x:auto;margin-block:.8rem .45rem}
table{width:100%;border-collapse:collapse;font-size:.92rem;text-align:left}
caption{text-align:left;color:var(--muted);padding-bottom:.45rem;font-size:.85rem}
th,td{padding:.56rem .63rem;border-bottom:1px solid var(--line);vertical-align:top}
thead th{background:#eee6f8;color:#382451}
tbody th{font-weight:720;color:#392952}
tbody tr:nth-child(even){background:#faf7fc}
.facts th{width:42%}
.cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.cols>div{padding:.7rem .8rem;border-radius:9px;background:#f6f0fb}
.cols h3{margin-top:0}
.query-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem;list-style:none;margin:.7rem 0 0!important;padding:0!important}
.query-grid li{margin:0!important;background:#f4eefb;border-radius:7px;padding:.45rem .52rem;font-size:.82rem;line-height:1.4}
.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
.gallery figure{margin:0}
.gallery img{width:100%;height:auto;border-radius:8px}
.gallery figcaption{font-size:.75rem;color:var(--muted);margin-top:.3rem}
.foot{background:var(--deep);color:#e4d8ee;padding-block:1.7rem 2rem}
.foot a{color:#e4d8ee}
.footer-row{display:flex;justify-content:space-between;gap:1.15rem 2rem;flex-wrap:wrap}
.foot .brand{align-self:start}
.foot nav{display:flex;gap:.15rem .9rem;flex-wrap:wrap}
.foot nav a{font-size:.85rem;min-height:37px;display:inline-flex;align-items:center}
.foot .footer-legal{font-size:.84rem;max-width:95ch;margin-top:1rem}
.footer-legal strong{color:var(--gold)}
.mobile-bottom-container{display:none}
.hand-tool{padding:1rem;background:#f5eefb;border:1px solid #e2d3f1;border-radius:12px;margin-top:1rem}
.hand-tool fieldset{border:0;padding:0;margin:.8rem 0;min-width:0}
.hand-tool legend{font-weight:760;margin-bottom:.35rem}
.hand-actions,.hand-slots,.rank-grid,.suit-grid{display:flex;flex-wrap:wrap;gap:.36rem}
.hand-slots button,.rank-grid button,.suit-grid button,.tool-button{background:white;color:var(--ink);border:1px solid #cdbbdd;border-radius:8px;min-width:44px;min-height:44px;padding:.35rem .55rem;font-weight:700}
.hand-slots button{min-width:64px;min-height:55px;font-size:1.15rem}
.hand-tool button[aria-pressed="true"]{background:#6036ad;color:white;border-color:#6036ad}
.hand-tool .red{color:#9a2342}
.hand-result{min-height:3.1rem;padding:.55rem .7rem;background:white;border-left:3px solid var(--accent);margin-top:.8rem;border-radius:6px}
.hand-actions{margin-top:.7rem}
.hand-tool label{display:block;font-weight:700}
.hand-tool select{max-width:100%;min-height:44px;padding:.3rem;border:1px solid #cdbbdd;border-radius:7px;background:white;color:var(--ink)}
.search-row{margin:.65rem 0 1rem;display:flex;align-items:center;gap:.5rem 1rem;flex-wrap:wrap}
.search-row label{font-weight:750}
.search-row input{min-height:44px;border:1px solid #a58dbb;border-radius:8px;background:white;padding:.5rem .75rem;width:min(100%,320px);color:var(--ink)}
@media(max-width:950px){.article-layout{grid-template-columns:minmax(0,1fr) 205px}.nav{gap:.7rem}.nav a{font-size:.82rem}}
@media(max-width:767px){
 .shell{width:calc(100% - 32px)}.header-row{min-height:60px;flex-wrap:wrap;gap:0}.nav-toggle:not([hidden]){display:inline-flex;align-items:center}.nav{width:100%;flex-wrap:wrap;justify-content:space-between;padding-bottom:.48rem}
 .hero-inner{grid-template-columns:1fr;gap:.35rem;padding-block:1.65rem .65rem}.hero-art{width:min(100%,290px);margin-inline:auto}
 .grid,.directory{grid-template-columns:repeat(2,minmax(0,1fr))}
 .article-layout{grid-template-columns:1fr;gap:.7rem}.toc{position:static;grid-row:1;margin:0}.has-download .toc{grid-row:auto}.toc nav{display:flex;flex-wrap:wrap;gap:0 .85rem}
 .article-top{gap:.55rem}.article-image{width:66px;align-self:start}.article-top h1{font-size:clamp(2.12rem,8.2vw,3.35rem)}
 .mobile-bottom-container{--safe-bottom:env(safe-area-inset-bottom,0px);position:fixed;z-index:8;inset:auto 0 0;display:flex;justify-content:center;padding:9px 16px calc(9px + var(--safe-bottom));background:linear-gradient(transparent,#1c1129bc);opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity 180ms ease,transform 180ms ease,visibility 180ms ease}
 .mobile-bottom-container.is-visible{opacity:1;visibility:visible;transform:none}
 .floating-download-btn{max-width:420px;width:100%;min-height:52px;border:1px solid #fff0bf;border-radius:999px;box-shadow:0 4px 14px #23142b45}
 .floating-download-btn svg{width:21px;height:21px;flex:none}
 .floating-copy{display:grid;gap:.15rem}
 .floating-copy small{font-size:.7rem;font-weight:650}
 body.has-download .foot{padding-bottom:calc(5.65rem + env(safe-area-inset-bottom,0px))}
}
@media(max-width:435px){.tile{padding:.75rem}.tile-head{align-items:flex-start}.tile-icon{width:39px;height:39px}.tile h3{font-size:1rem}.tile p{font-size:.82rem}.tile .tile-link{font-size:.82rem}.query-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cols{grid-template-columns:1fr}.facts th{width:38%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

.wide{min-width:630px}
