/*
 * TMM Game Lobby v0.7.2
 * Scoped frontend style. Enhanced full-bleed / wide layout support.
 */

body.tmm-game-lobby-page,
body.tmm-game-lobby-page .site,
body.tmm-game-lobby-page .site-content,
body.tmm-game-lobby-page .site-main,
body.tmm-game-lobby-page .content-area,
body.tmm-game-lobby-page .entry-content,
body.tmm-game-lobby-page .page-content,
body.tmm-game-lobby-page .inside-article,
body.tmm-game-lobby-page article,
body.tmm-game-lobby-page main,
body.tmm-game-lobby-page .wp-block-post-content,
body.tmm-game-lobby-page .ast-container,
body.tmm-game-lobby-page .container,
body.tmm-game-lobby-page .content-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.tmm-game-lobby-page.tmm-game-lobby-hide-titles .entry-header,
body.tmm-game-lobby-page.tmm-game-lobby-hide-titles .page-header,
body.tmm-game-lobby-page.tmm-game-lobby-hide-titles .post-header,
body.tmm-game-lobby-page.tmm-game-lobby-hide-titles .entry-title,
body.tmm-game-lobby-page.tmm-game-lobby-hide-titles .page-title,
body.tmm-game-lobby-page.tmm-game-lobby-hide-titles .wp-block-post-title,
body.tmm-game-lobby-page.tmm-game-lobby-hide-titles .archive-header,
body.tmm-game-lobby-page.tmm-game-lobby-hide-titles .single-header {
  display: none !important;
}

body.tmm-game-lobby-page.tmm-game-lobby-hide-breadcrumbs .breadcrumbs,
body.tmm-game-lobby-page.tmm-game-lobby-hide-breadcrumbs .breadcrumb,
body.tmm-game-lobby-page.tmm-game-lobby-hide-breadcrumbs .yoast-breadcrumb,
body.tmm-game-lobby-page.tmm-game-lobby-hide-breadcrumbs .rank-math-breadcrumb,
body.tmm-game-lobby-page.tmm-game-lobby-hide-breadcrumbs nav[aria-label="Breadcrumb"],
body.tmm-game-lobby-page.tmm-game-lobby-hide-breadcrumbs .woocommerce-breadcrumb {
  display: none !important;
}

body.tmm-game-lobby-page.tmm-game-lobby-top-gap-fix .site-content,
body.tmm-game-lobby-page.tmm-game-lobby-top-gap-fix .site-main,
body.tmm-game-lobby-page.tmm-game-lobby-top-gap-fix .content-area,
body.tmm-game-lobby-page.tmm-game-lobby-top-gap-fix .entry-content,
body.tmm-game-lobby-page.tmm-game-lobby-top-gap-fix .page-content,
body.tmm-game-lobby-page.tmm-game-lobby-top-gap-fix .inside-article,
body.tmm-game-lobby-page.tmm-game-lobby-top-gap-fix article,
body.tmm-game-lobby-page.tmm-game-lobby-top-gap-fix main,
body.tmm-game-lobby-page.tmm-game-lobby-top-gap-fix .wp-block-post-content,
body.tmm-game-lobby-page.tmm-game-lobby-top-gap-fix .ast-container,
body.tmm-game-lobby-page.tmm-game-lobby-top-gap-fix .container,
body.tmm-game-lobby-page.tmm-game-lobby-top-gap-fix .content-wrapper {
  padding-top: 0 !important;
}

.tmm-game-lobby {
  --tmm-shell-max-width: 1720px;
  --tmm-side-padding-desktop: 24px;
  --tmm-side-padding-mobile: 14px;
  --tmm-bg-start: #050814;
  --tmm-bg-mid: #08101f;
  --tmm-bg-end: #02030a;
  --tmm-accent-cyan: #00f0ff;
  --tmm-accent-pink: #ff2bd6;
  --tmm-accent-green: #86ffb5;
  --tmm-frosted-bg-main: rgba(255, 255, 255, 0.11);
  --tmm-frosted-bg-soft: rgba(255, 255, 255, 0.04);
  --tmm-bg-desktop-image: none;
  --tmm-bg-mobile-image: none;
  --tmm-current-bg-image: var(--tmm-bg-desktop-image);
  --tmm-bg-image-opacity: 0.72;
  --tmm-bg-position-desktop: center center;
  --tmm-bg-position-mobile: center top;
  --tmm-current-bg-position: var(--tmm-bg-position-desktop);
  --tmm-game-columns: 3;
  --tmm-player-columns: 4;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 108px var(--tmm-side-padding-desktop) calc(148px + env(safe-area-inset-bottom, 0px));
  color: #f4f7ff;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255, 0, 180, 0.18), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(55, 85, 255, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(5, 8, 20, 0.86) 0%, rgba(8, 16, 31, 0.82) 45%, rgba(2, 3, 10, 0.92) 100%),
    linear-gradient(135deg, var(--tmm-bg-start) 0%, var(--tmm-bg-mid) 45%, var(--tmm-bg-end) 100%);
  background-size: auto, auto, auto, auto, auto;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat;
  isolation: isolate;
}

.tmm-game-lobby.tmm-force-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.tmm-game-lobby::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image: var(--tmm-current-bg-image);
  background-size: 100% 100%;
  background-position: var(--tmm-current-bg-position);
  background-repeat: no-repeat;
  opacity: var(--tmm-bg-image-opacity);
  pointer-events: none;
}

.tmm-opening-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  background: var(--tmm-opening-bg-color, #02030a);
  opacity: 1;
  visibility: visible;
  transition: opacity var(--tmm-opening-fade-ms, 650ms) ease, visibility var(--tmm-opening-fade-ms, 650ms) ease;
  pointer-events: auto;
}

.tmm-opening-screen.is-fading,
.tmm-opening-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tmm-opening-screen-image {
  width: 100vw;
  height: 100vh;
  background-image: var(--tmm-opening-desktop-image);
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
}

@media (max-width: 767px) {
  .tmm-opening-screen-image {
    background-image: var(--tmm-opening-mobile-image);
  }
}


.tmm-game-lobby,
.tmm-game-lobby * {
  box-sizing: border-box;
}

.tmm-game-lobby a,
.tmm-game-lobby a:hover,
.tmm-game-lobby a:focus {
  text-decoration: none;
}

.tmm-lobby-bg-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.tmm-lobby-bg-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(46px);
  opacity: 0.32;
  z-index: -2;
  pointer-events: none;
}

.tmm-glow-a {
  top: 70px;
  left: -120px;
  background: var(--tmm-accent-cyan);
}

.tmm-glow-b {
  right: -120px;
  bottom: 120px;
  background: var(--tmm-accent-pink);
}

.tmm-game-lobby::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: 0.18;
}

.tmm-lobby-shell {
  width: 100%;
  max-width: var(--tmm-shell-max-width);
  margin: 0 auto;
  position: relative;
}

.tmm-lobby-hero {
  max-width: 980px;
  margin-bottom: 30px;
}

.tmm-hero-align-center .tmm-lobby-hero {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tmm-hero-align-center .tmm-lobby-hero p {
  margin-left: auto;
  margin-right: auto;
}

.tmm-lobby-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(0, 255, 255, 0.08);
  color: #76fbff;
  font-size: 13px;
  letter-spacing: 0.18em;
  box-shadow: 0 0 22px rgba(0, 255, 255, 0.16);
}

.tmm-lobby-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(0, 255, 255, 0.35),
    0 0 46px rgba(255, 43, 214, 0.18);
}

.tmm-lobby-hero p {
  max-width: 860px;
  margin: 18px 0 0;
  color: rgba(230, 240, 255, 0.74);
  font-size: 18px;
  line-height: 1.85;
}

.tmm-player-panel {
  display: grid;
  grid-template-columns: repeat(var(--tmm-player-columns), minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 42px;
}

.tmm-player-card,
.tmm-game-card,
.tmm-lab-console {
  border: 1px solid rgba(140, 235, 255, 0.18);
  background: linear-gradient(145deg, var(--tmm-frosted-bg-main), var(--tmm-frosted-bg-soft));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 70px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.tmm-player-card {
  min-height: 132px;
  padding: 18px;
  border-radius: 22px;
}

.tmm-panel-label {
  display: block;
  margin-bottom: 12px;
  color: #73f7ff;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tmm-player-card strong {
  display: block;
  color: #ffffff;
  font-size: 25px;
  line-height: 1.1;
  word-break: break-word;
}

.tmm-player-card small {
  display: block;
  margin-top: 10px;
  color: rgba(230, 240, 255, 0.58);
  line-height: 1.55;
}

.tmm-status-online {
  color: var(--tmm-accent-green) !important;
  text-shadow: 0 0 16px rgba(134, 255, 181, 0.45);
}

.tmm-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.tmm-section-head span {
  color: #ff79df;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.tmm-section-head h2 {
  margin: 6px 0 0;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 42px);
}

.tmm-lobby-filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  cursor: default;
  opacity: 1;
}

.tmm-game-grid {
  display: grid;
  grid-template-columns: repeat(var(--tmm-game-columns), minmax(0, 1fr));
  gap: 18px;
}

.tmm-game-card {
  position: relative;
  min-height: 390px;
  padding: 22px;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.tmm-card-size-compact .tmm-game-card {
  min-height: 330px;
  padding: 18px;
}

.tmm-card-size-large .tmm-game-card {
  min-height: 450px;
  padding: 28px;
}

.tmm-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 26px 80px rgba(0, 255, 255, 0.12),
    0 22px 70px rgba(0, 0, 0, 0.42);
}

.tmm-game-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 210px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.tmm-game-featured {
  background:
    linear-gradient(145deg, rgba(0, 255, 255, 0.14), rgba(255, 0, 210, 0.08)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
}

.tmm-game-card-top,
.tmm-game-meta,
.tmm-console-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tmm-game-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(91, 255, 165, 0.12);
  color: #8dffbd;
  font-size: 12px;
  border: 1px solid rgba(91, 255, 165, 0.22);
}

.tmm-tag-soon {
  background: rgba(255, 201, 91, 0.1);
  color: #ffd986;
  border-color: rgba(255, 201, 91, 0.22);
}

.tmm-tag-maintenance {
  background: rgba(255, 91, 91, 0.1);
  color: #ffabab;
  border-color: rgba(255, 91, 91, 0.22);
}

.tmm-game-code {
  color: rgba(230, 240, 255, 0.42);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.tmm-game-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 42px 0 28px;
  border-radius: 28px;
  border: 1px solid rgba(0, 255, 255, 0.26);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(0, 255, 255, 0.20), rgba(255, 0, 210, 0.14));
  color: #ffffff;
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(0, 255, 255, 0.18);
}

.tmm-game-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
}

.tmm-game-card p {
  min-height: 74px;
  margin: 12px 0 20px;
  color: rgba(230, 240, 255, 0.65);
  line-height: 1.72;
}

.tmm-game-meta {
  margin-bottom: 18px;
  color: rgba(230, 240, 255, 0.52);
  font-size: 13px;
}

.tmm-game-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  text-decoration: none;
  color: #06101c;
  font-weight: 800;
  background: linear-gradient(90deg, #75fbff, #ff7ee6);
  box-shadow: 0 0 28px rgba(0, 255, 255, 0.18);
}

.tmm-game-enter.tmm-disabled {
  color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  pointer-events: none;
}

.tmm-lab-console {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  margin-top: 22px;
  padding: 26px;
  border-radius: 30px;
}

.tmm-console-left h2 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
}

.tmm-console-left p {
  margin: 12px 0 0;
  color: rgba(230, 240, 255, 0.68);
  line-height: 1.8;
}

.tmm-console-right {
  display: grid;
  gap: 10px;
}

.tmm-console-line {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.tmm-console-line span {
  color: rgba(230, 240, 255, 0.62);
}

.tmm-console-line strong {
  color: #76fbff;
}

.tmm-lobby-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(860px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(9, 17, 37, 0.92), rgba(11, 21, 48, 0.82));
  z-index: 30;
}

.tmm-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
  padding: 10px 8px;
  border-radius: 18px;
  color: #dff8ff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tmm-bottom-nav-item:hover,
.tmm-bottom-nav-item:focus {
  color: #ffffff;
  transform: translateY(-2px);
  border-color: rgba(0, 255, 255, 0.38);
  background: linear-gradient(145deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 210, 0.08));
}

.tmm-bottom-nav-item.is-placeholder {
  cursor: default;
}

.tmm-bottom-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 20px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 35%), linear-gradient(145deg, rgba(0, 255, 255, 0.18), rgba(255, 0, 210, 0.1));
  border: 1px solid rgba(0, 255, 255, 0.16);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.12);
}

