/*
 * PrizeCraft components: quiz, leaderboard, entries, credits, badges.
 * Black and gold with thin gold borders, hexagon positions and 6px corners. Styled through CSS custom
 * properties; the prizecraft theme overrides the shared ones (light theme: html[data-bs-theme="light"]).
 * All motion is decorative and switched off with prefers-reduced-motion.
 */

:root {
	--pc-bg: #000;
	--pc-surface: #111210;
	--pc-surface-2: #161714;
	--pc-surface-3: #1d1e1a;
	--pc-line: rgba(255, 255, 255, .13);
	--pc-line-2: rgba(255, 255, 255, .19);
	--pc-gold-line: rgba(211, 173, 83, .17);
	--pc-tint: rgba(255, 255, 255, .025);
	--pc-hover: #1b1815;
	--pc-text: #f5f5f5;
	--pc-text-2: #d7d7d7;
	--pc-muted: #898989;
	--pc-gold: #d3ab54;
	--pc-gold-light: #e8d989;
	--pc-gold-text: #d3ab54;
	--pc-gold-grad: linear-gradient(110deg, #e9ce80, #c89d43);
	--pc-gold-ink: #0a0b08;
	--pc-blue: #4165f5;
	--pc-blue-2: #91a7ff;
	--pc-success: #2dcc85;
	--pc-warning: #ffb547;
	--pc-error: #ff6b6b;
	--pc-radius: 6px;
	--pc-radius-sm: 4px;
	--pc-shadow: 0 12px 45px rgba(0, 0, 0, .4);
	--pc-font-display: "Space Grotesk", Arial, sans-serif;
	--pc-font-body: "Inter", Arial, sans-serif;
	--pc-focus: 0 0 0 2px var(--pc-bg), 0 0 0 4px var(--pc-gold-light);
	--pc-ease: cubic-bezier(.2, .8, .2, 1);
	--pc-hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	--pc-hex-ring: polygon(evenodd, 50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%, 50% 0%, 50% 3.5%, 3% 27%, 3% 73%, 50% 96.5%, 97% 73%, 97% 27%, 50% 3.5%);
}
:root[data-bs-theme="light"] { --pc-surface-2: #fbf7f0; --pc-surface-3: #f5ead4; --pc-line: #ded7ca; --pc-line-2: #d4ccbe; --pc-gold-line: rgba(211, 171, 84, .24); --pc-tint: #fbf7f0; --pc-hover: #faf1df; --pc-text-2: #3a3950; --pc-gold-text: #886119; --pc-success: #167447; --pc-warning: #9a5b00; --pc-error: #b42318; --pc-shadow: 0 12px 35px rgba(27, 26, 48, .06); }

.pc-num { font-variant-numeric: tabular-nums; }
.pc-muted { color: var(--pc-muted); }
.pc-eyebrow { display: block; margin: 0 0 14px; color: var(--pc-gold-text); font: 700 12px/1.4 var(--pc-font-body); letter-spacing: 4px; text-transform: uppercase; }
.pc-link { color: var(--pc-gold-text); font-weight: 600; }

/* Buttons (also defined by the theme; kept here so the components work on their own) ----------- */
.pc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 13px 26px;
	border: 1px solid var(--pc-gold); border-radius: var(--pc-radius); background: var(--pc-gold); color: var(--pc-gold-ink);
	font: 700 16px/1.3 var(--pc-font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.pc-btn:hover:not([disabled]) { border-color: #f1d77d; background: #f1d77d; color: #080905; }
.pc-btn:active:not([disabled]) { transform: scale(.98); }
.pc-btn:focus-visible { outline: 2px solid var(--pc-gold-light); outline-offset: 4px; }
.pc-btn[disabled] { opacity: .45; cursor: not-allowed; }
.pc-btn--secondary { background: transparent; color: var(--pc-gold-text); }
.pc-btn--secondary:hover:not([disabled]) { background: var(--pc-gold); color: var(--pc-gold-ink); }
.pc-btn--xl { width: 100%; min-height: 58px; font-size: 18px; }

/* Badges & status -------------------------------------------------------------------------------- */
.pc-badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid var(--pc-gold-line); border-radius: 999px;
	background: transparent; color: var(--pc-text); font: 700 11px/1.2 var(--pc-font-body); letter-spacing: .5px; text-transform: uppercase; white-space: nowrap;
}
.pc-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a0a4af; }
.pc-badge--open::before, .pc-badge--live::before { background: #2dcc85; box-shadow: 0 0 10px rgba(45, 204, 133, .45); animation: pc-blink 2s ease-in-out infinite; }
.pc-badge--live { border-color: rgba(45, 204, 133, .33); color: #6ddbaa; }
:root[data-bs-theme="light"] .pc-badge--live { color: #167447; }
.pc-badge--almost::before, .pc-badge--sold_out::before { background: var(--pc-gold); }
.pc-badge--final { border-color: var(--pc-gold); color: var(--pc-gold-text); }
.pc-badge--final::before { background: var(--pc-gold); }
@keyframes pc-blink { 50% { opacity: .35; } }

.pc-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--pc-line); border-radius: 999px; color: var(--pc-text-2); font: 600 12px/1.3 var(--pc-font-body); }
.pc-status--active { border-color: rgba(65, 101, 245, .5); color: var(--pc-blue-2); }
.pc-status--started { border-color: rgba(255, 181, 71, .5); color: var(--pc-warning); }
.pc-status--completed { border-color: rgba(45, 204, 133, .45); color: var(--pc-success); }
.pc-status--cancelled, .pc-status--expired { color: var(--pc-muted); }
.pc-status--review { border-color: var(--pc-gold-line); color: var(--pc-gold-text); }
:root[data-bs-theme="light"] .pc-status--active { color: #2f4fc4; }

.pc-notice { padding: 14px 18px; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); background: rgba(211, 173, 83, .05); color: var(--pc-text); font-size: 14px; }
.pc-notice a { color: var(--pc-gold-text); font-weight: 600; }
.pc-notice--error { border-color: rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .07); }
.pc-notice--warning { border-color: rgba(255, 181, 71, .45); background: rgba(255, 181, 71, .07); }
.pc-notice--success { border-color: rgba(45, 204, 133, .4); background: rgba(45, 204, 133, .07); }

/* Cards --------------------------------------------------------------------------------------- */
.pc-card { position: relative; padding: clamp(20px, 4vw, 40px); border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); background: var(--pc-surface); color: var(--pc-muted); }

/* Quiz pages ------------------------------------------------------------------------------------ */
.pc-quiz-page { position: relative; min-height: 70vh; padding: clamp(20px, 4vw, 56px) 16px clamp(48px, 6vw, 80px); overflow: hidden; background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(179, 140, 41, .16), transparent 70%); }
.pc-quiz-page__inner { max-width: 860px; margin: 0 auto; }

