




@media (orientation: portrait) {











  html.eb-phone .eb { --p: calc(clamp(0.6px, calc(100vw / 520), 0.86px) * var(--ui-scale, 1)); }
  html.eb-phone body.eb { display: flex; flex-direction: column; min-height: 100dvh; }
  html.eb-phone body[data-upright] .eb-screen { flex: 1 0 auto; min-height: 0; padding: calc(54px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left)); }



  html.eb-phone .eb-screen > .eb-top { gap: 8px; }
  html.eb-phone .eb-top > div:first-child, html.eb-phone .eb-top-left { flex: 0 1 auto; gap: 8px !important; }
  html.eb-phone .eb-top :is(.eb-logo, .eb-logo-spot) { flex: none; }
  html.eb-phone .eb-top .eb-chip:not(.eb-party-open) { flex: 0 1 auto; min-width: 0; margin-left: 4px; }
  html.eb-phone .eb-top .eb-chip:not(.eb-party-open) > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px !important; }
  html.eb-phone .eb-top-right { flex: 0 1 auto; min-width: 0; gap: 12px; }


  html.eb-phone .eb-top .eb-me { flex: 0 1 auto; min-width: 0; }
  html.eb-phone .eb-top .eb-me > span { min-width: 0; }
  html.eb-phone .eb-top .eb-me > span > span:last-child { min-width: 0; align-items: center; }
  html.eb-phone .eb-top .eb-me .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 20px; }
  html.eb-phone .eb-top .eb-me .rank { flex: none; white-space: nowrap; }
  @media (max-width: 409px) { html.eb-phone .eb-top .eb-me .rank { font-size: 0; gap: 0; } }




  html.eb-phone .eb-bar { margin: 0; padding: 0; z-index: auto; }
  html.eb-phone .eb-bar:has(.eb-bar-legal) { padding: 6px 16px calc(14px + env(safe-area-inset-bottom)); }
  html.eb-phone .eb-bar-legal { width: 100%; gap: 2px 16px; }


  html.eb-phone .eb-sheet > p + a.eb-btn[href="/"] { align-self: stretch; min-height: 56px; margin: 6px 4px 0 0; font-size: 22px; }
  html.eb-phone .eb-sheet > .eb-errart + p { font-size: 18px !important; }


  html.eb-phone .eb-h2 { font-size: 24px; }


  html.eb-phone .eb-btn { min-height: 48px; box-sizing: border-box; font-size: max(17px, calc(32 * var(--p))); }
  html.eb-phone .eb-btn.small { min-height: 44px; padding: 0 16px; font-size: max(15px, calc(22 * var(--p))); }
  html.eb-phone :is(.eb-input, .eb-form input:not([type="checkbox"]), .eb-form select) { min-height: 48px; box-sizing: border-box; font-size: 16px; }
  html.eb-phone .eb-form label { font-size: 16px; }
  html.eb-phone :is(.eb-note, .eb-error) { font-size: 15px; line-height: 1.25; }
  html.eb-phone .eb-two { grid-template-columns: minmax(0, 1fr); gap: 18px; }

  html.eb-phone .eb-emptycard { gap: 14px; padding: 16px 16px 18px; margin-right: 4px; }
  html.eb-phone .eb-emptycard .pic { width: 76px; }
  html.eb-phone .eb-emptycard .pic.wide { width: 92px; }
  html.eb-phone .eb-emptycard .say { gap: 6px; }
  html.eb-phone .eb-emptycard .say b.eb-display { font-size: 21px; }
  html.eb-phone .eb-emptycard .say p { font-size: 15px; line-height: 1.25; }
  html.eb-phone .eb-emptycard .go { gap: 12px; margin-top: 6px; }
  html.eb-phone .eb-emptycard .go .eb-btn { flex: 1 1 auto; }



  html.eb-phone .eb-rejoin { margin: 0 3px 10px; padding: 8px 10px 8px 14px; gap: 10px; font-size: 15px; line-height: 1.2; border-width: 3px; box-shadow: 4px 4px 0 var(--ink); }
  html.eb-phone .eb-rejoin > .eb-btn { flex: none; min-height: 44px; }



  html.eb-phone :is(.eb-sure-wrap, .eb-save) { place-items: end center; padding: 16px max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  html.eb-phone :is(.eb-sure, .eb-save-card) { width: 100%; max-width: none; max-height: calc(100dvh - 40px); overflow-y: auto; box-sizing: border-box; padding: 18px 18px 20px; gap: 12px; }
  html.eb-phone .eb-sure p, html.eb-phone .eb-save-card { font-size: 16px; line-height: 1.3; }
  html.eb-phone .eb-save-card .eb-display { font-size: 26px; }
  html.eb-phone :is(.eb-sure-go, .eb-save-go) { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px 14px; margin-top: 6px; padding-right: 4px; }
  html.eb-phone :is(.eb-sure-go, .eb-save-go) .eb-btn { min-height: 52px; padding: 4px 10px; font-size: 16px; line-height: 1.05; text-align: center; }


  html.eb-phone :is(.eb-toast, .eb-party-toast) { bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100vw - 40px); box-sizing: border-box; font-size: 15px; }



  html.eb-phone .eb-rc { --p: calc(100vw / 710); }


  html.eb-phone .eb-rc-egg small { font-size: 14px; }
  html.eb-phone .eb-rc-sub { font-size: max(14px, calc(28 * var(--p))); }
  html.eb-phone .eb-rc-say { font-size: max(14px, calc(26 * var(--p))); }


  html.eb-phone .eb .eb-party .eb-btn, html.eb-phone .eb-party .eb-btn { min-height: 48px; }
  html.eb-phone .eb-party .eb-btn.small { min-height: 44px; }
  html.eb-phone .eb-party .eb-input { min-height: 48px; font-size: 16px; }
  html.eb-phone .eb-party .eb-mini { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 7px; }
  html.eb-phone .eb .eb-party { padding: calc(14px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); gap: 16px; }
  html.eb-phone .eb-party-head h2 { font-size: 40px; }

  html.eb-phone .eb .eb-party-x { min-height: 44px; padding: 0 18px; border: 3px solid var(--ink); border-radius: 7px; background: var(--night); box-shadow: 3px 3px 0 var(--ink); font-size: 16px; color: var(--shell); }
  html.eb-phone .eb-party .eb-htab { min-height: 44px; font-size: 17px; }
  html.eb-phone .eb-party-go > .eb-muted, html.eb-phone .eb-party-invite .lbl, html.eb-phone .eb-party .ask-q { font-size: 16px; line-height: 1.25; }

  html.eb-phone .eb-party[data-tab="party"] .eb-party-go:has(form[action="/party/create"]) { margin-top: auto; gap: 14px; }
  html.eb-phone .eb-party-go form[action="/party/create"] .eb-btn { width: 100%; min-height: 56px; margin-right: 4px; }
  html.eb-phone .eb-party-go form[action="/party/create"] { margin-right: 4px; }
  html.eb-phone .eb-party .eb-party-code { margin-right: 4px; }
  html.eb-phone .eb-party .eb-party-code .eb-btn { min-width: 88px; }

  html.eb-phone .eb-party-m { min-height: 56px; box-sizing: border-box; }
  html.eb-phone .eb-party-m .who b { font-size: 19px; }
  html.eb-phone .eb-party-m .who small { font-size: 14px; }
  html.eb-phone button.eb-party-m.slot { font-size: 15px; }
  html.eb-phone .eb-party-invite .row { flex-wrap: wrap; gap: 10px; margin-right: 4px; }
  html.eb-phone .eb-party-invite .row .eb-party-codebig { flex: 1 1 100%; box-sizing: border-box; padding: 6px 12px; font-size: 26px; text-align: center; }
  html.eb-phone .eb-party-invite .row .eb-btn, html.eb-phone .eb-party-invite .row .eb-mini { flex: 1 1 0; min-height: 48px; }
  html.eb-phone .eb-party-go .grid { gap: 12px; margin-right: 4px; }
  html.eb-phone .eb-party-go .grid .eb-btn { min-height: 52px; }
  html.eb-phone .eb-party-chat .eb-chatlog { font-size: 15px; }
  html.eb-phone .eb-party-chat .row { margin-right: 4px; }
  html.eb-phone .eb-party-leave { margin-right: 4px; }
  html.eb-phone .eb-party-leave .eb-mini, html.eb-phone div.eb-party-leave form { flex: 1 1 0; }
  html.eb-phone .eb-party-leave .eb-mini { width: 100%; min-height: 48px; font-size: 16px; }








  html.eb-phone body.eb .eb-menu.h-home { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; gap: 10px; height: auto; min-height: 0; margin: 0 3px 0 0; transform: none; position: static; }
  html.eb-phone body.eb .eb-menu.h-home > .eb-side { display: contents; }
  html.eb-phone body.eb .eb-menu.h-home .eb-tile { grid-row: auto; grid-column: span 4; height: auto; min-height: 0; border-width: 3px; --sh-u: 1px; --sh-o: 4; align-self: stretch; }
  html.eb-phone body.eb .eb-menu.h-home .eb-tile .in { inset: 0; transform: none; }
  html.eb-phone body.eb .eb-menu.h-home > .eb-tile.casual { order: 1; height: clamp(200px, calc(52dvh - 40px), 440px); }
  html.eb-phone body.eb .eb-menu.h-home > .eb-tile.private { order: 2; height: 88px; }
  html.eb-phone body.eb .eb-menu.h-home > .eb-tile.ranked { order: 3; grid-row: auto; height: 88px; min-height: 0; }
  html.eb-phone body.eb .eb-menu.h-home > .eb-tile.leaders { order: 4; grid-column: span 2; height: 78px; }
  html.eb-phone body.eb .eb-menu.h-home > .eb-tile.replays { order: 5; grid-column: span 2; height: 78px; }
  html.eb-phone body.eb .eb-menu.h-home .h-nav { order: 6; grid-column: span 1; height: 80px; flex: none; }
  html.eb-phone body.eb .eb-menu.h-home > .h-news { order: 7; grid-column: span 2; height: 66px; align-self: stretch; }
  html.eb-phone body.eb .eb-menu.h-home > .h-live { order: 8; grid-column: span 2; height: 66px; align-self: stretch; }
  html.eb-phone body.eb .eb-menu.h-home .h-util { order: 9; grid-column: span 4; }



  html.eb-phone .h-home .eb-tile.casual .label { left: 16px; right: 16px; top: 14px; bottom: auto; transform: none; gap: 4px; max-width: none; }
  html.eb-phone .h-home .eb-tile.casual .label .t { font-size: min(13vw, 50px) !important; line-height: .95; }
  html.eb-phone .h-home .eb-tile.casual .label .s { font-size: 16px !important; line-height: 1.15; white-space: normal; overflow: visible; }
  html.eb-phone .h-home .eb-tile.casual .art { left: auto; right: 14px; top: auto; bottom: 96px; width: auto; max-width: 56%; height: calc(100% - 150px); object-fit: contain; transform: none; }
  html.eb-phone .h-home .eb-tile.casual .in::before { content: ""; position: absolute; left: 20px; right: 20px; bottom: 16px; height: 56px; background: var(--yolk); border: 3px solid var(--ink); border-radius: 12px; box-shadow: inset 0 -5px 0 rgba(160, 100, 0, .35), 4px 4px 0 #000; transform: skewX(-8deg); }
  html.eb-phone .h-home .eb-tile.casual .in::after { content: "PLAY"; position: absolute; left: 20px; right: 20px; bottom: 16px; height: 62px; display: grid; place-items: center; padding-left: 30px; box-sizing: border-box; font: 400 34px/1 'Titan One', system-ui, sans-serif; color: var(--night); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0L10 6L0 12Z' fill='%2318123A'/%3E%3C/svg%3E") no-repeat calc(50% - 50px) 50% / 17px 21px; }
  html.eb-phone .h-home .eb-tile.casual:active .in::before { translate: 3px 3px; box-shadow: inset 0 -2px 0 rgba(160, 100, 0, .35), 1px 1px 0 #000; background: #F2B400; }
  html.eb-phone .h-home .eb-tile.casual:active .in::after { translate: 3px 3px; }


  html.eb-phone .h-home .eb-tile.private .label { left: 16px; right: 34%; top: 50%; bottom: auto; transform: translateY(-50%); gap: 3px; max-width: none; }
  html.eb-phone .h-home .eb-tile.private .label .t { font-size: 32px !important; line-height: 1; }
  html.eb-phone .h-home .eb-tile.private .label .s { font-size: 14px !important; line-height: 1.1; white-space: normal; overflow: visible; }
  html.eb-phone .h-home .eb-tile.private .art { left: auto; right: 16px; top: 50%; width: auto; max-width: 30%; height: 74%; object-fit: contain; transform: translateY(-50%); }



  html.eb-phone .h-home .eb-tile.ranked .art, html.eb-phone .h-home .eb-tile.ranked .h-play, html.eb-phone .h-home .eb-tile.ranked .h-me, html.eb-phone .h-home .eb-tile.ranked .h-q .eb-qeggs { display: none; }
  html.eb-phone .h-home .eb-tile.ranked .h-foot { position: static; display: block; }
  html.eb-phone .h-home .eb-tile.ranked .h-foot > .t { position: absolute; left: 16px; top: 15px; margin: 0; padding: 0; font-size: 32px; line-height: 1; }
  html.eb-phone .h-home .eb-tile.ranked .h-band { position: static; display: block; padding: 0; background: none; border: 0; }
  html.eb-phone .h-home .eb-tile.ranked .h-band::before { content: "Played on a computer"; position: absolute; left: 16px; top: 52px; font: italic 800 15px/1.1 'Barlow Condensed', system-ui, sans-serif; color: var(--night); }
  html.eb-phone .h-home .eb-tile.ranked .h-season { left: auto; right: 12px; top: 11px; filter: drop-shadow(2px 2px 0 var(--ink)); }
  html.eb-phone .h-home .eb-tile.ranked .h-season > * { font-size: 12px; padding: 5px 8px; border-width: 2px; }
  @media (max-width: 359px) { html.eb-phone .h-home .eb-tile.ranked .h-season > b { display: none; } }
  html.eb-phone .h-home .eb-tile.ranked .h-mm { position: absolute; right: 12px; bottom: 10px; display: block; padding: 0; }
  html.eb-phone .h-home .eb-tile.ranked .h-q.eb-qbadge { display: block; padding: 4px 9px; transform: none; border-width: 2px; background: rgba(12, 8, 32, .82); }
  html.eb-phone .h-home .eb-tile.ranked .h-q.eb-qbadge > * { transform: none; }
  html.eb-phone .h-home .eb-tile.ranked .h-q b { display: block; font: 900 14px/1.1 'Barlow Condensed', system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
  html.eb-phone .h-home .eb-tile.ranked .h-wait { display: block; max-width: 150px; padding: 4px 9px; border-radius: 7px; background: rgba(12, 8, 32, .82); font-size: 14px; line-height: 1.1; text-align: right; }


  html.eb-phone .h-home .eb-tile:is(.leaders, .replays) .label { left: 12px; right: auto; top: 50%; bottom: auto; transform: translateY(-50%); max-width: none; }
  html.eb-phone .h-home .eb-tile:is(.leaders, .replays) .label .t { font-size: min(5.6vw, 23px) !important; }
  html.eb-phone .h-home .eb-tile:is(.leaders, .replays) .art { left: auto; right: 8px; top: 50%; width: auto; max-width: 34%; height: 62%; object-fit: contain; transform: translateY(-50%); }


  html.eb-phone .h-home .h-nav .in { flex-direction: column !important; align-items: center; justify-content: center; gap: 3px; padding: 4px 0 0; }
  html.eb-phone .h-home .h-nav .h-ic { width: 44px; height: 44px; translate: none !important; scale: 1 !important; }
  html.eb-phone .h-home .h-nav[href="/locker"] .h-ic { scale: 1.1 !important; }
  html.eb-phone .h-home .h-nav .h-lab { position: static; opacity: 1; translate: none; }
  html.eb-phone .h-home .h-nav .h-lab b { font: italic 800 14px/1 'Barlow Condensed', system-ui, sans-serif; letter-spacing: .02em; color: var(--shell); }
  html.eb-phone .h-home .h-nav .h-lab small { display: none; }
  html.eb-phone .h-home .h-new { top: -7px; right: -5px; padding: 0 6px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); font-size: 12px; }


  html.eb-phone .h-home :is(.h-ntx, .h-ltx) { left: 11px; right: 50px; gap: 2px; }
  html.eb-phone .h-home .h-ntx .h-nhead, html.eb-phone .h-home .h-ltx b { font-size: min(4.1vw, 17px); white-space: nowrap; overflow: visible; }
  html.eb-phone .h-home .h-ntx b:not(.h-nhead), html.eb-phone .h-home .h-ltx em { font: 800 13px/1.1 'Barlow Condensed', system-ui, sans-serif; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.eb-phone .h-home .h-pic, html.eb-phone .h-home .h-live .h-pic, html.eb-phone .h-home .h-news .h-pic { right: 7px; height: 60%; }


  html.eb-phone .h-home .h-util.h-util-split { position: static; width: auto; height: auto; gap: 10px; margin: 0; }
  html.eb-phone .h-home .h-util-split .h-u { flex: 1 1 0; min-width: 0; height: 56px; flex-direction: column; gap: 3px; border-width: 3px; border-radius: 9px; --sh-u: 1px; --sh-o: 3; text-decoration: none; }
  html.eb-phone .h-home .h-util-split .h-uic { width: 22px; height: 22px; translate: none !important; transform: none; filter: drop-shadow(1px 2px 0 var(--ink)); }
  html.eb-phone .h-home .h-util-split .h-u::after { content: attr(data-cap); font: italic 800 14px/1 'Barlow Condensed', system-ui, sans-serif; color: var(--shell); white-space: nowrap; }
  html.eb-phone .h-home .h-util-split .h-ucap { display: none; }




  html.eb-phone .eb .eb-q { display: flex; flex-direction: column; gap: 14px; margin-top: 2px; }
  html.eb-phone .eb .eb-q > div { display: contents !important; }
  html.eb-phone .eb-q .eb-qhero { order: 1; }
  html.eb-phone .eb-q #eb-qplayers { order: 2; }
  html.eb-phone .eb-q #eb-vote { order: 3; }
  html.eb-phone .eb-q > div:first-child > div:nth-child(2) { order: 4; margin-top: 0 !important; gap: 6px !important; font-size: 16px !important; line-height: 1.25; }
  html.eb-phone .eb-q .eb-qwait { order: 5; align-self: stretch; margin: 0; gap: 8px; }
  html.eb-phone .eb-q .eb-qlive { order: 6; margin: 0; }
  html.eb-phone .eb-q .eb-qchat { order: 7; }
  html.eb-phone .eb-q .eb-tipcard { order: 8; }
  html.eb-phone .eb-qhero #eb-qtitle { margin: 0; font-size: 28px; line-height: 1.05; }
  html.eb-phone .eb-qclock { margin-top: 2px; gap: 10px; }
  html.eb-phone .eb-qclock .eb-num { font-size: 60px; }
  html.eb-phone .eb-qclock .eb-it { font-size: 18px; }
  html.eb-phone .eb-qplayers { padding: 12px 14px 14px; gap: 10px; }
  html.eb-phone .eb-qph, html.eb-phone .eb-qpn { font-size: 24px; }
  html.eb-phone .eb-qall { font-size: 16px; }
  html.eb-phone .eb-qpnote { font-size: 14px; line-height: 1.2; }
  html.eb-phone .eb-eggs { gap: 6px; }
  html.eb-phone .eb-eggs[data-needed="8"] { --eggs-row: 8; }
  html.eb-phone .eb-eggs svg, html.eb-phone .eb-eggslot > svg.on { max-width: 44px; }

  html.eb-phone .eb-vote { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
  html.eb-phone .eb-vote > .eb-display { font-size: 22px; }
  html.eb-phone .eb-vote > .eb-muted { order: 3; font-size: 14px; line-height: 1.2; }
  html.eb-phone .eb-vote-opts { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-right: 3px; }
  html.eb-phone .eb .eb-vote-opt { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px; align-content: center; min-height: 64px; padding: 6px 8px 6px 6px; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }
  html.eb-phone .eb .eb-vote-opt img { grid-column: 1; grid-row: 1 / 3; align-self: stretch; width: 96px; height: 100%; min-height: 48px; aspect-ratio: auto; border-width: 2px; box-sizing: border-box; }
  html.eb-phone .eb .eb-vote-opt i { grid-column: 2; padding: 0; flex-wrap: nowrap; }
  @media (max-width: 359px) {
    html.eb-phone .eb .eb-vote-opt { grid-template-columns: 72px minmax(0, 1fr); }
    html.eb-phone .eb .eb-vote-opt img { width: 72px; }
  }
  html.eb-phone .eb .eb-vote-opt b { font-size: 17px; }
  html.eb-phone .eb .eb-vote-opt span { font-size: 14px; }
  html.eb-phone .eb .eb-vote-opt .eb-vote-about { grid-column: 2; padding: 0; font-size: 13px; line-height: 1.2; }
  html.eb-phone .eb .eb-vote-opt.on .eb-vote-about { color: var(--night); }
  html.eb-phone .eb-qwait-h { font-size: 14px; }
  html.eb-phone .eb-qplay { grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: none; margin-right: 4px; }
  html.eb-phone .eb-qplay .eb-btn { justify-self: stretch; width: 100%; min-height: 52px; font-size: 18px; }
  html.eb-phone .eb-qchat { padding: 12px 14px 14px; gap: 8px; }
  html.eb-phone .eb-qchat-h .eb-display { font-size: 22px; }
  html.eb-phone .eb-qchat-h .eb-muted { font-size: 14px; }
  html.eb-phone .eb-qchat-log { height: 132px; padding: 8px 10px; font-size: 15px; }
  html.eb-phone .eb-qlive-h .eb-display { font-size: 22px; }
  html.eb-phone .eb-qlive-h .eb-muted { font-size: 14px; }
  html.eb-phone .eb-tipcard { margin-right: 3px; }


  html.eb-phone .cg-page { margin-top: 0 !important; }
  html.eb-phone .eb-mk { padding: 14px 16px 18px; gap: 8px; margin-right: 4px; }
  html.eb-phone .eb-mk .eb-btn { width: 100%; min-height: 52px; }
  html.eb-phone .eb-mk > div { margin: 6px 4px 0 2px !important; }
  html.eb-phone .eb-check { font-size: 16px; }
  html.eb-phone .cl-lab { font-size: 15px; }
  html.eb-phone .eb-grp { min-height: 60px; }





  html.eb-phone body:has(.eb-lobby) .lb-phone-only { display: revert !important; }
  html.eb-phone body:has(.eb-lobby) .lb-sheet-h.lb-phone-only { display: flex !important; }
  html.eb-phone body:has(.eb-lobby) .lb-phone-only[hidden] { display: none !important; }

  html.eb-phone body:has(.eb-lobby) .eb-top .eb-logo, html.eb-phone .eb-lobby-invite > span:first-child, html.eb-phone #lb-invite { display: none !important; }
  html.eb-phone .eb-lobby-invite { flex: none; width: auto; margin-left: 0; }
  html.eb-phone .eb-lobby-invite .eb-btn { min-height: 32px; height: 32px; min-width: 0; width: auto; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  html.eb-phone body:has(.eb-lobby) .eb-top .eb-chip:not(.eb-party-open) { min-width: 44px; margin-left: 0; }
  html.eb-phone .eb-lobby-invite .eb-btn > span { position: relative; }
  html.eb-phone .eb-lobby-invite .eb-btn > span::before { content: ""; position: absolute; inset: -14px -12px; }
  html.eb-phone body:has(.eb-lobby) .eb-bar:has(#lb-leave) { display: block; height: 0; padding: 0; }
  html.eb-phone body:has(.eb-lobby) .eb-bar .tip, html.eb-phone body:has(.eb-lobby) .eb-bar .keys > :not(#lb-leave) { display: none; }
  html.eb-phone .eb-lobby { display: flex; flex-direction: column; gap: 14px; margin: 0; }
  html.eb-phone body:has(.eb-lobby :is(.eb-launch, #lb-join, #lb-end):not([hidden])) .eb-screen { padding-bottom: 96px; }
  html.eb-phone .eb-lobby-side { order: 1; gap: 0; }
  html.eb-phone .eb-lobby-teams { order: 2; gap: 10px; }
  html.eb-phone .eb-lobby-game { padding: 10px 12px 12px; gap: 10px; margin-right: 4px; }
  html.eb-phone .eb-lobby-game > * { order: 0 !important; }

  html.eb-phone .lb-sum { gap: 6px; font-size: 15px; }
  html.eb-phone .lb-sum .lb-gcard { border-width: 3px; border-radius: 9px; box-shadow: 3px 3px 0 var(--ink); }
  html.eb-phone .lb-sum .lb-gpic { aspect-ratio: auto; height: 84px; border-bottom-width: 3px; }
  html.eb-phone .lb-sum .lb-gline { padding: 6px 10px 7px; font-size: 14px; }
  html.eb-phone .lb-gpic b { font-size: 24px; -webkit-text-stroke: 5px var(--ink); }
  html.eb-phone .lb-sum .lb-sum-line { display: block; font-size: 15px; }
  html.eb-phone .lb-last { padding: 8px 10px; }
  html.eb-phone .lb-phone-btns { gap: 10px; margin-right: 3px; }
  html.eb-phone .lb-phone-btns .eb-btn { position: relative; flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 6px; font-size: 16px; white-space: nowrap; }
  html.eb-phone .lb-phone-btns #lb-game-open { flex-grow: 1.7; }
  html.eb-phone .lb-badge { position: absolute; top: -8px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; background: var(--red); color: #fff; border: 2px solid var(--ink); border-radius: 6px; font: 900 13px/16px 'Barlow Condensed', system-ui, sans-serif; text-align: center; font-style: normal; }
  html.eb-phone #lb-status { font-size: 16px !important; line-height: 1.2; }

  html.eb-phone .lb-peek { display: flex !important; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 7px; background: rgba(12, 8, 32, .45); font: 700 14px/1.25 'Barlow Condensed', system-ui, sans-serif; color: var(--shell); cursor: pointer; }
  html.eb-phone body:has(.eb-lobby) .lb-peek:empty { display: none !important; }
  html.eb-phone .lb-peek div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.eb-phone .lb-peek div:nth-last-child(n + 4) { display: none; }
  html.eb-phone .lb-peek b { color: var(--muted); margin-right: 4px; } html.eb-phone .lb-peek b.signed-in { color: var(--yolk); }

  html.eb-phone .eb-lobby-game :is(.eb-launch, #lb-join, #lb-end) { position: fixed; z-index: 41; left: max(20px, env(safe-area-inset-left)); right: max(22px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); margin: 0; }
  html.eb-phone .eb-lobby-game .eb-launch { height: 62px; border-width: 4px; box-shadow: 5px 5px 0 var(--ink); }
  html.eb-phone .eb-lobby-game .eb-launch span { font-size: 34px; }
  html.eb-phone .eb-lobby-game :is(#lb-join, #lb-end) { min-height: 56px; font-size: 20px; }
  html.eb-phone .eb-lobby-game:has(#lb-join:not([hidden])):has(#lb-end:not([hidden])) #lb-join { right: 44%; }
  html.eb-phone .eb-lobby-game:has(#lb-join:not([hidden])):has(#lb-end:not([hidden])) #lb-end { left: 60%; font-size: 17px; }
  html.eb-phone .eb-lobby-side:has(:is(.eb-launch, #lb-join, #lb-end):not([hidden]))::after { content: ""; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(104px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(24, 18, 58, 0), var(--night) 44%); pointer-events: none; }

  html.eb-phone .eb-lobby-bar { gap: 8px 10px; }
  html.eb-phone .eb-lobby-bar h1 { font-size: 24px; }
  html.eb-phone #lb-count { font-size: 16px !important; white-space: nowrap; }
  html.eb-phone .eb-lobby-bar { flex-wrap: wrap; align-items: center; }
  html.eb-phone .eb-lobby-bar h1 { flex: none; }
  html.eb-phone .eb-lobby-bar #lb-count { flex: 1 1 0; }

  html.eb-phone .eb-lobby-bar > span[style]:empty { flex: 0 0 100% !important; height: 0; margin: -4px 0; }
  html.eb-phone .eb-lobby-bar .eb-btn { flex: 1 1 0; min-width: 0; padding: 0 8px; white-space: nowrap; }
  html.eb-phone .eb-lobby-bar #lb-friends-open { flex: none; padding: 0 16px; }
  html.eb-phone .eb-lobby-bar .lb-ready-n { flex: 1 1 100%; font-size: 15px; }
  html.eb-phone .eb-team-list { min-height: 0; }
  html.eb-phone .eb-teams { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-right: 4px; }
  html.eb-phone .eb-team { border-width: 3px; box-shadow: 4px 4px 0 var(--ink); }
  html.eb-phone .eb-team-head { min-height: 44px; box-sizing: border-box; padding: 4px 10px 4px 12px; gap: 8px; font-size: 20px; border-bottom-width: 3px; }
  html.eb-phone .eb-team-head .n { white-space: nowrap; }
  html.eb-phone .eb-team-head :is(.lb-start, .lb-start-tag) { margin-left: 2px; font-size: 14px; }
  html.eb-phone .eb-team-head select.lb-start { min-height: 32px; font-size: 16px; }
  html.eb-phone .eb-team-head .eb-mini { position: relative; margin-block: 0; min-height: 34px; padding: 0 14px !important; font-size: 15px !important; border-radius: 7px; }
  html.eb-phone .eb-team-head .eb-mini::before { content: ""; position: absolute; inset: -7px -4px; }
  html.eb-phone .eb-member { min-height: 46px; box-sizing: border-box; padding: 6px 12px; gap: 10px; }
  html.eb-phone .eb-member > svg, html.eb-phone .eb-member > .eb-sdecal { width: 28px !important; height: 28px !important; }
  html.eb-phone .eb-member .nm { font-size: 19px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.eb-phone .eb-member .lb-lv { font-size: 14px; }
  html.eb-phone .eb-member .eb-tag { font-size: 13px; }
  html.eb-phone .eb-member .tools { padding-left: 38px; gap: 8px; }
  html.eb-phone .eb-member .tools .eb-mini { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 7px; }
  html.eb-phone .lb-open-line { padding: 9px 12px; font: italic 700 15px 'Barlow Condensed', system-ui, sans-serif; color: #8E84C4; }
  html.eb-phone .eb-team-list .lb-team-none { padding: 9px 12px; font-size: 15px; }
  html.eb-phone .eb-teams.three .eb-team.watch.lb-team-empty, html.eb-phone .eb-teams.ffa .eb-team.watch.lb-team-empty { display: none; }
  html.eb-phone .eb-teams.ffa .eb-team.all .eb-team-list { grid-template-columns: minmax(0, 1fr); }
  html.eb-phone .lb-rename-box { font-size: 16px; }


  html.eb-phone .eb-lobby-settings, html.eb-phone .eb-lobby-chat, html.eb-phone .lb-games { display: none; }
  html.eb-phone body:is(.lb-rules-open, .lb-games-open)::after { display: none; }
  html.eb-phone body.lb-rules-open .eb-lobby-settings, html.eb-phone body.lb-games-open .lb-games, html.eb-phone body.lb-chat-open .eb-lobby-chat { display: flex; flex-direction: column; position: fixed; z-index: 60; top: calc(43px + env(safe-area-inset-top)); left: 0; right: 0; bottom: 0; width: auto; height: auto; max-height: none; transform: none; box-sizing: border-box; margin: 0; padding: 0 max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); gap: 10px; border: 0; border-radius: 0; box-shadow: none; overflow-y: auto; overscroll-behavior: contain; }
  html.eb-phone :is(.eb-lobby-settings, .lb-games) > h2, html.eb-phone .eb-lobby-chat > .lb-sheet-h { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 0 -16px; padding: 10px 20px 10px 16px; background: var(--panel); border-bottom: 3px solid var(--ink); font-size: 24px; }
  html.eb-phone .lb-sheet-h { justify-content: space-between; }
  html.eb-phone .lb-sheet-x { margin-left: auto; flex: none; min-height: 44px; padding: 0 18px; font-size: 16px; }

  html.eb-phone .eb-lobby-settings > h2 { flex-wrap: wrap; row-gap: 6px; }
  html.eb-phone .eb-lobby-settings > h2 .lb-sheet-x { order: 1; }

  @media (max-width: 359px) {
    html.eb-phone .lb-games > h2.eb-h2 { font-size: 26px; flex-wrap: nowrap; }
    html.eb-phone .lb-games > h2 .lb-sheet-x { padding: 0 12px; font-size: 15px; }
  }
  html.eb-phone .eb-lobby-settings > h2 .lb-game-chip { order: 2; flex: 1 1 100%; }
  html.eb-phone .eb-lobby-settings > h2 #lb-rules-note { order: 3; font-size: 14px; }
  html.eb-phone .eb-lobby-settings > h2 #lb-rules-note:empty { display: none; }
  html.eb-phone .lb-game-chip { gap: 8px; min-width: 0; }
  html.eb-phone .lb-chip-pic { width: 46px; border-width: 2px; }
  html.eb-phone .lb-chip-name { font-size: 18px; }
  html.eb-phone .lb-chip-x { position: relative; font-size: 14px; }
  html.eb-phone .lb-chip-x::before { content: ""; position: absolute; inset: -14px -8px; }

  html.eb-phone :is(.lb-games-h, .lb-rules-h) { font-size: 15px; flex-wrap: wrap; gap: 2px 10px; }
  html.eb-phone .lb-rule-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  html.eb-phone body.lb-rules-open .eb-lobby-settings :is(.eb-setting, .lb-switch) { min-height: 48px; font-size: 16px; gap: 10px; }
  html.eb-phone body.lb-rules-open .eb-lobby-settings .eb-setting { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  html.eb-phone body.lb-rules-open .eb-lobby-settings :is(select, input).eb-input { min-height: 44px; font-size: 16px; }
  html.eb-phone body.lb-rules-open .eb-lobby-settings .st-switch { zoom: 1.4; }
  html.eb-phone .lb-more-rules > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 17px; }
  html.eb-phone .lb-fine > summary { min-height: 44px; display: flex; align-items: center; font-size: 15px; }
  html.eb-phone .lb-code-line { gap: 10px; padding-top: 12px; font-size: 15px; }
  html.eb-phone .lb-code-line .eb-btn { flex: 1 1 auto; }
  html.eb-phone .lb-code-line .eb-input { flex: 1 1 60%; }
  html.eb-phone .lb-fixed { font-size: 15px; }

  html.eb-phone .lb-games-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 4px 6px 0; }
  html.eb-phone .lb-games .lb-gcard { border-width: 3px; border-radius: 9px; box-shadow: 3px 3px 0 var(--ink); }
  html.eb-phone .lb-games .lb-gpic { border-bottom-width: 3px; }
  html.eb-phone .lb-games .lb-gpic b { font-size: 19px; -webkit-text-stroke: 4px var(--ink); }
  html.eb-phone .lb-games .lb-gline { padding: 6px 9px 8px; font-size: 14px; line-height: 1.2; }
  html.eb-phone .lb-games-note { font-size: 14px; line-height: 1.25; }
  html.eb-phone .lb-picked { font-size: 12px; padding: 1px 7px; }

  html.eb-phone body.lb-chat-open .eb-lobby-chat { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  html.eb-phone body.lb-chat-open .eb-lobby-chat .eb-chatlog { flex: 1; height: auto; min-height: 0; font-size: 16px; }
  html.eb-phone #lb-chatform { gap: 8px !important; padding-right: 4px; }


  html.eb-phone .eb-signin { gap: 16px; margin-top: 0; }
  html.eb-phone .eb-signin-main { padding: 16px 16px 20px; gap: 12px; margin-right: 4px; }
  html.eb-phone .eb-signin .eb-signin-main h1 { font-size: 40px; line-height: 1; }
  html.eb-phone .eb-signin-main > .eb-muted, html.eb-phone .eb-signin-main p, html.eb-phone .sl-sub { font-size: 16px; line-height: 1.25; }
  html.eb-phone .eb-signin-main .eb-signin-small { font-size: 14px; }
  html.eb-phone .eb-signin-keeps { font-size: 16px; }
  html.eb-phone .eb-signin-btns { gap: 12px; margin-right: 4px; }
  html.eb-phone .eb :is(.eb-google, .eb-discordin) { min-height: 56px; padding: 0 14px; font-size: 20px; }
  html.eb-phone .eb .eb-guestbtn { align-self: stretch; margin-right: 4px; font-size: 17px; white-space: nowrap; }
  html.eb-phone .eb-testsignin h2 { font-size: 20px; }
  html.eb-phone .sl-perks { padding: 16px 16px 18px; gap: 12px; margin-right: 4px; }
  html.eb-phone .sl-perks h2 { font-size: 22px; }
  html.eb-phone .eb-signin-perks.sl-perks ul { gap: 12px; }
  html.eb-phone .eb-signin-perks.sl-perks li { gap: 12px; }
  html.eb-phone .sl-perks li img { width: 52px; height: 52px; }
  html.eb-phone .sl-perks li span { font-size: 15px; }
  html.eb-phone .eb-signin-perks.sl-perks li b { font-size: 19px; }
  html.eb-phone .sl-free { font-size: 14px; padding-top: 12px; }


  html.eb-phone .wl-cols { display: flex; flex-direction: column; gap: 10px; }
  html.eb-phone .wl-left { display: contents; }
  html.eb-phone .wl-left > .eb-btn[type="submit"] { order: 2; margin-top: 10px !important; }
  html.eb-phone .wl-plate { order: 1; margin-top: 8px; }
  html.eb-phone .eb-bigname { font-size: 22px; min-height: 52px; }
  html.eb-phone .eb .eb-dice { min-width: 52px; padding: 0 12px; }
  html.eb-phone .eb-dice svg { width: 28px; height: 28px; }
  html.eb-phone .eb-wl-check { min-height: 20px; font-size: 15px; }
  html.eb-phone .wl-left > .eb-muted { font-size: 15px; }
  html.eb-phone .wl-left > .eb-btn { align-self: stretch !important; min-height: 56px; margin: 4px 4px 0 2px; font-size: 22px; }
  html.eb-phone .wl-cap { font-size: 15px; }
  html.eb-phone .wl-plate-card { grid-template-columns: 56px minmax(0, 1fr); gap: 2px 14px; padding: 12px 16px; margin-right: 4px; }
  html.eb-phone .wl-plate-card img { width: 56px; height: 56px; }
  html.eb-phone .wl-plate-card .wl-tag { font-size: 24px; }
  html.eb-phone .wl-plate-sub { font-size: 14px; }



  html.eb-phone .eb-first { grid-template-columns: minmax(0, 1fr); justify-items: stretch; align-content: center; gap: 6px; margin: 0; min-height: calc(100dvh - 190px); }
  html.eb-phone .eb-first-art { order: -1; justify-self: center; }
  html.eb-phone .eb-first-art .mascot { width: min(46vw, 26dvh); max-width: none; }
  html.eb-phone .eb-first-pitch { gap: 14px; align-items: stretch; }
  html.eb-phone .eb-first-free { align-self: flex-start; font-size: 14px; padding: 4px 12px; }
  html.eb-phone .eb-first h1 { font-size: min(13vw, 56px); }
  html.eb-phone .eb-first-line { max-width: none; font-size: 18px; }
  html.eb-phone .eb-first-row { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 12px; margin: 6px 4px 0 2px; }
  html.eb-phone .eb .eb-first-go { min-height: 66px; padding: 0 20px; font-size: 36px; }
  html.eb-phone .eb-first-warm { text-align: center; white-space: normal; font-size: 16px; }
  html.eb-phone .eb-first-warm br { display: none; }
  html.eb-phone .eb-first-warm b { font-size: 17px; }
}
