.twin-entry { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); width: 76px; height: 76px; z-index: 900; color: #233657; font-family: "Pretendard", system-ui, sans-serif; }
.twin-entry-portrait { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; background: #f4f1e9; box-shadow: 0 5px 24px #23365724, 0 0 0 1px #23365726; transition: box-shadow .25s; }
.twin-entry iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.twin-entry-placeholder { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.twin-entry.is-ready .twin-entry-placeholder { display: none; }
.twin-entry-launcher { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.twin-entry-launcher:focus-visible { outline: 3px solid #4263c7; outline-offset: 5px; }
.twin-entry:hover .twin-entry-portrait, .twin-entry:focus-within .twin-entry-portrait { box-shadow: 0 7px 30px #4263c72b, 0 0 0 2px #4263c77d; }
.twin-entry-badge { position: absolute; right: -2px; bottom: 0; z-index: 2; padding: 2px 6px; border-radius: 8px; border: 2px solid #f4f1e9; background: #4263c7; color: white; font-size: 10px; font-weight: 700; line-height: 1.3; pointer-events: none; }
.twin-entry-label { position: absolute; right: calc(100% + 14px); top: 50%; transform: translate(7px, -50%); padding: 10px 14px; border: 1px solid #2336571f; border-radius: 999px; background: #f4f1e9; color: #233657; font-size: 13px; white-space: nowrap; box-shadow: 0 4px 20px #2336570d; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.twin-entry:hover .twin-entry-label, .twin-entry:focus-within .twin-entry-label { opacity: 1; transform: translate(0, -50%); }
.twin-entry-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #f4f1e9; color: #233657; }
.twin-entry-dialog.is-widget { top: auto; left: auto; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); width: 76px; height: 76px; border-radius: 50%; pointer-events: none; z-index: 901; }
.twin-entry-dialog.is-widget .twin-entry-close { display: none; }
.twin-entry { z-index: 902; }
.twin-entry.is-ready .twin-entry-portrait { background: transparent; }
.twin-entry-dialog::backdrop { background: #23365722; }
.twin-entry-dialog iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; }
.twin-entry-dialog.is-loading iframe { visibility: hidden; }
.twin-entry-loading { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 90px 24px; text-align: center; font: 16px/1.6 system-ui, sans-serif; }
.twin-entry-dialog.is-loading .twin-entry-loading { display: flex; }
.twin-entry-loading img { width: 120px; height: 120px; border-radius: 50%; background: #f4f1e9; box-shadow: 0 0 0 1px #23365726; }
.twin-entry-loading p { margin: 0; }
.twin-entry-loading button { padding: 10px 18px; border: 1px solid #4263c7; border-radius: 999px; background: transparent; color: #233657; font: inherit; cursor: pointer; }
.twin-entry-loading button:focus-visible { outline: 2px solid #4263c7; outline-offset: 3px; }
.twin-entry-dialog.is-widget .twin-entry-loading { display: none; }
.twin-entry-close { position: absolute; top: 20px; left: 24px; z-index: 2; padding: 10px 13px; border: 1px solid #23365724; border-radius: 999px; background: #f4f1e9; color: #233657; font: 13px "Pretendard", system-ui, sans-serif; cursor: pointer; }
.twin-entry-close:focus-visible { outline: 2px solid #4263c7; outline-offset: 3px; }
@media (max-width: 600px) {
  .twin-entry { width: 68px; height: 68px; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); }
  .twin-entry-dialog.is-widget { width: 68px; height: 68px; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); }
  .twin-entry-close { top: 18px; left: 12px; padding: 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .twin-entry *, .twin-entry-portrait { transition: none; }
}