/* Lobby (start page). */
.pc-lobby { text-align: center; animation: pc-rise .6s var(--pc-ease) both; }
.pc-lobby__icon { position: relative; display: flex; align-items: center; justify-content: center; width: 74px; height: 84px; margin: 0 auto 20px; color: #dfc660; }
.pc-lobby__icon::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #e8dd95, #e4ca69 48%, #f4b900); clip-path: var(--pc-hex-ring); }
.pc-lobby__icon svg { position: relative; width: 32px; height: 32px; }
.pc-start__title, .pc-done__title, .pc-message__title { margin: 0 0 8px; color: var(--pc-text); font: 700 clamp(32px, 5vw, 48px)/1.1 var(--pc-font-display); letter-spacing: -.02em; }
.pc-start__quiz { margin: 0 0 32px; color: var(--pc-muted); font-size: 17px; }
.pc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; text-align: left; }
.pc-facts li { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border: 1px solid var(--pc-line); border-radius: var(--pc-radius); background: var(--pc-tint); animation: pc-rise .6s var(--pc-ease) both; }
.pc-facts li:nth-child(2) { animation-delay: .08s; }
.pc-facts li:nth-child(3) { animation-delay: .16s; }
.pc-facts__icon { display: grid; flex: 0 0 36px; place-items: center; height: 38px; border-radius: 5px; background: rgba(211, 173, 83, .08); color: var(--pc-gold); }
.pc-facts__icon svg { width: 20px; height: 20px; }
.pc-facts__label { display: block; color: var(--pc-muted); font-size: 12px; }
.pc-facts__value { display: block; color: var(--pc-text); font: 700 22px/1.2 var(--pc-font-display); }
.pc-rules { margin: 0 0 32px; padding: 24px; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); background: var(--pc-surface); text-align: left; }
.pc-rules__title { margin: 0 0 16px; color: var(--pc-text); font: 700 20px/1.3 var(--pc-font-display); }
.pc-rules__list { display: grid; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; color: var(--pc-muted); font-size: 14px; line-height: 1.7; }
.pc-rules__list li { position: relative; padding-left: 36px; }
.pc-rules__list li::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 26px; background: var(--pc-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23211c10' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; clip-path: var(--pc-hex); }
.pc-rules__contest { color: var(--pc-text-2); }
.pc-start__form { max-width: 480px; margin: 0 auto; }
.pc-start__hint { margin: 14px 0 0; color: var(--pc-muted); font-size: 14px; }

/* 3-2-1 countdown before the quiz starts. */
.pc-countdown { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); animation: pc-fade .25s var(--pc-ease); }
.pc-countdown__num { color: var(--pc-gold); font: 700 clamp(128px, 30vw, 256px)/1 var(--pc-font-display); animation: pc-count .8s var(--pc-ease) both; }
.pc-countdown__num--go { color: var(--pc-success); }
@keyframes pc-count { 0% { transform: scale(1.8); opacity: 0; filter: blur(12px); } 25% { transform: scale(1); opacity: 1; filter: none; } 80% { opacity: 1; } 100% { transform: scale(.7); opacity: 0; } }
@keyframes pc-fade { from { opacity: 0; } }

