@font-face {
    font-family: MiSans;
    src: url(./MiSans.ttf);
}

html {
    overflow: hidden;
    /* cursor: none; */
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
    user-select: none;
    background-color: #f0f0f0;
    font-family: 'MiSans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    /* cursor: none; */
}

header {
    width: calc(100vw - 32px);
    padding: 16px;
    position: fixed;
    /* cursor: none; */
    top: 0;
}

.container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    /* cursor: none; */
    align-items: center;
}

/* button, 
.dot,
.control-container,
input,
label {
    cursor: none;
} */

.custom-cursor {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    position: fixed;
    pointer-events: none;
    backdrop-filter: blur(5px);
    z-index: 1000;
    transform: translate(-50%, -50%);
    justify-content: center;
}

.container {
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watchface-switch {
    position: absolute;
    width: 252px;
    height: 360px;
    display: block;
    z-index: -2;
}

.watchface-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* cursor: none; */
    gap: 10px;
}

.watchface-container {
    background: black;
    position: relative;
    /* padding: 12px; */
    border-radius: 40px;
    /* outline: solid 6px #3b3b3b; */
    /* max-width: calc(276px - 24px); */
    /* width: calc(276px - 24px); */
    /* height: calc(384px - 24px); */
    /* max-height: calc(384px - 24px); */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    /* cursor: none; */
}

.watchface-name {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 400;
    font-family: 'MiSans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white;
    margin-bottom: -46px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* cursor: none; */
    padding-top: 6px;
}

.watch-screen {
    background: black;
    /* background: rgb(19, 19, 19); */
    padding: 12px;
    border-radius: 40px;
    outline: solid 6px #3b3b3b;
    max-width: calc(276px - 24px);
    width: calc(276px - 24px);
    height: calc(384px - 24px);
    /* cursor: none; */
    max-height: calc(384px - 24px);
}

/* .watch-screen button {
    cursor: none;
} */

.watch-face {
    position: relative;
    width: calc(336px* 0.75);
    height: calc(480px* 0.75);
    min-height: calc(480px* 0.75);
    border-radius: calc(40px * 0.75);
    background: black;
    padding: 0;
    margin: 0;
    color: white;
    transition: all 0.3s ease;
    overflow: hidden;
    /* cursor: none; */
}

/* 添加自定义鼠标指针样式 */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    position: fixed;
    pointer-events: none;
    backdrop-filter: blur(5px);
    z-index: 1000;
    /* cursor: none; */
    transform: translate(-50%, -50%);
}

.wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    /* cursor: none; */
    z-index: 1;
}

.mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: top center !important;
    /* cursor: none; */
    z-index: 3;
}

.watch-face.minimized {
    transform: scale(0.7);
    transform-origin: center;
    outline: solid 6px white;
    border: solid 6px black;
    box-sizing: content-box;
    border-radius: 34px;
    /* cursor: none; */
    margin-bottom: 8px;
}

.time {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    width: calc(336px * 0.75);
    /* cursor: none; */
    height: calc(480px * 0.75);
}

.time-digit {
    width: 56px;
    height: 224px;
    background-size: contain;
    background-repeat: no-repeat;
    /* cursor: none; */
    background-position: center;
}

.date-container {
    position: absolute;
    font-weight: 350;
    font-size: 16px;
    font-family: 'MiSans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 22px;
    z-index: 4;
    bottom: 0;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* cursor: none; */
    width: calc(100% - 36px);
}

.date-battery {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* cursor: none; */
    width: 100%;
}

.step-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 22px 20px;
    z-index: 4;
    position: absolute;
    top: 0;
    /* cursor: none; */
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
}

.slash {
    opacity: 0.5;
}

#date {
    display: flex;
    align-items: center;
    gap: 2px;
}

.week-ampm {
    display: flex;
    justify-content: flex-start;
    /* cursor: none; */
    flex-direction: row;
}

.minimize-btn {
    /* cursor: none; */
    margin: 10px 0;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -48px;
    height: 42px;
    /* cursor: none; */
    width: 90%;
}

.style-dots {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    /* cursor: none; */
    gap: 10px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    /* cursor: none; */
    /* cursor: none; */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0), 0 0 0 5.5px #96969600;
    transition: all 0.2s ease;
}

.dot.selected {
    box-shadow: 0 0 0 3px black, 0 0 0 5.5px #969696;
}

.dot[data-style="1"] {
    background-color: #EABCFD;
}

.dot[data-style="2"] {
    background-color: #ADBFFD;
}

