/* The frame every page of Cloud Town's website shares - the start page, the press kit, the help, the status page, the
   legal pages and the web shop (server/shop loads it from here): the strip above it with the imprint and the privacy
   text, the navy bar that stays at the top with the game's painted emblem, its menu on a phone, and the navy footer
   with the emblem, the pages and the legal links. The look is the owner's choice for the launch, B of
   art/orders/look-website-launch (21 October 2026) - "Nachtblau und Gold" (art/orders/look-website-3 c) kept.
   Its words are the pages' (site.*: every page's script fills them); frame.js opens and closes the menu. Phone first:
   the rules below are a phone's, a desktop's (1000 px and wider) are at the foot. Its classes begin with "topnav" and
   "foot", so they meet nothing of a page's own. */

@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/site/fonts/Nunito-Bold.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/site/fonts/Nunito-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("/site/fonts/Nunito-Black.ttf") format("truetype"); }

:root { --bar: 60px; }

/* ---- the legal strip: the imprint and the privacy text one tap from the first screen of every page (the marketing
   research of 2 November 2026: a commercial profile's link must reach the imprint in one clear step - OLG Hamburg,
   15 U 99/24 -, and on a phone the bar has room for its logo, its button and the menu alone). It stands above the bar
   and goes with the page when it scrolls; the bar stays, and the footer holds the same two links. ---- */

