/* Northfire Web Chat styles, shared (Built by Kyle Bargman, 2026-11-20).
   Made from the web chat rules in modern.css, so other sites (phantasia5.com)
   can load the same client and its look; a site may recolour it by setting
   these variables on #webchat. */
#webchat{ --bg:#0d0d0d; --bg-band:#151515; --surface:#141414; --surface-2:#1b1b1b; --border:#262626;
	--border-strong:#333333; --text:#d6d6d6; --text-strong:#f2f2f2; --muted:#8a8a8a; --accent:#5a0000;
	--accent-2:#8f1010; --accent-hot:#c0281c; --radius:8px; --shadow:0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.35); }
.content > #webchat{ flex-basis:100%; }
.wc-hidden{ display:none !important; }
.wc-login{ max-width:420px; margin-top:14px; }
.wc-app{ margin-top:14px; display:flex; flex-direction:column; height:min(72vh, 680px); min-height:420px;
	border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:#0b0b0b; }
.wc-bar{ display:flex; align-items:center; gap:10px; padding:6px 8px; background:var(--surface-2); border-bottom:1px solid var(--border); }
.wc-tabs{ display:flex; gap:4px; overflow-x:auto; flex:1; scrollbar-width:thin; }
.wc-tab{ flex:0 0 auto; padding:5px 12px; border-radius:6px; border:1px solid var(--border); background:#151515;
	color:#cfcfcf; font:inherit; font-size:13px; cursor:pointer; }
.wc-tab:hover{ background:#232323; }
.wc-tab.active{ background:var(--accent); border-color:var(--accent-2); color:#fff; }
.wc-tab.unread{ color:#ffb38a; border-color:#7a3a1a; }
.wc-status{ font-size:12px; white-space:nowrap; color:var(--muted); }
.wc-status-ok{ color:#7fd88f; }
.wc-status-error{ color:#ff8a7a; }
.wc-topic{ padding:6px 12px; font-size:13px; color:var(--muted); border-bottom:1px solid var(--border);
	white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wc-main{ flex:1; display:flex; min-height:0; }
.wc-logs{ flex:1; min-width:0; display:flex; }
.wc-log{ flex:1; overflow-y:auto; padding:8px 12px; font:13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.wc-line{ word-wrap:break-word; overflow-wrap:anywhere; }
.wc-time{ color:#5f5f5f; margin-right:8px; font-size:12px; }
.wc-nick{ font-weight:700; margin-right:8px; }
.wc-msg .wc-nick::after{ content:":"; }
.wc-action{ font-style:italic; }
.wc-info{ color:#8a8a8a; }
.wc-info .wc-text{ font-size:12.5px; }
.wc-error{ color:#ff8a7a; }
.wc-notice .wc-nick{ color:#e8a87c !important; }
.wc-highlight{ background:rgba(192,40,28,.18); border-left:3px solid var(--accent-hot); padding-left:6px; }
.wc-line a{ color:#e8a87c; text-decoration:underline; }
.wc-userbox{ width:170px; border-left:1px solid var(--border); background:#101010; overflow-y:auto; }
.wc-count{ padding:6px 10px; font-size:12px; color:var(--muted); border-bottom:1px solid var(--border); }
.wc-users{ list-style:none; margin:0; padding:4px 0; font-size:13px; }
.wc-users li{ padding:2px 10px; cursor:default; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wc-users li:hover{ background:#1c1c1c; }
.wc-prefix{ display:inline-block; width:12px; color:#e8a87c; font-weight:700; }
.wc-form{ display:flex; gap:6px; padding:8px; border-top:1px solid var(--border); background:var(--surface-2); }
.wc-form input{ flex:1; min-width:0; padding:9px 12px; background:#0b0b0b; border:1px solid var(--border-strong);
	border-radius:6px; color:var(--text-strong); font:inherit; font-size:14px; }
.wc-form input:focus{ outline:none; border-color:var(--accent-hot); box-shadow:0 0 0 3px rgba(192,40,28,.25); }
.wc-form .btn{ padding:8px 16px; }
.wc-toggle-users{ display:none; background:#151515; border:1px solid var(--border); color:#cfcfcf; border-radius:6px; padding:0 10px; cursor:pointer; }
@media (max-width: 760px){
	.wc-app{ height:75vh; }
	.wc-userbox{ display:none; position:absolute; right:0; top:0; bottom:0; width:60%; z-index:5; box-shadow:-8px 0 24px rgba(0,0,0,.6); }
	.wc-main{ position:relative; }
	.wc-userbox.wc-open{ display:block; }
	.wc-toggle-users{ display:block; }
	.wc-log{ font-size:13px; padding:6px 8px; }
}
.wc-nick[data-nick], .wc-users li{ cursor:context-menu; }
.wc-menu{ position:fixed; z-index:1000; min-width:200px; padding:4px; background:#161616; border:1px solid var(--border-strong);
	border-radius:8px; box-shadow:0 14px 34px rgba(0,0,0,.65); font-size:13px; }
.wc-menu-head{ padding:6px 10px 4px; font-weight:700; color:var(--text-strong); }
.wc-menu-sep{ margin:4px 0 2px; padding:6px 10px 2px; border-top:1px solid var(--border); font-size:11px;
	text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.wc-menu-item{ display:block; width:100%; text-align:left; padding:6px 10px; border:0; border-radius:5px; background:none;
	color:#d6d6d6; font:inherit; cursor:pointer; }
.wc-menu-item:hover, .wc-menu-item:focus{ background:#262626; color:#fff; outline:none; }
.wc-menu-item.wc-danger{ color:#ff9a8a; }
.wc-menu-item.wc-danger:hover, .wc-menu-item.wc-danger:focus{ background:var(--accent); color:#fff; }
.wc-app{ position:relative; }
.wc-line{ position:relative; }
.wc-quote{ font-size:12px; color:#8a8a8a; border-left:2px solid #444; padding-left:6px; margin:2px 0; }
.wc-edited{ color:#6f6f6f; font-size:11.5px; }
.wc-deleted .wc-text{ color:#6f6f6f; font-style:italic; }
.wc-locked .wc-text{ color:#9a9a9a; }
.wc-histsep{ text-align:center; color:#6f6f6f; font-size:11.5px; margin:6px 0; border-bottom:1px dashed #2a2a2a; }
.wc-emote{ height:22px; vertical-align:middle; }
.wc-media{ margin:4px 0 2px; }
.wc-media img, .wc-media video{ max-width:min(320px, 100%); height:auto; border-radius:8px; display:block; background:#151515; }
.wc-media audio{ vertical-align:middle; max-width:100%; }
.wc-file{ display:inline-block; padding:6px 10px; border:1px solid var(--border); border-radius:8px; background:#141414; text-decoration:none !important; }
.wc-react-btn{ position:absolute; right:4px; top:0; opacity:0; border:1px solid var(--border); background:#181818; color:#cfcfcf; border-radius:6px; font-size:13px; line-height:1; padding:3px 6px; cursor:pointer; }
.wc-line:hover .wc-react-btn, .wc-react-btn:focus{ opacity:1; }
.wc-react-pick{ position:absolute; right:4px; top:-30px; z-index:4; display:flex; gap:2px; padding:3px; background:#181818; border:1px solid var(--border-strong); border-radius:18px; box-shadow:0 6px 18px rgba(0,0,0,.6); }
.wc-react-pick button{ border:0; background:none; font-size:18px; padding:2px 4px; cursor:pointer; border-radius:12px; }
.wc-react-pick button:hover{ background:#2a2a2a; }
.wc-reacts{ display:flex; flex-wrap:wrap; gap:4px; margin:3px 0 2px; }
.wc-react{ border:1px solid var(--border); background:#151515; color:#d6d6d6; border-radius:12px; font-size:12px; padding:1px 8px; cursor:pointer; }
.wc-react.wc-mine{ border-color:var(--accent-hot); background:rgba(192,40,28,.2); }
.wc-poll{ max-width:360px; display:flex; flex-direction:column; gap:4px; }
.wc-poll-opt{ position:relative; overflow:hidden; text-align:left; padding:6px 10px; border:1px solid var(--border); border-radius:8px; background:#141414; color:#e0e0e0; font:inherit; font-size:13px; cursor:pointer; }
.wc-poll-opt.wc-mine{ border-color:var(--accent-hot); }
.wc-poll-bar{ position:absolute; left:0; top:0; bottom:0; background:rgba(192,40,28,.25); }
.wc-poll-label{ position:relative; }
.wc-poll-foot{ font-size:11.5px; color:#7a7a7a; }
.wc-typing{ min-height:18px; padding:0 12px; font-size:12px; color:#8a8a8a; font-style:italic; background:#0b0b0b; }
.wc-tool{ background:#151515; border:1px solid var(--border); color:#cfcfcf; border-radius:6px; padding:0 10px; cursor:pointer; font-size:15px; }
.wc-tool-gif{ font-size:11px; font-weight:700; letter-spacing:.04em; }
.wc-tool:hover, .wc-toggle-users:hover{ background:#232323; }
.wc-gifs{ position:absolute; left:8px; right:8px; bottom:58px; z-index:6; max-height:55%; display:flex; flex-direction:column; background:#141414; border:1px solid var(--border-strong); border-radius:10px; box-shadow:0 -10px 30px rgba(0,0,0,.6); padding:8px; }
.wc-gifs-head{ display:flex; gap:6px; }
.wc-gifs-head input{ flex:1; padding:7px 10px; background:#0b0b0b; border:1px solid var(--border-strong); border-radius:6px; color:var(--text-strong); font:inherit; font-size:16px; }
.wc-gifs-head button{ background:#1c1c1c; border:1px solid var(--border); color:#ddd; border-radius:6px; padding:0 10px; cursor:pointer; }
.wc-gifs-msg{ font-size:11.5px; color:#7a7a7a; margin:4px 2px; }
.wc-gifs-grid{ overflow-y:auto; columns:3 110px; column-gap:6px; }
.wc-gifs-grid img{ width:100%; margin-bottom:6px; border-radius:6px; cursor:pointer; break-inside:avoid; display:block; }
.wc-shake{ animation:wc-shake .5s; }
@keyframes wc-shake{ 0%,100%{ transform:none; } 20%{ transform:translateX(-8px); } 40%{ transform:translateX(8px); } 60%{ transform:translateX(-5px); } 80%{ transform:translateX(5px); } }
@media (hover:none){
	.wc-react-btn{ opacity:.55; }
}
@media (max-width: 760px){
	.wc-app{ height:100vh; height:100dvh; min-height:0; margin-top:0; border-radius:0; border-left:0; border-right:0; }
	.wc-bar{ padding:6px; }
	.wc-tab{ padding:7px 12px; font-size:14px; }
	.wc-status{ display:none; }
	.wc-topic{ font-size:12px; padding:5px 10px; }
	.wc-log{ font:14px/1.45 -apple-system, system-ui, sans-serif; }
	.wc-time{ font-size:11px; margin-right:6px; }
	.wc-userbox{ width:72%; max-width:280px; }
	.wc-users li{ padding:8px 12px; font-size:15px; }
	.wc-form{ padding:6px; gap:4px; padding-bottom:max(6px, env(safe-area-inset-bottom)); }
	.wc-form input{ font-size:16px; padding:9px 10px; }
	.wc-form .btn{ padding:8px 12px; }
	.wc-tool, .wc-toggle-users{ min-width:40px; padding:0 8px; }
	.wc-gifs{ bottom:56px; left:4px; right:4px; max-height:60%; }
}
.wc-send-icon{ display:none; }
@media (max-width: 760px){
	.content > #webchat{ padding-left:0 !important; padding-right:0 !important; border-left:0 !important; border-right:0 !important; }
	#webchat .column_header, #webchat .column_subheader, .wc-login{ padding-left:12px; padding-right:12px; }
	.wc-send-text{ display:none; }
	.wc-send-icon{ display:inline; }
	.wc-form .btn.wc-send{ padding:8px 12px; }
	.wc-tool, .wc-toggle-users{ min-width:38px; }
}
