/* Page-specific overrides for Free Key, Premium, Games and Scripts (owned by a helper session). Loaded after site.css.
   RDR2 language: everything sits on red-graded imagery (card rows, split story bands), thin icon strips with dividers,
   a solid red CTA beside a ghost text CTA, uppercase condensed type. Red, black, white and silver only. */

/* Shared RDR2 pieces for these pages: outlined card numbers and the red + ghost CTA pair. */
.pg-num, .pillar .pg-num { position: absolute; top: 18px; left: 22px; max-width: none; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .55); font: italic 900 34px/1 var(--slab); }
.pg-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.pg-cta .btn-text svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.6; transition: transform .2s; }
.pg-cta .btn-text:hover svg { transform: translateX(3px); }

/* RDR2 card rows (provider cards, genre cards) reuse d0's .pillars inside the centred .wrap column. */
.fk-cards, .pg-genres { margin-top: 56px; border-inline: 1px solid var(--line-2); }
.gd-dir-top + .pg-genres { margin-top: 70px; }
/* Same rows in every card (icon, title, copy, link) so titles share a baseline and links sit on one line. */
.fk-cards .pillar, .pg-genres .pillar { grid-template-rows: auto auto 1fr auto; align-content: stretch; }
.fk-cards .pillar > span:not(.pg-num), .pg-genres .pillar > span:not(.pg-num) { align-self: start; }
.fk-cards .pillar-ico { width: 104px; height: 100px; }
.pg-genres + .directory:not(.block) { margin-top: 80px; }
.pg-genres .pillar { min-height: 260px; }
.pg-genres .pillar strong { font-size: 30px; }
.pg-genre-ico { width: 84px; height: 84px; object-fit: cover; border: 1px solid rgba(255, 255, 255, .5); border-radius: 2px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }

