/* Approved friends-flow/index.html controls; no styling of existing Friends contents. */
.beedoku-navigation45 #profile-overview{container-type:inline-size}
.beedoku-navigation45 #you-friends{
 position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:3cqw;
 width:100%;min-height:clamp(54px,14.3cqw,70px);padding:0 4.5cqw;border-radius:4.2cqw;
 background:linear-gradient(#fffdf8,#f4ead9);border:1px solid #e3d2b8;
 box-shadow:inset 0 1px 0 #fff,0 .9cqw 0 #dcc6a6;color:#45304a;text-align:left;font-family:DM,sans-serif;
}
#you-friends .friend-faces{display:flex;align-items:center}
#you-friends .friend-faces:empty{display:none}
#you-friends:has(.friend-faces:empty){grid-template-columns:1fr auto}
#you-friends .friend-faces img{width:7.6cqw;height:7.6cqw;border-radius:50%;border:.5cqw solid #fffaf0;margin-left:-2.2cqw;object-fit:cover}
#you-friends .friend-faces img:first-child{margin-left:0}
#you-friends b{font-size:4.6cqw;font-weight:850;line-height:1.1}
#you-friends small{display:block;font-size:3cqw;font-weight:650;color:#7b6a78;line-height:1.5}
#you-friends .friend-entry-right{display:flex;align-items:center;gap:1.6cqw}
#you-friends .chevron{font-size:6cqw;color:#9b8597;line-height:1}
.request-badge{position:absolute;top:-1.8cqw;right:-1cqw;min-width:5.6cqw;height:5.6cqw;padding:0 1.4cqw;border-radius:3cqw;background:#d93b52;color:#fff;border:.6cqw solid #fff;font:850 3.1cqw/1 DM,sans-serif;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.request-badge[hidden]{display:none!important}
#you-friends .request-badge{position:static;border:none;margin-right:1cqw}
.beedoku-home-link{display:flex;align-items:center;justify-content:center;gap:6px;color:#6f5068;font:750 14px/1.2 DM,sans-serif;background:transparent;border:0;box-shadow:none;padding:8px;min-height:32px}
.beedoku-home-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.beedoku-navigation45 #you-home{justify-self:center;margin:4px auto 0}
.beedoku-home-navigation{display:grid;grid-template-columns:1fr 1fr;gap:4vw;width:76vw;max-width:400px;align-self:center;margin:16px auto 0;container-type:inline-size}
.beedoku-home-navigation .home-navigation-pill{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:45px;border-radius:24px;background:linear-gradient(#fffdf8,#f4ead9);border:1px solid #e3d2b8;box-shadow:inset 0 1px 0 #fff,0 3.5px 0 #dcc6a6;color:#45304a;font:800 17px/1.15 DM,sans-serif;padding:8px}
.home-navigation-pill svg{width:19px;height:19px;fill:none;stroke:#6f5068;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.beedoku-home-navigation .request-badge{font-size:12px;min-width:22px;height:22px;right:-4px;top:-7px;padding:0 5px;border-width:2px;border-radius:12px}
.embedded-game #game-home{order:5;flex:none;align-self:center;margin-top:23px}
.embedded-game #welcome.join-scene .beedoku-home-navigation,.embedded-game .join-scene .beedoku-home-navigation{display:none}
@media(min-width:700px){
 .beedoku-home-navigation{gap:20px;margin-top:24px}
 .beedoku-home-navigation .home-navigation-pill{min-height:44px;font-size:21px}
 .home-navigation-pill svg{width:24px;height:24px}
 .embedded-game #game-home{margin-top:24px;font-size:17px}
 .beedoku-navigation45 #you-friends{gap:18px;padding-inline:24px;border-radius:22px;min-height:76px;box-shadow:inset 0 1px 0 #fff,0 5px 0 #dcc6a6}
 #you-friends b{font-size:24px}#you-friends small{font-size:16px}
 #you-friends .friend-faces img{width:40px;height:40px;border-width:2px;margin-left:-12px}
 #you-friends .chevron{font-size:31px}#you-friends .request-badge{font-size:16px;min-width:28px;height:28px;padding:0 7px}
}

/* Values ported from approved social.css; cqw measures the game viewport. */
.embedded-game #game #round-roster{display:none}
.embedded-game #game:has(#board:not([hidden])){justify-content:flex-start}
.embedded-game #game:has(#board:not([hidden]))::after{display:none}
.embedded-game #game:has(#board:not([hidden])) .board-tray{margin-top:auto}
.embedded-game #game:has(#board:not([hidden])) .board-tools{margin-block:23px 0}
#player-strip{order:4;display:flex;justify-content:center;gap:8px;height:74px;flex:none;margin-top:23px;width:100%;color:#45304a}
#player-strip[hidden]{display:none}
#player-strip button{font-family:DM,sans-serif;cursor:pointer;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1 1 0;height:100%;gap:2px;padding:4px;border-radius:12px;min-width:0;line-height:1.1}
#player-strip .score-card{color:#45304a;border:1px solid #d8c9d4;background:#fffcf6;box-shadow:0 .6cqw 0 #e8dadf65}
#player-strip .score-0{background:#e2f1e8}#player-strip .score-1{background:#f1e8fa}#player-strip .score-2{background:#e5effa}#player-strip .score-3{background:#fff0da}
#player-strip .avatar-line{display:flex;align-items:center;justify-content:center;width:auto}
#player-strip .avatar-line img{width:36px;height:36px;object-fit:cover;border-radius:50%;border:2px solid #fff;box-shadow:0 2px 4px #45304a22;flex:none}
#player-strip .tile-action{display:flex;align-items:center}
#player-strip .tile-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#player-strip .player-name{font-weight:800;font-size:13px;line-height:1.1;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#player-strip strong{font-size:19px;line-height:1.05;font-weight:850;font-variant-numeric:tabular-nums}
#player-strip .invite-tile{flex:0 0 64px;background:linear-gradient(#d5f2e9,#bce4d7);border:1px dashed #6c9d8e;color:#315a4c;box-shadow:0 .6cqw 0 #acc9bc66;font-size:11px;font-weight:800}
#player-strip[data-player-count="1"] .invite-tile{flex-basis:82px}
#player-strip .plus{font-size:26px;line-height:.9;font-weight:500}
#player-strip[data-player-layout="hero"] .score-card,
#player-strip[data-player-layout="split"] .score-card{display:grid;grid-template-columns:auto minmax(0,1fr) 22px;grid-template-rows:1fr 1fr;column-gap:10px;row-gap:0;align-items:center;text-align:left;padding:7px 9px}
#player-strip[data-player-layout="hero"] .avatar-line,
#player-strip[data-player-layout="split"] .avatar-line{grid-column:1;grid-row:1/3}
#player-strip[data-player-layout="hero"] .avatar-line img{width:48px;height:48px}
#player-strip[data-player-layout="split"] .avatar-line img{width:42px;height:42px}
#player-strip[data-player-layout="hero"] .player-name,
#player-strip[data-player-layout="split"] .player-name{grid-column:2;grid-row:1;align-self:end;font-size:14px}
#player-strip[data-player-layout="hero"] strong,
#player-strip[data-player-layout="split"] strong{grid-column:2;grid-row:2;align-self:start;font-size:24px}
#player-strip[data-player-layout="hero"] .tile-action,
#player-strip[data-player-layout="split"] .tile-action{grid-column:3;grid-row:1/3;justify-self:end}
#player-strip[data-player-layout="portrait"] .score-card{padding:5px 3px}
#player-strip[data-player-layout="portrait"] .avatar-line img{width:34px;height:34px}
#player-strip[data-player-layout="portrait"] .tile-action{position:absolute;right:5px;top:5px}
#player-strip[data-player-layout="portrait"] .tile-action svg{width:15px;height:15px}
#player-strip[data-player-layout="portrait"] .player-name{font-size:12px}
#player-strip[data-player-layout="portrait"] strong{font-size:17px}
#player-strip button:disabled{opacity:1;cursor:default}
#player-strip button:active{transform:translateY(1px)}
#player-strip button:focus-visible{outline:3px solid #254d72;outline-offset:2px}
#room-social-dialog{width:90vw;max-width:none;overflow:visible;padding:0;border:0;background:transparent;box-shadow:none;top:var(--centered-dialog-y,50%);left:50%;margin:0;transform:translate(-50%,-50%);color:#45304a}
#room-social-dialog::backdrop{background:#2f223b44}
#room-social-dialog .room-sheet{box-sizing:border-box;width:100%;background:#fffaf3;border:1px solid #e0cdbb;border-radius:6cqw;padding:6cqw;box-shadow:0 3cqw 10cqw #30203833;text-align:center}
#room-social-dialog h3{font-size:5.6cqw;line-height:1.15;margin:0 0 3cqw;font-family:DM,sans-serif}
#room-social-dialog p{white-space:pre-line;font-size:3.8cqw;line-height:1.5;color:#63516a;margin:0 0 5cqw}
#room-social-dialog .sheet-actions{display:flex;flex-direction:column;gap:2.6cqw}
#room-social-dialog button{width:100%;min-height:11cqw;padding:2cqw;border-radius:3cqw;background:linear-gradient(#c4f0e5,#94d4c3);box-shadow:0 .7cqw 0 #6bac99;color:#254d72;font:800 4cqw DM,sans-serif;border:0}
#room-social-dialog button.quiet{background:#f2e9e2;box-shadow:none;color:#63516a}
#room-social-dialog button.destructive{background:#f9e0dc;box-shadow:0 .7cqw 0 #e1b8b3;color:#9a3f42}
@media(min-width:700px){
 .embedded-game #game:has(#board:not([hidden])) .board-tools{margin-top:24px}
 #player-strip{gap:10px;height:88px;margin-top:24px}
 #player-strip[data-player-layout="portrait"]{height:112px}
 #player-strip button{padding:6px;border-radius:15px}
 #player-strip .invite-tile{flex-basis:88px;font-size:15px}
 #player-strip[data-player-count="1"] .invite-tile{flex-basis:112px}
 #player-strip[data-player-layout="hero"] .score-card,#player-strip[data-player-layout="split"] .score-card{grid-template-columns:auto minmax(0,1fr) 28px;column-gap:14px;padding:9px 14px}
 #player-strip[data-player-layout="hero"] .avatar-line img{width:60px;height:60px}
 #player-strip[data-player-layout="split"] .avatar-line img{width:54px;height:54px}
 #player-strip[data-player-layout="hero"] .player-name,#player-strip[data-player-layout="split"] .player-name{font-size:18px}
 #player-strip[data-player-layout="hero"] strong,#player-strip[data-player-layout="split"] strong{font-size:30px}
 #player-strip[data-player-layout="portrait"] .avatar-line img{width:43px;height:43px}
 #player-strip[data-player-layout="portrait"] .player-name{font-size:15px}
 #player-strip[data-player-layout="portrait"] strong{font-size:22px}
 #player-strip .tile-action svg{width:22px;height:22px}#player-strip .plus{font-size:34px}
 #room-social-dialog{width:65vw}
 #room-social-dialog .room-sheet{padding:4cqw;border-radius:4cqw}
 #room-social-dialog h3{font-size:3.4cqw;margin-bottom:2cqw}#room-social-dialog p{white-space:pre-line;font-size:2.3cqw;margin-bottom:3cqw}
 #room-social-dialog .sheet-actions{gap:1.6cqw}#room-social-dialog button{font-size:2.5cqw;min-height:7cqw;border-radius:2cqw;padding:1.5cqw}
}

#you-friends .friend-faces > .avatar{display:block;flex:none;width:7.6cqw;height:7.6cqw;min-width:0;min-height:0;padding:0;border:0;background:none;box-shadow:none;margin-left:-2.2cqw}
#you-friends .friend-faces > .avatar:first-child{margin-left:0}
#you-friends .friend-faces > .avatar img{display:block;margin:0;width:100%;height:100%}
@media(min-width:700px){#you-friends .friend-faces > .avatar{width:40px;height:40px;margin-left:-12px}}

/* Owner-approved adaptive Option B, 12 Nov: roomy solo/2p horizontal cards,
   compact 3/4p portraits. The board remains independently sized. */
@media(max-width:699px){
 .embedded-game #game:has(#board:not([hidden])) .board-tools,
 .embedded-game #game-home,#player-strip{margin-top:11px}
 #player-strip{height:74px;gap:7px}
 #player-strip[data-player-layout="portrait"]{height:78px}
 #player-strip .invite-tile{font-size:11px;line-height:12px}
 #player-strip .plus{line-height:23px}
 .embedded-game #game-home{height:28px;min-height:28px;padding:4px 8px}
}