.tmm-bottom-nav-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 1200px) {
  .tmm-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .tmm-player-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tmm-lab-console {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .tmm-game-lobby {
    --tmm-current-bg-image: var(--tmm-bg-mobile-image);
    --tmm-current-bg-position: var(--tmm-bg-position-mobile);
    padding: 104px var(--tmm-side-padding-mobile) calc(156px + env(safe-area-inset-bottom, 0px));
  }

  .tmm-lobby-hero p {
    font-size: 16px;
  }

  .tmm-game-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tmm-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tmm-player-panel {
    grid-template-columns: 1fr;
  }

  .tmm-lobby-bottom-nav {
    gap: 8px;
    padding: 10px;
    width: calc(100vw - 16px);
    border-radius: 20px;
  }

  .tmm-bottom-nav-item {
    min-height: 66px;
    padding: 8px 6px;
    border-radius: 16px;
  }

  .tmm-bottom-nav-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
    border-radius: 12px;
  }

  .tmm-bottom-nav-label {
    font-size: 12px;
    letter-spacing: 0.04em;
  }
}

/* v0.5.0 component image layer system */
.tmm-player-card,
.tmm-game-card,
.tmm-lab-console,
.tmm-console-line,
.tmm-lobby-bottom-nav,
.tmm-bottom-nav-item,
.tmm-game-enter,
.tmm-lobby-filter-btn,
.tmm-lobby-badge,
.tmm-game-icon,
.tmm-bottom-nav-icon {
  position: relative;
  overflow: hidden;
}

.tmm-player-card > *,
.tmm-game-card > *,
.tmm-lab-console > *,
.tmm-console-line > *,
.tmm-lobby-bottom-nav > *,
.tmm-bottom-nav-item > *,
.tmm-game-enter > *,
.tmm-lobby-filter-btn > *,
.tmm-lobby-badge > *,
.tmm-game-icon > *,
.tmm-bottom-nav-icon > * {
  position: relative;
  z-index: 1;
}

.tmm-player-card::after,
.tmm-game-card::after,
.tmm-lab-console::after,
.tmm-console-line::after,
.tmm-lobby-bottom-nav::after,
.tmm-bottom-nav-item::after,
.tmm-game-enter::after,
.tmm-lobby-filter-btn::after,
.tmm-lobby-badge::after,
.tmm-game-icon::after,
.tmm-bottom-nav-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

.tmm-player-card::after {
  background-image: var(--tmm-img-player-card-desktop, none);
  background-position: var(--tmm-img-player-card-pos-desktop, center center);
  opacity: var(--tmm-img-player-card-opacity, 1);
}

.tmm-game-card::before {
  z-index: 0;
}

.tmm-game-card::after {
  background-image: var(--tmm-img-game-card-custom-desktop, var(--tmm-img-game-card-desktop, none));
  background-position: var(--tmm-img-game-card-pos-desktop, center center);
  opacity: var(--tmm-img-game-card-opacity, 1);
}

.tmm-game-card.tmm-game-featured::after {
  background-image: var(--tmm-img-game-card-custom-desktop, var(--tmm-img-featured-game-card-desktop, var(--tmm-img-game-card-desktop, none)));
  background-position: var(--tmm-img-featured-game-card-pos-desktop, var(--tmm-img-game-card-pos-desktop, center center));
  opacity: var(--tmm-img-featured-game-card-opacity, var(--tmm-img-game-card-opacity, 1));
}

.tmm-lab-console::after {
  background-image: var(--tmm-img-notice-panel-desktop, none);
  background-position: var(--tmm-img-notice-panel-pos-desktop, center center);
  opacity: var(--tmm-img-notice-panel-opacity, 1);
}

.tmm-console-line::after {
  background-image: var(--tmm-img-console-line-desktop, none);
  background-position: var(--tmm-img-console-line-pos-desktop, center center);
  opacity: var(--tmm-img-console-line-opacity, 1);
}

.tmm-lobby-bottom-nav::after {
  background-image: var(--tmm-img-bottom-bar-desktop, none);
  background-position: var(--tmm-img-bottom-bar-pos-desktop, center center);
  opacity: var(--tmm-img-bottom-bar-opacity, 1);
}

.tmm-bottom-nav-item::after {
  background-image: var(--tmm-img-bottom-nav-custom-desktop, var(--tmm-img-bottom-nav-item-desktop, none));
  background-position: var(--tmm-img-bottom-nav-item-pos-desktop, center center);
  opacity: var(--tmm-img-bottom-nav-item-opacity, 1);
}

.tmm-bottom-nav-icon::after {
  background-image: var(--tmm-img-bottom-nav-icon-custom-desktop, none);
  background-position: center center;
  background-size: cover;
  opacity: 1;
}

.tmm-game-enter::after {
  background-image: var(--tmm-img-game-button-custom-desktop, var(--tmm-img-primary-button-desktop, none));
  background-position: var(--tmm-img-primary-button-pos-desktop, center center);
  opacity: var(--tmm-img-primary-button-opacity, 1);
}

.tmm-game-enter.tmm-disabled::after {
  background-image: var(--tmm-img-game-button-custom-desktop, var(--tmm-img-disabled-button-desktop, none));
  background-position: var(--tmm-img-disabled-button-pos-desktop, center center);
  opacity: var(--tmm-img-disabled-button-opacity, 1);
}

.tmm-lobby-filter-btn::after {
  background-image: var(--tmm-img-filter-button-desktop, none);
  background-position: var(--tmm-img-filter-button-pos-desktop, center center);
  opacity: var(--tmm-img-filter-button-opacity, 1);
}

.tmm-lobby-badge::after {
  background-image: var(--tmm-img-badge-desktop, none);
  background-position: var(--tmm-img-badge-pos-desktop, center center);
  opacity: var(--tmm-img-badge-opacity, 1);
}

.tmm-game-icon::after {
  background-image: var(--tmm-img-game-icon-custom-desktop, var(--tmm-img-game-icon-desktop, none));
  background-position: var(--tmm-img-game-icon-pos-desktop, center center);
  opacity: var(--tmm-img-game-icon-opacity, 1);
}

@media (max-width: 767px) {
  .tmm-player-card::after {
    background-image: var(--tmm-img-player-card-mobile, var(--tmm-img-player-card-desktop, none));
    background-position: var(--tmm-img-player-card-pos-mobile, center center);
  }

  .tmm-game-card::after {
    background-image: var(--tmm-img-game-card-custom-mobile, var(--tmm-img-game-card-mobile, var(--tmm-img-game-card-desktop, none)));
    background-position: var(--tmm-img-game-card-pos-mobile, center center);
  }

  .tmm-game-card.tmm-game-featured::after {
    background-image: var(--tmm-img-game-card-custom-mobile, var(--tmm-img-featured-game-card-mobile, var(--tmm-img-featured-game-card-desktop, var(--tmm-img-game-card-mobile, var(--tmm-img-game-card-desktop, none)))));
    background-position: var(--tmm-img-featured-game-card-pos-mobile, var(--tmm-img-game-card-pos-mobile, center center));
  }

  .tmm-lab-console::after {
    background-image: var(--tmm-img-notice-panel-mobile, var(--tmm-img-notice-panel-desktop, none));
    background-position: var(--tmm-img-notice-panel-pos-mobile, center center);
  }

  .tmm-console-line::after {
    background-image: var(--tmm-img-console-line-mobile, var(--tmm-img-console-line-desktop, none));
    background-position: var(--tmm-img-console-line-pos-mobile, center center);
  }

  .tmm-lobby-bottom-nav::after {
    background-image: var(--tmm-img-bottom-bar-mobile, var(--tmm-img-bottom-bar-desktop, none));
    background-position: var(--tmm-img-bottom-bar-pos-mobile, center center);
  }

  .tmm-bottom-nav-item::after {
    background-image: var(--tmm-img-bottom-nav-custom-mobile, var(--tmm-img-bottom-nav-item-mobile, var(--tmm-img-bottom-nav-item-desktop, none)));
    background-position: var(--tmm-img-bottom-nav-item-pos-mobile, center center);
  }

  .tmm-bottom-nav-icon::after {
    background-image: var(--tmm-img-bottom-nav-icon-custom-mobile, var(--tmm-img-bottom-nav-icon-custom-desktop, none));
  }

  .tmm-game-enter::after {
    background-image: var(--tmm-img-game-button-custom-mobile, var(--tmm-img-primary-button-mobile, var(--tmm-img-primary-button-desktop, none)));
    background-position: var(--tmm-img-primary-button-pos-mobile, center center);
  }

  .tmm-game-enter.tmm-disabled::after {
    background-image: var(--tmm-img-game-button-custom-mobile, var(--tmm-img-disabled-button-mobile, var(--tmm-img-disabled-button-desktop, none)));
    background-position: var(--tmm-img-disabled-button-pos-mobile, center center);
  }

  .tmm-lobby-filter-btn::after {
    background-image: var(--tmm-img-filter-button-mobile, var(--tmm-img-filter-button-desktop, none));
    background-position: var(--tmm-img-filter-button-pos-mobile, center center);
  }

  .tmm-lobby-badge::after {
    background-image: var(--tmm-img-badge-mobile, var(--tmm-img-badge-desktop, none));
    background-position: var(--tmm-img-badge-pos-mobile, center center);
  }

  .tmm-game-icon::after {
    background-image: var(--tmm-img-game-icon-custom-mobile, var(--tmm-img-game-icon-mobile, var(--tmm-img-game-icon-desktop, none)));
    background-position: var(--tmm-img-game-icon-pos-mobile, center center);
  }
}

/* v0.5.1: stable fixed viewport background without cover/attachment jitter */
.tmm-game-lobby::before {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-size: 100% 100%;
  background-attachment: scroll;
  background-repeat: no-repeat;
  will-change: auto;
  transform: translateZ(0);
}

.tmm-player-card {
  max-width: var(--tmm-img-player-card-width-desktop, none);
  height: var(--tmm-img-player-card-height-desktop, auto);
  transform: translate(var(--tmm-img-player-card-x-desktop, 0px), var(--tmm-img-player-card-y-desktop, 0px));
}

.tmm-player-card::after {
  background-size: var(--tmm-img-player-card-size-desktop, cover);
}

.tmm-game-card {
  max-width: var(--tmm-img-game-card-custom-width-desktop, var(--tmm-img-game-card-width-desktop, none));
  height: var(--tmm-img-game-card-custom-height-desktop, var(--tmm-img-game-card-height-desktop, auto));
  transform: translate(var(--tmm-img-game-card-custom-x-desktop, var(--tmm-img-game-card-x-desktop, 0px)), var(--tmm-img-game-card-custom-y-desktop, var(--tmm-img-game-card-y-desktop, 0px)));
}

.tmm-game-card:hover {
  transform: translate(var(--tmm-img-game-card-custom-x-desktop, var(--tmm-img-game-card-x-desktop, 0px)), var(--tmm-img-game-card-custom-y-desktop, var(--tmm-img-game-card-y-desktop, 0px))) translateY(-4px);
}

.tmm-game-card::after {
  background-size: var(--tmm-img-game-card-custom-size-desktop, var(--tmm-img-game-card-size-desktop, cover));
}

.tmm-game-card.tmm-game-featured {
  max-width: var(--tmm-img-game-card-custom-width-desktop, var(--tmm-img-featured-game-card-width-desktop, var(--tmm-img-game-card-width-desktop, none)));
  height: var(--tmm-img-game-card-custom-height-desktop, var(--tmm-img-featured-game-card-height-desktop, var(--tmm-img-game-card-height-desktop, auto)));
  transform: translate(var(--tmm-img-game-card-custom-x-desktop, var(--tmm-img-featured-game-card-x-desktop, var(--tmm-img-game-card-x-desktop, 0px))), var(--tmm-img-game-card-custom-y-desktop, var(--tmm-img-featured-game-card-y-desktop, var(--tmm-img-game-card-y-desktop, 0px))));
}

.tmm-game-card.tmm-game-featured:hover {
  transform: translate(var(--tmm-img-game-card-custom-x-desktop, var(--tmm-img-featured-game-card-x-desktop, var(--tmm-img-game-card-x-desktop, 0px))), var(--tmm-img-game-card-custom-y-desktop, var(--tmm-img-featured-game-card-y-desktop, var(--tmm-img-game-card-y-desktop, 0px)))) translateY(-4px);
}

.tmm-game-card.tmm-game-featured::after {
  background-size: var(--tmm-img-game-card-custom-size-desktop, var(--tmm-img-featured-game-card-size-desktop, var(--tmm-img-game-card-size-desktop, cover)));
}

.tmm-lab-console {
  max-width: var(--tmm-img-notice-panel-width-desktop, none);
  height: var(--tmm-img-notice-panel-height-desktop, auto);
  transform: translate(var(--tmm-img-notice-panel-x-desktop, 0px), var(--tmm-img-notice-panel-y-desktop, 0px));
}

