/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
    margin: 0px;
    overflow: hidden;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: #17212b;
    background: #788887;
}

#v3d-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: transparent;
}

#v3d-container canvas {
    position: relative;
    z-index: 1;
    background: transparent;
}

.scene-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #788887;
    background-image:
        linear-gradient(to right, rgba(92, 132, 126, 0.72) 0%, transparent 46%, rgba(111, 121, 147, 0.68) 100%),
        linear-gradient(to bottom, rgba(134, 153, 139, 0.72) 0%, transparent 46%, rgba(128, 111, 126, 0.64) 100%),
        linear-gradient(135deg, #879795 0%, #788887 52%, #818892 100%);
    pointer-events: none;
}

.scene-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(34, 48, 49, 0.035));
}

.trajectory-annotations {
    position: absolute;
    inset: 0;
    z-index: 8;
    overflow: hidden;
    pointer-events: none;
}

.trajectory-distance-label {
    position: absolute;
    left: 0;
    top: 0;
    padding: 3px 6px;
    color: var(--trajectory-color);
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 2px 7px rgba(17, 28, 29, 0.16);
    font-family: "Microsoft YaHei UI Light", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    transform: none;
}

.trajectory-row-label {
    position: absolute;
    left: 0;
    top: 0;
    min-width: 48px;
    padding: 5px 14px 5px 8px;
    color: var(--trajectory-color);
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 2px 7px rgba(17, 28, 29, 0.14);
    font-family: "Microsoft YaHei UI Light", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: right;
    white-space: nowrap;
    transform: translate(-100%, -50%);
}

.trajectory-row-label::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 9px;
    border-top: 1px solid currentColor;
    opacity: 0.65;
}

.trajectory-row-label[hidden] {
    display: none;
}

.trajectory-rise-label {
    position: absolute;
    left: 0;
    top: 0;
    padding: 3px 6px;
    color: var(--trajectory-color);
    background: #ffffff;
    border-bottom: 1px solid currentColor;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 2px 7px rgba(17, 28, 29, 0.14);
    font-family: "Microsoft YaHei UI Light", "Microsoft YaHei", sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    transform: translate(-100%, -50%);
}

.trajectory-rise-label strong {
    margin-left: 4px;
    font-size: 15px;
    font-weight: 500;
}

.trajectory-rise-label[hidden] {
    display: none;
}

.trajectory-analysis-exit,
.trajectory-analysis-play {
    position: absolute;
    top: 18px;
    z-index: 11;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(31, 42, 55, 0.13);
    border-radius: 7px;
    color: #30414a;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 18px rgba(33, 48, 55, 0.11);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.trajectory-analysis-exit {
    left: 18px;
}

.trajectory-analysis-play {
    left: 148px;
}

.trajectory-analysis-play.is-playing {
    color: #116b5e;
    border-color: rgba(23, 138, 123, 0.34);
}

.trajectory-analysis-exit[hidden],
.trajectory-analysis-play[hidden] {
    display: none;
}

.trajectory-analysis-exit span:first-child {
    font-size: 20px;
    line-height: 1;
}

.trajectory-analysis-play span:first-child {
    width: 16px;
    color: #178a7b;
    font-size: 14px;
    line-height: 1;
    text-align: center;
}

.trajectory-analysis-distance {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 11;
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    min-height: 40px;
    box-sizing: border-box;
    padding: 9px 13px;
    border: 1px solid rgba(31, 42, 55, 0.13);
    border-radius: 7px;
    color: #52606f;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(33, 48, 55, 0.11);
    transform: translateX(-50%);
    pointer-events: none;
}

.trajectory-analysis-distance strong {
    color: #17212b;
    font-size: 16px;
}

.trajectory-analysis-distance[hidden] {
    display: none;
}

.trajectory-analysis-ranking {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: calc(100% - 32px);
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid rgba(31, 42, 55, 0.13);
    border-radius: 7px;
    color: #52606f;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 18px rgba(33, 48, 55, 0.13);
    transform: translateX(-50%);
    pointer-events: none;
}

.trajectory-analysis-ranking[hidden] {
    display: none;
}

.trajectory-ranking-title {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.trajectory-ranking-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
}

