/* gRoods Challenge: account forms, scrambles and leaderboards. Uses the theme's colour tokens. */
.groods-challenge-dates { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.groods-challenge-dates span { padding: 2px 10px; border-radius: 999px; font-size: .875rem; font-weight: 700; background: var(--wp--preset--color--mist, #eef1f6); }
.groods-challenge-dates .is-open { background: var(--wp--preset--color--tint-green, #c9eeda); }
.groods-challenge-dates .is-practice { background: var(--wp--preset--color--tint-yellow, #fff3b0); }
.groods-challenge-scrambles, .groods-challenge-times ol { padding-left: 1.4em; }
.groods-challenge-scrambles li, .groods-challenge-times li { margin-bottom: 8px; }
.groods-challenge code, .groods-challenge-times code { font-size: 1rem; background: var(--wp--preset--color--mist, #eef1f6); padding: 2px 6px; border-radius: 6px; word-spacing: 2px; }
.groods-challenge-times li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.groods-challenge-times li span { display: inline-flex; gap: 6px; }
.groods-challenge-times input[type=text] { width: 7em; }
.groods-challenge-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.groods-challenge-board { width: 100%; border-collapse: collapse; }
.groods-challenge-board th, .groods-challenge-board td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--wp--preset--color--mist-2, #dde3ec); }
.groods-challenge-board td:first-child { width: 2.5em; font-weight: 700; }
.groods-challenge-board tbody tr:nth-child(-n+3) td:first-child { color: var(--wp--preset--color--blue, #0046ad); }
.groods-verified { color: var(--wp--preset--color--green, #00843d); font-weight: 700; }
.groods-challenge-people { list-style: none; padding: 0; }
.groods-challenge-people li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 0; border-bottom: 1px solid var(--wp--preset--color--mist-2, #dde3ec); }
.groods-challenge-people form { margin-left: auto; }
.groods-challenge-entry { padding: 14px 16px; margin: 12px 0; border-radius: 12px; background: var(--wp--preset--color--mist, #eef1f6); }
.groods-challenge-entry h3 small { font-weight: 400; color: var(--wp--preset--color--muted, #4a5670); }
.groods-challenge-form fieldset { border: 0; padding: 0; display: grid; gap: 6px; }
.groods-challenge-fame { padding-left: 1.2em; }
.groods-challenge-account input[type=text], .groods-challenge-account input[type=number], .groods-challenge-account input[type=url], .groods-challenge-account select { box-sizing: border-box; min-height: 40px; padding: 0 10px; border: 2px solid var(--wp--preset--color--mist-2, #dde3ec); border-radius: 8px; background: #fff; font: inherit; }
.groods-challenge-account input[type=text]:focus, .groods-challenge-account input[type=number]:focus, .groods-challenge-account input[type=url]:focus, .groods-challenge-account select:focus { outline: none; border-color: var(--wp--preset--color--body, #14213d); box-shadow: 0 0 0 3px var(--wp--preset--color--yellow, #ffd500); }
.groods-challenge-form input[name=nickname] { width: min(100%, 320px); }
.groods-challenge-form input[name=birth_year] { width: 8em; }
.groods-challenge-video input[type=url] { width: min(100%, 420px); }
.groods-challenge-form label { line-height: 1.5; }
.groods-challenge-account input[type=radio], .groods-challenge-account input[type=checkbox] { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.groods-challenge-entry.is-video { background: var(--wp--preset--color--tint-yellow, #fff3b0); }
.groods-has-video { color: var(--wp--preset--color--blue, #0046ad); font-size: .8em; }
.groods-challenge-records { margin: 4px 0 14px; font-size: var(--wp--preset--font-size--small); }
.groods-challenge-records strong { color: var(--wp--preset--color--blue, #0046ad); }
.groods-record { padding: 16px; border-radius: 12px; background: var(--wp--preset--color--mist, #eef1f6); }
.groods-record h3 { margin-top: 0; }
.groods-record p { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; margin: 0 0 10px; }
.groods-record p span { color: var(--wp--preset--color--muted, #4a5670); }
.groods-record p strong { font: 800 1.6rem/1 var(--wp--preset--font-family--display, inherit); font-stretch: 85%; }
.groods-record p small { grid-column: 1 / -1; color: var(--wp--preset--color--muted, #4a5670); }
.groods-challenge-hof td:nth-child(4) { white-space: nowrap; }
.groods-challenge-famelink { margin-top: 18px; font-weight: 700; }
@media (max-width: 599px) { .groods-challenge-hof td:nth-child(2), .groods-challenge-hof th:nth-child(2) { display: none; } }
.groods-challenge-hof td:first-child, .groods-challenge-hof tbody tr:nth-child(-n+3) td:first-child { width: auto; font-weight: 400; color: inherit; white-space: nowrap; }
.groods-challenge-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.groods-challenge-rules { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
/* Timer (assets/challenge-timer.js). */
.groods-timer-open { margin-bottom: 14px; }
.groods-timer { margin: 0 0 18px; padding: 16px; border-radius: 16px; background: var(--wp--preset--color--body, #14213d); color: #fff; }
.groods-timer__step { margin: 0; font-weight: 700; color: var(--wp--preset--color--yellow, #ffd500); }
.groods-timer__scramble { margin: 6px 0 14px; font: 700 clamp(1.05rem, .9rem + 1vw, 1.5rem)/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-spacing: 4px; }
.groods-timer__pad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 220px; border: 0; border-radius: 12px; background: rgb(255 255 255 / .08); color: #fff; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.groods-timer__pad:focus-visible { outline: 3px solid var(--wp--preset--color--yellow, #ffd500); outline-offset: 2px; }
.groods-timer__time { font: 800 clamp(3rem, 2rem + 6vw, 5.5rem)/1 var(--wp--preset--font-family--display, inherit); font-variant-numeric: tabular-nums; }
.groods-timer__hint { font-weight: 700; opacity: .85; }
.groods-timer__pad[data-state="holding"] { background: #8a1c2b; }
.groods-timer__pad[data-state="ready"] { background: var(--wp--preset--color--green, #00843d); }
.groods-timer__pad[data-state="running"] { background: var(--wp--preset--color--blue, #0046ad); }
.groods-timer__help { margin: 10px 0 0; font-size: .875rem; opacity: .8; }
.groods-timer__result { display: flex; gap: 10px; margin: 12px 0 0; }
.groods-timer__result button { min-height: 48px; min-width: 72px; padding: 0 18px; border: 2px solid #fff; border-radius: 999px; background: transparent; color: #fff; font-weight: 800; cursor: pointer; }
.groods-timer__result button:first-child { background: var(--wp--preset--color--yellow, #ffd500); border-color: var(--wp--preset--color--yellow, #ffd500); color: var(--wp--preset--color--body, #14213d); }
.groods-timer .button-link { color: #fff; }
.groods-timer__result[hidden] { display: none; }
.groods-timer .groods-timer__close { padding: 8px 0; border: 0; background: none; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; }
