/* Site round 8 (2026-11-29), from the owner's notes: a quiet hero, digits 0–9 in Alexandria,
   tidy tickets with smaller steps, players only on cards, and Cipher in its own identity. */

/* One family for the whole site (owner, 2026-11-29): Alexandria, headings heavy. */
:root{--disp:'Alexandria',system-ui,sans-serif!important}
.cg-store h1,.cg-store h2,.cg-store h3,.cg-store .opentag,.cg-store .cg-back-title,.cg-store .gs-unit{font-family:'Alexandria',system-ui,sans-serif!important;letter-spacing:-.005em}

/* Digits 0–9 always come from Alexandria, also inside Lalezar headings; headings draw them heavy. */
@font-face{font-family:'Lalezar';font-style:normal;font-weight:400;font-display:block;src:url('./alexandria-latin.woff2') format('woff2');unicode-range:U+0030-0039,U+0025,U+002B,U+2013}
h1,h2,h3,b,strong,.cg-back-title,.gs-unit,.opentag{font-variation-settings:'wght' 800}

/* Hero (owner, 2026-11-29): the sentence, the TV with phones, one caption, the free-round button. */
.cg-store #eye,.cg-store #heroText,.cg-store #demo{display:none!important}
.cg-store .hero .sgrid{display:flex;flex-direction:column;align-items:center;text-align:center;gap:0;padding:clamp(58px,15vw,40px) 4px clamp(22px,6vw,30px)}
.cg-store .hero .stxt{padding:0}
.cg-store #heroTitle{margin:0;color:#fff;white-space:nowrap;font-size:clamp(28px,8.6vw,64px);line-height:1.2;font-variation-settings:'wght' 880}
.cg-store #heroTitle em{display:block;font-style:normal;color:#f3d9a0;font-size:.66em;font-variation-settings:'wght' 720;margin-top:.42em;line-height:1.2}
.cg-store .r8-scene{width:min(92%,460px);height:auto;display:block;margin:clamp(18px,5vw,26px) auto clamp(10px,3vw,14px)}
.cg-store .r8-cap{margin:0 0 clamp(18px,5vw,24px);color:#d9eaea;font-size:clamp(14px,3.8vw,19px);font-weight:500;line-height:1.6;max-width:26em;text-wrap:balance}
.cg-store .r8-cta{display:block;width:min(100%,520px);box-sizing:border-box;text-align:center;background:#e3ae4a;color:#0f2124;font-weight:800;font-size:clamp(17px,4.6vw,22px);padding:13px 20px;border-radius:13px;text-decoration:none;border:2px solid #0b1a1c;box-shadow:0 4px 0 #0b1a1c;margin-top:4px;transition:transform .15s,box-shadow .15s}
.cg-store .r8-cta:active{transform:translateY(3px);box-shadow:0 1px 0 #0b1a1c}

/* Cards: one chip, the suggested players. */
.cg-store .rk-card .meta span{white-space:nowrap}

/* Ticket back: smaller, calmer steps that sit on one line where they can. */
.cg-store .cg-ticket-back .cg-back-title{font-size:clamp(26px,7vw,31px);margin-bottom:14px}
.cg-store .cg-ticket-back .cg-how-film{min-height:0;padding:20px 17px}
@media(max-width:380px){.cg-store .cg-ticket-back .cg-how-list li{white-space:normal}}
.cg-store .cg-ticket-back .cg-how-list{gap:14px}
.cg-store .cg-ticket-back .cg-how-list li{font-size:clamp(12.5px,3.35vw,14.5px)!important;white-space:nowrap;font-weight:500;line-height:1.5;align-items:center;gap:7px}
.cg-store .cg-ticket-back .cg-how-list li i{width:22px;height:22px;font-size:12px;font-weight:700}
.cg-store .cg-ticket-back .gs-unit-1{margin-bottom:4px}
.cg-store .cg-ticket-back .gs-unit-2{font-size:clamp(13px,3.5vw,14.5px);font-weight:500;font-variation-settings:'wght' 500;line-height:1.55;margin:0;opacity:.82}
.cg-store .cg-ticket-back .gs-unit-2:last-of-type{margin-bottom:8px}
.cg-store .cg-tear-hint:empty{display:none}

/* Cipher: sage paper with the dot-dash tile, mid-green stage and stub, cream and soft gold dial. */
.cg-store .rk-card:has([data-game=cipher]) .tm{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='72' fill='%23283618' fill-opacity='.06'%3E%3Ccircle cx='12' cy='14' r='5'/%3E%3Crect x='26' y='9' width='26' height='10' rx='5'/%3E%3Ccircle cx='66' cy='14' r='5'/%3E%3Ccircle cx='104' cy='14' r='5'/%3E%3Crect x='118' y='9' width='26' height='10' rx='5'/%3E%3Crect x='6' y='45' width='26' height='10' rx='5'/%3E%3Ccircle cx='46' cy='50' r='5'/%3E%3Ccircle cx='62' cy='50' r='5'/%3E%3Crect x='92' y='45' width='26' height='10' rx='5'/%3E%3Ccircle cx='132' cy='50' r='5'/%3E%3Ccircle cx='150' cy='50' r='5'/%3E%3C/svg%3E") 0 0/112px 48px,linear-gradient(#e8ecd8,#dfe6cb);color:#283618}
.cg-store .rk-card:has([data-game=cipher]) .tm .lg{width:min(64%,13.5em);height:auto}
.cg-store .rk-card:has([data-game=cipher]) .tm h3{color:#283618}
.cg-store .rk-card:has([data-game=cipher]) .meta span{background:#f5f2e0;color:#283618;box-shadow:inset 0 0 0 1px #2836182e}
.t-cipher{--stub:#43572a;--bb:#e8ecd8;--bt:#283618}
.t-cipher .howb ol,.t-cipher .howb .steps{background:linear-gradient(#62773f,#43572a)}
.t-cipher .art{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='72' fill='%23283618' fill-opacity='.06'%3E%3Ccircle cx='12' cy='14' r='5'/%3E%3Crect x='26' y='9' width='26' height='10' rx='5'/%3E%3Ccircle cx='66' cy='14' r='5'/%3E%3Ccircle cx='104' cy='14' r='5'/%3E%3Crect x='118' y='9' width='26' height='10' rx='5'/%3E%3Crect x='6' y='45' width='26' height='10' rx='5'/%3E%3Ccircle cx='46' cy='50' r='5'/%3E%3Ccircle cx='62' cy='50' r='5'/%3E%3Crect x='92' y='45' width='26' height='10' rx='5'/%3E%3Ccircle cx='132' cy='50' r='5'/%3E%3Ccircle cx='150' cy='50' r='5'/%3E%3C/svg%3E") 0 0/112px 48px,linear-gradient(#e8ecd8,#dfe6cb);color:#283618}
.t-cipher .sfilm{background:linear-gradient(#62773f,#43572a);box-shadow:inset 0 0 0 .14em #c4a35e}
.t-cipher .sfilm .dial{width:auto;height:78%;margin:0}
.t-cipher .pl{width:66%}
.t-cipher h2{color:#283618}

/* The ticket keeps its full size (owner, 2026-11-29); the back's content is spread evenly through it. */
.cg-store .cg-ticket-back .cg-back-main-inner{display:flex;flex-direction:column;justify-content:safe center;padding-top:clamp(24px,6vw,30px)!important;padding-bottom:clamp(18px,5vw,24px)!important}
.cg-store .cg-ticket-back .cg-back-title{margin:0 0 18px!important}
.cg-store .cg-ticket-back .cg-how-film{flex:none;padding-block:24px!important}
.cg-store .cg-ticket-back .cg-how-film .cg-how-list{gap:20px!important}
.cg-store .cg-ticket-back .cg-live-details{padding-top:0!important;margin-top:24px;margin-bottom:0!important;flex:none!important}
.cg-store .cg-ticket-back .gs-meter{gap:10px}

/* Sign-in and code-scan windows: the page colour covers the page behind, like the ticket and the shop. */
.cg-store .overlay{background:#f0f5f6!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.cg-store .overlay.show>*{animation:r7-fade .18s ease-out}

/* The shop sign reads «مفتوح» with a lit lamp, like an open sign on a shop door. */
.cg-store .opentag{display:inline-flex;align-items:center;gap:7px;padding:8px 12px 6px;border-radius:8px;box-shadow:0 3px 0 var(--sh),inset 0 0 0 3px var(--signem),inset 0 0 0 4.5px color-mix(in srgb,var(--sh) 25%,transparent)}
.cg-store .opentag .lamp{width:9px;height:9px;border-radius:50%;background:#2fbf71;box-shadow:0 0 0 2px #2fbf7133,0 0 10px #2fbf71}
@media (prefers-reduced-motion:no-preference){.cg-store .opentag .lamp{animation:r8-lamp 2.4s ease-in-out infinite}}
@keyframes r8-lamp{50%{opacity:.55}}

/* The open plaque hangs from the awning on two strings. */
.cg-store .hero .opentag{font-size:16px;line-height:1;padding:7px 14px 10px;top:24px;background:#fbf3df;color:#0f2124;border:2.5px solid #0b1a1c;border-radius:9px;box-shadow:0 4px 0 #0b1a1c,inset 0 0 0 3px #fbf3df,inset 0 0 0 4.5px #0b1a1c40}
.cg-store .hero .opentag::before,.cg-store .hero .opentag::after{top:-17px;height:15px;width:2px}

/* Alexandria is wider than Lalezar: card lines step down, and headings keep their weight everywhere. */
.cg-store .rk-card .tm h3{font-size:clamp(15px,4.05vw,19px)!important;line-height:1.45;font-weight:700!important;font-variation-settings:'wght' 700!important}
.cg-store h1,.cg-store h2,.cg-store h3,.cg-store .cg-back-title,.cg-store .gs-unit:not(.gs-unit-2){font-weight:800!important;font-variation-settings:'wght' 800!important}
.cg-store #heroTitle{font-variation-settings:'wght' 880!important}
.cg-store #heroTitle em{font-variation-settings:'wght' 760!important}

/* Wide screens: words and button on one side, the drawing on the other, so nothing floats in empty space. */
@media (min-width:900px){
 .cg-store .hero .sgrid{display:grid;grid-template-columns:1fr 1.1fr;grid-template-rows:auto auto auto;grid-template-areas:"t s" "b s" ". c";align-content:center;column-gap:clamp(32px,5vw,72px);text-align:start;padding:clamp(40px,3.6vw,56px) clamp(20px,3vw,48px) clamp(30px,2.8vw,44px)}
 .cg-store .hero .stxt{grid-area:t;align-self:end}
 .cg-store .r8-scene{grid-area:s;align-self:center;width:100%;max-width:560px;margin:0;justify-self:center}
 .cg-store .r8-cap{grid-area:c;justify-self:center;text-align:center;max-width:none;margin:14px 0 0;white-space:nowrap;font-size:clamp(15px,1.25vw,19px)}
 .cg-store .r8-cta{grid-area:b;align-self:start;width:auto;justify-self:start;padding:15px 44px;margin-top:clamp(20px,2vw,30px)}
 .cg-store #heroTitle{font-size:clamp(40px,4vw,62px)}
}



/* The shop front: a soft light behind the goods and a thin painted frame inside the board, so the
   petroleum face reads as a sign, not a flat block. */
.cg-store .hero .sign-in{background:radial-gradient(120% 70% at 50% 38%,#ffffff12,#ffffff00 62%);border-radius:10px;box-shadow:inset 0 0 0 1.5px #fbf3df1f}

/* The shop on its street (owner, 2026-11-30): softer wallpaper stripes, the awning's shade on the
   board, and a soft shadow where the shop meets the pavement. */
body{--sb:#d9e7e8!important}
.cg-store .hero .sign-in{background:linear-gradient(#0000002b,#0000 34px),radial-gradient(120% 70% at 50% 38%,#ffffff12,#ffffff00 62%)}
.cg-store .hero .shopf::after{content:'';position:absolute;z-index:-1;left:3%;right:3%;bottom:-30px;height:34px;background:radial-gradient(closest-side,#0f212433,#0f212400);pointer-events:none}
.cg-store .hero .sign{box-shadow:6px 7px 0 var(--sh),0 26px 44px -18px #0f212459}

/* r8: a faint pattern of the logo's diamond around the shop's inner edges, clear behind the content */
.cg-store .hero .sgrid{position:relative;z-index:1}
.cg-store .hero .sign-in::before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:10px;opacity:.13;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'44'%20height%3D'44'%20viewBox%3D'0%200%2044%2044'%3E%3Cg%20fill%3D'%23fbf3df'%3E%3Cpath%20d%3D'M22%2013l9%209-9%209-9-9z'%20fill%3D'none'%20stroke%3D'%23fbf3df'%20stroke-width%3D'1.4'%2F%3E%3Cpath%20d%3D'M22%2019l3%203-3%203-3-3z'%2F%3E%3Cpath%20d%3D'M0%20-3l3%203-3%203-3-3zM44%20-3l3%203-3%203-3-3zM0%2041l3%203-3%203-3-3zM44%2041l3%203-3%203-3-3z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/40px 40px;-webkit-mask:radial-gradient(70% 62% at 50% 50%,#0000 58%,#000 100%);mask:radial-gradient(70% 62% at 50% 50%,#0000 58%,#000 100%)}
@media (max-width:899px){.cg-store .hero .sign-in::before{-webkit-mask:radial-gradient(85% 60% at 50% 50%,#0000 66%,#000 100%);mask:radial-gradient(85% 60% at 50% 50%,#0000 66%,#000 100%)}}
