#duo-board { display:grid; gap:12px; }
#duo-board p, #duo-board h3, #duo-board h4 { margin:0; }
#duo-voice { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-block:8px 14px; }
#duo-voice span { font-size:.85rem; }
.duo-heart-boards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.duo-hearts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin-top:6px; }
.duo-pink { color:#eb6496; }
.duo-purple { color:#a990ef; }
.duo-hearts button { color:inherit; aspect-ratio:1; min-width:0; padding:0; font-size:clamp(17px,5vw,35px); }
.duo-hearts button:disabled { opacity:.8; }
.duo-hearts button.opened { background:transparent; opacity:.4; }
.duo-hearts button.armed { outline:2px solid currentColor; opacity:1; }
.duo-squares { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); width:100%; }
.duo-square { aspect-ratio:1; position:relative; min-width:0; border:1px solid #81739266; padding:2px; font-size:clamp(7px,2vw,12px); }
.duo-square small { display:block; font-size:.85em; line-height:1; }
.duo-square b { position:absolute; bottom:0; right:2px; line-height:1; }
.duo-square i { font-style:normal; }
.duo-square.ladder { background:#19785250; }
.duo-square.snake { background:#b4406650; }
.duo-heart-boards section { padding:8px; border:1px solid #674d80; border-radius:14px; background:#21142f; }
#duo-board .duo-hearts button { font-size:clamp(23px,8vw,57px); line-height:1; }
.duo-square b { font-size:clamp(13px,3.6vw,27px); white-space:nowrap; }
.duo-turn,.duo-dice { display:flex; align-items:center; gap:12px; background:#25163a; padding:9px 12px; border:1px solid #745498; border-radius:14px; }
.duo-turn { border-color:currentColor; }
.duo-turn > span { font-size:36px; line-height:1; }
#duo-board .duo-turn h3 { font-size:clamp(22px,5vw,29px); color:inherit; }
.duo-dice > span { display:grid; place-items:center; width:54px; height:54px; border-radius:10px; background:#f9edff; color:#40255b; font-size:50px; line-height:1; }
.duo-dice strong { display:block; font-size:21px; color:#faefff; }
.duo-dice small { color:#e8d8f4; }
html body dialog#dialog.duo-fullscreen {
  position:fixed; inset:0; margin:0; width:100%; max-width:none; height:100dvh; max-height:none;
  box-sizing:border-box; border:0; border-radius:0; overflow:auto;
  background:radial-gradient(ellipse at top right,#472961,#20142f 68%);
  padding: max(18px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
}
#dialog.duo-fullscreen #dialog-body { width:100%; max-width:690px; margin:0 auto; }
.duo-hub-inner { display:grid; gap:12px; padding:12px 0; }
.duo-hub-inner label { font-weight:700; }
#duo-match { width:100%; color:#fff2ff; background:#2c1d42; border:1px solid #6f528b; padding:10px; border-radius:10px; }
.duo-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:6px; }
#duo-hub .duo-card { display:flex; flex-direction:column; align-items:flex-start; gap:5px; text-align:left; min-width:0; padding:12px; border-radius:15px; background:#38234e; border:1px solid #785998; color:#fff2ff; }
#duo-hub .duo-card:focus-visible,#duo-hub .duo-card:hover { border-color:#f391bc; }
.duo-card small { color:#e2c9ef; }
.duo-icon { color:#ff9cc5; font-size:27px; line-height:1.25; }

.duo-match-highlight { display:grid; gap:6px; padding:16px; border:2px solid #f29dc7; border-radius:16px; background:#412651; color:#fff1fc; }
.duo-match-highlight label { font-size:19px; }
.duo-match-highlight small { color:#fad6eb; }
#duo-hub #duo-match { margin-top:4px; border-color:#e5a5ce; min-height:46px; font:inherit; }
#duo-match:focus-visible { outline:3px solid #ffd1ea; outline-offset:2px; }
.duo-game-step { margin:8px 0 0; color:#fff2ff; font-size:17px; }

#duo-board .duo-heart-boards { display:grid; grid-template-columns:minmax(0,1fr); width:min(100%,470px); margin-inline:auto; }
#duo-board .duo-heart-boards section { padding:clamp(8px,2.5vw,14px); }
#duo-board .duo-hearts { gap:clamp(5px,1.5vw,9px); }
#duo-board .duo-hearts button { position:relative; display:grid; place-items:center; font-size:clamp(39px,15vw,87px); }
#duo-board .duo-heart-play .duo-own-hearts .duo-hearts { grid-template-columns:repeat(9,minmax(0,1fr)); gap:3px; }
#duo-board .duo-heart-play .duo-own-hearts button { font-size:clamp(12px,5.3vw,28px); border-radius:6px; }
#duo-board .duo-hearts button.armed { outline-offset:-3px; background:#583965; }
.duo-bomb-mark { position:absolute; inset:auto 5% 5% auto; background:#fff2fa; color:#462052; font:750 clamp(9px,3.5vw,17px)/1.1 system-ui; padding:.12em .23em; border-radius:50%; }
.duo-heart-play .duo-own-hearts .duo-bomb-mark { font-size:clamp(8px,2.7vw,12px); }
@media (prefers-reduced-motion:no-preference) {
  .duo-heart-enter .duo-own-hearts { animation:duo-heart-grow 320ms cubic-bezier(.2,.7,.2,1) both; }
  .duo-heart-switch .duo-opponent-hearts { animation:duo-heart-grow 460ms cubic-bezier(.2,.7,.2,1) both; }
  .duo-heart-switch .duo-own-hearts { animation:duo-heart-shrink 440ms cubic-bezier(.2,.7,.2,1) both; }
  @keyframes duo-heart-grow { from { opacity:.45; transform:scale(.74); } to { opacity:1; transform:scale(1); } }
  @keyframes duo-heart-shrink { from { opacity:.55; transform:translateY(-18px) scale(1.14); } to { opacity:1; transform:none; } }
}
.game-chat-invite.duo-chat-invite { display:grid; gap:9px; padding:10px 12px; border:1px solid #da8ab6; border-radius:13px; background:#39244e; color:#fff1fa; }
.duo-chat-invite strong span { color:#ff9cc5; }
.duo-invite-actions { display:flex; gap:7px; flex-wrap:wrap; }
.duo-chat-invite .duo-invite-actions button { min-height:42px; padding:7px 14px; border-radius:10px; font-weight:750; }
.duo-chat-invite .duo-invite-accept { color:#281632; background:#f8a9d1; border:1px solid #ffd2e8; }
.duo-chat-invite .duo-invite-reject { color:#ffeeff; background:#2a193c; border:1px solid #c08ad3; }

#dating-chat-log .duo-chat-invite .duo-invite-actions button.duo-invite-accept {
  color:#29102c !important;
  background:#ffc0df !important;
  border-color:#ffe3f1 !important;
  opacity:1;
}
#dating-chat-log .duo-chat-invite .duo-invite-actions button.duo-invite-accept:hover { background:#ffd7eb !important; }
#dating-chat-log .duo-chat-invite .duo-invite-actions button:focus-visible { outline:2px solid #fff2ff; outline-offset:2px; }

#duo-board button[data-duo-move="roll"] {
  min-height: 50px;
  width: 100%;
  background: #ff98cd;
  border: 2px solid #ffd1e8;
  color: #30142f;
  font-size: 1.1rem;
  font-weight: 800;
}
#duo-board button[data-duo-move="roll"]:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}
.dialog-head .duo-end-round { flex: 0 0 auto; }
.dialog-head .duo-end-round[hidden] { display: none; }

#dialog #duo-voice button[aria-pressed] {
  min-height: 44px;
  font-weight: 750;
  background: #30223c;
  border: 1px solid #816e90;
  color: #f3e8fa;
}
#dialog #duo-voice button[data-duo-mic][aria-pressed="true"] {
  background: #ff9dcb;
  border-color: #ffd5e9;
  color: #2d1225;
}
#dialog #duo-voice button[data-duo-listen][aria-pressed="true"] {
  background: #9fe8d4;
  border-color: #d1fff0;
  color: #102d26;
}
#dialog #duo-voice button[aria-pressed]:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

body dialog.duo-result {
  box-sizing: border-box;
  width: min(90vw, 360px);
  max-height: 85vh;
  margin: auto;
  padding: 24px;
  border: 2px solid #a990ef;
  border-radius: 18px;
  background: #2a1a3c;
  color: #fff2ff;
  text-align: center;
}
body dialog.duo-result-won { border-color: #ff9dcb; }
body dialog.duo-result::backdrop { background: #130a1cbb; }
.duo-result > span { font-size: 2rem; color: #ff9dcb; }
.duo-result h2 { margin: 8px 0 16px; color: #fff2ff; }
.duo-result button { min-width: 88px; min-height: 44px; background: #ff9dcb; color: #26122d; font-weight: 750; }

body dialog.duo-result button.duo-result-ok {
  min-width: 120px;
  min-height: 46px;
  background: #ffaad5 !important;
  color: #29122a !important;
  border: 2px solid #ffe0f0;
  opacity: 1;
  font-weight: 800;
}
body dialog.duo-result button.duo-result-ok:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}
