/**
 * world_clock.css
 * 🕰️ The World Clock and its Focus Timer on the website — the mobile app's screens (AncientWorldClockScreen,
 * LegendaryAncientClockScreen): dark glass and gold over a drifting masterpiece, or the classic purple look.
 * Everything that has a size is written as calc(N * var(--u)): world_clock.js sets --u (the app's fit()) so the
 * screen, which never scrolls, fits any window — smaller on a short screen, a little larger on a roomy desktop.
 */
@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

html.wc-lock,
html.wc-lock body {
    overflow: hidden !important;
}

.wc-root {
    --u: 1;
    --wc-gold: #ffd700;
    --wc-gold-warm: #ffd98a;
    --wc-base: #030604;
    --wc-glass: rgba(8, 10, 7, 0.74);
    --wc-glass-soft: rgba(8, 10, 7, 0.5);
    --wc-hairline: rgba(255, 210, 122, 0.34);
    --wc-hairline-faint: rgba(255, 210, 122, 0.18);
    --wc-cream: #f3e9d2;
    --wc-cream-soft: rgba(243, 233, 210, 0.82);
    --wc-label: rgba(255, 217, 138, 0.72);
    --wc-serif: 'Baskerville', 'Baskervville', 'Libre Baskerville', 'Hoefler Text', Georgia, 'Times New Roman', serif;
    --wc-mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, 'Courier New', monospace;
    --wc-roman: Georgia, 'Times New Roman', serif;
    --wc-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    position: fixed;
    inset: 0;
    z-index: 9000; /* over the floating buttons (2000s), under the site's modals (10000) and the quote detail (11000) */
    display: none;
    background: var(--wc-base);
    color: var(--wc-cream);
    font-family: var(--wc-serif);
    line-height: 1.25;
    opacity: 0;
    transition: opacity 0.3s ease;
    overscroll-behavior: contain;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.wc-root.is-open {
    opacity: 1;
}

/* the reset sits at zero specificity (:where), so every component rule below wins over it */
.wc-root :where(*, *::before, *::after) {
    box-sizing: border-box;
}

.wc-root :where(button) {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.wc-root :where(button:disabled) {
    cursor: default;
}

.wc-root :where(h1, h2, p) {
    margin: 0;
    padding: 0;
    font-weight: inherit;
    text-shadow: none;
}

.wc-root :where(:focus) {
    outline: none;
}

.wc-root :focus-visible {
    outline: 2px solid var(--wc-gold);
    outline-offset: 2px;
}

/* ---------- classic look: the screen's original purple gradient, no painting ---------- */
.wc-root.is-classic {
    background: linear-gradient(180deg, #0a0515 0%, #1a0f2a 50%, #0a0515 100%);
}

.wc-root.is-classic .wc-canvas {
    display: none;
}

/* ---------- the painted canvas ---------- */
.wc-canvas {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.wc-paintings {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.wc-painting {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--w);
    height: var(--h);
    opacity: 0;
    transition: opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: translate, scale, opacity;
    animation: wc-pan 34s ease-in-out infinite alternate, wc-zoom 34s ease-in-out infinite alternate;
}

.wc-painting.is-in {
    opacity: 1;
}

.wc-painting img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
}

/* the slow cinematic drift across the canvas: there and back, 34 seconds each way */
@keyframes wc-pan {
    from { translate: 0 var(--y0); }
    to { translate: var(--x1) var(--y1); }
}

@keyframes wc-zoom {
    0%, 100% { scale: 1; }
    50% { scale: 1.05; }
}

.wc-veil {
    position: absolute;
    inset: 0;
}

/* chiaroscuro: dark top and bottom */
.wc-veil-dark {
    background: linear-gradient(to bottom, rgba(3, 6, 4, 0.84) 0%, rgba(3, 6, 4, 0.4) 30%, rgba(3, 6, 4, 0.58) 62%, rgba(3, 6, 4, 0.95) 100%);
}

/* candlelight */
.wc-veil-candle {
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.19), rgba(255, 215, 0, 0) 50%, rgba(255, 215, 0, 0.12));
}

.wc-veil-sides {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, 0.55) 100%);
}

