/* consent.css ( 2026-11-07 ) — cookie banner + Privacy Settings dialog ( consent.js ).
   Layout follows the Shadowverse WB / OneTrust banner, colours follow the Crest V3 site. */

.cc-banner {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(calc(100vw - 24px), 1080px);
  display: flex;
  align-items: center;
  gap: 18px 28px;
  padding: 18px 52px 18px 24px;
  border: 1px solid #c99266;
  border-radius: 10px;
  background: linear-gradient(180deg, #1b1114f7, #0b0608f7);
  box-shadow: 0 0 0 3px #150709, 0 18px 50px #000d, 0 0 30px rgba(255,40,20,.16);
  color: #eadbc4;
  font: 14px/1.45 "Source Sans 3", SourceSans, system-ui, sans-serif;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.cc-banner.cc-show { transform: translate(-50%, 0); opacity: 1; }
.cc-copy { flex: 1; min-width: 0; }
.cc-copy p { margin: 0; }

.cc-link {
  padding: 0;
  border: 0;
  background: none;
  color: #f0c48a;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.cc-link:hover { color: #fff1d8; }

.cc-gpc {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0 !important;
  font-weight: 700;
  color: #f4e6cf;
}
.cc-gpc span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35c46a;
  box-shadow: 0 0 6px #35c46a;
}

.cc-actions { display: flex; gap: 12px; flex: none; }
.cc-btn {
  min-width: 132px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #c99266;
  border-radius: 6px;
  background: #0d0709;
  color: #f4dfbd;
  font: 700 14px/1 Cinzel, serif;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.cc-btn:hover { background: #24131a; }
.cc-btn:active { transform: scale(.97); }
.cc-btn.cc-primary {
  background: linear-gradient(180deg, #b11a20, #6a0a0f 70%, #3b0709);
  border-color: #e0a877;
  color: #fff3dc;
}
.cc-btn.cc-primary:hover { background: linear-gradient(180deg, #c8242a, #7a0d13 70%, #45090c); }
.cc-btn:focus-visible, .cc-link:focus-visible, .cc-x:focus-visible, .cc-cat summary:focus-visible {
  outline: 2px solid #ffd9a0;
  outline-offset: 2px;
}

.cc-x {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: #cfae86;
  font: 400 30px/1 system-ui, sans-serif;
  cursor: pointer;
}
.cc-x:hover { color: #fff1d8; }

/* ---- Privacy Settings dialog ---- */
.cc-lock, .cc-lock body { overflow: hidden; }
.cc-overlay {
  position: fixed;
  z-index: 210;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3,1,2,.72);
  opacity: 0;
  transition: opacity .2s;
}
.cc-overlay.cc-show { opacity: 1; }
.cc-dialog {
  position: relative;
  width: min(100%, 720px);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  padding: 26px 28px 22px;
  border: 1px solid #c99266;
  border-radius: 10px;
  background: linear-gradient(180deg, #1b1114, #0b0608);
  box-shadow: 0 0 0 3px #150709, 0 24px 60px #000;
  color: #eadbc4;
  font: 14px/1.5 "Source Sans 3", SourceSans, system-ui, sans-serif;
}
.cc-dialog h2 {
  margin: 0 40px 12px 0;
  font: 700 22px/1.2 Cinzel, serif;
  letter-spacing: .05em;
  color: #f4dfbd;
}
.cc-body { margin: 0 0 12px; color: #dccbb2; }
.cc-row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.cc-row-links .cc-gpc { margin: 0 !important; }
.cc-actions-top { justify-content: flex-end; margin: 16px 0; }
.cc-actions-bottom { justify-content: flex-end; margin-top: 16px; }

.cc-cats { border: 1px solid #5a3a2a; border-radius: 6px; }
.cc-cat + .cc-cat { border-top: 1px solid #5a3a2a; }
.cc-cat summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font: 700 14px/1.2 Cinzel, serif;
  color: #f4dfbd;
}
.cc-cat summary::-webkit-details-marker { display: none; }
.cc-cat summary::before { content: "▸"; color: #c99266; transition: transform .15s; }
.cc-cat[open] summary::before { transform: rotate(90deg); }
.cc-cat summary span { flex: 1; }
.cc-cat summary em { font: 700 12px/1 "Source Sans 3", SourceSans, sans-serif; font-style: normal; color: #6fd39a; }
.cc-cat p { margin: 0; padding: 0 14px 14px 34px; color: #cdbba2; font-size: 13px; }
.cc-cat code { color: #f0c48a; }

.cc-switch { position: relative; width: 44px; height: 24px; flex: none; cursor: pointer; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cc-switch i {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #3a2c28;
  border: 1px solid #6a4a38;
  transition: background .15s;
}
.cc-switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cfae86;
  transition: transform .15s;
}
.cc-switch input:checked + i { background: #8a1418; border-color: #e0a877; }
.cc-switch input:checked + i::after { transform: translateX(20px); background: #fff3dc; }
.cc-switch input:focus-visible + i { outline: 2px solid #ffd9a0; outline-offset: 2px; }

/* footer "Cookie Settings" link */
button[data-cookie-settings] {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

/* phones: stack like the Shadowverse SP banner ( text, then two equal buttons ) */
@media (max-width: 760px) {
  .cc-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px 16px;
    font-size: 13.5px;
  }
  .cc-copy { padding-right: 30px; }
  .cc-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cc-btn { min-width: 0; }
  .cc-dialog { padding: 22px 16px 16px; }
  .cc-actions-top, .cc-actions-bottom { display: grid; grid-template-columns: 1fr 1fr; }
  .cc-actions-bottom { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-overlay { transition: none; }
}

/* phones on their side: keep the banner low so the key visual stays visible */
@media (max-height: 520px) and (orientation: landscape) {
  .cc-banner { padding: 10px 46px 10px 16px; gap: 14px; font-size: 12px; line-height: 1.35; }
  .cc-btn { min-width: 110px; min-height: 38px; padding: 8px 12px; font-size: 12px; }
  .cc-gpc { margin-top: 4px !important; }
}