.dot[data-style="3"] {
    background-color: #87D5FF;
}

.dot[data-style="4"] {
    background-color: #91EBEB;
}

.dot[data-style="5"] {
    background-color: #B0DDA7;
}

.dot[data-style="6"] {
    background-color: #FFD780;
}

/* Style 6 - Black text and inverted SVGs */
[data-style="6"] .time,
[data-style="6"] .date-container,
[data-style="6"] .step-container,
[data-style="6"] #weekday,
[data-style="6"] #ampm,
[data-style="6"] #date,
[data-style="6"] #step {
    color: #000;
}

[data-style="6"] .date-battery img,
[data-style="6"] .step-container img {
    filter: invert(1);
}

.edit-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: -48px;
    height: 42px;
    /* cursor: none; */
    width: 90%;
}

.done-btn,
.cancel-btn {
    width: 110px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    button svg path {
        fill: #ffffff;
        transition: fill 0.1s;
    }

    button:hover {
        width: calc(100% - 6px);
        height: 40px;

        svg path {
            fill: #bdbebd;
        }
    }
}

button {
    width: 100%;
    height: 42px;
    /* border-radius: 32px; */
    display: flex;
    border: none;
    border-radius: 24px;
    background-color: #313131;
    color: white;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    position: relative;
    /* cursor: none; */
    z-index: 2;
}

button svg path {
    fill: #ffffff;
    transition: fill 0.1s;
}

button:hover svg path {
    fill: #bdbebd;
}

/* .delete-btn {
    background-color: #f44336;
}

.delete-btn:hover {
    background-color: #da190b;
} */

.hidden {
    display: none !important;
}

.variable-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    max-width: 296px;
    position: fixed;
    right: 0;
    top: 0;
    border-left: solid 1px #e6e6e6;
    background-color: white;
    /* cursor: none; */
    z-index: 5;
}

.information {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    max-width: 296px;
    width: 296px;
    position: fixed;
    left: 0;
    top: 0;
    border-right: solid 1px #e6e6e6;
    background-color: white;
    /* cursor: none; */
    z-index: 5;
}

.control-container {
    padding: 18px;
    border-bottom: solid 1px #e6e6e6;
    width: calc(100% - 36px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* cursor: none; */
    gap: 4px;
}

.control-container:hover .control-title {
    color: rgba(0, 0, 0, 1);
}

.control-container:hover .control-title label {
    opacity: 1;
}

.control-container:hover .control-title .reset-btn {
    opacity: 1;
}

.control-container .control-title label:has(input[type="checkbox" i]:checked) {
    opacity: 1;
}

.custom-time-inputs {
    display: flex;
    gap: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    /* cursor: none; */
    align-items: center;
}

.time-input-container {
    width: calc(50% - 12px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* cursor: none; */
    gap: 2px;
    font-family: 'MiSans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.time-input-container p {
    margin-left: 2.5px !important;
}

.custom-time-inputs input {
    width: calc(100% - 12px);
    padding: 4px 4px 4px 8px;
    border: 1px solid #cccccc00;
    background: #f5f5f5;
    border-radius: 4px;
    font-family: 'MiSans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    outline: none;
    /* cursor: none; */
    transition: all 0.2s ease-in;
}

.custom-time-inputs input:hover {
    border: 1px solid #ccc;
}

.custom-time-inputs input:focus {
    border: 1px solid #326CF2;
}

.custom-time-inputs input:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

#stepsInput {
    width: 80px;
    padding: 0;
    border: none;
    /* cursor: none; */
    border-radius: unset;
}

#step-number-input {
    padding: 4px;
    border: 1px solid #cccccc00;
    background: #f5f5f5;
    transition: all 0.2s ease-in;
    /* cursor: none; */
    border-radius: 4px;
}

#step-number-input:hover {
    border: 1px solid #ccc;
}

#step-number-input:has(input:focus) {
    border: 1px solid #326CF2;
}

#step-number-input img {
    filter: invert(100%);
    height: 14px;
}

.control-title {
    margin: 0;
    font-size: 14px;
    font-weight: 450;
    text-align: start;
    /* height: 20px; */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0px 5px 2.5px;
    width: calc(100% - 2.5px);
    color: rgba(0, 0, 0, 0.7);
    user-select: none;
    /* cursor: none; */
    transition: all 0.2s ease-in-out;
}