.wc-dust {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.wc-dust i {
    position: absolute;
    top: 0;
    border-radius: 50%;
    background: var(--wc-gold-warm);
    box-shadow: 0 0 4px 1px var(--wc-gold-warm);
    opacity: 0;
    animation: wc-mote var(--dur) linear var(--delay) infinite;
}

@keyframes wc-mote {
    0% { opacity: 0; transform: translate3d(0, 95vh, 0); }
    15% { opacity: var(--peak); }
    70% { opacity: calc(var(--peak) * 0.6); }
    100% { opacity: 0; transform: translate3d(var(--sway), 12vh, 0); }
}

/* ---------- screens ---------- */
.wc-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.wc-screen[hidden],
.wc-sheet[hidden],
.wc-complete[hidden] {
    display: none !important;
}

.wc-screen.is-entering {
    animation: wc-fade 0.3s ease both;
}

@keyframes wc-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- header: back · title · [background switch] [globe] ---------- */
.wc-header {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(10px * var(--u)) calc(10px * var(--u)) calc(8px * var(--u));
}

.wc-header-side {
    display: flex;
    align-items: center;
    gap: calc(8px * var(--u));
}

/* mirrors the background switch, so the title stays centred */
.wc-spacer {
    flex: none;
    width: 44px;
}

.wc-icon-btn {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 7, 0.74);
    border: 1px solid rgba(255, 210, 122, 0.38);
    color: var(--wc-gold-warm);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.wc-icon-btn:active {
    transform: scale(0.94);
}

@media (hover: hover) {
    .wc-icon-btn:hover {
        border-color: rgba(255, 215, 0, 0.7);
    }
}

.wc-icon-btn svg {
    display: block;
    width: 22px;
    height: 22px;
}

.wc-back,
.wc-globe {
    color: var(--wc-gold);
}

.wc-back svg {
    width: 24px;
    height: 24px;
}

.wc-back-arrow {
    display: none;
}

.wc-globe svg {
    width: 21px;
    height: 21px;
    filter: drop-shadow(0 0 4px rgba(255, 196, 80, 0.4));
}

.wc-bg-toggle[aria-checked="true"] {
    color: var(--wc-gold);
    border-color: rgba(255, 215, 0, 0.7);
    background: rgba(34, 27, 7, 0.86);
}

.wc-bg-toggle[aria-checked="true"] svg rect {
    fill: currentColor;
    fill-opacity: 0.25;
}

.wc-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

/* for a moment after each press, a glass caption names the background now showing */
.wc-toggle-caption {
    position: absolute;
    right: 52px;
    top: 50%;
    z-index: 3;
    padding: 6px 12px;
    border-radius: 14px;
    background: rgb(9, 11, 8);
    border: 1px solid rgba(255, 210, 122, 0.4);
    font-family: var(--wc-mono);
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--wc-gold-warm);
    opacity: 0;
    transform: translate(6px, -50%);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.wc-toggle-caption.is-on {
    opacity: 1;
    transform: translate(0, -50%);
}

.wc-title {
    flex: 1;
    min-width: 0;
    margin-bottom: calc(16px * var(--u));
    padding: 0 calc(8px * var(--u));
    text-align: center;
    font-family: var(--wc-mono);
    font-weight: 700;
    font-size: max(calc(11px * var(--u)), 10px);
    letter-spacing: calc(2.4px * var(--u));
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--wc-gold);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* the Focus Timer has no title: a meander ornament carries the Greek identity */
.wc-ornament {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(6px * var(--u));
    padding: 0 calc(12px * var(--u));
}

.wc-rule {
    height: 1px;
    background: var(--wc-gold);
}

.wc-rule-out {
    width: calc(18px * var(--u));
    opacity: 0.18;
}

.wc-rule-in {
    width: calc(26px * var(--u));
    opacity: 0.4;
}

.wc-glyph {
    font-size: 9px;
    color: var(--wc-gold);
    opacity: 0.55;
}

.wc-sound-icon {
    font-size: 20px;
    line-height: 1;
}

/* classic header: the gold back button, a little larger glass buttons */
.wc-root.is-classic .wc-back {
    width: max(44px, calc(48px * var(--u)));
    height: max(44px, calc(48px * var(--u)));
    border: 0;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #1a0f2a;
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.wc-root.is-classic .wc-back-chevron {
    display: none;
}

.wc-root.is-classic .wc-back-arrow {
    display: block;
    font-size: max(calc(28px * var(--u)), 10px);
    font-weight: 800;
    line-height: 1;
}

.wc-root.is-classic .wc-globe {
    width: max(44px, calc(48px * var(--u)));
    height: max(44px, calc(48px * var(--u)));
}

.wc-root.is-classic .wc-title {
    font-family: var(--wc-sans);
    font-size: max(calc(12px * var(--u)), 10px);
    letter-spacing: calc(1.2px * var(--u));
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.4);
}

.wc-root.is-classic .wc-sound {
    background: rgba(255, 215, 0, 0.12);
    border: 1.5px solid rgba(255, 215, 0, 0.35);
}

/* ---------- body ---------- */
.wc-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* room above and beside the dial for the gold ring, which reaches 5% past it */
    padding: calc(14px * var(--u)) calc(20px * var(--u)) calc(10px * var(--u));
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}

.wc-body::-webkit-scrollbar {
    display: none;
}

