/* Stage 1H (owner t7182u, Nov 4 2026 4:20 AM ET, BUG-20261104-016): phone HOME (/) laid out like
   mockups/lobby-friends-1103/owner-target-1106 left screen. Scoped to html.h1-home (set by home-1h.js: phone width, home shown, not the gate). */
html.h1-home body{background:radial-gradient(120% 60% at 50% 0%,#1d3350 0%,#0f1c2e 55%,#0a1422 100%) fixed #0a1422!important}
html.h1-home main#lobby{display:flex!important;flex-direction:column;padding-bottom:96px!important}
html.h1-home main#lobby > *{order:10}
html.h1-home main#lobby > #gate{order:0}
html.h1-home main#lobby > nav.site-nav{order:1;margin:6px 0 8px!important}
html.h1-home main#lobby > #h1Home{order:2}
html.h1-home main#lobby > #welcomePanel{order:3}html.h1-home main#lobby > #rejoinCard{order:3}
html.h1-home main#lobby > #lobbyList{order:4}
html.h1-home main#lobby > #hostCard{order:5}
html.h1-home main#lobby > .goc-opener{order:6}
html.h1-home main#lobby > footer{order:99}
/* gone from the phone home view (Sign in lives in the top-row tile) */
html.h1-home #ppSignedOutBar,html.h1-home .home-theme-row,html.h1-home #homeTabs,html.h1-home .hero-stage{display:none!important}
/* Premium Host banner: one short line, tap to read it all */
html.h1-home p.open-access{position:static!important;padding:6px 12px!important;font-size:12.5px!important;line-height:1.3!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;cursor:pointer}
html.h1-home p.open-access.h1-open{white-space:normal!important}
/* rooms + friends + create */
#h1Home{display:block}
#h1Home .l1-rooms{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;gap:7px;margin:0 0 10px}
#h1Home .l1-room{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:76px;border-radius:16px;font-weight:900;font-size:13px;line-height:1.1;text-decoration:none;color:#eaf2fb!important;-webkit-text-fill-color:#eaf2fb!important;background:linear-gradient(180deg,#22384f,#182a3e)!important;border:1px solid #2e4a66!important;box-shadow:none!important;text-shadow:none!important;cursor:pointer;padding:6px 2px 14px!important;min-height:0!important}
#h1Home .l1-room .l1-ico{font-size:22px}
#h1Home .l1-room .l1-mark{font-size:32px;font-weight:900;line-height:1}
#h1Home .l1-room .l1-name{font-size:11px;line-height:1.05;text-align:center}
#h1Home .l1-room.on{background:linear-gradient(180deg,#b9f07a,#6fcf3e 55%,#3f9a22)!important;color:#0d2a08!important;-webkit-text-fill-color:#0d2a08!important;border-color:transparent!important;outline:3px solid #c9ff8f;box-shadow:0 3px 0 #2a6a15!important;padding-bottom:6px!important}
#h1Home .l1-tag{position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);background:#ffb547;color:#3a2200!important;-webkit-text-fill-color:#3a2200!important;font-weight:900;font-size:8px;line-height:1;padding:3px 5px;border-radius:8px;letter-spacing:.3px;white-space:nowrap}
#h1Home .l1-soon-msg{margin:0 0 8px;padding:8px 12px;border-radius:12px;background:#22384f;color:#ffd58a;font-weight:800;text-align:center}
#h1Home .l1-soon-msg[hidden]{display:none}
#h1Home .h1-fr{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;margin:4px 0 10px;padding:6px 12px;border-radius:14px;background:linear-gradient(180deg,#1d4a3a,#183a32)!important;border:1px solid #2f7a5a!important;color:#eaf2fb!important;-webkit-text-fill-color:#eaf2fb!important;font:inherit;text-align:left;text-decoration:none;box-shadow:none!important;box-sizing:border-box}
#h1Home .h1-fr .l1-fr-t{flex:1;display:flex;flex-direction:column;line-height:1.2;font-weight:800}
#h1Home .h1-fr small{color:#a9d8bf!important;-webkit-text-fill-color:#a9d8bf!important;font-weight:600}
#h1Home .h1-fr .l1-go{color:#c9ff8f!important;-webkit-text-fill-color:#c9ff8f!important;font-weight:900;white-space:nowrap}
#h1Home .h1-fr .h1-in{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border-radius:12px;background:#ffe14a;color:#2a2200!important;-webkit-text-fill-color:#2a2200!important;font-weight:900;border:0;font-size:15px;white-space:nowrap}
#h1Home .play-create{margin:0 0 10px!important;padding:0!important}
#h1Home #playCreate{display:flex!important;align-items:center;justify-content:center;width:100%;height:56px;min-height:56px;border-radius:16px!important;font-weight:900!important;font-size:19px!important;line-height:1!important;background:linear-gradient(180deg,#b9f07a,#6fcf3e 55%,#3f9a22)!important;color:#0d2a08!important;-webkit-text-fill-color:#0d2a08!important;box-shadow:0 3px 0 #2a6a15!important;border:0!important;text-shadow:none!important}

#h1Home #playCreate .play-create-s{display:none!important}
#h1Home .h1-head{margin:4px 0 6px;font-weight:900;font-size:13px;line-height:1.2;letter-spacing:.8px;color:#9fb3c8!important;-webkit-text-fill-color:#9fb3c8!important;text-transform:uppercase}
/* OPEN TABLES: compact light cards with Join */
html.h1-home #lobbyList{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 10px!important}
html.h1-home #lobbyList::before,html.h1-home #lobbyList::after{display:none!important}
html.h1-home #lobbyListH{display:none!important}
html.h1-home #lobbyBody{display:flex;flex-direction:column}
html.h1-home #lobbyBody[hidden]{display:flex!important}
html.h1-home #lobbyBody > *{order:5}
html.h1-home #lobbyBody > p.hint{display:none!important}
html.h1-home #lobbyRows{order:1}
html.h1-home #lobbyFilters{order:6;margin-top:6px!important}
html.h1-home #lobbyRows .lobby-row{display:flex!important;align-items:center;gap:10px;margin:0 0 8px!important;padding:9px 10px 9px 12px!important;border-radius:16px!important;background:linear-gradient(180deg,#f7f9fb,#cfd7df)!important;border:0!important;box-shadow:0 2px 0 #8796a6!important;color:#13233a!important}
html.h1-home #lobbyRows .lrow-main{flex:1;min-width:0}
html.h1-home #lobbyRows .lrow-title{margin:0!important;display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden}
html.h1-home #lobbyRows .lrow-title strong{font-weight:900;font-size:15.5px;line-height:1.2;color:#13233a!important;-webkit-text-fill-color:#13233a!important;overflow:hidden;text-overflow:ellipsis;min-width:0}
html.h1-home #lobbyRows .lrow-title .tag{flex:0 0 auto;font-size:10.5px!important;padding:2px 6px!important;border-radius:8px!important}
html.h1-home #lobbyRows .lrow-title .crew-tag,html.h1-home #lobbyRows .lrow-line{display:none!important}
html.h1-home #lobbyRows .lrow-meta{margin:2px 0 0!important;display:flex;gap:8px;font-size:12.5px!important;color:#3b4c63!important;-webkit-text-fill-color:#3b4c63!important;white-space:nowrap;overflow:hidden}
html.h1-home #lobbyRows .lrow-meta > span:first-child{overflow:hidden;text-overflow:ellipsis;min-width:0}
html.h1-home #lobbyRows .lrow-meta .lrow-seats{flex:0 0 auto;font-weight:800}
html.h1-home #lobbyRows .lobby-row > .btn{flex:0 0 auto;min-width:76px;min-height:44px;padding:0 12px!important;border-radius:14px!important;font-weight:900!important;font-size:15px!important;line-height:1!important;background:linear-gradient(180deg,#b9f07a,#6fcf3e 55%,#3f9a22)!important;color:#0d2a08!important;-webkit-text-fill-color:#0d2a08!important;border:0!important;box-shadow:0 3px 0 #2a6a15!important;white-space:nowrap}
/* bottom nav: Tables / Chat / Friends / Host, inside the arrow bar between the arrows */
#h1Dock{position:fixed;z-index:2147460001;bottom:calc(var(--pp-nav-lift,0px) + 6px + env(safe-area-inset-bottom));left:60px;right:60px;display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
#h1Dock > *{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;border-radius:12px;background:#14233a!important;border:1px solid #2e4a66!important;color:#eaf2fb!important;-webkit-text-fill-color:#eaf2fb!important;font-weight:800;font-size:11.5px;line-height:1.1;text-decoration:none;padding:2px!important;cursor:pointer;box-shadow:none!important;text-shadow:none!important}
#h1Dock .h1-ico{font-size:16px}
#h1Dock > .h1-host{background:linear-gradient(180deg,#6fcf3e,#3f9a22)!important;border-color:transparent!important;color:#0d2a08!important;-webkit-text-fill-color:#0d2a08!important}
html:not(.h1-home) #h1Dock,html:not(.h1-home) #h1Home{display:none!important}

html.h1-home main#lobby{background:transparent!important;box-shadow:none!important;border:0!important}
html.h1-home main#lobby::before,html.h1-home main#lobby::after{display:none!important}
html.h1-home #lobbyFilters:not(.h1-show){display:none!important}
#h1FilterBtn{order:5;align-self:flex-start;min-height:40px;padding:0 14px;border-radius:12px;background:#14233a;border:1px solid #2e4a66;color:#eaf2fb;-webkit-text-fill-color:#eaf2fb;font-weight:800;font-size:13px;margin:0 0 6px}
html:not(.h1-home) #h1FilterBtn{display:none!important}
html.h1-home #lobbyFilters{order:6!important}
#h1Home #playCreate{flex-direction:row!important;gap:0!important}
#h1Home nav.l1-rooms{background:none!important;box-shadow:none!important;border:0!important;padding:0!important}
html.h1-home main#lobby > .goc-opener{background:linear-gradient(180deg,#f7f9fb,#dfe6ee)!important;border-radius:16px!important;margin:0 0 10px!important}
html.h1-home #lobbyRows .lobby-row{flex-direction:row!important;flex-wrap:nowrap!important;grid-template-columns:none!important}
html.h1-home #lobbyRows .lrow-title{flex-wrap:nowrap!important}
html.h1-home #lobbyRows .lobby-row > .btn{width:auto!important;margin:0!important;align-self:center!important}
html.h1-home #lobbyRows .lrow-title .tag:not(.lock){display:none!important}
#h1Home .h1-plus{margin-right:6px}
html.h1-home #lobbyRows .lrow-meta{flex-wrap:nowrap!important;flex-direction:row!important;display:flex!important}html.h1-home #lobbyRows .lrow-meta > span{display:inline!important;white-space:nowrap!important}
/* light theme: keep the theme's own light page so text keeps AA contrast */
html[data-theme="light"].h1-home body{background:#eef2f6!important}
html[data-theme="light"].h1-home main#lobby{background:#fff!important}
html[data-theme="light"].h1-home .h1-head,html[data-theme="light"] #h1Home .h1-head{color:#33465a!important;-webkit-text-fill-color:#33465a!important}
/* 1H polish: full names, short subtitle, no ellipsis */
html.h1-home #lobbyRows .lrow-pfx,html.h1-home #lobbyRows .lrow-host{display:none!important}
html.h1-home #lobbyRows .lrow-short,html.h1-home #lobbyRows .lrow-ptag{display:inline-block!important}
html.h1-home #lobbyRows .lrow-title .tag.lrow-ptag{display:inline-block!important;background:#e3f6d6!important;color:#1d4d0c!important;-webkit-text-fill-color:#1d4d0c!important;border:1px solid #9fd77f!important}
html.h1-home #lobbyRows .lrow-title strong,html.h1-home #lobbyRows .lrow-meta > span{text-overflow:clip!important}
html.h1-home p.open-access .h1-full{display:none}
html.h1-home p.open-access.h1-open .h1-full{display:inline}
html.h1-home p.open-access.h1-open .h1-short{display:none}
html.h1-home p.open-access{cursor:pointer;text-overflow:clip!important}
html.h1-home #h1Help{order:5;display:flex;align-items:center;gap:8px;width:100%;margin:2px 0 10px;padding:10px 12px;border-radius:14px;border:1px solid #2c4a6e;background:#13253b;color:#eaf2ff;-webkit-text-fill-color:#eaf2ff;font-weight:800;font-size:14px;text-align:left}
html.h1-home #h1Help small{display:block;font-weight:700;font-size:12px;color:#b8c8dc;-webkit-text-fill-color:#b8c8dc}
html[data-theme="light"].h1-home #h1Help{background:#eef4fb;color:#13233a;-webkit-text-fill-color:#13233a;border-color:#b9cbe0}
html[data-theme="light"].h1-home #h1Help small{color:#3b4c63;-webkit-text-fill-color:#3b4c63}
#h1Help{display:none}
html.h1-home #lobbyRows .lrow-meta > span.lrow-host{display:none!important}
html.h1-home #lobbyRows .lrow-meta > span.lrow-short{display:inline!important}
html.h1-home #lobbyRows .lrow-title{white-space:normal!important;flex-wrap:wrap!important;overflow:visible!important;row-gap:3px}
html.h1-home #lobbyRows .lrow-title strong{white-space:normal!important;overflow:visible!important;flex:0 1 auto}
html.h1-home #lobbyRows .lrow-meta > span{overflow:visible!important}

/* Stage 1S: a flag-hidden room tile (SLOTS_TILE_ENABLED false) leaves no gap */
.l1-room[hidden]{display:none!important}
#h1Home .l1-rooms:has(>.l1-room[hidden]){grid-template-columns:1.25fr 1fr 1fr}
.lrow-suit{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin-right:8px;border-radius:8px;background:#1f8a4c;color:#fff;font-size:16px;vertical-align:middle}
.h1-badge{display:inline-flex;min-width:22px;height:22px;margin-left:6px;padding:0 6px;border-radius:999px;background:#ffe14a;color:#13233a;font-size:14px;align-items:center;justify-content:center}
.h1-badge[hidden]{display:none}
/* t8386 G1: Home "next tournament" card (shared/next-tour.js) */
#h1TourSlot:empty{display:none}
:is(#h1Home,#wideTourSlot) .h1-tour{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;min-height:52px;margin:0 0 10px;padding:7px 12px;border-radius:14px;background:linear-gradient(180deg,#2b3f66,#22314f)!important;border:1px solid #4a64a0!important;color:#eaf2fb!important;-webkit-text-fill-color:#eaf2fb;text-decoration:none!important}
:is(#h1Home,#wideTourSlot) .h1-tour .h1-tour-ico{font-size:22px;line-height:1}
:is(#h1Home,#wideTourSlot) .h1-tour .h1-tour-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25;font-weight:800;font-size:14px}
:is(#h1Home,#wideTourSlot) .h1-tour small{color:#b9c8e6!important;-webkit-text-fill-color:#b9c8e6!important;font-weight:600;font-size:12px}
:is(#h1Home,#wideTourSlot) .h1-tour .h1-tour-go{color:#ffe14a!important;-webkit-text-fill-color:#ffe14a!important;font-weight:900;white-space:nowrap}

#wideTourSlot .h1-tour{margin:10px 0;color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none;text-align:left}
/* t8617 (TestMu: "the Games tile does nothing"): a theme rule turned the coming-soon line dark on its dark box, so the tap
   looked dead. The line now always reads gold on navy. */
html body #h1Home p.l1-soon-msg:not([hidden]):not(#zz){display:block!important;color:#ffd58a!important;background:#22384f!important;border:1px solid rgba(255,213,138,.55)!important;opacity:1!important}