.topnav-legal {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 max(6px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  background: #061430; font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif;
}
.topnav-legal-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 10px;
  color: #c9d3e0; font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.topnav-legal-link:hover, .topnav-legal-link[aria-current] { color: #f7d67b; }
.topnav-legal-link:focus-visible { outline: 2px solid #f7d67b; outline-offset: -4px; }
.topnav-legal-dot { flex: none; width: 4px; height: 4px; border-radius: 50%; background: #f4cb5c; opacity: 0.7; }

/* ---- the bar ---- */

.topnav {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 8px;
  height: var(--bar); padding: 0 6px 0 max(14px, env(safe-area-inset-left));
  background: #10305e; box-shadow: 0 1px 0 rgba(242, 196, 90, 0.22);
  font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif; transition: box-shadow 0.2s ease;
}
.topnav.scrolled { box-shadow: 0 1px 0 rgba(242, 196, 90, 0.22), 0 8px 20px rgba(2, 8, 20, 0.45); }
.topnav-logo { display: flex; align-items: center; height: 52px; margin-right: auto; border-radius: 10px; }
.topnav-logo img { display: block; width: auto; height: 50px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }     /* (the emblem, 1898 x 1038) */
.topnav-join {
  --h: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none; height: var(--h); min-width: 48px; padding: 0 16px;
  border: 0 solid transparent; background: none; border-image: url("/site/pictures/kit/welcome-button.webp") 0 171 fill / 0 calc(var(--h) / 2 + 3px) / 3px stretch;
  color: #fff; font-size: 17px; font-weight: 900; text-decoration: none; white-space: nowrap;
  text-shadow: 0 2px 0 #1f6e16, 1px 0 0 #22781a, -1px 0 0 #22781a, 0 -1px 0 #22781a;
  transition: transform 0.25s cubic-bezier(0.34, 1.6, 0.64, 1), filter 0.12s ease;
}
.topnav-join:hover { filter: brightness(1.07); }
.topnav-join:active { transform: translateY(2px) scale(0.96); filter: brightness(0.94); transition-duration: 0.06s; }
.topnav-menu { position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.topnav-menu:hover { background: rgba(255, 255, 255, 0.06); }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 24px; height: 3px; border-radius: 2px; background: #f4cb5c; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -8px; }
.menu-bars::after { top: 8px; }
.topnav.open .menu-bars { background: transparent; }
.topnav.open .menu-bars::before { transform: translateY(8px) rotate(45deg); }
.topnav.open .menu-bars::after { transform: translateY(-8px) rotate(-45deg); }

/* the links: on a phone a panel under the bar that the menu button opens */
.topnav-links {
  position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; padding: 6px 14px 16px;
  max-height: calc(100vh - var(--bar)); overflow-y: auto; overscroll-behavior: contain;      /* (a short window scrolls the menu, the six open) */
  background: #10305e; box-shadow: 0 16px 28px rgba(2, 8, 20, 0.5); border-top: 1px solid rgba(242, 196, 90, 0.2);
}
.topnav.open .topnav-links { display: flex; animation: menu-in 0.18s ease-out; }
.topnav-link {
  display: flex; align-items: center; min-height: 54px; padding: 0 8px; border-radius: 12px;
  color: #f3f5f9; font-size: 19px; font-weight: 800; text-decoration: none;
}
.topnav-link + .topnav-link { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.topnav-link:hover, .topnav-link[aria-current] { color: #f7d67b; }
/* the way into the web shop's login (shown by the page's script while the shop takes logins) */
.topnav-login { gap: 12px; }
.topnav-login[hidden], .topnav-link[hidden] { display: none; }      /* (the beta's link or the App Store's, as the phase has it: the web shop's
                                                                    page has no site.css, whose [hidden] would hide them) */
.topnav-login-icon { width: 30px; height: 30px; }
/* the language: ONE control - the spoken language's two letters in gold, which open the six, each in its own name (a
   page's script marks the spoken one: aria-pressed; frame.js opens, closes and keeps the letters). On a phone it is the
   menu's last row, "Sprache ... DE", and the six open under it in two columns, as the game's tiles; a desktop's bar
   holds the letters alone and drops the list under itself. */
.topnav-languages { position: relative; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.language-now {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 54px; padding: 0 12px 0 8px; border: 0; border-radius: 12px;
  background: none; cursor: pointer; color: #f3f5f9; font: inherit; font-size: 19px; font-weight: 800; text-align: left;
}
.language-now:hover { background: rgba(255, 255, 255, 0.06); }
.language-word { margin-right: auto; }
.language-code { color: #f7d67b; font-size: 18px; font-weight: 900; letter-spacing: 0.5px; }
.language-mark {
  width: 8px; height: 8px; margin: 0 2px 4px 2px; border: solid #f4cb5c; border-width: 0 2.5px 2.5px 0; border-radius: 1px;
  transform: rotate(45deg); transition: transform 0.2s ease, margin 0.2s ease;
}
.topnav-languages.open .language-mark { margin: 4px 2px 0 2px; transform: rotate(-135deg); }
.language-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 2px 0 4px; padding: 0; list-style: none; }
.language-list[hidden] { display: none; }
.language-list li { display: flex; }
.topnav .language {
  position: relative; display: flex; align-items: center; flex: 1; min-width: 0; min-height: 48px; padding: 0 34px 0 14px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); cursor: pointer;
  color: #f3f5f9; font: inherit; font-size: 18px; font-weight: 800; text-align: left; white-space: nowrap;
}
.topnav .language:hover { background: rgba(255, 255, 255, 0.1); color: #f7d67b; }
/* the spoken one: golden, with a golden tick */
.topnav .language[aria-pressed="true"] { color: #f7d67b; background: rgba(242, 196, 90, 0.12); box-shadow: inset 0 0 0 1.5px rgba(242, 196, 90, 0.55); }
.topnav .language[aria-pressed="true"]::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 6px; height: 12px; margin-top: -8px;
  border: solid #f4cb5c; border-width: 0 2.5px 2.5px 0; border-radius: 1px; transform: rotate(45deg);
}
.language-now:focus-visible, .topnav .language:focus-visible { outline: 2px solid #f7d67b; outline-offset: 2px; }
.topnav-veil { position: fixed; inset: var(--bar) 0 0 0; z-index: 55; background: rgba(2, 8, 20, 0.5); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- the footer: navy with a golden line on top, the emblem (a way home), the pages, the legal links, the copyright ---- */

.foot {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 30px max(16px, env(safe-area-inset-left)) calc(26px + env(safe-area-inset-bottom));
  background: #12315c; box-shadow: inset 0 3px 0 #e6b34a; color: #c9d3e0; font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif; font-weight: 800; text-align: center;
}
.foot-home { display: block; border-radius: 12px; }
.foot-logo { display: block; width: 150px; height: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); }
.foot-words { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.foot-nav, .foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.foot-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px; border-radius: 10px; color: #e9eef5; font-size: 16px; font-weight: 800; text-decoration: none; }
.foot-nav .foot-link { color: #f7d67b; font-size: 17px; font-weight: 900; }
.foot-link:hover { color: #ffe08e; }
.foot-bar { color: #7d92b4; font-size: 16px; }                      /* (quieter than the links, 4.1 to 1 on the navy: a thin mark's edges blend) */
.foot-copy { margin: 6px 0 0; color: #a9b8cc; font-size: 14px; font-weight: 700; }

@media (min-width: 1000px) {
  :root { --bar: 72px; }
  .topnav-legal { padding: 0 max(16px, calc(50% - 612px)); }          /* (its words end where the bar's do) */
  .topnav-legal-link { min-height: 36px; font-size: 14px; }
  .topnav { gap: 6px; padding: 0 max(28px, calc(50% - 600px)); }
  .topnav-logo { margin-right: 0; }
  .topnav-logo { height: 64px; }
  .topnav-logo img { height: 62px; }
  .topnav-menu, .topnav-join { display: none; }
  .topnav-links { position: static; display: flex; flex-direction: row; align-items: center; gap: 2px; margin-left: auto; padding: 0; max-height: none; overflow: visible; background: none; box-shadow: none; border: 0; }
  .topnav.open .topnav-links { animation: none; }
  .topnav-link { min-height: 44px; padding: 0 14px; font-size: 18px; border-radius: 22px; }
  .topnav-link + .topnav-link { border-top: 0; }
  .topnav-link:hover { background: rgba(255, 255, 255, 0.06); }
  /* the beta - the page's first thing - as the kit's green button */
  .topnav-link-beta {
    --h: 44px; height: var(--h); margin: 0 4px; padding: 0 22px; border-radius: 0; color: #fff;
    border: 0 solid transparent; border-image: url("/site/pictures/kit/welcome-button.webp") 0 171 fill / 0 calc(var(--h) / 2 + 3px) / 3px stretch;
    text-shadow: 0 2px 0 #1f6e16, 1px 0 0 #22781a, -1px 0 0 #22781a, 0 -1px 0 #22781a; transition: transform 0.25s cubic-bezier(0.34, 1.6, 0.64, 1), filter 0.12s ease;
  }
  .topnav-link-beta:hover, .topnav-link-beta[aria-current] { color: #fff; background: none; filter: brightness(1.07); }
  .topnav-link-beta:active { transform: translateY(2px) scale(0.96); filter: brightness(0.94); transition-duration: 0.06s; }
  .topnav-login { gap: 8px; margin-left: 4px; padding: 0 16px 0 8px; box-shadow: inset 0 0 0 1.5px rgba(242, 196, 90, 0.5); }
  .topnav-login-icon { width: 28px; height: 28px; }
  .topnav-languages { margin: 0 0 0 10px; padding: 0 0 0 10px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .language-now { width: auto; min-height: 44px; min-width: 64px; gap: 7px; padding: 0 14px 0 16px; border-radius: 22px; }
  .language-word { display: none; }
  /* the list drops from the bar's lower edge, under the letters, as a small navy card with a golden rim */
  .language-list {
    position: absolute; top: calc(100% + 14px); right: 0; z-index: 2; grid-template-columns: minmax(0, 1fr); gap: 4px; width: 230px; margin: 0; padding: 8px;
    background: #10305e; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(242, 196, 90, 0.3), 0 18px 32px rgba(2, 8, 20, 0.55);
    animation: menu-in 0.16s ease-out;
  }
  .topnav .language { background: none; box-shadow: none; }
  .topnav .language:hover { background: rgba(255, 255, 255, 0.07); }
  .topnav-veil { display: none; }

  .foot { flex-direction: row; justify-content: space-between; gap: 32px; padding: 40px max(32px, calc(50% - 580px)) 32px; text-align: right; }
  .foot-logo { width: 200px; }
  .foot-words { align-items: flex-end; }
  .foot-nav, .foot-legal { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .topnav, .topnav-join, .topnav-link-beta, .menu-bars, .menu-bars::before, .menu-bars::after, .language-mark { transition: none; }
  .topnav.open .topnav-links, .language-list { animation: none; }
}
