/* Center Court AI Assistant — floating window (desktop) and full screen (phone). */
.cca { --cca-w: 400px; font-family: var(--text); color: var(--chalk); }
.cca-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:where(.cca) button { font: inherit; color: inherit; }
.cca-launcher { position: fixed; z-index: 80; right: 24px; bottom: 24px; display: none; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 8px; border: 0; border-radius: 999px; background: var(--chalk); color: var(--night); font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .7), 0 0 0 1px rgb(var(--fg-rgb, 255 255 255) / .2); transition: transform 180ms var(--ease-out); }
.cca-launcher:active { transform: scale(.96); }
.cca-launcher__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; }
.cca-launcher__icon svg { width: 22px; height: 22px; }
.cca-launcher__dot { position: absolute; top: 6px; left: 38px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--chalk); }
.cca.is-open .cca-launcher { transform: scale(.94); opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .cca-launcher { display: inline-flex; } }

/* 1.3 — the assistant has its own surface, bluer than the page, with a lit edge, so it never blends into the site. */
.cca-panel { position: fixed; z-index: 85; inset: 0; display: flex; flex-direction: column; background: radial-gradient(130% 55% at 85% -10%, rgba(70, 85, 255, .30), transparent 60%), linear-gradient(180deg, #1c2252 0%, #151a3e 34%, #12163a 100%); padding-top: env(safe-area-inset-top); opacity: 0; transform: translateY(24px); transition: opacity 220ms ease, transform 300ms var(--ease-drawer); }
.cca-panel::before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), #73d0ff 35%, var(--gold) 65%, var(--red)); pointer-events: none; }
.cca-panel.is-in { opacity: 1; transform: none; }
.cca-panel[hidden] { display: none; }
html.cca-locked, html.cca-locked body { overflow: hidden; }
@media (min-width: 900px) {
	.cca-panel { inset: auto 24px 24px auto; width: var(--cca-w); height: min(680px, calc(100vh - 48px)); border-radius: 22px; border: 1px solid rgba(163, 171, 255, .42); box-shadow: 0 0 0 1px rgba(244, 183, 63, .14), 0 34px 90px -22px rgba(0, 0, 0, .95), 0 0 80px -16px rgba(51, 65, 224, .6); overflow: hidden; transform-origin: bottom right; transform: translateY(12px) scale(.97); padding-top: 0; }
}

.cca-head { display: flex; align-items: center; gap: 12px; padding: 16px 12px 10px 16px; }
.cca-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: radial-gradient(120% 90% at 30% 0%, #4655ff 0%, #2a33b8 50%, #181d52 100%); color: #fff; flex: none; box-shadow: 0 0 0 1px rgba(244, 183, 63, .55), 0 8px 18px -8px rgba(51, 65, 224, .95); }
.cca-mark svg { filter: drop-shadow(0 0 5px rgba(255, 228, 160, .8)); }
.cca-mark svg { width: 22px; height: 22px; }
/* 1.6.1: the restaurant's round "CC" emblem, in both color themes. */
.cca-mark--logo { width: 48px; height: 48px; padding: 0; border-radius: 50%; background: none; box-shadow: 0 0 0 1px rgba(244, 183, 63, .5), 0 8px 18px -8px rgba(51, 65, 224, .9); }
.cca-mark--logo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cca-titles { min-width: 0; flex: 1; }
.cca-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1; margin: 0; }
.cca-sub { margin: 3px 0 0; font-size: .86rem; color: var(--mute); }
.cca-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; flex: none; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.cca-iconbtn:active { transform: scale(.93); }
.cca-iconbtn:hover { background: rgb(var(--fg-rgb, 255 255 255) / .08); }
.cca-iconbtn svg { width: 22px; height: 22px; }
.cca-toggle[aria-pressed="true"] { background: rgba(244, 183, 63, .16); color: var(--gold-tx, var(--gold)); }

.cca-bar { display: flex; align-items: center; gap: 6px; padding: 0 12px 10px 16px; border-bottom: 1px solid var(--line); }
.cca-loc { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--fg-rgb, 255 255 255) / .04); cursor: pointer; font-weight: 600; font-size: .9rem; min-width: 0; margin-right: auto; }
.cca-loc svg { width: 18px; height: 18px; color: var(--blue-ink); flex: none; }
.cca-loc__txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cca-loc.is-empty { border-color: var(--gold-tx, var(--gold)); color: var(--gold-tx, var(--gold)); }
.cca-loc.is-empty svg { color: var(--gold-tx, var(--gold)); }
.cca-chipbtn { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; cursor: pointer; font-weight: 600; font-size: .9rem; }

