/* R57b Clubs — "holo club hall" look (Claude, 2026-10-25, Adam: "more futuristic, make it look cool").
   Deep-space glass panels with cyan/gold glow, neon tabs, holographic badges, a talking orb for voice messages.
   ChatGPT's club art (badges, hall background, sheets 46–50) drops into the same classes later. Motion stops when the device asks for less. */
.c57 { --c57-ink: #eaf6ff; --c57-dim: #a9c4e8; --c57-cyan: #38e1ff; --c57-gold: #ffc23d; --c57-glass: rgba(14, 26, 64, .72); --c57-edge: rgba(56, 225, 255, .38);
  color-scheme: light; position: relative; isolation: isolate; color: var(--c57-ink); padding: clamp(10px, 2.4vw, 22px); border-radius: 26px;
  background: radial-gradient(120% 70% at 85% -10%, rgba(120, 90, 255, .45), transparent 60%), radial-gradient(90% 60% at -10% 110%, rgba(56, 225, 255, .28), transparent 60%),
    linear-gradient(160deg, #0a1236 0%, #101b4d 45%, #1a1150 100%);
  box-shadow: 0 18px 50px rgba(5, 10, 40, .35), inset 0 0 0 1px rgba(120, 180, 255, .18); overflow: hidden; }
.c57::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #cfe9ff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 40% 62%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 70%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 22% 88%, #bfe3ff 50%, transparent 51%), linear-gradient(transparent 96%, rgba(56, 225, 255, .08) 97%), linear-gradient(90deg, transparent 96%, rgba(56, 225, 255, .06) 97%);
  background-size: auto, auto, auto, auto, auto, 44px 44px, 44px 44px; }
