/* Clubhouse home. Gameplay, wardrobe and private-room components keep their existing styles. */
body.clubhouse-home {
  --home-ink:#08285b;
  --home-blue:#0754df;
  --home-ice:#c5eafa;
}
body.clubhouse-home #boot,
body.clubhouse-home #html-lobby {
  background-color:var(--home-ice);
  background-image:url('/TemplateData/home-clubhouse.webp?v=20261114-1');
  background-position:center top;
  background-size:auto max(100%, 740px);
  background-repeat:no-repeat;
}
body.clubhouse-home #boot::before,
body.clubhouse-home #html-lobby::before { content:none; }
body.clubhouse-home .home-brand,
body.clubhouse-home #html-lobby .lobby-hero h1.home-brand {
  display:block; width:min(88%,360px); height:auto; margin:0 auto;
  font-size:0; line-height:0; letter-spacing:0; text-shadow:none;
}
body.clubhouse-home .home-brand img { display:block; width:100%; height:auto; }
body.clubhouse-home #html-lobby .lobby-hero h1.home-brand::after { display:none; }
body.clubhouse-home #html-lobby:not(.room-view) .lobby-shell {
  display:flex; flex-direction:column; justify-content:flex-start; align-items:center;
  gap:0; width:min(100%,480px); height:auto; min-height:100%; margin:0 auto; padding:0;
}
body.clubhouse-home #html-lobby:not(.room-view) .lobby-hero {
  position:relative; flex:0 0 auto; width:100%; max-width:none;
  height:clamp(280px,52svh,530px); margin:0; padding:calc(18px + env(safe-area-inset-top,0px)) 22px 0;
  box-sizing:border-box; text-align:center;
}
body.clubhouse-home #html-lobby:not(.room-view) #home-card {
  position:relative; display:flex; flex-direction:column; gap:clamp(11px,1.9svh,18px);
  width:100%; max-width:none; margin:0; padding:0 20px calc(18px + env(safe-area-inset-bottom,0px));
  box-sizing:border-box; overflow:visible; isolation:auto; border:0; border-radius:0;
  background:none; box-shadow:none; backdrop-filter:none; color:var(--home-ink);
  text-align:center; font:800 16px/1.3 'Nunito',system-ui,sans-serif;
}
body.clubhouse-home #html-lobby:not(.room-view) #home-card::before,
body.clubhouse-home #html-lobby:not(.room-view) #home-card::after { display:none; }
body.clubhouse-home .home-sr-only {
  position:absolute!important; width:1px!important; height:1px!important; padding:0!important;
  margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important;
  white-space:nowrap!important; border:0!important;
}
body.clubhouse-home .home-identity { display:flex; align-items:center; justify-content:center; gap:15px; min-height:38px; }
body.clubhouse-home .home-name { display:flex; align-items:center; justify-content:center; gap:3px; min-width:0; max-width:64%; }
body.clubhouse-home #html-lobby:not(.room-view) #lobby-name {
  display:block; width:5ch; min-width:3ch; max-width:calc(100% - 35px); height:40px; margin:0; padding:3px 1px;
  border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; box-shadow:none;
  color:var(--home-ink); font:900 clamp(20px,5.8vw,26px)/1.2 'Nunito',system-ui,sans-serif;
  letter-spacing:0; text-align:center; text-overflow:ellipsis; outline:none;
}
body.clubhouse-home #html-lobby:not(.room-view) #lobby-name:focus { border-bottom-color:#4b96d2; }
body.clubhouse-home #home-edit-name { display:grid; place-items:center; flex:0 0 34px; width:34px; height:40px; padding:6px; border:0; background:none; color:var(--home-ink); cursor:pointer; }
body.clubhouse-home #home-edit-name svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:2; stroke-linejoin:round; }
body.clubhouse-home .home-guest { display:flex; align-items:center; gap:7px; flex:0 0 auto; min-height:25px; padding-left:16px; border-left:1.5px solid #83bde0; color:#315e92; font-size:15px; font-weight:900; }
body.clubhouse-home .home-guest svg { width:20px; height:23px; fill:currentColor; }
body.clubhouse-home #html-lobby:not(.room-view) #lobby-play {
  display:flex; align-items:center; justify-content:center; gap:19px; width:100%; min-height:66px; height:clamp(66px,8.5svh,78px);
  margin:0; padding:12px 23px; border:0; border-radius:999px; color:white;
  background:#0754df; box-shadow:0 6px 10px #23669324; text-shadow:none;
  font:900 clamp(24px,6.8vw,32px)/1.1 'Nunito',system-ui,sans-serif; letter-spacing:.015em;
}
body.clubhouse-home #lobby-play svg { width:29px; height:29px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:2.7; stroke-linecap:round; stroke-linejoin:round; }
body.clubhouse-home #lobby-play:disabled { opacity:.55; cursor:wait; }
body.clubhouse-home .home-secondary { display:grid; grid-template-columns:1fr 1fr; position:relative; gap:14px; }
body.clubhouse-home .home-secondary::after { content:''; position:absolute; top:22%; bottom:13%; left:50%; width:1.5px; background:#85bde1; pointer-events:none; }
body.clubhouse-home #html-lobby:not(.room-view) .home-menu-action,
body.clubhouse-home #html-lobby:not(.room-view) #guest-wardrobe {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0;
  width:100%; min-width:0; min-height:94px; margin:0; padding:0 4px 3px;
  border:0; border-radius:12px; background:none; box-shadow:none; color:var(--home-ink);
  text-align:center; font:900 clamp(17px,4.8vw,22px)/1.15 'Nunito',system-ui,sans-serif;
  letter-spacing:0; cursor:pointer; touch-action:manipulation;
}
body.clubhouse-home .home-menu-action > img,
body.clubhouse-home .home-menu-action .wardrobe-entry-icon { display:block; width:80px; height:73px; flex:none; margin:0; padding:0; border:0; border-radius:0; background:none; }
body.clubhouse-home .home-menu-action .wardrobe-entry-icon img { display:block; width:100%; height:100%; object-fit:contain; }
body.clubhouse-home .home-menu-action > img { object-fit:contain; }
body.clubhouse-home .home-menu-action .wardrobe-entry-copy { display:block; flex:none; }
body.clubhouse-home .home-menu-action .wardrobe-entry-copy strong { font:inherit; letter-spacing:0; }
body.clubhouse-home #guest-wardrobe .wardrobe-current { display:none; }
body.clubhouse-home #guest-wardrobe:disabled { opacity:.5; cursor:wait; }
body.clubhouse-home #html-lobby:not(.room-view) #friends-panel {
  margin:0; padding:0; border:0; border-radius:16px; background:#f1fbff; box-shadow:0 2px 10px #164b7314;
}
body.clubhouse-home #html-lobby:not(.room-view) #friends-panel:not([open]) { display:none; }
body.clubhouse-home #friends-panel > summary { display:none; }
body.clubhouse-home #html-lobby:not(.room-view) #friends-panel .lobby-friends-body { padding:14px; border-radius:16px; background:none; }
body.clubhouse-home #html-lobby:not(.room-view) #friends-panel .btn {
  min-height:46px; padding:10px 14px; border:1px solid #8fbde3; border-radius:12px;
  background:#e4f3ff; color:var(--home-ink); box-shadow:none; text-shadow:none;
  font:900 16px/1.2 'Nunito',system-ui,sans-serif; letter-spacing:0;
}
body.clubhouse-home #html-lobby:not(.room-view) #friends-panel #lobby-code { min-width:0; font:800 18px 'Nunito',system-ui,sans-serif; }
body.clubhouse-home .home-account-links { display:flex; align-items:center; justify-content:center; gap:0; min-height:36px; }
body.clubhouse-home .home-account-links a { display:inline-flex; align-items:center; min-height:40px; padding:0 19px; color:#0754d8; font:900 17px/1.25 'Nunito',system-ui,sans-serif; text-decoration:underline; text-underline-offset:4px; }
body.clubhouse-home .home-account-links a + a { border-left:1.5px solid #85bde1; }
body.clubhouse-home #html-lobby:not(.room-view) #how-to-play {
  display:flex; align-items:center; justify-content:center; align-self:center; gap:9px;
  min-height:42px; width:auto; margin:0; padding:4px 14px; border:0; border-radius:12px;
  background:none; box-shadow:none; color:#315e92; font:900 17px/1.2 'Nunito',system-ui,sans-serif; text-shadow:none;
}
body.clubhouse-home #how-to-play > span { display:grid; place-items:center; width:23px; height:23px; border:1.8px solid currentColor; border-radius:50%; background:none; font:900 17px/1 'Nunito',system-ui,sans-serif; }
body.clubhouse-home #html-lobby:not(.room-view) .lobby-hints { display:none; }
body.clubhouse-home #html-lobby.room-view #home-card > :is(.home-identity,.home-secondary,.home-account-links) { display:none; }
body.clubhouse-home #html-lobby.room-view .home-brand { max-width:240px; }
body.clubhouse-home #html-lobby:not(.room-view) #queue-panel { margin:0 auto 25px; width:min(90%,360px); }
body.clubhouse-home #home-card :is(a,button):focus-visible { outline:2px solid #185caa; outline-offset:3px; }
body.clubhouse-home #home-card :is(button,a):active { transform:translateY(1px); }
body.clubhouse-home.home-menu-active #mobile-settings-toggle {
  display:grid; place-items:center; width:40px; height:40px; padding:8px; border:0; border-radius:12px;
  background:transparent; color:var(--home-ink); box-shadow:none; text-shadow:none;
}
body.clubhouse-home #mobile-settings-toggle .home-gear { display:block; width:25px; height:25px; fill:currentColor; }
/* The exact same artwork and logo remain visible while Unity downloads. */
body.clubhouse-home .boot-hud { width:min(100%,480px); min-height:100%; margin:0 auto; padding:calc(18px + env(safe-area-inset-top,0px)) 24px calc(42px + env(safe-area-inset-bottom,0px)); box-sizing:border-box; }
body.clubhouse-home .boot-dock { width:min(100%,340px); margin:0 auto; padding:16px 0 0; }
body.clubhouse-home .boot-readout,
body.clubhouse-home .boot-tip { color:#315e92; text-shadow:none; }
body.clubhouse-home .boot-tip { font:800 13px/1.5 'Nunito',system-ui,sans-serif; }
body.clubhouse-home .boot-bar { height:8px; border:0; border-radius:999px; background:#96c8e5; box-shadow:none; }
body.clubhouse-home .boot-bar > i { background:#0754df; }
body.clubhouse-home .boot-dock #boot-retry { border:0; border-radius:999px; padding:13px 24px; background:#0754df; color:#fff; font:900 15px 'Nunito',sans-serif; cursor:pointer; }
@media (min-width:600px) {
  body.clubhouse-home #boot,
  body.clubhouse-home #html-lobby { background-size:auto max(100%,850px); }
  body.clubhouse-home #html-lobby:not(.room-view) .lobby-hero { height:clamp(340px,52svh,530px); }
}
@media (max-height:700px) {
  body.clubhouse-home #html-lobby:not(.room-view) .lobby-hero { height:clamp(220px,44svh,310px); }
  body.clubhouse-home #html-lobby:not(.room-view) #home-card { gap:9px; }
  body.clubhouse-home #html-lobby:not(.room-view) .home-menu-action { min-height:84px; }
  body.clubhouse-home .home-menu-action > img,
  body.clubhouse-home .home-menu-action .wardrobe-entry-icon { width:70px; height:61px; }
}
@media (orientation:landscape) and (max-height:600px) {
  body.clubhouse-home #html-lobby:not(.room-view) .lobby-hero { height:220px; padding-top:8px; }
  body.clubhouse-home .boot-hud { padding-block:8px 14px; }
  body.clubhouse-home .boot-hud .home-brand { width:240px; }
}
@media (prefers-reduced-motion:reduce) { body.clubhouse-home #home-card * { transition:none!important; } }
