@font-face {
    font-family: 'RelogioDigital';
    src: url('Fontes/digital.ttf') format('truetype');
    font-display: swap;
}

:root {
    color-scheme: dark;
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --ink: #f4f7fc;
    --muted: #aab8cb;
    --ice: #c1e4f2;
    --line: rgba(224, 239, 255, 0.16);
    --glass: rgba(13, 27, 45, 0.78);
}

* {
    box-sizing: border-box;
}

body {
    position: relative;
    display: grid;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: #101d30;
}

button {
    color: inherit;
    font: inherit;
}

.background {
    position: fixed;
    z-index: -3;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(5, 16, 31, 0.56), rgba(10, 22, 38, 0.18) 54%, rgba(9, 20, 35, 0.4)),
        linear-gradient(0deg, rgba(8, 17, 31, 0.55), transparent 65%),
        url('Fundos/newjeans 2.jpg');
    background-position: center;
    background-size: cover;
    transition: background-image 500ms ease;
}

.background::after {
    position: absolute;
    inset: 0;
    background: rgba(10, 24, 43, 0.12);
    content: '';
    backdrop-filter: saturate(0.82);
}

.ambient-glow {
    position: fixed;
    z-index: -2;
    width: 34rem;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
    pointer-events: none;
}

.ambient-glow--one {
    top: -18rem;
    left: -10rem;
    background: #85d9ff;
}

.ambient-glow--two {
    right: -18rem;
    bottom: -22rem;
    background: #bbafff;
}

.page-shell {
    display: flex;
    width: min(100% - 64px, 1120px);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    flex-direction: column;
}

.topbar {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-decoration: none;
}

.brand strong {
    color: var(--ice);
    font-weight: 700;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(220, 242, 255, 0.48);
    border-radius: 50%;
    color: #d6f0ff;
    font-size: 1.1rem;
}

.topbar-note,
.page-caption {
    color: rgba(235, 243, 252, 0.76);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.19em;
}

.topbar-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.live-dot,
.status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #b9f1d0;
    box-shadow: 0 0 13px rgba(159, 255, 206, 0.9);
}

.clock-card {
    position: relative;
    width: min(100%, 960px);
    margin: auto;
    padding: 32px 42px 0;
    overflow: hidden;
    border: 1px solid rgba(228, 241, 255, 0.22);
    border-radius: 25px;
    background:
        linear-gradient(145deg, rgba(31, 52, 75, 0.34), rgba(12, 25, 43, 0.45));
    box-shadow: 0 28px 90px rgba(3, 12, 25, 0.28), inset 0 1px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(1px) saturate(1.16);
}

.card-topline,
.panel-heading {
    display: flex;
    align-items: center;
}

.card-topline {
    justify-content: space-between;
}

.eyebrow,
.intro-kicker,
.panel-heading p,
.card-footer {
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.eyebrow {
    color: #d2e3f5;
}

.eyebrow-star {
    margin-right: 8px;
    color: #c6e6f7;
    font-size: 0.9rem;
}

.icon-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(242, 248, 255, 0.07);
    color: #deefff;
    cursor: pointer;
    font-size: 1.35rem;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.icon-button:hover {
    transform: rotate(45deg);
    border-color: rgba(221, 242, 255, 0.56);
    background: rgba(225, 242, 255, 0.15);
}

.intro {
    padding: 34px 0 30px;
}

.intro-kicker {
    margin: 0 0 12px;
    color: #b7d9eb;
    font-size: 0.58rem;
}

.intro h1 {
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 3.7rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.intro h1 span {
    color: #c8e9f7;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.06em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.06em;
}

.intro-copy {
    max-width: 390px;
    margin: 14px 0 0;
    color: #c1cbda;
    font-size: 0.86rem;
    line-height: 1.7;
}

.time-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: stretch;
    border-top: 1px solid var(--line);
}

.time-panel {
    min-width: 0;
    padding: 27px 26px 25px;
}

.time-panel--local {
    padding-left: 0;
}

.time-panel--away {
    padding-right: 0;
}

.panel-heading {
    min-height: 42px;
    gap: 12px;
}

.panel-heading h2 {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.panel-heading p {
    margin: 0;
    color: #91a5bc;
    font-size: 0.53rem;
}

.location-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(201, 230, 250, 0.2);
    border-radius: 12px;
    background: rgba(195, 226, 249, 0.08);
    color: #d2efff;
    font-size: 1.25rem;
}

.location-icon--away {
    color: #d7d0ff;
}

.status-dot {
    width: 6px;
    height: 6px;
    margin-left: auto;
}

.clock-display {
    display: block;
    margin: 26px 0 5px;
    color: #f7fbff;
    font-size: clamp(2.35rem, 5vw, 3.7rem);
    font-variant-numeric: tabular-nums;
    font-weight: 300;
    letter-spacing: 0.045em;
    line-height: 1;
    text-shadow:
        0 0 6px rgba(221, 247, 255, 0.9),
        0 0 16px rgba(127, 218, 255, 0.78),
        0 0 38px rgba(77, 184, 255, 0.52),
        0 0 68px rgba(77, 184, 255, 0.3);
    white-space: nowrap;
}

.clock-display--muted {
    color: #d2d8e3;
    text-shadow:
        0 0 5px rgba(211, 231, 255, 0.7),
        0 0 18px rgba(145, 186, 255, 0.52),
        0 0 38px rgba(145, 186, 255, 0.3);
}

.date-display {
    min-height: 20px;
    margin: 0;
    color: #aab8ca;
    font-size: 0.74rem;
}

.text-button {
    display: inline-flex;
    min-height: 36px;
    margin-top: 20px;
    padding: 0;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    color: #d9e4f1;
    cursor: pointer;
    font-size: 0.72rem;
    transition: color 180ms ease;
}

.text-button:hover,
.text-button[aria-pressed='true'] {
    color: #c7edff;
}

.text-button-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid rgba(219, 235, 255, 0.23);
    border-radius: 9px;
    font-size: 0.72rem;
}

