/* Creative Chaos - site extras: accessibility, legal footer, join form, in-page editor.
 * Uses the theme variables defined in index.html (--hot, --bg2, --w, --brd, ...). */

/* ---------- Accessibility basics ---------- */
.cc-skip{position:fixed;left:1rem;top:-5rem;z-index:3000;background:var(--hot);color:#fff;padding:.75rem 1.2rem;border-radius:10px;font:600 .85rem var(--sans);text-decoration:none;transition:top .2s}
.cc-skip:focus{top:1rem}
#main:focus{outline:none}
:focus-visible{outline:3px solid var(--hot2);outline-offset:3px;border-radius:4px}

html.cc-fs-1{font-size:112.5%}
html.cc-fs-2{font-size:125%}
html.cc-fs-3{font-size:150%}
html.cc-contrast{--w4:rgba(255,255,255,.88);--w6:#fff;--w8:#fff;--brd:rgba(255,255,255,.4);--brd2:rgba(255,255,255,.65);--surf:rgba(255,255,255,.12);--surf2:rgba(255,255,255,.18)}
html.cc-links a{text-decoration:underline!important;text-underline-offset:.2em}
html.cc-readable,html.cc-readable *{font-family:Verdana,Tahoma,Arial,sans-serif!important;letter-spacing:.015em!important}
html.cc-readable p,html.cc-readable li{line-height:1.9!important}
html.cc-still *,html.cc-still *::before,html.cc-still *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.cc-stdcursor body,html.cc-stdcursor a,html.cc-stdcursor button{cursor:auto!important}
html.cc-stdcursor #C,html.cc-stdcursor #R{display:none!important}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

.cc-ui,.cc-ui *{cursor:auto!important}
.cc-ui button,.cc-ui select,.cc-ui a,.cc-ui label{cursor:pointer!important}

#cc-a11y-btn{position:fixed;left:14px;bottom:14px;z-index:2400;width:48px;height:48px;border-radius:50%;background:var(--bg2);border:1px solid var(--brd2);color:var(--w);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 24px rgba(0,0,0,.45)}
#cc-a11y-btn:hover{border-color:var(--hot);color:var(--hot2)}
#cc-a11y-btn svg{width:26px;height:26px}
#cc-a11y-panel{position:fixed;left:14px;bottom:72px;z-index:2400;width:min(320px,calc(100vw - 28px));background:var(--bg2);border:1px solid var(--brd2);border-radius:16px;padding:1.1rem;box-shadow:0 18px 60px rgba(0,0,0,.6);color:var(--w)}
#cc-a11y-panel[hidden]{display:none}
#cc-a11y-panel h2{font:400 1.25rem var(--serif);margin:0 0 .8rem}
.cc-a11y-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.55rem;font-size:.82rem}
.cc-a11y-opt{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.65rem .8rem;border-radius:10px;border:1px solid var(--brd2);background:var(--surf);color:var(--w);font:500 .82rem var(--sans);text-align:left;margin-bottom:.45rem}
.cc-a11y-opt[aria-pressed='true']{background:var(--hot);border-color:var(--hot);color:#fff}
.cc-a11y-opt .cc-state{font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;opacity:.85}
.cc-a11y-step{display:flex;gap:.4rem}
.cc-a11y-step button{min-width:44px;padding:.5rem .7rem;border-radius:10px;border:1px solid var(--brd2);background:var(--surf);color:var(--w);font:600 .9rem var(--sans)}
.cc-a11y-foot{display:flex;justify-content:space-between;gap:.6rem;margin-top:.7rem;font-size:.78rem}
.cc-a11y-foot button,.cc-a11y-foot a{background:none;border:0;color:var(--hot3);text-decoration:underline;font:inherit;padding:.3rem 0}

@media (max-width:959px){
  #cc-a11y-btn{bottom:calc(92px + env(safe-area-inset-bottom))}
  #cc-a11y-panel{bottom:calc(150px + env(safe-area-inset-bottom))}
}

/* ---------- Footer: legal links, credit, editor unlock ---------- */
.ft-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:.2rem 1.5rem;margin:1.6rem 0 .6rem;padding:0;list-style:none;font-size:.72rem;letter-spacing:.05em}
.ft-legal a{display:inline-block;padding:.45rem 0;color:var(--w6);text-decoration:none}
.ft-legal a:hover{color:var(--hot2);text-decoration:underline}
.ft-credit{border-top:1px solid var(--brd);margin-top:1.2rem;padding-top:1.2rem;text-align:center;font-size:.72rem;line-height:1.9;color:var(--w4)}
.ft-credit a{color:var(--w8);text-decoration:none;border-bottom:1px solid var(--brd2)}
.ft-credit a:hover{color:var(--hot2);border-color:var(--hot2)}
.ft-edit{background:none;border:0;color:inherit;opacity:.6;font:inherit;text-decoration:underline;text-underline-offset:.2em;padding:.4rem .2rem;margin-left:.6rem}
.ft-edit:hover,.ft-edit:focus-visible{opacity:1;color:var(--hot2)}

/* ---------- Policy / document pages ---------- */
.pol .doc-updated{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--w4);margin-bottom:1.4rem}
.pol h3{font-family:var(--serif);font-size:1.15rem;font-weight:400;color:var(--w);margin:1.6rem 0 .5rem}
.pol ul{margin:0 0 1rem 1.2rem;padding:0;color:var(--w4);font-size:.87rem;line-height:1.88}
.pol a{color:var(--hot3)}
.pol-links{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.2rem}
.pol-links a{padding:.55rem 1rem;border:1px solid var(--brd2);border-radius:999px;color:var(--w8);font-size:.78rem;text-decoration:none}
.pol-links a:hover{border-color:var(--hot);color:var(--hot2)}

