/* Site round 6 (2026-11-11): phone fit, status-bar clearance, ticket window, ticket back, hero offer. */

/* iPhone home-screen app: give back the strip the status bar takes from the page height. */
@media (display-mode:standalone){html{min-height:calc(100% + env(safe-area-inset-top,0px))}}

/* Dialogs sit below the phone's status bar. */
.cg-store .cg-ticket-dialog .gs-close{top:calc(13px + env(safe-area-inset-top,0px));left:max(15px,env(safe-area-inset-left,0px))}
.cg-store .cg-ticket-name{top:calc(18px + env(safe-area-inset-top,0px));right:max(18px,env(safe-area-inset-right,0px))}
.cg-store .game-sheet.cg-ticket-dialog{width:min(390px,78vw,calc((100dvh - 100px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))*.55));max-height:calc(100dvh - 90px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));top:calc(env(safe-area-inset-top,0px) + 34px)}
.cg-store .tk-shop .tk-head{padding-top:calc(55px + env(safe-area-inset-top,0px))}
.cg-store .tk-shop .tk-head>.awn{top:0;height:calc(42px + env(safe-area-inset-top,0px))}
.cg-store .tk-shop #shopClose{top:calc(52px + env(safe-area-inset-top,0px))}
.cg-store dialog.tk-shop{padding-bottom:max(30px,env(safe-area-inset-bottom,0px))}

