/* Site frame around the canvas screens. Loaded last, so it wins over the screen styles. */

/* Geist for the letters the design system's Latin file lacks (Polish ł, Czech ř, Romanian ș, Turkish ğ, Latvian ā
   and the rest) and for Bulgarian. Same family name as the design system's face, so the browser takes each letter
   from the file whose range holds it and downloads a file only when a page shows such a letter. The files are
   from @fontsource-variable/geist 5.3.0 (SIL Open Font License 1.1, fonts/OFL.txt) and share the design system
   file's metrics. Greek has no Geist and uses the system font. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Geist-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

html { background: var(--color-gray-100); }
body { margin: 0; min-height: 100dvh; }

/* A screen fills a phone and sits in a 480px column on wider windows. The artboards were drawn
   at 402 x 874; the height becomes "at least the window" so short and long screens both work. */
#app > .sc-host > .qz {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  height: auto !important;
  margin: 0 auto;
}

/* A sheet over another screen (dc-import): the window shows the top of that screen under the
   scrim and the sheet sits in the middle of the window, as the 874px artboard did. */
#app > .sc-host > .qz:has(> .sc-host) {
  height: 100dvh !important;
  min-height: 0;
  overflow: hidden;
}
.qz .sc-host > .qz {
  width: 100%;
  min-height: 100dvh;
  height: auto !important;
}

/* Puzzle figures are drawn for a 370px frame; on narrower phones the whole figure scales down
   (runtime.js sets --pm-fit), so the missing-piece box stays where it was drawn. */
.pm-frame {
  zoom: var(--pm-fit, 1);
}

/* Payment form (AppGroo <abt-checkout>) where the drawn card fields were. */
.co-pay {
  display: block;
  min-height: 160px;
}
/* The consent line the form would draw in English (legal="external"), translated, right under the form. */
.co-consent { margin-top: var(--spacing-3); }

/* Cookie banner (src/cb/consent-banner.js): its buttons and toast keep to one line, which an English label fits.
   A translated label that does not fit wraps to a second line inside the same button instead of spilling over
   its border. English looks as before. */
.twcb .twcb-btn { white-space: normal; text-align: center; line-height: 16px; }
/* The two bar buttons share a phone-width row with the gear: 12px instead of 16px at the sides gives a translated
   label 8px more before it wraps ("Alle akzeptieren", "Tümünü kabul et" stay on one line). Centred labels look
   the same. */
.twcb .twcb-bar .twcb-btn { padding: 0 12px; }
.twcb .twcb-sacts .twcb-btn { line-height: 20px; }
.twcb-toast.twcb-toast { white-space: normal; text-align: center; }