.variable-controls label,
.variable-controls p {
    font-size: 13px;
    font-weight: 400;
    display: flex;
    align-items: center;
    margin: 0;
    justify-content: flex-start;
    /* cursor: none; */
    flex-direction: row;
}

.variable-controls label {
    color: rgba(0, 0, 0, 0.75);
    gap: 6px;
    opacity: 0;
    transition: all 0.25s ease-in-out;
}

.variable-controls p {
    gap: 4px;
    opacity: 0.75;
    font-size: 12px;
}

input[type="checkbox" i] {
    background-image: url(./assets/disabled.svg);
    background-position: center;
    background-size: 24px;
    cursor: default;
    appearance: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: unset !important;
    border: unset !important;
    height: 24px;
    width: 24px;
    border-radius: 5px;
    /* cursor: none; */
    transition: all 0.1s ease-in-out;
}

input[type="checkbox" i]:hover {
    background-image: url("./assets/disabled-hover.svg");
}

input[type="checkbox" i]:checked {
    background-image: url("./assets/right.svg");
    background-size: 100% 100%;
}

input[type="checkbox" i]:checked:hover {
    background-image: url("./assets/right-hover.svg");
    background-size: 100% 100%;
}

.close-btn {
    background-image: url(./assets/close.svg);
    background-position: center;
    background-size: 24px;
    cursor: default;
    appearance: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: unset !important;
    border: unset !important;
    height: 24px;
    width: 24px;
    /* cursor: none; */
    border-radius: 5px;
    transition: all 0.1s ease-in-out;
    display: none;
}

.close-btn:hover {
    background-image: url("./assets/close-hover.svg");
}

.control-container h2 {
    margin: 0;
    margin-left: 2.5px;
    font-size: 18px;
    /* cursor: none; */
    font-weight: 350;
}

.control-container p {
    font-size: 13px;
    font-weight: 350;
    text-align: start;
    margin: 0;
    margin-left: 2.5px;
    /* cursor: none; */
    opacity: 0.5;
}

.press-animation {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1000;
    /* cursor: none; */
    opacity: 0;
    animation: fadeIn 0.2s ease forwards;
}

.press-animation.fade-out {
    /* cursor: none; */
    animation: fadeOut 0.3s ease forwards;
}

.press-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pressCountdown 0.55s linear forwards 0.35s;
    transform-origin: center;
    /* cursor: none; */
    transform: scale(0.45);
    backdrop-filter: blur(5px);
}

@keyframes pressCountdown {
    from {
        backdrop-filter: blur(5px);
        transform: scale(0.45);
    }

    to {
        backdrop-filter: blur(0px);
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.button-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* cursor: none; */
    gap: 8px;
}

.reset-btn {
    background-image: url(./assets/reset.svg);
    background-position: center;
    background-size: 24px;
    cursor: default;
    appearance: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: unset !important;
    /* cursor: none; */
    border: unset !important;
    height: 24px;
    width: 24px;
    border-radius: 5px;
    transition: all 0.25s ease-in-out;
    opacity: 0;
}

.reset-btn:hover {
    background-image: url(./assets/reset-hover.svg);
}

.charging-controls {
    display: flex;
    flex-direction: row;
    /* cursor: none; */
    gap: 6px;
    padding: 0 0 8px 0;
    font-size: 13px;
}

.charging-controls label {
    color: rgba(0, 0, 0, 0.75);
    gap: 6px;
    transition: all 0.25s ease-in-out;
    padding: 4px 6px;
    /* cursor: none; */
    background: #f5f5f5;
    opacity: 0.5;
    border-radius: 5px;
}

.charging-controls label svg path {
    transition: all 0.25s ease-in-out;
    fill: rgba(0, 0, 0, 0.75);
}

.charging-controls label:has(input[type="radio"]:checked) {
    color: white;
    padding: 4px 6px;
    opacity: 1;
    background: #007AFF;
}

.charging-controls label:has(input[type="radio"]:checked) svg path {
    fill: white;
}

.charging-controls input[type="radio"] {
    margin: 0;
    display: none;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: calc(248px - 16px);
    height: 12px;
    background: #f5f5f5;
    border-radius: 5px;
    outline: none;
    display: flex;
    margin: 0;
    padding: 6px;
    border: 1px solid #cccccc00;
    transition: all 0.2s ease-in;
}

input[type="range"]:hover {
    border: 1px solid #cccccc;
}

input[type="range"]:focus {
    border: 1px solid #007AFF;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 4px;
    height: 14px;
    background: #cccccc;
    border-radius: 4px;
    transition: all 0.2s ease-in;
    cursor: pointer;
}

input[type="range"]:focus::-webkit-slider-thumb {
    background: #007AFF;
}

.battery-value-container {
    font-size: 14px;
    padding: 2.5px;
    width: calc(100% - 5px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#batteryMin,
#batteryValue,
#batteryMax {
    width: 36px;
}

#batteryMin,
#batteryMax {
    opacity: 0.5;
    font-weight: 300;
}

#batteryMin {
    text-align: start;
}

