.world-time [hidden] {
    display: none;
}

.world-time .world-container {
    max-width: 1070px;
}

.world-time .time-container {
    max-width: 900px;
}

.world-download, .world-exercise-settings {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .7rem 1rem;
}

.world-download {
    align-items: center;
    margin-bottom: 1rem;
}

.world-download h2 {
    margin-bottom: .25rem;
}

.world-download .tool-actions {
    margin-top: 0;
}

.world-time .tool-actions .btn, .world-exercise-settings .btn {
    min-height: 44px;
}

.world-exercise-settings label {
    min-width: min(16rem, 100%);
}

.world-prompt, .time-question {
    margin: 1rem 0 .6rem;
    color: #19376a;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.world-map-scroll {
    overflow-x: auto;
    border: 1px solid #d2def1;
    border-radius: 12px;
    background: #f9fbff;
}

.world-map {
    position: relative;
}

.world-map-scroll.is-enlarged .world-map {
    width: max(120%, 720px);
}

.world-map img {
    display: block;
    width: 100%;
    height: auto;
}

.world-pin {
    position: absolute;
    display: grid;
    place-items: center;
    width: clamp(23px, 3.3vw, 39px);
    height: clamp(23px, 3.3vw, 39px);
    padding: 0;
    transform: translate(-50%, -50%);
    border: 1px solid #1f427d;
    border-radius: 50%;
    background: #fff;
    color: #153d82;
    font-family: inherit;
    font-size: clamp(.72rem, 1.3vw, .95rem);
    font-weight: 700;
    cursor: pointer;
}

.world-pin[data-group="oceans"], .world-pin[data-group="lines"] {
    border-color: white;
    background: #1f427d;
    color: white;
}

.world-pin[data-group="lines"] {
    border-radius: 5px;
}

.world-pin[data-state="correct"] {
    border-color: white;
    background: #137249;
    color: white;
}

.world-pin[data-state="incorrect"] {
    border-color: white;
    background: #9e2632;
    color: white;
}

.world-feedback {
    min-height: 1.5em;
    margin: .75rem 0 0;
    color: #19376a;
    font-weight: 650;
}

.time-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
}

.time-fields input, .time-fields select {
    min-width: 0;
}

.time-answer-fields {
    grid-template-columns: repeat(2, minmax(0, 9rem));
}

.time-total {
    margin: .15rem 0 1rem;
    color: #16386e;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700;
}

.tool-panel .time-range {
    display: block;
    min-height: 35px;
    margin: .5rem 0 .15rem;
    padding: 0;
    appearance: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: ew-resize;
}

.time-range::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(to right, #235abe var(--time-progress), #149495 var(--time-progress));
}

.time-range::-moz-range-track {
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(to right, #235abe var(--time-progress), #149495 var(--time-progress));
}

.time-range::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
    margin-top: -8px;
    appearance: none;
    border: 2px solid white;
    border-radius: 50%;
    background: #19376a;
    box-shadow: 0 0 0 1px #19376a;
}

.time-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: 2px solid white;
    border-radius: 50%;
    background: #19376a;
    box-shadow: 0 0 0 1px #19376a;
}

.time-labels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem;
    color: #325781;
    font-size: .85rem;
    font-weight: 650;
}

.time-labels span:nth-child(2) {
    text-align: center;
}

.time-labels span:last-child {
    text-align: right;
}

.time-parts {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem 1rem;
    margin-top: .55rem;
}

.time-parts p {
    flex: 1 1 15rem;
    padding-left: .55rem;
    border-left: 3px solid #235abe;
    font-size: .92rem;
}

.time-parts p + p {
    border-color: #149495;
}

.time-practice {
    margin-top: 1rem;
}

@media (max-width: 540px) {
    .time-fields:not(.time-answer-fields) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .time-fields:not(.time-answer-fields) label:last-child {
        grid-column: 1 / -1;
    }

    .world-map-scroll.is-enlarged .world-pin {
        width: 38px;
        height: 38px;
    }
}