/* Hero offer: a clear button with the game's full name. */
.after .cg-free{display:inline-flex;align-items:center;gap:10px;max-width:100%;padding:9px 16px;border:2px solid var(--ink,#00191c);border-radius:999px;background:var(--acc2,#f3e9d2);color:var(--ink,#00191c);font-size:15px;line-height:1.35;text-decoration:none;box-shadow:0 3px 0 var(--ink,#00191c)}
.after .cg-free b{font-weight:800}
.after .cg-free i{font-style:normal;font-weight:700;font-size:13px;padding:2px 10px;border-radius:999px;background:var(--acc,#005f6b);color:#fff;white-space:nowrap}
.after{gap:10px}

/* Ticket back: one short line under the strip; nothing is cut by the stub. */
.cg-store .cg-ticket-back .gs-meter{gap:6px;margin:4px 0 0}
.cg-store .cg-ticket-back .gs-unit{font-size:clamp(16px,4.6vw,20px);line-height:1.3}
.cg-store .cg-ticket-back .gs-strip{height:26px}
.cg-store .cg-ticket-back .gs-cap{font-size:clamp(12.5px,3.5vw,15px);line-height:1.4;min-height:1.4em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cg-store .cg-ticket-back .cg-how-list{gap:8px}
.cg-store .cg-ticket-back .cg-how-list li{font-size:clamp(13.5px,3.8vw,16px);line-height:1.45}

/* Ticket window: three bundles, tap one, pay. Price lives on the stub. */
.cg-store .tk-shop #shopBody{max-width:520px;margin-inline:auto;padding-inline:max(18px,env(safe-area-inset-left,0px))}
.cg-store .tk-shop .tk-head{margin-bottom:18px}
.cg-store .tk-have{margin:0 0 18px;text-align:center;font-size:16px;font-weight:600;color:var(--ink)}
.cg-store .tk-have b{font:400 26px/1 var(--disp);color:var(--acc);margin-inline:3px}
.cg-store .tk-shop .tk-packs{display:grid;gap:22px;padding-bottom:16px}
.cg-store .pk{position:relative;display:block;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:right;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .2s cubic-bezier(.25,1.3,.4,1)}
.cg-store .pk:active{transform:scale(.985)}
.cg-store .pk .pk-ly{position:absolute;inset:0;border-radius:12px;background:var(--tkp);border:2px solid var(--ink);transform:translate(calc(var(--k)*4px),calc(var(--k)*5px)) rotate(calc(var(--k)*.8deg))}
.cg-store .pk .pk-t{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 92px;min-height:96px;border-radius:12px;overflow:hidden;border:2px solid var(--ink);background:var(--tkp)}
.cg-store .pk .pk-m{position:relative;display:flex;align-items:center;gap:12px;padding:12px 18px}
.cg-store .pk .pk-m>b{font:400 52px/1 var(--disp);color:var(--acc)}
.cg-store .pk .pk-m>span{font-weight:700;font-size:17px;color:var(--ink)}
.cg-store .pk .pk-m>em{position:absolute;top:10px;left:12px;font-style:normal;font-weight:800;font-size:12.5px;padding:3px 11px;border-radius:999px;background:var(--ink);color:var(--acc2)}
.cg-store .pk .pk-s{display:grid;place-content:center;justify-items:center;gap:1px;background:var(--acc);color:var(--acc2);border-right:2px dashed #fff8;transition:background .2s,color .2s}
.cg-store .pk .pk-s b{font:400 30px/1 var(--disp)}
.cg-store .pk .pk-s small{font-size:13px;font-weight:700}
.cg-store .pk[aria-checked=true] .pk-t{box-shadow:0 0 0 3px var(--acc)}
.cg-store .pk[aria-checked=true] .pk-s{background:var(--acc2);color:var(--ink)}
.cg-store .pk[aria-checked=true]{transform:translateY(-3px)}
.cg-store .pk:focus-visible .pk-t{outline:3px solid var(--acc);outline-offset:3px}
.cg-store .tk-shop .tk-checkout{border-top:0;margin-top:30px;padding-top:0;display:grid;gap:10px}
.cg-store .tk-shop .tk-pay{width:100%;justify-content:center;font-size:18px;font-weight:800;min-height:56px}
.cg-store .tk-shop .tk-pay:disabled{opacity:.45}
.cg-store .tk-shop .tk-redirect{margin:0;text-align:center;font-size:13px;line-height:1.6;color:var(--ink2)}
.cg-store .tk-foot{margin-top:24px;text-align:center}
.cg-store .tk-foot strong{display:block;font:400 20px/1.3 var(--disp);color:var(--ink)}
.cg-store .tk-foot span{display:block;margin-top:2px;font-size:14px;line-height:1.6;color:var(--ink2)}
.cg-store .tk-shop .tk-history{margin-top:22px}
.cg-store .tk-shop .tk-history summary{font-size:14px}
.cg-store .tk-shop .tk-paused{text-align:center;font-size:13px}

/* Story card, option B "notebook page": cream paper, plum ink, plum stub, one peach badge. */
.cg-store .rk-card[data-brand=story] .tm{background:repeating-linear-gradient(#492c461a 0 1px,#0000 1px 26px),#F6ECDC;color:#492C46;padding-left:18px}
.cg-store .rk-card[data-brand=story] .tm h3{color:#492C46}
.cg-store .rk-card[data-brand=story] .tm .lg{height:58px}
.cg-store .rk-card[data-brand=story] .meta{gap:6px;margin-top:9px}
.cg-store .rk-card[data-brand=story] .meta span{background:#492c4614;color:#492C46;font-size:12.5px;font-weight:700;padding:3px 11px}
.cg-store .rk-card[data-brand=story] .meta span:last-child{background:#E5A17C;color:#2B1F2A;font-weight:800}
.t-story{--stub:#492C46;--bb:#F6ECDC;--bt:#492C46}
.t-story .art{position:relative;padding:3.5em 1.8em 1.5em;color:#492C46;background:repeating-linear-gradient(#0000 0 2.54em,#492c461c 2.54em 2.64em),#F6ECDC}
.t-story .sfilm{flex:none;width:100%;aspect-ratio:16/9;display:grid;place-items:center;border-radius:.9em;background:#492c4616;box-shadow:inset 0 0 0 .12em #492c4630}
.t-story .sfilm .note{position:relative;width:auto;margin:0;padding:.6em .9em;border-radius:.3em;background:#FFFDF8;color:#492C46;font:500 1.3em/1.64 Marhey,var(--body);transform:rotate(-1.4deg);box-shadow:.25em .35em 0 #492c4626}
.t-story .sfilm .note u{background:#492C46}
.t-story .sfilm .note::after{background:#492C46;color:#F6ECDC}
.t-story .lg{position:relative;width:54%;margin-top:1.3em;transform:none}
.t-story h2{position:relative;font-size:2em;margin-top:.35em}
.t-story .free{margin-top:auto;font:800 1.25em/1.3 var(--body);padding:.4em 1.2em;border-radius:99em;background:#E5A17C;color:#2B1F2A;white-space:nowrap}

/* Mendas, option B "white and charcoal"; Cipher, option A "numbers sheet". Same clip frame as Story. */
.cg-store .rk-card .meta{gap:6px;margin-top:9px}
.cg-store .rk-card .meta span{font-size:12.5px;font-weight:700;padding:3px 11px}
.cg-store .rk-card[data-brand=mendas] .tm{background:#F7F4EE;color:#1F1A1B;padding-left:18px}
.cg-store .rk-card[data-brand=mendas] .meta span{background:#1f1a1b10;color:#1F1A1B}
.cg-store .rk-card:has([data-game=cipher]) .tm{background:repeating-linear-gradient(#2d413916 0 1px,#0000 1px 22px),repeating-linear-gradient(90deg,#2d413916 0 1px,#0000 1px 22px),#F3F2EC;color:#2D4139;padding-left:18px}
.cg-store .rk-card:has([data-game=cipher]) .tm h3{color:#2D4139}
.cg-store .rk-card:has([data-game=cipher]) .meta span{background:#2d413914;color:#2D4139}
.t-mendas .sfilm,.t-cipher .sfilm{flex:none;width:100%;aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden;border-radius:.9em}
.t-mendas{--stub:#26292D;--bb:#F7F4EE;--bt:#1F1A1B}
.t-mendas .art{padding:3.5em 1.8em 1.5em;color:#1F1A1B;background:#F7F4EE}
.t-mendas .sfilm{align-items:end;background:#1f1a1b12;box-shadow:inset 0 0 0 .12em #1f1a1b26}
.t-mendas .sfilm .crowd{width:100%;height:auto;margin:0}
.t-mendas .lg{width:62%;margin-top:1.4em}
.t-mendas h2{color:#1F1A1B;font-size:2.3em;margin-top:.25em}
.t-cipher{--stub:#2D4139;--bb:#F3F2EC;--bt:#2D4139}
.t-cipher .art{padding:3.5em 1.8em 1.5em;color:#2D4139;background:repeating-linear-gradient(#2d413918 0 .1em,#0000 .1em 2.2em),repeating-linear-gradient(90deg,#2d413918 0 .1em,#0000 .1em 2.2em),#F3F2EC}
.t-cipher .sfilm{background:#2d413916;box-shadow:inset 0 0 0 .12em #2d41392e}
.t-cipher .sfilm .dial{width:auto;height:86%;margin:0}
.t-cipher .pl{width:58%;margin-top:1.4em;padding:0;background:none;box-shadow:none}
.t-cipher h2{font-size:2.3em;margin-top:.3em}
/* Light backs: controls take their lines from the ink, not from cream. */
.cg-store .t-mendas .cg-live-details .gs-stepper button,.cg-store .t-cipher .cg-live-details .gs-stepper button,.cg-store .t-mendas .cg-live-details .gs-preset,.cg-store .t-cipher .cg-live-details .gs-preset,.cg-store .t-mendas .cg-live-details .gs-legacy,.cg-store .t-cipher .cg-live-details .gs-legacy,.cg-store .t-story .cg-live-details .gs-legacy{background:color-mix(in srgb,var(--bt) 7%,#0000);border-color:color-mix(in srgb,var(--bt) 32%,#0000)}
.cg-store .t-mendas .cg-live-details .gs-price,.cg-store .t-cipher .cg-live-details .gs-price{border-color:color-mix(in srgb,var(--bt) 28%,#0000)}

/* Review notes 2026-11-12: Mendas keeps a faint drawing in the empty side; the hero's ticket-window button and
   the chosen bundle use the site's petroleum shades instead of black and beige; no purchase history. */
.cg-store .rk-card[data-brand=mendas] .tm{padding-left:92px}
.cg-store .ledge.win{background:#cce0e1;color:#00191c}
.cg-store .pk[aria-checked=true] .pk-t{background:#d9eaeb;box-shadow:0 0 0 3px var(--acc)}
.cg-store .pk[aria-checked=true] .pk-ly{background:#d9eaeb}
.cg-store .pk[aria-checked=true] .pk-s{background:#003f47;color:#fff}
.cg-store .pk[aria-checked=true] .pk-s::before{content:"✓";display:grid;place-items:center;width:22px;height:22px;margin-bottom:3px;border-radius:50%;background:#fff;color:#003f47;font:800 14px/1 var(--body)}
.cg-store .tk-shop .tk-history{display:none!important}
