.perfect-sixes-progress{width:min(100%,460px);margin:0 auto 12px;text-align:center}
.perfect-sixes-progress>strong{display:block;margin-bottom:8px;color:var(--text);font-size:14px;text-transform:uppercase}
.perfect-sixes-progress ol{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:0;padding:0;list-style:none}
.perfect-sixes-progress li{display:grid;place-items:center;min-width:0}
.perfect-sixes-progress li span{display:grid;width:32px;height:32px;place-items:center;border:2px solid var(--border);border-radius:50%;background:#fff;color:#1e2428;font-weight:900}
.perfect-sixes-progress li.is-complete span{border-color:var(--green);background:var(--green);color:#fff}
#perfect-sixes-prompt{display:grid;gap:4px;min-height:24px;margin:8px 0 0;color:var(--muted);font-size:14px;font-weight:750}
#perfect-sixes-prompt strong{color:var(--text);text-transform:uppercase}
.perfect-stage-dialog{text-align:center}
.perfect-stage-dialog .dialog-actions a,.perfect-stage-dialog .dialog-actions button{display:inline-grid;min-height:44px;place-items:center;padding:0 22px;border:0;border-radius:8px;background:var(--green);color:#fff;font:inherit;font-weight:850;text-decoration:none}
.perfect-instructions-dialog .entry-guide-copy ul{display:grid;gap:8px;margin:0;padding-left:22px;text-align:left}
.perfect-clue-guide{display:grid;gap:9px;margin:14px 0}
.perfect-clue-guide__row{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:center;min-width:0;color:var(--text);font-weight:750;line-height:1.3}
.perfect-clue-guide__tile{display:grid;width:40px;height:40px;place-items:center;border:2px solid;border-radius:50%;color:#fff;font:900 20px/1 inherit}
.perfect-clue-guide__tile.correct{border-color:var(--green);background:var(--green)}
.perfect-clue-guide__tile.present{border-color:var(--amber);background:var(--amber)}
.perfect-clue-guide__tile.absent{border-color:var(--grey);background:var(--grey)}
.perfect-clue-guide__tile.neutral{border-style:solid;border-color:var(--state-hidden-border);background:var(--state-hidden-bg);color:var(--state-hidden-text)}
.game-board .tile.neutral{border:2px solid var(--state-hidden-border)!important;background:var(--state-hidden-bg)!important;color:var(--state-hidden-text)!important;box-shadow:none!important}
.game-board .tile.neutral::before,.game-board .tile.neutral.flip::before{background:var(--state-hidden-bg)!important}
.perfect-clue-guide .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.perfect-instructions-dialog .dialog-actions{display:grid;grid-template-columns:1fr;gap:12px;margin-top:20px}
.perfect-instructions-dialog .dialog-actions button{display:grid;width:100%;min-height:50px;place-items:center;padding:10px 16px;border:2px solid var(--green);border-radius:8px;font:inherit;font-weight:850;line-height:1.2;text-align:center;text-transform:uppercase;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .1s ease,box-shadow .15s ease}
.perfect-instructions-dialog .dialog-actions .continue{background:var(--green);color:#fff}
.perfect-instructions-dialog .dialog-actions .perfect-home-action{grid-template-columns:auto auto;justify-content:center;gap:8px;background:#fff;color:var(--green)}
.perfect-instructions-dialog .dialog-actions .continue:hover{filter:brightness(.92)}
.perfect-instructions-dialog .dialog-actions .perfect-home-action:hover{background:color-mix(in srgb,var(--green) 9%,#fff)}
.perfect-instructions-dialog .dialog-actions button:active{transform:translateY(1px);filter:brightness(.84)}
.perfect-instructions-dialog .dialog-actions button:focus-visible{outline:3px solid var(--amber);outline-offset:3px;box-shadow:0 0 0 1px #fff}
.perfect-instructions-dialog .dialog-actions button:disabled{cursor:not-allowed;opacity:.55;transform:none;filter:none}
.perfect-completion-dialog{width:min(calc(100% - 24px),680px);max-height:min(90dvh,760px);padding:22px 24px 24px;overflow:auto;border:1px solid color-mix(in srgb,var(--green) 22%,var(--border));border-radius:8px;background:#fffdf8;color:var(--text);box-shadow:0 18px 48px rgba(20,38,58,.2);text-align:center}
.perfect-completion-header{display:grid;justify-items:center}.perfect-completion-header .result-owl{margin:0 0 3px;font-size:34px;line-height:1}.perfect-completion-header .eyebrow{margin:0;color:var(--green);font-size:11px;font-weight:900;letter-spacing:1.4px;text-transform:uppercase}.perfect-completion-header h2{margin:5px 0 7px;color:var(--text);font-size:25px;line-height:1.05}.perfect-completion-status{display:inline-grid;min-height:24px;place-items:center;padding:3px 12px;border:1px solid color-mix(in srgb,var(--green) 55%,#fff);border-radius:999px;background:color-mix(in srgb,var(--green) 10%,#fff);color:var(--green);font-size:11px;letter-spacing:1.2px;text-transform:uppercase}.perfect-completion-header p{margin:9px 0 0;color:var(--muted);font-size:14px;font-weight:700}
.perfect-completion-stages{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:18px 0;padding:0;list-style:none}.perfect-completion-stages li{display:grid;min-width:0;gap:4px;align-content:center;min-height:62px;padding:7px 3px;border:1px solid var(--border);border-radius:6px;background:#fff}.perfect-completion-stages span{overflow:hidden;color:var(--muted);font-size:11px;font-weight:800;line-height:1.1;white-space:nowrap}.perfect-completion-stages strong{color:var(--text);font-size:19px;line-height:1}
.perfect-completion-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0 0 18px;padding:14px 0;border-block:1px solid var(--border);text-align:left}.perfect-completion-summary dl{display:grid;align-content:start;gap:10px;min-width:0;margin:0;padding:0 18px 0 0}.perfect-completion-summary dl+dl{padding:0 0 0 18px;border-left:1px solid var(--border)}.perfect-completion-summary div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:baseline;min-width:0}.perfect-completion-summary dt{min-width:0;color:var(--muted);font-size:13px;line-height:1.2}.perfect-completion-summary dd{margin:0;color:var(--text);font-size:13px;font-weight:850;line-height:1.2;text-align:right;white-space:nowrap}.perfect-completion-summary .perfect-completion-total{padding-top:9px;border-top:1px solid color-mix(in srgb,var(--green) 30%,var(--border))}.perfect-completion-total dt,.perfect-completion-total dd{color:var(--green);font-weight:900}
.perfect-completion-dialog .result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.perfect-completion-dialog .result-actions>a,.perfect-completion-dialog .result-actions>button{display:grid;width:100%;min-width:0;height:46px;min-height:46px;place-items:center;padding:7px 12px;border-radius:8px;font-size:14px;font-weight:850;line-height:1;text-decoration:none;white-space:nowrap}
.perfect-final-confirmation{text-align:center}.perfect-final-confirmation>strong{display:block;margin:16px 0;color:var(--green);font-size:28px}.perfect-final-confirmation .dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.perfect-final-confirmation button{min-height:44px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--text);font:inherit;font-weight:850}.perfect-final-confirmation [data-submit]{border-color:var(--green);background:var(--green);color:#fff}
.perfect-sixes-dev-controls{width:min(100%,460px);margin:14px auto 0;padding:10px;border:1px dashed var(--amber);background:var(--panel);color:var(--text);font-size:12px}
.perfect-sixes-dev-controls summary{cursor:pointer;font-weight:850;text-transform:uppercase}
.perfect-sixes-dev-controls div{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.perfect-sixes-dev-controls button{min-height:32px;padding:5px 8px;border:1px solid var(--border);border-radius:6px;background:var(--background-soft);color:var(--text);font:inherit;font-weight:750}
.perfect-sixes-dev-controls output{display:block;min-height:18px;margin-top:8px;color:var(--amber);font-weight:800}
@media(max-height:820px){.perfect-sixes-progress{margin-bottom:7px}.perfect-sixes-progress li span{width:27px;height:27px}.perfect-sixes-progress>strong{margin-bottom:5px}#perfect-sixes-prompt{margin-top:5px}}
@media(max-width:430px){.perfect-completion-dialog{width:calc(100% - 16px);padding:17px 14px 18px}.perfect-completion-header .result-owl{font-size:30px}.perfect-completion-header h2{font-size:21px}.perfect-completion-header p{font-size:12px}.perfect-completion-stages{gap:4px;margin:14px 0}.perfect-completion-stages li{min-height:55px;padding:6px 1px}.perfect-completion-stages span{font-size:10px}.perfect-completion-stages strong{font-size:17px}.perfect-completion-summary{margin-bottom:14px;padding:12px 0}.perfect-completion-summary dl{gap:8px;padding-right:9px}.perfect-completion-summary dl+dl{padding-left:9px}.perfect-completion-summary div{gap:5px}.perfect-completion-summary dt,.perfect-completion-summary dd{font-size:10px}.perfect-completion-summary .perfect-completion-total{padding-top:7px}.perfect-completion-dialog .result-actions{gap:8px}.perfect-completion-dialog .result-actions>a,.perfect-completion-dialog .result-actions>button{padding-inline:6px;font-size:12px}}
@media(max-width:390px){.perfect-clue-guide__row{grid-template-columns:36px minmax(0,1fr);gap:10px;font-size:14px}.perfect-clue-guide__tile{width:36px;height:36px;font-size:18px}}