/* Quiz open in another window (like WhatsApp Web): this window is locked until "Use here". */
.pc-window-lock { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .82); backdrop-filter: blur(4px); animation: pc-fade .25s var(--pc-ease); }
.pc-window-lock__box { width: min(440px, 100%); padding: 32px 28px; border: 1px solid var(--pc-line); border-radius: var(--pc-radius); background: var(--pc-surface); text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.pc-window-lock__title { margin: 0 0 12px; color: var(--pc-text); font: 700 22px/1.25 var(--pc-font-display); }
.pc-window-lock__text { margin: 0 0 24px; color: var(--pc-muted); font-size: 15px; line-height: 1.6; }
.pc-window-lock .pc-btn { min-width: 180px; }
[data-bs-theme="light"] .pc-window-lock { background: rgba(251, 247, 240, .85); }
@keyframes pc-rise { from { opacity: 0; transform: translateY(16px); } }

/* Running quiz: HUD. */
.pc-hud { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -16px 16px; padding: 12px 16px; border-bottom: 1px solid var(--pc-gold-line); background: var(--pc-surface); }
.admin-bar .pc-hud { top: 46px; }
@media (min-width: 783px) { .admin-bar .pc-hud { top: 32px; } }
@media (max-width: 600px) { .admin-bar .pc-hud { top: 0; } }
@media (min-width: 860px) { .pc-hud { top: 12px; margin: 0 0 20px; padding: 14px 20px; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); } .admin-bar .pc-hud { top: 44px; } }
.pc-hud__meta { min-width: 0; }
.pc-quiz__title { overflow: hidden; margin: 0; color: var(--pc-text); font: 700 18px/1.25 var(--pc-font-display); text-overflow: ellipsis; white-space: nowrap; }
.pc-quiz__sub { overflow: hidden; margin: 2px 0 0; color: var(--pc-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pc-timer { position: relative; display: flex; flex: none; align-items: center; justify-content: center; width: 72px; height: 72px; }
.pc-timer__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.pc-timer__track { fill: none; stroke: var(--pc-line); stroke-width: 4; }
.pc-timer__bar { fill: none; stroke: var(--pc-gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 125.66; stroke-dashoffset: 0; transition: stroke-dashoffset .3s linear, stroke .3s var(--pc-ease); }
.pc-timer__value { position: relative; color: var(--pc-text); font: 700 16px/1 var(--pc-font-body); font-variant-numeric: tabular-nums; }
.pc-timer.is-warning .pc-timer__bar { stroke: var(--pc-warning); }
.pc-timer.is-warning .pc-timer__value { color: var(--pc-warning); }
.pc-timer.is-critical .pc-timer__bar { stroke: var(--pc-error); }
.pc-timer.is-critical { animation: pc-heart 1s ease-in-out infinite; }
.pc-timer.is-critical .pc-timer__value { color: var(--pc-error); }
@keyframes pc-heart { 50% { transform: scale(1.07); } }

/* Question steps: hexagons, answered / current / open; each jumps to its question. */
.pc-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.pc-step { position: relative; display: inline-grid; place-items: center; width: 34px; height: 38px; padding: 0; border: 0; background: none; color: var(--pc-muted); font: 600 13px/1 var(--pc-font-body); font-variant-numeric: tabular-nums; cursor: pointer; transition: color .2s, transform .2s; }
.pc-step::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #6c7068; clip-path: var(--pc-hex-ring); }
.pc-step:hover:not(:disabled) { color: var(--pc-text); transform: translateY(-2px); }
.pc-step.is-answered { color: var(--pc-gold-text); }
.pc-step.is-answered::before { background: var(--pc-gold); }
.pc-step.is-current { color: var(--pc-gold-ink); }
.pc-step.is-current::before { background: var(--pc-gold); clip-path: var(--pc-hex); }
.pc-step:focus-visible { outline: 2px solid var(--pc-gold-light); outline-offset: 2px; }
.pc-quiz__progress { position: relative; height: 6px; margin: 0 0 20px; overflow: hidden; border-radius: 999px; background: var(--pc-line); }
.pc-quiz__progress-bar { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4165f5, #91a7ff, #718cff); transition: width .5s var(--pc-ease); }

.pc-quiz__card { overflow: hidden; }
.pc-quiz__loading { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--pc-muted); }
.pc-quiz__count { margin: 0 0 16px; color: var(--pc-gold-text); font: 700 12px/1.3 var(--pc-font-body); letter-spacing: 4px; text-transform: uppercase; }
.pc-stage-in { animation: pc-slide-in .45s var(--pc-ease) both; }
.pc-stage-in--back { animation-name: pc-slide-in-back; }
@keyframes pc-slide-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes pc-slide-in-back { from { opacity: 0; transform: translateX(-28px); } }
.pc-question { min-width: 0; margin: 0; padding: 0; border: 0; }
.pc-question__text { float: left; width: 100%; margin: 0 0 24px; padding: 0; color: var(--pc-text); font: 700 clamp(22px, 3.6vw, 32px)/1.25 var(--pc-font-display); letter-spacing: -.01em; }
.pc-question__text:focus { outline: none; }
.pc-question__image { display: block; clear: both; max-width: 100%; height: auto; margin: 0 0 24px; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); }
.pc-answers { clear: both; display: grid; gap: 10px; }
@media (min-width: 640px) { .pc-answers--grid { grid-template-columns: 1fr 1fr; } }
.pc-answers--images { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.pc-answer {
	position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; overflow: hidden;
	border: 1px solid var(--pc-line-2); border-radius: var(--pc-radius); background: var(--pc-tint); color: var(--pc-text); font-size: 16px; line-height: 1.4; cursor: pointer;
	transition: border-color .2s, background-color .2s, transform .2s;
	animation: pc-rise .45s var(--pc-ease) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.pc-answer:hover { border-color: rgba(211, 173, 83, .55); background: var(--pc-hover); }
.pc-answer:active { transform: scale(.985); }
.pc-answers--images .pc-answer { flex-direction: column; align-items: stretch; text-align: center; }
.pc-answer__input { position: absolute; opacity: 0; pointer-events: none; }
.pc-answer__key { position: relative; display: inline-grid; flex: none; place-items: center; width: 34px; height: 38px; color: var(--pc-text-2); font: 700 13px/1 var(--pc-font-body); }
.pc-answer__key::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #6c7068; clip-path: var(--pc-hex-ring); }
.pc-answers--images .pc-answer__key { position: absolute; top: 10px; left: 10px; z-index: 1; }
.pc-answer__text { flex: 1; }
.pc-answer__check { flex: none; width: 24px; height: 24px; border: 1px solid var(--pc-line-2); border-radius: 50%; transition: background-color .2s, border-color .2s, transform .3s var(--pc-ease); }
.pc-answers--images .pc-answer__check { position: absolute; top: 12px; right: 12px; }
.pc-answer__image { display: block; width: 100%; height: auto; border-radius: var(--pc-radius-sm); }
.pc-answer.is-selected, .pc-answer:has(.pc-answer__input:checked) { border-color: var(--pc-gold); background: rgba(211, 173, 83, .08); box-shadow: inset 2px 0 0 var(--pc-gold); }
.pc-answer.is-selected .pc-answer__key { color: var(--pc-gold-ink); }
.pc-answer.is-selected .pc-answer__key::before { background: var(--pc-gold); clip-path: var(--pc-hex); }
.pc-answer.is-selected .pc-answer__check { border-color: var(--pc-gold); background: var(--pc-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0b08' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; transform: scale(1.08); }
.pc-answer.is-pop { animation: pc-pop-answer .35s var(--pc-ease); }
@keyframes pc-pop-answer { 40% { transform: scale(1.02); } }
.pc-answer:has(.pc-answer__input:focus-visible) { outline: 2px solid var(--pc-gold-light); outline-offset: 2px; }
.pc-quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.pc-quiz__nav .pc-btn { flex: 1 1 0; max-width: 16rem; }
.pc-quiz__nav .pc-btn:only-child { margin-left: auto; }
.pc-quiz__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 14px 0 0; }
.pc-quiz__status { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; margin: 0; color: var(--pc-muted); font-size: 14px; }
.pc-quiz__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0; }
.pc-quiz__status:not(:empty)::before { opacity: 1; }
.pc-quiz__status.is-ok { color: var(--pc-success); }
.pc-quiz__status.is-warning { color: var(--pc-warning); }
.pc-quiz__status.is-error { color: var(--pc-error); }
.pc-quiz__keys { display: none; margin: 0; color: var(--pc-muted); font-size: 13px; }
.pc-quiz__keys kbd { display: inline-block; min-width: 24px; padding: 2px 6px; border: 1px solid var(--pc-line-2); border-radius: var(--pc-radius-sm); background: var(--pc-tint); color: var(--pc-text-2); font: 600 12px/1.3 var(--pc-font-body); text-align: center; }
@media (hover: hover) and (min-width: 860px) { .pc-quiz__keys { display: block; } }

/* Submit confirmation. */
.pc-confirm { text-align: center; animation: pc-rise .4s var(--pc-ease) both; }
.pc-confirm__title { margin: 0 0 12px; color: var(--pc-text); font: 700 28px/1.2 var(--pc-font-display); }
.pc-confirm__title:focus { outline: none; }
.pc-confirm__summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.pc-confirm__summary li { position: relative; display: inline-grid; place-items: center; width: 34px; height: 38px; color: var(--pc-gold-text); font: 600 13px/1 var(--pc-font-body); }
.pc-confirm__summary li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pc-gold); clip-path: var(--pc-hex-ring); }
.pc-confirm__summary li.is-open { color: var(--pc-error); }
.pc-confirm__summary li.is-open::before { background: var(--pc-error); }
.pc-confirm .pc-quiz__nav { justify-content: center; }

/* Done. */
.pc-done { text-align: center; }
.pc-done__badge { display: flex; align-items: center; justify-content: center; width: 96px; height: 108px; margin: 0 auto 20px; background: var(--pc-gold); color: var(--pc-gold-ink); clip-path: var(--pc-hex); animation: pc-pop-in .7s var(--pc-ease) both; }
.pc-done__badge svg { width: 44px; height: 44px; }
.pc-done__badge path { stroke: currentColor; stroke-dasharray: 30; stroke-dashoffset: 30; animation: pc-draw .5s var(--pc-ease) .45s forwards; }
@keyframes pc-pop-in { from { transform: scale(0) rotate(-20deg); } }
@keyframes pc-draw { to { stroke-dashoffset: 0; } }
.pc-done > p { max-width: 52ch; margin-right: auto; margin-left: auto; }
.pc-facts--result { margin-top: 28px; text-align: center; }
.pc-facts--result li { flex-direction: column; gap: 4px; }
.pc-facts--result .pc-facts__value { color: var(--pc-gold-light); font-size: 32px; }
.pc-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 0; }
.pc-confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.pc-message { text-align: center; }
.pc-message--error { border-color: rgba(255, 107, 107, .45); }
.pc-message--warning { border-color: rgba(255, 181, 71, .45); }

/* Leaderboard (contest page panel and full ranking) -------------------------------------------- */
.pc-leaderboard { position: relative; margin: 0; padding: 20px; border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--pc-radius); background: radial-gradient(ellipse at 50% 25%, rgba(163, 124, 32, .06), transparent 65%), rgba(17, 18, 15, .44); }
:root[data-bs-theme="light"] .pc-leaderboard { border-color: var(--pc-gold-line); background: #fff; }
@media (min-width: 768px) { .pc-leaderboard { padding: 22px; } }
@media (min-width: 992px) { .pc-leaderboard { padding: 28px; } }
.pc-leaderboard__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.pc-leaderboard__title { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--pc-text); font: 700 23px/1.2 var(--pc-font-display); }
.pc-leaderboard__title svg { width: 22px; height: 22px; color: var(--pc-gold); }
.pc-leaderboard__mine { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.pc-leaderboard__mine-link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--pc-gold-line); border-radius: 999px; color: var(--pc-gold-text); font: 600 13px/1.2 var(--pc-font-body); text-decoration: none; }
.pc-leaderboard__mine-link:hover { border-color: var(--pc-gold); color: var(--pc-gold-light); }