.tmm-lab-console::after {
  background-size: var(--tmm-img-notice-panel-size-desktop, cover);
}

.tmm-console-line {
  max-width: var(--tmm-img-console-line-width-desktop, none);
  height: var(--tmm-img-console-line-height-desktop, auto);
  transform: translate(var(--tmm-img-console-line-x-desktop, 0px), var(--tmm-img-console-line-y-desktop, 0px));
}

.tmm-console-line::after {
  background-size: var(--tmm-img-console-line-size-desktop, cover);
}

.tmm-lobby-bottom-nav {
  max-width: var(--tmm-img-bottom-bar-width-desktop, none);
  height: var(--tmm-img-bottom-bar-height-desktop, auto);
  translate: var(--tmm-img-bottom-bar-x-desktop, 0px) var(--tmm-img-bottom-bar-y-desktop, 0px);
}

.tmm-lobby-bottom-nav::after {
  background-size: var(--tmm-img-bottom-bar-size-desktop, cover);
}

.tmm-bottom-nav-item {
  max-width: var(--tmm-img-bottom-nav-custom-width-desktop, var(--tmm-img-bottom-nav-item-width-desktop, none));
  height: var(--tmm-img-bottom-nav-custom-height-desktop, var(--tmm-img-bottom-nav-item-height-desktop, auto));
  transform: translate(var(--tmm-img-bottom-nav-custom-x-desktop, var(--tmm-img-bottom-nav-item-x-desktop, 0px)), var(--tmm-img-bottom-nav-custom-y-desktop, var(--tmm-img-bottom-nav-item-y-desktop, 0px)));
}

.tmm-bottom-nav-item:hover,
.tmm-bottom-nav-item:focus {
  transform: translate(var(--tmm-img-bottom-nav-custom-x-desktop, var(--tmm-img-bottom-nav-item-x-desktop, 0px)), var(--tmm-img-bottom-nav-custom-y-desktop, var(--tmm-img-bottom-nav-item-y-desktop, 0px))) translateY(-2px);
}

.tmm-bottom-nav-item::after {
  background-size: var(--tmm-img-bottom-nav-custom-size-desktop, var(--tmm-img-bottom-nav-item-size-desktop, cover));
}

.tmm-bottom-nav-icon {
  width: var(--tmm-img-bottom-nav-icon-custom-width-desktop, var(--tmm-img-bottom-nav-icon-width-desktop, 38px));
  height: var(--tmm-img-bottom-nav-icon-custom-height-desktop, var(--tmm-img-bottom-nav-icon-height-desktop, 38px));
  transform: translate(var(--tmm-img-bottom-nav-icon-custom-x-desktop, var(--tmm-img-bottom-nav-icon-x-desktop, 0px)), var(--tmm-img-bottom-nav-icon-custom-y-desktop, var(--tmm-img-bottom-nav-icon-y-desktop, 0px)));
}

.tmm-bottom-nav-icon::after {
  background-size: var(--tmm-img-bottom-nav-icon-custom-size-desktop, var(--tmm-img-bottom-nav-icon-size-desktop, cover));
}

.tmm-game-enter {
  max-width: var(--tmm-img-game-button-custom-width-desktop, var(--tmm-img-primary-button-width-desktop, none));
  height: var(--tmm-img-game-button-custom-height-desktop, var(--tmm-img-primary-button-height-desktop, auto));
  transform: translate(var(--tmm-img-game-button-custom-x-desktop, var(--tmm-img-primary-button-x-desktop, 0px)), var(--tmm-img-game-button-custom-y-desktop, var(--tmm-img-primary-button-y-desktop, 0px)));
}

.tmm-game-enter::after {
  background-size: var(--tmm-img-game-button-custom-size-desktop, var(--tmm-img-primary-button-size-desktop, cover));
}

.tmm-game-enter.tmm-disabled {
  max-width: var(--tmm-img-game-button-custom-width-desktop, var(--tmm-img-disabled-button-width-desktop, none));
  height: var(--tmm-img-game-button-custom-height-desktop, var(--tmm-img-disabled-button-height-desktop, auto));
  transform: translate(var(--tmm-img-game-button-custom-x-desktop, var(--tmm-img-disabled-button-x-desktop, 0px)), var(--tmm-img-game-button-custom-y-desktop, var(--tmm-img-disabled-button-y-desktop, 0px)));
}

.tmm-game-enter.tmm-disabled::after {
  background-size: var(--tmm-img-game-button-custom-size-desktop, var(--tmm-img-disabled-button-size-desktop, cover));
}

.tmm-lobby-filter-btn {
  max-width: var(--tmm-img-filter-button-width-desktop, none);
  height: var(--tmm-img-filter-button-height-desktop, auto);
  transform: translate(var(--tmm-img-filter-button-x-desktop, 0px), var(--tmm-img-filter-button-y-desktop, 0px));
}

.tmm-lobby-filter-btn::after {
  background-size: var(--tmm-img-filter-button-size-desktop, cover);
}

.tmm-lobby-badge {
  max-width: var(--tmm-img-badge-width-desktop, none);
  height: var(--tmm-img-badge-height-desktop, auto);
  transform: translate(var(--tmm-img-badge-x-desktop, 0px), var(--tmm-img-badge-y-desktop, 0px));
}

.tmm-lobby-badge::after {
  background-size: var(--tmm-img-badge-size-desktop, cover);
}

.tmm-game-icon {
  width: var(--tmm-img-game-icon-custom-width-desktop, var(--tmm-img-game-icon-width-desktop, 96px));
  height: var(--tmm-img-game-icon-custom-height-desktop, var(--tmm-img-game-icon-height-desktop, 96px));
  transform: translate(var(--tmm-img-game-icon-custom-x-desktop, var(--tmm-img-game-icon-x-desktop, 0px)), var(--tmm-img-game-icon-custom-y-desktop, var(--tmm-img-game-icon-y-desktop, 0px)));
}

.tmm-game-icon::after {
  background-size: var(--tmm-img-game-icon-custom-size-desktop, var(--tmm-img-game-icon-size-desktop, cover));
}

@media (max-width: 767px) {
  .tmm-game-lobby::before {
    background-size: cover;
    background-position: var(--tmm-bg-position-mobile);
  }

  .tmm-player-card {
    max-width: var(--tmm-img-player-card-width-mobile, var(--tmm-img-player-card-width-desktop, none));
    height: var(--tmm-img-player-card-height-mobile, var(--tmm-img-player-card-height-desktop, auto));
    transform: translate(var(--tmm-img-player-card-x-mobile, var(--tmm-img-player-card-x-desktop, 0px)), var(--tmm-img-player-card-y-mobile, var(--tmm-img-player-card-y-desktop, 0px)));
  }

  .tmm-player-card::after {
    background-size: var(--tmm-img-player-card-size-mobile, var(--tmm-img-player-card-size-desktop, cover));
  }

  .tmm-game-card,
  .tmm-game-card:hover {
    max-width: var(--tmm-img-game-card-custom-width-mobile, var(--tmm-img-game-card-width-mobile, var(--tmm-img-game-card-width-desktop, none)));
    height: var(--tmm-img-game-card-custom-height-mobile, var(--tmm-img-game-card-height-mobile, var(--tmm-img-game-card-height-desktop, auto)));
    transform: translate(var(--tmm-img-game-card-custom-x-mobile, var(--tmm-img-game-card-x-mobile, var(--tmm-img-game-card-x-desktop, 0px))), var(--tmm-img-game-card-custom-y-mobile, var(--tmm-img-game-card-y-mobile, var(--tmm-img-game-card-y-desktop, 0px))));
  }

  .tmm-game-card::after {
    background-size: var(--tmm-img-game-card-custom-size-mobile, var(--tmm-img-game-card-size-mobile, var(--tmm-img-game-card-size-desktop, cover)));
  }

  .tmm-game-card.tmm-game-featured,
  .tmm-game-card.tmm-game-featured:hover {
    max-width: var(--tmm-img-game-card-custom-width-mobile, var(--tmm-img-featured-game-card-width-mobile, var(--tmm-img-featured-game-card-width-desktop, var(--tmm-img-game-card-width-mobile, none))));
    height: var(--tmm-img-game-card-custom-height-mobile, var(--tmm-img-featured-game-card-height-mobile, var(--tmm-img-featured-game-card-height-desktop, var(--tmm-img-game-card-height-mobile, auto))));
    transform: translate(var(--tmm-img-game-card-custom-x-mobile, var(--tmm-img-featured-game-card-x-mobile, var(--tmm-img-featured-game-card-x-desktop, var(--tmm-img-game-card-x-mobile, 0px)))), var(--tmm-img-game-card-custom-y-mobile, var(--tmm-img-featured-game-card-y-mobile, var(--tmm-img-featured-game-card-y-desktop, var(--tmm-img-game-card-y-mobile, 0px)))));
  }

  .tmm-game-card.tmm-game-featured::after {
    background-size: var(--tmm-img-game-card-custom-size-mobile, var(--tmm-img-featured-game-card-size-mobile, var(--tmm-img-featured-game-card-size-desktop, var(--tmm-img-game-card-size-mobile, cover))));
  }

  .tmm-lab-console {
    max-width: var(--tmm-img-notice-panel-width-mobile, var(--tmm-img-notice-panel-width-desktop, none));
    height: var(--tmm-img-notice-panel-height-mobile, var(--tmm-img-notice-panel-height-desktop, auto));
    transform: translate(var(--tmm-img-notice-panel-x-mobile, var(--tmm-img-notice-panel-x-desktop, 0px)), var(--tmm-img-notice-panel-y-mobile, var(--tmm-img-notice-panel-y-desktop, 0px)));
  }

  .tmm-lab-console::after {
    background-size: var(--tmm-img-notice-panel-size-mobile, var(--tmm-img-notice-panel-size-desktop, cover));
  }

  .tmm-console-line {
    max-width: var(--tmm-img-console-line-width-mobile, var(--tmm-img-console-line-width-desktop, none));
    height: var(--tmm-img-console-line-height-mobile, var(--tmm-img-console-line-height-desktop, auto));
    transform: translate(var(--tmm-img-console-line-x-mobile, var(--tmm-img-console-line-x-desktop, 0px)), var(--tmm-img-console-line-y-mobile, var(--tmm-img-console-line-y-desktop, 0px)));
  }

  .tmm-console-line::after {
    background-size: var(--tmm-img-console-line-size-mobile, var(--tmm-img-console-line-size-desktop, cover));
  }

  .tmm-lobby-bottom-nav {
    max-width: var(--tmm-img-bottom-bar-width-mobile, var(--tmm-img-bottom-bar-width-desktop, none));
    height: var(--tmm-img-bottom-bar-height-mobile, var(--tmm-img-bottom-bar-height-desktop, auto));
    translate: var(--tmm-img-bottom-bar-x-mobile, var(--tmm-img-bottom-bar-x-desktop, 0px)) var(--tmm-img-bottom-bar-y-mobile, var(--tmm-img-bottom-bar-y-desktop, 0px));
  }

  .tmm-lobby-bottom-nav::after {
    background-size: var(--tmm-img-bottom-bar-size-mobile, var(--tmm-img-bottom-bar-size-desktop, cover));
  }

  .tmm-bottom-nav-item,
  .tmm-bottom-nav-item:hover,
  .tmm-bottom-nav-item:focus {
    max-width: var(--tmm-img-bottom-nav-custom-width-mobile, var(--tmm-img-bottom-nav-item-width-mobile, var(--tmm-img-bottom-nav-item-width-desktop, none)));
    height: var(--tmm-img-bottom-nav-custom-height-mobile, var(--tmm-img-bottom-nav-item-height-mobile, var(--tmm-img-bottom-nav-item-height-desktop, auto)));
    transform: translate(var(--tmm-img-bottom-nav-custom-x-mobile, var(--tmm-img-bottom-nav-item-x-mobile, var(--tmm-img-bottom-nav-item-x-desktop, 0px))), var(--tmm-img-bottom-nav-custom-y-mobile, var(--tmm-img-bottom-nav-item-y-mobile, var(--tmm-img-bottom-nav-item-y-desktop, 0px))));
  }

  .tmm-bottom-nav-item::after {
    background-size: var(--tmm-img-bottom-nav-custom-size-mobile, var(--tmm-img-bottom-nav-item-size-mobile, var(--tmm-img-bottom-nav-item-size-desktop, cover)));
  }

  .tmm-bottom-nav-icon {
    width: var(--tmm-img-bottom-nav-icon-custom-width-mobile, var(--tmm-img-bottom-nav-icon-width-mobile, var(--tmm-img-bottom-nav-icon-width-desktop, 34px)));
    height: var(--tmm-img-bottom-nav-icon-custom-height-mobile, var(--tmm-img-bottom-nav-icon-height-mobile, var(--tmm-img-bottom-nav-icon-height-desktop, 34px)));
    transform: translate(var(--tmm-img-bottom-nav-icon-custom-x-mobile, var(--tmm-img-bottom-nav-icon-x-mobile, var(--tmm-img-bottom-nav-icon-x-desktop, 0px))), var(--tmm-img-bottom-nav-icon-custom-y-mobile, var(--tmm-img-bottom-nav-icon-y-mobile, var(--tmm-img-bottom-nav-icon-y-desktop, 0px))));
  }

  .tmm-bottom-nav-icon::after {
    background-size: var(--tmm-img-bottom-nav-icon-custom-size-mobile, var(--tmm-img-bottom-nav-icon-size-mobile, var(--tmm-img-bottom-nav-icon-size-desktop, cover)));
  }

  .tmm-game-enter {
    max-width: var(--tmm-img-game-button-custom-width-mobile, var(--tmm-img-primary-button-width-mobile, var(--tmm-img-primary-button-width-desktop, none)));
    height: var(--tmm-img-game-button-custom-height-mobile, var(--tmm-img-primary-button-height-mobile, var(--tmm-img-primary-button-height-desktop, auto)));
    transform: translate(var(--tmm-img-game-button-custom-x-mobile, var(--tmm-img-primary-button-x-mobile, var(--tmm-img-primary-button-x-desktop, 0px))), var(--tmm-img-game-button-custom-y-mobile, var(--tmm-img-primary-button-y-mobile, var(--tmm-img-primary-button-y-desktop, 0px))));
  }

  .tmm-game-enter::after {
    background-size: var(--tmm-img-game-button-custom-size-mobile, var(--tmm-img-primary-button-size-mobile, var(--tmm-img-primary-button-size-desktop, cover)));
  }

  .tmm-game-enter.tmm-disabled {
    max-width: var(--tmm-img-game-button-custom-width-mobile, var(--tmm-img-disabled-button-width-mobile, var(--tmm-img-disabled-button-width-desktop, none)));
    height: var(--tmm-img-game-button-custom-height-mobile, var(--tmm-img-disabled-button-height-mobile, var(--tmm-img-disabled-button-height-desktop, auto)));
    transform: translate(var(--tmm-img-game-button-custom-x-mobile, var(--tmm-img-disabled-button-x-mobile, var(--tmm-img-disabled-button-x-desktop, 0px))), var(--tmm-img-game-button-custom-y-mobile, var(--tmm-img-disabled-button-y-mobile, var(--tmm-img-disabled-button-y-desktop, 0px))));
  }

  .tmm-game-enter.tmm-disabled::after {
    background-size: var(--tmm-img-game-button-custom-size-mobile, var(--tmm-img-disabled-button-size-mobile, var(--tmm-img-disabled-button-size-desktop, cover)));
  }

  .tmm-lobby-filter-btn {
    max-width: var(--tmm-img-filter-button-width-mobile, var(--tmm-img-filter-button-width-desktop, none));
    height: var(--tmm-img-filter-button-height-mobile, var(--tmm-img-filter-button-height-desktop, auto));
    transform: translate(var(--tmm-img-filter-button-x-mobile, var(--tmm-img-filter-button-x-desktop, 0px)), var(--tmm-img-filter-button-y-mobile, var(--tmm-img-filter-button-y-desktop, 0px)));
  }

  .tmm-lobby-filter-btn::after {
    background-size: var(--tmm-img-filter-button-size-mobile, var(--tmm-img-filter-button-size-desktop, cover));
  }

  .tmm-lobby-badge {
    max-width: var(--tmm-img-badge-width-mobile, var(--tmm-img-badge-width-desktop, none));
    height: var(--tmm-img-badge-height-mobile, var(--tmm-img-badge-height-desktop, auto));
    transform: translate(var(--tmm-img-badge-x-mobile, var(--tmm-img-badge-x-desktop, 0px)), var(--tmm-img-badge-y-mobile, var(--tmm-img-badge-y-desktop, 0px)));
  }

  .tmm-lobby-badge::after {
    background-size: var(--tmm-img-badge-size-mobile, var(--tmm-img-badge-size-desktop, cover));
  }

  .tmm-game-icon {
    width: var(--tmm-img-game-icon-custom-width-mobile, var(--tmm-img-game-icon-width-mobile, var(--tmm-img-game-icon-width-desktop, 96px)));
    height: var(--tmm-img-game-icon-custom-height-mobile, var(--tmm-img-game-icon-height-mobile, var(--tmm-img-game-icon-height-desktop, 96px)));
    transform: translate(var(--tmm-img-game-icon-custom-x-mobile, var(--tmm-img-game-icon-x-mobile, var(--tmm-img-game-icon-x-desktop, 0px))), var(--tmm-img-game-icon-custom-y-mobile, var(--tmm-img-game-icon-y-mobile, var(--tmm-img-game-icon-y-desktop, 0px))));
  }

  .tmm-game-icon::after {
    background-size: var(--tmm-img-game-icon-custom-size-mobile, var(--tmm-img-game-icon-size-mobile, var(--tmm-img-game-icon-size-desktop, cover)));
  }
}


