/*
 * King Kong Grill on the pages the platform draws on this address (/my/…: My bookings, a booking, its door card).
 * Linked after the platform's own styles while Settings → Guest pages and kiosk → "Use the website's own stylesheet"
 * is on; those pages load styles, fonts and images from this address only, so the fonts are the build's own copies
 * (scripts/after.mjs puts them in /fonts/). Tokens are RGB triplets, as the platform's rules compose them.
 */
@font-face { font-family: 'Dela Gothic One'; font-weight: 400; font-display: swap; src: url('/fonts/dela-gothic-one-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Dela Gothic One'; font-weight: 400; font-display: swap; src: url('/fonts/dela-gothic-one-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('/fonts/onest-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('/fonts/onest-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url('/fonts/onest-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url('/fonts/onest-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 700; font-display: swap; src: url('/fonts/onest-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 700; font-display: swap; src: url('/fonts/onest-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root, :root[data-scheme='light'] {
  --bg: 246 238 226; --text: 21 18 15; --accent: 200 23 27; --line: 215 207 197; --surface: 255 251 244; --on-accent: 255 244 228;
  --kk-mute: #5b544a; --kk-card2: #eee5d5; --kk-smoke: rgba(46, 91, 57, 0.2);
}
:root[data-scheme='dark'] {
  color-scheme: dark;
  --bg: 12 12 11; --text: 244 227 200; --accent: 218 33 32; --line: 44 42 37; --surface: 23 22 20; --on-accent: 255 244 228;
  --kk-mute: #b7ac9a; --kk-card2: #211f1c; --kk-smoke: rgba(46, 91, 57, 0.42);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme]) {
    color-scheme: dark;
    --bg: 12 12 11; --text: 244 227 200; --accent: 218 33 32; --line: 44 42 37; --surface: 23 22 20; --on-accent: 255 244 228;
    --kk-mute: #b7ac9a; --kk-card2: #211f1c; --kk-smoke: rgba(46, 91, 57, 0.42);
  }
}

body {
  min-block-size: 100vh;
  background: radial-gradient(70% 40% at 0% 0%, var(--kk-smoke), transparent 70%), rgb(var(--bg));
  font-family: 'Onest', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { padding-block-start: 20px; }
header { padding-block-end: 16px; margin-block-end: 28px; border-block-end: 1px solid rgb(var(--line)); }

/* The brand as on the site: the gorilla, then the name in the display face — unless the settings name a logo. */
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Dela Gothic One', system-ui, sans-serif; font-weight: 400; font-size: 17px; line-height: 1.05; text-transform: uppercase; }
.brand::before { content: ''; flex: none; inline-size: 42px; block-size: 42px; background: url('/logo.webp') center / contain no-repeat; }
.brand:has(.brand-logo)::before { display: none; }

h1, h2 { font-family: 'Dela Gothic One', system-ui, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; }
h1 { font-size: clamp(28px, 7vw, 40px); margin-block-end: 12px; }
h2 { font-size: 20px; }
.faint { color: var(--kk-mute); }
a:hover { color: rgb(var(--accent)); }

label, legend { font-size: 14px; font-weight: 600; }
input, select { min-block-size: 52px; padding: 0 16px; border-radius: 14px; background: rgb(var(--surface)); font-size: 16px; }
input:focus-visible, select:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 1px; }
:root { --own-field-radius: 14px; --own-field-padding: 0 16px; --own-pop-radius: 16px; --own-pop-active: var(--kk-card2); }
fieldset { border-radius: 20px; }

button, a.button { min-block-size: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button.link { min-block-size: 0; padding: 0; border-radius: 0; display: inline; }
.scheme button { min-block-size: 38px; padding: 0 14px; }

.card { border-radius: 20px; padding: 18px 20px; }
.card strong { font-size: 17px; }
.badge { border-radius: 999px; padding: 3px 12px; font-weight: 600; }
.notice { border-radius: 16px; padding: 14px 16px; }
.msg { border-inline-start-width: 3px; }

/* The door card: the QR stays dark on light whatever the scheme, so every scanner reads it. */
.page-door .card { background: #fffbf4; color: #15120f; }
