/* Current Scratch Cards catalogue — page-specific styles. Requires global.css first. */

#games { padding-top: 28px; }

.price-section { margin: 28px 0 34px; }

.section-heading { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px 18px; margin: 35px 0 12px; }

.section-heading h2, #none-section > .section-title {
  font: 400 26.4px/1.3 var(--show-font); font-synthesis: none;
  text-transform: uppercase; letter-spacing: .025em; color: var(--brand-deep);
  text-align: left; padding: 0; border: 0; background: none;
}

.section-heading h2 { margin: 0; max-width: 100%; }

.show-lettering { display: inline-block; }

.price-section > .section-heading, #games > .price-section:first-child, #games > .section-heading:first-child { margin-top: 0; }

#none-section > .section-title { display: block; margin: 35px 0 8px; max-width: 100%; }

#none-section > p { font-size: 14px; line-height: 1.5; color: #344969; margin: 0 0 18px; }

#none-games { margin-top: 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 15px; }

.card { display: flex; flex-direction: column; min-height: 220px; padding: 20px; background: white; border: 1px solid #d9deea; border-radius: 16px; box-shadow: 0 3px 12px #111d4a12; }

.art { position: relative; display: flex; align-items: center; justify-content: center; flex: none; aspect-ratio: 646/403; border-radius: 8px; margin-bottom: 14px; overflow: hidden; background: #eef2f9; color: #6e7d96; font-size: 13px; }

.art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.art:has(img) { box-shadow: 0 2px 7px #10234c29, 0 0 0 1px #10234c14; }

.new-badge { position: absolute; left: 10px; bottom: 10px; padding: 6px 9px; border-radius: 5px; background: var(--brand-blue); color: var(--brand-yellow); font-size: 11px; font-weight: 900; letter-spacing: .08em; box-shadow: 0 2px 5px #05144138; }

.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 58px; margin-bottom: 8px; }

.card-heading h3 { flex: 1; font-size: 21px; line-height: 1.25; margin: 0; min-width: 0; overflow-wrap: anywhere; }

.price { flex: none; margin-top: 0; line-height: 1.25; background: #e9eeff; color: #1536b8; font-size: 14px; font-weight: bold; padding: 7px 10px; border-radius: 6px; }

.stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 10px; margin-top: 16px; min-height: 0; }

.stat { padding: 6px 3px; border: 0; border-radius: 7px; min-width: 0; min-height: 62px; }

.stat:first-child, .stat-odds { text-align: center; }

.stat-odds { display: block; align-self: start; min-height: 0; }

.label { display: block; font-size: 10px; letter-spacing: 0; text-transform: uppercase; color: #69758a; margin-bottom: 5px; }

.value { font-size: 17px; line-height: 1.25; font-weight: 800; white-space: normal; overflow-wrap: normal; }

.stat-odds .value { display: block; }

.stat-odds.best, .key-chip.best { background: #00843d; color: white; border: 0; }

.stat-odds.worst, .key-chip.worst { background: #e51c35; color: white; border: 0; }

.stat-odds.best, .stat-odds.worst, .key-chip { border-radius: 16px; }

.stat-odds.best .label, .stat-odds.worst .label { color: white; }

.odds-caption { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; line-height: 1.2; margin: 3px 0 0; }

.card-details { margin: 0; min-width: 0; flex: 1; }

.card-details > summary { display: none; }

.card-details-body { display: flex; flex-direction: column; }

.card-details > summary:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }

.progress-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #69758a; font-size: 13px; font-weight: bold; text-transform: uppercase; margin: 10px 0 7px; min-height: 13px; }

.remaining-count { font-size: 17px; line-height: 1.25; color: #10234c; white-space: nowrap; }

.progress-track { height: 9px; background: linear-gradient(90deg,#45a864 0%,#d6ca39 40%,#f4a42c 70%,#d6343f 100%); border-radius: 9px; overflow: hidden; position: relative; }

.fact-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: baseline; column-gap: 12px; }

.fact-label { min-width: 0; }

.fact-value { min-width: 0; text-align: right; font-weight: 400; color: #56657e; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.commentary { margin: 16px 0 0; padding: 12px; background: #f0f3ff; border-radius: 8px; color: #344368; font-size: 15px; line-height: 1.55; min-height: 216px; }

.commentary-heading { display: block; font-family: var(--show-font); font-size: 14px; font-weight: 400; font-synthesis: none; letter-spacing: .06em; color: var(--brand-deep); margin-bottom: 7px; }

.commentary-text { display: block; }

.draft-label { display: block; margin-top: 6px; text-transform: uppercase; color: #78869c; font-size: 10px; font-weight: bold; letter-spacing: .05em; }

.dates { margin-top: auto; padding-top: 16px; min-height: 86px; font-size: 13px; color: #56657e; line-height: 1.65; }

@media (max-width:550px) {
.grid { grid-template-columns: 1fr; }
.section-heading { gap: 10px; }
.card-details { margin-top: 12px; border-top: 1px solid #d9deea; padding-top: 12px; }
.card-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font: 700 14px/1.4 Arial,sans-serif; color: var(--brand-deep); list-style: none; }
.card-details > summary::-webkit-details-marker { display: none; }
.card-details > summary::after { content: "+"; font-size: 22px; line-height: 1; flex: none; }
.card-details[open] > summary::after { content: "−"; }
.card-details[open] > .card-details-body { padding-top: 4px; }
.card .card-heading, .card .stats, .card .progress-label, .card .commentary { min-height: 0 !important; }
.card .commentary { margin-left: 0; margin-right: 0; }
.card .dates { min-height: 0; }
}

@media (prefers-reduced-motion:reduce) {
.consent-bar.is-closing { transition: none; transform: none; }
}