/* auto margins centre the column when there is room and never cut its top off when there is not */
.wc-stack {
    width: min(calc(360px * var(--u)), 100%);
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* a narrow portrait screen keeps the content at the top, as the app does (its slack falls at the bottom) */
.wc-root.is-top .wc-stack {
    margin-top: 0;
}

/* everything under the dial: one column on a phone, the right-hand half of the clock on a wide window */
.wc-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* a wide window (world_clock.js sets is-wide when it gives a larger clock): the dial beside its details */
.wc-root.is-wide .wc-stack-clock {
    width: min(calc(800px * var(--u)), 100%);
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: calc(44px * var(--u));
}

.wc-root.is-wide .wc-stack-clock .wc-dial-wrap {
    width: auto;
    flex: none;
}

.wc-root.is-wide .wc-stack-clock .wc-info {
    flex: 1 1 0;
    min-width: 0;
}

.wc-root.is-wide .wc-stack-clock .wc-digital {
    margin-top: 0;
}

/* ---------- the mechanical dial ---------- */
.wc-dial-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: calc(10px * var(--u)) 0;
}

.wc-dial {
    position: relative;
    width: calc(360px * var(--u));
    height: calc(360px * var(--u));
    max-width: 100%;
}

.wc-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 110%;
    height: 110%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: calc(6px * var(--u)) solid rgba(255, 215, 0, 0.78);
    background: linear-gradient(180deg, rgba(30, 24, 10, 0.92) 0%, rgba(8, 10, 7, 0.88) 50%, rgba(30, 24, 10, 0.92) 100%);
    box-shadow: 0 calc(12px * var(--u)) calc(25px * var(--u)) rgba(0, 0, 0, 0.65);
}

.wc-root.is-classic .wc-ring {
    border-width: calc(10px * var(--u));
    border-color: #ffd700;
    background: linear-gradient(180deg, #2a1f3d 0%, #1a0f2a 50%, #2a1f3d 100%);
    box-shadow: 0 calc(12px * var(--u)) calc(25px * var(--u)) rgba(255, 215, 0, 0.6);
}

.wc-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: calc(6px * var(--u)) solid #9a7b45;
    background: linear-gradient(180deg, rgba(246, 239, 222, 0.95) 0%, rgba(229, 218, 194, 0.95) 100%);
}

.wc-root.is-classic .wc-face {
    border-color: #8b7355;
    background: linear-gradient(180deg, #f5f1e8 0%, #e8e4d8 100%);
}

.wc-num {
    position: absolute;
    font-family: var(--wc-roman);
    font-weight: 900;
    font-size: max(calc(24px * var(--u)), 10px);
    line-height: 1.15;
    color: #2a2a2a;
    text-shadow: 1px 1px 2px rgba(139, 115, 85, 0.3);
}

.wc-num-top {
    top: calc(8px * var(--u));
    left: 50%;
    transform: translateX(-50%);
}

.wc-num-bottom {
    bottom: calc(8px * var(--u));
    left: 50%;
    transform: translateX(-50%);
}

.wc-num-right {
    top: 48%;
    right: calc(8px * var(--u));
}

.wc-num-left {
    top: 48%;
    left: calc(8px * var(--u));
}

/* drawn on the app's 360-point dial; reaches over the face's border so (180, 180) is the centre */
.wc-dial-svg {
    position: absolute;
    left: calc(-6px * var(--u));
    top: calc(-6px * var(--u));
    width: calc(360px * var(--u));
    height: calc(360px * var(--u));
    overflow: visible;
    pointer-events: none;
}

.wc-hour-dot {
    fill: #8b7355;
}

.wc-minute-dot {
    fill: #b8a893;
    opacity: 0.6;
}

.wc-tooth {
    fill: #4a3728;
}

.wc-hand {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.wc-hand-hour rect {
    fill: #2a2a2a;
}

.wc-hand-minute rect {
    fill: #4a4a4a;
}

.wc-hand-second {
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.8));
}

.wc-hand-second rect {
    fill: #ffd700;
}

.wc-cap {
    fill: #2a2a2a;
    stroke: #ffd700;
    stroke-width: 2;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 1));
}

/* ---------- digital time: tap it (or the globe) to choose the clock's city ---------- */
.wc-digital {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin-top: calc(20px * var(--u));
    padding: calc(3px * var(--u)) calc(26px * var(--u)) calc(6px * var(--u));
    border-radius: calc(18px * var(--u));
    background: var(--wc-glass);
    border: 1px solid var(--wc-hairline);
    text-align: center;
    transition: border-color 0.2s ease;
}

@media (hover: hover) {
    .wc-digital:hover {
        border-color: rgba(255, 215, 0, 0.6);
    }
}