/* v0.5.1 final overrides: background is fixed to viewport and fully visible; bottom nav is fixed to screen */
.tmm-game-lobby::before {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-size: 100% 100% !important;
  background-position: var(--tmm-current-bg-position) !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

.tmm-lobby-bottom-nav {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  width: min(860px, calc(100vw - 24px));
  z-index: 999999 !important;
  translate: none !important;
  transform: translate(calc(-50% + var(--tmm-img-bottom-bar-x-desktop, 0px)), var(--tmm-img-bottom-bar-y-desktop, 0px)) !important;
}

@media (max-width: 767px) {
  .tmm-game-lobby {
    --tmm-current-bg-image: var(--tmm-bg-mobile-image);
    --tmm-current-bg-position: var(--tmm-bg-position-mobile);
  }

  .tmm-game-lobby::before {
    background-size: 100% 100% !important;
    background-position: var(--tmm-current-bg-position) !important;
  }

  .tmm-lobby-bottom-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100vw - 16px) !important;
    z-index: 999999 !important;
    translate: none !important;
    transform: translate(calc(-50% + var(--tmm-img-bottom-bar-x-mobile, var(--tmm-img-bottom-bar-x-desktop, 0px))), var(--tmm-img-bottom-bar-y-mobile, var(--tmm-img-bottom-bar-y-desktop, 0px))) !important;
  }
}

/* v0.6.1 login lock modal */
.tmm-login-lock-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #f4f7ff;
  pointer-events: auto;
}

.tmm-login-lock-modal.is-hidden {
  display: none !important;
}

.tmm-login-lock-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255, 0, 210, 0.16), transparent 30%),
    rgba(1, 3, 12, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tmm-login-lock-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(140, 235, 255, 0.28);
  background: linear-gradient(145deg, rgba(12, 22, 52, 0.94), rgba(7, 11, 28, 0.92));
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tmm-login-lock-badge {
  display: inline-flex;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.28);
  background: rgba(0, 255, 255, 0.08);
  color: #76fbff;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.tmm-login-lock-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.05;
}

.tmm-login-lock-panel p {
  margin: 14px 0 20px;
  color: rgba(230, 240, 255, 0.72);
  line-height: 1.75;
}

.tmm-login-lock-content {
  display: grid;
  gap: 14px;
}

.tmm-login-lock-content form,
.tmm-login-lock-content .login,
.tmm-login-lock-content .tmm-member-login,
.tmm-login-lock-content .tmm-ind-login {
  width: 100%;
}

.tmm-login-lock-content input[type="text"],
.tmm-login-lock-content input[type="email"],
.tmm-login-lock-content input[type="password"] {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(140, 235, 255, 0.24);
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  padding: 10px 14px;
}

.tmm-login-lock-content button,
.tmm-login-lock-content input[type="submit"],
.tmm-login-lock-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  color: #06101c;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(90deg, #75fbff, #ff7ee6);
  cursor: pointer;
}

.tmm-login-lock-content small,
.tmm-login-lock-status {
  display: block;
  color: rgba(230, 240, 255, 0.58);
  font-size: 13px;
  line-height: 1.6;
}

.tmm-login-lock-status {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.tmm-game-lobby-login-locked {
  overflow: hidden !important;
}

@media (max-width: 560px) {
  .tmm-login-lock-modal {
    padding: 16px;
  }

  .tmm-login-lock-panel {
    padding: 22px;
    border-radius: 24px;
  }
}


/* v0.6.6 per-component frosted opacity controls */
.tmm-player-card {
  background: linear-gradient(145deg, var(--tmm-frosted-player-card-main, var(--tmm-frosted-bg-main)), var(--tmm-frosted-player-card-soft, var(--tmm-frosted-bg-soft))) !important;
}

.tmm-game-card {
  background: linear-gradient(145deg, var(--tmm-frosted-game-card-main, var(--tmm-frosted-bg-main)), var(--tmm-frosted-game-card-soft, var(--tmm-frosted-bg-soft))) !important;
}

.tmm-game-card.tmm-game-featured,
.tmm-game-featured {
  background: linear-gradient(145deg, var(--tmm-frosted-featured-game-card-main, var(--tmm-frosted-game-card-main, var(--tmm-frosted-bg-main))), var(--tmm-frosted-featured-game-card-soft, var(--tmm-frosted-game-card-soft, var(--tmm-frosted-bg-soft)))) !important;
}

.tmm-lab-console {
  background: linear-gradient(145deg, var(--tmm-frosted-notice-panel-main, var(--tmm-frosted-bg-main)), var(--tmm-frosted-notice-panel-soft, var(--tmm-frosted-bg-soft))) !important;
}

.tmm-console-line {
  background: linear-gradient(145deg, var(--tmm-frosted-console-line-main, rgba(0,0,0,0.24)), var(--tmm-frosted-console-line-soft, rgba(0,0,0,0.08))) !important;
}

.tmm-lobby-bottom-nav {
  background: linear-gradient(145deg, var(--tmm-frosted-bottom-bar-main, rgba(9,17,37,0.92)), var(--tmm-frosted-bottom-bar-soft, rgba(11,21,48,0.82))) !important;
}

.tmm-bottom-nav-item {
  background: linear-gradient(145deg, var(--tmm-frosted-bottom-nav-item-main, var(--tmm-frosted-bg-main)), var(--tmm-frosted-bottom-nav-item-soft, var(--tmm-frosted-bg-soft))) !important;
}

.tmm-bottom-nav-item:hover,
.tmm-bottom-nav-item:focus {
  background: linear-gradient(145deg, var(--tmm-frosted-bottom-nav-item-main, rgba(0,255,255,0.1)), var(--tmm-frosted-bottom-nav-item-soft, rgba(255,0,210,0.08))) !important;
}

.tmm-game-enter {
  background: linear-gradient(90deg, var(--tmm-frosted-primary-button-main, rgba(117,251,255,0.92)), var(--tmm-frosted-primary-button-soft, rgba(255,126,230,0.92))) !important;
}

.tmm-game-enter.tmm-disabled {
  background: linear-gradient(145deg, var(--tmm-frosted-disabled-button-main, rgba(255,255,255,0.08)), var(--tmm-frosted-disabled-button-soft, rgba(255,255,255,0.03))) !important;
}

.tmm-lobby-filter-btn {
  background: linear-gradient(145deg, var(--tmm-frosted-filter-button-main, rgba(255,255,255,0.08)), var(--tmm-frosted-filter-button-soft, rgba(255,255,255,0.03))) !important;
}

.tmm-lobby-badge {
  background: linear-gradient(145deg, var(--tmm-frosted-badge-main, rgba(0,255,255,0.08)), var(--tmm-frosted-badge-soft, rgba(255,255,255,0.02))) !important;
}

.tmm-game-icon {
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.2), transparent 28%), linear-gradient(145deg, var(--tmm-frosted-game-icon-main, rgba(0,255,255,0.2)), var(--tmm-frosted-game-icon-soft, rgba(255,0,210,0.14))) !important;
}

.tmm-bottom-nav-icon {
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 35%), linear-gradient(145deg, var(--tmm-frosted-bottom-nav-item-main, rgba(0,255,255,0.18)), var(--tmm-frosted-bottom-nav-item-soft, rgba(255,0,210,0.1))) !important;
}


/* v0.6.7 effective frosted overlay system
   The previous frosted opacity only changed the element base background. If a custom image was placed on ::after,
   that image covered the base background, so 0% and 11% looked identical. This layer sits above custom images and below text. */
.tmm-player-card > *,
.tmm-game-card > *,
.tmm-lab-console > *,
.tmm-console-line > *,
.tmm-lobby-bottom-nav > *,
.tmm-bottom-nav-item > *,
.tmm-game-enter > *,
.tmm-lobby-filter-btn > *,
.tmm-lobby-badge > *,
.tmm-game-icon > *,
.tmm-bottom-nav-icon > * {
  position: relative;
  z-index: 3 !important;
}

