/* NOMAN RMNN — world clocks that float on the page. Each clock can be dragged anywhere and resized from its corner;
   where you leave them is remembered in this browser. Colours follow the globe (brand.css). */

.wc-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 40; }
html, body { overflow-x: clip; }
.wc-card {
  --s: 1;
  position: absolute;
  left: 0; top: 0;
  width: max-content;
  transform-origin: 0 0;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) scale(var(--s));
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 10px;
  border-radius: 18px;
  color: #eef8ff;
  font-family: var(--text, "Plus Jakarta Sans", system-ui, sans-serif);
  background:
    radial-gradient(120% 140% at 50% -40%, rgba(103, 194, 173, .22), transparent 60%),
    linear-gradient(160deg, rgba(12, 40, 56, .86), rgba(6, 22, 34, .80));
  border: 1px solid rgba(103, 194, 173, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 32px rgba(0, 0, 0, .42), 0 0 26px rgba(85, 189, 197, .14);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow .25s, border-color .25s;
}
.wc-card:hover, .wc-card:focus-visible { border-color: rgba(103, 194, 173, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 40px rgba(0, 0, 0, .5), 0 0 32px rgba(85, 189, 197, .3); outline: none; }
.wc-card.is-dragging { cursor: grabbing; border-color: rgba(217, 194, 110, .8); box-shadow: 0 22px 50px rgba(0, 0, 0, .55), 0 0 36px rgba(217, 194, 110, .3); transition: none; }

.wcx-dial { flex: none; width: 48px; height: 48px; overflow: visible; }
.wcx-face { fill: rgba(217, 194, 110, .12); }
.is-night .wcx-face { fill: rgba(85, 150, 230, .16); }
.wcx-rim { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: .9; }
.wcx-tk { stroke: rgba(220, 238, 246, .55); stroke-width: 1; stroke-linecap: round; }
.wcx-tk.big { stroke: rgba(240, 250, 252, .9); stroke-width: 1.5; }
.wcx-h { stroke: #fff8e8; stroke-width: 2.6; stroke-linecap: round; }
.wcx-m { stroke: #ffffff; stroke-width: 1.7; stroke-linecap: round; }
.wcx-s { stroke: #d9c26e; stroke-width: 1.1; stroke-linecap: round; filter: drop-shadow(0 0 1.5px rgba(217, 194, 110, .9)); }
.wcx-hub { fill: #d9c26e; stroke: #fff8e8; stroke-width: .8; }

.wcx-info { display: grid; gap: 1px; min-width: 0; }
.wcx-top { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.wcx-flag { flex: none; width: 18px; height: 12px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .4); }
.wcx-name { font: 800 10px/1 var(--display, "Sora", sans-serif); letter-spacing: .14em; text-transform: uppercase; color: #f1f9ff; }
.wcx-dn { font-size: 11px; line-height: 1; }
.wcx-time { display: flex; align-items: baseline; gap: 3px; font-family: var(--display, "Sora", sans-serif); font-variant-numeric: tabular-nums; line-height: 1.05; white-space: nowrap; }
.wcx-hm { font-size: 22px; font-weight: 600; color: #fff; text-shadow: 0 0 12px rgba(85, 189, 197, .6); }
.wcx-ss { font-size: 12px; font-weight: 600; color: #9fe6e8; }
.wcx-ap { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: #d9c26e; margin-left: 2px; }
.wcx-meta { font-size: 9.5px; font-weight: 700; letter-spacing: .03em; color: #b6d0d6; white-space: nowrap; }

/* the corner grip: drag it to make the clock smaller or bigger */
.wcx-grip {
  position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; border: 0; padding: 0; margin: 0;
  background: none; cursor: nwse-resize; opacity: .45; transition: opacity .2s; touch-action: none;
}
.wcx-grip::before { content: ""; position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px;
  border-right: 2px solid #d9c26e; border-bottom: 2px solid #d9c26e; border-radius: 0 0 4px 0; }
.wc-card:hover .wcx-grip, .wc-card:focus-within .wcx-grip, .wcx-grip:focus-visible { opacity: 1; }

.wc-reset {
  position: absolute; z-index: 41; white-space: nowrap; transform: translate3d(var(--x, 0px), var(--y, 0px), 0);
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(103, 194, 173, .4); background: rgba(6, 22, 34, .82); color: #dff3f1; cursor: pointer;
  font: 700 12px/1 var(--display, "Sora", sans-serif); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.wc-reset:hover { border-color: #67c2ad; color: #fff; }
.wc-reset[hidden] { display: none; }
.wc-hint {
  position: absolute; z-index: 41; transform: translate3d(var(--x, 0px), var(--y, 0px), 0);
  padding: 5px 10px; border-radius: 999px; background: rgba(6, 22, 34, .75); color: #b6d0d6;
  font: 600 11px/1.2 var(--text, sans-serif); pointer-events: none; transition: opacity .6s; white-space: nowrap;
}
.wc-hint.gone { opacity: 0; }

@media (prefers-reduced-motion: reduce) { .wc-card { transition: none; } }
