/* shared typography — the game root, the teaser, and everything inside them */
#politicle-root,.politicle-wrapper,.ppt{--politicle-accent:#6F00FF;--politicle-danger:#b32d2e;font-family:"Lexend",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:400;letter-spacing:-.05em}
#politicle-root *,.politicle-wrapper *,.ppt *{font-family:inherit;letter-spacing:inherit}
#politicle-root input,#politicle-root select,#politicle-root textarea,#politicle-root button,
.politicle-wrapper input,.politicle-wrapper select,.politicle-wrapper textarea,.politicle-wrapper button
{font-family:inherit;letter-spacing:inherit}

/* ── Politicle v6 ── */

/* Animations */
@keyframes politicle-shake {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}
@keyframes politicle-popIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes politicle-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes politicle-blink {
    50% { opacity: 0; }
}
@keyframes politicle-sq-blink {
    0%, 100% { border-color: #2E7D32; }
    50% { border-color: rgba(46,125,50,.3); }
}

/* ── Mobile header ── */
.politicle-site-header {
    display: none;
    text-align: left;
    padding: 12px 24px;
    font-weight: 500;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    background: #0A0A0A;
}
:where(.politicle-site-header) { font-size: .812rem; }
.politicle-site-header:hover { color: #fff; }
@media (max-width: 768px) {
    .politicle-site-header { display: block; }
}

/* ── Wrapper ── */
/* Max Width is an Elementor control writing max-width directly.
   --politicle-offset is whatever sits above the game — a nav bar — so the board
   can take the rest of the screen without guessing at it. */
.politicle-wrapper {
    --politicle-offset: 0px;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0;
    font-family: inherit;
    color: #333;
    -webkit-font-smoothing: antialiased;
    position: relative;
}
.politicle-wrapper *,
.politicle-wrapper *::before,
.politicle-wrapper *::after {
    box-sizing: border-box;
}
.politicle-wrapper :where(button) {
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

/* ── Game card ── */
.politicle-card {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

/* Spans the container, whatever Max Width says — the !important is deliberate,
   since Elementor's own max-width rule is more specific than this file. */
.politicle-wrapper.is-wide{
    max-width: none !important;
    width: 100%;
    margin: 0;
}

/* Full height: the wrapper fills what's left below the nav, the card becomes a
   column, the clues take the slack and scroll, and the controls sit on the
   floor of it. */
.politicle-wrapper.is-full{
    height: calc(100dvh - var(--politicle-offset));
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.politicle-wrapper.is-full .politicle-card{
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.politicle-wrapper.is-full .politicle-scroll{
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}
/* The clue area absorbs the spare height. Everything after it — the dots, then
   the list of wrong guesses — is pushed down to sit just above the keyboard. */
.politicle-wrapper.is-full .politicle-carousel{
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.politicle-wrapper.is-full .politicle-carousel-track{
    flex: 1;
    min-height: 0;
}
.politicle-wrapper.is-full .politicle-dots{margin-top: auto}
.politicle-wrapper.is-full .politicle-wrong-display{flex: 0 0 auto}
.politicle-wrapper.is-full .politicle-controls{
    position: static;   /* the column pins it, so sticky isn't needed */
    flex: 0 0 auto;
}

/* Input and keyboard ride the bottom of the screen, so a long clue list scrolls
   underneath them rather than pushing them out of reach. overflow:hidden on the
   card would make it the scroll container and stop this working, hence its
   removal above — the square corners no longer need the clip. */
.politicle-controls {
    position: sticky;
    bottom: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid var(--ps-rule, #DEDEDE);
}

/* Card header */
.politicle-card-header {
    padding: 20px 24px;
    background: #2E7D32;
    color: #fff;
}
.politicle-card-label {
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: 4px;
}
:where(.politicle-card-label) { font-size: .688rem; }
.politicle-card-headline {
    font-weight: 700;
}
:where(.politicle-card-headline) { font-size: 1.5rem; }

/* ── Starting info ── */
.politicle-starting-info {
    padding: 20px 24px;
    border-bottom: 1px solid #E8E8E8;
    display: grid;
    /* the last column is the help button, sized to its own content */
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 16px;
}
.politicle-info-pill {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.politicle-info-label {
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #2E7D32;
}
:where(.politicle-info-label) { font-size: .625rem; }
.politicle-info-value {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
:where(.politicle-info-value) { font-size: 1rem; }
.politicle-party-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #999;
    flex-shrink: 0;
}

/* ── Guess progress squares ── */
.politicle-guess-track {
    padding: 20px 24px;
    border-bottom: 1px solid #E8E8E8;
}
.politicle-track-label {
    color: #555;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}
:where(.politicle-track-label) { font-size: .75rem; }
.politicle-squares-row {
    display: flex;
    gap: 8px;
}
.politicle-squares-row.result-squares {
    justify-content: center;
    margin-bottom: 16px;
}
.politicle-guess-sq {
    flex: 1;
    height: 44px;
    border-radius: 4px;
    border: 2px solid #E8E8E8;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all .2s;
    color: #fff;
}
:where(.politicle-guess-sq) { font-size: 1.125rem; }
.politicle-guess-sq.current {
    border-color: #2E7D32;
    border-width: 2.5px;
    animation: politicle-sq-blink 1s ease-in-out infinite;
}
.politicle-guess-sq.used-wrong {
    background: #C62828;
    border-color: #C62828;
}
.politicle-guess-sq.used-correct {
    background: #2E7D32;
    border-color: #2E7D32;
}

/* ── Clue carousel ── */
.politicle-carousel {
    border-bottom: 1px solid #E8E8E8;
    padding: 0 24px 16px;
}
.politicle-carousel-track {
    position: relative;
    min-height: 140px;
    touch-action: pan-y;
    cursor: grab;
    overflow: hidden;
}
.politicle-slide {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 16px 0;
    animation: politicle-fadeIn 0.3s ease;
}
.politicle-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
/* The clue and the lock are centred in the track rather than pinned to the top,
   so a one-line clue does not leave a hole beneath it. */
.politicle-slide-content {
    width: 100%;
    text-align: left;
}
.politicle-carousel-track{display:flex;align-items:center}
.politicle-slide.active{align-items:center;justify-content:center;width:100%}
.politicle-slide{display:none;align-items:center;justify-content:center}
.politicle-clue-locked{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    width:100%;height:100%
}
.politicle-clue-label {
    font-weight: 500;
    color: #2E7D32;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
:where(.politicle-clue-label) { font-size: .625rem; }
.politicle-clue-body {
    line-height: 1.6;
    padding: 12px 16px;
    background: #F5F5F5;
    border-radius: 4px;
    border-left: 3px solid #2E7D32;
}
:where(.politicle-clue-body) { font-size: .875rem; }
.politicle-clue-locked-card {
    text-align: center;
    margin-bottom: 8px;
}
:where(.politicle-clue-locked-card) { font-size: 2rem; }
.politicle-clue-locked-text {
    text-align: center;
    color: #999;
}
:where(.politicle-clue-locked-text) { font-size: .812rem; }

/* Dots */
.politicle-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.politicle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.politicle-dot.active {
    background: #666;
    transform: scale(1.2);
}

/* ── Wrong guesses ── */
.politicle-wrong-display {
    padding: 0 24px;
    color: #C62828;
    font-weight: 500;
    margin-bottom: 4px;
}
:where(.politicle-wrong-display) { font-size: .812rem; }

/* ── Input section ── */
.politicle-input-section {
    padding: 16px 24px;
}
.politicle-input-wrapper {
    position: relative;
}
.politicle-input-display {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    border: 2px solid #E8E8E8;
    border-radius: 6px;
    background: #fff;
    color: #333;
    min-height: 46px;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color .15s;
}
:where(.politicle-input-display) { font-size: .938rem; }
.politicle-input-display.shake {
    animation: politicle-shake 0.4s ease;
}
.politicle-placeholder { color: #aaa; }
.politicle-cursor {
    color: #999;
    animation: politicle-blink 1s step-end infinite;
    font-weight: 300;
}

/* Autocomplete */
.politicle-autocomplete {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0,0,0,.1);
    display: none;
    max-height: 200px;
    overflow-y: auto;
}
.politicle-autocomplete.active { display: block; }
.politicle-autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.1s ease;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}
:where(.politicle-autocomplete-item) { font-size: .875rem; }
.politicle-autocomplete-item:hover,
.politicle-autocomplete-item.selected {
    background: #F5F5F5;
}
/* autocomplete thumbnails stay neutral — a party colour here would give the game away */
.politicle-ac-img {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
}
.politicle-ac-img-placeholder {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E8E8E8;
}
.politicle-ac-name {
    flex: 1;
    min-width: 0;
}

/* ── Keyboard ── */
.politicle-keyboard {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px 24px 20px;
    user-select: none;
    -webkit-user-select: none;
}
.politicle-kb-row {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    width: 100%;
}
.politicle-kb-row:nth-child(2) {
    grid-template-columns: repeat(9, 1fr);
    padding: 0 5%;
}
.politicle-kb-row:nth-child(3) {
    grid-template-columns: 1.5fr repeat(7, 1fr) 1.5fr;
}
.politicle-kb-key {
    height: 44px;
    border-radius: var(--ps-radius, 10px);
    background: #e0e0e0 !important;
    color: var(--ps-black, #111111) !important;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    transition: background 0.1s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: 0;
}
:where(.politicle-kb-key) { font-size: .94rem; }
.politicle-kb-key:hover { background: #ccc !important; }
.politicle-kb-key:active { background: #bbb !important; transform: scale(0.95); }
.politicle-kb-enter { background: #d0d0d0 !important; color: var(--ps-black, #111111) !important; }
:where(.politicle-kb-enter) { font-size: .82rem; }
.politicle-kb-enter:hover { background: #c2c2c2 !important; }
.politicle-kb-backspace { background: #d0d0d0 !important; }
:where(.politicle-kb-backspace) { font-size: .812rem; }

/* ── Result panel ── */
.politicle-result-panel {
    padding: 32px 24px;
    text-align: center;
}
.politicle-result-panel.win {
    background: linear-gradient(135deg, #e8f5e9, #f1f8f1);
}
.politicle-result-panel.lose {
    background: linear-gradient(135deg, #fff8e1, #fffde7);
}
.politicle-result-hed {
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 6px;
}
.politicle-result-panel.lose .politicle-result-hed {
    color: #C62828;
}
:where(.politicle-result-hed) { font-size: 1.75rem; }
.politicle-result-sub {
    color: #555;
    margin-bottom: 20px;
}
:where(.politicle-result-sub) { font-size: .875rem; }

/* MP reveal card */
.politicle-mp-reveal {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid #E8E8E8;
}
.politicle-mp-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8E8E8;
}
:where(.politicle-mp-avatar) { font-size: 1.75rem; }
.politicle-mp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.politicle-mp-name {
    font-weight: 700;
    margin-bottom: 4px;
}
:where(.politicle-mp-name) { font-size: 1.25rem; }
.politicle-mp-detail {
    color: #555;
    line-height: 1.5;
}
:where(.politicle-mp-detail) { font-size: .812rem; }

/* Share text preview */
.politicle-share-text {
    background: #F5F5F5;
    border-radius: 6px;
    padding: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: left;
    white-space: pre-line;
    color: #555;
}
:where(.politicle-share-text) { font-size: .812rem; }

/* Result action buttons */
.politicle-result-actions {
    display: flex;
    gap: 10px;
}
.politicle-result-btn {
    flex: 1;
    padding: 11px 20px;
    border-radius: var(--ps-pill, 99px);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    color: #fff;
}
:where(.politicle-result-btn) { font-size: .86rem; }
.politicle-wrapper .politicle-btn-share,
.politicle-wrapper .politicle-btn-share:focus,
.politicle-wrapper .politicle-btn-share:active {
    background: var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))!important;
    color: #fff!important;
    border: 0!important;
    box-shadow: none!important;
}
.politicle-wrapper .politicle-btn-share:hover {
    background: var(--ps-black, #111111)!important;
    color: #fff!important;
}

/* ── Share popup ── */
.politicle-share-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; padding: 16px;
}
.politicle-share-popup {
    background: #fff; border-radius: var(--ps-radius, 10px); padding: 24px;
    max-width: 380px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: politicle-popIn 0.25s ease;
}
.politicle-share-popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.politicle-share-popup-title { font-family: inherit; font-weight: 700; color: #1a1a1a; margin: 0; }
:where(.politicle-share-popup-title) { font-size: 1.2rem; }
.politicle-share-close { background: none; border: none; cursor: pointer; color: var(--ps-black, #111111); padding: 4px 8px; border-radius: var(--ps-radius, 10px); line-height: 1; transition: color .15s ease; }
.politicle-share-close:hover { color: var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF))); }
:where(.politicle-share-close) { font-size: 1.1rem; }
.politicle-share-preview { background: #F5F5F5; border: 1px solid var(--ps-rule, #DEDEDE); border-radius: var(--ps-radius, 10px); padding: 14px 16px; margin-bottom: 16px; }
.politicle-share-preview pre { line-height: 1.6; color: #555; margin: 0; font-family: inherit; white-space: pre-wrap; }
:where(.politicle-share-preview pre) { font-size: .82rem; }
.politicle-share-links { display: flex; flex-direction: column; gap: 8px; }
.politicle-share-link-btn {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 11px 18px; border: none; border-radius: var(--ps-pill, 99px);
    color: #fff; font-weight: 600; font-family: inherit; cursor: pointer;
    transition: filter .15s ease;
}
:where(.politicle-share-link-btn) { font-size: .86rem; }
.politicle-share-link-btn:hover { filter: brightness(.9); }
.politicle-share-link-btn .icon { width: 22px; text-align: center; }
:where(.politicle-share-link-btn .icon) { font-size: 1rem; }

/* ── Toast ── */
.politicle-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
:where(.politicle-toast) { font-size: .875rem; }
.politicle-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ── Utility ── */
.politicle-hidden { display: none !important; }

/* ---------------------------------------------------------------- headshots
   One treatment everywhere: circular, party colour behind, no border.
   The party colour shows through where a photo is missing or transparent.
   Deliberately NOT applied to the Politicle autocomplete, where the colour
   would give the answer away. */
.pmd-photo,.pfc-avatar,.pfc-person-pic,.pfl-headshot,.politicle-mp-avatar{
  border-radius:50%;overflow:hidden;border:0!important;box-shadow:none!important;
  background:var(--party-colour,#e8e8e8);
  display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.pmd-photo img,.pfc-avatar img,.pfc-person-pic img,.pfl-headshot img,.politicle-mp-avatar img{
  width:100%;height:100%;object-fit:cover;object-position:center top;display:block}

@media(max-width:420px){
  .ppt-line{font-size:.9rem}
}

/* ------------------------------------------------- today's puzzle as a card */
.ppc{--ppc-bg:#6F00FF;--ppc-ink:#fff;--ppc-btn-bg:#fff;--ppc-btn-ink:#111;
  --ppc-radius:10px;--ppc-pad:18px;--ppc-av:78px;--ppc-min-h:0px;
  font-family:"Lexend",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight:400;letter-spacing:-.05em;
  display:flex;align-items:stretch;justify-content:space-between;gap:16px;
  width:100%;
  background:var(--ppc-bg);color:var(--ppc-ink)!important;text-decoration:none!important;
  border-radius:var(--ppc-radius);padding:var(--ppc-pad);
  min-height:var(--ppc-min-h);
  transition:filter .15s ease}
.ppc *{font-family:inherit;letter-spacing:inherit;box-sizing:border-box}
.ppc:hover{filter:brightness(1.06);color:var(--ppc-ink)!important}

/* The body fills the card's height and the button takes the leftover space
   above it, so Play now sits on the foot the way Read more does. */
.ppc-body{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0;flex:1}
.ppc-btn{margin-top:auto}

.ppc-head{font-size:1.05rem;font-weight:700;line-height:1.25;text-transform:uppercase;
  letter-spacing:-.02em;color:var(--ppc-ink)}
.ppc-lines{display:flex;flex-direction:column;gap:2px}
.ppc-line{font-size:.86rem;line-height:1.45;color:var(--ppc-ink);opacity:.95}
.ppc-btn{display:inline-block;background:var(--ppc-btn-bg);color:var(--ppc-btn-ink);
  border-radius:var(--ps-pill,99px);
  padding:var(--ps-teaser-btn-pad,8px 18px);font-size:var(--ps-teaser-btn-size,.78rem);
  font-weight:var(--ps-teaser-btn-weight,700);line-height:1.3;
  text-transform:uppercase;letter-spacing:var(--ps-teaser-btn-track,.03em)}

.ppc-avatar{flex:0 0 auto;align-self:center;width:var(--ppc-av);height:var(--ppc-av);border-radius:50%;
  background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;
  overflow:hidden;color:#b9bcc2;padding:0}
.ppc-avatar svg{width:100%;height:100%;display:block}
.ppc.is-played{opacity:.9}

@media(max-width:440px){
  .ppc{--ppc-av:58px;--ppc-pad:14px;gap:12px}
  .ppc-head{font-size:.95rem}
  .ppc-line{font-size:.8rem}
}

/* administrator-only reset on the result panel — the suite's secondary pill */

/* ── Result: clue recap ──
   Every clue, including the ones the player never had to see. */
.politicle-clue-recap{
  margin-top:22px;
  text-align:left;
  border-top:1px solid var(--ps-rule,#DEDEDE);
  padding-top:18px
}
.politicle-clue-recap-head{
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--ps-black,#111111);
  margin-bottom:12px
}
:where(.politicle-clue-recap-head){font-size:.72rem}
.politicle-clue-recap-item + .politicle-clue-recap-item{margin-top:12px}

/* the reveal card becomes a link to the MP's profile */
.politicle-mp-reveal.is-link{
  text-decoration:none;
  color:inherit;
  transition:border-color .15s ease,background .15s ease;
  border:1px solid transparent
}

.politicle-mp-name{transition:color .15s ease}

/* ── How to play ──
   Shown once on a first visit, and reachable afterwards from the bar above the
   card. Sits on the suite's popup treatment: 10px corners, #DEDEDE rules,
   purple pill for the primary action. */
/* A circled question mark that takes its height from the row it sits in —
   stretch sets the height, aspect-ratio makes the width follow, so it stays a
   circle whatever the info block grows to. */
.politicle-wrapper .politicle-howto-open{
  align-self:stretch;
  justify-self:end;
  flex:0 0 auto;
  height:auto;
  width:auto;
  aspect-ratio:1;
  min-height:28px;
  max-height:56px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1.5px solid var(--politicle-line,#d8d8dd);
  border-radius:50%;
  background:none!important;
  color:var(--politicle-muted,#6b6b72)!important;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:border-color .15s ease,color .15s ease
}
:where(.politicle-howto-open){font-size:.95rem}
.politicle-wrapper .politicle-howto-open:hover,
.politicle-wrapper .politicle-howto-open:focus-visible{
  border-color:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)));
  color:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))!important
}

.politicle-howto-overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,.45);
  display:flex;align-items:center;justify-content:center;
  z-index:10000;padding:16px
}
.politicle-howto-overlay.politicle-hidden{display:none}
.politicle-howto-popup{
  background:#fff;
  border-radius:var(--ps-radius,10px);
  padding:24px;
  max-width:440px;width:100%;
  max-height:85vh;overflow-y:auto;
  box-shadow:0 20px 60px rgba(0,0,0,.2);
  animation:politicle-popIn .25s ease;
  text-align:left
}
.politicle-howto-header{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  margin-bottom:14px
}
.politicle-howto-title{
  font-family:inherit;font-weight:700;color:var(--ps-black,#111111);margin:0;line-height:1.25
}
:where(.politicle-howto-title){font-size:1.2rem}
.politicle-howto-close{
  background:none;border:0;cursor:pointer;line-height:1;padding:2px 4px;
  color:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)));transition:color .15s ease
}
:where(.politicle-howto-close){font-size:1rem}
.politicle-howto-close:hover{color:var(--ps-black,#111111)}

/* Numbered, counting manually so the marker can be styled — a plain <ol>
   marker can't take a colour or a weight. */
.politicle-howto-list{
  list-style:none;margin:0 0 20px;padding:0;
  counter-reset:phowto;
  display:flex;flex-direction:column;gap:11px
}
.politicle-howto-list li{
  position:relative;
  padding-left:30px;
  line-height:1.55;
  color:#3a3a44;
  counter-increment:phowto
}
:where(.politicle-howto-list li){font-size:.9rem}
.politicle-howto-list li::before{
  content:counter(phowto) ".";
  position:absolute;left:0;top:0;
  width:22px;
  text-align:left;
  font-weight:700;
  color:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))
}
.politicle-howto-list strong{color:var(--ps-black,#111111);font-weight:700}
.politicle-howto-go{width:100%;flex:0 0 auto;
  background:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))!important;
  border:0!important;color:#fff!important}
.politicle-howto-go:hover{background:var(--ps-black,#111111)!important;color:#fff!important}

@media(max-width:480px){
  /* three columns, not two — with two the button wrapped onto its own line */
  .politicle-starting-info{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;padding:14px 16px}
  .politicle-wrapper .politicle-howto-open{min-height:26px;max-height:40px}
  .politicle-howto-popup{padding:20px}
  :where(.politicle-howto-title){font-size:1.05rem}
}


/* ── Desktop ──
   On a wide screen the board has far more room than a phone, and the clue was
   still set at phone size with space going spare around it. Everything here is
   inside :where(), so Elementor's typography controls still win. */
@media(min-width:900px){
  .politicle-carousel{padding:0 32px 22px}
  .politicle-carousel-track{min-height:200px}

  :where(.politicle-clue-body){font-size:1.15rem}
  .politicle-clue-body{padding:20px 26px;line-height:1.65;border-left-width:4px}
  :where(.politicle-clue-label){font-size:.72rem}
  .politicle-clue-label{margin-bottom:10px}

  :where(.politicle-clue-locked-card){font-size:2.6rem}
  :where(.politicle-clue-locked-text){font-size:.95rem}

  .politicle-starting-info{padding:24px 32px}
  :where(.politicle-info-value){font-size:1.2rem}
  :where(.politicle-info-label){font-size:.7rem}

  .politicle-guess-track{padding:0 32px 18px}
  :where(.politicle-track-label){font-size:.85rem}
  :where(.politicle-guess-sq){font-size:1.35rem}

  .politicle-controls{padding-bottom:4px}
  :where(.politicle-kb-key){font-size:1.05rem}
  .politicle-kb-key{height:52px}
}

/* Taller still: the clue can take the extra rather than leaving a hole. */
@media(min-width:900px) and (min-height:800px){
  .politicle-carousel-track{min-height:260px}
  :where(.politicle-clue-body){font-size:1.25rem}
}


/* ── Phones ──
   Down to the label and the clue line. The card is the link, so the button and
   the silhouette are not carrying anything the tap doesn't already do. */
@media(max-width:600px){
  .ppc.is-compact{padding:10px 12px;align-items:center;text-align:center}
  .ppc.is-compact .ppc-avatar{display:none}
  .ppc.is-compact .ppc-btn{display:none}
  .ppc.is-compact .ppc-body{gap:2px;align-items:center;text-align:center;width:100%}
  .ppc.is-compact .ppc-head{
    font-size:.6rem;
    letter-spacing:.1em;
    text-transform:uppercase;
    line-height:1.2;
    opacity:.85
  }
  .ppc.is-compact .ppc-line{
    font-size:.86rem;
    line-height:1.3
  }
}


/* ── Party colour, everywhere it is pressed or pointed at ──
   The keyboard is deliberately left out: the letters are not the game's accent
   and colouring them would make the board read as a hint. */
.politicle-wrapper .politicle-result-btn:not(.politicle-btn-share):hover,
.politicle-wrapper .politicle-share-link-btn:focus-visible,
.politicle-wrapper .politicle-howto-open:active{
  border-color:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))
}
.politicle-wrapper a:hover .politicle-mp-name,
.politicle-wrapper .politicle-replay-link:hover{
  color:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))
}
.politicle-wrapper .politicle-result-btn:focus-visible,
.politicle-wrapper .politicle-howto-open:focus-visible,
.politicle-wrapper .politicle-dot:focus-visible{
  outline:2px solid var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)));outline-offset:2px
}

/* ── Phones ──
   The clue is the thing being read, and at the old size a long career clue
   filled the screen. Down a step, with the lock to match. */
@media(max-width:600px){
  :where(.politicle-clue-body){font-size:.8rem}
  .politicle-clue-body{padding:10px 13px;line-height:1.55}
  :where(.politicle-clue-label){font-size:.58rem}
  .politicle-clue-label{margin-bottom:4px}
  :where(.politicle-clue-locked-card){font-size:1.7rem}
  :where(.politicle-clue-locked-text){font-size:.74rem}
  .politicle-carousel{padding:0 14px 16px}
}
@media(max-width:380px){
  :where(.politicle-clue-body){font-size:.76rem}
  .politicle-clue-body{padding:9px 11px}
}


/* ── How to play: the two buttons ──
   The overlay is appended after the wrapper closes, so anything scoped to
   .politicle-wrapper never reached it. Scoped to the overlay itself, and
   pinned, because the theme paints every button it can see. */
.politicle-howto-overlay .politicle-howto-close,
.politicle-howto-overlay .politicle-howto-close:focus,
.politicle-howto-overlay .politicle-howto-close:active{
  background:none!important;border:0!important;box-shadow:none!important;
  padding:2px 4px;margin:0;min-height:0;line-height:1;cursor:pointer;
  color:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))!important;
  transition:color .15s ease
}
.politicle-howto-overlay .politicle-howto-close:hover{
  color:var(--ps-black,#111111)!important
}

.politicle-howto-overlay .politicle-howto-go,
.politicle-howto-overlay .politicle-howto-go:focus,
.politicle-howto-overlay .politicle-howto-go:active{
  width:100%;flex:0 0 auto;border:0!important;box-shadow:none!important;
  background:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))!important;
  color:#fff!important
}
.politicle-howto-overlay .politicle-howto-go:hover{
  background:var(--ps-black,#111111)!important;color:#fff!important
}
.politicle-howto-overlay .politicle-howto-list li::before{
  color:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))
}

/* the share popup is outside the wrapper too */
.politicle-share-overlay .politicle-share-close,
.politicle-share-overlay .politicle-share-close:hover,
.politicle-share-overlay .politicle-share-close:focus,
.politicle-share-overlay .politicle-share-close:active{
  background:none!important;background-image:none!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  padding:4px 8px;margin:0;min-height:0
}
.politicle-share-overlay .politicle-share-close{color:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))!important}
.politicle-share-overlay .politicle-share-close:hover{color:var(--ps-black,#111111)!important}


/* ── The clue, centred in the space it is given ──
   Small and in the middle of the track rather than pinned to the top, so a
   one-line constituency clue reads the same as a long career one. */
.politicle-carousel-track{display:flex;align-items:center;justify-content:center}
.politicle-slide{align-items:center;justify-content:center}
.politicle-slide.active{display:flex;width:100%}
.politicle-slide-content{width:100%;margin:auto;text-align:center}
.politicle-clue-label{text-align:center}
.politicle-clue-body{
  text-align:center;
  border-left:0;
  border-top:3px solid #2E7D32;
  max-width:44em;margin-left:auto;margin-right:auto
}
.politicle-clue-locked{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}

/* a step down from where it was, on every size */
:where(.politicle-clue-body){font-size:.82rem}
@media(min-width:900px){
  :where(.politicle-clue-body){font-size:.9rem}
  .politicle-clue-body{padding:14px 20px;border-top-width:3px}
}
@media(min-width:900px) and (min-height:800px){
  :where(.politicle-clue-body){font-size:.95rem}
}
@media(max-width:600px){
  :where(.politicle-clue-body){font-size:.78rem}
  .politicle-clue-body{padding:10px 13px;line-height:1.55}
  :where(.politicle-clue-label){font-size:.58rem}
  :where(.politicle-clue-locked-card){font-size:1.7rem}
  :where(.politicle-clue-locked-text){font-size:.74rem}
}
@media(max-width:380px){
  :where(.politicle-clue-body){font-size:.74rem}
}


/* ── The reveal card, as a card ──
   Same shape as the MP cards elsewhere: the person, then a button. The whole
   card is no longer the link, so the button carries the action.  */
.politicle-mp-reveal{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:16px;border:1px solid var(--ps-rule,#DEDEDE);border-radius:var(--ps-radius,10px);
  background:#fff;text-align:left
}
.politicle-mp-info{flex:1 1 140px;min-width:0}
.politicle-mp-profile{
  flex:0 0 auto;
  display:inline-block;
  padding:10px 20px;
  border-radius:var(--ps-pill,99px);
  background:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))!important;
  color:#fff!important;
  font-weight:700;font-size:.82rem;line-height:1.3;
  text-decoration:none!important;
  transition:background .15s ease
}
.politicle-mp-profile:hover{background:var(--ps-black,#111111)!important;color:#fff!important}
@media(max-width:480px){
  .politicle-mp-reveal{flex-direction:column;text-align:center}
  .politicle-mp-info{flex:1 1 auto}
  .politicle-mp-profile{width:100%;text-align:center}
}


/* ── Join prompt ──
   Under the share button, for a player with no account to lose. Outlined rather
   than filled, so it reads as the second action and not a rival to sharing. */
.politicle-join{margin-top:14px;text-align:center}
.politicle-join-text{
  font-size:.82rem;font-weight:600;
  color:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)));
  margin-bottom:8px;line-height:1.35
}
.politicle-wrapper .politicle-join-btn,
.politicle-wrapper .politicle-join-btn:focus,
.politicle-wrapper .politicle-join-btn:active{
  display:inline-block;width:100%;
  padding:11px 20px;margin:0;min-height:0;
  border-radius:var(--ps-pill,99px);
  border:1.5px solid var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))!important;
  background:none!important;background-image:none!important;box-shadow:none!important;
  color:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))!important;
  font:inherit;font-size:.86rem;font-weight:700;text-transform:none;
  text-decoration:none!important;cursor:pointer;
  transition:background .15s ease,color .15s ease
}
.politicle-wrapper .politicle-join-btn:hover{
  background:var(--politicle-party,var(--politicle-today,var(--ps-purple,#6F00FF)))!important;
  color:#fff!important
}