.tmm-player-card::before,
.tmm-game-card::before,
.tmm-lab-console::before,
.tmm-console-line::before,
.tmm-lobby-bottom-nav::before,
.tmm-bottom-nav-item::before,
.tmm-game-enter::before,
.tmm-lobby-filter-btn::before,
.tmm-lobby-badge::before,
.tmm-game-icon::before,
.tmm-bottom-nav-icon::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
}

.tmm-player-card::after,
.tmm-game-card::after,
.tmm-lab-console::after,
.tmm-console-line::after,
.tmm-lobby-bottom-nav::after,
.tmm-bottom-nav-item::after,
.tmm-game-enter::after,
.tmm-lobby-filter-btn::after,
.tmm-lobby-badge::after,
.tmm-game-icon::after,
.tmm-bottom-nav-icon::after {
  z-index: 1 !important;
}

.tmm-player-card {
  border-color: var(--tmm-frosted-player-card-border, rgba(140,235,255,0.18)) !important;
  -webkit-backdrop-filter: blur(var(--tmm-frosted-player-card-blur, 2px)) !important;
  backdrop-filter: blur(var(--tmm-frosted-player-card-blur, 2px)) !important;
}
.tmm-player-card::before {
  background: linear-gradient(145deg, var(--tmm-frosted-player-card-main, transparent), var(--tmm-frosted-player-card-soft, transparent)) !important;
}

.tmm-game-card {
  border-color: var(--tmm-frosted-game-card-border, rgba(140,235,255,0.18)) !important;
  -webkit-backdrop-filter: blur(var(--tmm-frosted-game-card-blur, 2px)) !important;
  backdrop-filter: blur(var(--tmm-frosted-game-card-blur, 2px)) !important;
}
.tmm-game-card::before {
  background: linear-gradient(145deg, var(--tmm-frosted-game-card-main, transparent), var(--tmm-frosted-game-card-soft, transparent)) !important;
}

.tmm-game-card.tmm-game-featured,
.tmm-game-featured {
  border-color: var(--tmm-frosted-featured-game-card-border, var(--tmm-frosted-game-card-border, rgba(140,235,255,0.18))) !important;
  -webkit-backdrop-filter: blur(var(--tmm-frosted-featured-game-card-blur, var(--tmm-frosted-game-card-blur, 2px))) !important;
  backdrop-filter: blur(var(--tmm-frosted-featured-game-card-blur, var(--tmm-frosted-game-card-blur, 2px))) !important;
}
.tmm-game-card.tmm-game-featured::before,
.tmm-game-featured::before {
  background: linear-gradient(145deg, var(--tmm-frosted-featured-game-card-main, var(--tmm-frosted-game-card-main, transparent)), var(--tmm-frosted-featured-game-card-soft, var(--tmm-frosted-game-card-soft, transparent))) !important;
}

.tmm-lab-console {
  border-color: var(--tmm-frosted-notice-panel-border, rgba(140,235,255,0.18)) !important;
  -webkit-backdrop-filter: blur(var(--tmm-frosted-notice-panel-blur, 2px)) !important;
  backdrop-filter: blur(var(--tmm-frosted-notice-panel-blur, 2px)) !important;
}
.tmm-lab-console::before {
  background: linear-gradient(145deg, var(--tmm-frosted-notice-panel-main, transparent), var(--tmm-frosted-notice-panel-soft, transparent)) !important;
}

.tmm-console-line {
  border-color: var(--tmm-frosted-console-line-border, rgba(255,255,255,0.09)) !important;
  -webkit-backdrop-filter: blur(var(--tmm-frosted-console-line-blur, 2px)) !important;
  backdrop-filter: blur(var(--tmm-frosted-console-line-blur, 2px)) !important;
}
.tmm-console-line::before {
  background: linear-gradient(145deg, var(--tmm-frosted-console-line-main, transparent), var(--tmm-frosted-console-line-soft, transparent)) !important;
}

.tmm-lobby-bottom-nav {
  border-color: var(--tmm-frosted-bottom-bar-border, rgba(140,235,255,0.22)) !important;
  -webkit-backdrop-filter: blur(var(--tmm-frosted-bottom-bar-blur, 2px)) !important;
  backdrop-filter: blur(var(--tmm-frosted-bottom-bar-blur, 2px)) !important;
}
.tmm-lobby-bottom-nav::before {
  background: linear-gradient(145deg, var(--tmm-frosted-bottom-bar-main, transparent), var(--tmm-frosted-bottom-bar-soft, transparent)) !important;
}

.tmm-bottom-nav-item {
  border-color: var(--tmm-frosted-bottom-nav-item-border, rgba(255,255,255,0.08)) !important;
  -webkit-backdrop-filter: blur(var(--tmm-frosted-bottom-nav-item-blur, 2px)) !important;
  backdrop-filter: blur(var(--tmm-frosted-bottom-nav-item-blur, 2px)) !important;
}
.tmm-bottom-nav-item::before,
.tmm-bottom-nav-icon::before {
  background: linear-gradient(145deg, var(--tmm-frosted-bottom-nav-item-main, transparent), var(--tmm-frosted-bottom-nav-item-soft, transparent)) !important;
}

.tmm-game-enter {
  border-color: var(--tmm-frosted-primary-button-border, rgba(255,255,255,0)) !important;
  -webkit-backdrop-filter: blur(var(--tmm-frosted-primary-button-blur, 2px)) !important;
  backdrop-filter: blur(var(--tmm-frosted-primary-button-blur, 2px)) !important;
}
.tmm-game-enter::before {
  background: linear-gradient(90deg, var(--tmm-frosted-primary-button-main, transparent), var(--tmm-frosted-primary-button-soft, transparent)) !important;
}

.tmm-game-enter.tmm-disabled {
  border-color: var(--tmm-frosted-disabled-button-border, rgba(255,255,255,0.12)) !important;
  -webkit-backdrop-filter: blur(var(--tmm-frosted-disabled-button-blur, 2px)) !important;
  backdrop-filter: blur(var(--tmm-frosted-disabled-button-blur, 2px)) !important;
}
.tmm-game-enter.tmm-disabled::before {
  background: linear-gradient(145deg, var(--tmm-frosted-disabled-button-main, transparent), var(--tmm-frosted-disabled-button-soft, transparent)) !important;
}

.tmm-lobby-filter-btn {
  border-color: var(--tmm-frosted-filter-button-border, rgba(255,255,255,0.18)) !important;
  -webkit-backdrop-filter: blur(var(--tmm-frosted-filter-button-blur, 2px)) !important;
  backdrop-filter: blur(var(--tmm-frosted-filter-button-blur, 2px)) !important;
}
.tmm-lobby-filter-btn::before {
  background: linear-gradient(145deg, var(--tmm-frosted-filter-button-main, transparent), var(--tmm-frosted-filter-button-soft, transparent)) !important;
}

.tmm-lobby-badge {
  border-color: var(--tmm-frosted-badge-border, rgba(0,255,255,0.34)) !important;
  -webkit-backdrop-filter: blur(var(--tmm-frosted-badge-blur, 2px)) !important;
  backdrop-filter: blur(var(--tmm-frosted-badge-blur, 2px)) !important;
}
.tmm-lobby-badge::before {
  background: linear-gradient(145deg, var(--tmm-frosted-badge-main, transparent), var(--tmm-frosted-badge-soft, transparent)) !important;
}

.tmm-game-icon {
  border-color: var(--tmm-frosted-game-icon-border, rgba(0,255,255,0.26)) !important;
  -webkit-backdrop-filter: blur(var(--tmm-frosted-game-icon-blur, 2px)) !important;
  backdrop-filter: blur(var(--tmm-frosted-game-icon-blur, 2px)) !important;
}
.tmm-game-icon::before {
  background: linear-gradient(145deg, var(--tmm-frosted-game-icon-main, transparent), var(--tmm-frosted-game-icon-soft, transparent)) !important;
}


/* v0.7.1 fixed top HUD: player name / member tier / game coin */
.tmm-game-top-hud {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 0;
  width: 100%;
  padding: 0 18px;
  z-index: 2147482200;
  pointer-events: none;
}

.admin-bar .tmm-game-top-hud {
  top: calc(44px + env(safe-area-inset-top, 0px));
}

@media (min-width: 783px) {
  .admin-bar .tmm-game-top-hud {
    top: calc(44px + env(safe-area-inset-top, 0px));
  }
}

.tmm-game-top-hud-inner {
  width: min(var(--tmm-shell-max-width), calc(100vw - 24px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tmm-top-player-box,
.tmm-top-coin-box {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(140, 235, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(8, 14, 34, 0.9), rgba(19, 26, 58, 0.56)),
    linear-gradient(145deg, var(--tmm-frosted-bg-main), var(--tmm-frosted-bg-soft));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 26px rgba(0, 240, 255, 0.12),
    0 14px 34px rgba(0, 0, 0, 0.34);
}

.tmm-top-player-box::before,
.tmm-top-coin-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 255, 255, 0.18), transparent 32%),
    radial-gradient(circle at 82% 80%, rgba(255, 43, 214, 0.16), transparent 36%);
  opacity: 0.9;
}

.tmm-top-player-box > *,
.tmm-top-coin-box > * {
  position: relative;
  z-index: 1;
}

