.lobby-page { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.announcement { display: flex; align-items: center; gap: 9px; padding: 10px 0; color: #cbb2aa; font-size: 10px; }
.announcement .icon { width: 16px; height: 16px; color: var(--gold); }
.announcement p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announcement a { margin-left: auto; flex-shrink: 0; color: var(--gold); display: none; }
.hero-layout { display: grid; gap: 12px; }
.hero { position: relative; min-height: 226px; overflow: hidden; isolation: isolate; border-radius: 14px; border: 1px solid #a64431; background: #650910; }
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#4a0611c9 0%,#4a061150 49%,transparent 75%); }
.hero-copy { padding: 23px 17px 40px; max-width: 68%; }
.hero-copy .eyebrow { font-size: 8px; letter-spacing: 1.7px; }
.hero h2 { font: italic 33px/1.05 Georgia,'Times New Roman',serif; letter-spacing: -.9px; margin: 10px 0 10px; color: #fff0cc; text-shadow: 0 2px 8px #3c000d; }
.hero h2 span { color: #f4cd7f; display: block; }
.hero-copy > p:not(.eyebrow) { font-size: 10px; color: #e8c6b5; max-width: 165px; margin-bottom: 15px; }
.hero-copy .btn { font-size: 11px; min-height: 44px; padding: 9px 13px; }
.hero-copy .btn .icon { width: 16px; height: 16px; }
.hero-footer { position: absolute; bottom: 5px; left: 17px; right: 12px; display: flex; align-items: center; justify-content: space-between; }
.hero-footer small { font-size: 8px; color: #ecd4c3; }
.slide-controls { display: flex; gap: 0; }
.slide-controls button { width: 44px; height: 44px; display: flex; justify-content: center; align-items: center; }
.slide-controls button::before { content: ''; width: 6px; height: 6px; border-radius: 100px; background: #e6cba661; }
.slide-controls button[aria-pressed=true]::before { width: 20px; background: var(--gold); }
.promo-stack { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.promo-card { position: relative; min-height: 100px; overflow: hidden; border-radius: 12px; border: 1px solid #853e3a; padding: 15px 12px; background: linear-gradient(120deg,#7b172b,#46151c); }
.promo-card:nth-child(2) { background: linear-gradient(120deg,#513318,#281a11); border-color: #725332; }
.promo-card img { position: absolute; width: 90px; height: 100px; right: -12px; bottom: -12px; opacity: .95; }
.promo-card .eyebrow { font-size: 7px; letter-spacing: 1.2px; position: relative; }
.promo-card h3 { font-size: 15px; line-height: 1.2; font-weight: 700; margin-top: 6px; position: relative; max-width: 80%; }
.promo-card .promo-link { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; margin-top: 8px; color: var(--gold); position: relative; }
.promo-card .promo-link .icon { width: 12px; height: 12px; }
.promo-card:hover { border-color: var(--gold); }
.quick-bar { margin: 16px 0; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); background: #221216; border-radius: 12px; }
.quick-welcome { margin-right: auto; }
.quick-welcome p { font-size: 11px; font-weight: 700; }
.quick-welcome span { display: block; font-size: 9px; margin-top: 2px; color: var(--muted); }
.quick-welcome p span { display: inline; color: var(--gold); font-size: 11px; }
.quick-link { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; border-left: 1px solid var(--line); font-size: 10px; }
.quick-link .icon { width: 18px; height: 18px; color: var(--gold); }
.quick-link:last-child { padding-right: 0; }
.category-strip { display: flex; gap: 7px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; padding: 1px 1px 8px; margin-bottom: 17px; }
.category-strip::-webkit-scrollbar { display: none; }
.category-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex: 0 0 66px; min-height: 66px; padding: 9px 4px; border: 1px solid var(--line); border-radius: 10px; color: #bca5a5; background: #241317; font-size: 9px; white-space: nowrap; transition: background .18s, border-color .18s; }
.category-button .icon { width: 23px; height: 23px; }
.category-button[aria-pressed=true] { color: var(--gold-bright); background: linear-gradient(135deg,#a61629,#65121c); border-color: #c86c49; }
.category-button:hover { border-color: #b68a56; }
.catalog { scroll-margin-top: 90px; }
.catalog-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 13px; }
.catalog-title { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.catalog-title > .icon { color: #f0bf72; width: 21px; height: 21px; }
.catalog-title h2 { font-size: 19px; letter-spacing: -.4px; }
.catalog-title span { font-size: 10px; color: var(--muted); }
.catalog-tools { display: flex; gap: 6px; }
.search-toggle { background: var(--panel); border: 1px solid var(--line); width: 44px; height: 44px; }
.sort-select { border: 1px solid var(--line); border-radius: 8px; color: #d6b8b4; background: var(--panel); padding: 8px 8px; font-size: 10px; min-height: 44px; max-width: 118px; }
.search-box { display: flex; align-items: center; width: 100%; gap: 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 0 9px 0 13px; }
.search-box .icon { color: var(--muted); width: 18px; height: 18px; }
.search-box input { background: transparent; border: 0; min-width: 0; width: 100%; color: var(--text); min-height: 46px; font-size: 13px; }
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { outline: 0; }
.search-box:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.game-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px 9px; }
.game-card { min-width: 0; position: relative; }
.game-link { display: block; border-radius: 12px; }
.game-art { aspect-ratio: 1; border-radius: 12px; border: 1px solid #d3a56a30; position: relative; overflow: hidden; background-image: url('/assets/lobby/game-atlas.webp'); background-size: 400% 300%; background-color: var(--panel); transition: transform .2s, border-color .2s; }
.art-0 { background-position: 0% 0%; }.art-1 { background-position: 33.3333% 0%; }.art-2 { background-position: 66.6667% 0%; }.art-3 { background-position: 100% 0%; }
.art-4 { background-position: 0% 50%; }.art-5 { background-position: 33.3333% 50%; }.art-6 { background-position: 66.6667% 50%; }.art-7 { background-position: 100% 50%; }
.art-8 { background-position: 0% 100%; }.art-9 { background-position: 33.3333% 100%; }.art-10 { background-position: 66.6667% 100%; }.art-11 { background-position: 100% 100%; }
.game-link:hover .game-art { transform: translateY(-3px); border-color: var(--gold); }
.game-art::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 -18px 24px #19030a45; }
.game-ribbon { position: absolute; top: 7px; left: 0; border-radius: 0 4px 4px 0; padding: 2px 7px; background: #ba182f; color: #fff3cf; font-size: 7px; font-weight: 800; letter-spacing: .6px; box-shadow: 0 2px 8px #28020a50; z-index: 1; }
.game-ribbon.new { background: #f0cc88; color: #4b1c15; }
.game-name { display: block; font-size: 11px; font-weight: 700; line-height: 1.3; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-type { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
.favorite-button { position: absolute; z-index: 2; right: 4px; top: 2px; width: 44px; height: 44px; display: flex; align-items: flex-start; justify-content: flex-end; padding: 6px 4px; }
.favorite-button .icon { width: 20px; height: 20px; color: #fff0ca; fill: #291016a6; filter: drop-shadow(0 1px 2px #24080d); stroke-width: 1.6; }
.favorite-button[aria-pressed=true] .icon { fill: #f6c66e; color: #ffe5a8; }
.empty-state { text-align: center; padding: 38px 20px; background: var(--panel); border: 1px dashed var(--line); border-radius: 12px; }
.empty-state > .icon { margin: 0 auto 14px; color: var(--gold); width: 32px; height: 32px; }
.empty-state h3 { font-size: 18px; }
.empty-state p { color: var(--muted); font-size: 12px; margin: 9px 0 18px; }
.catalog-bottom { display: flex; justify-content: center; margin: 22px 0 28px; }
.catalog-bottom .btn { border-color: #74513c; color: var(--gold); min-width: 168px; background: #29171a; font-size: 12px; }
.app-banner { position: relative; display: flex; align-items: center; gap: 11px; border: 1px solid #704332; border-radius: 12px; padding: 17px 12px; background: radial-gradient(ellipse at 5% 0,#723223 0%,#321b1b 65%); overflow: hidden; }
.app-icon { width: 43px; height: 43px; flex: 0 0 auto; border-radius: 11px; box-shadow: 0 3px 10px #16030660; }
.app-copy { margin-right: auto; }
.app-copy h2 { font-size: 13px; }
.app-copy p { color: #ceb2a3; font-size: 9px; margin-top: 3px; }
.app-banner .btn { font-size: 10px; padding: 10px; }
.bottom-nav { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; background: #251317f5; border-top: 1px solid #6b3f36; backdrop-filter: blur(14px); display: grid; grid-template-columns: repeat(5,1fr); padding: 6px max(5px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left)); }
.bottom-nav a, .bottom-nav button { color: #ba9e9e; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; min-height: 51px; font-size: 9px; position: relative; }
.bottom-nav .icon { width: 22px; height: 22px; }
.bottom-nav .active { color: #f9d587; }
.bottom-nav .active::before { content: ''; width: 16px; height: 2px; background: var(--gold); position: absolute; top: -6px; border-radius: 4px; }
.bottom-nav .deposit-tab .icon { box-sizing: content-box; padding: 9px; background: linear-gradient(150deg,#f9df9c,#c59245); color: #5b1820; border-radius: 13px; width: 23px; height: 23px; margin-top: -16px; border: 4px solid #251317; }
.toast { position: fixed; z-index: 90; bottom: calc(84px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 11px 19px; border: 1px solid #8a6849; border-radius: 9px; background: #3b2528; color: var(--gold-bright); box-shadow: 0 8px 32px #0007; font-size: 12px; width: max-content; max-width: calc(100% - 30px); }
.noscript-note { padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (min-width: 600px) {
  .hero { min-height: 315px; }
  .hero-copy { padding: 36px 30px 45px; }
  .hero h2 { font-size: 48px; }
  .hero-copy > p:not(.eyebrow) { font-size: 13px; max-width: 250px; }
  .hero-copy .eyebrow { font-size: 10px; }
  .hero-copy .btn { font-size: 13px; padding: 12px 20px; }
  .hero-footer { left: 30px; }
  .hero-footer small { font-size: 10px; }
  .promo-card { min-height: 118px; padding: 19px; }
  .promo-card h3 { font-size: 20px; }
  .promo-card .eyebrow { font-size: 9px; }
  .promo-card .promo-link { font-size: 11px; }
  .promo-card img { width: 120px; height: 120px; right: 4px; }
  .game-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 23px 16px; }
  .game-name { font-size: 13px; }
  .game-type { font-size: 10px; }
  .quick-bar { padding: 12px 20px; margin: 20px 0; }
  .quick-welcome p { font-size: 14px; }
  .quick-welcome span { font-size: 11px; }
  .quick-link { font-size: 12px; gap: 10px; padding: 0 20px; }
  .quick-link .icon { width: 23px; height: 23px; }
  .category-button { flex: 1 0 80px; font-size: 11px; min-height: 73px; }
  .catalog-title h2 { font-size: 23px; }
  .catalog-title span { font-size: 12px; }
  .app-banner { padding: 22px; gap: 18px; }
  .app-icon { width: 56px; height: 56px; }
  .app-copy h2 { font-size: 20px; }
  .app-copy p { font-size: 12px; }
  .app-banner .btn { font-size: 13px; padding: 12px 23px; }
}
@media (min-width: 1000px) {
  .lobby-page { padding-bottom: 0; }
  .announcement { padding: 14px 0; font-size: 11px; }
  .announcement a { display: inline-flex; align-items: center; min-height: 28px; gap: 7px; }
  .hero-layout { grid-template-columns: minmax(0,2.4fr) minmax(0,1fr); gap: 18px; }
  .hero { min-height: 346px; border-radius: 16px; }
  .hero-art { width: 83%; left: auto; object-position: 65% 49%; }
  .hero-copy { padding: 38px 34px 45px; max-width: 67%; }
  .hero h2 { font-size: 52px; margin: 13px 0 13px; }
  .hero-copy > p:not(.eyebrow) { font-size: 13px; max-width: 270px; margin-bottom: 21px; }
  .hero-footer { left: 34px; right: 18px; bottom: 8px; }
  .promo-stack { grid-template-columns: 1fr; gap: 16px; }
  .promo-card { padding: 22px; border-radius: 14px; }
  .promo-card h3 { font-size: 24px; max-width: 80%; }
  .promo-card img { right: -8px; width: 140px; height: 140px; bottom: -16px; }
  .promo-card .promo-link { margin-top: 15px; }
  .category-strip { gap: 11px; margin-bottom: 21px; }
  .category-button { flex-direction: row; gap: 10px; font-size: 12px; min-height: 60px; }
  .category-button .icon { width: 25px; height: 25px; }
  .catalog-toolbar { margin-bottom: 18px; }
  .catalog-tools { gap: 10px; }
  .search-toggle { display: none; }
  .search-box { width: 230px; margin-left: auto; order: 2; }
  .search-box input { min-height: 42px; font-size: 12px; }
  .catalog-tools { order: 3; }
  .sort-select { font-size: 12px; max-width: 145px; padding: 8px 12px; }
  .game-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 25px 17px; }
  .game-art { border-radius: 13px; }
  .game-name { margin-top: 10px; }
  .game-ribbon { font-size: 9px; padding: 3px 9px; top: 10px; }
  .favorite-button { width: 44px; right: 3px; top: 4px; }
  .catalog-bottom { margin-bottom: 32px; }
  .bottom-nav { display: none; }
  .toast { bottom: 28px; }
}
@media (max-width: 359px) {
  .hero h2 { font-size: 29px; }
  .hero-copy { padding-left: 13px; }
  .quick-link { padding-left: 7px; gap: 4px; font-size: 9px; }
  .quick-welcome p { font-size: 10px; }
  .game-grid { gap: 13px 7px; }
  .game-name { font-size: 10px; }
  .app-copy h2 { font-size: 12px; }
  .app-copy p { max-width: 130px; }
}