#batteryValue {
    text-align: center;
}

#batteryMax {
    text-align: end;
}

.action-buttons,
.edit-buttons {
    transform-origin: center center;
    position: relative;
    z-index: 2;
}

.app-tips {
    position: fixed;
    padding: 8px 10px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 8px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    box-shadow: 0 3px 10px 0 #0000004b;
}

.app-tips::before {
    content: '';
    position: fixed;
    top: -5.5px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.7);
}

#tool-tip::before {
    left: var(--triangle-left);
}

.aod-timeout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.aod-timeout select {
    padding: unset;
    border-radius: 4px;
    border: 1px solid #cccccc00;
    /* background: #f5f5f5; */
    transition: all 0.2s ease-in;
    font-family: 'MiSans';
    font-weight: 400;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.aod-timeout select:hover {
    border: 1px solid #ccc;
}

.aod-timeout select:focus {
    border: 1px solid #007AFF;
    outline: none;
}

.display-mode-controls {
    display: flex;
    flex-direction: row;
    /* cursor: none; */
    gap: 12px;
    padding: 0 0 8px 0;
    font-size: 13px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.display-mode-controls label {
    color: rgba(0, 0, 0, 0.75);
    gap: 0;
    transition: all 0.25s ease-in-out;
    padding: 0 18px 0 0;
    /* cursor: none; */
    background: #f5f5f5;
    opacity: 0.5;
    border-radius: 6px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    height: 46px;
    justify-content: space-between;
    border: solid 1px #9e9e9e;
}

.display-mode-controls label svg path {
    transition: all 0.25s ease-in-out;
    fill: #9e9e9e;
}

.display-mode-controls label:has(input[type="radio"]:checked) {
    color: white;
    opacity: 1;
    background: #007AFF;
    border: solid 1px #007AFF;
}

.display-mode-controls label svg {
    margin-bottom: -0px;
}

.display-mode-controls label:has(input[type="radio"]:checked) svg path {
    fill: white;
}

.display-mode-controls input[type="radio"] {
    margin: 0;
    display: none;
}

/* ########################## */
/* #                        # */
/* #   Moblie Phone Style   # */
/* #                        # */
/* ########################## */

@media screen and (max-width: 911px) {
    body {
        flex-direction: column;
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .container {
        transform: scale(var(--mobile-watch-scale));
        transition: all 0.35s ease-out;
        margin-top: var(--mobile-watch-top);
    }

    #header {
        background: unset;
        box-shadow: unset;
        height: fit-content;
        width: 100vw;
        align-items: center;
        justify-content: center;
    }

    #leap-logo {
        display: none;
    }

    #tips {
        height: fit-content;
        width: calc(100% - 96px);
        max-width: none;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .variable-controls {
        flex-direction: row;
        display: flex;
        height: fit-content;
        position: fixed;
        justify-content: flex-start;
        background: unset;
        gap: 8px;
        min-width: 326px;
        max-width: calc(100vw - 64px);
        overflow: auto;
        scroll-snap-type: x mandatory;
        padding: 32px;
        left: 0;
        top: unset;
        bottom: 0;
        align-items: flex-end;
    }

    .control-container {
        max-width: 290px;
        min-width: 290px;
        height: 136px;
        background-color: white;
        border-radius: 14px;
        scroll-snap-align: center;
        box-shadow: 0px 2px 24px rgba(0, 0, 0, 0.1);
    }

    .information {
        background: none;
        width: 100vw;
        max-width: 100vw;
        height: fit-content;
    }

    .watchface-wrapper {
        /* height: 100%; */
        justify-content: space-between;
        gap: 64px;
        /* overflow: hidden; */
    }

    .custom-cursor {
        display: none !important;
    }

    .close-btn {
        display: block;
    }

    .reset-btn {
        opacity: 1 !important;
    }
}

.step-container img {
    filter: var(--step-icon-filter);
}

#step {
    color: var(--step-number-color);
    font-variant-numeric: tabular-nums;
}