:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202124;
  background: #f3f7fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --muted: #777b83;
  --line: #e9eaed;
  --accent: #3458d4;
}

* { box-sizing: border-box; }
.home-motion-toggle { position: fixed; z-index: 40; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 0; padding: 5px 6px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 20px; background: rgb(245 250 255 / 35%); backdrop-filter: blur(5px); box-shadow: 0 0 9px 3px rgb(238 248 255 / 30%); color: #385174; font: 650 10px/1.2 Inter, sans-serif; cursor: pointer; }
.home-motion-toggle:focus-visible { outline: 2px solid #3458d4; outline-offset: 3px; }
.home-motion-toggle { padding: 6px 5px; }
.home-motion-track { display: block; width: 16px; height: 29px; padding: 2px; border-radius: 12px; background: rgb(52 88 212 / 72%); box-shadow: 0 0 4px rgb(52 88 212 / 25%); }
.home-motion-track > span { display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translateY(0); transition: transform .2s ease; }
.home-motion-toggle[aria-checked="false"] .home-motion-track { background: #8d99aa; }
.home-motion-toggle[aria-checked="false"] .home-motion-track > span { transform: translateY(13px); }
.home-motion-paused *, .home-motion-paused *::before, .home-motion-paused *::after { animation-play-state: paused !important; transition: none !important; scroll-behavior: auto !important; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #edf5fc url("travel-background.png") center center / cover fixed no-repeat; }
body::before { position: fixed; z-index: 0; inset: 0; content: ""; background: rgb(255 255 255 / 20%); pointer-events: none; }
/* Original language-specific artwork shares one size and separate link/QR targets. */
.home-support { position: absolute; z-index: 6; top: 14px; left: calc(50% + 76px); right: calc(min(340px,24vw) + 36px); display: flex; justify-content: center; align-items: center; }
.home-support-banner { position: relative; width: 80%; max-width: 224px; height: 46px; filter: drop-shadow(0 0 4px #39c5ff) drop-shadow(0 0 3px #ffe89b); animation: support-banner-glow 3s ease-in-out infinite alternate; transition: transform .22s ease; }
.home-support-art { position: absolute; inset: 0; background: url("donate-banner-ru.png") center / 100% 100% no-repeat; pointer-events: none; }
html[lang="en"] .home-support-art { background-image: url("donate-banner-en.png"); background-size: 100% 149.5868%; background-position: center 53.3333%; filter: blur(.3px); }
.home-support-banner:hover, .home-support-banner:focus-within { transform: scale(1.07); }
.home-support-link { position: absolute; left: 21%; top: 12%; width: 51%; height: 66%; border-radius: 7px; }
.home-support-link:focus-visible, .donate-qr-trigger:focus-visible { outline: 2px solid #3458d4; outline-offset: 3px; }
.donate-qr-trigger { position: absolute; left: 83.45%; top: 50%; transform: translateY(-50%); width: 11.5%; height: auto; aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 0; border-radius: 2px; background: #fff; cursor: pointer; }
html[lang="en"] .home-support .donate-qr-trigger { left: 80.5%; }
.donate-qr-trigger img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes support-banner-glow { from { filter: drop-shadow(0 0 3px #35baffb3) drop-shadow(0 0 2px #ffe49c99); } to { filter: drop-shadow(0 0 7px #35baffdf) drop-shadow(0 0 5px #ffe49cc9); } }
@media(min-width:1025px) { body:has(.home-support) .moscow-clock { width: min(340px,24vw); min-width: 0; } }
@media(prefers-reduced-motion:reduce) { .home-support-banner { transition: none; animation: none; } }
.donate-qr-dialog {
  width: min(94vw, 660px);
  max-height: 92vh;
  padding: 20px;
  border: 1px solid #e0e5ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 70px rgb(9 20 44 / 35%);
}
.donate-qr-dialog::backdrop { background: rgb(8 17 35 / 65%); backdrop-filter: blur(4px); }
.donate-qr-dialog h2 { margin: 0; }
.donate-qr-image { display: block; width: min(100%, 570px); height: auto; max-height: calc(92vh - 125px); margin: 0 auto; object-fit: contain; }
.antarctica-flag { position: fixed; z-index: 6; left: 50%; bottom: 0; width: min(720px,90vw); aspect-ratio: 1; transform: translateY(var(--antarctica-static-offset,60%)); filter: drop-shadow(0 3px 6px #173d5960) drop-shadow(0 0 6px #ffffffa0); }
.antarctica-flag-link { position: relative; display: block; width: 100%; height: 100%; color: #153d5e; text-decoration: none; transform-origin: center bottom; transition: transform .8s cubic-bezier(.22,.61,.36,1), filter .6s ease; will-change: transform; }
.antarctica-continent { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.antarctica-flag-full { position: absolute; left: 36%; right: 24%; top: 22%; text-align: center; pointer-events: none; }
.antarctica-flag-full > span { display: block; color: #163d5b; font-size: clamp(13px,2vw,26px); font-weight: 900; line-height: 1.15; max-width: 100%; white-space: normal; overflow-wrap: normal; word-break: normal; text-wrap: balance; text-transform: uppercase; text-shadow: 0 2px 0 #fff,0 0 8px #ffffffd9; }
.antarctica-flag-link:hover, .antarctica-flag-link:focus-visible { transform: scale(1.025); filter: brightness(1.1) saturate(1.12); text-decoration: none; }
.antarctica-flag-link:hover .antarctica-flag-full > span { color: #0a5987; }
.antarctica-flag { transition:transform .65s cubic-bezier(.22,.61,.36,1); }
.antarctica-flag:not(.is-positioned) { visibility: hidden; pointer-events: none; }
.antarctica-flag:not(.is-motion-ready) { transition: none; }
.antarctica-flag.is-collapsed { transform:translateY(var(--antarctica-collapsed-offset,92%)); }
.antarctica-flag.is-collapsed .antarctica-flag-full { visibility:hidden; }
.antarctica-flag.is-collapsed .antarctica-flag-link { transform:none; filter:none; transition:none; }
.antarctica-flag-link:focus-visible { outline: 3px solid #3458d4; outline-offset: -5px; border-radius: 50%; }
html[lang="ru"] .antarctica-flag-full { left: 37.5%; right: 37.5%; top: 18%; padding: 0 6px; }
html[lang="ru"] .antarctica-flag-full > span { font-size: clamp(12px,1.75vw,23px); line-height: 1.18; text-wrap: balance; }
html[lang="en"] .antarctica-flag-full { left: 37.5%; right: 37.5%; top: 18%; padding: 0 6px; }
html[lang="en"] .antarctica-flag-full > span { font-size: clamp(12px,1.75vw,23px); line-height: 1.18; white-space: normal; text-wrap: balance; }
body:has(.antarctica-flag) { height: 100dvh; min-height: 0; overflow: hidden; }
body:has(.antarctica-flag) .home { --home-side-gap: 24px; height: 100dvh; min-height: 0; padding-top: 28px; padding-bottom: 0; }
body:has(.antarctica-flag) .search-card { flex: 0 0 auto; margin-block: 0; }
body:has(.antarctica-flag) .home > .game-pockets { flex: 0 0 auto; align-self: center; width: min(100%,720px); margin: 18px 0 0; }
@media(max-width:760px) { body:has(.antarctica-flag) .home { --home-side-gap: 18px; padding-top: 102px; } }
body:has(.antarctica-flag) .home-footer { z-index: 7; }
@media(prefers-reduced-motion: reduce) { .antarctica-flag, .antarctica-flag-full, .antarctica-flag-link { transition: none; } }

.home-author {
  position: absolute;
  z-index: 5;
  top: 5px;
  left: calc(25% - 38px);
  width: min(220px, calc(50vw - 88px));
  height: 64px;
  transform: translateX(-50%);
}
.home-author-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1) contrast(1) saturate(1) drop-shadow(0 1px 2px rgb(21 42 66 / 55%)) drop-shadow(0 4px 7px rgb(21 42 66 / 30%));
  transition: filter .45s ease;
  animation: author-attention 4s ease-in-out infinite;
}
.home-author-logo-en { display: none; }
html[lang="en"] .home-author-logo-ru { display: none; }
html[lang="en"] .home-author-logo-en { display: block; }
@keyframes author-attention {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(2px) scale(1.1); }
}
.home-author:hover .home-author-logo,
.home-author:focus-within .home-author-logo {
  animation-play-state: paused;
  filter: brightness(1.12) contrast(1.2) saturate(1.4) drop-shadow(0 1px 2px rgb(21 42 66 / 65%)) drop-shadow(0 5px 9px rgb(21 42 66 / 42%));
}
.home-author:focus-visible { outline: 2px solid #3458d4; outline-offset: 4px; border-radius: 8px; }
.home-author-socials {
  position: absolute;
  top: 100%;
  left: 50%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: min(100%, 156px);
  padding: 2px 0 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity .3s ease, transform .45s cubic-bezier(.2,.8,.2,1), visibility .3s;
}
.home-author-socials-title {
  flex: 0 0 100%;
  color: #294663;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.home-author-socials-title span {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgb(255 255 255 / 70%);
}
.home-author:hover .home-author-socials,
.home-author:focus-within .home-author-socials,
.home-author.is-socials-open .home-author-socials {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.home-author.is-socials-closed .home-author-socials { opacity: 0; visibility: hidden; pointer-events: none; }
.home-author-social {
  display: grid;
  flex: 0 1 36px;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  padding: 4px;
  border-radius: 10px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 3px 10px rgb(21 42 66 / 25%);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.home-author-social:hover,
.home-author-social:focus-visible {
  transform: scale(1.12);
  box-shadow: 0 5px 14px rgb(21 42 66 / 35%);
}
.home-author-social:focus-visible { outline: 2px solid #3458d4; outline-offset: 3px; }
.home-author-social:active { transform: translateY(1px) scale(.95); background: #e8effc; box-shadow: 0 1px 3px rgb(22 48 76 / 15%), inset 0 1px 3px rgb(22 48 76 / 12%); transition-duration: .1s; }
.home-author-social svg { display: block; width: 100%; height: 100%; }
.home-author-about { position: relative; flex: 0 0 280px; max-width: calc(100vw - 24px); margin-top: 5px; padding: 26px 14px 12px; border: 1px solid rgb(255 255 255 / 90%); border-radius: 12px; background: rgb(247 251 255 / 95%); box-shadow: 0 7px 22px rgb(22 48 76 / 22%); backdrop-filter: blur(10px); color: #31455e; font-size: 12px; line-height: 1.5; text-align: left; transform: translateX(max(0px, calc(190px - 25vw))); }
.home-author-about p { margin: 0 0 9px; }
.home-author-about p:last-child { margin-bottom: 0; }
.home-author-about strong { color: #1c365a; }
.home-author-about .author-project-name { white-space: nowrap; }
.home-author-about .author-about-name { margin: 0 0 8px; color: #1c365a; font-size: 18px; font-weight: 800; line-height: 1.25; text-align: center; }
.home-author-about .author-about-intro { margin-bottom: 12px; line-height: 1.5; }
.home-author-about-toggle { position: absolute; top: 4px; right: 6px; display: grid; width: 21px; height: 21px; place-items: center; padding: 0; border: 1px solid #cbd8e9; border-radius: 50%; background: #fff; color: #385782; font: 700 16px/1 sans-serif; cursor: pointer; }
.home-author-about-toggle:hover { background: #e5efff; }
.home-author-about-toggle:focus-visible { outline: 2px solid #3458d4; outline-offset: 2px; }
.home-author-about.is-collapsed { flex-basis: auto; padding: 0 9px 0 31px; width: auto; height: 30px; display: flex; align-items: center; transform: none; }
.home-author-about.is-collapsed .home-author-about-toggle { top: 4px; left: 4px; right: auto; }
.home-author-about-collapsed-label { color: #385782; font-size: 11px; font-weight: 700; white-space: nowrap; }
.home-author-about-collapsed-label[hidden] { display: none; }
#home-author-about-text[hidden] { display: none; }
.home-author-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 0 0 100%; width: 100%; align-items: center; gap: 4px; margin-top: 5px; white-space: nowrap; }
.home-author-episodes { grid-column: 1 / -1; }
.home-author-action { display: inline-flex; min-width: 0; align-items: center; justify-content: center; gap: 3px; min-height: 30px; padding: 5px 3px; border: 1px solid rgb(255 255 255 / 85%); border-radius: 16px; background: rgb(247 251 255 / 90%); box-shadow: 0 3px 10px rgb(22 48 76 / 14%); color: #385782; font: 700 10px/1.2 Inter, sans-serif; text-decoration: none; cursor: pointer; transition: transform .25s ease, background .25s ease; }
.home-author-action:hover, .home-author-action:focus-visible { transform: translateY(-2px); background: #fff; text-decoration: none; }
.home-author-action:active { transform: translateY(1px) scale(.95); background: #e8effc; box-shadow: 0 1px 3px rgb(22 48 76 / 15%), inset 0 1px 3px rgb(22 48 76 / 12%); transition-duration: .1s; }
.home-author-action:focus-visible { outline: 2px solid #3458d4; outline-offset: 2px; }
.home-author-action svg { flex: 0 0 12px; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.home-author-about.is-collapsed { display: none; }
.contact-main { width: min(680px, calc(100% - 32px)); margin: 0 auto; padding: 86px 0 48px; }
.contact-main > .capital-game-back { display: inline-flex; margin-bottom: 22px; }
.contact-panel { padding: clamp(22px, 5vw, 40px); border: 1px solid #fff; border-radius: 24px; background: rgb(249 252 255 / 95%); box-shadow: 0 12px 35px rgb(25 54 94 / 15%); color: #1c365a; }
.contact-envelope { display: block; width: 42px; height: 42px; margin: 0 auto 10px; fill: none; stroke: #3456d8; stroke-width: 1.5; }
.contact-panel h1 { margin: 0; text-align: center; font-size: clamp(26px, 5vw, 36px); }
.contact-intro { margin: 12px 0 28px; color: #60708b; text-align: center; line-height: 1.5; }
#contact-form { display: grid; gap: 10px; }
#contact-form label { font-size: 14px; font-weight: 700; }
#contact-form input, #contact-form textarea { box-sizing: border-box; width: 100%; min-width: 0; margin-bottom: 12px; padding: 13px 15px; border: 1px solid #c9d5f5; border-radius: 12px; background: #fff; color: #263c63; font: inherit; }
#contact-form textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
#contact-form input:focus, #contact-form textarea:focus { outline: 2px solid #8d9fff; outline-offset: 2px; }
.contact-note { margin: 0; color: #60708b; font-size: 13px; line-height: 1.5; }
.contact-submit { justify-self: start; margin-top: 6px; }
.contact-submit:disabled { opacity: .5; cursor: default; box-shadow: none; }
@media (min-width: 960px) {
  .home-author-about:not(.is-collapsed) { transform: translateX(max(0px, calc(332px - 25vw))); }
  .home-author {
    left: calc(25% - 180px);
    width: min(220px, calc(50vw - 384px));
  }
}
.language-switch { position: absolute; z-index: 5; top: 14px; left: 50%; display: inline-flex; width: 120px; height: 46px; gap: 8px; padding: 4px; border: 0; border-radius: 999px; background: linear-gradient(145deg, #d9deea, #bfc7d8); box-shadow: inset 0 2px 5px rgb(31 41 55 / 28%), 0 5px 16px rgb(27 42 78 / 23%); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); transform: translateX(-50%); }
.directory-page .language-switch { position: fixed; z-index: 20; top: 10px; transform: translateX(-50%); transform-origin: top center; transition: transform .22s ease; }
.directory-page .language-switch.is-compact { transform: translateX(-50%) scale(.72); }
.language-switch::before { position: absolute; z-index: 1; top: 4px; left: 4px; width: 52px; height: 38px; border: 1px solid rgb(255 255 255 / 68%); border-radius: 999px; content: ""; background: radial-gradient(ellipse at 25% 8%, rgb(255 255 255 / 9%), transparent 44%), linear-gradient(145deg, rgb(255 255 255 / 2%), rgb(224 233 255 / 1%) 48%, rgb(255 255 255 / 2%)); box-shadow: 0 4px 12px rgb(14 24 48 / 38%), 0 0 0 1px rgb(57 78 137 / 62%), inset 0 1px 2px rgb(255 255 255 / 44%), inset 0 -1px 3px rgb(43 58 94 / 4%); backdrop-filter: blur(.5px) saturate(190%); -webkit-backdrop-filter: blur(.5px) saturate(190%); transform: translateX(0); transition: transform .28s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.language-switch[data-active-language="en"]:not(.is-dragging)::before { transform: translateX(60px); }
.language-switch.is-dragging::before { transform: translateX(var(--language-drag-x, 0px)); }
.language-switch.is-dragging::before { transition: none; }
.language-switch { touch-action: none; user-select: none; -webkit-user-select: none; }
.language-switch.is-dragging { cursor: grabbing; }
.language-switch button { position: relative; overflow: hidden; display: grid; width: 52px; min-width: 52px; height: 38px; place-items: center; padding: 0 8px; border: 0; border-radius: 999px; color: #171b27; background: transparent; font: inherit; font-size: 12px; font-weight: 900; letter-spacing: .025em; -webkit-text-stroke: .35px #fff; text-shadow: 0 0 3px #fff, 0 0 6px #fff; cursor: grab; transition: opacity .2s ease; }
.language-switch button::before { position: absolute; z-index: 0; inset: 0; width: 52px; height: 38px; border-radius: inherit; content: ""; background-position: center; background-size: 52px 38px; background-repeat: no-repeat; filter: brightness(1.08) saturate(1.2); transition: filter .2s ease; }
.language-switch button[data-language="ru"]::before { background-image: url("https://flagcdn.com/ru.svg"); }
.language-switch button[data-language="en"]::before { background-image: url("https://flagcdn.com/gb.svg"); }
.language-switch button[aria-pressed="true"]::before { filter: brightness(1.1) saturate(1.25); }
.language-switch button:not([aria-pressed="true"])::before { filter: brightness(.82) saturate(.95); }
.language-switch button[aria-pressed="true"]:hover::before { filter: brightness(1.16) saturate(1.3); }
.language-switch button span { position: relative; z-index: 2; }
.language-switch button[aria-pressed="true"] { opacity: 1; }
.language-switch button[aria-pressed="true"]::after { position: absolute; z-index: 0; inset: 0; border-radius: inherit; content: ""; background: linear-gradient(145deg, rgb(255 255 255 / 8%), transparent 55%, rgb(255 255 255 / 4%)); pointer-events: none; }
.language-switch button:not([aria-pressed="true"]) { opacity: 1; }
.language-switch button:focus-visible { outline: 3px solid #9aacf3; outline-offset: 2px; }
.moscow-clock { position: fixed; z-index: 6; top: 14px; right: 20px; display: flex; width: min(340px, calc(100vw - 24px)); max-width: calc(100vw - 24px); min-width: min(280px, calc(100vw - 24px)); align-items: stretch; padding: 4px 5px 4px 10px; border: 1px solid rgb(195 207 239 / 85%); border-radius: 12px; color: #253251; background: rgb(255 255 255 / 82%); box-shadow: 0 5px 18px rgb(30 49 91 / 12%), inset 0 1px 0 rgb(255 255 255 / 82%); text-align: right; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.moscow-clock { transform-origin: top right; transition: top .24s ease, width .28s ease, height .28s ease, min-width .28s ease, padding .28s ease, border-radius .28s ease, transform .28s ease; }
.moscow-clock.is-compact { top: 10px; right: 10px; width: 116px; height: 116px; min-width: 116px; max-width: 116px; align-items: center; padding: 8px 6px; border-radius: 17px; text-align: center; }
.moscow-clock.is-compact .clock-display-row { width: 100%; height: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; align-content: center; justify-items: center; column-gap: 0; row-gap: 5px; }
.moscow-clock.is-compact .clock-city-details { width: 100%; grid-column: 1; grid-row: 1; gap: 2px; }
.moscow-clock.is-compact .clock-location-group { width: 100%; gap: 1px; }
.moscow-clock.is-compact .clock-select-trigger { max-width: calc(100% - 22px); }
.moscow-clock.is-compact .clock-city-line { gap: 2px; }
.moscow-clock.is-compact .clock-location-icon { display: none; }
.moscow-clock.is-compact .clock-country-flag { width: 20px; height: 14px; }
.moscow-clock.is-compact .clock-flag-trigger { width: 22px; height: 22px; flex-basis: 22px; }
@media (min-width: 1025px) {
  .directory-page .moscow-clock.is-compact .clock-location-group { gap: 10px; }
  .directory-page .moscow-clock.is-compact .clock-select-trigger { max-width: calc(100% - 32px); }
}
.moscow-clock.is-compact .clock-date { max-width: 100%; font-size: 9px; }
.moscow-clock.is-compact .clock-time { grid-column: 1; grid-row: 2; justify-self: center; font-size: 15px; }
.clock-display-row { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 8px; row-gap: 2px; }
.clock-time { grid-column: 1; grid-row: 1 / span 2; justify-self: center; align-self: center; }
.clock-city-details { display: flex; min-width: 0; width: 100%; grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: center; gap: 2px; }
.clock-location-group { display: flex; width: 100%; min-width: 0; max-width: 100%; align-items: center; justify-content: center; gap: 10px; }
.clock-select-trigger { display: flex; width: auto; min-width: 0; max-width: calc(100% - 38px); flex: 0 1 auto; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 7px; color: inherit; background: transparent; font: inherit; text-align: center; cursor: pointer; }
.clock-select-trigger:hover .clock-city { color: #203b9a; text-decoration: underline; text-underline-offset: 2px; }
.clock-select-trigger:focus-visible { outline: 2px solid #718be8; outline-offset: 3px; }
.clock-flag-trigger { display: flex; width: 28px; height: 28px; flex: 0 0 28px; align-items: center; justify-content: center; margin: 0; padding: 2px; border: 1px solid transparent; border-radius: 7px; background: transparent; cursor: pointer; transition: background .16s ease, border-color .16s ease; }
.clock-flag-trigger[hidden] { display: none; }
.clock-flag-trigger:hover { border-color: #dce3f5; background: #f3f6fc; }
.clock-flag-trigger:focus-visible { outline: 2px solid #718be8; outline-offset: 2px; }
.clock-city { min-width: 0; flex: 0 1 auto; overflow: visible; color: #4b5876; font-size: 16px; font-weight: 800; letter-spacing: .035em; overflow-wrap: normal; text-overflow: clip; white-space: nowrap; }
.clock-city-line { display: flex; width: auto; min-width: 0; max-width: 100%; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.clock-location-icon { width: 12px; height: 12px; flex: 0 0 auto; fill: none; stroke: #66718b; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.clock-country-flag { display: block; width: 24px; height: 16px; border-radius: 2px; object-fit: contain; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 45%)); }
.clock-country-flag[hidden] { display: none; }
.clock-time { color: #203b9a; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock-date { color: #626a7a; font-size: 11px; font-weight: 600; text-align: center; white-space: nowrap; }
.clock-city-dialog, .clock-country-dialog { width: min(460px, calc(100vw - 32px)); max-height: min(82vh, 720px); padding: 21px; border: 1px solid #dfe4f0; border-radius: 17px; color: #202124; background: #fff; box-shadow: 0 22px 70px rgb(19 31 58 / 28%); }
.clock-city-dialog::backdrop, .clock-country-dialog::backdrop { background: rgb(20 30 52 / 42%); backdrop-filter: blur(3px); }
.clock-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.clock-dialog-heading h2 { margin: 0; font-size: 21px; }
.clock-dialog-close { display: grid; width: 34px; min-width: 34px; height: 34px; flex: 0 0 34px; aspect-ratio: 1; place-items: center; padding: 0; border: 1px solid #e0e4ec; border-radius: 50%; color: #3e485b; background: #f8f9fc; font: inherit; font-family: Arial, sans-serif; font-size: 21px; font-weight: 400; line-height: 1; cursor: pointer; }
.clock-dialog-close:hover { background: #edf1fa; }
.clock-reset { width: 100%; min-height: 42px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid #cbd5f3; border-radius: 9px; color: #263e98; background: #f3f6ff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .18s, box-shadow .18s; }
.clock-reset:hover { background: #e8edff; box-shadow: 0 3px 10px rgb(52 88 212 / 14%); }
.clock-reset:focus-visible { outline: 3px solid #9aacf3; outline-offset: 2px; }
.clock-dialog-close:focus-visible, .clock-city-filter:focus-visible, .clock-city-select:focus-visible { outline: 3px solid #9aacf3; outline-offset: 2px; }
.clock-city-filter { width: 100%; height: 44px; margin-bottom: 12px; padding: 0 12px; border: 1px solid #dfe1e6; border-radius: 9px; color: inherit; background: #fff; font: inherit; font-size: 14px; }
.clock-city-select { display: block; width: 100%; min-height: 270px; padding: 4px; border: 1px solid #e2e5ec; border-radius: 9px; background: #fff; font: inherit; font-size: 14px; }
.clock-city-select option { padding: 7px 8px; }
.clock-city-empty { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.clock-country-scroll { position: relative; max-height: min(60vh, 500px); overflow-y: auto; border: 1px solid #e6eaf2; border-radius: 10px; scroll-behavior: smooth; }
.clock-country-list { margin: 0; padding: 0; list-style: none; }
.clock-country-list li { padding: 0 5px; border-bottom: 1px solid #edf0f5; }
.clock-country-list li[hidden] { display: none; }
.clock-country-option { display: flex; width: 100%; align-items: center; gap: 9px; padding: 9px; border: 0; border-radius: 7px; color: inherit; background: transparent; font: inherit; font-size: 15px; line-height: 1.35; text-align: left; cursor: pointer; }
.clock-country-option-name { min-width: 0; }
.clock-country-option-flag { display: block; width: 32px; height: 22px; flex: 0 0 32px; margin-left: auto; border-radius: 2px; object-fit: contain; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 38%)); }
.clock-country-option:hover { background: #f1f4fb; }
.clock-country-option[aria-pressed="true"] { color: #263e98; background: #edf1ff; font-weight: 750; }
.clock-country-option:focus-visible { outline: 2px solid #9aacf3; outline-offset: -2px; }
.clock-country-top-button { position: sticky; z-index: 2; bottom: 8px; display: block; width: fit-content; min-height: 38px; margin: 10px auto; padding: 0 16px; border: 1px solid rgb(183 197 237 / 86%); border-radius: 999px; color: #263e98; background: rgb(255 255 255 / 76%); box-shadow: 0 4px 14px rgb(32 51 94 / 18%), inset 0 1px 0 #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.clock-country-top-button[hidden] { display: none; }
.clock-country-top-button:hover { background: #edf1ff; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.home { position: relative; z-index: 1; display: flex; min-height: 100vh; flex-direction: column; padding: 80px 24px 76px; background: transparent; }
.search-card, .home-footer { position: relative; }
.search-card { width: min(100%, 720px); align-self: center; margin-block: 0 auto; }
.brand-logo-window { position: relative; display: block; width: 100%; aspect-ratio: 1916 / 821; margin: 0 auto 6px; line-height: 0; text-decoration: none; cursor: pointer; }
.brand-logo-window:hover { text-decoration: none; }
.brand-logo-window:focus-visible { outline: 2px solid #3458d4; outline-offset: 4px; border-radius: 8px; }
.brand-logo-image { position: absolute; inset: 0; display: none; width: 100%; height: 100%; object-fit: contain; transform: translateY(14px); }
.brand-logo-window[data-logo-language="ru"] .brand-logo-ru,
.brand-logo-window[data-logo-language="en"] .brand-logo-en { display: block; }
.brand-globe-motion { position: absolute; z-index: 1; top: calc(49% + 14px); left: 43.7%; display: block; width: 22%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); }
.brand-logo-window[data-logo-language="en"] .brand-globe-motion { left: 41.7%; width: 20.5%; }
.brand-globe-motion::before { position: absolute; inset: 0; content: ""; background: url("globe-clouds.svg") 0 50% / 200% 100% repeat-x; opacity: .78; mix-blend-mode: screen; animation: globe-cloud-drift 20s linear infinite; }
.brand-globe-motion::after { position: absolute; top: -12%; bottom: -12%; left: -20%; width: 30%; content: ""; background: linear-gradient(90deg, transparent, rgb(209 251 255 / 28%) 30%, rgb(227 253 255 / 78%) 50%, rgb(103 219 255 / 36%) 70%, transparent); filter: blur(3px); opacity: 0; transform: skewX(-16deg); animation: globe-light-sweep 9s ease-in-out infinite; }
.brand-orbit-motion { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; transform: translateY(14px); }
.brand-orbit-halo { opacity: .55; }
@keyframes globe-light-sweep { 0%, 10% { left: -20%; opacity: 0; } 25% { opacity: .95; } 58% { left: 100%; opacity: .75; } 70%, 100% { left: 112%; opacity: 0; } }
@keyframes globe-cloud-drift { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
h1 { margin: 0; }
.search-card h1 { margin: 0 0 27px; text-align: center; font-size: clamp(25px, 4vw, 34px); line-height: 1.15; letter-spacing: .075em; font-weight: 750; }
.search-form { position: relative; height: 64px; display: flex; align-items: center; gap: 6px; margin-bottom: 40px; border: 1px solid #dfe1e6; border-radius: 16px; padding: 5px 7px 5px 21px; background: rgb(255 255 255 / 88%); box-shadow: 0 5px 20px rgb(29 41 77 / 6%); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); transition: border-color .18s, box-shadow .18s; }
.search-form:focus-within { border-color: #a9b8f4; box-shadow: 0 5px 24px rgb(52 88 212 / 12%); }
.search-form input, .table-filter { width: 100%; min-width: 0; border: 0; outline: 0; color: inherit; background: transparent; font: inherit; }
.search-form input { height: 100%; font-size: 17px; }
.search-form input::placeholder, .table-filter::placeholder { color: #a1a4ab; }
.search-form input::-webkit-search-cancel-button { cursor: pointer; }
.search-button { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border: 0; border-radius: 12px; color: #fff; background: var(--accent); cursor: pointer; transition: background .18s, transform .18s; }
.search-reset { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #7d8799; background: transparent; cursor: pointer; opacity: .78; transition: color .18s, opacity .18s, transform .18s; }
.search-reset[hidden] { display: none; }
.search-reset:hover { color: #34456d; opacity: 1; }
.search-reset:active { transform: rotate(-20deg) scale(.94); }
.search-button:hover { background: #2749bd; }
.search-button:active { transform: scale(.96); }
.search-button:focus-visible, .search-reset:focus-visible, a:focus-visible, .table-filter:focus-visible { outline: 3px solid #9aacf3; outline-offset: 3px; }
.search-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-reset svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lucky-country-button { position: absolute; top: calc(100% + 5px); right: 7px; display: flex; min-height: 28px; align-items: center; justify-content: center; gap: 4px; margin: 0; padding: 3px 9px; border: 1px solid rgb(62 128 85 / 22%); border-radius: 999px; color: #35684a; background: rgb(255 255 255 / 72%); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.lucky-country-button[hidden] { display: none; }
.lucky-country-button:hover { border-color: rgb(62 128 85 / 45%); background: rgb(255 255 255 / 84%); box-shadow: 0 4px 14px rgb(36 94 58 / 12%); transform: translateY(-1px); }
.lucky-country-button:active { transform: translateY(0) scale(.98); }
.lucky-country-button:focus-visible { outline: 3px solid #9aacf3; outline-offset: 3px; }
.search-autocomplete-ghost { position: absolute; z-index: 1; top: 50%; overflow: hidden; color: #a0a8b8; font: inherit; font-size: 17px; line-height: 1.2; white-space: pre; pointer-events: none; transform: translateY(-50%); }
.search-autocomplete-ghost[hidden] { display: none; }
.result { min-height: 31px; margin-top: 0; text-align: center; font-size: 15px; line-height: 1.55; }
.result:empty { min-height: 0; }
.result.is-success { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #000; font-size: 21px; font-weight: 700; }
.result-sentence { display: block; width: 100%; text-align: center; }
.capital-search-options { display: grid; width: min(100%, 520px); gap: 10px; }
.capital-search-option { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid rgb(52 88 212 / 18%); border-radius: 14px; background: rgb(255 255 255 / 78%); text-align: left; font-size: 16px; }
.capital-search-option > .capital-option-visuals { display: flex; width: auto; flex: 0 0 auto; gap: 8px; }
.capital-option-visuals .option-flag { width: 64px; height: 44px; flex: 0 0 64px; }
.capital-option-visuals .search-result-map { width: 72px; height: 72px; flex: 0 0 72px; }
.capital-option-visuals .map-location-pin { width: 8px; height: 14px; }
.capital-search-option > span { display: grid; gap: 4px; }
.capital-search-option strong { font-size: 19px !important; }
.capital-search-option .option-country { font-size: 14px; font-weight: 600; }
.capital-search-option .result-local-time { justify-content: flex-start; }
.option-flag { display: block; flex: 0 0 64px; width: 64px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 25%)); }
.result.is-error { color: #9d3c32; }
.result strong { color: #000; font-size: 24px; font-weight: 800; }
.result-local-time { display: inline-flex; flex-direction: row; align-items: baseline; justify-content: center; gap: 6px; width: 100%; text-align: center; }
.capital-local-time-label { color: #737b8c; font-size: 12px; font-weight: 600; }
.result-local-time .capital-local-time { color: #737b8c; font-size: 13px; font-weight: 650; }
.country-flag-copy { display: inline-block; width: 1.5em; height: 1em; margin-inline-start: .38em; padding: 0; overflow: hidden; vertical-align: -.08em; border: 0; border-radius: 2px; background: transparent; box-shadow: 0 1px 3px rgb(17 24 39 / 34%); cursor: copy; }
.country-flag-copy img { display: block; width: 100%; height: 100%; object-fit: cover; }
.country-flag-copy:focus-visible { outline: 2px solid #3458d4; outline-offset: 2px; }
.result-flag { display: block; width: min(288px, 80vw); height: min(192px, 54vw); object-fit: contain; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 82%)) drop-shadow(0 6px 12px rgb(0 0 0 / 48%)); }
.result-visuals { display: flex; width: 100%; align-items: center; justify-content: center; gap: 20px; }
.result-visuals .result-flag { width: min(288px, 56vw); height: min(192px, 38vw); }
.search-result-map { position: relative; display: inline-flex; width: 288px; height: 288px; flex: 0 0 288px; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #c7eaff, #457fb3 75%); box-shadow: inset -8px -8px 16px rgb(11 52 96 / 22%), 0 6px 15px rgb(25 52 93 / 20%); cursor: grab; touch-action: none; user-select: none; }
.search-result-map.is-dragging { cursor: grabbing; }
.search-result-map canvas { display: block; width: 100%; height: 100%; }
.map-pin-layer { position: absolute; z-index: 2; inset: 0; overflow: hidden; clip-path: circle(45.8% at 50% 50%); pointer-events: none; }
.map-location-pin { position: absolute; top: 50%; left: 50%; width: 15px; height: 27px; overflow: visible; filter: drop-shadow(0 1px 2px rgb(43 50 59 / 62%)); transform: translate(-50%, -100%); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.map-pin-stem { fill: #c4c5c7; stroke: #a7a9ac; stroke-width: .65; stroke-linejoin: round; }
.map-pin-head { stroke: rgb(255 255 255 / 76%); stroke-width: .9; }
.map-pin-glint { fill: #fff; opacity: .92; }
.search-result-map.is-rotating .map-location-pin { opacity: 0; transform: translate(-50%, -100%) scale(.78); }
.search-result-map.map-unavailable { opacity: .45; }
.home-footer { position: fixed; z-index: 5; right: auto; bottom: max(8px, env(safe-area-inset-bottom)); left: 12px; text-align: left; font-size: 14px; pointer-events: none; }
.home-footer { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.home-footer .site-credit { flex-direction: row; justify-content: flex-start; gap: 6px; margin: 0; padding-top: 0; text-align: left; white-space: nowrap; font-size: clamp(9px, 2.5vw, 12px); }
.home-footer .site-credit-link { pointer-events: auto; }
.site-credit { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: auto auto 0; padding-top: 24px; color: #737b8c; font-size: 12px; line-height: 1.45; text-align: center; }
.site-credit-link { color: inherit; text-decoration: none; }
.site-credit-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.site-credit-link:focus-visible { border-radius: 2px; outline: 2px solid currentColor; outline-offset: 2px; }
.directory-links { display: grid; grid-template-columns: minmax(0, 1fr) 116px 116px; align-items: center; gap: 14px; width: 100%; margin: 42px auto 0; }
.country-globe-link { position: relative; display: grid; place-items: center; width: 116px; height: 116px; border: 1px solid #dff8ff; border-radius: 20px; overflow: hidden; background: #347db4; box-shadow: 0 8px 20px rgb(23 58 104 / 32%); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.country-globe-label { position: relative; z-index: 2; max-width: 90%; padding: 5px 4px; border-radius: 8px; color: white; background: rgb(8 22 48 / 65%); backdrop-filter: blur(3px); font-size: 13px; font-weight: 900; line-height: 1.1; text-align: center; text-shadow: 0 1px 3px #06152e; }
.country-globe-link:hover { transform: scale(1.06); text-decoration: none; box-shadow: 0 10px 25px rgb(23 58 104 / 45%); }
.country-globe-link:active { transform: scale(1.12); }
.country-globe-link:focus-visible { outline: 3px solid #718be8; outline-offset: 4px; }
.all-countries-link { position: relative; isolation: isolate; display: flex; width: 100%; min-height: 116px; align-items: center; justify-content: center; overflow: hidden; margin: 0; padding: 12px 16px; border: 1px solid rgb(255 255 255 / 88%); border-radius: 20px; color: #fff; background: linear-gradient(135deg, #10284a, #163b70 52%, #101f49); box-shadow: 0 14px 34px rgb(26 66 128 / 30%), 0 3px 12px rgb(15 34 74 / 20%), inset 0 1px 0 rgb(255 255 255 / 62%); text-align: center; text-decoration: none; transition: transform .22s ease, box-shadow .22s ease; }
.territories-link { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 116px; height: 116px; padding: 8px; overflow: hidden; border: 1px solid rgb(255 255 255 / 90%); border-radius: 20px; color: #fff; background: #183761; box-shadow: 0 12px 30px rgb(26 66 128 / 24%), inset 0 1px 0 #fff; text-decoration: none; transition: transform .22s ease, box-shadow .22s ease; }
.territories-link-label { position: relative; z-index: 1; max-width: 100%; padding: 6px 4px; border-radius: 8px; color: #fff; background: rgb(8 22 48 / 45%); box-shadow: 0 4px 12px rgb(5 15 35 / 24%), inset 0 1px 0 rgb(255 255 255 / 16%); font-size: 14px; font-weight: 900; line-height: 1.15; text-align: center; text-shadow: 0 1px 4px #06152e; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.territories-link:hover .territories-flag-mosaic { filter: saturate(1.12) brightness(1.08); }
.territories-flag-mosaic { position: absolute; z-index: -1; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.territories-flag-mosaic .flag-mosaic-top { animation: flags-drift-right 150s linear infinite; }
.territories-flag-mosaic .flag-mosaic-bottom { animation: flags-drift-left 168s linear infinite; }
.territories-flag-mosaic::after { position: absolute; inset: 0; content: ""; background: rgb(8 22 48 / 15%); pointer-events: none; }
.territories-link:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgb(26 66 128 / 32%); text-decoration: none; }
.territories-link:active { transform: translateY(0); }
.capital-game-pocket { display: flex; width: 116px; height: 116px; align-self: flex-start; align-items: center; justify-content: flex-start; margin: 18px 0 0; overflow: hidden; }
.game-pockets { display: flex; justify-content: center; gap: 18px; margin: 18px auto 0; }
.game-pockets { flex-wrap: wrap; }
.find-globe-link { background: linear-gradient(145deg, #d8effc, #8cb5d5); }
.find-globe-link .find-globe-button-art { background-image: url("find-globe-button-map.svg"); }
.find-globe-page .capital-game-panel { width: min(940px, 100%); }
.find-rules { max-width: 620px; margin: 28px auto 8px; line-height: 1.7; color: #4e6282; }
.find-points { margin: 22px 0; padding: 12px 18px; border: 1px solid #cfdbff; border-radius: 14px; background: #f0f5ff; color: #244291; font-weight: 800; }
.find-points p { margin: 5px 0; }
.find-globe-page #find-map { display: flex; justify-content: center; margin: 10px auto; }
.find-globe-page .search-result-map { width: min(560px, 78vw); height: auto; aspect-ratio: 1; flex-basis: auto; }
.find-globe-page .map-location-pin { display: none !important; }
.find-globe-page .find-task-flag { display: block; width: min(360px, 80%); height: 180px; max-width: 100%; margin: 18px auto; object-fit: contain; background: transparent; box-shadow: none; filter: drop-shadow(0 4px 6px rgb(14 35 65 / 20%)); }
.find-task-points { font-family: Arial, sans-serif; font-size: 15px; font-weight: 400; line-height: 1.5; letter-spacing: normal; color: #526784; -webkit-text-stroke: 0; text-shadow: none; }
.find-globe-page #find-prompt { font-size: clamp(22px, 3vw, 30px); }
.find-globe-page #find-progress { grid-column: 1; }
.find-globe-page #find-score { grid-column: 2; font-size: 22px; color: #1d3b8b; }
.find-globe-page #find-next { margin-top: 15px; }
.find-globe-page .search-result-map:focus-visible { outline: 3px solid #5479ea; outline-offset: 5px; }
.find-globe-page .search-result-map, .find-globe-page .search-result-map canvas { cursor: url("globe-pointer.svg") 12 12, crosshair; }
.find-globe-page .search-result-map.is-dragging, .find-globe-page .search-result-map.is-dragging canvas { cursor: grabbing; }
.game-pockets .capital-game-pocket { margin: 0; }
.game-pockets .capital-game-pocket:has(> a[hidden]) { display: none; }
.globe-game-button-art { position: absolute; inset: 4px; border-radius: 50%; background: #3b81b5 url("globe-button-map.svg") 0 50% / 200% 100% repeat-x; box-shadow: inset -12px -6px 17px #123b6c, inset 7px 4px 12px #b7eaff, 0 0 8px #78d6ff; animation: globe-button-turn 24s linear infinite; }
.globe-game-flag-background { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.globe-game-flag-background .flag-mosaic-row { height: calc(100% / 6); flex-basis: calc(100% / 6); animation: flags-drift-left 48s linear infinite; }
.globe-game-flag-background .flag-mosaic-row:nth-child(even) { animation-name: flags-drift-right; }
.find-globe-link .globe-game-flag-background .flag-mosaic-row { animation-name: flags-drift-right; }
.find-globe-link .globe-game-flag-background .flag-mosaic-row:nth-child(even) { animation-name: flags-drift-left; }
.globe-game-flag-background .flag-mosaic-tile { padding: 0; border-width: .5px; border-radius: 1px; }
.globe-game-flag-background .flag-mosaic-fallback { font-size: 12px; }
.globe-game-button-art { border: 1px solid rgb(221 248 255 / 95%); outline: 1px solid rgb(17 56 94 / 75%); box-shadow: inset -12px -6px 17px #123b6c, inset 7px 4px 12px #b7eaff, 0 0 0 2px rgb(8 33 62 / 45%), 0 4px 9px rgb(3 19 41 / 85%), 0 0 9px rgb(141 230 255 / 80%); }
@keyframes globe-button-turn { to { background-position: -200% 50%; } }
.globe-game-page .capital-game-panel { width: min(940px, 100%); }
.globe-game-page #globe-game-map { display: flex; justify-content: center; margin: 10px auto; }
.globe-game-page .search-result-map { width: min(480px, 76vw); height: auto; aspect-ratio: 1; flex-basis: auto; }
.globe-game-page .map-location-pin { width: 10px; height: 18px; }
.globe-game-page .quiz-spinning { pointer-events: none; }
.globe-game-help { margin: 8px 0 16px; color: #65728a; font-size: 12px; }
.globe-game-page #globe-game-spin { margin: 12px auto; }
.globe-game-page #globe-game-prompt { font-size: clamp(20px, 3vw, 28px); }
.globe-game-page #globe-game-progress { grid-column: 1; }
.globe-game-page #globe-game-score { grid-column: 2; font-size: 22px; color: #1d3b8b; }
@media (max-width: 380px) { .game-pockets { gap: 8px; } .game-pockets .capital-game-pocket, .game-pockets .capital-game-link { width: 92px; flex-basis: 92px; } }
.capital-game-link { position: relative; display: flex; width: 116px; height: 116px; flex: 0 0 116px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 10px; overflow: hidden; border: 1px solid rgb(255 255 255 / 92%); border-radius: 20px; color: #18315f; background: linear-gradient(145deg, rgb(255 255 255 / 90%), rgb(221 233 255 / 76%)); box-shadow: 0 12px 30px rgb(26 66 128 / 22%), inset 0 1px 0 #fff; text-align: center; text-decoration: none; backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); transform: translateY(50%); transition: transform 1.44s cubic-bezier(.22,.72,.25,1), box-shadow .3s ease, background .3s ease; }
.capital-game-pocket:hover .capital-game-link, .capital-game-link:focus-visible { transform: translateY(-3px); background: linear-gradient(145deg, rgb(255 255 255 / 98%), rgb(210 226 255 / 88%)); box-shadow: 0 17px 34px rgb(26 66 128 / 30%), inset 0 1px 0 #fff; text-decoration: none; }
.capital-game-link:active { transform: translateY(0) scale(.98); }
.capital-game-link:focus-visible { outline: 3px solid #718be8; outline-offset: 3px; }
.capital-game-city-mosaic { position: absolute; z-index: 0; inset: 0; display: flex; gap: 1px; overflow: hidden; }
.capital-city-mosaic-column { position: relative; display: block; width: calc((100% - 1px) / 2); height: 100%; flex: 1 1 0; min-width: 0; overflow: hidden; }
.capital-city-mosaic-track { display: flex; width: 100%; height: max-content; flex-direction: column; }
.capital-city-mosaic-set { display: flex; width: 100%; flex: 0 0 auto; flex-direction: column; gap: 1px; padding-bottom: 1px; }
.capital-city-mosaic-tile { position: relative; display: flex; width: 100%; aspect-ratio: 3 / 2; flex: 0 0 auto; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgb(255 255 255 / 82%); border-radius: 3px; background: rgb(92 148 189 / 40%); box-shadow: 0 1px 4px rgb(5 12 28 / 42%); }
.capital-city-mosaic-tile img { position: absolute; inset: 2px; display: block; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; }
.capital-city-mosaic-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; }
.capital-city-mosaic-emoji[hidden] { display: none; }
.capital-city-mosaic-name { position: relative; z-index: 1; display: block; width: 100%; overflow: visible; padding: 3px 1px; color: #fff; background: transparent; font-size: 9px; font-weight: 900; line-height: 1.05; text-align: center; text-overflow: clip; -webkit-text-stroke: .35px #071426; paint-order: stroke fill; text-shadow: 0 0 2px #071426, 0 1px 4px #000, 0 0 6px rgb(0 0 0 / 85%); white-space: nowrap; overflow-wrap:normal; word-break:normal; }
.capital-city-mosaic-left .capital-city-mosaic-track { animation: city-flags-up 150s linear infinite; will-change: transform; }
.capital-city-mosaic-right .capital-city-mosaic-track { animation: city-flags-down 168s linear infinite; animation-delay: -12s; will-change: transform; }
.country-game-mosaic .capital-city-mosaic-left .capital-city-mosaic-track { animation: city-flags-down 150s linear infinite; }
.country-game-mosaic .capital-city-mosaic-right .capital-city-mosaic-track { animation: city-flags-up 168s linear infinite; animation-delay: -12s; }
@keyframes city-flags-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes city-flags-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.capital-game-link-label { position: absolute; z-index: 2; top: 25%; right: 4px; left: 4px; display: flex; flex-direction: column; align-items: center; padding: 4px 6px; border-radius: 8px; color: #fff; background: rgb(8 22 48 / 68%); box-shadow: 0 4px 12px rgb(5 15 35 / 24%), inset 0 1px 0 rgb(255 255 255 / 16%); font-size: 14px; font-weight: 900; line-height: 1.05; text-align: center; text-shadow: 0 1px 4px #06152e; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transform: translateY(-50%); transition: top 1.44s cubic-bezier(.22,.72,.25,1); }
.capital-game-pocket:hover .capital-game-link-label, .capital-game-link:focus-visible .capital-game-link-label { top: 50%; }
.capital-game-link-label > span { display: block; }
.country-game-mosaic .capital-city-mosaic-name { font-size: 8px; }
.capital-game-page { min-height: 100vh; }
.capital-game-main { position: relative; z-index: 1; display: flex; width: min(100% - 32px, 720px); min-height: 100vh; flex-direction: column; align-items: center; margin: 0 auto; padding: 82px 0 40px; }
.capital-game-back { align-self: flex-start; display: inline-flex; min-height: 44px; align-items: center; margin: 0 0 18px; padding: 0 18px; border: 1px solid rgb(255 255 255 / 96%); border-radius: 999px; color: #18264b; background: linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(218 228 255 / 72%) 55%, rgb(255 255 255 / 86%)); box-shadow: 0 10px 26px rgb(37 62 133 / 22%), 0 3px 8px rgb(31 54 131 / 12%), inset 0 1px 0 #fff, inset 0 -1px 0 rgb(63 92 163 / 13%); font-size: 14px; font-weight: 800; text-decoration: none; backdrop-filter: blur(18px) saturate(190%); -webkit-backdrop-filter: blur(18px) saturate(190%); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.capital-game-back:hover { transform: translateY(-3px); color: #10204f; background: linear-gradient(135deg, rgb(255 255 255 / 98%), rgb(198 214 255 / 88%) 55%, rgb(255 255 255 / 94%)); box-shadow: 0 14px 32px rgb(37 62 133 / 30%), 0 4px 10px rgb(31 54 131 / 18%), inset 0 1px 0 #fff, inset 0 -1px 0 rgb(63 92 163 / 17%); text-decoration: none; }
.capital-game-back:active { transform: translateY(0) scale(.98); }
.capital-game-back:focus-visible { outline: 3px solid #718be8; outline-offset: 3px; }
.capital-game-panel { position: relative; width: 100%; padding: clamp(22px, 5vw, 38px); border: 1px solid rgb(255 255 255 / 94%); border-radius: 24px; color: #202b43; background: rgb(255 255 255 / 88%); box-shadow: 0 20px 55px rgb(29 56 105 / 20%), inset 0 1px 0 #fff; text-align: center; backdrop-filter: blur(16px) saturate(145%); -webkit-backdrop-filter: blur(16px) saturate(145%); }
.capital-game-restart { position: absolute; z-index: 2; top: 14px; left: 14px; display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid rgb(89 117 190 / 22%); border-radius: 50%; color: #52658b; background: rgb(255 255 255 / 70%); box-shadow: 0 3px 10px rgb(29 56 105 / 10%); cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.capital-game-difficulty-back { left: 62px; }
.game-training-button { position: absolute; top: 12px; left: 14px; min-height: 30px; padding: 5px 10px; border: 1px solid #ccd8ed; border-radius: 9px; color: #385782; background: #f7fbff; font: 700 11px/1.2 Inter,sans-serif; cursor: pointer; }
.game-training-button:hover { background: #e7efff; }
.game-training-button:focus-visible { outline: 2px solid #3458d4; outline-offset: 3px; }
.capital-game-panel:has(.game-training-button:not([hidden])) { padding-top: 54px; }
.capital-game-restart svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.capital-game-restart:hover { transform: rotate(-24deg); border-color: rgb(52 88 212 / 38%); color: #294cc2; background: rgb(235 241 255 / 94%); box-shadow: 0 5px 14px rgb(29 56 105 / 16%); }
.capital-game-restart:focus-visible { outline: 3px solid #9aacf3; outline-offset: 3px; }
.capital-game-confetti { position: fixed; z-index: 2147483647; inset: 0; display: block; width: 100vw; height: 100vh; pointer-events: none; }
.capital-game-panel.is-finished .capital-game-score-row { margin-top: 24px; }
.capital-game-brand { margin: 0 0 7px; color: #3458d4; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.capital-game-panel h1 { margin: 0; color: #17316a; font-size: clamp(28px, 5vw, 38px); line-height: 1.15; }
.capital-game-description { margin: 9px 0 23px; color: #5b6578; font-size: 15px; }
.capital-game-panel [hidden] { display: none !important; }
.capital-game-difficulty { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px auto 10px; max-width: 560px; }
.capital-game-difficulty-option { display: flex; min-height: 126px; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding: 20px; border: 1px solid #d6def4; border-radius: 18px; color: #25385f; background: rgb(255 255 255 / 92%); font: inherit; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.country-game-page .capital-game-difficulty { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 100%; }
.country-game-page .capital-game-difficulty-option { min-height: 138px; padding: 16px 12px; }
.capital-game-difficulty-option:hover { transform: translateY(-3px); border-color: #859be6; background: #f4f7ff; box-shadow: 0 9px 22px rgb(45 74 146 / 14%); }
.capital-game-difficulty-option:focus-visible { outline: 3px solid #9aacf3; outline-offset: 3px; }
.capital-game-difficulty-option strong { min-height: 27px; color: #1d3b8b; font-size: 22px; font-weight: 900; line-height: 1.2; }
.capital-game-difficulty-option span { color: #5b6578; font-size: 14px; line-height: 1.4; }
.capital-game-difficulty-option .difficulty-points { margin-top: 0; color: #2849ad; font-size: 13px; font-weight: 800; line-height: 1.3; }
.capital-game-difficulty-option .difficulty-points-secondary { margin-top: -6px; }
.capital-game-page:not(.country-game-page) .capital-game-difficulty-option .difficulty-points { margin-top: auto; }
.capital-game-score-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin: 20px 0 25px; padding: 8px 13px; border: 1px solid rgb(74 110 185 / 15%); border-radius: 12px; color: #455572; background: rgb(241 246 255 / 86%); font-size: 13px; font-weight: 750; }
#capital-game-progress { grid-column: 1; justify-self: start; }
#capital-game-score { grid-column: 2; justify-self: center; color: #1d3b8b; font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; }
.capital-game-description:empty { display: none; }
.capital-game-prompt { margin: 0 0 18px; color: #17316a; font-size: clamp(28px, 4.2vw, 32px); font-weight: 900; line-height: 1.15; }
.capital-game-prompt.is-result { margin: 18px 0 22px; color: #17316a; font-size: clamp(26px, 4.5vw, 34px); font-weight: 900; line-height: 1.2; text-shadow: 0 2px 14px rgb(52 88 212 / 12%); }
.capital-game-country { display: flex; min-height: 78px; align-items: center; justify-content: center; gap: 16px; margin: 0 0 22px; }
.capital-game-country[hidden] { display: none; }
.capital-game-flag { display: block; width: min(432px, 100%); height: auto; aspect-ratio: 3 / 2; object-fit: contain; filter: drop-shadow(0 3px 6px rgb(14 35 76 / 24%)); }
.capital-game-flag[hidden], .capital-game-flag-emoji[hidden] { display: none; }
.capital-game-flag-emoji { font-size: clamp(140px, 63vw, 312px); line-height: 1; }
.capital-game-country strong { color: #1a3474; font-size: clamp(20px, 4vw, 27px); font-weight: 850; }
.capital-game-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.capital-game-option { min-height: 58px; padding: 11px 14px; border: 1px solid #d6def4; border-radius: 14px; color: #25385f; background: rgb(255 255 255 / 94%); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease; }
.capital-game-option:hover:not(:disabled) { transform: translateY(-2px); border-color: #859be6; background: #f4f7ff; box-shadow: 0 5px 14px rgb(45 74 146 / 12%); }
.capital-game-option:focus-visible, .capital-game-next:focus-visible { outline: 3px solid #9aacf3; outline-offset: 2px; }
.capital-game-option:disabled { cursor: default; opacity: 1; }
.capital-game-option.is-correct { border-color: #41a975; color: #17623d; background: #e9f8ef; }
.capital-game-option.is-wrong { border-color: #d87575; color: #8b2c32; background: #fff0f0; }
.capital-game-answer-form { display: flex; max-width: 540px; gap: 10px; margin: 0 auto; }
.capital-game-answer-wrap { position: relative; min-width: 0; min-height: 52px; flex: 1; overflow: hidden; border: 1px solid #cbd6f0; border-radius: 13px; background: rgb(255 255 255 / 96%); }
.capital-game-answer-wrap:focus-within { border-color: #718be8; outline: 3px solid rgb(113 139 232 / 20%); }
.capital-game-answer-wrap input { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 50px; padding: 0 16px; border: 0; border-radius: inherit; color: #25385f; background: transparent; font: inherit; font-size: 17px; }
.capital-game-answer-wrap input:focus { outline: none; }
.capital-game-answer-ghost { position: absolute; z-index: 0; inset: 0; display: flex; align-items: center; overflow: hidden; padding: 0 16px; color: #7887a6; font-size: 17px; pointer-events: none; white-space: pre; }
.capital-game-answer-ghost[hidden] { display: none; }
.capital-game-answer-ghost span:first-child { color: transparent; }
.capital-game-answer-ghost.is-replacement span:first-child { color: #7887a6; }
.capital-game-answer-wrap.is-replacement input { color: transparent; caret-color: #25385f; }
.capital-game-answer-wrap input:disabled { color: #53617b; background: #f2f5fb; }
.capital-game-answer-form input:disabled { color: #53617b; background: #f2f5fb; }
.capital-game-answer-form .capital-game-next { flex: 0 0 auto; margin: 0; }
.capital-game-skip { display: block; margin: 18px auto 0; padding: 8px 14px; border: 1px solid #cbd6ee; border-radius: 10px; color: #53617b; background: #fff; font-family: inherit; font-size: 13px; font-weight: 650; line-height: 1.3; cursor: pointer; transition: background .2s, color .2s; }
.capital-game-skip:hover { color: #1c3770; background: #edf3ff; }
.capital-game-skip:focus-visible { outline: 2px solid #3458d4; outline-offset: 3px; }
.capital-game-feedback { min-height: 25px; margin: 17px 0 0; color: #40516d; font-size: 15px; font-weight: 750; }
.capital-game-feedback.is-correct { color: #167344; }
.capital-game-feedback.is-wrong { color: #a33b43; }
.capital-game-review { margin: 22px 0 0; padding: 18px; border: 1px solid #d9e1f2; border-radius: 14px; background: rgb(248 250 255 / 86%); text-align: left; }
.capital-game-review[hidden] { display: none; }
.capital-game-review h2 { margin: 0 0 12px; color: #263c70; font-size: 18px; }
.capital-game-review ol { display: grid; gap: 8px; margin: 0; padding-left: 24px; }
.capital-game-review li { padding: 8px 10px; border-radius: 8px; background: #fff; }
.capital-game-review li.is-correct { border-left: 3px solid #41a975; }
.capital-game-review li.is-wrong { border-left: 3px solid #d87575; }
.capital-game-review li.is-skipped { border-left: 3px solid #99a5bb; }
.capital-game-review li strong, .capital-game-review li span { display: block; }
.capital-game-review li strong { color: #243b70; font-size: 14px; }
.capital-game-review li span { margin-top: 3px; color: #5e687b; font-size: 12px; }
.capital-game-next { min-height: 46px; margin: 12px 0 0; padding: 0 22px; border: 0; border-radius: 12px; color: #fff; background: #3458d4; box-shadow: 0 7px 18px rgb(52 88 212 / 24%); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: transform .16s ease, background .16s ease; }
.capital-game-next:hover { transform: translateY(-1px); background: #2749bd; }
.capital-game-next[hidden] { display: none; }
.capital-game-timer { display: table; margin: 0 auto 12px; padding: 6px 14px; border-radius: 999px; color: #234778; background: #e5edff; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.capital-game-timer.is-urgent { color: #a12c37; background: #ffe7e9; }
.capital-game-timer[hidden] { display: none; }
.directory-links .all-countries-link { container-type: inline-size; }
.directory-links .all-countries-link-label { max-width: 100%; padding: 8px 12px; font-size: clamp(8px, 4.35cqw, 20px); line-height: 1.2; white-space: nowrap; }
.territory-meta { display: block; margin-top: 5px; color: #647086; font-size: 12px; font-weight: 450; line-height: 1.45; }
.territories-page .territory-country-name {
  display: inline;
  border-bottom: 0;
  text-decoration: underline dotted #777b83;
  text-underline-offset: 3px;
}
.territories-page .territory-country-name + .note-marker { margin-inline-start: 2px; font-size: 11px; }
.territory-meta a { display: inline-block; min-width: 20px; color: #335d95; font-size: 15px; text-decoration: none; }
.territory-meta a:hover { color: #152d63; text-decoration: underline; }
.territory-time-unavailable, .no-territory-flag { color: #717b8b; font-size: 11px; font-weight: 450; line-height: 1.4; }
.no-territory-flag { display: block; width: 64px; text-align: center; }
.territories-page .directory { width: min(100% - 48px, 1080px); }
.territories-page .directory-header { align-items: start; }
.territories-page td:nth-child(4) { width: 38%; }
.territories-page td:last-child { width: 31%; }
.territories-page .source-note { color: #52627a; }
.directory-sibling-link { display: inline-block; margin: 12px 0 0; color: #224e92; font-size: 14px; font-weight: 650; text-underline-offset: 3px; }
.all-countries-link:hover { box-shadow: 0 18px 40px rgb(26 66 128 / 38%), 0 5px 16px rgb(15 34 74 / 26%), inset 0 1px 0 rgb(255 255 255 / 68%); text-decoration: none; transform: translateY(-3px) scale(1.01); }
.all-countries-link:active { transform: translateY(0) scale(.985); }
.all-countries-link:focus-visible { outline: 3px solid #718be8; outline-offset: 3px; }
.flag-mosaic { position: absolute; z-index: -2; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.flag-mosaic-row { display: flex; width: max-content; height: 50%; flex: 0 0 50%; }
.flag-mosaic-set { display: flex; height: 100%; align-items: center; gap: 1px; padding-inline-end: 1px; }
.flag-mosaic-top { animation: flags-drift-left 150s linear infinite; will-change: transform; }
.flag-mosaic-bottom { animation: flags-drift-right 168s linear infinite; animation-delay: -8s; will-change: transform; }
.flag-mosaic-tile { display: block; width: auto; height: 100%; aspect-ratio: 3 / 2; flex: 0 0 auto; padding: 2px; overflow: hidden; border: 1px solid rgb(255 255 255 / 82%); border-radius: 3px; background: rgb(92 148 189 / 40%); box-shadow: 0 1px 4px rgb(5 12 28 / 42%); }
.flag-mosaic-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.flag-mosaic-fallback { display: grid; width: 100%; height: 100%; place-items: center; font-size: clamp(22px, 5vw, 42px); line-height: 1; }
@keyframes flags-drift-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes flags-drift-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.all-countries-link::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(100deg, rgb(8 24 50 / 24%), rgb(8 24 50 / 4%) 52%, rgb(8 24 50 / 24%)); }
.all-countries-link:hover .flag-mosaic { filter: saturate(1.14) brightness(1.08); }
.all-countries-link-label { position: relative; z-index: 1; padding: 14px 24px; border: 1px solid rgb(225 241 255 / 30%); border-radius: 14px; color: #fff; background: rgb(8 22 48 / 38%); box-shadow: 0 4px 12px rgb(5 15 35 / 24%), inset 0 1px 0 rgb(255 255 255 / 16%); font-size: clamp(20px, 3.8vw, 30px); font-weight: 900; letter-spacing: .015em; line-height: 1.3; text-shadow: 0 2px 5px rgb(5 15 35 / 95%), 0 3px 14px rgb(5 15 35 / 82%); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.directory { position: relative; z-index: 1; display: flex; width: min(100% - 48px, 900px); min-height: 100vh; flex-direction: column; margin: 0 auto; padding: 38px 0 28px; }
.directory > .back-link { align-self: flex-start; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; margin: 0 0 38px; padding: 0 18px; border: 1px solid rgb(255 255 255 / 96%); border-radius: 999px; color: #18264b; background: linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(218 228 255 / 72%) 55%, rgb(255 255 255 / 86%)); box-shadow: 0 10px 26px rgb(37 62 133 / 22%), 0 3px 8px rgb(31 54 131 / 12%), inset 0 1px 0 #fff, inset 0 -1px 0 rgb(63 92 163 / 13%); backdrop-filter: blur(18px) saturate(190%); -webkit-backdrop-filter: blur(18px) saturate(190%); font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.back-link:hover { transform: translateY(-3px); color: #10204f; background: linear-gradient(135deg, rgb(255 255 255 / 98%), rgb(198 214 255 / 88%) 55%, rgb(255 255 255 / 94%)); box-shadow: 0 14px 32px rgb(37 62 133 / 30%), 0 4px 10px rgb(31 54 131 / 18%), inset 0 1px 0 #fff, inset 0 -1px 0 rgb(63 92 163 / 17%); text-decoration: none; }
.back-link:active { transform: translateY(0) scale(.98); }
.back-link:focus-visible { outline: 3px solid #718be8; outline-offset: 3px; }
.directory-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.directory-header h1 { font-size: clamp(28px, 5vw, 38px); letter-spacing: -.035em; }
.source-note { max-width: 700px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.source-note a { color: #535e83; text-decoration: underline; text-underline-offset: 2px; }
.country-count { margin: 0 0 4px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.table-filter-wrap { position: relative; margin-bottom: 17px; }
.table-filter { display: block; height: 54px; margin-bottom: 0; padding: 0 18px 0 48px; border: 2px solid #91a9d7; border-radius: 13px; color: #1e2b46; background: rgb(255 255 255 / 96%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b6abb' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") 17px center / 21px 21px no-repeat; box-shadow: 0 5px 18px rgb(33 60 112 / 14%); font-size: 16px; font-weight: 600; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.table-filter-ghost { position: absolute; top: 50%; overflow: hidden; color: #a0a8b8; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; white-space: pre; pointer-events: none; transform: translateY(-50%); }
.table-filter-ghost[hidden] { display: none; }
.table-filter::placeholder { color: #58667f; opacity: 1; font-weight: 500; }
.table-filter:hover { border-color: #6484c3; }
.table-filter:focus { border-color: #3458d4; background-color: #fff; box-shadow: 0 5px 22px rgb(33 60 112 / 20%); }
.table-wrap { overflow: visible; border: 1px solid var(--line); border-radius: 13px; background: rgb(255 255 255 / 88%); box-shadow: 0 8px 30px rgb(47 76 126 / 5%); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.list-top-button { position: sticky; z-index: 8; bottom: max(22px, env(safe-area-inset-bottom)); display: block; width: fit-content; min-height: 46px; margin: 22px auto 0; padding: 0 22px; border: 1px solid #a8baf4; border-radius: 999px; color: #203b9a; background: linear-gradient(135deg, #fff, #e9efff 58%, #f8faff); box-shadow: 0 7px 20px rgb(52 88 212 / 18%), inset 0 1px 0 #fff; font: inherit; font-size: 15px; font-weight: 750; cursor: pointer; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease; }
.list-top-button.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.list-top-button:hover { background: linear-gradient(135deg, #fff, #dfe7ff 58%, #f5f8ff); box-shadow: 0 10px 25px rgb(52 88 212 / 26%), inset 0 1px 0 #fff; transform: translateY(-2px); }
.list-top-button:active { transform: translateY(0) scale(.98); }
.list-top-button:focus-visible { outline: 3px solid #718be8; outline-offset: 3px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { color: #777b83; background: #fafafa; font-size: 12px; letter-spacing: .045em; text-transform: uppercase; }
th { height: 44px; font-weight: 650; }
th, td { padding: 10px 18px; }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: #fbfcff; }
td { height: 52px; font-size: 16px; }
.country-name-lines { display: inline-block; line-height: 1.25; vertical-align: middle; }
.capital-cell { font-weight: 700; }
.capital-list-display, .capital-time-wrap { display: inline-flex; flex-direction: column; gap: 3px; }
.capital-list-display { align-items: flex-start; }
.capital-weather-display { display: inline-flex; flex-direction: row; align-items: center; }
.canberra-weather-layout { position: relative; display: inline-flex; flex-direction: row; align-items: center; }
.canberra-weather-layout > .canberra-weather { position: absolute; top: 50%; right: calc(100% + 10px); transform: translateY(-50%); }
.capital-list-city-time { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.capital-time-wrap { align-items: center; vertical-align: middle; }
.capital-local-time-block { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.capital-local-time-block.result-local-time { flex-direction: row; align-items: baseline; justify-content: center; gap: 6px; width: 100%; }
.capital-time-wrap .capital-local-time-block { align-items: center; }
.capital-local-time { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.capital-time-wrap .capital-local-time { font-size: 12px; }
.canberra-weather { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; min-height: 15px; color: #56647d; font-size: 11px; font-weight: 550; line-height: 1.2; }
.canberra-weather.has-currency { width: 100px; flex: 0 0 100px; box-sizing: border-box; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; }
.canberra-weather.has-currency .currency-code-tip { flex: 0 0 30px; box-sizing: border-box; border-bottom: 0; text-align: right; text-decoration: underline dotted #7b8cab; text-underline-offset: 2px; }
.canberra-weather-main { display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.canberra-weather-icon { width: 15px; height: 15px; flex: 0 0 15px; color: #4772d8; }
.canberra-weather-temperature { color: #344f9f; font-variant-numeric: tabular-nums; font-weight: 700; }
.canberra-weather-description { color: #69758b; text-align: center; }
.search-result-weather { flex-direction: row; gap: 7px; color: #263b68; font-size: 14px; font-weight: 650; }
.search-result-weather .canberra-weather-main { gap: 5px; }
.search-result-weather .canberra-weather-icon { width: 18px; height: 18px; flex-basis: 18px; }
.search-result-weather .canberra-weather-description { color: #4d5c78; }
.canberra-weather-loading { color: #7c8493; font-variant-numeric: tabular-nums; }
.canberra-weather-unavailable { color: #8a91a0; font-variant-numeric: tabular-nums; }
.currency-code-tip { position: relative; display: inline-block; color: #344f9f; font-size: 9px; font-weight: 800; letter-spacing: .025em; line-height: 1.2; text-decoration: underline dotted #7b8cab; text-underline-offset: 2px; cursor: help; }
.currency-code-tip:focus-visible { border-radius: 2px; outline: 2px solid #748ce7; outline-offset: 2px; }
.country-location-label > .country-currency-icon { display: inline-flex; flex: 0 0 26px; width: 26px; height: 26px; align-items: center; justify-content: center; margin: 0 0 0 2px; padding: 0; color: #315b89; font-size: 11.5px; line-height: 23px; letter-spacing: 0; vertical-align: middle; }
.country-currency-icon .currency-code-tooltip { font-size: 13px; line-height: 1.4; }
.currency-code-tip .currency-multi-marker { position: absolute; top: -13px; left: calc(100% - 19px); right: auto; margin: 0; text-decoration: none; letter-spacing: 0; }
.currency-code-tooltip { position: absolute; z-index: 35; bottom: calc(100% + 8px); left: 50%; width: max-content; max-width: min(220px, 70vw); padding: 6px 8px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 7px; color: #fff; background: #252a35; box-shadow: 0 6px 18px rgb(15 23 42 / 22%); font-size: 11px; font-weight: 550; letter-spacing: 0; line-height: 1.3; white-space: normal; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 3px); transition: opacity .14s ease, transform .14s ease, visibility .14s; }
.currency-code-tip:hover .currency-code-tooltip, .currency-code-tip:focus-visible .currency-code-tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.weather-attribution { margin: 7px 0 0; color: #8a91a0; font-size: 10px; line-height: 1.4; text-align: right; }
.weather-attribution a { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
.weather-attribution a:hover { color: #3e5dc3; }
.capital-time-difference { color: #7c8493; font-size: 10px; font-weight: 500; line-height: 1.25; white-space: nowrap; }
.capital-time-difference:empty { display: none; }
.capital-local-time.has-time-note { position: relative; cursor: help; text-decoration: underline dotted #8792aa; text-underline-offset: 3px; }
.capital-local-time.has-time-note::after { position: absolute; z-index: 30; bottom: calc(100% + 8px); left: 50%; width: max-content; max-width: min(300px, 80vw); padding: 8px 10px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 8px; color: #fff; background: #252a35; box-shadow: 0 8px 24px rgb(15 23 42 / 24%); content: attr(data-time-note); font-size: 12px; font-weight: 550; line-height: 1.4; text-align: center; white-space: normal; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.capital-local-time.has-time-note:hover::after, .capital-local-time.has-time-note:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.code-cell { width: 76px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .06em; }
.flag-cell { width: 78px; }
.flag-cell img, .flag-cell .directory-flag { display: block; width: 64px; height: 43px; object-fit: contain; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 82%)) drop-shadow(0 2px 4px rgb(0 0 0 / 48%)); }
.flag-cell .flag-viewer-trigger { position: relative; z-index: 0; display: inline-block; cursor: zoom-in; }
.flag-cell .flag-viewer-trigger img, .flag-cell .flag-viewer-trigger .directory-flag { transform-origin: center; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.flag-cell .flag-viewer-trigger:hover, .flag-cell .flag-viewer-trigger:focus-visible { z-index: 2; }
.flag-cell .flag-viewer-trigger:hover img, .flag-cell .flag-viewer-trigger:hover .directory-flag, .flag-cell .flag-viewer-trigger:focus-visible img, .flag-cell .flag-viewer-trigger:focus-visible .directory-flag { transform: scale(1.08); }
.flag-cell .flag-viewer-trigger:focus-visible { border-radius: 3px; outline: 2px solid #748ce7; outline-offset: 3px; }
.directory-flag-dialog { width: min(94vw, 1200px); max-width: none; height: min(86vh, 780px); max-height: 92vh; padding: clamp(14px, 2.5vw, 26px); border: 1px solid rgb(255 255 255 / 78%); border-radius: 20px; color: #202124; background: rgb(249 251 255 / 96%); box-shadow: 0 22px 80px rgb(9 20 44 / 38%); }
.directory-flag-dialog[open] { display: flex; flex-direction: column; }
.directory-flag-dialog::backdrop { background: rgb(8 17 35 / 74%); backdrop-filter: blur(5px); }
.directory-flag-dialog-header { position: relative; display: grid; min-height: 54px; place-items: center; padding: 0 54px 14px; color: #263c70; }
.directory-flag-dialog-title { text-align: center; font-size: clamp(22px, 3vw, 34px); font-weight: 800; line-height: 1.15; }
.directory-flag-dialog-close { position: absolute; top: 0; right: 0; display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; padding: 0; border: 1px solid #dce3f0; border-radius: 50%; color: #34435f; background: #fff; font: 26px/1 Arial, sans-serif; cursor: pointer; }
.directory-flag-dialog-close:hover { background: #edf2fc; }
.directory-flag-dialog-close:focus-visible { outline: 2px solid #748ce7; outline-offset: 2px; }
.directory-flag-dialog-content { display: grid; min-height: 0; flex: 1; place-items: center; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #edf4fc, #fff 60%, #eef4fb); }
.directory-flag-preview { display: block; width: min(88vw, 1060px); height: min(74vh, 660px); object-fit: contain; filter: drop-shadow(0 8px 18px rgb(12 27 51 / 24%)); }
.status-note { position: relative; display: inline-block; border-bottom: 1px dotted #777b83; cursor: help; }
.status-note:focus-visible { border-radius: 2px; outline: 2px solid #9aacf3; outline-offset: 3px; }
.status-note::after { position: absolute; z-index: 20; bottom: calc(100% + 10px); left: 50%; width: max-content; max-width: min(280px, 78vw); padding: 10px 12px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 9px; color: #fff; background: #252a35; box-shadow: 0 8px 24px rgb(15 23 42 / 24%); content: attr(data-note); font-size: 13px; font-weight: 450; line-height: 1.45; text-align: left; white-space: normal; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.status-note:hover::after, .status-note:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.flag-note { border: 0; }
.flag-note::after { left: 0; transform: translate(0, 4px); }
.flag-note:hover::after, .flag-note:focus-visible::after { transform: translate(0, 0); }
.note-marker { position: relative; display: inline-flex; width: 11px; height: 11px; align-items: center; justify-content: center; margin-left: 3px; border: 1px solid #81899a; border-radius: 50%; color: #5b6477; font-size: 7px; font-weight: 750; line-height: 1; vertical-align: super; cursor: help; }
.capital-with-note { display: inline-flex; align-items: baseline; gap: 2px; }
.number-cell { width: 56px; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty-table { margin: 0; padding: 24px; color: var(--muted); text-align: center; font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) {
  .result-visuals { gap: 10px; }
  .result-visuals .result-flag { width: min(210px, calc((100% - 10px) / 2)); height: min(140px, 34vw); }
  .search-result-map { width: min(210px, calc((100% - 10px) / 2)); height: min(210px, calc((100% - 10px) / 2)); flex-basis: min(210px, calc((100% - 10px) / 2)); }
  .directory-links { grid-template-columns: minmax(0, 1fr) 96px 96px; gap: 10px; }
  .country-globe-link { width: 96px; height: 96px; border-radius: 16px; }
  .territories-link { width: 96px; height: 96px; border-radius: 16px; }
  .territories-link-label { padding: 4px 2px; font-size: 12px; }
  .directory-links .all-countries-link { min-height: 96px; padding: 8px; border-radius: 16px; }
  .directory-links .all-countries-link-label { padding: 7px 9px; font-size: clamp(8px, 4.35cqw, 20px); }
  .capital-game-pocket { width: 96px; height: 96px; }
  .game-pockets { gap: 12px; }
  .capital-game-link { width: 96px; height: 96px; flex-basis: 96px; border-radius: 16px; }
  .capital-game-link-label { font-size: 12px; }
  .capital-game-main { width: calc(100% - 24px); padding-top: 76px; }
  .capital-game-panel { border-radius: 18px; }
  .capital-game-score-row { font-size: 12px; }
  .capital-game-options { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .capital-game-option { min-height: 52px; }
  .capital-game-difficulty, .country-game-page .capital-game-difficulty { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; }
  .capital-game-difficulty-option, .country-game-page .capital-game-difficulty-option { min-height: 92px; }
  .capital-game-answer-form { flex-direction: column; }
  .capital-game-answer-form .capital-game-next { align-self: center; }
  .territories-page .directory { width: calc(100% - 24px); }
  .territories-page table { table-layout: fixed; }
  .territories-page th, .territories-page td { padding: 10px 4px; overflow-wrap: anywhere; }
  .territories-page th { font-size: 9px; letter-spacing: 0; }
  .territories-page td { font-size: 13px; }
  .territories-page th:nth-child(1) { width: 25px; }
  .territories-page th:nth-child(2) { width: 29px; }
  .territories-page th:nth-child(3) { width: 48px; }
  .territories-page .flag-cell img { width: 40px; height: 28px; }
  .territories-page .no-territory-flag { width: 40px; font-size: 9px; }
  .territories-page .territory-meta { font-size: 10px; }
  .territories-page .capital-local-time.has-time-note::after, .territories-page td:last-child .status-note::after { left: auto; right: 0; transform: translateY(4px); }
  .territories-page .capital-local-time.has-time-note:hover::after, .territories-page .capital-local-time.has-time-note:focus-visible::after { transform: translateY(0); }
  .home { padding: 78px 18px 24px; }
  .brand-logo-window { margin-bottom: 4px; }
  .brand-logo-image { transform: translateY(10px); }
  .brand-globe-motion { top: calc(49% + 10px); }
  .brand-orbit-motion { transform: translateY(10px); }
  .moscow-clock { top: 58px; right: 14px; min-width: 0; padding: 6px 5px 6px 9px; }
  .moscow-clock { width: min(360px, calc(100vw - 28px)); }
  .directory { padding-top: 106px; }
  .clock-city { font-size: 14px; }
  .clock-time { font-size: 20px; }
  .clock-date { font-size: 10px; }
  .clock-city-select { min-height: 240px; }
  .list-top-button { bottom: max(16px, env(safe-area-inset-bottom)); }
  .search-form { height: 58px; padding-left: 16px; }
  .search-button { width: 44px; height: 44px; flex-basis: 44px; }
  .directory { width: calc(100% - 32px); padding-top: 106px; }
  .back-link { margin-bottom: 30px; }
  .directory-header { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 18px; }
  th, td { padding-right: 11px; padding-left: 11px; }
  .code-cell { width: 58px; }
  .flag-cell { width: 52px; }
}
@media (max-width: 760px) {
  .capital-game-page .moscow-clock { top: 62px; right: 14px; width: min(360px, calc(100vw - 28px)); }
  .capital-game-page .capital-game-main { padding-top: 142px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-author-logo, .home-author-socials, .home-author-social { transition: none; }
  .capital-game-link { transition-duration: .01ms; }
}
/* Standalone country atlas. */
.atlas-main { width: calc(100% - 32px); max-width: 1200px; margin: 0 auto; padding: 78px 0 24px; }
.atlas-main > .capital-game-back { position: absolute; top: 78px; margin: 0; }
.atlas-header { text-align: center; }
.atlas-header h1 { margin: 8px 0; color: #193b77; font-size: clamp(26px, 4vw, 40px); }
.atlas-header p { margin: 6px auto 14px; max-width: 640px; color: #435b77; font-size: 14px; }
.atlas-globe-section { text-align: center; }
.atlas-selection { display: flex; min-height: 32px; justify-content: center; align-items: center; gap: 9px; color: #173767; font-size: 20px; margin-bottom: 5px; }
.atlas-selection img { width: 34px; height: 23px; object-fit: contain; }
#atlas-globe { display: flex; justify-content: center; scroll-margin-top: 20px; }
.atlas-page .search-result-map { width: min(900px, calc(100vw - 36px), calc(100svh - 220px)); height: auto; flex-basis: auto; aspect-ratio: 1; }
.atlas-page .map-location-pin { width: 11px; height: 20px; }
.atlas-reset { margin: 12px 0 22px; padding: 8px 15px; border: 1px solid #afc6e3; border-radius: 20px; background: rgb(248 252 255 / 90%); color: #244475; font: inherit; font-size: 13px; cursor: pointer; }
.atlas-directory { margin: 10px auto; padding: 22px; border: 1px solid rgb(255 255 255 / 90%); border-radius: 22px; background: rgb(246 251 255 / 90%); box-shadow: 0 8px 25px rgb(20 54 90 / 14%); }
.atlas-directory h2 { margin: 0 0 16px; color: #244475; font-size: 22px; }
.atlas-search-wrap { position: relative; margin-bottom: 18px; }
#atlas-search { position: relative; display: block; width: 100%; height: 52px; padding: 12px 16px; border: 1px solid #9db7e4; border-radius: 12px; background: transparent; color: #243c5b; font: 16px/1.5 Inter, sans-serif; }
#atlas-search:focus { outline: 3px solid rgb(77 111 224 / 22%); border-color: #3b62dc; }
.atlas-search-wrap::before { position: absolute; inset: 0; content: ''; border-radius: 12px; background: white; }
.atlas-search-ghost { position: absolute; inset: 0; display: flex; align-items: center; padding: 12px 16px; overflow: hidden; white-space: pre; pointer-events: none; font: 16px/1.5 Inter, sans-serif; }
.atlas-search-ghost > span:first-child { color: transparent; }
.atlas-search-ghost > span:last-child { color: #8e9db5; }
.atlas-search-ghost[hidden] { display: none; }
.atlas-country-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.atlas-country-button { display: flex; align-items: center; width: 100%; min-height: 50px; gap: 10px; padding: 9px 12px; border: 1px solid transparent; border-radius: 10px; background: rgb(255 255 255 / 80%); color: #263d5c; text-align: left; font: 600 14px/1.3 Inter, sans-serif; cursor: pointer; transition: background .2s, border-color .2s; }
.atlas-country-button img { flex: 0 0 36px; width: 36px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 2px #8b9db2); }
.atlas-country-button:hover, .atlas-country-button.is-selected { background: #e4efff; border-color: #a4bce8; }
.atlas-country-button:focus-visible, .atlas-reset:focus-visible { outline: 2px solid #3458d4; outline-offset: 2px; }
.atlas-source { text-align: center; color: #5c718a; font-size: 11px; }
.atlas-group-title { margin: 18px 0 12px; color: #294e79; font-size: 18px; }
#atlas-territory-section { margin-top: 28px; padding-top: 8px; border-top: 1px solid #ccd9e9; }
#atlas-main-section[hidden], #atlas-territory-section[hidden] { display: none; }
.atlas-country-item { position: relative; min-width: 0; }
.atlas-country-button.has-note { padding-right: 29px; }
.atlas-country-item .atlas-country-note { position: absolute; top: 50%; right: 10px; margin: 0; transform: translateY(-50%); }
.atlas-country-note.status-note::after { left: auto; right: 0; transform: translateY(4px); }
.atlas-country-note.status-note:hover::after, .atlas-country-note.status-note:focus-visible::after { transform: translateY(0); }
@media(max-width: 800px) { .atlas-country-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 560px) { .atlas-main { width: calc(100% - 20px); } .atlas-main > .capital-game-back { position: static; margin-bottom: 12px; } .atlas-country-list { grid-template-columns: 1fr; } .atlas-directory { padding: 14px; } .directory-links { grid-template-columns: minmax(0,1fr) 76px 76px; gap: 8px; } .directory-links .territories-link, .directory-links .country-globe-link { width: 76px; height: 76px; } .directory-links .all-countries-link { min-height: 76px; } .directory-links .all-countries-link-label { font-size: clamp(7px, 4.35cqw, 20px); padding: 5px; } .country-globe-label { font-size: 10px; } .directory-links .territories-link-label { font-size: 11px; } }

.country-globe-link .globe-game-button-art { inset: 7px; }

.map-boundary-credit { position: relative; z-index: 1; margin: 8px auto 12px; text-align: center; font: 10px/1.4 Arial,sans-serif; color: #60748c; }
.map-boundary-credit a { color: inherit; }
html[lang="ru"] .credit-en, html[lang="en"] .credit-ru { display: none; }

.antarctica-flag-full > span > span { display: block; white-space: nowrap; }
html[lang] .antarctica-flag-full > span { font-size: clamp(11px,1.5vw,20px); line-height: 1.12; }

.antarctica-flag-link { cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; }
.antarctica-flag.is-dragging { transition:none!important; }
.antarctica-flag.is-dragging .antarctica-flag-link { cursor:grabbing; transform:none; filter:none; transition:none; }
.antarctica-flag,.antarctica-flag-link { pointer-events:none; }
.antarctica-continent path { pointer-events:visiblePainted; }

.geosprint-mosaic .capital-city-mosaic-column { width: 50%; flex-basis: 50%; }
.geosprint-mosaic .capital-city-mosaic-track { animation: city-flags-down 1434s linear infinite; will-change: transform; }
.geosprint-mosaic .capital-city-mosaic-column:nth-child(2) .capital-city-mosaic-track { animation-name: city-flags-up; }
.geosprint-mosaic .capital-city-mosaic-tile { font-size: 24px; }

.geosprint-mosaic .capital-city-mosaic-tile img { object-fit: contain; }
.geosprint-mosaic .capital-city-mosaic-name { white-space:nowrap; overflow-wrap:normal; word-break:normal; line-height:1.05; }
.capital-city-mosaic-name > span { display:block;white-space:nowrap;overflow-wrap:normal;word-break:normal; }

.sprint-clock { position:absolute;inset:4px;z-index:1;pointer-events:none;opacity:.94;filter:drop-shadow(0 1px 2px #001426); }
.sprint-clock svg { display:block;width:100%;height:100%; }
.sprint-clock g { transform-origin:50px 50px;animation:sprint-clock-turn 60s linear infinite; }
.sprint-clock .sprint-clock-hour { animation-duration:43200s; }.sprint-clock .sprint-clock-minute { animation-duration:3600s; }
@keyframes sprint-clock-turn { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }

.atlas-selection { flex-wrap: wrap; }
.atlas-country-details { flex: 0 0 100%; max-width: 620px; font-size: 14px; font-weight: 500; }
.atlas-country-details dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 20px; margin: 12px 0 0; padding: 16px; border: 1px solid #dce5f2; border-radius: 14px; background: #f6f9ff; }
.atlas-country-details dl > div { min-width: 0; }
.atlas-country-details dt { margin-bottom: 5px; color: #69758b; font-size: 12px; }
.atlas-country-details dd { margin: 0; overflow-wrap: anywhere; }
.atlas-country-details .capital-local-time { font-size: 14px; color: #173767; }
.atlas-country-details .search-result-weather { flex-wrap: wrap; justify-content: center; }
@media (max-width: 420px) { .atlas-country-details dl { gap: 14px 10px; padding: 12px; } }

/* Desktop atlas: readable country facts beside the globe. */
@media (min-width: 1100px) {
  .atlas-main { max-width: 1540px; }
  .atlas-globe-section { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 56px); align-items: center; }
  .atlas-selection { grid-column: 1; grid-row: 1; align-self: center; justify-content: flex-start; text-align: left; font-size: clamp(24px, 2vw, 30px); line-height: 1.3; padding: 24px; border: 1px solid #dce5f2; border-radius: 20px; background: rgb(248 251 255 / 95%); box-shadow: 0 8px 28px rgb(20 54 90 / 12%); position: sticky; top: 90px; }
  .atlas-selection:empty { visibility: hidden; }
  .atlas-selection > strong { flex: 1 1 220px; }
  .atlas-selection > img { width: 46px; height: 32px; }
  .atlas-country-details { font-size: 23px; line-height: 1.4; }
  .atlas-country-details dl { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 0; margin-top: 22px; border: 0; background: transparent; text-align: left; }
  .atlas-country-details dt { font-size: 16px; margin-bottom: 4px; }
  .atlas-country-details dd { font-weight: 650; }
  .atlas-country-details .capital-local-time { font-size: 26px; font-weight: 650; }
  .atlas-country-details .search-result-weather { justify-content: flex-start; font-size: 23px; gap: 8px; }
  .atlas-country-details .canberra-weather-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .atlas-country-details .weather-attribution { margin-top: 18px; text-align: left; }
  #atlas-globe { grid-column: 2; grid-row: 1; min-width: 0; }
  .atlas-page .search-result-map { width: min(900px, 100%, calc(100svh - 160px)); }
  .atlas-reset { grid-column: 2; justify-self: center; }
}

/* Keep the globe on the screen centerline; facts use only its left margin. */
@media (min-width: 1100px) {
  .atlas-globe-section { --atlas-globe-size: min(900px, calc(100vw - 36px), calc(100svh - 220px)); --atlas-side-space: calc((100vw - var(--atlas-globe-size)) / 2); display: block; position: relative; }
  .atlas-page .search-result-map { width: var(--atlas-globe-size); }
  .atlas-selection { position: absolute; top: calc(var(--atlas-globe-size) / 2); left: calc(50% - 50vw + var(--atlas-side-space) / 2); transform: translate(-50%, -50%); width: min(360px, calc(var(--atlas-side-space) - 28px)); box-sizing: border-box; padding: clamp(12px, 1.5vw, 24px); font-size: clamp(20px, 1.65vw, 30px); }
  .atlas-selection > strong { flex-basis: 140px; }
  .atlas-selection > img { width: 38px; height: 26px; }
  .atlas-country-details { font-size: clamp(17px, 1.3vw, 23px); }
  .atlas-country-details dl { gap: 18px; }
  .atlas-country-details dt { font-size: clamp(13px, 1vw, 16px); }
  .atlas-country-details .capital-local-time { font-size: clamp(21px, 1.5vw, 26px); }
  .atlas-country-details .search-result-weather { font-size: clamp(17px, 1.3vw, 23px); }
}

@media (min-width: 1100px) { .atlas-selection { font-size: clamp(24px, 2vw, 36px); } .atlas-selection > img { width: 64px; height: 44px; flex: 0 0 64px; } .atlas-selection > strong { flex: 1 1 160px; line-height: 1.22; } }

.atlas-flag-button { display: inline-flex; flex: 0 0 auto; padding: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: 4px; }
.atlas-flag-button:focus-visible, .atlas-flag-close:focus-visible { outline: 3px solid #4772d8; outline-offset: 5px; }
.atlas-flag-button img { display: block; }
.atlas-flag-close { flex: 0 0 100%; border: 0; border-radius: 8px; padding: 8px 0; color: #173767; background: transparent; font: 600 15px/1.4 inherit; text-align: left; cursor: pointer; }
.atlas-selection .atlas-expanded-flag { width: 100%; height: auto; max-height: 55svh; object-fit: contain; margin: 16px auto; }
@media (min-width: 1100px) { .atlas-flag-button img { width: 64px; height: 44px; } .atlas-selection .atlas-expanded-flag { flex: 0 0 100%; width: 100%; height: auto; } }

/* Desktop game controls share the search card\x27s 15% enlargement. */
@media (min-width:1025px) { .home > .game-pockets { zoom:1.15; } }

/* Lift desktop search and game controls closer to the logo. */
@media(min-width:1025px){.home .search-card > :not(.brand-logo-window){position:relative;top:-28px;}.home > .game-pockets{position:relative;top:-28px;}}

/* Keep the continent at the end of the page; search results retain their readable scale. */
@media(min-width:1025px){body:has(.antarctica-flag){height:auto;min-height:100dvh;overflow-x:clip;overflow-y:auto;}body:has(.antarctica-flag) .home{height:auto;min-height:100dvh;overflow-x:clip;}body:has(.antarctica-flag) .home>.game-pockets{zoom:1;top:0;margin-top:-10px;}body:has(.antarctica-flag) .home>.antarctica-mobile-slot{display:block;position:relative;flex:0 0 auto;align-self:center;max-width:100%;margin-top:auto;padding-top:20px;box-sizing:content-box;overflow:hidden;}body:has(.antarctica-flag) .antarctica-flag{position:relative;bottom:auto;}}

/* Directory location viewer keeps the underlying list mounted. */
.country-location-label{display:inline-flex;align-items:center;gap:6px;max-width:100%}.country-location-label>span{min-width:0}.country-location-button{display:inline-flex;flex:0 0 auto;vertical-align:middle;align-items:center;justify-content:center;width:20px;height:24px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#315b89;cursor:pointer}.country-location-button svg{display:block}
.country-location-button:hover{background:transparent;color:#163e70}.country-location-button:focus-visible{outline:3px solid #4772d8;outline-offset:2px}
.country-locator-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#f5f9fc;overflow:hidden}
.country-locator-dialog::backdrop{background:#f5f9fc}.country-locator-frame{display:block;width:100%;height:100%;border:0}
.country-locator-close{position:absolute;z-index:5;top:16px;left:16px;max-width:calc(100% - 32px);padding:12px 18px;border:1px solid #cdd8e3;border-radius:12px;background:white;color:#173767;font:600 16px/1.3 sans-serif;box-shadow:0 3px 16px #1232;cursor:pointer}
.locator-mode body{margin:0;overflow:hidden;background:#f5f9fc}
.locator-mode body > :not(.atlas-main){display:none!important}
.locator-mode .atlas-main{width:100%;max-width:none;height:100dvh;margin:0;padding:0;display:grid;place-items:center}
.locator-mode .atlas-main > :not(.atlas-globe-section){display:none!important}
.locator-mode .atlas-globe-section{display:block;width:100%;position:static}
.locator-mode .atlas-selection,.locator-mode .atlas-reset{display:none!important}
.locator-mode #atlas-globe{display:flex;justify-content:center}
.locator-mode.atlas-page .search-result-map,.locator-mode .atlas-page .search-result-map{width:min(100vw,calc(100dvh - 80px));max-width:none;margin:60px 0 0}

/* Reserve space for weather inside the capital column, away from country names. */
@media (min-width:1025px) {
  .directory-page .directory { width:min(100% - 48px,1080px); }
  .directory th:last-child,.directory .capital-cell { padding-left:116px; }
  .directory .country-location-label { white-space:normal; }
}

/* Move the entire capital/weather group into the free right-hand space. */
@media (min-width:1025px) {
  .directory th:last-child { text-indent:80px; }
  .directory .capital-cell > .capital-list-display { position:relative; left:80px; max-width:calc(100% - 80px); }
  .directory .capital-cell .canberra-weather-layout,.directory .capital-cell .capital-list-city-time { min-width:0; }
  .directory .capital-cell .capital-list-city-time { overflow-wrap:anywhere; }
}

/* Match the neighboring territories button: darken only the flag backdrop. */
.country-globe-link .globe-game-flag-background::after { position: absolute; inset: 0; content: ""; background: rgb(8 22 48 / 15%); pointer-events: none; }

/* Compact search markers put the red centre on tiny countries, rather than a long stem above them. */
.search-result-map .map-location-pin.is-compact{width:10px;height:10px;transform:translate(-50%,-50%)}
.map-location-pin.is-compact .map-pin-stem{display:none}
