

.header-actions { align-items:center; gap:16px; }
body[data-theme="camorasta"] {
  --paper:#131713; --ink:#f1ead3; --muted:#b7bba8; --line:#3b4334;
  --orange:#edb94c; --club-green:#81c88c; --card:#20271f;
  background:radial-gradient(ellipse at 15% 0,#34402b80,transparent 50%),#131713;
}
[data-theme="camorasta"] .site-header { border-bottom:3px solid; border-image:linear-gradient(90deg,#c75140 0 33%,#e8bb4c 33% 66%,#75a773 66%) 1; }
.brand-logo { display:none; }
[data-theme="camorasta"] .brand-logo { display:block; width:auto; height:84px; }
[data-theme="camorasta"] .brand-ball,[data-theme="camorasta"] #brand-name { display:none; }
[data-theme="camorasta"] .header-caption { font:700 9px monospace; color:#c8c5a9; max-width:200px; line-height:1.6; }
[data-theme="camorasta"] main { padding-top:28px; padding-bottom:32px; }
[data-theme="camorasta"] .game-card { border-color:#626247; box-shadow:0 6px 0 #090e09,0 15px 45px #0005; background:#20271f; border-radius:5px; }
[data-theme="camorasta"] .scorebar { background:linear-gradient(90deg,#253a2b,#1d241e 45% 55%,#443324); }
[data-theme="camorasta"] .score-center { color:#f2d888; font-family:monospace; }
[data-theme="camorasta"] .setup-card { background:repeating-linear-gradient(135deg,#ffffff02 0 2px,transparent 2px 8px),#20271f; border:1px solid #4c5540; border-radius:5px; box-shadow:5px 5px 0 #0c110d; }
[data-theme="camorasta"] .setup-card::before { content:'CAMORASTA / MEMBERS ONLY*'; display:block; margin:-5px 0 23px; padding:9px 0; border-block:1px dashed #686a48; color:#dbba69; font:700 10px monospace; letter-spacing:1px; }
[data-theme="camorasta"] .setup-card::after { content:'* Everyone is a member. Stay suspicious. Be nice.'; display:block; padding-top:18px; color:#aeb29e; font:10px/1.6 monospace; }
[data-theme="camorasta"] :is(.mode-description,.field-label,.small-note,.panel-top .eyebrow,.charm-toggle small,.panel-bottom,.panel-bottom strong) { color:#bdc3ac; }
[data-theme="camorasta"] .mode-tabs { background:#111910; border:1px solid #414b37; }
[data-theme="camorasta"] .mode-tabs button { color:#b6bda7; }
[data-theme="camorasta"] .mode-tabs button.active { background:#e6b94e; color:#1b241a; }
[data-theme="camorasta"] :is(input,select) { background:#141c15; color:#f1ead3; border-color:#596049; color-scheme:dark; }
[data-theme="camorasta"] :is(input,select):focus { border-color:#e6b94e; box-shadow:0 0 0 2px #e6b94e30; }
[data-theme="camorasta"] .primary { background:#e6b94e; color:#172015; border:1px solid #f7d77d; border-radius:3px; box-shadow:3px 3px 0 #0b100a; font-weight:850; }
[data-theme="camorasta"] .primary:hover { background:#f4d377; }
[data-theme="camorasta"] .game-overlay { background:linear-gradient(90deg,#0b130df0,#0b130d90 57%,#0b130d10); }
[data-theme="camorasta"] .overlay-content h2 { color:#f0d28a; font-family:Georgia,serif; font-style:italic; text-shadow:2px 3px #10170f; }
[data-theme="camorasta"] :is(.overlay-content p,.overlay-kicker,.overlay-hint) { color:#e0ddbd; }
[data-theme="camorasta"] :is(.court-footer,.match-extras) { background:#1c241c; color:#c1c6ae; border-color:#3c4737; }
[data-theme="camorasta"] :is(.court-tag,.court-button,.ping-meter) { background:#172319e8; color:#efd28a; border-color:#717348; }
[data-theme="camorasta"] .court-tag { display:none; }
[data-theme="camorasta"] .court-wrap { aspect-ratio:1200/610; }
[data-theme="camorasta"] .court-actions { margin-left:auto; }
[data-theme="camorasta"] :is(.charm-toggle,.panel-bottom,.or-line,.lobby-head) { border-color:#414c38; }
[data-theme="camorasta"] .charm-toggle { background:#172018; }
[data-theme="camorasta"] .charm-toggle input:checked + .switch-ui { background:#789c5d; }
[data-theme="camorasta"] :is(.lobby-row,.lobby-empty,.room-code-block,.roster-row) { background:#172018; color:#d9dec7; border-color:#48533b; }
[data-theme="camorasta"] :is(dialog,.rally-toast) { background:#20291e; color:#eee8cf; border-color:#77704c; }
[data-theme="camorasta"] dialog p { color:#c8cdb6; }
[data-theme="camorasta"] .touch-controls button { background:#1f3024dd; border-color:#d7bc68; color:#f5dc90; }
@media(max-width:850px) { .header-caption { display:none; } }
@media(max-width:600px) { .header-actions { gap:10px; flex-wrap:wrap; justify-content:flex-end; } .site-header { height:auto; min-height:90px; gap:15px; padding-top:14px; padding-bottom:14px; } .brand { font-size:24px; } .header-actions .icon-button { font-size:10px; } [data-theme="camorasta"] .brand small { left:40px; font-size:6px; letter-spacing:1px; } }

@media(max-width:600px) {
 [data-theme="camorasta"] .brand-logo { width:auto; height:58px; }
}

@media(max-width:600px) {
 [data-theme="camorasta"] .site-header { flex-wrap:wrap; justify-content:center; gap:8px; }
 [data-theme="camorasta"] .header-actions { width:100%; justify-content:space-between; }
}
@media(min-width:851px) and (max-width:1100px) { [data-theme="camorasta"] .header-caption { display:none; } }

/* CamoVolley: a single underground-club identity. */
body { background:radial-gradient(ellipse at 10% 0,#33442b80,transparent 45%),radial-gradient(ellipse at 90% 55%,#44361c38,transparent 45%),#101611; }
body::before { content:''; position:fixed; inset:0; pointer-events:none; z-index:-1; opacity:.22; background:repeating-linear-gradient(125deg,transparent 0 54px,#74935c18 55px 56px,transparent 57px 110px); }
[data-theme="camorasta"] .site-header { max-width:1540px; height:116px; padding-inline:28px; border-bottom-width:2px; }
[data-theme="camorasta"] .brand-logo { width:min(390px,38vw); height:auto; max-height:98px; object-fit:contain; filter:drop-shadow(0 4px 5px #0008); }
[data-theme="camorasta"] .header-caption { letter-spacing:.18em; color:#d7bc70; }
[data-theme="camorasta"] main { max-width:1540px; }
[data-theme="camorasta"] .game-card { border:1px solid #8c845055; border-top:3px solid #d1ac58; border-radius:12px; box-shadow:0 0 0 5px #0d130e,0 24px 70px #0007; overflow:hidden; }
[data-theme="camorasta"] .scorebar { padding-block:20px; background:linear-gradient(100deg,#203f2bd9,#111b14 43% 57%,#48381bd9); border-bottom:1px solid #a28b4e66; }
.score-center { font-family:Impact,'Arial Black',sans-serif!important; font-size:40px; letter-spacing:.06em; text-shadow:0 0 24px #d0a84945; }
.team-label { font-size:12px; font-weight:800; letter-spacing:.04em; min-width:0; }
.team-label>span:last-child { overflow:hidden; text-overflow:ellipsis; }
.team-dot.green { background:#86ce92; box-shadow:0 0 12px #86ce9266; }.team-dot.gold { background:#f0c65c; box-shadow:0 0 12px #f0c65c66; }
[data-theme="camorasta"] .setup-card { padding:22px; border-radius:12px; background:linear-gradient(160deg,#263326,#171f18 55%); border:1px solid #536044; box-shadow:0 16px 45px #0005; }
[data-theme="camorasta"] .setup-card::before { content:none; }
.setup-card h2 { font-family:Impact,'Arial Black',sans-serif; font-size:32px; font-style:italic; text-transform:uppercase; letter-spacing:.025em; color:#f4e2ae; }
[data-theme="camorasta"] .mode-tabs { padding:5px; border-radius:8px; box-shadow:inset 0 2px 9px #0005; }
[data-theme="camorasta"] .mode-tabs button { border-radius:5px; transition:background .18s,color .18s,box-shadow .18s; }
[data-theme="camorasta"] .mode-tabs button.active { background:linear-gradient(130deg,#f0d27a,#c9a341); box-shadow:0 2px 12px #e2b84e35; }
[data-theme="camorasta"] .primary { position:relative; overflow:hidden; background:linear-gradient(120deg,#f3d98c,#ddba52); border:1px solid #f5df9c; border-radius:6px; box-shadow:0 4px 0 #6b5524,0 8px 20px #0004; text-transform:uppercase; letter-spacing:.04em; transition:transform .16s,box-shadow .16s; }
[data-theme="camorasta"] .primary::after { content:''; position:absolute; inset:-80%; background:linear-gradient(110deg,transparent 40%,#fff6 50%,transparent 60%); transform:translateX(-70%); pointer-events:none; }
[data-theme="camorasta"] .primary:hover { transform:translateY(-2px); box-shadow:0 6px 0 #6b5524,0 10px 26px #dbb94d30; }
[data-theme="camorasta"] .primary:hover::after { animation:club-shine .65s both; }
[data-theme="camorasta"] .primary:active { transform:translateY(3px); box-shadow:0 1px 0 #6b5524; }
[data-theme="camorasta"] .game-overlay { background:linear-gradient(90deg,#09140ef2,#0a170db5 55%,#0b180e28); }
[data-theme="camorasta"] .overlay-content h2 { font-family:Impact,'Arial Black',sans-serif; font-style:italic; text-transform:uppercase; letter-spacing:.02em; line-height:.94; text-shadow:3px 4px #08120a,0 0 35px #d5aa4325; }
.overlay-kicker { color:#d9b961!important; letter-spacing:.2em; }
[data-theme="camorasta"] .rally-toast { background:#101f15f2; border:1px solid #d9b961; box-shadow:0 8px 24px #0006,0 0 18px #d5b85b22; color:#f1dfae; font-weight:800; }
[data-theme="camorasta"] .court-tag { display:inline-flex; font:700 9px monospace; letter-spacing:.12em; }
[data-theme="camorasta"] .court-button:hover { border-color:#f1ce74; box-shadow:0 0 14px #e1ba4c22; }
[data-theme="camorasta"] :is(input,select) { border-radius:6px; }
[data-theme="camorasta"] :is(input,select,button):focus-visible { outline:2px solid #f1cf78; outline-offset:3px; }
[data-theme="camorasta"] .match-extras { font-family:monospace; font-size:9px; letter-spacing:.04em; }
.match-controls,.replay-bar { border-color:#b69b4d88; box-shadow:0 12px 25px #0007; backdrop-filter:blur(10px); }
#watch-match { color:#e5ca81; border-bottom:1px dashed #b6a15e; padding:8px; }
.point-pop { display:inline-block; animation:club-score .55s both; }
@keyframes club-score { 0% { transform:scale(.8); } 30% { transform:scale(1.4); color:#fff9d9; text-shadow:0 0 30px #f1cf78; } 100% { transform:scale(1); } }
@keyframes club-shine { to { transform:translateX(70%); } }
@media(max-width:850px) { [data-theme="camorasta"] .site-header { padding-inline:18px; }.header-actions { gap:12px; }[data-theme="camorasta"] .brand-logo { width:min(360px,48vw); } }
@media(max-width:600px) { [data-theme="camorasta"] .site-header { height:auto; padding:12px 16px; }[data-theme="camorasta"] .brand-logo { width:280px; max-width:85vw; height:auto; }.score-center { font-size:30px; }.team-label { font-size:10px; }[data-theme="camorasta"] .scorebar { padding-block:12px; }.setup-card h2 { font-size:28px; }.court-top { gap:4px; }.court-tag { max-width:40%; overflow:hidden; white-space:nowrap; }.header-actions { justify-content:center!important; } }
@media(prefers-reduced-motion:reduce) { .point-pop,[data-theme="camorasta"] .primary:hover::after { animation:none; }[data-theme="camorasta"] .primary,[data-theme="camorasta"] .mode-tabs button { transition:none; } }

/* Keep the entire desktop clubhouse inside a normal browser window. */
@media(min-width:1100px) and (min-height:650px) {
 [data-theme="camorasta"] .site-header { height:84px; }
 [data-theme="camorasta"] .brand-logo { max-height:72px; width:310px; }
 [data-theme="camorasta"] main { max-width:1840px; padding:16px 24px; }
 .play-layout { grid-template-columns:minmax(0,1fr) 330px; gap:20px; }
 [data-theme="camorasta"] .game-card:not(:fullscreen) .court-wrap { width:min(100%,calc((100dvh - 280px) * 1200 / 610)); margin-inline:auto; }
 [data-theme="camorasta"] .game-card:not(:fullscreen) .scorebar { height:66px; padding-block:0; }
 [data-theme="camorasta"] .setup-card { min-height:0; max-height:calc(100dvh - 142px); overflow-y:auto; padding:16px; scrollbar-width:thin; scrollbar-color:#8f824a #172018; }
 .panel-top { margin-bottom:12px; }
 .setup-card h2 { font-size:26px; line-height:1.08; margin:14px 0 8px; }
 .mode-description { margin:8px 0 12px; line-height:1.45; }
 .field-label { margin:10px 0 6px; }
 .setup-card input,.setup-card select { height:34px; }
 .setup-card .primary { padding-block:12px; }
 .setup-card .panel-primary { margin-top:16px; }
 [data-theme="camorasta"] .setup-card::after { padding-top:10px; }
 .small-note { margin-block:10px; }
}

/* The Online directory stays reachable before room creation. */
.room-settings { margin-block:12px; }
.room-settings summary { cursor:pointer; padding:10px 0; font-size:11px; font-weight:700; color:#e4c774; }
.room-settings summary:focus-visible { outline:2px solid #f1cf78; outline-offset:3px; }
[data-theme="camorasta"] .or-line span { background:#1b251c; color:#bdc3ac; }
[data-theme="camorasta"] :is(.lobby-row-meta,.lobby-code,.lobby-empty) { color:#bdc3ac; }
[data-theme="camorasta"] :is(.lobby-actions button,.join-row button) { background:#293b2c; color:#f1ead3; border:1px solid #66744f; border-radius:5px; }
[data-theme="camorasta"] :is(.lobby-actions button,.join-row button):hover:not(:disabled) { background:#3c5138; border-color:#e4c774; }
[data-theme="camorasta"] .lobby-row:hover { background:#1d2b1f; border-color:#8c986d; }
.lobby-actions button { min-height:34px; }
.lobby-row-head { grid-column:1; }

/* Live users */
[data-theme="camorasta"] .header-caption { max-width:none; font-size:11px; }
.live-users { order:999; margin-top:14px; padding:12px 14px; border:1px solid #48533b; border-radius:10px; background:#172018; }
.live-users-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.live-users-head b { font:700 13px monospace; color:#d7bc70; }
.live-users-list { list-style:none; margin:0; padding:0; max-height:150px; overflow:auto; display:flex; flex-wrap:wrap; gap:6px; }
.live-users-list li { font:600 12px monospace; color:#d9dec7; background:#20291e; border:1px solid #48533b; border-radius:999px; padding:3px 10px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.live-users-list li.you { border-color:#d7bc70; color:#f5dc90; }
.live-users-list li small { color:#a99a60; font-size:10px; }
.live-users-list li.more { opacity:.7; }

.site-footer { position:fixed; right:16px; bottom:8px; z-index:3; font:700 10px monospace; letter-spacing:.18em; text-transform:uppercase; }
body.immersive .site-footer { display:none; }
@media(max-width:900px) { .site-footer { position:static; margin:6px auto 22px; text-align:center; } }
.site-footer a { color:#8a937c; text-decoration:none; }
.site-footer a:hover { color:#d7bc70; }

/* Online pause request banner: sits over the court while the others decide; the game keeps running. */
.pause-request { position:absolute; top:58px; left:50%; transform:translateX(-50%); z-index:7; display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:center; max-width:calc(100% - 24px); padding:8px 14px; border:1px solid #c3a454aa; border-radius:14px; background:#101b14ee; color:#f2e3b0; font:700 12px/1.4 monospace; letter-spacing:.04em; box-shadow:0 6px 20px #0009; }
.pause-request[hidden] { display:none; }
.pause-request button { font:800 11px/1 monospace; letter-spacing:.1em; text-transform:uppercase; padding:7px 12px; border-radius:999px; border:1px solid #c3a454; background:#d7bc70; color:#1b1f10; cursor:pointer; }
.pause-request button[hidden] { display:none; }
#pause-cancel { background:transparent; color:#d7bc70; }