/* Podium (decorative; the table below is the accessible version). */
.pc-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; margin: 30px 0 22px; }
.pc-podium__spot { display: flex; flex-direction: column; align-items: center; text-align: center; animation: pc-rise .6s var(--pc-ease) both; }
.pc-podium__spot--1 { order: 2; animation-delay: .15s; }
.pc-podium__spot--2 { order: 1; }
.pc-podium__spot--3 { order: 3; animation-delay: .08s; }
.pc-podium__avatar { position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 6px; }
.pc-podium__crown { width: 22px; height: 22px; margin-bottom: 4px; color: var(--pc-gold-light); }
.pc-podium .pc-avatar { --ring: #aeb2ba; width: 46px; height: 52px; font-size: 12px; }
.pc-podium__spot--1 .pc-avatar { --ring: var(--pc-gold-light); width: 64px; height: 72px; background: #292515; color: var(--pc-gold-light); font-size: 18px; }
.pc-podium__spot--3 .pc-avatar { --ring: #b48b58; background: #241d17; color: #d9a474; }
:root[data-bs-theme="light"] .pc-podium__spot--1 .pc-avatar { --ring: #a47b28; background: #f2e3b9; color: #76571a; }
:root[data-bs-theme="light"] .pc-podium__spot--3 .pc-avatar { background: #efdfd1; color: #765037; }
.pc-podium__name { color: var(--pc-text); font: 700 12px/1.3 var(--pc-font-body); }
.pc-podium__score { margin: 4px 0 10px; color: var(--pc-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.pc-podium__block { display: flex; align-items: flex-start; justify-content: center; width: 100%; height: 62px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .25); border-radius: 8px 8px 0 0; background: linear-gradient(#5b5e68, rgba(36, 37, 43, 0)); color: var(--pc-text); font: 700 24px/1 var(--pc-font-body); }
.pc-podium__spot--1 .pc-podium__block { height: 92px; background: linear-gradient(#8a7137, rgba(51, 44, 32, 0)); color: var(--pc-gold-light); }
.pc-podium__spot--3 .pc-podium__block { height: 48px; background: linear-gradient(#6b4b35, rgba(48, 42, 37, 0)); color: #d9a474; }
:root[data-bs-theme="light"] .pc-podium__block { border-color: #aeb2ba; background: linear-gradient(#d9dce2, #f5f3ef); color: #434650; }
:root[data-bs-theme="light"] .pc-podium__spot--1 .pc-podium__block { border-color: #b79748; background: linear-gradient(#ead59a, #fbf7f0); color: #76571a; }
:root[data-bs-theme="light"] .pc-podium__spot--3 .pc-podium__block { border-color: #b48b58; background: linear-gradient(#dcc1aa, #fbf7f0); color: #765037; }

/* Hexagon avatars (initials only). */
.pc-avatar { --ring: #6c7068; position: relative; display: inline-grid; flex: none; place-items: center; width: 30px; height: 34px; background: #191a1f; color: #ddd; font: 600 10px/1 var(--pc-font-body); clip-path: var(--pc-hex); }
.pc-avatar::before { content: ""; position: absolute; inset: 0; background: var(--ring); clip-path: var(--pc-hex-ring); pointer-events: none; }
:root[data-bs-theme="light"] .pc-avatar { background: #f5ead4; color: var(--pc-text); }
.is-place-1 .pc-avatar { --ring: var(--pc-gold); color: var(--pc-gold-light); }
.is-place-2 .pc-avatar { --ring: #aeb2ba; }
.is-place-3 .pc-avatar { --ring: #b48b58; color: #d9a474; }

.pc-leaderboard__table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; }
.pc-leaderboard__table th { padding: 0 10px; color: var(--pc-muted); font: 500 9px/1.3 var(--pc-font-body); letter-spacing: 1px; text-align: left; text-transform: uppercase; }
.pc-leaderboard__table td { padding: 16px 10px; border-bottom: 1px solid rgba(255, 255, 255, .03); color: var(--pc-text); vertical-align: middle; }
:root[data-bs-theme="light"] .pc-leaderboard__table td { border-color: var(--pc-gold-line); }
.pc-lb-row:hover { background: var(--pc-hover); box-shadow: inset 2px 0 0 var(--pc-gold); }
.pc-lb-row:hover .pc-lb__name, .pc-lb-row:hover .pc-lb__time { color: var(--pc-gold-text); }
.pc-leaderboard__table .pc-lb__score, .pc-leaderboard__table .pc-lb__time { white-space: nowrap; }
.pc-leaderboard__table .pc-lb__time, .pc-leaderboard__table th.pc-lb__time { text-align: right; }
.pc-lb__pos { width: 4.5rem; }
.pc-lb__pos-num { --ring: #6c7068; position: relative; display: inline-grid; place-items: center; width: 32px; height: 36px; color: #bbb; font: 400 11px/1 var(--pc-font-body); font-variant-numeric: tabular-nums; }
.pc-lb__pos-num::before { content: ""; position: absolute; inset: 0; background: var(--ring); clip-path: var(--pc-hex-ring); pointer-events: none; }
:root[data-bs-theme="light"] .pc-lb__pos-num { color: var(--pc-muted); }
.pc-lb-row:hover .pc-lb__pos-num, .pc-lb-row.is-place-1 .pc-lb__pos-num { --ring: var(--pc-gold); color: var(--pc-gold-text); }
.pc-lb__name { color: var(--pc-text); font-weight: 400; }
.pc-lb__who { display: inline-flex; align-items: center; gap: 9px; }
.pc-lb__score { color: var(--pc-text); }
.pc-lb__time { color: var(--pc-text); }
.pc-lb-row.is-mine { background: rgba(211, 173, 83, .07); box-shadow: inset 2px 0 0 var(--pc-gold); }
.pc-lb-row.is-new td { animation: pc-flash 1.6s var(--pc-ease); }
@keyframes pc-flash { 0% { background: rgba(211, 173, 83, .25); } }
.pc-lb__you, .pc-lb__winner { display: inline-flex; align-items: center; margin-left: 6px; padding: 3px 8px; border: 1px solid var(--pc-gold-line); border-radius: 20px; color: var(--pc-gold-text); font: 600 10px/1.2 var(--pc-font-body); letter-spacing: .3px; text-transform: uppercase; vertical-align: middle; }
.pc-lb__you { border-color: var(--pc-gold); background: var(--pc-gold); color: var(--pc-gold-ink); }
.pc-leaderboard__empty { margin: 16px 0; padding: 32px 16px; border: 1px dashed var(--pc-gold-line); border-radius: var(--pc-radius); color: var(--pc-muted); text-align: center; }
.pc-leaderboard__note { margin: 16px 0 22px; color: var(--pc-muted); font-size: 11px; line-height: 1.6; }
.pc-leaderboard__note p { margin: 0; }
.pc-leaderboard__more { margin: 0; }
.pc-leaderboard__more .pc-btn { min-height: 46px; padding: 12px 24px; font-size: 12px; }
.pc-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.pc-pagination__item { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 8px 13px; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius-sm); background: var(--pc-surface); color: var(--pc-text); font-size: 13px; text-decoration: none; font-variant-numeric: tabular-nums; }
.pc-pagination__item:hover { border-color: var(--pc-gold); color: var(--pc-gold-light); }
.pc-pagination__item.is-current { border-color: var(--pc-gold); background: var(--pc-gold); color: #15120a; }
.pc-pagination__item:focus-visible { outline: 2px solid var(--pc-gold-light); outline-offset: 3px; }
.pc-leaderboard--page .pc-leaderboard__title { font-size: clamp(20px, 2.2vw, 28px); }
.pc-leaderboard--page .pc-leaderboard__table { font-size: 14px; }
@media (min-width: 1200px) { .pc-leaderboard--page .pc-leaderboard__table { font-size: 18px; } .pc-leaderboard--page .pc-leaderboard__table th { font-size: 12px; } }

/* Compact rows on phones: no horizontal scrolling. */
@media (max-width: 600px) {
	.pc-podium { gap: 6px; }
	.pc-leaderboard__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.pc-leaderboard__table, .pc-leaderboard__table tbody { display: block; }
	.pc-lb-row { display: grid; grid-template-columns: 2.5rem 1fr auto; grid-template-areas: "pos name score" "pos name time"; align-items: center; column-gap: 10px; padding: 10px 6px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
	:root[data-bs-theme="light"] .pc-lb-row { border-color: var(--pc-gold-line); }
	.pc-leaderboard__table td { display: block; padding: 0; border: 0; }
	.pc-lb-row .pc-lb__pos { grid-area: pos; width: auto; }
	.pc-lb-row .pc-lb__name { grid-area: name; white-space: normal; }
	.pc-lb-row .pc-lb__score { grid-area: score; text-align: right; }
	.pc-lb-row .pc-lb__time { grid-area: time; color: var(--pc-muted); font-size: 11px; }
	.pc-lb__who .pc-avatar { width: 25px; height: 29px; }
}

/* Results overview ------------------------------------------------------------------------------ */
.pc-results-overview__section { margin: 0 0 56px; }
.pc-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.pc-result-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); background: var(--pc-surface); transition: border-color .3s; }
.pc-result-card:hover { border-color: var(--pc-gold); }
.pc-result-card__media { position: relative; display: block; }
.pc-result-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pc-result-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
.pc-result-card__body .status-chip { position: static; }
.pc-result-card__title { margin: 0; font: 700 20px/1.3 var(--pc-font-display); }
.pc-result-card__title a { color: var(--pc-text); text-decoration: none; }
.pc-result-card__title a:hover { color: var(--pc-gold-text); }
.pc-result-card__top { display: grid; gap: 4px; width: 100%; margin: 0; padding: 0; list-style: none; }
.pc-result-card__top li { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); color: var(--pc-text-2); font-size: 13px; }
:root[data-bs-theme="light"] .pc-result-card__top li { border-color: var(--pc-gold-line); }
.pc-result-card__top .rank-hex { width: 32px; height: 36px; font-size: 11px; }
.pc-result-card__top li.is-mine { background: rgba(211, 173, 83, .07); }
.pc-result-card__name { color: var(--pc-text); font-weight: 600; }
.pc-result-card .pc-link, .pc-result-card .text-link { margin-top: auto; font-size: 13px; }

/* Entries (My account, order confirmation) -------------------------------------------------------- */
.pc-entries { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.pc-entry { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; overflow: hidden; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); background: var(--pc-surface); transition: border-color .25s; }
.pc-entry::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--pc-line-2); }
.pc-entry:hover { border-color: rgba(211, 173, 83, .5); }
.pc-entry--active::before { background: var(--pc-gold); }
.pc-entry--started::before { background: var(--pc-warning); }
.pc-entry--completed::before { background: var(--pc-success); }
.pc-entry__main { flex: 1 1 260px; min-width: 0; }
.pc-entry__main p { margin: 0 0 4px; }
.pc-entry__contest { color: var(--pc-text); font: 700 18px/1.3 var(--pc-font-display); }
.pc-entry__contest a { color: var(--pc-text); text-decoration: none; }
.pc-entry__contest a:hover { color: var(--pc-gold-text); }
.pc-entry__meta { color: var(--pc-muted); font-size: 13px; }
.pc-entry__numbers { display: flex; gap: 24px; margin: 0; }
.pc-entry__numbers dt { color: var(--pc-muted); font-size: 12px; }
.pc-entry__numbers dd { margin: 0; color: var(--pc-text); font: 700 20px/1.2 var(--pc-font-display); }
.pc-entry__numbers a { color: var(--pc-gold-text); text-decoration: none; }
.pc-order-entries { margin: 40px 0; }
.pc-order-entries__title, .pc-order-credits__title { font: 700 24px/1.2 var(--pc-font-display); }
.pc-order-entries__pending { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); background: rgba(211, 173, 83, .04); }
.pc-order-entries__pending p { margin: 0; }
.pc-spinner { flex: none; width: 28px; height: 28px; border: 3px solid var(--pc-line); border-top-color: var(--pc-gold); border-radius: 50%; animation: pc-spin .9s linear infinite; }
@keyframes pc-spin { to { transform: rotate(360deg); } }

/* Ranking rules */
.pc-rules-note { margin: 0; }
.pc-rules-full__list { padding-left: 18px; color: var(--pc-muted); line-height: 1.85; }
.pc-rules-full__list li { margin-bottom: 12px; }
.pc-rules-full__list strong { color: var(--pc-text); }

/* Credits ------------------------------------------------------------------------------------ */
.pc-credits { margin: 24px 0 0; }
.pc-credits__balance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 24px; }
.pc-credits__balance span { color: var(--pc-muted); }
.pc-credits__balance strong { color: var(--pc-gold-light); font: 700 28px/1 var(--pc-font-display); }
.pc-credits__balance strong .woocommerce-Price-amount { color: inherit; }
:root[data-bs-theme="light"] :is(.pc-credits__balance strong, .pc-balance-card__amount) { color: var(--pc-gold-text); }
.pc-credits__card { position: relative; max-width: 760px; margin: 0 0 48px; padding: clamp(24px, 4vw, 36px); overflow: hidden; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); background: linear-gradient(145deg, rgba(211, 173, 83, .06), transparent 70%), var(--pc-surface); }
.pc-credits__card .pc-credits__balance { margin: 0 0 24px; }
.pc-credits__login { margin: 0 0 20px; color: var(--pc-text-2); }
.pc-credits__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.pc-claim { margin: 0; }
.pc-claim__label { display: block; margin-bottom: 8px; color: var(--pc-text); font: 500 14px/1.3 var(--pc-font-body); }
.pc-claim__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-claim__input { flex: 1 1 220px; min-height: 52px; padding: 0 16px; border: 1px solid var(--pc-line-2); border-radius: var(--pc-radius-sm); background: var(--pc-bg); color: var(--pc-text); font: 700 18px/1 var(--pc-font-body); letter-spacing: .14em; text-transform: uppercase; }
.pc-claim__input::placeholder { color: var(--pc-muted); font-weight: 400; letter-spacing: .02em; text-transform: none; }
.pc-claim__input:focus { outline: 2px solid var(--pc-gold); outline-offset: 2px; }
.pc-claim__button { min-height: 52px; }
.pc-claim__input[aria-invalid="true"] { border-color: var(--pc-error); }
.pc-claim__input[aria-invalid="true"]:focus { outline-color: var(--pc-error); }
.pc-claim[aria-busy="true"] .pc-claim__button { cursor: progress; opacity: .75; }
@media (max-width: 575.98px) { .pc-claim__button { flex: 1 1 100%; } }
/* The answer under the field (claim.js); the error/success colours as the site's notices. */
[data-pc-claim-message]:empty { display: none; }
[data-pc-claim-message] { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; color: var(--pc-text-2); font-size: 14px; line-height: 1.5; }
[data-pc-claim-message]::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; background: currentColor; -webkit-mask: var(--pc-claim-icon) center / contain no-repeat; mask: var(--pc-claim-icon) center / contain no-repeat; }
[data-pc-claim-message].is-error { color: var(--pc-error); --pc-claim-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E"); }
[data-pc-claim-message].is-success { color: var(--pc-success); --pc-claim-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 2.8 2.8L16.5 9.5'/%3E%3C/svg%3E"); }
[data-pc-claim-message]:not(.is-error):not(.is-success)::before { content: none; }
.pc-account-credits__claim { margin: 0 0 32px; padding: 24px; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); background: var(--pc-surface); }
.pc-account-credits__claim .pc-account-credits__title { margin-top: 0; }
.pc-credits__how { max-width: 760px; }
.pc-credits__title, .pc-account-credits__title { color: var(--pc-text); font: 700 22px/1.25 var(--pc-font-display); }
.pc-credits__list { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--pc-muted); }
.pc-credits__list li { position: relative; padding-left: 34px; }
.pc-credits__list li::before { content: ""; position: absolute; top: 1px; left: 0; width: 20px; height: 23px; background: var(--pc-gold); clip-path: var(--pc-hex); }
.pc-credits-hint { display: block; margin: 20px 0 0; padding: 16px; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); background: rgba(211, 173, 83, .03); color: #c8c9c4; font-size: 12px; }
:root[data-bs-theme="light"] .pc-credits-hint { color: var(--pc-text-2); background: #fbf7f0; }
.pc-credits-hint strong { color: var(--pc-gold-text); }
.pc-credits-hint a { display: block; margin-top: 6px; color: var(--pc-gold-text); text-decoration: underline; text-underline-offset: 3px; }

.pc-balance-card { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 32px; padding: clamp(24px, 4vw, 32px); overflow: hidden; border: 1px solid rgba(211, 173, 83, .45); border-radius: var(--pc-radius); background: radial-gradient(ellipse 50% 90% at 100% 0%, rgba(179, 140, 41, .3), transparent 70%), var(--pc-surface); }
.pc-balance-card > * { position: relative; z-index: 1; }
.pc-balance-card p { margin: 0; }
.pc-balance-card__label { color: var(--pc-gold-text); font: 700 12px/1.3 var(--pc-font-body); letter-spacing: 4px; text-transform: uppercase; }
.pc-balance-card__amount { margin: 8px 0 !important; color: var(--pc-gold-light); font: 700 clamp(40px, 7vw, 56px)/1 var(--pc-font-display); }
.pc-balance-card__amount .woocommerce-Price-amount { color: inherit; }
.pc-balance-card__text { color: var(--pc-muted); font-size: 14px; }
.pc-balance-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-ledger { width: 100%; border-collapse: collapse; border: 1px solid var(--pc-gold-line); }
.pc-ledger th { padding: 12px 16px; border-bottom: 1px solid var(--pc-gold-line); color: var(--pc-muted); font: 500 11px/1.3 var(--pc-font-body); letter-spacing: 1px; text-align: left; text-transform: uppercase; }
.pc-ledger td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .04); color: var(--pc-text-2); font-size: 14px; vertical-align: top; }
:root[data-bs-theme="light"] .pc-ledger td { border-color: var(--pc-gold-line); }
.pc-ledger td a { color: var(--pc-text); }
.pc-ledger .pc-ledger__num { text-align: right; white-space: nowrap; }
.pc-ledger__plus { color: var(--pc-success) !important; font-weight: 700; }
.pc-ledger__minus { color: var(--pc-text) !important; }
.pc-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px 0; color: var(--pc-muted); }
@media (max-width: 600px) {
	.pc-ledger { border: 0; }
	.pc-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.pc-ledger, .pc-ledger tbody { display: block; }
	.pc-ledger tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-bottom: 8px; padding: 14px 16px; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); }
	.pc-ledger td { padding: 0; border: 0; }
	.pc-ledger td:nth-child(1) { grid-column: 1 / -1; color: var(--pc-muted); font-size: 12px; }
	.pc-ledger td:nth-child(4) { grid-column: 1 / -1; color: var(--pc-muted); font-size: 12px; text-align: left; }
	.pc-ledger td:nth-child(4)::before { content: attr(data-title) ": "; }
}

.pc-order-credits { margin: 32px 0; padding: 20px 24px; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); background: linear-gradient(145deg, rgba(211, 173, 83, .06), transparent 70%), var(--pc-surface); }
.pc-order-credits p { color: var(--pc-muted); }
.pc-order-credits__balance { margin: 12px 0 0; }

/* Block checkout: "Your credits" under the order summary. */
.pc-checkout-credits,
.wc-block-components-totals-wrapper .wc-block-components-order-meta .pc-checkout-credits { margin: 12px 16px; padding: 16px; border: 1px solid var(--pc-gold-line); border-radius: var(--pc-radius); background: rgba(211, 173, 83, .04); color: var(--pc-text-2); font-size: 14px; }
.pc-checkout-credits.is-busy { opacity: .6; }
.pc-checkout-credits p { margin: 0 0 6px; }
.pc-checkout-credits__title { color: var(--pc-gold-text); font: 700 11px/1.3 var(--pc-font-body); letter-spacing: 3px; text-transform: uppercase; }
.pc-checkout-credits__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.pc-checkout-credits__row strong { color: var(--pc-text); font: 700 18px/1 var(--pc-font-body); }
.pc-checkout-credits__link { padding: 0; border: 0; background: none; color: var(--pc-gold-text); font: 600 14px/1.3 var(--pc-font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pc-checkout-credits__link:disabled { opacity: .6; cursor: default; }
.pc-checkout-credits__form { display: flex; gap: 8px; margin: 10px 0 4px; }
.pc-checkout-credits__form input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--pc-line-2); border-radius: var(--pc-radius-sm); background: var(--pc-bg); color: var(--pc-text); font: 700 15px/1 var(--pc-font-body); letter-spacing: .1em; text-transform: uppercase; }
.pc-checkout-credits__form input:focus { outline: 2px solid var(--pc-gold); outline-offset: 1px; }
.pc-checkout-credits__button { min-height: 44px; padding: 0 18px; border: 1px solid var(--pc-gold); border-radius: var(--pc-radius); background: transparent; color: var(--pc-gold-text); font: 700 14px/1 var(--pc-font-body); cursor: pointer; }
.pc-checkout-credits__button:hover:not(:disabled) { background: var(--pc-gold); color: var(--pc-gold-ink); }
.pc-checkout-credits__button:disabled { opacity: .5; cursor: default; }
.pc-checkout-credits__message { margin-top: 8px !important; font-weight: 600; animation: pc-rise .3s var(--pc-ease); }
.pc-checkout-credits__message.is-success { color: var(--pc-success); }
.pc-checkout-credits__message.is-error { color: var(--pc-error); }
.pc-checkout-credits__hint a { color: var(--pc-gold-text); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.pc-spinner { animation-duration: 3s !important; animation-iteration-count: infinite !important; }
}