:root:not(#c57a):not(#c57b) body .c57 h1, :root:not(#c57a):not(#c57b) body .c57 h2, :root:not(#c57a):not(#c57b) body .c57 h3, :root:not(#c57a):not(#c57b) body .c57 b, :root:not(#c57a):not(#c57b) body .c57 label, :root:not(#c57a):not(#c57b) body .c57 legend { color: var(--c57-ink); }
:root:not(#c57a):not(#c57b) body .c57 .muted, :root:not(#c57a):not(#c57b) body .c57 .small.muted, :root:not(#c57a):not(#c57b) body .c57 .tiny.muted { color: var(--c57-dim) !important; }
:root:not(#c57a):not(#c57b) body .c57 a:not(.btn):not(.c57-card):not(.c57-tool):not(.pill) { color: var(--c57-cyan); }
:root:not(#c57a):not(#c57b) body .c57 .panel { background: var(--c57-glass) !important; color: var(--c57-ink); border: 1px solid var(--c57-edge) !important; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .25), 0 0 24px rgba(56, 225, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
:root:not(#c57a):not(#c57b) body .c57 .panel .empty, :root:not(#c57a):not(#c57b) body .c57 .panel .empty * { color: var(--c57-ink); }
:root:not(#c57a):not(#c57b) body .c57 input:not([type=checkbox]):not([type=file]), :root:not(#c57a):not(#c57b) body .c57 select, :root:not(#c57a):not(#c57b) body .c57 textarea { background: #f4f9ff !important; color: #10204a !important; -webkit-text-fill-color: #10204a !important; border: 2px solid rgba(56, 225, 255, .55) !important; border-radius: 14px; }
:root:not(#c57a):not(#c57b) body .c57 input:focus-visible, :root:not(#c57a):not(#c57b) body .c57 select:focus-visible, :root:not(#c57a):not(#c57b) body .c57 textarea:focus-visible, :root:not(#c57a):not(#c57b) body .c57 button:focus-visible, :root:not(#c57a):not(#c57b) body .c57 a:focus-visible { outline: 3px solid var(--c57-gold); outline-offset: 2px; }
:root:not(#c57a):not(#c57b) body .c57 .chk { color: var(--c57-ink); }
:root:not(#c57a):not(#c57b) body .c57 .pagehead, :root:not(#c57a):not(#c57b) body .c57 .pagehead h1, :root:not(#c57a):not(#c57b) body .c57 .pagehead p { color: var(--c57-ink) !important; }
/* neon tabs */
:root:not(#c57a):not(#c57b) body .c57 .m56-tabs { gap: 8px; }
:root:not(#c57a):not(#c57b) body .c57 .m56-tab { background: rgba(255, 255, 255, .06) !important; color: var(--c57-ink) !important; border: 1px solid rgba(56, 225, 255, .35) !important; box-shadow: none; }
:root:not(#c57a):not(#c57b) body .c57 .m56-tab[aria-selected="true"] { background: linear-gradient(135deg, #38e1ff, #6b7bff) !important; color: #06103a !important; border-color: transparent !important; box-shadow: 0 0 18px rgba(56, 225, 255, .55); }
:root:not(#c57a):not(#c57b) body .c57 .btn { border-radius: 14px; }
:root:not(#c57a):not(#c57b) body .c57 .btn:not(.primary):not(.danger) { background: rgba(255, 255, 255, .08); color: var(--c57-ink); border: 1px solid rgba(56, 225, 255, .4); }
:root:not(#c57a):not(#c57b) body .c57 .btn.primary { background: linear-gradient(135deg, #ffd34d, #ff9a3d); color: #2a1600; border: 0; box-shadow: 0 0 16px rgba(255, 194, 61, .45); }
:root:not(#c57a):not(#c57b) body .c57 .m56-rules { border-color: rgba(255, 194, 61, .55) !important; }
:root:not(#c57a):not(#c57b) body .c57 .m56-note.warn { background: rgba(255, 194, 61, .14); color: #ffe7a8; border: 1px solid rgba(255, 194, 61, .5); }
/* grid + cards */
.c57-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.c57-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
a.c57-card:hover, a.c57-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .35), 0 0 26px rgba(56, 225, 255, .35) !important; }
.c57-idea { border-style: dashed !important; }
/* holographic banner / badge */
.c57-banner { --c57a: #1468c4; --c57b: #38e1ff; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; color: #fff; position: relative; overflow: hidden; min-height: 82px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c57a) 85%, #000) 0%, var(--c57a) 45%, var(--c57b) 120%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 22px color-mix(in srgb, var(--c57b) 45%, transparent); }
.c57-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 45%, transparent 60%); transform: translateX(-120%); animation: c57-sheen 5.5s ease-in-out infinite; pointer-events: none; }
.c57-banner::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(transparent 92%, rgba(255, 255, 255, .12) 93%), linear-gradient(90deg, transparent 92%, rgba(255, 255, 255, .1) 93%); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
@keyframes c57-sheen { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.c57-banner .c57-emoji { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 58px; height: 58px; font-size: 34px; line-height: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #dff4ff 55%, #a8dcff 100%); box-shadow: 0 0 0 3px rgba(255, 210, 90, .9), 0 0 0 6px rgba(56, 225, 255, .35), 0 0 18px rgba(56, 225, 255, .6); }
.c57-banner > div { position: relative; z-index: 1; min-width: 0; }
.c57-banner.big { min-height: 132px; padding: 22px; }
.c57-banner.big .c57-emoji { width: 92px; height: 92px; font-size: 56px; }
.c57-banner.big .c57-name { font-size: 1.55rem; }
.c57-banner .c57-name { display: block; font-size: 1.1rem; letter-spacing: .01em; text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 0 12px rgba(255, 255, 255, .25); color: #fff; }
.c57-banner .c57-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
:root:not(#c57a):not(#c57b) body .c57-banner .pill { background: rgba(6, 16, 58, .55); color: #eaf6ff; border: 1px solid rgba(255, 255, 255, .35); }
:root:not(#c57a):not(#c57b) body .c57-banner .pill.warn { background: #ffd34d; color: #3a2600; border-color: transparent; }
/* talk */
.c57-post { position: relative; }
.c57-post.ann { border-left: 5px solid var(--c57-gold) !important; }
.c57-post.mine { border-color: rgba(255, 194, 61, .55) !important; }
.c57-post[data-hidden="1"] { opacity: .55; }
.c57-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.02rem; }
.c57-img { max-width: 100%; max-height: 420px; border-radius: 14px; display: block; box-shadow: 0 0 0 1px rgba(56, 225, 255, .35); }
.c57-compose textarea { width: 100%; }
.c57-inputrow { display: flex; gap: 8px; align-items: stretch; }
.c57-inputrow textarea { flex: 1; }
.c57-dict { flex: none; width: 52px; min-height: 52px; border-radius: 16px; border: 1px solid rgba(56, 225, 255, .5); background: rgba(56, 225, 255, .12); font-size: 24px; cursor: pointer; }
.c57-dict.on { background: #ff4d6d; box-shadow: 0 0 0 4px rgba(255, 77, 109, .3), 0 0 18px rgba(255, 77, 109, .6); animation: c57-pulse 1.2s ease-in-out infinite; }
.c57-send { min-width: 120px; }
/* the talking orb (voice messages) */
.c57-rec { display: grid; justify-items: center; gap: 10px; padding: 8px 0; }
.c57-orb { position: relative; width: 120px; height: 120px; }
.c57-orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(56, 225, 255, .55); }
.c57-orb i:nth-child(2) { inset: 14px; border-color: rgba(255, 194, 61, .6); }
.c57-orb i:nth-child(3) { inset: 28px; background: radial-gradient(circle at 40% 35%, #8af0ff, #1f6bff 70%); border: 0; box-shadow: 0 0 30px rgba(56, 225, 255, .7); }
.c57-rec[data-state="rec"] .c57-orb i { animation: c57-ring 1.4s ease-out infinite; }
.c57-rec[data-state="rec"] .c57-orb i:nth-child(2) { animation-delay: .35s; }
.c57-rec[data-state="rec"] .c57-orb i:nth-child(3) { animation: c57-pulse 1s ease-in-out infinite; background: radial-gradient(circle at 40% 35%, #ffb3c1, #ff3d6e 70%); }
@keyframes c57-ring { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes c57-pulse { 50% { transform: scale(1.08); } }
.c57-mic { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; font-size: 1.05rem; color: #06103a;
  background: linear-gradient(135deg, #38e1ff, #7cffb2); box-shadow: 0 0 22px rgba(56, 225, 255, .55); }
.c57-mic .ic { font-size: 26px; }
.c57-mic[aria-pressed="true"] { background: linear-gradient(135deg, #ff6b8a, #ffb36b); }
.c57-compose.young .c57-mic { min-height: 76px; font-size: 1.3rem; padding: 0 30px; }
.c57-compose.young .c57-mic .ic { font-size: 38px; }
.c57-big { font-size: 1.25rem; font-weight: 800; text-align: center; margin: 0; }
.c57-time { font-variant-numeric: tabular-nums; color: var(--c57-dim); }
.c57-rec[data-state="idle"] .c57-time { visibility: hidden; }
.c57-live { width: min(100%, 320px); border-radius: 16px; background: #000; aspect-ratio: 4 / 3; object-fit: cover; }
.c57-rec[data-state="idle"] .c57-live { display: none; }
.c57-play audio, .c57-voice audio { width: min(100%, 360px); }
.c57-voice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(56, 225, 255, .1); border: 1px solid rgba(56, 225, 255, .35); }
.c57-voice .wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.c57-voice .wave i { width: 4px; height: var(--h); border-radius: 3px; background: linear-gradient(var(--c57-cyan), #6b7bff); }
/* tools */
.c57-tool { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.c57-tool .c57-emoji { font-size: 30px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(56, 225, 255, .14); box-shadow: 0 0 0 2px rgba(56, 225, 255, .45); }
@media (max-width: 600px) { .c57 { border-radius: 18px; padding: 10px; } .c57-banner.big .c57-emoji { width: 70px; height: 70px; font-size: 42px; } .c57-banner.big .c57-name { font-size: 1.2rem; } }
@media (prefers-reduced-motion: reduce) { .c57-banner::before, .c57-rec .c57-orb i, .c57-dict.on { animation: none !important; } }
/* words on the glass panels stay light even where the Version 4 look paints panel text dark */
:root:not(#c57a):not(#c57b) body .c57 .panel, :root:not(#c57a):not(#c57b) body .c57 .panel :is(p, b, strong, span:not(.pill), small, label, h2, h3, li, legend, div, .c57-text) { color: var(--c57-ink) !important; -webkit-text-fill-color: var(--c57-ink) !important; }
:root:not(#c57a):not(#c57b) body .c57 .panel :is(.muted, .tiny.muted, .small.muted) { color: var(--c57-dim) !important; -webkit-text-fill-color: var(--c57-dim) !important; }
:root:not(#c57a):not(#c57b) body .c57 .panel a:not(.btn):not(.c57-card):not(.c57-tool) { color: var(--c57-cyan) !important; -webkit-text-fill-color: var(--c57-cyan) !important; }
:root:not(#c57a):not(#c57b) body .c57 .panel .c57-mic, :root:not(#c57a):not(#c57b) body .c57 .panel .c57-mic * { color: #06103a !important; -webkit-text-fill-color: #06103a !important; }
:root:not(#c57a):not(#c57b) body .c57 .panel .btn.primary, :root:not(#c57a):not(#c57b) body .c57 .panel .btn.primary * { color: #2a1600 !important; -webkit-text-fill-color: #2a1600 !important; }
:root:not(#c57a):not(#c57b) body .c57 .c57-banner .pill.warn { color: #3a2600 !important; -webkit-text-fill-color: #3a2600 !important; }
:root:not(#c57a):not(#c57b) body .c57 .c57-banner .pill { background: rgba(6, 16, 58, .62) !important; color: #eaf6ff !important; -webkit-text-fill-color: #eaf6ff !important; border: 1px solid rgba(255, 255, 255, .4) !important; }
:root:not(#c57a):not(#c57b) body .c57 .c57-banner .pill.warn { background: #ffd34d !important; color: #3a2600 !important; -webkit-text-fill-color: #3a2600 !important; border-color: transparent !important; }
