:root{
  --bg: #0f0f12;
  --card: #16161b;
  --text: #eaeaf2;
  --muted: #9aa1b2;
  --primary: #ff5bb0;
  --accent: #7b5cff;
  --ring: rgba(255, 91, 176, 0.45);
  --shadow: rgba(0,0,0,0.4);
  --radius: 16px;
}
*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; background:var(--bg); color:var(--text); font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
a{ color:#fff; text-decoration: none; }
.container{ width: min(1100px, 92vw); margin: 0 auto; padding: 16px; }
.row{ display:flex; gap:12px; }
.grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:16px; }
.grid-2{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:16px; }
.grid-2-v{ display:grid; grid-template-rows: 1fr 1fr; gap:16px; height: 680px; }
.between{ justify-content: space-between; } .center{ align-items:center; }
.gap{ gap:8px; }
.card{ background:var(--card); border-radius: var(--radius); padding:20px; box-shadow: 0 10px 30px var(--shadow); }
.soft{ background: #1a1b22; }
.site-header{ border-bottom: 1px solid #23232a; position: sticky; top:0; backdrop-filter: saturate(1.2) blur(6px); z-index:10; }
.brand .logo{ width: 180px; height:auto; display:block; }
.brand .logo.small{ width: 130px; }
.tagline{ margin-left: 10px; color: var(--muted); }
.nav .hello{ margin-right: 10px; color: var(--muted); }
.btn{ padding:10px 14px; background:#2a2a33; border:1px solid #3a3a46; border-radius: 12px; cursor:pointer; transition: .2s; }
.btn:hover{ transform: translateY(-1px); box-shadow: 0 8px 18px var(--shadow); }
.btn.primary{ background: linear-gradient(135deg, var(--primary), var(--accent)); border: none; }
.btn.disabled{ opacity:.45; cursor:not-allowed; }
.input{ flex:1; padding:12px 14px; border-radius: 12px; border:1px solid #2b2b35; background:#121218; color:var(--text); outline: none; box-shadow: 0 0 0 0 var(--ring); }
.input:focus{ border-color: #3f3f54; box-shadow: 0 0 0 4px var(--ring); }
.muted{ color: var(--muted); } .small{ font-size: 12px; }
.hero h1{ margin:4px 0 8px; font-size: 28px; }
.room-card h3{ margin:6px 0 4px; }
.video-wrap video{ width:100%; background:#0b0b0f; border-radius: 12px; min-height: 320px; }
.video-toolbar{ margin-bottom: 10px; }
.video-note{ margin-top: 8px; }
.chat-wrap{ display:block; }
.chat{ display:flex; flex-direction: column; height: 100%; }
.chat-head{ font-weight: 700; margin-bottom: 8px; }
.chat-log{ flex:1; background:#0b0b0f; border-radius: 12px; border:1px solid #2b2b35; margin-bottom:10px; overflow:auto; padding:10px; }
.site-footer{ margin-top: 30px; border-top: 1px solid #23232a; }
.kennels h2{ margin: 10px 0; }
code{ background:#111016; padding:2px 6px; border-radius: 8px; color:#c7caf1; }
@media (max-width: 920px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-2-v{ height:auto; grid-template-rows: auto auto; }
  .brand .logo{ width: 150px; }
}

/* In-room Paawt nudge */
.nudge.hidden{ display:none; }
.nudge{
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  z-index: 50;
}
.nudge-avatar img{
  width: 64px;
  height: auto;
  filter: drop-shadow(0 8px 16px var(--shadow));
  border-radius: 12px;
}
.nudge-bubble{
  position: relative;
  max-width: 360px;
  background: var(--card);
  border: 1px solid #2b2b35;
  border-radius: 16px;
  padding: 12px 14px 14px 14px;
  box-shadow: 0 12px 30px var(--shadow);
}
.nudge-bubble:after{
  content: "";
  position: absolute;
  right: -8px;
  bottom: 20px;
  width: 0; height: 0;
  border-left: 10px solid #2b2b35;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.nudge-close{
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  background: #23232a; color:#fff;
  border: 1px solid #34343f;
  border-radius: 50%;
  cursor: pointer;
}
.nudge-text{ margin: 4px 0 10px; }
.nudge-actions .btn{ width: 100%; text-align: center; }

.chat-nudge{
  margin: 6px 0;
  padding: 6px 8px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  font-size: 13px;
}

/* Chat system messages */
.chat-msg.system{
  padding: 8px 10px;
  margin: 6px 0;
  background: #14141a;
  border: 1px dashed #2b2b35;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}
.chat-msg.system a{ color: #caa8ff; text-decoration: underline; }

/* --- MOBILE HEADER/BUTTON FIX (append-only) --- */
@media (max-width: 900px){
  .site-header .container { display:flex; flex-wrap:wrap; align-items:center; }
  .brand { width:100%; display:flex; align-items:center; justify-content:space-between; }
  .tagline { display:none; }            /* free up space on small screens */
  .nav { width:100%; display:flex; gap:10px; margin-top:10px; }
  .nav .btn { flex:1 1 auto; width:100%; text-align:center; padding:14px 16px; font-size:16px; min-width:0; }
}
@media (max-width: 560px){
  .brand .logo { width:130px; }
}
