/* Not Wavelength on the phones: the team picker, a big what-to-do bar, the dial you
   drag, the card, LEFT and RIGHT. Dark rules first, then the light theme. */
.wlp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; }
.wlp [hidden] { display: none !important; }
.wlp .t-west, .wlp.t-west, .wlp-moment.t-west, .wlp-team.t-west { --tc: var(--wl-west); --tc2: var(--wl-west-2); }
.wlp .t-east, .wlp.t-east, .wlp-moment.t-east, .wlp-team.t-east { --tc: var(--wl-east); --tc2: var(--wl-east-2); }
.wlp .t-coop, .wlp.t-coop, .wlp-moment.t-coop, .wlp-coopbox { --tc: #e5533d; --tc2: #a8321f; }
.wlp .avatar.sm { width: 26px; height: 26px; font-size: 12px; }

/* ---- picking teams ---- */
.wlp-logo { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 0 2px; }
.wlp-not { font-family: var(--wl-font); background: #e5533d; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .18em; padding: 4px 6px 4px 10px; border-radius: 6px; transform: rotate(-7deg); }
.wlp-lword { position: relative; font-family: var(--wl-font); font-size: 30px; font-weight: 500; letter-spacing: .16em; line-height: 1; padding-bottom: 7px; }
.wlp-lword::after { content: ''; position: absolute; left: 2px; right: .16em; bottom: 0; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #eba62f 0 20%, #e5533d 20% 40%, #4f7d9c 40% 60%, #e5533d 60% 80%, #eba62f 80%); }
.wlp-hint { text-align: center; color: var(--label-2); font-size: 15px; }
.wlp-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wlp-team, .wlp-coopbox { text-align: left; border: 3px solid transparent; border-radius: 20px; padding: 0 0 10px; background: rgba(0,0,0,.3); color: var(--text); display: flex; flex-direction: column; gap: 8px; overflow: hidden; cursor: pointer; min-height: 200px; transition: transform .12s, border-color .2s; }
.wlp-coopbox { cursor: default; min-height: 0; }
.wlp-team:active { transform: scale(.98); }
.wlp-team.mine { border-color: var(--wl-gold); box-shadow: 0 0 0 4px rgba(255,184,0,.25), 0 10px 26px rgba(0,0,0,.3); }
.wlp-tn { font-family: var(--wl-font); font-size: 21px; font-weight: 800; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, var(--tc), var(--tc2)); padding: 9px 12px; display: flex; align-items: center; }
.wlp-tn i { font-style: normal; margin-left: auto; font-size: 15px; background: rgba(255,255,255,.25); border-radius: 999px; padding: 2px 10px; }
.wlp-mems { display: flex; flex-direction: column; gap: 6px; padding: 0 10px; flex: 1; }
.wlp-mem { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; min-width: 0; flex-wrap: wrap; }
.wlp-mem em { font-style: normal; font-size: 11px; color: var(--label-2); font-weight: 600; }
.wlp-firsttag { font-size: 9px; font-weight: 900; letter-spacing: .1em; background: #e5533d; color: #fff; padding: 2px 6px; border-radius: 999px; }
.wlp-empty { color: var(--label-3); font-size: 14px; }
.wlp-join { margin: 0 10px; text-align: center; font-size: 13px; font-weight: 800; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--tc) 22%, transparent); }
.wlp-team.mine .wlp-join { background: var(--wl-gold); color: #1b1b1b; }
.wlp-firstbtn { background: linear-gradient(120deg, #ff8a6b, #e5533d); color: #fff; font-weight: 800; }
.wlp-explain { font-size: 14px; color: var(--label-2); line-height: 1.4; text-align: center; padding: 0 6px; }
.wlp-explain b { color: var(--text); }
.wlp-lead { background: rgba(0,0,0,.3); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wlp-ltitle { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--label-2); }
.wlp-lrow { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.wlp-coopbtn { font-size: 15px; }
.wlp-prob { font-size: 13px; color: var(--label-2); line-height: 1.35; }
.wlp-prob.no { color: #ff8a7a; font-weight: 700; }
.wlp-wait { text-align: center; color: var(--label-2); font-size: 15px; padding: 8px; }

/* ---- the bar: what to do now ---- */
.wlp-bar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; min-height: 64px; }
.wlp-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wlp-bar b { font-family: var(--wl-font); font-size: 24px; font-weight: 800; letter-spacing: .01em; line-height: 1; }
.wlp-bar span { font-size: 15px; font-weight: 700; }
.wlp-bar.me { background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: wlp-pop .35s cubic-bezier(.2,1.4,.4,1) both, wlp-throb 1.6s ease-in-out .4s infinite; }
.wlp-bar.me:has(.tclock.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
.wlp-bar.me .tclock.urgent .fg { stroke: #fff; }
.wlp-bar .tclock { width: 58px; height: 58px; }
.wlp-bar .tclock b { font-size: 22px; }
.wlp-bar.end { flex-direction: column; align-items: flex-start; gap: 4px; background: linear-gradient(135deg, var(--tc), var(--tc2)); color: #fff; animation: wlp-pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.wlp-bar.end b { font-size: 30px; }
.wlp-bar.idle { background: rgba(0,0,0,.3); color: var(--label-2); min-height: 52px; }
.wlp-bar.idle .wlp-txt { font-weight: 600; font-size: 15px; flex: 1; min-width: 0; }
.wlp-bar.idle span b { font-family: var(--font); font-size: 15px; color: var(--tc, var(--text)); }
.wlp-bar .wlp-cd { flex: none; margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--text); }
.wlp-bar .wlp-cd .countdown { font-size: 18px; min-width: 0; }
.wlp-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--tc, #888); box-shadow: 0 0 10px var(--tc, #888); }
@keyframes wlp-pop { from { transform: scale(.85); opacity: 0; } }
@keyframes wlp-throb { 50% { box-shadow: 0 10px 40px rgba(255,190,0,.75); transform: scale(1.015); } }
body.wlp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: wlp-frame 1.6s ease-in-out infinite; }
@keyframes wlp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.wlp-scores { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--label-2); font-weight: 600; }
.wlp-sc b { font-family: var(--wl-font); font-size: 24px; font-weight: 800; color: var(--tc, var(--text)); margin: 0 3px; vertical-align: -2px; }
.wlp-me { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tc, #888) 24%, transparent); color: var(--text); }
.wlp-sd { flex-basis: 100%; text-align: center; font-size: 12px; font-weight: 900; letter-spacing: .2em; color: #fff; background: #e5383b; border-radius: 999px; padding: 3px; }

/* ---- the main area ---- */
.wlp-main { display: flex; flex-direction: column; gap: 10px; }
.wlp-dialbox { position: relative; width: 100%; margin-top: 4px; }
.wlp-dialbox .wl-dial { filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); }
.wlp-dialbox.can { touch-action: none; cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.wlp-dialbox.can::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 90%; height: 6px; transform: translateX(-50%); border-radius: 3px; background: var(--wl-gold); opacity: .0; transition: opacity .2s; }
.wlp-dialbox.grab { cursor: grabbing; }
.wlp-dialbox.grab::after { opacity: .9; }
.wlp-dialbox.psy::before { content: 'ONLY YOU SEE THIS'; position: absolute; z-index: 2; right: 0; top: -2px; font-size: 10px; font-weight: 900; letter-spacing: .14em; background: #e5533d; color: #fff; padding: 3px 8px; border-radius: 999px; }
.wlp-card { border-radius: 10px; }
.wlp-cluebig { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fffdf8; color: #1b1a22; border-radius: 18px; padding: 8px 14px 10px; box-shadow: 0 8px 20px rgba(0,0,0,.25); text-align: center; animation: wlp-pop .4s cubic-bezier(.2,1.4,.4,1) both; }
.wlp-cluebig small { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--tc); }
.wlp-cluebig b { font-family: var(--wl-font); font-size: 26px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.wlp-q { font-family: var(--wl-font); font-size: 22px; font-weight: 700; text-align: center; margin-top: 4px; }
.wlp-note, .wlp-tip { font-size: 13px; color: var(--label-2); text-align: center; line-height: 1.4; padding: 0 8px; }
.wlp-side { display: block; width: 100%; padding: 0; border: none; background: none; border-radius: 12px; cursor: pointer; transition: transform .12s; }
.wlp-side:active { transform: scale(.97); }
.wlp-side .wlcard { box-shadow: 0 0 0 3px rgba(255,255,255,.65), 0 10px 22px rgba(0,0,0,.35); }
.wlp-side.picked .wlcard { box-shadow: 0 0 0 4px var(--wl-gold), 0 10px 22px rgba(0,0,0,.35); }
.wlp-compose { display: flex; gap: 8px; }
.wlp-compose input { flex: 1; min-width: 0; font-size: 18px; font-weight: 600; }
.wlp-compose .btn { width: auto; flex: none; padding: 0 22px; }
.wlp-hint { transition: color .2s; }
#wlp-hint { font-size: 13px; color: var(--label-2); text-align: left; padding: 0 2px; line-height: 1.35; }
#wlp-hint.warn { color: #ffb36b; font-weight: 700; }
.wlp-rules { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.wlp-rules span { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; background: var(--fill); color: var(--label-2); }
.wlp-poker { text-align: center; font-size: 15px; font-weight: 800; color: #fff; background: #e5533d; border-radius: 14px; padding: 10px 12px; }
.wlp-waitbox { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; color: var(--label-2); padding: 6px; }
.wlp-waitbox b { color: var(--text); }
.wlp-dots { display: inline-flex; gap: 4px; margin-left: 6px; }
.wlp-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: wlp-dot 1.2s ease-in-out infinite; }
.wlp-dots i:nth-child(2) { animation-delay: .2s; } .wlp-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes wlp-dot { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
.wlp-mover { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 26px; font-size: 14px; color: var(--label-2); }
.wlp-mover:empty { min-height: 0; display: none; }
.wlp-mover .avatar { width: 24px; height: 24px; font-size: 11px; }
.wlp-mover b { color: var(--text); }
.wlp-act { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; }
.wlp-nudge { height: 56px; border: none; border-radius: 14px; background: var(--bg-3); color: var(--text); font-size: 30px; font-weight: 700; line-height: 1; cursor: pointer; }
.wlp-nudge:active { transform: scale(.95); }
.wlp-lock { background: linear-gradient(180deg, #e2384a, #b81d31); color: #fff; font-weight: 800; font-size: 19px; min-height: 56px; box-shadow: 0 8px 20px rgba(216,40,60,.35); }
.wlp-lr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wlp-lrbtn { min-height: 104px; border: none; border-radius: 18px; background: var(--bg-3); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: transform .1s, background .2s, box-shadow .2s; }
.wlp-lrbtn b { font-family: var(--wl-font); font-size: 26px; font-weight: 800; letter-spacing: .06em; }
.wlp-lrbtn:active { transform: scale(.97); }
.wlp-lrbtn.on { background: linear-gradient(135deg, var(--tc), var(--tc2)); color: #fff; box-shadow: 0 0 0 3px var(--wl-gold), 0 10px 24px rgba(0,0,0,.3); }
.wlp-lrv { display: flex; gap: 3px; min-height: 22px; flex-wrap: wrap; justify-content: center; }
.wlp-lrv .avatar { width: 22px; height: 22px; font-size: 10px; box-shadow: 0 0 0 2px #fff; }
.wlp-votes { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 800; color: var(--label-2); }
.wlp-votes:empty { display: none; }
.wlp-votes span { display: inline-flex; align-items: center; gap: 4px; }
.wlp-votes .avatar { width: 22px; height: 22px; font-size: 10px; }
.wlp-result { text-align: center; animation: wlp-pop .4s 1.3s cubic-bezier(.2,1.4,.4,1) both; }
.wlp-rhead { display: inline-block; font-family: var(--wl-font); font-size: 26px; font-weight: 800; padding: 8px 20px; border-radius: 999px; background: #3a3a44; color: #fff; }
.wlp-rhead.z4 { background: #4f7d9c; } .wlp-rhead.z3 { background: #e5533d; } .wlp-rhead.z2 { background: #eba62f; color: #1b1a22; }
.wlp-rsub { font-size: 14px; color: var(--label-2); margin-top: 6px; font-weight: 600; }
.wlp-final { text-align: center; }
.wlp-fbig { font-family: var(--wl-font); font-size: 72px; font-weight: 800; line-height: 1; }
.wlp-fsub { font-size: 14px; color: var(--label-2); font-weight: 600; }
.wlp-rating { font-family: var(--wl-font); font-size: 22px; font-weight: 700; margin-top: 6px; }
.wlp-fscore { display: flex; align-items: center; justify-content: center; gap: 16px; }
.wlp-fscore span { display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--label-2); }
.wlp-fscore b { font-family: var(--wl-font); font-size: 60px; font-weight: 800; line-height: 1; color: var(--tc); }
.wlp-fscore i { font-style: normal; font-size: 40px; color: var(--label-3); }
.wlp-log { font-size: 12px; color: var(--label-3); text-align: center; line-height: 1.4; }
.wlp-log div:last-child { color: var(--label-2); }

/* ---- the lock-in sheet ---- */
.wlp-ov { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; animation: wlp-fade .2s both; }
@keyframes wlp-fade { from { opacity: 0; } }
.wlp-sheet { width: 100%; max-width: 520px; margin: 0 auto; background: var(--bg-2); border-radius: 22px 22px 0 0; padding: 20px 16px calc(var(--safe-bottom) + 18px); display: flex; flex-direction: column; gap: 10px; animation: wlp-up .28s cubic-bezier(.2,1.1,.4,1) both; }
@keyframes wlp-up { from { transform: translateY(100%); } }
.wlp-sq { font-family: var(--wl-font); font-size: 24px; font-weight: 800; text-align: center; }
.wlp-ssub { font-size: 14px; color: var(--label-2); text-align: center; margin-bottom: 4px; }
.wlp-lockyes { background: linear-gradient(180deg, #e2384a, #b81d31); }

/* ---- the big moments ---- */
.wlp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle, color-mix(in srgb, var(--tc, #4f7d9c) 60%, transparent), rgba(5,8,24,.7) 75%); animation: wlp-moment 3s ease both; }
.wlp-moment.k-bullseye { background: radial-gradient(circle, rgba(79,125,156,.75), rgba(5,8,24,.72) 75%); }
.wlp-moment.k-sudden { background: radial-gradient(circle, rgba(229,56,59,.7), rgba(5,8,24,.75) 75%); }
@keyframes wlp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
.wlp-moment .big { font-family: var(--wl-font); font-size: 54px; font-weight: 900; line-height: .95; color: #fff; text-align: center; padding: 0 14px; text-shadow: 4px 4px 0 var(--tc, #e5533d), 8px 8px 0 rgba(0,0,0,.3); transform: rotate(-5deg); animation: wlp-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.wlp-moment.k-bullseye .big { text-shadow: 4px 4px 0 #e5533d, 8px 8px 0 #eba62f; }
@keyframes wlp-slam { from { transform: rotate(-5deg) scale(2.2); opacity: 0; } }
.wlp-moment .who { background: rgba(0,0,0,.7); color: #fff; font-size: 16px; font-weight: 800; padding: 8px 16px; border-radius: 999px; max-width: 90vw; text-align: center; }
.wlp-mbands { display: flex; width: 170px; height: 70px; border-radius: 0 0 85px 85px; overflow: hidden; transform: rotate(180deg); }
.wlp-mbands i { flex: 1; } .wlp-mbands .b2 { background: #eba62f; } .wlp-mbands .b3 { background: #e5533d; } .wlp-mbands .b4 { background: #4f7d9c; }

/* ---- light theme ---- */
[data-theme="light"] .wlp-team, [data-theme="light"] .wlp-coopbox, [data-theme="light"] .wlp-lead { background: rgba(255,255,255,.82); box-shadow: 0 6px 18px rgba(60,40,10,.08); }
[data-theme="light"] .wlp-team.mine { border-color: #f0a800; }
[data-theme="light"] .wlp-bar.idle { background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgba(30,40,80,.08); }
[data-theme="light"] .wlp-dialbox .wl-dial { filter: drop-shadow(0 8px 14px rgba(60,40,10,.22)); }
[data-theme="light"] .wlp-cluebig { box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 8px 20px rgba(60,40,10,.14); }
[data-theme="light"] .wlp-nudge, [data-theme="light"] .wlp-lrbtn { background: #fff; box-shadow: 0 4px 12px rgba(30,40,80,.1); }
[data-theme="light"] .wlp-lrbtn.on { background: linear-gradient(135deg, var(--tc), var(--tc2)); }
[data-theme="light"] .wlp-rules span { background: rgba(255,255,255,.85); }
[data-theme="light"] #wlp-hint.warn { color: #c25a00; }
[data-theme="light"] .wlp-prob.no { color: #c0321f; }
[data-theme="light"] .wlp-sheet { background: #fff; }
