.time-page {
    padding-bottom: 4rem;
}

.time-hero {
    padding: 1.5rem 0 0;
}

.time-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.time-copy p {
    max-width: 60ch;
    color: var(--muted);
}

.time-hero-actions,
.worksheet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.time-sheet-wrap {
    margin-top: 1.5rem;
}

.time-sheet {
    position: relative;
    padding: 2rem;
    border: 4px solid #1a1a1a;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(0, 0, 0, 0.08) 0 2px, transparent 3px 100%),
        radial-gradient(circle at top right, rgba(0, 0, 0, 0.08) 0 2px, transparent 3px 100%),
        #fffdf8;
    box-shadow: 0 18px 40px rgba(23, 38, 60, 0.08);
}

.time-sheet::before {
    content: '';
    position: absolute;
    inset: -22px;
    border: 4px solid #1a1a1a;
    border-radius: 34px;
    pointer-events: none;
    background:
        radial-gradient(circle at 16px 16px, transparent 0 15px, #fffdf8 15px 16px, transparent 16px 100%);
    mask:
        radial-gradient(circle 18px at 18px 18px, transparent 15px, #000 15px);
    opacity: 0.12;
}

.worksheet-header {
    margin-bottom: 1.5rem;
}

.name-line {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.1rem;
}

.worksheet-header h2 {
    margin-bottom: 0.55rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: "Trebuchet MS", "Comic Sans MS", Arial, sans-serif;
}

.worksheet-header p {
    margin: 0;
    font-size: 1.15rem;
    color: #2d2d2d;
}

.worksheet-actions {
    margin-bottom: 1.5rem;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 3px solid #1a1a1a;
}

.question-card {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-right: 3px solid #1a1a1a;
    border-bottom: 3px solid #1a1a1a;
    background: rgba(255, 255, 255, 0.92);
}

.question-card:nth-child(2n) {
    border-right: 0;
}

.question-card:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.clock-wrap {
    display: flex;
    justify-content: center;
}

.clock-svg {
    width: min(100%, 180px);
    height: auto;
}

.clock-face {
    fill: #fff;
    stroke: #111;
    stroke-width: 4;
}

.clock-tick {
    stroke: #111;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.clock-tick.hour {
    stroke-width: 4;
}

.clock-number {
    font: 700 16px/1 Arial, sans-serif;
    fill: #111;
    text-anchor: middle;
    dominant-baseline: middle;
}

.clock-hand {
    stroke: #111;
    stroke-linecap: round;
}

.clock-hand.hour {
    stroke-width: 6;
}

.clock-hand.minute {
    stroke-width: 4;
}

.clock-center {
    fill: #111;
}

.choice-column {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

.choice-button {
    min-height: 66px;
    padding: 0.85rem 1rem;
    border: 3px solid #111;
    border-radius: 18px;
    background: #fff;
    color: #111;
    font-family: "Trebuchet MS", "Comic Sans MS", Arial, sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 900;
    text-shadow: none;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.choice-button:hover {
    transform: translateY(-1px);
}

.choice-button.is-wrong {
    background: #d64747;
    border-color: #a11f1f;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.choice-button.is-right {
    background: #2ea85f;
    border-color: #1e7b42;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.choice-button.is-locked {
    cursor: default;
}

.feedback-text {
    min-height: 24px;
    font-weight: 800;
    font-size: 1rem;
    color: #2f2f2f;
}

.feedback-text.is-right {
    color: #1e7b42;
}

.feedback-text.is-wrong {
    color: #a11f1f;
}

@media (max-width: 980px) {
    .question-card {
        grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    }

    .choice-button {
        font-size: clamp(1.35rem, 2.8vw, 2rem);
    }
}

@media (max-width: 760px) {
    .time-sheet {
        padding: 1rem;
    }

    .time-sheet::before {
        display: none;
    }

    .question-grid {
        grid-template-columns: 1fr;
    }

    .question-card,
    .question-card:nth-child(2n) {
        grid-template-columns: 1fr;
        border-right: 0;
        border-bottom: 3px solid #1a1a1a;
    }

    .question-card:last-child {
        border-bottom: 0;
    }

    .clock-svg {
        width: min(100%, 160px);
    }

    .choice-column {
        justify-items: stretch;
    }

    .choice-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .worksheet-header h2 {
        font-size: 2rem;
    }

    .worksheet-header p,
    .name-line {
        font-size: 1rem;
    }

    .choice-button {
        min-height: 58px;
        font-size: 1.3rem;
    }
}