.trajectory-ranking-item,
.trajectory-ranking-separator {
    white-space: nowrap;
}

.trajectory-ranking-item strong {
    margin-left: 4px;
    font-size: 16px;
}

.trajectory-ranking-separator {
    color: #9ba5ab;
    font-weight: 400;
}

.trajectory-analysis-active .wheel-lab {
    display: none;
}

.lesson-check {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(31, 43, 43, 0.38);
    backdrop-filter: blur(4px);
}

.lesson-check[hidden] {
    display: none;
}

.lesson-check-dialog {
    position: relative;
    box-sizing: border-box;
    width: min(480px, calc(100vw - 36px));
    padding: 26px;
    border: 1px solid rgba(34, 51, 49, 0.16);
    border-radius: 8px;
    background: rgba(246, 248, 247, 0.97);
    box-shadow: 0 18px 52px rgba(29, 41, 40, 0.24);
}

.lesson-check-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #51605d;
    background: transparent;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.lesson-check-close:hover {
    background: rgba(44, 64, 60, 0.08);
}

.lesson-check-kicker {
    margin: 0 0 7px;
    color: #1b756a;
    font-size: 13px;
    font-weight: 600;
}

.lesson-check-dialog h2 {
    margin: 0 40px 18px 0;
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: 0;
}

.lesson-check-options {
    display: grid;
    gap: 9px;
}

.lesson-check-options button {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    min-height: 48px;
    padding: 7px 12px;
    border: 1px solid rgba(37, 54, 51, 0.16);
    border-radius: 7px;
    color: #253431;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.lesson-check-options button:hover {
    border-color: rgba(27, 117, 106, 0.48);
    background: #f2f7f5;
}

.lesson-check-options button span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(37, 54, 51, 0.22);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

.lesson-check-options button.is-wrong {
    color: #a33b32;
    border-color: rgba(195, 67, 55, 0.55);
    background: #fff3f1;
}

.lesson-check-options button.is-correct {
    color: #116b5e;
    border-color: rgba(23, 138, 123, 0.58);
    background: #eaf7f3;
}

.lesson-check-options button:disabled {
    cursor: default;
}

.lesson-check-feedback {
    min-height: 22px;
    margin: 14px 0 0;
    color: #596663;
    font-size: 14px;
    line-height: 1.5;
}

.lesson-check-feedback.is-wrong {
    color: #a33b32;
}

.lesson-check-feedback.is-correct {
    color: #116b5e;
}

.lesson-check-done {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: #178a7b;
    font-weight: 600;
    cursor: pointer;
}

.lesson-check-done[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .trajectory-analysis-exit,
    .trajectory-analysis-play {
        top: 8px;
        min-height: 38px;
    }

    .trajectory-analysis-exit {
        left: 8px;
    }

    .trajectory-analysis-play {
        left: 132px;
    }

    .trajectory-analysis-distance {
        top: 54px;
        min-height: 34px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .trajectory-analysis-ranking {
        bottom: 10px;
        flex-direction: column;
        gap: 4px;
        width: max-content;
        max-width: calc(100% - 20px);
        padding: 8px 10px;
    }

    .trajectory-ranking-list {
        flex-wrap: wrap;
        gap: 3px 6px;
        font-size: 13px;
    }

    .trajectory-ranking-item strong {
        font-size: 14px;
    }

    .trajectory-row-label {
        padding-right: 10px;
        font-size: 14px;
    }

    .trajectory-row-label::after {
        width: 6px;
    }

    .trajectory-distance-label {
        padding: 3px 5px;
        font-size: 13px;
    }

    .trajectory-rise-label {
        padding: 2px 4px;
        font-size: 10px;
    }

    .trajectory-rise-label strong {
        margin-left: 2px;
        font-size: 12px;
    }

    .lesson-check {
        padding: 10px;
    }

    .lesson-check-dialog {
        width: calc(100vw - 20px);
        padding: 20px 16px 16px;
    }

    .lesson-check-dialog h2 {
        margin-bottom: 14px;
        font-size: 19px;
    }

    .lesson-check-options button {
        min-height: 46px;
        font-size: 14px;
    }
}

noscript {
    display: block;
    text-align: center;
    padding-top: 100px;
    font-size: 20px;
}

.v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.fullscreen-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: 100% 100%;
    display: none;
    z-index: 12;
}

