/* Casino room: black, gold, burgundy. Content sits in a centered column. */

body.lagoon-world {
  --room: 1180px;
  background: #09080c;
  color: #f7f0e4;
  font-family: Heebo, Outfit, sans-serif;
  overflow-x: hidden;
}
body.lagoon-world .boot {
  background:
    radial-gradient(420px 220px at 50% 42%, rgba(45, 212, 191, .22), transparent 70%),
    #03151c;
}
body.lagoon-world .boot-word,
body.lagoon-world .boot-word span {
  font-family: Outfit, Heebo, sans-serif;
  letter-spacing: 0;
  color: #e9fffb;
}
body.lagoon-world .boot-word span { color: #5eead4; }
body.lagoon-world .boot-bar { background: rgba(94, 234, 212, .16); }
body.lagoon-world .boot-bar i { background: linear-gradient(90deg, #14b8a6, #67e8f9); }

/* ----- entrance ----- */
body.lagoon-world.is-login {
  background:
    radial-gradient(520px 280px at 50% 18%, rgba(228, 197, 122, .16), transparent 60%),
    radial-gradient(640px 360px at 50% 100%, rgba(110, 30, 52, .35), transparent 55%),
    #09080c;
}
.lagoon-gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.lagoon-water { display: none; }
.lagoon-water i {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 18%;
  border-radius: 50%;
  background: rgba(185, 255, 244, .08);
  animation: lagoon-ripple 9s ease-in-out infinite;
}
.lagoon-water i:nth-child(1) { bottom: 18%; }
.lagoon-water i:nth-child(2) { bottom: 30%; animation-delay: -3s; }
.lagoon-water i:nth-child(3) { bottom: 42%; animation-delay: -6s; }
@keyframes lagoon-ripple {
  50% { transform: translateY(-12px) scaleX(1.04); opacity: .55; }
}
.lagoon-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  width: min(440px, 100%);
  padding: 36px 32px 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, #1a1412, #100d0c);
  border: 1px solid rgba(228, 197, 122, .45);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.lagoon-mark { display: flex; align-items: center; gap: 12px; }
.lagoon-mark img { width: 54px; height: 54px; }
.lagoon-mark b {
  display: block;
  font-family: Outfit, Heebo, sans-serif;
  font-size: 22px;
  letter-spacing: .04em;
}
.lagoon-mark small { color: #e4c57a; letter-spacing: .18em; }
.lagoon-panel h1 {
  margin: 8px 0 0;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 800;
  color: #f7f0e4;
}
.lagoon-panel p { margin: 0 0 8px; color: #d9cbb6; font-size: 16px; }
.lagoon-panel label { display: grid; gap: 6px; color: #e4c57a; font-size: 13px; font-weight: 700; }
.lagoon-panel input {
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(228, 197, 122, .35);
  background: #0c0a09;
  color: white;
  padding: 0 16px;
  font: inherit;
}
.lagoon-panel input::placeholder { color: rgba(255, 255, 255, .38); }
.lagoon-enter {
  height: 56px;
  margin-top: 6px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #f3e0a6, #c6a15a);
  color: #1a1206;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

/* ----- club shell: wallet strip on top, floating dock, no side menu ----- */
body.lagoon-world.app-player .star-kiosk,
body.lagoon-world.app-player .star-kiosk.lagoon-shell {
  display: block !important;
  min-height: 100dvh;
  background:
    radial-gradient(900px 280px at 50% -6%, rgba(228, 197, 122, .14), transparent 58%),
    radial-gradient(700px 420px at 50% 110%, rgba(110, 30, 52, .28), transparent 55%),
    #09080c !important;
  color: #f7f0e4;
}
body.lagoon-world.app-player .star-kiosk::before { display: none !important; content: none !important; }
body.lagoon-world.app-player .starbar {
  backdrop-filter: none !important;
  position: sticky !important;
  top: 0;
  z-index: 30;
  height: auto !important;
  width: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100% !important;
  box-sizing: border-box;
  padding: 12px max(16px, calc((100% - var(--room)) / 2));
  background: #09080c !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(228, 197, 122, .42) !important;
  box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
}
body.lagoon-world .starbar-side {
  flex-direction: row !important;
  align-items: center !important;
  width: auto !important;
  min-width: 0;
  gap: 10px !important;
}
body.lagoon-world .star-pill,
body.lagoon-world .star-deposit,
body.lagoon-world .star-withdraw,
body.lagoon-world .star-exit { flex: none; }
body.lagoon-world .star-pill b,
body.lagoon-world .star-pill small { white-space: nowrap; }
body.lagoon-world .star-links,
body.lagoon-world .star-online,
body.lagoon-world .star-when { display: none !important; }
body.lagoon-world .star-brand { font-family: Outfit, Heebo, sans-serif; letter-spacing: 0; }
body.lagoon-world .star-brand span,
body.lagoon-world .star-brand strong { color: #e4c57a; }
body.lagoon-world .star-pill {
  height: 44px !important;
  width: auto !important;
  border-radius: 18px !important;
  border: 1px solid rgba(228, 197, 122, .55) !important;
  background: linear-gradient(180deg, #2a2118, #14110e) !important;
  box-shadow: 0 0 18px rgba(228, 197, 122, .12) !important;
}
body.lagoon-world .star-pill b { color: #fff6d4 !important; font-size: 18px !important; }
body.lagoon-world .star-pill small { color: #d9cbb6 !important; }
body.lagoon-world .star-letter { background: #e4c57a !important; color: #1a1206 !important; border-radius: 12px !important; }
body.lagoon-world .star-exit {
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(228, 197, 122, .45) !important;
  color: #f7f0e4 !important;
  background: transparent !important;
}
body.lagoon-world .star-floor {
  position: relative;
  z-index: 1;
  width: min(var(--room), calc(100% - 32px));
  margin-inline: auto;
  background: transparent;
  padding: 22px 0 48px !important;
}

/* Phone: the same nav sits on the bottom. Desktop pulls it into the header. */
body.lagoon-world .lagoon-nav {
  display: flex !important;
  position: fixed;
  z-index: 40;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  transform: none !important;
  width: auto !important;
  height: calc(68px + env(safe-area-inset-bottom));
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border-radius: 0;
  background: #100e0c !important;
  border: 0 !important;
  border-top: 1px solid rgba(228, 197, 122, .45) !important;
  box-shadow: 0 -16px 32px rgba(0, 0, 0, .45);
  direction: rtl;
  gap: 4px;
}
body.studio-open .lagoon-nav { display: none !important; }
body.lagoon-world .star-tabbar button {
  flex: 1;
  height: 54px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #d9cbb6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
body.lagoon-world .star-tabbar button svg { width: 22px; height: 22px; }
body.lagoon-world .star-tabbar button b { font-size: 12px; font-weight: 700; }
body.lagoon-world .star-tabbar button.on {
  background: linear-gradient(180deg, #f3e0a6, #c6a15a);
  color: #1a1206;
  box-shadow: 0 0 18px rgba(228, 197, 122, .28);
}

/* hall */
.lagoon-hall { display: grid; gap: 22px; justify-items: stretch; }
.lagoon-hall > * { width: 100%; }
.lagoon-hello { text-align: start; }
#lagoon-tools:empty { display: none; }
.lagoon-section { display: grid; gap: 12px; width: 100%; }
body.lagoon-world .more { display: flex; justify-content: center; }
body.lagoon-world .star-more { min-width: 200px; height: 48px; font-weight: 800; }
.lagoon-section h3 {
  margin: 0;
  color: #e4c57a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}
.lagoon-account { display: grid; place-items: center; min-height: 52vh; }
.lagoon-account-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(420px, 100%);
  padding: 36px 28px;
  border-radius: 24px;
  border: 1px solid rgba(228, 197, 122, .4);
  background: linear-gradient(180deg, #1a1412, #100d0c);
  text-align: center;
}
.lagoon-account-card .star-letter { width: 64px; height: 64px; font-size: 28px; background: #e4c57a; color: #1a1206; }
.lagoon-account-card h1 { margin: 8px 0 0; font-size: 32px; }
.lagoon-account-card p { margin: 0; color: #d9cbb6; }
.lagoon-account-card b { font-size: 36px; color: #fff6d4; }
.lagoon-account-card > button {
  height: 48px;
  margin-top: 4px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid rgba(228, 197, 122, .45);
  background: transparent;
  color: #f7f0e4;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.lagoon-account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 8px; }
.lagoon-account-actions button { height: 48px; border-radius: 14px; font: inherit; font-weight: 800; cursor: pointer; }
.lagoon-account-actions button:first-child { border: 0; background: linear-gradient(180deg, #f3e0a6, #c6a15a); color: #1a1206; }
.lagoon-account-actions button:last-child { border: 1px solid rgba(228, 197, 122, .45); background: transparent; color: #f7f0e4; }
body.lagoon-world .star-deposit,
body.lagoon-world .star-withdraw {
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
body.lagoon-world .star-deposit { border: 0; background: linear-gradient(180deg, #f3e0a6, #c6a15a); color: #1a1206; }
body.lagoon-world .star-withdraw { border: 1px solid rgba(228, 197, 122, .45); background: transparent; color: #f7f0e4; }
.lagoon-hello p {
  margin: 0;
  color: #e4c57a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .28em;
}
.lagoon-hello h1,
.lagoon-hello h2 {
  margin: 4px 0 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(100deg, #fff8ea 8%, #e4c57a 62%, #f6e7c2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lagoon-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lagoon-doors button {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 20px 22px;
  text-align: start;
  border-radius: 22px;
  border: 1px solid rgba(231, 197, 106, .5);
  background:
    radial-gradient(420px 140px at 100% 0%, rgba(110, 30, 52, .45), transparent 55%),
    linear-gradient(165deg, #241418, #0c0a09 72%);
  color: white;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.lagoon-doors .is-live {
  background:
    radial-gradient(460px 180px at 0% 100%, rgba(231, 197, 106, .32), transparent 58%),
    linear-gradient(165deg, #1c160b, #071014 70%);
}
.lagoon-doors .is-slots {
  background:
    radial-gradient(460px 180px at 100% 0%, rgba(31, 107, 74, .45), transparent 56%),
    linear-gradient(165deg, #10241c, #0c0a09 72%);
}
.lagoon-doors button span {
  display: block;
  color: #e7c56a;
  font-family: Outfit, Heebo, sans-serif;
  font-size: 12px;
  letter-spacing: .32em;
}
.lagoon-doors b { display: block; font-size: 36px; line-height: 1.05; }
.lagoon-doors small { color: #f7f0e4; }
.lagoon-piers {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  overflow: visible;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.lagoon-piers::-webkit-scrollbar { display: none; }
.lagoon-pier {
  flex: 1 1 340px;
  width: auto;
  max-width: 460px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  border-radius: 22px;
  border: 1px solid rgba(231, 197, 106, .32);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .18)), #161210;
  color: white;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.lagoon-pier.on,
.lagoon-pier:focus-visible,
.lagoon-pier:hover { border-color: #e4c57a; box-shadow: 0 0 0 1px rgba(228, 197, 122, .45), 0 12px 28px rgba(0, 0, 0, .4); }
.lagoon-pier img { width: 100%; height: 128px; object-fit: contain; }
.lagoon-pier > b { display: none; }
.lagoon-note {
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(228, 197, 122, .28);
  background: #161210;
  color: #f7f0e4;
  line-height: 1.7;
  text-align: center;
}

/* poster tiles: the picture is the card, the name sits on it */
body.lagoon-world .lagoon-grid,
body.lagoon-world .star-grid.lagoon-grid {
  width: 100% !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 16px !important;
}
body.lagoon-world .game {
  position: relative;
  display: block !important;
  width: 100%;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 18px !important;
  border: 1px solid rgba(231, 197, 106, .55) !important;
  background: #041016 !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .42) !important;
  text-align: start;
  transition: transform .2s ease, box-shadow .2s ease;
}
body.lagoon-world.app-player .game:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px rgba(0, 0, 0, .55), 0 0 22px rgba(228, 197, 122, .22) !important;
}
body.lagoon-world .game-open {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
}
body.lagoon-world .thumb {
  position: relative;
  display: grid;
  height: auto !important;
  aspect-ratio: 3 / 4 !important;
  border-radius: 18px !important;
  padding: 0 !important;
  overflow: hidden;
  background: #041820 !important;
}
body.lagoon-world .thumb > * { grid-area: 1 / 1; }
body.lagoon-world .thumb img,
body.lagoon-world .thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  background: #041016;
  transition: transform .45s ease;
}
body.lagoon-world .game:hover .thumb img { transform: scale(1.07); }
body.lagoon-world .thumb-fallback { display: grid; place-items: center; color: #e4c57a; font-weight: 800; }
body.lagoon-world .game-plate,
body.lagoon-world .game-plate::before,
body.lagoon-world .game-studio,
body.lagoon-world .game-limit { display: none !important; }
body.lagoon-world .thumb > b,
body.lagoon-world .game b {
  align-self: end;
  justify-self: stretch;
  z-index: 2;
  width: 100%;
  height: auto !important;
  margin: 0;
  min-height: 0;
  padding: 48px 12px 12px;
  color: #fffaf0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-align: start;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  border-top: 1px solid rgba(231, 197, 106, .7);
  background: linear-gradient(transparent, rgba(0, 0, 0, .72) 42%, rgba(0, 0, 0, .92));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.lagoon-world .star-more {
  background: linear-gradient(180deg, #f3e0a6, #c6a15a) !important;
  color: #1a1206 !important;
  border-radius: 16px !important;
}
body.lagoon-world .star-float { display: none !important; }
body.lagoon-world .star-catbar {
  position: sticky !important;
  top: var(--starbar-h, 76px);
  z-index: 8;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 4px 0;
  background: #09080c !important;
  border: 0 !important;
  overflow: hidden;
}
body.lagoon-world .star-catscroll {
  position: static !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 8px;
  overflow-x: auto !important;
  scrollbar-width: none;
  padding-bottom: 2px;
}
body.lagoon-world .star-catscroll::-webkit-scrollbar { display: none; }
body.lagoon-world .star-cat {
  height: 42px;
  flex: none;
  border-radius: 999px !important;
  border: 1px solid rgba(228, 197, 122, .32) !important;
  background: #161210 !important;
  color: #f7f0e4 !important;
}
body.lagoon-world .star-cat.on {
  background: linear-gradient(180deg, #f3e0a6, #c6a15a) !important;
  color: #1a1206 !important;
  border-color: #e4c57a !important;
  box-shadow: none;
}
body.lagoon-world .star-cat.on img { filter: brightness(0); }
body.lagoon-world .filters[hidden] { display: none !important; }
body.lagoon-world .providers { display: none !important; }
body.lagoon-world .filters:not([hidden]) {
  display: flex;
  width: 100%;
  margin: 0;
}
body.lagoon-world .search,
body.lagoon-world .providers {
  background: #161210 !important;
  color: #f7f0e4 !important;
  border: 1px solid rgba(228, 197, 122, .35) !important;
  border-radius: 14px !important;
}
body.lagoon-world .search { width: 100%; height: 48px; font-size: 16px; }
body.lagoon-world .shelf-head { justify-content: center; text-align: center; }
body.lagoon-world .shelf-head h2 { color: #f7f0e4; }
body.lagoon-world .shelf-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 16px;
  overflow: visible;
}
body.lagoon-world .shelf-row .game { flex: none; width: 100%; }

/* provider harbor */
body.studio-open { background: #09080c; }
body.lagoon-world .studio-lobby,
.studio-lobby {
  z-index: 60 !important;
  background:
    radial-gradient(800px 240px at 50% 0%, rgba(228, 197, 122, .12), transparent 60%),
    #09080c !important;
  color: #f7f0e4;
  direction: rtl;
}
.studio-body {
  background: transparent !important;
  padding: 16px 0 120px !important;
}
.lagoon-harbor-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  padding: 14px max(16px, calc((100% - var(--room)) / 2));
  background: #100e0c;
  border-bottom: 1px solid rgba(228, 197, 122, .4);
  position: sticky;
  top: 0;
  z-index: 6;
}
.lagoon-back {
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(228, 197, 122, .45);
  background: transparent;
  color: #f7f0e4;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lagoon-harbor-name { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.lagoon-harbor-name img { width: 220px; height: 78px; object-fit: contain; }
.lagoon-harbor-name b,
.lagoon-harbor-name small { display: block; }
.lagoon-harbor-name small { color: #d9cbb6; font-size: 12px; }
.studio-balance { color: #fff6d4; white-space: nowrap; }
.studio-search {
  background: #161210 !important;
  border: 1px solid rgba(228, 197, 122, .35) !important;
  border-radius: 16px !important;
}
body.lagoon-world .studio-lobby .star-catbar { background: transparent !important; }
.studio-tools,
.studio-grid,
body.lagoon-world .studio-lobby .star-catbar,
.studio-lobby .limit-floors {
  width: min(var(--room), calc(100% - 28px)) !important;
  margin-inline: auto !important;
}
.studio-tools { margin-bottom: 12px !important; }

/* admin desks, same casino colors */
body.lagoon-world.app-admin { background: #09080c; color: #f7f0e4; }
body.lagoon-world.app-admin .side { background: #14110e; border-color: rgba(228, 197, 122, .28); }
body.lagoon-world.app-admin .side button.on,
body.lagoon-world.app-admin .btn { background: linear-gradient(180deg, #f3e0a6, #c6a15a); color: #1a1206; }
body.lagoon-world.app-admin .card { background: #161210; border-color: rgba(228, 197, 122, .22); color: #f7f0e4; }

@media (max-width: 1280px) {
  body.lagoon-world .star-user { display: none; }
}
@media (min-width: 1100px) {
  body.lagoon-world.app-player .starbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    overflow: visible !important;
  }
  body.lagoon-world .starbar-side:first-child { justify-content: flex-start; min-width: max-content; }
  body.lagoon-world .starbar-side:last-child { justify-content: flex-end; min-width: max-content; }
  body.lagoon-world .starbar-side .star-pill:not(.star-user) {
    display: flex !important;
    flex: none;
    z-index: 2;
  }
  body.lagoon-world .lagoon-nav {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    gap: 8px;
  }
  body.lagoon-world .lagoon-nav button {
    flex: none;
    flex-direction: row;
    height: 44px;
    padding: 0 16px;
    gap: 8px;
    border: 1px solid rgba(228, 197, 122, .28);
    background: #161210;
  }
  body.lagoon-world .lagoon-nav button svg { width: 18px; height: 18px; }
  body.lagoon-world .lagoon-nav button b { font-size: 15px; }
}

/* Tablet and phone share the bottom nav. Desktop, from 1100px, keeps it in the header. */
@media (max-width: 1099px) {
  body.lagoon-world .lagoon-nav {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: calc(64px + env(safe-area-inset-bottom)) !important;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom)) !important;
    border-radius: 18px 18px 0 0 !important;
  }
  body.lagoon-world .lagoon-nav button { min-height: 52px; border-radius: 14px; }
  body.lagoon-world .star-floor {
    width: min(calc(100% - 28px), var(--room));
    padding: 16px 0 calc(92px + env(safe-area-inset-bottom)) !important;
  }
  body.lagoon-world .starbar {
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
  }
  body.lagoon-world .starbar-side,
  body.lagoon-world .starbar-side:last-child {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid-column: auto !important;
    min-width: 0;
  }
  body.lagoon-world .star-user,
  body.lagoon-world .star-exit { display: none !important; }
  body.lagoon-world .star-cat { height: 40px; padding: 0 14px; font-size: 14px; }
  .studio-body { padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important; }
  .studio-tools,
  .studio-grid,
  body.lagoon-world .studio-lobby .star-catbar,
  .studio-lobby .limit-floors { width: min(100% - 24px, var(--room)) !important; }
}

/* Tablet: four posters, named provider tiles, cash actions stay in the header. */
@media (min-width: 701px) and (max-width: 1099px) {
  .lagoon-hello p { letter-spacing: .16em; }
  .lagoon-hello h1,
  .lagoon-hello h2 { font-size: 28px; }
  .lagoon-hall { gap: 14px; }
  .lagoon-doors { gap: 10px; }
  .lagoon-doors button { min-height: 84px; padding: 14px 16px; border-radius: 18px; }
  .lagoon-doors b { font-size: 26px; }
  .lagoon-piers { flex-wrap: wrap; overflow: visible; gap: 10px; }
  .lagoon-pier {
    flex: 1 1 150px;
    min-width: 140px;
    max-width: 210px;
    height: 92px;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
  }
  .lagoon-pier img { height: 46px; }
  .lagoon-pier > b {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
  }
  body.lagoon-world .lagoon-grid,
  body.lagoon-world .star-grid.lagoon-grid,
  body.lagoon-world .shelf-row,
  body.lagoon-world .studio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px !important; }
  body.lagoon-world .game b { font-size: 12px; padding: 26px 8px 8px; }
  body.lagoon-world .star-cat { height: 38px; padding: 0 12px; font-size: 13px; }
  .lagoon-account-card { width: min(480px, 100%); }
  .lagoon-harbor-name img { width: 150px; height: 52px; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  body.lagoon-world .lagoon-grid,
  body.lagoon-world .star-grid.lagoon-grid,
  body.lagoon-world .shelf-row,
  body.lagoon-world .studio-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}

/* Phone: three posters, a short provider row with names, and a header that keeps the balance and deposit. */
@media (max-width: 700px) {
  .lagoon-panel { width: min(100%, 420px); padding: 28px 18px 24px; }
  .lagoon-panel h1 { font-size: 34px; }
  .lagoon-panel input,
  .lagoon-panel button { font-size: 16px; }
  .lagoon-hello { text-align: start; }
  .lagoon-hello p { display: none; }
  .lagoon-hello h1,
  .lagoon-hello h2 { font-size: 22px; }
  .lagoon-hall { gap: 12px; }
  .lagoon-section { gap: 8px; }
  .lagoon-doors { gap: 8px; }
  .lagoon-doors button { min-height: 64px; padding: 10px 12px; border-radius: 16px; }
  .lagoon-doors button span { letter-spacing: .12em; font-size: 10px; }
  .lagoon-doors b { font-size: 20px; }
  .lagoon-doors small { display: none; }
  .lagoon-piers {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    gap: 8px;
    padding-bottom: 2px;
    mask-image: none;
  }
  .lagoon-pier {
    flex: 0 0 104px;
    max-width: none;
    height: 78px;
    flex-direction: column;
    gap: 2px;
    padding: 8px 6px;
    scroll-snap-align: start;
    border-radius: 14px;
  }
  .lagoon-pier img { height: 36px; }
  .lagoon-pier > b {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
  }
  body.lagoon-world .star-floor { width: calc(100% - 16px); }
  body.lagoon-world .lagoon-grid,
  body.lagoon-world .star-grid.lagoon-grid,
  body.lagoon-world .shelf-row,
  body.lagoon-world .studio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  body.lagoon-world .game { border-radius: 12px !important; box-shadow: none !important; }
  body.lagoon-world .thumb { border-radius: 12px !important; }
  body.lagoon-world .game b { font-size: 11px; line-height: 1.15; padding: 20px 6px 6px; }
  body.lagoon-world .star-brand img { width: 28px; }
  body.lagoon-world .star-brand strong { display: none; }
  body.lagoon-world .star-pill { height: 34px !important; padding: 0 8px !important; border-radius: 12px !important; }
  body.lagoon-world .star-pill small,
  body.lagoon-world .star-pill > img { display: none !important; }
  body.lagoon-world .star-pill b { font-size: 13px !important; }
  body.lagoon-world .star-deposit,
  body.lagoon-world .star-withdraw {
    display: inline-flex !important;
    align-items: center;
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }
  body.lagoon-world .star-cat { height: 34px; padding: 0 12px; font-size: 13px; }
  body.lagoon-world .star-cat img { width: 16px; height: 16px; }
  body.lagoon-world .star-catbar { padding: 0; }
  body.lagoon-world .search { height: 42px; font-size: 16px; }
  body.lagoon-world .lagoon-nav {
    height: calc(58px + env(safe-area-inset-bottom)) !important;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom)) !important;
    border-radius: 0 !important;
  }
  body.lagoon-world .lagoon-nav button { min-height: 48px; height: 48px; border-radius: 12px; gap: 1px; }
  body.lagoon-world .lagoon-nav button svg { width: 20px; height: 20px; }
  body.lagoon-world .lagoon-nav button b { font-size: 11px; }
  body.lagoon-world .star-floor { padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
  .lagoon-harbor-bar { gap: 8px; padding: 8px 10px; flex-wrap: nowrap; }
  .lagoon-harbor-name small { display: none; }
  .lagoon-harbor-name b { font-size: 14px; }
  .lagoon-harbor-name img { width: 92px; height: 32px; }
  .lagoon-back { height: 34px; padding: 0 10px; border-radius: 12px; }
  .studio-balance { font-size: 12px; }
  .studio-search { height: 40px; }
  .lagoon-account { min-height: 0; padding-top: 8px; }
  .lagoon-account-card { padding: 22px 16px; }
  .lagoon-account-card h1 { font-size: 24px; }
  .lagoon-account-card b { font-size: 28px; }
}
@media (hover: none) {
  body.lagoon-world.app-player .game:hover,
  body.lagoon-world .game:hover .thumb img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lagoon-water i,
  body.lagoon-world .thumb img,
  body.lagoon-world .game { animation: none; transition: none; }
}
