/* The game hub: forged metal, full-art cards and controls sized for thumbs. */
.game-shell {
  --shell-ink: #0d1013;
  --shell-metal: #1c2022;
  --shell-bronze: #a47d4e;
  --shell-bronze-light: #e4c18a;
  --shell-ivory: #f1e8d8;
  --shell-muted: #aca99f;
  --shell-cyan: #86c6ce;
  font-family: var(--font-ui, Arial, sans-serif);
  background: radial-gradient(ellipse at 80% 0, #75563713, transparent 55%), #101316;
  color: var(--shell-ivory);
  min-width: 0;
}
.game-shell .game-header {
  height: 72px;
  padding: 0 max(28px, env(safe-area-inset-left, 0px));
  gap: 24px;
  align-items: center;
  background: linear-gradient(180deg, #212527f5, #111518fc);
  border-bottom: 1px solid #ad865843;
  box-shadow: 0 8px 28px #0005, inset 0 1px #f2dfb712;
  z-index: 40;
}
.game-shell .game-wordmark {
  min-height: 44px;
  gap: 10px;
  font-family: var(--font-display, 'Arial Narrow', sans-serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #f0e1c5;
  text-shadow: 0 2px 0 #000, 0 0 20px #d7af7040;
}
.game-shell .game-mark { color: #d4ad70; font-size: 39px; text-shadow: 0 0 18px #c7944e40; }
.game-shell .game-nav { height: 100%; gap: 0; }
.game-shell .game-nav .nav-item {
  color: #b2b3af;
  font-family: var(--font-display, 'Arial Narrow', sans-serif);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 0 14px;
  min-height: 44px;
  gap: 7px;
}
.game-shell .game-nav .nav-item.active { color: #eed7ac; background: linear-gradient(0deg, #a47d4e24, transparent 80%); }
.game-shell .game-nav .nav-item.active::before { background: #d7b57c; box-shadow: 0 0 15px #d7a65465; }
.game-shell .game-player { gap: 7px; min-width: 0; }
.game-shell .game-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  max-width: 170px;
  padding: 0 8px 0 0;
  color: var(--shell-ivory);
  background: transparent;
  text-align: left;
}
.game-profile-seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 40px;
  border: 1px solid #b78b51;
  border-bottom-width: 3px;
  background: linear-gradient(145deg, #544734, #252828 60%, #0e1215);
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  font-family: var(--font-display, 'Arial Narrow', sans-serif);
  font-size: 16px;
  letter-spacing: 1px;
  color: #e2c28e;
}
.game-profile-seal .icon { width: 20px; height: 20px; }
.game-profile-copy { display: block; min-width: 0; }
.game-profile-copy strong { display: block; max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.game-profile-copy small { display: block; margin-top: 5px; color: #aaa99f; font-size: 8px; letter-spacing: .35px; text-transform: uppercase; }
.game-profile-copy i { font-style: normal; color: #8a724f; margin: 0 3px; }
.game-shell .game-wallet { border: 1px solid #a27d485c; border-radius: 2px; background: linear-gradient(145deg, #51412b55, #181c1e); color: #e7c88f; gap: 7px; padding: 0 10px; min-width: 58px; min-height: 44px; font-variant-numeric: tabular-nums; }
.game-shell .game-settings { width: 44px; height: 44px; border: 1px solid #c7b18b26; border-radius: 2px; color: #bdb8aa; background: #ffffff03; }
.game-shell .game-settings:hover { color: #ecd3a7; border-color: #c19b61; }
.game-shell .game-more > summary { min-height: 44px; min-width: 44px; padding: 0 8px; color: #c0b9aa; gap: 5px; border-radius: 2px; font-size: 11px; }
.game-shell .game-more > summary > span { margin: 0; }
.game-shell .game-more[open] > summary, .game-shell .game-more.has-current-page > summary { background: #aa824923; border: 1px solid #bd945645; color: #ecd3a7; }
.game-shell .game-more-menu { top: calc(100% + 9px); min-width: 216px; max-width: calc(100vw - 24px); padding: 6px; background: linear-gradient(135deg, #2d2c27, #171b1d 65%); border: 1px solid #95784f; border-radius: 2px; box-shadow: 0 14px 38px #000b, inset 0 0 0 3px #ffffff04; }
.game-shell .game-more-menu .nav-item { color: #d2cabc; border-radius: 0; min-height: 48px; font-size: 13px; }
.game-shell .game-more-menu .nav-item.active { color: #f1d6a3; background: #c39a5828; }
.game-shell .game-more-menu .nav-item:hover { background: #ffffff08; }
.game-shell .game-main { max-width: 1530px; margin: 0 auto; min-height: calc(100svh - 72px); }
.game-shell.is-lobby .game-main { max-width: none; }
.game-shell.is-guest { --mobile-nav-height: 0px; }
.game-shell.is-guest .game-header { justify-content: center; }
.game-shell.is-guest .game-main { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

.game-shell .game-lobby { min-height: calc(100svh - 72px); overflow: hidden; isolation: isolate; }
.game-shell .lobby-scenery { background-image: var(--lobby-art); background-size: cover; background-position: 63% 40%; filter: saturate(.62) brightness(.7); }
.game-shell .game-lobby::before { background: linear-gradient(90deg, #0d1114ef 0%, #11141690 42%, #0e121335 70%, #101416c9), linear-gradient(0deg, #0e1114fc 0%, #10151977 25%, #11141833 70%); }
.game-shell .game-lobby::after { background: radial-gradient(ellipse at 70% 30%, #d6ab6415, transparent 50%); }
.game-shell .lobby-core { flex: 1; max-width: 1200px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto auto; align-content: center; align-items: start; gap: 14px 72px; padding: 26px 46px 23px; min-height: 510px; }
.lobby-heading { grid-column: 1; grid-row: 1; align-self: end; padding-top: 3px; }
.game-shell .lobby-kicker { color: #c0ac8b; font-size: 8px; letter-spacing: 2.4px; font-weight: 650; gap: 9px; }
.game-shell .lobby-kicker > span { width: 21px; background: #b68e58; }
.lobby-heading h1 { font-family: var(--font-display, 'Arial Narrow', sans-serif); font-size: clamp(70px, 7vw, 100px); font-weight: 850; line-height: .93; letter-spacing: 1px; margin: 11px 0 0; color: #f1e5d1; text-shadow: 0 3px 0 #0008, 0 8px 26px #0007; }
.lobby-heading-rule { display: block; width: 90px; height: 2px; margin-top: 18px; background: linear-gradient(90deg, #b99358, #b9935800); }
.game-shell .lobby-command { grid-column: 1; grid-row: 2; max-width: none; width: 100%; padding: 0; }
.lobby-standing { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; min-height: 54px; padding: 0; background: transparent; color: var(--shell-ivory); border: 0; }
.lobby-standing-emblem { display: grid; place-items: center; height: 39px; width: 35px; flex: none; color: #c4a16d; background: linear-gradient(145deg, #94734435, #151b1e); border: 1px solid #9777466b; clip-path: polygon(50% 0, 100% 15%, 93% 77%, 50% 100%, 7% 77%, 0 15%); }
.lobby-standing-emblem .icon { width: 21px; height: 21px; }
.lobby-standing > span:nth-child(2) { display: grid; gap: 2px; }
.lobby-standing > span > small { font-size: 7px; letter-spacing: 1.2px; color: #a3a49d; }
.lobby-standing strong { font-family: var(--font-display, 'Arial Narrow', sans-serif); font-size: 23px; font-weight: 650; letter-spacing: .5px; text-transform: uppercase; }
.lobby-standing > b { margin-left: auto; font-family: var(--font-display, 'Arial Narrow', sans-serif); font-size: 30px; font-weight: 650; font-variant-numeric: tabular-nums; }
.lobby-standing > b > small { display: inline; margin-left: 5px; font-family: var(--font-ui, Arial, sans-serif); font-size: 9px; color: #aca89d; }
.lobby-standing > .icon { width: 13px; height: 13px; margin-left: 3px; color: #b99b6d; }
.lobby-streak { display: inline-flex; align-items: center; gap: 3px; margin-left: 3px; color: #d7b473; font-size: 13px; }
.lobby-streak .icon { height: 14px; width: 14px; }
.game-shell .lobby-mode { display: flex; justify-content: space-between; flex-wrap: nowrap; margin: 12px 1px 0; gap: 8px; font-size: 8px; letter-spacing: 1.4px; color: #999f9e; }
.game-shell .lobby-mode > span:first-child { color: #d5c3a3; }
.game-shell .lobby-mode .icon { width: 12px; height: 12px; }
.game-shell .lobby-play { position: relative; isolation: isolate; max-width: none; width: 100%; min-height: 74px; margin: 9px 0 0; gap: 18px; padding: 0 25px; border: 1px solid #edcd93; border-bottom: 5px solid #72552e; border-radius: 0; background: linear-gradient(105deg, #bb8c49 0%, #e5c68a 42%, #cba15d 73%, #ae7f40); box-shadow: 0 7px 0 #0a0c0e, 0 12px 34px #0009, inset 0 2px #fff3c3ba, inset 0 0 0 4px #69451b2c; color: #181713; clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px); font-family: var(--font-display, 'Arial Narrow', sans-serif); font-size: 34px; font-weight: 850; letter-spacing: 2px; text-shadow: 0 1px #fce1a270; transition: filter .18s, transform .18s; }
.game-shell .lobby-play::before { content: ''; position: absolute; z-index: -1; inset: 4px; border: 1px solid #ffeeab62; clip-path: inherit; background: repeating-linear-gradient(105deg, transparent 0 12px, #ffffff04 13px 14px); pointer-events: none; }
.game-shell .lobby-play > .icon:first-child { width: 29px; height: 29px; }
.game-shell .lobby-play > .icon:last-child { width: 21px; height: 21px; margin-left: auto; }
.game-shell .lobby-play:hover { background: linear-gradient(105deg, #c49654, #efd29a 42%, #d5ac6a 73%, #b88746); transform: translateY(-1px); }
.game-shell .lobby-play:active { transform: translateY(2px); }
.game-shell .lobby-play:focus-visible { outline: 2px solid #1c1a14; outline-offset: -9px; }
.lobby-quick-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.game-shell .lobby-quick-modes > button { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 63px; margin: 0; padding: 10px; background: linear-gradient(120deg, #303230e8, #1d2325e8); border: 1px solid #bda87d38; border-top-color: #c8b68c56; border-radius: 2px; color: #d7cfc0; text-align: left; box-shadow: inset 0 1px #ffffff04, 0 5px 10px #0003; }
.game-shell .lobby-quick-modes > button > .icon:first-child { flex: none; width: 20px; height: 20px; color: #c3a471; }
.game-shell .lobby-quick-modes > button > span { min-width: 0; }
.game-shell .lobby-quick-modes strong { display: block; font-family: var(--font-display, 'Arial Narrow', sans-serif); font-size: 16px; font-weight: 650; letter-spacing: .5px; }
.game-shell .lobby-quick-modes small { display: block; margin-top: 3px; font-size: 8px; line-height: 1.4; color: #a9ada7; }
.game-shell .lobby-quick-modes > button > .icon:last-child { width: 11px; height: 11px; flex: none; margin-left: auto; color: #8d8d80; }
.game-shell .lobby-quick-modes > button:hover { border-color: #b59865; background: linear-gradient(120deg, #3c3b33ed, #252b2c); }
.lobby-pack-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; margin-top: 14px; padding: 8px 11px 8px 0; color: #ddd4c2; background: transparent; border-top: 1px solid #b8a37a35; border-bottom: 1px solid #b8a37a16; text-align: left; }
.lobby-pack-icon { position: relative; display: grid; place-items: center; width: 39px; height: 41px; flex: none; color: #baa078; background: linear-gradient(140deg, #7a634431, #192023); border: 1px solid #8c724b6b; transform: rotate(-5deg); }
.lobby-pack-icon .icon { width: 23px; height: 23px; }
.lobby-pack-link.has-pack .lobby-pack-icon { border-color: #e8bf75; color: #f0d5a3; box-shadow: 0 0 18px #deb77522; }
.lobby-pack-link > span:nth-child(2) { min-width: 0; }
.lobby-pack-link small { display: block; color: #9b9f98; font-size: 7px; letter-spacing: 1.35px; margin-bottom: 5px; }
.lobby-pack-link strong { display: block; font-size: 12px; font-weight: 600; }
.lobby-pack-link.has-pack small { color: #d4b47d; }
.lobby-pack-link > .icon { width: 16px; height: 16px; margin-left: auto; color: #b4a385; }
.game-shell .lobby-secondary-actions { display: flex; max-width: none; width: 100%; min-height: 44px; font-size: 9px; color: #868e8c; gap: 8px; }
.game-shell .lobby-secondary-actions button, .game-shell .lobby-secondary-actions button[data-nav="guide"] { display: inline-flex; min-height: 44px; font-size: 10px; color: #b1aea1; gap: 6px; }
.game-shell .lobby-secondary-actions .icon { width: 13px; height: 13px; }

.game-shell .lobby-arsenal { display: block; grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: center; padding: 0; width: 100%; max-width: 520px; min-width: 0; }
.game-shell .lobby-card-fan { display: block; position: relative; max-width: none; height: 370px; margin: 0 0 4px; perspective: 1100px; }
.game-shell .lobby-display-card { --shell-card-accent: var(--race-color, #b89b65); position: absolute; display: block; width: 185px; height: 276px; padding: 0; top: 49px; border: 2px solid #8a6c42; border-bottom: 5px solid #705330; border-radius: 7px 7px 4px 4px; background: #1d2020; text-align: left; overflow: hidden; color: #f4e5cb; box-shadow: 3px 5px 0 #20190f, 5px 7px 0 #aa83523b, 0 20px 25px #0009; transition: translate .22s, filter .22s; }
.game-shell .lobby-display-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #05070935, transparent 25%, transparent 40%, #090c0fa8 68%, #090d0f 93%); pointer-events: none; }
.game-shell .lobby-display-card::after { content: ''; position: absolute; inset: 4px; z-index: 3; border: 1px solid #d5bb806b; border-radius: 3px; box-shadow: inset 0 0 0 1px #161813b3, inset 0 0 18px #0002; pointer-events: none; }
.game-shell .lobby-display-card .portrait { width: 100%; height: 100%; object-fit: cover; object-position: center 23%; filter: saturate(.8) brightness(.87); background-size: 500% 100%; }
.game-shell .lobby-display-card-0 { left: 2%; transform: rotate(-13deg) translateZ(-30px); z-index: 1; }
.game-shell .lobby-display-card-1 { left: calc(50% - 119px); top: 9px; width: 238px; height: 338px; transform: none; z-index: 3; border-color: #c0a071; box-shadow: 3px 5px 0 #211a12, 5px 7px 0 #b7965a70, 0 24px 36px #000c, 0 0 40px #dcaa5224; }
.game-shell .lobby-display-card-1 .portrait { filter: saturate(.98) brightness(1.02); }
.game-shell .lobby-display-card-2 { right: 2%; left: auto; transform: rotate(13deg) translateZ(-30px); z-index: 2; }
.lobby-card-crest { position: absolute; z-index: 2; top: 10px; left: 10px; display: grid; place-items: center; width: 32px; height: 35px; font-size: 21px; color: var(--shell-card-accent); background: linear-gradient(135deg, #3a3730e8, #111718eb); border: 1px solid #b298657b; clip-path: polygon(50% 0, 100% 15%, 92% 78%, 50% 100%, 8% 78%, 0 15%); }
.game-shell .lobby-card-stars { top: 14px; right: 12px; z-index: 2; color: #efd095; font-size: 13px; text-shadow: 0 2px 2px #000; }
.game-shell .lobby-card-stars .star-pips { filter: drop-shadow(0 2px 3px #000); }
.game-shell .lobby-card-name { z-index: 2; inset: auto 8px 53px; padding: 0 4px; background: none; text-align: center; }
.game-shell .lobby-card-name small { font-size: 7px; letter-spacing: 1.3px; margin-bottom: 5px; color: #d4b986; }
.game-shell .lobby-card-name .race-badge { justify-content: center; gap: 4px; font-size: 8px; }
.game-shell .lobby-card-name .race-emblem { width: 12px; height: 12px; }
.game-shell .lobby-card-name strong { font-family: var(--font-display, 'Arial Narrow', sans-serif); font-size: 20px; font-weight: 750; text-transform: uppercase; line-height: 1.05; letter-spacing: .3px; color: #f7e9d2; text-shadow: 0 2px 4px #000; }
.game-shell .lobby-display-card-1 .lobby-card-name strong { font-size: 26px; }
.lobby-card-stats { position: absolute; z-index: 2; inset: auto 11px 9px; display: flex; align-items: center; justify-content: space-between; gap: 6px; border-top: 1px solid #b49b653c; padding: 6px 3px 0; }
.lobby-card-stats > span { display: grid; grid-template-columns: 14px auto; align-items: center; gap: 0 4px; min-width: 39px; }
.lobby-card-stats .icon { width: 14px; height: 14px; color: #d9ad6b; }
.lobby-card-stats b { font-family: var(--font-display, 'Arial Narrow', sans-serif); font-size: 25px; line-height: .95; font-weight: 800; color: #f3dfb7; }
.lobby-card-stats small { grid-column: 1 / 3; text-align: center; font-size: 7px; letter-spacing: .6px; color: #c5b99f; margin-top: 3px; }
.lobby-card-stats [data-stat-kind="damage"] .icon { color: #d5947d; }
.lobby-card-stats [data-stat-kind="damage"] b { color: #f0bea1; }
.lobby-fan-orbit { position: absolute; inset: auto 4% 0; height: 110px; border: 1px solid #cca65c32; border-radius: 50%; transform: rotateX(64deg); box-shadow: 0 0 0 8px #c4a76506, inset 0 0 35px #77aeb10d; background: radial-gradient(ellipse, #9fc2c617, #9fc2c600 66%); }
.game-shell .lobby-fan-glow { width: 310px; left: calc(50% - 155px); bottom: 18px; height: 22px; background: #82bbc725; filter: blur(19px); }
.game-shell .lobby-deck { display: flex; align-items: center; width: 100%; min-height: 79px; padding: 11px 15px; gap: 12px; border: 1px solid #aa895846; border-top-color: #bb9a635e; border-bottom: 3px solid #0a0d0f; border-radius: 2px; background: linear-gradient(110deg, #31322edb, #1b2225e8 48%, #292b25f0); box-shadow: inset 0 1px #ebd6af14, 0 10px 22px #0006; }
.game-shell .lobby-deck:hover { border-color: #c3a572; background: linear-gradient(110deg, #3b3b31, #222b2d 48%, #33342a); }
.game-shell .lobby-deck-seal { display: grid; place-items: center; flex: none; width: 35px; color: var(--race-color, #c3a471); font-size: 29px; }
.game-shell .lobby-deck-info { min-width: 0; flex: 1; }
.game-shell .lobby-deck-info > small { display: block; font-size: 7px; letter-spacing: 1.5px; color: #a7ada6; }
.game-shell .lobby-deck-info > strong { margin: 3px 0 4px; font-family: var(--font-display, 'Arial Narrow', sans-serif); font-size: 23px; font-weight: 650; letter-spacing: .3px; line-height: 1.05; color: #e8dfcb; overflow-wrap: anywhere; }
.game-shell .lobby-deck-info > span { display: block; font-size: 8px; line-height: 1.4; color: #a4aaa5; }
.game-shell .lobby-deck-info i { margin: 0 2px; }
.lobby-deck-budget { display: flex; align-items: center; flex: none; gap: 4px; color: #ddbb7c; }
.lobby-deck-budget b { font-family: var(--font-display, 'Arial Narrow', sans-serif); font-size: 28px; font-weight: 600; line-height: 1; }
.lobby-deck-budget b > small { font-size: 15px; color: #9a9484; }
.lobby-deck-budget > span { font-size: 14px; }
.game-shell .lobby-deck-edit { display: grid; place-items: center; flex: none; width: 11px; min-width: 0; padding: 0; color: #a79a7b; }
.game-shell .lobby-deck-edit .icon { width: 12px; height: 12px; }
.game-shell .lobby-lineages { display: block; width: calc(100% - 92px); max-width: 1108px; margin: 0 auto; padding: 0 0 21px; border-top: 1px solid #a3947033; }
.game-shell .lobby-lineages-label { margin: 0; min-height: 38px; }
.game-shell .lobby-lineages-label > span { font-size: 7px; letter-spacing: 1.8px; color: #8f968f; }
.game-shell .lobby-lineages-label button { min-height: 44px; color: #b9ab8f; font-size: 10px; }
.game-shell .lobby-race-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.game-shell .lobby-race { display: flex; align-items: center; text-align: left; min-height: 45px; gap: 9px; padding: 0; background: transparent; color: #bbb9ab; }
.game-shell .lobby-race-portrait { flex: none; width: 31px; height: 38px; border: 1px solid #a58b5c4a; border-radius: 1px; }
.game-shell .lobby-race-portrait .portrait { filter: saturate(.65); }
.game-shell .lobby-race > strong { min-width: 0; font-size: 10px; font-weight: 500; }
.game-shell .lobby-race .race-badge { font-size: 10px; gap: 4px; }
.game-shell .lobby-race > .icon { display: block; width: 11px; height: 11px; margin-left: auto; color: #8b897b; }
.game-shell .lobby-mobile-lineages { display: none; }
.game-shell :is(.game-profile, .game-wallet, .game-settings, .lobby-standing, .lobby-quick-modes > button, .lobby-pack-link, .lobby-deck, .lobby-display-card):focus-visible { outline: 2px solid #ecd3a1; outline-offset: 3px; }
.game-shell .lobby-display-card:focus-visible { z-index: 5; translate: 0 -5px; }

@media (hover: hover) and (pointer: fine) {
  .game-shell .lobby-display-card:hover { translate: 0 -8px; filter: brightness(1.08); }
  .game-shell .lobby-display-card-0:hover, .game-shell .lobby-display-card-2:hover { z-index: 4; }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .game-shell .game-header { gap: 14px; padding: 0 20px; }
  .game-shell .game-wordmark { font-size: 24px; letter-spacing: 2px; }
  .game-shell .game-nav .nav-item { padding: 0 9px; font-size: 13px; }
  .game-shell .game-profile { padding-right: 0; }
  .game-profile-copy, .game-more-label { display: none; }
  .game-shell .game-player { gap: 4px; }
  .game-shell .lobby-core { padding: 26px 34px 20px; gap: 12px 35px; }
  .game-shell .lobby-quick-modes > button { gap: 6px; padding: 9px 7px; }
  .game-shell .lobby-quick-modes > button > .icon:last-child { display: none; }
  .game-shell .lobby-lineages { width: calc(100% - 68px); }
  .game-shell .lobby-display-card { width: 153px; height: 235px; top: 62px; }
  .game-shell .lobby-display-card-1 { width: 202px; height: 294px; top: 27px; left: calc(50% - 101px); }
  .game-shell .lobby-card-fan { height: 345px; }
  .game-shell .lobby-card-name strong { font-size: 18px; }
  .game-shell .lobby-display-card-1 .lobby-card-name strong { font-size: 22px; }
}
@media (max-width: 700px) {
  .game-shell { --mobile-nav-height: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .game-shell .game-header { height: auto; min-height: calc(58px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); gap: 8px; }
  .game-shell .game-wordmark { font-size: 23px; letter-spacing: 2px; gap: 6px; height: 58px; min-height: 44px; }
  .game-shell .game-wordmark .game-mark { font-size: 34px; }
  .game-shell .game-player { gap: 2px; }
  .game-shell .game-profile { flex: none; padding: 0; width: 44px; height: 44px; justify-content: center; }
  .game-shell .game-profile-copy { display: none; }
  .game-profile-seal { width: 31px; height: 34px; font-size: 13px; }
  .game-shell .game-wallet { min-width: 44px; padding: 0 6px; gap: 4px; font-size: 11px; max-width: 84px; overflow: hidden; }
  .game-shell .game-wallet .icon { width: 13px; height: 13px; flex: none; }
  .game-shell .game-wallet b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .game-shell .game-settings { width: 44px; height: 44px; background: transparent; border-color: transparent; }
  .game-shell .game-settings .icon { width: 18px; height: 18px; }
  .game-shell .game-more > summary { min-width: 44px; padding: 0; gap: 0; }
  .game-shell .game-more-label { display: none; }
  .game-shell .game-more > summary > span { font-size: 17px; letter-spacing: 2px; }
  .game-shell .game-more-menu { right: -43px; }
  .game-shell .game-main { min-height: calc(100dvh - 58px); padding: 22px max(16px, env(safe-area-inset-right, 0px)) calc(var(--mobile-nav-height) + 24px) max(16px, env(safe-area-inset-left, 0px)); }
  .game-shell.is-guest .game-main { min-height: calc(100dvh - 58px - env(safe-area-inset-top, 0px)); }
  .game-shell.is-lobby .game-main { padding: 0 0 calc(var(--mobile-nav-height) + 10px); }
  .game-shell .game-lobby { min-height: calc(100dvh - 58px - var(--mobile-nav-height) - 10px); overflow: hidden; }
  .game-shell .lobby-scenery { background-size: auto 800px; background-position: 56% 0; filter: saturate(.63) brightness(.75); }
  .game-shell .game-lobby::before { background: linear-gradient(180deg, #0d121354, #10171805 22%, #0f15198c 48%, #0e1317f5 75%), linear-gradient(90deg, #0c101960, #16212406 48%, #0c101945); }
  .game-shell .lobby-core { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 0; min-height: 0; width: 100%; padding: 14px max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px)); }
  .lobby-heading { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 5px; }
  .lobby-heading h1 { order: -1; margin: 0; font-size: 37px; line-height: 1; letter-spacing: 1.5px; }
  .game-shell .lobby-kicker { font-size: 6px; letter-spacing: 1.1px; max-width: 135px; text-align: right; justify-content: flex-end; line-height: 1.8; color: #bcb19a; }
  .game-shell .lobby-kicker > span { width: 15px; flex: none; }
  .lobby-heading-rule { display: none; }
  .game-shell .lobby-arsenal { display: block; grid-column: 1; grid-row: 2; max-width: 450px; width: 100%; padding: 0; }
  .game-shell .lobby-card-fan { --hero-w: clamp(176px, 46vw, 204px); --hero-h: calc(var(--hero-w) * 1.44); display: block; height: calc(var(--hero-h) + 31px); margin: 0 0 -4px; }
  .game-shell .lobby-display-card { width: calc(var(--hero-w) * .85); height: calc(var(--hero-h) * .86); top: 29px; border-width: 2px; border-bottom-width: 4px; border-radius: 5px 5px 3px 3px; }
  .game-shell .lobby-display-card-0 { left: calc(50% - var(--hero-w) * 1.01); transform: rotate(-12deg) translateZ(-16px); }
  .game-shell .lobby-display-card-1 { top: 6px; width: var(--hero-w); height: var(--hero-h); left: calc(50% - var(--hero-w) / 2); transform: none; }
  .game-shell .lobby-display-card-2 { right: calc(50% - var(--hero-w) * 1.01); left: auto; transform: rotate(12deg) translateZ(-16px); }
  .game-shell .lobby-display-card .portrait { object-position: center 23%; }
  .lobby-card-crest { top: 8px; left: 8px; width: 25px; height: 28px; font-size: 17px; }
  .game-shell .lobby-card-stars { top: 10px; right: 9px; }
  .game-shell .lobby-card-stars .star-pips { --star-size: 10px; gap: 1px; }
  .game-shell .lobby-card-name { inset: auto 6px 44px; padding: 0 2px; }
  .game-shell .lobby-card-name small { margin-bottom: 3px; }
  .game-shell .lobby-card-name .race-badge { font-size: 8px; gap: 3px; }
  .game-shell .lobby-card-name .race-emblem { width: 10px; height: 10px; }
  .game-shell .lobby-card-name strong { font-size: 16px; line-height: 1.03; }
  .game-shell .lobby-display-card-1 .lobby-card-name strong { font-size: 20px; }
  .lobby-card-stats { inset: auto 9px 8px; padding: 4px 2px 0; }
  .lobby-card-stats b { font-size: 22px; }
  .lobby-card-stats > span { grid-template-columns: 12px auto; min-width: 32px; gap: 0 3px; }
  .lobby-card-stats .icon { width: 12px; height: 12px; }
  .lobby-card-stats small { font-size: 7px; margin-top: 2px; }
  .lobby-fan-orbit { height: 75px; bottom: 1px; }
  .game-shell .lobby-fan-glow { bottom: 13px; width: 240px; left: calc(50% - 120px); }
  .game-shell .lobby-deck { min-height: 67px; padding: 8px 11px; gap: 9px; }
  .game-shell .lobby-deck-seal { display: grid; width: 27px; font-size: 24px; }
  .game-shell .lobby-deck-info > small { font-size: 8px; letter-spacing: 1px; }
  .game-shell .lobby-deck-info > strong { font-size: 21px; margin: 3px 0; }
  .game-shell .lobby-deck-info > span { font-size: 9px; }
  .lobby-deck-budget b { font-size: 25px; }
  .lobby-deck-budget b > small { font-size: 13px; }
  .lobby-deck-budget > span { font-size: 12px; }
  .game-shell .lobby-command { grid-column: 1; grid-row: 3; padding: 0; margin-top: 10px; }
  .lobby-standing { min-height: 44px; gap: 8px; padding: 0 2px; }
  .lobby-standing-emblem { width: 26px; height: 30px; }
  .lobby-standing-emblem .icon { width: 17px; height: 17px; }
  .lobby-standing > span:nth-child(2) { display: flex; flex-direction: row-reverse; align-items: baseline; gap: 7px; }
  .lobby-standing strong { font-size: 20px; }
  .lobby-standing > span > small { font-size: 8px; letter-spacing: .7px; }
  .lobby-standing > b { font-size: 26px; }
  .lobby-standing > b > small { font-size: 8px; }
  .game-shell .lobby-mode { margin: 5px 1px 0; font-size: 7px; letter-spacing: 1px; }
  .game-shell .lobby-play { min-height: 65px; font-size: 32px; margin-top: 8px; padding: 0 22px; gap: 16px; }
  .game-shell .lobby-play > .icon:first-child { width: 27px; height: 27px; }
  .lobby-quick-modes { gap: 8px; margin-top: 12px; }
  .game-shell .lobby-quick-modes > button { min-height: 58px; padding: 9px 10px; gap: 7px; }
  .game-shell .lobby-quick-modes strong { font-size: 15px; }
  .game-shell .lobby-quick-modes small { font-size: 9px; }
  .game-shell .lobby-quick-modes > button > .icon:first-child { width: 18px; height: 18px; }
  .game-shell .lobby-quick-modes > button > .icon:last-child { display: none; }
  .lobby-pack-link { min-height: 53px; margin-top: 10px; padding: 6px 6px 6px 0; gap: 10px; }
  .lobby-pack-icon { width: 31px; height: 35px; }
  .lobby-pack-icon .icon { width: 20px; height: 20px; }
  .lobby-pack-link small { font-size: 8px; margin-bottom: 4px; }
  .lobby-pack-link strong { font-size: 11px; }
  .game-shell .lobby-secondary-actions { min-height: 44px; font-size: 8px; }
  .game-shell .lobby-secondary-actions button, .game-shell .lobby-secondary-actions button[data-nav="guide"] { display: inline-flex; font-size: 9px; min-height: 44px; }
  .game-shell .lobby-lineages { display: none; }
  .game-shell .lobby-mobile-lineages { display: block; margin: 0 max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px)); border-top: 1px solid #a7916640; }
  .game-shell .lobby-mobile-lineages > summary { min-height: 44px; padding: 6px 0; font-size: 10px; color: #b8b09d; }
  .game-shell .lobby-mobile-lineages > summary .icon { width: 14px; height: 14px; }
  .game-shell .lobby-mobile-lineages .lobby-race-list { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .game-shell .lobby-mobile-lineages .lobby-race { min-height: 50px; padding: 6px 10px; border: 1px solid #ad915333; border-radius: 1px; background: #252b28b8; gap: 10px; }
  .game-shell .lobby-mobile-lineages .lobby-race-portrait { width: 28px; height: 34px; }
  .game-shell .lobby-mobile-lineages .lobby-race .race-badge { font-size: 11px; }
  .game-shell .lobby-explore-collection { color: #d9c397; font-size: 11px; }
  .game-shell .game-mobile-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; height: var(--mobile-nav-height); padding: 6px max(7px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(7px, env(safe-area-inset-left, 0px)); border-top: 1px solid #ad86596e; background: linear-gradient(180deg, #2e302cfb, #151b1efc 16%, #0d1114fc); box-shadow: 0 -7px 26px #0008, inset 0 2px #f4d89d0c; }
  .game-shell .game-mobile-nav .nav-item { min-height: 44px; padding: 5px 1px; gap: 5px; border-radius: 1px; font-family: var(--font-display, 'Arial Narrow', sans-serif); font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; line-height: 1; color: #959e9e; }
  .game-shell .game-mobile-nav .nav-item > .icon { width: 21px; height: 21px; stroke-width: 1.6; }
  .game-shell .game-mobile-nav .nav-item.active { color: #eed3a0; background: linear-gradient(180deg, #b98c4b20, #b98c4b05); text-shadow: 0 0 12px #d5a95935; }
  .game-shell .game-mobile-nav .nav-item.active::before { top: -6px; width: 36px; left: calc(50% - 18px); height: 2px; background: #d7b274; box-shadow: 0 0 12px #dcb46c60; }
}
@media (max-width: 370px) {
  .game-shell .game-wordmark { font-size: 20px; letter-spacing: 1.2px; gap: 3px; }
  .game-shell .game-wordmark .game-mark { font-size: 29px; }
  .game-shell .game-header { gap: 3px; padding-left: 8px; padding-right: 8px; }
  .game-shell .game-wallet { padding: 0 4px; }
  .game-shell .lobby-core { padding-left: 14px; padding-right: 14px; }
  .game-shell .lobby-card-fan { --hero-w: 166px; }
  .game-shell .game-mobile-nav .nav-item { font-size: 11px; letter-spacing: 0; }
}
@media (max-width: 700px) and (max-height: 760px) {
  .game-shell .lobby-core { padding-top: 10px; }
  .lobby-heading h1 { font-size: 31px; }
  .game-shell .lobby-card-fan { --hero-w: 162px; }
  .game-shell .lobby-command { margin-top: 6px; }
  .game-shell .lobby-play { min-height: 59px; font-size: 29px; }
}
.reduced-motion .game-shell :is(.lobby-display-card, .lobby-play) { transition: none; translate: none; }
@media (prefers-reduced-motion: reduce) {
  .game-shell :is(.lobby-display-card, .lobby-play) { transition: none; translate: none; }
}