.tmm-top-player-box {
  min-width: min(360px, 52vw);
  min-height: 58px;
  padding: 10px 18px 9px;
  border-radius: 14px 22px 14px 22px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.tmm-top-player-name {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tmm-top-player-level {
  margin-top: 5px;
  color: rgba(230, 240, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tmm-top-player-level span {
  color: #76fbff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.36);
}

.tmm-top-coin-box {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 7px 7px 7px 12px;
  border-radius: 999px;
  color: #ffffff;
}

.tmm-top-coin-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #1e1200;
  font-size: 14px;
  font-weight: 950;
  background: radial-gradient(circle at 35% 25%, #fff7b8, #ffc64a 50%, #c87a12 100%);
  box-shadow: 0 0 14px rgba(255, 198, 74, 0.48);
}

.tmm-top-coin-value {
  max-width: 180px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.26);
}

.tmm-top-coin-plus {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 120, 255, 0.48);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(145deg, rgba(160, 58, 255, 0.76), rgba(93, 33, 172, 0.82));
  box-shadow: 0 0 16px rgba(165, 82, 255, 0.32);
  opacity: 1;
}

.tmm-top-coin-plus:disabled {
  cursor: default;
}

@media (max-width: 767px) {
  .tmm-game-top-hud {
    top: calc(10px + env(safe-area-inset-top, 0px));
    padding: 0 12px;
  }

  .admin-bar .tmm-game-top-hud {
    top: calc(56px + env(safe-area-inset-top, 0px));
  }

  .tmm-game-top-hud-inner {
    width: calc(100vw - 20px);
    gap: 8px;
  }

  .tmm-top-player-box {
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100vw - 176px);
    min-height: 54px;
    padding: 9px 13px 8px;
    border-radius: 12px 18px 12px 18px;
  }

  .tmm-top-player-name {
    font-size: 15px;
  }

  .tmm-top-player-level {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .tmm-top-coin-box {
    flex: 0 0 auto;
    min-height: 42px;
    gap: 6px;
    padding: 6px 6px 6px 9px;
  }

  .tmm-top-coin-icon {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }

  .tmm-top-coin-value {
    max-width: 72px;
    font-size: 14px;
  }

  .tmm-top-coin-plus {
    width: 29px;
    height: 29px;
    font-size: 19px;
    border-radius: 9px;
  }
}


/* v0.7.1 layout cleanup: player status cards removed, top HUD is the single source of player info */
.tmm-no-player-status-panel .tmm-player-panel {
  display: none !important;
}

.tmm-no-player-status-panel .tmm-lobby-shell {
  padding-top: 8px;
}

.tmm-no-player-status-panel .tmm-lobby-hero {
  margin-bottom: 26px;
}

.tmm-no-player-status-panel .tmm-games-section {
  margin-top: 6px;
}

.tmm-no-player-status-panel .tmm-section-head {
  margin-bottom: 20px;
}

.tmm-no-player-status-panel .tmm-game-grid {
  align-items: stretch;
}

@media (max-width: 767px) {
  .tmm-game-lobby.tmm-no-player-status-panel {
    padding-top: calc(94px + env(safe-area-inset-top, 0px));
  }

  .tmm-no-player-status-panel .tmm-lobby-shell {
    padding-top: 0;
  }

  .tmm-no-player-status-panel .tmm-lobby-hero {
    margin-bottom: 22px;
  }
}


/* v0.7.2 left-side fixed function rail */
.tmm-game-lobby {
  padding-left: calc(var(--tmm-side-padding-desktop) + 112px) !important;
  padding-bottom: 72px !important;
}

.tmm-lobby-bottom-nav {
  position: fixed !important;
  left: max(16px, env(safe-area-inset-left)) !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(var(--tmm-img-bottom-bar-x-desktop, 0px), calc(-50% + var(--tmm-img-bottom-bar-y-desktop, 0px))) !important;
  translate: none !important;
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 14px !important;
  width: 82px !important;
  max-width: 82px !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  z-index: 999999 !important;
  overflow: visible !important;
}

.tmm-lobby-bottom-nav::before {
  display: none !important;
}

.tmm-lobby-bottom-nav::after {
  border-radius: 22px !important;
  opacity: var(--tmm-img-bottom-bar-opacity, 0) !important;
}

.tmm-bottom-nav-item,
.tmm-bottom-nav-item:hover,
.tmm-bottom-nav-item:focus {
  width: 78px !important;
  max-width: 78px !important;
  height: 86px !important;
  min-height: 86px !important;
  padding: 8px 5px !important;
  border-radius: 20px !important;
  transform: translate(var(--tmm-img-bottom-nav-custom-x-desktop, var(--tmm-img-bottom-nav-item-x-desktop, 0px)), var(--tmm-img-bottom-nav-custom-y-desktop, var(--tmm-img-bottom-nav-item-y-desktop, 0px))) !important;
}

.tmm-bottom-nav-item:hover,
.tmm-bottom-nav-item:focus {
  transform: translate(var(--tmm-img-bottom-nav-custom-x-desktop, var(--tmm-img-bottom-nav-item-x-desktop, 0px)), var(--tmm-img-bottom-nav-custom-y-desktop, var(--tmm-img-bottom-nav-item-y-desktop, 0px))) scale(1.035) !important;
}

.tmm-bottom-nav-icon {
  width: 38px !important;
  height: 38px !important;
  font-size: 20px !important;
  border-radius: 14px !important;
  flex: 0 0 auto !important;
}

.tmm-bottom-nav-label {
  font-size: 14px !important;
  line-height: 1.15 !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
  white-space: nowrap !important;
}

@media (min-width: 1280px) {
  .tmm-lobby-bottom-nav {
    left: max(22px, env(safe-area-inset-left)) !important;
    width: 92px !important;
    max-width: 92px !important;
    gap: 16px !important;
  }

  .tmm-bottom-nav-item,
  .tmm-bottom-nav-item:hover,
  .tmm-bottom-nav-item:focus {
    width: 88px !important;
    max-width: 88px !important;
    height: 94px !important;
    min-height: 94px !important;
  }
}

@media (max-width: 767px) {
  .tmm-game-lobby {
    padding-left: calc(var(--tmm-side-padding-mobile) + 86px) !important;
    padding-right: var(--tmm-side-padding-mobile) !important;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .tmm-lobby-bottom-nav {
    left: max(10px, env(safe-area-inset-left)) !important;
    top: 52% !important;
    bottom: auto !important;
    width: 70px !important;
    max-width: 70px !important;
    gap: 10px !important;
    padding: 0 !important;
    transform: translate(var(--tmm-img-bottom-bar-x-mobile, var(--tmm-img-bottom-bar-x-desktop, 0px)), calc(-50% + var(--tmm-img-bottom-bar-y-mobile, var(--tmm-img-bottom-bar-y-desktop, 0px)))) !important;
  }

  .tmm-bottom-nav-item,
  .tmm-bottom-nav-item:hover,
  .tmm-bottom-nav-item:focus {
    width: 66px !important;
    max-width: 66px !important;
    height: 76px !important;
    min-height: 76px !important;
    padding: 7px 4px !important;
    border-radius: 18px !important;
    transform: translate(var(--tmm-img-bottom-nav-custom-x-mobile, var(--tmm-img-bottom-nav-item-x-mobile, var(--tmm-img-bottom-nav-item-x-desktop, 0px))), var(--tmm-img-bottom-nav-custom-y-mobile, var(--tmm-img-bottom-nav-item-y-mobile, var(--tmm-img-bottom-nav-item-y-desktop, 0px)))) !important;
  }

  .tmm-bottom-nav-item:hover,
  .tmm-bottom-nav-item:focus {
    transform: translate(var(--tmm-img-bottom-nav-custom-x-mobile, var(--tmm-img-bottom-nav-item-x-mobile, var(--tmm-img-bottom-nav-item-x-desktop, 0px))), var(--tmm-img-bottom-nav-custom-y-mobile, var(--tmm-img-bottom-nav-item-y-mobile, var(--tmm-img-bottom-nav-item-y-desktop, 0px)))) scale(1.03) !important;
  }

  .tmm-bottom-nav-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
    border-radius: 12px !important;
  }

  .tmm-bottom-nav-label {
    font-size: 12px !important;
    line-height: 1.1 !important;
    white-space: normal !important;
  }
}


/* v0.7.3 left side function rail white-edge fix + detailed controls */
.tmm-game-lobby .tmm-lobby-bottom-nav {
  left: max(var(--tmm-side-nav-left-desktop, 16px), env(safe-area-inset-left)) !important;
  top: var(--tmm-side-nav-top-desktop, 50%) !important;
  gap: var(--tmm-side-nav-gap-desktop, 14px) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.tmm-game-lobby .tmm-lobby-bottom-nav::before,
.tmm-game-lobby .tmm-lobby-bottom-nav::after {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 0 !important;
}

.tmm-game-lobby .tmm-bottom-nav-item,
.tmm-game-lobby .tmm-bottom-nav-item:hover,
.tmm-game-lobby .tmm-bottom-nav-item:focus {
  width: var(--tmm-side-nav-item-width-desktop, 78px) !important;
  max-width: var(--tmm-side-nav-item-width-desktop, 78px) !important;
  height: var(--tmm-side-nav-item-height-desktop, 86px) !important;
  min-height: var(--tmm-side-nav-item-height-desktop, 86px) !important;
  padding: var(--tmm-side-nav-item-padding-desktop, 0px) !important;
  border-radius: var(--tmm-side-nav-item-radius-desktop, 20px) !important;
  background: var(--tmm-side-nav-item-bg, transparent) !important;
  border: 1px solid var(--tmm-side-nav-item-border, transparent) !important;
  box-shadow: 0 12px 24px var(--tmm-side-nav-item-shadow, transparent) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  overflow: hidden !important;
}

.tmm-game-lobby .tmm-bottom-nav-item::before {
  background: transparent !important;
  opacity: 0 !important;
}

.tmm-game-lobby .tmm-bottom-nav-item::after {
  inset: 0 !important;
  background-size: var(--tmm-img-bottom-nav-custom-size-desktop, var(--tmm-img-bottom-nav-item-size-desktop, cover)) !important;
  background-position: var(--tmm-img-bottom-nav-item-pos-desktop, center center) !important;
  background-repeat: no-repeat !important;
  opacity: var(--tmm-img-bottom-nav-item-opacity, 1) !important;
}

.tmm-game-lobby .tmm-bottom-nav-icon {
  width: var(--tmm-side-nav-icon-width-desktop, 38px) !important;
  height: var(--tmm-side-nav-icon-height-desktop, 38px) !important;
  background: var(--tmm-side-nav-icon-bg, transparent) !important;
  border: 1px solid var(--tmm-side-nav-icon-border, transparent) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.tmm-game-lobby .tmm-bottom-nav-icon::before {
  background: transparent !important;
  opacity: 0 !important;
}

.tmm-game-lobby .tmm-bottom-nav-icon::after {
  background-size: var(--tmm-img-bottom-nav-icon-custom-size-desktop, cover) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.tmm-side-nav-hide-labels .tmm-bottom-nav-label {
  display: none !important;
}

.tmm-side-nav-hide-inner-on-image .tmm-bottom-nav-item.tmm-has-item-image .tmm-bottom-nav-icon,
.tmm-side-nav-hide-inner-on-image .tmm-bottom-nav-item.tmm-has-item-image .tmm-bottom-nav-label {
  display: none !important;
}

@media (max-width: 767px) {
  .tmm-game-lobby .tmm-lobby-bottom-nav {
    left: max(var(--tmm-side-nav-left-mobile, 10px), env(safe-area-inset-left)) !important;
    top: var(--tmm-side-nav-top-mobile, 52%) !important;
    gap: var(--tmm-side-nav-gap-mobile, 10px) !important;
  }

  .tmm-game-lobby .tmm-bottom-nav-item,
  .tmm-game-lobby .tmm-bottom-nav-item:hover,
  .tmm-game-lobby .tmm-bottom-nav-item:focus {
    width: var(--tmm-side-nav-item-width-mobile, 66px) !important;
    max-width: var(--tmm-side-nav-item-width-mobile, 66px) !important;
    height: var(--tmm-side-nav-item-height-mobile, 76px) !important;
    min-height: var(--tmm-side-nav-item-height-mobile, 76px) !important;
    padding: var(--tmm-side-nav-item-padding-mobile, 0px) !important;
    border-radius: var(--tmm-side-nav-item-radius-mobile, 18px) !important;
  }

  .tmm-game-lobby .tmm-bottom-nav-item::after {
    background-size: var(--tmm-img-bottom-nav-custom-size-mobile, var(--tmm-img-bottom-nav-item-size-mobile, var(--tmm-img-bottom-nav-custom-size-desktop, var(--tmm-img-bottom-nav-item-size-desktop, cover)))) !important;
  }

  .tmm-game-lobby .tmm-bottom-nav-icon {
    width: var(--tmm-side-nav-icon-width-mobile, 32px) !important;
    height: var(--tmm-side-nav-icon-height-mobile, 32px) !important;
  }
}


/* v0.7.4 left side white-edge transparency control
   0% = visible white edge, 100% = fully transparent white edge. */
.tmm-game-lobby .tmm-bottom-nav-item,
.tmm-game-lobby .tmm-bottom-nav-item:hover,
.tmm-game-lobby .tmm-bottom-nav-item:focus {
  border-color: var(--tmm-side-nav-white-edge, transparent) !important;
  outline: 0 !important;
  box-shadow:
    inset 0 0 0 1px var(--tmm-side-nav-white-edge, transparent),
    0 12px 24px var(--tmm-side-nav-item-shadow, transparent) !important;
  background-color: var(--tmm-side-nav-white-edge-soft, transparent) !important;
}

.tmm-game-lobby .tmm-bottom-nav-item::before {
  opacity: 1 !important;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px var(--tmm-side-nav-white-edge, transparent) !important;
  border-radius: inherit !important;
}

.tmm-game-lobby .tmm-bottom-nav-item::after {
  border-radius: inherit !important;
  box-shadow: inset 0 0 0 1px var(--tmm-side-nav-white-edge, transparent) !important;
}

.tmm-game-lobby .tmm-bottom-nav-icon {
  border-color: var(--tmm-side-nav-white-edge, transparent) !important;
  background-color: var(--tmm-side-nav-white-edge-soft, transparent) !important;
  box-shadow: inset 0 0 0 1px var(--tmm-side-nav-white-edge, transparent) !important;
}

.tmm-game-lobby .tmm-bottom-nav-icon::before,
.tmm-game-lobby .tmm-bottom-nav-icon::after {
  box-shadow: inset 0 0 0 1px var(--tmm-side-nav-white-edge, transparent) !important;
}


/* v0.7.5 left side function rail: force the button base layer fully transparent.
   Uploaded button images remain visible on ::after; only the built-in button background is removed. */
.tmm-game-lobby .tmm-lobby-bottom-nav {
  background: transparent !important;
  background-color: transparent !important;
}

.tmm-game-lobby .tmm-bottom-nav-item,
.tmm-game-lobby .tmm-bottom-nav-item:hover,
.tmm-game-lobby .tmm-bottom-nav-item:focus,
.tmm-game-lobby .tmm-bottom-nav-item:active {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.tmm-game-lobby .tmm-bottom-nav-item::before {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  opacity: 0 !important;
}

.tmm-game-lobby .tmm-bottom-nav-icon,
.tmm-game-lobby .tmm-bottom-nav-icon:hover,
.tmm-game-lobby .tmm-bottom-nav-icon:focus {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.tmm-game-lobby .tmm-bottom-nav-icon::before {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  opacity: 0 !important;
}


/* v0.7.6: left function rail fully removed */
.tmm-game-lobby .tmm-lobby-bottom-nav,
.tmm-lobby-bottom-nav,
.tmm-bottom-nav-item,
.tmm-bottom-nav-icon,
.tmm-bottom-nav-label {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.tmm-game-lobby {
  padding-left: var(--tmm-side-padding-desktop) !important;
}

@media (max-width: 767px) {
  .tmm-game-lobby {
    padding-left: var(--tmm-side-padding-mobile) !important;
  }
}

/* v0.9.4: fixed left shortcut rail test button */
.tmm-game-lobby .tmm-shortcut-rail {
  position: fixed;
  left: max(var(--tmm-shortcut-left-desktop, 18px), env(safe-area-inset-left, 0px));
  top: var(--tmm-shortcut-top-desktop, 50%);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--tmm-shortcut-gap-desktop, 12px);
  z-index: 2147482000;
  pointer-events: auto;
}

.tmm-game-lobby .tmm-shortcut-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tmm-shortcut-button-width-desktop, 68px);
  height: var(--tmm-shortcut-button-height-desktop, 82px);
  min-width: var(--tmm-shortcut-button-width-desktop, 68px);
  min-height: var(--tmm-shortcut-button-height-desktop, 82px);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: var(--tmm-shortcut-button-radius-desktop, 14px);
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tmm-game-lobby .tmm-shortcut-item-image {
  position: absolute;
  inset: 0;
  display: block;
  background-image: var(--tmm-shortcut-first-image-desktop);
  background-size: var(--tmm-shortcut-image-fit, cover);
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: inherit;
  pointer-events: none;
}

.tmm-game-lobby .tmm-shortcut-backpack .tmm-shortcut-item-image {
  background-image: var(--tmm-shortcut-second-image-desktop);
}

.tmm-game-lobby .tmm-shortcut-safe .tmm-shortcut-item-image {
  background-image: var(--tmm-shortcut-third-image-desktop);
}

.tmm-game-lobby .tmm-shortcut-chatroom .tmm-shortcut-item-image {
  background-image: var(--tmm-shortcut-fourth-image-desktop);
}

.tmm-game-lobby .tmm-shortcut-fallback {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  color: #effcff;
  text-align: center;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.75), 0 0 20px rgba(255, 43, 214, 0.45);
}

.tmm-game-lobby .tmm-shortcut-fallback .dashicons {
  width: auto;
  height: auto;
  font-size: 28px;
}

.tmm-game-lobby .tmm-shortcut-label {
  display: block;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.tmm-game-lobby .tmm-shortcut-item.tmm-has-shortcut-image .tmm-shortcut-fallback {
  display: none;
}

.tmm-game-lobby .tmm-shortcut-item:hover,
.tmm-game-lobby .tmm-shortcut-item:focus {
  transform: translateX(2px) scale(1.03);
  filter: drop-shadow(0 0 10px rgba(128, 70, 255, 0.55));
}

@media (max-width: 767px) {
  .tmm-game-lobby .tmm-shortcut-rail {
    left: max(var(--tmm-shortcut-left-mobile, 12px), env(safe-area-inset-left, 0px));
    top: var(--tmm-shortcut-top-mobile, 50%);
    gap: var(--tmm-shortcut-gap-mobile, 10px);
  }

  .tmm-game-lobby .tmm-shortcut-item {
    width: var(--tmm-shortcut-button-width-mobile, 58px);
    height: var(--tmm-shortcut-button-height-mobile, 72px);
    min-width: var(--tmm-shortcut-button-width-mobile, 58px);
    min-height: var(--tmm-shortcut-button-height-mobile, 72px);
    border-radius: var(--tmm-shortcut-button-radius-mobile, 12px);
  }

  .tmm-game-lobby .tmm-shortcut-item-image {
    background-image: var(--tmm-shortcut-first-image-mobile);
  }

  .tmm-game-lobby .tmm-shortcut-backpack .tmm-shortcut-item-image {
    background-image: var(--tmm-shortcut-second-image-mobile);
  }

  .tmm-game-lobby .tmm-shortcut-safe .tmm-shortcut-item-image {
    background-image: var(--tmm-shortcut-third-image-mobile);
  }

  .tmm-game-lobby .tmm-shortcut-chatroom .tmm-shortcut-item-image {
    background-image: var(--tmm-shortcut-fourth-image-mobile);
  }
}


/* v0.9.4: PWA-style single-screen lobby, no vertical page scroll */
html:has(body.tmm-game-lobby-page),
body.tmm-game-lobby-page {
  width: 100% !important;
  min-height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: manipulation;
}

body.tmm-game-lobby-page #page,
body.tmm-game-lobby-page .site,
body.tmm-game-lobby-page .site-content,
body.tmm-game-lobby-page .content-area,
body.tmm-game-lobby-page main,
body.tmm-game-lobby-page article,
body.tmm-game-lobby-page .entry-content {
  max-height: 100dvh !important;
  overflow: hidden !important;
}

body.tmm-game-lobby-page .tmm-game-lobby {
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  padding-top: clamp(78px, 10.5dvh, 118px) !important;
  padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)) !important;
}

body.tmm-game-lobby-page .tmm-lobby-shell {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: clamp(12px, 2dvh, 24px) !important;
}

body.tmm-game-lobby-page .tmm-lobby-hero {
  margin: 0 !important;
  padding-top: clamp(18px, 3dvh, 44px) !important;
  flex: 0 1 auto !important;
}

body.tmm-game-lobby-page .tmm-lobby-hero h1 {
  font-size: clamp(42px, 8vw, 84px) !important;
}

body.tmm-game-lobby-page .tmm-lobby-hero p {
  max-width: min(860px, 76vw) !important;
  font-size: clamp(15px, 1.6vw, 18px) !important;
  line-height: 1.65 !important;
  margin-top: clamp(10px, 1.5dvh, 18px) !important;
}

body.tmm-game-lobby-page .tmm-games-section {
  flex: 0 0 auto !important;
  margin-top: clamp(8px, 1.5dvh, 22px) !important;
}

body.tmm-game-lobby-page .tmm-games-section .tmm-section-head {
  margin-bottom: 0 !important;
}

body.tmm-game-lobby-page .tmm-games-section .tmm-lobby-filter-btn,
body.tmm-game-lobby-page .tmm-game-grid,
body.tmm-game-lobby-page .tmm-lab-console,
body.tmm-game-lobby-page [data-tmm-lobby-section="notice"] {
  display: none !important;
}

@media (max-width: 767px) {
  body.tmm-game-lobby-page .tmm-game-lobby {
    padding-top: clamp(96px, 13dvh, 132px) !important;
  }

  body.tmm-game-lobby-page .tmm-lobby-shell {
    gap: clamp(10px, 1.8dvh, 18px) !important;
  }

  body.tmm-game-lobby-page .tmm-lobby-hero {
    padding-top: clamp(44px, 8dvh, 76px) !important;
  }

  body.tmm-game-lobby-page .tmm-lobby-hero h1 {
    font-size: clamp(40px, 12vw, 62px) !important;
  }

  body.tmm-game-lobby-page .tmm-lobby-hero p {
    max-width: 82vw !important;
    font-size: clamp(14px, 4vw, 18px) !important;
    line-height: 1.55 !important;
  }
}


/* v0.9.4: prevent left shortcut rail from overlapping the main PWA screen */
body.tmm-game-lobby-page .tmm-game-lobby {
  --tmm-pwa-rail-space-desktop: clamp(94px, 7vw, 128px);
  --tmm-pwa-rail-space-mobile: clamp(82px, 21vw, 104px);
}

body.tmm-game-lobby-page .tmm-shortcut-rail {
  top: calc(env(safe-area-inset-top, 0px) + 92px) !important;
  transform: none !important;
  left: max(var(--tmm-shortcut-left-desktop, 18px), env(safe-area-inset-left, 0px)) !important;
  max-height: calc(100dvh - 108px - env(safe-area-inset-bottom, 0px)) !important;
  justify-content: flex-start !important;
}

body.admin-bar.tmm-game-lobby-page .tmm-shortcut-rail {
  top: calc(env(safe-area-inset-top, 0px) + 124px) !important;
}

body.tmm-game-lobby-page .tmm-lobby-shell {
  width: calc(100% - var(--tmm-pwa-rail-space-desktop)) !important;
  max-width: calc(var(--tmm-shell-max-width) - var(--tmm-pwa-rail-space-desktop)) !important;
  margin-left: var(--tmm-pwa-rail-space-desktop) !important;
  margin-right: auto !important;
  padding-right: clamp(8px, 1.2vw, 22px) !important;
  box-sizing: border-box !important;
}

body.tmm-game-lobby-page .tmm-lobby-hero,
body.tmm-game-lobby-page .tmm-games-section {
  max-width: min(100%, 980px) !important;
}

body.tmm-game-lobby-page .tmm-lobby-hero {
  padding-top: clamp(10px, 2dvh, 32px) !important;
}

@media (max-width: 767px) {
  body.tmm-game-lobby-page .tmm-shortcut-rail {
    top: calc(env(safe-area-inset-top, 0px) + 112px) !important;
    left: max(var(--tmm-shortcut-left-mobile, 10px), env(safe-area-inset-left, 0px)) !important;
    max-height: calc(100dvh - 126px - env(safe-area-inset-bottom, 0px)) !important;
  }

  body.admin-bar.tmm-game-lobby-page .tmm-shortcut-rail {
    top: calc(env(safe-area-inset-top, 0px) + 138px) !important;
  }

  body.tmm-game-lobby-page .tmm-lobby-shell {
    width: calc(100% - var(--tmm-pwa-rail-space-mobile)) !important;
    max-width: calc(100% - var(--tmm-pwa-rail-space-mobile)) !important;
    margin-left: var(--tmm-pwa-rail-space-mobile) !important;
    margin-right: 0 !important;
    padding-right: 8px !important;
  }

  body.tmm-game-lobby-page .tmm-lobby-hero {
    padding-top: clamp(18px, 4dvh, 44px) !important;
  }

  body.tmm-game-lobby-page .tmm-lobby-hero p {
    max-width: 100% !important;
  }

  body.tmm-game-lobby-page .tmm-section-head h2 {
    font-size: clamp(25px, 8vw, 38px) !important;
  }
}


/* v0.9.4: first main entrance test button */
body.tmm-game-lobby-page .tmm-main-entry-section {
  width: 100% !important;
  max-width: min(100%, 980px) !important;
  flex: 0 0 auto !important;
}

body.tmm-game-lobby-page .tmm-main-entry-section .tmm-section-head {
  margin-bottom: clamp(8px, 1.4dvh, 14px) !important;
}

body.tmm-game-lobby-page .tmm-main-entry-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: clamp(8px, 1.2dvh, 12px) !important;
  width: min(100%, 760px) !important;
  margin: 0 auto !important;
}

body.tmm-game-lobby-page .tmm-main-entry-card {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 3 / 1 !important;
  max-height: clamp(72px, 14dvh, 152px) !important;
  min-height: 64px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background-image: var(--tmm-main-entry-image) !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  text-decoration: none !important;
  box-shadow: 0 0 22px rgba(155, 70, 255, 0.22), 0 18px 44px rgba(0, 0, 0, 0.32) !important;
  overflow: hidden !important;
  cursor: default !important;
  pointer-events: none !important;
}

body.tmm-game-lobby-page .tmm-main-entry-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  box-shadow: inset 0 0 0 1px rgba(190, 100, 255, 0.22), inset 0 0 24px rgba(0, 180, 255, 0.12) !important;
  pointer-events: none !important;
}

body.tmm-game-lobby-page .tmm-games-section .tmm-lobby-filter-btn,
body.tmm-game-lobby-page .tmm-game-grid {
  display: none !important;
}

@media (max-width: 767px) {
  body.tmm-game-lobby-page .tmm-main-entry-section {
    max-width: 100% !important;
  }

  body.tmm-game-lobby-page .tmm-main-entry-stack {
    width: min(100%, 92vw) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.tmm-game-lobby-page .tmm-main-entry-card {
    border-radius: 12px !important;
    min-height: 56px !important;
    max-height: clamp(58px, 10dvh, 86px) !important;
  }
}


/* v0.9.4: remove theme top white edge and keep lobby glued to the viewport */
html,
body.tmm-game-lobby-page {
  margin: 0 !important;
  padding: 0 !important;
  background: #02030a !important;
}

body.tmm-game-lobby-page::before,
body.tmm-game-lobby-page::after {
  display: none !important;
}

body.tmm-game-lobby-page #page,
body.tmm-game-lobby-page .site,
body.tmm-game-lobby-page .site-content,
body.tmm-game-lobby-page .site-main,
body.tmm-game-lobby-page .content-area,
body.tmm-game-lobby-page main,
body.tmm-game-lobby-page article,
body.tmm-game-lobby-page .entry-content,
body.tmm-game-lobby-page .page-content,
body.tmm-game-lobby-page .wp-site-blocks,
body.tmm-game-lobby-page .wp-block-post-content,
body.tmm-game-lobby-page .inside-article,
body.tmm-game-lobby-page .container,
body.tmm-game-lobby-page .content-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  background: transparent !important;
}

body.tmm-game-lobby-page .tmm-game-lobby {
  margin-top: 0 !important;
  top: 0 !important;
  border-top: 0 !important;
}

/* v0.9.4: configurable first main entry */
body.tmm-game-lobby-page .tmm-main-entry-stack {
  width: var(--tmm-main-entry-width-desktop, 760px) !important;
  max-width: 100% !important;
  margin-top: var(--tmm-main-entry-margin-top-desktop, 0px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.tmm-game-lobby-page .tmm-main-entry-card {
  width: 100% !important;
  height: var(--tmm-main-entry-height-desktop, clamp(72px, 14dvh, 152px)) !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: var(--tmm-main-entry-radius-desktop, 18px) !important;
  background-image: var(--tmm-main-entry-desktop-image) !important;
  background-size: var(--tmm-main-entry-fit, 100% 100%) !important;
  background-position: var(--tmm-main-entry-position, center center) !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 0 22px var(--tmm-main-entry-shadow, rgba(155, 70, 255, 0.32)), 0 18px 44px rgba(0, 0, 0, 0.32) !important;
}

@media (max-width: 767px) {
  body.tmm-game-lobby-page .tmm-main-entry-stack {
    width: var(--tmm-main-entry-width-mobile, 92vw) !important;
    margin-top: var(--tmm-main-entry-margin-top-mobile, 0px) !important;
  }

  body.tmm-game-lobby-page .tmm-main-entry-card {
    height: var(--tmm-main-entry-height-mobile, clamp(58px, 10dvh, 86px)) !important;
    border-radius: var(--tmm-main-entry-radius-mobile, 12px) !important;
    background-image: var(--tmm-main-entry-mobile-image) !important;
  }
}


/* v0.9.4: independent game coin redeem modal */
.tmm-top-coin-plus {
  cursor: pointer;
}

.tmm-coin-redeem-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  color: #f4f7ff;
}

.tmm-coin-redeem-modal.is-hidden {
  display: none !important;
}

.tmm-coin-redeem-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 10%, rgba(255, 198, 74, 0.16), transparent 26%),
    radial-gradient(circle at 75% 0%, rgba(160, 58, 255, 0.22), transparent 32%),
    rgba(1, 3, 12, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tmm-coin-redeem-panel {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 44px);
  overflow: auto;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(255, 198, 74, 0.26);
  background: linear-gradient(145deg, rgba(24, 18, 46, 0.96), rgba(6, 10, 28, 0.94));
  box-shadow:
    0 28px 110px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 34px rgba(160, 58, 255, 0.18);
}

.tmm-coin-redeem-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 120, 255, 0.35);
  border-radius: 12px;
  color: #fff;
  background: rgba(120, 50, 210, 0.38);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tmm-coin-redeem-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 5vw, 38px);
}

