/* The supplied glow's violet, rose, blue and amber palette, adapted for the web. */
.contact-launcher { display: flex; align-items: center; justify-content: center; gap: 7px; width: fit-content; max-width: 100%; margin: 14px auto 2px; padding: 9px 14px; border: 1px solid #333; border-radius: 999px; background: #101012; color: #fff; font: 600 14px/1.35 'Baloo 2', sans-serif; cursor: pointer; box-shadow: 0 4px 12px #0002; }
.contact-launcher::before, .contact-status-dot { content: ''; display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #a8b5ff; box-shadow: 0 0 10px #8d9fff80; }
.contact-launcher:hover { background: #202024; }
.contact-launcher:active { transform: scale(.97); }
body.contact-open { overflow: hidden; }
.contact-dialog { position: fixed; inset: var(--contact-top, 0px) 0 auto; width: 100%; height: var(--contact-height, 100dvh); max-width: none; max-height: none; margin: 0; padding: 22px; border: 0; background: transparent; color: #f5f5f7; overflow: hidden; font-family: 'Baloo 2', sans-serif; }
.contact-dialog[open] { display: flex; align-items: center; justify-content: center; }
.contact-dialog::backdrop { background: #0008; backdrop-filter: blur(7px); }
.contact-dialog *, .contact-dialog *::before, .contact-dialog *::after { box-sizing: border-box; }
.contact-dialog button, .contact-dialog input, .contact-dialog textarea { font: inherit; }
.contact-dialog button { cursor: pointer; }
.contact-dialog button:disabled { opacity: .5; cursor: wait; }
.contact-dialog [hidden], .contact-inbox [hidden] { display: none !important; }
.contact-dialog :focus-visible { outline: 2px solid #b8b7fd; outline-offset: 4px; }
.contact-surface { width: min(500px, 100%); max-height: 100%; overflow-y: auto; padding: 28px; border-radius: 36px; background: #101012; box-shadow: 0 20px 80px #0005; transform-origin: top left; position: relative; }
.contact-entry-copy { text-align: center; margin: 8px 0 22px; }
.contact-eyebrow { color: #a5a5b1; font-size: 12px; letter-spacing: .14em; }
.contact-entry-copy h2 { font-size: clamp(23px, 5vw, 30px); margin: 6px 0; line-height: 1.3; color: #fff; }
.contact-back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; color: #e4e4e9; background: transparent; border: 0; border-radius: 22px; padding: 8px; }
.contact-back:hover { background: #ffffff12; }
.contact-back svg, .contact-send svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#contact-login label { display: block; color: #d2d2da; font-size: 15px; margin-bottom: 8px; }
.contact-id-row { display: flex; align-items: center; gap: 10px; padding: 8px; background: #242428; border: 1px solid #42424b; border-radius: 999px; }
.contact-id-row input { min-width: 0; flex: 1; width: 100%; color: white; padding: 8px 12px; border: none; background: transparent; outline: none; font-size: 18px; }
.contact-id-row:focus-within { border-color: #a7a5c9; }
#contact-game-id:focus, #contact-game-id:focus-visible { outline: none; box-shadow: none; border: 0; appearance: none; }
.contact-send { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: none; border-radius: 50%; background: #f6f6f8; color: #141417; }
.contact-send:active { transform: scale(.92); }
.contact-stop svg { fill: currentColor; stroke: none; }
.contact-privacy { color: #a4a4b0; font-size: 14px; line-height: 1.55; margin: 18px 0 8px; }
.contact-policy { display: inline; color: #bbbaf4; background: none; border: none; padding: 2px 0; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; text-align: left; }
.contact-error { color: #ffc9cb; font-size: 14px; line-height: 1.4; margin: 8px 0 0; overflow-wrap: anywhere; }
.contact-error:empty { display: none; }
.contact-loading .contact-id-row { animation: contact-breathe 1.1s ease-in-out infinite alternate; }
.contact-loading .contact-send svg { animation: contact-spin 1s linear infinite; }
.contact-full { padding: 0; }
.contact-full::backdrop { background: #000; }
.contact-full .contact-surface { width: 100%; height: 100%; max-height: none; padding: 0; border-radius: 0; background: #050506; overflow: hidden; }
.contact-room { position: relative; z-index: 2; display: flex; flex-direction: column; width: 100%; height: 100%; padding: max(18px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); animation: contact-room-in .65s .18s both; }
.contact-header { display: flex; justify-content: space-between; align-items: center; flex: 0 0 auto; gap: 12px; min-height: 56px; }
.contact-room-brand { text-align: center; }
.contact-room-brand strong { display: block; font-size: 21px; line-height: 1.25; }
.contact-room-brand span { display: block; color: #9898a6; font-size: 14px; }
.contact-signout { border: 1px solid #303036; border-radius: 24px; background: #141417; color: #c9c9d1; min-height: 42px; padding: 8px 14px; font-size: 14px !important; }
.contact-identity { display: flex; justify-content: center; align-items: center; gap: 8px; color: #b4b4c2; font-size: 14px; padding: 12px 0; overflow-wrap: anywhere; }
.contact-timeline { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3a3a42 transparent; width: min(100%, 820px); margin: 0 auto; padding: 14px 12px; }
.contact-message-list, .contact-admin-messages { display: flex; flex-direction: column; gap: 24px; }
.contact-message { max-width: min(85%, 640px); min-width: 0; overflow-wrap: anywhere; }
.contact-message.mine { align-self: flex-end; }
.contact-message.theirs { align-self: flex-start; }
.contact-message-author { font-size: 13px; color: #a0a0ae; margin: 0 0 6px 3px; }
.contact-message-body { font-size: 17px; line-height: 1.6; white-space: pre-wrap; text-align: left; }
.contact-message.mine .contact-message-body { background: #242427; padding: 13px 18px; border: 1px solid #34343a; border-radius: 22px 22px 6px 22px; }
.contact-message time, .contact-stopped { display: inline-block; font-size: 12px; color: #898998; margin: 6px 5px 0 0; }
.contact-compose-area { flex: 0 0 auto; width: min(100%, 820px); margin: 0 auto; padding: 12px 6px 0; }
#contact-compose { position: relative; background: #1a1a1e; border: 1px solid #414149; border-radius: 30px; padding: 12px; box-shadow: 0 8px 40px #0003; }
#contact-message { display: block; min-width: 0; width: 100%; max-height: min(120px, 20dvh); min-height: 46px; height: 46px; padding: 4px 9px 12px; color: #f3f3f7; background: none; border: none; outline: none; resize: none; font-size: 18px; line-height: 26px; }
#contact-message:focus-visible { outline: none; }
#contact-compose:focus-within { border-color: #737383; }
#contact-message:disabled { opacity: .65; }
.contact-compose-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.contact-compose-bottom span { color: #9898a7; font-size: 13px; }
.contact-waiting { color: #c4c2e9; font-size: 14px; min-height: 0; margin: 0 0 8px; }
.contact-waiting:empty { display: none; }
.contact-retention { color: #9696a6; text-align: center; font-size: 12px; margin: 9px 0 0; }
.contact-retention .contact-policy { font-size: 12px; }
.contact-older { display: block; margin: 0 auto 20px; padding: 10px 18px; border-radius: 22px; color: #d4d4e0; background: #202026; border: 1px solid #393942; }
.contact-glow { position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: 24px; }
.contact-glow::before, .contact-glow::after { content: ''; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: linear-gradient(115deg,#bc82f3 0%,#8d9fff 18%,#f5b9ea 36%,#ff6778 51%,#ffba71 64%,#c686ff 78%,#8d9fff 100%); background-size: 350% 350%; animation: contact-glow-flow 5s ease-in-out infinite alternate; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; }
.contact-glow::after { padding: 6px; filter: blur(5px); opacity: .5; animation: contact-glow-flow 5s ease-in-out infinite alternate, contact-glow-bloom 3s ease-in-out infinite alternate; }
@keyframes contact-glow-flow { 0% { background-position: 0% 12%; } 45% { background-position: 80% 35%; } 100% { background-position: 100% 100%; } }
@keyframes contact-glow-bloom { from { opacity: .25; } to { opacity: .65; } }
.contact-closing .contact-glow::before, .contact-closing .contact-glow::after { animation-play-state: paused; }
.contact-closing::backdrop { animation: contact-backdrop-away 560ms ease both; backdrop-filter: none; }
@keyframes contact-backdrop-away { to { background-color: transparent; } }
@keyframes contact-breathe { to { box-shadow: 0 0 24px #bc82f355; } }
@keyframes contact-spin { to { transform: rotate(360deg); } }
@keyframes contact-room-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.contact-admin-heading { margin-bottom: 16px; }
.contact-admin-heading h2 { margin: 0; }
.contact-admin-heading p { margin: 4px 0; font-size: 15px; }
.contact-inbox { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); min-height: 520px; gap: 16px; }
.contact-thread-sidebar { min-width: 0; }
.contact-thread-list { max-height: 640px; overflow-y: auto; display: grid; gap: 8px; }
.contact-thread { display: block; width: 100%; text-align: left; border: 2px solid #e6d3aa; border-radius: 18px; padding: 14px; background: #fff9ed; color: #473935; cursor: pointer; font-family: inherit; }
.contact-thread.selected { border-color: #a079dc; background: #f0e8ff; }
.contact-thread strong { font-size: 17px; display: block; overflow-wrap: anywhere; }
.contact-thread span, .contact-thread time { display: block; font-size: 13px; }
.contact-thread p { margin: 5px 0; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.contact-inbox-pages { display: flex; justify-content: space-between; margin-top: 10px; }
.contact-inbox-pages button { border: 1px solid #d1bb91; border-radius: 18px; padding: 8px 16px; background: #fff9ed; color: #473935; cursor: pointer; }
.contact-inbox-pages button:disabled { opacity: .45; }
.contact-admin-room { min-width: 0; background: #fff9ed; border-radius: 22px; padding: 18px; border: 2px solid #e6d3aa; }
.contact-admin-room-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.contact-admin-room h3 { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.contact-admin-pending { font-size: 14px; color: #694e9b; }
.contact-admin-timeline { height: 350px; overflow-y: auto; padding: 10px; overscroll-behavior: contain; }
.contact-admin-timeline .contact-message-author, .contact-admin-timeline .contact-message time, .contact-admin-timeline .contact-stopped { color: #796954; }
.contact-admin-timeline .mine .contact-message-body { background: #eee4ff; border-color: #d8c5f7; }
.contact-admin-compose { display: grid; gap: 8px; margin-top: 16px; }
.contact-admin-compose textarea { width: 100%; font: inherit; border: 1px solid #d6c19e; border-radius: 14px; padding: 12px; resize: vertical; }
.contact-admin-compose button { justify-self: end; }
.contact-delete-confirm { margin-top: 15px; padding: 15px; border: 1px solid #c85b60; border-radius: 16px; }
.contact-admin-error { color: #9c333e; }
.policy-copy { text-align: left; white-space: normal; line-height: 1.75; overflow-wrap: anywhere; font-weight: 400; }
.policy-copy :first-child { margin-top: 0; }
.policy-copy h1, .policy-copy h2, .policy-copy h3, .policy-copy h4 { line-height: 1.4; color: #44342e; text-shadow: none; margin: 1.4em 0 .6em; }
.policy-copy h1 { font-size: 24px; } .policy-copy h2 { font-size: 21px; } .policy-copy h3, .policy-copy h4 { font-size: 18px; }
.policy-copy p { margin: 0 0 1em; } .policy-copy strong { font-weight: 800; }
.policy-copy ul, .policy-copy ol { margin: .5em 0 1em; padding-left: 1.5em; }
.policy-copy li { margin: .35em 0; } .policy-copy li p { margin: .25em 0; }
.policy-copy hr { border: 0; border-top: 1px solid #d5c3a3; margin: 1.5em 0; }
.policy-copy blockquote { border-left: 3px solid #d8ae46; margin: 1em 0; padding-left: 1em; color: #6f5d4c; }
.policy-copy a { color: #51429b; text-decoration: underline; }
.policy-copy pre { overflow-x: auto; white-space: pre-wrap; } .policy-copy table { width: 100%; border-collapse: collapse; } .policy-copy td, .policy-copy th { border: 1px solid #d5c3a3; padding: 8px; }
.notice-detail-copy.policy-copy { max-height: min(60dvh, 620px); padding: 20px; }
.about-button { grid-template-columns: 1fr auto; }
.policy-preview { max-height: 360px; overflow-y: auto; background: #fffaf0; padding: 20px; border-radius: 16px; border: 1px solid #ddc9a6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-input-line { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.contact-input-line .contact-send { width: 44px; height: 44px; flex-basis: 44px; margin: 0; padding: 10px; background: #168bfa; color: white; }
.contact-tool { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; color: #dedee6; border-radius: 50%; flex: 0 0 44px; }
.contact-tool:hover { background: #ffffff12; }
.contact-tool svg, .contact-model-trigger svg, .contact-model-menu svg, .contact-attachment-menu svg, .contact-attachment-preview button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-model-wrap, .contact-add-wrap { position: relative; }
.contact-model-trigger { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 0; border-radius: 12px; background: none; color: #b7b7c3; font-size: 14px !important; }
.contact-model-trigger svg { width: 15px; height: 15px; }
.contact-model-menu, .contact-attachment-menu { position: absolute; z-index: 5; width: 230px; border: 1px solid #393940; border-radius: 20px; background: #202025; box-shadow: 0 12px 35px #0006; padding: 8px; text-align: left; }
.contact-model-menu { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.contact-model-menu p { font-size: 12px; color: #a1a1b0; margin: 5px 8px 8px; }
.contact-model-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; background: none; color: #eeeef3; border: 0; border-radius: 12px; padding: 10px; text-align: left; }
.contact-model-menu button[aria-checked=true] { background: #ffffff0d; }
.contact-model-menu button[aria-checked=false] svg { opacity: 0; }
.contact-model-menu button strong, .contact-model-menu button small { display: block; }
.contact-model-menu button strong { font-size: 16px; }
.contact-model-menu button small { font-size: 13px; color: #a7a7b5; }
.contact-attachment-menu { bottom: calc(100% + 12px); left: 0; }
.contact-attachment-menu button { display: flex; align-items: center; gap: 12px; background: none; color: #eeeef3; border: 0; padding: 10px; width: 100%; border-radius: 12px; text-align: left; }
.contact-attachment-menu button:hover, .contact-model-menu button:hover { background: #ffffff12; }
.contact-attachment-menu small { display: block; margin: 4px 10px; color: #a4a4b2; font-size: 12px; }
.contact-response-wait { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; padding: 15px 18px; border-radius: 20px; background: #1d1d23; min-height: 40px; }
.contact-response-wait span { display: block; width: 6px; height: 6px; border-radius: 50%; background: #dfdee9; animation: contact-thinking 1.35s ease-in-out infinite; }
.contact-response-wait span:nth-child(2) { animation-delay: .16s; } .contact-response-wait span:nth-child(3) { animation-delay: .32s; }
@keyframes contact-thinking { 0%,70%,100% { opacity: .35; transform: translateY(0) scale(.85); } 35% { opacity: 1; transform: translateY(-3px) scale(1); } }
.contact-message { animation: contact-message-enter 240ms ease-out both; }
@keyframes contact-message-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.contact-image-link { display: block; margin-top: 8px; }
.contact-image { display: block; max-width: min(100%, 360px); max-height: 320px; width: auto; border-radius: 18px; object-fit: contain; }
.contact-audio { display: block; width: min(100%, 300px); min-width: 220px; margin-top: 8px; height: 44px; color-scheme: dark; }
.contact-admin-room .contact-audio { color-scheme: light; }
.contact-style-badge { display: inline-block; font-size: 12px; margin-left: 6px; color: #77608c; }
.contact-attachment-preview { display: flex; align-items: center; gap: 8px; padding: 6px; }
.contact-attachment-preview img { width: 70px; height: 70px; object-fit: cover; border-radius: 14px; }
.contact-attachment-preview audio { max-width: calc(100% - 40px); height: 40px; color-scheme: dark; }
.contact-attachment-preview button { display: grid; place-items: center; width: 32px; height: 32px; padding: 7px; border: 0; border-radius: 50%; color: #e1e1ed; background: #33333c; }
.contact-recording { display: flex; align-items: center; gap: 14px; color: #ffadb6; font-size: 14px; padding: 6px 12px 10px; }
.contact-recording button { margin-left: auto; color: #ddd; background: none; border: 0; padding: 5px; }
.contact-tool.recording { color: #ff8796; background: #ff879617; }
.contact-tool.recording svg { fill: currentColor; stroke: none; }
.contact-wave { display: flex; align-items: center; gap: 3px; height: 20px; }
.contact-wave i { display: block; width: 3px; height: 7px; background: currentColor; border-radius: 2px; animation: contact-wave-pulse .7s ease-in-out infinite alternate; }
.contact-wave i:nth-child(2n) { animation-delay: -.4s; } .contact-wave i:nth-child(3n) { animation-delay: -.2s; }
@keyframes contact-wave-pulse { to { height: 19px; } }
.contact-speed-wrap { margin-left: auto; }
.contact-speed-trigger { color: #3b9eff; display: flex; gap: 3px; width: auto; min-width: 44px; border-radius: 16px; }
.contact-speed-trigger.exhausted { color: #ff8996; }
.contact-speed-trigger [data-speed-bolt] { display: flex; }
.contact-speed-trigger [data-speed-bolt] svg { width: 16px; height: 20px; fill: currentColor; stroke-width: 1; }
.contact-speed-panel { position: absolute; z-index: 6; right: 0; bottom: calc(100% + 12px); width: min(340px, 100%); max-height: min(350px, 50dvh); overflow-y: auto; overscroll-behavior: contain; background: #232329; border: 1px solid #42424c; border-radius: 24px; padding: 18px; box-shadow: 0 12px 40px #0008; }
.contact-speed-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 16px; }
.contact-speed-heading span { color: #75baff; font-size: 14px; }
#contact-speed { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 6px; margin: 24px 0 18px; border: 0; padding: 0; border-radius: 8px; background: linear-gradient(to right, #2998ff var(--speed-fill, 0%), #50505b var(--speed-fill, 0%)); cursor: pointer; touch-action: pan-y; }
#contact-speed::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; background: #f8f8fc; border: 1px solid #fff; border-radius: 50%; box-shadow: 0 2px 7px #0005; }
#contact-speed::-moz-range-thumb { width: 22px; height: 22px; background: #f8f8fc; border: 1px solid #fff; border-radius: 50%; box-shadow: 0 2px 7px #0005; }
.contact-speed-labels { display: flex; justify-content: space-between; gap: 2px; }
.contact-speed-labels button { border: 0; border-radius: 10px; padding: 8px 5px; font-size: 14px; color: #b4b4c0; background: transparent; }
.contact-speed-labels button[aria-pressed=true] { background: #2998ff1c; color: #9bcfff; }
.contact-speed-panel [data-speed-allowance] { font-size: 14px; color: #ededf5; margin: 12px 0 8px; }
.contact-speed-explanation { margin: 0; font-size: 13px; line-height: 1.45; color: #afafbd; }
.contact-speed-warning { margin-top: 8px; border: 1px solid #94424e; background: #481b2466; color: #ffb5bf; border-radius: 16px; padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.contact-speed-warning button { display: block; margin-top: 7px; border: 1px solid #b9606d; border-radius: 12px; padding: 6px 10px; background: #592432; color: #fff; }
#contact-compose .contact-send:disabled { cursor: not-allowed; }
@media(max-width: 600px) {
  .contact-dialog { padding: 14px; } .contact-surface { padding: 20px; border-radius: 30px; }
  .contact-full { padding: 0; } .contact-room { padding-left: 14px; padding-right: 14px; }
  .contact-header { gap: 5px; } .contact-header .contact-back span { display: none; }
  .contact-room-brand strong { font-size: 18px; } .contact-room-brand span { font-size: 12px; }
  .contact-signout { padding: 8px 10px; } .contact-glow { border-radius: 22px; }
  .contact-timeline { padding: 12px 6px; } .contact-message { max-width: 92%; }
  .contact-compose-area { padding-left: 0; padding-right: 0; } .contact-compose-bottom span { font-size: 12px; }
  .contact-inbox { grid-template-columns: 1fr; } .contact-thread-list { max-height: 240px; }
  .notice-detail-copy.policy-copy { padding: 14px; } .contact-admin-room { padding: 12px; }
}
@media(prefers-reduced-motion: reduce) {
  .contact-dialog *, .contact-dialog *::before, .contact-dialog *::after { animation: none !important; transition: none !important; }
}
@media(max-height: 520px) {
  .contact-room { overflow-y: auto; padding-top: 10px; padding-bottom: 10px; }
  .contact-header { min-height: 44px; }
  .contact-room-brand span { display: none; }
  .contact-identity { padding: 5px 0; }
  .contact-timeline { min-height: 80px; }
  #contact-message { min-height: 34px; height: 38px; }
  .contact-compose-area { padding-top: 6px; }
}
