@font-face{font-family:Tajawal;src:url(fonts/Tajawal-Regular.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Tajawal;src:url(fonts/Tajawal-Bold.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:Tajawal;src:url(fonts/Tajawal-ExtraBold.woff2) format("woff2");font-weight:800;font-display:swap}
:root{--ink:#103e39;--teal:#095d52;--paper:#faf6ed;--line:#d9d2c2;--muted:#50665f;--gold:#eac076;--edge:clamp(1.15rem,5vw,6rem);color-scheme:light}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:1.125rem/1.75 Tajawal,Arial,sans-serif}
h1,h2,h3,p,figure,dl,dd{margin:0}
h1,h2,h3{line-height:1.22;text-wrap:balance}
a{color:var(--teal);text-underline-offset:.27em}
:focus-visible{outline:3px solid #bb7621;outline-offset:4px}
img{display:block;max-width:100%;height:auto}
.icon{width:1.3em;height:1.3em;flex:none;vertical-align:middle}
.wrap{width:min(100% - 2 * var(--edge),82rem);margin-inline:auto}
.skip{position:absolute;z-index:9;inset-inline-start:1rem;top:-6rem;background:white;padding:.7rem}.skip:focus{top:.5rem}
header{background:#fffdf6;border-bottom:1px solid var(--line)}
.head{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:5rem}
.brand{display:block;flex:none}.brand img{width:5rem}
nav,.actions,.store,.inline{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
.head nav{gap:clamp(.8rem,2.5vw,2.5rem)}
.head nav a,.foot a{padding:.55rem .15rem;color:inherit;text-decoration:none;font-weight:700}
.head nav a[aria-current],.head nav a:hover,.foot a:hover{box-shadow:inset 0 -2px #a57232}
.btn,.store,.btn:visited{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:3rem;padding:.55rem 1.3rem;border-radius:.45rem;background:var(--teal);color:white;text-decoration:none;font-weight:700}
.btn:hover,.store:hover{filter:brightness(1.13)}.small{min-height:2.7rem;font-size:1rem}.head .small{white-space:nowrap}
.hero{position:relative;isolation:isolate;overflow:hidden;background:#0c3934;color:white}
.hero>.scene{position:absolute;z-index:-2;left:0;top:0;width:64%;height:100%;object-fit:cover;object-position:center}
.hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,transparent 28%,rgba(12,57,52,.18) 39%,#0c3934 65%)}
.hero:after,.intro:after,.endcap:after{content:"";position:absolute;inset:0;pointer-events:none;background:url(icons/weave.svg) top right/6.2rem;opacity:.36;mask-image:linear-gradient(270deg,black,transparent 37%);z-index:-1}
.hero-inner{padding-block:clamp(3.2rem,6vw,6rem);min-height:31.5rem;display:flex;align-items:center}
.hero-copy{width:45%;max-width:35rem}
.kicker{display:flex;align-items:center;gap:.65rem;color:#845d2e;font-size:1rem;font-weight:700;margin-bottom:.8rem}
.kicker:before{content:"";width:1.9rem;height:2px;background:currentColor}.hero .kicker{color:var(--gold)}
.hero h1{font-size:clamp(3.4rem,5.6vw,6rem);line-height:1.13;font-weight:800}.hero h1 span{display:block;color:var(--gold)}
.hero p{max-width:29rem;font-size:1.25rem;line-height:1.65;color:#ecf0e9;margin:1rem 0 1.65rem}
.gold,.gold:visited{background:var(--gold);color:#183c31}.ghost{background:transparent;border:1px solid #9bad9e;color:white}
.stats{background:#f2ebdc;border-block-end:1px solid var(--line)}.numbers{display:grid;grid-template-columns:repeat(4,1fr);padding-block:1.5rem}
.stat{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;justify-content:center;align-items:center;column-gap:1rem}.stat+.stat{border-inline-start:1px solid #cbbfa7}
.stat dt{grid-row:2;grid-column:2;color:var(--muted);font-weight:700;font-size:.95rem}.stat dd{grid-column:2;grid-row:1;font:700 clamp(1.65rem,2.6vw,2.7rem)/1.18 Georgia,serif;color:var(--ink);direction:ltr;text-align:right}.stat .icon{grid-row:1/3;grid-column:1;width:2.25rem;height:2.25rem;color:#93682d}
.section{padding-block:clamp(2.8rem,5.5vw,5.5rem)}
h2{font-size:clamp(2rem,3.2vw,3.35rem);font-weight:800}h3{font-size:1.45rem}
.split{display:grid;grid-template-columns:1fr 1.04fr;align-items:center;gap:clamp(2rem,6vw,7rem)}
.split p,.lede{color:var(--muted);max-width:47rem;font-size:1.22rem;margin:1rem 0}
.photo{width:100%;aspect-ratio:1.72;object-fit:cover;border-radius:.6rem}
.link{display:inline-flex;gap:.55rem;align-items:center;font-weight:700;min-height:2.75rem}
.band{background:#f0ebdf}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.3rem;margin-block-start:1.8rem}
.card{display:block;padding:1.55rem;border:1px solid var(--line);border-radius:.65rem;background:#fffdf8;color:inherit;text-decoration:none}.card .icon{color:#865d25;width:2.4rem;height:2.4rem}.card h3{margin:.9rem 0 .6rem}.card p{color:var(--muted)}a.card:hover{border-color:var(--teal)}
.endcap,.intro{position:relative;isolation:isolate;background:#103e39;color:white}.endcap{padding:2.4rem;border-radius:.75rem;display:flex;align-items:center;justify-content:space-between;gap:1.5rem}.endcap p,.intro p{color:#e0ebe2;margin-top:.5rem}
.store{background:#f6eedf;color:#133e37;min-width:9rem;direction:ltr;border:1px solid var(--line)}
.foot{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding-block:1.4rem;border-block-start:1px solid var(--line);font-size:1rem}
.foot nav{gap:1.1rem}.foot img{width:4rem}
.intro{padding-block:2.5rem}.intro h1{font-size:clamp(2.65rem,5vw,4.8rem)}.intro .kicker{color:var(--gold)}.intro .kicker a{color:inherit}.intro p{font-size:1.25rem;max-width:49rem}
.article{max-width:55rem;margin-inline:auto}.article p,.article li{margin:.7rem 0}.article h2,.section-head{margin-block:2rem .75rem}.article h2{font-size:1.85rem}.article>:first-child{margin-top:0}
.toc{display:flex;gap:.6rem;flex-wrap:wrap;margin:0 0 2rem}.toc a{padding:.5rem .9rem;background:#eee8d9;border-radius:.4rem;font-weight:700}.rule{border-top:1px solid var(--line);padding-bottom:1.3rem;scroll-margin-top:1rem}.rule ul{padding-inline-start:1.4rem}
table{width:100%;border-collapse:collapse;background:#fffcf6}th,td{text-align:start;padding:.55rem 1.1rem;border-bottom:1px solid var(--line)}thead{background:var(--ink);color:white}caption{font-weight:700;text-align:start;margin-bottom:.8rem}

@media(max-width:55rem){.head{gap:.65rem;flex-wrap:wrap;padding-top:.55rem}.head nav{order:3;width:100%;justify-content:center;gap:1.25rem}.hero-copy{width:55%}.hero-inner{min-height:28rem}.hero:before{background:linear-gradient(90deg,transparent 15%,#0c3934 61%)}.cards{gap:.7rem}.stat{column-gap:.5rem}.stat .icon{width:1.6rem;height:1.6rem}.endcap{align-items:flex-start;flex-direction:column}}
@media(max-width:38rem){.head nav{gap:.35rem 1rem;font-size:1rem}.brand img{width:3.9rem}.hero-inner{min-height:auto;padding:2rem 0 1.8rem}.hero{display:flex;flex-direction:column}.hero-copy{width:100%;max-width:none}.hero h1{font-size:3.35rem}.hero h1 span{display:inline}.hero p{font-size:1.12rem;margin:.6rem 0 1rem}.hero>.scene{position:static;order:2;width:100%;height:auto;aspect-ratio:2.25;object-position:center 54%}.hero:before{display:none}.hero:after{mask-image:linear-gradient(270deg,black,transparent 90%)}.numbers{grid-template-columns:1fr 1fr;gap:1rem 0;padding-block:1rem}.stat:nth-child(3){border:0}.stat{justify-content:start;padding-inline:1rem}.split,.cards{grid-template-columns:1fr}.split{gap:1.4rem}.endcap{padding:1.4rem}.foot nav{gap:.5rem 1rem}}
@media(forced-colors:active){.btn,.card,.store{border:1px solid ButtonText}}
.stat{position:relative;display:flex;flex-direction:column-reverse;align-items:start;padding-inline-start:clamp(3.4rem,7vw,7rem)}
.stat dt .icon{position:absolute;inset-inline-start:clamp(.55rem,3.1vw,3.2rem);top:50%;transform:translateY(-50%)}
#query{display:block;width:100%;font:inherit;padding:.6rem 1rem;border:1px solid #887b65;border-radius:.45rem;background:#fffefb;color:inherit}
#results li{margin-block:1rem}#results p{margin:0}
@media(max-width:38rem){.stat{padding-inline-start:3.4rem}.stat dt .icon{inset-inline-start:1rem}}
.mobile-menu{display:none}
.board-guide{display:flex;align-items:center;flex-wrap:wrap;gap:1.5rem;background:#f2ebdd;border:1px solid var(--line);padding:1.3rem;border-radius:.65rem;margin-bottom:2rem}
.board-guide img{width:10rem}.board-guide figcaption{flex:1 1 12rem}.board-guide strong{font-size:1.55rem}
@media(max-width:38rem){
.head{min-height:4rem;flex-wrap:nowrap;padding-block:.4rem}
.head>nav{display:none}.mobile-menu{display:block;position:relative}
.mobile-menu summary{cursor:pointer;font-weight:700;padding:.55rem;min-height:2.75rem}
.mobile-menu nav{position:absolute;z-index:4;top:100%;inset-inline-start:0;min-width:10rem;display:grid;justify-content:stretch;gap:0;padding:.5rem 1rem;background:#fffdf6;border:1px solid var(--line);border-radius:.45rem;box-shadow:0 .4rem 1.2rem #103e3920}
.hero h1{font-size:clamp(2.85rem,12.5vw,3.5rem)}.hero h1 span{display:block}
.stat{min-width:0}.numbers{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,6vw,6rem)}
#contact-draft label{display:block;font-weight:700}
#contact-draft input,#contact-draft textarea{display:block;width:100%;border:1px solid #8b806b;border-radius:.4rem;background:#fffdf7;color:var(--ink);font:inherit;padding:.5rem .7rem;margin-bottom:1rem}
#contact-draft textarea{resize:vertical}#contact-draft button{cursor:pointer;font-family:inherit;font-size:1.125rem;border:0}
@media(max-width:45rem){.contact-layout{grid-template-columns:1fr}}
@media(max-width:23rem){
.head{gap:.35rem}.head .small{padding:.45rem .65rem}.head .small .icon{display:none}.mobile-menu summary{padding:.45rem .25rem}.head .brand img{width:3.4rem}
}

/* Original game examples and rank artwork */
.rule-example {margin:1.25rem 0;padding:1rem;background:#f3eddf;border-radius:.6rem}
.rule-example picture img {display:block;width:min(100%,23rem);height:auto;aspect-ratio:1;object-fit:contain;margin:.65rem 0;background:#f3eddf}
.rule-example figcaption {font-weight:700}
.source-image {width:auto;max-width:min(100%,25rem);max-height:24rem;object-fit:contain;margin:1rem 0}
.rank-badge {display:inline-block;width:clamp(3.5rem,11vw,8.5rem);vertical-align:middle;margin-inline-start:.65rem}
.rank-table th,.rank-table td {padding-inline:clamp(.45rem,2vw,1rem)}
.component-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:1.5rem}
.component-grid .source-image {max-width:100%;height:9rem}
.archive-levels {margin-block:1.25rem}.archive-levels summary {cursor:pointer;font-weight:700;padding:.7rem 0}
.guide-thumb {width:100%;max-height:13rem;object-fit:contain}
.lang-switch{margin-inline-start:auto;padding:.4rem .75rem;border:1px solid var(--line);border-radius:999px;color:inherit;font-weight:700;text-decoration:none;white-space:nowrap}
.lang-switch:hover{border-color:#a57232}
[dir=ltr] .hero>.scene{left:auto;right:0}
[dir=ltr] .hero:before{background:linear-gradient(270deg,transparent 28%,rgba(12,57,52,.18) 39%,#0c3934 65%)}
[dir=ltr] .hero:after,[dir=ltr] .intro:after,[dir=ltr] .endcap:after{background-position:top left;mask-image:linear-gradient(90deg,black,transparent 37%)}
[dir=ltr] .stat dd{text-align:left}
@media(max-width:55rem){[dir=ltr] .hero:before{background:linear-gradient(270deg,transparent 15%,#0c3934 61%)}}
@media(max-width:38rem){[dir=ltr] .hero:after{mask-image:linear-gradient(90deg,black,transparent 90%)}}
