
    :root{
      --bg0:#0c0b0a;  
      --bg1:#13110f;
      --warm1: rgba(255, 198, 120, .10);
      --warm2: rgba(255, 140, 90, .08);
      --glass: rgba(255,255,255,.06);
      --line: rgba(255,255,255,.10);
      --text: rgba(255,255,255,.92);
      --muted: rgba(255,255,255,.62);
      --glow: rgba(255, 196, 120, .55);
      --glow2: rgba(255, 150, 110, .20);
      --radius: 18px;
    }

    *{ box-sizing:border-box; }
    html,body{ height:100%; margin:0; }
    body{
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
      color: var(--text);
      overflow:hidden;
      background:
        radial-gradient(900px 700px at 20% 20%, var(--warm1), transparent 60%),
        radial-gradient(900px 700px at 80% 30%, var(--warm2), transparent 55%),
        radial-gradient(1200px 900px at 50% 110%, rgba(90,180,255,.06), transparent 60%),s
        linear-gradient(180deg, var(--bg1), var(--bg0));
    }

    body::before{
      content:"";
      position:fixed; inset:0;
      pointer-events:none;
      background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
      background-size: 3px 3px;
      opacity:.16;
      mix-blend-mode: overlay;
      filter: blur(.2px);
    }

    #stage{ position:fixed; inset:0; }
    #stage{ position:fixed; inset:0; touch-action:none; }
    .spark{ touch-action:none; }


    .nav-bar-top {
      position: fixed;
      top: 10px;
      left: 10px;
      z-index: 200;
      pointer-events: auto;
      color: rgba(171, 171, 171, 0.92);
    }

    .nav-bar-top a,
    .nav-bar-top a:visited,
    .nav-bar-top a:hover,
    .nav-bar-top a:focus {
      color: inherit;          
      text-decoration: none;  
    }

    .nav-bar-top a:hover {
      opacity: .75;            
    }

    /* Hero */
    .hero-layer{
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      z-index: 2;
      transform: translateY(3vh);
    }
    .hero-title{
      font-family: var(--font-script, 'Caveat', 'Playfair Display', cursive);
      font-size: clamp(42px, 7vw, 92px);
      font-weight: 500;
      letter-spacing: .02em;
      color: rgba(255, 255, 255, 0.15);
      text-shadow:
        0 10px 40px rgba(0,0,0,.35),
        0 2px 8px rgba(0,0,0,.25);
      margin: auto;
      display:flex;
      flex-direction:column;
      align-items: center;
      line-height:1.3;
    }
    .hero-sub{
      margin-top: 8px;
      font-size: 13px;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.32);
    }

    .campfire-center{
      position:absolute;
      left:50%;
      top:40%;
      transform: translate(-50%,-58%);
      width: min(200px, 52vw);
      aspect-ratio: 1 / 1;
      border-radius: 333px;
      border: 1px solid rgba(15, 8, 0, 0.17);

      background-size: 145%;
      background-position: center;
      background-repeat: no-repeat;

      animation: campfireCycle 2.7s steps(1) infinite;

      box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24),
                  inset 0 0px 2px 0px rgba(18, 18, 18, 0.51);
      overflow:hidden;
      user-select:none;
      z-index:30;
      pointer-events:none;
    }

    @keyframes campfireCycle {
      0%  { background-image: url("/images/campfire_thoughts_1.webp"); }
      15% { background-image: url("/images/campfire_thoughts_2.webp"); }
      55% { background-image: url("/images/campfire_thoughts_4.webp"); }
      75% { background-image: url("/images/campfire_thoughts_3.webp"); }
    }

    #source{
      position:absolute;
      left:50%;
      top:38%;
      width: 111px;
      height: 111px;
      transform: translate(-50%,-58%);
      pointer-events:none;
      z-index: 31;
    }

    .dock{
      position:absolute;
      left: 18px; right: 18px; bottom: 14px;
      height: min(35vh, 330px);
      border-radius: 26px;
      border: 1px dashed rgba(255,255,255,.16);
      background: rgba(255,255,255,.04);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      z-index:50;
      padding: 12px;
      overflow:hidden; /* bleibt */

      display: grid;
      grid-template-columns:
        minmax(280px, 1fr)
        clamp(300px, 34vw, 640px)
        minmax(280px, 1fr);
      gap: 12px;
      align-items: stretch;
    }

    /* LEFT | MID | RIGHT columns */
    .dock-col-left{
      min-width: 0;
      display:flex;
      gap: 12px;
      align-items: stretch;
      min-height: 0;
    }
    .dock-col-mid{
      width:auto;     /* wichtig */
      min-width:0;
      display:flex;
      min-height: 0;
    }
    .dock-col-right{
      min-width: 0;
      display:flex;
      gap: 12px;
      align-items: space-between;
      min-height: 0;
      flex-direction: column; /* we can add a row under the right stack */
    }
    .h2-title{
      font-size: 12px;
      margin:auto;
      color: rgba(255,255,255,.45);  
      letter-spacing: .06em;
      word-spacing: .01em;
      font-style: italic
    }
    .online{
      display:flex;
      font-size: 10px;
      color: rgba(255,255,255,.45);
      gap: 2px; 
    }

    .glass{
      background: linear-gradient(180deg, rgba(52, 52, 52, 0.1), rgba(130, 130, 130, 0.02));
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 18px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.10);
      backdrop-filter: blur(14px) saturate(140%);
      -webkit-backdrop-filter: blur(14px) saturate(140%);
    }

    .dock-left{
      flex: 1 1 0;
      width: 100%;
      display:flex;
      flex-direction:column;
      gap: 10px;
      min-height: 0;
      
    }
    .dock-left-input{
      display:flex;
      flex-direction:column;
      gap: 12px;
      min-height: 0;
    }

    .dock-hero-wrap{ display:flex; align-items:center; gap: 10px; padding-left: 12px; }
    .dock-hero{
      display:inline-flex;
      align-items:center;
      justify-content: space-between;
      gap:5px;
      padding-left: 12px;
      font-size: 12px;
      letter-spacing: .18em;
      text-transform: uppercase;
      font-style: italic;
      opacity: .85;
      color: rgba(255,255,255,.92);
      text-shadow: 0 10px 26px rgba(0,0,0,.55);
    }
    .dock-hero::after{
      content:"";
      height:1px;
      min-width: 30px;
      max-width: 115px;
      margin-left:8px;
      background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,0));
      opacity:.7;
    }

    .composer{ padding: 12px; border-radius: 22px; }
    .composer textarea{
      width:100%;
      min-height: 62px;
      max-height: 100px;
      resize: none;
      padding: 12px 12px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.22);
      color: var(--text);
      outline:none;
      font-size: 15px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
      line-height: 1.25;
    }
    .composer textarea::placeholder{ color: rgba(255,255,255,.45); }
    .composer small{
      display:block;
      margin-top: 8px;
      color: rgba(255,255,255,.55);
      font-size: 12px;
      line-height: 1.25;
    }
    .composer small b{ color: rgba(255,255,255,.78); }

    .respawn-row{
      margin-top: 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .respawn-actions{ display: flex; align-items: center; gap: 8px; }
    .send-btn{
      padding: 8px 14px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.10);
      color: rgba(255,255,255,.92);
      font-size: 12px;
      font-weight: 650;
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    }
    .send-btn:hover{ background: rgba(255,255,255,.16); }

    .respawn-label{
      font-size: 12px;
      color: rgba(255,255,255,.55);
      display:flex;
      align-items:center;
      gap: 8px;
      white-space: nowrap;
    }
    .seg{
      display:flex;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(0,0,0,.18);
      border-radius: 14px;
      overflow:hidden;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    }
    .seg button{
      border: 0;
      background: transparent;
      color: #969696ba;
      font-size: 12px;
      padding: 8px 10px;
      cursor:pointer;
      min-width: 38px;
    }
    .seg button:hover{ background: rgba(255,255,255,.05); }
    .seg button.active{
      background: rgba(255,255,255,.10);
      color: rgba(255,255,255,.92);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    }

    /* LEFT: dock list */
    .dock-list{
      flex: 1 1 0;
      min-width: 0px;
      display:flex;
      flex-direction:column;
      gap: 10px;
      min-height: 0;    
    }

    .dock-title{
      font-size: 12px;
      color: rgba(255,255,255,.55);
      letter-spacing:.2px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 10px;
      padding: 0 10px;
    }
    .dock-title span:last-child{ color: rgba(255,255,255,.40); }

    .dock-items{
      flex: 1;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.10);
      padding: 15px;
      overflow:auto;
      display:flex;
      flex-direction:column;
      gap: 8px;
      min-height: 0;
    }

    .dock-items, .chat-box{
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .dock-items::-webkit-scrollbar,
    .chat-box::-webkit-scrollbar{
      width: 0; height: 0;
    }

    .msg{
      align-self: flex-start;
      max-width: 100%;
      border-radius: 14px;
      padding: 0px 5px 3px 8px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.05);
      display:flex;
      gap: 10px;
      align-items:center;
      cursor:pointer;
      user-select:none;
      position: relative;
    }
    .msg:hover{ border-color: rgba(255,255,255,.20); background: rgba(255,255,255,.07); }
    .msg.active{
      border-color: rgba(144, 86, 246, 0.37);
      box-shadow: 0 0 0 1px rgba(170, 120, 255, 0.346), 0 0 1px rgba(170, 120, 255, .16);
      
    }
    .msg.unread{
      border-color: rgba(255, 210, 150, .55);
      box-shadow: 0 0 0 1px rgba(255, 210, 150, .18), 0 0 18px rgba(255, 200, 140, .12);
    }
    .msg-text{
      flex: 1;
      font-size: 13px;
      line-height: 1.18;
      color: rgba(255,255,255,.92);
      word-break: break-word;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .msg-meta{ display:flex; align-items:center; gap: 8px; flex: 0 0 auto; }

    .rel-btn{
      color: #7c7c7c;
      width: 26px;
      height: 26px;
      border-radius: 8px;
      border: 0px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.0);
      display: grid;
      place-items: center;
      cursor: pointer;
      flex: 0 0 auto;
      padding: 0;
      position:relative;
      overflow:visible;
    }
    
    .rel-donut .donut-fill {
      transition: opacity .18s ease, transform .18s ease;
      transform: scale(.6);
      transform-origin: center;
    }
    .rel-btn svg { transition: filter .18s ease, color .18s ease; }
    .rel-btn:hover { color: #ffb089; }
    .rel-btn:hover .donut-fill { opacity: 1; transform: scale(1); }
    .rel-btn:hover svg {
      filter: drop-shadow(0 0 6px rgba(255, 119, 40, 0.51)) drop-shadow(0 0 12px rgba(255, 38, 0, 0.26));
    }
    .rel-btn::after{
      content: attr(data-hint);
      position:absolute;
      bottom: 65%;
      left:130%;
      transform: translateX(-10%);
      font-size:11px;
      background: rgba(34, 34, 34, 0.63);
      color:#fff;
      padding:5px 6px;
      border-radius:6px;
      white-space:nowrap;
      opacity:0;
      pointer-events:none;
      z-index: 9999;
    }
    .rel-btn:hover::after{ opacity:1; }

    /* MID: Chat */
    .chat{
      flex: 1 1 auto;
      min-width: 0;
      display:flex;
      flex-direction:column;
      gap: 10px;
      min-height: 0;
      height:100%;
      position: relative;
    }
    .chat-header{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 10px;
      font-size: 12px;
      color: rgba(255,255,255,.55);
      letter-spacing:.2px;
      flex: 0 0 auto;
      padding: 0 10px;
    }
    .chat-header-btn{
      display:flex;
      flex-direction: row;
      gap: 10px;
    }
    .chat-expand{
      width: 16px; height: 16px;
      border-radius: 12px;
      border: 1px solid rgba(126, 126, 126, 0.12);
      background: rgba(0, 0, 0, 0.27);
      color: rgba(255,255,255,.85);
      display:grid;
      place-items:center;
      cursor:pointer;
      flex: 0 0 auto;
      line-height: 1;
      padding: 0;
    }
    .chat-expand:hover{
      border-color: rgba(255,255,255,.22);
      background: rgba(0,0,0,.24);
      color: rgba(255,255,255,.95);
    }

    /* expand mode */
    body.chat-expanded-mode #dock{ overflow: visible; }
    body.chat-expanded-mode .dock-col-mid{ position: relative; }
    body.chat-expanded-mode .chat{
      position: relative;
      z-index: 120;
      --chatExpand: 21vh;
      height: calc(101% + var(--chatExpand));
      margin-top: calc(-1 * var(--chatExpand));
    }

    .chat-box{
      flex: 1;
      border-radius: 18px;
      border: 1px solid rgba(144, 86, 246, 0.27);
      background: rgba(0, 0, 0, 0.25);
      padding: 12px;
      overflow:auto;
      display:flex;
      flex-direction:column;
      gap: 10px;
      min-height: 0;
    }
    .bubble{
      width: fit-content;
      max-width: 92%;
      padding: 7px 10px;
      border-radius: 14px;
      border: 1px solid rgba(218, 153, 14, 0.15);
      background: rgba(255,255,255,.06);
      font-size: 13px;
      line-height: 1.25;
      word-break: break-word;
      white-space: pre-wrap;
    }
    .bubble.me{ align-self:flex-end; background: rgba(255,255,255,.08); border-color: rgba(26, 26, 26, 0.14); }
    .bubble.seed{ align-self:flex-start; background: rgba(255, 210, 150, .08); border-color: rgba(255, 210, 150, .18); color: rgba(255,255,255,.90); }

    .chat-input{
      display:flex;
      gap: 10px;
      align-items:stretch;
      flex: 0 0 auto;
      height: 41px;
    }
    .chat-input textarea{
      flex:1;
      min-width: 0;
      height: 40px;
      resize: none;
      padding: 9px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.22);
      color: var(--text);
      outline:none;
      font-size: 14px;
      line-height: 1.25;
    }
    .chat-input button{
      padding: 8px 14px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.06);
      color: rgba(255,255,255,.90);
      cursor:pointer;
      font-weight: 650;
      white-space: nowrap;
      height:auto;  
    }
    .chat-input button:hover{
      border-color: rgba(255,255,255,.22);
      background: rgba(255,255,255,.09);
    }
    .chat-empty{
      flex:1;
      border-radius: 18px;
      border: 1px dashed rgba(255,255,255,.14);
      background: rgba(0,0,0,.08);
      display:grid;
      place-items:center;
      color: rgba(255,255,255,.45);
      font-size: 12px;
      text-align:center;
      padding: 14px;
    }

    /* RIGHT: partner + profile + vol buttons */
    .right-stack{
      flex: 1 1 auto;
      min-width: 0;
      display:flex;
      gap: 0px;
      align-items: stretch;
      justify-content: space-around;
      min-height: 0;
    }

    .partner{
      flex: 0 0 100px;
      min-width: 140px;
      display:flex;
      flex-direction:column;
      gap: 10px;
      min-height: 0;
    }
    .partner-card{
      border-radius: var(--radius);
      display:flex;
      flex-direction:column;
      justify-content: center;
      gap: 0px;
      padding-top: 20px;
      min-height: 0;
      flex: 1;
    }
    .partner-bio-text{
      display:block;
      line-height:1.35;
      white-space:pre-wrap;
      overflow-wrap:anywhere;   
      word-break:break-word; 
      opacity:.92;
      font-size: 11px;
      align-items: center;
    }

    .partner-bio-text.is-empty{
      opacity:.45;
      font-style:italic;
    }
    .partner-top{ display:flex; align-items:center; gap: 10px; }
    .partner-avatar{
      width: 44px; height: 44px;
      border-radius: 999px;
      border: 1px solid rgba(43, 43, 43, 0.47);
      background: rgba(255,255,255,.06);
      overflow:hidden;
      flex: 0 0 auto;
      margin-bottom: 10px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    }
    .partner-avatar img{ width:100%; height:100%; object-fit: cover; display:block; }
    .partner-name{ display:flex; flex-direction:column; gap: 2px; min-width: 0; }
    .partner-name b{ font-size: 13px; letter-spacing:.2px; overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
    .partner-name span{ font-size: 12px; color: rgba(255,255,255,.55); overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
    .partner-row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 10px;
      font-size: 12px;
      color: rgba(255,255,255,.70);
      padding: 8px 10px;
      border-radius: 14px;
    }
    .partner-row span:last-child{ color: rgba(255,255,255,.85); display:flex; align-items:center; gap: 8px; }
    .partner-hint{ font-size: 11px; color: rgba(255,255,255,.45); line-height: 1.2; }

    .profile{
      flex: 0 0 200px;
      min-width: 160px;
      display:flex;
      flex-direction:column;
      gap: 10px;
      min-height: 0;
    }
    .field-meta{
      margin-top:4px;
      font-size:11px;
      color:rgba(255,255,255,.55);
      text-align:right;
    }

    .flip{
      position: relative;
      width: 100%;
      height: 100%;
      perspective: 900px;
      min-height: 0;
      flex: 1;
    }
    .flip-inner{
      position:absolute; inset:0;
      transform-style: preserve-3d;
      transition: transform .55s cubic-bezier(.2,.9,.2,1);
      border-radius: var(--radius);
    }
    .flip.is-flipped .flip-inner{ transform: rotateY(180deg); }

    .flip-face{
      position:absolute; inset:0;
      backface-visibility: hidden;
      border-radius: var(--radius);
      overflow:hidden;
      display:flex;
      flex-direction:column;
      min-height: 0;
    }
    .flip-back{ transform: rotateY(180deg); }

    .profile-front{
      width:100%;
      height:100%;
      border:0;
      background:transparent;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap: 10px;
      padding: 0px;
      cursor:pointer;
      pointer-events:auto;
    }

    input[type="file"]::file-selector-button{
      padding: 5px 7px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,.2);
      background: rgba(255, 255, 255, 0.154);
      color: rgba(181, 154, 64, 0.826);
      cursor: pointer;
    }

    input[type="file"]::file-selector-button:hover{
      background: rgba(255,255,255,.14);
    }

    .avatar{
      width: 44px; height: 44px;
      border-radius: 999px;
      border: 1px solid rgba(43, 43, 43, 0.47);
      background: rgba(255,255,255,.06);
      overflow:hidden;
      flex: 0 0 auto;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    } 
    .avatar img{ width:100%; height:100%; object-fit: cover; display:block; }
    .avatar-lg{ width: 74px; height: 74px; }

    .front-nick{
      font-size: 13px;
      letter-spacing: .2px;
      font-weight: 700;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: rgba(255,255,255,.9);
    }

    .profile-wrap{
      padding: 12px;
      display:flex;
      flex-direction:column;
      gap: 10px;
      min-height: 0;
      flex: 1;
    }

    .flip-back .profile-wrap{ overflow-y:auto; scrollbar-width:none; }
    .flip-back .profile-wrap::-webkit-scrollbar{ display:none; }

    /* expand profile mode */
    body.profile-expanded-mode #dock{ overflow: visible; }

    /* Falls dein Profil rechts sitzt: dock-col-right */
    body.profile-expanded-mode .dock-col-right{ position: relative; }

    /* Profil-Container nach oben ziehen + höher machen */
    body.profile-expanded-mode .profile{
      position: relative;
      z-index: 120;
      --profileExpand: 21vh;              /* gleiche Idee wie Chat */
      height: calc(101% + var(--profileExpand));
      margin-top: calc(-1 * var(--profileExpand));
    }
    /* BACK = geflippte Seite */
    #profileFlip .flip-face.flip-back{
      background: rgb(38, 38, 38);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(126, 126, 126, 0.12);
      border-radius: 12px;
      box-shadow:
        0 1px 20px rgba(140, 140, 140, 0.15),
        inset 0 0 0 1px rgba(165, 165, 165, 0.13);
    }

    /* optional: damit die Rückseite sauber “mitgeht” */
    body.profile-expanded-mode #profileFlip,
    body.profile-expanded-mode #profileFlip .flip-inner,
    body.profile-expanded-mode #profileFlip .flip-face.flip-back{
      height: 100%;
    }

    .hint{
      font-size: 11px;
      color: rgba(255,255,255,.45);
      line-height: 1.2;
      margin: auto;
      padding-bottom: 5px;
    }

    .flip-btn{
      width: 30px; height: 30px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.18);
      display:grid;
      place-items:center;
      cursor:pointer;
      flex: 0 0 auto;
      padding: 0px;  
      line-height: 0;
    }
    .flip-btn:hover{ border-color: rgba(255,255,255,.22); background: rgba(0,0,0,.24); }
    .flip-btn svg{ width: 16px; height: 16px; opacity:.9; }

    .form{ display:flex; flex-direction:column; gap: 10px; min-height: 0; flex: 1; }
    .field{ display:flex; flex-direction:column; gap: 6px; }
    .field textarea{
      width:100%;
      padding: 10px 10px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.22);
      color: var(--text);
      outline:none;
      font-size: 13px;
      resize: none;
    }
    .field label{
      font-size: 11px;
      color: rgba(255,255,255,.55);
      letter-spacing:.2px;
    }
    .field input, .field select{
      width:100%;
      padding: 10px 10px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.22);
      color: var(--text);
      outline:none;
      font-size: 13px;
    }

    :root{ color-scheme: dark; }

    .field select{
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      border-radius: 14px;
      color: rgba(255,255,255,.92);
      border: 1px solid rgba(255,255,255,.14);
      padding-right: 32px;
    }
    .field select option{ background-color: #14110fb9; color: rgba(255,255,255,.92); }

    .row2{ display:flex; gap: 8px; align-items:center; }
    .row2 button:hover{ border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.09); }
    .icon-btn{
      width: 33px;
      border-radius: 10px;
      background: rgba(255,255,255,.06);
      color: rgba(255,255,255,.9);
      cursor: pointer;
      display: grid;
      place-items: center;
    }
    .icon-btn:hover{ background: rgba(255,255,255,.12); }
    .danger{
      border-color: rgba(255, 130, 130, .25) !important;
      background: rgba(255, 130, 130, .08) !important;
      padding: 8px 14px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.12);
      color: rgba(255,255,255,.92);
      font-size: 12px;
      font-weight: 650;
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    }

    .vol-button-box{
      position: absolute;
      flex: 0 0 52px;
      display:flex;
      flex-direction:column;
      padding-top: 2px;
      gap: 8px;
      right: 12px;
      top: 23px;
      bottom: 12px;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content: start;
      pointer-events:auto;      
    }

    .audio-btn{
      color: rgba(255,255,255,.85);
      border-color: rgba(255,255,255,.22);
      background: rgba(255,255,255,.06);
      transition: color .15s ease, background .15s ease, border-color .15s ease;
    }
    .audio-btn.audio-off{
      color: rgba(255,255,255,.45);
      border-color: rgba(255,255,255,.14);
      background: rgba(0,0,0,.18);
    }
    .audio-btn:hover{ color: rgba(255,255,255,.95); }

    #audioToggle{
      position: relative;
      overflow: hidden;
      touch-action: none;
    }
    #audioToggle::before{
      content:"";
      position:absolute;
      left:0; right:0; bottom:0;
      height: calc(var(--vol, .25) * 100%);
      background: rgba(255,255,255,.16);
      pointer-events:none;
    }
    #audioToggle > svg{ position: relative; z-index: 1; }
    #audioToggle.audio-off::before{ background: rgba(255,255,255,.06); }

    #dockNotif{ color: #c89a10; }

    .vol-button-box button{
      position: relative;
    }

    .vol-button-box button::after{
      content: attr(data-hint);
      position: absolute;
      top: 50%;
      right: 120%;
      transform: translateY(-50%);
      font-size: 11px;
      background: rgba(34, 34, 34, 0.63);
      color: #fff;
      padding: 5px 6px;
      border-radius: 6px;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      z-index: 9999;
      transition: opacity .12s ease, transform .12s ease;
    }

    .vol-button-box button:hover::after{
      opacity: 1;
      transform: translateY(-50%) translateX(-4px);
    }

    /* ✅ vertical Beta Version label */
    .beta-vert{
      font-size: 11px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: rgba(255,255,255,.55);
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      user-select:none;
      pointer-events:none;
      opacity: .9;
      margin-bottom: 4px;
      text-shadow: 0 10px 26px rgba(0,0,0,.55);
    }

    .spark{
      position:absolute;
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: rgba(255, 208, 150, 0.725);
      box-shadow:
        0 0 12px rgba(255, 199, 140, 0.414),
        0 0 22px rgba(255, 170, 120, .22);
      transform: translate3d(0,0,0);
      z-index: 20;
      pointer-events:auto;
      cursor: default;
      user-select:none;
      opacity: .92;
    }
    .spark.caught{
      box-shadow:
        0 0 16px rgba(255, 210, 150, .65),
        0 0 30px rgba(255, 180, 130, .26);
      opacity: 1;
    }

    .spark-deco{
      width: 4px;
      height: 4px;
      opacity: .45;
      box-shadow:
        0 0 6px rgba(255, 180, 120, .45),
        0 0 12px rgba(255, 150, 90, .32);
    }

    .lasso{
      position:absolute;
      width: 42px; height: 42px;
      border-radius: 999px;
      border: 1px solid rgba(255, 220, 160, .32);
      box-shadow: 0 0 22px rgba(255, 200, 120, .18);
      pointer-events:none;
      opacity:0;
      transform: translate(-50%,-50%) scale(.92);
      transition: opacity .12s ease, transform .12s ease;
      z-index: 80;
      backdrop-filter: blur(2px);
    }
    .lasso.on{ opacity:1; transform: translate(-50%,-50%) scale(1); }

    .drag-ghost{
      position: fixed;
      left: 0; top: 0;
      transform: translate3d(-9999px,-9999px,0);
      z-index: 200;
      pointer-events:none;
      padding: 10px 10px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.18);
      background: rgba(20,16,12,.62);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 24px 80px rgba(0,0,0,.45);
      color: rgba(255,255,255,.92);
      font-size: 14px;
      max-width: min(320px, 70vw);
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
    }

    .glow-text{
      background: linear-gradient(
        90deg,
        rgba(249, 182, 57, 0.95),
        rgba(215, 124, 59, 0.95)
      );
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;

      text-shadow:
        0 0 12px rgba(255, 190, 130, .18),
        0 0 22px rgba(255, 160, 100, .12);
    }
    .sr-only{
      position:absolute !important;
      width:1px; height:1px;
      padding:0; margin:-1px;
      overflow:hidden; clip:rect(0,0,0,0);
      white-space:nowrap; border:0;
    }

    /* ✅ Right-bottom info row */
    .cf-meta-row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 10px;
      padding: 5px 10px;
      margin: 0 15px;
      border-radius: 18px;
      box-shadow:0 5px 5px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06);
      background: rgba(0,0,0,.10);
      min-height: 24px;
    }
    .cf-meta-actions{
      display:flex;
      align-items:center;
      gap: 8px;
      position: relative;
      flex: 0 0 auto;
    }
    .cf-meta-text{
      font-size: 10px;
      color: rgba(255,255,255,.60);
      letter-spacing: .08em;
      text-transform: uppercase;
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
      flex: 1 1 auto;
      text-align: right;
      padding-right: 6px;
    }
    .cf-icon-btn{
      width: 25px; height: 25px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.18);
      display:grid;
      place-items:center;
      cursor:pointer;
      padding: 0;
      color: rgba(255,255,255,.88);
      position: relative;
    }
    .cf-icon-btn:hover{ border-color: rgba(255,255,255,.22); background: rgba(0,0,0,.24); }
    .cf-icon-btn svg{ width: 16px; height: 16px; opacity:.92; }

    .cf-icon-btn::after{
      content: attr(data-hint);
      position: absolute;
      bottom: 125%;
      left: 50%;
      transform: translateX(-50%);
      font-size: 11px;
      background: rgba(34, 34, 34, 0.63);
      color: #fff;
      padding: 5px 6px;
      border-radius: 6px;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      z-index: 9999;
      transition: opacity .12s ease, transform .12s ease;
    }
    .cf-icon-btn:hover::after{
      opacity: 1;
      transform: translateX(-50%) translateY(-2px);
    }
    /* First-visit highlight for the Info button */
    .cf-icon-btn.is-new-feature{
      position: relative;
      border: 1.5px solid rgba(255, 170, 90, .95);
      box-shadow:
        0 0 0 3px rgba(255, 140, 90, .18),
        0 0 18px rgba(255, 140, 90, .28);
      animation: cfPulseBorder 2.2s ease-in-out infinite;
    }

    @keyframes cfPulseBorder{
  0%, 100%{
    box-shadow:
      0 0 0 2px rgba(255, 140, 90, .12),
      0 0 12px rgba(255, 140, 90, .16);
  }
  50%{
    box-shadow:
      0 0 0 4px rgba(255, 140, 90, .18),
      0 0 20px rgba(255, 140, 90, .26);
  }
}
    .cf-popover{
      position:absolute;
      bottom: 44px;
      left: 0;
      min-width: 160px;
      padding: 10px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(15, 12, 10, 0.825);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 24px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
      display:none;
      z-index: 300;
    }
    .cf-popover.open{ display:block; }
    .cf-popover a{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 10px;
      padding: 9px 10px;
      border-radius: 14px;
      text-decoration:none;
      color: rgba(255,255,255,.90);
      font-size: 12px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.04);
    }
    .cf-popover a:hover{
      border-color: rgba(255,255,255,.18);
      background: rgba(255,255,255,.06);
    }
    .cf-popover a span{ color: rgba(255,255,255,.65); }

    /* ✅ Modals (Feedback / Rules) */
    .cf-modal{
      position: fixed;
      inset: 0;
      display:none;
      z-index: 999;
      pointer-events: none;
    }
    .cf-modal.open{ display:block; pointer-events:auto; }
    .cf-modal-backdrop{
      position:absolute; inset:0;
      background: rgba(0,0,0,.45);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
    }
    .cf-modal-panel{
      position:absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%,-50%);
      width: min(520px, 92vw);
      border-radius: 22px;
      padding: 14px;
      background: rgba(12, 12, 12, 0.55);   /* halbtransparent */
      backdrop-filter: blur(14px) saturate(1.25);
      -webkit-backdrop-filter: blur(14px) saturate(1.25); /* Safari */
        box-shadow:
        0 10px 20px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.06);
    }
    .cf-modal-header{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 10px;
      margin-bottom: 10px;
    }
    .cf-modal-title{
      font-size: 12px;
      color: rgba(255,255,255,.70);
      letter-spacing: .18em;
      text-transform: uppercase;
    }
    .cf-close{
      width: 30px; height: 30px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.18);
      display:grid;
      place-items:center;
      cursor:pointer;
      color: rgba(255,255,255,.90);
    }
    .cf-close:hover{ border-color: rgba(255,255,255,.22); background: rgba(0,0,0,.24); }

    .cf-modal-body{
      display:flex;
      flex-direction:column;
      gap: 10px;
    }
    .cf-modal-body textarea, .cf-modal-body input{
      width:100%;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.22);
      color: var(--text);
      outline:none;
      padding: 10px 10px;
      font-size: 13px;
    }
    .cf-note{
      font-size: 13px;
      color: rgba(255,255,255,.75);
      line-height: 1.35;
      background: rgba(64, 64, 64, 0.21);
      border-radius: 14px;
      padding: 9px 30px;
      text-align: center;
      margin:auto;
    }
    .cf-list{
      margin: 0;
      padding-left: 18px;
      color: rgba(255,255,255,.70);
      font-size: 12px;
      line-height: 1.45;
    }
    .cf-steps{
      margin: 0;
      padding-left: 18px;        
      color: rgba(255,255,255,.78);
      font-size: 13px;
      line-height: 1.45;
    }

    .cf-steps li{
      margin: 6px 0;
    }

    .cf-steps li strong{
      display:block;
      font-weight: 600;
      color: rgba(255,255,255,.86);
    }

    .cf-steps li small{
      display:block;
      margin-top: 2px;
      color: rgba(255,255,255,.58);
      line-height: 1.35;
    }

    .cf-toast{
      position: fixed;
      left: 50%;
      bottom: 18px;
      transform: translate3d(-50%, 18px, 0);
      opacity: 0;
      pointer-events: none;
      z-index: 999999;

      width: min(520px, calc(100vw - 24px));
      border-radius: 16px;

      background: linear-gradient(135deg,
        rgba(19, 103, 64, 0.95),
        rgba(53, 167, 121, 0.92)
      );
      box-shadow:
        0 18px 55px rgba(0,0,0,.35),
        0 0 0 1px rgba(255,255,255,.18) inset;

      transition: opacity .18s ease, transform .22s ease;
    }

    .cf-toast-inner{
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 14px;
      color: rgba(255,255,255,.96);
      font-weight: 650;
      letter-spacing: .1px;
    }

    .cf-toast-icon{
      display: inline-flex;
      width: 26px;
      height: 26px;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: rgba(0,0,0,.18);
      box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset;
      flex: 0 0 auto;
    }

    .cf-toast-msg{
      font-size: 13px;
      line-height: 1.2;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .cf-toast.show{
      opacity: 1;
      transform: translate3d(-50%, 0, 0);
    }

    /* Variants */
    .cf-toast.is-warn{
      background: linear-gradient(135deg,
        rgba(255, 170, 60, .95),
        rgba(255, 120, 60, .92)
      );
    }
    .cf-toast.is-error{
      background: linear-gradient(135deg,
        rgba(255, 70, 70, .95),
        rgba(255, 120, 80, .92)
      );
    }


    @media (max-width: 1366px) {
      .campfire-center{
        left:50%;
        top:38%;
        width: min(145px, 32vw);
      }
      .hero-title{ font-size: clamp(30px, 5vw, 42px); font-weight: 500; }
      .hero-sub{ font-size: 11px; }
      .dock{ padding: 9px;}
      .dock-hero{font-size: 9px;}
      .dock-left{ width: auto; }               
      .dock-list { min-width: 0;}
      .dock-items{ padding: 10px; }
      .msg{padding: 0px 5px 0px 8px;}
      .respawn-row { transform: scale(0.75); transform-origin: left center;}
      .chat-input{ padding: 5px 5px 0 5px; gap: 6px; }
      .bubble{ padding: 5px 10px; }
      .chat-input textarea{ min-height: 32px; height: 32px; font-size: 13px; }
      .composer textarea { font-size: 12px;}
      .composer.glass{padding:6px;}
      #chatSendBtn{ height: 32px; padding: 0 10px; font-size: 12px; }
      .dock-col-right{ flex-basis: 380px; min-width: 330px; }
      .cf-meta-text{ font-size: 8px; letter-spacing: .10em;}
      .cf-icon-btn{width: 18px; height: 18px;}
      .partner-bio-text{ font-size: 10px;}
      .beta-vert{font-size: 8px;}
      .h2-title{font-size: 10px;}
      .flip-btn{width: 20px; height: 20px;}
      .online{font-size: 9px;}
      #dockNotif{font-size: 10px;}

       #source{
      width: 90px;
      height: 90px;
    }
      
    }
    @media (max-width: 980px){
      .dock{ height: min(52vh, 560px); flex-direction:column; }
      .dock-col-left, .dock-col-mid, .dock-col-right{ flex: 0 0 auto; min-width: 0; }
      .dock-col-left{ order: 1; }
      .dock-col-mid{ order: 2; }
      .dock-col-right{ order: 3; }
      .dock-col-left{ flex-direction:column; }
      .dock-list{ flex: 0 0 auto; height: 100%; justify-content: end; padding-bottom: 10px;}
      .dock-items{ max-height: 160px; }
      .right-stack{ flex-direction:row; }
      .cf-popover{ left: auto; right: 0; }
    }

    /* hidden on phone screen */
    .mobile-blocker {
      display: none;
    }

  /* block on mobile */
  @media (max-width: 900px) {
    body > *:not(.mobile-blocker) {
      display: none !important;
    }

    .mobile-blocker {
      display: grid;
      place-items: center;
      position: fixed;
      inset: 0;
      background: #0c0b0a;
      color: #fff;
      z-index: 99999;
      padding: 24px;
      text-align: center;
    }

    .mobile-blocker-box {
      max-width: 420px;
      border: 1px solid rgba(255,255,255,.15);
      border-radius: 14px;
      padding: 28px 24px;
      background: rgba(255,255,255,.04);
      backdrop-filter: blur(6px);
    }

    .mobile-blocker h2 {
      margin: 0 0 12px;
      font-size: 20px;
    }

    .mobile-blocker p {
      margin: 0;
      opacity: .85;
      line-height: 1.4;
    }
}
