.fasudoku-dedicated-page .fa-sticky-radio { display: none !important; }
body:has(.fasudoku-page) .fa-sticky-radio { display: none !important; }
body.fa-has-sticky-radio:has(.fasudoku-page) { padding-bottom: 0; }
.fasudoku-dedicated-page .fa-footer .fa-footer-grid,
.fasudoku-dedicated-page .fa-footer .fa-footer-bottom { display: none; }
.fasudoku-dedicated-page .fa-footer { padding-top: 0; }

.fasudoku-page {
    width: min(calc(100% - 32px), 1300px);
    margin: 0 auto 18px;
}
.fasudoku-page .fasudoku { width: 100%; margin: 0 auto; }

.fasudoku {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
    width: min(100%, 1200px);
    margin: 24px auto;
    padding: clamp(12px, 2vw, 24px);
    border-radius: 18px;
    background: #fff;
    color: #302044;
}
.fasudoku, .fasudoku * { box-sizing: border-box; }
.fasudoku-panel { min-width: 0; margin: 0; }
.fasudoku-panel img { display: block; width: 100%; height: auto; border-radius: 18px; }
.fasudoku-game { min-width: 0; }
.fasudoku .fasudoku-rules {
    margin: 0 0 8px;
    text-align: center;
    line-height: 1.45;
}
@media (max-width: 720px) {
    .fasudoku { display: flex; flex-direction: column; }
    .fasudoku-game { order: -1; width: 100%; }
    .fasudoku-panel { width: min(100%, 360px); margin-inline: auto; }
}
.fasudoku-meta, .fasudoku-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fasudoku-meta { justify-content: space-between; margin-bottom: 12px; }
.fasudoku select, .fasudoku-game button { font: inherit; color: #512879; border: 1px solid #cbb5e3; background: #fff; border-radius: 8px; cursor: pointer; }
.fasudoku-meta select, .fasudoku-meta button, .fasudoku-actions button { min-height: 40px; padding: 6px 10px; }
.fasudoku-board { display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); width: min(100%, 500px); margin: 0 auto; border: 2px solid #5d3784; }
.fasudoku-board .fasudoku-cell { width: 100%; min-width: 0; aspect-ratio: 1; padding: 0; border: 0; border-radius: 0; border-right: 1px solid #d5c3e6; border-bottom: 1px solid #d5c3e6; font: 600 clamp(13px,4vw,24px)/1 system-ui,sans-serif; }
.fasudoku-board .fasudoku-cell:nth-child(3n) { border-right: 2px solid #5d3784; }
.fasudoku-board .fasudoku-cell:nth-child(9n) { border-right: 0; }
.fasudoku-board .fasudoku-cell:nth-child(n+19):nth-child(-n+27),
.fasudoku-board .fasudoku-cell:nth-child(n+46):nth-child(-n+54) { border-bottom: 2px solid #5d3784; }
.fasudoku-board .fasudoku-cell:nth-child(n+73) { border-bottom: 0; }
.fasudoku-board .is-given { background: #eee5f8; color: #32134f; }
.fasudoku-board .is-error { background: #ffe1e5; color: #8e182f; }
.fasudoku-board .is-selected { box-shadow: inset 0 0 0 2px #773cb3; }
.fasudoku button:focus-visible, .fasudoku select:focus-visible { outline: 2px solid #8b49bc; outline-offset: -2px; }
.fasudoku-numbers { display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); gap: 3px; width: min(100%, 500px); margin: 10px auto 8px; }
.fasudoku-numbers button { min-height: 38px; padding: 0; font-weight: 700; }
.fasudoku-actions { justify-content: center; }
.fasudoku .fasudoku-status { min-height: 1.5em; margin: 10px 0 0; text-align: center; }
.fasudoku [hidden] { display: none; }
.fasudoku-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 6px; }
.fasudoku-modes button { min-height: 40px; padding: 6px 12px; }
.fasudoku-modes button[aria-pressed="true"] { background: #512879; color: #fff; border-color: #512879; }
.fasudoku .fasudoku-date { margin: 0 0 8px; text-align: center; line-height: 1.4; }

.fasudoku-panel { position: relative; container-type: inline-size; }
.fasudoku-panel-title {
    position: absolute;
    inset: 55% 0 16%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5cqi;
    text-align: center;
    color: #fff;
}
.fasudoku-panel-title span { font-size: 3.6cqi; font-weight: 700; }
.fasudoku-panel-title strong { color: #ffe092; font-size: 11cqi; line-height: 1.25; }
.fasudoku .fasudoku-panel-verse { margin: 0; font-size: 3.6cqi; line-height: 1.6; color: #f3e6ff; }
.fasudoku-countdown {
    position: absolute;
    left: 79.2%;
    top: 25.2%;
    width: 19%;
    height: 9.5%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    color: #ffe092;
    font: 800 9.8cqi/1 system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 2px #32134f;
}
@media (min-width: 721px) {
    .fasudoku-page .fasudoku {
        grid-template-columns: minmax(0, 19fr) minmax(0, 21fr);
        gap: clamp(14px, 1.7vw, 22px);
        padding-block: 12px;
    }
    .fasudoku-page .fasudoku-panel img { border-radius: 24px; }
    .fasudoku-page .fasudoku-game { font-size: 14px; line-height: 1.5; }
    .fasudoku-page .fasudoku-board,
    .fasudoku-page .fasudoku-numbers { width: min(100%, 482px); }
    .fasudoku-page .fasudoku-modes button,
    .fasudoku-page .fasudoku-actions button { min-height: 34px; padding-block: 3px; }
    .fasudoku-page .fasudoku-numbers { margin-block: 6px; }
    .fasudoku-page .fasudoku-numbers button { min-height: 32px; }
    .fasudoku-page .fasudoku-status { margin-top: 5px; }
}
