.ig-chat-launcher { position:fixed; right:24px; bottom:24px; z-index:40; display:flex; align-items:center; gap:9px; height:50px; padding:0 17px; border:1px solid #ffffff30; border-radius:18px; color:#f5f5f7; background:rgba(36,36,39,.92); backdrop-filter:blur(20px); box-shadow:0 8px 28px #0005,inset 0 1px #ffffff12; font:500 12px -apple-system,BlinkMacSystemFont,"Inter",sans-serif; }
.ig-chat-launcher svg { width:22px; height:22px; stroke-width:1.6; }
.ig-chat-launcher .ig-game-chat-icon { width:32px; height:32px; }
.ig-chat-avatar .ig-game-chat-icon { width:38px; height:38px; }
.ig-chat-launcher .ig-game-chat-icon { width:52px; height:52px; overflow:visible; }
.ig-chat-launcher { height:62px; padding:0 15px 0 4px; border-radius:22px; }
.ig-mascot-body { animation:ig-mascot-float 4s ease-in-out infinite; transform-origin:32px 32px; }
.ig-mascot-eyes { animation:ig-mascot-blink 5.5s infinite; transform-box:fill-box; transform-origin:center; }
.ig-mascot-shadow { animation:ig-mascot-shadow 4s ease-in-out infinite; transform-origin:32px 57px; }
.ig-chat-launcher:hover .ig-mascot-body { animation:ig-mascot-hello .65s ease-in-out 2; }
.ig-chat-launcher:active .ig-game-chat-icon { transform:scale(.94); }
@keyframes ig-mascot-float { 0%,100% { transform:translateY(1px) rotate(-3deg); } 50% { transform:translateY(-3px) rotate(3deg); } }
@keyframes ig-mascot-blink { 0%,42%,46%,100% { transform:scaleY(1); } 44% { transform:scaleY(.12); } }
@keyframes ig-mascot-shadow { 0%,100% { transform:scaleX(1); opacity:.8; } 50% { transform:scaleX(.8); opacity:.4; } }
@keyframes ig-mascot-hello { 0%,100% { transform:rotate(0); } 30% { transform:rotate(-9deg) translateY(-3px); } 70% { transform:rotate(9deg) translateY(-3px); } }
.ig-chat-launcher:hover { background:#363639; }
.ig-chat-overlay { position:fixed; inset:0; z-index:99; background:#0005; }
.ig-chat-panel { position:fixed; z-index:100; right:24px; bottom:24px; width:min(400px,calc(100vw - 32px)); height:min(630px,calc(100dvh - 48px)); display:flex; flex-direction:column; overflow:hidden; border:1px solid #ffffff24; border-radius:26px; color:#eeeef0; background:rgba(25,25,28,.97); backdrop-filter:blur(30px); box-shadow:0 24px 80px #0008,inset 0 1px #ffffff0c; font-family:-apple-system,BlinkMacSystemFont,"Inter",sans-serif; }
.ig-chat-head { display:flex; align-items:center; gap:10px; flex-shrink:0; padding:17px 20px; border-bottom:1px solid #ffffff0c; }
.ig-chat-avatar { width:42px; height:42px; flex-shrink:0; display:grid; place-items:center; border:0; border-radius:0; background:transparent; box-shadow:none; color:#d2d2d7; }
.ig-chat-avatar svg { width:20px; height:20px; stroke-width:1.5; }
.ig-chat-head>div:nth-child(2) { flex:1; }
.ig-chat-head h2 { display:flex; flex-wrap:wrap; align-items:baseline; gap:7px; font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Inter",sans-serif; line-height:1.2; }
.ig-chat-brand { color:#f5f5f7; font-size:17px; font-weight:600; letter-spacing:-.035em; white-space:nowrap; }
.ig-chat-brand-dot { color:#ff453a; font-size:17px; margin:0 1px; }
.ig-chat-title-label { color:#f5f5f7; font-size:17px; font-weight:600; letter-spacing:-.035em; }
.ig-chat-head p { margin-top:3px; font-size:10px; color:#98989f; }
.ig-chat-icon { width:32px; height:32px; display:grid; place-items:center; border-radius:50%; color:#a4a4ac; }
.ig-chat-icon:hover { background:#ffffff0b; color:#fff; }
.ig-chat-icon svg { width:17px; height:17px; stroke-width:1.6; }
.ig-chat-messages { flex:1; min-height:0; padding:28px 24px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.ig-chat-intro { margin:10px 0 28px; }
.ig-chat-intro>span { font-size:9px; font-weight:550; letter-spacing:.12em; color:#92929c; }
.ig-chat-intro h2 { margin:13px 0 10px; font-size:34px; font-weight:600; line-height:1.05; letter-spacing:-.055em; }
.ig-chat-intro p { color:#a3a3ad; font-size:13px; line-height:1.65; }
.ig-chat-row { display:flex; margin-top:12px; }
.ig-chat-row.is-mine { justify-content:flex-end; }
.ig-chat-bubble { max-width:90%; padding:12px 15px; border-radius:18px 18px 18px 5px; background:#303034; color:#eeeef1; font-size:13px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.is-mine .ig-chat-bubble { background:#e9e9ed; color:#202024; border-radius:18px 18px 5px 18px; }
.ig-chat-prompts { display:grid; gap:7px; margin-top:20px; }
.ig-chat-prompts button { display:flex; justify-content:space-between; align-items:center; padding:11px 0; border-bottom:1px solid #ffffff12; color:#b7b7c1; text-align:left; font-size:12px; }
.ig-chat-prompts button:hover { color:#fff; }
.ig-chat-prompts svg { width:14px; height:14px; }
.ig-chat-guest form { display:grid; gap:15px; }
.ig-chat-guest p { color:#9999a3; font-size:11px; line-height:1.6; margin-bottom:2px; }
.ig-chat-guest label { display:grid; gap:7px; color:#b6b6bf; font-size:11px; }
.ig-chat-guest input { width:100%; height:48px; padding:0 14px; border:1px solid #ffffff16; border-radius:13px; color:#eeeef1; background:#ffffff06; outline:none; font-size:16px; }
.ig-chat-guest input:focus { border-color:#8aabcf; box-shadow:0 0 0 3px #8aabcf12; }
.ig-chat-start { display:flex; align-items:center; justify-content:center; gap:12px; height:47px; margin-top:3px; border-radius:13px; color:#19191c; background:#eeeef1; font-size:12px; font-weight:600; }
.ig-chat-start:hover { background:#fff; }
.ig-chat-start svg { width:16px; height:16px; }
.ig-chat-guest form>a { text-align:center; font-size:11px; color:#b2b2bd; padding:5px; }
.ig-chat-compose { padding:15px 18px 17px; border-top:1px solid #ffffff0c; }
.ig-chat-compose>div { display:flex; align-items:center; gap:8px; padding:6px; background:#ffffff06; border:1px solid #ffffff19; border-radius:24px; }
.ig-chat-compose>div:focus-within { border-color:#8aabcf; }
.ig-chat-compose input { flex:1; min-width:0; padding-left:10px; color:#fff; background:transparent; border:0; outline:none; font-size:16px; }
.ig-chat-compose button { display:grid; place-items:center; width:34px; height:34px; flex-shrink:0; border-radius:50%; background:#eeeef1; color:#19191c; }
.ig-chat-compose button:disabled { opacity:.3; }
.ig-chat-compose button svg { width:18px; height:18px; }
.ig-chat-compose small { display:block; margin-top:10px; font-size:9px; color:#92929b; text-align:center; }
.ig-chat-typing { display:flex; gap:4px; padding:16px; }
.ig-chat-typing span { width:5px; height:5px; border-radius:50%; background:#aaa; animation:ig-chat-pulse 1s infinite alternate; }
.ig-chat-typing span:nth-child(2) { animation-delay:.15s; }.ig-chat-typing span:nth-child(3) { animation-delay:.3s; }
.ig-chat-spin { animation:spin 1s linear infinite; }
@keyframes ig-chat-pulse { to { opacity:.3; } }
.ig-chat-panel button:focus-visible,.ig-chat-panel a:focus-visible,.ig-chat-launcher:focus-visible { outline:2px solid #8aabcf; outline-offset:3px; }
@media(max-width:900px) { .ig-chat-launcher { right:16px; bottom:calc(100px + env(safe-area-inset-bottom)); width:50px; padding:0; justify-content:center; border-radius:17px; }.ig-chat-launcher span { display:none; } }
@media(max-width:640px) { .ig-chat-panel { inset:auto 0 0; width:100%; height:min(700px,calc(100dvh - 18px)); border-radius:28px 28px 0 0; }.ig-chat-head { padding-top:22px; }.ig-chat-messages { padding:24px; }.ig-chat-compose { padding-bottom:max(17px,env(safe-area-inset-bottom)); }.ig-chat-overlay { backdrop-filter:blur(6px); }.ig-chat-panel::before { content:""; position:absolute; top:7px; left:calc(50% - 16px); width:32px; height:3px; border-radius:9px; background:#ffffff25; } }
@media(prefers-reduced-motion:reduce) { .ig-chat-typing span,.ig-chat-spin { animation:none; } }
@media(max-width:900px) { .ig-chat-launcher { width:60px; height:60px; padding:0; border-radius:21px; } }
@media(prefers-reduced-motion:reduce) { .ig-mascot-body,.ig-mascot-eyes,.ig-mascot-shadow,.ig-chat-launcher:hover .ig-mascot-body { animation:none; } }
.ig-chat-launcher,
.ig-chat-launcher:hover { width:60px; height:60px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; }
.ig-chat-launcher span { display:none; }

/* Topic shortcuts and a comfortable message composer. */
.ig-chat-topics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:18px 0 24px; }
.ig-chat-topics button { display:flex; flex-direction:column; align-items:flex-start; gap:12px; min-height:78px; padding:13px 10px; border:1px solid #ffffff12; border-radius:15px; background:#ffffff04; color:#b9b9c1; text-align:left; transition:background .18s,border-color .18s; }
.ig-chat-topics button:hover { background:#ffffff09; color:#fff; }
.ig-chat-topics button[aria-pressed="true"] { background:#eeeef1; color:#1c1c1e; border-color:#eeeef1; }
.ig-chat-topics svg { width:20px; height:20px; stroke-width:1.5; }
.ig-chat-topics span { font-size:11px; font-weight:500; }
.ig-chat-compose textarea { flex:1; min-width:0; min-height:34px; max-height:112px; resize:none; padding:6px 8px; line-height:22px; border:0; outline:none; background:transparent; color:#f5f5f7; font-family:inherit; font-size:16px; scrollbar-width:thin; }
.ig-chat-compose>div { align-items:flex-end; border-radius:20px; }
.ig-chat-guest .ig-chat-error { color:#ff9c95; margin:0; font-size:11px; }
.ig-chat-guest .ig-chat-selected { color:#babac3; margin:0; font-size:11px; }

/* Compact welcome sheet with grouped iOS-style fields. */
.ig-chat-panel.ig-chat-welcome { height:auto; max-height:calc(100dvh - 32px); background:#1c1c1e; }
.ig-chat-welcome .ig-chat-head { padding:18px 22px; border-bottom-color:#ffffff09; background:#ffffff02; }
.ig-chat-welcome .ig-chat-messages { flex:0 1 auto; padding:30px 26px 26px; }
.ig-chat-welcome .ig-chat-intro { margin:0 0 30px; }
.ig-chat-welcome .ig-chat-intro h2 { font-size:38px; letter-spacing:-.06em; font-weight:650; margin:0 0 12px; }
.ig-chat-welcome .ig-chat-intro p { font-size:13px; line-height:1.6; color:#a6a6ad; }
.ig-chat-welcome .ig-chat-avatar { background:transparent; }
.ig-chat-welcome .ig-chat-icon:last-child { background:#ffffff09; }
.ig-chat-guest .ig-chat-form-caption { margin:0 3px -5px; font-size:9px; letter-spacing:.09em; color:#8e8e96; }
.ig-chat-fields { overflow:hidden; border:1px solid #ffffff0a; border-radius:16px; background:#2c2c2e; }
.ig-chat-fields label { display:flex; align-items:center; gap:12px; min-height:58px; margin:0 15px; color:#d2d2d7; font-size:12px; }
.ig-chat-fields label+label { border-top:1px solid #ffffff10; }
.ig-chat-fields input { flex:1; min-width:0; width:0; height:56px; padding:0; border:0; border-radius:0; background:transparent; text-align:right; font-size:16px; box-shadow:none; }
.ig-chat-fields input:focus { box-shadow:none; }
.ig-chat-fields:focus-within { border-color:#6e9aca; box-shadow:0 0 0 3px #6e9aca12; }
.ig-chat-fields input::placeholder { color:#85858d; font-size:14px; }
.ig-chat-welcome .ig-chat-start { margin-top:6px; height:49px; background:#0a84ff; color:#fff; border-radius:14px; font-size:13px; }
.ig-chat-welcome .ig-chat-start:hover { background:#2997ff; }
.ig-chat-welcome .ig-chat-guest form>a { margin-top:2px; color:#94949e; font-size:11px; }
.ig-chat-welcome .ig-chat-guest form>a strong { color:#b9d7fc; font-weight:500; margin-left:3px; }
@media(max-width:640px) {
  .ig-chat-panel.ig-chat-welcome { inset:auto 8px 8px; width:calc(100% - 16px); max-height:calc(100dvh - 24px); border-radius:28px; }
  .ig-chat-welcome .ig-chat-head { padding-top:24px; }
  .ig-chat-welcome .ig-chat-messages { padding:28px 22px max(22px,env(safe-area-inset-bottom)); }
}
.ig-chat-welcome .ig-chat-start { background:#eeeef1; color:#19191c; }
.ig-chat-welcome .ig-chat-start:hover { background:#fff; }
.ig-chat-welcome .ig-chat-guest form>a strong { color:#d2d2d7; }
.ig-chat-fields:focus-within { border-color:#92929b; box-shadow:0 0 0 3px #ffffff09; }