.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}

/* removes tap blinking on ios devices */
* { -webkit-tap-highlight-color:rgba(0,0,0,0); }

button,
input {
    font: inherit;
}

button {
    letter-spacing: 0;
}

.ui-hidden .wheel-lab {
    display: none;
}

.wheel-lab {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 10;
    width: min(1080px, calc(100% - 28px));
    transform: translateX(-50%);
    pointer-events: none;
}

.wheel-panel {
    padding: 10px 12px;
    overflow: hidden;
    border: 1px solid rgba(31, 42, 55, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 34px rgba(26, 38, 51, 0.16);
    backdrop-filter: blur(12px);
    pointer-events: auto;
    transition: opacity 180ms ease, transform 180ms ease;
}

.panel-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 28px;
    margin: 0 auto -1px;
    padding: 0;
    border: 1px solid rgba(31, 42, 55, 0.14);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    color: #314052;
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    pointer-events: auto;
}

.panel-toggle-icon {
    display: block;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

.wheel-lab.is-collapsed .wheel-panel {
    display: none;
}

.wheel-lab.is-collapsed .panel-toggle {
    margin: 0 auto;
    border-bottom: 1px solid rgba(31, 42, 55, 0.14);
    border-radius: 8px;
}

.wheel-lab.is-collapsed .panel-toggle-icon {
    margin-top: 4px;
    transform: rotate(225deg);
}

.wheel-controls,
.shape-control,
.custom-side-control,
.track-toggle {
    display: flex;
    align-items: center;
}

.wheel-controls {
    gap: 10px;
    min-height: 46px;
}

.shape-control {
    flex: 1 1 auto;
    min-width: 260px;
    padding: 3px;
    border: 1px solid rgba(31, 42, 55, 0.12);
    border-radius: 7px;
    background: #eef2f4;
}

.shape-button {
    flex: 1 1 0;
    min-height: 38px;
    padding: 6px 10px;
    border: 0;
    border-radius: 5px;
    color: #465362;
    background: transparent;
    cursor: pointer;
}

.shape-button.is-active {
    color: #17212b;
    background: #ffffff;
    box-shadow: 0 1px 5px rgba(24, 36, 48, 0.12);
    font-weight: 700;
}

.custom-side-control {
    flex: 0 0 auto;
    gap: 6px;
    height: 44px;
    padding-left: 10px;
    color: #52606f;
    font-size: 14px;
}

.custom-side-control[hidden] {
    display: none;
}

.custom-side-control input {
    width: 56px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid rgba(31, 42, 55, 0.2);
    border-radius: 6px;
    color: #17212b;
    background: #fff;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
}

.primary-action,
.icon-action,
.clear-trails-action,
.analysis-entry-action {
    flex: 0 0 auto;
    min-height: 44px;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 126px;
    padding: 0 18px;
    color: #fff;
    background: #d94037;
    box-shadow: 0 5px 14px rgba(197, 48, 40, 0.22);
    font-weight: 700;
}

.primary-action:hover {
    background: #c5352d;
}

.action-icon {
    width: 16px;
    font-size: 15px;
}

.icon-action {
    width: 44px;
    padding: 0;
    color: #334253;
    background: #e9eef1;
    font-size: 24px;
}

.clear-trails-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 104px;
    padding: 0 12px;
    color: #334253;
    background: #e9eef1;
    font-size: 14px;
    white-space: nowrap;
}

.analysis-entry-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 106px;
    padding: 0 12px;
    color: #ffffff;
    background: #178a7b;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.analysis-entry-action:hover:not(:disabled) {
    background: #116f63;
}

.analysis-entry-action:disabled {
    color: #7d898f;
    background: #dfe5e7;
    cursor: not-allowed;
    box-shadow: none;
}

.analysis-entry-icon {
    font-size: 18px;
    line-height: 1;
}

.clear-trails-action:hover,
.icon-action:hover {
    background: #dde5e9;
}

.clear-trails-icon {
    position: relative;
    width: 17px;
    height: 13px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.clear-trails-icon::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 17px;
    border-top: 2px solid currentColor;
}

