/* hemo.stream theme: a dark fabric-walled cinema lounge with a warm cove light
   and walnut trim. Loaded after VRCStreamer's style.css and overrides its look. */

@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:500;font-display:swap;src:url("static/fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:700;font-display:swap;src:url("static/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Figtree";font-style:normal;font-weight:400;font-display:swap;src:url("static/fonts/figtree-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Figtree";font-style:normal;font-weight:500;font-display:swap;src:url("static/fonts/figtree-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Figtree";font-style:normal;font-weight:600;font-display:swap;src:url("static/fonts/figtree-latin-600-normal.woff2") format("woff2")}

:root{
  --wall:#16171a;
  --panel:#1e2024;
  --panel-hi:#262930;
  --line:#32353c;
  --text:#ece7df;
  --muted:#a09a90;
  --glow:#ffb665;
  --glow-deep:#d9853a;
  --walnut:#5f3f2b;
  --walnut-hi:#8a5e40;
  --danger:#e8806f;
  --display:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;
  --body:"Figtree","Segoe UI",system-ui,sans-serif;
}

html,body{overflow-x:hidden}
body{
  background-color:var(--wall);
  /* fine woven-fabric texture, like the lounge walls */
  background-image:
    repeating-linear-gradient(0deg,rgba(255,255,255,.022) 0 1px,transparent 1px 3px),
    repeating-linear-gradient(90deg,rgba(0,0,0,.16) 0 1px,transparent 1px 3px);
  color:var(--text);
  font-family:var(--body);
  font-size:1rem;
  line-height:1.5;
  min-height:100vh;
}
button,input,select{color:var(--text);font:inherit}
select:disabled{color:var(--text)}
input,select,option{background:var(--panel)}
select:hover,button:hover{color:var(--text)}
img{filter:brightness(0) invert(.9)}
:focus-visible{outline:2px solid var(--glow);outline-offset:3px;border-radius:6px}
.text-select,.text-select:is(:hover,:focus-within){color:var(--muted)}
.text-select:is(:hover,:focus-within){color:var(--text)}

/* The cove: a strip of warm light along the ceiling that brightens when live */
.cove{
  background:
    radial-gradient(ellipse 60% 100% at 50% 0,rgba(255,182,101,.34),rgba(255,182,101,.08) 55%,transparent 75%);
  height:22rem;
  inset:0 0 auto 0;
  opacity:.45;
  pointer-events:none;
  position:absolute;
  transition:opacity .9s ease;
}
.cove::before{
  background:linear-gradient(90deg,transparent,var(--glow) 18%,#ffd9a8 50%,var(--glow) 82%,transparent);
  content:"";
  filter:blur(.5px);
  height:3px;
  inset:0 8% auto 8%;
  opacity:.75;
  position:absolute;
}
body.is-live .cove{opacity:1}

main{margin:0 auto;max-width:46rem;padding:1.4rem 1.25rem 2.5rem;position:relative}

header{align-items:center;display:flex;justify-content:space-between}
.logo,.logo:hover{align-items:center;color:var(--text);display:flex;gap:.6rem;text-decoration:none}
.logo p{font-family:var(--display);font-size:1.2rem;font-weight:700;letter-spacing:-.01em}
.server-select-row{display:none}
.server-stats{color:var(--muted);font-size:.85rem;margin:0}

.motd{background:rgba(255,182,101,.08);border:1px solid rgba(255,182,101,.4);border-radius:10px;color:var(--glow);margin:1rem 0 0}
.custom-server{margin:1rem 0 0}

/* The room: screen on the wall, walnut ledge beneath it */
.room{margin-top:2.2rem}
.screen{
  align-items:center;
  aspect-ratio:16/9;
  background:#0c0d0f;
  border:1px solid #2a2c31;
  border-radius:14px;
  box-shadow:0 0 0 6px #101114,0 26px 60px -22px rgba(0,0,0,.9),0 -30px 90px -40px rgba(255,182,101,.22);
  display:flex;
  justify-content:center;
  overflow:hidden;
  position:relative;
  transition:box-shadow .9s ease;
}
body.is-live .screen{
  box-shadow:0 0 0 6px #101114,0 26px 60px -22px rgba(0,0,0,.9),0 -34px 110px -34px rgba(255,182,101,.5);
}
.screen-preview{background:#000;display:block;height:100%;inset:0;object-fit:contain;position:absolute;width:100%}
.screen-note{color:var(--muted);max-width:22rem;padding:1rem;text-align:center}

.ledge{
  background:
    repeating-linear-gradient(91deg,rgba(0,0,0,.22) 0 1px,transparent 1px 9px),
    repeating-linear-gradient(89deg,rgba(255,255,255,.05) 0 2px,transparent 2px 23px),
    linear-gradient(180deg,var(--walnut-hi),var(--walnut) 45%,#3f2a1d);
  border-radius:3px 3px 6px 6px;
  box-shadow:inset 0 1px 0 rgba(255,220,180,.28),0 14px 26px -12px rgba(0,0,0,.9);
  height:14px;
  margin:14px -10px 0;
}

/* Idle state, inside the screen */
.first-source-selection{margin:0;padding:1.5rem;position:static;text-align:center;width:100%}
.first-source-selection>h1{
  color:var(--text);
  font-family:var(--display);
  font-size:clamp(1.55rem,4.6vw,2.5rem);
  font-weight:700;
  letter-spacing:-.025em;
  line-height:1.08;
  margin:0 auto 1.5rem;
  max-width:13em;
}
.first-source-selection>div:first-of-type,.primary-choice{display:flex;justify-content:center}
.source-choice{flex:0 0 auto}
.source-choice>button{flex-direction:row;gap:.55rem;min-height:0;padding:0;width:auto}
.source-choice>button>span{min-height:0;width:auto}
.source-choice span,.source-label-select{font-size:inherit;font-weight:600;white-space:nowrap}
.source-choice img{height:1.25rem;width:1.25rem}
.source-choice>button:hover>img{transform:none}

.primary-choice .source-choice>button{
  background:linear-gradient(180deg,#ffc27c,var(--glow) 55%,var(--glow-deep));
  border-radius:999px;
  box-shadow:0 10px 34px -10px rgba(255,182,101,.75),inset 0 1px 0 rgba(255,255,255,.45);
  color:#24160a;
  font-family:var(--display);
  font-size:1.15rem;
  padding:.95rem 1.9rem;
  transition:transform .12s ease,box-shadow .12s ease;
}
.primary-choice .source-choice>button:hover{color:#24160a;transform:translateY(-1px);box-shadow:0 14px 40px -10px rgba(255,182,101,.9),inset 0 1px 0 rgba(255,255,255,.45)}
.primary-choice .source-choice>button:active{transform:translateY(1px)}
.primary-choice .source-choice img{filter:brightness(0) invert(.09);height:1.35rem;width:1.35rem}
.primary-choice .source-choice>button.is-browser-disabled,
.primary-choice .source-choice>button:disabled{background:var(--panel-hi);box-shadow:none;color:var(--muted);opacity:1}
.primary-choice .source-choice>button:is(.is-browser-disabled,:disabled) img{filter:brightness(0) invert(.6);opacity:1}

.more-choices{display:flex;gap:1.6rem;justify-content:center;margin-top:1.25rem}
.more-choices .source-choice>button{color:var(--muted);font-size:.92rem;padding:.3rem .2rem}
.more-choices .source-choice>button:hover{color:var(--text)}
.more-choices .source-choice img{filter:brightness(0) invert(.62);height:1rem;width:1rem}
.more-choices .source-choice>button.is-browser-disabled{color:#6d6860}
.source-label-select-wrap{bottom:0;left:0;min-height:0;right:0;top:0}
.tab-audio-hint{color:var(--muted);font-size:.8rem;margin:.9rem auto 0;position:static}
.unsupported{color:var(--glow);font-size:.9rem;margin:1rem auto 0;max-width:24rem}

/* Live state: the link console under the ledge */
.stream-panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 20px 40px -24px rgba(0,0,0,.8);
  gap:.9rem;
  margin:1.6rem 0 0;
  min-height:0;
  padding:1.25rem;
}
.live-head{align-items:baseline;display:flex;gap:1rem;justify-content:space-between}
.stream-panel>h2,.live-head>h2{
  color:var(--text);
  font-family:var(--display);
  font-size:1.35rem;
  font-weight:700;
  letter-spacing:-.015em;
  margin:0;
  text-align:left;
}
.live-head>h2::before{
  background:var(--glow);
  border-radius:50%;
  box-shadow:0 0 0 4px rgba(255,182,101,.18),0 0 14px var(--glow);
  content:"";
  display:inline-block;
  height:.55rem;
  margin-right:.6rem;
  vertical-align:.12em;
  width:.55rem;
}
.stream-info{color:var(--muted);font-size:.88rem;font-variant-numeric:tabular-nums}
.link-row{display:flex;gap:.6rem}
.url-wrap{flex:1 1 auto;margin:0;min-width:0}
.url-wrap input,.custom-server input,.add-source-button{background:#141518;border:1px solid var(--line);border-radius:10px}
.url-wrap input{color:var(--glow);height:3rem!important;line-height:1.2!important;padding:0 .9rem;text-align:left}
:is(.url-wrap,.custom-server) input:is(:focus,:hover),.add-source-button:hover{background:#191a1e;border-color:var(--glow-deep);color:var(--glow)}
.copy-button{
  background:var(--glow);
  border-radius:10px;
  color:#24160a;
  flex:0 0 auto;
  font-weight:600;
  min-width:7.6rem;
  padding:0 1.1rem;
  transition:background .15s ease;
}
.copy-button:hover{background:#ffc98a;color:#24160a}
.copy-button.is-done{background:#b9d6a0}
.link-actions{gap:1rem;margin:-.3rem 0 0}
.link-actions span,#newLink{font-size:.88rem}
.link-actions span{color:var(--muted)}
#newLink{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
#newLink:hover{color:var(--text)}
.stream-hint,.server-hint{background:var(--panel-hi);border:1px solid var(--line);border-radius:8px;color:var(--text);padding:.35rem .6rem}

.stream-panel #sources{gap:.6rem;margin:.4rem 0 0}
.stream-panel #sources>.source-card{background:#17181b;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.source-card[data-source-kind]{
  --source-bg-a:#17181b;--source-bg-b:#101114;--source-icon-bg:#22242a;
  --source-fg:var(--text);--source-soft:#77716a;--source-accent:var(--glow);
}
.source-icon{border-radius:0}
.source-icon-hint{background:var(--panel-hi);border-radius:6px}
.source-body{border-radius:0}
.source-preview{display:none}
.source-card.is-muted .source-icon{background:#3a2320}
.source-card.is-muted .source-icon-img{background:var(--danger)}
.source-gain-meter{border-radius:4px}
.source-gain-meter::before{background:var(--glow)}

.add-sources{align-items:center;flex-direction:row;flex-wrap:wrap;gap:.6rem;margin:.3rem 0 0}
.add-source-button{color:var(--muted);font-size:.9rem;font-weight:500;min-height:2.5rem;padding:.4rem .9rem}
#stop,.add-sources #stop{
  background:transparent;
  border:1px solid #6a3a33;
  border-radius:10px;
  color:var(--danger);
  font-size:.95rem;
  font-weight:600;
  margin:0 0 0 auto;
  min-height:2.5rem;
  padding:.4rem 1.1rem;
}
#stop:hover{animation:none;background:#2a1917;border-color:var(--danger);color:#ffa493}
.stream-bottom{margin:0;position:static}
.stream-select{font-size:.88rem;max-width:none}

/* How it works: a real three-step sequence, on a walnut rail */
.how{margin-top:2.6rem}
.how ol{
  border-left:4px solid var(--walnut);
  border-image:linear-gradient(180deg,var(--walnut-hi),var(--walnut),#3f2a1d) 1;
  counter-reset:step;
  display:grid;
  gap:1rem;
  list-style:none;
  padding-left:1.25rem;
}
.how li{align-items:baseline;counter-increment:step;display:grid;gap:.1rem .9rem;grid-template-columns:1.4rem 4.2rem 1fr}
.how li::before{color:var(--walnut-hi);content:counter(step);font-family:var(--display);font-size:1.1rem;font-weight:700}
.how li strong{font-family:var(--display);font-size:1.1rem;font-weight:700}
.how li span{color:var(--muted)}
.notes{color:var(--muted);display:grid;font-size:.93rem;gap:.7rem;margin-top:1.6rem;max-width:36rem}
.notes strong{color:var(--text);font-weight:600}
.start-tip{color:var(--muted);font-size:inherit;line-height:inherit;margin:0;max-width:none;text-align:left}

.main-footer{border-top:1px solid var(--line);color:#7b766e;font-size:.82rem;margin-top:2.4rem;padding-top:.9rem}
.main-footer>a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.main-footer>a:hover{color:var(--text)}
.language-select{display:none}
.patrons{display:none}

@media (max-width:560px){
  main{padding:1rem .9rem 2rem}
  .screen{aspect-ratio:auto;min-height:17rem}
  .ledge{margin-inline:-4px}
  .link-row{flex-direction:column}
  .copy-button{min-height:3rem}
  .link-actions{align-items:flex-start;flex-direction:column;gap:.3rem}
  .how li{grid-template-columns:1.2rem 1fr}
  .how li span{grid-column:2}
  #stop,.add-sources #stop{margin-left:0}
}
@media (prefers-reduced-motion:reduce){
  .cove,.screen,.primary-choice .source-choice>button,.copy-button{transition:none}
}