.tmm-coin-redeem-panel p {
  margin: 14px 0 18px;
  color: rgba(232, 240, 255, 0.72);
  line-height: 1.65;
}

.tmm-coin-redeem-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
}

.tmm-coin-redeem-form input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 198, 74, 0.34);
  border-radius: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  outline: none;
}

.tmm-coin-redeem-form button {
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 120, 255, 0.42);
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, rgba(160, 58, 255, 0.86), rgba(93, 33, 172, 0.92));
  box-shadow: 0 0 18px rgba(165, 82, 255, 0.28);
  cursor: pointer;
}

.tmm-coin-redeem-form button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.tmm-coin-redeem-status {
  min-height: 22px;
  margin-top: 14px;
  color: #b7ffcf;
  font-weight: 800;
}

.tmm-coin-redeem-status.is-error {
  color: #ff9aa9;
}

.tmm-coin-redeem-status.is-success {
  color: #b7ffcf;
}

@media (max-width: 767px) {
  .tmm-coin-redeem-panel {
    padding: 22px;
    border-radius: 20px;
  }

  .tmm-coin-redeem-form {
    grid-template-columns: 1fr;
  }

  .tmm-coin-redeem-form button {
    width: 100%;
  }
}


/* v0.9.4: hard reset for coin redeem + buttons to avoid theme button styles */
body.tmm-game-lobby-page .tmm-top-coin-plus,
body.tmm-game-lobby-page .tmm-coin-redeem-close {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  overflow: hidden !important;
  outline: none !important;
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif !important;
  font-size: 0 !important;
  cursor: pointer !important;
}