.clear-trails-icon::after {
    content: "";
    position: absolute;
    top: -3px;
    left: 7px;
    width: 2px;
    height: 19px;
    background: #d94037;
    transform: rotate(42deg);
}

.track-toggle {
    flex: 0 0 auto;
    gap: 7px;
    min-height: 44px;
    color: #3f4d5c;
    cursor: pointer;
    white-space: nowrap;
}

.track-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-visual {
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 11px;
    background: #abb5bf;
    transition: background 160ms ease;
}

.toggle-visual::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
    transition: transform 160ms ease;
}

.track-toggle input:checked + .toggle-visual {
    background: #178a7b;
}

.track-toggle input:checked + .toggle-visual::after {
    transform: translateX(16px);
}

button:focus-visible,
input:focus-visible,
.track-toggle:has(input:focus-visible) .toggle-visual {
    outline: 3px solid rgba(32, 132, 198, 0.34);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .wheel-lab {
        width: calc(100% - 20px);
    }

    .wheel-controls {
        gap: 6px;
    }

    .shape-control {
        min-width: 220px;
    }

    .shape-button {
        padding-inline: 6px;
        font-size: 14px;
    }

    .custom-side-control {
        gap: 4px;
        padding-left: 4px;
        font-size: 13px;
    }

    .custom-side-control input {
        width: 48px;
    }

    .primary-action {
        min-width: 110px;
        padding-inline: 12px;
    }

    .clear-trails-action {
        min-width: 92px;
        padding-inline: 9px;
    }

    .track-toggle {
        gap: 5px;
        font-size: 13px;
    }

    .analysis-entry-action {
        min-width: 98px;
        padding-inline: 9px;
    }
}

@media (max-height: 620px) {
    .wheel-lab {
        bottom: 8px;
    }

    .wheel-panel {
        padding-block: 8px;
    }
}

@media (max-width: 880px) {
    .wheel-lab {
        width: calc(100% - 12px);
    }

    .wheel-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        gap: 7px;
    }

    .shape-control {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .wheel-controls:has(.custom-side-control:not([hidden])) .shape-control {
        grid-column: 1 / 4;
    }

    .custom-side-control {
        grid-column: 4;
        grid-row: 1;
        gap: 4px;
        height: 44px;
        padding: 0 5px;
        border: 1px solid rgba(31, 42, 55, 0.13);
        border-radius: 7px;
        background: #fff;
    }

    .custom-side-control span {
        font-size: 12px;
    }

    .custom-side-control input {
        width: 42px;
        height: 36px;
        font-size: 16px;
    }

    .primary-action {
        grid-column: 1 / 3;
        min-width: 0;
        padding-inline: 14px;
    }

    .icon-action {
        grid-column: 3;
    }

    .clear-trails-action {
        grid-column: 4;
        width: 44px;
        min-width: 44px;
        padding: 0;
    }

    .clear-trails-label {
        display: none;
    }

    .track-toggle {
        grid-column: 1 / 3;
        justify-content: center;
        font-size: 13px;
    }

    .analysis-entry-action {
        grid-column: 3 / -1;
        min-width: 0;
    }
}

@media (max-width: 360px) {
    .wheel-controls {
        grid-template-columns: minmax(0, 1fr) 44px 44px;
    }

    .wheel-controls:has(.custom-side-control:not([hidden])) .shape-control {
        grid-column: 1 / 3;
    }

    .custom-side-control {
        grid-column: 3;
        padding: 0;
    }

    .custom-side-control span {
        display: none;
    }

    .primary-action {
        grid-column: 1;
        min-width: 0;
        padding-inline: 6px;
        font-size: 13px;
        white-space: nowrap;
    }

    .track-toggle {
        grid-column: 1 / -1;
        justify-content: center;
        min-height: 34px;
    }

    .analysis-entry-action {
        grid-column: 1 / -1;
        min-height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wheel-panel,
    .panel-toggle-icon,
    .toggle-visual,
    .toggle-visual::after {
        transition: none;
    }
}


.v3d-simple-preloader-logo {
    background-image: url('media/logo180.png');
}
