:root { --sm: #b9a4ff; --sm-bg: rgba(150,120,255,.14); --sm-edge: rgba(185,164,255,.42); }

.sm-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.sm-sealed {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; vertical-align: middle;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sm); line-height: 1; white-space: nowrap;
  padding: 0 10px; min-height: 26px; border-radius: 8px; border: 1px solid var(--sm-edge);
  background: repeating-linear-gradient(135deg, rgba(185,164,255,.13) 0 6px, rgba(185,164,255,.04) 6px 12px);
  text-shadow: none;
}
.sm-sealed .sm-i { width: 14px; height: 14px; }
.lc-code.sm-sealed { min-height: 52px; min-width: 150px; font-size: 13px; border-radius: 12px; }
.rc-code.sm-sealed { min-height: 22px; font-size: 10px; padding: 0 8px; letter-spacing: .14em; }
.mygame-code.sm-sealed { min-height: 24px; font-size: 10px; padding: 0 8px; letter-spacing: .14em; }
.ref-code.sm-sealed { font-size: 11px; letter-spacing: .14em; }
.iv-bigcode .ref-code.sm-sealed { min-height: 44px; min-width: 140px; font-size: 13px; }
.sm-held { letter-spacing: normal; }

.lobby-code { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.lobby-code.sm-held { background: none; border-color: transparent; padding: 4px; }
.lc-copy { font-size: 11px; letter-spacing: .08em; font-weight: 700; color: #cfe0ff; text-transform: uppercase; }
.lc-copy.sm-copied, .rc-copy.sm-copied { color: #052; background: #7dffa6; border-radius: 999px; padding: 2px 8px; }
.lc-copy.sm-failed, .rc-copy.sm-failed { color: #ffd6dd; }
button.sm-copied { background: #1d5a3a; color: #c9ffdc; }
button.sm-failed { background: #5a2a36; color: #ffd6dd; }

.mygame-acts { display: flex; gap: 6px; flex: none; }
.sm-copy-ico { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; }

.sm-mask { -webkit-text-security: disc; }
.sm-paste { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; }
.sm-paste[hidden] { display: none; }
@media (max-width: 560px) { .sm-paste-lbl { display: none; } }

.sm-pill { color: var(--sm); border-color: var(--sm-edge); background: var(--sm-bg); margin-left: auto; min-height: 36px; }
.sm-pill[hidden] { display: none; }
.sm-pill .sm-pill-lbl { font-size: 13px; font-weight: 700; }
@media (max-width: 760px) { .sm-pill .sm-pill-lbl { display: none; } .sm-pill { padding: 7px 10px; } }
@media (max-width: 560px) {
  #topBar:has(#wallet:not([hidden])) .sm-pill { display: none; }
  html.sm-on #accountChip { position: relative; border-color: var(--sm-edge); background: var(--sm-bg); }
  html.sm-on #accountChip::after {
    content: ""; position: absolute; right: 0; bottom: -5px; width: 17px; height: 17px; border-radius: 50%;
    border: 2px solid #10142a; background: #7b5cff center / 11px 11px no-repeat
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 5.1A10.7 10.7 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-3.2 4.1M6.6 6.6C3.8 8.4 2 12 2 12s3.6 7 10 7c1.9 0 3.5-.6 4.9-1.4'/%3E%3C/svg%3E");
  }
}

.sm-head { display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; align-self: stretch; }
.sm-card { display: flex; align-items: center; gap: 8px; margin-left: auto; text-align: left; line-height: 16px; }
.sm-card-text { display: flex; align-items: center; line-height: 16px; gap: 2px 10px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.sm-card-h { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #eaf1ff; white-space: nowrap; }
.sm-card-h .sm-i { color: var(--sm); width: 14px; height: 14px; }
.sm-card.sm-on .sm-card-h { color: var(--sm); }
.sm-card-sub { font-size: 12px; font-weight: 400; color: #9aa3c7; }
@media (max-width: 560px) { .sm-card { flex: 1 1 100%; justify-content: space-between; } .sm-card-text { justify-content: flex-start; } }
.sm-switch { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; min-width: 48px; margin: -18px -6px -10px 0;
  background: none; border: 0; padding: 0 6px; font: inherit; cursor: pointer; }
.sm-track { width: 32px; height: 18px; border-radius: 9px; background: #3a4266; position: relative; flex: none;
  transition: background var(--t-quick, 130ms) var(--e-standard, ease); }
.sm-knob { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #cdd8f5;
  transition: transform var(--t-quick, 130ms) var(--e-standard, ease); }
.sm-switch[aria-checked="true"] .sm-track { background: #7b5cff; }
.sm-switch[aria-checked="true"] .sm-knob { transform: translateX(14px); background: #fff; }

.sm-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid rgba(150,170,255,.14); margin-top: 6px; padding-top: 4px; font-size: 12.5px; color: #9aa3c7; }
.sm-hint-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--sm); min-height: 44px; }

.sm-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(8,10,20,.72); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
@media (min-width: 761px) { .sm-scrim { align-items: center; } }
.sm-sheet { width: min(420px, 100%); background: #171b30; border: 1px solid rgba(150,170,255,.2); border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px; color: #eaf1ff; animation: sm-rise var(--t-base, 200ms) var(--e-enter, ease-out); }
.sm-sheet h3 { font-size: 17px; font-weight: 800; margin: 0; }
.sm-sheet p { font-size: 13px; color: #9aa3c7; margin: 0; line-height: 1.45; }
.sm-row { display: flex; gap: 8px; }
.sm-row > .small { flex: 1 1 0; min-height: 44px; }
@keyframes sm-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sm-sheet { animation: sm-fade var(--t-base, 200ms) linear; } @keyframes sm-fade { from { opacity: 0; } } }

.sm-live { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#roomChip.copied .rc-copy, #roomChip .rc-copy.sm-failed { display: inline-block; opacity: 1; }
span.ref-code { font-weight: 700; } 