.cca-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; outline: none; }
.cca-log:focus-visible { box-shadow: inset 0 0 0 2px var(--focus, var(--gold)); }
.cca-msg { display: flex; flex-direction: column; max-width: 88%; }
.cca-msg--user { align-self: flex-end; align-items: flex-end; }
.cca-msg.is-new { animation: cca-in 260ms var(--ease-out); }
@keyframes cca-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cca-bubble { padding: 11px 14px; border-radius: 18px; line-height: 1.5; font-size: .99rem; overflow-wrap: anywhere; }
.cca-msg--bot .cca-bubble { background: var(--night-3); border-top-left-radius: 6px; }
.cca-msg--user .cca-bubble { background: var(--blue); color: #fff; border-top-right-radius: 6px; }
.cca-bubble p { margin: 0 0 6px; }
.cca-bubble p:last-child { margin-bottom: 0; }
.cca-bubble strong { color: var(--gold-tx, var(--gold)); font-weight: 700; }
.cca-msg--user .cca-bubble strong { color: #fff; }
.cca-list { margin: 4px 0; padding-left: 18px; }
.cca-list li { margin: 3px 0; }
.cca-link { color: var(--gold-tx, var(--gold)); }
.cca-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cca-linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--chalk); color: var(--night); text-decoration: none; font-weight: 700; font-size: .9rem; border: 0; cursor: pointer; transition: transform 160ms var(--ease-out); }
.cca-linkbtn:active { transform: scale(.96); }
.cca-linkbtn svg { width: 16px; height: 16px; }
.cca-linkbtn--pick { background: var(--gold); color: var(--gold-ink); }
.cca-suggest { display: grid; gap: 6px; margin-top: 2px; }
.cca-suggest__btn { text-align: left; min-height: 44px; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--line-2); background: none; cursor: pointer; color: var(--mute); font-size: .95rem; }
.cca-suggest__btn:hover { color: var(--chalk); border-color: var(--gold-tx, var(--gold)); }
.cca-typing .cca-bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.cca-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: cca-dot 1s infinite ease-in-out; }
.cca-dot:nth-child(3) { animation-delay: .15s; }
.cca-dot:nth-child(4) { animation-delay: .3s; }
@keyframes cca-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.cca-quickwrap { position: relative; border-top: 1px solid var(--line); }
.cca-quick { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; padding: 8px 16px; scrollbar-width: none; scroll-padding-inline: 16px; }
.cca-quick::-webkit-scrollbar { display: none; }
/* A fade on the side where more buttons are. */
.cca-quickwrap.has-next .cca-quick { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); }
.cca-quickwrap.has-prev .cca-quick { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 64px), transparent); }
.cca-quickwrap.has-prev.has-next .cca-quick { -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
/* Arrows only where there is a mouse (hidden by the script otherwise). */
.cca-quick__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: #232848; cursor: pointer; box-shadow: 0 8px 16px -8px #000; transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.cca-quick__arrow[hidden] { display: none; }
.cca-quick__arrow--prev { left: 8px; }
.cca-quick__arrow--next { right: 8px; }
.cca-quick__arrow svg { width: 18px; height: 18px; }
.cca-quick__arrow:active { transform: scale(.93); }
.cca-quick__arrow:hover { background: var(--gold); border-color: var(--gold-tx, var(--gold)); color: var(--gold-ink); }
.cca-quick__btn { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; cursor: pointer; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: border-color 160ms ease, color 160ms ease; }
.cca-quick__btn:hover { border-color: var(--gold-tx, var(--gold)); color: var(--gold-tx, var(--gold)); }
.cca-status { margin: 0; padding: 0 16px; min-height: 0; font-size: .9rem; color: var(--gold-tx, var(--gold)); }
.cca-status:empty { display: none; }
.cca-form { display: flex; align-items: flex-end; gap: 6px; padding: 8px 12px 8px 16px; }
.cca-input { flex: 1; min-height: 46px; max-height: 120px; resize: none; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--well); color: var(--chalk); font: 500 1rem/1.35 var(--text); }
.cca-input:focus { outline: none; border-color: var(--gold-tx, var(--gold)); box-shadow: 0 0 0 3px rgba(244, 183, 63, .22); }
.cca-mic.is-on { background: var(--red); color: #fff; animation: cca-pulse 1.4s infinite; }
@keyframes cca-pulse { 50% { box-shadow: 0 0 0 6px rgba(227, 36, 43, .25); } }
.cca-send { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--red); color: #fff; cursor: pointer; flex: none; transition: transform 160ms var(--ease-out), opacity 160ms ease; }
.cca-send:active { transform: scale(.93); }
.cca-send:disabled { opacity: .5; cursor: progress; }
.cca-send svg { width: 22px; height: 22px; }
.cca-note { margin: 0; padding: 2px 16px calc(12px + env(safe-area-inset-bottom)); font-size: .78rem; color: var(--dim); }
.cca :focus-visible { outline: 3px solid var(--focus, var(--gold)); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.cca-panel, .cca-launcher { transition: opacity 150ms ease; transform: none !important; }
	.cca-msg.is-new, .cca-dot, .cca-mic.is-on { animation: none; }
}

/* 1.6.0 — Light theme ("Day Game"): the same window on white paper, with the blue light and the color stripe kept. */
:root[data-theme="light"] .cca-launcher { box-shadow: 0 16px 36px -16px rgba(21, 25, 53, .55), 0 0 0 1px rgba(21, 25, 53, .12); }
:root[data-theme="light"] .cca-panel { background: radial-gradient(130% 55% at 85% -10%, rgba(70, 85, 255, .13), transparent 60%), linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%); color: var(--chalk); }
@media (min-width: 900px) {
	:root[data-theme="light"] .cca-panel { border-color: rgba(51, 65, 224, .28); box-shadow: 0 0 0 1px rgba(244, 183, 63, .2), 0 34px 80px -26px rgba(21, 25, 53, .45), 0 0 70px -24px rgba(51, 65, 224, .35); }
}
:root[data-theme="light"] .cca-msg--bot .cca-bubble { background: #f1f2f6; }
:root[data-theme="light"] .cca-quick__arrow { background: #ffffff; box-shadow: 0 8px 16px -8px rgba(21, 25, 53, .45); }
:root[data-theme="light"] .cca-input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(168, 111, 0, .18); }
:root[data-theme="light"] .cca-linkbtn--pick { box-shadow: inset 0 0 0 1px #b9860f; }