.wc-zone {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    max-width: 100%;
    margin-top: calc(2px * var(--u));
    padding-top: calc(8px * var(--u));
    font-family: var(--wc-mono);
    font-size: max(calc(10px * var(--u)), 10px);
    letter-spacing: calc(2.2px * var(--u));
    text-transform: uppercase;
    color: var(--wc-label);
}

.wc-zone-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre;
}

.wc-zone-chevron {
    display: inline-flex;
    color: var(--wc-gold-warm);
}

.wc-zone-chevron svg {
    display: block;
    width: max(calc(11px * var(--u)), 10px);
    height: max(calc(11px * var(--u)), 10px);
}

.wc-date {
    margin-bottom: calc(1px * var(--u));
    max-width: 100%;
    font-family: var(--wc-serif);
    font-style: italic;
    font-size: max(calc(22px * var(--u)), 10px);
    line-height: 1.25;
    white-space: nowrap;
    color: var(--wc-cream);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.wc-time {
    font-family: var(--wc-mono);
    font-weight: 700;
    font-size: max(calc(27px * var(--u)), 10px);
    line-height: 1.3;
    letter-spacing: calc(3px * var(--u));
    font-variant-numeric: tabular-nums;
    color: var(--wc-gold);
    text-shadow: 0 0 10px rgba(255, 196, 80, 0.45);
}

.wc-root.is-classic .wc-digital {
    padding: calc(3px * var(--u)) calc(20px * var(--u)) 0;
    border-radius: calc(16px * var(--u));
    background: rgba(255, 215, 0, 0.03);
    border-color: rgba(255, 215, 0, 0.15);
}

.wc-root.is-classic .wc-zone {
    font-family: var(--wc-sans);
    font-weight: 700;
    font-size: max(calc(13px * var(--u)), 10px);
    letter-spacing: calc(1px * var(--u));
    color: #9da0c2;
}

.wc-root.is-classic .wc-date {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 800;
    letter-spacing: calc(1.5px * var(--u));
    color: var(--wc-gold);
    text-shadow: 0 3px 6px rgba(255, 215, 0, 0.8);
}

.wc-root.is-classic .wc-time {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    font-size: max(calc(28px * var(--u)), 10px);
    letter-spacing: calc(4px * var(--u));
    text-shadow: 0 4px 12px rgba(255, 215, 0, 0.8);
}

/* ---------- the quote ---------- */
.wc-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-top: calc(10px * var(--u));
    padding: calc(12px * var(--u)) calc(18px * var(--u));
    border-radius: calc(18px * var(--u));
    background: var(--wc-glass);
    border: 1px solid var(--wc-hairline);
    text-align: center;
    transition: border-color 0.2s ease;
}

@media (hover: hover) {
    .wc-quote:hover {
        border-color: rgba(255, 215, 0, 0.6);
    }
}

.wc-quote-text {
    font-family: var(--wc-serif);
    font-style: italic;
    font-size: max(calc(17px * var(--u)), 10px);
    line-height: 1.42;
    color: var(--wc-cream);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.wc-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(12px * var(--u));
    margin-top: calc(4px * var(--u));
}

.wc-orn {
    font-family: var(--wc-serif);
    font-size: max(calc(13px * var(--u)), 10px);
    color: var(--wc-gold);
    opacity: 0.8;
}

.wc-quote-author {
    font-family: var(--wc-mono);
    font-size: max(calc(10.5px * var(--u)), 10px);
    letter-spacing: calc(1.6px * var(--u));
    text-transform: uppercase;
    color: var(--wc-label);
}

.wc-root.is-classic .wc-quote {
    width: 100%;
    margin-top: calc(2px * var(--u));
    padding: calc(8px * var(--u)) calc(16px * var(--u));
    border-radius: 0;
    border-width: 2px 0;
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.05);
}

.wc-root.is-classic .wc-quote-text {
    font-family: var(--wc-sans);
    font-size: max(calc(16px * var(--u)), 10px);
    line-height: 1.38;
    color: #fff;
    text-shadow: none;
}

.wc-root.is-classic .wc-orn {
    font-size: max(calc(18px * var(--u)), 10px);
}

.wc-root.is-classic .wc-quote-author {
    font-family: var(--wc-sans);
    font-weight: 700;
    font-size: max(calc(14px * var(--u)), 10px);
    letter-spacing: calc(0.5px * var(--u));
    text-transform: none;
    color: var(--wc-gold);
}

