.phone-brand{font-weight:900;letter-spacing:1.5px;text-decoration:none;color:var(--ink)}#phoneScreen{max-width:560px;margin:auto}body.phone-page main{max-width:620px}.phone-game{display:grid;grid-template-columns:1fr auto;width:100%;border:0;border-radius:16px;padding:22px;text-align:left;margin:12px 0;gap:5px 16px;line-height:1.6}.phone-game small,.phone-game strong,.phone-game span{grid-column:1}.phone-game strong{font-size:20px}.phone-game span{font-size:13px}.phone-game b{grid-column:2;grid-row:1/4;align-self:center;font-size:24px}.phone-game[data-category=duel]{background:#dce9f9;color:#315787}.phone-game[data-category=romance]{background:#f7ddd9;color:#96475b}.phone-game[data-category=adult]{background:#ead2e0;color:#793354}.phone-roster{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.phone-member{border-radius:22px;padding:8px 13px;background:var(--lav,#ece1f5);font-size:12px;overflow-wrap:anywhere;max-width:100%}.phone-member.offline{opacity:.6}.phone-member button{border:0;background:transparent;text-decoration:underline;padding-left:8px}.phone-rules{padding-left:22px;font-size:14px}.phone-rules li{margin:12px 0}.phone-actions{display:grid;gap:10px;margin-top:24px}.phone-actions button{margin:0}.phone-home{margin:22px 0;padding:24px;border:1px solid #e5ddeb;border-radius:18px;background:#f6f1fa;text-align:left}.phone-home h2{font-size:21px;margin:0 0 8px}.phone-home p{font-size:14px;margin:0 0 18px}.phone-home .phone-home-buttons{display:flex;gap:10px}.phone-home a{display:inline-flex;justify-content:center;align-items:center;padding:12px 19px;border-radius:12px;text-decoration:none;color:#7043bb;border:1px solid #d6c7e6;font-weight:700}.phone-home a:first-child{background:#7043bb;color:#fff;border-color:#7043bb}#phoneStatus{max-width:560px;margin:18px auto;color:var(--muted);font-size:13px}.phone-result-row{padding:14px 0;border-bottom:1px solid var(--line)}.phone-result-row p{margin:4px 0}.phone-check{display:flex;gap:10px;align-items:flex-start;margin:20px 0}.phone-check input{width:20px;height:20px;flex:none}.phone-wait{padding:25px 0;text-align:center}.phone-count{font-size:40px;font-weight:800}.phone-back{margin-top:12px}.phone-code{letter-spacing:5px;font-size:30px;font-weight:800}.phone-qr{width:180px;margin:20px auto}.phone-qr svg{display:block;width:100%}#leaveDialog button{width:100%;margin-top:10px}@media(max-width:400px){.phone-game{padding:18px}.phone-home{padding:20px}.phone-home .phone-home-buttons{flex-direction:column}}.game-picker-mode .phone-home{display:none}
/* Same size room cards, with availability visible before selection. */
.phone-game{height:146px;min-height:146px;max-height:146px;box-sizing:border-box;padding:13px 16px;margin:10px 0;grid-template-columns:minmax(0,1fr);grid-template-rows:15px 27px 36px 25px;gap:4px;line-height:1.4;overflow:hidden}
.phone-game>small{font-size:11px;line-height:15px}
.phone-game>strong{font-size:21px;line-height:27px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phone-game>span{font-size:13px;line-height:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.phone-game .phone-game-footer{grid-column:1;display:flex;justify-content:space-between;align-items:center;border-top:1px solid color-mix(in srgb,currentColor 18%,transparent);padding-top:6px;margin:0;font-size:12px;line-height:18px}
.phone-game .phone-game-footer b{display:block;font-size:24px;line-height:18px}
.phone-game:disabled{opacity:.66;cursor:not-allowed}
.phone-game:disabled .phone-availability{font-weight:700}
/* Restore the quiet, warm white phone card and its vibration icon. */
.home-picker .phone-home{background:#fffaf7;border:1px solid #ded2ea;border-radius:16px;padding:20px;margin:20px 0;color:#51465a;box-shadow:none}
.phone-home-heading{display:flex;align-items:center;gap:14px;margin-bottom:17px}
.phone-home-icon{display:grid;place-items:center;flex:none;width:42px;height:48px;color:#8b7296}
.phone-home-icon svg{width:32px;height:38px}
.phone-home-heading>div{min-width:0}
.home-picker .phone-home h2{font-size:20px;line-height:1.4;margin:0 0 5px;color:#51465a;letter-spacing:-.5px}
.home-picker .phone-home p{font-size:13px;line-height:1.6;color:#8c7c92;margin:0}
.home-picker .phone-home-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.home-picker .phone-home a,.home-picker .phone-home a:first-child{min-height:43px;padding:10px 12px;font-size:14px;border:1px solid #dcd3e1;border-radius:10px;color:#64546f;background:#fffaf7;box-shadow:none}
.home-picker .phone-home a:first-child{background:#ebe4ef;border-color:#ebe4ef}
.home-picker .phone-home a:hover{background:#e5dce9}
.home-picker .start-pair #spin,.home-picker .start-pair #spin:hover{background:#e6dfeb;color:#5a4967;border:1px solid #dfd5e5;box-shadow:none}
.home-picker .start-pair #spin:hover{background:#ddd2e4}
.home-extra-links .notes-home-how{display:block;margin-top:3px;color:#8c7c92}
@media(max-width:400px){.home-picker .phone-home{padding:17px}.home-picker .phone-home h2{font-size:19px}.home-picker .phone-home-buttons{grid-template-columns:1fr 1fr}.phone-home-heading{gap:10px}.phone-home-icon{width:32px}.home-picker .phone-home p{font-size:12px}}

/* Shared room stays in BIRIRIRI's warm palette, including a preselected Mafia lobby. */
.phone-invite-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.phone-invite-actions button{min-height:44px;font-size:12px;margin:0;background:#f1ebf6;color:#826a97;border:1px solid #e1d6e9;box-shadow:none}.phone-selected-game{display:grid;gap:6px;margin:21px 0;padding:16px 18px;text-align:left;background:#efe7f5;border-radius:13px;color:#776084}.phone-selected-game>small{font-size:10px;color:#a28eaf}.phone-selected-game>strong{font-size:21px;letter-spacing:-.6px}.phone-selected-game>span{font-size:11px;color:#9c84aa}body:not(.mafia-mode) .mf-setup,body:not(.mafia-mode) .mf-panel{background:#f1eaf5;border-color:#e3d7eb;color:#776181}body:not(.mafia-mode) .mf-setup p,body:not(.mafia-mode) .mf-panel p{color:#9c87a7}body:not(.mafia-mode) .mf-setup small,body:not(.mafia-mode) .mf-panel summary{color:#8a7297}#switchDialog{border:1px solid #dfd3e7;border-radius:17px;background:#fffaf7;color:#685573;max-width:360px;padding:24px}#switchDialog p{font-size:13px;line-height:1.7;color:#9983a4}#switchDialog button{width:100%;min-height:44px;margin-top:10px}.phone-page.mafia-mode #switchDialog{background:#121e2c;color:#e6ddcf}
#phoneSound{font:inherit;font-size:11px;white-space:nowrap;min-height:40px;padding:6px 10px;border:1px solid currentColor;border-radius:12px;background:transparent;color:inherit}
.phone-in-game>header #step,.phone-in-game>header #phoneSound{display:none}
