/* PurePlay Core — front-end styles.
   Uses the PurePlay India theme's design tokens (--pp-*) so everything matches the site;
   the fallbacks keep it readable under any other theme. */

.ppc-disclosure,
.ppc-newsletter,
.ppc-pick,
.ppc-profile,
.ppc-tally-wrap,
.ppc-consent {
	--c-surface: var(--pp-surface, #0e1830);
	--c-surface-2: var(--pp-surface-2, #132042);
	--c-line: var(--pp-line, #1e2d52);
	--c-ink: var(--pp-ink, #e8eefc);
	--c-muted: var(--pp-muted, #9aa8c7);
	--c-accent: var(--pp-orange, #ff7a1a);
	--c-cyan: var(--pp-cyan, #22d3ee);
	--c-grad: var(--pp-grad, linear-gradient(120deg, #ff7a1a 0%, #ff3b8b 55%, #8b5cf6 100%));
	--c-head: var(--pp-head, 'Space Grotesk', system-ui, sans-serif);
	--c-mono: var(--pp-mono, ui-monospace, Menlo, Consolas, monospace);
	--c-radius: var(--pp-radius, 12px);
}

/* ---------- Buttons, chips, small bits ---------- */
.ppc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; color: #fff !important; background: var(--pp-grad, linear-gradient(120deg, #ff7a1a, #ff3b8b 55%, #8b5cf6)); box-shadow: 0 6px 20px rgba(255, 90, 60, .3); transition: filter .2s, transform .15s; }
.ppc-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ppc-btn--small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.ppc-btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--pp-line, #1e2d52); color: var(--pp-ink, #e8eefc) !important; }
.ppc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.ppc-chip { border: 1px solid var(--pp-line, #1e2d52); background: rgba(255, 255, 255, .04); border-radius: 999px; padding: 4px 12px; font-size: 13px; text-decoration: none; color: inherit; }
.ppc-chip:hover { background: rgba(255, 122, 26, .16); border-color: var(--pp-orange, #ff7a1a); color: #fff; }
.ppc-empty { color: var(--pp-muted, #9aa8c7); font-style: italic; }
.ppc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ppc-alert { padding: 10px 14px; border-radius: 10px; margin: 0; }
.ppc-alert--ok { background: rgba(52, 211, 153, .14); color: var(--pp-green, #34d399); border: 1px solid rgba(52, 211, 153, .4); }
.ppc-alert--err { background: rgba(255, 59, 92, .12); color: var(--pp-red, #ff3b5c); border: 1px solid rgba(255, 59, 92, .4); }

/* ---------- Disclosures ---------- */
.ppc-disclosure { border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; font-size: 14.5px; line-height: 1.55; color: var(--c-ink); background: var(--c-surface); border: 1px solid var(--c-line); }
.ppc-disclosure a { color: var(--c-cyan); }
.ppc-disclosure--affiliate { border-left: 4px solid var(--c-accent); }
.ppc-disclosure--sponsored { border-left: 4px solid var(--pp-lime, #a3e635); }
.ppc-disclosure--sponsored > strong:first-child { font-family: var(--c-mono); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--pp-lime, #a3e635); }
.ppc-disclosure--partner { background: transparent; border: 0; border-top: 1px solid var(--c-line); border-radius: 0; padding: 12px 0 0; margin-top: 28px; font-size: 13.5px; color: var(--c-muted); }

/* ---------- Newsletter ---------- */
.ppc-newsletter { margin: 32px 0; padding: 22px; border-radius: var(--c-radius); background: var(--c-surface); border: 1px solid var(--c-line); position: relative; overflow: hidden; display: grid; gap: 12px; color: var(--c-ink); }
.ppc-newsletter::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c-grad); }
.ppc-newsletter h3 { font-family: var(--c-head); font-size: 22px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .03em; }
.ppc-newsletter p { margin: 0; color: var(--c-muted); }
.ppc-newsletter__form { display: flex; gap: 8px; flex-wrap: wrap; }
.ppc-newsletter__form input[type="email"] { flex: 1 1 220px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c-line); background: rgba(255, 255, 255, .06); color: var(--c-ink); font: inherit; }
.ppc-newsletter__form input[type="email"]::placeholder { color: var(--c-muted); }
.ppc-newsletter__fine { font-size: 12px; }
.ppc-newsletter__fine a { color: var(--c-cyan); }
.ppc-newsletter--compact { padding: 16px; margin: 16px 0; }
.ppc-newsletter--compact h3 { font-size: 18px; }
.ppc-newsletter--form { background: transparent; border: 0; padding: 0; margin: 0; }
.ppc-newsletter--form::before { display: none; }

/* ---------- Shop ---------- */
.ppc-shop-section { margin: 26px 0; }
.ppc-shop-title { font-family: var(--pp-head, system-ui); font-size: 22px; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.ppc-shop-title::before { content: ''; width: 5px; height: 22px; border-radius: 3px; background: var(--pp-grad, #ff7a1a); }
.ppc-picks { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.ppc-pick { position: relative; display: flex; flex-direction: column; padding: 14px; border-radius: var(--c-radius); background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-ink); }
.ppc-pick__badge { position: absolute; top: 10px; left: 10px; z-index: 1; font-family: var(--c-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--pp-lime, #a3e635); color: #10200a; }
.ppc-pick__img { aspect-ratio: 1; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; }
.ppc-pick__img img { max-width: 88%; max-height: 88%; object-fit: contain; }
.ppc-pick__name { font-size: 16px; margin: 0 0 6px; line-height: 1.3; font-family: var(--c-head); }
.ppc-pick__why { font-size: 14px; color: var(--c-muted); margin: 0 0 12px; flex: 1; }
.ppc-pick__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ppc-pick__price { font-family: var(--c-mono); font-weight: 700; font-size: 14px; }

/* ---------- Player profile ---------- */
.ppc-profile { margin: 18px 0 22px; padding: 18px; border-radius: var(--c-radius); background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-ink); }
.ppc-profile__known { margin: 0 0 12px; font-family: var(--c-head); font-size: 20px; color: var(--c-accent); }
.ppc-profile__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px 18px; margin: 0; }
.ppc-profile__facts div { border-top: 2px solid var(--c-line); padding-top: 6px; }
.ppc-profile__facts dt { font-family: var(--c-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 3px; }
.ppc-profile__facts dd { margin: 0; font-weight: 600; }
.ppc-profile__lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 16px; }
.ppc-profile__list h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; color: var(--c-cyan); font-family: var(--c-mono); }
.ppc-profile__list ul { margin: 0; padding-left: 18px; }
.ppc-profile__list li { margin: 3px 0; }
.ppc-profile__links { margin: 14px 0 0; font-family: var(--c-mono); font-size: 13px; }
.ppc-profile__links a { color: var(--c-cyan); }
.ppc-sources { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--pp-line, #1e2d52); font-size: 13.5px; color: var(--pp-muted, #9aa8c7); }
.ppc-sources h3 { font-size: 13px; font-family: var(--pp-mono, monospace); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 6px; color: var(--pp-ink, #e8eefc); }
.ppc-sources ol { margin: 0 0 8px; padding-left: 20px; }
.ppc-sources a { color: var(--pp-cyan, #22d3ee); word-break: break-word; }

/* ---------- Medal tally ---------- */
.ppc-tally-wrap { margin: 18px 0 8px; color: var(--c-ink); }
.ppc-tally { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ppc-tally__cell { border-radius: var(--c-radius); padding: 14px 8px; text-align: center; background: var(--c-surface); border: 1px solid var(--c-line); font-family: var(--c-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.ppc-tally__num { display: block; font-family: var(--c-head); font-size: 40px; line-height: 1; margin-bottom: 6px; color: var(--c-ink); letter-spacing: 0; }
.ppc-tally__cell--gold { border-color: rgba(250, 204, 21, .55); }
.ppc-tally__cell--gold .ppc-tally__num { color: #facc15; }
.ppc-tally__cell--silver .ppc-tally__num { color: #cbd5e1; }
.ppc-tally__cell--bronze { border-color: rgba(205, 127, 50, .5); }
.ppc-tally__cell--bronze .ppc-tally__num { color: #e0904a; }
.ppc-tally__cell--total { background: var(--c-grad); border-color: transparent; color: rgba(255, 255, 255, .9); }
.ppc-tally__cell--total .ppc-tally__num { color: #fff; }
.ppc-tally__cell--manipur { border-color: var(--c-cyan); color: var(--c-cyan); }
.ppc-tally__cell--manipur .ppc-tally__num { color: var(--c-cyan); }
.ppc-medal-list { margin-top: 14px; overflow-x: auto; }
.ppc-medal-list table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ppc-medal-list th { text-align: left; font-family: var(--c-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); padding: 8px; border-bottom: 1px solid var(--c-line); }
.ppc-medal-list td { padding: 10px 8px; border-bottom: 1px solid var(--c-line); }
.ppc-medal-list tr.is-manipur td { background: rgba(34, 211, 238, .06); }
.ppc-medal { display: inline-block; padding: 2px 9px; border-radius: 999px; font-family: var(--c-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ppc-medal--gold { background: #facc15; color: #2b1d00; }
.ppc-medal--silver { background: #cbd5e1; color: #0f172a; }
.ppc-medal--bronze { background: #cd7f32; color: #1d0e00; }
.ppc-tag-manipur { display: inline-block; font-family: var(--c-mono); font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: rgba(34, 211, 238, .16); color: var(--c-cyan); vertical-align: middle; }

/* ---------- Cookie consent ---------- */
.ppc-consent { position: fixed; z-index: 9999; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; padding: 16px 18px; border-radius: var(--c-radius); background: var(--c-surface-2); border: 1px solid var(--c-line); color: var(--c-ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ppc-consent[hidden] { display: none; }
.ppc-consent__text { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.5; }
.ppc-consent__text a { color: var(--c-cyan); font-weight: 600; }
.ppc-consent__actions { display: flex; gap: 8px; }

@media (max-width: 760px) {
	.ppc-tally { grid-template-columns: repeat(3, 1fr); }
	.ppc-tally__cell--total, .ppc-tally__cell--manipur { grid-column: span 1; }
}
@media (max-width: 520px) {
	.ppc-tally { grid-template-columns: repeat(2, 1fr); }
	.ppc-tally__cell--manipur { grid-column: span 2; }
	.ppc-tally__num { font-size: 32px; }
	.ppc-consent { left: 8px; right: 8px; bottom: 8px; }
	.ppc-consent__actions { width: 100%; }
	.ppc-consent__actions .ppc-btn { flex: 1; }
}
