/* Open Games controls live with the list; chat is intentionally full-height. */
.lobby-tools{display:flex;align-items:center;gap:2px}.lobby-tools .filter{color:#827b8a;padding:7px 8px;border-bottom:1px solid transparent}.lobby-tools .filter.active{color:#e2d8f1;border-bottom-color:var(--purple)}.lobby-tools #refreshLobbies{display:none}
@media (min-width:901px){.columns{align-items:start}.game-list{align-self:start}.chat{align-self:stretch;height:calc(100dvh - 168px);min-height:560px}.lobby-tools .filter{padding:10px 9px}}
@media(max-width:900px){.lobby-tools{overflow:auto}.lobby-tools .filter{white-space:nowrap}.list-head{height:auto;min-height:48px;gap:6px}.list-head>div:first-child{white-space:nowrap}}

/* Lobby browser: denser information, clearer hierarchy, no extra panels. */
.lobby-heading{display:flex;align-items:center}.lobby-heading:after{content:"LIVE UPDATES";margin-left:12px;color:#6f6978;font:500 8px DM Mono,monospace;letter-spacing:.09em}.lobby-heading:before{content:"";order:3;width:5px;height:5px;border-radius:50%;background:#4ed393;margin:0 5px 0 8px;box-shadow:0 0 9px rgba(78,211,147,.7)}
@media (min-width:901px){
  .game-list{border-color:#292733;background:#0f0f14;box-shadow:0 14px 34px rgba(0,0,0,.12)}
  .list-head{height:62px;padding:0 22px;background:linear-gradient(90deg,#121118,rgba(18,17,24,.7));border-bottom-color:#2a2832}
  .list-head b{font-size:14px;letter-spacing:-.02em}.list-head span{font-size:9px;margin-left:9px}.lobby-tools{gap:7px}.lobby-tools .filter{padding:10px 11px;font-size:10px}
  .labels,.lobby{grid-template-columns:minmax(220px,1.18fr) minmax(235px,1.25fr) 115px 96px 142px;gap:18px}
  .labels{height:31px;padding:0 22px;background:#0c0c11;color:#716b79;font-size:8px}.lobby{height:88px;padding:0 22px;border-bottom-color:#27252e;transition:background .16s ease,box-shadow .16s ease}
  .lobby:hover{background:#15141c;box-shadow:inset 3px 0 #8c57ee}.lobby.featured{background:linear-gradient(90deg,rgba(233,189,73,.07),transparent 36%);box-shadow:inset 3px 0 #e9bd49}
  .player{gap:11px}.player img{width:43px;height:43px;border:1px solid #332e41;border-radius:6px;background:#211b2c;padding:3px}.player b{font-size:12px;letter-spacing:-.01em}.player small{margin-top:4px;font-size:9px;color:#837d8b}.player i{display:none}.player strong{margin-left:auto;border:1px solid #3a3543;border-radius:20px;padding:5px 8px;background:#17161d;color:#aaa3b2;font-size:8px;text-transform:uppercase}
  .offer{align-items:center;gap:13px}.offer img{width:39px;height:39px;margin:0 -11px 0 0;padding:3px;border-color:#3a3545;border-radius:5px;background:linear-gradient(135deg,#272033,#1c1a23)}.offer img:first-child{z-index:2}.offer span{width:25px;height:25px;margin:0 0 0 7px;border:1px solid #3b3743;background:#24212c;color:#d9d2e3;font-size:9px}
  .pot{position:relative;padding-top:12px;font-size:15px;letter-spacing:-.025em}.pot:before{content:"TOTAL POT";position:absolute;top:0;color:#716b79;font:500 7px DM Mono,monospace;letter-spacing:.08em}.pot em{padding:1px 4px}.chance{display:flex;flex-direction:column;gap:2px;font-size:13px;font-family:Space Grotesk,sans-serif;font-weight:700;color:#e7e2ea}.chance:after{content:"EQUAL ODDS";font:500 7px DM Mono,monospace;letter-spacing:.07em;color:#77717f}
  .actions{gap:7px}.actions button{min-width:59px;padding:9px 10px;border-radius:4px;font-size:9px;transition:transform .14s ease,background .14s ease}.actions button:hover{transform:translateY(-1px);background:#25212d;color:#fff}.actions .join{min-width:63px;background:linear-gradient(135deg,#9b62f5,#7042c7);border-color:#9b62f5;box-shadow:0 5px 15px rgba(117,68,204,.2)}
  footer{height:37px;padding:0 22px;background:#0c0c11;font-size:9px}
}

/* Make each live match feel like its own GodlyFlip drop, not a copied betting row. */
@media (min-width:901px){
  .labels span:nth-child(2){font-size:0}.labels span:nth-child(2):after{content:"WEAPONS IN PLAY";font-size:8px}
  .labels,.lobby{grid-template-columns:minmax(220px,1fr) minmax(330px,1.6fr) 120px 96px 142px}
  .lobby{height:104px}.lobby .offer{min-height:78px;gap:0;padding:4px 0}.lobby .offer img{width:78px;height:78px;object-fit:contain;margin:0 -30px 0 0;padding:0;border:0;background:transparent;filter:drop-shadow(0 8px 8px rgba(0,0,0,.45))}.lobby .offer img:first-child{z-index:3}.lobby .offer img:nth-child(2){z-index:2}.lobby .offer span{z-index:4;margin-left:16px;background:#292532;border-color:#4a4356}
  .skin-void{background:linear-gradient(90deg,rgba(113,52,180,.13),transparent 39%)}.skin-royal{background:linear-gradient(90deg,rgba(207,139,36,.12),transparent 39%)}.skin-plasma{background:linear-gradient(90deg,rgba(89,193,77,.10),transparent 39%)}.skin-frost{background:linear-gradient(90deg,rgba(52,161,221,.11),transparent 39%)}
  .skin-void:hover{box-shadow:inset 3px 0 #9b61f3}.skin-royal:hover{box-shadow:inset 3px 0 #f1bd51}.skin-plasma:hover{box-shadow:inset 3px 0 #84dc65}.skin-frost:hover{box-shadow:inset 3px 0 #6bc8f4}
}

/* Top navigation and lower chat: the lobby owns the page, not a side rail. */
.top-brand{display:flex;align-items:center;gap:9px;color:#f4f0fa;text-decoration:none;font:800 12px Space Grotesk,sans-serif;letter-spacing:.04em}.top-brand img{width:35px;height:35px;object-fit:cover;border-radius:8px;mix-blend-mode:screen}.top-nav{display:flex;align-items:center;justify-content:center;gap:5px}.top-nav button{border:0;border-radius:6px;background:transparent;color:#aaa4b1;padding:10px 12px;font:700 11px Manrope,sans-serif}.top-nav button:hover{color:#fff;background:#191720}.top-nav button.active{background:#211936;color:#dac4ff}.top-nav button.soon{cursor:not-allowed;color:#625d69}.top-nav i{margin-left:4px;color:#8d6abb;font:600 8px DM Mono,monospace;letter-spacing:.05em}
.pot,.creator-total>b,.modal-pot b{color:#c693ff}.pot em,.creator-total em,.modal-pot em,footer em{background:#a46df4;color:#fff}.balance em{background:#a46df4;color:#fff}
@media (min-width:901px){
  .app{grid-template-columns:minmax(0,1fr)}.rail{display:none}main{padding:0 clamp(24px,3vw,54px);grid-template-rows:74px minmax(0,1fr)}header{display:grid;grid-template-columns:1fr auto 1fr;gap:20px}.header-right{margin-left:auto}.workspace{grid-template-rows:72px minmax(0,1fr)}.page-title{align-items:center}.page-title h1{font-size:31px}.page-title p{font-size:11px;margin-bottom:5px}.columns{grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}.game-list{align-self:auto}.chat{align-self:auto;height:clamp(180px,calc(100dvh - 650px),280px);min-height:0;width:100%}
  .list-head{height:61px}.list-head b{font-size:16px}.list-head span{font-size:11px}.lobby-tools{gap:8px}.lobby-tools .filter{font-size:11px;padding:11px 12px}.lobby-tools .create-open{margin-left:8px;padding:10px 13px;border-radius:5px;font-size:10px}.labels,.lobby{grid-template-columns:minmax(225px,1fr) minmax(310px,1.5fr) 130px 105px 142px;gap:20px}.labels{height:32px;font-size:9px}.labels span:nth-child(2):after{font-size:9px}.lobby{height:92px}.player b{font-size:14px}.player small{font-size:11px}.player strong{font-size:9px}.lobby .offer img{width:72px;height:72px}.pot{font-size:18px}.pot:before{font-size:8px}.chance{font-size:15px}.chance:after{font-size:8px}.actions button{font-size:10px;padding:10px 12px;min-width:66px}.actions .join{min-width:70px}.chat-head b{font-size:15px}.chat-head span{font-size:11px}.messages b,.messages p{font-size:12px}.messages time{font-size:9px}.chat input{font-size:12px}
}
@media(max-width:900px){
  header{min-height:58px;gap:8px}.top-brand b{display:none}.top-brand img{width:32px;height:32px}.top-nav{order:3;overflow:auto;justify-content:flex-start;flex:1;gap:2px}.top-nav button{white-space:nowrap;padding:9px 10px;font-size:10px}.header-right{margin-left:0}.header-right .online,.header-right .account{display:none}.columns{display:block}.chat{height:240px;margin-top:12px}.page-title{padding:15px 0}.page-title h1{font-size:26px}.lobby-tools .create-open{margin-left:3px;padding:9px 10px;font-size:9px}.lobby .offer{display:flex}
}

/* Desktop: chat belongs beside the game browser, not below it. */
@media (min-width:901px){
  .columns{grid-template-columns:minmax(0,1fr) 350px;gap:18px;align-items:start}
  .game-list{align-self:start}
  .chat{grid-column:2;grid-row:1;align-self:stretch;height:calc(100dvh - 158px);min-height:520px}
}

/* A real site header: readable at a glance, without turning every tab into a card. */
@media (min-width:901px){
  main{grid-template-rows:92px minmax(0,1fr)}header{gap:34px;border-bottom-color:#292630}
  .top-brand{gap:11px;font-size:15px;letter-spacing:.045em}.top-brand img{width:45px;height:45px;border-radius:10px}.top-nav{gap:12px;height:100%}.top-nav button{position:relative;height:100%;padding:0 8px;border-radius:0;font-size:13px;letter-spacing:.01em}.top-nav button:hover{background:transparent;color:#f4effb}.top-nav button.active{background:transparent;color:#e5d7ff;box-shadow:inset 0 -3px #a96dff}.top-nav button.active:before{content:"";display:inline-block;width:5px;height:5px;margin:0 7px 1px 0;border-radius:50%;background:#b278ff;box-shadow:0 0 10px rgba(178,120,255,.85)}.top-nav button.soon{color:#77717d}.top-nav i{font-size:9px;color:#a082ca}
  .header-right{gap:16px}.online{font-size:12px}.balance{padding:10px 12px;border-radius:6px}.balance small{font-size:8px}.balance b{font-size:16px}.balance strong{font-size:17px}.account{font-size:14px}.account img{width:38px;height:38px;border-radius:6px}.account small{font-size:8px}
  .chat{height:calc(100dvh - 176px)}
}

/* Stronger header and a section-level create action. */
@media (min-width:901px){
  main{grid-template-rows:112px minmax(0,1fr)}header{gap:42px}.top-brand{font-size:17px;gap:13px}.top-brand img{width:54px;height:54px;border-radius:12px}.top-nav{gap:17px}.top-nav button{font-size:16px;padding:0 10px}.top-nav button.active:before{display:none}.top-nav button.active{box-shadow:inset 0 -4px #a96dff}.top-nav i{font-size:10px}.header-right{gap:18px}.online{font-size:13px}.balance{padding:12px 14px}.balance b{font-size:18px}.account{font-size:15px}.account img{width:44px;height:44px}.account small{font-size:9px}.chat{height:calc(100dvh - 196px)}
  .lobby-heading:before,.lobby-heading:after{display:none}.lobby-heading{gap:11px}.lobby-heading .create-open{margin-left:16px;padding:12px 17px;border-radius:6px;background:linear-gradient(135deg,#b578ff,#7745d3);box-shadow:0 9px 22px rgba(130,74,225,.25);font-size:11px;letter-spacing:.03em}.lobby-heading .create-open:hover{filter:brightness(1.1);transform:translateY(-1px)}.lobby-tools .create-open{display:none}
}
@media(max-width:900px){.lobby-heading:before,.lobby-heading:after{display:none}.lobby-heading .create-open{margin-left:8px;padding:9px 11px;font-size:9px}}

/* Neutral rows, live total, and a proper 10-minute game history. */
.history-toggle{border:1px solid #37333e;border-radius:4px;background:transparent;color:#c2bacd;padding:8px 10px;font:700 9px DM Mono,monospace}.history-toggle.active{border-color:#9e6cf2;background:#211936;color:#eadfff}.live-total{display:flex;align-items:center;gap:6px;margin-left:7px;padding-left:12px;border-left:1px solid #34303a;color:#8d8595;font:600 8px DM Mono,monospace;letter-spacing:.07em}.live-total strong{color:#c693ff;font:700 13px Space Grotesk,sans-serif;letter-spacing:0}.live-total em{font-style:normal;background:#a46df4;color:#fff;border-radius:50%;padding:1px 4px;font-size:.8em}.past-games{min-height:360px;padding:0 22px;background:#0f0f14}.past-game{display:grid;grid-template-columns:minmax(0,1fr) 135px 190px;align-items:center;gap:20px;min-height:92px;border-bottom:1px solid #282630}.past-game:last-child{border-bottom:0}.past-game>button{width:max-content;max-width:100%;border:0;background:transparent;color:#f1edf4;text-align:left;padding:0;cursor:pointer}.past-game>button:hover b{color:#c693ff}.past-game b{font:700 14px Space Grotesk,sans-serif}.past-game small{display:block;margin-top:4px;color:#938b9b;font-size:11px}.past-game> b{color:#c693ff;font-size:17px}.past-game> b em{font-style:normal;background:#a46df4;color:#fff;border-radius:50%;padding:1px 4px;font-size:.75em}.expiry{justify-self:end;color:#a69eaf;font:500 10px DM Mono,monospace}.profile-link{font:inherit}.profile-head{display:flex;align-items:center;gap:13px;margin:17px 0}.profile-head img{width:56px;height:56px;object-fit:contain;border:1px solid #423b50;border-radius:8px;background:#211b2c}.profile-head h2{font-size:24px!important}.profile-head span{display:block;margin-top:3px;color:#a198aa;font-size:11px}.profile-stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #35313c;border-left:1px solid #35313c}.profile-stats span{padding:13px;border-right:1px solid #35313c;border-bottom:1px solid #35313c;color:#938b9b;font-size:10px}.profile-stats b{display:block;margin-bottom:5px;color:#efeaf3;font:700 19px Space Grotesk,sans-serif}
@media (min-width:901px){.lobby.skin-void,.lobby.skin-royal,.lobby.skin-plasma,.lobby.skin-frost,.lobby.featured{background:#101015!important;box-shadow:none!important}.lobby:hover,.lobby.skin-void:hover,.lobby.skin-royal:hover,.lobby.skin-plasma:hover,.lobby.skin-frost:hover{background:#16151d!important;box-shadow:inset 3px 0 #4b4654!important}.history-toggle{font-size:10px;padding:10px 12px}.live-total{font-size:9px}.live-total strong{font-size:15px}.past-games{min-height:365px}.past-game{min-height:104px}.player{cursor:pointer}.player:hover b{color:#c693ff}}
@media(max-width:900px){.live-total{display:none}.history-toggle{white-space:nowrap}.past-games{padding:0 12px;min-height:275px}.past-game{grid-template-columns:1fr auto;gap:10px}.expiry{grid-column:1/3;justify-self:start;margin-top:-14px}.profile-stats b{font-size:16px}}

/* User-supplied GF chip used as the site currency mark. */
.balance em,.pot em,.creator-total em,.modal-pot em,footer em,.live-total em,.past-game> b em{display:inline-block;width:18px;height:18px;padding:0!important;border-radius:50%;background-color:transparent!important;background-image:url('assets/godlyflip-token.png')!important;background-repeat:no-repeat!important;background-size:165%!important;background-position:center!important;color:transparent!important;font-size:0!important;vertical-align:-4px;box-shadow:none!important}.creator-total em,.modal-pot em{width:22px;height:22px;vertical-align:-5px}.balance em{width:17px;height:17px;vertical-align:-3px}.live-total em{width:15px;height:15px;vertical-align:-3px}.past-game> b em{width:18px;height:18px;vertical-align:-4px}

/* Keep the GF token readable and prevent any game column from escaping the page. */
html,body{max-width:100%;overflow-x:hidden}.app,main,.workspace,.columns,.game-list,.chat,.lobby,.labels{min-width:0;max-width:100%}.pot em,.past-game> b em{width:25px;height:25px;background-size:178%!important;vertical-align:-7px}.creator-total em,.modal-pot em{width:28px;height:28px;background-size:178%!important;vertical-align:-8px}.balance em{width:21px;height:21px;background-size:178%!important;vertical-align:-5px}.live-total em{width:20px;height:20px;background-size:178%!important;vertical-align:-5px}

/* Keep the original compact chip, aligned directly beside every amount. */
.pot{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.pot em,.past-game> b em{width:18px;height:18px;background-size:165%!important;vertical-align:middle}.creator-total em,.modal-pot em{width:22px;height:22px;background-size:165%!important;vertical-align:middle}.balance em{width:17px;height:17px;background-size:165%!important;vertical-align:middle}.live-total em{width:15px;height:15px;background-size:165%!important;vertical-align:middle}

/* Tablet widths need their own layout; desktop columns cannot fit beside chat here. */
@media (min-width:901px) and (max-width:1150px){
  main{padding:0 16px;grid-template-rows:76px minmax(0,1fr)}header{grid-template-columns:auto minmax(0,1fr) auto;gap:10px}.top-brand b{display:none}.top-brand img{width:40px;height:40px}.top-nav{justify-content:flex-start;gap:4px;overflow-x:auto}.top-nav button{flex:0 0 auto;font-size:12px;padding:0 7px}.top-nav i{font-size:8px}.header-right{gap:8px}.header-right .online{display:none}.balance{padding:8px 9px}.balance b{font-size:14px}.account span{display:none}.account img{width:35px;height:35px}
  .workspace{grid-template-rows:58px minmax(0,1fr)}.page-title h1{font-size:25px}.page-title p{font-size:9px}.columns{grid-template-columns:minmax(0,1fr) 275px;gap:12px;min-width:0}.chat{height:calc(100dvh - 144px);min-height:460px}
  .list-head{height:auto;min-height:86px;flex-direction:column;align-items:stretch;justify-content:center;gap:5px;padding:9px 13px}.lobby-heading,.lobby-tools{width:100%}.lobby-tools{justify-content:space-between;gap:2px}.lobby-tools .filter,.history-toggle{font-size:9px!important;padding:8px 7px!important}.lobby-heading .create-open{margin-left:auto;padding:9px 11px;font-size:9px}.live-total{display:none}
  .labels,.lobby{grid-template-columns:120px minmax(120px,1fr) 76px 0 103px;gap:7px}.labels{height:29px;padding:0 13px;font-size:7px}.labels span:nth-child(4),.lobby .chance{display:none}.lobby{height:88px;padding:0 13px}.player{gap:7px}.player img{width:34px;height:34px}.player b{font-size:11px}.player small{font-size:8px}.player strong{display:none}.lobby .offer img{width:58px;height:58px;margin-right:-24px}.lobby .offer span{width:20px;height:20px;margin-left:11px;font-size:8px}.pot{font-size:15px}.pot:before{font-size:7px}.actions{gap:4px}.actions button{min-width:48px;padding:8px 7px;font-size:8px}.actions .join{min-width:52px}.chat-head{height:50px}.messages{padding:5px 10px}.messages article{grid-template-columns:28px 1fr auto;gap:7px;padding:9px 0}.messages img{width:27px;height:27px}.messages b,.messages p{font-size:10px}.messages time{font-size:8px}.chat form{padding:8px}.chat input{font-size:10px}
}

/* Centered header and a single continuous game history. */
@media (min-width:901px){header{position:relative;display:flex;justify-content:center}.top-brand{position:absolute;left:0}.header-right{position:absolute;right:0}.workspace{max-width:1560px;margin:0 auto}.page-title{justify-content:center;text-align:center}}
.history-divider{display:flex;align-items:center;gap:10px;padding:16px 22px 12px;background:#0f0f14}.history-divider span{height:1px;flex:1;background:#302d37}.history-divider b{color:#ddd5e7;font:700 11px Space Grotesk,sans-serif;letter-spacing:.04em;white-space:nowrap}.history-divider small{color:#938b9d;font:500 9px DM Mono,monospace;white-space:nowrap}.past-games{min-height:0!important}.past-game{grid-template-columns:minmax(140px,1fr) 150px 125px 180px}.outcome{display:grid;grid-template-columns:35px 1fr;grid-template-rows:1fr auto;align-items:center;column-gap:8px}.outcome img{grid-row:1/3;width:35px;height:35px;object-fit:cover;border-radius:50%;border:1px solid #36323d}.outcome span{font:700 10px DM Mono,monospace}.outcome small{margin:1px 0 0;font-size:9px}.outcome.heads span{color:#77b2ff}.outcome.tails span{color:#ff8484}
@media (max-width:1150px){
  body{overflow:auto!important}main{display:grid!important;grid-template-rows:76px minmax(0,1fr);padding:0 10px!important}header{display:flex!important;align-items:center;justify-content:center;gap:8px;flex-wrap:nowrap}.workspace{display:block!important;width:100%;max-width:100%;margin:0!important}.page-title{display:flex!important;justify-content:center;text-align:center;padding:14px 0!important}.columns{display:grid!important;grid-template-columns:minmax(0,1fr) 230px!important;gap:10px!important;align-items:start}.game-list{min-width:0}.chat{grid-column:2!important;grid-row:1!important;height:calc(100dvh - 144px)!important;min-height:500px!important;margin:0!important}.labels{display:none!important}.lobby{display:flex!important;align-items:center;gap:8px;height:84px!important;padding:0 11px!important;min-width:0}.player{order:1;flex:1 1 100px;min-width:100px}.player img{width:32px!important;height:32px!important}.player b{font-size:11px!important}.player small{font-size:8px!important}.offer{display:flex!important;order:2;flex:0 0 86px;min-width:0}.lobby .offer img{width:52px!important;height:52px!important;margin-right:-25px!important}.lobby .offer span{display:none}.pot{order:3;flex:0 0 70px;font-size:15px!important}.pot:before{font-size:7px!important}.chance{display:none!important}.actions{order:4;flex:0 0 93px}.actions button{min-width:43px!important;padding:8px 5px!important;font-size:8px!important}.actions .join{min-width:47px!important}.list-head{min-height:80px!important}.history-divider{padding:15px 11px 11px}.history-divider b{font-size:10px}.history-divider small{font-size:8px}.past-games{padding:0 11px}.past-game{grid-template-columns:minmax(110px,1fr) 112px 90px;gap:7px;min-height:82px}.past-game .expiry{display:none}.past-game> b{font-size:14px}.outcome{grid-template-columns:28px 1fr;column-gap:5px}.outcome img{width:28px;height:28px}.outcome span{font-size:8px}.outcome small{font-size:8px}.top-brand{position:static!important;flex:0 0 auto}.header-right{position:static!important;flex:0 0 auto}.top-nav{order:0!important;min-width:0;flex:1 1 auto}.top-nav button{font-size:11px!important}
}

/* Full desktop width: games lead, chat stays pinned on the right. */
@media (min-width:1151px){
  .workspace{max-width:none!important;margin:0!important}.page-title{justify-content:flex-start!important;text-align:left!important}.columns{grid-template-columns:minmax(0,1fr) 360px!important;gap:20px}.game-list{width:100%}.chat{grid-column:2!important;grid-row:1!important;align-self:stretch!important;height:calc(100dvh - 196px)!important;min-height:560px}
}