body.tmm-game-lobby-page .tmm-top-coin-plus {
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 120, 255, 0.48) !important;
  color: #ffffff !important;
  background: linear-gradient(145deg, rgba(160, 58, 255, 0.88), rgba(93, 33, 172, 0.92)) !important;
  box-shadow: 0 0 16px rgba(165, 82, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  opacity: 1 !important;
}

body.tmm-game-lobby-page .tmm-top-coin-plus::before {
  content: "+" !important;
  display: block !important;
  color: #ffffff !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.42) !important;
}

body.tmm-game-lobby-page .tmm-coin-redeem-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 120, 255, 0.42) !important;
  color: #ffffff !important;
  background: linear-gradient(145deg, rgba(160, 58, 255, 0.54), rgba(47, 19, 92, 0.68)) !important;
  box-shadow: 0 0 14px rgba(165, 82, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  z-index: 3 !important;
}

body.tmm-game-lobby-page .tmm-coin-redeem-close::before {
  content: "×" !important;
  display: block !important;
  color: #ffffff !important;
  font-size: 25px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.38) !important;
}

body.tmm-game-lobby-page .tmm-top-coin-plus::after,
body.tmm-game-lobby-page .tmm-coin-redeem-close::after {
  content: none !important;
  display: none !important;
}

body.tmm-game-lobby-page .tmm-top-coin-plus:hover,
body.tmm-game-lobby-page .tmm-top-coin-plus:focus,
body.tmm-game-lobby-page .tmm-coin-redeem-close:hover,
body.tmm-game-lobby-page .tmm-coin-redeem-close:focus {
  filter: brightness(1.12) drop-shadow(0 0 8px rgba(175, 82, 255, 0.45)) !important;
}

@media (max-width: 767px) {
  body.tmm-game-lobby-page .tmm-top-coin-plus {
    flex-basis: 29px !important;
    width: 29px !important;
    height: 29px !important;
    border-radius: 9px !important;
  }

  body.tmm-game-lobby-page .tmm-top-coin-plus::before {
    font-size: 21px !important;
  }

  body.tmm-game-lobby-page .tmm-coin-redeem-close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 11px !important;
  }

  body.tmm-game-lobby-page .tmm-coin-redeem-close::before {
    font-size: 24px !important;
  }
}


/* v0.9.4: actual centered symbol elements for coin plus and modal close */
body.tmm-game-lobby-page .tmm-top-coin-plus,
body.tmm-game-lobby-page .tmm-coin-redeem-close {
  position: relative !important;
  overflow: hidden !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
}

body.tmm-game-lobby-page .tmm-top-coin-plus::before,
body.tmm-game-lobby-page .tmm-top-coin-plus::after,
body.tmm-game-lobby-page .tmm-coin-redeem-close::before,
body.tmm-game-lobby-page .tmm-coin-redeem-close::after {
  content: none !important;
  display: none !important;
}

body.tmm-game-lobby-page .tmm-button-symbol {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  display: block !important;
  width: 1em !important;
  height: 1em !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translate(-50%, -50%) !important;
  color: #ffffff !important;
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-indent: 0 !important;
  text-transform: none !important;
  pointer-events: none !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.42) !important;
}

body.tmm-game-lobby-page .tmm-top-coin-plus .tmm-button-symbol {
  font-size: 23px !important;
  transform: translate(-50%, -51%) !important;
}

body.tmm-game-lobby-page .tmm-coin-redeem-close .tmm-button-symbol {
  font-size: 25px !important;
  transform: translate(-50%, -53%) !important;
  font-weight: 800 !important;
}

@media (max-width: 767px) {
  body.tmm-game-lobby-page .tmm-top-coin-plus .tmm-button-symbol {
    font-size: 21px !important;
  }

  body.tmm-game-lobby-page .tmm-coin-redeem-close .tmm-button-symbol {
    font-size: 24px !important;
  }
}


/* v0.9.4: PWA zoom lock and close button position correction */
html.tmm-no-zoom-page,
body.tmm-no-zoom-page,
body.tmm-game-lobby-page {
  touch-action: pan-x pan-y !important;
  -ms-touch-action: pan-x pan-y !important;
  overscroll-behavior: none !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

body.tmm-game-lobby-page .tmm-game-lobby,
body.tmm-game-lobby-page .tmm-game-lobby * {
  -webkit-tap-highlight-color: transparent !important;
}

body.tmm-game-lobby-page .tmm-coin-redeem-panel {
  position: relative !important;
  overflow: visible !important;
}

body.tmm-game-lobby-page .tmm-coin-redeem-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  translate: none !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.tmm-game-lobby-page .tmm-coin-redeem-close .tmm-button-symbol {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 1em !important;
  height: 1em !important;
  display: block !important;
  transform: translate(-50%, -53%) !important;
  line-height: 1 !important;
  text-align: center !important;
}

@media (max-width: 767px) {
  body.tmm-game-lobby-page .tmm-coin-redeem-close {
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
  }
}


/* v0.9.4: first main entry navigation fix */
body.tmm-game-lobby-page .tmm-game-lobby:not(.tmm-first-entry-page) .tmm-main-entry-card:not([aria-disabled="true"]) {
  pointer-events: auto !important;
  cursor: pointer !important;
}

body.tmm-game-lobby-page .tmm-game-lobby:not(.tmm-first-entry-page) .tmm-main-entry-card:not([aria-disabled="true"]):hover {
  filter: brightness(1.08) drop-shadow(0 0 12px rgba(186, 88, 255, 0.34)) !important;
}

body.tmm-game-lobby-page .tmm-game-lobby.tmm-first-entry-page .tmm-main-entry-card,
body.tmm-game-lobby-page .tmm-game-lobby.tmm-first-entry-page .tmm-main-entry-stack {
  display: none !important;
  pointer-events: none !important;
}


/* v0.9.4: WordPress AJAX chatroom */
.tmm-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #f4f7ff;
}

.tmm-chat-modal.is-hidden {
  display: none !important;
}

.tmm-chat-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 10%, rgba(0, 240, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(255, 43, 214, 0.18), transparent 34%),
    rgba(1, 3, 12, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tmm-chat-panel {
  position: relative;
  z-index: 1;
  width: min(540px, calc(100vw - 28px));
  height: min(680px, calc(100dvh - 38px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: linear-gradient(145deg, rgba(11, 18, 42, 0.96), rgba(8, 5, 25, 0.94));
  box-shadow:
    0 28px 110px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 34px rgba(0, 240, 255, 0.14);
  overflow: visible;
}

.tmm-chat-close {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  background: linear-gradient(145deg, rgba(0, 126, 166, 0.42), rgba(79, 30, 140, 0.58)) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 4 !important;
  cursor: pointer !important;
  overflow: hidden !important;
}

.tmm-chat-close::before,
.tmm-chat-close::after {
  content: none !important;
  display: none !important;
}

.tmm-chat-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 4.8vw, 34px);
  letter-spacing: 0.04em;
}

.tmm-chat-panel p {
  margin: 0;
  color: rgba(232, 240, 255, 0.72);
  line-height: 1.55;
}

.tmm-chat-log {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  -webkit-overflow-scrolling: touch;
}

.tmm-chat-empty {
  color: rgba(230, 240, 255, 0.52);
  font-weight: 700;
  text-align: center;
  padding: 28px 8px;
}

.tmm-chat-message {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
  margin-bottom: 10px;
}

.tmm-chat-message:last-child {
  margin-bottom: 0;
}

.tmm-chat-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.tmm-chat-message-name {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.tmm-chat-message-time {
  color: rgba(180, 240, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.tmm-chat-message-body {
  color: rgba(242, 248, 255, 0.88);
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tmm-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.tmm-chat-form input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  outline: none;
}

.tmm-chat-form button {
  -webkit-appearance: none;
  appearance: none;
  height: 46px;
  min-width: 78px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 43, 214, 0.38);
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, rgba(255, 43, 214, 0.70), rgba(0, 160, 210, 0.70));
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.14);
  cursor: pointer;
}

.tmm-chat-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.tmm-chat-status {
  min-height: 20px;
  color: #b7ffcf;
  font-weight: 800;
}

.tmm-chat-status.is-error {
  color: #ff9aa9;
}

@media (max-width: 767px) {
  .tmm-chat-modal {
    padding: 14px;
  }

  .tmm-chat-panel {
    width: calc(100vw - 22px);
    height: min(620px, calc(100dvh - 26px));
    padding: 20px;
    border-radius: 20px;
  }

  .tmm-chat-close {
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .tmm-chat-form {
    grid-template-columns: 1fr;
  }

  .tmm-chat-form button {
    width: 100%;
  }
}
