:root{--room-ink:#201848;--room-purple:#7556ed;--room-pink:#ff4f87;--room-muted:#706982;--room-line:#e8e1f1}.friend-room-page{margin:0;color:var(--room-ink);font-family:Inter,ui-rounded,system-ui,sans-serif;background:radial-gradient(ellipse at 10% 20%,#fff0b9,transparent 40%),radial-gradient(ellipse at 90% 25%,#ede2ff,transparent 38%),#fffaf5;min-height:100vh}.friend-room-page *,.friend-create-dialog *,.friend-launch *{box-sizing:border-box}.friend-room-page [hidden],.friend-create-dialog [hidden]{display:none!important}.room-nav{max-width:1200px;margin:auto;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:14px}.room-brand{color:var(--room-ink);text-decoration:none;font-size:19px;font-weight:900;letter-spacing:-.04em;display:flex;gap:10px;align-items:center}.room-brand span{font-size:34px}.room-private{padding:8px 13px;border:1px solid #d8ccef;border-radius:30px;background:#ffffffaa;font-size:12px;font-weight:800}.room-shell{max-width:1180px;padding:15px 24px 55px;margin:auto}.room-heading{text-align:center;padding:20px 0 12px}.room-heading h1{font-size:clamp(34px,6vw,64px);letter-spacing:-.055em;line-height:1.06;margin:12px 0}.room-heading p{color:var(--room-muted);font-size:17px}.room-eyebrow{color:#7556be;text-transform:uppercase;letter-spacing:.15em;font-size:11px;font-weight:900}.room-connection{text-align:center;color:#5d5188;font-size:13px;min-height:20px}.room-connection[data-offline=true]{color:#8f3b23;background:#fff0dc;border-radius:12px;padding:10px}.room-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:45px;align-items:start}.room-stage{text-align:center;padding:16px 0}.room-turn{display:inline-block;padding:12px 22px;border-radius:30px;background:#201848;color:white;font-weight:850;margin:0 0 8px}.room-turn[data-mine=true]{background:#7050de}.room-category{font-size:15px;font-weight:850;min-height:20px;margin:12px 0 28px}.room-wheel-wrap{position:relative;max-width:560px;margin:auto;aspect-ratio:1;filter:drop-shadow(0 24px 28px #44337825)}#room-wheel{display:block;width:100%;height:100%;border-radius:50%;background:white;border:10px solid white;box-shadow:0 0 0 3px var(--room-ink);will-change:transform}.room-pointer{position:absolute;z-index:2;top:-17px;left:50%;transform:translateX(-50%);width:35px;height:56px;background:var(--room-ink);clip-path:polygon(0 0,100% 0,50% 100%)}.room-spin{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:112px;height:112px;border:6px solid white;border-radius:50%;background:var(--room-ink);color:white;font:900 19px system-ui;cursor:pointer;box-shadow:0 6px 0 #7563ad}.room-spin:disabled{cursor:default;background:#554b71}.room-spin:focus-visible{outline:4px solid #ffb400;outline-offset:6px}.room-spin-status{min-height:24px;font-size:14px;color:#6d5d83;margin:24px 0 12px}.room-result{border:2px solid var(--room-ink);border-radius:22px;background:#fff4b9;padding:23px;margin:16px 0 24px;box-shadow:5px 6px 0 var(--room-ink);text-align:left}.room-result h2{font-size:15px;margin:0 0 12px}.room-result p{font-size:21px;font-weight:850;margin:12px 0;overflow-wrap:anywhere}.room-result small{font-size:12px;color:#715a62;display:block;margin-bottom:3px}.room-sidebar{display:grid;gap:18px;padding-top:16px}.room-card{padding:22px;background:#ffffffdc;border:1px solid white;border-radius:24px;box-shadow:0 10px 25px #4433780d}.room-card h2{font-size:17px;letter-spacing:-.025em;margin:0 0 12px}.room-card>p{font-size:14px;line-height:1.6;color:var(--room-muted)}.room-invite{background:#eee7ff}.room-invite>span{font-size:30px;display:block;margin-bottom:12px}.room-primary,.friend-launch-button{border:2px solid #201848;border-radius:14px;background:#201848;color:white;padding:13px 18px;font:800 14px/1.3 system-ui;cursor:pointer;box-shadow:3px 4px 0 #b8a6e2}.room-invite .room-primary{width:100%}.room-primary:disabled,.friend-launch-button:disabled{opacity:.6;cursor:wait}.room-primary:hover,.friend-launch-button:hover{background:#563eaa}.room-text-button{display:block;border:0;background:none;padding:14px 0 0;color:#5939b6;font:800 13px system-ui;cursor:pointer}.room-secondary-actions{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}.room-secondary-actions button{border:1px solid #d8ccef;background:#ffffffc9;border-radius:30px;padding:10px 15px;color:#5b467c;font:750 12px system-ui;cursor:pointer}.room-secondary-actions button:disabled{opacity:.5;cursor:default}.room-players,.room-history{list-style:none;margin:0;padding:0}.room-players li{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--room-line);padding:12px 0;font-size:13px;overflow-wrap:anywhere}.room-player-dot{width:9px;height:9px;border-radius:50%;background:#c9c1d1;flex-shrink:0}.room-player-dot[data-online=true]{background:#3cbd93}.room-player-name{flex:1;min-width:0}.room-player-tag{font-size:10px;font-weight:850;color:#6b4ac2;text-align:right}.room-muted{font-size:12px!important;line-height:1.6;color:var(--room-muted)}.room-history{max-height:340px;overflow-y:auto}.room-history li{font-size:13px;line-height:1.5;padding:12px 0;border-bottom:1px solid var(--room-line);overflow-wrap:anywhere}.room-history b{display:block;color:#71579b;margin-bottom:4px;font-size:11px}.room-expiry{font-size:11px;color:#7e728a;text-align:center;line-height:1.7;margin:0}.room-options{margin-top:28px;text-align:left;border:1px solid var(--room-line);padding:16px 20px;border-radius:18px;background:#ffffffa6}.room-options summary{font-size:13px;font-weight:800;cursor:pointer}.room-options h3{font-size:14px;margin-bottom:6px}.room-options ul{display:flex;flex-wrap:wrap;list-style:none;padding:0;gap:7px}.room-options li{font-size:12px;padding:7px 10px;background:#eee8fa;border-radius:9px;overflow-wrap:anywhere;max-width:100%}.room-entry{text-align:center;max-width:490px;margin:30px auto 60px;background:#ffffffb3;border:1px solid white;padding:35px;border-radius:30px;box-shadow:0 15px 45px #44337812}.room-hero-icon{font-size:54px}.room-entry h1{font-size:clamp(38px,7vw,58px);letter-spacing:-.06em;line-height:1.05;margin:20px 0}.room-entry>p{color:var(--room-muted);line-height:1.7;font-size:15px}.room-entry form{text-align:left;display:grid;gap:12px;margin:25px 0}.room-entry label,.friend-create-dialog label{font-size:13px;font-weight:800}.room-entry input,.friend-create-dialog input,#manual-invite{box-sizing:border-box;width:100%;border:1px solid #cfc1e2;background:white;border-radius:12px;padding:14px;color:var(--room-ink);font:inherit;font-size:16px}.room-footer{display:flex;gap:24px;justify-content:center;padding:20px 24px 35px;border-top:1px solid var(--room-line)}.room-footer a{font-size:12px;color:#807189}.friend-launch{width:100%;margin:20px 0;text-align:center;clear:both}.friend-launch p{margin:10px 0 0;font:13px/1.5 system-ui;color:#706982}.friend-create-dialog{position:fixed;max-width:440px;width:calc(100% - 32px);padding:30px;border:2px solid #201848;border-radius:24px;color:#201848;font-family:system-ui;box-shadow:8px 10px 0 #201848;background:#fffbf5}.friend-create-dialog::backdrop{background:#20184899;backdrop-filter:blur(4px)}.friend-create-dialog h2{font-size:29px;letter-spacing:-.04em;margin:5px 0 14px}.friend-create-dialog p{font-size:14px;line-height:1.6;color:#706982}.friend-create-dialog label{display:grid;gap:10px;margin:22px 0}.friend-create-dialog .friend-launch-button{width:100%}.friend-dialog-close{position:absolute;right:14px;top:10px;border:0;background:none;font-size:26px;color:#706982;cursor:pointer}.room-confetti{position:fixed;top:-20px;width:11px;height:17px;pointer-events:none;z-index:30;animation:room-confetti 2s ease-out forwards}@keyframes room-confetti{to{transform:translate(var(--drift),105vh) rotate(720deg);opacity:.2}}@media(max-width:850px){.room-layout{grid-template-columns:1fr;gap:20px}.room-sidebar{grid-template-columns:1fr 1fr;align-items:start}.room-wheel-wrap{width:min(90%,500px)}.room-sidebar .room-expiry,.room-sidebar>.room-secondary-actions{grid-column:1/-1}}@media(max-width:550px){.room-shell{padding:5px 18px 35px}.room-nav{padding:18px}.room-brand{font-size:16px}.room-sidebar{grid-template-columns:1fr}.room-heading{padding-top:12px}.room-heading p{font-size:14px}.room-wheel-wrap{width:94%;margin-top:0}.room-spin{width:88px;height:88px;font-size:16px;border-width:5px}.room-entry{padding:25px 22px;margin-top:25px}.room-turn{font-size:14px}.room-result p{font-size:18px}.room-category{margin-bottom:25px}.room-private{font-size:10px;padding:7px 10px}}@media(prefers-reduced-motion:reduce){.room-confetti{display:none}#room-wheel{will-change:auto}}@media print{.room-nav,.room-sidebar,.room-secondary-actions,.room-footer,.room-connection{display:none}.room-layout{display:block}.room-wheel-wrap{width:350px}.room-result{box-shadow:none}}

.room-options-card{order:0}.room-option-group{margin:18px 0 22px}.room-option-group h3{font-size:13px;margin:0 0 10px}.room-option-group ul{list-style:none;padding:0;margin:0 0 12px;max-height:260px;overflow-y:auto;border:1px solid var(--room-line);border-radius:12px}.room-option-group li{padding:9px 12px;font-size:13px;line-height:1.5;overflow-wrap:anywhere;border-bottom:1px solid var(--room-line);background:#faf7ff}.room-option-group li:last-child{border:0}.room-add-option{display:flex;gap:7px}.room-add-option input{min-width:0;width:100%;border:1px solid #d8ccef;border-radius:10px;padding:11px;color:var(--room-ink);font:inherit;font-size:14px;background:white}.room-add-option button{border:0;border-radius:10px;padding:10px 14px;color:white;background:#7556ed;font:800 13px system-ui;cursor:pointer}.room-add-option button:disabled,.room-add-option input:disabled{opacity:.55;cursor:default}#options-status{font-size:12px;line-height:1.5;color:#6249a0;overflow-wrap:anywhere}@media(max-width:550px){.room-add-option input{font-size:16px}}

/* Open Wheels and Friends Rooms share the demonstrated play layout. */
.shared-match-play .room-shell{max-width:1180px}
.shared-match-play .room-heading{padding:10px 0 0;text-align:left}
.shared-match-play .room-heading h1{font-size:clamp(26px,3vw,38px);margin:8px 0}
.shared-match-play .room-heading>p,.shared-match-play .room-heading>.room-eyebrow{display:none}
.shared-match-play .room-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:28px 38px;align-items:center}
.shared-match-play .room-stage{display:flex;flex-direction:column;padding:16px 0}
.shared-match-play .room-category{order:0;font-size:22px;letter-spacing:-.03em;margin:0 0 20px}
.shared-match-play .room-wheel-wrap{order:1;width:100%;max-width:360px;filter:none}
.shared-match-play #room-wheel{border:0;box-shadow:0 0 0 6px #24194c}
.shared-match-play .room-pointer{top:-15px;width:32px;height:44px}
.shared-match-play .room-spin{width:86px;height:86px;border:5px solid #fff;font-size:18px;box-shadow:0 5px 0 #ffffff88;background:#24194c}
.shared-match-play .room-spin:disabled{background:#554b71}
.shared-match-play .room-turn{order:2;border-radius:0;background:transparent;color:#7651b4;font-size:14px;padding:0;margin:25px 0 4px}
.shared-match-play .room-turn[data-mine=true]{background:transparent;color:#7651b4}
.shared-match-play .room-stage>.room-text-button{order:3;margin:auto;padding-top:8px}
.shared-match-play .room-spin-status{order:4;margin:12px 0 8px;min-height:0}
.shared-match-play .room-spin-status:empty{display:none}
.shared-match-play .room-stage>.room-secondary-actions{order:5;margin-top:10px}
.shared-match-play #room-result{display:none!important}
.shared-result-panel{background:#f1eaff;border-radius:24px;padding:26px;min-width:0}
.shared-panel-title{font-size:11px;letter-spacing:.1em;font-weight:900;color:#72558d;margin:0 0 16px}
#shared-player-screens{display:grid;gap:14px;max-height:570px;overflow:auto}
.shared-player-card{padding:20px;border:1px solid #ded1ef;border-radius:17px;background:#fff;min-width:0}
.shared-player-card>div{display:flex;align-items:center;gap:10px;font-size:13px}
.shared-player-card b{overflow-wrap:anywhere}
.shared-player-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#ffdf88;color:#4c3463;font-size:11px;font-weight:900}
.shared-player-avatar-other{background:#c4b0ff}
.shared-player-presence{font-size:10px;color:#80718b;margin-left:auto}
.shared-player-result{font-size:clamp(22px,2.3vw,28px);font-weight:900;color:#5d36ac;letter-spacing:-.03em;line-height:1.25;margin:18px 0 3px;overflow-wrap:anywhere}
.shared-player-result>small{display:block;font-size:12px;color:#80718b;font-weight:700;letter-spacing:0;margin-bottom:6px}
.shared-player-waiting,.shared-waiting-message{font-size:14px;color:#796b88;line-height:1.6;margin:14px 0 0}
#shared-spin-summary{font-size:13px;line-height:1.7;color:#61457f;margin:20px 0 0}
.shared-match-play .room-sidebar{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-top:12px;align-items:start}
.shared-match-play .room-sidebar>.room-expiry{margin:0}
.shared-match-play .room-connection{text-align:left}
@media(max-width:760px){.shared-match-play .room-layout{grid-template-columns:1fr;gap:20px}.shared-match-play .room-wheel-wrap{max-width:310px}.shared-result-panel{padding:20px}.shared-match-play .room-sidebar{grid-template-columns:1fr}.shared-match-play .room-heading{text-align:center}.shared-match-play .room-connection{text-align:center}.shared-player-card{padding:17px}.shared-match-play .room-stage{padding-top:10px}}

/* The same two primary actions on every standalone or category wheel. */
.friend-launch .wheel-primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;align-items:stretch}
.friend-launch .wheel-primary-actions>.friend-launch-button,.friend-launch .wheel-create-own{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 14px;border:2px solid #201848;border-radius:16px;font-family:inherit;font-size:.9rem;font-weight:800;line-height:1.35;text-align:center;text-decoration:none;box-sizing:border-box}
.friend-launch .wheel-primary-actions>.friend-launch-button{width:100%;margin:0;background:#201848;color:#fff}
.friend-launch .wheel-create-own{background:#fff;color:#201848;box-shadow:0 4px 0 #d8cbed}
.friend-launch .wheel-create-own:hover{background:#f3ecff}
.friend-launch .wheel-create-own:focus-visible{outline:3px solid #a779f0;outline-offset:3px}
.playground>.friend-launch>.wheel-primary-actions{grid-column:1/-1}
.playground>.friend-launch>p{grid-column:1;grid-row:2}
.playground>.friend-launch>.room-text-button{grid-column:2;grid-row:2}
@media(max-width:680px){.playground>.friend-launch>p,.playground>.friend-launch>.room-text-button{grid-column:1/-1;grid-row:auto}}
.nw-stage>.friend-launch{margin:24px 0 0;text-align:center}
@media(max-width:380px){.friend-launch .wheel-primary-actions{grid-template-columns:1fr}}

/* Result actions stay out of the initial wheel setup. */
.friend-launch[hidden]{display:none!important}
#home-result+.friend-launch,#prediction+.friend-launch,#babyResult+.friend-launch,#mealResult+.friend-launch{width:100%;max-width:1100px;box-sizing:border-box;margin:20px auto 28px;text-align:center}

.friend-create-dialog .wheel-primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.friend-create-dialog .wheel-create-own{display:block;padding:12px 16px;border:1px solid #cbbbe9;border-radius:12px;background:#f4eeff;color:#201848;text-align:center;text-decoration:none;font-weight:800}
.friend-launch .wheel-primary-actions{gap:10px}
