/* Tarok 124 — cookie/consent UI. Self-contained (loads on marketing + game); dark-glass-gold to match. */
.cc-bar,
.cc-modal { --cc-ink: #f3ecdd; --cc-muted: #b9ad97; --cc-gold: #e3b667; --cc-line: rgba(227, 182, 103, .28);
  --cc-glass: rgba(20, 16, 10, .92); font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

/* ---- bottom bar ---- */
.cc-bar {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 120%);
  width: min(1080px, calc(100% - 24px)); margin: 0 0 12px; z-index: 4000;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 16px; border: 1px solid var(--cc-line);
  background: var(--cc-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5); color: var(--cc-ink);
  opacity: 0; transition: transform .38s cubic-bezier(.2, .9, .3, 1), opacity .38s;
}
.cc-bar.cc-show { transform: translate(-50%, 0); opacity: 1; }
.cc-bar-text { margin: 0; flex: 1 1 380px; font-size: 13.5px; line-height: 1.55; color: var(--cc-muted); }
.cc-bar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-link { color: var(--cc-gold); text-decoration: underline; text-underline-offset: 2px; }

/* ---- buttons (Reject == Accept in prominence) ---- */
.cc-btn { font-family: inherit; font-weight: 700; font-size: 13.5px; padding: 10px 18px; border-radius: 10px;
  cursor: pointer; border: 1px solid transparent; transition: filter .15s, border-color .15s, background .15s; }
.cc-btn-gold { background: linear-gradient(180deg, #eecb84, #d3a34a); color: #20160b; border-color: #8a6526; }
.cc-btn-gold:hover { filter: brightness(1.06); }
.cc-btn-ghost { background: rgba(255, 255, 255, .04); color: var(--cc-ink); border-color: var(--cc-line); }
.cc-btn-ghost:hover { border-color: var(--cc-gold); }
.cc-btn-text { background: none; color: var(--cc-muted); padding: 10px 8px; }
.cc-btn-text:hover { color: var(--cc-gold); }

/* ---- settings modal ---- */
.cc-modal[hidden] { display: none; }
.cc-modal { position: fixed; inset: 0; z-index: 4100; display: grid; place-items: center; padding: 20px; }
.cc-backdrop { position: absolute; inset: 0; background: rgba(6, 5, 3, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cc-box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--cc-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--cc-line); border-radius: 18px; padding: 26px 26px 20px; color: var(--cc-ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.cc-box-head { margin-bottom: 18px; }
.cc-box-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em;
  font-family: 'Cinzel', 'Manrope', serif; color: var(--cc-ink); }
.cc-box-sub { margin: 7px 0 0; font-size: 13px; line-height: 1.5; color: var(--cc-muted); }
.cc-cats { display: flex; flex-direction: column; gap: 12px; }
.cc-cat { display: flex; gap: 14px; padding: 15px 16px; border-radius: 14px;
  border: 1px solid rgba(227, 182, 103, .16); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); }
.cc-cat-ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  color: var(--cc-gold); background: rgba(227, 182, 103, .1); border: 1px solid rgba(227, 182, 103, .24); }
.cc-cat-ic svg { width: 22px; height: 22px; }
.cc-cat-body { flex: 1; min-width: 0; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-title { font-weight: 700; font-size: 15px; color: var(--cc-ink); letter-spacing: -.005em; }
.cc-cat-desc { margin-top: 5px; font-size: 12.5px; line-height: 1.55; color: var(--cc-muted); }
.cc-always { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--cc-gold); background: rgba(227, 182, 103, .12); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }

/* toggle switch */
.cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-slider { position: absolute; inset: 0; cursor: pointer; background: rgba(255, 255, 255, .14);
  border: 1px solid var(--cc-line); border-radius: 26px; transition: background .18s; }
.cc-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #efe6d3; border-radius: 50%; transition: transform .18s; }
.cc-switch input:checked + .cc-slider { background: linear-gradient(180deg, #eecb84, #d3a34a); border-color: #8a6526; }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-slider { outline: 2px solid var(--cc-gold); outline-offset: 2px; }
.cc-box-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08); }

@media (max-width: 560px) {
  .cc-bar { gap: 12px; padding: 14px 16px; }
  .cc-bar-actions { width: 100%; }
  .cc-btn { flex: 1 1 auto; text-align: center; }
  .cc-btn-text { flex-basis: 100%; }
}
