/*! RIOT GARAGE · shared UI core · Pinky Creative Studio · +31 6 38 90 94 16 · https://stopmetzoeken.store */
:root {
  --accent: #e10600;
  --accent-2: #ff2a1a;
  --accent-ink: #fff;
  --steel: #8b8d90;
  --bg: #0a0a0a;
  --bg-2: #101010;
  --surface: #151515;
  --surface-2: #1c1c1c;
  --line: #2a2a2a;
  --text: #f4f4f4;
  --muted: #a6a6a6;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  --radius: 14px;
  --font-display: 'Anton', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f2ef;
  --bg-2: #eae8e4;
  --surface: #ffffff;
  --surface-2: #f6f5f2;
  --line: #dddad4;
  --text: #121212;
  --muted: #5b5b5b;
  --shadow: 0 30px 70px rgba(20, 20, 20, .16);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .45s var(--ease), color .45s var(--ease); }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
em, i { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* logo swaps with theme */
.rg-logo-ink { display: none; }
:root[data-theme="light"] .rg-logo-light-swap .rg-logo-white { display: none; }
:root[data-theme="light"] .rg-logo-light-swap .rg-logo-ink { display: block; }

/* buttons */
.rg-btn { --b: var(--accent); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 1.4em; border: 0; border-radius: 10px; background: var(--b); color: var(--accent-ink); font-weight: 800; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.rg-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); z-index: -1; }
.rg-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.rg-btn:hover::after { transform: translateX(120%); }
.rg-btn:active { transform: translateY(0) scale(.98); }
.rg-btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.rg-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.rg-btn--sm { min-height: 38px; padding: 0 1em; font-size: .8rem; border-radius: 8px; }
.rg-btn[disabled] { opacity: .5; pointer-events: none; }

/* top controls: language + theme */
.rg-controls { display: inline-flex; align-items: center; gap: 8px; }
.rg-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); }
.rg-lang button { min-width: 34px; height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; cursor: pointer; transition: background .2s, color .2s; }
.rg-lang button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.rg-theme { position: relative; width: 58px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent); cursor: pointer; padding: 0; }
.rg-theme span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform .45s var(--ease); }
.rg-theme svg { width: 14px; height: 14px; color: #fff; }
:root[data-theme="light"] .rg-theme span { transform: translateX(26px); }
.rg-theme .i-sun { display: none; }
:root[data-theme="light"] .rg-theme .i-sun { display: block; }
:root[data-theme="light"] .rg-theme .i-moon { display: none; }

/* modal */
.rg-modal { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; }
.rg-modal__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s var(--ease); }
.rg-modal__box { position: relative; width: min(560px, 100%); max-height: min(92vh, 860px); overflow: auto; overscroll-behavior: contain; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .35s var(--ease); }
.rg-modal--wide .rg-modal__box { width: min(860px, 100%); }
.rg-modal.is-open .rg-modal__bg { opacity: 1; }
.rg-modal.is-open .rg-modal__box { transform: none; opacity: 1; }
.rg-modal__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.rg-modal__head::before { content: ''; width: 6px; height: 22px; border-radius: 2px; background: var(--accent); transform: skewX(-14deg); }
.rg-modal__title { margin: 0; flex: 1; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.rg-x { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; font-size: 20px; line-height: 1; transition: border-color .2s, transform .2s; }
.rg-x:hover { border-color: var(--accent); transform: rotate(90deg); }
.rg-modal__body { padding: 20px; }
.rg-popup-img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }
.rg-popup-list { margin: 12px 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.rg-popup-list li { position: relative; padding: 10px 12px 10px 38px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .95rem; }
.rg-popup-list li::before { content: ''; position: absolute; left: 14px; top: 50%; width: 12px; height: 3px; background: var(--accent); transform: translateY(-50%) skewX(-20deg); }
.rg-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 16px; color: var(--muted); font-size: .85rem; }
.rg-meta b { color: var(--text); }
.rg-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* forms */
.rg-field { display: grid; gap: 6px; margin-bottom: 12px; }
.rg-field label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rg-input { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 16px; }
textarea.rg-input { min-height: 96px; resize: vertical; }
.rg-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.rg-input.is-bad { border-color: var(--accent); }
.rg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .rg-grid2 { grid-template-columns: 1fr; } }
.rg-check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 6px 0 16px; cursor: pointer; }
.rg-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.rg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rg-msg { padding: 12px 14px; border-radius: 10px; font-size: .9rem; margin-bottom: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.rg-msg--err { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); }

