.cc { padding-top: 0.75rem; }
.cc-wrap { --cc-size: 44px; --cc-bg: #0d0d0c; --cc-ink: #fffaf0; position: relative; background: var(--cc-bg); color: var(--cc-ink); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 360px; }
.cc-wrap.bg-light { --cc-bg: #fffdf6; --cc-ink: #111; }
.cc-wrap.bg-green { --cc-bg: #00b140; --cc-ink: #fff; }
.cc-wrap.bg-green .cc-stage { text-shadow: 0 2px 0 #000, 0 0 6px #000, 2px 0 0 #000, -2px 0 0 #000, 0 -2px 0 #000; }
.cc-wrap.full { position: fixed; inset: 0; z-index: 9999; height: auto; border-radius: 0; }
.cc-stage { position: relative; flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 20px 8px; font: 700 var(--cc-size)/1.25 "Nunito", "Trebuchet MS", system-ui, sans-serif; transition: transform 0.4s; }
.cc-wrap.flip .cc-stage { transform: rotate(180deg); }
.cc-hello { font-size: 0.5em; font-weight: 400; opacity: 0.7; margin: auto 0; max-width: none; }
.cc-line { margin: 0 0 0.3em; max-width: none; transition: opacity 0.6s; }
.cc-line.old { opacity: 0.45; }
.cc-line.older { opacity: 0.22; }
.cc-live { opacity: 0.55; font-weight: 400; }
.cc-w { display: inline-block; margin-right: 0.26em; animation: cc-in 0.28s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes cc-in { from { opacity: 0; transform: translateY(0.4em) scale(0.7); } }
.cc-emo { display: inline-block; margin-right: 0.26em; animation: cc-bounce 0.6s ease both; }
@keyframes cc-bounce { 0% { transform: scale(0) rotate(-30deg); } 60% { transform: scale(1.35) rotate(8deg); } 100% { transform: none; } }
.fx-hype { color: #ffd23f; text-shadow: 0 0 12px rgba(255, 210, 63, 0.8); animation: cc-in 0.28s both, cc-pulse 1.2s ease 0.3s 2; }
.fx-love { color: #ff6fae; animation: cc-in 0.28s both, cc-pulse 0.9s ease 0.3s 3; }
.fx-laugh { background: linear-gradient(90deg, #ff5f5f, #ffd23f, #4be37f, #4bc6ff, #c77dff); -webkit-background-clip: text; background-clip: text; color: transparent; animation: cc-in 0.28s both, cc-wiggle 0.35s ease 0.3s 4; }
.fx-shake { color: #ff7043; animation: cc-in 0.28s both, cc-shake 0.12s linear 0.3s 6; }
.fx-num { color: #7fd8ff; }
.fx-yes { color: #4be37f; }
.fx-no { color: #ff6b6b; }
.fx-q { color: #c7a6ff; }
.cc-wrap.bg-light .fx-hype { color: #b07800; text-shadow: none; }
.cc-wrap.bg-light .fx-num { color: #0a6ea8; }
@keyframes cc-pulse { 50% { transform: scale(1.18); } }
@keyframes cc-wiggle { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes cc-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.cc-float { position: absolute; bottom: 70px; font-size: 42px; pointer-events: none; animation: cc-float 2.4s ease-out both; z-index: 3; }
@keyframes cc-float { from { transform: translateY(0) scale(0.6); opacity: 1; } to { transform: translateY(-60vh) scale(1.3) rotate(20deg); opacity: 0; } }
.cc-gif { position: absolute; top: 14px; right: 14px; max-width: 38%; max-height: 40%; border-radius: 10px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5); animation: cc-bounce 0.5s ease both; z-index: 4; }
.cc-wrap.flip .cc-gif { top: auto; right: auto; bottom: 70px; left: 14px; transform: rotate(180deg); animation: none; }
.cc-bar, .cc-panel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.95rem; }
.cc-panel { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.cc-wrap button { font: inherit; padding: 0.45rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; }
.cc-wrap button.cc-go { background: #2ee6d6; border-color: #2ee6d6; color: #101010; font-weight: 700; min-width: 5.5em; }
.cc-wrap button.cc-go.on { background: #d8261c; border-color: #d8261c; color: #fff; animation: cc-pulse 1.6s ease infinite; }
.cc-wrap select { font: inherit; padding: 0.2rem; }
.cc-wrap.full.running .cc-bar { opacity: 0.25; transition: opacity 0.3s; }
.cc-wrap.full.running .cc-bar:hover, .cc-wrap.full.running .cc-bar:focus-within { opacity: 1; }
.cc-note { font-size: 0.85rem; color: #a8a397; margin-top: 0.75rem; }
.cc-err { color: #ff8a80; font-size: 0.5em; font-weight: 400; }
@media (max-width: 600px) { .cc-wrap { height: calc(100vh - 120px); } .cc-stage { padding: 10px 12px 6px; } }
@media (prefers-reduced-motion: reduce) { .cc-w, .cc-emo, .fx-hype, .fx-love, .fx-laugh, .fx-shake, .cc-float { animation: none !important; } }
.cc-panel[hidden], .cc-gif[hidden] { display: none; }
.cc-quip { font-size: 0.55em; font-style: italic; font-weight: 600; color: #7ff0f5; animation: cc-in 0.4s both; }
.cc-wrap.bg-light .cc-quip { color: #0b7d88; }
.cc-wrap button#cc-herald.on { background: #5b3fa0; border-color: #9c7bff; }
.cc-room-status { flex-basis: 100%; font-size: 0.85rem; opacity: 0.85; }
#cc-room-code { width: 6.5em; font: inherit; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.35rem 0.5rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.35); background: rgba(0,0,0,0.3); color: #fff; }
.cc-wrap button#cc-sync.on { background: #14b8a6; border-color: #2ee6d6; color: #101010; font-weight: 700; }
.cc-roombox[hidden] { display: none; }
#cc-roombox[hidden] { display: none; }
/* caption styles: each person in a room gets their own color and font */
.cc-right { text-align: right; }
.cc-right .cc-w { animation: cc-slide 0.3s ease both; }
.cc-st-ocean .cc-w, .cc-chip.cc-st-ocean { color: #5ce8f0; font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.cc-st-neon .cc-w, .cc-chip.cc-st-neon { color: #ff8fc7; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600; letter-spacing: -0.02em; }
.cc-st-lime .cc-w, .cc-chip.cc-st-lime { color: #b8f34a; font-family: "Arial Black", Impact, sans-serif; font-weight: 900; }
.cc-st-sunset .cc-w, .cc-chip.cc-st-sunset { color: #ffb057; font-family: "Trebuchet MS", "Nunito", sans-serif; font-weight: 800; }
.cc-st-violet .cc-w, .cc-chip.cc-st-violet { color: #c7a6ff; font-family: "Comic Sans MS", "Chalkboard SE", "Marker Felt", cursive; font-weight: 700; }
.cc-wrap.bg-light .cc-st-ocean .cc-w { color: #0b7d88; }
.cc-wrap.bg-light .cc-st-neon .cc-w { color: #b3246b; }
.cc-wrap.bg-light .cc-st-lime .cc-w { color: #4d7a00; }
.cc-wrap.bg-light .cc-st-sunset .cc-w { color: #b25a00; }
.cc-wrap.bg-light .cc-st-violet .cc-w { color: #6b45c9; }
.cc-who { display: block; font: 700 0.32em/1.4 "Inter", system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; margin-bottom: 0.1em; }
.cc-st-ocean .cc-who { color: #5ce8f0; } .cc-st-neon .cc-who { color: #ff8fc7; } .cc-st-lime .cc-who { color: #b8f34a; }
.cc-st-sunset .cc-who { color: #ffb057; } .cc-st-violet .cc-who { color: #c7a6ff; }
.cc-roster { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.cc-roster:empty { display: none; }
.cc-chip { padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; font-size: 0.9rem; color: #fffaf0; }
#cc-name { width: 9em; font: inherit; padding: 0.35rem 0.5rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.35); background: rgba(0,0,0,0.3); color: #fff; }
.cc-wrap.flip .cc-right { text-align: left; }
@keyframes cc-slide { from { opacity: 0; transform: translateX(0.6em); } }
.cc-unit { display: inline; }
.cc-lockhint { font-size: 0.8rem; opacity: 0.7; }
.cc-wrap select:disabled, #cc-name:disabled { opacity: 0.5; cursor: not-allowed; }