/* ---------- FOCUS TIMER button ---------- */
.wc-focus-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(8px * var(--u));
    margin-top: calc(8px * var(--u));
    padding: calc(14px * var(--u)) calc(20px * var(--u));
    border-radius: calc(26px * var(--u));
    background: linear-gradient(135deg, rgba(34, 27, 7, 0.92), rgba(16, 13, 5, 0.92));
    border: 1px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
    font-family: var(--wc-mono);
    font-weight: 700;
    font-size: max(calc(12.5px * var(--u)), 10px);
    letter-spacing: calc(1.6px * var(--u));
    text-transform: uppercase;
    color: var(--wc-gold);
    transition: transform 0.15s ease, border-color 0.2s ease;
}

.wc-focus-btn:active {
    transform: scale(0.97);
}

@media (hover: hover) {
    .wc-focus-btn:hover {
        border-color: var(--wc-gold);
    }
}

.wc-focus-btn > span:first-child {
    font-size: max(calc(22px * var(--u)), 10px);
}

.wc-root.is-classic .wc-focus-btn {
    border-width: 2px;
    border-color: rgba(255, 215, 0, 0.3);
    border-radius: calc(14px * var(--u));
    background: linear-gradient(135deg, #1a0f2a, #2a1a3a);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    font-family: var(--wc-sans);
    font-weight: 800;
    font-size: max(calc(14px * var(--u)), 10px);
    letter-spacing: calc(0.6px * var(--u));
}

/* ---------- museum plaque of the painting behind the screen ---------- */
.wc-plaque {
    max-width: 100%;
    margin-top: calc(6px * var(--u));
    padding: 0 calc(12px * var(--u));
    text-align: center;
    font-family: var(--wc-mono);
    font-size: max(calc(9.5px * var(--u)), 9.5px);
    line-height: 1.25;
    letter-spacing: calc(1.2px * var(--u));
    color: var(--wc-label);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.wc-plaque:empty {
    display: none;
}

/* a long credit breaks after the title: the byline keeps together */
.wc-plaque-by {
    white-space: nowrap;
}

/* ---------- Focus Timer ---------- */
/* the Focus Timer fills the screen, and the slack opens up like the app's: mostly around the timer, some around the quote,
   the controls staying low */
.wc-stack-focus {
    flex: 1 0 auto;
    margin: 0;
}

.wc-timer-section {
    position: relative;
    flex: 2 1 auto;
    width: 100%;
    margin-top: calc(6px * var(--u));
    padding: calc(5px * var(--u)) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wc-quote-slot {
    flex: 1.3 1 auto;
    width: 100%;
    display: flex;
    align-items: center;
}

.wc-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: calc(230px * var(--u));
    transform: translate(-50%, -50%);
    border-radius: 200px;
    background: radial-gradient(closest-side, rgba(255, 215, 0, 0.55), rgba(255, 215, 0, 0));
    filter: blur(calc(26px * var(--u)));
    opacity: 0.15;
    pointer-events: none;
    animation: wc-glow 4s ease-in-out infinite alternate;
}

@keyframes wc-glow {
    from { opacity: 0.08; }
    to { opacity: 0.22; }
}

@keyframes wc-glow-classic {
    from { opacity: 0.3; }
    to { opacity: 0.8; }
}

.wc-root.is-classic .wc-glow {
    animation-name: wc-glow-classic;
}

.wc-timer {
    position: relative;
    z-index: 1;
    font-family: var(--wc-mono);
    font-weight: 700;
    font-size: max(calc(108px * var(--u)), 10px);
    line-height: 1.1;
    letter-spacing: calc(0.8px * var(--u));
    font-variant-numeric: tabular-nums;
    color: var(--wc-gold);
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.35);
}

.wc-progress {
    position: relative;
    z-index: 1;
    width: 92%;
    height: calc(10px * var(--u));
    margin-top: calc(14px * var(--u));
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255, 215, 0, 0.08);
    border: 1.5px solid rgba(255, 215, 0, 0.25);
}

.wc-progress-fill {
    width: 0;
    height: 100%;
    border-radius: 5px;
    background: var(--wc-gold);
    box-shadow: 0 0 12px var(--wc-gold);
    transition: width 0.9s linear;
}

