.fraction-lines-page {
    padding-bottom: 4rem;
}

.fraction-lines-hero {
    padding: 1.5rem 0 0;
}

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

.fraction-lines-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);
}

.fraction-lines-sheet::before {
    content: '';
    position: absolute;
    inset: -22px;
    border: 4px solid #1a1a1a;
    border-radius: 34px;
    pointer-events: none;
    opacity: 0.12;
}

.fraction-lines-header {
    margin-bottom: 1.5rem;
}

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

.fraction-lines-header p {
    margin: 0;
    font-size: 1.1rem;
    color: #2d2d2d;
}

.example-card {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border: 3px solid #69bdf0;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(235, 248, 255, 0.85), rgba(255, 255, 255, 0.98));
}

.example-card h3 {
    margin: 0 0 0.35rem;
    color: #1d3f69;
    font-size: 1.4rem;
}

.example-card p {
    margin: 0 0 1rem;
    color: #27415d;
}

.example-grid {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
    font-family: "Trebuchet MS", "Comic Sans MS", Arial, sans-serif;
    font-weight: 900;
    color: #1f3e69;
}

.example-fraction,
.example-equals {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.example-lines {
    display: grid;
    gap: 1rem;
}

.worksheet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.question-list {
    display: grid;
    gap: 1rem;
}

.number-line-card {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 3px solid #1a1a1a;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
}

.number-line-card.is-correct {
    border-color: #1e7b42;
    box-shadow: inset 0 0 0 3px rgba(46, 168, 95, 0.16);
}

.number-line-prompt {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.45rem;
    font-family: "Trebuchet MS", "Comic Sans MS", Arial, sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 900;
    color: #1f3e69;
}

.question-number {
    margin-right: 0.45rem;
}

.number-line-stack {
    display: grid;
    gap: 1rem;
}

.number-line-block {
    display: grid;
    gap: 0.5rem;
}

.number-line-label {
    font-weight: 800;
    color: #3f5b78;
}

.number-line-svg {
    width: 100%;
    height: 110px;
    overflow: visible;
    touch-action: none;
    user-select: none;
}

.track-line {
    stroke: #243852;
    stroke-width: 4;
    stroke-linecap: round;
}

.tick-line {
    stroke: #243852;
    stroke-width: 3;
}

.tick-hotspot {
    fill: transparent;
    cursor: pointer;
}

.tick-label {
    font-family: "Trebuchet MS", "Comic Sans MS", Arial, sans-serif;
    font-size: 15px;
    fill: #243852;
    text-anchor: middle;
}

.fraction-tick-label {
    font-size: 14px;
}

.marker-line {
    stroke: #2fc26e;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke 0.14s ease;
    pointer-events: none;
}

.marker-line.is-over {
    stroke: #e34b4b;
}

.marker-line.is-correct {
    stroke: #17a34a;
}

.marker-handle {
    fill: #17a34a;
    stroke: #ffffff;
    stroke-width: 4;
    pointer-events: none;
}

.marker-handle.is-over {
    fill: #e34b4b;
}

.marker-handle.is-correct {
    fill: #17a34a;
}

.fraction-blank {
    min-width: 68px;
    text-align: center;
    display: inline-block;
    border-bottom: 4px solid #1f3e69;
    color: #1f3e69;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.card-feedback {
    min-height: 24px;
    font-weight: 800;
    color: #2d2d2d;
    text-align: center;
}

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

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

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

    .fraction-lines-sheet::before {
        display: none;
    }

    .worksheet-actions {
        display: grid;
    }

    .worksheet-actions .button,
    .card-actions .button {
        width: 100%;
    }
}