/* ---------- Join form ---------- */
.cc-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.cc-consent{display:flex;gap:.7rem;align-items:flex-start;font-size:.74rem;line-height:1.7;color:var(--w6);margin:.2rem 0 1.1rem}
.cc-consent input{margin-top:.25rem;width:18px;height:18px;flex:none;accent-color:var(--hot)}
.cc-consent a{color:var(--hot3)}
.cc-note{font-size:.72rem;line-height:1.7;color:var(--w4);margin-top:.9rem}
.cc-note a{color:var(--hot3)}
.cc-form-msg{margin-top:.9rem;font-size:.85rem;line-height:1.6}
.cc-form-msg.ok{color:#9be7b0}
.cc-form-msg.err{color:#ff9db8}

/* ---------- In-page editor ---------- */
html.cc-editing #C,html.cc-editing #R{display:none!important}
html.cc-editing body,html.cc-editing a,html.cc-editing button{cursor:auto!important}
html.cc-editing [data-cc-e]{transition:none}
html.cc-editing [data-cc-e]:hover{outline:2px dashed var(--hot2);outline-offset:3px}
html.cc-editing [data-cc-e='text']{cursor:text!important}
html.cc-editing [data-cc-e='link'],html.cc-editing [data-cc-e='button'],html.cc-editing [data-cc-e='image']{cursor:pointer!important}
html.cc-editing [data-cc-e='text']:focus{outline:2px solid var(--hot);outline-offset:3px;background:rgba(255,26,146,.08)}
html.cc-editing [data-cc-e].cc-picked{outline:2px solid var(--hot);outline-offset:3px}

#cc-editbar{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:2500;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;justify-content:center;max-width:calc(100vw - 20px);background:var(--bg2);border:1px solid var(--hot);border-radius:16px;padding:.55rem .75rem;box-shadow:0 14px 50px rgba(0,0,0,.6);color:var(--w);font:500 .78rem var(--sans)}
#cc-editbar .cc-who{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--w6)}
@media (max-width:959px){#cc-editbar{bottom:calc(88px + env(safe-area-inset-bottom))}}

.cc-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.55rem 1rem;border-radius:999px;border:1px solid var(--brd2);background:var(--surf2);color:var(--w);font:600 .76rem var(--sans);letter-spacing:.04em}
.cc-btn:hover{border-color:var(--hot2)}
.cc-btn.primary{background:var(--hot);border-color:var(--hot);color:#fff}
.cc-btn.ghost{background:none}
.cc-btn[disabled]{opacity:.55;pointer-events:none}
.cc-sel{background:var(--surf2);color:var(--w);border:1px solid var(--brd2);border-radius:999px;padding:.5rem .8rem;font:500 .76rem var(--sans)}
.cc-sel option{background:#13101A;color:#fff}

#cc-pop{position:fixed;z-index:2600;width:min(320px,calc(100vw - 16px));background:var(--bg2);border:1px solid var(--hot);border-radius:14px;padding:.8rem;box-shadow:0 14px 50px rgba(0,0,0,.6);color:var(--w);font:500 .78rem var(--sans)}
#cc-pop[hidden]{display:none}
#cc-pop label{display:block;font-size:.62rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--w4);margin:.1rem 0 .3rem}
#cc-pop input[type=text],#cc-pop input[type=url]{width:100%;background:var(--bg);border:1px solid var(--brd2);border-radius:10px;padding:.6rem .7rem;color:var(--w);font:400 .85rem var(--sans);margin-bottom:.6rem}
#cc-pop input:focus{outline:2px solid var(--hot2);outline-offset:1px}
.cc-pop-row{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.cc-pop-err{color:#ff9db8;font-size:.76rem;margin:.1rem 0 .5rem}
.cc-pop-hint{color:var(--w4);font-size:.72rem;line-height:1.5;margin:0 0 .6rem}

.cc-modal-back{position:fixed;inset:0;z-index:3000;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:1rem}
.cc-modal{width:min(440px,100%);max-height:calc(100vh - 2rem);overflow:auto;background:var(--bg2);border:1px solid var(--brd2);border-radius:20px;padding:1.6rem;color:var(--w);box-shadow:0 30px 90px rgba(0,0,0,.7)}
.cc-modal h2{font:400 1.6rem var(--serif);margin:0 0 .6rem}
.cc-modal p{font-size:.85rem;line-height:1.7;color:var(--w6);margin:0 0 1rem}
.cc-modal label{display:block;font-size:.62rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--w4);margin-bottom:.4rem}
.cc-modal input[type=email],.cc-modal input[type=text],.cc-modal input[type=file]{width:100%;background:var(--bg);border:1px solid var(--brd2);border-radius:12px;padding:.8rem .9rem;color:var(--w);font:400 1rem var(--sans);margin-bottom:1rem}
.cc-modal input.cc-code{letter-spacing:.5em;text-align:center;font-size:1.5rem}
.cc-modal input:focus{outline:2px solid var(--hot2);outline-offset:1px}
.cc-modal .cc-actions{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:flex-end}
.cc-msg{min-height:1.2em;color:#ff9db8;font-size:.82rem;margin:-.3rem 0 .8rem}
.cc-msg.ok{color:#9be7b0}

#cc-toast{position:fixed;left:50%;top:84px;transform:translateX(-50%);z-index:3100;background:var(--bg2);border:1px solid var(--brd2);border-radius:999px;padding:.6rem 1.1rem;color:var(--w);font:500 .8rem var(--sans);box-shadow:0 10px 40px rgba(0,0,0,.5);max-width:calc(100vw - 20px)}
#cc-toast[hidden]{display:none}
#cc-toast.err{border-color:#ff6a93;color:#ffb3c6}

.cc-gal-tools{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap;margin:0 0 1.2rem;padding:.9rem 1rem;border:1px dashed var(--hot);border-radius:14px;background:rgba(255,26,146,.06);font-size:.8rem;color:var(--w6)}
.cc-gal-x{position:absolute;top:8px;left:8px;z-index:5;min-width:34px;height:34px;padding:0 .6rem;border-radius:999px;background:rgba(7,5,10,.85);border:1px solid var(--brd2);color:#fff;font:600 .75rem var(--sans)}
.cc-gal-x.confirm{background:#c2185b;border-color:#ff6aa8}
.gg{position:relative}

/* Mobile app shell: keep floating controls clear of the bottom tab bar */
@media(max-width:899px){
  #cc-a11y-btn{bottom:calc(92px + env(safe-area-inset-bottom));left:12px;width:44px;height:44px}
  #cc-a11y-panel{bottom:calc(144px + env(safe-area-inset-bottom))}
  #cc-editbar{bottom:calc(92px + env(safe-area-inset-bottom))}
  body.sheet-open #cc-a11y-btn,body.sheet-open #cc-a11y-panel{opacity:0;pointer-events:none;visibility:hidden}
}