/* Free key: RDR2 split story band with outlined step numbers, then the thin icon strip */
.fk-steps { display: grid; width: 100%; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.fk-steps li { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.fk-steps b { color: transparent; -webkit-text-stroke: 1.4px var(--red-hot); font: italic 900 36px/1 var(--slab); }
.fk-steps p { display: grid; gap: 4px; }
.fk-steps strong { font: 700 21px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.fk-steps span { color: #c4c4cb; font-size: 17px; }
.fk-copy .pg-cta { margin-top: 8px; }
.fk-copy .kicker, .pm-copy .kicker { font-family: var(--slab); font-weight: 900; font-style: italic; letter-spacing: .12em; }

.fk-strip .icon-row-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fk-strip span, .pm-steps span { font-size: 16px; }

/* Premium: plan cards sit on the red scene plates, centred like RDR2 cards, framed like the page-head poster plate
   (cream corner brackets, cream hairline, notched red ribbon). No glows. */
.pm-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1080px; margin: 0 auto; }
.pm-plan { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; padding: 60px 40px 36px; overflow: hidden; border: 1px solid rgba(239, 232, 220, .22); background: #0b0b0d; text-align: center; transition: border-color .25s; }
.pm-plan:hover { border-color: rgba(239, 232, 220, .55); }
.pm-plan-art { position: absolute; inset: 0 0 auto; z-index: -2; aspect-ratio: 16 / 9; overflow: hidden; } /* full 16:9 scene band, never upscaled or cropped to a sliver */
.pm-plan-art img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6) saturate(1.1); transition: scale .6s var(--ease); }
.pm-plan::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 13, .15), rgba(11, 11, 13, .7) 24%, #0b0b0d 42%); }
.pm-plan:hover .pm-plan-art img { scale: 1.03; }
.pm-plan::after { content: ""; position: absolute; inset: 10px; pointer-events: none; background: linear-gradient(var(--cream), var(--cream)) left top / 26px 2px no-repeat, linear-gradient(var(--cream), var(--cream)) left top / 2px 26px no-repeat, linear-gradient(var(--cream), var(--cream)) right top / 26px 2px no-repeat, linear-gradient(var(--cream), var(--cream)) right top / 2px 26px no-repeat, linear-gradient(var(--cream), var(--cream)) left bottom / 26px 2px no-repeat, linear-gradient(var(--cream), var(--cream)) left bottom / 2px 26px no-repeat, linear-gradient(var(--cream), var(--cream)) right bottom / 26px 2px no-repeat, linear-gradient(var(--cream), var(--cream)) right bottom / 2px 26px no-repeat; }
.pm-plan.is-featured { border-color: #c8111b; box-shadow: inset 0 0 0 1px #c8111b; }
.pm-plan-ico { width: auto; height: 100px; }
.pm-plan h3 { font: italic 900 clamp(34px, 3.4vw, 50px)/.95 var(--slab); text-transform: uppercase; text-shadow: 0 4px 24px rgba(0, 0, 0, .7); }
.pm-plan-sum { max-width: 400px; min-height: 3.2em; color: #d4d4da; }
.pm-best { position: absolute; top: 46px; right: 0; padding: 10px 20px 10px 30px; background: #c8111b; color: #fff; font: 700 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%); }
.pm-price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 10px; }
.pm-price strong { display: inline-flex; align-items: baseline; gap: 6px; font: italic 900 40px/1 var(--slab); }
.pm-price small { color: var(--muted); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.pm-price > span { color: var(--dim); font: 700 16px/1 var(--display); text-transform: uppercase; }
.pm-plan ul { display: grid; gap: 12px; width: 100%; max-width: 400px; padding: 20px 0 0; list-style: none; border-top: 1px solid rgba(239, 232, 220, .16); text-align: left; }
.pm-plan li { display: flex; gap: 10px; color: #dcdce0; }
.pm-plan li svg { flex: none; margin-top: 4px; color: var(--red-hot); stroke-width: 2.6; }
.pm-plan .pm-actions { justify-content: center; margin-top: auto; padding-top: 8px; }

.pm-steps { margin-top: 90px; border-top: 1px solid var(--line); }
.pm-steps .icon-row-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-steps .ico { width: 52px; height: 52px; }
.pm-steps .hud-ico { width: 68px; height: 68px; }

/* Premium: split story band with the comparison table on the left */
.pm-compare { width: 100%; border-top: 1px solid var(--line-2); background: rgba(8, 8, 10, .72); }
.pm-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line-2); }
.pm-row > span { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 16px 14px; color: var(--muted); }
.pm-row .text-link { font-size: 14px; letter-spacing: .04em; white-space: nowrap; }
.pm-row > [role="rowheader"] { color: #fff; font: 700 15px/1.2 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.pm-row > .is-premium { background: rgba(200, 17, 27, .12); color: #fff; }
.pm-row > .is-premium svg { flex: none; color: var(--red-hot); stroke-width: 2.6; }
.pm-row-head > span { padding-block: 14px; color: var(--silver); font: 700 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.pm-row-head > .is-premium { background: #c8111b; color: #fff; }
.pm-copy .pg-cta { margin-top: 8px; }
.pm-note { color: var(--muted); }

/* Games: trending legend row, search band with a solid red button */
.gd-dir-top { margin-top: 70px; }
.directory .sec-head { margin-bottom: 24px; }
.gd-dir-bar .dir-controls { gap: 0; }
.gd-dir-bar .dir-search { height: 58px; clip-path: none; border-radius: 2px 0 0 2px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.gd-dir-bar .dir-search:focus-within { box-shadow: inset 0 0 0 1px #fff; }
.gd-dir-go { flex: none; height: 58px; border-radius: 0 2px 2px 0; }
.gd-dir-bar .dir-sort { display: flex; align-items: center; height: 58px; margin-left: 12px; clip-path: none; border-radius: 2px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.gd-dir-sort-label { padding-left: 18px; color: var(--dim); font: 700 17px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.gd-dir-bar .dir-sort select { padding: 0 20px 0 10px; }
.gd-dir-bar .pill-row { flex-wrap: wrap; gap: 6px; padding-bottom: 2px; scrollbar-width: none; }
.gd-dir-bar .pill-row::-webkit-scrollbar { display: none; }
.gd-dir-bar .pill { flex: none; height: 48px; padding: 0 16px 0 10px; }
.gd-dir-bar .pill img { width: 34px; height: 34px; }
.gd-dir-bar .pill img.pill-online { width: auto; height: 30px; object-fit: contain; }
.gd-dir-bar .pill img.pill-hot { width: auto; height: 28px; } /* 0.93 x ONLINE: same letter height */

/* Scripts listing: grid only, the card itself is bd's script_card in site-scripts.css */
.sc-dir .script-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 20px; }
.sc-dir .script-grid > [hidden] { display: none; }
.sc-pill-rule { flex: none; align-self: center; width: 1px; height: 26px; margin: 0 6px; background: var(--line-2); }

@media (max-width: 1220px) {
  .sc-dir .script-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .sc-dir .script-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .pm-plans { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
  .fk-strip .icon-row-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
  .fk-strip .icon-row-inner > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .fk-strip .icon-row-inner > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}

@media (max-width: 760px) {
  .gd-dir-bar .pill-row { flex-wrap: nowrap; overflow-x: auto; }
  .pm-steps .icon-row-inner { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; }
  .pm-steps .icon-row-inner > div:nth-child(n+2) { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  }

@media (max-width: 640px) {
  .pg-num, .pillar .pg-num { z-index: 1; top: 10px; left: 12px; font-size: 24px; }
  .pg-genre-ico { width: 60px; height: 60px; margin-top: 14px; }
  .fk-steps li { grid-template-columns: 58px minmax(0, 1fr); }
  .pillars.fk-cards { grid-template-columns: minmax(0, 1fr); }
  .fk-cards .pillar { gap: 10px; padding: 32px 22px 30px; border-left: 0; }
  .fk-cards .pillar strong { font-size: 22px; }
  .fk-cards .pillar .pillar-ico { height: 84px; }
  .fk-cards .pillar:nth-child(n+2) { border-top: 1px solid var(--line-2); }
  .fk-strip .icon-row-inner, .pillars ~ .fk-strip.icon-row .icon-row-inner { grid-template-columns: minmax(0, 1fr); }
  .pillars ~ .fk-strip.icon-row .icon-row-inner > div:last-child:nth-child(even) { grid-column: auto; }
  .fk-strip .icon-row-inner > div:nth-child(n+2) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); }
  .pm-plan { padding: 84px 22px 30px; }
  .pm-plan .pg-num { top: 20px; left: 22px; }
  .pm-plan-ico { height: 84px; }
  .pm-price { flex-direction: column; align-items: center; gap: 6px; }
  .pm-price strong { font-size: 36px; }
  .pm-steps { margin-top: 64px; }
  .pm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pm-row > [role="rowheader"] { grid-column: 1 / -1; padding: 14px 14px 2px; }
  .pm-row-head > span:first-child { display: none; }
  .pm-row > span { padding: 10px 14px 14px; font-size: 16px; }
  .gd-dir-top { margin-top: 50px; }
  .gd-dir-top + .pg-genres { margin-top: 50px; }
  .sc-dir .script-grid { grid-template-columns: minmax(0, 1fr); }
  .gd-dir-bar .dir-controls { flex-direction: row; flex-wrap: wrap; }
  .gd-dir-bar .dir-search { flex: 1 1 0; height: 52px; }
  .gd-dir-go { height: 52px; padding: 0 18px; }
  .gd-dir-bar .dir-sort { flex: 1 1 100%; height: 48px; margin: 10px 0 0; }
}