/* booking */
.rg-steps { display: flex; gap: 6px; margin: 0 0 18px; }
.rg-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.rg-steps span::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.rg-steps span.is-on::after { transform: scaleX(1); }
.rg-steplabel { display: flex; justify-content: space-between; margin: -10px 0 16px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rg-steplabel b { color: var(--accent); }
.rg-svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .rg-modal--wide .rg-svc-grid { grid-template-columns: repeat(3, 1fr); } }
.rg-svc { position: relative; display: flex; align-items: flex-end; min-height: 96px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #111 center/cover no-repeat; color: #fff; text-align: left; font-weight: 800; font-size: .9rem; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), border-color .25s; }
.rg-svc::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.82)); z-index: -1; }
.rg-svc:hover, .rg-svc.is-on { transform: translateY(-2px); border-color: var(--accent); }
.rg-svc.is-on::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 13px; }
.rg-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rg-cal-head b { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; }
.rg-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.rg-cal small { text-align: center; font-size: .68rem; text-transform: uppercase; color: var(--muted); padding: 4px 0; letter-spacing: .06em; }
.rg-day { position: relative; aspect-ratio: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.rg-day i { position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: #2fbf71; transform: translateX(-50%); }
.rg-day.is-low i { background: #f0a020; }
.rg-day:hover:not([disabled]) { border-color: var(--accent); transform: translateY(-1px); }
.rg-day.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.rg-day.is-on i { background: #fff; }
.rg-day[disabled] { opacity: .3; cursor: not-allowed; }
.rg-day.is-empty { visibility: hidden; }
.rg-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.rg-time { min-height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 800; cursor: pointer; transition: all .2s; }
.rg-time:hover:not([disabled]) { border-color: var(--accent); }
.rg-time.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.rg-time[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.rg-sum { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line); margin-bottom: 14px; font-size: .9rem; }
.rg-sum b { color: var(--accent); }
.rg-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.rg-done { text-align: center; padding: 10px 0; }
.rg-done__mark { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 18%, transparent); }
.rg-done__mark svg { width: 42px; height: 42px; color: #fff; stroke-dasharray: 40; stroke-dashoffset: 40; animation: rg-draw .7s .2s var(--ease) forwards; }
@keyframes rg-draw { to { stroke-dashoffset: 0; } }
.rg-ref { display: inline-block; margin: 8px 0 16px; padding: 8px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .08em; }
.rg-skel { height: 46px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: rg-sh 1.2s infinite; }
@keyframes rg-sh { to { background-position: -200% 0; } }

/* chat */
.rg-chat-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 8000; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 14px 40px -8px color-mix(in srgb, var(--accent) 80%, transparent); transition: transform .3s var(--ease); }
.rg-chat-fab:hover { transform: scale(1.06) rotate(-6deg); }
.rg-chat-fab svg { width: 28px; height: 28px; }
.rg-chat-fab::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: rg-ping 2.4s var(--ease) infinite; }
.rg-chat-fab b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: #fff; color: var(--accent); font-size: .7rem; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
@keyframes rg-ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
.rg-chat { position: fixed; right: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 8001; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; transform-origin: bottom right; transform: translateY(16px) scale(.92); opacity: 0; pointer-events: none; transition: transform .45s var(--ease), opacity .3s var(--ease); }
.rg-chat.is-open { transform: none; opacity: 1; pointer-events: auto; }
@media (max-width: 520px) { .rg-chat { right: 12px; left: 12px; width: auto; bottom: calc(86px + env(safe-area-inset-bottom)); height: calc(100dvh - 110px); } }
.rg-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; background: #050505; color: #fff; border-bottom: 2px solid var(--accent); }
.rg-chat__av { width: 42px; height: 42px; border-radius: 12px; background: #000 url('img/icon-192.png') center/cover; flex: none; position: relative; }
.rg-chat__av::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: #2fbf71; border: 2px solid #050505; }
.rg-chat__ttl { flex: 1; min-width: 0; }
.rg-chat__ttl b { display: block; font-family: var(--font-display); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; font-size: 1.1rem; }
.rg-chat__ttl small { color: #a8a8a8; font-size: .75rem; }
.rg-chat__head button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid #2a2a2a; background: #121212; color: #fff; cursor: pointer; display: grid; place-items: center; }
.rg-chat__head button:hover { border-color: var(--accent); }
.rg-chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%); }
.rg-bub { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; word-wrap: break-word; animation: rg-in .35s var(--ease); }
@keyframes rg-in { from { opacity: 0; transform: translateY(6px); } }
.rg-bub--bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.rg-bub--me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.rg-bub ul { margin: 6px 0; padding-left: 18px; }
.rg-bub a { color: inherit; font-weight: 700; }
.rg-bub .rg-btn { margin-top: 10px; min-height: 40px; font-size: .8rem; }
.rg-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.rg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: rg-dot 1s infinite; }
.rg-typing i:nth-child(2) { animation-delay: .15s; } .rg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rg-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.rg-chips { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
.rg-chips button { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: .78rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rg-chips button:hover { border-color: var(--accent); color: var(--accent); }
.rg-chat__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.rg-chat__form textarea { flex: 1; resize: none; height: 46px; max-height: 120px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); outline: none; font-size: 16px; line-height: 1.3; }
.rg-chat__form textarea:focus { border-color: var(--accent); }
.rg-chat__form button { width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.rg-chat__form button[disabled] { opacity: .5; }
.rg-chat__disc { padding: 0 14px 10px; font-size: .68rem; color: var(--muted); text-align: center; }

/* maintenance (kill switch) */
.rg-maint { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 24px; background: #050505; color: #fff; text-align: center; }
.rg-maint img { width: min(360px, 80vw); margin: 0 auto 24px; }
.rg-maint h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 5vw, 3rem); margin: 0 0 10px; }
.rg-maint p { color: #bdbdbd; margin: 0 0 18px; }
.rg-maint a { color: #fff; font-weight: 800; }

/* toast + night badge + konami */
.rg-toast { position: fixed; left: 50%; bottom: 24px; z-index: 9500; transform: translate(-50%, 30px); opacity: 0; padding: 12px 18px; border-radius: 12px; background: #111; color: #fff; border: 1px solid #2a2a2a; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow); transition: all .4s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); }
.rg-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.rg-night { position: fixed; left: 14px; bottom: 14px; z-index: 7000; padding: 8px 12px; border-radius: 999px; background: #111; color: #fff; border: 1px solid #333; font-size: .75rem; }
.rg-konami { position: fixed; inset: 0; z-index: 99998; display: grid; place-items: center; background: rgba(5,5,5,.94); color: #fff; text-align: center; padding: 24px; cursor: pointer; }
.rg-konami h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 8vw, 6rem); margin: 0; color: var(--accent); text-transform: uppercase; line-height: 1; }
.rg-konami p { margin: 12px 0 0; color: #ccc; }
.rg-dev { position: fixed; left: 12px; top: 12px; z-index: 99997; padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.9); color: #0f0; font: 12px/1.5 ui-monospace, Menlo, monospace; border: 1px solid #0f03; max-width: 320px; }

@media (prefers-reduced-motion: reduce) {
  .rg-chat-fab::before { animation-duration: 6s; }
  .rg-btn::after { display: none; }
}