.button-arrow {
    margin-left: 2px;
    color: #9eb4ca;
}

.timezone-divider {
    position: relative;
    align-self: stretch;
    background: var(--line);
}

.timezone-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(214, 232, 255, 0.2);
    border-radius: 50%;
    background: #1d3048;
    color: #d0e8f8;
    font-size: 0.95rem;
}

.city-picker {
    display: flex;
    margin-top: 18px;
    gap: 9px;
}

.city-button {
    display: inline-flex;
    min-height: 36px;
    padding: 0 11px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(223, 237, 255, 0.18);
    border-radius: 8px;
    background: rgba(225, 239, 255, 0.06);
    color: #dce6f3;
    cursor: pointer;
    font-size: 0.68rem;
    transition: background 180ms ease, border-color 180ms ease;
}

.city-button:hover,
.city-button[aria-pressed='true'] {
    border-color: rgba(197, 231, 250, 0.62);
    background: rgba(186, 225, 249, 0.17);
}

.city-flag {
    color: #c9eafa;
    font-size: 0.7rem;
}

.city-flag--korea {
    color: #d4ccff;
}

.city-code {
    margin-left: 3px;
    color: #96a9bf;
    font-size: 0.53rem;
    letter-spacing: 0.07em;
}

.card-footer {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: #9fafc2;
    font-size: 0.53rem;
}

.footer-heart {
    margin-left: 4px;
    color: #cce9f9;
    font-size: 0.85rem;
}

.footer-coordinates {
    color: #8295aa;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.11em;
}

.page-caption {
    padding: 24px 0 29px;
    text-align: center;
    font-size: 0.55rem;
}

.page-caption span {
    padding: 0 8px;
    color: #c3eaff;
}

.fonte-alternativa {
    font-family: 'RelogioDigital', monospace;
    letter-spacing: 0.08em;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #c5eafa;
    outline-offset: 4px;
}

@media (max-width: 680px) {
    .page-shell {
        width: min(100% - 32px, 500px);
    }

    .topbar {
        min-height: 74px;
    }

    .topbar-note {
        font-size: 0;
    }

    .topbar-note .live-dot {
        width: 8px;
        height: 8px;
    }

    .clock-card {
        margin: 20px auto;
        padding: 24px 24px 0;
        border-radius: 21px;
    }

    .intro {
        padding: 27px 0 25px;
    }

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

    .time-panel,
    .time-panel--local,
    .time-panel--away {
        padding: 23px 0;
    }

    .timezone-divider {
        width: 100%;
        height: 1px;
    }

    .timezone-divider span {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .clock-display {
        margin-top: 22px;
        font-size: clamp(2.75rem, 12vw, 3.8rem);
    }

    .page-caption {
        padding-top: 6px;
    }
}

@media (max-width: 380px) {
    .page-shell {
        width: calc(100% - 24px);
    }

    .clock-card {
        padding-right: 18px;
        padding-left: 18px;
    }

    .brand {
        font-size: 0.64rem;
        letter-spacing: 0.14em;
    }

    .city-picker {
        gap: 6px;
    }

    .city-button {
        padding: 0 8px;
        gap: 5px;
        font-size: 0.64rem;
    }

    .card-footer {
        font-size: 0.47rem;
        letter-spacing: 0.11em;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