.wc-phrase {
    padding: calc(12px * var(--u)) calc(24px * var(--u));
    text-align: center;
    font-family: var(--wc-serif);
    font-size: max(calc(15px * var(--u)), 10px);
    line-height: 1.4;
    letter-spacing: 0.2px;
    color: #ffe3a3;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

.wc-root.is-classic .wc-phrase {
    font-family: var(--wc-sans);
    font-style: italic;
    font-weight: 600;
    font-size: max(calc(13px * var(--u)), 10px);
    letter-spacing: 0.5px;
    color: var(--wc-gold);
    opacity: 0.85;
    text-shadow: none;
}

.wc-focus-quote {
    position: relative;
    width: 100%;
    min-height: calc(112px * var(--u));
    display: flex;
    align-items: flex-start;
    padding: calc(14px * var(--u)) calc(16px * var(--u));
    border-radius: calc(20px * var(--u));
    background: linear-gradient(135deg, rgba(8, 10, 7, 0.82), rgba(8, 10, 7, 0.7), rgba(8, 10, 7, 0.82));
    border: 1px solid var(--wc-hairline);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: border-color 0.2s ease;
}

@media (hover: hover) {
    .wc-focus-quote:not(:disabled):hover {
        border-color: rgba(255, 215, 0, 0.6);
    }
}

.wc-focus-quote:disabled {
    opacity: 0.92;
}

.wc-mark {
    flex: none;
    font-family: var(--wc-serif);
    font-size: max(calc(48px * var(--u)), 10px);
    line-height: calc(48px * var(--u));
    color: var(--wc-gold);
    opacity: 0.55;
}

.wc-mark-l {
    align-self: flex-start;
    margin: calc(-8px * var(--u)) calc(6px * var(--u)) 0 0;
}

.wc-mark-r {
    align-self: flex-end;
    margin: 0 0 calc(-8px * var(--u)) calc(6px * var(--u));
}

.wc-fq-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: calc(12px * var(--u));
}

.wc-fq-text {
    margin-bottom: calc(10px * var(--u));
    font-family: var(--wc-serif);
    font-size: max(calc(17px * var(--u)), 10px);
    line-height: 1.48;
    color: var(--wc-cream);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.wc-fq-author {
    text-align: right;
    font-family: var(--wc-mono);
    font-size: max(calc(10.5px * var(--u)), 10px);
    letter-spacing: calc(1.6px * var(--u));
    text-transform: uppercase;
    color: var(--wc-label);
}

.wc-root.is-classic .wc-focus-quote {
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: calc(18px * var(--u));
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.wc-root.is-classic .wc-mark {
    opacity: 0.35;
}

.wc-root.is-classic .wc-fq-text {
    font-family: var(--wc-sans);
    font-style: italic;
    font-weight: 500;
    font-size: max(calc(16px * var(--u)), 10px);
    line-height: 1.6;
    color: #fff;
    text-shadow: none;
}

.wc-root.is-classic .wc-fq-author {
    font-family: var(--wc-sans);
    font-weight: 700;
    font-size: max(calc(14px * var(--u)), 10px);
    letter-spacing: calc(0.8px * var(--u));
    text-transform: none;
    color: var(--wc-gold);
}

/* session length: the app's companion / mode / warrior pills carry the choice here */
.wc-pills {
    width: 100%;
    display: flex;
    gap: calc(6px * var(--u));
    justify-content: space-between;
    padding: calc(10px * var(--u)) 0 calc(6px * var(--u));
}

.wc-pill {
    flex: 1;
    padding: calc(8px * var(--u)) calc(6px * var(--u));
    border-radius: 20px;
    background: var(--wc-glass);
    border: 1px solid var(--wc-hairline);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
    text-align: center;
    font-family: var(--wc-mono);
    font-size: max(calc(9.5px * var(--u)), 9.5px);
    letter-spacing: calc(0.8px * var(--u));
    text-transform: uppercase;
    color: var(--wc-gold-warm);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.wc-pill.is-active {
    border-color: var(--wc-gold);
    background: rgba(255, 215, 0, 0.16);
    color: var(--wc-gold);
}

.wc-pill:disabled:not(.is-active) {
    opacity: 0.45;
}

@media (hover: hover) {
    .wc-pill:not(:disabled):hover {
        border-color: rgba(255, 215, 0, 0.7);
    }
}

.wc-root.is-classic .wc-pill {
    border-width: 1.5px;
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.15);
    font-family: var(--wc-sans);
    font-weight: 800;
    font-size: max(calc(11px * var(--u)), 10px);
    letter-spacing: calc(0.3px * var(--u));
    text-transform: none;
    color: var(--wc-gold);
}

.wc-root.is-classic .wc-pill.is-active {
    background: rgba(255, 215, 0, 0.3);
    border-color: var(--wc-gold);
}

.wc-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: calc(6px * var(--u));
}

.wc-controls-row {
    display: flex;
    gap: calc(8px * var(--u));
}

.wc-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(8px * var(--u));
    padding: calc(10px * var(--u)) calc(14px * var(--u));
    border-radius: calc(26px * var(--u));
    font-family: var(--wc-mono);
    text-transform: uppercase;
    transition: transform 0.15s ease, border-color 0.2s ease, filter 0.2s ease;
}

/* a long label (Iniciar Enfoque, Buscar Nova Citação) breaks on a word, in even lines */
.wc-btn-label {
    min-width: 0;
    line-height: 1.15;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

/* the main action takes a little more of the row than Reset */
.wc-controls-row .wc-btn-primary {
    flex-grow: 1.35;
    padding-inline: calc(10px * var(--u));
}

.wc-btn:active {
    transform: scale(0.97);
}

.wc-btn-primary {
    border: 1px solid rgba(255, 226, 154, 0.45);
    background: linear-gradient(135deg, rgba(31, 138, 112, 0.9), rgba(16, 92, 72, 0.9));
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.55);
    font-weight: 700;
    font-size: max(calc(13.5px * var(--u)), 10px);
    letter-spacing: calc(1.3px * var(--u));
    color: #fff;
}

.wc-btn-primary.is-running {
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.9), rgba(170, 72, 58, 0.9));
}

.wc-btn-icon {
    font-size: max(calc(22px * var(--u)), 10px);
}

.wc-btn-secondary {
    background: var(--wc-glass);
    border: 1px solid var(--wc-hairline);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    font-size: max(calc(12.5px * var(--u)), 10px);
    letter-spacing: calc(1.6px * var(--u));
    color: var(--wc-gold);
}

.wc-btn-subtle {
    background: var(--wc-glass-soft);
    border: 1px solid var(--wc-hairline-faint);
    font-size: max(calc(11.5px * var(--u)), 10px);
    letter-spacing: calc(1.4px * var(--u));
    color: var(--wc-cream-soft);
}

@media (hover: hover) {
    .wc-btn:hover {
        filter: brightness(1.12);
    }
}

.wc-root.is-classic .wc-btn-primary {
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: calc(16px * var(--u));
    background: linear-gradient(135deg, #1f8a70, #177a5f);
    font-family: var(--wc-sans);
    font-weight: 900;
    font-size: max(calc(16px * var(--u)), 10px);
    letter-spacing: calc(1.2px * var(--u));
}

.wc-root.is-classic .wc-btn-primary.is-running {
    background: linear-gradient(135deg, #e07a5f, #c85a4f);
}

.wc-root.is-classic .wc-btn-secondary {
    border: 2.5px solid rgba(255, 215, 0, 0.5);
    border-radius: calc(18px * var(--u));
    background: rgba(255, 215, 0, 0.18);
    font-family: var(--wc-sans);
    font-weight: 900;
    font-size: max(calc(15px * var(--u)), 10px);
    letter-spacing: calc(1px * var(--u));
}

.wc-root.is-classic .wc-btn-subtle {
    border: 2px solid rgba(255, 215, 0, 0.25);
    border-radius: calc(16px * var(--u));
    background: rgba(255, 215, 0, 0.1);
    font-family: var(--wc-sans);
    font-weight: 700;
    font-size: max(calc(15px * var(--u)), 10px);
    letter-spacing: calc(0.8px * var(--u));
    text-transform: none;
    color: #d8d8ff;
}

.wc-stack-focus .wc-plaque {
    margin-top: calc(8px * var(--u));
}

.wc-root.is-classic .wc-plaque {
    display: none;
}

/* ---------- city picker: ONE list in a bottom sheet, in the canvas look whatever the background ---------- */
.wc-sheet {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: max(calc(env(safe-area-inset-top) + 8px), 12vh);
}

.wc-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wc-sheet.is-open .wc-sheet-backdrop {
    opacity: 1;
}

.wc-sheet-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 560px);
    height: 100%;
    padding: 10px 12px max(env(safe-area-inset-bottom), 0px);
    border-radius: 26px 26px 0 0;
    border: 1px solid var(--wc-hairline);
    border-bottom: 0;
    background: rgb(8, 10, 7); /* opaque: the clock's gold date and time must not show through the list */
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.28, 1);
}

.wc-sheet.is-open .wc-sheet-panel {
    transform: none;
}

.wc-sheet-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(rgba(255, 226, 154, 0.1), rgba(255, 226, 154, 0));
    pointer-events: none;
}

.wc-sheet-handle {
    flex: none;
    align-self: center;
    width: 44px;
    height: 4px;
    margin-bottom: 12px;
    border-radius: 2px;
    background: rgba(255, 210, 122, 0.45);
}

.wc-sheet-head {
    position: relative;
    flex: none;
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 0 6px;
}

.wc-sheet-headtext {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.wc-sheet-head h2 {
    font-family: var(--wc-serif);
    font-size: 25px;
    line-height: 1.2;
    color: var(--wc-cream);
}

.wc-sheet-head p {
    margin-top: 4px;
    font-family: var(--wc-serif);
    font-style: italic;
    font-size: 14.5px;
    line-height: 20px;
    color: var(--wc-cream-soft);
}

.wc-sheet-close {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(10, 10, 7, 0.8);
    border: 1px solid var(--wc-hairline);
    color: var(--wc-gold-warm);
}

.wc-sheet-close svg {
    display: block;
    width: 20px;
    height: 20px;
}

.wc-search {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    height: 46px;
    margin-bottom: 12px;
    padding: 0 15px;
    border-radius: 23px;
    background: rgba(255, 240, 205, 0.06);
    border: 1px solid var(--wc-hairline);
    color: var(--wc-gold-warm);
}

.wc-search-icon svg {
    display: block;
    width: 17px;
    height: 17px;
}

.wc-search-input {
    flex: 1;
    min-width: 0;
    margin: 0 0 0 10px;
    padding: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    font-family: var(--wc-serif);
    font-size: 16px;
    color: var(--wc-cream);
    caret-color: var(--wc-gold);
    -webkit-user-select: text;
    user-select: text;
}

.wc-search-input::placeholder {
    color: rgba(243, 233, 210, 0.45);
}

.wc-search-clear {
    margin-left: 8px;
    color: var(--wc-label);
}

.wc-search-clear svg {
    display: block;
    width: 18px;
    height: 18px;
}

.wc-city-list {
    position: relative;
    flex: 1;
    min-height: 0;
    padding: 2px 0 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 210, 122, 0.4) transparent;
}

.wc-city {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 64px;
    margin-bottom: 6px;
    padding: 0 14px 0 16px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 240, 205, 0.035);
    border: 1px solid var(--wc-hairline-faint);
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease;
}

@media (hover: hover) {
    .wc-city:hover {
        border-color: rgba(255, 215, 0, 0.45);
        background: rgba(255, 240, 205, 0.07);
    }
}

.wc-city.is-active {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.6);
}

.wc-city.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(rgba(255, 226, 154, 0.16), rgba(255, 226, 154, 0));
    pointer-events: none;
}

.wc-city-text {
    position: relative;
    flex: 1;
    min-width: 0;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
}

.wc-city-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--wc-serif);
    font-size: 18px;
    line-height: 1.25;
    color: var(--wc-cream);
}

.wc-city.is-active .wc-city-name {
    color: var(--wc-gold-warm);
}

.wc-city-meta {
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--wc-mono);
    font-size: 9.5px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--wc-label);
}

.wc-city-clock {
    position: relative;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 14px;
}

.wc-city-time {
    font-family: var(--wc-mono);
    font-size: 15px;
    letter-spacing: 0.6px;
    color: var(--wc-cream-soft);
}

.wc-city.is-active .wc-city-time {
    font-weight: 700;
    color: var(--wc-gold);
}

.wc-city-day {
    margin-top: 1px;
    font-family: var(--wc-mono);
    font-size: 8.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(243, 233, 210, 0.56);
}

.wc-city-radio {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 210, 122, 0.45);
}

.wc-city.is-active .wc-city-radio {
    border-color: var(--wc-gold);
    background: var(--wc-gold);
    color: #161003;
}

.wc-city-radio svg {
    display: block;
    width: 15px;
    height: 15px;
}

/* "Local time" stays pinned above the world (west → east): a hairline sets it apart */
.wc-pinned-rule {
    height: 1px;
    margin: 4px 28px 9px;
    background: rgba(255, 210, 122, 0.22);
}

.wc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 36px;
    color: var(--wc-label);
}

.wc-empty-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.wc-empty p {
    font-family: var(--wc-serif);
    font-style: italic;
    font-size: 16px;
    text-align: center;
    color: var(--wc-cream-soft);
}

/* ---------- session complete ---------- */
.wc-complete {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wc-complete.is-open {
    opacity: 1;
}

.wc-complete-card {
    width: min(100%, 340px);
    padding: 26px 22px 22px;
    border-radius: 22px;
    background: rgb(8, 10, 7);
    border: 1px solid var(--wc-hairline);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.12);
    text-align: center;
}

.wc-complete-icon {
    font-size: 44px;
    line-height: 1;
}

.wc-complete-title {
    margin-top: 12px;
    font-family: var(--wc-serif);
    font-size: 24px;
    line-height: 1.25;
    color: var(--wc-cream);
}

.wc-complete-line {
    margin-top: 10px;
    font-family: var(--wc-mono);
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--wc-label);
}

.wc-complete-ok {
    width: 100%;
    margin-top: 22px;
}

/* ---------- reduced motion: a still painting framed on its subject, no drift, dust or glow ---------- */
@media (prefers-reduced-motion: reduce) {
    .wc-painting {
        animation: none;
        translate: var(--sx) var(--sy);
    }

    .wc-dust {
        display: none;
    }

    .wc-glow {
        animation: none;
        opacity: 0.15;
    }

    .wc-screen.is-entering {
        animation: none;
    }

    .wc-root,
    .wc-painting,
    .wc-sheet-backdrop,
    .wc-sheet-panel,
    .wc-complete,
    .wc-progress-fill {
        transition-duration: 0.01s;
    }
}
