@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/baloo-2-latin-ext-600-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/baloo-2-latin-600-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/baloo-2-latin-ext-700-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/baloo-2-latin-700-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../assets/fonts/baloo-2-latin-ext-800-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../assets/fonts/baloo-2-latin-800-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/nunito-latin-ext-600-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/nunito-latin-600-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/nunito-latin-ext-700-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/nunito-latin-700-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../assets/fonts/nunito-latin-ext-800-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../assets/fonts/nunito-latin-800-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../assets/fonts/nunito-latin-ext-900-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../assets/fonts/nunito-latin-900-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/nunito-cyrillic-600-normal.woff2) format("woff2");
  unicode-range:
    U+0301,
    U+0400-045F,
    U+0490-0491,
    U+04B0-04B1,
    U+2116;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/nunito-cyrillic-600-normal.woff2) format("woff2");
  unicode-range:
    U+0301,
    U+0400-045F,
    U+0490-0491,
    U+04B0-04B1,
    U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/nunito-cyrillic-700-normal.woff2) format("woff2");
  unicode-range:
    U+0301,
    U+0400-045F,
    U+0490-0491,
    U+04B0-04B1,
    U+2116;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/nunito-cyrillic-700-normal.woff2) format("woff2");
  unicode-range:
    U+0301,
    U+0400-045F,
    U+0490-0491,
    U+04B0-04B1,
    U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../assets/fonts/nunito-cyrillic-800-normal.woff2) format("woff2");
  unicode-range:
    U+0301,
    U+0400-045F,
    U+0490-0491,
    U+04B0-04B1,
    U+2116;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../assets/fonts/nunito-cyrillic-800-normal.woff2) format("woff2");
  unicode-range:
    U+0301,
    U+0400-045F,
    U+0490-0491,
    U+04B0-04B1,
    U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../assets/fonts/nunito-cyrillic-900-normal.woff2) format("woff2");
  unicode-range:
    U+0301,
    U+0400-045F,
    U+0490-0491,
    U+04B0-04B1,
    U+2116;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../assets/fonts/nunito-cyrillic-900-normal.woff2) format("woff2");
  unicode-range:
    U+0301,
    U+0400-045F,
    U+0490-0491,
    U+04B0-04B1,
    U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/baloo-bhaijaan-2-arabic-600-normal.woff2) format("woff2");
  unicode-range:
    U+0600-06FF,
    U+0750-077F,
    U+0870-088E,
    U+0890-0891,
    U+0897-08E1,
    U+08E3-08FF,
    U+200C-200E,
    U+2010-2011,
    U+204F,
    U+2E41,
    U+FB50-FDFF,
    U+FE70-FE74,
    U+FE76-FEFC;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/baloo-bhaijaan-2-arabic-600-normal.woff2) format("woff2");
  unicode-range:
    U+0600-06FF,
    U+0750-077F,
    U+0870-088E,
    U+0890-0891,
    U+0897-08E1,
    U+08E3-08FF,
    U+200C-200E,
    U+2010-2011,
    U+204F,
    U+2E41,
    U+FB50-FDFF,
    U+FE70-FE74,
    U+FE76-FEFC;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/baloo-bhaijaan-2-arabic-700-normal.woff2) format("woff2");
  unicode-range:
    U+0600-06FF,
    U+0750-077F,
    U+0870-088E,
    U+0890-0891,
    U+0897-08E1,
    U+08E3-08FF,
    U+200C-200E,
    U+2010-2011,
    U+204F,
    U+2E41,
    U+FB50-FDFF,
    U+FE70-FE74,
    U+FE76-FEFC;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/baloo-bhaijaan-2-arabic-700-normal.woff2) format("woff2");
  unicode-range:
    U+0600-06FF,
    U+0750-077F,
    U+0870-088E,
    U+0890-0891,
    U+0897-08E1,
    U+08E3-08FF,
    U+200C-200E,
    U+2010-2011,
    U+204F,
    U+2E41,
    U+FB50-FDFF,
    U+FE70-FE74,
    U+FE76-FEFC;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../assets/fonts/baloo-bhaijaan-2-arabic-800-normal.woff2) format("woff2");
  unicode-range:
    U+0600-06FF,
    U+0750-077F,
    U+0870-088E,
    U+0890-0891,
    U+0897-08E1,
    U+08E3-08FF,
    U+200C-200E,
    U+2010-2011,
    U+204F,
    U+2E41,
    U+FB50-FDFF,
    U+FE70-FE74,
    U+FE76-FEFC;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../assets/fonts/baloo-bhaijaan-2-arabic-800-normal.woff2) format("woff2");
  unicode-range:
    U+0600-06FF,
    U+0750-077F,
    U+0870-088E,
    U+0890-0891,
    U+0897-08E1,
    U+08E3-08FF,
    U+200C-200E,
    U+2010-2011,
    U+204F,
    U+2E41,
    U+FB50-FDFF,
    U+FE70-FE74,
    U+FE76-FEFC;
}
:root {
  color-scheme: dark;
  --night:#0A1630;
  --night-2:#10234A;
  --panel:#142B55;
  --panel-2:#1A3668;
  --edge:#2A4A86;
  --gold:#F5C24A;
  --gold-hi:#FFE38A;
  --gold-deep:#B9851A;
  --flame:#FF8A1F;
  --ink:#EEF3FF;
  --soft:#A9B8DA;
  --dim:#7285B0;
  --ok:#3BD98A;
  --bad:#FF6B7F;
  --sky:#6FB7FF;
  --lcd:#0C2B2A;
  --lcd-ink:#B9FFE2;
  --display:"Baloo 2","Nunito",system-ui,sans-serif;
  --body:"Nunito",system-ui,-apple-system,"Segoe UI",sans-serif;
  --r-lg:24px;
  --r-md:16px;
  --r-sm:12px;
  --shadow:0 18px 40px rgba(0,0,0,.45);
  --safe-t:env(safe-area-inset-top,0px);
  --safe-r:env(safe-area-inset-right,0px);
  --safe-b:env(safe-area-inset-bottom,0px);
  --safe-l:env(safe-area-inset-left,0px);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
}
body {
  background:
    radial-gradient(
      1200px 800px at 50% 20%,
      #1D3F82 0%,
      var(--night) 55%,
      #050B18 100%) fixed,
    var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
}
input {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
.num {
  font-variant-numeric: tabular-nums;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 18px;
  font: 800 18px/1 var(--display);
  letter-spacing: .01em;
  transition:
    transform .08s ease,
    filter .15s ease,
    box-shadow .08s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(3px);
}
.btn svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.btn:disabled {
  filter: grayscale(.7) brightness(.7);
  cursor: not-allowed;
  transform: none;
}
.btn-gold {
  color: #2A1A00;
  background:
    linear-gradient(
      180deg,
      var(--gold-hi),
      var(--gold) 55%,
      #E0A92C);
  box-shadow:
    0 6px 0 #8A5F0E,
    0 12px 22px rgba(245, 194, 74, .25),
    inset 0 2px 0 rgba(255, 255, 255, .55);
}
.btn-gold:active {
  box-shadow:
    0 3px 0 #8A5F0E,
    0 6px 12px rgba(245, 194, 74, .2),
    inset 0 2px 0 rgba(255, 255, 255, .55);
}
.btn-dark {
  color: var(--ink);
  background:
    linear-gradient(
      180deg,
      #22407C,
      #18305E);
  box-shadow: 0 6px 0 #0B1834, inset 0 0 0 1.5px var(--edge);
}
.btn-dark:active {
  box-shadow: 0 3px 0 #0B1834, inset 0 0 0 1.5px var(--edge);
}
.btn-ok {
  color: #04210F;
  background:
    linear-gradient(
      180deg,
      #8FF5BF,
      var(--ok));
  box-shadow: 0 6px 0 #16804B;
}
.btn-danger {
  color: #2A060B;
  background:
    linear-gradient(
      180deg,
      #FFA3B0,
      var(--bad));
  box-shadow: 0 6px 0 #9A2F40;
}
.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 13px;
  font-size: 15px;
}
.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(10, 22, 48, .72);
  box-shadow: inset 0 0 0 1.5px var(--edge), 0 8px 18px rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}
.icon-btn:active {
  transform: translateY(2px);
}
#boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 100;
  background: var(--night);
  transition: opacity .5s;
}
#boot img {
  width: 120px;
  animation: bob 1.8s ease-in-out infinite;
}
#boot.hide {
  opacity: 0;
  pointer-events: none;
}
@keyframes bob {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}
.menu {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: calc(24px + var(--safe-t)) clamp(16px, 5vw, 72px) calc(24px + var(--safe-b));
  overflow: auto;
}
.menu-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      2px 2px at 12% 18%,
      #fff8 50%,
      transparent 51%),
    radial-gradient(
      1.5px 1.5px at 28% 72%,
      #fff6 50%,
      transparent 51%),
    radial-gradient(
      2px 2px at 64% 22%,
      #ffe9a888 50%,
      transparent 51%),
    radial-gradient(
      1.5px 1.5px at 82% 64%,
      #fff7 50%,
      transparent 51%),
    radial-gradient(
      2px 2px at 46% 88%,
      #fff5 50%,
      transparent 51%),
    radial-gradient(
      1.5px 1.5px at 92% 12%,
      #fff8 50%,
      transparent 51%),
    radial-gradient(
      1.5px 1.5px at 6% 52%,
      #ffe9a877 50%,
      transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  to {
    opacity: .45;
  }
}
.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  position: relative;
}
.hero-logo {
  width: clamp(150px, 24vw, 300px);
  filter: drop-shadow(0 18px 40px rgba(255, 138, 31, .45));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}
.wordmark {
  margin: 0;
  font: 800 clamp(44px, 7.4vw, 96px)/.9 var(--display);
  letter-spacing: .02em;
  background:
    linear-gradient(
      180deg,
      #FFF1C2 0%,
      var(--gold) 55%,
      #C98A17 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 #3A2300) drop-shadow(0 12px 24px rgba(0, 0, 0, .4));
}
.tagline {
  margin: 0;
  font: 800 clamp(14px, 1.6vw, 18px)/1.3 var(--body);
  color: var(--soft);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.menu-panel {
  width: min(100%, 460px);
  justify-self: center;
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 28px;
  background:
    linear-gradient(
      180deg,
      rgba(26, 54, 104, .88),
      rgba(14, 31, 64, .92));
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(245, 194, 74, .35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.menu-panel h2 {
  margin: 0 0 4px;
  font: 800 24px/1.1 var(--display);
  color: var(--gold-hi);
}
.menu-panel .btn {
  width: 100%;
}
.menu-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.soon {
  font: 800 11px/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(111, 183, 255, .18);
  color: var(--sky);
}
.field {
  display: grid;
  gap: 7px;
}
.field > span {
  font: 800 13px/1 var(--body);
  color: var(--soft);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.text-in {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 0;
  background: #0B1834;
  box-shadow: inset 0 0 0 1.5px var(--edge);
  font: 800 18px/1 var(--display);
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .22), 0 0 0 3px transparent;
  position: relative;
  transition: transform .1s;
}
.swatch[aria-pressed=true] {
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, .22),
    0 0 0 3px var(--night),
    0 0 0 6px var(--gold);
}
.swatch::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 15px;
  width: 7px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 14px 0 0 #fff;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stepper output {
  min-width: 120px;
  text-align: center;
  font: 800 20px/1 var(--display);
}
.stepper button {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #0B1834;
  box-shadow: inset 0 0 0 1.5px var(--edge);
  font: 800 24px/1 var(--display);
}
.menu-foot {
  font-size: 12px;
  color: var(--dim);
  text-align: center;
}
.menu-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 14px;
  font-size: 11px;
  line-height: 1.4;
}
.menu-legal a,
.premium-policy-link {
  color: #b9d9ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.menu-legal a:focus-visible,
.premium-policy-link:focus-visible {
  outline: 2px solid #ffe38a;
  outline-offset: 3px;
}
.premium-card > .premium-policy-link {
  grid-column: 1/-1;
  justify-self: start;
  font-size: 11px;
  line-height: 1.3;
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu-legal {
    font-size: 10px;
  }
  .premium-card > .premium-policy-link {
    font-size: 10px;
  }
}
.game {
  position: fixed;
  inset: 0;
}
#stage {
  position: absolute;
  inset: 0;
}
.stage-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: manipulation;
}
.topbar {
  position: absolute;
  top: calc(12px + var(--safe-t));
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
  z-index: 5;
}
.topbar > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 18px;
  background: rgba(10, 22, 48, .62);
  box-shadow: inset 0 0 0 1px rgba(245, 194, 74, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand b {
  font: 800 20px/1 var(--display);
  letter-spacing: .03em;
  color: var(--gold-hi);
}
.brand small {
  display: block;
  font: 800 11px/1 var(--body);
  color: var(--soft);
  letter-spacing: .1em;
  margin-top: 3px;
}
.top-actions {
  display: flex;
  gap: 8px;
}
.players {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.pcard {
  position: absolute;
  width: min(250px, 22vw);
  min-width: 196px;
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(28, 56, 108, .9),
      rgba(15, 33, 68, .92));
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35), inset 0 0 0 2px color-mix(in srgb, var(--pc) 55%, transparent);
  transition: transform .25s ease, box-shadow .25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pcard.turn {
  transform: scale(1.04);
  box-shadow:
    0 0 0 3px var(--pc),
    0 0 34px color-mix(in srgb, var(--pc) 55%, transparent),
    0 14px 30px rgba(0, 0, 0, .4);
}
.pcard.out {
  opacity: .45;
  filter: grayscale(1);
}
.pcard .av {
  grid-row: 1/3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 30%,
      #ffffff88 0,
      transparent 42%),
    var(--pc);
  position: relative;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2);
}
.pcard .av::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 17px;
  width: 7px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 13px 0 0 #fff;
}
.pcard .av::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 20px;
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: #15182A;
  box-shadow: 13px 0 0 #15182A;
}
.pcard .pname {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 15px/1.1 var(--display);
  color: var(--soft);
  min-width: 0;
}
.pcard .pname b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard .badge {
  font: 900 10px/1 var(--body);
  letter-spacing: .08em;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--pc);
  color: #1b1200;
}
.pcard .bal {
  font: 800 clamp(19px, 1.7vw, 24px)/1.05 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color .3s;
}
.pcard .bal.down {
  color: var(--bad);
}
.pcard .bal.up {
  color: var(--ok);
}
.pcard .meta {
  grid-column: 1/-1;
  display: flex;
  gap: 10px;
  font: 800 12px/1 var(--body);
  color: var(--soft);
}
.pcard .meta i {
  font-style: normal;
  color: var(--gold-hi);
}
.pcard .float {
  position: absolute;
  right: 12px;
  top: -6px;
  font: 800 17px/1 var(--display);
  pointer-events: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.float.down {
  color: var(--bad);
}
.float.up {
  color: var(--ok);
}
.pc-0 {
  left: 16px;
  top: 88px;
}
.pc-1 {
  right: 16px;
  top: 88px;
}
.pc-2 {
  left: 16px;
  bottom: calc(20px + var(--safe-b));
}
.pc-3 {
  right: 16px;
  bottom: calc(20px + var(--safe-b));
}
.pc-4 {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.pc-5 {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.pc-4.turn {
  transform: translateY(-50%) scale(1.04);
}
.pc-5.turn {
  transform: translateY(-50%) scale(1.04);
}
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(560px, calc(100% - 32px));
}
.feed {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 22px;
}
.feed div {
  font: 800 13px/1.2 var(--body);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 14, 30, .72);
  color: var(--ink);
  max-width: 100%;
  text-align: center;
  animation: feedIn .3s ease-out;
}
.feed div:not(:first-child) {
  opacity: .55;
  font-size: 12px;
}
@keyframes feedIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}
.dock-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(10, 22, 48, .78);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .3), 0 16px 34px rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.dock-main .who {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 4px;
  font: 800 14px/1.1 var(--display);
  color: var(--soft);
  white-space: nowrap;
}
.dock-main .who i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: 0 0 12px var(--pc);
}
.dock-main .btn-roll {
  min-width: 200px;
  min-height: 60px;
  font-size: 22px;
}
.dock-main .btn-roll svg {
  width: 26px;
  height: 26px;
}
.hint {
  font: 800 12px/1 var(--body);
  color: var(--dim);
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b));
  background: rgba(4, 10, 24, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .2s ease-out;
  overflow: auto;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
.card-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  perspective: 1400px;
}
.kcard {
  --gc:#E8413C;
  position: relative;
  width: min(340px, 86vw);
  border-radius: 26px;
  padding: 12px;
  background:
    linear-gradient(
      180deg,
      #FFFDF7,
      #F7EEDB);
  color: #1E2740;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, .55),
    0 0 0 3px #E8B64A,
    0 0 0 7px rgba(10, 22, 48, .9),
    0 0 38px rgba(245, 194, 74, .35);
  animation: cardIn .42s cubic-bezier(.2, 1.2, .3, 1);
}
@keyframes cardIn {
  from {
    transform: translateY(40px) rotateX(18deg) scale(.9);
    opacity: 0;
  }
}
.kcard .head {
  border-radius: 16px;
  padding: 12px 14px 10px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--gc) 80%, #fff),
      var(--gc));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.kcard .head small {
  display: block;
  font: 900 11px/1 var(--body);
  letter-spacing: .18em;
  opacity: .9;
}
.kcard .head h3 {
  margin: 4px 0 0;
  font: 800 30px/1 var(--display);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .18);
  text-wrap: balance;
}
.kcard .flagbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  display: flex;
}
.kcard .flagbar i {
  flex: 1;
}
.kcard .art {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #0E2248;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08);
}
.kcard .art svg {
  display: block;
  width: 100%;
  height: 100%;
}
.kcard .tag {
  margin: 8px 0 6px;
  text-align: center;
  font: 800 13px/1.2 var(--body);
  color: #5A6480;
}
.kcard table {
  width: 100%;
  border-collapse: collapse;
  font: 700 14px/1 var(--body);
}
.kcard td {
  padding: 6px 8px;
  border-bottom: 1px dashed rgba(30, 39, 64, .14);
}
.kcard td:last-child {
  text-align: right;
  font: 800 15px/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.kcard tr.on td {
  background: color-mix(in srgb, var(--gc) 16%, transparent);
  color: #101828;
}
.kcard tr.on td:first-child {
  border-radius: 8px 0 0 8px;
}
.kcard tr.on td:last-child {
  border-radius: 0 8px 8px 0;
}
.kcard .price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #1E2740;
  color: #fff;
}
.kcard .price span {
  font: 800 13px/1 var(--body);
  letter-spacing: .06em;
  opacity: .8;
}
.kcard .price b {
  font: 800 24px/1 var(--display);
  color: var(--gold-hi);
}
.kcard .foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font: 800 12px/1.2 var(--body);
  color: #5A6480;
}
.kcard .owner {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--oc,#8FA0C4) 20%, #fff);
  font: 800 14px/1 var(--display);
}
.kcard .owner i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--oc);
}
.kcard .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.kcard .actions .btn {
  min-height: 50px;
  font-size: 17px;
  padding: 0 10px;
}
.kcard .actions .wide {
  grid-column: 1/-1;
}
.kcard .actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.kcard .actions > .btn {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.kcard .x {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0B1834;
  color: var(--gold-hi);
  box-shadow: 0 0 0 2.5px var(--gold), 0 6px 14px rgba(0, 0, 0, .4);
  font: 800 20px/1 var(--display);
  z-index: 2;
}
.kcard .note {
  margin-top: 8px;
  font: 700 12px/1.35 var(--body);
  color: #6C7690;
  text-align: center;
}
.flip {
  width: min(320px, 84vw);
  aspect-ratio: 5/7;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.3, 1.3, .4, 1);
}
.flip.open {
  transform: rotateY(180deg);
}
.flip.open > .card-back,
.flip:not(.open) > .chance-front {
  pointer-events: none;
}
.flip:not(.open) > .chance-front .tut-target {
  pointer-events: none !important;
}
.flip > div {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 26px;
}
.card-back {
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 50% 42%,
      #27509C,
      #12295A 60%,
      #0A1733);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, .55),
    0 0 0 3px #E8B64A,
    0 0 0 7px rgba(10, 22, 48, .9);
  overflow: hidden;
}
.card-back::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 2px solid rgba(245, 194, 74, .45);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(245, 194, 74, .07) 0 10px,
      transparent 10px 20px);
}
.card-back img {
  width: 58%;
  opacity: .28;
  filter: saturate(.8);
}
.card-back b {
  position: absolute;
  bottom: 26px;
  font: 800 18px/1 var(--display);
  letter-spacing: .3em;
  color: rgba(255, 227, 138, .55);
}
.chance-front {
  transform: rotateY(180deg);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 18px;
  background:
    linear-gradient(
      180deg,
      #FFFDF7,
      #F4ECFF);
  color: #1E2740;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, .55),
    0 0 0 3px #E8B64A,
    0 0 0 7px rgba(10, 22, 48, .9),
    0 0 40px rgba(167, 123, 255, .4);
  text-align: center;
}
.chance-front .ch-head {
  border-radius: 16px;
  padding: 10px;
  background:
    linear-gradient(
      180deg,
      #9A6BFF,
      #6A3BD6);
  color: #fff;
  font: 800 26px/1 var(--display);
  letter-spacing: .12em;
}
.chance-front .ch-body {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
}
.chance-front img {
  width: 46%;
  filter: drop-shadow(0 10px 18px rgba(255, 138, 31, .45));
}
.chance-front h4 {
  margin: 0;
  font: 800 26px/1.05 var(--display);
  text-wrap: balance;
}
.chance-front p {
  margin: 0;
  font: 700 15px/1.4 var(--body);
  color: #4A536B;
  text-wrap: balance;
}
.pos-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding-bottom: calc(20px + var(--safe-b));
  pointer-events: none;
  background:
    radial-gradient(
      640px 440px at 50% 100%,
      rgba(4, 10, 24, .6),
      transparent 70%);
}
.pos-rig {
  position: relative;
  width: 290px;
  height: 470px;
  pointer-events: auto;
}
.kkart {
  position: absolute;
  left: 50%;
  top: 0;
  width: 224px;
  aspect-ratio: 1.586;
  border-radius: 15px;
  padding: 14px 16px;
  color: #fff;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(
      130px 90px at 85% 15%,
      rgba(255, 255, 255, .38),
      transparent 70%),
    linear-gradient(
      135deg,
      var(--cc) 0%,
      color-mix(in srgb, var(--cc) 50%, #170D2E) 100%);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .28);
  transform: translate(-50%, -230%);
  opacity: 0;
  pointer-events: none;
}
.kkart .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kkart .kk {
  font: 800 13px/1 var(--display);
  letter-spacing: .14em;
}
.kkart img {
  width: 28px;
  height: 28px;
}
.kkart .chipc {
  width: 36px;
  height: 27px;
  border-radius: 6px;
  background:
    linear-gradient(
      135deg,
      #FFE7A1,
      #D6A437);
  margin-top: 8px;
  box-shadow: inset 0 0 0 1px rgba(90, 60, 0, .35);
}
.kkart .numline {
  font: 800 14px/1 var(--body);
  letter-spacing: .14em;
}
.kkart .holder {
  font: 800 12px/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.terminal {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 2;
  width: 276px;
  border-radius: 34px 34px 26px 26px;
  padding: 14px 16px 18px;
  background:
    linear-gradient(
      180deg,
      #2A3656,
      #161E33);
  box-shadow:
    0 26px 48px rgba(0, 0, 0, .6),
    inset 0 2px 0 rgba(255, 255, 255, .12),
    inset 0 0 0 2px rgba(245, 194, 74, .45);
}
.reader {
  height: 62px;
  margin-bottom: 12px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    linear-gradient(
      180deg,
      #1C2640,
      #121A2E);
  box-shadow: inset 0 0 0 1.5px rgba(111, 183, 255, .25);
  color: #8FC3FF;
  font: 800 13px/1 var(--body);
  letter-spacing: .04em;
}
.reader .nfc {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.reader .nfc svg {
  width: 28px;
  height: 28px;
}
.reader.reading {
  box-shadow: inset 0 0 0 2px #8FC3FF, 0 0 28px rgba(111, 183, 255, .55);
}
.reader.reading .nfc {
  animation: nfc .5s ease-in-out infinite alternate;
}
@keyframes nfc {
  to {
    transform: scale(1.25);
    color: #fff;
  }
}
.screen {
  position: relative;
  height: 150px;
  border-radius: 16px;
  background: var(--lcd);
  box-shadow: inset 0 0 0 3px #081B1A, inset 0 8px 18px rgba(0, 0, 0, .45);
  padding: 12px 14px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  color: var(--lcd-ink);
  font-family: var(--body);
  transition: background .25s;
}
.screen .s-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 900 11px/1.15 var(--body);
  letter-spacing: .08em;
  opacity: .85;
}
.screen .s-top span:last-child {
  text-align: right;
}
.screen .s-amt {
  font: 800 36px/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.screen .s-msg {
  font: 900 18px/1.1 var(--display);
  letter-spacing: .06em;
  min-height: 20px;
}
.screen .bar {
  height: 6px;
  border-radius: 6px;
  background: rgba(185, 255, 226, .18);
  overflow: hidden;
}
.screen .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lcd-ink);
}
.screen.ok {
  background: #0D4A2B;
}
.screen.ok .s-msg {
  color: #7DFFB9;
  font-size: 24px;
}
.screen.bad {
  background: #5A0F1C;
  color: #FFD3DA;
}
.screen.bad .s-msg {
  color: #FF8FA0;
  font-size: 21px;
}
.screen.busy .s-msg {
  animation: blink .6s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: .35;
  }
}
.brandline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 2px 10px;
  font: 800 15px/1 var(--display);
  color: var(--gold-hi);
}
.brandline img {
  width: 22px;
  height: 22px;
}
.keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.keys span {
  height: 24px;
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      #34405E,
      #252F49);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35);
  display: grid;
  place-items: center;
  font: 800 12px/1 var(--body);
  color: #C6D2EE;
}
.keys .g {
  background:
    linear-gradient(
      180deg,
      #3CCB7F,
      #249C5C);
  color: #062414;
}
.keys .r {
  background:
    linear-gradient(
      180deg,
      #F2677A,
      #C13A4C);
  color: #2A060B;
}
.pos-skip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  min-height: 34px;
  font: 800 13px/1 var(--display);
  letter-spacing: .02em;
  color: #1b1200;
  border-radius: 12px;
  background:
    linear-gradient(
      180deg,
      var(--gold-hi,#FFE38A),
      var(--gold,#F5C24A));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.pos-skip:active {
  transform: translateY(1px);
}
.mini-pay {
  position: absolute;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 13px;
  background: #0C1C3C;
  border: 1.5px solid var(--gold);
  font: 800 13px/1 var(--display);
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.mini-pay.bad {
  border-color: var(--bad);
  background: #3A0B16;
  color: #FFD3DA;
}
.mini-pay.bad .mcheck {
  color: var(--bad);
}
.mini-pay .mcard {
  width: 28px;
  height: 18px;
  border-radius: 4px;
  background:
    linear-gradient(
      135deg,
      var(--cc),
      #241640);
}
.mini-pay .mcheck {
  color: var(--ok);
  font-size: 15px;
}
.trail {
  position: fixed;
  z-index: 70;
  width: 30px;
  height: 19px;
  border-radius: 5px;
  pointer-events: none;
}
.sheet {
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border-radius: 26px;
  padding: 22px;
  background:
    linear-gradient(
      180deg,
      #1A3668,
      #10234A);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(245, 194, 74, .35);
  animation: cardIn .35s cubic-bezier(.2, 1.2, .3, 1);
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.sheet-head h2 {
  margin: 0;
  font: 800 26px/1 var(--display);
  color: var(--gold-hi);
}
.set-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.set-row b {
  font: 800 16px/1.2 var(--display);
}
.set-row small {
  display: block;
  color: var(--soft);
  font-weight: 700;
  margin-top: 2px;
}
.set-row.camera-setting {
  grid-template-columns: minmax(0, 1fr) auto;
}
.camera-setting label {
  cursor: pointer;
}
#set-camera {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 48px;
  height: 28px;
  margin: 0;
  border: 2px solid var(--soft);
  border-radius: 16px;
  background: rgba(0, 0, 0, .3);
  cursor: pointer;
  flex-shrink: 0;
}
#set-camera::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
}
#set-camera:checked {
  background: #278754;
  border-color: #70e2a1;
}
#set-camera:checked::after {
  transform: translateX(20px);
}
#set-camera:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  #set-camera::after {
    transition: none;
  }
}
input[type=range] {
  width: min(220px, 40vw);
  accent-color: var(--gold);
}
.seg {
  display: flex;
  background: #0B1834;
  border-radius: 999px;
  padding: 4px;
  box-shadow: inset 0 0 0 1.5px var(--edge);
}
.seg button {
  padding: 8px 14px;
  border-radius: 999px;
  font: 800 14px/1 var(--display);
  color: var(--soft);
}
.seg button[aria-pressed=true] {
  background: var(--gold);
  color: #2A1A00;
}
.seg button:disabled {
  opacity: .4;
}
.asset-list {
  display: grid;
  gap: 8px;
}
.asset-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .2);
  text-align: left;
}
.asset-item i {
  width: 10px;
  height: 36px;
  border-radius: 5px;
  background: var(--gc);
}
.asset-item b {
  font: 800 16px/1.1 var(--display);
}
.asset-item small {
  display: block;
  color: var(--soft);
  font-weight: 700;
}
.asset-item em {
  font-style: normal;
  font: 800 15px/1 var(--display);
  color: var(--gold-hi);
}
.help p,
.help li {
  color: var(--soft);
  line-height: 1.5;
}
.help b {
  color: var(--ink);
}
.help ul {
  padding-left: 18px;
  margin: 6px 0;
}
.empty {
  color: var(--soft);
  text-align: center;
  padding: 20px;
}
.winner {
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.winner img {
  width: 130px;
  animation: float 3s ease-in-out infinite;
}
.winner h2 {
  margin: 0;
  font: 800 40px/1 var(--display);
  color: var(--gold-hi);
}
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
}
.toast {
  position: fixed;
  left: 50%;
  top: calc(80px + var(--safe-t));
  transform: translateX(-50%);
  z-index: 90;
  padding: 10px 16px;
  border-radius: 14px;
  background: #0C1C3C;
  border: 1.5px solid var(--gold);
  font: 800 14px/1.2 var(--display);
  box-shadow: var(--shadow);
  animation: feedIn .25s ease-out;
  max-width: calc(100% - 32px);
  text-align: center;
}
@media (max-width: 1100px) {
  .pcard {
    min-width: 176px;
    padding: 10px 12px;
  }
  .pcard .av {
    width: 42px;
    height: 42px;
  }
  .pcard .av::before {
    left: 12px;
    top: 14px;
  }
  .pcard .av::after {
    left: 14px;
    top: 17px;
  }
}
@media (max-width: 860px), (max-aspect-ratio: 9/10) {
  .menu {
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: center;
  }
  .hero-logo {
    width: clamp(110px, 32vw, 180px);
  }
  .brand b {
    font-size: 17px;
  }
  .brand small {
    display: none;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .players {
    position: absolute;
    top: calc(64px + var(--safe-t));
    left: 0;
    right: 0;
    bottom: auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 12px 8px;
    scrollbar-width: none;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
  .icon-btn svg {
    width: 19px;
    height: 19px;
  }
  .top-actions {
    gap: 6px;
  }
  .topbar {
    left: 10px;
    right: 10px;
  }
  .players::-webkit-scrollbar {
    display: none;
  }
  .pcard {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    flex: 0 0 auto;
    min-width: 150px;
    width: auto;
    padding: 8px 10px;
    gap: 2px 8px;
    border-radius: 16px;
  }
  .pcard.turn {
    box-shadow: 0 0 0 2.5px var(--pc), 0 0 18px color-mix(in srgb, var(--pc) 50%, transparent);
  }
  .pcard .av {
    width: 34px;
    height: 34px;
  }
  .pcard .av::before {
    left: 9px;
    top: 11px;
    width: 5px;
    height: 8px;
    box-shadow: 10px 0 0 #fff;
  }
  .pcard .av::after {
    left: 10px;
    top: 13px;
    width: 3px;
    height: 4px;
    box-shadow: 10px 0 0 #15182A;
  }
  .pcard .bal {
    font-size: 17px;
  }
  .pcard .pname {
    font-size: 13px;
  }
  .pcard .meta {
    display: none;
  }
  .dock-main .btn-roll {
    min-width: 170px;
    min-height: 56px;
    font-size: 20px;
  }
  .dock-main .who span {
    display: none;
  }
  .pos-rig {
    scale: .8;
    transform-origin: bottom center;
  }
}
@media (max-height: 560px) and (orientation: landscape) {
  .pcard .meta {
    display: none;
  }
  .pcard {
    padding: 8px 10px;
  }
  .pc-2,
  .pc-3 {
    bottom: 10px;
  }
  .pc-0,
  .pc-1 {
    top: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
.kcard .setx {
  font: 800 11px var(--body);
  color: #1FAE5B;
}
.kcard .note.bad {
  color: #C13A4C;
  font-weight: 800;
}
.kcard .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: -2px 0 8px;
}
.kcard .badge-s,
.kcard .badge-d {
  font: 800 12px/1 var(--body);
  padding: 6px 9px;
  border-radius: 999px;
}
.kcard .badge-s {
  background: #E3F8EC;
  color: #12703C;
}
.kcard .badge-d {
  background: #1E2740;
  color: #FFD24A;
}
.kcard.offer {
  width: min(360px, 88vw);
}
.kcard.offer .head h3 {
  font-size: 28px;
}
.pick-banner {
  position: fixed;
  left: 50%;
  top: calc(76px + var(--safe-t));
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  border-radius: 18px;
  background: rgba(10, 22, 48, .9);
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 14px 30px rgba(0, 0, 0, .45);
  font: 800 16px/1.2 var(--display);
  max-width: calc(100% - 24px);
  animation: feedIn .25s ease-out;
}
.pick-banner .btn {
  min-height: 40px;
}
.coach {
  position: fixed;
  left: 50%;
  bottom: calc(112px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 55;
  width: min(560px, calc(100% - 24px));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      #FFFDF7,
      #F4ECDC);
  color: #1E2740;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .55), 0 0 0 3px var(--gold);
  animation: coachIn .35s cubic-bezier(.2, 1.2, .3, 1);
}
@keyframes coachIn {
  from {
    opacity: 0;
    scale: .92;
  }
}
.coach img {
  width: 54px;
  height: 54px;
}
.coach .c-step {
  font: 900 11px/1 var(--body);
  letter-spacing: .14em;
  color: #8A6A1A;
}
.coach h4 {
  margin: 4px 0 6px;
  font: 800 21px/1.1 var(--display);
}
.coach p {
  margin: 0;
  font: 700 14px/1.45 var(--body);
  color: #3A4460;
}
.coach .c-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.coach .c-actions .btn {
  min-height: 44px;
  font-size: 16px;
}
.coach .c-dots {
  display: flex;
  gap: 5px;
}
.coach .c-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D9CFB8;
}
.coach .c-dots i.on {
  background: var(--gold-deep);
}
.coach.busy .btn-gold {
  filter: grayscale(.6) brightness(.9);
}
@media (max-width: 860px), (max-aspect-ratio: 9/10) {
  .coach {
    bottom: calc(96px + var(--safe-b));
    padding: 12px 14px;
  }
  .coach img {
    width: 40px;
    height: 40px;
  }
  .coach h4 {
    font-size: 18px;
  }
  .coach p {
    font-size: 13px;
  }
}
.tut-press {
  animation: tutPress .55s ease-in-out;
  box-shadow: 0 0 0 4px #fff, 0 0 30px rgba(255, 210, 74, .9) !important;
}
@keyframes tutPress {
  50% {
    transform: scale(.94);
  }
}
.coach {
  left: 16px;
  bottom: calc(16px + var(--safe-b));
  top: auto;
  transform: none;
  width: min(440px, calc(100% - 32px));
}
@media (max-width: 860px), (max-aspect-ratio: 9/10) {
  .coach {
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 24px));
    top: calc(118px + var(--safe-t));
    bottom: auto;
  }
}
.coach.busy {
  grid-template-columns: auto 1fr;
  padding: 10px 14px;
}
.coach.busy img {
  width: 34px;
  height: 34px;
}
.coach.busy h4 {
  margin: 2px 0 0;
  font-size: 17px;
}
.coach.busy p {
  display: none;
}
.coach.busy .c-actions {
  display: none;
}
@media (max-width: 860px), (max-aspect-ratio: 9/10) {
  .tut-on .pick-banner {
    top: calc(186px + var(--safe-t));
  }
}
.coach {
  box-sizing: border-box;
  grid-template-columns: auto minmax(0, 1fr);
}
.coach .c-dots {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  overflow: hidden;
}
.coach .c-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .coach .c-dots i {
    width: 5px;
    height: 5px;
  }
  .coach .c-dots {
    gap: 3px;
  }
  .coach .c-actions .btn {
    padding-inline: 14px;
    font-size: 15px;
  }
}
.sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.game #stage {
  z-index: 1;
}
.menu {
  z-index: 1;
}
.skyfx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.dock-main .btn-build {
  width: auto;
  height: 60px;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--gold-hi);
  border-radius: 18px;
}
.dock-main .btn-build svg {
  width: 24px;
  height: 24px;
}
.dock-main .btn-build small {
  font: 800 11px/1 var(--display);
  letter-spacing: .02em;
}
.dock-main .btn-build:disabled {
  opacity: .4;
}
.clock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 8px;
  border-radius: 999px;
  background: rgba(6, 14, 30, .8);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .4);
  font: 800 14px/1 var(--display);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.clock b {
  font-size: 18px;
  min-width: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.clock small {
  color: var(--soft);
}
.clock i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: calc(var(--f,1) * 100%);
  background: var(--ok);
  transition: width .2s linear;
}
.clock.low {
  box-shadow: inset 0 0 0 1.5px var(--bad);
  animation: clockPulse .5s ease-in-out infinite alternate;
}
.clock.low i {
  background: var(--bad);
}
@keyframes clockPulse {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.16) drop-shadow(0 0 7px rgba(255, 91, 110, .42));
  }
}
.pcard .ptimer {
  grid-column: 1/-1;
  height: 12px;
  position: relative;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.pcard .ptimer span {
  position: absolute;
  inset: 0 4px;
  text-align: right;
  font: 700 10px/12px var(--body);
  color: white;
  text-shadow: 0 1px 2px #000;
}
.pcard .ptimer i {
  display: block;
  height: 100%;
  background: var(--ok);
  transition: width .2s linear;
}
.pcard .ptimer.low i {
  background: var(--bad);
}
.pcard .kick {
  color: var(--bad);
}
.kcard .ctimer {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 6px;
  height: 5px;
  border-radius: 3px;
  background: rgba(30, 39, 64, .15);
  overflow: hidden;
  z-index: 2;
}
.kcard .ctimer i {
  display: block;
  height: 100%;
  width: 100%;
  background:
    linear-gradient(
      90deg,
      #3BD98A,
      #F5C24A);
  transition: width .2s linear;
}
.afk-banner {
  position: fixed;
  left: 50%;
  top: calc(80px + var(--safe-t));
  transform: translateX(-50%);
  z-index: 95;
  width: min(460px, calc(100% - 24px));
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #3A0B16;
  color: #FFE1E6;
  box-shadow: 0 0 0 2px var(--bad), 0 18px 40px rgba(0, 0, 0, .5);
  font: 700 14px/1.4 var(--body);
  animation: feedIn .3s ease-out;
}
.afk-banner b {
  font: 800 17px/1.1 var(--display);
  color: #FFB3BF;
}
.afk-banner .btn {
  justify-self: end;
}
.pcard .crown-ic {
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5));
  z-index: 2;
  font-style: normal;
}
.pcard.champ {
  box-shadow: 0 0 0 2px #FFC83A, 0 10px 26px rgba(0, 0, 0, .35);
}
.pcard.champ.turn {
  box-shadow:
    0 0 0 3px var(--pc),
    0 0 0 6px #FFC83A,
    0 0 34px color-mix(in srgb, var(--pc) 55%, transparent);
}
.sheet.build {
  width: min(600px, 100%);
}
.bhelp {
  margin: 0 0 12px;
  color: var(--soft);
  font: 700 14px/1.45 var(--body);
}
.bhelp b {
  color: var(--ink);
}
.bgroup {
  border-radius: 18px;
  padding: 10px 12px 4px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gc) 55%, transparent);
}
.bghead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.bghead .flagbar {
  width: 34px;
  height: 20px;
  border-radius: 5px;
  margin: 0;
}
.bghead b {
  font: 800 18px/1 var(--display);
}
.bghead span {
  margin-left: auto;
  font: 900 10px/1 var(--body);
  letter-spacing: .1em;
  color: #1b1200;
  background: var(--gc);
  padding: 5px 8px;
  border-radius: 999px;
}
.brow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.brow:first-of-type {
  border-top: 0;
}
.bname {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.bname b {
  font: 800 16px/1.1 var(--display);
}
.bname small {
  color: var(--soft);
  font: 700 12px/1.2 var(--body);
}
.bname em {
  font-style: normal;
  color: var(--ok);
}
.pips {
  display: flex;
  gap: 4px;
  align-items: flex-end;
}
.pips i {
  display: block;
  width: 14px;
  height: 12px;
  background: rgba(255, 255, 255, .14);
  clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%);
}
.pips i.o {
  width: 20px;
  height: 16px;
  border-radius: 3px;
  clip-path: none;
}
.pips i.on {
  background: var(--gc);
}
.pips i.o.on {
  background:
    linear-gradient(
      180deg,
      #FFE38A,
      #E0A92C);
}
.bact {
  display: flex;
  gap: 6px;
}
.bact .btn {
  min-height: 42px;
}
.bact .bminus {
  width: 42px;
  padding: 0;
}
.bwhy {
  grid-column: 1/-1;
  font: 700 12px/1.2 var(--body);
  color: var(--dim);
}
.bpartial {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 4px 0 12px;
}
.bpartial small {
  width: 100%;
  color: var(--soft);
  font-weight: 800;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font: 800 13px/1 var(--body);
}
.chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gc);
}
.sheet.build .actions {
  display: flex;
}
.sheet.build .actions .btn {
  flex: 1;
}
.podium-sheet {
  width: min(640px, 100%);
  gap: 10px;
}
.podium-sheet h2 {
  font-size: 32px !important;
}
.podium-stage {
  width: 100%;
  height: min(300px, 38dvh);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 50% 20%,
      #27509C,
      #0A1733 75%);
}
.podium-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 6px;
  text-align: left;
}
.rank-list li {
  display: grid;
  grid-template-columns: 30px 14px minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
}
.rank-list li:first-child {
  background:
    linear-gradient(
      90deg,
      rgba(255, 200, 58, .28),
      rgba(255, 255, 255, .06));
  box-shadow: inset 0 0 0 1.5px #FFC83A;
}
.rank-list .rk {
  font: 800 20px/1 var(--display);
  color: var(--gold-hi);
  text-align: center;
}
.rank-list i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pc);
}
.rank-list b {
  font: 800 16px/1 var(--display);
}
.rank-list small {
  color: var(--soft);
  font: 800 13px/1 var(--body);
}
.tut-on .game button:not(.tut-target):not(.tut-free),
.tut-on #modal [data-act]:not(.tut-target):not(.tut-free),
.tut-on .pick-banner button {
  pointer-events: none;
}
.tut-on .stage-canvas {
  pointer-events: none;
}
.tut-on.tut-pick .stage-canvas {
  pointer-events: auto;
}
.tut-on #modal [data-act]:not(.tut-target):not(.tut-free):not(.x) {
  opacity: .55;
}
.tut-target {
  position: relative;
  z-index: 3;
  animation: tutGlow 1s ease-in-out infinite !important;
  outline: none !important;
}
@keyframes tutGlow {
  0%, 100% {
    box-shadow: 0 0 0 3px #3BD98A, 0 0 14px 2px rgba(59, 217, 138, .6);
  }
  50% {
    box-shadow: 0 0 0 6px #3BD98A, 0 0 34px 10px rgba(59, 217, 138, .85);
  }
}
.tut-target::after {
  content: "\1f446";
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  font-size: 26px;
  line-height: 1;
  pointer-events: none;
  animation: tutPoint .8s ease-in-out infinite alternate;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5));
}
@keyframes tutPoint {
  to {
    transform: translate(-50%, -8px);
  }
}
.dock-main .tut-target::after {
  bottom: auto;
  top: -36px;
  content: "\1f447";
}
.kcard .x.tut-target::after {
  bottom: auto;
  top: 44px;
  left: auto;
  right: 0;
  transform: none;
}
.coach .c-hint {
  margin: 2px 0 0;
  font: 800 14px/1.35 var(--body);
  color: #0E6A3C;
}
.coach.busy .c-hint {
  display: block;
}
.coach.busy p.c-hint {
  display: block;
}
.tut-on .pick-banner {
  border: 0;
  box-shadow: inset 0 0 0 2px #3BD98A, 0 14px 30px rgba(0, 0, 0, .45);
}
.pick-banner {
  pointer-events: none;
}
.pick-banner .btn {
  pointer-events: auto;
}
.pick-banner {
  top: auto !important;
  bottom: calc(112px + var(--safe-b));
}
@media (max-width: 860px), (max-aspect-ratio: 9/10) {
  .pick-banner {
    bottom: calc(100px + var(--safe-b));
  }
}
body.tile-pick .game .topbar,
body.tile-pick .game .players,
body.tile-pick .game .dock,
body.tile-pick .game .side-chat {
  pointer-events: none !important;
}
body.tile-pick .stage-canvas {
  touch-action: none !important;
}
.overlay.side {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  place-items: center end;
  padding-right: 24px;
  pointer-events: none;
}
.overlay.side > * {
  pointer-events: auto;
}
.overlay.side .sheet.build {
  width: min(430px, 100%);
  max-height: calc(100dvh - 120px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55), inset 0 0 0 1.5px rgba(245, 194, 74, .35);
}
@media (max-width: 860px), (max-aspect-ratio: 9/10) {
  .overlay.side {
    place-items: end center;
    padding: 0 8px calc(8px + var(--safe-b));
  }
  .overlay.side .sheet.build {
    width: 100%;
    max-height: 52dvh;
    padding: 16px;
  }
}
@media (max-width: 860px), (max-aspect-ratio: 9/10) {
  .overlay.side .sheet.build {
    max-height: 40dvh;
    padding: 12px 14px;
  }
  .overlay.side .sheet.build .bhelp {
    display: none;
  }
  .overlay.side .sheet.build .sheet-head {
    margin-bottom: 6px;
  }
  .overlay.side .sheet.build .sheet-head h2 {
    font-size: 21px;
  }
  .brow {
    padding: 6px 0;
  }
}
.overlay {
  overflow-y: auto;
}
.overlay:not(.side) {
  align-items: safe center;
}
.hero .wordmark {
  filter: drop-shadow(0 4px 0 #7A4A00) drop-shadow(0 12px 22px rgba(60, 30, 0, .35));
}
.hero .tagline {
  color: #17305F;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 0 18px rgba(255, 255, 255, .6);
}
.hero-logo {
  filter: drop-shadow(0 18px 30px rgba(120, 60, 0, .35));
}
.menu-foot {
  color: #A9B8DA;
}
.feed div {
  font: 800 16px/1.25 var(--display);
  padding: 8px 16px;
  background: rgba(8, 18, 40, .86);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.feed div:not(:first-child) {
  opacity: .7;
  font-size: 14px;
}
.pcard .float {
  font: 800 24px/1 var(--display);
  -webkit-text-stroke: 1px rgba(0, 0, 0, .35);
  text-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 12px rgba(0, 0, 0, .4);
}
.mini-pay {
  font: 800 16px/1.1 var(--display);
  padding: 10px 14px;
  border-radius: 16px;
  gap: 10px;
  border-width: 2px;
}
.mini-pay .mcard {
  width: 34px;
  height: 22px;
}
.mini-pay .mcheck {
  font-size: 18px;
}
.toast {
  font: 800 19px/1.25 var(--display);
  padding: 14px 22px;
  border-radius: 18px;
  border-width: 2px;
  top: calc(88px + var(--safe-t));
  max-width: calc(100% - 24px);
  text-align: center;
}
.announce {
  position: fixed;
  left: 50%;
  top: calc(96px + var(--safe-t));
  transform: translateX(-50%);
  z-index: 92;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px 28px;
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      #14306A,
      #0B1B40);
  box-shadow:
    0 0 0 3px var(--ac),
    0 18px 40px rgba(0, 0, 0, .5),
    0 0 40px color-mix(in srgb, var(--ac) 45%, transparent);
  text-align: center;
  max-width: calc(100% - 24px);
  pointer-events: none;
}
.announce b {
  font: 800 clamp(24px, 3.2vw, 34px)/1.05 var(--display);
  color: #FFF4CF;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}
.announce span {
  font: 800 15px/1.3 var(--body);
  color: var(--soft);
}
.clock {
  font-size: 16px;
  padding: 8px 16px 10px;
}
.clock b {
  font-size: 24px;
}
.clock i {
  height: 4px;
}
.kcard .ctimer,
.sheet .ctimer {
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  z-index: 5;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(
      circle,
      #10224A 58%,
      transparent 59%),
    conic-gradient(var(--tc,#3BD98A) calc(var(--f,1) * 360deg), rgba(255, 255, 255, .14) 0);
  box-shadow: 0 0 0 3px #0B1834, 0 10px 22px rgba(0, 0, 0, .45);
}
.kcard .ctimer i,
.sheet .ctimer i {
  display: none;
}
.kcard .ctimer b,
.sheet .ctimer b {
  font: 800 24px/1 var(--display);
  color: #fff;
}
.kcard .ctimer small,
.sheet .ctimer small {
  font: 800 10px/1 var(--body);
  color: var(--soft);
  letter-spacing: .08em;
}
.ctimer.low {
  --tc:#FF5B6E;
  animation: ctPulse .5s ease-in-out infinite alternate;
}
@keyframes ctPulse {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.12) drop-shadow(0 0 6px rgba(255, 91, 110, .38));
  }
}
.sheet .ctimer {
  top: 14px !important;
  left: auto !important;
  right: 66px;
  transform: none !important;
  width: 52px !important;
  height: 52px !important;
}
.sheet .ctimer b {
  font-size: 20px !important;
}
.sheet {
  position: relative;
}
.overlay .card-wrap {
  padding-top: 26px;
}
.bcity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gc) 60%, transparent);
  margin-bottom: 10px;
}
.bcity .flagbar {
  width: 38px;
  height: 24px;
  border-radius: 6px;
  margin: 0;
}
.bcity div {
  display: grid;
  gap: 3px;
  flex: 1;
}
.bcity b {
  font: 800 16px/1.1 var(--display);
}
.bcity small {
  color: var(--soft);
  font: 700 13px/1.2 var(--body);
}
.bopts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.bopt {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 10px 6px;
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      #FFF6DA,
      #F2DDA6);
  color: #2A1A00;
  box-shadow: 0 5px 0 #A07318, 0 10px 18px rgba(0, 0, 0, .3);
  transition: transform .08s;
}
.bopt:hover {
  transform: translateY(-2px);
}
.bopt:active {
  transform: translateY(2px);
}
.bopt .bico {
  font-size: 15px;
  line-height: 1.1;
  min-height: 18px;
  letter-spacing: -2px;
}
.bopt b {
  font: 800 17px/1 var(--display);
}
.bopt small {
  font: 800 13px/1 var(--body);
}
.bopt em {
  font-style: normal;
  font: 800 11px/1 var(--body);
  color: #1F7A48;
}
.bopt.no,
.bopt:disabled {
  filter: grayscale(1);
  opacity: .45;
  box-shadow: none;
}
.ropts {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.ropts .btn {
  flex-direction: column;
  gap: 3px;
  min-height: 60px;
  padding: 8px 14px;
}
.ropts .btn span {
  font: 800 17px/1 var(--display);
}
.ropts .btn small {
  font: 800 11px/1 var(--body);
  opacity: .8;
}
.sheet.trade {
  width: min(760px, 100%);
}
.tcols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tcol {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .2);
}
.tcol h4 {
  margin: 0;
  font: 800 16px/1.1 var(--display);
  color: var(--gold-hi);
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.tcol h4 small {
  color: var(--soft);
  font: 700 12px/1.1 var(--body);
}
.tlist {
  display: grid;
  gap: 6px;
  max-height: min(34dvh, 260px);
  overflow: auto;
  padding-right: 2px;
}
.tasset {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  text-align: left;
  transition: background .15s;
}
.tasset .bar {
  width: 6px;
  height: 28px;
  border-radius: 3px;
  background: var(--gc);
}
.tasset b {
  font: 800 14px/1.1 var(--display);
}
.tasset .lv {
  font-style: normal;
  font-size: 11px;
  margin-left: 6px;
  color: var(--soft);
}
.tasset em {
  font-style: normal;
  font: 800 12px/1 var(--body);
  color: var(--soft);
}
.tasset.on {
  background: color-mix(in srgb, var(--gc) 30%, #0E2150);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.tasset.on em {
  color: var(--gold-hi);
}
.tmoney {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tmoney span {
  font: 800 13px/1 var(--body);
  color: var(--soft);
}
.tmoney b {
  min-width: 96px;
  text-align: center;
  font: 800 16px/1 var(--display);
}
.tmoney .btn {
  min-height: 34px;
  padding: 0 10px;
}
.tbal {
  color: var(--dim);
  font-weight: 800;
}
.tmeter {
  margin: 12px 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .2);
}
.tbar {
  position: relative;
  height: 14px;
  border-radius: 7px;
  background:
    linear-gradient(
      90deg,
      #FF6B7F 0 40%,
      rgba(255, 255, 255, .12) 40%);
}
.tbar .zone {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(59, 217, 138, .55);
  border-radius: 7px;
}
.tbar .needle {
  position: absolute;
  top: -5px;
  width: 6px;
  height: 24px;
  margin-left: -3px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, .5);
  transition: left .25s;
}
.tvals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font: 700 13px/1.2 var(--body);
  color: var(--soft);
}
.tvals b {
  color: var(--ink);
}
.tpct {
  font: 800 20px/1 var(--display);
  color: var(--gold-hi);
}
.tmeter p {
  margin: 6px 0 0;
  font: 800 13px/1.3 var(--body);
}
.tmeter.ok p {
  color: var(--ok);
}
.tmeter.bad p {
  color: var(--bad);
}
.sheet.trade .actions {
  display: flex;
  gap: 10px;
}
.sheet.trade .actions .btn {
  flex: 1;
}
@media (max-width: 640px) {
  .tcols {
    grid-template-columns: 1fr;
  }
  .tlist {
    max-height: 22dvh;
  }
  .sheet.trade {
    padding: 14px;
  }
}
.inoffer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0;
}
.inoffer h5 {
  margin: 0 0 6px;
  font: 800 13px/1 var(--display);
  color: #6A4A10;
}
.inoffer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.inoffer li {
  font: 700 13px/1.2 var(--body);
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(30, 39, 64, .07);
}
.inoffer em {
  font-style: normal;
  font-weight: 800;
}
.kcard .ctimer {
  top: -46px !important;
}
.overlay .card-wrap {
  padding-top: 44px;
}
.setup-top {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}
.setup-top .pv {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 50% 35%,
      #2B5AA8,
      #0E1F44);
  box-shadow: inset 0 0 0 2px rgba(245, 194, 74, .4);
  overflow: hidden;
}
.pawn-preview {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.field span small {
  color: var(--dim);
  font-weight: 700;
}
.costumes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.costume {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.costume i {
  font-style: normal;
  font-size: 22px;
  line-height: 1;
}
.costume small {
  font: 800 10px/1 var(--body);
  color: var(--soft);
}
.costume[aria-pressed=true] {
  background: rgba(245, 194, 74, .2);
  box-shadow: inset 0 0 0 2px var(--gold);
}
@media (max-width: 520px) {
  .costumes {
    grid-template-columns: repeat(4, 1fr);
  }
  .setup-top {
    grid-template-columns: 96px 1fr;
  }
  .setup-top .pv {
    width: 96px;
    height: 96px;
  }
}
.sheet.auction {
  width: min(560px, 100%);
  box-shadow: var(--shadow), inset 0 0 0 2px color-mix(in srgb, var(--gc) 70%, transparent);
}
.ahead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.ahead small {
  font: 900 11px/1 var(--body);
  letter-spacing: .12em;
  color: var(--gc);
}
.ahead h2 {
  margin: 4px 0 0;
  font: 800 28px/1 var(--display);
  color: var(--gold-hi);
}
.aval {
  display: grid;
  text-align: right;
  font: 800 12px/1.2 var(--body);
  color: var(--soft);
}
.aval b {
  font: 800 18px/1 var(--display);
  color: var(--ink);
}
.astage {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}
.ablock {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      #FFF6DA,
      #F2DDA6);
  color: #2A1A00;
  min-height: 110px;
}
.gavel {
  width: 112px;
  height: 73px;
  flex: 0 0 auto;
  overflow: visible;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25));
}
.gavel .ghead {
  transform-box: view-box;
  transform-origin: 49px 106px;
  transform: rotate(-12deg);
}
.gavel .gblock {
  transform-box: view-box;
  transform-origin: 124px 114px;
}
.gavel.tap .ghead {
  animation: gavelTap .5s ease-in-out;
}
.gavel.tap .gblock {
  animation: gavelBlock .5s ease-out;
}
.gavel.slam .ghead {
  animation: gavelSlam .7s cubic-bezier(.5, 0, .4, 1) forwards;
}
.gavel.slam .gblock {
  animation: gavelBlock .7s ease-out;
}
@keyframes gavelTap {
  0% {
    transform: rotate(-12deg);
  }
  35% {
    transform: rotate(-32deg);
  }
  62% {
    transform: rotate(66deg);
  }
  72% {
    transform: rotate(60deg);
  }
  100% {
    transform: rotate(-12deg);
  }
}
@keyframes gavelSlam {
  0% {
    transform: rotate(-12deg);
  }
  40% {
    transform: rotate(-48deg) scale(1.05);
  }
  62% {
    transform: rotate(68deg) scale(1.12);
  }
  74% {
    transform: rotate(62deg) scale(1.05);
  }
  100% {
    transform: rotate(66deg) scale(1.06);
  }
}
@keyframes gavelBlock {
  0%, 58% {
    transform: none;
  }
  64% {
    transform: scale(1.12, .82);
  }
  78% {
    transform: scale(.96, 1.06);
  }
  100% {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gavel .ghead,
  .gavel .gblock {
    animation-duration: .01s !important;
  }
}
.aboard {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.aphase {
  font: 800 15px/1 var(--display);
  color: #8A5A10;
}
.aphase.k1,
.aphase.k2 {
  color: #C0392B;
  animation: ctPulse .4s ease-in-out infinite alternate;
}
.aphase.sold {
  font-size: 30px;
  color: #C0392B;
  letter-spacing: .04em;
  text-shadow: 0 2px 0 #fff;
}
.abid {
  font: 800 clamp(28px, 5vw, 38px)/1 var(--display);
  color: #1E2740;
}
.alead {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 800 14px/1 var(--body);
}
.alead i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.atimer {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle,
      #10224A 58%,
      transparent 59%),
    conic-gradient(#F5C24A calc(var(--f,1) * 360deg), rgba(255, 255, 255, .14) 0);
  box-shadow: 0 0 0 3px #0B1834;
}
.atimer b {
  font: 800 26px/1 var(--display);
}
.abidders {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.abidder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font: 800 13px/1 var(--body);
}
.abidder i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pc);
}
.abidder.out {
  opacity: .4;
  text-decoration: line-through;
}
.abidder.lead {
  background: color-mix(in srgb, var(--pc) 35%, #0E2150);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.abtns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.abtns .btn {
  min-height: 50px;
  font-size: 15px;
  padding: 0 8px;
}
.ahint {
  margin: 8px 0 0;
  text-align: center;
  color: var(--soft);
  font: 800 13px/1.3 var(--body);
}
.shake {
  animation: shakeX .45s;
}
@keyframes shakeX {
  0%, 100% {
    transform: none;
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(7px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(3px);
  }
}
@media (max-width: 520px) {
  .abtns {
    grid-template-columns: 1fr 1fr;
  }
  .gavel {
    width: 88px;
    height: 57px;
  }
}
.sheet.debt {
  width: min(560px, 100%);
}
.dmeter {
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .2);
  margin-bottom: 10px;
}
.dbar {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 107, 127, .25);
  overflow: hidden;
}
.dbar i {
  display: block;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      #FF6B7F,
      #F5C24A);
  transition: width .4s;
}
.dmeter.ok .dbar i {
  background: var(--ok);
}
.dvals {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font: 800 13px/1 var(--body);
  color: var(--soft);
}
.dvals b {
  color: var(--ink);
}
.dlist {
  display: grid;
  gap: 6px;
  max-height: min(40dvh, 320px);
  overflow: auto;
  margin-bottom: 12px;
}
.drow {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
}
.drow > i {
  width: 6px;
  height: 30px;
  border-radius: 3px;
  background: var(--gc);
}
.drow b {
  font: 800 14px/1.1 var(--display);
}
.drow em {
  font-style: normal;
  font-size: 12px;
  color: var(--gold-hi);
}
.drow small {
  display: block;
  color: var(--dim);
  font-weight: 700;
}
.drow > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.drow .btn {
  min-height: 34px;
  font-size: 12px;
  padding: 0 10px;
}
.sheet.debt .actions {
  display: flex;
  gap: 10px;
}
.sheet.debt .actions .btn {
  flex: 1;
}
.printer {
  display: grid;
  justify-items: center;
  gap: 0;
}
.pslot {
  width: min(320px, 86vw);
  height: 34px;
  border-radius: 14px 14px 6px 6px;
  background:
    linear-gradient(
      180deg,
      #2A3656,
      #161E33);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font: 800 12px/1 var(--display);
  letter-spacing: .12em;
  color: var(--gold-hi);
  position: relative;
  z-index: 2;
}
.pslot i {
  width: 40%;
  height: 6px;
  border-radius: 3px;
  background: #05080F;
}
.receipt {
  width: min(280px, 76vw);
  background: #FFFFFF;
  color: #111;
  font:
    700 13px/1.35 "Courier New",
    ui-monospace,
    monospace;
  box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
  margin-top: -6px;
  clip-path: inset(0 0 100% 0);
  position: relative;
}
.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
  background:
    linear-gradient(
      -45deg,
      transparent 6px,
      #fff 0) 0 0/12px 8px,
    linear-gradient(
      45deg,
      transparent 6px,
      #fff 0) 0 0/12px 8px;
}
.receipt.print {
  animation: printOut 1.3s steps(14) forwards;
}
@keyframes printOut {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 -10px 0);
  }
}
.rin {
  padding: 14px 16px 16px;
}
.rc {
  text-align: center;
  font-weight: 900;
  letter-spacing: .06em;
}
.rc.small {
  font-size: 11px;
  font-weight: 700;
}
.receipt hr {
  border: 0;
  border-top: 2px dashed #999;
  margin: 8px 0;
}
.rl {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.rl.big {
  font-size: 16px;
  font-weight: 900;
}
.rt {
  font-weight: 900;
  font-size: 15px;
  text-align: center;
  margin: 2px 0 4px;
}
.rx {
  text-align: center;
  font-weight: 700;
}
.barcode {
  display: flex;
  justify-content: center;
  height: 34px;
  margin: 6px 0;
}
.barcode i {
  display: block;
  height: 100%;
  background: #111;
}
.rlogo {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-top: 6px;
}
.rlogo img {
  width: 48px;
  height: 48px;
}
.rlogo b {
  font: 800 18px/1 var(--display);
  letter-spacing: .08em;
  color: #111;
}
.rlogo small {
  font-size: 10px;
  color: #555;
}
.printer > .btn {
  margin-top: 18px;
}
.wtabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, .2);
  padding: 4px;
  border-radius: 14px;
}
.wtabs button {
  padding: 8px 14px;
  border-radius: 10px;
  font: 800 14px/1 var(--display);
  color: var(--soft);
}
.wtabs button[aria-pressed=true] {
  background: var(--gold);
  color: #2A1A00;
}
.wpod,
.wz {
  width: 100%;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.wz .receipt {
  width: min(360px, 100%);
  max-height: min(56dvh, 520px);
  overflow: auto;
  margin-top: 0;
}
.setup-top > *,
.menu-panel .field {
  min-width: 0;
}
.text-in {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.menu-panel {
  box-sizing: border-box;
  max-width: 100%;
}
@media (max-width: 520px) {
  .menu-panel {
    padding: 18px;
  }
}
.blot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 0 0 12px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), 0 8px 18px rgba(0, 0, 0, .28);
}
.blot .bh.ghost {
  animation: bhGhost 1.1s ease-in-out infinite;
  animation-delay: var(--d,0ms);
  transform-box: fill-box;
}
.blot .bh.built {
  animation: none;
}
@keyframes bhGhost {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}
.bsteps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.bstep {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 10px 4px 9px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .07);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  transition:
    transform .08s,
    background .15s,
    box-shadow .15s;
}
.bstep svg {
  width: 16px;
  height: 16px;
  display: block;
}
.bstep .hs {
  display: flex;
  gap: 1px;
  min-height: 16px;
  align-items: center;
}
.bstep .hs svg {
  width: 11px;
  height: 11px;
}
.bstep > svg {
  width: 20px;
  height: 18px;
}
.bstep b {
  font: 800 15px/1 var(--display);
}
.bstep small {
  font: 800 11px/1.1 var(--body);
  color: var(--soft);
  white-space: nowrap;
}
.bstep:not(:disabled):hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .12);
}
.bstep.rng {
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 55%, transparent);
}
.bstep.on {
  background:
    linear-gradient(
      180deg,
      #FFF6DA,
      #F2D58A);
  color: #2A1A00;
  box-shadow: 0 5px 0 #A07318, 0 10px 18px rgba(0, 0, 0, .3);
  transform: translateY(-3px);
}
.bstep.on small {
  color: #6B4300;
}
.bstep.done {
  background: color-mix(in srgb, var(--gc) 30%, rgba(255, 255, 255, .04));
  color: #fff;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gc) 70%, transparent);
  opacity: .9;
}
.bstep.done small {
  color: #DFFFEA;
}
.bstep.lock {
  opacity: .42;
  filter: grayscale(.8);
}
.bsum {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.bsum > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  position: relative;
}
.bsum small {
  font: 800 11px/1 var(--body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--soft);
}
.bsum b {
  font: 800 16px/1.1 var(--display);
  white-space: nowrap;
}
.bsum b i {
  font-style: normal;
  color: var(--soft);
  margin: 0 2px;
}
.bsum b em {
  font-style: normal;
  color: var(--ok);
}
.bsum b.neg {
  color: var(--bad);
}
.bsum .bup {
  position: absolute;
  right: 8px;
  top: 7px;
  font: 800 11px/1 var(--body);
  color: #0B2A18;
  background: var(--ok);
  padding: 3px 6px;
  border-radius: 999px;
}
.sheet.build .actions .bgo {
  flex: 1.6;
}
@media (max-width: 860px), (max-aspect-ratio: 9/10) {
  .overlay.side .sheet.build {
    max-height: 62dvh;
  }
  .blot {
    max-height: 90px;
    object-fit: cover;
    margin-bottom: 8px;
  }
  .bsteps {
    gap: 4px;
    margin-bottom: 8px;
  }
  .bstep {
    padding: 8px 2px 7px;
    border-radius: 12px;
  }
  .bstep b {
    font-size: 13px;
  }
  .bstep small {
    font-size: 10px;
  }
  .bsum {
    gap: 5px;
    margin-bottom: 8px;
  }
  .bsum > div {
    padding: 7px 8px;
  }
  .bsum b {
    font-size: 13px;
  }
  .bsum small {
    font-size: 9.5px;
  }
  .bsum .bup {
    display: none;
  }
}
.bshield {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 0 10px;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  color: var(--ink);
  font: 800 14px/1 var(--display);
}
.bshield b {
  font: 800 13px/1 var(--body);
  color: var(--soft);
}
.bshield.on {
  background: color-mix(in srgb, var(--ok) 18%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--ok);
}
.bshield.on b {
  color: var(--ok);
}
.bshield:disabled {
  opacity: .45;
}
@media (max-width: 860px), (max-aspect-ratio: 9/10) {
  .bshield {
    padding: 7px 12px;
    margin-bottom: 8px;
    font-size: 13px;
  }
}
.bcity > .flagbar {
  flex: 0 0 38px;
  display: grid;
  gap: 0;
  overflow: hidden;
}
.coin {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -.18em;
  flex: none;
}
.btn-shop {
  justify-content: flex-start;
}
.menu.wide .menu-panel {
  width: min(100%, 620px);
}
.menu-panel.shop {
  gap: 12px;
}
.jeton {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(245, 194, 74, .12);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .35);
}
.jeton .coin {
  width: 26px;
  height: 26px;
}
.jeton b {
  font: 800 24px/1 var(--display);
  color: var(--gold-hi);
}
.jeton span {
  font: 800 14px/1 var(--display);
  color: var(--gold-hi);
}
.jeton small {
  flex-basis: 100%;
  color: var(--soft);
  font: 700 12px/1.3 var(--body);
}
.stabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .2);
}
.stabs button {
  min-height: 40px;
  border-radius: 12px;
  font: 800 15px/1 var(--display);
  color: var(--soft);
}
.stabs button[aria-selected=true] {
  background:
    linear-gradient(
      180deg,
      #FFE38A,
      #E0A92C);
  color: #2A1A00;
  box-shadow: 0 3px 0 #A07318;
}
.spv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(
      120px 100px at 65px 50%,
      rgba(255, 255, 255, .14),
      transparent 70%),
    rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.spv3d,
.spvsvg {
  width: 130px;
  height: 130px;
}
.spv3d canvas {
  width: 100% !important;
  height: 100% !important;
}
.spvsvg svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35));
}
.spvimg {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35));
}
.spvinfo {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.spvinfo > b {
  font: 800 22px/1.1 var(--display);
}
.sact {
  display: grid;
  gap: 6px;
}
.sact .btn {
  width: 100%;
  min-height: 46px;
  font-size: 16px;
}
.sact .need {
  color: var(--soft);
  font: 700 12px/1.3 var(--body);
}
.sgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  max-height: min(42dvh, 360px);
  overflow: auto;
  padding: 2px;
}
.sitem {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1);
  color: var(--ink);
  transition: transform .08s;
}
.sitem:hover {
  transform: translateY(-2px);
}
.sitem.sel {
  background: rgba(245, 194, 74, .14);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.sitem .sth {
  width: 64px;
  height: 48px;
  display: grid;
  place-items: center;
}
.sitem .sth img {
  max-width: 64px;
  max-height: 34px;
}
.sitem .sth svg {
  width: 48px;
  height: 48px;
}
.sitem .cico {
  font-size: 30px;
  font-style: normal;
  line-height: 1;
}
.sitem b {
  font: 800 13px/1.1 var(--display);
  text-align: center;
}
.sitem em {
  font-style: normal;
  font: 800 12px/1 var(--body);
  color: var(--soft);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.sitem em.price {
  color: var(--gold-hi);
}
.sitem em.eq {
  color: var(--ok);
}
.sitem .winl {
  font: 700 10px/1.2 var(--body);
  color: var(--soft);
  text-align: center;
}
.sitem:not(.owned) .sth {
  filter: none;
}
.shelp {
  margin: 0;
  color: var(--soft);
  font: 700 12px/1.5 var(--body);
  text-align: center;
}
.shelp b {
  color: var(--gold-hi);
}
.reward-pause-mobile {
  display: none;
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu-panel.shop .jeton .reward-pause-mobile {
    display: block;
    max-width: 180px;
    font: 700 10px/1.25 var(--body);
    color: var(--soft);
    white-space: normal;
  }
}
.costume.locked {
  opacity: .6;
}
.costume.locked small {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold-hi);
}
.costume.locked i {
  filter: grayscale(.6);
}
.reward {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(245, 194, 74, .14);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .45);
  text-align: center;
  animation: feedIn .4s ease-out;
}
.reward .coin {
  width: 30px;
  height: 30px;
}
.reward b {
  font: 800 22px/1 var(--display);
  color: var(--gold-hi);
}
.reward span {
  font: 700 13px/1.3 var(--body);
  color: var(--ink);
}
.reward small {
  font: 700 12px/1.2 var(--body);
  color: var(--soft);
}
@media (max-width: 520px) {
  .spv {
    grid-template-columns: 100px 1fr;
    gap: 10px;
    padding: 10px;
  }
  .spv3d,
  .spvsvg {
    width: 100px;
    height: 100px;
  }
  .spvimg {
    width: 100px;
  }
  .spvinfo > b {
    font-size: 18px;
  }
  .sgrid {
    grid-template-columns: repeat(3, 1fr);
    max-height: 34dvh;
  }
}
.mp-help {
  margin: 0;
  color: var(--soft);
  font: 700 13px/1.45 var(--body);
}
.mp-err {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 107, 127, .14);
  color: #FFD2D9;
  font: 800 13px/1.4 var(--body);
  box-shadow: inset 0 0 0 1.5px rgba(255, 107, 127, .45);
}
.mp-join {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.mp-join .btn {
  width: auto;
}
.mp-code-in {
  text-align: center;
  font: 800 22px/1 var(--display);
  letter-spacing: .3em;
  text-transform: uppercase;
}
.mp-code {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(245, 194, 74, .12);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .4);
}
.mp-code small {
  color: var(--soft);
  font: 800 12px/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mp-code b {
  font: 800 40px/1 var(--display);
  letter-spacing: .18em;
  color: var(--gold-hi);
  direction: ltr;
}
.mp-share {
  display: flex;
  gap: 8px;
}
.mp-share .btn {
  width: auto;
  min-height: 38px;
  font-size: 14px;
}
.mp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.mp-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.mp-list li > i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pc,#8FA3C4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
}
.mp-list li.bot {
  opacity: .75;
}
.mp-list li.bot > i {
  background: #8FA3C4;
}
.mp-list b {
  font: 800 15px/1.1 var(--display);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-badge {
  font: 800 11px/1 var(--body);
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(245, 194, 74, .2);
  color: var(--gold-hi);
}
.mp-badge.you {
  background: rgba(59, 217, 138, .2);
  color: var(--ok);
}
.mp-list em {
  font-style: normal;
  font: 800 12px/1 var(--body);
  color: var(--soft);
  min-width: 48px;
  text-align: end;
}
.mp-spin {
  width: 44px;
  height: 44px;
  margin: 6px auto;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .15);
  border-top-color: var(--gold);
  animation: mpSpin .9s linear infinite;
}
@keyframes mpSpin {
  to {
    transform: rotate(360deg);
  }
}
.mp-wait {
  position: fixed;
  left: 50%;
  top: calc(90px + var(--safe-t));
  transform: translateX(-50%);
  z-index: 60;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(10, 22, 48, .92);
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 14px 30px rgba(0, 0, 0, .45);
  text-align: center;
  font: 700 14px/1.35 var(--body);
  max-width: calc(100% - 24px);
}
.mp-wait b {
  font: 800 17px/1.2 var(--display);
  color: var(--gold-hi);
}
.pcard.me {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), var(--shadow,0 10px 24px rgba(0,0,0,.4));
}
.menu-sep {
  height: 1px;
  margin: 2px 6px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, .22),
      transparent);
}
.menu-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.menu-row2 .btn {
  min-width: 0;
  padding: 0 12px;
  white-space: nowrap;
}
.btn-shop {
  background:
    linear-gradient(
      180deg,
      #2E6B5A,
      #1D4A3E);
  box-shadow: inset 0 0 0 1.5px rgba(122, 224, 180, .35), 0 4px 0 #123429;
}
.costume img {
  width: 100%;
  max-width: 58px;
  aspect-ratio: 1;
  object-fit: contain;
  pointer-events: none;
}
.costume.locked img {
  filter: grayscale(.55) brightness(.9);
}
.sitem .sth img.cthumb {
  max-width: 60px;
  max-height: 60px;
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.sitem .sth {
  height: 62px;
}
.shop-head {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0;
  margin-top: -6px;
}
.activity-shop-warning {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-bottom: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.activity-shop-warning .btn {
  width: 100%;
}
@media (orientation: landscape) and (max-height: 540px) {
  .shop-preview-mode .menu-panel.shop:has(> .activity-shop-warning) {
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr) !important;
    grid-template-areas: "account account" "premium premium" "jeton back" "tabs tabs" "spv spv" "grid grid" !important;
  }
  .menu-panel.shop > .activity-shop-warning {
    grid-area: account;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0;
    font-size: 11px;
    line-height: 1.3;
  }
  .activity-shop-warning .btn {
    width: auto;
    min-height: 32px !important;
    padding: 0 10px;
    font-size: 12px;
  }
}
.shop-head .shop-back {
  position: absolute;
  right: 0;
  top: 0;
  width: 36px;
  height: 36px;
  font-size: 24px;
}
.notice-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.notice-actions .btn {
  width: min(260px, 100%);
}
.shop-awning {
  width: min(100%, 300px);
  height: 22px;
  border-radius: 10px 10px 4px 4px;
  background:
    repeating-linear-gradient(
      90deg,
      #E8483F 0 26px,
      #FFF3DC 26px 52px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .18);
  -webkit-mask:
    radial-gradient(
      13px at 13px 100%,
      #0000 98%,
      #000) 0 0/26px 100%;
  mask:
    radial-gradient(
      13px at 13px 100%,
      #0000 98%,
      #000) 0 0/26px 100%;
}
.shop-head h2 {
  margin: 8px 0 0;
}
.mp-badge.own {
  background: rgba(245, 194, 74, .24);
  color: var(--gold-hi);
}
.mp-badge.ok {
  background: rgba(59, 217, 138, .2);
  color: var(--ok);
}
.mp-badge.wait {
  background: rgba(255, 255, 255, .1);
  color: var(--soft);
}
.mp-list b small {
  font: 700 11px/1 var(--body);
  color: var(--soft);
}
.mp-list li.empty {
  opacity: .45;
  box-shadow: inset 0 0 0 1px dashed rgba(255, 255, 255, .2);
  background: transparent;
}
.mp-list li.empty > i {
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3);
}
.mp-list li {
  flex-wrap: wrap;
}
.mp-tools {
  display: flex;
  gap: 6px;
  flex-basis: 100%;
  justify-content: flex-end;
}
.btn-xs {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
  width: auto !important;
}
.btn-xs.danger {
  color: #FFB3BF;
  box-shadow: inset 0 0 0 1.5px rgba(255, 107, 127, .45);
}
.room-set {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.room-set h3 {
  margin: 0;
  font: 800 15px/1 var(--display);
  color: var(--gold-hi);
}
.room-set .seg {
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 16px;
}
.room-set .seg button {
  padding: 8px 10px;
  font-size: 13px;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.lang-opt {
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1);
  color: var(--ink);
  text-align: start;
}
.lang-opt b {
  font: 800 16px/1.15 var(--display);
  white-space: normal;
}
.lang-opt small {
  font: 800 11px/1 var(--body);
  color: var(--soft);
  letter-spacing: .08em;
}
.lang-opt[aria-pressed=true] {
  background: rgba(245, 194, 74, .18);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.lang-sheet h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-sheet h2 svg {
  width: 24px;
  height: 24px;
}
.lang-btn {
  white-space: nowrap;
  width: auto;
}
.lang-btn svg {
  width: 18px;
  height: 18px;
}
.pcard .offl {
  font: 800 10px/1 var(--body);
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 107, 127, .2);
  color: #FFB3BF;
  margin-inline-start: 6px;
}
.pcard.away .av {
  filter: grayscale(.8);
  opacity: .7;
}
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
}
img,
canvas,
svg {
  -webkit-user-drag: none;
  user-drag: none;
}
.menu.intro .hero {
  animation: introRise 1.9s cubic-bezier(.2, .8, .2, 1) .35s both;
}
.menu.intro .menu-panel {
  animation: introRise 1.9s cubic-bezier(.2, .8, .2, 1) .6s both;
}
@keyframes introRise {
  from {
    opacity: 0;
    transform: translateY(38dvh) scale(.94);
  }
  60% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu.intro .hero,
  .menu.intro .menu-panel {
    animation: none;
  }
}
.ic {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -.2em;
  flex: none;
  display: inline-block;
}
.btn .ic {
  width: 22px;
  height: 22px;
}
.pcard .crown-ic {
  color: #FFD24A;
}
.pcard .crown-ic .ic {
  width: 24px;
  height: 24px;
}
.pcard .meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.pcard .meta .ic {
  width: 14px;
  height: 14px;
  color: var(--gold-hi);
}
.lvl-ic {
  display: inline-flex;
  gap: 1px;
  color: #2F9E55;
  vertical-align: middle;
}
.lvl-ic .ic {
  width: 13px;
  height: 13px;
}
.lvl-ic.hotel {
  color: #C0392B;
}
.lvl-ic.hotel .ic {
  width: 16px;
  height: 16px;
}
.lvl-ic.pub {
  color: #5E7CA8;
}
.tasset .settag {
  margin-inline-start: 5px;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(245, 194, 74, .25);
  color: var(--gold-hi);
  font: 800 9px/1.3 var(--body);
  font-style: normal;
  vertical-align: middle;
}
.kcard.offer.incoming {
  width: min(560px, 94vw);
}
.osum {
  margin: 4px 2px 8px;
  font: 700 14px/1.4 var(--body);
  color: #4A536B;
  text-align: center;
}
.oswap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
}
.oside {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 8px;
  border-radius: 14px;
  background: rgba(59, 217, 138, .12);
  box-shadow: inset 0 0 0 1.5px rgba(59, 217, 138, .45);
}
.oside.mine {
  background: rgba(255, 107, 127, .1);
  box-shadow: inset 0 0 0 1.5px rgba(255, 107, 127, .45);
}
.oside h5 {
  margin: 0;
  font: 800 13px/1.2 var(--display);
  color: #1E2740;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.oside h5 small {
  font: 700 11px/1 var(--body);
  color: #6A7390;
}
.oside > em {
  font: 800 14px/1 var(--display);
  font-style: normal;
  color: #1E2740;
  text-align: center;
}
.oarrow {
  display: grid;
  place-items: center;
  color: #8A6A20;
}
.oarrow .ic {
  width: 26px;
  height: 26px;
}
.deeds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px;
}
.deed {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  border-radius: 10px;
  overflow: hidden;
  background: #FFFDF6;
  box-shadow: 0 0 0 1.5px rgba(30, 39, 64, .18), 0 4px 8px rgba(0, 0, 0, .12);
}
.deed .dtop {
  background: var(--gc);
  color: #fff;
  padding: 5px 6px;
  display: grid;
  gap: 1px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.deed .dtop small {
  font: 800 8.5px/1 var(--body);
  letter-spacing: .06em;
  opacity: .9;
}
.deed .dtop b {
  font: 800 13px/1.05 var(--display);
}
.deed .dart {
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(0, 0, 0, .03);
}
.deed .dart svg {
  width: 100%;
  height: 100%;
}
.deed .dlvl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 4px;
  min-height: 20px;
}
.deed .dlvl small {
  font: 800 10px/1 var(--body);
  color: #4A536B;
}
.deed .dval {
  text-align: center;
  font: 800 11px/1 var(--display);
  color: #1E2740;
  padding: 0 4px 6px;
}
.deed.cash .dtop {
  background: #2F9E55;
}
.deed.cash .dart {
  color: #2F9E55;
}
.deed.cash .dart .ic {
  width: 40px;
  height: 40px;
}
.oside .empty {
  margin: 0;
  text-align: center;
  color: #8A90A6;
}
@media (max-width: 520px) {
  .oswap {
    grid-template-columns: 1fr;
  }
  .oarrow {
    transform: rotate(90deg);
    height: 26px;
  }
  .deeds {
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  }
}
.actions.market {
  margin-top: 6px;
}
.chance-front {
  grid-template-rows: auto auto 1fr auto auto !important;
  gap: 8px !important;
  padding: 14px !important;
}
.chance-front .ch-head {
  font-size: 22px;
  padding: 8px;
}
.chance-front .ch-art {
  border-radius: 14px;
  background: var(--bg,#EEF1F8);
  box-shadow: inset 0 0 0 1.5px rgba(30, 39, 64, .08);
}
.chance-front .ch-art svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 26dvh;
}
.chance-front .ch-body {
  gap: 6px !important;
  align-content: start !important;
  padding-top: 6px;
}
.chance-front .ch-body h4 {
  font-size: 23px;
}
.chance-front .ch-body p {
  font-size: 14px;
}
.chance-front .ch-amt {
  justify-self: center;
  padding: 5px 14px;
  border-radius: 999px;
  font: 800 18px/1 var(--display);
}
.chance-front .ch-amt.up {
  background: #DDF5E6;
  color: #1E7A45;
}
.chance-front .ch-amt.down {
  background: #FCE0E0;
  color: #B3261E;
}
.chance-front .ch-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #6A7390;
}
.chance-front .ch-foot img {
  width: 22px !important;
  filter: none !important;
}
.chance-front .ch-foot b {
  font: 800 12px/1 var(--display);
  letter-spacing: .12em;
  color: #1E2740;
}
.chance-front .ch-foot small {
  font: 800 11px/1 var(--body);
}
.card-back img {
  opacity: .9 !important;
  width: 52% !important;
  filter: drop-shadow(0 10px 20px rgba(255, 138, 31, .45)) !important;
}
.card-back b {
  color: #FFE38A !important;
}
.flip {
  width: min(330px, 86vw) !important;
  aspect-ratio: auto !important;
  height: min(540px, 78dvh);
}
.game.loading #stage,
.game.loading .topbar,
.game.loading .players,
.game.loading .dock {
  opacity: 0;
}
.game.entering #stage {
  animation: boardRise 1.5s cubic-bezier(.2, .8, .2, 1) both;
}
.game.entering .topbar,
.game.entering .players {
  animation: hudFade .7s ease .9s both;
}
.game.entering .dock {
  animation: hudFadeDock .7s ease .9s both;
}
@keyframes boardRise {
  from {
    opacity: 0;
    transform: translateY(34dvh) scale(.96);
  }
  55% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hudFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hudFadeDock {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}
.swatch.taken {
  opacity: .28;
  filter: grayscale(.4);
  cursor: not-allowed;
  position: relative;
}
.swatch.taken::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 3px;
  background: rgba(10, 20, 40, .7);
}
.skyfx.menufx {
  z-index: 0;
}
.menu.lobby-wide .menu-panel {
  width: min(100%, 760px);
}
.lobby {
  display: grid;
  gap: 14px;
}
.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.lb-head h2 {
  margin: 0;
}
.lb-code {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(245, 194, 74, .12);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .4);
}
.lb-code small {
  color: var(--soft);
  font: 800 10px/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lb-code b {
  font: 800 26px/1 var(--display);
  letter-spacing: .16em;
  color: var(--gold-hi);
  direction: ltr;
}
.lb-code .btn .ic,
.lb-code .btn svg {
  width: 16px;
  height: 16px;
}
.lb-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  align-items: start;
}
.seats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.seat {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding: 10px 8px 10px;
  border-radius: 18px;
  min-height: 168px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--pc,#8FA3C4) 28%, transparent),
      rgba(255, 255, 255, .04));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pc,#8FA3C4) 70%, transparent);
}
.seat.me {
  box-shadow: inset 0 0 0 3px var(--pc), 0 0 18px color-mix(in srgb, var(--pc) 45%, transparent);
}
.seat img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35));
}
.seat-info {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
  width: 100%;
}
.seat-info b {
  font: 800 15px/1.1 var(--display);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seat-info b small {
  font: 700 11px/1 var(--body);
  color: var(--soft);
}
.seat-info em {
  font-style: normal;
  font: 800 11px/1 var(--body);
  color: var(--soft);
}
.seat-info small {
  font: 700 11px/1.3 var(--body);
  color: var(--soft);
}
.seat-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.seat.bot img {
  filter: grayscale(.35) drop-shadow(0 6px 8px rgba(0, 0, 0, .35));
}
.seat.empty {
  align-content: center;
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14);
  border: 0;
  outline: 2px dashed rgba(255, 255, 255, .18);
  outline-offset: -8px;
}
.lb-side {
  display: grid;
  gap: 12px;
}
.room-set .rs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.room-set .rs-row > span {
  font: 800 12px/1 var(--body);
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.room-set .rs-row > b {
  font: 800 16px/1 var(--display);
  color: var(--gold-hi);
}
.room-set h3 {
  display: flex;
  align-items: center;
  gap: 6px;
}
.room-set h3 svg {
  width: 18px;
  height: 18px;
}
.rs-note {
  color: var(--soft);
  font: 700 11px/1.3 var(--body);
}
@media (max-width: 700px) {
  .lb-body {
    grid-template-columns: 1fr;
  }
  .seat {
    min-height: 140px;
  }
  .seat img {
    width: 64px;
    height: 64px;
  }
}
.kcard.offer.incoming.compact {
  width: min(360px, 94vw);
}
.olist {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 12px;
}
.olist.get {
  background: rgba(31, 174, 91, .12);
  box-shadow: inset 0 0 0 2px rgba(31, 174, 91, .55);
}
.olist.give {
  background: rgba(232, 65, 60, .1);
  box-shadow: inset 0 0 0 2px rgba(232, 65, 60, .5);
}
.olist h5 {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font: 800 13px/1 var(--display);
  color: #1E2740;
}
.olist h5 em {
  margin-left: auto;
  font-style: normal;
  font: 800 13px/1 var(--display);
}
.olist ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.olist li {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 800 13px/1.2 var(--body);
  color: #1E2740;
}
.olist li > i {
  width: 10px;
  height: 22px;
  border-radius: 4px;
  background: var(--gc,#2F9E55);
  flex: none;
}
.olist li.cash > i {
  background: #2F9E55;
}
.olist li span:first-of-type {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.olist li em {
  font-style: normal;
  font: 800 12px/1 var(--display);
  color: #4A536B;
}
.overlay.side .sheet.trade {
  width: min(560px, 100%);
  max-height: calc(100dvh - 110px);
  overflow: auto;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55), inset 0 0 0 1.5px rgba(245, 194, 74, .35);
}
.overlay.side .card-wrap {
  pointer-events: auto;
}
@media (max-width: 860px), (max-aspect-ratio: 9/10) {
  .overlay.side .sheet.trade {
    width: 100%;
    max-height: 56dvh;
  }
  .overlay.side .kcard.offer.incoming.compact {
    width: 100%;
  }
}
.menu {
  padding-left: max(clamp(16px, 5vw, 72px), calc(12px + var(--safe-l)));
  padding-right: max(clamp(16px, 5vw, 72px), calc(12px + var(--safe-r)));
  min-height: 100dvh;
}
.game {
  min-height: 100dvh;
}
.topbar {
  left: calc(10px + var(--safe-l));
  right: calc(10px + var(--safe-r));
}
.overlay {
  padding-top: calc(12px + var(--safe-t));
  padding-right: max(12px, var(--safe-r));
  padding-bottom: calc(12px + var(--safe-b));
  padding-left: max(12px, var(--safe-l));
  overscroll-behavior: contain;
}
.sheet {
  max-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 24px);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  min-width: 0;
}
.device-fallback {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(20px + var(--safe-t)) max(16px, var(--safe-r)) calc(20px + var(--safe-b)) max(16px, var(--safe-l));
  overflow: auto;
  background:
    radial-gradient(
      900px 620px at 50% 20%,
      #1D3F82,
      var(--night) 65%);
}
.device-fallback-card {
  width: min(620px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: clamp(18px, 5vw, 34px);
  border-radius: 28px;
  background:
    linear-gradient(
      180deg,
      rgba(26, 54, 104, .96),
      rgba(14, 31, 64, .98));
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(245, 194, 74, .4);
}
.device-fallback-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.device-fallback-card h1 {
  margin: 0;
  font: 800 clamp(25px, 6vw, 38px)/1 var(--display);
  color: var(--gold-hi);
}
.device-fallback-card p {
  margin: 0;
  max-width: 52ch;
  color: var(--soft);
  font: 700 15px/1.45 var(--body);
}
.device-fallback-card p.en {
  font-size: 13px;
  color: var(--dim);
}
.device-fallback-card small {
  color: var(--dim);
  word-break: break-word;
}
.device-fallback-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.device-fallback-actions .btn {
  flex: 1 1 210px;
}
.webgl-preview-fallback {
  display: grid !important;
  place-items: center;
  background:
    radial-gradient(
      circle,
      #22407C,
      #10234A);
  position: relative;
}
.webgl-preview-fallback::after {
  content: "3D\aunavailable";
  white-space: pre;
  text-align: center;
  color: var(--soft);
  font: 800 12px/1.2 var(--body);
}
.podium-fallback {
  display: grid;
  place-items: center;
}
.podium-fallback-list {
  width: min(420px, 100%);
  display: grid;
  gap: 8px;
}
.podium-fallback-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
}
.podium-fallback-list b {
  font: 800 24px/1 var(--display);
  color: var(--gold-hi);
}
.podium-fallback-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}
:dir(rtl) .kcard .x {
  right: auto;
  left: -10px;
}
:dir(rtl) .kcard td:last-child {
  text-align: left;
}
:dir(rtl) .sheet .ctimer {
  right: auto !important;
  left: 66px !important;
}
:dir(rtl) .olist h5 em {
  margin-left: 0;
  margin-right: auto;
}
:dir(rtl) .brand,
:dir(rtl) .lb-code,
:dir(rtl) .seat-tools {
  direction: rtl;
}
:dir(rtl) .lb-code b {
  direction: ltr;
  unicode-bidi: isolate;
}
@media (max-width: 520px) {
  .overlay {
    padding-inline: max(8px, var(--safe-l));
    padding-right: max(8px, var(--safe-r));
  }
  .sheet {
    padding: 14px;
    border-radius: 20px;
    max-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 14px) !important;
  }
  .sheet-head {
    position: sticky;
    top: -14px;
    z-index: 8;
    margin: -14px -14px 10px;
    padding: 14px;
    background:
      linear-gradient(
        180deg,
        #1A3668 78%,
        rgba(26, 54, 104, .92));
    border-radius: 20px 20px 0 0;
  }
  .sheet-head h2 {
    font-size: 21px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .sheet-head .icon-btn {
    flex: none;
  }
  .set-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .set-row > .btn,
  .set-row > input[type=range] {
    width: 100%;
    max-width: none;
  }
  .device-fallback-actions {
    width: 100%;
    display: grid;
  }
  .device-fallback-actions .btn {
    width: 100%;
  }
}
@media (max-height: 560px) and (orientation: landscape) {
  .overlay {
    place-items: start center;
  }
  .sheet {
    max-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 10px) !important;
    padding: 12px 16px;
  }
  .sheet-head {
    margin-bottom: 8px;
  }
  .device-fallback {
    place-items: start center;
  }
  .device-fallback-card {
    padding: 16px;
  }
  .device-fallback-card img {
    width: 56px;
    height: 56px;
  }
  .device-fallback-card p.en {
    display: none;
  }
}
.menu.shop-preview-mode {
  grid-template-columns: minmax(520px, 1.2fr) minmax(420px, .9fr);
  gap: clamp(18px, 2.4vw, 34px);
}
.shop-live-hero {
  width: 100%;
  height: min(72dvh, 690px);
  min-height: 500px;
  align-self: center;
  display: block;
  position: relative;
  isolation: isolate;
}
.shop-world-preview {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(
      70% 60% at 50% 45%,
      rgba(255, 255, 255, .22),
      rgba(255, 255, 255, .025) 70%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 24px 55px rgba(17, 49, 91, .18);
}
.shop-world-stage {
  position: absolute;
  inset: 0;
}
.shop-world-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  touch-action: none;
}
.shop-world-chip {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  max-width: calc(100% - 36px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 28, 59, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .16);
  color: #fff;
  font: 800 14px/1 var(--display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
.shop-world-roll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  transform: translateX(-50%);
  width: auto !important;
  min-width: 150px;
  box-shadow: 0 7px 0 #9D7114, 0 16px 28px rgba(0, 0, 0, .2);
}
.shop-world-roll[hidden] {
  display: none !important;
}
.shop-world-preview[data-tab=costume]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      34% 42% at 50% 52%,
      transparent 50%,
      rgba(18, 54, 105, .08) 100%);
}
.shop-preview-mode .menu-panel.shop {
  align-self: center;
  max-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 36px);
  overflow: auto;
  scrollbar-gutter: stable;
}
@media (max-width: 1120px) {
  .menu.shop-preview-mode {
    grid-template-columns: minmax(420px, 1fr) minmax(390px, .9fr);
  }
  .shop-live-hero {
    min-height: 440px;
    height: min(62dvh, 600px);
  }
}
@media (max-width: 860px), (max-aspect-ratio: 9/10) {
  .menu.shop-preview-mode {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
    overflow: auto;
  }
  .shop-live-hero {
    width: min(100%, 680px);
    height: min(42dvh, 390px);
    min-height: 280px;
  }
  .shop-preview-mode .menu-panel.shop {
    max-height: none;
    overflow: visible;
  }
  .shop-world-preview {
    border-radius: 24px;
  }
  .shop-world-chip {
    left: 12px;
    top: 12px;
    font-size: 12px;
  }
  .shop-world-roll {
    bottom: 12px;
    min-width: 132px;
    min-height: 44px;
    font-size: 15px;
  }
}
@media (max-width: 520px) {
  .shop-live-hero {
    height: 300px;
    min-height: 260px;
  }
  .shop-world-preview {
    border-radius: 20px;
  }
  .shop-world-chip {
    max-width: calc(100% - 24px);
  }
}
button,
.btn,
[role=button] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled,
.btn:disabled {
  cursor: not-allowed;
}
.btn {
  transition:
    transform .12s cubic-bezier(.2, .9, .3, 1.2),
    filter .15s ease,
    box-shadow .15s ease,
    background-color .15s ease;
}
.btn:focus-visible,
.icon-btn:focus-visible,
.seg button:focus-visible,
.lang-opt:focus-visible,
.asset-item:focus-visible,
.swatch:focus-visible,
.tasset:focus-visible,
.bstep:focus-visible,
.sitem:focus-visible,
.tab:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(255, 227, 138, .28);
}
.btn:disabled,
.btn:disabled:hover,
.btn:disabled:active {
  transform: none !important;
  filter: grayscale(.75) brightness(.72);
  opacity: .72;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08) !important;
}
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover {
    transform: translateY(-2px);
    filter: brightness(1.07) saturate(1.06);
  }
  .btn-gold:not(:disabled):hover {
    box-shadow:
      0 8px 0 #8A5F0E,
      0 16px 30px rgba(245, 194, 74, .42),
      inset 0 2px 0 rgba(255, 255, 255, .6);
  }
  .btn-dark:not(:disabled):hover {
    box-shadow:
      0 8px 0 #0B1834,
      0 14px 26px rgba(0, 0, 0, .38),
      inset 0 0 0 1.5px var(--gold);
  }
  .btn-ok:not(:disabled):hover {
    box-shadow: 0 8px 0 #16804B, 0 14px 26px rgba(59, 217, 138, .32);
  }
  .btn-danger:not(:disabled):hover {
    box-shadow: 0 8px 0 #9A2F40, 0 14px 26px rgba(255, 107, 127, .32);
  }
  .btn-sm:not(:disabled):hover {
    transform: translateY(-1px);
  }
  .icon-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 0 0 1.5px var(--gold),
      0 10px 22px rgba(0, 0, 0, .4),
      0 0 18px rgba(245, 194, 74, .25);
    color: var(--gold-hi);
  }
  .seg button:not(:disabled):hover,
  .lang-opt:not(:disabled):hover,
  .asset-item:not(:disabled):hover,
  .tasset:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1.5px var(--gold), 0 10px 20px rgba(0, 0, 0, .3);
  }
  .swatch:not(:disabled):hover {
    transform: translateY(-2px) scale(1.06);
  }
  .kcard .x:hover {
    transform: scale(1.08);
    box-shadow:
      0 0 0 2.5px var(--gold-hi),
      0 8px 18px rgba(0, 0, 0, .45),
      0 0 16px rgba(245, 194, 74, .4);
  }
}
.btn:not(:disabled):active {
  transform: translateY(3px) scale(.99);
  filter: brightness(.96);
}
.icon-btn:not(:disabled):active,
.seg button:not(:disabled):active,
.lang-opt:not(:disabled):active,
.asset-item:not(:disabled):active,
.tasset:not(:disabled):active {
  transform: translateY(2px) scale(.98);
}
@media (hover: none) {
  .btn:not(:disabled):active {
    transform: translateY(3px) scale(.97);
    filter: brightness(.9);
  }
  .icon-btn:not(:disabled):active {
    filter: brightness(1.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .icon-btn {
    transition: none;
  }
  .btn:not(:disabled):hover {
    transform: none;
  }
}
.kcard.corner {
  --ga:#F5C24A;
  width: min(360px, 90vw);
  overflow: visible;
}
.kcard.corner .cscroll {
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  border-radius: 16px;
  overscroll-behavior: contain;
}
.kcard.corner .head {
  padding-top: 16px;
}
.kcard .chead-ic {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .22);
  box-shadow: inset 0 0 0 2px var(--ga);
  color: var(--ga);
}
.kcard .chead-ic svg {
  width: 26px;
  height: 26px;
}
:dir(rtl) .kcard .chead-ic {
  left: auto;
  right: 12px;
}
.kcard.corner .head h3 {
  padding-inline: 40px;
}
.kcard .cscene {
  aspect-ratio: 320/170;
  background: #0E2248;
}
.kcard .cscene svg {
  width: 100%;
  height: 100%;
  display: block;
}
.cstat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 6px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #1E2740;
  color: #fff;
}
.cstat b {
  font: 800 24px/1 var(--display);
  color: var(--gold-hi);
}
.cstat small {
  font: 800 12px/1.1 var(--body);
  letter-spacing: .06em;
  opacity: .78;
  text-align: end;
}
.crules {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.crules li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: start;
  padding: 7px 9px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--gc) 8%, #fff);
  font: 700 13px/1.38 var(--body);
  color: #2A3350;
}
.crules li i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--gc);
  color: var(--ga);
}
.crules li i svg {
  width: 18px;
  height: 18px;
}
.crules li.csec {
  display: block;
  padding: 6px 2px 0;
  background: none;
  font: 900 11px/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gc);
}
.clive {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1.5px dashed color-mix(in srgb, var(--gc) 45%, transparent);
  background: #FFFBF0;
}
.clive h5 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font: 800 13px/1 var(--display);
  color: var(--gc);
}
.clive h5 svg {
  width: 16px;
  height: 16px;
}
.clive p {
  margin: 0;
  font: 700 13px/1.35 var(--body);
  color: #5A6480;
}
.cwho {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.cwho li {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 13px/1.2 var(--body);
}
.cwho li i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pc);
}
.cwho em {
  margin-inline-start: auto;
  font-style: normal;
  font: 800 12px/1 var(--display);
  padding: 4px 8px;
  border-radius: 999px;
}
.cwho em.in {
  background: #3A2E5E;
  color: #FFD9C8;
}
.cwho em.out {
  background: #E4F6EA;
  color: #16804B;
}
.cnow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cnow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pc);
}
.cs-coin {
  animation: csCoin 2.6s ease-in-out infinite;
}
.cs-coin.c2 {
  animation-delay: .4s;
}
.cs-coin.c3 {
  animation-delay: .8s;
}
@keyframes csCoin {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.cs-road {
  animation: csRoad 1.4s linear infinite;
}
@keyframes csRoad {
  to {
    stroke-dashoffset: -26;
  }
}
.cs-steam {
  animation: csSteam 2.2s ease-in-out infinite;
  transform-origin: 160px 86px;
}
@keyframes csSteam {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.cs-star {
  animation: csStar 2.4s ease-in-out infinite alternate;
}
@keyframes csStar {
  to {
    opacity: .25;
  }
}
.cs-confetti {
  animation: csFall 4s linear infinite;
}
@keyframes csFall {
  from {
    transform: translateY(-12px);
  }
  to {
    transform: translateY(12px);
  }
}
.cs-mask {
  animation: csMask 3s ease-in-out infinite;
}
@keyframes csMask {
  0%, 100% {
    transform: translate(160px, 104px) rotate(-3deg);
  }
  50% {
    transform: translate(160px, 98px) rotate(3deg);
  }
}
.cs-card {
  animation: csCard 2.8s ease-in-out infinite;
}
@keyframes csCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cs-coin,
  .cs-road,
  .cs-steam,
  .cs-star,
  .cs-confetti,
  .cs-mask,
  .cs-card {
    animation: none;
  }
}
.kcard .effects {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #F2F5FB;
}
.kcard .effects h5 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font: 800 13px/1 var(--display);
  color: #26345A;
}
.kcard .effects h5 svg {
  width: 16px;
  height: 16px;
}
.kcard .effects ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.kcard .effects li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 700 13px/1.25 var(--body);
}
.kcard .effects li em {
  font-style: normal;
  font: 800 12px/1.2 var(--display);
  color: #B3261E;
  text-align: end;
}
.kcard .effects p {
  margin: 0;
  font: 700 12px var(--body);
  color: #6C7690;
}
.eff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 2px;
}
.eff-grid > div {
  padding: 9px 10px;
  border-radius: 12px;
  background: #1E2740;
  color: #fff;
  text-align: center;
}
.eff-grid small {
  display: block;
  font: 800 11px/1 var(--body);
  letter-spacing: .08em;
  opacity: .75;
  margin-bottom: 4px;
}
.eff-grid b {
  font: 800 15px/1.15 var(--display);
  color: var(--gold-hi);
}
.kcard .badges .badge-d svg,
.kcard .badges .badge-o svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
.pcard .afkb {
  margin-inline-start: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 138, 31, .2);
  color: #FFC48A;
  font: 800 10px/1.2 var(--body);
  letter-spacing: .04em;
}
.pcard .afkb.hot {
  background: #FF6B7F;
  color: #2A060B;
  animation: afkPulse 1s ease-in-out infinite alternate;
}
@keyframes afkPulse {
  to {
    filter: brightness(1.25);
  }
}
.afk-mode {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b));
  background: rgba(4, 10, 24, .58);
  backdrop-filter: blur(9px) saturate(.85);
  -webkit-backdrop-filter: blur(9px) saturate(.85);
  animation: fadeIn .25s ease-out;
}
.afk-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 26px 22px;
  border-radius: 26px;
  background:
    linear-gradient(
      180deg,
      #1A3668,
      #10234A);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(245, 194, 74, .5);
}
.afk-card.hot {
  box-shadow:
    0 30px 60px rgba(0, 0, 0, .55),
    inset 0 0 0 2.5px #FF6B7F,
    0 0 40px rgba(255, 107, 127, .35);
}
.afk-card h2 {
  margin: 0;
  font: 800 30px/1 var(--display);
  color: var(--gold-hi);
}
.afk-card.hot h2 {
  color: #FFB3BD;
}
.afk-card p {
  margin: 0;
  color: var(--soft);
  font: 700 15px/1.45 var(--body);
}
.afk-ic {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(245, 194, 74, .14);
  color: var(--gold-hi);
}
.afk-ic svg {
  width: 36px;
  height: 36px;
}
.afk-card.hot .afk-ic {
  background: rgba(255, 107, 127, .16);
  color: #FF8FA0;
}
.afk-meter {
  display: flex;
  gap: 6px;
}
.afk-meter i {
  width: 30px;
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .14);
}
.afk-meter i.on {
  background:
    linear-gradient(
      90deg,
      #FFB35A,
      #FF6B7F);
}
.afk-card .btn {
  min-width: 220px;
}
.tab-busy .bhelp {
  margin: 0 0 10px;
}
.tab-busy .note {
  margin: 0 0 12px;
  color: var(--soft);
  font: 700 13px/1.35 var(--body);
}
.shop .fair {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(59, 217, 138, .1);
  box-shadow: inset 0 0 0 1.5px rgba(59, 217, 138, .35);
  color: #BFF5D6;
  font: 700 12.5px/1.4 var(--body);
}
.shop-world-chip.hovering {
  box-shadow: inset 0 0 0 2px var(--gold-hi), 0 8px 18px rgba(0, 0, 0, .35);
}
.spvimg.cst {
  width: 112px;
}
.lb-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 12px 0 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(245, 194, 74, .16),
      rgba(245, 194, 74, .07));
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .45);
}
.lb-invite .lbi-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.lb-invite .lbi-text b {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 800 16px/1.1 var(--display);
  color: var(--gold-hi);
}
.lb-invite .lbi-text b svg {
  width: 18px;
  height: 18px;
}
.lb-invite .lbi-text small {
  color: var(--soft);
  font: 700 12.5px/1.3 var(--body);
}
.lb-invite .lbi-link {
  margin-top: 4px;
  padding: 9px 12px;
  font: 700 13px/1.2 var(--body);
  color: var(--ink);
  direction: ltr;
  text-overflow: ellipsis;
  user-select: all;
  -webkit-user-select: all;
}
.lb-invite .lbi-btns {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}
.lb-invite .lbi-btns .btn {
  min-height: 44px;
  font-size: 15px;
  padding: 0 16px;
  white-space: nowrap;
}
.lb-invite .lbi-btns .btn svg {
  width: 18px;
  height: 18px;
}
.lb-invite .lbi-btns .btn-xs {
  min-height: 30px;
  font-size: 12px;
  justify-self: center;
}
.lb-invite.full {
  grid-template-columns: 1fr;
  background: rgba(255, 107, 127, .1);
  box-shadow: inset 0 0 0 1.5px rgba(255, 107, 127, .45);
}
.lb-invite.full b {
  font: 800 16px/1.1 var(--display);
  color: #FFB3BF;
}
.lb-invite.full small {
  color: var(--soft);
  font: 700 12.5px/1.3 var(--body);
}
@media (max-width: 640px) {
  .lb-invite {
    grid-template-columns: 1fr;
  }
  .lb-invite .lbi-btns {
    grid-template-columns: 1fr 1fr;
  }
  .lb-invite .lbi-btns .btn-xs {
    grid-column: 1/-1;
  }
}
.mp-wait-left {
  margin: 4px 0 10px;
  text-align: center;
  color: var(--soft);
  font: 800 13px/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.chat-btn {
  position: relative;
}
.chat-btn svg {
  width: 22px;
  height: 22px;
}
.chat-fab {
  position: fixed;
  right: calc(18px + var(--safe-r));
  bottom: calc(18px + var(--safe-b));
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #2A1A00;
  background:
    linear-gradient(
      180deg,
      var(--gold-hi),
      var(--gold));
  box-shadow: 0 6px 0 var(--gold-deep), 0 14px 28px rgba(0, 0, 0, .35);
}
.chat-fab svg {
  width: 26px;
  height: 26px;
}
.chat-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--bad);
  color: #fff;
  font: 900 11px/1 var(--body);
  box-shadow: 0 0 0 2px #0B1834;
  animation: chatPop .35s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes chatPop {
  from {
    transform: scale(.3);
  }
  to {
    transform: none;
  }
}
.chat-panel {
  position: fixed;
  z-index: 45;
  right: calc(16px + var(--safe-r));
  top: calc(72px + var(--safe-t));
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100dvh - 200px));
  min-height: 280px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(26, 54, 104, .97),
      rgba(14, 31, 66, .97));
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5), inset 0 0 0 1.5px rgba(245, 194, 74, .4);
  overflow: hidden;
  animation: cardIn .25s ease-out;
}
.chat-panel[hidden] {
  display: none;
}
.chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.chat-panel header b {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 18px/1 var(--display);
  color: var(--gold-hi);
}
.chat-panel header b svg {
  width: 20px;
  height: 20px;
}
.chat-panel .chat-x {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font: 800 16px/1 var(--display);
  color: var(--gold-hi);
}
.chat-list {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 10px 12px;
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.chat-list li {
  max-width: 86%;
  align-self: flex-start;
  padding: 7px 11px 8px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 3px 0 0 var(--pc);
}
.chat-list li.mine {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: rgba(245, 194, 74, .18);
  box-shadow: none;
}
.chat-list .chat-who {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 800 12px/1.2 var(--display);
  color: var(--pc);
}
.chat-list li.mine .chat-who {
  color: var(--gold-hi);
  justify-content: flex-end;
}
.chat-list .chat-who i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pc);
}
.chat-list li.mine .chat-who i {
  display: none;
}
.chat-list time {
  margin-inline-start: auto;
  padding-inline-start: 8px;
  color: var(--dim);
  font: 700 10.5px/1 var(--body);
}
.chat-list p {
  margin: 2px 0 0;
  color: var(--ink);
  font: 700 14px/1.35 var(--body);
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}
.chat-list .chat-sys {
  align-self: center;
  max-width: 100%;
  padding: 4px 10px;
  background: none;
  box-shadow: none;
  color: var(--soft);
  font: 700 12px/1.3 var(--body);
  text-align: center;
}
.chat-list .chat-sys.warn {
  color: #FFB3BF;
}
.chat-list:empty::before {
  content: "";
  margin: auto;
}
.chat-quick {
  display: flex;
  gap: 6px;
  padding: 0 12px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chat-quick button {
  flex: none;
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
  font: 800 15px/1 var(--display);
}
.chat-form {
  display: flex;
  gap: 8px;
  padding: 8px 10px calc(10px + var(--safe-b));
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.chat-in {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 0;
  background: #0A1733;
  color: var(--ink);
  font: 700 15px var(--body);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .35);
}
.chat-in:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--gold);
}
.chat-send {
  width: 48px !important;
  min-width: 48px;
  height: 44px;
  min-height: 44px;
  padding: 0 !important;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.chat-send svg {
  width: 20px;
  height: 20px;
}
.chat-peek {
  position: fixed;
  z-index: 46;
  right: calc(16px + var(--safe-r));
  top: calc(72px + var(--safe-t));
  max-width: min(320px, calc(100vw - 32px));
  display: grid;
  gap: 2px;
  padding: 9px 14px;
  border-radius: 16px 4px 16px 16px;
  text-align: start;
  background: rgba(10, 22, 48, .94);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, .4),
    inset 3px 0 0 var(--pc),
    inset 0 0 0 1.5px rgba(245, 194, 74, .3);
  animation: feedIn .25s ease-out;
}
.chat-peek b {
  font: 800 12px/1.1 var(--display);
  color: var(--pc);
}
.chat-peek span {
  font: 700 14px/1.3 var(--body);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.chat-peek.fab {
  top: auto;
  bottom: calc(88px + var(--safe-b));
  border-radius: 16px 16px 4px 16px;
}
body.chat-in-lobby .chat-panel {
  top: auto;
  bottom: calc(88px + var(--safe-b));
}
:dir(rtl) .chat-panel,
:dir(rtl) .chat-peek {
  right: auto;
  left: calc(16px + var(--safe-l));
}
:dir(rtl) .chat-fab {
  right: auto;
  left: calc(18px + var(--safe-l));
}
@media (max-width: 640px), (max-aspect-ratio: 9/10) and (max-width: 860px) {
  .chat-panel,
  body.chat-in-lobby .chat-panel {
    left: calc(8px + var(--safe-l));
    right: calc(8px + var(--safe-r));
    top: auto;
    bottom: calc(8px + var(--safe-b));
    width: auto;
    height: min(64dvh, 480px);
    border-radius: 22px;
  }
  .chat-peek {
    top: calc(124px + var(--safe-t));
  }
}
.rotate-hint {
  display: none;
}
@media (orientation: portrait) and (max-width: 600px) and (pointer: coarse) {
  .rotate-hint {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
      radial-gradient(
        120% 80% at 50% 30%,
        #1B3A78,
        #081430 70%);
    text-align: center;
  }
  .rotate-hint .rh-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    max-width: 320px;
  }
  .rotate-hint .rh-phone {
    width: 74px;
    height: 124px;
    border-radius: 16px;
    border: 5px solid var(--gold-hi);
    position: relative;
    animation: rhTurn 2.4s cubic-bezier(.6, 0, .3, 1) infinite;
  }
  .rotate-hint .rh-phone::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 18px;
    height: 4px;
    margin-left: -9px;
    border-radius: 2px;
    background: var(--gold-hi);
  }
  .rotate-hint h2 {
    margin: 8px 0 0;
    font: 800 26px/1.1 var(--display);
    color: var(--gold-hi);
  }
  .rotate-hint p {
    margin: 0;
    color: var(--soft);
    font: 700 15px/1.4 var(--body);
  }
  .rotate-hint .btn {
    width: 100%;
    margin-top: 6px;
  }
  .rotate-hint small {
    color: var(--dim);
    font: 700 12px/1.35 var(--body);
  }
  .chat-panel,
  .chat-peek,
  .chat-fab,
  .toast {
    display: none !important;
  }
}
@keyframes rhTurn {
  0%, 20% {
    transform: rotate(0);
  }
  50%, 80% {
    transform: rotate(-90deg);
  }
  100% {
    transform: rotate(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rotate-hint .rh-phone {
    animation: none;
    transform: rotate(-90deg);
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .topbar {
    top: calc(6px + var(--safe-t));
    left: auto;
    right: calc(6px + var(--safe-r));
    justify-content: flex-end;
  }
  .topbar .brand {
    display: none;
  }
  .top-actions {
    gap: 6px;
  }
  .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .icon-btn svg {
    width: 18px;
    height: 18px;
  }
  .players {
    position: absolute;
    top: calc(6px + var(--safe-t));
    left: calc(6px + var(--safe-l));
    right: auto;
    bottom: calc(6px + var(--safe-b));
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    padding: 0;
  }
  .pcard {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    flex: none;
    width: auto;
    min-width: 0;
    padding: 5px 8px;
    gap: 0 7px;
    border-radius: 13px;
  }
  .pcard.pc-0 {
    order: 0;
  }
  .pcard.pc-1 {
    order: 1;
  }
  .pcard.pc-2 {
    order: 2;
    margin-top: auto;
  }
  .pcard.pc-3 {
    order: 3;
  }
  .pcard.pc-4 {
    order: 4;
  }
  .pcard.pc-5 {
    order: 5;
  }
  .pcard.turn {
    box-shadow: 0 0 0 2.5px var(--pc), 0 0 16px color-mix(in srgb, var(--pc) 50%, transparent);
  }
  .pcard .av {
    width: 28px;
    height: 28px;
  }
  .pcard .av::before {
    left: 7px;
    top: 9px;
    width: 4px;
    height: 7px;
    box-shadow: 9px 0 0 #fff;
  }
  .pcard .av::after {
    left: 8px;
    top: 11px;
    width: 3px;
    height: 4px;
    box-shadow: 9px 0 0 #15182A;
  }
  .pcard .pname {
    font-size: 11.5px;
    gap: 4px;
  }
  .pcard .badge {
    font-size: 8.5px;
    padding: 3px 5px;
  }
  .pcard .offl,
  .pcard .afkb {
    font-size: 8.5px;
    padding: 2px 4px;
    margin-inline-start: 2px;
  }
  .pcard .bal {
    font-size: 15px;
  }
  .pcard .meta {
    display: none;
  }
  .pcard .float {
    font-size: 16px;
    top: -4px;
  }
  .pcard .crown-ic {
    top: -12px;
  }
  .pcard .crown-ic .ic {
    width: 18px;
    height: 18px;
  }
  .dock {
    left: auto;
    right: calc(6px + var(--safe-r));
    bottom: calc(6px + var(--safe-b));
    transform: none;
    width: 138px;
    gap: 5px;
    justify-items: stretch;
  }
  .feed {
    min-height: 0;
  }
  .feed div {
    font-size: 11px;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 10px;
  }
  .feed div:not(:first-child) {
    display: none;
  }
  .clock {
    justify-content: center;
    padding: 4px 10px 6px;
    font-size: 12px;
  }
  .clock b {
    font-size: 18px;
  }
  .dock-main {
    flex-direction: column;
    align-items: stretch;
    padding: 5px;
    gap: 5px;
    border-radius: 17px;
  }
  .dock-main .who {
    display: none;
  }
  .dock-main .btn-roll {
    min-width: 0;
    width: 100%;
    min-height: 50px;
    font-size: 16px;
    padding: 0 6px;
    gap: 6px;
  }
  .dock-main .btn-roll svg {
    width: 20px;
    height: 20px;
  }
  .dock-main .btn-build {
    width: 100%;
    height: 40px;
    flex-direction: row;
    gap: 6px;
  }
  .pos-layer {
    place-items: center;
    padding: 0;
  }
  .pos-rig {
    scale: .64;
    transform-origin: center;
  }
  .announce {
    top: calc(8px + var(--safe-t)) !important;
    scale: .8;
  }
  .toast {
    top: calc(8px + var(--safe-t));
    font-size: 13px;
    padding: 8px 12px;
  }
  .overlay {
    padding: 6px calc(6px + var(--safe-r)) 6px calc(6px + var(--safe-l));
  }
  .overlay .card-wrap {
    padding-top: 34px;
  }
  .kcard .head {
    padding: 8px 12px 7px;
  }
  .kcard .head h3 {
    font-size: 24px;
  }
  .kcard.corner .head {
    padding-top: 10px;
  }
  .kcard .art {
    aspect-ratio: auto;
    height: 92px;
  }
  .kcard .art svg,
  .kcard .art img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .kcard td {
    padding: 3px 8px;
  }
  .kcard .price {
    margin: 3px 0 5px;
    padding: 7px 10px;
  }
  .kcard .price b {
    font-size: 20px;
  }
  .kcard .actions {
    margin-top: 8px;
    gap: 8px;
  }
  .kcard .actions .btn {
    min-height: 42px;
    font-size: 15px;
  }
  .kcard .ctimer {
    width: 50px !important;
    height: 50px !important;
    top: -36px !important;
  }
  .kcard .ctimer b {
    font-size: 19px;
  }
  .kcard.corner .cscroll {
    max-height: calc(100dvh - 34px);
  }
  .overlay.side {
    place-items: center end;
    padding: 6px calc(6px + var(--safe-r)) 6px 6px;
  }
  .overlay.side .sheet.build,
  .overlay.side .sheet.trade {
    width: min(440px, 54vw);
    max-height: calc(100dvh - 12px) !important;
  }
  .overlay.side .kcard.offer.incoming.compact {
    width: min(360px, 54vw);
  }
  .afk-card {
    scale: .8;
  }
  .chat-panel,
  body.chat-in-lobby .chat-panel {
    left: auto;
    right: calc(6px + var(--safe-r));
    top: calc(6px + var(--safe-t));
    bottom: calc(6px + var(--safe-b));
    width: min(340px, 48vw);
    height: auto;
    min-height: 0;
  }
  .chat-peek {
    top: auto;
    bottom: calc(8px + var(--safe-b));
    right: calc(152px + var(--safe-r));
  }
  .coach {
    scale: .82;
    transform-origin: top center;
  }
}
@media (min-width: 700px) and (max-width: 1100px) and (orientation: portrait) {
  .players {
    top: calc(74px + var(--safe-t));
    gap: 10px;
    padding: 4px 16px 8px;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
  }
  .pcard {
    min-width: 180px;
    padding: 10px 12px;
  }
  .pcard .av {
    width: 40px;
    height: 40px;
  }
  .pcard .bal {
    font-size: 20px;
  }
  .pcard .pname {
    font-size: 14px;
  }
  .pcard .meta {
    display: flex;
  }
  .dock-main .btn-roll {
    min-width: 220px;
    min-height: 62px;
    font-size: 22px;
  }
}
.btn-quick {
  min-height: 62px;
  font-size: 21px;
}
.btn-quick svg {
  width: 24px;
  height: 24px;
}
.menu.join-wide .menu-panel {
  width: min(100%, 760px);
}
.join-view {
  display: grid;
  gap: 12px;
}
.jv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.jv-head h2 {
  margin: 0;
}
.jv-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.jv-side {
  display: grid;
  gap: 12px;
}
.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.code-row .btn {
  width: auto;
  min-height: 48px;
  padding: 0 16px;
}
.room-list {
  display: grid;
  gap: 8px;
  max-height: min(52dvh, 420px);
  overflow-y: auto;
  padding: 2px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.rl-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .18);
  text-align: center;
  color: var(--soft);
  font: 700 13px/1.4 var(--body);
}
.rl-empty b {
  color: var(--ink);
  font: 800 15px/1.2 var(--display);
}
.room-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 16px;
  text-align: start;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1);
  transition: background .15s, box-shadow .15s;
}
.room-row.vis-public {
  background: rgba(59, 217, 138, .1);
  box-shadow: inset 0 0 0 1.5px rgba(59, 217, 138, .35);
}
.room-row:hover {
  background: rgba(245, 194, 74, .14);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .55);
}
.rr-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.rr-main b {
  font: 800 16px/1.15 var(--display);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rr-main small {
  font: 700 12px/1.2 var(--body);
  color: var(--soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rr-b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  font: 800 11.5px/1 var(--body);
  font-style: normal;
  white-space: nowrap;
}
.rr-b svg {
  width: 13px;
  height: 13px;
}
.rr-b.pub {
  background: rgba(59, 217, 138, .2);
  color: #8FF5BF;
}
.rr-b.pw {
  background: rgba(255, 138, 31, .2);
  color: #FFC48A;
}
.rr-b.cd {
  background: rgba(111, 183, 255, .2);
  color: #B5D8FF;
}
.rr-n {
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: 44px;
}
.rr-n b {
  font: 800 15px/1 var(--display);
  color: var(--gold-hi);
}
.rr-n i {
  display: block;
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
  position: relative;
}
.rr-n i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--f) * 100%);
  background: var(--ok);
}
.lb-head {
  align-items: center;
}
.lb-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.lb-title h2 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-title .lb-edit {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex: none;
}
.lb-title .lb-edit svg {
  width: 16px;
  height: 16px;
}
.lb-code .lb-copy {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  margin-inline-start: 2px;
}
.lb-code .lb-copy svg {
  width: 15px;
  height: 15px;
}
.lb-send {
  width: auto !important;
  min-height: 46px;
  padding: 0 18px;
  font-size: 16px;
}
.lb-send svg {
  width: 18px;
  height: 18px;
}
.lb-full {
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(255, 107, 127, .15);
  color: #FFB3BF;
  font: 800 14px/1 var(--display);
}
.room-vis {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.rv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.rv-head b {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 800 15px/1 var(--display);
  color: var(--gold-hi);
}
.rv-head b svg {
  width: 17px;
  height: 17px;
}
.rv-head small,
.rv-help {
  font: 700 12px/1.35 var(--body);
  color: var(--soft);
}
.rv-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 14px;
}
.rv-seg button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 6px;
  font-size: 13px;
  white-space: nowrap;
}
.rv-seg button svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.share-opt {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  color: var(--ink);
  font: 800 14px/1.2 var(--display);
  text-decoration: none;
  text-align: center;
}
.share-opt:hover {
  background: rgba(245, 194, 74, .14);
}
.share-opt svg {
  width: 26px;
  height: 26px;
  color: var(--gold-hi);
}
.sh-ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 900 16px/1 var(--display);
  color: #fff;
}
.sh-ic.wa {
  background: #25D366;
}
.sh-ic.tg {
  background: #2AABEE;
}
.sh-ic.ml {
  background: #6C7690;
}
.room-ask .text-in {
  margin: 4px 0 10px;
}
.chat-muted {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font: 700 11.5px/1.2 var(--body);
  color: var(--soft);
}
.chat-muted[hidden] {
  display: none;
}
.chat-muted button {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 107, 127, .18);
  color: #FFB3BF;
  font: 800 11px/1.2 var(--body);
}
.chat-mute {
  margin-inline-start: 6px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--dim);
  opacity: .7;
}
.chat-mute svg {
  width: 14px;
  height: 14px;
}
.chat-mute:hover {
  opacity: 1;
  color: #FFB3BF;
  background: rgba(255, 107, 127, .15);
}
@media (max-width: 760px) {
  .jv-body {
    grid-template-columns: 1fr;
  }
  .room-list {
    max-height: 40dvh;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu,
  .menu.lobby-wide,
  .menu.join-wide {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 14px;
    padding: calc(8px + var(--safe-t)) max(12px, calc(8px + var(--safe-r))) calc(8px + var(--safe-b)) max(12px, calc(8px + var(--safe-l)));
  }
  .hero {
    gap: 4px;
  }
  .hero-logo {
    width: clamp(70px, 18dvh, 120px);
  }
  .wordmark {
    font-size: clamp(26px, 6.4vw, 44px);
  }
  .tagline {
    font-size: 11px;
    letter-spacing: .14em;
  }
  .menu-panel {
    align-self: center;
    max-height: calc(100dvh - 16px - var(--safe-t) - var(--safe-b));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 16px;
    gap: 9px;
    border-radius: 22px;
    scrollbar-width: thin;
    width: 100%;
  }
  .menu-panel h2 {
    font-size: 20px;
    margin: 0;
  }
  .menu-panel .btn {
    min-height: 44px;
    font-size: 16px;
  }
  .btn-quick {
    min-height: 50px !important;
    font-size: 18px !important;
  }
  .menu-row2 {
    gap: 8px;
  }
  .menu-sep {
    margin: 0 6px;
  }
  .menu-foot {
    display: none;
  }
  .field {
    gap: 5px;
  }
  .text-in {
    min-height: 42px;
    padding-block: 8px;
  }
  .mp-help {
    font-size: 12px;
    line-height: 1.35;
  }
  .menu.lobby-wide,
  .menu.join-wide {
    grid-template-columns: 1fr;
  }
  .menu.lobby-wide .hero,
  .menu.join-wide .hero {
    display: none;
  }
  .menu.lobby-wide .menu-panel,
  .menu.join-wide .menu-panel {
    width: 100%;
    max-width: 980px;
    justify-self: center;
  }
  .lobby {
    gap: 8px;
  }
  .lb-head {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .lb-title h2 {
    font-size: 18px;
  }
  .lb-code {
    padding: 5px 8px;
    gap: 6px;
  }
  .lb-code b {
    font-size: 19px;
  }
  .lb-code small {
    display: none;
  }
  .lb-send {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
  .room-vis {
    padding: 8px 10px;
    gap: 6px;
  }
  .rv-help {
    display: none;
  }
  .rv-seg button {
    padding: 7px 4px;
    font-size: 12px;
  }
  .lb-body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 10px;
  }
  .seats {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .seat {
    min-height: 0;
    grid-template-columns: 40px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 2px 8px;
    padding: 6px 8px;
    border-radius: 14px;
  }
  .seat img {
    width: 40px;
    height: 40px;
    grid-row: 1/3;
  }
  .seat-info {
    justify-items: start;
    text-align: start;
    gap: 2px;
  }
  .seat-info b {
    font-size: 13px;
  }
  .seat-info em {
    display: none;
  }
  .seat-tools {
    grid-column: 2;
    justify-content: flex-start;
  }
  .seat-tools .btn-xs {
    min-height: 24px;
    padding: 0 7px;
    font-size: 11px;
  }
  .seat.empty {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    outline-offset: -5px;
  }
  .seat.empty .seat-info {
    justify-items: center;
    text-align: center;
  }
  .seat.empty small {
    display: none;
  }
  .mp-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  .lb-side {
    gap: 7px;
  }
  .swatches {
    gap: 6px;
  }
  .swatch {
    width: 32px;
    height: 32px;
  }
  .swatch::after {
    left: 8px;
    top: 10px;
    width: 5px;
    height: 7px;
    box-shadow: 10px 0 0 #fff;
  }
  .room-set {
    padding: 8px 10px;
    gap: 6px;
  }
  .room-set h3 {
    display: none;
  }
  .room-set .seg button {
    padding: 6px 8px;
    font-size: 12px;
  }
  .stepper button {
    width: 32px;
    height: 32px;
  }
  .stepper output {
    min-width: 36px;
    font-size: 16px;
  }
  .stepper {
    gap: 6px;
  }
  .lb-side .btn {
    min-height: 42px;
  }
  .join-view {
    gap: 8px;
  }
  .jv-body {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 10px;
  }
  .room-list {
    max-height: calc(100dvh - 110px - var(--safe-t) - var(--safe-b));
  }
  .room-row {
    padding: 8px 10px;
  }
  .rr-main b {
    font-size: 14px;
  }
  .jv-side {
    gap: 8px;
  }
  .menu.shop-preview-mode {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .shop-live-hero {
    height: calc(100dvh - 16px - var(--safe-t) - var(--safe-b));
    min-height: 0;
  }
  .shop-preview-mode .menu-panel.shop {
    max-height: calc(100dvh - 16px - var(--safe-t) - var(--safe-b));
  }
  .sheet {
    padding: 12px 14px;
  }
  .share-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .share-opt {
    padding: 10px 6px;
  }
  .chat-fab {
    width: 48px;
    height: 48px;
    right: calc(10px + var(--safe-r));
    bottom: calc(10px + var(--safe-b));
  }
}
@media (orientation: landscape) and (max-height: 540px) and (max-width: 700px) {
  .menu {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  }
  .rv-seg button svg {
    display: none;
  }
  .lb-send span,
  .lb-send {
    font-size: 13px;
  }
}
.sheet-head h2 svg {
  width: 22px;
  height: 22px;
  flex: none;
  vertical-align: -4px;
}
.sheet-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (orientation: landscape) and (max-height: 540px) {
  body.chat-in-lobby .chat-fab {
    right: auto;
    left: calc(10px + var(--safe-l));
  }
  body.chat-in-lobby .chat-peek.fab {
    right: auto;
    left: calc(10px + var(--safe-l));
    bottom: calc(66px + var(--safe-b));
  }
  .lb-side .field > span {
    display: none;
  }
  .lb-side .mp-help {
    margin: 0;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .wordmark {
    font-size: clamp(22px, 4.6vw, 44px);
    max-width: 100%;
  }
  .hero {
    min-width: 0;
    overflow: hidden;
  }
  .seats {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .seat,
  .seat.empty {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    justify-items: start;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    min-height: 44px;
  }
  .seat img {
    width: 32px;
    height: 32px;
    grid-row: auto;
  }
  .seat-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
  }
  .seat-info b {
    flex: 0 1 auto;
    min-width: 0;
  }
  .seat-tools {
    grid-column: auto;
    flex-wrap: nowrap;
    justify-self: end;
  }
  .seat.empty {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
    text-align: start;
  }
  .seat.empty .seat-info {
    justify-items: start;
    text-align: start;
  }
  .room-vis:has(.rv-seg) .rv-head {
    display: none;
  }
}
@media (orientation: landscape) and (max-height: 380px) {
  .menu-panel .btn {
    min-height: 40px;
    font-size: 15px;
  }
  .btn-quick {
    min-height: 46px !important;
  }
  .menu-panel {
    gap: 7px;
    padding: 10px 12px;
  }
  .hero-logo {
    width: 64px;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu-panel .seat-tools .btn {
    min-height: 26px;
    height: 26px;
    padding: 0 8px;
    font-size: 11.5px;
    border-radius: 9px;
  }
  .menu-panel .rv-seg button,
  .menu-panel .room-set .seg button {
    min-height: 0;
  }
  body.chat-in-lobby .lobby {
    padding-bottom: 48px;
  }
  body.chat-in-lobby .chat-fab {
    width: 44px;
    height: 44px;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu-panel.shop .shop-awning,
  .menu-panel.shop .shelp,
  .menu-panel.shop .fair {
    display: none;
  }
  .menu-panel.shop .shop-head {
    margin: 0;
  }
  .menu-panel.shop .shop-head h2 {
    font-size: 18px;
  }
  .menu-panel.shop .jeton {
    padding: 6px 10px;
  }
  .menu-panel.shop .spv {
    grid-template-columns: 72px 1fr;
    gap: 8px;
    padding: 8px;
  }
  .menu-panel.shop .spv3d,
  .menu-panel.shop .spvsvg {
    width: 72px;
    height: 72px;
  }
  .menu-panel.shop .spvimg {
    width: 72px;
  }
  .menu-panel.shop .sgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: none;
  }
  .set-row {
    padding: 8px 0;
  }
  .sheet-head {
    margin-bottom: 6px;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu,
  .menu.lobby-wide,
  .menu.join-wide,
  .menu.shop-preview-mode {
    align-content: center;
    justify-content: center;
    overflow: hidden;
    height: 100dvh;
    min-height: 0;
  }
  .menu-panel {
    justify-self: center;
    align-self: center;
    max-width: 560px;
  }
  .menu.lobby-wide .menu-panel,
  .menu.join-wide .menu-panel {
    max-width: 980px;
  }
  .shop-preview-mode .menu-panel.shop {
    overflow-y: auto;
    max-width: none;
    align-self: stretch;
  }
  .menu.shop-preview-mode {
    align-items: stretch;
  }
  .shop-live-hero {
    align-self: stretch;
    height: auto;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .shop-preview-mode .menu-panel.shop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    grid-template-areas: "jeton back" "tabs tabs" "spv spv" "grid grid";
    height: calc(100dvh - 16px - var(--safe-t) - var(--safe-b));
    overflow: hidden;
    gap: 7px;
  }
  .menu-panel.shop .shop-head {
    display: none;
  }
  .menu-panel.shop .jeton {
    grid-area: jeton;
    padding: 5px 10px;
    min-height: 0;
  }
  .menu-panel.shop .jeton small {
    display: none;
  }
  .menu-panel.shop > [data-go=main] {
    grid-area: back;
    width: auto;
    min-height: 38px !important;
    padding: 0 16px;
  }
  .menu-panel.shop .stabs {
    grid-area: tabs;
  }
  .menu-panel.shop .stabs button {
    padding: 7px 6px;
    font-size: 14px;
  }
  .menu-panel.shop .spv {
    grid-area: spv;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    padding: 6px 8px;
  }
  .menu-panel.shop .spvimg,
  .menu-panel.shop .spvsvg,
  .menu-panel.shop .spv3d {
    width: 52px;
    height: 52px;
  }
  .menu-panel.shop .spvinfo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }
  .menu-panel.shop .spvinfo > b {
    font-size: 15px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .menu-panel.shop .sact {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .menu-panel.shop .sact .btn {
    min-height: 36px !important;
    width: auto;
    padding: 0 12px;
    font-size: 13px;
  }
  .menu-panel.shop .sact .need {
    display: none;
  }
  .menu-panel.shop .sgrid {
    grid-area: grid;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    align-content: start;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  }
}
.kcard.kc2 {
  width: min(680px, calc(100vw - 28px)) !important;
  max-width: none;
}
.kcard.kc2:not(.corner),
.kcard.corner.kc2 .cscroll {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  column-gap: 14px;
  height: var(--kc2h);
  max-height: none;
  overflow: visible;
}
.kcard.kc2:not(.corner) > *:not(.x):not(.ctimer),
.kcard.corner.kc2 .cscroll > * {
  width: calc(50% - 7px);
  box-sizing: border-box;
  flex: none;
}
.kcard.kc2 .art {
  aspect-ratio: auto;
  height: auto;
  flex: 0 1 auto;
  min-height: 70px;
  max-height: 42%;
}
.kcard.kc2 .art svg {
  height: 100%;
  min-height: 70px;
}
.kcard.kc2 .actions {
  margin-top: auto;
}
.kcard.purchase-card.kc2 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-content: stretch;
}
.kcard.purchase-card.kc2 > .purchase-visual,
.kcard.purchase-card.kc2 > .purchase-details,
.kcard.purchase-card.kc2 > .actions {
  width: 100% !important;
  min-width: 0;
  min-height: 0;
}
.kcard.purchase-card.kc2 > .purchase-visual,
.kcard.purchase-card.kc2 > .purchase-details {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.kcard.purchase-card.kc2 > .purchase-visual {
  display: flex;
  flex-direction: column;
}
.kcard.purchase-card.kc2 .purchase-visual .art {
  position: relative;
  align-self: center;
  width: 82%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16/9;
  flex: none;
}
.kcard.purchase-card.kc2 .purchase-visual .art svg {
  position: absolute;
  inset: 0;
  min-height: 0;
}
.kcard.purchase-card.kc2 > .actions {
  grid-column: 1/-1;
  margin-top: 0;
}
.kcard.kc2:not(.corner),
.kcard.corner.kc2 .cscroll {
  position: relative;
}
@media (orientation: landscape) and (max-height: 540px) {
  .sheet:has(> .set-row) {
    width: min(760px, calc(100vw - 20px));
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    align-content: start;
  }
  .sheet:has(> .set-row) > .sheet-head {
    grid-column: 1/-1;
  }
  .sheet .set-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 7px 0;
    gap: 8px;
  }
  .sheet .set-row > div small {
    font-size: 11px;
  }
  .sheet .set-row input[type=range] {
    width: 120px;
  }
}
.kcard.kc2 .x {
  top: -14px;
  right: -12px;
}
.room-list {
  min-height: min(48dvh, 340px);
  align-content: start;
}
.room-list .rl-empty {
  min-height: min(40dvh, 280px);
  align-content: center;
}
.rv-seg.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.name-ask .code-row .btn {
  width: 52px;
  padding: 0;
}
.name-ask .code-row .btn svg {
  width: 22px;
  height: 22px;
}
.name-ask .text-in {
  font: 800 18px/1.2 var(--display);
}
.sh-ic.ig {
  background:
    linear-gradient(
      45deg,
      #F58529,
      #DD2A7B 50%,
      #8134AF);
}
.sh-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
@media (orientation: landscape) and (max-height: 540px) {
  .room-list {
    min-height: calc(100dvh - 110px - var(--safe-t) - var(--safe-b));
  }
  .menu.join-wide .menu-panel {
    height: calc(100dvh - 16px - var(--safe-t) - var(--safe-b));
  }
  .share-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tc) 22%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tc) 60%, transparent);
  min-width: 0;
}
.team-head.t0 {
  --tc:#4FC3F7;
}
.team-head.t1 {
  --tc:#FF8A5B;
}
.team-head b {
  font: 900 13px/1 var(--display);
  color: var(--tc);
  white-space: nowrap;
}
.team-head .btn-xs {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}
.team-rules {
  display: block;
  line-height: 1.35;
}
.tchip {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  font: 900 11px/1 var(--display);
  color: #08131f;
  background: var(--tc);
  vertical-align: middle;
}
.tchip.t0 {
  --tc:#4FC3F7;
}
.tchip.t1 {
  --tc:#FF8A5B;
}
.pcard .gift-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background:
    linear-gradient(
      180deg,
      #FFE08A,
      #F5B83A);
  color: #3a2500;
  box-shadow: 0 2px 0 #b07a12;
}
.pcard .gift-btn svg {
  width: 15px;
  height: 15px;
}
.pcard .gift-btn[hidden] {
  display: none;
}
.pcard .gift-wide {
  grid-column: 1/-1;
  width: 100%;
  height: auto;
  min-height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 12px;
  margin-top: 2px;
  font: 800 13px/1 var(--display);
  letter-spacing: .2px;
  color: #3a2500;
  background:
    linear-gradient(
      180deg,
      #FFE9A6,
      #F5B83A 60%,
      #E79E1C);
  box-shadow: 0 3px 0 #a86f0e, 0 6px 14px rgba(245, 184, 58, .35);
  position: relative;
  overflow: hidden;
}
.pcard .gift-wide svg {
  width: 17px;
  height: 17px;
}
.pcard .gift-wide span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard .gift-wide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      transparent 35%,
      rgba(255, 255, 255, .65) 50%,
      transparent 65%);
  transform: translateX(-120%);
  animation: giftShine 3.2s ease-in-out infinite;
}
.pcard .gift-wide:hover {
  filter: brightness(1.06);
}
.pcard .gift-wide:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #a86f0e;
}
@keyframes giftShine {
  0%, 55% {
    transform: translateX(-120%);
  }
  85%, 100% {
    transform: translateX(120%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pcard .gift-wide::after {
    animation: none;
    display: none;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .pcard .gift-wide {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 11px;
  }
  .pcard .gift-wide svg {
    width: 13px;
    height: 13px;
  }
}
.gift-sheet {
  display: grid;
  gap: 12px;
  max-width: 380px;
  text-align: center;
}
.gift-sheet p {
  margin: 0;
  color: var(--soft);
}
.gift-sheet .gift-debt {
  color: #FFB37A;
  font-weight: 800;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.gift-sheet .gift-debt svg {
  width: 16px;
  height: 16px;
}
.gift-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.gift-quick .btn {
  min-height: 36px;
  padding: 0 12px;
}
.gift-step {
  justify-self: center;
}
.gift-step output {
  min-width: 110px;
  text-align: center;
  font: 800 20px/1 var(--display);
}
.rank-list .tchip {
  margin-inline-end: 4px;
}
@media (orientation: landscape) and (max-height: 540px) {
  .team-head {
    padding: 2px 5px;
  }
  .team-head b {
    font-size: 11px;
  }
  .gift-sheet {
    gap: 8px;
  }
}
.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.menu-head h2 {
  margin: 0;
  min-width: 0;
}
.menu-head #acct-slot {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 64%;
}
.menu-head #acct-slot:empty {
  display: none;
}
.acct-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18);
  color: var(--ink);
  font: 800 13px/1 var(--body);
}
.acct-chip svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.acct-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.acct-chip.in {
  background: rgba(245, 194, 74, .12);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .4);
}
.acct-chip .tier-chip {
  flex: none;
}
.av {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    linear-gradient(
      180deg,
      #FFE08A,
      #F5B83A);
  color: #3a2500;
  font: 900 13px/1 var(--display);
  font-style: normal;
}
.av.big {
  width: 48px;
  height: 48px;
  font-size: 22px;
}
.menu-row3 {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
}
.menu-row3 .btn {
  min-width: 0;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-lang {
  min-width: 74px;
}
.btn-ranked {
  background:
    linear-gradient(
      180deg,
      #5A3E9A,
      #3D2A6E);
  box-shadow: inset 0 0 0 1.5px rgba(200, 170, 255, .35), 0 4px 0 #261844;
}
.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  font: 900 11px/1 var(--body);
  color: #0b1224;
  background: var(--tc);
  white-space: nowrap;
}
.tier-chip svg {
  width: 12px;
  height: 12px;
}
.acct-sheet {
  display: grid;
  gap: 10px;
  max-width: 420px;
  width: min(420px, calc(100vw - 24px));
}
.acct-why,
.acct-note {
  margin: 0;
  color: var(--soft);
  font: 700 13px/1.4 var(--body);
}
.acct-note {
  font-size: 12px;
}
.acct-providers {
  display: grid;
  gap: 8px;
}
.acct-providers .btn {
  justify-content: center;
  gap: 10px;
}
.btn-light {
  background: #fff;
  color: #1f2a44;
  box-shadow: 0 4px 0 #b9c2d6;
}
.btn-fb {
  background: #1877F2;
  color: #fff;
  box-shadow: 0 4px 0 #0d4fa8;
}
.bi {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font: 900 14px/1 Arial, sans-serif;
}
.bi.g {
  background: #4285F4;
  color: #fff;
}
.bi.f {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}
.acct-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font: 800 12px/1 var(--body);
}
.acct-or::before,
.acct-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .14);
}
.acct-form {
  display: grid;
  gap: 8px;
  margin: 0;
}
.acct-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.link-btn {
  border: 0;
  background: none;
  padding: 4px 2px;
  color: var(--sky);
  font: 800 13px/1.2 var(--body);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.acct-guest {
  min-height: 40px;
}
.acct-legal {
  color: var(--dim);
  font: 700 11px/1.35 var(--body);
}
.acct-legal a {
  color: var(--soft);
}
.btn.busy {
  opacity: .6;
  pointer-events: none;
}
.btn.danger {
  color: #FFB3BF;
}
.prof-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.prof-top > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.prof-name {
  font: 900 20px/1.1 var(--display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prof-top small {
  color: var(--dim);
  font: 700 12px/1.2 var(--body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-warn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 179, 122, .12);
  box-shadow: inset 0 0 0 1.5px rgba(255, 179, 122, .4);
  color: #FFD2B0;
  font: 800 12px/1.35 var(--body);
}
.acct-warn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.acct-warn span {
  flex: 1 1 180px;
}
.season-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(120, 90, 200, .22),
      rgba(40, 30, 90, .3));
  box-shadow: inset 0 0 0 1.5px rgba(200, 170, 255, .3);
}
.sc-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--soft);
  font: 800 12px/1.2 var(--body);
}
.sc-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.sc-main > b {
  font: 900 28px/1 var(--display);
  color: var(--gold-hi);
}
.sc-main > small {
  color: var(--soft);
  font: 800 12px/1 var(--body);
}
.sc-gw {
  margin-left: auto;
  color: var(--soft);
  font: 800 12px/1 var(--body);
}
.sc-bar,
.cr-bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.sc-bar i,
.cr-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #B98BFF,
      #F5C24A);
}
.sc-next {
  color: var(--dim);
  font: 700 11px/1.2 var(--body);
}
.sc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--soft);
  font: 700 12px/1 var(--body);
}
.sc-stats b {
  color: var(--ink);
}
.credit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
}
.credit > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 800 13px/1 var(--body);
}
.credit > span svg {
  width: 16px;
  height: 16px;
}
.credit > b {
  font: 900 16px/1 var(--display);
}
.credit .cr-bar,
.credit small {
  grid-column: 1/-1;
}
.credit small {
  color: var(--dim);
  font: 700 11px/1.35 var(--body);
}
.credit.ok .cr-bar i {
  background:
    linear-gradient(
      90deg,
      #3BD98A,
      #9BF0C4);
}
.credit.warn .cr-bar i {
  background:
    linear-gradient(
      90deg,
      #FFB35C,
      #FFD08A);
}
.credit.bad .cr-bar i {
  background:
    linear-gradient(
      90deg,
      #FF6B7F,
      #FFA1AE);
}
.ranked {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.rk-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.rk-head h2,
.ranked h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ranked h2 svg {
  width: 26px;
  height: 26px;
  color: #D7B8FF;
}
.rk-head small {
  color: var(--soft);
  font: 800 12px/1 var(--body);
}
.season-card.compact {
  padding: 10px 12px;
  gap: 6px;
}
.season-card.compact .sc-main > b {
  font-size: 24px;
}
.rk-rules {
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  font: 700 12px/1.45 var(--body);
}
.rk-block {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 107, 127, .1);
  box-shadow: inset 0 0 0 1.5px rgba(255, 107, 127, .35);
}
.rk-block p,
.rk-msg {
  margin: 0;
  color: #FFC2CB;
  font: 800 12px/1.4 var(--body);
}
.rk-msg {
  color: var(--gold-hi);
}
.rk-time {
  margin: 0;
  text-align: center;
  font: 900 30px/1 var(--display);
  color: var(--gold-hi);
}
.rk-queue {
  justify-items: center;
  text-align: center;
}
.rk-lobby .seats {
  grid-template-columns: 1fr 1fr;
}
.board-sheet {
  display: grid;
  gap: 10px;
  width: min(460px, calc(100vw - 24px));
}
.board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  max-height: min(52dvh, 420px);
  overflow: auto;
}
.board li,
.rk-rows li {
  display: grid;
  grid-template-columns: 30px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  font: 800 13px/1.2 var(--body);
}
.board li.me,
.rk-rows li.me {
  background: rgba(245, 194, 74, .14);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .45);
}
.board li b,
.rk-rows li b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board .rk,
.rk-rows .rk {
  color: var(--dim);
  font: 900 13px/1 var(--display);
  text-align: center;
}
.board-me {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font: 800 13px/1 var(--body);
}
.rk-final {
  display: grid;
  gap: 8px;
  justify-items: stretch;
  text-align: start;
}
.rk-final > span {
  color: var(--soft);
  font: 800 13px/1.2 var(--body);
}
.rk-mine {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rk-mine > b {
  font: 900 24px/1 var(--display);
}
.rk-mine span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 800 14px/1 var(--display);
  color: var(--gold-hi);
}
.rk-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.rk-rows li {
  grid-template-columns: 24px 1fr auto auto;
}
.rk-rows small {
  color: var(--dim);
  font: 800 11px/1 var(--body);
}
b.up {
  color: var(--ok);
}
b.down {
  color: var(--bad);
}
.mp-spin.small {
  width: 22px;
  height: 22px;
  border-width: 3px;
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu-head h2 {
    font-size: 20px;
  }
  .acct-chip {
    min-height: 30px;
    font-size: 12px;
  }
  .menu-row3 {
    gap: 8px;
  }
  .acct-sheet {
    gap: 7px;
  }
  .acct-why {
    font-size: 12px;
  }
  .ranked {
    gap: 7px;
  }
  .rk-rules {
    display: none;
  }
  .rk-time {
    font-size: 24px;
  }
  .rk-lobby .seats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .board {
    max-height: 46dvh;
  }
}
@media (max-width: 420px) {
  .menu-row3 {
    grid-template-columns: 1fr 1fr;
  }
  .menu-row3 .btn-lang {
    grid-column: 1/-1;
  }
}
.acct-cols {
  display: grid;
  gap: 10px;
}
.acct-col {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
@media (orientation: landscape) and (max-height: 540px) {
  .acct-sheet:has(.acct-cols) {
    width: min(760px, calc(100vw - 24px));
    max-width: 760px;
  }
  .acct-cols {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .acct-sheet .btn {
    min-height: 40px;
  }
  .acct-sheet .text-in {
    min-height: 40px;
  }
  .prof .season-card {
    padding: 8px 10px;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .prof .acct-warn {
    padding: 7px 8px;
  }
  .prof .credit small {
    font-size: 10.5px;
  }
  .prof .sc-main > b {
    font-size: 22px;
  }
  .prof .av.big {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
@media (orientation: landscape) and (max-height: 360px) {
  .prof .credit small,
  .prof .sc-next {
    display: none;
  }
  .prof .acct-warn span {
    font-size: 11px;
  }
}
.kcard.corner .cl,
.kcard.corner .cr {
  display: contents;
}
.kcard.corner.kc2 .cscroll {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  height: auto !important;
  min-height: 0;
}
.kcard.corner.kc2 .cscroll > * {
  width: auto !important;
}
.kcard.corner.kc2 .cl,
.kcard.corner.kc2 .cr {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.kcard.corner.kc2 .cl .art {
  flex: 1 1 auto;
  max-height: none;
  min-height: 120px;
}
.kcard.corner.kc2 .cl .art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.kcard.corner.kc2 .cl .art {
  position: relative;
}
.kcard.corner.kc2 .cl .cstat {
  margin-bottom: 0;
}
.kcard.corner.kc2 .cr .actions {
  margin-top: auto;
  padding-top: 8px;
}
@media (orientation: landscape) and (max-height: 540px) {
  .game .players {
    position: absolute;
    inset: calc(6px + var(--safe-t)) calc(6px + var(--safe-r)) calc(6px + var(--safe-b)) calc(6px + var(--safe-l));
    width: auto;
    display: block;
    pointer-events: none;
    padding: 0;
  }
  .game .players .pcard {
    position: absolute !important;
    width: 150px;
    pointer-events: auto;
    margin: 0 !important;
  }
  .game .players .pcard.pc-0 {
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
  }
  .game .players .pcard.pc-1 {
    right: 0 !important;
    top: 46px !important;
    left: auto !important;
    bottom: auto !important;
  }
  .game .players .pcard.pc-2 {
    left: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    right: auto !important;
  }
  .game .players .pcard.pc-3 {
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    left: auto !important;
  }
  .game .dock {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(6px + var(--safe-b));
    width: auto;
    max-width: calc(100% - 330px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .game .dock .feed {
    order: 0;
    min-width: 0;
    max-width: 200px;
  }
  .game .dock .feed div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .game .dock .clock {
    order: 1;
    padding: 4px 8px;
  }
  .game .dock-main {
    order: 2;
    flex-direction: row;
    align-items: center;
    padding: 4px;
    gap: 4px;
    border-radius: 16px;
  }
  .game .dock-main .btn-roll {
    width: auto;
    min-width: 136px;
    min-height: 44px;
    font-size: 16px;
  }
  .game .dock-main .btn-build {
    width: auto;
    height: 44px;
    padding: 0 10px;
    flex-direction: column;
    gap: 1px;
  }
  .coach {
    top: calc(6px + var(--safe-t));
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, calc(100vw - 340px));
    scale: 1;
  }
  .coach.busy {
    display: none;
  }
}
@media (orientation: landscape) and (max-height: 540px) and (max-width: 760px) {
  .game .dock .feed {
    display: none;
  }
  .game .players .pcard {
    width: 136px;
  }
  .game .dock {
    max-width: calc(100% - 300px);
  }
}
.rules-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font: 700 14px/1.4 var(--body);
}
.team-rules-btn {
  justify-self: start;
}
.menu.ranked-mode {
  grid-template-columns: 1fr;
  justify-items: center;
  overflow: hidden;
}
.menu.ranked-mode .hero {
  display: none;
}
.menu.ranked-mode .menu-panel {
  width: min(1080px, 100%);
  max-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 36px);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rk-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  flex: 1;
}
.rk-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rk-top h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rk-top h2 svg {
  width: 26px;
  height: 26px;
  color: #D7B8FF;
}
.rk-top small {
  color: var(--soft);
  font: 800 12px/1 var(--body);
  margin-right: auto;
}
.rk-top .btn-sm {
  min-height: 36px;
  padding: 0 12px;
}
.rk-top .btn-sm svg {
  width: 16px;
  height: 16px;
}
.rk-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  flex: 1;
}
.rk-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.rk-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 8px;
  padding: 6px 4px 0;
}
.pd {
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  min-width: 0;
  font: inherit;
}
.pd.empty {
  cursor: default;
  opacity: .45;
}
.pd-pawn {
  position: relative;
  display: grid;
  place-items: end center;
  width: 100%;
  height: 110px;
}
.pd1 .pd-pawn {
  height: 140px;
}
.pd-pawn img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4));
}
.pd-crown {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  color: #F5C24A;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4));
}
.pd-crown svg {
  width: 100%;
  height: 100%;
}
.pd > b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 800 15px/1.1 var(--display);
}
.pd1 > b {
  font-size: 17px;
}
.pd-elo {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pd-elo em {
  font: 800 13px/1 var(--display);
  font-style: normal;
  color: var(--gold-hi);
}
.pd-step {
  width: 100%;
  display: grid;
  place-items: center;
  border-radius: 12px 12px 4px 4px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--pc,#8FA3C4) 55%, #1A3668),
      #142B55);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18);
}
.pd-step i {
  font: 900 22px/1 var(--display);
  font-style: normal;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.pd1 .pd-step {
  height: 64px;
  background:
    linear-gradient(
      180deg,
      #F5C24A,
      #B9851A);
}
.pd2 .pd-step {
  height: 46px;
  background:
    linear-gradient(
      180deg,
      #DDE5F0,
      #8A96A8);
}
.pd3 .pd-step {
  height: 34px;
  background:
    linear-gradient(
      180deg,
      #E0A070,
      #9A5A2E);
}
.pd:not(.empty):hover .pd-pawn img {
  transform: translateY(-3px);
  transition: transform .15s;
}
.rk-me {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .3);
}
.rk-me.locked {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.rk-me.locked > svg {
  width: 26px;
  height: 26px;
  color: var(--soft);
}
.rk-me.locked b {
  display: block;
  font: 800 15px/1.2 var(--display);
}
.rk-me.locked small {
  color: var(--soft);
  font: 700 12px/1.3 var(--body);
}
.rk-me-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
  text-align: start;
  font: inherit;
}
.rk-me-top img,
.rk-me-top .av-dot {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.rk-me-top b {
  display: block;
  font: 800 16px/1.1 var(--display);
}
.rk-me-top small {
  color: var(--soft);
  font: 800 12px/1.2 var(--body);
}
.me-elo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.me-elo b {
  font: 900 20px/1 var(--display);
  color: var(--gold-hi);
}
.rk-queue {
  justify-items: center;
  text-align: center;
}
.board {
  list-style: none;
  margin: 0;
  padding: 0 4px 0 0;
  display: grid;
  gap: 4px;
  overflow: auto;
  min-height: 0;
  flex: 1;
  overscroll-behavior: contain;
  max-height: none;
}
.board li button {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
  font: 800 13px/1.2 var(--body);
  cursor: pointer;
  text-align: start;
}
.board li button:hover {
  background: rgba(255, 255, 255, .1);
}
.board li.me button {
  background: rgba(245, 194, 74, .14);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .45);
}
.board li b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board .rk {
  color: var(--dim);
  font: 900 13px/1 var(--display);
  text-align: center;
}
.b-pawn {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.av-dot {
  display: inline-block;
  border-radius: 50%;
  background: var(--pc);
}
.b-pawn.av-dot {
  width: 24px;
  height: 24px;
}
.board-mine {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(245, 194, 74, .14);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .45);
  font: 800 13px/1 var(--body);
}
.board-empty {
  margin: auto;
  color: var(--soft);
  font: 800 14px/1.4 var(--body);
  text-align: center;
}
.tier-legend {
  color: var(--dim);
  font: 700 11px/1.3 var(--body);
}
.acct-off {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(111, 183, 255, .1);
  box-shadow: inset 0 0 0 1.5px rgba(111, 183, 255, .3);
  color: #CFE3FF;
  font: 800 12px/1.35 var(--body);
}
.player-sheet {
  width: min(720px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
}
.pl-main {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: stretch;
}
.pl-hero {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 50% 35%,
      color-mix(in srgb, var(--pc) 35%, transparent),
      rgba(255, 255, 255, .03) 70%);
}
.pl-pawn {
  height: 170px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .4));
}
.pl-pawn.av-dot {
  width: 90px;
  height: 90px;
}
.pl-name {
  font: 900 22px/1.1 var(--display);
}
.pl-rank {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pl-rank b {
  font: 900 22px/1 var(--display);
  color: var(--gold-hi);
}
.pl-side {
  display: grid;
  gap: 10px;
  align-content: start;
}
.pl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 6px;
}
.pl-stats > div {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
}
.pl-stats small {
  color: var(--soft);
  font: 800 11px/1 var(--body);
}
.pl-stats b {
  font: 800 15px/1.1 var(--display);
}
.pl-gear {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.pl-gear > div {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  text-align: center;
  min-width: 0;
}
.pl-gear img,
.pl-gear svg {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.pl-gear small {
  color: var(--soft);
  font: 800 10px/1 var(--body);
  letter-spacing: .04em;
}
.pl-gear b {
  font: 800 12px/1.15 var(--display);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.consent {
  display: grid;
  gap: 6px;
}
.ck {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
  font: 700 12.5px/1.35 var(--body);
  text-align: start;
  cursor: pointer;
}
.ck i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.ck.on i {
  background: var(--ok);
  box-shadow: none;
  color: #06301b;
}
.ck i svg {
  width: 15px;
  height: 15px;
}
.ck span {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .3);
  text-underline-offset: 3px;
}
.consent.shake {
  animation: ckShake .45s;
}
@keyframes ckShake {
  20%, 60% {
    transform: translateX(-6px);
  }
  40%, 80% {
    transform: translateX(6px);
  }
}
.acct-providers.locked .btn,
.acct-form.locked .btn {
  opacity: .55;
}
.legal-layer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(3, 8, 20, .66);
  backdrop-filter: blur(4px);
}
.legal-sheet {
  width: min(640px, 100%);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-upd {
  color: var(--dim);
  font: 700 11px/1 var(--body);
}
.legal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 10px 4px 2px;
  overscroll-behavior: contain;
  color: #DCE5FA;
  font: 600 14px/1.55 var(--body);
}
.legal-body h3 {
  margin: 14px 0 4px;
  font: 800 15px/1.2 var(--display);
  color: var(--gold-hi);
}
.legal-body h3:first-child {
  margin-top: 2px;
}
.legal-body p {
  margin: 0 0 8px;
}
.legal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.legal-hint {
  color: var(--soft);
  font: 700 12px/1.2 var(--body);
  margin-right: auto;
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu.ranked-mode {
    padding: 6px 10px;
  }
  .menu.ranked-mode .menu-panel {
    max-height: calc(100dvh - 12px);
    padding: 10px 12px;
    border-radius: 20px;
  }
  .rk-page {
    gap: 6px;
  }
  .rk-top h2 {
    font-size: 18px;
  }
  .rk-top .btn-sm {
    min-height: 30px;
  }
  .rk-body {
    gap: 10px;
  }
  .pd-pawn {
    height: 64px;
  }
  .pd1 .pd-pawn {
    height: 80px;
  }
  .pd > b {
    font-size: 12px;
  }
  .pd1 > b {
    font-size: 13px;
  }
  .pd .tier-chip {
    display: none;
  }
  .pd1 .pd-step {
    height: 34px;
  }
  .pd2 .pd-step {
    height: 24px;
  }
  .pd3 .pd-step {
    height: 18px;
  }
  .pd-step i {
    font-size: 15px;
  }
  .rk-me {
    padding: 7px 9px;
    gap: 5px;
  }
  .rk-me-top img,
  .rk-me-top .av-dot {
    width: 36px;
    height: 36px;
  }
  .rk-me .btn-quick {
    min-height: 40px;
  }
  .rk-block p {
    font-size: 11px;
  }
  .tier-legend {
    display: none;
  }
  .board li button {
    padding: 3px 8px;
    grid-template-columns: 24px 26px minmax(0, 1fr) auto auto;
  }
  .b-pawn {
    width: 26px;
    height: 26px;
  }
  .pl-pawn {
    height: 110px;
  }
  .pl-main {
    gap: 10px;
  }
  .player-sheet {
    gap: 6px;
  }
  .legal-body {
    font-size: 13px;
  }
}
@media (max-width: 700px) and (orientation: portrait) {
  .rk-body,
  .pl-main {
    grid-template-columns: 1fr;
  }
}
.menu.ranked-mode .menu-panel {
  max-width: 1080px !important;
  width: 100%;
  overflow: hidden !important;
}
.rk-top .btn {
  width: auto !important;
}
.rk-me.locked .btn {
  width: auto;
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu.ranked-mode .menu-panel {
    max-width: none !important;
    height: calc(100dvh - 12px - var(--safe-t) - var(--safe-b));
    align-self: center;
  }
  .menu.ranked-mode .menu-panel .btn.btn-sm {
    min-height: 30px;
    font-size: 13px;
  }
}
.board li {
  display: block;
  padding: 0;
  background: none;
  box-shadow: none;
}
.pd-pawn img {
  height: 110px;
  width: auto;
  max-width: 100%;
}
.pd1 .pd-pawn img {
  height: 140px;
}
.pl-rank > span:not(.tier-chip) {
  color: var(--soft);
  font: 800 13px/1 var(--body);
}
.pl-rank .tier-chip {
  color: #0b1224;
}
@media (orientation: landscape) and (max-height: 540px) {
  .pd-pawn img {
    height: 64px;
  }
  .pd1 .pd-pawn img {
    height: 80px;
  }
}
.legal-body:focus {
  outline: none;
}
.jail-sheet {
  max-width: 440px;
}
.jail-sheet h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jail-sheet h2 svg {
  width: 24px;
  height: 24px;
}
.jail-lead {
  margin: 0 60px 10px 0;
  color: var(--soft);
  font-weight: 800;
  line-height: 1.35;
}
.jail-tries {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}
.jail-tries i {
  width: 26px;
  height: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .14);
}
.jail-tries i.used {
  background: #7d879e;
}
.jail-tries i.now {
  background: var(--gold-hi);
  box-shadow: 0 0 10px rgba(255, 210, 90, .6);
}
.jail-tries small {
  margin-left: 6px;
  color: var(--soft);
  font-weight: 900;
  font-size: 12px;
}
.jail-opts {
  display: grid;
  gap: 8px;
}
.jail-opts .btn {
  width: 100%;
}
.jail-opts .btn[disabled] {
  opacity: .45;
}
.jail-note {
  margin: 10px 0 0;
  color: var(--soft);
  font-size: 12.5px;
  font-weight: 700;
}
.ta-more {
  display: none;
}
.ta-items {
  display: contents;
}
.side-chat {
  display: none;
}
@media (orientation: landscape) {
  .game .top-actions {
    position: fixed;
    left: calc(16px + var(--safe-l));
    top: 50%;
    translate: 0 -50%;
    display: block;
    width: 48px;
    height: 48px;
    z-index: 6;
  }
  .game .ta-more {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
  }
  .game .ta-more svg {
    width: 22px;
    height: 22px;
  }
  .game .top-actions.open .ta-more {
    background:
      linear-gradient(
        180deg,
        var(--gold-hi),
        var(--gold));
    color: #2A1A00;
  }
  .game .ta-items {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
  }
  .game .ta-items > .icon-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    scale: .5;
    pointer-events: none;
    transition:
      translate .22s cubic-bezier(.2, 1.3, .4, 1),
      opacity .15s,
      scale .2s;
  }
  .game .top-actions.open .ta-items > .icon-btn {
    opacity: 1;
    scale: 1;
    pointer-events: auto;
  }
  .game .top-actions.open .ta-items > :nth-child(1) {
    translate: 0 calc(-200% - 12px);
  }
  .game .top-actions.open .ta-items > :nth-child(2) {
    translate: 0 calc(-100% - 6px);
  }
  .game .top-actions.open .ta-items > :nth-child(3) {
    translate: 0 calc(100% + 6px);
  }
  .game .top-actions.open .ta-items > :nth-child(4) {
    translate: 0 calc(200% + 12px);
  }
  .game .side-chat {
    display: block;
    position: fixed;
    right: calc(16px + var(--safe-r));
    top: 50%;
    translate: 0 -50%;
    z-index: 6;
  }
  .game .side-chat .icon-btn {
    width: 48px;
    height: 48px;
  }
  body:has(.game) .chat-peek:not(.fab) {
    top: 50%;
    bottom: auto;
    right: calc(74px + var(--safe-r));
    translate: 0 -50%;
  }
  :dir(rtl) .game .top-actions {
    left: auto;
    right: calc(16px + var(--safe-r));
  }
  :dir(rtl) .game .side-chat {
    right: auto;
    left: calc(16px + var(--safe-l));
  }
  :dir(rtl) body:has(.game) .chat-peek:not(.fab) {
    right: auto;
    left: calc(74px + var(--safe-l));
  }
}
.game .dock {
  display: contents;
}
.game .dock > * {
  z-index: 6;
}
.game.loading .dock > * {
  opacity: 0;
}
.game .dock-main {
  position: fixed;
  left: var(--bx,50%);
  top: var(--by,62%);
  transform: translate(-50%, -50%);
}
.game .dock .clock {
  position: fixed;
  left: var(--bx,50%);
  top: var(--cy,72%);
  transform: translate(-50%, -50%);
  transform-origin: center;
  will-change: filter;
}
.game .dock .feed {
  position: fixed;
  left: 50%;
  bottom: calc(8px + var(--safe-b));
  transform: translateX(-50%);
  max-width: min(680px, calc(100% - 32px));
  min-height: 0;
}
.game .dock .feed div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game.entering .dock > * {
  animation: hudFadeIn .7s ease .9s both;
}
@media (orientation: landscape) and (max-height: 540px) {
  .game .players .pcard.pc-1 {
    top: 0 !important;
  }
  .game .topbar .brand {
    display: none;
  }
  .game .top-actions {
    left: calc(6px + var(--safe-l));
    width: 40px;
    height: 40px;
  }
  .game .ta-more svg {
    width: 20px;
    height: 20px;
  }
  .game .side-chat {
    right: calc(6px + var(--safe-r));
  }
  .game .side-chat .icon-btn {
    width: 40px;
    height: 40px;
  }
  body:has(.game) .chat-peek:not(.fab) {
    right: calc(54px + var(--safe-r));
  }
  :dir(rtl) .game .top-actions {
    right: calc(6px + var(--safe-r));
  }
  :dir(rtl) .game .side-chat {
    left: calc(6px + var(--safe-l));
  }
  .game .dock-main {
    padding: 2px;
    gap: 3px;
    border-radius: 13px;
    background: rgba(10, 22, 48, .5);
    min-width: 0;
  }
  .game .dock-main .btn-roll {
    width: var(--brw,104px);
    max-width: var(--brw,104px);
    min-width: var(--brw,104px);
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 1;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }
  .game .dock-main .btn-roll svg {
    width: 17px;
    height: 17px;
    flex: none;
  }
  .game .dock-main .btn-build {
    height: 34px;
    width: 34px;
    flex: none;
  }
  .game .dock .clock {
    padding: 2px 8px 4px;
    scale: none;
    transform: translate(-50%, -50%) scale(.86);
    min-width: 74px;
    box-sizing: border-box;
  }
  .game .dock .clock b {
    font-variant-numeric: tabular-nums;
  }
  .game .dock .clock small {
    white-space: nowrap;
  }
  .game .dock .feed {
    max-width: calc(100% - 330px);
  }
  .coach {
    width: min(440px, calc(100vw - 340px));
  }
}
@media (orientation: landscape) and (max-height: 540px) and (max-width: 760px) {
  .game .dock .feed {
    display: block;
    max-width: calc(100% - 300px);
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .flip {
    height: calc(100dvh - 22px - var(--safe-t) - var(--safe-b)) !important;
    max-height: calc(100dvh - 22px - var(--safe-t) - var(--safe-b)) !important;
    width: auto !important;
    aspect-ratio: 63/88 !important;
    max-width: min(42vw, 330px);
  }
  .card-wrap:has(> .flip) {
    padding: 0 !important;
  }
  .flip > div {
    border-radius: 18px;
  }
  .chance-front {
    padding: 9px !important;
    gap: 5px !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto !important;
    min-height: 0;
    overflow: hidden;
  }
  .chance-front .ch-head {
    font-size: 15px;
    padding: 6px;
    border-radius: 11px;
  }
  .chance-front .ch-art {
    border-radius: 11px;
  }
  .chance-front .ch-art svg {
    max-height: 22dvh;
    margin: 0 auto;
  }
  .chance-front .ch-body {
    gap: 6px !important;
    padding-top: 2px;
    align-content: center !important;
  }
  .chance-front .ch-body h4 {
    font-size: 18px;
  }
  .chance-front .ch-body p {
    font-size: 12.5px;
    line-height: 1.3;
  }
  .chance-front .ch-amt {
    font-size: 14px;
    padding: 4px 10px;
  }
  .chance-front .ch-foot img {
    width: 15px !important;
  }
  .chance-front .ch-foot b {
    font-size: 9.5px;
  }
  .chance-front .ch-foot small {
    font-size: 9px;
  }
  .chance-front > .btn {
    width: 100%;
    min-height: 36px;
    font-size: 15px;
    padding: 0 10px;
  }
  .card-back b {
    bottom: 14px;
    font-size: 13px;
  }
  .game.entering .dock > * {
    animation: hudFadeIn .7s ease .9s both;
  }
}
@keyframes hudFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clock.low,
  .ctimer.low {
    animation: none !important;
    filter: brightness(1.12);
  }
}
.kcard .kstate {
  display: grid;
  gap: 3px;
  margin: 8px 0 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(30, 39, 64, .06);
  box-shadow: inset 0 0 0 1.5px rgba(30, 39, 64, .08);
}
.kcard .kstate b {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 800 15px/1.1 var(--display);
  color: #1E2740;
}
.kcard .kstate b svg {
  width: 18px;
  height: 18px;
  color: #C28A12;
}
.kcard .kstate small {
  color: #5A6480;
  font: 700 12.5px/1.35 var(--body);
}
.kcard .kset {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(30, 39, 64, .05);
}
.kcard .kset h5 {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 13px/1 var(--display);
  color: #1E2740;
  letter-spacing: .02em;
}
.kcard .kset h5 small {
  margin-left: auto;
  color: #6A7390;
  font: 800 11.5px/1 var(--body);
}
.kcard .kset ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.kcard .kset li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  font: 700 12.5px/1.2 var(--body);
  color: #2C3550;
}
.kcard .kset li i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--oc);
  box-shadow: inset 0 0 0 2px rgba(30, 39, 64, .25);
}
.kcard .kset li.me span {
  font-weight: 900;
  color: #1E2740;
}
.kcard .kset li em {
  font-style: normal;
  color: #6A7390;
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}
.kcard .kset p {
  margin: 6px 0 0;
  color: #6A7390;
  font: 700 11.5px/1.35 var(--body);
}
.lb-acts {
  display: grid;
  gap: 10px;
}
.rs-vis .seg button svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
.rs-vis > b {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rs-vis > b svg {
  width: 16px;
  height: 16px;
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu.lobby-wide {
    padding-top: calc(6px + var(--safe-t));
    padding-bottom: calc(6px + var(--safe-b));
  }
  .menu.lobby-wide .menu-panel {
    max-height: calc(100dvh - 12px - var(--safe-t) - var(--safe-b));
    padding: 10px 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .menu.lobby-wide .lobby {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .menu.lobby-wide .lb-head {
    flex: none;
  }
  .menu.lobby-wide .lb-title h2 {
    font-size: 17px;
  }
  .menu.lobby-wide .lb-send {
    min-height: 36px;
    font-size: 13px;
  }
  .menu.lobby-wide .lb-code {
    padding: 4px 8px;
  }
  .menu.lobby-wide .lb-code b {
    font-size: 17px;
  }
  .menu.lobby-wide .lb-body {
    flex: 1;
    min-height: 0;
    align-items: stretch;
  }
  .menu.lobby-wide .seats {
    overflow: auto;
    min-height: 0;
    align-content: start;
    gap: 5px;
  }
  .menu.lobby-wide .seat {
    padding: 4px 8px;
    grid-template-columns: 32px minmax(0, 1fr);
    border-radius: 12px;
  }
  .menu.lobby-wide .seat img {
    width: 32px;
    height: 32px;
  }
  .menu.lobby-wide .seat.empty {
    min-height: 34px;
    padding: 3px 8px;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .menu.lobby-wide .seat.empty .seat-info {
    justify-items: start;
    text-align: start;
  }
  .menu.lobby-wide .seat.empty .seat-tools {
    grid-column: auto;
  }
  .menu.lobby-wide .lb-side {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
  }
  .menu.lobby-wide .lb-side .field > span {
    display: none;
  }
  .menu.lobby-wide .swatch {
    width: 28px;
    height: 28px;
  }
  .menu.lobby-wide .room-set {
    gap: 5px;
    padding: 7px 9px;
  }
  .menu.lobby-wide .room-set h3 {
    display: none;
  }
  .menu.lobby-wide .room-set .rs-row {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .menu.lobby-wide .room-set .rs-row > span {
    font-size: 10.5px;
    white-space: nowrap;
  }
  .menu.lobby-wide .room-set .seg {
    flex-wrap: nowrap;
    padding: 2px;
  }
  .menu.lobby-wide .room-set .seg button {
    padding: 5px 7px;
    font-size: 11.5px;
    white-space: nowrap;
  }
  .menu.lobby-wide .stepper button {
    width: 28px;
    height: 28px;
  }
  .menu.lobby-wide .mp-help {
    flex: none;
    margin: 0;
    font-size: 11px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .menu.lobby-wide .lb-acts {
    margin-top: auto;
    grid-template-columns: 1.3fr 1fr;
    gap: 6px;
  }
  .menu.lobby-wide .lb-acts .btn {
    min-height: 40px;
    font-size: 14px;
    padding: 0 8px;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu.lobby-wide .seats.teams {
    grid-template-columns: 1fr 1fr;
  }
  .menu.lobby-wide .seats.teams .seat {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .menu.lobby-wide .seats.teams .seat img {
    width: 28px;
    height: 28px;
  }
  .menu.lobby-wide .seats.teams .seat-tools {
    grid-column: 1/-1;
  }
  .menu.lobby-wide .seats.teams .seat.empty {
    grid-template-columns: minmax(0, 1fr);
  }
}
.menu-social {
  position: fixed;
  left: calc(14px + var(--safe-l));
  bottom: calc(14px + var(--safe-b));
  z-index: 6;
  display: flex;
  gap: 8px;
}
.soc-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px 0 11px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  color: var(--ink);
  font: 800 14px/1 var(--display);
  background: rgba(10, 22, 48, .72);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .3), 0 8px 18px rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.soc-btn svg,
.soc-btn img {
  width: 21px;
  height: 21px;
}
.soc-btn:hover {
  box-shadow: inset 0 0 0 1.5px var(--gold-hi), 0 8px 18px rgba(0, 0, 0, .3);
}
.soc-discord {
  background:
    linear-gradient(
      180deg,
      #6C74F0,
      #4E57D6);
  box-shadow: 0 5px 0 #3A42A8, 0 10px 20px rgba(0, 0, 0, .3);
  color: #fff;
}
.soc-discord:hover {
  filter: brightness(1.08);
  box-shadow: 0 5px 0 #3A42A8, 0 10px 20px rgba(0, 0, 0, .3);
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu-social {
    left: calc(8px + var(--safe-l));
    bottom: calc(8px + var(--safe-b));
    gap: 6px;
  }
  .soc-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 12px;
  }
  .soc-btn span {
    display: none;
  }
  .soc-btn {
    width: 40px;
    justify-content: center;
    padding: 0;
  }
}
@media (max-width: 700px) and (orientation: portrait) {
  .soc-btn span {
    display: none;
  }
  .soc-btn {
    width: 44px;
    justify-content: center;
    padding: 0;
  }
}
.contact-sheet {
  max-width: 520px;
}
.contact-sheet h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-sheet h2 svg {
  width: 24px;
  height: 24px;
}
.contact-lead {
  margin: 0 0 12px;
  color: var(--soft);
  font: 700 14px/1.4 var(--body);
}
.contact-opts {
  display: grid;
  gap: 8px;
}
.contact-opt {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  text-align: start;
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.contact-opt:hover {
  background: rgba(245, 194, 74, .12);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .45);
}
.contact-opt > svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(245, 194, 74, .14);
  color: var(--gold-hi);
}
.contact-opt b {
  display: block;
  font: 800 16px/1.15 var(--display);
}
.contact-opt small {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font: 700 12.5px/1.35 var(--body);
}
.contact-mail {
  text-transform: none;
  letter-spacing: 0;
  background: none;
  box-shadow: none;
  margin: 12px 0 0;
  text-align: center;
  color: var(--gold-hi);
  font: 800 14px/1 var(--display);
}
.contact-mail.soon {
  color: var(--soft);
  font: 700 12.5px/1.3 var(--body);
}
@media (orientation: landscape) and (max-height: 540px) {
  .contact-opt {
    padding: 8px 10px;
  }
  .contact-opt small {
    font-size: 11.5px;
  }
  .contact-lead {
    font-size: 12.5px;
    margin-bottom: 8px;
  }
}
.avc {
  --s:34px;
  width: var(--s);
  height: var(--s);
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 35% 30%,
      color-mix(in srgb, var(--pc) 85%, #fff),
      var(--pc) 60%,
      color-mix(in srgb, var(--pc) 70%, #000));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 4px 10px rgba(0, 0, 0, .35);
  vertical-align: middle;
}
.avc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avc.char img {
  object-fit: contain;
  transform: translateY(8%) scale(1.25);
}
.avc.ini b {
  font: 900 calc(var(--s) * .4)/1 var(--display);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  letter-spacing: .02em;
}
.acct-providers.sq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
}
.prov-sq {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 78px;
  padding: 10px 6px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  color: var(--ink);
  font: 800 12.5px/1 var(--display);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 5px 0 rgba(0, 0, 0, .22);
  transition: transform .12s, box-shadow .12s;
}
.prov-sq:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .55), 0 7px 0 rgba(0, 0, 0, .22);
}
.prov-sq:active {
  transform: translateY(2px);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .55), 0 2px 0 rgba(0, 0, 0, .22);
}
.prov-sq .bi {
  width: 34px;
  height: 34px;
  font-size: 20px;
}
.prov-sq.g {
  background:
    linear-gradient(
      180deg,
      #fff,
      #E9EEF7);
  color: #1F2A44;
}
.prov-sq.f {
  background:
    linear-gradient(
      180deg,
      #2E7BF6,
      #1665D8);
  color: #fff;
}
.prov-sq.f .bi.f {
  background: #fff;
  color: #1665D8;
}
.prov-sq.d {
  background:
    linear-gradient(
      180deg,
      #6C74F0,
      #4E57D6);
  color: #fff;
}
.bi.d {
  background: #fff;
  color: #5865F2;
}
.prov-sq.busy {
  opacity: .6;
  pointer-events: none;
}
.acct-providers.sq.locked .prov-sq {
  opacity: .55;
}
.chip-av {
  --s:26px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8);
}
.prof-top .avc.big {
  --s:52px;
}
.av-pick h4,
.links h4 {
  margin: 10px 0 6px;
  font: 800 13px/1 var(--display);
  color: var(--gold-hi);
  letter-spacing: .03em;
}
.av-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.av-opt {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 64px;
  padding: 7px 6px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1);
}
.av-opt .avc {
  --s:40px;
}
.av-opt small {
  font: 800 11px/1 var(--body);
  color: var(--soft);
}
.av-opt.on {
  background: rgba(245, 194, 74, .14);
  box-shadow: inset 0 0 0 2px var(--gold-hi);
}
.av-opt.on small {
  color: var(--gold-hi);
}
.links {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.link-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .05);
}
.link-row .bi {
  width: 28px;
  height: 28px;
  font-size: 16px;
}
.link-row .bi.f {
  background: #1877F2;
}
.link-row .bi.d {
  background: #5865F2;
  color: #fff;
}
.link-row span b {
  display: block;
  font: 800 14px/1.1 var(--display);
}
.link-row span small {
  color: var(--soft);
  font: 700 11.5px/1.2 var(--body);
}
.link-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
  min-width: max-content;
}
.link-ok {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
  color: #06301b;
}
.link-ok svg {
  width: 15px;
  height: 15px;
}
.link-row .unlink,
.link-row .link-btn-provider {
  min-width: 76px;
  min-height: 36px;
  padding-inline: 13px !important;
  font-size: 12.5px;
}
.links-note {
  color: var(--dim);
  font: 700 11.5px/1.35 var(--body);
}
.pd {
  position: relative;
}
.pd-av {
  --s:38px;
  margin-top: -16px;
  z-index: 1;
  box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0, 0, 0, .4);
}
.pd1 .pd-av {
  --s:46px;
  box-shadow:
    0 0 0 3px #FFD76A,
    0 0 18px rgba(255, 210, 90, .75),
    0 6px 14px rgba(0, 0, 0, .4);
}
.pd2 .pd-av {
  box-shadow:
    0 0 0 3px #E3EAF4,
    0 0 12px rgba(220, 230, 245, .55),
    0 6px 14px rgba(0, 0, 0, .4);
}
.pd3 .pd-av {
  box-shadow:
    0 0 0 3px #E7A36B,
    0 0 10px rgba(231, 163, 107, .5),
    0 6px 14px rgba(0, 0, 0, .4);
}
.pd-step {
  position: relative;
  overflow: visible;
}
.pd-step::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -20px;
  height: 34px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
  animation: pdGlow 2.6s ease-in-out infinite;
}
.pd1 .pd-step::after {
  background:
    radial-gradient(
      closest-side,
      rgba(255, 214, 90, .95),
      rgba(255, 180, 40, .5) 55%,
      transparent);
  opacity: 1;
}
.pd2 .pd-step::after {
  background:
    radial-gradient(
      closest-side,
      rgba(226, 236, 250, .7),
      rgba(170, 190, 215, .3) 55%,
      transparent);
  opacity: .75;
  animation-delay: .4s;
}
.pd3 .pd-step::after {
  background:
    radial-gradient(
      closest-side,
      rgba(236, 160, 100, .55),
      rgba(200, 120, 70, .22) 55%,
      transparent);
  opacity: .55;
  animation-delay: .8s;
}
.pd1 .pd-step {
  box-shadow: 0 0 26px rgba(255, 205, 80, .55), inset 0 2px 0 rgba(255, 255, 255, .5);
}
.pd2 .pd-step {
  box-shadow: 0 0 16px rgba(220, 230, 245, .35), inset 0 2px 0 rgba(255, 255, 255, .5);
}
.pd3 .pd-step {
  box-shadow: 0 0 10px rgba(231, 163, 107, .3), inset 0 2px 0 rgba(255, 255, 255, .4);
}
@keyframes pdGlow {
  0%, 100% {
    transform: scaleX(.92);
    opacity: var(--o,.85);
  }
  50% {
    transform: scaleX(1.06);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pd-step::after {
    animation: none;
  }
}
.b-av {
  --s:30px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .7);
}
.me-av {
  --s:42px;
}
.board-mine .b-av {
  margin-inline-end: 4px;
}
.pl-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pl-av {
  --s:34px;
}
@media (orientation: landscape) and (max-height: 540px) {
  .pd-av {
    --s:28px;
    margin-top: -10px;
  }
  .pd1 .pd-av {
    --s:32px;
  }
  .b-av {
    --s:24px;
  }
  .me-av {
    --s:34px;
  }
  .pd-step::after {
    bottom: -12px;
    height: 22px;
  }
  .prov-sq {
    min-height: 58px;
    padding: 6px 4px;
  }
  .prov-sq .bi {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
  .av-opt .avc {
    --s:32px;
  }
  .av-opt {
    min-width: 54px;
    padding: 5px;
  }
}
.curtain {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 50% 38%,
      #3a1830 0,
      #12081a 55%,
      #070309 100%);
}
.curtain::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10%;
  width: 70vmin;
  height: 120%;
  transform: translateX(-50%);
  background:
    radial-gradient(
      ellipse at 50% 0,
      rgba(255, 236, 190, .2),
      transparent 65%);
  pointer-events: none;
}
.cur-l,
.cur-r {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  z-index: 3;
  transition: transform 1s cubic-bezier(.7, 0, .25, 1);
  background:
    repeating-linear-gradient(
      90deg,
      #6d0f1c 0,
      #9e1b2c 3.2%,
      #c0283a 5.2%,
      #8b1526 7.4%,
      #5c0b17 9.6%),
    #8b1526;
  box-shadow: inset 0 -40px 60px rgba(0, 0, 0, .45);
}
.cur-l {
  left: 0;
  transform-origin: left;
  border-right: 3px solid #4a0812;
}
.cur-r {
  right: 0;
  transform-origin: right;
  border-left: 3px solid #4a0812;
}
.cur-l::after,
.cur-r::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, .25),
      transparent 30%,
      transparent 75%,
      rgba(0, 0, 0, .35));
}
.cur-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12dvh;
  min-height: 52px;
  z-index: 4;
  background:
    repeating-linear-gradient(
      90deg,
      #7a1120 0,
      #a81f31 4%,
      #7a1120 8%);
  border-bottom: 6px solid #E8B64A;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
}
.cur-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 12px;
  background:
    radial-gradient(
      circle at 10px 0,
      #E8B64A 5px,
      transparent 6px) 0 0/20px 12px repeat-x;
}
.curtain.open .cur-l {
  transform: translateX(-84%);
}
.curtain.open .cur-r {
  transform: translateX(84%);
}
.curtain.closing .cur-l,
.curtain.closing .cur-r {
  transform: none;
  transition-duration: .7s;
}
.cur-stage {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100vw - 32px));
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: 6dvh;
  opacity: 0;
  transition: opacity .5s .5s;
}
.curtain.open .cur-stage {
  opacity: 1;
}
.curtain.closing .cur-stage {
  opacity: 0;
  transition-delay: 0s;
  transition-duration: .25s;
}
.cur-screen {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 52dvh;
  border-radius: 14px;
  overflow: hidden;
  background: #05070d;
  box-shadow:
    0 0 0 4px #E8B64A,
    0 0 0 9px #3b2410,
    0 30px 60px rgba(0, 0, 0, .6);
  display: grid;
  place-items: center;
}
.ad-preview {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  color: #fff;
  background:
    repeating-linear-gradient(
      135deg,
      #1b2742 0 18px,
      #162036 18px 36px);
}
.ad-preview small {
  font: 900 12px/1 var(--display);
  letter-spacing: .2em;
  color: var(--gold-hi);
}
.ad-preview b {
  font: 800 clamp(16px, 3vw, 24px)/1.2 var(--display);
}
.ad-count {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 4px auto 0;
  border-radius: 50%;
  font: 900 20px/1 var(--display);
  font-style: normal;
  color: #2A1A00;
  background: var(--gold-hi);
}
.ad-wait {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--soft);
  font: 700 13px/1 var(--body);
}
.cur-note {
  display: grid;
  gap: 4px;
  max-width: 560px;
  text-align: center;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(10, 6, 16, .72);
  box-shadow: inset 0 0 0 1.5px rgba(232, 182, 74, .45);
}
.cur-note b {
  font: 800 16px/1.25 var(--display);
  color: var(--gold-hi);
}
.cur-note span {
  color: #E9DDF0;
  font: 700 13.5px/1.4 var(--body);
}
.cur-go {
  min-width: 200px;
}
.curtain.wall .cur-stage {
  opacity: 1;
  padding-top: 8dvh;
}
.wall-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 560px;
  text-align: center;
  padding: 22px 24px;
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(28, 18, 44, .96),
      rgba(14, 8, 24, .96));
  box-shadow: inset 0 0 0 2px rgba(232, 182, 74, .55), 0 30px 60px rgba(0, 0, 0, .6);
}
.wall-ic {
  font-size: 44px;
  line-height: 1;
}
.wall-card h2 {
  margin: 0;
  font: 800 22px/1.2 var(--display);
  color: var(--gold-hi);
}
.wall-card p {
  margin: 0;
  color: #E9DDF0;
  font: 700 14px/1.45 var(--body);
}
.wall-msg {
  min-height: 16px;
  color: #FFB3BF;
  font: 700 12.5px/1.3 var(--body);
}
@media (orientation: landscape) and (max-height: 540px) {
  .cur-top {
    height: 34px;
    min-height: 0;
  }
  .cur-stage {
    padding-top: 30px;
    gap: 8px;
  }
  .cur-screen {
    max-height: 48dvh;
    width: auto;
    height: 48dvh;
  }
  .cur-note {
    padding: 7px 12px;
  }
  .cur-note b {
    font-size: 13px;
  }
  .cur-note span {
    font-size: 11.5px;
  }
  .cur-go {
    min-height: 38px;
  }
  .wall-card {
    padding: 12px 16px;
    gap: 6px;
  }
  .wall-ic {
    font-size: 30px;
  }
  .wall-card h2 {
    font-size: 17px;
  }
  .wall-card p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cur-l,
  .cur-r {
    transition-duration: .2s;
  }
}
.rk-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.rk-body {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}
.rk-left {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding-bottom: 14px;
}
.rk-right .board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
  align-content: start;
}
@media (max-width: 700px) and (orientation: portrait) {
  .rk-left {
    grid-template-columns: minmax(0, 1fr);
  }
  .rk-right .board {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .rk-body {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .rk-left {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0;
  }
  .rk-side {
    margin-top: 20px;
  }
  .rk-right .board {
    grid-template-columns: minmax(0, 1fr);
  }
}
.bi.g {
  background: #fff;
  color: #4285F4;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.bi.f {
  background: #1877F2;
  color: #fff;
}
.bi.d {
  background: #5865F2;
  color: #fff;
}
.bi.logo {
  background: transparent;
  box-shadow: none;
}
.bi.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.prov-sq.g {
  background:
    linear-gradient(
      180deg,
      #fff,
      #F1F3F6);
  color: #1F1F1F;
  box-shadow: inset 0 0 0 1px #DADCE0, 0 5px 0 rgba(0, 0, 0, .22);
}
.prov-sq.g .bi.g {
  box-shadow: 0 0 0 1.5px #DADCE0;
}
.prov-sq.f {
  background:
    linear-gradient(
      180deg,
      #2D86F5,
      #1877F2);
  color: #fff;
  box-shadow: 0 5px 0 #0F5BC4;
}
.prov-sq.f .bi.f {
  background: #fff;
  color: #1877F2;
}
.prov-sq.d {
  background:
    linear-gradient(
      180deg,
      #6B77F5,
      #5865F2);
  color: #fff;
  box-shadow: 0 5px 0 #3C45B8;
}
.prov-sq.d .bi.d {
  background: #fff;
  color: #5865F2;
}
.prov-sq.g:hover {
  box-shadow: inset 0 0 0 1px #DADCE0, 0 7px 0 rgba(0, 0, 0, .22);
}
.prov-sq.f:hover {
  box-shadow: 0 7px 0 #0F5BC4;
}
.prov-sq.d:hover {
  box-shadow: 0 7px 0 #3C45B8;
}
.prov-sq small {
  font: 800 12.5px/1 var(--display);
}
.acct-providers.sq.locked .prov-sq {
  opacity: .9;
  filter: saturate(.85);
}
.link-row .bi.g {
  background: #fff;
  color: #4285F4;
}
.link-row .bi.f {
  background: #1877F2;
  color: #fff;
}
.link-row .bi.d {
  background: #5865F2;
  color: #fff;
}
.soc-discord {
  background:
    linear-gradient(
      180deg,
      #6B77F5,
      #5865F2);
  box-shadow: 0 5px 0 #3C45B8, 0 10px 20px rgba(0, 0, 0, .3);
}
@media (orientation: landscape) and (max-height: 540px) and (min-height: 361px) {
  .acct-sheet:has(.acct-cols) {
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 16px;
  }
  .acct-cols {
    gap: 18px;
  }
  .acct-col {
    gap: 11px;
    align-content: space-between;
  }
  .acct-sheet .consent {
    gap: 8px;
  }
  .acct-sheet .ck {
    padding: 8px 10px;
  }
  .acct-sheet .acct-form {
    gap: 10px;
  }
  .acct-sheet .acct-links {
    margin-top: 2px;
  }
  .menu.lobby-wide .lobby {
    gap: 10px;
  }
  .menu.lobby-wide .seats {
    gap: 8px;
  }
  .menu.lobby-wide .seat.empty {
    min-height: 38px;
  }
  .menu.lobby-wide .lb-side {
    gap: 9px;
  }
  .menu.lobby-wide .room-set {
    gap: 8px;
    padding: 9px 11px;
  }
}
.cur-stage {
  gap: 28px;
  width: min(860px, calc(100vw - 32px));
}
.cur-screen {
  max-height: 60dvh;
}
@media (orientation: landscape) and (max-height: 540px) {
  .cur-stage {
    gap: 18px;
    padding-top: 28px;
    width: min(760px, calc(100vw - 150px));
  }
  .cur-screen {
    height: 58dvh;
    max-height: 58dvh;
  }
}
.jeton .ad-coin {
  margin-inline-start: auto;
  width: auto;
  min-height: 42px;
  padding: 4px 14px 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
}
.jeton .ad-coin svg {
  width: 20px;
  height: 20px;
}
.jeton .ad-coin span {
  display: grid;
  gap: 2px;
  text-align: start;
}
.jeton .ad-coin b {
  font: 800 15px/1 var(--display);
  color: inherit;
}
.jeton .ad-coin small {
  flex-basis: auto;
  color: inherit;
  opacity: .8;
  font: 800 11px/1 var(--body);
}
.jeton .ad-coin[disabled] {
  opacity: .75;
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu-panel.shop .jeton .ad-coin small {
    display: block;
  }
  .jeton .ad-coin {
    min-height: 34px;
    padding: 2px 10px 2px 8px;
  }
  .jeton .ad-coin b {
    font-size: 13px;
  }
}
.curtain.reward .cur-note b {
  color: #8CF0B4;
}
.prof-top small.prof-handle {
  display: block;
  color: var(--gold-hi);
  font-weight: 800;
}
.del-sheet .field > span {
  font: 700 12.5px/1.35 var(--body);
  color: var(--soft);
  text-transform: none;
  letter-spacing: 0;
}
.chat-list li.foreign {
  cursor: pointer;
}
.chat-trb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  padding: 2px 7px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: var(--soft);
  font: 800 11px/1.2 var(--body);
  cursor: pointer;
}
.chat-trb svg {
  width: 12px;
  height: 12px;
}
.chat-trb:hover {
  color: var(--gold-hi);
  background: rgba(245, 194, 74, .12);
}
.chat-list li.tr-busy .chat-trb {
  opacity: .7;
}
.chat-trt {
  margin-top: 4px !important;
  padding: 5px 8px;
  border-radius: 9px;
  background: rgba(88, 166, 255, .12);
  box-shadow: inset 2px 0 0 #58A6FF;
}
.chat-trt small {
  display: block;
  margin-bottom: 2px;
  color: #9CC8FF;
  font: 800 10px/1.1 var(--body);
  letter-spacing: .02em;
}
.prov-sq.setup {
  opacity: .68;
  filter: saturate(.65);
}
@media (max-width: 520px) {
  .link-actions {
    gap: 6px;
  }
  .link-row .unlink,
  .link-row .link-btn-provider {
    min-width: 70px;
    min-height: 34px;
    padding-inline: 10px !important;
    font-size: 12px;
  }
}
.bi.d.logo {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  padding: 3px;
  box-sizing: border-box;
}
.bi.d.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.prov-sq.d .bi.d.logo {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 1px 3px rgba(0, 0, 0, .12);
}
.prov-sq.d .bi.d.logo img {
  width: 88%;
  height: 88%;
}
.link-row .bi.d.logo {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.link-row .bi.d.logo img {
  width: 84%;
  height: 84%;
}
.soc-discord img {
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16);
}
.prof .main-col {
  gap: 10px;
}
.prof .av-pick {
  order: 2;
}
.prof .credit {
  order: 3;
}
.prof .links-col {
  order: initial;
}
@media (max-width: 1100px), (max-height: 620px) {
  .prof .acct-sheet:has(.acct-cols) {
    width: min(540px, calc(100vw - 20px));
    max-width: 540px;
  }
  .prof .acct-cols {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .prof .main-col {
    order: 0;
  }
  .prof .links-col {
    order: 1;
    gap: 8px;
  }
  .prof .links-col .menu-row2,
  .prof .links-col .menu-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .prof .links-col .btn {
    min-width: 0;
    padding-inline: 10px;
  }
}
@media (max-width: 700px), (orientation: portrait) {
  .prof .acct-cols {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .prof .main-col {
    order: 0;
    gap: 10px;
  }
  .prof .links-col {
    order: 1;
  }
  .prof .av-pick .av-opts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .prof .acct-sheet:has(.acct-cols) {
    width: min(420px, calc(100vw - 20px));
  }
  .prof .link-row {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px 9px;
  }
  .prof .link-row span b {
    font-size: 13px;
  }
  .prof .link-row span small {
    font-size: 11px;
  }
  .prof .credit {
    padding: 9px 10px;
  }
  .prof .links-note {
    font-size: 10.5px;
    line-height: 1.25;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .prof .acct-sheet:has(.acct-cols) {
    width: min(560px, calc(100vw - 18px));
  }
  .prof .links {
    gap: 5px;
  }
  .prof .link-row {
    padding-block: 6px;
  }
  .prof .links-note {
    font-size: 10px;
    line-height: 1.2;
  }
  .prof .links-col .btn {
    min-height: 36px;
    font-size: 12.5px;
  }
}
.premium-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #FFD76A;
  background:
    linear-gradient(
      100deg,
      #D89A16 0%,
      #FFF1A8 35%,
      #FFC13D 58%,
      #FFF6C8 78%,
      #D89A16 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(255, 193, 61, .24);
  animation: premiumShine 4.2s linear infinite;
}
@keyframes premiumShine {
  to {
    background-position: -220% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .premium-name {
    animation: none;
    background-position: 50% 0;
  }
}
.premium-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 17px;
  background:
    linear-gradient(
      135deg,
      rgba(89, 65, 21, .92),
      rgba(31, 45, 82, .94));
  box-shadow: inset 0 0 0 1.5px rgba(255, 211, 90, .35), 0 8px 20px rgba(0, 0, 0, .2);
}
.premium-card.active {
  background:
    linear-gradient(
      135deg,
      rgba(105, 70, 12, .96),
      rgba(57, 39, 10, .94));
  box-shadow: inset 0 0 0 1.5px rgba(255, 224, 128, .7), 0 0 24px rgba(245, 194, 74, .18);
}
.premium-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.premium-copy > b {
  font: 900 15px/1.15 var(--display);
  color: #FFE58A;
}
.premium-copy > small {
  font: 700 11.5px/1.35 var(--body);
  color: #F5EAC7;
}
.premium-card .btn {
  min-height: 38px;
  white-space: nowrap;
}
.premium-adfree {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font: 900 12px/1 var(--display);
  color: #4B3000;
  background:
    linear-gradient(
      180deg,
      #FFE78C,
      #F5C24A);
  box-shadow: 0 3px 0 #B9851E;
}
@media (max-width: 620px) {
  .premium-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .premium-card .btn {
    grid-column: 1/-1;
    width: 100%;
  }
  .premium-copy > small {
    font-size: 11px;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .premium-card {
    padding: 8px 10px;
    gap: 8px;
  }
  .premium-copy > b {
    font-size: 13px;
  }
  .premium-copy > small {
    font-size: 10.5px;
  }
  .premium-card .btn {
    min-height: 32px;
    font-size: 11px;
  }
}
.premium-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 2px 6px;
  border-radius: 999px;
  font: 900 8.5px/1 var(--display);
  letter-spacing: .035em;
  text-transform: uppercase;
  color: #4A3000;
  background:
    linear-gradient(
      180deg,
      #FFF2A7,
      #F5C24A);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 1px 3px rgba(0, 0, 0, .22);
  -webkit-text-fill-color: #4A3000;
}
.pcard .premium-tag {
  padding: 2px 5px;
  font-size: 7.5px;
  margin-inline-start: -2px;
}
.chat-list .chat-name {
  font: 800 12px/1.2 var(--display);
  color: inherit;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-list .chat-name.premium-name {
  font-weight: 900;
}
.chat-list .chat-premium {
  font-size: 7.5px;
  padding: 2px 5px;
}
.chat-peek .premium-tag {
  justify-self: start;
  margin: 1px 0 2px;
  font-size: 7.5px;
}
@media (orientation: landscape) and (max-height: 540px) {
  .pcard .premium-tag {
    font-size: 6.5px;
    padding: 2px 4px;
  }
  .chat-list .chat-premium {
    font-size: 6.8px;
  }
}
.sitem.premium-open {
  box-shadow: inset 0 0 0 1.5px rgba(255, 210, 86, .42), 0 5px 14px rgba(0, 0, 0, .14);
}
.sitem .premium-access {
  color: #5A3900;
  background:
    linear-gradient(
      180deg,
      #FFE996,
      #F5C24A);
  box-shadow: 0 1px 0 #B9851E;
}
.jeton .premium-adfree {
  margin-inline-start: auto;
  color: #FFE38A;
  background:
    linear-gradient(
      180deg,
      #244D8E,
      #17376D);
  border: 1.5px solid rgba(255, 224, 128, .72);
  box-shadow: 0 3px 0 #0E2450, 0 0 0 1px rgba(255, 255, 255, .06) inset;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
}
.premium-card .premium-copy > small {
  line-height: 1.35;
}
.premium-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  min-width: 190px;
}
.premium-actions .premium-choice {
  width: 100%;
  justify-content: center;
}
.premium-actions .premium-coins {
  color: #FFE58A;
  box-shadow: inset 0 0 0 1.5px rgba(255, 224, 128, .35), 0 4px 0 rgba(0, 0, 0, .2);
}
.premium-actions .premium-coins:disabled {
  color: rgba(255, 229, 138, .55);
  opacity: .7;
}
.premium-pass-left {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1.5px rgba(255, 224, 128, .28);
  color: #FFE58A;
  font: 900 12px/1 var(--display);
  white-space: nowrap;
}
@media (max-width: 620px) {
  .premium-actions {
    grid-column: 1/-1;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }
  .premium-pass-left {
    grid-column: 1/-1;
    width: 100%;
  }
}
@media (max-width: 430px) {
  .premium-actions {
    grid-template-columns: 1fr;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .premium-actions {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .premium-actions .premium-choice {
    min-height: 32px;
    padding-inline: 8px;
    font-size: 10.5px;
  }
  .premium-pass-left {
    min-height: 32px;
    font-size: 10.5px;
  }
}
.premium-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  padding: 14px 14px 13px;
}
.premium-card > .premium-actions,
.premium-card > .premium-manage,
.premium-card > .premium-pass-left {
  grid-column: 1/-1;
  width: 100%;
}
.premium-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.premium-actions .premium-choice {
  min-height: 42px;
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
  white-space: normal;
  line-height: 1.15;
}
.premium-actions .premium-cash-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  opacity: 1;
  color: #EAF1FF;
  background:
    linear-gradient(
      180deg,
      #294A7C,
      #1A315B);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), 0 4px 0 #102343;
}
.premium-actions .premium-cash-soon em {
  flex: none;
  padding: 3px 6px;
  border-radius: 999px;
  font: 900 9px/1 var(--display);
  font-style: normal;
  color: #493000;
  background: #F5C24A;
}
.premium-actions .premium-coins {
  color: #FFE58A;
  background:
    linear-gradient(
      180deg,
      #274879,
      #18325E);
  box-shadow: inset 0 0 0 1.5px rgba(255, 224, 128, .35), 0 4px 0 #102343;
}
.premium-actions .premium-coins:disabled {
  color: rgba(255, 229, 138, .58);
  background:
    linear-gradient(
      180deg,
      #263A5B,
      #1A2A48);
  opacity: .78;
}
@media (max-width: 430px) {
  .premium-actions {
    grid-template-columns: 1fr;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .premium-card {
    padding: 9px 10px;
    gap: 7px 9px;
  }
  .premium-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .premium-actions .premium-choice {
    min-height: 34px;
    font-size: 10.5px;
    padding-inline: 7px;
  }
  .premium-actions .premium-cash-soon em {
    font-size: 8px;
    padding: 2px 5px;
  }
}
.premium-card {
  grid-template-columns: minmax(0, 1fr);
}
.premium-card > .premium-copy {
  grid-column: 1/-1;
}
.premium-card > .premium-actions,
.premium-card > .premium-manage,
.premium-card > .premium-pass-left {
  grid-column: 1/-1;
}
.chat-panel.chat-local .chat-quick,
.chat-panel.chat-local .chat-form {
  display: none !important;
}
.pcard.premium-player {
  background:
    linear-gradient(
      145deg,
      rgba(84, 59, 13, .96),
      rgba(29, 45, 78, .96) 54%,
      rgba(65, 46, 12, .95));
  box-shadow:
    0 0 0 1.5px rgba(255, 224, 128, .72),
    0 0 22px rgba(245, 194, 74, .20),
    0 12px 26px rgba(0, 0, 0, .38),
    inset 0 1px 0 rgba(255, 247, 197, .22);
}
.pcard.premium-player::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      transparent 18%,
      rgba(255, 242, 173, .12) 36%,
      transparent 53%);
}
.pcard.premium-player.turn {
  box-shadow:
    0 0 0 2.5px #FFD76A,
    0 0 30px rgba(255, 205, 76, .42),
    0 14px 30px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 247, 197, .25);
}
.pcard.premium-player .av {
  box-shadow:
    0 0 0 2px #FFE58A,
    0 0 15px rgba(245, 194, 74, .42),
    inset 0 -5px 0 rgba(0, 0, 0, .18);
}
.sheet.acct-sheet.prof.premium-account,
.sheet.player-sheet.premium-player-sheet {
  background:
    linear-gradient(
      155deg,
      #203F72 0%,
      #142B55 54%,
      #3F310F 100%);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, .48),
    0 0 0 2px rgba(255, 218, 103, .72),
    0 0 34px rgba(245, 194, 74, .20),
    inset 0 1px 0 rgba(255, 246, 195, .16);
}
.premium-account .prof-top {
  padding: 10px 12px;
  border-radius: 16px;
  background:
    linear-gradient(
      105deg,
      rgba(245, 194, 74, .16),
      rgba(255, 255, 255, .035));
  box-shadow: inset 0 0 0 1px rgba(255, 224, 128, .28);
}
.premium-account .prof-top .avc.big,
.premium-player-sheet .pl-av {
  box-shadow:
    0 0 0 3px #FFE28A,
    0 0 20px rgba(245, 194, 74, .52),
    0 6px 14px rgba(0, 0, 0, .4);
}
.premium-player-sheet .pl-hero {
  background:
    radial-gradient(
      circle at 50% 32%,
      rgba(255, 222, 112, .25),
      rgba(77, 54, 9, .18) 42%,
      rgba(255, 255, 255, .025) 72%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 222, 112, .38), 0 0 24px rgba(245, 194, 74, .10);
}
.profile-premium-tag {
  margin-inline-start: 7px;
  vertical-align: 2px;
}
.premium-rank-row {
  background:
    linear-gradient(
      90deg,
      rgba(245, 194, 74, .17),
      rgba(255, 255, 255, .045)) !important;
  box-shadow: inset 0 0 0 1.5px rgba(255, 217, 104, .42) !important;
}
.premium-rank-row button > b {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.premium-rank-self {
  background:
    linear-gradient(
      135deg,
      rgba(107, 75, 15, .45),
      rgba(255, 255, 255, .055));
  box-shadow: inset 0 0 0 1.5px rgba(255, 218, 103, .68), 0 0 20px rgba(245, 194, 74, .15);
}
.premium-rank-card .pd-av {
  box-shadow:
    0 0 0 3px #FFE38A,
    0 0 18px rgba(255, 207, 75, .62),
    0 6px 14px rgba(0, 0, 0, .4);
}
.premium-rank-card > b {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
}
.rank-premium-tag {
  font-size: 7px;
  padding: 2px 5px;
}
.ranked-live-badge {
  position: fixed;
  z-index: 34;
  left: 50%;
  top: calc(12px + var(--safe-t));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  pointer-events: none;
  color: #4A3000;
  background:
    linear-gradient(
      180deg,
      #FFF0A0,
      #F5C24A);
  box-shadow:
    0 4px 0 #B17C14,
    0 8px 22px rgba(0, 0, 0, .28),
    0 0 18px rgba(245, 194, 74, .28);
  font: 900 12px/1 var(--display);
  letter-spacing: .045em;
  text-transform: uppercase;
}
.ranked-live-badge svg {
  width: 16px;
  height: 16px;
}
.ranked-leave-confirm {
  box-shadow:
    0 24px 55px rgba(0, 0, 0, .52),
    inset 0 0 0 2px rgba(255, 121, 91, .72),
    0 0 28px rgba(255, 107, 127, .18);
}
.ranked-leave-confirm .sheet-head h2 {
  color: #FFD08A;
}
@media (orientation: landscape) and (max-height: 540px) {
  .ranked-live-badge {
    top: calc(6px + var(--safe-t));
    min-height: 27px;
    padding: 0 9px;
    font-size: 10px;
  }
  .ranked-live-badge svg {
    width: 13px;
    height: 13px;
  }
  .rank-premium-tag {
    font-size: 6.2px;
    padding: 2px 4px;
  }
}
.game.entering .topbar {
  animation: hudFadeIn .7s ease .9s both !important;
}
@media (orientation: landscape) and (max-height: 540px) {
  .shop-preview-mode .menu-panel.shop {
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    grid-template-areas: "premium premium" "jeton back" "tabs tabs" "spv spv" "grid grid";
  }
  .menu-panel.shop .premium-card {
    grid-area: premium;
    margin: 0;
    padding: 7px 9px;
    gap: 5px;
  }
  .menu-panel.shop .premium-card .premium-copy > small {
    font-size: 9.8px;
    line-height: 1.25;
  }
  .menu-panel.shop .premium-card .premium-manage {
    min-height: 30px !important;
    font-size: 10.5px;
  }
}
.premium-manage-sheet {
  width: min(430px, calc(100vw - 24px));
  display: grid;
  gap: 12px;
}
.premium-manage-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(105, 70, 12, .72),
      rgba(28, 47, 86, .92));
  box-shadow: inset 0 0 0 1.5px rgba(255, 224, 128, .55);
}
.premium-manage-status > b {
  grid-column: 1/-1;
  color: #FFE58A;
  font: 900 18px/1.1 var(--display);
}
.premium-manage-status > span {
  color: var(--ink);
  font: 800 13px/1.25 var(--body);
}
.premium-manage-status > strong {
  justify-self: end;
  color: #FFE58A;
  font: 900 13px/1.1 var(--display);
}
.premium-manage-sheet > p {
  margin: 0;
  color: var(--soft);
  font: 700 13px/1.45 var(--body);
}
.premium-manage-note {
  display: block;
  color: var(--dim);
  font: 700 11.5px/1.35 var(--body);
  text-align: center;
}
@media (orientation: landscape) and (max-height: 540px) {
  .premium-manage-sheet {
    gap: 8px;
    width: min(500px, calc(100vw - 20px));
  }
  .premium-manage-status {
    padding: 9px 11px;
  }
  .premium-manage-status > b {
    font-size: 15px;
  }
  .premium-manage-sheet > p {
    font-size: 11.5px;
    line-height: 1.3;
  }
}
.premium-manage-sheet {
  gap: 10px;
}
.premium-manage-sheet > p,
.premium-manage-note {
  display: none !important;
}
.premium-manage-open {
  width: 100%;
  min-height: 44px;
}
.premium-manage-status {
  grid-template-columns: minmax(0, 1fr);
}
.premium-manage-status > strong {
  justify-self: start;
  line-height: 1.35;
}
.premium-manage-explain {
  color: var(--soft);
  font: 700 12px/1.4 var(--body);
}
.account-premium-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: 9px 0;
  min-width: 0;
}
.account-premium-row > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.account-premium-row b {
  font: 900 14px/1.2 var(--display);
}
.account-premium-row small {
  color: var(--soft);
  font: 700 12px/1.35 var(--body);
  overflow-wrap: anywhere;
}
.account-premium-row .btn {
  flex: none;
}
@media (orientation: landscape) and (max-height: 540px) {
  .shop-preview-mode .menu-panel.shop {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    grid-template-areas: "premium premium" "jeton back" "tabs tabs" "spv spv" "grid grid";
    gap: 5px;
    padding: 8px 10px;
  }
  .menu-panel.shop .premium-card {
    min-height: 38px;
    padding: 5px 8px;
    gap: 6px 8px;
    border-radius: 13px;
  }
  .menu-panel.shop .premium-card.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .menu-panel.shop .premium-card.active > .premium-copy {
    grid-column: 1;
    gap: 0;
  }
  .menu-panel.shop .premium-card.active > .premium-copy > small {
    display: none;
  }
  .menu-panel.shop .premium-card.active > .premium-manage {
    grid-column: 2;
    width: auto;
    min-height: 30px !important;
    padding: 0 11px;
    margin: 0;
    font-size: 10.5px;
  }
  .menu-panel.shop .premium-card:not(.active) > .premium-copy > small {
    display: none;
  }
  .menu-panel.shop .premium-card:not(.active) .premium-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .menu-panel.shop .premium-card:not(.active) .premium-choice {
    min-height: 29px !important;
    padding: 0 7px;
    font-size: 10px;
  }
  .menu-panel.shop .jeton {
    padding: 4px 8px;
    min-height: 34px;
    border-radius: 12px;
  }
  .menu-panel.shop .jeton .coin {
    width: 21px;
    height: 21px;
  }
  .menu-panel.shop .jeton > b {
    font-size: 19px;
  }
  .menu-panel.shop .jeton > span {
    font-size: 11.5px;
  }
  .menu-panel.shop .jeton .premium-adfree {
    min-height: 28px;
    padding: 0 9px;
    font-size: 10px;
  }
  .menu-panel.shop > [data-go=main] {
    min-height: 34px !important;
    padding: 0 13px;
  }
  .menu-panel.shop .stabs {
    padding: 3px;
    gap: 4px;
    border-radius: 12px;
  }
  .menu-panel.shop .stabs button {
    min-height: 31px;
    padding: 4px 5px;
    font-size: 12px;
    border-radius: 9px;
  }
  .menu-panel.shop .spv {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 6px;
    padding: 4px 7px;
    border-radius: 12px;
  }
  .menu-panel.shop .spvimg,
  .menu-panel.shop .spvsvg,
  .menu-panel.shop .spv3d {
    width: 40px;
    height: 40px;
  }
  .menu-panel.shop .spvinfo > b {
    font-size: 13px;
  }
  .menu-panel.shop .sact .btn {
    min-height: 30px !important;
    padding: 0 9px;
    font-size: 11px;
  }
  .menu-panel.shop .sgrid {
    gap: 6px;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    padding: 1px;
  }
  .menu-panel.shop .sitem {
    min-height: 0;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .shop-preview-mode .menu-panel.shop {
    gap: 6px;
    padding: 8px 10px;
  }
  .menu-panel.shop .sgrid {
    grid-template-columns: repeat(4, minmax(82px, 1fr));
    grid-auto-rows: minmax(104px, auto);
    gap: 7px;
    padding: 2px 2px 6px;
    align-content: start;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
  .menu-panel.shop .sitem {
    min-height: 104px;
    padding: 6px 5px 7px;
    gap: 3px;
    align-content: start;
    grid-template-rows: 54px minmax(14px, auto) 18px;
    border-radius: 13px;
    overflow: hidden;
  }
  .menu-panel.shop .sitem .sth {
    width: 58px;
    height: 54px;
  }
  .menu-panel.shop .sitem .sth img.cthumb {
    width: 52px;
    height: 52px;
    max-width: 52px;
    max-height: 52px;
  }
  .menu-panel.shop .sitem .sth img:not(.cthumb) {
    max-width: 58px;
    max-height: 45px;
  }
  .menu-panel.shop .sitem .sth svg {
    width: 48px;
    height: 48px;
  }
  .menu-panel.shop .sitem > b {
    width: 100%;
    min-width: 0;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .menu-panel.shop .sitem > em {
    align-self: end;
    justify-self: center;
    max-width: 100%;
    min-height: 17px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .menu-panel.shop .sitem > em.eq {
    color: #0B3D28;
    background: #73E3AA;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .18);
  }
  .menu-panel.shop .sitem > em.premium-access {
    color: #5A3900;
    background:
      linear-gradient(
        180deg,
        #FFE996,
        #F5C24A);
  }
  .menu-panel.shop .sitem .winl {
    grid-column: 1;
    width: 100%;
    margin-top: 1px;
    font-size: 8.5px;
    line-height: 1.1;
  }
  .menu-panel.shop .spv {
    min-height: 42px;
  }
  .menu-panel.shop .spvinfo {
    gap: 7px;
  }
  .menu-panel.shop .sact .btn {
    max-width: 150px;
    white-space: nowrap;
  }
}
@media (orientation: landscape) and (max-height: 430px) {
  .menu-panel.shop .premium-card {
    min-height: 34px;
    padding: 4px 7px;
  }
  .menu-panel.shop .premium-card.active > .premium-manage {
    min-height: 27px !important;
    padding: 0 9px;
    font-size: 9.5px;
  }
  .menu-panel.shop .jeton {
    min-height: 31px;
    padding: 3px 7px;
  }
  .menu-panel.shop > [data-go=main] {
    min-height: 31px !important;
  }
  .menu-panel.shop .stabs button {
    min-height: 28px;
    padding: 3px 5px;
    font-size: 11px;
  }
  .menu-panel.shop .spv {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 3px 6px;
    min-height: 37px;
  }
  .menu-panel.shop .spvimg,
  .menu-panel.shop .spvsvg,
  .menu-panel.shop .spv3d {
    width: 34px;
    height: 34px;
  }
  .menu-panel.shop .sact .btn {
    min-height: 27px !important;
    font-size: 10px;
  }
  .menu-panel.shop .sgrid {
    grid-auto-rows: minmax(98px, auto);
  }
  .menu-panel.shop .sitem {
    min-height: 98px;
    grid-template-rows: 49px minmax(13px, auto) 17px;
    padding: 5px 4px 6px;
  }
  .menu-panel.shop .sitem .sth {
    height: 49px;
  }
  .menu-panel.shop .sitem .sth img.cthumb {
    width: 47px;
    height: 47px;
    max-width: 47px;
    max-height: 47px;
  }
}
@media (orientation: landscape) and (max-height: 540px) and (pointer: coarse) {
  button,
  .btn,
  .icon-btn,
  [role=button] {
    min-width: 34px;
    min-height: 34px;
  }
}
@media (max-width: 1180px) {
  .menu.lobby-wide,
  .menu.join-wide {
    grid-template-columns: 1fr;
  }
  .menu.lobby-wide .hero,
  .menu.join-wide .hero {
    display: none;
  }
  .menu.lobby-wide .menu-panel,
  .menu.join-wide .menu-panel {
    width: min(100%, 940px);
    max-width: 940px;
    justify-self: center;
  }
  .lobby,
  .lb-head,
  .lb-body,
  .lb-side,
  .seats {
    min-width: 0;
  }
}
@media (orientation: landscape) and (max-height: 540px) and (pointer: coarse) {
  .menu-panel .seat-tools .btn,
  .menu-panel .rv-seg button,
  .menu-panel .room-set .seg button,
  .menu-panel .stepper button,
  .menu-panel .lb-copy,
  .menu-panel .lb-edit {
    min-width: 34px !important;
    min-height: 34px !important;
    height: auto !important;
  }
  .menu.lobby-wide .seat.empty {
    min-height: 40px;
  }
}
html.sim-touch button,
html.sim-touch .btn,
html.sim-touch .icon-btn,
html.sim-touch [role=button] {
  min-width: 34px !important;
  min-height: 34px !important;
}
@media (pointer: coarse) {
  button,
  .btn,
  .icon-btn,
  [role=button] {
    min-width: 34px;
    min-height: 34px;
  }
}
.btn-shop {
  min-width: 0;
  overflow: hidden;
  justify-content: space-between;
  gap: 8px;
}
.btn-shop-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42em;
  min-width: 0;
  white-space: nowrap;
  flex: 1 1 auto;
}
.btn-shop-main > svg {
  flex: 0 0 auto;
}
.shop-balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .28em;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 46%;
  padding: .28em .5em;
  border-radius: 999px;
  background: rgba(245, 194, 74, .16);
  box-shadow: inset 0 0 0 1px rgba(245, 194, 74, .38);
  color: var(--gold-hi);
  font-size: .78em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.shop-balance .coin {
  width: 1.08em;
  height: 1.08em;
  flex: 0 0 auto;
}
.shop-balance b {
  font: 800 1em/1 var(--display);
  min-width: 0;
  white-space: nowrap;
}
@media (max-width: 520px), (orientation: landscape) and (max-height: 540px) {
  .btn-shop {
    gap: 5px;
    padding-inline: 9px;
  }
  .btn-shop-main {
    gap: .3em;
  }
  .shop-balance {
    max-width: 43%;
    padding: .24em .4em;
    font-size: .72em;
  }
}
.sheet > .menu-row {
  margin-top: 14px;
}
.name-ask {
  display: grid;
  gap: 14px;
}
.name-ask > .sheet-head {
  margin-bottom: 0;
}
.name-ask > .menu-row {
  margin-top: 0;
}
.name-ask .code-row {
  gap: 10px;
}
.menu-panel > .btn-quick {
  margin-bottom: 2px;
}
@media (max-width: 1180px) {
}
@media (max-width: 760px), (orientation: landscape) and (max-height: 430px) {
}
@media (min-width: 1900px) and (min-height: 1000px) and (pointer: fine) {
  .menu {
    gap: clamp(24px, min(1.25vw, 2.22dvh), 48px);
    padding-top: calc(clamp(24px, min(1.25vw, 2.22dvh), 48px) + var(--safe-t));
    padding-bottom: calc(clamp(24px, min(1.25vw, 2.22dvh), 48px) + var(--safe-b));
    padding-left: clamp(72px, min(3.75vw, 6.67dvh), 144px);
    padding-right: clamp(72px, min(3.75vw, 6.67dvh), 144px);
  }
  .menu-panel {
    width: min(26vw, 46dvh);
    max-width: none;
    padding: clamp(26px, min(1.35vw, 2.4dvh), 52px);
    gap: clamp(14px, min(.73vw, 1.3dvh), 28px);
    border-radius: clamp(28px, min(1.46vw, 2.6dvh), 56px);
  }
  .menu-panel h2 {
    font-size: clamp(24px, min(1.25vw, 2.22dvh), 48px);
  }
  .menu.wide .menu-panel {
    width: min(35vw, 63dvh);
    max-width: none;
  }
  .menu.lobby-wide .menu-panel,
  .menu.join-wide .menu-panel {
    width: min(45vw, 80dvh);
    max-width: none;
  }
  .menu.ranked-mode .menu-panel {
    width: min(61vw, 107dvh) !important;
    max-width: none !important;
    padding: clamp(20px, min(1.15vw, 2dvh), 44px);
  }
  .hero-logo {
    width: min(16vw, 28dvh);
    max-width: none;
  }
  .wordmark {
    font-size: clamp(96px, min(5vw, 9dvh), 192px);
  }
  .tagline {
    font-size: clamp(18px, min(.95vw, 1.7dvh), 36px);
  }
  .menu-panel .btn,
  .sheet .btn {
    min-height: clamp(52px, min(2.71vw, 4.82dvh), 104px);
    font-size: clamp(18px, min(.94vw, 1.67dvh), 36px);
    padding-inline: clamp(24px, min(1.25vw, 2.22dvh), 48px);
    border-radius: clamp(18px, min(.94vw, 1.67dvh), 36px);
  }
  .menu-panel .btn-quick {
    min-height: clamp(62px, min(3.23vw, 5.74dvh), 124px) !important;
    font-size: clamp(21px, min(1.1vw, 1.95dvh), 42px) !important;
  }
  .menu-row,
  .menu-row2,
  .menu-row3 {
    gap: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .menu-sep {
    margin-block: clamp(2px, min(.2vw, .36dvh), 8px);
  }
  .menu-foot {
    font-size: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .acct-chip {
    min-height: clamp(36px, min(1.88vw, 3.33dvh), 72px);
    padding-inline: clamp(8px, min(.63vw, 1.11dvh), 24px);
    font-size: clamp(13px, min(.68vw, 1.2dvh), 26px);
  }
  .icon-btn {
    width: clamp(46px, min(2.4vw, 4.26dvh), 92px);
    height: clamp(46px, min(2.4vw, 4.26dvh), 92px);
    border-radius: clamp(15px, min(.78vw, 1.39dvh), 30px);
  }
  .icon-btn svg {
    width: clamp(22px, min(1.15vw, 2.04dvh), 44px);
    height: clamp(22px, min(1.15vw, 2.04dvh), 44px);
  }
  .text-in {
    min-height: clamp(50px, min(2.6vw, 4.63dvh), 100px);
    padding-inline: clamp(16px, min(.83vw, 1.48dvh), 32px);
    font-size: clamp(18px, min(.94vw, 1.67dvh), 36px);
    border-radius: clamp(14px, min(.73vw, 1.3dvh), 28px);
  }
  .field > span {
    font-size: clamp(13px, min(.68vw, 1.2dvh), 26px);
  }
  .sheet {
    width: min(32vw, 58dvh);
    max-width: none;
    padding: clamp(22px, min(1.15vw, 2.04dvh), 44px);
    border-radius: clamp(26px, min(1.35vw, 2.4dvh), 52px);
  }
  .sheet.auction {
    width: min(34vw, 60dvh);
    max-width: none;
  }
  .sheet.auction .abtns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .sheet.auction .abtns .btn {
    min-width: 0;
    padding-inline: clamp(8px, min(.52vw, .93dvh), 20px);
    font-size: clamp(15px, min(.78vw, 1.39dvh), 30px);
  }
  .sheet.trade {
    width: min(44vw, 78dvh);
    max-width: none;
  }
  .sheet-head {
    gap: clamp(12px, min(.63vw, 1.11dvh), 24px);
    margin-bottom: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .sheet-head h2 {
    font-size: clamp(26px, min(1.35vw, 2.4dvh), 52px);
  }
  .sheet > .menu-row {
    margin-top: clamp(14px, min(.73vw, 1.3dvh), 28px);
  }
  .name-ask {
    gap: clamp(14px, min(.73vw, 1.3dvh), 28px);
  }
  .name-ask > .sheet-head,
  .name-ask > .menu-row {
    margin-top: 0;
    margin-bottom: 0;
  }
  .name-ask .code-row {
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
  }
  .name-ask .code-row .btn {
    width: clamp(52px, min(2.71vw, 4.82dvh), 104px);
    padding: 0;
  }
  .name-ask .code-row .btn svg {
    width: clamp(22px, min(1.15vw, 2.04dvh), 44px);
    height: clamp(22px, min(1.15vw, 2.04dvh), 44px);
  }
  .name-ask .text-in {
    font-size: clamp(18px, min(.94vw, 1.67dvh), 36px);
  }
  .brand {
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
    padding: clamp(6px, min(.31vw, .56dvh), 12px) clamp(14px, min(.73vw, 1.3dvh), 28px) clamp(6px, min(.31vw, .56dvh), 12px) clamp(6px, min(.31vw, .56dvh), 12px);
    border-radius: clamp(18px, min(.94vw, 1.67dvh), 36px);
  }
  .brand img {
    width: clamp(40px, min(2.08vw, 3.7dvh), 80px);
    height: clamp(40px, min(2.08vw, 3.7dvh), 80px);
  }
  .brand b {
    font-size: clamp(20px, min(1.04vw, 1.85dvh), 40px);
  }
  .brand small {
    font-size: clamp(11px, min(.57vw, 1.02dvh), 22px);
  }
  .topbar {
    top: calc(clamp(12px, min(.63vw, 1.11dvh), 24px) + var(--safe-t));
    left: clamp(14px, min(.73vw, 1.3dvh), 28px);
    right: clamp(14px, min(.73vw, 1.3dvh), 28px);
    gap: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .top-actions {
    gap: clamp(8px, min(.42vw, .74dvh), 16px);
  }
  .pcard {
    width: min(13vw, 23dvh);
    min-width: min(10.2vw, 18.2dvh);
    gap: clamp(4px, min(.21vw, .37dvh), 8px) clamp(12px, min(.63vw, 1.11dvh), 24px);
    padding: clamp(12px, min(.63vw, 1.11dvh), 24px) clamp(14px, min(.73vw, 1.3dvh), 28px);
    border-radius: clamp(20px, min(1.04vw, 1.85dvh), 40px);
  }
  .pcard .av {
    width: clamp(50px, min(2.6vw, 4.63dvh), 100px);
    height: clamp(50px, min(2.6vw, 4.63dvh), 100px);
  }
  .pcard .pname {
    font-size: clamp(15px, min(.78vw, 1.39dvh), 30px);
    gap: clamp(8px, min(.42vw, .74dvh), 16px);
  }
  .pcard .badge {
    font-size: clamp(10px, min(.52vw, .93dvh), 20px);
    padding: clamp(4px, min(.21vw, .37dvh), 8px) clamp(7px, min(.36vw, .65dvh), 14px);
  }
  .pcard .bal {
    font-size: clamp(24px, min(1.25vw, 2.22dvh), 48px);
  }
  .pcard .meta {
    font-size: clamp(12px, min(.63vw, 1.11dvh), 24px);
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
  }
  .pc-0,
  .pc-2,
  .pc-4 {
    left: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .pc-1,
  .pc-3,
  .pc-5 {
    right: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .pc-0,
  .pc-1 {
    top: clamp(88px, min(4.58vw, 8.15dvh), 176px);
  }
  .pc-2,
  .pc-3 {
    bottom: calc(clamp(20px, min(1.04vw, 1.85dvh), 40px) + var(--safe-b));
  }
  .dock {
    width: min(29.2vw, 52dvh);
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
    bottom: calc(clamp(18px, min(.94vw, 1.67dvh), 36px) + var(--safe-b));
  }
  .dock-main {
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
    padding: clamp(10px, min(.52vw, .93dvh), 20px);
    border-radius: clamp(24px, min(1.25vw, 2.22dvh), 48px);
  }
  .dock-main .who {
    gap: clamp(8px, min(.42vw, .74dvh), 16px);
    font-size: clamp(14px, min(.73vw, 1.3dvh), 28px);
  }
  .dock-main .btn-roll {
    min-width: min(10.4vw, 18.5dvh);
    min-height: clamp(60px, min(3.13vw, 5.56dvh), 120px);
    font-size: clamp(22px, min(1.15vw, 2.04dvh), 44px);
  }
  .feed div {
    font-size: clamp(13px, min(.68vw, 1.2dvh), 26px);
    padding: clamp(6px, min(.31vw, .56dvh), 12px) clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .hint {
    font-size: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .chat-panel {
    width: min(18.75vw, 33.3dvh);
    height: min(48.1dvh, 27vw);
    min-height: 280px;
    border-radius: clamp(22px, min(1.15vw, 2.04dvh), 44px);
  }
  .menu-social {
    gap: clamp(8px, min(.42vw, .74dvh), 16px);
  }
  .soc-btn {
    height: clamp(44px, min(2.29vw, 4.07dvh), 88px);
    padding-inline: clamp(11px, min(.73vw, 1.3dvh), 28px);
    font-size: clamp(14px, min(.73vw, 1.3dvh), 28px);
    border-radius: clamp(15px, min(.78vw, 1.39dvh), 30px);
  }
  .soc-btn svg,
  .soc-btn img {
    width: clamp(21px, min(1.09vw, 1.94dvh), 42px);
    height: clamp(21px, min(1.09vw, 1.94dvh), 42px);
  }
}
@media (min-width: 1900px) and (min-height: 1000px) and (pointer: fine) {
  body {
    font-size: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .overlay {
    padding: calc(clamp(16px, min(.83vw, 1.48dvh), 32px) + var(--safe-t)) clamp(16px, min(.83vw, 1.48dvh), 32px) calc(clamp(16px, min(.83vw, 1.48dvh), 32px) + var(--safe-b));
  }
  .shop-head {
    margin-top: clamp(-12px, max(-.31vw, -.56dvh), -6px);
  }
  .shop-awning {
    width: min(15.6vw, 27.8dvh);
    height: clamp(22px, min(1.15vw, 2.04dvh), 44px);
  }
  .shop-head h2 {
    margin-top: clamp(8px, min(.42vw, .74dvh), 16px);
  }
  .premium-card {
    gap: clamp(10px, min(.63vw, 1.11dvh), 24px);
    padding: clamp(14px, min(.73vw, 1.3dvh), 28px);
    border-radius: clamp(17px, min(.89vw, 1.57dvh), 34px);
  }
  .premium-copy {
    gap: clamp(3px, min(.16vw, .28dvh), 6px);
  }
  .premium-copy > b {
    font-size: clamp(15px, min(.78vw, 1.39dvh), 30px);
  }
  .premium-copy > small {
    font-size: clamp(11.5px, min(.6vw, 1.06dvh), 23px);
  }
  .premium-actions {
    gap: clamp(7px, min(.36vw, .65dvh), 14px);
    min-width: min(9.9vw, 17.6dvh);
  }
  .jeton {
    gap: clamp(6px, min(.42vw, .74dvh), 16px);
    padding: clamp(10px, min(.52vw, .93dvh), 20px) clamp(14px, min(.73vw, 1.3dvh), 28px);
    border-radius: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .jeton .coin {
    width: clamp(26px, min(1.35vw, 2.4dvh), 52px);
    height: clamp(26px, min(1.35vw, 2.4dvh), 52px);
  }
  .jeton b {
    font-size: clamp(24px, min(1.25vw, 2.22dvh), 48px);
  }
  .jeton span {
    font-size: clamp(14px, min(.73vw, 1.3dvh), 28px);
  }
  .jeton .ad-coin {
    min-height: clamp(42px, min(2.19vw, 3.89dvh), 84px);
    padding: clamp(4px, min(.21vw, .37dvh), 8px) clamp(14px, min(.73vw, 1.3dvh), 28px);
    gap: clamp(8px, min(.42vw, .74dvh), 16px);
    border-radius: clamp(14px, min(.73vw, 1.3dvh), 28px);
  }
  .jeton .ad-coin svg {
    width: clamp(20px, min(1.04vw, 1.85dvh), 40px);
    height: clamp(20px, min(1.04vw, 1.85dvh), 40px);
  }
  .jeton .ad-coin b {
    font-size: clamp(15px, min(.78vw, 1.39dvh), 30px);
  }
  .jeton .ad-coin small {
    font-size: clamp(11px, min(.57vw, 1.02dvh), 22px);
  }
  .stabs {
    gap: clamp(6px, min(.31vw, .56dvh), 12px);
    padding: clamp(4px, min(.21vw, .37dvh), 8px);
    border-radius: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .stabs button {
    min-height: clamp(40px, min(2.08vw, 3.7dvh), 80px);
    border-radius: clamp(12px, min(.63vw, 1.11dvh), 24px);
    font-size: clamp(15px, min(.78vw, 1.39dvh), 30px);
  }
  .spv {
    grid-template-columns: min(6.77vw, 12dvh) minmax(0, 1fr);
    gap: clamp(14px, min(.73vw, 1.3dvh), 28px);
    padding: clamp(12px, min(.63vw, 1.11dvh), 24px);
    border-radius: clamp(18px, min(.94vw, 1.67dvh), 36px);
  }
  .spv3d,
  .spvsvg {
    width: min(6.77vw, 12dvh);
    height: min(6.77vw, 12dvh);
  }
  .spvimg {
    width: min(6.77vw, 12dvh);
  }
  .spvinfo {
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
  }
  .spvinfo > b {
    font-size: clamp(22px, min(1.15vw, 2.04dvh), 44px);
  }
  .sact {
    gap: clamp(6px, min(.31vw, .56dvh), 12px);
  }
  .sgrid {
    grid-template-columns: repeat(auto-fill, minmax(min(5vw, 8.9dvh), 1fr));
    gap: clamp(8px, min(.42vw, .74dvh), 16px);
    padding: clamp(2px, min(.1vw, .19dvh), 4px);
  }
  .sitem {
    gap: clamp(4px, min(.21vw, .37dvh), 8px);
    padding: clamp(10px, min(.52vw, .93dvh), 20px) clamp(6px, min(.31vw, .56dvh), 12px);
    border-radius: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .sitem .sth {
    width: clamp(64px, min(3.33vw, 5.93dvh), 128px);
    height: clamp(62px, min(3.23vw, 5.74dvh), 124px);
  }
  .sitem .sth img.cthumb {
    width: clamp(60px, min(3.13vw, 5.56dvh), 120px);
    height: clamp(60px, min(3.13vw, 5.56dvh), 120px);
    max-width: none;
    max-height: none;
  }
  .sitem .sth img:not(.cthumb) {
    max-width: clamp(64px, min(3.33vw, 5.93dvh), 128px);
    max-height: clamp(48px, min(2.5vw, 4.44dvh), 96px);
  }
  .sitem .sth svg {
    width: clamp(48px, min(2.5vw, 4.44dvh), 96px);
    height: clamp(48px, min(2.5vw, 4.44dvh), 96px);
  }
  .sitem b {
    font-size: clamp(13px, min(.68vw, 1.2dvh), 26px);
  }
  .sitem em {
    font-size: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .sitem .winl {
    font-size: clamp(10px, min(.52vw, .93dvh), 20px);
  }
  .shelp {
    font-size: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .lobby {
    gap: clamp(14px, min(.73vw, 1.3dvh), 28px);
  }
  .lb-head {
    gap: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .lb-code {
    gap: clamp(8px, min(.42vw, .74dvh), 16px);
    padding: clamp(8px, min(.42vw, .74dvh), 16px) clamp(12px, min(.63vw, 1.11dvh), 24px);
    border-radius: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .lb-code small {
    font-size: clamp(10px, min(.52vw, .93dvh), 20px);
  }
  .lb-code b {
    font-size: clamp(26px, min(1.35vw, 2.4dvh), 52px);
  }
  .lb-body {
    gap: clamp(14px, min(.73vw, 1.3dvh), 28px);
  }
  .seats {
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
  }
  .seat {
    gap: clamp(6px, min(.31vw, .56dvh), 12px);
    padding: clamp(10px, min(.52vw, .93dvh), 20px) clamp(8px, min(.42vw, .74dvh), 16px);
    border-radius: clamp(18px, min(.94vw, 1.67dvh), 36px);
    min-height: min(8.75vw, 15.56dvh);
  }
  .seat img {
    width: min(4.06vw, 7.22dvh);
    height: min(4.06vw, 7.22dvh);
  }
  .seat-info {
    gap: clamp(4px, min(.21vw, .37dvh), 8px);
  }
  .seat-info b {
    font-size: clamp(15px, min(.78vw, 1.39dvh), 30px);
  }
  .seat-info b small,
  .seat-info em,
  .seat-info small {
    font-size: clamp(11px, min(.57vw, 1.02dvh), 22px);
  }
  .seat-tools {
    gap: clamp(6px, min(.31vw, .56dvh), 12px);
  }
  .lb-side {
    gap: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .room-set {
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
    padding: clamp(12px, min(.63vw, 1.11dvh), 24px);
    border-radius: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .room-set h3 {
    font-size: clamp(15px, min(.78vw, 1.39dvh), 30px);
  }
  .room-set .rs-row > span {
    font-size: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .room-set .rs-row > b {
    font-size: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .rv-seg button,
  .room-set .seg button {
    font-size: clamp(13px, min(.68vw, 1.2dvh), 26px);
    padding: clamp(8px, min(.42vw, .74dvh), 16px) clamp(10px, min(.52vw, .93dvh), 20px);
  }
  .lb-invite {
    gap: clamp(12px, min(.63vw, 1.11dvh), 24px);
    padding: clamp(14px, min(.73vw, 1.3dvh), 28px) clamp(16px, min(.83vw, 1.48dvh), 32px);
    border-radius: clamp(18px, min(.94vw, 1.67dvh), 36px);
  }
  .lb-invite .lbi-text b {
    font-size: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .lb-invite .lbi-text small {
    font-size: clamp(12.5px, min(.65vw, 1.16dvh), 25px);
  }
  .rk-page {
    gap: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .rk-top {
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
  }
  .rk-top small {
    font-size: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .rk-body {
    gap: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .rk-left {
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
  }
  .podium {
    gap: clamp(8px, min(.42vw, .74dvh), 16px);
    padding-top: clamp(6px, min(.31vw, .56dvh), 12px);
  }
  .pd-pawn {
    height: min(5.73vw, 10.19dvh);
  }
  .pd1 .pd-pawn {
    height: min(7.29vw, 12.96dvh);
  }
  .pd > b {
    font-size: clamp(15px, min(.78vw, 1.39dvh), 30px);
  }
  .pd1 > b {
    font-size: clamp(17px, min(.89vw, 1.57dvh), 34px);
  }
  .pd-elo em {
    font-size: clamp(13px, min(.68vw, 1.2dvh), 26px);
  }
  .pd-step i {
    font-size: clamp(22px, min(1.15vw, 2.04dvh), 44px);
  }
  .pd1 .pd-step {
    height: min(3.33vw, 5.93dvh);
  }
  .pd2 .pd-step {
    height: min(2.4vw, 4.26dvh);
  }
  .pd3 .pd-step {
    height: min(1.77vw, 3.15dvh);
  }
  .rk-me {
    gap: clamp(8px, min(.42vw, .74dvh), 16px);
    padding: clamp(10px, min(.52vw, .93dvh), 20px) clamp(12px, min(.63vw, 1.11dvh), 24px);
    border-radius: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .rk-me-top {
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
  }
  .rk-me-top img,
  .rk-me-top .av-dot {
    width: clamp(48px, min(2.5vw, 4.44dvh), 96px);
    height: clamp(48px, min(2.5vw, 4.44dvh), 96px);
  }
  .rk-me-top b {
    font-size: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .rk-me-top small {
    font-size: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .me-elo b {
    font-size: clamp(20px, min(1.04vw, 1.85dvh), 40px);
  }
  .board {
    gap: clamp(4px, min(.21vw, .37dvh), 8px);
  }
  .board li button {
    grid-template-columns: clamp(30px, min(1.56vw, 2.78dvh), 60px) clamp(32px, min(1.67vw, 2.96dvh), 64px) minmax(0, 1fr) auto auto;
    gap: clamp(8px, min(.42vw, .74dvh), 16px);
    padding: clamp(5px, min(.26vw, .46dvh), 10px) clamp(10px, min(.52vw, .93dvh), 20px);
    border-radius: clamp(12px, min(.63vw, 1.11dvh), 24px);
    font-size: clamp(13px, min(.68vw, 1.2dvh), 26px);
  }
  .b-pawn {
    width: clamp(32px, min(1.67vw, 2.96dvh), 64px);
    height: clamp(32px, min(1.67vw, 2.96dvh), 64px);
  }
  .player-sheet {
    width: min(37.5vw, 66.7dvh);
    max-width: none;
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
  }
  .pl-main {
    gap: clamp(14px, min(.73vw, 1.3dvh), 28px);
  }
  .pl-hero {
    gap: clamp(6px, min(.31vw, .56dvh), 12px);
    padding: clamp(12px, min(.63vw, 1.11dvh), 24px);
    border-radius: clamp(18px, min(.94vw, 1.67dvh), 36px);
  }
  .pl-pawn {
    height: min(8.85vw, 15.74dvh);
  }
  .pl-name,
  .pl-rank b {
    font-size: clamp(22px, min(1.15vw, 2.04dvh), 44px);
  }
  .pl-stats {
    gap: clamp(6px, min(.31vw, .56dvh), 12px);
  }
  .pl-stats > div {
    padding: clamp(8px, min(.42vw, .74dvh), 16px) clamp(10px, min(.52vw, .93dvh), 20px);
    border-radius: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .pl-stats small {
    font-size: clamp(11px, min(.57vw, 1.02dvh), 22px);
  }
  .pl-stats b {
    font-size: clamp(15px, min(.78vw, 1.39dvh), 30px);
  }
  .pl-gear {
    gap: clamp(6px, min(.31vw, .56dvh), 12px);
  }
  .pl-gear img,
  .pl-gear svg {
    width: clamp(40px, min(2.08vw, 3.7dvh), 80px);
    height: clamp(40px, min(2.08vw, 3.7dvh), 80px);
  }
  .pl-gear small {
    font-size: clamp(10px, min(.52vw, .93dvh), 20px);
  }
  .pl-gear b {
    font-size: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .kcard {
    width: min(17.7vw, 31.5dvh);
    max-width: none;
    padding: clamp(12px, min(.63vw, 1.11dvh), 24px);
    border-radius: clamp(26px, min(1.35vw, 2.4dvh), 52px);
  }
  .kcard .head {
    padding: clamp(12px, min(.63vw, 1.11dvh), 24px) clamp(14px, min(.73vw, 1.3dvh), 28px);
    border-radius: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .kcard .head small {
    font-size: clamp(11px, min(.57vw, 1.02dvh), 22px);
  }
  .kcard .head h3 {
    font-size: clamp(30px, min(1.56vw, 2.78dvh), 60px);
  }
  .kcard .tag,
  .kcard table {
    font-size: clamp(13px, min(.68vw, 1.2dvh), 26px);
  }
  .kcard td:last-child {
    font-size: clamp(15px, min(.78vw, 1.39dvh), 30px);
  }
  .kcard .price b {
    font-size: clamp(24px, min(1.25vw, 2.22dvh), 48px);
  }
  .kcard .actions {
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
    margin-top: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  html.sim-touch .menu-panel.shop .sact .btn {
    min-width: 34px !important;
    min-height: 34px !important;
    height: auto !important;
  }
}
@media (orientation: landscape) and (max-height: 540px) and (pointer: coarse) {
  .menu-panel.shop .sact .btn {
    min-width: 34px !important;
    min-height: 34px !important;
    height: auto !important;
  }
}
@media (orientation: portrait) and (min-width: 601px) and (max-width: 860px) {
  .menu.shop-preview-mode {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 30dvh) minmax(0, 1fr);
    align-content: stretch;
    align-items: stretch;
  }
  .shop-live-hero {
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }
  .shop-preview-mode .menu-panel.shop {
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    align-self: stretch;
  }
}
@media (min-width: 1181px) and (max-height: 800px) and (orientation: landscape) {
  .menu.lobby-wide .menu-panel {
    max-height: calc(100dvh - 32px - var(--safe-t) - var(--safe-b));
    overflow: hidden;
  }
}
.menu,
.overlay,
.menu-panel,
.sheet,
.tlist,
.dlist,
.wz .receipt,
.sgrid,
.overlay.side .sheet.trade,
.device-fallback,
.shop-preview-mode .menu-panel.shop,
.kcard.corner .cscroll,
.chat-list,
.chat-quick,
.room-list,
.board,
.legal-body,
.menu.lobby-wide .seats {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.menu::-webkit-scrollbar,
.overlay::-webkit-scrollbar,
.menu-panel::-webkit-scrollbar,
.sheet::-webkit-scrollbar,
.tlist::-webkit-scrollbar,
.dlist::-webkit-scrollbar,
.wz .receipt::-webkit-scrollbar,
.sgrid::-webkit-scrollbar,
.overlay.side .sheet.trade::-webkit-scrollbar,
.device-fallback::-webkit-scrollbar,
.shop-preview-mode .menu-panel.shop::-webkit-scrollbar,
.kcard.corner .cscroll::-webkit-scrollbar,
.chat-list::-webkit-scrollbar,
.chat-quick::-webkit-scrollbar,
.room-list::-webkit-scrollbar,
.board::-webkit-scrollbar,
.legal-body::-webkit-scrollbar,
.menu.lobby-wide .seats::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.lb-side-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
}
.lb-side-top > .field {
  min-width: 0;
}
.lb-chat-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
  margin: 0;
}
.lb-chat-slot .chat-btn {
  position: relative !important;
  inset: auto !important;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  color: #2A1A00;
  background:
    linear-gradient(
      180deg,
      var(--gold-hi),
      var(--gold));
  box-shadow: 0 4px 0 var(--gold-deep), 0 9px 18px rgba(0, 0, 0, .28);
}
.lb-chat-slot .chat-btn svg {
  width: 23px;
  height: 23px;
}
.lb-chat-slot .chat-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.lb-chat-slot .chat-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--gold-deep), 0 5px 10px rgba(0, 0, 0, .24);
}
.lb-title .lb-edit {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 13px;
  color: var(--gold-hi);
  background: rgba(10, 31, 72, .72);
  box-shadow: inset 0 0 0 1.5px rgba(245, 194, 74, .55), 0 5px 12px rgba(0, 0, 0, .22);
}
.lb-title .lb-edit svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.35;
}
.lb-title .lb-edit:hover {
  background: rgba(245, 194, 74, .16);
  box-shadow: inset 0 0 0 2px rgba(245, 194, 74, .82), 0 6px 14px rgba(0, 0, 0, .25);
}
@media (orientation: landscape) and (max-height: 540px) {
  .lb-side-top {
    gap: 6px;
    align-items: center;
  }
  .lb-chat-slot {
    min-height: 38px;
    margin: 0;
  }
  .lb-chat-slot .chat-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 12px;
  }
  .lb-chat-slot .chat-btn svg {
    width: 19px;
    height: 19px;
  }
  .lb-title .lb-edit {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 11px;
  }
  .lb-title .lb-edit svg {
    width: 17px;
    height: 17px;
  }
}
@media (min-width: 1900px) and (min-height: 1000px) and (pointer: fine) {
  .lb-chat-slot {
    min-height: clamp(48px, min(2.5vw, 4.44dvh), 96px);
  }
  .lb-chat-slot .chat-btn {
    width: clamp(48px, min(2.5vw, 4.44dvh), 96px);
    height: clamp(48px, min(2.5vw, 4.44dvh), 96px);
    min-width: clamp(48px, min(2.5vw, 4.44dvh), 96px);
    min-height: clamp(48px, min(2.5vw, 4.44dvh), 96px);
    border-radius: clamp(16px, min(.83vw, 1.48dvh), 32px);
  }
  .lb-chat-slot .chat-btn svg {
    width: clamp(23px, min(1.2vw, 2.13dvh), 46px);
    height: clamp(23px, min(1.2vw, 2.13dvh), 46px);
  }
  .lb-title .lb-edit {
    width: clamp(42px, min(2.19vw, 3.89dvh), 84px);
    height: clamp(42px, min(2.19vw, 3.89dvh), 84px);
    min-width: clamp(42px, min(2.19vw, 3.89dvh), 84px);
    min-height: clamp(42px, min(2.19vw, 3.89dvh), 84px);
    border-radius: clamp(13px, min(.68vw, 1.2dvh), 26px);
  }
  .lb-title .lb-edit svg {
    width: clamp(19px, min(.99vw, 1.76dvh), 38px);
    height: clamp(19px, min(.99vw, 1.76dvh), 38px);
  }
}
@media (min-width: 1181px) and (max-width: 1500px) and (max-height: 800px) and (orientation: landscape) {
  .menu.lobby-wide .menu-panel {
    overflow: hidden;
  }
  .menu.lobby-wide .lobby {
    min-height: 0;
  }
  .menu.lobby-wide .lb-body {
    min-height: 0;
  }
  .menu.lobby-wide .lb-side-top {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
  }
  .menu.lobby-wide .lb-chat-slot {
    min-height: 42px;
  }
  .menu.lobby-wide .lb-chat-slot .chat-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 13px;
  }
  .menu.lobby-wide .lb-chat-slot .chat-btn svg {
    width: 20px;
    height: 20px;
  }
}
.chat-panel.chat-panel-lobby-popover,
.chat-panel.chat-panel-game-popover {
  position: fixed;
  z-index: 70;
}
.menu.lobby-wide .seat.bot {
  overflow: hidden;
}
.menu.lobby-wide .seat.bot .seat-tools {
  min-width: 0;
  max-width: 100%;
}
.menu.lobby-wide .seat.bot .seat-tools .btn {
  max-width: 100%;
  box-sizing: border-box;
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu.lobby-wide .seat.bot {
    grid-template-columns: 32px minmax(0, 1fr) 74px;
  }
  .menu.lobby-wide .seat.bot .seat-info {
    grid-column: 2;
    min-width: 0;
    padding-inline-end: 0;
  }
  .menu.lobby-wide .seat.bot .seat-tools {
    grid-column: 3;
    justify-self: end;
    width: 74px;
    min-width: 74px;
    overflow: hidden;
  }
  .menu.lobby-wide .seat.bot .seat-tools .btn {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 4px !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    border-radius: 9px;
    overflow: hidden;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu.lobby-wide .seat:not(.bot):not(.empty):has([data-go=mp-kick]) {
    grid-template-columns: 32px minmax(0, 1fr) 154px;
  }
  .menu.lobby-wide .seat:not(.bot):not(.empty):has([data-go=mp-kick]) .seat-info {
    grid-column: 2;
    min-width: 0;
  }
  .menu.lobby-wide .seat:not(.bot):not(.empty):has([data-go=mp-kick]) .seat-tools {
    grid-column: 3;
    justify-self: end;
    width: 154px;
    min-width: 154px;
    display: grid;
    grid-template-columns: 74px 74px;
    gap: 6px;
  }
  .menu.lobby-wide .seat:not(.bot):not(.empty):has([data-go=mp-kick]) .seat-tools .btn {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 4px !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    border-radius: 9px;
  }
}
@media (min-width: 900px) and (orientation: landscape) {
  .menu.lobby-wide .seat.bot .seat-tools .btn {
    min-width: 82px;
    min-height: 34px;
    padding-inline: 10px;
  }
}
@media (min-width: 1900px) and (min-height: 1000px) and (pointer: fine) and (orientation: landscape) {
  .game .top-actions {
    width: clamp(48px, min(2.5vw, 4.44dvh), 96px);
    height: clamp(48px, min(2.5vw, 4.44dvh), 96px);
    left: calc(clamp(16px, min(.83vw, 1.48dvh), 32px) + var(--safe-l));
  }
  .game .ta-more svg {
    width: clamp(22px, min(1.15vw, 2.04dvh), 44px);
    height: clamp(22px, min(1.15vw, 2.04dvh), 44px);
  }
  .game .side-chat {
    right: calc(clamp(16px, min(.83vw, 1.48dvh), 32px) + var(--safe-r));
  }
  .game .side-chat .icon-btn {
    width: clamp(48px, min(2.5vw, 4.44dvh), 96px);
    height: clamp(48px, min(2.5vw, 4.44dvh), 96px);
  }
  .game .top-actions.open .ta-items > :nth-child(1) {
    translate: 0 calc(-200% - clamp(12px, min(.63vw, 1.11dvh), 24px));
  }
  .game .top-actions.open .ta-items > :nth-child(2) {
    translate: 0 calc(-100% - clamp(6px, min(.31vw, .56dvh), 12px));
  }
  .game .top-actions.open .ta-items > :nth-child(3) {
    translate: 0 calc(100% + clamp(6px, min(.31vw, .56dvh), 12px));
  }
  .game .top-actions.open .ta-items > :nth-child(4) {
    translate: 0 calc(200% + clamp(12px, min(.63vw, 1.11dvh), 24px));
  }
}
@keyframes chatDockIn {
  from {
    opacity: .35;
  }
  to {
    opacity: 1;
  }
}
.chat-panel.chat-panel-lobby-popover,
.chat-panel.chat-panel-game-popover {
  animation: chatDockIn .16s ease-out;
  transform: none;
  transform-origin: center;
}
@media (min-width: 900px) and (orientation: landscape) {
  .chat-panel.chat-panel-lobby-popover,
  .chat-panel.chat-panel-game-popover {
    max-height: calc(100dvh - 16px);
  }
}
.acct-delete-ack {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(255, 115, 115, .28);
  border-radius: 12px;
  background: rgba(120, 20, 28, .12);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.acct-delete-ack input {
  margin-top: 2px;
  accent-color: #e85b64;
  flex: 0 0 auto;
}
.seat > .seat-av {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.seat > .seat-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcard .av > .hud-av {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.pcard .av > .hud-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 760px) {
  .seat > .seat-av {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
}
.menu-social {
  top: auto !important;
  right: auto !important;
  left: max(14px, var(--safe-l)) !important;
  bottom: max(14px, var(--safe-b)) !important;
}
@media (orientation: landscape) {
  .game .top-actions {
    left: max(16px, var(--safe-l)) !important;
    right: auto !important;
    top: 50% !important;
  }
  .game .side-chat {
    right: max(16px, var(--safe-r)) !important;
    left: auto !important;
    top: 50% !important;
  }
  :dir(rtl) .game .top-actions {
    right: max(16px, var(--safe-r)) !important;
    left: auto !important;
  }
  :dir(rtl) .game .side-chat {
    left: max(16px, var(--safe-l)) !important;
    right: auto !important;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu-social {
    left: max(8px, var(--safe-l)) !important;
    bottom: max(8px, var(--safe-b)) !important;
  }
  .game .top-actions {
    left: max(6px, var(--safe-l)) !important;
  }
  .game .side-chat {
    right: max(6px, var(--safe-r)) !important;
  }
  :dir(rtl) .game .top-actions {
    right: max(6px, var(--safe-r)) !important;
    left: auto !important;
  }
  :dir(rtl) .game .side-chat {
    left: max(6px, var(--safe-l)) !important;
    right: auto !important;
  }
}
@media (max-width: 640px) and (orientation: portrait) {
  .overlay.side:has(.sheet.trade) {
    place-items: center;
    padding: max(8px, var(--safe-t)) 8px max(8px, var(--safe-b));
  }
  .overlay.side .sheet.trade {
    width: calc(100vw - 16px) !important;
    max-width: none !important;
    height: auto;
    max-height: calc(100dvh - 16px) !important;
    padding: 11px !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
    border-radius: 20px;
  }
  .sheet.trade .sheet-head {
    margin: 0 0 2px;
  }
  .sheet.trade .sheet-head h2 {
    font-size: 19px;
  }
  .sheet.trade > .bhelp {
    margin: 0;
    max-height: 42px;
    overflow: auto;
    font-size: 10.5px;
    line-height: 1.22;
    padding-right: 2px;
  }
  .sheet.trade .tcols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
    min-height: 0;
    flex: 1;
  }
  .sheet.trade .tcol {
    padding: 7px;
    gap: 5px;
    min-width: 0;
    min-height: 0;
    grid-template-rows: auto minmax(72px, 1fr) auto auto;
    overflow: hidden;
    border-radius: 14px;
  }
  .sheet.trade .tcol h4 {
    font-size: 12px;
    display: grid;
    gap: 2px;
  }
  .sheet.trade .tcol h4 small {
    font-size: 9.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sheet.trade .tlist {
    min-height: 72px;
    max-height: none !important;
    overflow: auto;
    gap: 4px;
    padding-right: 1px;
  }
  .sheet.trade .tasset {
    grid-template-columns: 4px minmax(0, 1fr);
    gap: 5px;
    padding: 6px;
    border-radius: 9px;
  }
  .sheet.trade .tasset > em {
    grid-column: 2;
    font-size: 10px;
  }
  .sheet.trade .tasset .bar {
    width: 4px;
    height: 23px;
  }
  .sheet.trade .tasset b {
    font-size: 11px;
    white-space: normal;
  }
  .sheet.trade .tmoney {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    align-items: center;
  }
  .sheet.trade .tmoney > span {
    grid-column: 1/-1;
    font-size: 10px;
  }
  .sheet.trade .tmoney > b {
    grid-column: 1/-1;
    min-width: 0;
    font-size: 13px;
    text-align: left;
  }
  .sheet.trade .tmoney .btn {
    min-height: 30px !important;
    padding: 0 5px;
    font-size: 11px;
  }
  .sheet.trade .tmoney [data-act=meq] {
    grid-column: 1/-1;
  }
  .sheet.trade .tbal {
    font-size: 9.5px;
  }
  .sheet.trade .tmeter {
    margin: 0;
    padding: 7px;
    border-radius: 12px;
  }
  .sheet.trade .tbar {
    height: 9px;
  }
  .sheet.trade .tbar .needle {
    top: -4px;
    height: 17px;
  }
  .sheet.trade .tvals {
    margin-top: 5px;
    font-size: 10px;
  }
  .sheet.trade .tpct {
    font-size: 15px;
  }
  .sheet.trade .tmeter p {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.15;
  }
  .sheet.trade .actions {
    gap: 6px;
    margin-top: 0;
  }
  .sheet.trade .actions .btn {
    min-height: 40px !important;
    padding: 0 8px;
    font-size: 13px;
  }
  .sheet.trade > .ctimer {
    scale: .82;
    transform-origin: top right;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .overlay.side .sheet.trade {
    max-height: calc(100dvh - 12px) !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
  }
  .overlay.side .sheet.trade .tcols {
    min-height: 0;
    flex: 1;
  }
  .overlay.side .sheet.trade .tlist {
    min-height: 0;
    max-height: none;
    overflow: auto;
  }
}
.shop-world-roll {
  left: 50% !important;
  bottom: clamp(22px, 5%, 38px) !important;
  top: auto !important;
  min-width: 200px;
  min-height: 60px;
  font-size: 22px;
  transform: translateX(-50%) !important;
  transform-origin: center !important;
  will-change: auto !important;
}
.shop-world-roll:hover,
.shop-world-roll:active,
.shop-world-roll:focus-visible {
  transform: translateX(-50%) !important;
}
@media (max-width: 860px), (max-aspect-ratio: 9/10) {
  .shop-world-roll {
    bottom: 18px !important;
    min-width: 170px;
    min-height: 50px;
    font-size: 17px;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .shop-world-roll {
    bottom: 12px !important;
    min-width: 136px;
    min-height: 44px;
    font-size: 16px;
  }
}
@media (min-width: 1900px) and (min-height: 1000px) and (pointer: fine) {
  .menu-social {
    left: calc(clamp(14px, min(.73vw, 1.30dvh), 28px) + var(--safe-l)) !important;
    bottom: calc(clamp(14px, min(.73vw, 1.30dvh), 28px) + var(--safe-b)) !important;
  }
  .game .top-actions {
    left: calc(clamp(16px, min(.83vw, 1.48dvh), 32px) + var(--safe-l)) !important;
    right: auto !important;
    top: 50% !important;
  }
  .game .side-chat {
    right: calc(clamp(16px, min(.83vw, 1.48dvh), 32px) + var(--safe-r)) !important;
    left: auto !important;
    top: 50% !important;
  }
  :dir(rtl) .game .top-actions {
    right: calc(clamp(16px, min(.83vw, 1.48dvh), 32px) + var(--safe-r)) !important;
    left: auto !important;
  }
  :dir(rtl) .game .side-chat {
    left: calc(clamp(16px, min(.83vw, 1.48dvh), 32px) + var(--safe-l)) !important;
    right: auto !important;
  }
  .game .top-actions,
  .game .side-chat .icon-btn {
    width: clamp(48px, min(2.5vw, 4.44dvh), 96px) !important;
    height: clamp(48px, min(2.5vw, 4.44dvh), 96px) !important;
  }
  .game .ta-more,
  .game .top-actions .icon-btn {
    width: clamp(48px, min(2.5vw, 4.44dvh), 96px) !important;
    height: clamp(48px, min(2.5vw, 4.44dvh), 96px) !important;
  }
  .game .ta-more svg,
  .game .top-actions .icon-btn svg,
  .game .side-chat .icon-btn svg {
    width: clamp(22px, min(1.15vw, 2.04dvh), 44px) !important;
    height: clamp(22px, min(1.15vw, 2.04dvh), 44px) !important;
  }
  .seat > .seat-av {
    width: clamp(52px, min(2.71vw, 4.81dvh), 104px);
    height: clamp(52px, min(2.71vw, 4.81dvh), 104px);
    min-width: clamp(52px, min(2.71vw, 4.81dvh), 104px);
  }
  .acct-delete-ack {
    gap: clamp(10px, min(.52vw, .93dvh), 20px);
    padding: clamp(10px, min(.52vw, .93dvh), 20px) clamp(12px, min(.63vw, 1.11dvh), 24px);
    border-radius: clamp(12px, min(.63vw, 1.11dvh), 24px);
    font-size: clamp(12px, min(.63vw, 1.11dvh), 24px);
  }
  .shop-world-roll {
    bottom: clamp(22px, min(1.98vw, 3.52dvh), 76px) !important;
    min-width: clamp(200px, min(10.42vw, 18.52dvh), 400px) !important;
    min-height: clamp(60px, min(3.13vw, 5.56dvh), 120px) !important;
    font-size: clamp(22px, min(1.15vw, 2.04dvh), 44px) !important;
    border-radius: clamp(18px, min(.94vw, 1.67dvh), 36px) !important;
  }
}
.pcard .av::before,
.pcard .av::after {
  content: none !important;
  display: none !important;
  box-shadow: none !important;
}
.game .topbar .brand {
  display: none !important;
}
.game .pcard.pc-0,
.game .pcard.pc-1 {
  top: calc(12px + var(--safe-t)) !important;
}
@media (orientation: landscape) and (max-height: 540px) {
  .game .pcard.pc-0,
  .game .pcard.pc-1 {
    top: calc(4px + var(--safe-t)) !important;
  }
}
.rk-me-top {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
}
.rk-me-top > .me-av {
  --s:48px;
  align-self: center;
  justify-self: center;
  min-width: var(--s) !important;
}
.rk-me-top > .me-av img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.rk-me-top > .av-dot {
  width: 48px !important;
  height: 48px !important;
  align-self: center;
  justify-self: center;
}
@media (orientation: landscape) and (max-height: 540px) {
  .rk-me-top > .me-av {
    --s:36px;
  }
  .rk-me-top > .av-dot {
    width: 36px !important;
    height: 36px !important;
  }
}
@media (max-width: 1180px), (pointer: coarse) {
  body .menu-social {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 40 !important;
    left: calc(10px + var(--safe-l)) !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(10px + var(--safe-b)) !important;
  }
}
@media (max-width: 640px) and (orientation: portrait) {
  .overlay.side:has(.sheet.trade) {
    place-items: center !important;
    align-items: center !important;
    padding: calc(8px + var(--safe-t)) 8px calc(8px + var(--safe-b)) !important;
    overflow: hidden !important;
  }
  .overlay.side .sheet.trade {
    width: calc(100vw - 16px) !important;
    max-width: none !important;
    height: auto !important;
    max-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 16px) !important;
    padding: 12px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    overscroll-behavior: contain;
    border-radius: 18px;
  }
  .sheet.trade .sheet-head {
    position: sticky;
    top: -12px;
    z-index: 3;
    background:
      linear-gradient(
        180deg,
        #18396f 82%,
        rgba(24, 57, 111, 0));
    padding: 10px 0 6px;
    margin: -10px 0 0 !important;
  }
  .sheet.trade > .bhelp {
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
  }
  .sheet.trade .tcols {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    min-height: 0 !important;
    height: auto !important;
    flex: none !important;
  }
  .sheet.trade .tcol {
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    display: grid !important;
    grid-template-rows: auto auto auto auto !important;
    gap: 6px !important;
    padding: 9px !important;
    overflow: visible !important;
  }
  .sheet.trade .tcol h4 {
    font-size: 12px !important;
    margin: 0 !important;
  }
  .sheet.trade .tlist {
    min-height: 52px !important;
    max-height: 21dvh !important;
    overflow: auto !important;
    display: grid !important;
    gap: 5px !important;
    padding-right: 2px;
  }
  .sheet.trade .tasset {
    display: grid !important;
    grid-template-columns: 4px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px !important;
  }
  .sheet.trade .tasset .bar {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
  }
  .sheet.trade .tasset b {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }
  .sheet.trade .tasset > em {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    white-space: nowrap !important;
    align-self: center !important;
  }
  .sheet.trade .tmoney {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    gap: 5px !important;
    align-items: center !important;
  }
  .sheet.trade .tmoney > span {
    grid-column: 1/-1 !important;
    grid-row: 1 !important;
    font-size: 10px !important;
  }
  .sheet.trade .tmoney [data-act=m-] {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .sheet.trade .tmoney > b {
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    text-align: center !important;
    font-size: 13px !important;
  }
  .sheet.trade .tmoney [data-act="m+"] {
    grid-column: 3 !important;
    grid-row: 2 !important;
  }
  .sheet.trade .tmoney [data-act=meq] {
    grid-column: 1/-1 !important;
    grid-row: 3 !important;
    min-height: 34px !important;
  }
  .sheet.trade .tmoney .btn {
    min-height: 34px !important;
    padding: 0 6px !important;
  }
  .sheet.trade .tbal {
    font-size: 10px !important;
  }
  .sheet.trade .tmeter {
    margin: 0 !important;
    padding: 8px !important;
  }
  .sheet.trade .actions {
    position: sticky;
    bottom: -12px;
    z-index: 3;
    background:
      linear-gradient(
        0deg,
        #18396f 82%,
        rgba(24, 57, 111, 0));
    padding: 8px 0 10px;
    margin: 0 !important;
  }
  .sheet.trade .actions .btn {
    min-height: 42px !important;
  }
}
@media (min-width: 1900px) and (min-height: 1000px) and (pointer: fine) {
  .rk-me-top > .me-av {
    --s:clamp(48px,min(2.5vw,4.44dvh),96px);
  }
  .rk-me-top > .av-dot {
    width: clamp(48px, min(2.5vw, 4.44dvh), 96px) !important;
    height: clamp(48px, min(2.5vw, 4.44dvh), 96px) !important;
  }
  .game .pcard.pc-0,
  .game .pcard.pc-1 {
    top: calc(clamp(14px, min(.73vw, 1.30dvh), 28px) + var(--safe-t)) !important;
  }
}
body > .menu-social {
  position: fixed !important;
  z-index: 32 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  left: calc(10px + var(--safe-l)) !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(10px + var(--safe-b)) !important;
  pointer-events: auto !important;
  transform: translateZ(0);
}
@media (pointer: coarse) and (max-width: 1180px) {
  body > .menu-social {
    gap: 7px !important;
  }
  body > .menu-social .soc-btn {
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 14px;
  }
}
@media (pointer: coarse) and (max-width: 760px) {
  body > .menu-social .soc-btn {
    width: 44px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  body > .menu-social .soc-btn span {
    display: none !important;
  }
}
@media (pointer: coarse), (orientation: landscape) and (max-height: 600px) {
  .menu.lobby-wide .seat:not(.bot):not(.empty) {
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    column-gap: 9px !important;
    row-gap: 2px !important;
    min-width: 0 !important;
  }
  .menu.lobby-wide .seat > .seat-av {
    --s:42px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: center !important;
    border-radius: 50% !important;
    overflow: hidden !important;
  }
  .menu.lobby-wide .seat > .seat-av > img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    grid-row: auto !important;
    display: block !important;
    object-fit: cover !important;
    filter: none !important;
    border-radius: 50% !important;
  }
  .menu.lobby-wide .seat > .seat-av.char > img {
    object-fit: contain !important;
    transform: translateY(8%) scale(1.25) !important;
  }
  .menu.lobby-wide .seat > .seat-av.ini > b {
    width: 100% !important;
    height: 100% !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    background: transparent !important;
  }
  .menu.lobby-wide .seat-info {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: start !important;
    text-align: start !important;
    gap: 2px !important;
    overflow: hidden !important;
  }
  .menu.lobby-wide .seat-info b {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .menu.lobby-wide .seat-info .mp-badge {
    justify-self: start !important;
    max-width: 100% !important;
  }
  .menu.lobby-wide .seat-info .mp-ping {
    display: none !important;
  }
  .menu.lobby-wide .seat-tools {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
  }
}
@media (pointer: coarse) and (max-width: 700px) {
  .menu.lobby-wide .seat:not(.bot):not(.empty):has(.seat-tools) {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
  }
  .menu.lobby-wide .seat:not(.bot):not(.empty):has(.seat-tools) > .seat-av {
    grid-row: 1/3 !important;
  }
  .menu.lobby-wide .seat:not(.bot):not(.empty):has(.seat-tools) .seat-tools {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 700px) {
  .overlay.side:has(.sheet.trade) {
    place-items: stretch !important;
    align-items: stretch !important;
    padding: calc(6px + var(--safe-t)) calc(6px + var(--safe-r)) calc(6px + var(--safe-b)) calc(6px + var(--safe-l)) !important;
    overflow: hidden !important;
    background: rgba(4, 10, 24, .78) !important;
  }
  .overlay.side .sheet.trade {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto !important;
    gap: 6px !important;
  }
  .sheet.trade .sheet-head {
    position: relative !important;
    top: auto !important;
    margin: 0 !important;
    padding: 0 62px 0 0 !important;
    background: none !important;
    min-height: 42px !important;
  }
  .sheet.trade .sheet-head h2 {
    font-size: 20px !important;
    line-height: 1.05 !important;
    min-width: 0 !important;
  }
  .sheet.trade .sheet-head .icon-btn {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 42px !important;
    height: 42px !important;
  }
  .sheet.trade > .ctimer {
    left: auto !important;
    right: 52px !important;
    top: 0 !important;
    transform: none !important;
    scale: none !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 13px !important;
  }
  .sheet.trade > .bhelp {
    margin: 0 !important;
    padding: 0 2px !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    max-height: 2.45em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }
  .sheet.trade .tcols {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }
  .sheet.trade .tcol {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 8px !important;
    gap: 5px !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
  }
  .sheet.trade .tcol h4 {
    font-size: 12.5px !important;
    line-height: 1.05 !important;
    margin: 0 !important;
    min-width: 0 !important;
  }
  .sheet.trade .tcol h4 small {
    font-size: 10px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .sheet.trade .tlist {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    display: grid !important;
    align-content: start !important;
    gap: 4px !important;
    padding-right: 2px !important;
  }
  .sheet.trade .tasset {
    display: grid !important;
    grid-template-columns: 4px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px !important;
    min-height: 38px !important;
  }
  .sheet.trade .tasset .bar {
    grid-column: 1 !important;
    grid-row: 1/3 !important;
    width: 4px !important;
    height: 26px !important;
  }
  .sheet.trade .tasset span {
    grid-column: 2 !important;
    min-width: 0 !important;
  }
  .sheet.trade .tasset b {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .sheet.trade .tasset > em {
    grid-column: 3 !important;
    grid-row: 1/3 !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
  }
  .sheet.trade .tmoney {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) 36px auto !important;
    gap: 4px !important;
    align-items: center !important;
    min-width: 0 !important;
  }
  .sheet.trade .tmoney > span {
    display: none !important;
  }
  .sheet.trade .tmoney [data-act=m-] {
    grid-column: 1 !important;
  }
  .sheet.trade .tmoney > b {
    grid-column: 2 !important;
    min-width: 0 !important;
    text-align: center !important;
    font-size: 12px !important;
  }
  .sheet.trade .tmoney [data-act="m+"] {
    grid-column: 3 !important;
  }
  .sheet.trade .tmoney [data-act=meq] {
    grid-column: 4 !important;
    min-width: 58px !important;
  }
  .sheet.trade .tmoney .btn {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 6px !important;
    font-size: 10.5px !important;
  }
  .sheet.trade .tbal {
    font-size: 9.5px !important;
    line-height: 1 !important;
  }
  .sheet.trade .tmeter {
    margin: 0 !important;
    padding: 6px 8px !important;
    border-radius: 11px !important;
  }
  .sheet.trade .tbar {
    height: 8px !important;
  }
  .sheet.trade .tbar .needle {
    top: -4px !important;
    height: 16px !important;
  }
  .sheet.trade .tvals {
    margin-top: 3px !important;
    font-size: 10px !important;
  }
  .sheet.trade .tpct {
    font-size: 14px !important;
  }
  .sheet.trade .tmeter p {
    display: none !important;
  }
  .sheet.trade .actions {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }
  .sheet.trade .actions .btn {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
  }
}
body > .menu-social {
  position: fixed !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 39 !important;
  pointer-events: auto !important;
  isolation: isolate !important;
  left: calc(10px + var(--safe-l)) !important;
  right: auto !important;
  bottom: calc(10px + var(--safe-b)) !important;
  top: auto;
  max-width: calc(100vw - var(--safe-l) - var(--safe-r) - 20px) !important;
}
@media (pointer: coarse), (max-width: 900px) {
  body > .menu-social {
    gap: 6px !important;
  }
  body > .menu-social .soc-btn {
    height: 44px !important;
    min-height: 44px !important;
    min-width: 44px !important;
    border-radius: 14px !important;
  }
}
@media (max-width: 520px) {
  body > .menu-social .soc-btn {
    width: 44px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  body > .menu-social .soc-btn span {
    display: none !important;
  }
}
@media (max-width: 1000px), (orientation: landscape) and (max-height: 900px) {
  .overlay.side:has(.sheet.trade) {
    position: fixed !important;
    inset: 0 !important;
    display: grid !important;
    place-items: stretch !important;
    padding: calc(6px + var(--safe-t)) calc(6px + var(--safe-r)) calc(6px + var(--safe-b)) calc(6px + var(--safe-l)) !important;
    overflow: hidden !important;
    background: rgba(4, 10, 24, .82) !important;
  }
  .overlay.side > .sheet.trade {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto !important;
    gap: 6px !important;
  }
  .sheet.trade .sheet-head {
    position: relative !important;
    top: auto !important;
    z-index: 4 !important;
    margin: 0 !important;
    padding: 0 96px 0 0 !important;
    min-height: 42px !important;
    background: none !important;
    border-radius: 0 !important;
  }
  .sheet.trade .sheet-head h2 {
    font-size: clamp(17px, 4.5vw, 22px) !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .sheet.trade .sheet-head .icon-btn {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 42px !important;
    height: 42px !important;
  }
  .sheet.trade > .ctimer {
    position: absolute !important;
    left: auto !important;
    right: 50px !important;
    top: 9px !important;
    transform: none !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 12px !important;
    z-index: 6 !important;
  }
  .sheet.trade > .bhelp {
    margin: 0 !important;
    padding: 0 2px !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    max-height: 2.5em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }
  .sheet.trade .tcols {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }
  .sheet.trade .tcol {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 8px !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
    gap: 5px !important;
  }
  .sheet.trade .tcol h4 {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
  }
  .sheet.trade .tlist {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    pointer-events: auto !important;
    display: grid !important;
    align-content: start !important;
    gap: 5px !important;
    padding: 1px 2px 3px !important;
  }
  .sheet.trade .tasset {
    min-width: 0 !important;
    padding: 7px !important;
    pointer-events: auto !important;
  }
  .sheet.trade .tmoney {
    min-width: 0 !important;
    gap: 4px !important;
  }
  .sheet.trade .tmoney .btn {
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 6px !important;
    pointer-events: auto !important;
  }
  .sheet.trade .tmeter {
    position: relative !important;
    inset: auto !important;
    margin: 0 !important;
    padding: 7px !important;
    z-index: 2 !important;
    pointer-events: none !important;
  }
  .sheet.trade .actions {
    position: relative !important;
    inset: auto !important;
    z-index: 4 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  .sheet.trade .actions .btn {
    min-height: 42px !important;
    pointer-events: auto !important;
  }
}
@media (max-width: 700px) and (orientation: portrait) {
  .overlay.side > .sheet.trade {
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    padding: 10px !important;
  }
  .sheet.trade .sheet-head {
    position: sticky !important;
    top: -10px !important;
    background:
      linear-gradient(
        180deg,
        #18396f 82%,
        rgba(24, 57, 111, .94)) !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    z-index: 8 !important;
  }
  .sheet.trade > .ctimer {
    position: sticky !important;
    float: right !important;
    top: 4px !important;
    margin-top: -48px !important;
    margin-right: 46px !important;
  }
  .sheet.trade > .bhelp {
    display: block !important;
    max-height: none !important;
    margin: 6px 0 !important;
  }
  .sheet.trade .tcols {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    height: auto !important;
    overflow: visible !important;
    gap: 8px !important;
  }
  .sheet.trade .tcol {
    height: auto !important;
    overflow: visible !important;
    grid-template-rows: auto auto auto auto !important;
  }
  .sheet.trade .tlist {
    max-height: 24dvh !important;
    min-height: 54px !important;
    height: auto !important;
  }
  .sheet.trade .tmeter {
    margin-top: 8px !important;
  }
  .sheet.trade .actions {
    position: sticky !important;
    bottom: -10px !important;
    background:
      linear-gradient(
        0deg,
        #18396f 82%,
        rgba(24, 57, 111, .96)) !important;
    padding: 8px 0 10px !important;
  }
}
body:not(.chat-scope-lobby):not(.chat-scope-game) .chat-panel,
body:not(.chat-scope-lobby):not(.chat-scope-game) .chat-btn,
body:not(.chat-scope-lobby):not(.chat-scope-game) .chat-fab,
body:not(.chat-scope-lobby):not(.chat-scope-game) .chat-peek {
  display: none !important;
}
#app > .menu-social {
  position: fixed !important;
  left: calc(10px + var(--safe-l)) !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(10px + var(--safe-b)) !important;
  z-index: 39 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  max-width: calc(100vw - var(--safe-l) - var(--safe-r) - 20px) !important;
}
@media (pointer: coarse), (max-width: 900px) {
  #app > .menu-social {
    display: flex !important;
    gap: 6px !important;
  }
  #app > .menu-social .soc-btn {
    height: 44px !important;
    min-height: 44px !important;
    min-width: 44px !important;
    border-radius: 14px !important;
  }
}
@media (max-width: 520px) {
  #app > .menu-social .soc-btn {
    width: 44px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  #app > .menu-social .soc-btn span {
    display: none !important;
  }
}
.sitem:not(.owned) .sth {
  filter: none !important;
  opacity: 1 !important;
}
@media (pointer: fine) and (min-width: 901px) {
  #app > .menu-social .soc-btn {
    width: clamp(108px, min(5.9vw, 10.5dvh), 216px);
    justify-content: center;
    padding-inline: clamp(11px, min(.73vw, 1.3dvh), 28px);
  }
}
#app > .menu-social {
  --kz-social-w:clamp(154px,min(8.02vw,14.26dvh),308px);
  --kz-social-h:clamp(44px,min(2.29vw,4.07dvh),88px) ;
}
#app > .menu-social .soc-btn {
  box-sizing: border-box !important;
  flex: 0 0 var(--kz-social-w) !important;
  width: var(--kz-social-w) !important;
  min-width: var(--kz-social-w) !important;
  max-width: var(--kz-social-w) !important;
  height: var(--kz-social-h) !important;
  min-height: var(--kz-social-h) !important;
  max-height: var(--kz-social-h) !important;
  justify-content: center !important;
  padding-inline: clamp(11px, min(.73vw, 1.3dvh), 28px) !important;
}
#app > .menu-social .soc-btn svg,
#app > .menu-social .soc-btn img {
  flex: 0 0 auto !important;
}
#app > .menu-social .soc-btn span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 520px), (orientation: landscape) and (max-height: 540px) {
  #app > .menu-social {
    --kz-social-w:44px;
    --kz-social-h:44px;
  }
  #app > .menu-social .soc-btn {
    padding: 0 !important;
  }
  #app > .menu-social .soc-btn span {
    display: none !important;
  }
}
#app > .menu-social .soc-btn {
  --kz-social-depth:#24375f;
  box-shadow:
    inset 0 0 0 1.5px rgba(245, 194, 74, .30),
    0 5px 0 var(--kz-social-depth),
    0 10px 20px rgba(0, 0, 0, .30) !important;
}
#app > .menu-social .soc-btn.soc-discord {
  --kz-social-depth:#3C45B8;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .10),
    0 5px 0 var(--kz-social-depth),
    0 10px 20px rgba(0, 0, 0, .30) !important;
}
#app > .menu-social .soc-btn:hover {
  box-shadow:
    inset 0 0 0 1.5px var(--gold-hi),
    0 5px 0 var(--kz-social-depth),
    0 10px 20px rgba(0, 0, 0, .30) !important;
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu.ranked-mode .rk-side > .rk-me {
    box-sizing: border-box !important;
    height: 128px !important;
    min-height: 128px !important;
    max-height: 128px !important;
    overflow: hidden !important;
  }
  .menu.ranked-mode .rk-me.rk-queue {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) auto !important;
    grid-template-rows: 32px 16px 38px !important;
    align-content: center !important;
    align-items: center !important;
    justify-items: stretch !important;
    gap: 2px 8px !important;
    text-align: left !important;
  }
  .menu.ranked-mode .rk-me.rk-queue > .mp-spin {
    grid-column: 1;
    grid-row: 1/3;
    justify-self: center !important;
    align-self: center !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
  }
  .menu.ranked-mode .rk-me.rk-queue > b {
    grid-column: 2;
    grid-row: 1;
    align-self: end !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .menu.ranked-mode .rk-me.rk-queue > .rk-time {
    grid-column: 3;
    grid-row: 1/3;
    align-self: center !important;
    justify-self: end !important;
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }
  .menu.ranked-mode .rk-me.rk-queue > .rk-queue-count {
    grid-column: 2;
    grid-row: 2;
    align-self: start !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .menu.ranked-mode .rk-me.rk-queue > .btn {
    grid-column: 1/4;
    grid-row: 3;
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding-block: 0 !important;
  }
}
.team-head {
  min-height: 38px;
  padding: 5px 7px 5px 10px;
  overflow: hidden;
}
.team-head .team-switch {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  max-width: 58%;
  min-height: 30px;
  padding: 0 11px;
  border: 1.5px solid color-mix(in srgb, var(--tc) 72%, #fff);
  border-radius: 999px;
  cursor: pointer;
  background:
    linear-gradient(
      180deg,
      rgba(34, 64, 124, .98),
      rgba(20, 43, 86, .98));
  color: #fff;
  box-shadow: 0 3px 0 rgba(4, 15, 35, .72), inset 0 1px 0 rgba(255, 255, 255, .18);
  font: 800 11.5px/1 var(--display);
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    transform .08s ease,
    filter .15s ease,
    box-shadow .08s ease;
}
.team-head .team-switch:hover {
  filter: brightness(1.1);
  box-shadow:
    0 3px 0 rgba(4, 15, 35, .72),
    inset 0 0 0 1px color-mix(in srgb, var(--tc) 60%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}
.team-head .team-switch:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(4, 15, 35, .72), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.team-head .team-switch:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 2px;
}
@media (orientation: landscape) and (max-height: 540px) {
  .team-head {
    min-height: 31px;
    padding: 3px 5px 3px 8px;
  }
  .team-head .team-switch {
    min-height: 25px;
    max-width: 62%;
    padding: 0 8px;
    font-size: 10.5px;
    box-shadow: 0 2px 0 rgba(4, 15, 35, .72), inset 0 1px 0 rgba(255, 255, 255, .16);
  }
}
@media (max-width: 560px) and (orientation: portrait) {
  .team-head .team-switch {
    max-width: 64%;
    min-height: 28px;
    padding: 0 9px;
    font-size: 10.5px;
  }
}
.rk-lock5 {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 212, 90, .1);
  box-shadow: inset 0 0 0 1.5px rgba(255, 212, 90, .45);
  margin: 6px 0;
  text-align: left;
}
.rk-lock5 > svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: #FFD45A;
  margin-top: 2px;
}
.rk-lock5 > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.rk-lock5 b {
  color: #FFD45A;
  font: 800 14px/1.1 var(--display);
}
.rk-lock5 small {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.3;
}
.rk-lock5 em {
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
  color: #FFE9A6;
}
.rk-lock5 .sc-bar {
  margin: 0;
}
.btn-ranked .rk-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  font: 800 11px/1 var(--display);
  color: #FFE9A6;
}
.btn-ranked .rk-chip svg {
  width: 11px;
  height: 11px;
}
.intro-film {
  position: fixed;
  inset: 0;
  z-index: 9000;
  overflow: hidden;
  background: #05061A;
  transition: opacity 1.4s ease-in-out;
}
.intro-film.fade {
  opacity: 0;
}
.intro-film .if-sky,
.intro-film .if-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.intro-film .if-stage {
  pointer-events: none;
}
.intro-film .if-stage canvas {
  width: 100% !important;
  height: 100% !important;
}
.intro-film .if-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6dvh;
  z-index: 3;
  text-align: center;
  font: 800 clamp(24px, 4.4vw, 56px)/1.05 var(--display);
  color: #FFF6D8;
  letter-spacing: .5px;
  text-shadow: 0 3px 0 #8A4B00, 0 6px 18px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(18px) scale(.92);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.5, .4, 1);
  padding: 0 16px;
}
.intro-film .if-cap.in {
  opacity: 1;
  transform: none;
}
.intro-film .if-cap.out {
  opacity: 0;
  transform: translateY(-14px) scale(1.04);
}
.intro-film .if-title {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
}
.intro-film .if-title img {
  width: clamp(110px, 18vw, 220px);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
  transform: scale(.2) rotate(-25deg);
}
.intro-film .if-title b {
  font: 900 clamp(40px, 8.5vw, 108px)/1 var(--display);
  letter-spacing: 2px;
  background:
    linear-gradient(
      180deg,
      #FFF1C2,
      #F5C24A 55%,
      #C98A17);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px #3A2300;
  filter: drop-shadow(0 6px 0 rgba(58, 35, 0, .55));
  transform: translateY(30px);
  opacity: 0;
}
.intro-film .if-title small {
  font: 800 clamp(14px, 2.2vw, 26px)/1 var(--display);
  letter-spacing: 4px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  opacity: 0;
}
.intro-film .if-title.on {
  opacity: 1;
}
.intro-film .if-title.on img {
  animation: ifLogo .9s cubic-bezier(.2, 1.6, .4, 1) forwards;
}
.intro-film .if-title.on b {
  animation: ifRise .7s .35s cubic-bezier(.2, 1.4, .4, 1) forwards;
}
.intro-film .if-title.on small {
  animation: ifFade .6s .8s ease forwards;
}
.intro-film .if-flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(
      circle,
      rgba(255, 250, 220, .95),
      rgba(255, 230, 160, 0) 70%);
  opacity: 0;
  pointer-events: none;
}
.intro-film .if-flash.on {
  animation: ifFlash .9s ease-out forwards;
}
.intro-film .if-skip {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  top: max(14px, env(safe-area-inset-top));
  z-index: 5;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font: 800 18px/1 var(--display);
  letter-spacing: .5px;
  color: #fff;
  background: rgba(10, 20, 48, .6);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4), 0 6px 16px rgba(0, 0, 0, .25);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.intro-film .if-skip:hover {
  background: rgba(10, 20, 48, .78);
}
@keyframes ifLogo {
  to {
    transform: scale(1) rotate(0);
  }
}
@keyframes ifRise {
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes ifFade {
  to {
    opacity: 1;
  }
}
@keyframes ifFlash {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.intro-film .if-space {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.intro-film .if-play {
  position: absolute;
  left: 50%;
  bottom: 7dvh;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 16px 34px;
  font: 800 clamp(18px, 2.6vw, 26px)/1 var(--display);
  color: #3a2500;
  background:
    linear-gradient(
      180deg,
      #FFE9A6,
      #F5B83A);
  box-shadow: 0 5px 0 #a86f0e, 0 12px 34px rgba(245, 184, 58, .5);
  cursor: pointer;
  animation: ifPulse 1.4s ease-in-out infinite;
}
.intro-film .if-play[hidden] {
  display: none;
}
.intro-film .if-play i {
  font-style: normal;
  font-size: 1.1em;
}
@keyframes ifPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.07);
  }
}
@media (prefers-reduced-motion: reduce) {
  .intro-film .if-play {
    animation: none;
  }
}
.net-status {
  position: fixed;
  top: calc(10px + var(--safe-t));
  left: 50%;
  z-index: 25;
  max-width: calc(100% - 32px);
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(11, 20, 48, .9);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .25);
  color: #fff;
  font: 800 12px/1.15 var(--body);
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.net-status.unstable {
  border-color: rgba(255, 210, 74, .75);
  color: #FFE9A6;
}
.net-status.reconnecting,
.net-status.offline {
  border-color: rgba(255, 115, 80, .8);
  color: #FFD0C2;
}
.intro-film .if-skip {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity .8s ease,
    transform .8s ease,
    visibility 0s .8s;
}
.intro-film .if-skip.on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity .8s ease,
    transform .8s ease,
    visibility 0s;
}
.chat-list .chat-typing {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  box-shadow: none;
  padding: 3px 6px;
  color: var(--soft);
  font: 700 12px/1.3 var(--body);
}
.chat-list .chat-typing > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pc);
  flex: none;
}
.chat-list .chat-typing .dots {
  display: inline-flex;
  gap: 3px;
}
.chat-list .chat-typing .dots b {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
  animation: kzTypeDot 1.1s infinite ease-in-out;
}
.chat-list .chat-typing .dots b:nth-child(2) {
  animation-delay: .18s;
}
.chat-list .chat-typing .dots b:nth-child(3) {
  animation-delay: .36s;
}
@keyframes kzTypeDot {
  0%, 60%, 100% {
    opacity: .3;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-list .chat-typing .dots b {
    animation: none;
    opacity: .7;
  }
}
.chat-panel.chat-local.chat-bots .chat-quick,
.chat-panel.chat-local.chat-bots .chat-form {
  display: flex !important;
}
.game .dock .feed {
  z-index: 8;
  pointer-events: none;
}
.rotate-hint .rh-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.rotate-hint .rh-mini {
  width: 14px;
  height: 22px;
  border-radius: 4px;
  border: 2.5px solid currentColor;
  flex: none;
  animation: rhTurn 2.4s cubic-bezier(.6, 0, .3, 1) infinite;
}
.rotate-hint.rh-nudge .rh-phone {
  animation: rhNudge 1.1s cubic-bezier(.6, 0, .3, 1) 2;
}
@keyframes rhNudge {
  0% {
    transform: rotate(0) scale(1);
  }
  45% {
    transform: rotate(-90deg) scale(1.12);
  }
  70% {
    transform: rotate(-84deg) scale(1.08);
  }
  100% {
    transform: rotate(-90deg) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rotate-hint .rh-mini {
    animation: none;
    transform: rotate(-90deg);
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu.lobby-wide .lb-body {
    overflow: hidden;
  }
  .menu.lobby-wide .lb-side > * {
    flex: none;
  }
  .menu.lobby-wide .lb-side > .room-set {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .rk-page .rk-left {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .rk-page .rk-left > * {
    flex: none;
  }
}
@media (orientation: landscape) and (max-height: 380px) {
  .menu.lobby-wide .room-set {
    gap: 4px !important;
    padding: 5px 8px !important;
  }
  .menu.lobby-wide .room-set .seg button {
    padding: 3px 7px;
  }
  .menu.lobby-wide .stepper button {
    width: 26px;
    height: 26px;
  }
  .menu.lobby-wide .mp-help {
    -webkit-line-clamp: 1;
  }
  .menu.lobby-wide .lb-acts .btn {
    min-height: 36px;
  }
  .menu.lobby-wide .seat.empty {
    min-height: 32px !important;
  }
}
@media (orientation: landscape) and (max-height: 420px) {
  .rk-page .pd-pawn,
  .rk-page .pd-pawn img {
    height: 44px;
  }
  .rk-page .pd1 .pd-pawn,
  .rk-page .pd1 .pd-pawn img {
    height: 54px;
  }
  .rk-page .pd1 .pd-step {
    height: 24px;
  }
  .rk-page .pd2 .pd-step {
    height: 17px;
  }
  .rk-page .pd3 .pd-step {
    height: 13px;
  }
  .rk-page .rk-side {
    margin-top: 6px !important;
  }
  .rk-lock5 {
    padding: 7px 9px;
    margin: 4px 0;
    gap: 8px;
  }
  .rk-lock5 b {
    font-size: 13px;
  }
  .rk-lock5 small {
    font-size: 11px;
  }
}
@media (orientation: landscape) and (min-height: 541px) and (max-height: 800px) {
  .menu.lobby-wide .menu-panel {
    max-height: calc(100dvh - 24px - var(--safe-t) - var(--safe-b));
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .menu.lobby-wide .lobby {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .menu.lobby-wide .lb-head {
    flex: none;
  }
  .menu.lobby-wide .lb-body {
    flex: 1;
    min-height: 0;
    align-items: stretch;
  }
  .menu.lobby-wide .seats {
    overflow: auto;
    min-height: 0;
    align-content: start;
    overscroll-behavior: contain;
  }
  .menu.lobby-wide .lb-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .menu.lobby-wide .lb-side > * {
    flex: none;
  }
  .menu.lobby-wide .lb-side > .room-set {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .menu.lobby-wide .lb-acts {
    margin-top: auto;
  }
}
@media (orientation: landscape) and (min-height: 541px) and (max-height: 800px) {
  .menu.lobby-wide {
    grid-template-columns: 1fr;
  }
  .menu.lobby-wide .hero {
    display: none;
  }
  .menu.lobby-wide .menu-panel {
    width: 100%;
    max-width: 980px;
    justify-self: center;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .sheet.podium-sheet {
    display: flex !important;
    flex-direction: column;
    max-height: calc(100dvh - 12px - var(--safe-t) - var(--safe-b));
    overflow: hidden !important;
  }
  .sheet.podium-sheet > h2,
  .sheet.podium-sheet > .wtabs,
  .sheet.podium-sheet > .menu-row {
    flex: none;
  }
  .sheet.podium-sheet > .wpod,
  .sheet.podium-sheet > .wz {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .sheet.podium-sheet .podium-stage {
    height: min(300px, 30dvh);
  }
}
@media (orientation: landscape) and (max-height: 360px) {
  .sheet.podium-sheet .podium-stage {
    height: 22dvh;
  }
  .sheet.auction {
    max-height: calc(100dvh - 8px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sheet.auction .ahint {
    margin: 0;
    font-size: 11px;
  }
}
html.rtl-text body :is(p, h1, h2, h3, h4, h5, h6, small, b, strong, em, span, label, li, td, th, dd, dt, button, a, input, textarea, div, time, summary, legend, caption, figcaption) {
  unicode-bidi: plaintext;
}
html.rtl-text input,
html.rtl-text textarea {
  text-align: start;
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu.ranked-mode .rk-side > .rk-me:not(.rk-queue) {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .rk-page .rk-left {
    overflow-x: hidden !important;
  }
  .rk-page .rk-side {
    min-width: 0;
    max-width: 100%;
  }
  .rk-page .podium {
    padding-top: 0;
  }
  .rk-lock5 small {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
}
@media (orientation: landscape) and (max-height: 540px) and (min-height: 381px) {
  .rk-page .pd-pawn,
  .rk-page .pd-pawn img {
    height: 40px;
  }
  .rk-page .pd1 .pd-pawn,
  .rk-page .pd1 .pd-pawn img {
    height: 50px;
  }
}
@media (orientation: landscape) and (max-height: 380px) {
  .rk-lock5 small {
    display: none;
  }
  .rk-page .pd-pawn,
  .rk-page .pd-pawn img {
    height: 28px;
  }
  .rk-page .pd1 .pd-pawn,
  .rk-page .pd1 .pd-pawn img {
    height: 34px;
  }
  .rk-page .pd1 .pd-step {
    height: 20px;
  }
  .rk-page .pd2 .pd-step {
    height: 15px;
  }
  .rk-page .pd3 .pd-step {
    height: 12px;
  }
  .rk-page .pd-step i {
    font-size: 12px;
  }
  .rk-page .rk-me .sc-bar {
    margin: 0;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .rk-page .pd.empty .pd-pawn,
  .rk-page .pd1.empty .pd-pawn {
    height: 6px !important;
  }
}
.lb-side-top .swatches {
  padding: 7px 0 3px 7px;
  margin-left: -7px;
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu.lobby-wide .seats {
    align-content: stretch !important;
    gap: 8px !important;
    grid-auto-rows: minmax(48px, 1fr);
  }
  .menu.lobby-wide .seats.teams {
    grid-template-rows: auto;
    grid-auto-rows: minmax(72px, 1fr);
  }
  .menu.lobby-wide .seats .seat {
    align-content: center !important;
    align-items: center !important;
    min-height: 0;
  }
  .menu.lobby-wide .seats .seat img,
  .menu.lobby-wide .seats .seat .seat-av {
    width: 40px !important;
    height: 40px !important;
  }
  .menu.lobby-wide .seats .seat:not(.empty) {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    padding: 6px 10px !important;
  }
  .menu.lobby-wide .seats .seat.empty {
    padding: 10px 16px 13px !important;
    outline-offset: -6px;
    column-gap: 10px;
  }
  .menu.lobby-wide .seats .seat.empty .seat-info b {
    font-size: 13px;
  }
  .menu.lobby-wide .seats .seat-tools .btn,
  .menu.lobby-wide .seats .seat-tools .btn-xs {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 14px !important;
    font-size: 12.5px !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 0 #0B1838, inset 0 1px 0 rgba(255, 255, 255, .14) !important;
  }
  .menu.lobby-wide .seats.teams .seat.empty {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    text-align: center !important;
    row-gap: 7px;
  }
  .menu.lobby-wide .seats.teams .seat.empty .seat-info {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  .menu.lobby-wide .seats.teams .seat.empty .seat-info b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .menu.lobby-wide .seats.teams .seat.empty .seat-info small {
    display: block;
    font-size: 11px;
    color: var(--soft);
  }
  .menu.lobby-wide .seats.teams .seat.empty .seat-tools {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
  }
  .menu.lobby-wide .seats.teams .seat:not(.empty) {
    grid-template-columns: 40px minmax(0, 1fr) !important;
  }
  .menu.lobby-wide .seats.teams .seat:not(.empty) .seat-tools {
    grid-column: 1/-1 !important;
    grid-row: auto !important;
    justify-self: start !important;
  }
  .menu.lobby-wide .lb-side-top .swatches {
    padding-top: 6px;
  }
}
@media (orientation: landscape) and (min-height: 541px) {
  .menu.lobby-wide .lb-body {
    align-items: stretch;
  }
  .menu.lobby-wide .seats {
    align-content: stretch !important;
    grid-auto-rows: minmax(min-content, 1fr);
  }
  .menu.lobby-wide .seats.teams {
    grid-template-rows: auto;
  }
  .menu.lobby-wide .seats .seat {
    align-content: center;
  }
}
.lb-side-top .swatches {
  flex-wrap: nowrap;
}
.lb-side-top .swatch {
  flex: 0 1 auto;
  width: min(46px, calc((100% - 5 * var(--swg,10px)) / 6)) !important;
  height: auto !important;
  aspect-ratio: 1;
  min-width: 22px;
}
@media (pointer: coarse) and (min-height: 601px) {
  .menu.lobby-wide .seats .seat {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    justify-items: center;
  }
  .menu.lobby-wide .seat > .seat-av {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .menu.lobby-wide .seat-info {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-items: center !important;
    text-align: center !important;
  }
  .menu.lobby-wide .seat-tools {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: center !important;
    justify-content: center;
    flex-wrap: wrap !important;
    width: 100%;
    max-width: 100%;
  }
  .menu.lobby-wide .seat-tools .btn {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }
}
@media (pointer: coarse) and (min-height: 601px) and (max-width: 1600px) {
  .menu.lobby-wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .menu.lobby-wide .hero {
    display: none;
  }
  .menu.lobby-wide .menu-panel {
    width: min(100%, 940px);
    max-width: 940px;
    justify-self: center;
  }
}
.lb-side-top .swatches {
  --swg:10px;
}
.lb-side-top .swatch:not(.taken)::after {
  left: 22%;
  top: 31%;
  width: 56%;
  height: 20%;
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(
      closest-side,
      #fff 90%,
      transparent) left/30% 100% no-repeat,
    radial-gradient(
      closest-side,
      #fff 90%,
      transparent) right/30% 100% no-repeat;
}
.game.opening {
  pointer-events: none;
}
.game.opening #stage {
  animation: hudFadeIn .5s ease both;
}
.game.opening .topbar,
.game.opening .players,
.game.opening .side-chat,
.game.opening .ranked-live-badge,
.game.opening .dock > *,
body:has(.game.opening) .chat-fab,
body:has(.game.opening) .chat-peek,
body:has(.game.opening) .chat-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  animation: none !important;
}
.intro-film.no-skip .if-play,
.intro-film.no-skip .if-skip {
  display: none !important;
}
body:has(.intro-film) .rotate-hint {
  z-index: 9600;
}
.net-status.peer {
  border-color: rgba(143, 179, 255, .75);
  color: #D8E4FF;
}
.net-down {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 12, 30, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.net-down section {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: min(380px, 100%);
  padding: 20px 24px;
  border-radius: 22px;
  text-align: center;
  background:
    linear-gradient(
      180deg,
      #1C3570,
      #122653);
  box-shadow: inset 0 0 0 1.5px rgba(255, 140, 110, .55), 0 18px 40px rgba(0, 0, 0, .45);
  color: #fff;
}
.net-down b {
  font: 800 20px/1.15 var(--display);
  color: #FFD0C2;
}
.net-down p {
  margin: 0;
  font: 700 14px/1.35 var(--body);
  color: var(--soft,#C9D6F2);
}
.net-down section {
  min-width: 0;
  max-height: 100%;
  overflow: auto;
}
.network-recovery-actions {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.network-recovery-actions > .btn {
  min-width: 0;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.2;
  padding: 10px 12px;
  letter-spacing: 0;
}
.flight-opening {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: #66b8e4;
  overflow: hidden;
}
.flight-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.flight-fade {
  position: absolute;
  inset: 0;
  background: #071b23;
  opacity: 0;
  pointer-events: none;
}
.flight-roster {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--flight-count, 2), minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}
.flight-roster[hidden] {
  display: none;
}
.flight-seat {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 1px solid #ffffff25;
  overflow: hidden;
}
.flight-portrait {
  position: absolute;
  inset: 0;
}
.flight-identity {
  position: absolute;
  inset: auto 0 0;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  background: #071b23e6;
  padding: 8px 16px;
  text-align: center;
}
.flight-identity b {
  font-size: 24px;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.flight-ready {
  font-size: 14px;
  color: #d0dbe2;
}
.flight-ready.is-ready {
  color: #78efa1;
}
:root {
  --visible-height:100dvh;
  --visible-width:100vw;
  --visible-top:0px;
  --visible-left:0px;
}
.game {
  height: 100dvh;
  max-height: none;
}
.overlay {
  inset: auto !important;
  top: var(--visible-top) !important;
  left: var(--visible-left) !important;
  width: var(--visible-width) !important;
  height: var(--visible-height) !important;
  box-sizing: border-box;
}
.overlay.side .card-wrap:has(.incoming) {
  max-height: calc(var(--visible-height) - var(--safe-t) - var(--safe-b) - 16px);
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.overlay .kcard.offer.incoming.compact {
  display: flex;
  flex-direction: column;
  max-height: calc(var(--visible-height) - var(--safe-t) - var(--safe-b) - 54px);
  min-height: 0;
  overflow: hidden;
}
.incoming > .head,
.incoming > .actions {
  flex: none;
}
.incoming > .head:has(> .ctimer) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px !important;
  gap: 2px 10px !important;
  align-items: center !important;
  padding: 10px !important;
}
.incoming > .head:has(> .ctimer) > small,
.incoming > .head:has(> .ctimer) > h3 {
  grid-column: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.incoming > .head > .ctimer {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  float: none !important;
  width: 44px !important;
  height: 44px !important;
  grid-column: 2;
  grid-row: 1/span 2;
  align-self: center;
}
@media (max-width: 1000px), (max-height: 540px) {
  .incoming > .head:has(> .ctimer) {
    grid-template-columns: minmax(0, 1fr) 32px !important;
  }
  .incoming > .head > .ctimer {
    width: 32px !important;
    height: 32px !important;
  }
}
.incoming > .actions {
  margin-top: 8px;
  padding-top: 6px;
  background: #f7eedb;
}
.incoming-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px;
}
.incoming-body > .olist {
  margin: 8px 0;
}
.offer-balances {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 6px 0;
  font-size: 12px;
}
.abidders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.abidder {
  min-width: 0;
  border-radius: 6px;
  line-height: 1.2;
}
.abidder > span {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.abidder > b {
  white-space: nowrap;
}
.sheet.auction {
  display: flex;
  flex-direction: column;
  max-height: calc(var(--visible-height) - var(--safe-t) - var(--safe-b) - 24px) !important;
  overflow: hidden;
}
.sheet.auction > .ahead,
.sheet.auction > .astage,
.sheet.auction > .abidders,
.sheet.auction > .abtns,
.sheet.auction > .ahint {
  flex: none;
}
.auction-ownership {
  min-height: 64px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.auction-ownership > .kset {
  color: #eef2f6;
  background: #101c28;
  padding: 8px 10px;
  border-radius: 6px;
}
.auction-ownership h5 {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.auction-ownership h5 small {
  margin-left: auto;
}
.auction-ownership ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.auction-ownership li {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  font-size: 12px;
  background: #ffffff09;
  border-left: 3px solid #62717d;
  border-radius: 4px;
}
.auction-ownership li.owned {
  background: color-mix(in srgb, var(--oc) 26%, #101c28);
  border-left-color: var(--oc);
}
.auction-ownership li.me {
  outline: 1px solid #ffffff65;
  outline-offset: -1px;
}
.auction-ownership li i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--oc);
}
.auction-ownership li em {
  font-style: normal;
  text-align: end;
  overflow-wrap: anywhere;
}
.auction-ownership li span {
  overflow-wrap: anywhere;
}
.auction-ownership p {
  margin: 6px 0 0;
  font-size: 11px;
}
.sheet.auction .abtns {
  position: static;
  padding: 8px 0;
  background: #142852;
}
.balance-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
}
.player-properties {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 38px;
  min-height: 32px;
  color: #172b43;
  background: #f2ce68;
  border: 1px solid #ffe8a2;
  border-radius: 5px;
  padding: 5px 7px;
  font: 900 12px/1 var(--body);
  cursor: pointer;
  box-shadow: 0 2px 0 #a9822e;
}
.player-properties:hover {
  background: #ffe194;
}
.pcard .balance-line {
  flex-wrap: nowrap;
  grid-column: 1/-1;
}
.pcard .av {
  grid-row: 1;
}
.player-properties .ic {
  width: 15px;
  height: 15px;
}
.player-properties i {
  font-style: normal;
}
.player-properties:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.player-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.pcard .balance-line {
  margin-top: -3px;
  margin-bottom: 4px;
}
.pcard .ptimer {
  margin-top: 2px;
}
.player-offers {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  padding: 5px;
  border: 1px solid #91bed3;
  border-radius: 5px;
  background: #d3f0fa;
  color: #204c66;
  cursor: pointer;
}
.player-offers .ic {
  width: 18px;
  height: 18px;
}
.player-offers[data-mode=none] {
  background: #eee3e5;
  color: #853c4a;
  border-color: #cb8c9a;
}
.player-offers[data-mode=none]::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}
.player-offers[data-mode=selected],
.player-offers[data-mode=blocked] {
  background: #e4f0db;
  border-color: #9cb68a;
  color: #365c28;
}
.player-offers:focus-visible {
  outline: 2px solid #f2ce68;
  outline-offset: 2px;
}
.player-offers {
  position: relative;
}
@media (min-width: 1101px) and (min-height: 601px) and (pointer: fine) {
  .player-properties {
    min-height: 40px;
    min-width: 48px;
    padding: 7px 10px;
    font-size: 14px;
  }
  .player-properties .ic {
    width: 20px;
    height: 20px;
  }
  .player-offers {
    width: 40px;
    height: 40px;
  }
  .player-offers .ic {
    width: 22px;
    height: 22px;
  }
}
.offer-preferences-sheet {
  width: min(540px, calc(var(--visible-width) - 24px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(var(--visible-height) - 24px);
}
.offer-preferences-sheet .sheet-head {
  flex: none;
}
.offer-preferences-sheet .sheet-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
}
.offer-modes {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  flex: none;
  gap: 3px;
  padding: 3px;
  border: 1px solid #7594ad;
  border-radius: 6px;
  background: #102642;
}
.offer-modes button {
  min-height: 38px;
  padding: 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dae5f0;
  font: 800 14px/1.2 var(--body);
  cursor: pointer;
}
.offer-modes button[aria-pressed=true] {
  color: #14263c;
  background: #f2ce68;
}
.offer-players {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
}
.offer-players legend {
  padding: 0 0 6px;
  font-size: 13px;
  color: var(--soft);
}
.offer-players label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid #55718c;
  font-weight: 800;
}
.offer-players input {
  width: 20px;
  height: 20px;
  flex: none;
  accent-color: #f2ce68;
}
.offer-players i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.offer-players span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.offer-status {
  flex: none;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--soft);
}
.offer-preferences-sheet > .actions {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}
@media (orientation: landscape) and (max-height: 540px) {
  .game .players .pcard.me {
    width: 176px;
  }
  .offer-preferences-sheet {
    padding: 12px 16px;
    gap: 8px;
  }
  .offer-preferences-sheet .sheet-head h2 {
    font-size: 18px;
  }
  .offer-preferences-sheet .sheet-head {
    margin: 0;
  }
  .offer-preferences-sheet .btn {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 14px;
  }
}
.properties-sheet {
  max-height: calc(var(--visible-height) - var(--safe-t) - var(--safe-b) - 24px) !important;
  display: flex;
  flex-direction: column;
}
.properties-sheet > .asset-list {
  min-height: 0;
  overflow-y: auto;
}
.properties-sheet > .sheet-head,
.properties-sheet > .actions {
  flex: none;
}
.purchase-balance[hidden] {
  display: none;
}
#set-camera.tut-target::after {
  content: "";
  left: 3px;
  top: 3px;
  bottom: auto;
  width: 18px;
  height: 18px;
  font-size: 0;
  line-height: normal;
  transform: none;
  animation: none !important;
  filter: none;
}
#set-camera.tut-target:checked::after {
  transform: translateX(20px);
}
.properties-sheet {
  width: min(840px, 100%) !important;
  gap: 12px;
  padding: 24px !important;
  border-radius: 8px;
}
.properties-sheet .asset-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 2px;
  overscroll-behavior: contain;
}
.properties-sheet .asset-item {
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border-radius: 6px;
  min-height: 68px;
}
.properties-sheet .asset-item span {
  min-width: 0;
}
.properties-sheet .asset-item b {
  display: block;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.2;
}
.properties-sheet .asset-item small {
  font-size: 13px;
  line-height: 1.3;
  margin-top: 4px;
}
.properties-sheet .asset-item em {
  font-size: 16px;
  white-space: nowrap;
}
.properties-sheet > .sheet-head {
  margin: 0;
}
.properties-sheet > .actions {
  display: flex;
  gap: 8px;
}
.properties-sheet > .actions .btn {
  flex: 1;
  min-width: 0;
  white-space: normal;
}
.sheet.trade .tbar {
  background:
    linear-gradient(
      90deg,
      #a52942 0 40%,
      #218857 40% 80%,
      #a52942 80% 100%);
}
.sheet.trade .tbar .zone {
  background: #3bd98a;
  border-radius: 0;
}
.sheet.trade .tmeter {
  border: 1px solid #b84a5b;
  border-radius: 6px;
}
.sheet.trade .tmeter.ok {
  border-color: #3bd98a;
}
.sheet.trade .tmeter p {
  display: block !important;
  margin: 4px 0 0;
  font-size: 11px !important;
  line-height: 1.25;
}
.sheet.trade .tbar .needle {
  width: 3px;
  box-shadow: 0 0 0 1px #101c28;
  transition: none;
}
@media (pointer: coarse), (max-width: 1000px), (orientation: landscape) and (max-height: 600px) {
  .overlay.side:has(.sheet.trade) {
    padding: calc(6px + var(--safe-t)) calc(6px + var(--safe-r)) calc(6px + var(--safe-b)) calc(6px + var(--safe-l)) !important;
  }
  .overlay.side > .sheet.trade {
    display: grid !important;
    grid-template-rows: 34px minmax(0, 1fr) auto 36px !important;
    gap: 6px !important;
    height: 100% !important;
    max-height: calc(var(--visible-height) - var(--safe-t) - var(--safe-b) - 12px) !important;
    border-radius: 6px !important;
    padding: 8px !important;
    overflow: hidden !important;
  }
  .sheet.trade > .sheet-head {
    grid-row: 1;
    min-height: 0 !important;
    padding: 0 86px 0 0 !important;
  }
  .sheet.trade > .sheet-head h2 {
    font-size: 17px !important;
  }
  .sheet.trade > .sheet-head .icon-btn {
    width: 32px !important;
    height: 32px !important;
  }
  .sheet.trade > .ctimer {
    top: 8px !important;
    right: 44px !important;
    width: 32px !important;
    height: 32px !important;
    float: none !important;
    margin: 0 !important;
  }
  .sheet.trade > .bhelp {
    display: none !important;
  }
  .sheet.trade > .tcols {
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    overflow: hidden !important;
  }
  .sheet.trade .tcol {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
    padding: 6px !important;
    gap: 4px !important;
    border-radius: 6px;
  }
  .sheet.trade .tcol h4 {
    flex-direction: column;
    gap: 2px !important;
    font-size: 11px !important;
  }
  .sheet.trade .tcol h4 small {
    font-size: 10px !important;
  }
  .sheet.trade .tlist {
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto !important;
  }
  .sheet.trade .tasset {
    grid-template-columns: 4px minmax(0, 1fr) auto !important;
    min-height: 38px !important;
    padding: 6px !important;
    border-radius: 4px;
  }
  .sheet.trade .tasset b {
    display: block;
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: 11px !important;
    line-height: 1.2;
  }
  .sheet.trade .tasset .lvl-ic {
    width: 12px;
    height: 12px;
  }
  .sheet.trade .tmoney {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) 30px !important;
    grid-template-rows: 28px 28px !important;
    gap: 3px !important;
  }
  .sheet.trade .tmoney > b {
    grid-column: 2 !important;
    font-size: 12px !important;
  }
  .sheet.trade .tmoney [data-act=meq] {
    grid-column: 1/-1 !important;
    min-width: 0 !important;
  }
  .sheet.trade .tmoney .btn {
    min-width: 0 !important;
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 4px !important;
    font-size: 10px !important;
  }
  .sheet.trade > .tmeter {
    grid-row: 3;
    padding: 6px 8px !important;
    pointer-events: auto !important;
  }
  .sheet.trade > .tmeter .tvals {
    font-size: 10px !important;
    gap: 8px;
  }
  .sheet.trade > .tmeter .tpct {
    font-size: 13px !important;
  }
  .sheet.trade > .actions {
    grid-row: 4;
    position: static !important;
    height: 36px;
  }
  .sheet.trade > .actions .btn {
    min-height: 36px !important;
    height: 36px !important;
  }
  .properties-sheet {
    width: min(700px, 100%) !important;
    padding: 12px !important;
  }
  .properties-sheet .sheet-head h2 {
    font-size: 18px;
  }
  .properties-sheet .asset-item {
    gap: 10px;
    padding: 12px;
    min-height: 54px;
  }
  .properties-sheet .asset-item b {
    font-size: 14px;
  }
  .properties-sheet .asset-item small {
    font-size: 11px;
  }
  .properties-sheet .asset-item em {
    font-size: 13px;
  }
}
@media (max-width: 620px) {
  .sheet.trade > .tcols {
    grid-template-columns: minmax(0, 1fr) !important;
    overflow-y: auto !important;
    align-content: start;
  }
  .sheet.trade .tcol {
    height: auto !important;
    min-height: 190px !important;
    grid-template-rows: auto minmax(64px, 1fr) auto auto !important;
    overflow: visible !important;
  }
  .sheet.trade .tlist {
    max-height: 160px !important;
  }
}
.overlay > .sheet,
.overlay.side > .sheet {
  box-sizing: border-box;
  max-width: 100%;
  max-height: calc(var(--visible-height) - var(--safe-t) - var(--safe-b) - 24px) !important;
  min-height: 0;
  overflow-x: hidden;
}
.sheet-head h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.sheet-head > .icon-btn {
  flex: none;
}
.sheet.build {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet.build > .sheet-head,
.sheet.build > .actions {
  flex: none;
}
.build-body {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.build-body .bsteps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.bstep {
  min-width: 0;
}
.bstep[data-lvl="5"] b {
  font-size: 11px;
  line-height: 1.2;
}
.bstep b,
.bstep small,
.bsum b {
  overflow-wrap: anywhere;
}
.bstep small {
  white-space: normal;
  max-width: 100%;
}
.bstep .hs {
  max-width: 100%;
}
.bstep .hs svg {
  flex: 0 1 11px;
  min-width: 0;
}
.sheet.build > .actions {
  padding-top: 10px;
  background: #10234a;
  flex-wrap: wrap;
}
.sheet.build > .actions > .btn {
  min-width: 0;
  white-space: normal;
}
.overlay .set-row {
  min-width: 0;
}
.overlay .set-row > div,
.overlay .set-row > label {
  min-width: 0;
  overflow-wrap: anywhere;
}
body.tut-on.tut-pick .coach.busy {
  visibility: hidden;
  pointer-events: none;
}
.sheet.debt {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet.debt > .sheet-head,
.sheet.debt > .actions,
.sheet.debt > .note {
  flex: none;
}
.debt-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.debt-summary {
  flex: none;
}
.sheet.debt .dlist {
  min-height: 0;
  max-height: none;
  overflow: auto;
  margin: 0;
  padding-bottom: 4px;
}
.sheet.debt > .actions {
  padding-top: 10px;
}
.sheet.debt > .note {
  margin: 6px 0 0;
}
.menu.lobby-wide .seat,
.menu.lobby-wide .seat.bot,
.menu.lobby-wide .seat-tools {
  overflow: visible !important;
}
.menu.lobby-wide .seats {
  padding-bottom: 5px;
}
.menu.lobby-wide .seats .seat {
  min-height: min-content !important;
}
.menu.lobby-wide .seat-tools {
  padding-bottom: 4px;
}
@media (orientation: landscape) and (max-height: 600px) {
  .overlay.side > .sheet.trade {
    width: min(960px, 100%) !important;
  }
  .sheet.debt {
    width: min(880px, 100%) !important;
    height: 100%;
    padding: 12px !important;
  }
  .debt-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(150px, .8fr) minmax(0, 1.4fr);
    gap: 14px;
  }
  .debt-summary {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .debt-summary > .bhelp {
    flex: 1;
    min-height: 0;
    overflow: auto;
    margin: 0 0 6px;
  }
  .debt-summary > .dmeter {
    flex: none;
    margin: 0;
    padding: 8px;
  }
  .sheet.debt .drow {
    min-height: 48px;
    padding: 8px;
  }
  .sheet.debt .drow b {
    font-size: 14px;
  }
  .sheet.debt .drow .btn {
    min-height: 34px;
  }
  .sheet.trade .tcol {
    min-height: 0 !important;
    height: 100% !important;
    grid-template-rows: auto minmax(0, 1fr) 34px !important;
  }
  .sheet.trade > .tcols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    overflow: hidden !important;
  }
  .sheet.trade .tlist {
    max-height: none !important;
  }
  .sheet.trade .tcol h4 {
    font-size: 13px !important;
    flex-direction: row !important;
    flex-wrap: wrap;
  }
  .sheet.trade .tcol h4 > small:not(.tbal) {
    display: none;
  }
  .sheet.trade .tcol h4 > .tbal {
    font-size: 11px !important;
    width: 100%;
  }
  .sheet.trade .tmoney {
    grid-template-columns: 34px minmax(0, 1fr) 34px 58px !important;
    grid-template-rows: 34px !important;
  }
  .sheet.trade .tmoney [data-act=m-],
  .sheet.trade .tmoney > b,
  .sheet.trade .tmoney [data-act="m+"],
  .sheet.trade .tmoney [data-act=meq] {
    grid-row: 1 !important;
  }
  .sheet.trade .tmoney [data-act=meq] {
    grid-column: 4 !important;
  }
  .sheet.trade .tmoney .btn {
    height: 34px !important;
    min-height: 34px !important;
    font-size: 12px !important;
  }
  .sheet.trade .tasset {
    min-height: 44px !important;
  }
  .sheet.trade .tasset b {
    font-size: 13px !important;
  }
  .sheet.trade .tasset em {
    font-size: 12px !important;
  }
  .overlay .kcard.offer.incoming.compact {
    width: min(400px, 46vw) !important;
  }
  .tile-pick .pick-banner {
    left: calc(12px + var(--safe-l));
    bottom: calc(8px + var(--safe-b));
    top: auto !important;
    transform: none;
    max-width: calc(100% - var(--safe-l) - var(--safe-r) - 24px);
    border-radius: 8px;
    font-size: 14px;
    padding: 8px 10px;
    gap: 8px;
  }
  .tile-pick .pick-banner .btn {
    min-height: 34px;
  }
}
@media (orientation: landscape) and (max-height: 340px) {
  .overlay.side > .sheet.trade {
    grid-template-rows: 26px minmax(0, 1fr) auto 36px !important;
    gap: 4px !important;
    padding: 4px 6px !important;
  }
  .sheet.trade .tcol {
    padding: 4px !important;
    gap: 3px !important;
  }
  .sheet.trade .tcol h4 {
    flex-wrap: nowrap !important;
    justify-content: space-between;
    gap: 4px;
  }
  .sheet.trade .tcol h4 > .tbal {
    width: auto;
    white-space: nowrap;
  }
  .sheet.trade > .tmeter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    padding: 4px 6px !important;
  }
  .sheet.trade > .tmeter > .tbar {
    grid-column: 1/-1;
    height: 7px;
  }
  .sheet.trade > .tmeter > .tvals,
  .sheet.trade > .tmeter > p {
    margin: 0 !important;
    align-self: center;
  }
  .sheet.trade > .tmeter > p {
    max-width: 42vw;
    font-size: 10px !important;
  }
}
@media (max-width: 700px) {
  .player-properties {
    min-height: 28px;
    font-size: 10px;
    gap: 3px;
    padding: 4px;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .pcard .av {
    grid-row: 1;
  }
  .pcard .balance-line {
    grid-column: 1/-1;
  }
  .pcard .balance-line .bal {
    min-width: 0;
    font-size: 14px;
  }
  .sheet.auction {
    padding: 10px 12px;
  }
  .sheet.auction .ahead {
    margin-bottom: 6px;
  }
  .sheet.auction .ahead h2 {
    font-size: 22px;
  }
  .sheet.auction .ablock {
    min-height: 60px;
    padding: 6px 10px;
    border-radius: 8px;
  }
  .sheet.auction .gavel {
    width: 68px;
    height: 44px;
  }
  .sheet.auction .atimer {
    width: 48px;
    height: 48px;
  }
  .sheet.auction .atimer b {
    font-size: 20px;
  }
  .sheet.auction .abid {
    font-size: 24px;
  }
  .sheet.auction .aphase,
  .sheet.auction .alead {
    font-size: 12px;
  }
  .sheet.auction .abidders {
    margin: 6px 0;
  }
  .sheet.auction .abidder {
    padding: 4px 6px;
    font-size: 11px;
  }
  .sheet.auction .abtns .btn {
    min-height: 36px;
    font-size: 13px;
  }
  .sheet.auction .ahint {
    margin: 0;
    font-size: 11px;
  }
  .overlay.side:has(.incoming) {
    place-items: center end;
    padding: max(8px, var(--safe-t)) max(8px, var(--safe-r)) max(8px, var(--safe-b)) max(8px, var(--safe-l));
  }
  .overlay .kcard.offer.incoming.compact {
    width: min(420px, 54vw);
  }
  .incoming > .head h3 {
    font-size: 20px;
  }
  .incoming > .actions .btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
  }
  .overlay.side:has(.incoming) .card-wrap {
    padding-top: 0;
    max-width: 46vw;
  }
  .overlay.side:has(.incoming) .incoming {
    width: min(400px, 46vw) !important;
    padding: 12px;
    max-height: calc(var(--visible-height) - 16px) !important;
  }
  .incoming > .head {
    padding: 8px 10px;
    margin-bottom: 4px;
  }
  .incoming > .head small {
    font-size: 10px;
  }
  .incoming > .head {
    padding-right: 52px;
  }
  .incoming > .ctimer {
    top: 18px !important;
    left: auto !important;
    right: 18px;
    transform: none !important;
    width: 36px !important;
    height: 36px !important;
  }
  .incoming > .ctimer b {
    font-size: 16px !important;
  }
  .incoming > .ctimer small {
    font-size: 8px;
  }
  .incoming .osum {
    font-size: 12px;
    margin: 4px 0;
  }
  .incoming .olist {
    padding: 8px;
  }
  .incoming .olist h5,
  .incoming .olist li {
    font-size: 12px;
  }
  .incoming .olist li {
    min-height: 26px;
  }
  .incoming-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 8px;
    align-content: start;
  }
  .incoming-body > .osum,
  .incoming-body > .offer-balances,
  .incoming-body > .kset {
    grid-column: 1/-1;
  }
  .incoming-body > .olist {
    margin: 0;
    min-width: 0;
  }
  .incoming .olist h5 {
    flex-wrap: wrap;
    gap: 4px;
  }
  .overlay.side > .sheet.build {
    width: min(480px, 54vw) !important;
    height: calc(var(--visible-height) - 16px);
    max-height: calc(var(--visible-height) - 16px) !important;
    padding: 10px 12px;
  }
  .sheet.build > .sheet-head {
    margin-bottom: 6px;
  }
  .build-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .build-body > .bcity {
    flex: none;
    margin: 0;
    padding: 6px 8px;
  }
  .build-body > .blot {
    flex: 0 1 60px;
    min-height: 32px;
    height: 60px;
    width: 100%;
    margin: 0;
  }
  .build-body > .bshield {
    flex: none;
    margin: 0;
    min-height: 30px;
    padding: 5px 8px;
    font-size: 12px;
  }
  .build-body > .bsteps {
    flex: none;
    margin: 0;
  }
  .build-body .bstep {
    padding: 6px 2px;
  }
  .build-body .bstep b {
    font-size: 11px;
  }
  .build-body .bstep small {
    font-size: 10px;
  }
  .build-body .bstep > svg,
  .build-body .bstep .hs {
    height: 16px;
  }
  .build-body > .bsum {
    flex: none;
    margin: 0;
  }
  .build-body .bsum > div {
    padding: 5px 6px;
  }
  .build-body .bsum b {
    font-size: 12px;
  }
  .sheet.build > .actions {
    padding-top: 6px;
    margin-top: 6px;
    gap: 6px;
  }
  .sheet.build > .actions > .btn {
    min-height: 36px;
    padding: 6px;
    font-size: 13px;
  }
}
@media (orientation: landscape) and (max-height: 340px) {
  .incoming > .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 52px 6px 8px;
  }
  .incoming > .head h3 {
    margin: 0;
    font-size: 18px;
  }
  .incoming .offer-balances {
    padding: 3px 0;
    font-size: 11px;
  }
  .incoming .osum {
    font-size: 11px;
    margin: 2px 0;
  }
  .incoming .olist {
    padding: 6px;
  }
  .incoming .olist h5 {
    margin-bottom: 4px;
  }
  .overlay.side > .sheet.build {
    width: min(480px, 74vw) !important;
    padding: 6px 8px;
  }
  .sheet.build > .sheet-head {
    margin-bottom: 4px;
  }
  .sheet.build > .sheet-head h2 {
    font-size: 20px;
  }
  .sheet.build > .sheet-head > .icon-btn {
    width: 28px;
    height: 28px;
    min-height: 28px;
  }
  .build-body {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-areas: "city city" "lot levels" "shield summary";
    gap: 4px;
    align-content: start;
  }
  .build-body > .bcity {
    grid-area: city;
    padding: 4px 6px;
    gap: 6px;
  }
  .build-body .bcity b {
    font-size: 12px;
  }
  .build-body .bcity small {
    font-size: 10px;
  }
  .build-body .bcity > .flagbar {
    flex-basis: 24px;
    width: 24px;
    height: 16px;
  }
  .build-body > .blot {
    grid-area: lot;
    min-height: 0;
    height: 56px;
    align-self: center;
  }
  .build-body > .bsteps {
    grid-area: levels;
  }
  .build-body > .bsum {
    grid-area: summary;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3px;
  }
  .build-body > .bshield {
    grid-area: shield;
    min-height: 34px;
    padding: 4px 6px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }
  .build-body > .bshield svg {
    width: 16px;
    height: 16px;
  }
  .build-body .bstep {
    gap: 3px;
    padding: 4px 2px;
  }
  .build-body .bstep small svg {
    width: 10px;
    height: 10px;
    vertical-align: middle;
  }
  .build-body .bsum > div {
    gap: 3px;
    padding: 4px 3px;
  }
  .build-body .bsum b {
    white-space: normal;
  }
  .sheet.build > .actions {
    padding-top: 4px;
    margin-top: 4px;
  }
}
@media (orientation: landscape) and (max-height: 360px) {
  .sheet.auction .ahead h2 {
    font-size: 20px;
    margin-top: 2px;
  }
  .sheet.auction .ahead small {
    font-size: 10px;
  }
  .sheet.auction .ahead {
    margin-bottom: 4px;
  }
  .sheet.auction .ablock {
    min-height: 46px;
    padding: 4px 8px;
  }
  .sheet.auction .gavel {
    width: 46px;
    height: 30px;
  }
  .sheet.auction .atimer {
    width: 40px;
    height: 40px;
  }
  .sheet.auction .abid {
    font-size: 20px;
  }
  .sheet.auction .aphase,
  .sheet.auction .alead {
    font-size: 11px;
  }
  .sheet.auction .abidders {
    gap: 4px;
    margin: 4px 0;
  }
  .sheet.auction .abidder {
    padding: 3px 6px;
  }
  .sheet.auction .auction-ownership {
    min-height: 48px;
  }
  .sheet.auction .abtns {
    padding: 4px 0;
  }
  .sheet.auction .abtns .btn {
    min-height: 34px;
  }
  .sheet.auction .ahint {
    font-size: 10px;
  }
}
@media (max-height: 500px), (max-width: 600px) {
  .flight-identity {
    height: 58px;
    padding: 5px 10px;
    gap: 2px;
  }
  .flight-identity b {
    font-size: 17px;
  }
  .flight-ready {
    font-size: 12px;
  }
}
body.tut-on .coach {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  max-width: none !important;
  max-height: none !important;
  padding: 14px 16px !important;
  gap: 8px 12px !important;
  border-radius: 8px !important;
  background: #f5f8fc;
  transform: none !important;
  scale: 1 !important;
  margin: 0;
  overflow: visible !important;
  animation: none;
  box-shadow: 0 4px 20px #0006, inset 0 0 0 2px #f2ce68;
}
@keyframes tutorialCoachFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
body.tut-on .coach[data-layout=reading],
body.tut-on .coach[data-layout=guidance] {
  animation: tutorialCoachFade .22s ease-out both;
}
body.tut-on .coach[data-layout=reading] {
  left: calc(var(--visible-left) + 12px + var(--safe-l)) !important;
  right: calc(100vw - var(--visible-left) - var(--visible-width) + 12px + var(--safe-r)) !important;
  top: auto !important;
  bottom: calc(100dvh - var(--visible-top) - var(--visible-height) + 10px + var(--safe-b)) !important;
  width: auto !important;
  max-width: 900px !important;
  margin-inline: auto;
}
body.tut-on .coach > div:nth-child(2) {
  min-width: 0;
  max-height: none !important;
  overflow: visible !important;
  padding: 0;
}
body.tut-on .coach img {
  width: 32px !important;
  height: 32px !important;
}
body.tut-on .coach .c-step {
  font-size: 10px !important;
  line-height: 1.2;
  letter-spacing: 0 !important;
}
body.tut-on .coach h4 {
  margin: 3px 0 5px !important;
  font-size: 20px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere;
}
body.tut-on .coach p {
  font-size: 14px !important;
  line-height: 1.4 !important;
  overflow-wrap: anywhere;
}
body.tut-on .coach .c-actions {
  gap: 8px !important;
  margin-top: 2px !important;
}
body.tut-on .coach .c-actions .btn {
  height: auto !important;
  min-height: 40px !important;
  font-size: 14px !important;
  padding: 8px 14px !important;
}
body.tut-on .coach .c-dots {
  flex-wrap: wrap;
  overflow: visible;
  gap: 3px !important;
}
body.tut-on .coach .c-dots i {
  width: 5px !important;
  height: 5px !important;
}
body.tut-reading .game .players,
body.tut-reading .game .topbar,
body.tut-reading .game .dock,
body.tut-map-preview .game .players,
body.tut-map-preview .game .topbar,
body.tut-map-preview .game .dock {
  visibility: hidden;
  pointer-events: none;
}
body.tut-on .coach.busy {
  left: var(--coach-x,12px) !important;
  top: var(--coach-y,12px) !important;
  right: auto !important;
  bottom: auto !important;
  width: min(320px, calc(var(--visible-width) - 24px)) !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  padding: 9px 12px !important;
  gap: 6px 8px !important;
}
body.tut-on .coach.busy img {
  width: 24px !important;
  height: 24px !important;
}
body.tut-on .coach.busy h4 {
  font-size: 15px !important;
  margin: 2px 0 3px !important;
}
body.tut-on .coach.busy p {
  font-size: 13px !important;
  line-height: 1.3 !important;
}
body.tut-on .coach[data-layout=hidden],
body.tut-on.tut-pick .coach.busy,
body.tut-map-preview .coach {
  visibility: hidden !important;
  pointer-events: none;
}
body.tut-on .coach[data-layout=reading][data-density=compact],
body.tut-on .coach[data-layout=reading][data-density=tight] {
  grid-template-columns: minmax(0, 1fr) !important;
}
body.tut-on .coach[data-layout=reading]:is([data-density=compact], [data-density=tight]) img {
  position: absolute;
  top: 10px;
  inset-inline-start: 12px;
  width: 24px !important;
  height: 24px !important;
}
body.tut-on .coach[data-layout=reading]:is([data-density=compact], [data-density=tight]) .c-step,
body.tut-on .coach[data-layout=reading]:is([data-density=compact], [data-density=tight]) h4 {
  padding-inline-start: 34px;
}
body.tut-on .coach[data-layout=reading][data-density=tight] p {
  font-size: 12px !important;
  line-height: 1.25 !important;
}
body.tut-on .coach[data-layout=reading][data-density=tight] h4 {
  font-size: 16px !important;
}
@media (max-height: 540px) {
  body.tut-on .coach {
    padding: 10px 12px !important;
    gap: 6px 10px !important;
  }
  body.tut-on .coach h4 {
    font-size: 18px !important;
  }
  body.tut-on .coach p {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
  body.tut-on .coach .c-actions .btn {
    min-height: 36px !important;
    padding: 7px 12px !important;
    font-size: 13px !important;
  }
}
.sheet.podium-sheet {
  display: flex;
  flex-direction: column;
  width: min(900px, 100%);
  max-width: 100%;
  min-width: 0;
  flex-shrink: 1;
  height: min(820px, calc(var(--visible-height) - 32px));
  max-height: calc(var(--visible-height) - 32px);
  overflow: hidden;
}
.sheet.podium-sheet > * {
  min-width: 0;
  max-width: 100%;
}
.sheet.podium-sheet .rank-list,
.sheet.podium-sheet .rank-list li {
  min-width: 0;
  max-width: 100%;
}
.sheet.podium-sheet .rank-list,
.sheet.podium-sheet .rank-list li {
  box-sizing: border-box;
  overflow-x: hidden;
}
.sheet.podium-sheet .rank-list small {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.sheet.podium-sheet > h2,
.sheet.podium-sheet > .wtabs,
.sheet.podium-sheet > .menu-row {
  flex: none;
}
.sheet.podium-sheet > .wpod,
.sheet.podium-sheet > .wz {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet.podium-sheet > .wpod {
  align-content: start;
  overflow-x: hidden;
  min-width: 0;
  box-sizing: border-box;
}
.sheet.podium-sheet .rank-list li > b {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.sheet.podium-sheet .rank-list li > small {
  text-align: end;
  line-height: 1.35;
}
.sheet.podium-sheet > .wz {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.sheet.podium-sheet > .wpod[hidden],
.sheet.podium-sheet > .wz[hidden] {
  display: none !important;
}
.sheet.podium-sheet .wz .receipt {
  flex: none;
  width: min(380px, 100%);
  max-height: none;
  overflow: visible;
  margin: 0 auto 12px;
  font-size: 11px;
}
.sheet.podium-sheet .wz .rin {
  padding: 10px 12px 16px;
}
.sheet.podium-sheet .wz .rl {
  gap: 6px;
}
.sheet.podium-sheet .wz .rl span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.sheet.podium-sheet .wz .rl span:last-child {
  max-width: 58%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (orientation: landscape) and (max-height: 540px) {
  .sheet.podium-sheet {
    width: min(900px, calc(var(--visible-width) - 16px));
    height: calc(var(--visible-height) - 16px);
    max-height: calc(var(--visible-height) - 16px);
    padding: 10px 12px;
    gap: 8px;
  }
  .sheet.podium-sheet > h2 {
    font-size: 22px !important;
    margin: 0;
  }
  .sheet.podium-sheet .wtabs {
    padding: 3px;
    gap: 6px;
  }
  .sheet.podium-sheet .wtabs button {
    min-height: 34px !important;
    padding: 6px 12px;
    font-size: 14px;
  }
  .sheet.podium-sheet > .wpod {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px 12px;
    overflow: hidden;
    align-items: stretch;
  }
  .sheet.podium-sheet .podium-stage {
    grid-column: 1;
    grid-row: 1/3;
    height: 100%;
    min-height: 0;
    border-radius: 8px;
  }
  .sheet.podium-sheet .rank-list {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    overflow-y: auto;
    gap: 4px;
    align-content: start;
  }
  .sheet.podium-sheet .rank-list li {
    grid-template-columns: 22px 10px minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 6px;
    padding: 7px 8px;
    border-radius: 6px;
  }
  .sheet.podium-sheet .rank-list .rk {
    font-size: 16px;
  }
  .sheet.podium-sheet .rank-list i {
    width: 10px;
    height: 10px;
  }
  .sheet.podium-sheet .rank-list b {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .sheet.podium-sheet .rank-list small {
    font-size: 11px;
    text-align: end;
  }
  .sheet.podium-sheet .reward {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 7px 8px;
    gap: 3px;
    border-radius: 6px;
  }
  .sheet.podium-sheet .reward .coin {
    width: 20px;
    height: 20px;
  }
  .sheet.podium-sheet .reward b {
    font-size: 15px;
  }
  .sheet.podium-sheet .reward span,
  .sheet.podium-sheet .reward small {
    font-size: 10px;
  }
  .sheet.podium-sheet > .wz {
    overflow-x: hidden;
    overflow-y: auto;
  }
  .sheet.podium-sheet .wz .receipt {
    width: min(380px, 100%);
  }
  .sheet.podium-sheet > .menu-row:has(> button:only-child) {
    grid-template-columns: 1fr;
  }
  .sheet.podium-sheet > .menu-row .btn {
    min-height: 34px !important;
    padding: 6px 12px;
    font-size: 14px;
  }
}
@media (orientation: landscape) and (max-height: 340px) {
  .sheet.podium-sheet {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr) 34px;
    padding: 8px 10px;
    gap: 6px;
  }
  .sheet.podium-sheet > h2 {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px !important;
    text-align: start;
    overflow-wrap: anywhere;
  }
  .sheet.podium-sheet > .wtabs {
    grid-column: 2;
    grid-row: 1;
  }
  .sheet.podium-sheet > .wpod,
  .sheet.podium-sheet > .wz {
    grid-column: 1/-1;
    grid-row: 2;
    min-height: 0;
  }
  .sheet.podium-sheet > .menu-row {
    grid-column: 1/-1;
    grid-row: 3;
  }
  .sheet.podium-sheet .podium-stage {
    grid-row: 1;
  }
  .sheet.podium-sheet .rank-list {
    grid-row: 1/3;
  }
  .sheet.podium-sheet .reward {
    grid-column: 1;
  }
  .sheet.podium-sheet .reward {
    display: grid;
    grid-template-columns: 20px auto;
    gap: 2px 5px;
    align-items: center;
    padding: 5px 8px;
  }
  .sheet.podium-sheet .reward span,
  .sheet.podium-sheet .reward small {
    grid-column: 1/-1;
  }
}
body:has(#modal .incoming) .game .players,
body:has(#modal .incoming) .game .topbar,
body:has(#modal .incoming) .game .dock {
  visibility: hidden;
  pointer-events: none;
}
body.tut-reading:has(#modal .podium-sheet) .overlay {
  place-items: start center;
}
body.tut-reading .sheet.podium-sheet {
  height: calc(var(--visible-height) - var(--podium-coach-space,160px) - 30px);
  max-height: calc(var(--visible-height) - var(--podium-coach-space,160px) - 30px) !important;
}
body.tut-on:has(#modal .podium-sheet) .sheet.podium-sheet > .menu-row {
  display: none;
}
body.tut-on:has(#modal .podium-sheet) .sheet.podium-sheet {
  grid-template-rows: auto minmax(0, 1fr);
}
.menu .hero {
  overflow: visible;
  padding-block: 20px 14px;
}
.menu .hero-logo {
  display: block;
  max-height: min(30dvh, 300px);
  object-fit: contain;
  filter: none;
}
.menu .wordmark {
  line-height: 1.12;
  padding-block: 3px 2px;
  filter: none;
  text-shadow: none;
  letter-spacing: 0;
}
.menu .tagline {
  text-shadow: none;
  letter-spacing: 0;
}
.kcard.purchase-card.kc2 .purchase-visual > .head,
.kcard.purchase-card.kc2 .purchase-visual > .tag,
.kcard.purchase-card.kc2 .purchase-visual > .badges {
  flex: none;
}
.kcard.purchase-card.kc2 .purchase-visual > .head h3 {
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.kcard.purchase-card.kc2 .purchase-visual .art {
  width: min(82%, max(110px, calc((var(--kc2h) - 160px)*1.77778)));
  aspect-ratio: 16/9;
  flex: none;
}
.kcard.purchase-card.kc2 > .purchase-details {
  scrollbar-color: #9a9a90 transparent;
  padding-inline-end: 5px;
}
.kcard.purchase-card.kc2 > .actions {
  position: relative;
  z-index: 1;
}
.jail-sheet > .sheet-head,
.jail-sheet > .jail-lead {
  padding-inline-end: 78px;
}
.jail-sheet > .jail-lead {
  margin: 0 0 10px;
}
.sheet.trade > .sheet-head:has(> .ctimer) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding-inline-end: 0 !important;
  min-height: 52px !important;
}
.sheet.trade > .sheet-head:has(> .ctimer) > h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.sheet.trade > .sheet-head > .ctimer {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  float: none !important;
  margin: 0 !important;
  width: 44px !important;
  height: 44px !important;
  flex: none;
}
.sheet.trade > .sheet-head:has(> .ctimer) > h2 {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
.sheet.trade > .sheet-head > .ctimer {
  grid-column: 2 !important;
  grid-row: 1 !important;
}
.sheet.trade > .sheet-head:has(> .ctimer) > .icon-btn {
  position: static !important;
  inset: auto !important;
  grid-column: 3 !important;
  grid-row: 1 !important;
}
:dir(rtl) .sheet.trade > .sheet-head > .ctimer {
  position: static !important;
  inset: auto !important;
}
@media (orientation: landscape) and (max-height: 600px) {
  .overlay.side > .sheet.trade:has(> .sheet-head > .ctimer) {
    grid-template-rows: 34px minmax(0, 1fr) auto 36px !important;
  }
  .sheet.trade > .sheet-head:has(> .ctimer) {
    min-height: 0 !important;
    gap: 6px !important;
  }
  .sheet.trade > .sheet-head > .ctimer {
    width: 30px !important;
    height: 30px !important;
  }
  .sheet.trade > .sheet-head > .ctimer b {
    font-size: 14px !important;
  }
  .sheet.trade > .sheet-head > .ctimer small {
    font-size: 7px !important;
  }
}
.season-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f8da8e;
  font: 800 19px/1.2 var(--display);
  text-shadow: 0 2px 4px #122824;
  margin-top: 6px;
  min-width: 0;
}
.season-mark > img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  flex: none;
}
.season-mark > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.season-mark small {
  display: block;
  font: 700 11px/1.5 var(--body);
  color: #d3e4cf;
  text-align: center;
  letter-spacing: 0;
}
:root[data-season=halloween] .menu-panel {
  border-color: #dca34b;
  background:
    linear-gradient(
      155deg,
      rgba(30, 66, 65, .96),
      rgba(30, 35, 56, .98));
}
:root[data-season=halloween] .tagline {
  color: #d0e4ce;
}
@media (orientation: landscape) and (max-height: 600px) {
  .season-mark {
    font-size: 14px;
    margin-top: 2px;
    gap: 5px;
  }
  .season-mark > img {
    width: 38px;
    height: 38px;
  }
  .season-mark small {
    font-size: 9px;
  }
}
.jail-sheet > .ctimer {
  top: 16px !important;
  right: 18px !important;
  left: auto !important;
}
@media (max-width: 600px) {
  .jail-sheet > .sheet-head,
  .jail-sheet > .jail-lead {
    padding-inline-end: 64px;
  }
  .jail-sheet > .ctimer {
    right: 12px !important;
  }
}
.forgot-sheet > .acct-why {
  margin-top: 0;
  line-height: 1.45;
}
.forgot-sheet > .acct-links {
  margin-top: 14px;
  justify-content: flex-start;
}
.forgot-sheet .acct-form {
  gap: 12px;
}
.deletion-pending .menu-row {
  margin-top: 18px;
}
.prof-top > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.menu.lobby-wide .lb-acts {
  padding-bottom: 10px;
  box-sizing: border-box;
  min-width: 0;
}
.menu.lobby-wide .lb-acts .btn {
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.sheet.podium-sheet {
  align-items: stretch;
}
.sheet.podium-sheet .rank-list li {
  width: 100%;
  min-width: 0;
}
.tut-on .tut-target:not(input)::after {
  display: none;
}
.tut-pointer {
  position: fixed;
  z-index: 10080;
  pointer-events: none;
  font-size: 26px;
  line-height: 1;
  transform: translateX(-50%);
  animation: tutPoint .8s ease-in-out infinite alternate;
}
.tut-pointer[hidden] {
  display: none;
}
body.tut-on .overlay:has(.tut-target:not(input)) {
  padding-bottom: 48px;
}
body.tut-on .overlay:has(.tut-target:not(input)) > .sheet {
  max-height: calc(var(--visible-height) - var(--safe-t) - var(--safe-b) - 72px) !important;
}
@media (prefers-reduced-motion: reduce) {
  .tut-pointer {
    animation: none;
  }
}
.pcard {
  border-inline-start: 5px solid var(--pc);
}
.pcard .av,
.pcard.premium-player .av {
  outline: 3px solid var(--pc);
  outline-offset: 2px;
}
.pcard .pname > b::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: 0 0 0 1px #ffffff66;
  margin-inline-end: 6px;
  vertical-align: 1px;
}
:root[data-season=halloween] .menu-panel {
  background:
    linear-gradient(
      155deg,
      rgba(47, 29, 47, .97),
      rgba(22, 22, 39, .98));
  border-color: #E5AD55;
}
:root[data-season=halloween] .season-mark {
  color: #FFD089;
  font-size: 36px;
  gap: 12px;
  margin-top: 28px;
  line-height: 1.15;
}
:root[data-season=halloween] .season-mark > img {
  width: 96px;
  height: 96px;
}
:root[data-season=halloween] .season-mark small {
  color: #E6C5CD;
  font-size: 12px;
}
:root[data-season=halloween] .tagline {
  color: #F3D4D8;
}
.flight-opening[data-atmosphere=halloween],
.flight-opening[data-atmosphere=night] {
  background: var(--flight-sky);
}
.flight-opening[data-atmosphere=halloween] .flight-seat,
.flight-opening[data-atmosphere=night] .flight-seat {
  background: transparent;
  color: #FFF2DD;
}
.announce.bankruptcy-notice {
  width: min(620px, calc(100% - 28px));
  box-sizing: border-box;
}
.announce.bankruptcy-notice b {
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.announce.bankruptcy-notice span {
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.menu-lanterns {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.menu-lanterns[hidden] {
  display: none;
}
.menu-lanterns > img {
  position: absolute;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 3px 3px #120B18AA);
}
.menu-action-label {
  min-width: 0;
  white-space: normal;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
@media (orientation: landscape) and (max-height: 380px) {
  .menu-panel:has(> .menu-head) .menu-row2 > .btn {
    padding-inline: 8px;
    gap: 5px;
    font-size: 12px;
    min-width: 0;
  }
  .menu-panel:has(> .menu-head) .menu-row3 > .btn {
    flex-direction: column;
    padding: 3px 5px;
    gap: 2px;
    font-size: 12px;
    min-width: 0;
  }
  .menu-panel:has(> .menu-head) .menu-row3 > .btn > .ic {
    width: 14px;
    height: 14px;
  }
  .menu-panel:has(> .menu-head) .menu-row3 .menu-action-label {
    overflow-wrap: normal;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  .menu:not(.wide):not(.lobby-wide):not(.join-wide) {
    gap: 14px;
    padding-top: calc(20px + var(--safe-t));
    padding-bottom: calc(64px + var(--safe-b));
  }
  .menu:not(.wide) .hero {
    gap: 4px;
    padding-block: 12px 4px;
  }
  .menu:not(.wide) .hero-logo {
    width: 100px;
    height: 100px;
  }
  .menu:not(.wide) .wordmark {
    font-size: 38px;
  }
  .menu:not(.wide) .tagline {
    font-size: 11px;
  }
  :root[data-season=halloween] .menu:not(.wide) .season-mark {
    font-size: 24px;
    margin-top: 12px;
    gap: 6px;
  }
  :root[data-season=halloween] .menu:not(.wide) .season-mark > img {
    width: 40px;
    height: 40px;
  }
  :root[data-season=halloween] .menu:not(.wide) .season-mark small {
    font-size: 9px;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  :root[data-season=halloween] .season-mark {
    font-size: 22px;
    gap: 6px;
    margin-top: 12px;
  }
  :root[data-season=halloween] .season-mark > img {
    width: 44px;
    height: 44px;
  }
  :root[data-season=halloween] .season-mark small {
    font-size: 9px;
  }
  .announce.bankruptcy-notice b {
    font-size: 16px;
  }
  .announce.bankruptcy-notice span {
    font-size: 12px;
  }
}
.event-access {
  color: #B9F0BF;
  font-weight: 800;
  line-height: 1.25;
}
.flight-ready.is-away {
  color: #FFB2A6;
}
.sact > small.price {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  color: var(--soft);
}
@media (orientation: landscape) and (max-height: 380px) {
  :root[data-season=halloween] .season-mark {
    font-size: 17px;
    margin-top: 4px;
  }
}
@media (orientation: landscape) and (max-height: 540px), (orientation: portrait) and (max-width: 600px) {
  main.menu.shop-preview-mode #menu-panel.shop {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto minmax(112px, 1fr) auto !important;
    grid-template-areas: "premium" "jeton" "tabs" "spv" "grid" "back" !important;
    height: calc(100dvh - 28px - var(--safe-t) - var(--safe-b));
    max-height: none !important;
    min-height: 0;
    overflow: hidden !important;
    padding: 12px;
    gap: 8px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .shop-head {
    display: none;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .premium-card {
    grid-area: premium;
    margin: 0;
    padding: 8px 10px;
    gap: 6px;
    min-width: 0;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-copy > b {
    font-size: 16px;
    line-height: 1.2;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-copy > small {
    display: none;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-choice {
    min-height: 36px !important;
    padding: 5px 8px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-policy-link {
    font-size: 11px;
    line-height: 1.2;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .jeton {
    grid-area: jeton;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 8px;
    min-height: 40px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .jeton > .coin {
    width: 23px;
    height: 23px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .jeton > b {
    font-size: 22px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .jeton > span {
    font-size: 12px;
    flex: 1 1 90px;
    min-width: 0;
  }
  main.menu.shop-preview-mode #menu-panel.shop .reward-pause-mobile {
    font-size: 10px;
    line-height: 1.2;
  }
  main.menu.shop-preview-mode #menu-panel.shop .ad-coin {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    min-height: 34px !important;
    height: auto !important;
    flex: 0 1 auto;
    max-width: 100%;
    padding: 4px 9px;
    gap: 5px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .ad-coin b {
    font-size: 12px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .ad-coin small {
    font-size: 10px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .ad-coin svg {
    width: 17px;
    height: 17px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .stabs {
    grid-area: tabs;
    padding: 3px;
    margin: 0;
    gap: 4px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .stabs button {
    min-height: 34px;
    padding: 4px;
    font-size: 14px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .spv {
    grid-area: spv;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 5px 8px;
    gap: 8px;
    min-height: 54px;
    margin: 0;
  }
  main.menu.shop-preview-mode #menu-panel.shop .spvimg,
  main.menu.shop-preview-mode #menu-panel.shop .spvsvg {
    width: 46px;
    height: 46px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .spvinfo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
  }
  main.menu.shop-preview-mode #menu-panel.shop .spvinfo > b {
    font-size: 14px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    min-width: 0;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sact {
    gap: 4px;
    flex-wrap: wrap;
    min-width: 0;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sact .btn {
    min-height: 34px !important;
    padding: 4px 9px;
    font-size: 12px;
    line-height: 1.2;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sact > small {
    font-size: 10px;
    line-height: 1.2;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .sgrid {
    grid-area: grid;
    min-height: 0;
    overflow: auto;
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
    grid-auto-rows: minmax(116px, auto);
    align-content: start;
    gap: 7px;
    margin: 0;
    padding: 2px 2px 8px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem {
    min-height: 116px;
    grid-template-rows: 56px auto auto;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 8px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem .sth {
    height: 56px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem .sth img.cthumb {
    width: 54px;
    height: 54px;
    max-width: 54px;
    max-height: 54px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem > b {
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem > em {
    font-size: 11px;
    line-height: 1.2;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem > small {
    font-size: 10px;
    line-height: 1.2;
  }
  main.menu.shop-preview-mode #menu-panel.shop > [data-go=main] {
    grid-area: back;
    min-height: 34px !important;
    max-height: none;
    padding: 5px 12px;
    font-size: 14px;
    margin: 0;
  }
}
@media (min-height: 541px) and (min-width: 601px) {
  main.menu.shop-preview-mode {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
    padding: 20px max(20px, var(--safe-r)) 20px max(20px, var(--safe-l));
  }
  main.menu.shop-preview-mode .shop-live-hero {
    width: 100%;
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }
  main.menu.shop-preview-mode #menu-panel.shop {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto minmax(120px, 1fr) auto;
    grid-template-areas: "premium" "jeton" "tabs" "spv" "grid" "back";
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding: 18px;
    gap: 12px;
    overflow: hidden;
    align-self: stretch;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .shop-head {
    display: none;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .premium-card {
    grid-area: premium;
    margin: 0;
    padding: 12px;
    gap: 8px;
    min-width: 0;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-copy > b {
    font-size: 22px;
    line-height: 1.2;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-copy > small {
    display: none;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-choice {
    min-height: 48px;
    padding: 8px 12px;
    font-size: 16px;
    white-space: normal;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-policy-link {
    font-size: 12px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .jeton {
    grid-area: jeton;
    min-height: 52px;
    padding: 10px 12px;
    gap: 8px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .jeton > b {
    font-size: 26px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .jeton > span {
    flex: 1;
    min-width: 0;
    font-size: 14px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .ad-coin {
    position: static;
    transform: none;
    margin: 0;
    min-height: 42px;
    padding: 6px 12px;
    flex: none;
  }
  main.menu.shop-preview-mode #menu-panel.shop .ad-coin b {
    font-size: 15px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .ad-coin small {
    font-size: 11px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .stabs {
    grid-area: tabs;
    margin: 0;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .stabs button {
    min-height: 44px;
    font-size: 17px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .spv {
    grid-area: spv;
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 8px 10px;
    gap: 10px;
    margin: 0;
    min-height: 80px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .spvimg,
  main.menu.shop-preview-mode #menu-panel.shop .spvsvg {
    width: 64px;
    height: 64px;
    object-fit: contain;
  }
  main.menu.shop-preview-mode #menu-panel.shop .spvinfo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    min-width: 0;
  }
  main.menu.shop-preview-mode #menu-panel.shop .spvinfo > b {
    font-size: 19px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sact .btn {
    width: auto;
    min-height: 42px;
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1.2;
    white-space: normal;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sact > small {
    font-size: 11px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .sgrid {
    grid-area: grid;
    max-height: none;
    min-height: 0;
    overflow: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(144px, auto);
    align-content: start;
    gap: 10px;
    padding: 2px 2px 8px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem {
    min-height: 144px;
    grid-template-rows: 82px auto auto;
    gap: 5px;
    padding: 8px 6px;
    border-radius: 8px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem .sth {
    width: 100%;
    height: 82px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem .sth img.cthumb {
    width: 78px;
    height: 78px;
    max-width: 78px;
    max-height: 78px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem .sth img:not(.cthumb) {
    width: 100%;
    max-width: 110px;
    max-height: 66px;
    object-fit: contain;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem .sth svg {
    width: 74px;
    height: 74px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem > b {
    font-size: 15px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem > em {
    font-size: 12px;
    line-height: 1.2;
  }
  main.menu.shop-preview-mode #menu-panel.shop > [data-go=main] {
    grid-area: back;
    width: 100%;
    min-height: 44px;
    padding: 8px 16px;
    margin: 0;
    font-size: 17px;
  }
  main.menu.shop-preview-mode #menu-panel.shop:has([data-tab=board][aria-selected=true]) > .sgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-height: 541px) and (min-width: 861px) and (max-width: 1180px) {
  main.menu.shop-preview-mode #menu-panel.shop > .sgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-height: 541px) and (max-height: 740px) and (min-width: 861px) {
  main.menu.shop-preview-mode #menu-panel.shop {
    padding: 12px;
    gap: 8px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .premium-card {
    padding: 8px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-copy > b {
    font-size: 18px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-choice {
    min-height: 40px;
    font-size: 14px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .spv {
    min-height: 64px;
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 6px 8px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .spvimg,
  main.menu.shop-preview-mode #menu-panel.shop .spvsvg {
    width: 48px;
    height: 48px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .sgrid {
    grid-auto-rows: minmax(126px, auto);
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem {
    min-height: 126px;
    grid-template-rows: 64px auto auto;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem .sth {
    height: 64px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem .sth img.cthumb {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
  }
}
@media (orientation: portrait) and (min-width: 601px) and (max-width: 860px) {
  main.menu.shop-preview-mode {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(200px, 30dvh) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  main.menu.shop-preview-mode #menu-panel.shop {
    max-width: none;
    grid-template-rows: auto auto auto auto minmax(100px, 1fr) auto;
    padding: 12px;
    gap: 8px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-card.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-card.active .premium-policy-link {
    grid-column: 1/-1;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .sgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (orientation: landscape) and (max-height: 430px) {
  main.menu.shop-preview-mode #menu-panel.shop {
    height: calc(100dvh - 12px - var(--safe-t) - var(--safe-b));
    padding: 6px;
    gap: 4px;
    grid-template-rows: auto auto auto auto minmax(90px, 1fr) auto !important;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .premium-card {
    padding: 4px 6px;
    gap: 3px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-copy > b {
    font-size: 12px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-choice {
    min-height: 28px !important;
    font-size: 10px;
    padding: 3px 5px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-policy-link {
    font-size: 9px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .jeton {
    min-height: 32px;
    padding: 3px 5px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .reward-pause-mobile {
    display: none;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .spv {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 36px;
    padding: 2px 5px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .spvimg,
  main.menu.shop-preview-mode #menu-panel.shop .spvsvg {
    width: 32px;
    height: 32px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .spvinfo > b {
    font-size: 11px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sact .btn {
    font-size: 10px;
    min-height: 28px !important;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .sgrid {
    grid-auto-rows: minmax(96px, auto);
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem {
    min-height: 96px;
    grid-template-rows: 40px auto auto;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem .sth {
    height: 40px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem .sth img.cthumb {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
  }
}
.tier-chip.kozmos-tier {
  background: transparent;
  color: var(--tc);
  border: 0;
  gap: 5px;
  padding: 0;
  font-size: 12px;
  white-space: nowrap;
}
@media (orientation: landscape) and (max-height: 320px) {
  main.menu.shop-preview-mode #menu-panel.shop {
    height: calc(100dvh - 8px);
    max-height: calc(100dvh - 8px);
    padding: 4px;
    gap: 3px;
    grid-template-rows: auto auto auto auto minmax(84px, 1fr) auto;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .premium-card {
    padding: 2px 4px;
    gap: 1px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-copy {
    display: none;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-choice {
    min-height: 24px !important;
    font-size: 9px;
    padding: 2px 4px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .premium-policy-link {
    font-size: 8px;
    line-height: 10px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .jeton {
    min-height: 26px;
    padding: 1px 4px;
    gap: 3px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .jeton > .coin {
    width: 17px;
    height: 17px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .jeton > b {
    font-size: 16px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .jeton > span {
    font-size: 9px;
    flex: 1 1 40px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .ad-coin {
    min-height: 24px !important;
    font-size: 9px;
    padding: 1px 5px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .ad-coin b,
  main.menu.shop-preview-mode #menu-panel.shop .ad-coin small {
    font-size: 9px;
    line-height: 10px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .stabs {
    min-height: 26px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .stabs > button,
  main.menu.shop-preview-mode #menu-panel.shop > .btn[data-go=main] {
    min-height: 26px !important;
    font-size: 11px;
    padding: 2px 5px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .spv {
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 28px;
    padding: 1px 4px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .spvimg,
  main.menu.shop-preview-mode #menu-panel.shop .spvsvg {
    width: 24px;
    height: 24px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sact .btn {
    min-height: 24px !important;
    padding: 2px 4px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .sgrid {
    grid-auto-rows: minmax(82px, auto);
    gap: 4px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem {
    min-height: 82px;
    grid-template-rows: 32px auto auto;
    padding: 3px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem .sth {
    height: 32px;
  }
  main.menu.shop-preview-mode #menu-panel.shop .sitem .sth img.cthumb {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
  }
}
.tier-chip.kozmos-tier > .rank-crest {
  width: 32px;
  height: 36px;
  flex: none;
  filter: drop-shadow(0 1px 3px #0006);
}
.acct-chip .tier-chip.kozmos-tier {
  font-size: 10px;
}
.acct-chip .tier-chip.kozmos-tier > .rank-crest {
  width: 23px;
  height: 26px;
}
.rank-info {
  width: min(760px, 94vw);
  height: min(600px, calc(var(--visible-height) - 24px - var(--safe-t) - var(--safe-b)));
  max-height: calc(var(--visible-height) - 24px - var(--safe-t) - var(--safe-b));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
}
.rank-info > .sheet-head {
  flex: none;
  margin: 0;
}
.rank-ladder {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.rank-ladder > li {
  color: var(--tc);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(
      160deg,
      #ffffff0b,
      #00000018);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 #ffffff18, inset 0 -2px 0 color-mix(in srgb, var(--tc) 65%, transparent);
}
.rank-ladder .rank-crest {
  height: min(116px, 55%);
  width: 100px;
  flex: 0 1 auto;
  min-height: 0;
  filter: drop-shadow(0 4px 1px #020914) drop-shadow(0 0 8px color-mix(in srgb, var(--tc) 35%, transparent));
}
.rank-crest .crest-glint {
  animation: crestShine 4s ease-in-out infinite;
}
@keyframes crestShine {
  0%, 100% {
    opacity: .18;
  }
  50% {
    opacity: .8;
  }
}
.rank-crest--elite {
  overflow: visible;
}
.rank-crest--elite .crest-metal {
  filter: drop-shadow(0 0 2px color-mix(in srgb, currentColor 70%, transparent));
}
.rank-crest--elite .crest-aura {
  opacity: .85;
}
.rank-crest--elite .crest-sweep {
  animation: crestSweep 4.6s ease-in-out infinite;
}
.rank-crest--elite .crest-sparks {
  animation: crestSpark 3s ease-in-out infinite;
  transform-origin: 50px 56px;
}
.rank-crest--diamond .crest-sweep {
  animation-delay: -1.3s;
}
.rank-crest--kozmos .crest-sweep {
  animation-delay: -2.6s;
  animation-duration: 4s;
}
.rank-crest--kozmos .crest-aura {
  animation: crestAura 3.6s ease-in-out infinite;
}
.rank-ladder .rank-crest--elite {
  filter: drop-shadow(0 3px 2px #020914) drop-shadow(0 0 10px color-mix(in srgb, var(--tc) 72%, transparent));
}
.rank-ladder .rank-crest--kozmos {
  filter: drop-shadow(0 3px 2px #020914) drop-shadow(0 0 13px #db85ffb3);
}
@keyframes crestSweep {
  0%, 8% {
    transform: translateX(0);
    opacity: 0;
  }
  16% {
    opacity: .9;
  }
  43% {
    transform: translateX(145px);
    opacity: 0;
  }
  100% {
    transform: translateX(145px);
    opacity: 0;
  }
}
@keyframes crestSpark {
  0%, 100% {
    opacity: .45;
    transform: scale(.88);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}
@keyframes crestAura {
  0%, 100% {
    opacity: .62;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rank-crest .crest-glint {
    animation: none;
    opacity: .5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rank-crest--elite .crest-sweep,
  .rank-crest--elite .crest-sparks,
  .rank-crest--elite .crest-aura {
    animation: none;
  }
  .rank-crest--elite .crest-sweep {
    opacity: .3;
    transform: translateX(65px);
  }
  .rank-crest--elite .crest-sparks {
    opacity: 1;
  }
}
.rank-ladder b {
  font-size: 16px;
}
.rank-ladder .num {
  font-size: 13px;
  color: var(--soft);
}
@media (orientation: landscape) and (max-height: 540px) {
  .rank-info {
    padding: 10px 14px;
  }
  .rank-info > .sheet-head h2 {
    font-size: 22px;
  }
  .rank-info > .sheet-head .icon-btn {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }
  .rank-ladder {
    margin-top: 6px;
    gap: 6px;
  }
  .rank-ladder .rank-crest {
    height: min(80px, 55%);
    width: 74px;
  }
  .rank-ladder b {
    font-size: 13px;
  }
  .rank-ladder .num {
    font-size: 11px;
  }
}
.rk-modes {
  display: flex;
  min-height: 38px;
  margin: 8px 0;
  gap: 4px;
}
.rk-modes > button {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.rk-team {
  display: grid;
  gap: 9px;
  padding: 11px;
  min-width: 0;
  border: 1px solid #8aa9e333;
  border-radius: 13px;
  background: #08142a80;
}
.rk-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.rk-team-head > b {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  font: 800 14px/1.25 var(--display);
  color: var(--ink);
}
.rk-team-head > b > svg,
.rk-team .btn > svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.rk-team .btn {
  min-height: 34px;
  max-width: 100%;
  font-size: 12px;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 9px;
  line-height: 1.2;
}
.rk-team .rk-team-leave {
  flex: none;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--soft);
  background: #182740;
  box-shadow: inset 0 0 0 1px #9ab8ed33;
}
.rk-team-head > .rk-team-leave,
.rk-team-code > .btn,
.rk-team-join > .btn {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}
.rk-team .rk-team-leave:hover {
  color: #ffb5b5;
  box-shadow: inset 0 0 0 1px #ff919180;
}
.rk-team-create {
  width: 100%;
  justify-content: center;
}
.rk-team-join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
}
.rk-team-join > .text-in {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 9px;
}
.rk-team-members {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}
.rk-team-member {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 33px;
  padding: 6px 8px;
  background: #21355480;
  border: 1px solid #8aa9e329;
  border-radius: 9px;
  font: 800 12px/1.3 var(--body);
}
.rk-team-member > svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--gold);
}
.rk-team-member > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rk-team-member.waiting {
  color: var(--soft);
  background: transparent;
  border-style: dashed;
}
.rk-team-member.waiting > svg {
  color: var(--soft);
}
.rk-team-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid #8aa9e329;
}
.rk-team-code > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.rk-team-code small {
  font: 700 10px/1.2 var(--body);
  color: var(--soft);
}
.rk-team-code code {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 12px/1.4 ui-monospace, monospace;
  letter-spacing: .04em;
  color: var(--ink);
}
.rk-team-code > .btn {
  flex: none;
}
.offer-preferences-layer {
  z-index: 200;
  grid-template-columns: minmax(0, 1fr);
}
.offer-preferences-layer > .sheet {
  justify-self: center;
  width: min(620px, 100%);
  max-width: 100%;
  min-width: 0;
}
.sheet.trade .tmoney button[data-act="m+"],
.sheet.trade .tmoney button[data-act=m-] {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.sheet.trade .tmeter .tbar {
  touch-action: none;
  cursor: ew-resize;
  user-select: none;
  min-height: 12px;
  margin: 9px 14px 10px;
  background: #a52942;
}
.sheet.trade .tmeter .tbar .balance-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  border-inline-start: 2px solid #ffd36e;
  background:
    repeating-linear-gradient(
      135deg,
      #192a48b3 0 4px,
      #192a4866 4px 8px);
  border-radius: 0 7px 7px 0;
}
.trade-limits {
  display: flex;
  justify-content: space-between;
  gap: 4px 12px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--gold-hi);
}
.sheet.trade .tmeter.high {
  border-color: #ed5f7a;
}
.sheet.trade .tmeter.high > p,
.sheet.trade .tmeter.high .tpct {
  color: #ff8ca2;
}
.sheet.trade .tmeter .tbar:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 6px;
}
.sheet.trade .tmeter .tbar .needle {
  display: grid;
  place-items: center;
  top: 50% !important;
  width: 27px;
  height: 28px !important;
  margin: 0;
  transform: translate(-50%, -50%);
  border: 2px solid #142856;
  border-radius: 8px;
  background: #fff;
  color: #142856;
  font: 900 18px/1 sans-serif;
  box-shadow: 0 2px 6px #0008;
  transition: none;
}
.sheet.trade .trade-drag-hint {
  font-weight: 800;
  color: #d4e3ff;
}
#modal > .overlay:has(> .podium-sheet) {
  grid-template-columns: minmax(0, 1fr);
}
#modal > .overlay > .sheet.podium-sheet {
  justify-self: center;
  width: min(900px, 100%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.sheet.podium-sheet .wpod > *,
.sheet.podium-sheet .reward > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.sheet.podium-sheet .reward {
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  flex-wrap: wrap;
}
.sheet.podium-sheet .reward b {
  white-space: normal;
  overflow-wrap: anywhere;
}
.sheet.podium-sheet > .menu-row {
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sheet.podium-sheet > .menu-row .btn {
  min-width: 0;
  white-space: normal;
}
@media (orientation: landscape) and (max-height: 540px) {
  .rk-team {
    gap: 6px;
    padding: 7px;
  }
  .rk-team-head > b {
    font-size: 12px;
  }
  .rk-team-member {
    min-height: 28px;
    padding: 4px 6px;
    font-size: 11px;
  }
  .rk-team-code {
    padding-top: 6px;
  }
  .rk-team .btn,
  .rk-team-join > .text-in {
    min-height: 30px;
  }
}
@media (max-width: 420px) {
  .rank-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
  .rk-top {
    flex-wrap: wrap;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .menu.ranked-mode .rk-left {
    overflow: auto;
  }
  .menu.ranked-mode .rk-side {
    min-height: 0;
    overflow: auto;
  }
  .menu.ranked-mode .rk-side > .rk-me {
    height: auto !important;
    min-height: 128px !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
.festival-scenery {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  --fest-sky-top:#fa8c93;
  --fest-sky-bottom:#ffdfae;
  background: #edbca7;
}
.festival-scenery > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.festival-theme-sunset {
  --fest-sky-top:#90519b;
  --fest-sky-bottom:#ffc27d;
}
.festival-theme-emerald {
  --fest-sky-top:#3faeab;
  --fest-sky-bottom:#ddf6be;
}
.festival-theme-night {
  --fest-sky-top:#202553;
  --fest-sky-bottom:#7779b5;
}
.festival-theme-candy {
  --fest-sky-top:#c29ee7;
  --fest-sky-bottom:#ffe2ed;
}
.festival-theme-halloween {
  --fest-sky-top:#7c546b;
  --fest-sky-bottom:#efa578;
}
.menu.festival-menu {
  inset: 0;
  min-height: 0;
  height: var(--visible-height,100dvh);
  padding: calc(14px + var(--safe-t)) max(14px, var(--safe-r)) calc(10px + var(--safe-b)) max(14px, var(--safe-l));
  gap: 16px;
  overflow: auto;
  scrollbar-gutter: stable;
  isolation: isolate;
  color: #f7f2ff;
}
.menu.festival-front {
  display: block;
}
.menu-panel.festival-home {
  width: 100%;
  max-width: 1680px;
  height: 100%;
  min-height: 500px;
  margin: auto;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  overflow: visible;
}
.menu.festival-front > .menu-panel.festival-home {
  background: none;
  border: 0;
  box-shadow: none;
  max-height: none;
}
.festival-home *,
.festival-detail > * {
  min-width: 0;
}
.festival-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.festival-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  justify-content: center;
  text-align: center;
  filter: drop-shadow(0 4px 0 #343061);
}
.festival-brand > img {
  width: clamp(62px, 8dvh, 110px);
  height: clamp(62px, 8dvh, 110px);
  object-fit: contain;
}
.festival-brand h1 {
  font: 800 clamp(22px, 2.7vw, 46px)/.95 var(--display);
  color: #ffe083;
  margin: 0;
  letter-spacing: -.025em;
  text-shadow: 1px 2px #48295e, -1px -1px #48295e;
}
.festival-brand small {
  font: 800 12px/1.5 var(--body);
  color: #fff4dd;
  letter-spacing: .15em;
}
.festival-header #acct-slot {
  align-self: start;
  max-width: 100%;
}
.festival-header .acct-chip {
  min-height: 64px;
  max-width: 100%;
  padding: 10px 16px;
  background:
    linear-gradient(
      145deg,
      #333760,
      #202144);
  border: 2px solid #8584c2;
  border-radius: 24px;
  box-shadow: 0 5px 0 #242445;
  flex-wrap: wrap;
  justify-content: start;
  gap: 8px;
}
.festival-header .acct-chip > span {
  white-space: normal;
  overflow-wrap: anywhere;
}
.festival-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  align-items: center;
  gap: 10px;
}
.festival-tools .icon-btn,
.festival-detail-header > .icon-btn {
  background:
    linear-gradient(
      145deg,
      #363c71,
      #23254b);
  border: 2px solid #9894ce;
  box-shadow: 0 4px 0 #2b2856;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}
.festival-language {
  position: relative;
}
.festival-language small {
  position: absolute;
  bottom: 2px;
  inset-inline: 0;
  font-size: 9px;
  line-height: 1;
}
.festival-language svg {
  width: 20px;
  transform: translateY(-4px);
}
.festival-wallet {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #a19bcf;
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      #333760,
      #202144);
  padding: 6px 18px;
  box-shadow: 0 4px 0 #2b2856;
}
.festival-wallet svg {
  width: 30px;
  height: 30px;
}
.festival-wallet b {
  font: 800 26px/1 var(--display);
  color: #ffe083;
}
.festival-body {
  display: grid;
  grid-template-columns: clamp(160px, 17vw, 250px) minmax(0, 1fr) clamp(200px, 23vw, 340px);
  align-items: center;
  gap: 24px;
  min-height: 0;
}
.festival-navigation {
  display: grid;
  gap: 12px;
  align-content: center;
}
.festival-nav-btn {
  min-height: 72px;
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 14px 9px 9px;
  border: 2px solid #8e8abc;
  border-radius: 22px;
  background:
    linear-gradient(
      135deg,
      #38385f,
      #212144);
  box-shadow: 0 5px 0 #352d5a, 0 10px 20px #50305725;
  text-align: start;
  font: 800 clamp(15px, 1.7vw, 24px)/1.1 var(--display);
}
.festival-nav-btn > i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background:
    linear-gradient(
      160deg,
      #ff8699,
      #ec536f);
  border-radius: 15px;
  border: 2px solid #ffbac5;
  box-shadow: inset 0 -4px #bc37544d;
  color: #fff;
}
.festival-nav-btn:nth-child(2) > i {
  background:
    linear-gradient(
      160deg,
      #51ceef,
      #3289e7);
  border-color: #b5eeff;
}
.festival-nav-btn:nth-child(3) > i {
  background:
    linear-gradient(
      160deg,
      #ffe38a,
      #f4b947);
  border-color: #fff3c1;
  color: #71431a;
}
.festival-nav-btn:nth-child(4) > i {
  background:
    linear-gradient(
      160deg,
      #b0a0ee,
      #7760cf);
  border-color: #d7ceff;
}
.festival-nav-btn svg {
  width: 28px;
  height: 28px;
}
.festival-nav-btn > span {
  overflow-wrap: anywhere;
}
.festival-nav-btn .rk-chip {
  position: absolute;
  top: -9px;
  inset-inline-end: 8px;
  max-width: 80%;
  font-size: 11px;
  padding: 2px 7px;
}
.festival-stage {
  position: relative;
  align-self: stretch;
  min-height: 200px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.festival-island {
  position: absolute;
  top: -2%;
  left: 0;
  width: 100%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 15px 8px #40345a40);
  pointer-events: none;
}
.festival-platform {
  position: absolute;
  inset: 74% 2% 5%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 50% 30%,
      #fff0b1 0 50%,
      #ffcb5c 51% 60%,
      #a26ad3 61% 75%,
      #674897 76%);
  box-shadow: 0 14px 0 #624397, 0 19px 0 #493676;
  z-index: 1;
}
.festival-pawn {
  position: absolute;
  z-index: 2;
  inset: 15% 5% 3%;
  min-height: 0;
  pointer-events: none;
}
.festival-pawn > canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.festival-costume {
  z-index: 3;
  align-self: end;
  position: absolute;
  bottom: -14px;
  max-width: 90%;
  border: 1px solid #bca2e6;
  background: #292449ed;
  padding: 5px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 12px/1.2 var(--body);
  box-shadow: 0 3px 0 #443365;
}
.festival-costume span {
  display: flex;
  flex: 0 0 auto;
}
.festival-costume svg {
  width: 13px;
  height: 13px;
}
.festival-pawn-unavailable {
  background: url(../assets/logo/logo-256.png) center/contain no-repeat;
  opacity: .8;
}
.festival-stage .festival-island {
  left: 0;
  width: 100%;
}
.festival-friends {
  display: grid;
  gap: 12px;
  align-self: end;
  margin-bottom: 32px;
  padding: 20px;
  border: 2px solid #b2a6d9;
  border-radius: 26px;
  background:
    linear-gradient(
      150deg,
      #39365e,
      #242445);
  box-shadow: 0 7px 0 #342b55, 0 14px 30px #49305725;
}
.festival-friends h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  line-height: 1.2;
  color: #fff4df;
  margin: 0;
  overflow-wrap: anywhere;
}
.festival-friends h2 svg {
  width: 24px;
  flex-shrink: 0;
}
.festival-seats {
  display: flex;
  gap: 10px;
}
.festival-seats > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 2px dashed #a3a1c9;
  border-radius: 50%;
  font: 800 24px/1 var(--display);
  color: #a3a1c9;
}
.festival-menu .btn {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}
.festival-friends .btn {
  min-height: 46px;
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 16px;
}
.festival-friends .btn svg {
  flex-shrink: 0;
  width: 22px;
}
.festival-play-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .42fr);
  align-items: stretch;
  gap: 20px;
  position: relative;
  z-index: 3;
  padding-top: 12px;
}
.festival-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.festival-mode {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #c9bce9;
  border-radius: 24px;
  padding: 14px 10px;
  color: #2b2858;
  background:
    linear-gradient(
      160deg,
      #f1e8ff,
      #bbabdf);
  box-shadow: 0 5px 0 #68509b, 0 10px 24px #49305725;
  font: 800 clamp(16px, 1.8vw, 25px)/1.1 var(--display);
}
.festival-mode i {
  display: grid;
  place-items: center;
}
.festival-mode svg {
  width: 32px;
  height: 32px;
}
.festival-mode[aria-pressed=true] {
  border-color: #fff0b1;
  background:
    linear-gradient(
      160deg,
      #fff6cb,
      #ffdb84);
  box-shadow: 0 0 0 3px #f3b846, 0 6px 0 #b77930;
  color: #3e2b48;
  position: relative;
}
.festival-mode[aria-pressed=true]::after {
  content: "\2713";
  position: absolute;
  inset-inline-end: 10px;
  top: 8px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font: 800 13px/1 var(--body);
  border-radius: 50%;
  background: #aa631e;
  color: #fff;
}
.festival-home .festival-play {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100px;
  padding: 16px;
  border: 3px solid #8affed;
  border-radius: 32px;
  background:
    linear-gradient(
      160deg,
      #3cf6df,
      #00beac);
  color: #063d52;
  box-shadow:
    inset 0 -7px #00978c60,
    0 7px 0 #236c79,
    0 15px 25px #42336030;
  font: 800 clamp(30px, 4.2vw, 58px)/1 var(--display);
  text-shadow: 0 2px #a0fff044;
}
.festival-play > span {
  font-size: .65em;
}
.festival-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  min-width: 0;
  padding-top: 4px;
}
.festival-footer .menu-legal {
  font-size: 11px;
  gap: 5px 14px;
}
.festival-footer .menu-legal a {
  color: #292142;
  text-shadow: 0 1px #ffffff55;
  font-weight: 800;
}
.festival-version {
  font-size: 11px;
  color: #292142;
  font-weight: 800;
}
.festival-social-slot {
  flex: 0 1 auto;
  min-width: 0;
}
.festival-social-slot .menu-social {
  display: flex !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  gap: 8px !important;
  padding: 0 !important;
  z-index: auto !important;
  width: auto !important;
  height: auto !important;
}
.festival-social-slot .soc-btn {
  width: auto !important;
  height: auto !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(
      150deg,
      #353761,
      #242445) !important;
  border: 1.5px solid #b3a6d7;
  box-shadow: 0 3px 0 #443761 !important;
  font: 800 13px/1.1 var(--body) !important;
  gap: 8px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #f7f2ff;
}
.festival-social-slot .soc-btn span {
  display: inline !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.festival-social-slot .soc-btn svg,
.festival-social-slot .soc-btn img {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}
.festival-menu button:hover {
  filter: brightness(1.08);
}
.festival-menu button:active {
  transform: translateY(2px);
}
.festival-menu button:disabled {
  filter: saturate(.3);
  cursor: default;
}
.menu.festival-detail {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  max-width: none;
}
.festival-detail-header {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.festival-brand.compact {
  flex-direction: row;
  text-align: start;
  gap: 10px;
}
.festival-brand.compact > img {
  width: 52px;
  height: 52px;
}
.festival-brand.compact h1 {
  font-size: 28px;
}
.festival-brand.compact small {
  font-size: 10px;
}
.menu.festival-detail > .menu-panel {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  align-self: center;
  padding: clamp(16px, 2.3vw, 32px);
  gap: 16px;
  border: 2px solid #c0a5dc;
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      #34335cfa,
      #242444fa);
  box-shadow: 0 7px 0 #443163, 0 18px 40px #44316440;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.festival-detail-hero {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  max-height: 100%;
  align-self: stretch;
  align-content: center;
}
.festival-detail-island {
  width: 100%;
  height: auto;
  max-height: 55dvh;
  object-fit: contain;
  filter: drop-shadow(0 20px 15px #35285555);
}
.festival-detail-hero .tagline {
  letter-spacing: .1em;
  color: #fff2e6;
}
.festival-detail-footer {
  grid-column: 1/-1;
  grid-row: 3;
}
.festival-detail .btn-dark {
  background:
    linear-gradient(
      145deg,
      #53517e,
      #373759);
  box-shadow:
    inset 0 0 0 1.5px #8c83b4,
    inset 0 -4px #24264560,
    0 4px 0 #242444;
}
.festival-detail .btn-gold {
  background:
    linear-gradient(
      160deg,
      #fff0b3,
      #fac960);
  color: #36284b;
  box-shadow:
    inset 0 0 0 2px #fff1bc,
    inset 0 -4px #dea44280,
    0 4px 0 #936b3d;
}
.festival-detail .text-in {
  background: #1e203c;
  box-shadow: inset 0 0 0 1.5px #8984b3;
  max-width: 100%;
  min-width: 0;
}
.festival-detail .seg button[aria-pressed=true] {
  background: #ffe08d;
  color: #3b2e48;
}
.festival-detail .seg {
  max-width: 100%;
  background: #20213f;
}
.festival-detail .seg button {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}
.festival-detail .field > span {
  color: #d8d3ee;
}
.festival-detail .room-set,
.festival-detail .seat,
.festival-detail .rk-me,
.festival-detail .rk-team {
  background-color: #393958;
  border-color: #a198c2;
}
.festival-detail .room-row {
  max-width: 100%;
}
.festival-detail .room-row .rr-main {
  min-width: 0;
}
.menu.festival-detail.join-wide,
.menu.festival-detail.lobby-wide,
.menu.festival-detail.ranked-mode {
  grid-template-columns: minmax(0, 1fr);
}
.festival-detail.join-wide > .hero,
.festival-detail.lobby-wide > .hero,
.festival-detail.ranked-mode > .hero {
  display: none !important;
}
.menu.festival-detail.join-wide > .menu-panel,
.menu.festival-detail.lobby-wide > .menu-panel,
.menu.festival-detail.ranked-mode > .menu-panel {
  grid-column: 1;
  justify-self: center;
  width: min(1200px, 100%);
  height: auto;
}
.festival-detail.lobby-wide .lb-body,
.festival-detail.join-wide .jv-body {
  min-width: 0;
}
.festival-detail .lobby,
.festival-detail .join-view {
  max-width: 100%;
  min-width: 0;
}
body:has(.festival-menu) #modal .sheet {
  border: 2px solid #bca5da;
  background:
    linear-gradient(
      145deg,
      #36365f,
      #242444);
  box-shadow: 0 7px 0 #493464, 0 22px 60px #30203e66;
  color: #f7f3ff;
  overflow-wrap: anywhere;
}
body:has(.festival-menu) #modal .sheet .btn-dark {
  background:
    linear-gradient(
      145deg,
      #575482,
      #383859);
}
body:has(.festival-menu) #modal .sheet .text-in,
body:has(.festival-menu) #modal .sheet textarea {
  max-width: 100%;
  min-width: 0;
  background: #1e203c;
}
body:has(.festival-menu) #modal .set-row {
  gap: 12px;
  min-width: 0;
}
.festival-detail .menu-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 2000px) and (min-height: 1000px) {
  .menu-panel.festival-home {
    max-width: 1900px;
  }
  .festival-header .acct-chip {
    font-size: 22px;
    min-height: 80px;
  }
  .festival-nav-btn {
    min-height: 95px;
  }
  .festival-mode {
    min-height: 150px;
  }
  .festival-home .festival-play {
    min-height: 150px;
  }
  .festival-social-slot .soc-btn {
    font-size: 16px !important;
    min-height: 48px !important;
  }
  .menu.festival-detail > .menu-panel {
    max-width: 1600px;
    justify-self: center;
  }
}
@media (max-width: 1100px) {
  .festival-header {
    gap: 10px;
  }
  .festival-tools {
    gap: 6px;
  }
  .festival-wallet {
    padding: 6px 10px;
  }
  .festival-body {
    grid-template-columns: 145px minmax(0, 1fr) 210px;
    gap: 16px;
  }
  .festival-nav-btn {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 62px;
    padding: 8px;
    gap: 8px;
    font-size: 17px;
    border-radius: 18px;
  }
  .festival-nav-btn > i {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .festival-nav-btn svg {
    width: 24px;
    height: 24px;
  }
  .festival-friends {
    padding: 14px;
    gap: 10px;
  }
  .festival-friends h2 {
    font-size: 17px;
  }
  .festival-mode {
    min-height: 92px;
    font-size: 19px;
  }
  .festival-home .festival-play {
    min-height: 90px;
  }
  .festival-play-dock {
    gap: 16px;
  }
  .festival-footer {
    gap: 10px;
  }
}
@media (max-width: 760px) and (orientation: portrait) {
  .menu.festival-menu {
    padding: calc(8px + var(--safe-t)) max(10px, var(--safe-r)) calc(8px + var(--safe-b)) max(10px, var(--safe-l));
    gap: 10px;
  }
  .menu-panel.festival-home {
    min-height: 520px;
    gap: 10px;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }
  .festival-header {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }
  .festival-header > .festival-brand {
    grid-column: 1/-1;
    grid-row: 1;
    flex-direction: row;
    gap: 7px;
    filter: drop-shadow(0 2px #343061);
  }
  .festival-brand > img {
    width: 40px;
    height: 40px;
  }
  .festival-brand h1 {
    font-size: 24px;
  }
  .festival-brand small {
    font-size: 9px;
  }
  .festival-header #acct-slot {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }
  .festival-header .acct-chip {
    min-height: 44px;
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 16px;
    gap: 5px;
  }
  .festival-header .chip-av {
    width: 28px;
    height: 28px;
  }
  .festival-header .acct-chip .rk-chip {
    font-size: 10px;
  }
  .festival-tools {
    grid-column: 2;
    grid-row: 2;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .festival-tools .icon-btn {
    width: 38px;
    height: 40px;
    border-radius: 14px;
  }
  .festival-wallet {
    min-height: 40px;
    padding: 5px 8px;
    gap: 4px;
  }
  .festival-wallet b {
    font-size: 19px;
  }
  .festival-wallet svg {
    width: 22px;
    height: 22px;
  }
  .festival-tools .icon-btn svg {
    width: 19px;
  }
  .festival-language small {
    font-size: 8px;
  }
  .festival-body {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: minmax(160px, 1fr) auto;
    gap: 10px;
  }
  .festival-navigation {
    gap: 8px;
  }
  .festival-nav-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 5px 3px;
    font-size: 12px;
    border-radius: 15px;
  }
  .festival-nav-btn > i {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    border-width: 1px;
  }
  .festival-nav-btn svg {
    width: 17px;
    height: 17px;
  }
  .festival-nav-btn .rk-chip {
    display: none;
  }
  .festival-stage {
    min-height: 160px;
  }
  .festival-island {
    height: 65%;
    top: 3%;
    width: 115%;
    left: -7.5%;
  }
  .festival-pawn {
    inset: 9% 0 4%;
  }
  .festival-platform {
    inset: 77% 0 5%;
  }
  .festival-costume {
    font-size: 10px;
    bottom: -3px;
    padding: 4px 8px;
  }
  .festival-friends {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
    gap: 6px;
    border-radius: 17px;
    margin: 0;
  }
  .festival-friends h2 {
    grid-column: 1/-1;
    font-size: 13px;
    justify-content: center;
  }
  .festival-friends h2 svg {
    width: 16px;
  }
  .festival-seats {
    display: none;
  }
  .festival-friends .btn {
    font-size: 13px;
    min-height: 40px;
    padding: 6px;
    border-radius: 12px;
  }
  .festival-friends .btn svg {
    width: 18px;
  }
  .festival-play-dock {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 0;
  }
  .festival-modes {
    gap: 7px;
  }
  .festival-mode {
    min-height: 66px;
    gap: 3px;
    font-size: 13px;
    padding: 8px 5px;
    border-radius: 16px;
  }
  .festival-mode svg {
    width: 22px;
    height: 22px;
  }
  .festival-mode[aria-pressed=true]::after {
    width: 14px;
    height: 14px;
    font-size: 10px;
    top: 4px;
    inset-inline-end: 4px;
  }
  .festival-home .festival-play {
    min-height: 56px;
    font-size: 33px;
    border-radius: 22px;
    padding: 8px;
  }
  .festival-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }
  .festival-social-slot {
    grid-column: 1;
  }
  .festival-social-slot .soc-btn {
    padding: 7px 10px !important;
    min-height: 38px !important;
    font-size: 12px !important;
  }
  .festival-footer .menu-legal {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: center;
    font-size: 10px;
    gap: 5px 12px;
  }
  .festival-version {
    grid-column: 2;
    grid-row: 1;
    font-size: 9px;
  }
  .menu.festival-detail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .festival-detail > .hero {
    display: none !important;
  }
  .menu.festival-detail > .menu-panel {
    grid-column: 1;
    grid-row: 2;
    padding: 16px;
    border-radius: 22px;
  }
  .festival-brand.compact > img {
    width: 38px;
    height: 38px;
  }
  .festival-brand.compact h1 {
    font-size: 22px;
  }
  .festival-detail-header > .icon-btn {
    width: 40px;
    height: 40px;
  }
  .festival-detail .jv-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .menu.festival-detail.shop-preview-mode {
    grid-template-rows: auto minmax(100px, 24dvh) minmax(0, 1fr) auto;
  }
  .festival-detail.shop-preview-mode > .hero {
    display: block !important;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: 100%;
  }
  .menu.festival-detail.shop-preview-mode > .menu-panel {
    grid-row: 3;
    height: 100%;
  }
  .festival-detail.shop-preview-mode > .festival-detail-footer {
    grid-row: 4;
  }
}
@media (orientation: portrait) and (min-width: 761px) {
  .festival-body {
    grid-template-columns: 160px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .festival-stage {
    grid-row: 1;
    grid-column: 2;
  }
  .festival-friends {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
    align-items: center;
    margin: 0;
  }
  .festival-seats {
    display: none;
  }
  .festival-play-dock {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .festival-home .festival-play {
    min-height: 80px;
  }
  .festival-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .festival-header > .festival-brand {
    grid-column: 1/-1;
    grid-row: 1;
    flex-direction: row;
    gap: 10px;
  }
  .festival-brand > img {
    width: 70px;
    height: 70px;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .menu.festival-menu {
    padding: calc(6px + var(--safe-t)) max(10px, var(--safe-r)) calc(6px + var(--safe-b)) max(10px, var(--safe-l));
    gap: 8px;
  }
  .menu-panel.festival-home {
    min-height: 286px;
    gap: 8px;
    grid-template-rows: auto minmax(116px, 1fr) auto auto;
  }
  .festival-header {
    gap: 8px;
    align-items: center;
  }
  .festival-header > .festival-brand {
    flex-direction: row;
    gap: 5px;
  }
  .festival-brand > img {
    width: 40px;
    height: 40px;
  }
  .festival-brand h1 {
    font-size: 24px;
  }
  .festival-brand small {
    font-size: 8px;
  }
  .festival-header .acct-chip {
    min-height: 40px;
    padding: 5px 8px;
    font-size: 13px;
    border-radius: 15px;
    gap: 5px;
  }
  .festival-header .chip-av {
    width: 28px;
    height: 28px;
  }
  .festival-header .acct-chip .rk-chip {
    display: none;
  }
  .festival-tools {
    gap: 5px;
  }
  .festival-tools .icon-btn,
  .festival-detail-header > .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }
  .festival-wallet {
    min-height: 38px;
    gap: 5px;
    padding: 4px 10px;
  }
  .festival-wallet b {
    font-size: 20px;
  }
  .festival-wallet svg {
    width: 24px;
    height: 24px;
  }
  .festival-body {
    grid-template-columns: clamp(115px, 20vw, 190px) minmax(0, 1fr) clamp(155px, 23vw, 240px);
    gap: 16px;
  }
  .festival-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .festival-nav-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 52px;
    font-size: 11px;
    gap: 3px;
    padding: 4px;
    border-radius: 14px;
  }
  .festival-nav-btn > i {
    width: 25px;
    height: 25px;
    border-width: 1px;
    border-radius: 8px;
  }
  .festival-nav-btn svg {
    width: 17px;
    height: 17px;
  }
  .festival-nav-btn .rk-chip {
    display: none;
  }
  .festival-stage {
    min-height: 116px;
  }
  .festival-island {
    top: -10%;
    height: 90%;
  }
  .festival-pawn {
    inset: 0 0 0;
  }
  .festival-costume {
    font-size: 9px;
    padding: 2px 7px;
    bottom: -8px;
  }
  .festival-costume svg {
    width: 10px;
    height: 10px;
  }
  .festival-platform {
    inset: 78% 0 5%;
  }
  .festival-friends {
    margin: 0;
    align-self: center;
    padding: 9px;
    gap: 6px;
    border-radius: 17px;
  }
  .festival-friends h2 {
    font-size: 12px;
  }
  .festival-friends h2 svg {
    width: 18px;
  }
  .festival-seats {
    display: none;
  }
  .festival-friends .btn {
    min-height: 36px;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 12px;
  }
  .festival-friends .btn svg {
    width: 16px;
  }
  .festival-play-dock {
    grid-template-columns: minmax(0, 1fr) minmax(145px, .4fr);
    gap: 12px;
    padding-top: 4px;
  }
  .festival-modes {
    gap: 8px;
  }
  .festival-mode {
    min-height: 58px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 17px;
    font-size: 15px;
  }
  .festival-mode svg {
    width: 22px;
    height: 22px;
  }
  .festival-mode[aria-pressed=true]::after {
    width: 12px;
    height: 12px;
    font-size: 9px;
    top: 3px;
    inset-inline-end: 4px;
  }
  .festival-home .festival-play {
    min-height: 58px;
    padding: 8px;
    border-radius: 22px;
    font-size: 32px;
    gap: 10px;
  }
  .festival-footer {
    gap: 8px;
    padding: 0;
  }
  .festival-footer .menu-legal {
    font-size: 9px;
    gap: 4px 8px;
  }
  .festival-version {
    font-size: 9px;
  }
  .festival-social-slot .menu-social {
    gap: 6px !important;
  }
  .festival-social-slot .soc-btn {
    min-height: 32px !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
    border-radius: 11px !important;
    gap: 5px !important;
  }
  .festival-social-slot .soc-btn svg,
  .festival-social-slot .soc-btn img {
    width: 15px !important;
    height: 15px !important;
  }
  .festival-brand.compact > img {
    width: 36px;
    height: 36px;
  }
  .festival-brand.compact h1 {
    font-size: 23px;
  }
  .festival-brand.compact small {
    font-size: 8px;
  }
  .menu.festival-detail {
    grid-template-columns: minmax(130px, .55fr) minmax(0, 1.45fr);
  }
  .menu.festival-detail > .menu-panel {
    padding: 12px 16px;
    border-radius: 20px;
    gap: 10px;
  }
  .festival-detail .hero {
    display: grid;
    width: auto;
    height: 100%;
  }
  .festival-detail .field {
    gap: 5px;
  }
  .festival-detail .btn {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 15px;
  }
  .festival-detail .seg button {
    min-height: 36px;
  }
  .festival-detail h2 {
    font-size: 21px;
  }
  .festival-detail .text-in {
    min-height: 40px;
  }
  .festival-detail .jv-head h2 {
    font-size: 22px;
  }
}
@media (max-width: 650px) and (orientation: landscape) {
  .festival-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .festival-brand h1 {
    font-size: 19px;
  }
  .festival-header > .festival-brand > img {
    width: 32px;
    height: 32px;
  }
  .festival-header .festival-brand small {
    display: none;
  }
  .festival-header .acct-chip {
    font-size: 11px;
    padding: 4px 6px;
    gap: 4px;
  }
  .festival-tools {
    gap: 4px;
  }
  .festival-tools .icon-btn {
    width: 32px;
    height: 36px;
  }
  .festival-tools .icon-btn svg {
    width: 18px;
  }
  .festival-wallet {
    min-height: 36px;
    padding: 4px 6px;
    gap: 3px;
  }
  .festival-wallet b {
    font-size: 16px;
  }
  .festival-wallet svg {
    width: 19px;
  }
  .festival-body {
    grid-template-columns: 112px minmax(0, 1fr) 150px;
    gap: 10px;
  }
  .festival-mode {
    font-size: 12px;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 4px;
    padding: 7px 5px;
  }
  .festival-mode svg {
    width: 18px;
  }
  .festival-play-dock {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 136px;
  }
  .festival-home .festival-play {
    font-size: 28px;
  }
  .festival-footer .menu-legal {
    font-size: 8px;
    gap: 4px 5px;
  }
  .festival-social-slot .soc-btn {
    font-size: 10px !important;
    padding: 5px 6px !important;
  }
  .festival-version {
    font-size: 8px;
  }
}
@media (max-width: 380px) and (orientation: portrait) {
  .menu-panel.festival-home {
    min-height: 510px;
    gap: 8px;
  }
  .festival-body {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 8px;
  }
  .festival-nav-btn {
    min-height: 45px;
    font-size: 11px;
    gap: 2px;
  }
  .festival-nav-btn > i {
    width: 21px;
    height: 21px;
  }
  .festival-nav-btn svg {
    width: 15px;
    height: 15px;
  }
  .festival-header .acct-chip {
    font-size: 11px;
    min-height: 40px;
  }
  .festival-header .chip-av {
    width: 24px;
    height: 24px;
  }
  .festival-tools .icon-btn {
    width: 32px;
    height: 38px;
  }
  .festival-wallet {
    padding: 4px 6px;
    gap: 3px;
    min-height: 38px;
  }
  .festival-wallet b {
    font-size: 16px;
  }
  .festival-wallet svg {
    width: 19px;
  }
  .festival-mode {
    font-size: 11px;
    min-height: 60px;
  }
  .festival-friends h2 {
    font-size: 12px;
  }
  .festival-friends .btn {
    font-size: 12px;
  }
  .festival-footer .menu-legal {
    gap: 4px 8px;
    font-size: 9px;
  }
  .festival-social-slot .soc-btn {
    font-size: 11px !important;
    padding: 6px 8px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .festival-menu * {
    animation: none !important;
    transition: none !important;
  }
}
.menu.festival-detail:not(.shop-preview-mode) {
  grid-template-columns: minmax(0, 1fr);
}
.menu.festival-detail:not(.shop-preview-mode) > .menu-panel {
  grid-column: 1;
  width: min(680px, 100%);
  justify-self: center;
}
.menu.festival-detail.join-wide > .menu-panel,
.menu.festival-detail.lobby-wide > .menu-panel,
.menu.festival-detail.ranked-mode > .menu-panel {
  width: min(1200px, 100%);
}
.festival-section-title {
  font: 800 clamp(20px, 2.3vw, 30px)/1 var(--display);
  color: #fff2da;
  text-shadow: 0 2px #66406a;
}
.festival-detail-header,
.festival-detail-footer {
  width: 100%;
  justify-self: stretch;
}
@media (max-width: 650px) and (orientation: landscape) {
  .festival-body {
    grid-template-columns: 128px minmax(0, 1fr) 150px;
  }
  .festival-footer .menu-legal {
    font-size: 9px;
  }
}
.festival-detail .team-head {
  flex-wrap: wrap;
  gap: 4px;
}
.festival-detail .team-switch {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
}
.festival-header .acct-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  line-height: 1.15;
}
.festival-header .acct-chip > span:not(.tier-chip):not(.chip-av) {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
@media (orientation: landscape) and (max-height: 600px) {
  .festival-header .acct-chip {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .festival-header .acct-chip .tier-chip {
    display: none;
  }
}
.menu.festival-detail.lobby-wide > .menu-panel {
  display: block;
  overflow-y: auto !important;
  max-height: 100%;
}
.menu.festival-detail.lobby-wide .lobby {
  height: auto;
  min-height: 0;
  display: grid;
  gap: 10px;
}
.menu.festival-detail.lobby-wide .lb-body {
  flex: none;
  min-height: 0;
  align-items: start;
}
.menu.festival-detail.lobby-wide .seats {
  overflow: visible;
  align-content: start;
  min-height: 0;
}
.menu.festival-detail.lobby-wide .room-set {
  flex: none;
  max-height: none;
  overflow: visible;
}
@media (orientation: landscape) and (max-height: 600px) {
  .menu.festival-detail.lobby-wide .lb-head {
    gap: 6px;
    min-height: 36px;
  }
  .menu.festival-detail.lobby-wide .lb-head h2 {
    font-size: 15px;
  }
  .menu.festival-detail.lobby-wide .lb-code {
    padding: 3px 6px;
  }
  .menu.festival-detail.lobby-wide .seat.empty {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 7px;
  }
  .menu.festival-detail.lobby-wide .seat.empty .seat-info {
    justify-items: center;
    text-align: center;
  }
  .menu.festival-detail.lobby-wide .seat.empty .seat-tools {
    justify-content: center;
    padding-bottom: 0;
  }
  .menu.festival-detail.lobby-wide .team-switch {
    font-size: 10px;
    padding: 4px 6px;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .menu.festival-detail.lobby-wide {
    grid-template-rows: minmax(0, 1fr);
  }
  .festival-detail.lobby-wide > .festival-detail-header,
  .festival-detail.lobby-wide > .festival-detail-footer {
    display: none;
  }
  .menu.festival-detail.lobby-wide > .menu-panel {
    grid-row: 1;
    height: 100%;
    max-height: 100%;
    display: flex;
    overflow: hidden !important;
    padding: 10px;
  }
  .menu.festival-detail.lobby-wide .lobby {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    min-height: 0;
    gap: 8px;
  }
  .menu.festival-detail.lobby-wide .lb-head {
    flex: none;
  }
  .menu.festival-detail.lobby-wide .lb-body {
    flex: 1;
    min-height: 0;
    align-items: stretch;
  }
  .menu.festival-detail.lobby-wide .seats {
    overflow: auto;
    min-height: 0;
    align-content: start;
  }
  .menu.festival-detail.lobby-wide .lb-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 6px;
  }
  .menu.festival-detail.lobby-wide .room-set {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: auto;
    padding: 7px;
  }
  .menu.festival-detail.lobby-wide .rs-row {
    min-width: 0;
    gap: 5px;
  }
  .menu.festival-detail.lobby-wide .rs-row > .seg {
    min-width: 0;
    flex: 1;
  }
  .menu.festival-detail.lobby-wide .rs-row > .seg > button {
    min-width: 0;
    padding-inline: 5px;
    white-space: normal;
    font-size: 10px;
  }
  .menu.festival-detail.lobby-wide .lb-side > .mp-help {
    flex: none;
    margin: 0;
    font-size: 10px;
  }
  .menu.festival-detail.lobby-wide .lb-acts {
    flex: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-bottom: 4px;
  }
  .menu.festival-detail.lobby-wide .lb-acts > .btn {
    min-height: 40px;
    font-size: 13px;
    padding: 6px;
  }
}
.festival-menu * {
  box-sizing: border-box;
}
.festival-menu .kzm-frame {
  --kzm-text:#f9fcff;
  --kzm-muted:#bdd2f2;
  --kzm-edge:#6f9edb;
  --kzm-panel:#183765;
  --kzm-panel-deep:#0c2349;
  --kzm-button:#2864bd;
  --kzm-button-deep:#184b94;
  --kzm-accent:#ffd34e;
  --kzm-accent-deep:#e69b17;
  --kzm-rim:#b9d6ff;
  --kzm-ratio:16/9;
  container-type: size;
  isolation: isolate;
  position: relative;
  width: 100%;
  aspect-ratio: var(--kzm-ratio);
  min-height: 300px;
  overflow: hidden;
  background: #2776d8;
  color: var(--kzm-text);
  font-family:
    Nunito,
    system-ui,
    sans-serif;
  border-radius: 10px;
}
.festival-menu .kzm-frame.kzm-halloween {
  --kzm-muted:#ded0f2;
  --kzm-edge:#b580dc;
  --kzm-panel:#372451;
  --kzm-panel-deep:#221833;
  --kzm-button:#7850ab;
  --kzm-button-deep:#4c3373;
  --kzm-accent:#ffb04c;
  --kzm-accent-deep:#d4791c;
  --kzm-rim:#f1b763;
}
.festival-menu .kzm-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -4;
}
.festival-menu .kzm-soften {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(
      90deg,
      #10327722,
      transparent 35%,
      #1435680b);
}
.festival-menu .kzm-frame.kzm-detail .kzm-background {
  filter: blur(4px);
  transform: scale(1.03);
}
.festival-menu .kzm-frame.kzm-detail .kzm-soften {
  background: #0c203a68;
}
.festival-menu :where(.kzm-frame button, .kzm-frame input, .kzm-frame select, .kzm-frame textarea) {
  font: inherit;
  color: inherit;
  min-width: 0;
}
.festival-menu .kzm-frame button {
  border: 0;
  cursor: pointer;
}
.festival-menu .kzm-frame button:focus-visible,
.festival-menu .kzm-frame input:focus-visible,
.festival-menu .kzm-frame select:focus-visible,
.festival-menu .kzm-frame textarea:focus-visible {
  outline: 3px solid var(--kzm-accent);
  outline-offset: 2px;
}
.festival-menu .kzm-frame button:active {
  translate: 0 2px;
}
.festival-menu .kzm-frame svg {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  stroke-width: 2.5;
}
.festival-menu .kzm-frame h1,
.festival-menu .kzm-frame h2,
.festival-menu .kzm-frame h3,
.festival-menu .kzm-frame p {
  margin: 0;
}
.festival-menu .kzm-player {
  position: absolute;
  inset-inline-start: 1.6%;
  top: 2.8%;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 25%;
  min-height: 11cqh;
  padding: 6px 12px 6px 6px;
  border: 2px solid var(--kzm-edge);
  border-radius: 34px;
  background:
    linear-gradient(
      135deg,
      var(--kzm-panel),
      var(--kzm-panel-deep));
  box-shadow: inset 0 2px #b6d5ff38, 0 4px #142e5c44;
  text-align: start;
}
.festival-menu .kzm-avatar {
  width: 7.8cqh;
  height: 7.8cqh;
  min-width: 32px;
  min-height: 32px;
  display: block;
  border-radius: 50%;
  background: linear-gradient(#507ed7, #0f3471);
  border: 2px solid #9fc6ff;
  overflow: hidden;
}
.festival-menu .kzm-avatar img {
  width: 100%;
  height: 130%;
  object-fit: contain;
  object-position: center 0;
  translate: 0 3%;
}
.festival-menu .kzm-player-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.festival-menu .kzm-player-text strong {
  font: 800 clamp(12px, 2.2cqw, 30px)/1.05 "Baloo 2", system-ui;
  overflow-wrap: anywhere;
}
.festival-menu .kzm-rank-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--kzm-rank-color);
  font: 800 clamp(11px, 1.35cqw, 18px)/1 Baloo;
}
.festival-menu .kzm-rank-crest {
  display: block;
  width: 4.9cqh;
  height: 4.9cqh;
  min-width: 24px;
  min-height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--kzm-rank-color) 55%, transparent));
}
.festival-menu .kzm-brand {
  position: absolute;
  top: 2%;
  left: 39%;
  width: 23%;
  display: grid;
  justify-items: center;
  text-align: center;
  filter: drop-shadow(0 3px #12274e);
}
.festival-menu .kzm-brand img {
  height: 10cqh;
  width: 12cqh;
  object-fit: contain;
}
.festival-menu .kzm-brand h1 {
  font: 800 clamp(17px, 3.1cqw, 40px)/.9 "Baloo 2", system-ui;
  letter-spacing: -.02em;
  color: #ffda5c;
  text-shadow: 1px 2px #49240a;
}
.festival-menu .kzm-season {
  position: absolute;
  top: 17.7%;
  left: 36%;
  width: 28%;
  font-size: clamp(11px, 1.25cqw, 16px);
  text-align: center;
  color: #ffe5b4;
  background:
    linear-gradient(
      90deg,
      transparent,
      #442050ed 15% 85%,
      transparent);
  padding: 5px 0;
  letter-spacing: .02em;
  z-index: 3;
}
.festival-menu .kzm-season {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.festival-menu .kzm-tools {
  position: absolute;
  right: 1.6%;
  top: 2.8%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.festival-menu .kzm-wallet {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 8.8cqh;
  padding: 5px 18px;
  background:
    linear-gradient(
      135deg,
      var(--kzm-panel),
      var(--kzm-panel-deep));
  border: 2px solid var(--kzm-edge);
  border-radius: 25px;
  box-shadow: inset 0 2px #c1dcff35;
  font: 800 clamp(16px, 2.4cqw, 30px)/1 Baloo;
}
.festival-menu .kzm-wallet svg {
  color: #ffdb62;
  fill: #ffc84442;
  width: 1.3em;
  height: 1.3em;
}
.festival-menu .kzm-icon-button {
  width: 8.8cqh;
  height: 8.8cqh;
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      145deg,
      var(--kzm-panel),
      var(--kzm-panel-deep));
  border: 2px solid var(--kzm-edge) !important;
  border-radius: 22px;
  font-size: clamp(16px, 2.7cqw, 30px);
  box-shadow: inset 0 2px #c3deff44;
}
.festival-menu .kzm-navigation {
  position: absolute;
  left: 1.6%;
  top: 20%;
  bottom: 10.5%;
  width: 10.4%;
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.festival-menu .kzm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 5px 3px;
  border: 2px solid var(--kzm-edge) !important;
  border-radius: 23px;
  background:
    linear-gradient(
      145deg,
      var(--kzm-panel),
      var(--kzm-panel-deep));
  box-shadow: inset 0 2px #a9caff33, 0 3px #183c7240;
  font: 800 clamp(11px, 1.7cqw, 22px)/1.05 Baloo;
}
.festival-menu .kzm-nav svg {
  width: 4.9cqh;
  height: 4.9cqh;
  min-width: 18px;
  min-height: 18px;
  color: #ffdc71;
  filter: drop-shadow(0 2px #061b3e80);
}
.festival-menu .kzm-nav:nth-child(2) svg {
  color: #72dcff;
}
.festival-menu .kzm-nav:nth-child(4) svg {
  color: #b0e8ff;
}
.festival-menu .kzm-nav-sprite {
  display: block;
  flex: 0 0 auto;
  width: 6.9cqh;
  height: 6.9cqh;
  min-width: 24px;
  min-height: 24px;
  background-repeat: no-repeat;
  background-size: 200% 300%;
  filter: drop-shadow(0 2px 2px #071c4955);
}
.festival-menu .kzm-pawn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 6.9cqh;
  min-height: 24px;
  width: 6.9cqh;
  min-width: 24px;
}
.festival-menu .kzm-pawn-icon img {
  display: block;
  object-fit: contain;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 2px #071c4966);
}
.festival-menu .kzm-pawn-icon-pair {
  position: relative;
  width: 8.5cqh;
  max-width: 100%;
}
.festival-menu .kzm-pawn-icon-pair img {
  position: absolute;
  width: 68%;
  height: 100%;
  left: 0;
  top: -9%;
  transform: rotate(-10deg);
  z-index: 1;
}
.festival-menu .kzm-pawn-icon-pair img + img {
  left: 32%;
  top: 9%;
  transform: rotate(9deg);
  z-index: 2;
}
.festival-menu .kzm-icon-button .kzm-nav-sprite {
  width: 6cqh;
  height: 6cqh;
  min-width: 24px;
  min-height: 24px;
}
.festival-menu .kzm-brandicon {
  width: 1.25em;
  height: 1.25em;
  object-fit: contain;
}
.festival-menu .kzm-social .kzm-brandicon {
  filter: brightness(0) invert(1);
}
.festival-menu .kzm-island {
  position: absolute;
  left: 41%;
  top: 13%;
  width: 58%;
  height: auto;
  z-index: -1;
  filter: drop-shadow(0 16px 10px #13336533);
  pointer-events: none;
}
.festival-menu .kzm-pedestal {
  position: absolute;
  left: 19%;
  bottom: 12.7%;
  width: 42%;
  height: 12.4%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 50% 30%,
      #304774 0 54%,
      #819bcd 55% 61%,
      #f4d37d 62% 64%,
      #658bc6 65% 75%,
      #274a8b 76%);
  box-shadow:
    0 3.5cqh #213868,
    0 4cqh #152f64,
    0 5cqh 14px #163b8566;
  z-index: 1;
}
.festival-menu .kzm-halloween .kzm-pedestal {
  background:
    radial-gradient(
      ellipse at 50% 30%,
      #392c52 0 54%,
      #8e66b9 55% 61%,
      #ffbf65 62% 64%,
      #8055a4 65% 75%,
      #3f285e 76%);
  box-shadow:
    0 3.5cqh #342047,
    0 4cqh #1d1937,
    0 5cqh 18px #d08bff33;
}
.festival-menu .kzm-pawn {
  position: absolute;
  left: 27%;
  bottom: 16.3%;
  width: 26%;
  height: 57%;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 8px 6px #12346140);
  pointer-events: none;
}
.festival-menu .kzm-playbox {
  position: absolute;
  right: 1.8%;
  bottom: 6%;
  width: 33.5%;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--kzm-edge);
  border-radius: 27px;
  background:
    linear-gradient(
      145deg,
      var(--kzm-panel),
      var(--kzm-panel-deep));
  box-shadow: inset 0 2px #a9cfff66, 0 6px #16336c55;
  z-index: 3;
}
.festival-menu .kzm-halloween .kzm-playbox {
  border-color: #e4a05b;
  box-shadow:
    inset 0 2px #ecc6ff55,
    0 6px #22163380,
    0 0 26px #eb9c4835;
}
.festival-menu .kzm-ranked-entry {
  width: 100%;
  min-height: 8.2cqh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px 12px;
  border: 2px solid #ffe196 !important;
  border-radius: 16px;
  background:
    linear-gradient(
      115deg,
      #233c88,
      #6446ab 64%,
      #283e88);
  box-shadow:
    inset 0 2px #ffffff35,
    inset 0 -3px #111d5755,
    0 0 12px #f9c15c33;
  font: 800 clamp(13px, 2.2cqw, 28px)/1 "Baloo 2";
  text-shadow: 0 2px #171d51;
}
.festival-menu .kzm-ranked-entry .kzm-rank-crest {
  width: 6.4cqh;
  height: 6.4cqh;
  min-width: 30px;
  min-height: 30px;
}
.festival-menu .kzm-ranked-entry .kzm-entry-arrow {
  margin-inline-start: auto;
  font-size: 1.3em;
  color: #ffe196;
}
.festival-menu .kzm-ranked-entry > span:not(.kzm-entry-arrow) {
  margin-inline-end: auto;
}
.festival-menu .kzm-halloween .kzm-ranked-entry {
  background:
    linear-gradient(
      115deg,
      #472858,
      #916047 64%,
      #472858);
  border-color: #ffd792 !important;
}
.festival-menu .kzm-primary {
  min-height: 11.2cqh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 12px;
  border: 2px solid #fff2a1 !important;
  border-radius: 23px;
  color: #2f2509 !important;
  background:
    linear-gradient(
      #ffe96a,
      var(--kzm-accent) 35%,
      #ffbd27);
  box-shadow: inset 0 -6px #d98c1e66, 0 5px #b5781f88;
  font: 800 clamp(23px, 4.65cqw, 56px)/1 "Baloo 2";
  letter-spacing: .02em;
}
.festival-menu .kzm-primary svg {
  fill: currentColor;
  width: .85em;
  height: .85em;
}
.festival-menu .kzm-primary svg {
  width: .85em !important;
  height: .85em !important;
}
.festival-menu .kzm-halloween .kzm-primary {
  background:
    linear-gradient(
      #ffda80,
      #ffb856 45%,
      #f18b32);
  border-color: #ffe1a1 !important;
  color: #42223e !important;
}
.festival-menu .kzm-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.festival-menu .kzm-action {
  min-height: 6.8cqh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 9px;
  border: 2px solid var(--kzm-edge) !important;
  border-radius: 16px;
  background: linear-gradient(var(--kzm-button), var(--kzm-button-deep));
  box-shadow: inset 0 2px #c1dfff33, 0 3px #0d244c44;
  font: 800 clamp(11px, 1.6cqw, 20px)/1.15 "Baloo 2";
  text-align: center;
}
.festival-menu .kzm-social {
  position: absolute;
  left: 1.6%;
  bottom: 1.9%;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 5;
}
.festival-menu .kzm-social button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: clamp(34px, 7cqh, 48px);
  padding: 5px 14px 5px 6px;
  border: 2px solid #b3c9ff !important;
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      #6773e5,
      #3d47a5);
  box-shadow: inset 0 2px #ffffff3b, 0 3px #20276088;
  font: 800 clamp(11px, 1.5cqw, 19px)/1 Baloo;
}
.festival-menu .kzm-social button[data-go=contact] {
  background:
    linear-gradient(
      145deg,
      #317daa,
      #154d80);
  border-color: #9dddf0 !important;
  box-shadow: inset 0 2px #ffffff3b, 0 3px #12385888;
}
.festival-menu .kzm-social-icon {
  display: grid;
  place-items: center;
  width: clamp(24px, 4.7cqh, 33px);
  height: clamp(24px, 4.7cqh, 33px);
  border-radius: 10px;
  background: #11245040;
}
.festival-menu .kzm-social-icon svg,
.festival-menu .kzm-social-icon img {
  width: 20px !important;
  height: 20px !important;
}
.festival-menu .kzm-halloween .kzm-social button {
  background:
    linear-gradient(
      145deg,
      #7850a0,
      #3c2959);
  border-color: #c4a0e4 !important;
}
.festival-menu .kzm-halloween .kzm-social button[data-go=contact] {
  background:
    linear-gradient(
      145deg,
      #875a5b,
      #53334c);
  border-color: #e9b483 !important;
}
.festival-menu .kzm-help-link {
  position: absolute;
  bottom: 2.8%;
  left: 42%;
  font-size: 11px;
  color: #f1f6ff;
  text-shadow: 0 1px #0d3576;
  background: #17396c70;
  border-radius: 12px;
  padding: 3px 9px;
}
.festival-menu .kzm-detail-head {
  height: 13%;
  padding: 1.8% 2.3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.festival-menu .kzm-detail-head h2 {
  font: 800 clamp(18px, 2.9cqw, 34px)/1 "Baloo 2";
  text-shadow: 0 2px #102856;
}
.festival-menu .kzm-detail-head .kzm-icon-button {
  width: 7.2cqh;
  height: 7.2cqh;
  border-radius: 16px;
  font-size: 18px;
}
.festival-menu .kzm-detail-content {
  position: absolute;
  inset: 15% 4% 12%;
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 3px;
}
.festival-menu .kzm-surface {
  width: min(570px, 80%);
  max-height: 100%;
  overflow: auto;
  border: 2px solid var(--kzm-edge);
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      var(--kzm-panel),
      var(--kzm-panel-deep));
  box-shadow: inset 0 2px #b5d6ff40, 0 6px #12274988;
  padding: clamp(14px, 2.4cqw, 30px);
  display: grid;
  gap: 14px;
  text-align: start;
}
.festival-menu .kzm-halloween .kzm-surface {
  border-color: #dba06a;
  box-shadow:
    inset 0 2px #efc9ff44,
    0 6px #191128aa,
    0 0 24px #df9aff22;
}
.festival-menu .kzm-surface h3 {
  font: 800 clamp(16px, 2.5cqw, 29px)/1 "Baloo 2";
  color: #ffdc72;
}
.festival-menu .kzm-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: clamp(11px, 1.5cqw, 18px);
}
.festival-menu .kzm-field > span {
  font-weight: 800;
  color: var(--kzm-muted);
}
.festival-menu .kzm-input {
  min-width: 0;
  width: 100%;
  min-height: 6.8cqh;
  padding: 9px 12px;
  border: 1.5px solid var(--kzm-edge);
  border-radius: 13px;
  background: var(--kzm-panel-deep);
  outline-offset: 2px;
  font: 800 clamp(12px, 1.7cqw, 20px)/1.2 Nunito;
}
.festival-menu .kzm-field textarea {
  min-height: 80px;
  resize: vertical;
}
.festival-menu .kzm-segment {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--kzm-panel-deep);
  border: 1px solid var(--kzm-edge);
  border-radius: 14px;
  min-width: 0;
}
.festival-menu .kzm-segment button {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 7px 6px;
  border-radius: 10px;
  background: transparent;
  color: var(--kzm-muted);
  font-size: clamp(11px, 1.4cqw, 17px);
}
.festival-menu .kzm-segment button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.festival-menu .kzm-segment button[aria-pressed=true] {
  background: var(--kzm-button);
  color: #fff;
  box-shadow: inset 0 1px #b9dbff66;
}
.festival-menu .kzm-surface .kzm-primary {
  font-size: clamp(17px, 2.3cqw, 27px);
  min-height: 7.7cqh;
  border-radius: 17px;
}
.festival-menu .kzm-quiet {
  color: var(--kzm-muted);
  font-size: clamp(11px, 1.35cqw, 16px);
  line-height: 1.4;
}
.festival-menu .kzm-wide {
  width: min(880px, 94%);
}
.festival-menu .kzm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}
.festival-menu .kzm-room {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--kzm-edge);
  border-radius: 15px;
  background: var(--kzm-panel-deep);
}
.festival-menu .kzm-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.festival-menu .kzm-room strong {
  font: 800 clamp(15px, 2cqw, 25px)/1.1 Baloo;
}
.festival-menu .kzm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 12px;
  font-size: 11px;
  color: #d5e7ff;
  background: #3674b05c;
}
.festival-menu .kzm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.festival-menu .kzm-item {
  display: grid;
  place-items: center;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--kzm-edge) !important;
  border-radius: 16px;
  background: var(--kzm-panel-deep);
  font-size: clamp(11px, 1.5cqw, 18px);
}
.festival-menu .kzm-item img {
  height: 14cqh;
  max-width: 100%;
  object-fit: contain;
}
.festival-menu .kzm-item.kzm-board-item img {
  height: 11cqh;
}
.festival-menu .kzm-item[aria-pressed=true] {
  outline: 2px solid var(--kzm-accent);
  outline-offset: -2px;
}
.festival-menu .kzm-item small {
  font-size: 11px;
  color: var(--kzm-muted);
}
.festival-menu .kzm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 37px;
}
.festival-menu .kzm-row > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.festival-menu .kzm-row label {
  min-width: 0;
  font-size: clamp(11px, 1.5cqw, 18px);
}
.festival-menu .kzm-row input[type=range] {
  width: 42%;
  accent-color: var(--kzm-accent);
}
.festival-menu .kzm-row input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--kzm-button);
}
.festival-menu .kzm-code {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--kzm-panel-deep);
  border-radius: 13px;
  padding: 8px 12px;
  font-size: clamp(11px, 1.5cqw, 18px);
}
.festival-menu .kzm-code strong {
  font-size: 1.3em;
  letter-spacing: .15em;
  color: var(--kzm-accent);
}
.festival-menu .kzm-seats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.festival-menu .kzm-seat {
  min-height: 14cqh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px;
  border: 1.5px solid var(--kzm-edge);
  border-radius: 14px;
  background: var(--kzm-panel-deep);
  text-align: center;
  font: 800 clamp(11px, 1.5cqw, 18px)/1.1 Nunito;
}
.festival-menu .kzm-seat img {
  height: 9cqh;
  width: 7cqh;
  object-fit: contain;
}
.festival-menu .kzm-seat-empty {
  border-style: dashed;
  color: var(--kzm-muted);
}
.festival-menu .kzm-friend-list {
  display: grid;
  gap: 10px;
}
.festival-menu .kzm-friends-surface {
  width: 94%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  overflow: hidden;
}
.festival-menu .kzm-friends-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}
.festival-menu .kzm-friends-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.festival-menu .kzm-friends-toolbar h3 {
  font-size: clamp(14px, 2cqw, 24px);
}
.festival-menu .kzm-friends-toolbar .kzm-action {
  min-height: 32px;
  font-size: clamp(11px, 1.3cqw, 16px);
  padding: 5px 8px;
}
.festival-menu .kzm-contacts {
  display: grid;
  gap: 7px;
  overflow: auto;
  min-height: 0;
  align-content: start;
}
.festival-menu .kzm-contact {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border-radius: 13px;
  border: 1px solid var(--kzm-edge) !important;
  background: var(--kzm-panel-deep);
  text-align: start;
  min-width: 0;
}
.festival-menu .kzm-contact[aria-pressed=true] {
  border-color: #ffe196 !important;
  background: var(--kzm-button-deep);
}
.festival-menu .kzm-contact img {
  width: 4.9cqh;
  height: 5.5cqh;
  min-width: 24px;
  min-height: 28px;
  object-fit: contain;
}
.festival-menu .kzm-contact > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.festival-menu .kzm-contact strong {
  font: 800 clamp(12px, 1.6cqw, 19px)/1.1 "Baloo 2";
  overflow-wrap: anywhere;
}
.festival-menu .kzm-contact small {
  font-size: 11px;
  color: var(--kzm-muted);
}
.festival-menu .kzm-contact small[data-online=true] {
  color: #8af0c0;
}
.festival-menu .kzm-friends-sidebar > .kzm-action {
  margin-top: auto;
  min-height: 32px;
  font-size: 11px;
  padding: 7px 5px;
}
.festival-menu .kzm-conversation {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 9px;
  min-width: 0;
  min-height: 0;
}
.festival-menu .kzm-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
}
.festival-menu .kzm-chat-head > strong {
  font: 800 clamp(14px, 2cqw, 25px)/1.1 "Baloo 2";
  overflow-wrap: anywhere;
}
.festival-menu .kzm-chat-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.festival-menu .kzm-chat-actions .kzm-action {
  min-height: 32px;
  padding: 6px 9px;
  font-size: clamp(11px, 1.25cqw, 15px);
  border-radius: 11px;
}
.festival-menu .kzm-chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  min-height: 0;
  padding: 10px;
  border-radius: 14px;
  background: var(--kzm-panel-deep);
  scrollbar-width: thin;
}
.festival-menu .kzm-chat-message {
  max-width: 85%;
  align-self: flex-start;
  display: grid;
  gap: 3px;
  padding: 9px 12px;
  border-radius: 13px 13px 13px 3px;
  background: #315886;
  font-size: clamp(11px, 1.4cqw, 17px);
  overflow-wrap: anywhere;
  flex: 0 0 auto;
}
.festival-menu .kzm-chat-message[data-mine=true] {
  align-self: flex-end;
  border-radius: 13px 13px 3px 13px;
  background: var(--kzm-button);
}
.festival-menu .kzm-chat-message small {
  font-size: 11px;
  color: var(--kzm-muted);
}
.festival-menu .kzm-halloween .kzm-chat-message {
  background: #594073;
}
.festival-menu .kzm-halloween .kzm-chat-message[data-mine=true] {
  background: var(--kzm-button);
}
.festival-menu .kzm-chat-form {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.festival-menu .kzm-chat-form .kzm-input {
  flex: 1;
  min-height: 36px;
  font-size: 16px;
}
.festival-menu .kzm-chat-form .kzm-action {
  min-height: 36px;
  font-size: clamp(12px, 1.5cqw, 18px);
}
.festival-menu .kzm-chat-note {
  font-size: 11px;
  line-height: 1.3;
  color: var(--kzm-muted);
}
.festival-menu .kzm-friend-add-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.festival-menu .kzm-friend-add-form .kzm-input {
  flex: 1;
}
.festival-menu .kzm-friend-add-form .kzm-action {
  flex: 0 0 auto;
}
.festival-menu .kzm-social-empty {
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  min-height: 0;
}
.festival-menu .kzm-social-empty > img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin: auto;
}
.festival-menu .kzm-invite-friend-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.festival-menu .kzm-invite-friend-row .kzm-contact {
  flex: 1;
  border: 0 !important;
  background: transparent;
  padding: 0;
}
.festival-menu .kzm-inline-error {
  color: #ffd0c8;
  font-size: 12px;
}
.festival-menu .kzm-team-invite {
  display: grid;
  gap: 8px;
}
.festival-menu .kzm-action:disabled {
  opacity: .55;
}
.festival-menu .kzm-profile-trigger {
  position: relative;
  border: 1.5px solid #a4ccff !important;
  box-shadow: inset 0 2px #c2deff38, 0 3px #0b245c55;
}
.festival-menu .kzm-profile-trigger:hover {
  border-color: #ffe196 !important;
  background: var(--kzm-button-deep);
}
.festival-menu .kzm-profile-trigger > span {
  display: grid;
  gap: 6px;
  min-width: 0;
  text-align: start;
}
.festival-menu .kzm-profile-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffe196;
  font: 800 11px/1.2 Nunito;
}
.festival-menu .kzm-profile-hint svg {
  width: 13px !important;
  height: 13px !important;
}
.festival-menu .kzm-profile-hint > span {
  margin-left: auto;
}
.festival-menu .kzm-profile-dialog {
  --kzm-text:#f9fcff;
  --kzm-muted:#bdd2f2;
  --kzm-edge:#8cb5ef;
  --kzm-panel:#183765;
  --kzm-panel-deep:#0c2349;
  --kzm-button:#2864bd;
  --kzm-button-deep:#184b94;
  color: var(--kzm-text);
  font-family:
    Nunito,
    system-ui,
    sans-serif;
  width: min(460px, 84%);
  max-height: 88%;
  border: 2px solid #8cb5ef;
  border-radius: 23px;
  background:
    linear-gradient(
      145deg,
      var(--kzm-panel),
      var(--kzm-panel-deep));
  padding: 22px;
  box-shadow: inset 0 2px #c2dfff55, 0 14px 50px #030b2880;
}
.festival-menu .kzm-profile-dialog[open] {
  display: grid;
  gap: 15px;
}
.festival-menu .kzm-profile-dialog::backdrop {
  background: #07142b99;
  backdrop-filter: blur(3px);
}
.festival-menu .kzm-halloween .kzm-profile-dialog {
  --kzm-panel:#372451;
  --kzm-panel-deep:#221833;
  --kzm-button:#7850ab;
  --kzm-button-deep:#4c3373;
  --kzm-muted:#ded0f2;
  border-color: #dfb16f;
}
.festival-menu .kzm-profile-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.festival-menu .kzm-profile-dialog-head h2 {
  font: 800 clamp(18px, 2.3cqw, 27px)/1.15 Baloo;
}
.festival-menu .kzm-profile-dialog-head .kzm-icon-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 12px;
  font-size: 16px;
}
.festival-menu .kzm-profile-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.festival-menu .kzm-profile-identity > img {
  width: 84px;
  height: 94px;
  object-fit: contain;
}
.festival-menu .kzm-profile-identity > div {
  display: grid;
  gap: 9px;
}
.festival-menu .kzm-profile-identity h3 {
  font: 800 clamp(20px, 2.6cqw, 31px)/1.1 Baloo;
}
.festival-menu .kzm-profile-relation {
  text-align: center;
  padding: 9px;
  border-radius: 11px;
  background: #ffffff0b;
  color: var(--kzm-muted);
  font-size: 14px;
}
.festival-menu .kzm-profile-actions {
  display: grid;
  gap: 9px;
}
.festival-menu .kzm-profile-actions .kzm-action,
.festival-menu .kzm-profile-dialog > .kzm-two .kzm-action {
  min-height: 40px;
  font-size: 14px;
}
.festival-menu .kzm-profile-dialog-full {
  width: min(820px, 92%);
  max-height: 88cqh;
}
.festival-menu .kzm-profile-main {
  display: grid;
  grid-template-columns: minmax(0, 31%) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}
.festival-menu .kzm-profile-hero {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
}
.festival-menu .kzm-profile-pawn {
  width: 130px;
  height: 17cqh;
  max-height: 126px;
  object-fit: contain;
}
.festival-menu .kzm-profile-hero h3 {
  font: 800 clamp(18px, 2.5cqw, 29px)/1 "Baloo 2";
  overflow-wrap: anywhere;
}
.festival-menu .kzm-profile-rank-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.festival-menu .kzm-profile-rank-line > strong {
  font: 800 clamp(12px, 1.6cqw, 20px)/1 Baloo;
}
.festival-menu .kzm-profile-detail {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.festival-menu .kzm-player-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.festival-menu .kzm-player-stats > div {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 9px;
  border-radius: 11px;
  background: #ffffff09;
  min-width: 0;
}
.festival-menu .kzm-player-stats dt {
  font-size: 11px;
  line-height: 1.1;
  color: var(--kzm-muted);
}
.festival-menu .kzm-player-stats dd {
  margin: 0;
  font: 800 clamp(12px, 1.8cqw, 21px)/1.05 Baloo;
}
.festival-menu .kzm-player-equipment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.festival-menu .kzm-player-equipment > div {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  padding: 7px;
  border-radius: 12px;
  background: var(--kzm-panel-deep);
  text-align: center;
  min-width: 0;
}
.festival-menu .kzm-player-equipment img {
  width: 100%;
  height: 9cqh;
  max-height: 62px;
  object-fit: contain;
}
.festival-menu .kzm-player-equipment small {
  font-size: 11px;
  line-height: 1.1;
  color: var(--kzm-muted);
}
.festival-menu .kzm-player-equipment strong {
  font: 800 clamp(11px, 1.3cqw, 16px)/1.1 Baloo;
}
.festival-menu .kzm-profile-footer {
  display: grid;
  grid-template-columns: minmax(0, 31%) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.festival-menu .kzm-profile-footer .kzm-profile-relation {
  font-size: 12px;
}
.festival-menu .kzm-profile-dialog-full .kzm-profile-actions {
  display: flex;
}
.festival-menu .kzm-profile-dialog-full .kzm-profile-actions > .kzm-action {
  flex: 1;
}
.festival-menu .kzm-game-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.festival-menu .kzm-game-board {
  position: absolute;
  width: 72%;
  height: 94%;
  left: 14%;
  top: 0;
  object-fit: contain;
  pointer-events: none;
}
.festival-menu .kzm-game-corner {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 23%;
  padding: 9px;
  border: 2px solid var(--kzm-edge) !important;
  border-radius: 19px;
  background:
    linear-gradient(
      135deg,
      var(--kzm-panel),
      var(--kzm-panel-deep));
  color: var(--kzm-text);
}
.festival-menu .kzm-game-corner > img {
  width: 6.8cqh;
  height: 8cqh;
  object-fit: contain;
}
.festival-menu .kzm-game-corner > span {
  flex: 1;
  gap: 4px;
}
.festival-menu .kzm-game-corner strong {
  font: 800 clamp(12px, 1.8cqw, 23px)/1 "Baloo 2";
  overflow-wrap: anywhere;
}
.festival-menu .kzm-game-corner .kzm-rank-chip {
  font-size: 11px;
}
.festival-menu .kzm-game-corner .kzm-rank-crest {
  width: 3.5cqh;
  height: 3.5cqh;
  min-width: 18px;
  min-height: 18px;
}
.festival-menu .kzm-corner-0 {
  left: 1.6%;
  top: 2.8%;
}
.festival-menu .kzm-corner-1 {
  right: 1.6%;
  top: 2.8%;
}
.festival-menu .kzm-corner-2 {
  left: 1.6%;
  bottom: 3%;
}
.festival-menu .kzm-corner-3 {
  right: 1.6%;
  bottom: 3%;
}
.festival-menu .kzm-game-caption {
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: 3%;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 11px;
  text-align: center;
}
.festival-menu .kzm-game-caption > span {
  padding: 5px 8px;
  border-radius: 9px;
  background: var(--kzm-panel-deep);
}
.festival-menu .kzm-game-caption .kzm-action {
  min-height: 34px;
  font-size: 13px;
}
.festival-menu .kzm-toast {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 13%;
  padding: 12px 16px;
  border: 1px solid var(--kzm-edge);
  border-radius: 15px;
  background: var(--kzm-panel-deep);
  text-align: center;
  box-shadow: 0 8px 30px #07193366;
  font-size: clamp(11px, 1.4cqw, 16px);
  z-index: 20;
}
.festival-menu .kzm-rotate {
  display: none;
}
@container (max-height:420px) {
  .festival-menu .kzm-player {
    border-radius: 22px;
    padding: 4px 9px 4px 4px;
    gap: 6px;
  }
  .festival-menu .kzm-wallet {
    padding: 4px 10px;
    border-radius: 18px;
    gap: 5px;
  }
  .festival-menu .kzm-tools {
    gap: 6px;
  }
  .festival-menu .kzm-icon-button {
    border-radius: 16px;
  }
  .festival-menu .kzm-navigation {
    gap: 5px;
  }
  .festival-menu .kzm-nav {
    border-radius: 16px;
    gap: 2px;
  }
  .festival-menu .kzm-nav {
    padding: 3px;
  }
  .festival-menu .kzm-nav .kzm-nav-sprite {
    width: 5.5cqh;
    height: 5.5cqh;
    min-width: 20px;
    min-height: 20px;
  }
  .festival-menu .kzm-pawn-icon {
    width: 5.5cqh;
    height: 5.5cqh;
    min-width: 20px;
    min-height: 20px;
  }
  .festival-menu .kzm-pawn-icon-pair {
    width: 6.8cqh;
  }
  .festival-menu .kzm-brand {
    top: 1.5%;
  }
  .festival-menu .kzm-playbox {
    padding: 8px;
    gap: 7px;
    border-radius: 20px;
  }
  .festival-menu .kzm-ranked-entry {
    min-height: 38px;
    padding: 3px 7px;
    border-radius: 12px;
    gap: 6px;
  }
  .festival-menu .kzm-primary {
    min-height: 48px;
    border-radius: 17px;
  }
  .festival-menu .kzm-action {
    min-height: 34px;
    padding: 6px;
    gap: 4px;
    border-radius: 12px;
  }
  .festival-menu .kzm-social button {
    padding: 3px 9px 3px 4px;
    min-height: 32px;
    gap: 6px;
    border-radius: 12px;
  }
  .festival-menu .kzm-help-link {
    display: none;
  }
  .festival-menu .kzm-detail-head {
    height: 14%;
  }
  .festival-menu .kzm-detail-content {
    inset: 16% 3% 13%;
  }
  .festival-menu .kzm-surface {
    padding: 12px;
    gap: 9px;
    border-radius: 18px;
  }
  .festival-menu .kzm-input {
    min-height: 34px;
    padding: 7px 9px;
  }
  .festival-menu .kzm-surface .kzm-primary {
    min-height: 38px;
  }
  .festival-menu .kzm-room {
    padding: 10px;
  }
  .festival-menu .kzm-split {
    gap: 12px;
  }
  .festival-menu .kzm-grid {
    gap: 8px;
  }
  .festival-menu .kzm-friends-surface {
    padding: 10px;
    gap: 10px;
    grid-template-columns: minmax(0, 29%) minmax(0, 1fr);
  }
  .festival-menu .kzm-friends-sidebar {
    gap: 5px;
  }
  .festival-menu .kzm-contact {
    padding: 5px;
    gap: 4px;
    border-radius: 9px;
  }
  .festival-menu .kzm-contacts {
    gap: 5px;
  }
  .festival-menu .kzm-conversation {
    gap: 6px;
  }
  .festival-menu .kzm-chat-log {
    padding: 7px;
    gap: 6px;
  }
  .festival-menu .kzm-chat-message {
    padding: 5px 8px;
    gap: 2px;
    line-height: 1.2;
  }
  .festival-menu .kzm-chat-actions .kzm-action {
    padding: 5px 7px;
  }
  .festival-menu .kzm-friends-toolbar {
    gap: 4px;
  }
  .festival-menu .kzm-friends-toolbar .kzm-action {
    padding: 4px 5px;
  }
  .festival-menu .kzm-profile-dialog {
    padding: 14px;
    max-height: 88%;
  }
  .festival-menu .kzm-profile-dialog[open] {
    gap: 10px;
  }
  .festival-menu .kzm-profile-identity > img {
    width: 58px;
    height: 64px;
  }
  .festival-menu .kzm-profile-relation {
    padding: 7px;
  }
  .festival-menu .kzm-profile-dialog-full {
    padding: 10px;
  }
  .festival-menu .kzm-profile-dialog-full[open] {
    gap: 6px;
  }
  .festival-menu .kzm-profile-main,
  .festival-menu .kzm-profile-footer {
    gap: 10px;
    grid-template-columns: minmax(0, 28%) minmax(0, 1fr);
  }
  .festival-menu .kzm-profile-hero {
    gap: 5px;
  }
  .festival-menu .kzm-profile-pawn {
    width: 64px;
    height: 50px;
  }
  .festival-menu .kzm-profile-detail {
    gap: 6px;
  }
  .festival-menu .kzm-player-stats {
    gap: 4px;
  }
  .festival-menu .kzm-player-stats > div {
    padding: 2px 5px;
    gap: 1px;
    border-radius: 7px;
  }
  .festival-menu .kzm-player-stats dd {
    font-size: 14px;
  }
  .festival-menu .kzm-player-equipment {
    gap: 5px;
  }
  .festival-menu .kzm-player-equipment > div {
    padding: 2px;
    gap: 1px;
    border-radius: 8px;
  }
  .festival-menu .kzm-player-equipment img {
    height: 24px;
  }
  .festival-menu .kzm-profile-footer .kzm-profile-relation {
    font-size: 11px;
    padding: 5px;
  }
  .festival-menu .kzm-profile-dialog-full .kzm-profile-actions .kzm-action {
    min-height: 34px;
    font-size: 12px;
  }
  .festival-menu .kzm-profile-dialog-full .kzm-profile-rank-line {
    gap: 5px;
  }
  .festival-menu .kzm-game-corner {
    padding: 6px;
    gap: 5px;
    border-radius: 13px;
  }
}
.approved-scenery {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #3479d0;
  pointer-events: none;
}
.approved-scenery > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.festival-detail ~ * .approved-scenery {
  filter: blur(4px);
}
.menu.festival-front {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: relative;
  isolation: isolate;
}
.menu.festival-front > .menu-panel.festival-home {
  position: relative;
  container-type: size;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  font-family: Nunito, system-ui;
}
.festival-front .kzm-frame * {
  box-sizing: border-box;
}
.festival-front .kzm-frame :is(h1, h2, h3, .kzm-nav, .kzm-primary, .kzm-ranked-entry, .kzm-action) {
  font-family:
    "Baloo 2",
    Nunito,
    system-ui;
}
.festival-front .kzm-brand {
  z-index: 2;
  pointer-events: none;
}
.festival-front .kzm-brand h1 {
  color: #ffda5c;
  line-height: 1;
}
.festival-front .kzm-island.festival-island {
  position: absolute;
  left: 41% !important;
  top: 13% !important;
  bottom: auto !important;
  width: 58% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: drop-shadow(0 16px 10px #13336533);
  z-index: 0;
}
.festival-front .kzm-pawn.festival-pawn {
  position: absolute;
  left: 25% !important;
  bottom: 16% !important;
  top: auto !important;
  right: auto !important;
  width: 29% !important;
  height: 58% !important;
  max-width: none !important;
  max-height: none !important;
  transform: none !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}
.festival-front .kzm-pawn.festival-pawn:has(canvas) {
  background-image: none !important;
}
.festival-front .kzm-pawn canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.festival-front .kzm-costume.festival-costume {
  position: absolute;
  left: 35%;
  bottom: 10.7%;
  z-index: 3;
  display: flex;
  gap: 6px;
  align-items: center;
  width: auto;
  max-width: 20%;
  min-height: 28px;
  padding: 3px 12px;
  border: 1px solid #b4cdfa;
  border-radius: 18px;
  background: #14376be6;
  color: white;
  font: 800 clamp(11px, 1.25cqw, 16px)/1.15 Nunito;
  transform: none;
  overflow-wrap: anywhere;
}
.kzm-costume svg {
  width: 14px !important;
  height: 14px !important;
}
.festival-front .kzm-player {
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
  z-index: 5;
  min-height: 0;
  max-height: 15%;
  width: 27%;
}
.festival-front .kzm-player .acct-chip {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 1px 7px !important;
  width: 100%;
  min-height: 9cqh !important;
  padding: 5px 11px 5px 5px !important;
  border: 2px solid var(--kzm-edge) !important;
  border-radius: 30px;
  background:
    linear-gradient(
      135deg,
      var(--kzm-panel),
      var(--kzm-panel-deep)) !important;
  font: 800 clamp(12px, 1.9cqw, 28px)/1.05 "Baloo 2", Nunito;
  text-align: start;
  max-width: 100%;
}
.festival-front .kzm-player .acct-chip .chip-av {
  grid-row: 1/3;
  width: 8.5cqh !important;
  height: 8.5cqh !important;
  max-width: 80px;
  max-height: 80px;
  min-width: 30px;
  min-height: 30px;
}
.festival-front .kzm-player .acct-chip.in > .tier-chip {
  display: flex !important;
  grid-column: 2;
  max-width: 100%;
  font-size: clamp(10px, 1.15cqw, 16px);
}
.festival-front .kzm-player .acct-chip.in > .tier-chip svg {
  width: 4cqh !important;
  height: 4cqh !important;
  min-width: 19px;
  min-height: 19px;
}
.festival-front .kzm-player .acct-chip:not(.in) {
  display: flex !important;
  min-height: 8cqh !important;
}
.festival-front .kzm-player .acct-chip > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.festival-front .kzm-tools {
  z-index: 5;
  max-width: 35%;
  gap: 7px;
}
.festival-front .kzm-language {
  position: relative;
  width: 6.5cqh !important;
  min-width: 30px !important;
  font-size: 16px !important;
  border-radius: 15px !important;
}
.festival-front .kzm-language small {
  font-size: 9px;
}
.festival-front .kzm-wallet svg {
  width: 1.25em !important;
  height: 1.25em !important;
}
.festival-front .kzm-wallet {
  min-height: 8.8cqh !important;
  max-width: 19cqw;
  padding: 4px 12px !important;
  gap: 5px;
}
.festival-front .kzm-navigation {
  z-index: 4;
}
.festival-front .kzm-nav {
  position: relative;
  line-height: 1.05 !important;
}
.festival-front .kzm-nav > small[data-friend-count] {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 18px;
  border-radius: 9px;
  background: #e86569;
  color: #fff;
  font: 800 12px Nunito;
  padding: 1px 4px;
}
.festival-front .kzm-playbox {
  z-index: 5;
}
.festival-front .kzm-ranked-entry {
  position: relative;
  min-width: 0 !important;
}
.menu-rank-crest {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 6.4cqh;
  height: 6.4cqh;
}
.menu-rank-crest > svg {
  width: 100% !important;
  height: 100% !important;
}
.festival-front .kzm-ranked-entry > .rk-chip {
  position: absolute;
  right: 4px;
  top: -12px;
  transform: scale(.8);
  transform-origin: right center;
}
.festival-front .kzm-primary {
  min-width: 0 !important;
  text-transform: uppercase;
}
.festival-front .kzm-primary > span {
  font-size: .65em;
}
.festival-front .kzm-two > .kzm-action {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}
.festival-front .kzm-footer.festival-footer {
  position: static !important;
  display: contents !important;
}
.festival-front .kzm-footer .kzm-social {
  position: absolute !important;
  left: 1.6% !important;
  bottom: 2% !important;
  display: flex !important;
  width: auto !important;
  z-index: 5;
}
.festival-front .kzm-social .menu-social {
  display: flex !important;
  gap: 7px;
  position: static !important;
  transform: none !important;
  max-width: none !important;
  padding: 0 !important;
}
.festival-front .kzm-social .soc-btn {
  min-height: clamp(32px, 7cqh, 48px) !important;
  padding: 5px 12px !important;
  font: 800 clamp(11px, 1.5cqw, 19px)/1 "Baloo 2", Nunito !important;
  border: 2px solid #b3c9ff !important;
  border-radius: 15px !important;
  background:
    linear-gradient(
      145deg,
      #6773e5,
      #3d47a5) !important;
  box-shadow: inset 0 2px #ffffff3b, 0 3px #20276088 !important;
}
.festival-front .kzm-social .soc-contact {
  background:
    linear-gradient(
      145deg,
      #317daa,
      #154d80) !important;
  border-color: #9dddf0 !important;
}
.festival-front .kzm-footer .menu-legal {
  position: absolute;
  left: 41%;
  bottom: 2.2%;
  max-width: 24%;
  justify-content: center;
  gap: 3px 8px;
  font-size: clamp(8px, .8cqw, 11px);
  text-align: center;
}
.festival-front .festival-version {
  position: absolute;
  right: 1.6%;
  bottom: .7%;
  font-size: 9px;
}
.festival-front .kzm-halloween .kzm-social .soc-btn {
  background:
    linear-gradient(
      145deg,
      #7850a0,
      #3c2959) !important;
  border-color: #c4a0e4 !important;
}
.festival-front .kzm-halloween .kzm-social .soc-contact {
  background:
    linear-gradient(
      145deg,
      #875a5b,
      #53334c) !important;
  border-color: #e9b483 !important;
}
.festival-detail .menu-panel,
.festival-detail-header,
.festival-detail .btn {
  border-color: #6f9edb;
}
.festival-detail:not(.shop-preview-mode) > .menu-panel {
  background:
    linear-gradient(
      145deg,
      #183765f5,
      #0c2349fa);
  box-shadow: inset 0 2px #b5d6ff40, 0 6px #12274988;
}
.approved-halloween + .festival-detail:not(.shop-preview-mode) > .menu-panel {
  background:
    linear-gradient(
      145deg,
      #372451f5,
      #221833fa);
  border-color: #b580dc;
}
.approved-halloween + .festival-detail .btn-dark {
  background: linear-gradient(#7850ab, #4c3373);
  border-color: #b580dc;
}
.social-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1080px, 94vw);
  max-width: 94vw;
  max-height: 92dvh;
  padding: 0;
  border: 2px solid #6f9edb;
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      #183765,
      #0c2349);
  color: #f9fcff;
  box-shadow: 0 12px 55px #0008;
  overflow: auto;
  font: 800 14px/1.35 Nunito, system-ui;
  overscroll-behavior: contain;
}
.social-dialog::backdrop {
  background: #071126b8;
  backdrop-filter: blur(5px);
}
.social-dialog * {
  box-sizing: border-box;
  min-width: 0;
}
.social-dialog button,
.social-dialog input {
  font-family: inherit;
}
.social-dialog .sheet {
  width: 100% !important;
  max-height: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: visible !important;
}
.social-dialog .sheet-head,
.friends-sheet > .sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: none;
  margin: 0;
  padding: 0 0 10px;
}
.social-dialog h2 {
  font: 800 clamp(19px, 3vw, 30px)/1.1 "Baloo 2";
  margin: 0;
}
.social-dialog .icon-btn {
  width: 36px;
  height: 36px;
  flex: none;
}
.social-dialog .btn {
  min-width: 0;
  min-height: 34px;
  white-space: normal;
}
.social-dialog button:focus-visible,
.social-dialog input:focus-visible {
  outline: 3px solid #ffd34e;
  outline-offset: 2px;
}
.social-dialog .player-sheet {
  padding: clamp(12px, 2vw, 25px);
}
.social-dialog .pl-main {
  max-width: 100%;
}
.social-dialog .pl-gear {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.social-dialog .pl-board-thumb {
  object-fit: contain;
  width: 100%;
  max-width: 130px;
  height: 85px;
}
.friend-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.friend-profile-actions > .btn {
  flex: 1;
}
.friends-sheet {
  display: flex;
  flex-direction: column;
  height: min(620px, 86dvh);
  padding: clamp(10px, 1.7vw, 22px);
  min-height: 0;
}
.friends-columns {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.3fr);
  gap: 16px;
  min-height: 0;
  flex: 1;
}
.friends-sidebar {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  overflow: auto;
  padding: 2px;
}
.friend-search {
  display: flex;
  gap: 6px;
  align-items: end;
}
.friend-search label {
  font-size: 11px;
  flex: 1;
}
.friend-search input {
  width: 100%;
  min-height: 34px;
  margin-top: 3px;
}
.friend-search > .btn {
  padding: 7px 10px;
}
.friend-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px;
  border: 1px solid #6492cd;
  border-radius: 14px;
  background: #0c2349;
  margin-bottom: 6px;
}
.friend-person {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  padding: 0;
  cursor: pointer;
}
.friend-person img {
  width: 36px;
  height: 44px;
  object-fit: contain;
  flex: none;
}
.friend-person span {
  display: grid;
  gap: 2px;
}
.friend-person b {
  overflow-wrap: anywhere;
}
.friend-person small {
  font-size: 10px;
  color: #bdd2f2;
}
.friend-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 52%;
  justify-content: end;
}
.friend-row-actions > .btn {
  font-size: 11px;
  padding: 5px 7px;
}
.friend-invite {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid #ffd34e;
  border-radius: 12px;
  padding: 8px;
  margin: 5px 0;
  background: #493b72;
}
.friend-invite span {
  font-size: 11px;
}
.friend-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
  gap: 8px;
}
.friend-chat > header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.friend-chat-title {
  flex: 1;
  overflow-wrap: anywhere;
  font: 800 21px "Baloo 2";
}
.friend-chat .btn-sm {
  font-size: 11px;
  padding: 5px 8px;
}
.friend-messages {
  overflow: auto;
  min-height: 0;
  background: #091d3fd9;
  border: 1px solid #507db0;
  border-radius: 15px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 7px;
  overscroll-behavior: contain;
}
.friend-message {
  margin: 0;
  display: grid;
  gap: 4px;
  max-width: 88%;
  padding: 7px 11px;
  border-radius: 12px;
  background: #244b80;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-weight: 600;
}
.friend-message.mine {
  align-self: end;
  background: #375c9e;
}
.friend-message time {
  font-size: 9px;
  opacity: .75;
  text-align: end;
}
.friend-chat-form {
  display: flex;
  align-items: center;
  gap: 7px;
}
.friend-chat-input {
  flex: 1;
  min-width: 0;
  width: 100%;
}
.friend-chat > small {
  color: #bdd2f2;
  font-size: 11px;
}
.friend-chat-form[hidden] {
  display: none;
}
.social-confirm {
  padding: 22px;
  max-width: 540px;
  margin: auto;
}
.social-dialog:has(.social-confirm) {
  width: min(540px, 90vw);
}
.social-confirm p {
  margin: 15px 0;
  overflow-wrap: anywhere;
}
.social-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: end;
}
.seat-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
.seat-profile .seat-av {
  grid-area: auto;
}
.seat-profile small {
  font-size: 9px;
  color: #bdd2f2;
  white-space: normal;
}
.pname-profile {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: start;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-profile-button.av {
  border: 0;
  cursor: pointer;
  overflow: visible;
  background: none;
  padding: 0;
  color: inherit;
}
.hud-profile-hint {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #0b2248e8;
  border: 1px solid #668bc1;
  border-radius: 7px;
  padding: 1px 3px;
  font: 800 7px/1.1 Nunito;
  color: #cee4ff;
  white-space: nowrap;
}
.rk-partner-choice {
  width: 100%;
}
.rk-partner-choice > button {
  flex: 1;
  white-space: normal;
}
.rk-team p.mp-help {
  font-size: 12px;
  margin: 5px 0;
}
.lb-friend-invite {
  font-size: 12px;
}
@media (orientation: landscape) and (max-height: 600px) {
  .social-dialog {
    max-height: 94dvh;
    border-radius: 17px;
  }
  .friends-sheet {
    height: 90dvh;
    padding: 10px;
  }
  .friends-columns {
    gap: 8px;
    grid-template-columns: minmax(185px, .9fr) minmax(0, 1.3fr);
  }
  .friends-sheet > .sheet-head {
    padding-bottom: 5px;
  }
  .social-dialog h2 {
    font-size: 19px;
  }
  .social-dialog .sheet-head .icon-btn {
    width: 30px;
    height: 30px;
  }
  .friend-row {
    padding: 5px;
  }
  .friend-person img {
    width: 26px;
    height: 32px;
  }
  .friend-person b {
    font-size: 12px;
  }
  .friend-chat-title {
    font-size: 16px;
  }
  .friend-chat > small {
    font-size: 9px;
  }
  .friend-message {
    font-size: 12px;
    padding: 5px 8px;
  }
  .social-dialog .player-sheet .pl-main {
    grid-template-columns: minmax(110px, .65fr) minmax(0, 1.35fr);
    gap: 10px;
  }
  .social-dialog .player-sheet .pl-pawn {
    max-height: 40dvh;
  }
  .social-dialog .pl-stats {
    gap: 5px;
  }
  .social-dialog .pl-stats > div {
    padding: 5px;
  }
  .social-dialog .pl-stats b {
    font-size: 16px;
  }
  .social-dialog .pl-stats small {
    font-size: 10px;
  }
  .social-dialog .pl-gear > div {
    padding: 5px;
    gap: 2px;
  }
  .social-dialog .pl-gear .g-ic {
    height: 45px;
    max-width: 85px;
  }
  .social-dialog .pl-gear b,
  .social-dialog .pl-gear small {
    font-size: 10px;
  }
  .friend-profile-actions > .btn {
    font-size: 12px;
    min-height: 32px;
    padding: 5px;
  }
  .social-dialog .pl-name {
    font-size: 18px;
  }
  .festival-front .kzm-navigation {
    gap: 4px;
    top: 19%;
    bottom: 12%;
    width: 11.5%;
  }
  .festival-front .kzm-nav {
    border-radius: 14px;
    padding: 3px !important;
    gap: 2px;
    font-size: clamp(10px, 1.6cqw, 19px) !important;
  }
  .festival-front .kzm-nav-sprite,
  .festival-front .kzm-pawn-icon {
    height: 6cqh;
    min-height: 18px;
    width: 6cqh;
    min-width: 18px;
  }
  .festival-front .kzm-pawn-icon-pair {
    width: 7.5cqh;
  }
  .festival-front .kzm-tools {
    gap: 4px;
  }
  .festival-front .kzm-icon-button {
    border-radius: 14px;
  }
  .festival-front .kzm-playbox {
    gap: 6px;
    padding: 8px;
    border-radius: 19px;
    bottom: 7%;
    width: 34%;
  }
  .festival-front .kzm-action {
    font-size: clamp(10px, 1.5cqw, 18px);
    padding: 5px;
  }
  .festival-front .kzm-player .acct-chip {
    font-size: clamp(11px, 1.8cqw, 22px);
  }
  .festival-front .kzm-player .tier-chip {
    line-height: 1;
  }
  .festival-front .kzm-costume {
    bottom: 9.3%;
    min-height: 22px !important;
    padding: 2px 8px !important;
  }
  .festival-front .kzm-social .soc-btn {
    min-height: 29px !important;
    font-size: clamp(10px, 1.4cqw, 17px) !important;
    padding: 4px 8px !important;
  }
  .festival-front .kzm-social .soc-btn svg {
    width: 17px;
    height: 17px;
  }
  .festival-front .kzm-brand img {
    height: 10cqh;
  }
  .festival-front .kzm-brand h1 {
    font-size: clamp(15px, 2.8cqw, 32px);
  }
  .festival-front .kzm-ranked-entry {
    font-size: clamp(12px, 2cqw, 25px);
    min-height: 9cqh;
  }
  .festival-front .kzm-primary {
    min-height: 12cqh;
    font-size: clamp(23px, 4.2cqw, 44px);
  }
  .festival-front .kzm-season {
    top: 17%;
    font-size: 10px;
    padding: 2px;
  }
  .festival-front .kzm-footer .menu-legal {
    left: 43%;
    max-width: 20%;
    font-size: 8px;
  }
  .seat-profile small {
    font-size: 8px;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  .friends-columns {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, .8fr) minmax(0, 1fr);
  }
  .friends-sheet {
    height: 86dvh;
  }
  .social-dialog .pl-main {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .social-dialog * {
    animation: none !important;
    transition: none !important;
  }
}
.menu.festival-front {
  position: fixed !important;
  height: var(--visible-height,100dvh) !important;
}
.festival-detail.ranked-mode > .menu-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden !important;
}
.festival-detail.ranked-mode .rk-page {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 10px;
}
.festival-detail.ranked-mode .rk-top {
  flex: none;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 0;
}
.festival-detail.ranked-mode .rk-body {
  display: block !important;
  flex: 1;
  min-height: 0;
  overflow: auto !important;
  padding: 2px 4px 9px;
}
.festival-detail.ranked-mode .rk-left {
  display: grid !important;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  overflow: visible !important;
  align-items: center;
  min-height: 0;
}
.festival-detail.ranked-mode .rk-side {
  overflow: visible !important;
  min-height: 0;
}
.festival-detail.ranked-mode .rk-side > .rk-me {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.festival-detail.ranked-mode .rk-team {
  flex: none;
  min-height: 0;
  margin: 0;
}
.festival-detail.ranked-mode .rk-me-top {
  flex: none;
}
.festival-detail.ranked-mode .rk-right {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin-top: 12px;
}
.festival-detail.ranked-mode .board-empty {
  padding: 7px;
  margin: 0;
  font-size: 12px;
}
.festival-detail.ranked-mode .rk-team-members {
  flex: none;
}
.festival-detail.ranked-mode .rk-team-code {
  flex-wrap: wrap;
}
@media (orientation: landscape) and (max-height: 600px) {
  .festival-detail.ranked-mode > .menu-panel {
    padding: 10px;
  }
  .festival-detail.ranked-mode .rk-top h2 {
    font-size: 18px;
  }
  .festival-detail.ranked-mode .rk-top small {
    font-size: 10px;
  }
  .festival-detail.ranked-mode .rk-top .btn {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 11px;
  }
  .festival-detail.ranked-mode .rk-top .icon-btn {
    width: 30px;
    height: 30px;
  }
  .festival-detail.ranked-mode .rk-left {
    grid-template-columns: minmax(160px, .75fr) minmax(0, 1.25fr);
    gap: 12px;
  }
  .festival-detail.ranked-mode .rk-me {
    padding: 9px;
  }
  .festival-detail.ranked-mode .rk-me-top b {
    font-size: 15px;
  }
  .festival-detail.ranked-mode .rk-me-top small {
    font-size: 10px;
  }
  .festival-detail.ranked-mode .rk-me-top .me-av {
    width: 38px;
    height: 38px;
  }
  .festival-detail.ranked-mode .me-elo .tier-chip span {
    display: none;
  }
  .festival-detail.ranked-mode .rk-side > .rk-me {
    gap: 7px;
  }
  .festival-detail.ranked-mode .rk-lock5 {
    margin: 0;
    padding: 7px;
  }
  .festival-detail.ranked-mode .rk-lock5 small {
    font-size: 10px;
  }
  .festival-detail.ranked-mode .rk-team {
    padding: 7px;
  }
  .festival-detail.ranked-mode .rk-team .btn {
    font-size: 11px;
    min-height: 30px;
  }
  .festival-detail.ranked-mode .rk-team-member {
    padding: 5px;
  }
  .festival-detail.ranked-mode .rk-team-code {
    padding: 5px;
  }
  .festival-detail.ranked-mode .rk-modes button,
  .festival-detail.ranked-mode .rk-partner-choice button {
    padding: 5px;
    font-size: 11px;
    min-height: 30px;
  }
  .festival-detail.ranked-mode .rk-side > .rk-me > .btn-quick {
    min-height: 40px;
    font-size: 18px;
  }
}
main.menu.festival-detail.inventory-mode {
  display: grid !important;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr) !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: stretch !important;
  overflow: hidden !important;
}
main.menu.inventory-mode > .festival-detail-header {
  grid-column: 1/-1;
  grid-row: 1;
}
main.menu.inventory-mode > .festival-detail-footer {
  grid-column: 1/-1 !important;
  grid-row: 3 !important;
}
main.menu.festival-detail.inventory-mode > .inventory-hero {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  overflow: visible;
  border: 1px solid #8caee066;
  border-radius: 25px;
  background:
    radial-gradient(
      ellipse at 50% 30%,
      #5c88c957,
      #16274f99);
  padding: 14px;
}
.inventory-pawn-stage {
  position: relative;
  min-height: 0;
  isolation: isolate;
}
.inventory-pawn {
  position: absolute;
  inset: 0 8% 8%;
  background: center/contain no-repeat;
  z-index: 2;
}
.inventory-pawn:has(canvas) {
  background-image: none !important;
}
.inventory-pawn canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.inventory-platform {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 5%;
  height: 12%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 50% 20%,
      #304977 0 55%,
      #8cafdb 56% 64%,
      #ffdf7e 65% 68%,
      #345895 69%);
  box-shadow: 0 12px #1b3159, 0 17px 20px #001a3b55;
  z-index: 1;
}
.inventory-loadout {
  display: grid;
  gap: 7px;
}
.inventory-loadout-slot {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: start;
  padding: 6px 10px;
  border: 1px solid #7292c1;
  border-radius: 15px;
  background: #112851de;
  color: white;
  cursor: pointer;
  min-width: 0;
}
.inventory-loadout-slot > i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 42px;
  flex: none;
}
.inventory-loadout-slot img,
.inventory-loadout-slot svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.inventory-loadout-slot > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.inventory-loadout-slot small {
  font-size: 11px;
  color: #b7cae6;
}
.inventory-loadout-slot b {
  font: 800 17px/1.1 "Baloo 2";
  overflow-wrap: anywhere;
}
main.menu.inventory-mode #menu-panel.inventory-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
  grid-template-areas: none !important;
  gap: 12px;
  padding: 20px;
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  min-height: 0;
  overflow: hidden !important;
  background:
    linear-gradient(
      140deg,
      #173965f5,
      #0b2248fa);
  border: 1px solid #819ed0;
}
.inventory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inventory-heading > div {
  display: grid;
  gap: 2px;
}
.inventory-heading small,
.inventory-selected-name small {
  font-size: 11px;
  color: #b9cee9;
}
.inventory-heading h2 {
  margin: 0;
  font: 800 32px/1 "Baloo 2";
  color: #ffe084;
}
.inventory-description {
  margin: 0;
  font-size: 13px;
  color: #bfd3ed;
}
.inventory-tabs {
  display: flex;
  gap: 7px;
}
.inventory-tabs > button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
}
.inventory-tabs small {
  padding: 1px 5px;
  background: #081e455c;
  border-radius: 8px;
  font: 800 12px Nunito;
}
.inventory-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  grid-auto-rows: minmax(130px, auto);
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 3px 5px 8px;
}
.inventory-item {
  min-width: 0;
  display: grid;
  grid-template-rows: 75px auto auto;
  justify-items: center;
  gap: 5px;
  padding: 9px 7px;
  border: 2px solid #456a9f;
  border-radius: 18px;
  background: linear-gradient(#274a7b, #132f5b);
  color: #eef6ff;
  cursor: pointer;
}
.inventory-item.selected {
  border-color: #ffde78;
  background: linear-gradient(#3b5d95, #1d3d71);
}
.inventory-item > i {
  height: 75px;
  width: 100%;
  display: grid;
  place-items: center;
}
.inventory-item img,
.inventory-item svg {
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
.inventory-item > b {
  font: 800 16px/1.1 "Baloo 2";
  overflow-wrap: anywhere;
  text-align: center;
}
.inventory-item > small {
  font-size: 10px;
  color: #b5cee9;
}
.inventory-item.equipped > small {
  color: #92efc6;
}
.inventory-selection {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(100px, .6fr);
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #7297ca;
  border-radius: 17px;
  background: #0a2248;
}
.inventory-selected-thumb {
  height: 51px;
}
.inventory-selected-thumb img,
.inventory-selected-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.inventory-selected-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.inventory-selected-name b {
  font: 800 20px/1.1 "Baloo 2";
  overflow-wrap: anywhere;
}
.inventory-selection > .btn {
  min-height: 42px !important;
  font-size: 17px !important;
  padding: 8px 12px !important;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  white-space: normal;
}
main.menu.festival-detail.shop-preview-mode:not(.inventory-mode) {
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  align-items: stretch !important;
  overflow: hidden !important;
  gap: 12px !important;
}
main.menu.shop-preview-mode:not(.inventory-mode) > .festival-detail-header {
  grid-row: 1;
  grid-column: 1/-1;
}
main.menu.festival-detail.shop-preview-mode:not(.inventory-mode) > .shop-live-hero {
  grid-row: 2 !important;
  grid-column: 1 !important;
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
}
main.menu.shop-preview-mode:not(.inventory-mode) > .festival-detail-footer {
  grid-row: 3 !important;
  grid-column: 1/-1 !important;
}
main.menu.shop-preview-mode #menu-panel.shop {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto auto auto minmax(75px, 1fr) auto !important;
  grid-template-areas: "title wallet" "premium premium" "tabs tabs" "selection selection" "items items" "back back" !important;
  gap: 9px !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  width: 100%;
  overflow: hidden !important;
  align-self: stretch !important;
  padding: 16px !important;
  scrollbar-gutter: auto;
  background:
    linear-gradient(
      140deg,
      #173965f5,
      #0b2248fa);
  border: 1px solid #819ed0;
}
main.menu.shop-preview-mode #menu-panel.shop > .shop-head {
  grid-area: title;
  display: flex !important;
  align-items: center;
  margin: 0;
}
.shop-head > .shop-awning {
  display: none;
}
.shop-head h2 {
  margin: 0;
  font-size: 25px;
}
main.menu.shop-preview-mode #menu-panel.shop > .jeton {
  grid-area: wallet;
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 0;
  padding: 4px 8px;
  min-height: 30px;
  justify-content: end;
  background: #102951;
  border-radius: 12px;
}
.shop > .jeton .coin {
  width: 22px;
  height: 22px;
}
.shop > .jeton b {
  font-size: 19px;
}
.shop > .jeton > span {
  font-size: 10px;
}
.shop > .jeton .reward-pause-mobile {
  display: none !important;
}
main.menu.shop-preview-mode #menu-panel.shop > .premium-card {
  grid-area: premium;
  display: block !important;
  padding: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
  border: 1px solid #b59c5a;
  border-radius: 13px;
  background:
    linear-gradient(
      115deg,
      #57452b,
      #233959);
  box-shadow: none;
}
.premium-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  list-style: none;
}
.premium-summary::-webkit-details-marker {
  display: none;
}
.premium-summary b {
  min-width: 0;
  overflow-wrap: anywhere;
  font: 800 17px/1.1 "Baloo 2";
}
.premium-star {
  color: #ffdf76;
}
.premium-chevron {
  margin-inline-start: auto;
  font-size: 20px;
}
.premium-card[open] .premium-chevron {
  transform: rotate(180deg);
}
.premium-content {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}
.premium-content .premium-copy > small {
  display: block !important;
  font-size: 11px;
  line-height: 1.35;
  color: #d9e5f6;
}
.premium-content > .premium-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px;
  width: 100%;
}
.premium-content .btn {
  width: 100% !important;
  min-width: 0;
  min-height: 39px !important;
  height: auto !important;
  white-space: normal !important;
  padding: 7px 10px !important;
  font-size: 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.2;
}
.premium-content .premium-policy-link {
  font-size: 10px;
}
.premium-content .coin {
  width: 18px;
  height: 18px;
  flex: none;
}
main.menu.shop-preview-mode #menu-panel.shop > .stabs {
  grid-area: tabs;
  display: flex;
  gap: 7px;
}
.shop > .stabs > button {
  flex: 1;
  min-width: 0;
  min-height: 36px !important;
  font-size: 15px !important;
  padding: 6px 10px !important;
  white-space: normal;
}
main.menu.shop-preview-mode #menu-panel.shop > .spv {
  grid-area: selection;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  min-height: 68px;
  gap: 10px;
  padding: 8px 10px !important;
  margin: 0;
  background: #102951;
}
main.menu.shop-preview-mode #menu-panel.shop .spvimg,
main.menu.shop-preview-mode #menu-panel.shop .spvsvg {
  width: 64px !important;
  height: 56px !important;
  object-fit: contain;
}
.shop-selection-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.shop-selection-title > b {
  font: 800 19px/1.1 "Baloo 2";
  overflow-wrap: anywhere;
}
.shop-access-tag {
  justify-self: start;
  border: 1px solid #cbb36d;
  border-radius: 6px;
  padding: 1px 6px;
  background: #77633744;
  color: #ffe09b;
  font-size: 9px;
}
main.menu.shop-preview-mode #menu-panel.shop .spvinfo {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(96px, .75fr);
  align-items: center;
  gap: 9px !important;
}
main.menu.shop-preview-mode #menu-panel.shop .sact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
}
.shop .sact > .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  width: 100% !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 7px 11px !important;
  white-space: normal !important;
  font: 800 16px/1.1 "Baloo 2" !important;
}
.shop .sact > .btn .coin {
  width: 19px;
  height: 19px;
  flex: none;
}
.shop .sact > .need {
  font-size: 10px !important;
  line-height: 1.2;
}
main.menu.shop-preview-mode #menu-panel.shop > .sgrid {
  grid-area: items;
  min-height: 0;
  max-height: none !important;
  overflow: auto !important;
  align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
  grid-auto-rows: minmax(122px, auto) !important;
  gap: 9px !important;
  padding: 3px 5px 8px !important;
}
.shop .sitem {
  min-height: 122px !important;
  padding: 8px 6px !important;
  grid-template-rows: 65px auto auto !important;
  border-radius: 16px;
  gap: 4px;
}
.shop .sitem .sth {
  height: 65px !important;
}
.shop .sitem .sth img.cthumb {
  width: 65px !important;
  height: 65px !important;
  max-width: 100% !important;
  max-height: 100% !important;
}
.shop .sitem > b {
  font-size: 15px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.shop .sitem em {
  font-size: 11px;
  line-height: 1.15;
  white-space: normal;
}
.shop .sitem small {
  font-size: 9px;
}
main.menu.shop-preview-mode #menu-panel.shop > [data-go=main] {
  grid-area: back;
  width: 100%;
  min-height: 36px !important;
  padding: 5px 10px !important;
  font-size: 15px !important;
}
main.menu.shop-preview-mode #menu-panel.shop:has(.premium-card[open]) {
  overflow-y: auto !important;
  grid-template-rows: auto auto auto auto minmax(120px, 1fr) auto !important;
}
main.menu.festival-detail.lobby-wide .seats {
  align-content: start !important;
  grid-auto-rows: auto !important;
  padding: 3px 6px 12px !important;
  gap: 10px !important;
  scroll-padding-bottom: 12px;
}
main.menu.festival-detail.lobby-wide .seats .seat:not(.empty) {
  display: grid !important;
  grid-template-columns: 66px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  justify-items: stretch !important;
  align-content: start !important;
  align-items: center !important;
  gap: 7px 9px !important;
  padding: 11px !important;
  min-height: 112px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
main.menu.festival-detail.lobby-wide .seat .seat-profile {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: center;
  width: 66px;
  min-height: 71px;
  gap: 3px;
  overflow: visible !important;
}
.seat-profile .seat-av,
.seat-profile > img {
  display: block;
  width: 52px !important;
  height: 52px !important;
}
.seat-profile small {
  display: block !important;
  font: 800 10px/1.2 Nunito !important;
  min-height: 13px;
  max-width: 100%;
  text-align: center;
  color: #d2e5ff;
}
main.menu.festival-detail.lobby-wide .seats .seat .seat-info {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column;
  align-items: start !important;
  justify-items: start !important;
  text-align: start !important;
  gap: 5px !important;
  min-width: 0;
  overflow: visible;
}
.seat-info > b {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
main.menu.festival-detail.lobby-wide .seats .seat .seat-tools {
  grid-column: 1/-1 !important;
  grid-row: 2 !important;
  justify-self: stretch !important;
  display: flex !important;
  justify-content: stretch !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 0 1px 5px !important;
  overflow: visible !important;
}
main.menu.festival-detail.lobby-wide .seats .seat-tools > .btn {
  flex: 1;
  min-width: 0 !important;
  max-width: 100%;
  min-height: 32px !important;
  height: auto !important;
  padding: 5px 9px !important;
  line-height: 1.2;
  white-space: normal !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}
main.menu.festival-detail.lobby-wide .seat.bot > img {
  grid-column: 1;
  grid-row: 1;
  width: 52px !important;
  height: 52px !important;
  justify-self: center;
}
main.menu.festival-detail.lobby-wide .seat.empty {
  padding: 11px !important;
  min-height: 88px !important;
  max-height: none;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  overflow: visible !important;
}
.seat.empty .seat-info {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
.pcard .pname-profile {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1px;
  min-height: 27px;
  overflow: visible;
}
.pcard .pname-profile > b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard .hud-profile-hint {
  position: static !important;
  transform: none !important;
  display: block;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: #bdd8fb;
  font: 800 9px/1.1 Nunito !important;
}
.hud-profile-arrow {
  position: absolute;
  right: -2px;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid #a5c6f4;
  border-radius: 50%;
  background: #183967;
  color: white;
  font: 800 13px/1 Nunito;
}
.festival-front .kzm-footer.festival-footer {
  position: absolute !important;
  inset: auto 0 0 !important;
  height: clamp(34px, 8cqh, 52px) !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 4px max(12px, var(--safe-r)) 5px max(12px, var(--safe-l));
  background:
    linear-gradient(
      90deg,
      #0a2049ed,
      #122e54df);
  border-top: 1px solid #a8c8f24d;
  z-index: 6;
}
.festival-front .kzm-footer .kzm-social {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  max-width: none;
}
.festival-front .kzm-footer .menu-legal {
  position: static !important;
  inset: auto !important;
  max-width: none !important;
  display: flex;
  justify-content: end !important;
  gap: 6px 15px;
  font: 700 11px/1.25 Nunito !important;
  margin: 0;
}
.festival-front .kzm-footer .festival-version {
  position: static !important;
  font: 700 9px Nunito !important;
  color: #b5cae7;
}
.festival-front .kzm-footer .soc-btn {
  min-height: 29px !important;
  height: auto !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
  border-radius: 11px !important;
  box-shadow: inset 0 1px #ffffff3b, 0 2px #20276088 !important;
}
.festival-front .kzm-footer .soc-btn svg {
  width: 18px !important;
  height: 18px !important;
}
.festival-front .kzm-playbox {
  bottom: 12% !important;
}
.festival-front .kzm-navigation {
  bottom: 14% !important;
}
.festival-front .kzm-costume.festival-costume {
  bottom: 12% !important;
}
.festival-front .kzm-pedestal {
  bottom: 16.2% !important;
}
.festival-front .kzm-pawn.festival-pawn {
  bottom: 19.5% !important;
  height: 54.5% !important;
}
.festival-detail-footer.festival-footer {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 5px 9px;
  min-height: 32px;
  border: 1px solid #8fb3e44d;
  border-radius: 12px;
  background: #10284ddf;
}
.festival-detail-footer .menu-legal {
  margin-inline-start: auto;
  font-size: 11px;
  gap: 6px 13px;
  justify-content: end;
}
.festival-detail-footer .festival-version {
  font-size: 9px;
}
@media (orientation: landscape) and (max-height: 600px) {
  main.menu.festival-detail.inventory-mode,
  main.menu.festival-detail.shop-preview-mode:not(.inventory-mode) {
    grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr) !important;
    gap: 7px !important;
    padding: 7px !important;
  }
  main.menu.festival-detail.inventory-mode > .inventory-hero {
    padding: 9px;
    border-radius: 17px;
    gap: 7px;
  }
  .inventory-loadout {
    gap: 4px;
  }
  .inventory-loadout-slot {
    padding: 3px 6px;
    gap: 6px;
    min-height: 32px;
    border-radius: 10px;
  }
  .inventory-loadout-slot > i {
    width: 31px;
    height: 27px;
  }
  .inventory-loadout-slot small {
    font-size: 9px;
  }
  .inventory-loadout-slot b {
    font-size: 12px;
  }
  main.menu.inventory-mode #menu-panel.inventory-panel {
    padding: 10px !important;
    gap: 6px !important;
  }
  .inventory-heading h2 {
    font-size: 23px;
  }
  .inventory-heading small {
    font-size: 9px;
  }
  .inventory-heading .btn {
    font-size: 11px;
    min-height: 29px;
    padding: 4px 9px;
  }
  .inventory-description {
    font-size: 10px;
  }
  .inventory-tabs > button {
    min-height: 29px;
    font-size: 12px;
    padding: 3px 5px;
  }
  .inventory-items {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    grid-auto-rows: minmax(85px, auto);
    gap: 6px;
    padding: 2px 3px 6px;
  }
  .inventory-item {
    padding: 5px 4px;
    grid-template-rows: 42px auto auto;
    gap: 3px;
    border-radius: 12px;
  }
  .inventory-item > i {
    height: 42px;
  }
  .inventory-item > b {
    font-size: 12px;
  }
  .inventory-item > small {
    font-size: 9px;
  }
  .inventory-selection {
    grid-template-columns: 36px minmax(0, 1fr) minmax(85px, .65fr);
    gap: 6px;
    padding: 6px;
  }
  .inventory-selected-thumb {
    height: 34px;
  }
  .inventory-selected-name b {
    font-size: 14px;
  }
  .inventory-selection > .btn {
    font-size: 13px !important;
    min-height: 32px !important;
    padding: 5px 8px !important;
  }
  main.menu.shop-preview-mode #menu-panel.shop {
    padding: 9px !important;
    gap: 5px !important;
    grid-template-rows: auto auto auto auto minmax(50px, 1fr) auto !important;
  }
  .shop-head h2 {
    font-size: 19px;
  }
  .shop > .jeton b {
    font-size: 16px;
  }
  .shop > .jeton > span {
    display: none;
  }
  .premium-summary {
    padding: 5px 8px;
    gap: 5px;
  }
  .premium-summary b {
    font-size: 13px;
  }
  .premium-chevron {
    font-size: 15px;
  }
  .premium-content {
    gap: 7px;
    padding: 0 8px 8px;
  }
  .premium-content .premium-copy > small {
    font-size: 10px;
  }
  .premium-content .btn {
    min-height: 32px !important;
    font-size: 11px !important;
    padding: 5px 7px !important;
  }
  .shop > .stabs > button {
    min-height: 28px !important;
    font-size: 12px !important;
    padding: 4px 7px !important;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .spv {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 7px;
    min-height: 44px;
    padding: 5px 7px !important;
  }
  main.menu.shop-preview-mode #menu-panel.shop .spvimg,
  main.menu.shop-preview-mode #menu-panel.shop .spvsvg {
    width: 40px !important;
    height: 37px !important;
  }
  .shop-selection-title > b {
    font-size: 14px;
  }
  .shop-access-tag {
    font-size: 8px;
    padding: 1px 4px;
  }
  .shop .sact > .btn {
    font-size: 12px !important;
    min-height: 32px !important;
    padding: 5px 7px !important;
  }
  main.menu.shop-preview-mode #menu-panel.shop .spvinfo {
    grid-template-columns: minmax(0, 1fr) minmax(80px, .8fr);
    gap: 5px !important;
  }
  .shop .sact > .need {
    display: none;
  }
  main.menu.shop-preview-mode #menu-panel.shop > .sgrid {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)) !important;
    grid-auto-rows: minmax(87px, auto) !important;
    gap: 6px !important;
  }
  .shop .sitem {
    min-height: 87px !important;
    grid-template-rows: 39px auto auto !important;
    padding: 5px 4px !important;
    gap: 3px;
  }
  .shop .sitem .sth {
    height: 39px !important;
  }
  .shop .sitem .sth img.cthumb {
    width: 39px !important;
    height: 39px !important;
  }
  .shop .sitem > b {
    font-size: 12px;
  }
  .shop .sitem em {
    font-size: 10px;
  }
  main.menu.shop-preview-mode #menu-panel.shop > [data-go=main] {
    min-height: 28px !important;
    font-size: 12px !important;
  }
  main.menu.festival-detail.lobby-wide .seats {
    gap: 8px !important;
    padding: 3px 5px 11px !important;
  }
  main.menu.festival-detail.lobby-wide .seats .seat:not(.empty) {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    min-height: 82px !important;
    padding: 8px !important;
    gap: 5px 7px !important;
  }
  main.menu.festival-detail.lobby-wide .seat .seat-profile {
    width: 56px;
    min-height: 57px;
    gap: 3px;
  }
  .seat-profile .seat-av,
  .seat-profile > img {
    width: 39px !important;
    height: 39px !important;
  }
  .seat-profile small {
    font-size: 9px !important;
    min-height: 12px;
  }
  .seat-info > b {
    font-size: 12px;
  }
  main.menu.festival-detail.lobby-wide .seats .seat-tools > .btn {
    min-height: 30px !important;
    font-size: 11px !important;
    padding: 5px 7px !important;
  }
  .festival-front .kzm-footer.festival-footer {
    gap: 7px;
    padding: 3px max(8px, var(--safe-r)) 4px max(8px, var(--safe-l));
  }
  .festival-front .kzm-footer .soc-btn {
    min-height: 26px !important;
    font-size: 11px !important;
    padding: 3px 7px !important;
  }
  .festival-front .kzm-footer .menu-legal {
    font-size: 10px !important;
    gap: 5px 10px;
  }
  .festival-front .kzm-footer .festival-version {
    font-size: 8px !important;
  }
  .festival-detail-footer.festival-footer {
    min-height: 28px;
    padding: 4px 7px;
    gap: 5px;
  }
  .festival-detail-footer .menu-legal {
    font-size: 10px;
    gap: 5px 9px;
  }
  .pcard .hud-profile-hint {
    font-size: 8px !important;
  }
  .pcard .pname-profile {
    min-height: 23px;
  }
}
main.menu.festival-detail.inventory-mode > .inventory-hero {
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}
.inventory-pawn-stage {
  height: 100%;
  width: 100%;
  align-self: stretch;
  justify-self: stretch;
}
.inventory-loadout {
  width: 100%;
  align-self: stretch;
  justify-self: stretch;
}
.inventory-heading > .btn {
  width: auto;
  max-width: 65%;
  flex: none;
}
main.menu.shop-preview-mode #menu-panel.shop > .premium-card[open] {
  min-height: 155px !important;
  height: auto !important;
  align-self: start;
  overflow: visible !important;
}
.premium-summary {
  position: relative;
  z-index: 1;
  min-height: 30px;
}
.premium-content {
  min-height: min-content;
}
.premium-card[open] .premium-copy {
  display: block !important;
}
.approved-halloween + main.menu .inventory-panel,
.approved-halloween + main.menu #menu-panel.shop {
  background:
    linear-gradient(
      140deg,
      #39264ff5,
      #241936fa);
  border-color: #b68bc8;
}
.approved-halloween + main.menu .inventory-hero {
  background:
    radial-gradient(
      ellipse at 50% 30%,
      #9370b857,
      #2e1b4599);
  border-color: #b68bc8;
}
.approved-halloween + main.menu .inventory-item {
  background: linear-gradient(#59416f, #342747);
  border-color: #8d71a9;
}
.festival-front .kzm-halloween .kzm-footer.festival-footer {
  background:
    linear-gradient(
      90deg,
      #281934ed,
      #30203fdf);
}
@media (orientation: landscape) and (max-height: 600px) {
  main.menu.shop-preview-mode #menu-panel.shop > .premium-card[open] {
    min-height: 130px !important;
  }
  .inventory-heading > .btn {
    max-width: 55%;
  }
}
main.menu.festival-detail.lobby-wide .seats {
  grid-template-rows: none !important;
  grid-auto-rows: max-content !important;
}
main.menu.festival-detail.lobby-wide .seats:not(.teams) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
main.menu.festival-detail.lobby-wide .seats .seat:not(.empty) {
  grid-template-rows: max-content max-content !important;
  align-self: start !important;
  min-height: max-content !important;
}
.lobby-scenery.approved-scenery {
  background:
    radial-gradient(
      ellipse at 50% 31%,
      #628ac1,
      #325887 39%,
      #1c3156 77%);
  overflow: hidden;
}
.lobby-scenery.approved-halloween {
  background:
    radial-gradient(
      ellipse at 50% 32%,
      #7862ad,
      #58408b 28%,
      #302553 65%,
      #211d3e);
}
.lobby-scenery > .lobby-halo {
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  border-radius: 50%;
  border: 2px solid #c3b5ed12;
  background:
    linear-gradient(
      116deg,
      transparent 37%,
      #b7c8e918 38%,
      transparent 61%);
  transform: rotate(-16deg);
}
.lobby-scenery > .lobby-horizon {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -55%;
  height: 90%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 50% 4%,
      #a0b5d04d,
      #3d5c85 42%,
      #243955 75%);
  border-top: 2px solid #c6d3f325;
  box-shadow: 0 -18px 90px #a6bfd517;
}
.lobby-scenery.approved-halloween > .lobby-horizon {
  background:
    radial-gradient(
      ellipse at 50% 4%,
      #a590d04d,
      #484278 42%,
      #262247 75%);
}
.lobby-scenery > .lobby-mist {
  position: absolute;
  bottom: 0;
  left: -10%;
  right: -10%;
  height: 40%;
  filter: blur(20px);
  opacity: .7;
  background:
    radial-gradient(
      ellipse at 15% 78%,
      #b9c7db40,
      transparent 45%),
    radial-gradient(
      ellipse at 85% 90%,
      #bbacd343,
      transparent 42%);
}
.lobby-scenery > img.lobby-castle {
  position: absolute;
  left: 32%;
  top: 8%;
  width: 58%;
  height: 62%;
  object-fit: contain;
  opacity: .36;
  filter: blur(.4px);
  mask-image:
    linear-gradient(
      #000 0 60%,
      #0006 82%,
      transparent 100%);
}
.lobby-scenery > .lobby-moon {
  position: absolute;
  right: 19%;
  top: 15%;
  width: 5dvh;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffdfae;
  box-shadow: inset -10px 1px #4b3878, 0 0 40px #e2bba51a;
  opacity: .6;
}
.festival-front .character-lobby {
  --lobby-text:#fff8ff;
  --lobby-muted:#c4cde3;
  --lobby-line:#9baac26e;
  color: var(--lobby-text);
}
.festival-front .character-lobby button {
  font-family:
    "Baloo 2",
    Nunito,
    system-ui;
  color: inherit;
  cursor: pointer;
  min-width: 0;
  box-sizing: border-box;
  line-height: 1.15;
}
.festival-front .character-lobby button:focus-visible {
  outline: 3px solid #ffe3a0;
  outline-offset: 3px;
}
.festival-front .character-lobby button:hover {
  filter: brightness(1.1);
}
.festival-front .character-lobby button:active {
  transform: translateY(2px);
}
.festival-front .character-lobby .lobby-account {
  position: absolute;
  left: max(26px, var(--safe-l));
  top: 16px;
  width: 24%;
  max-width: 300px;
  z-index: 6;
}
.festival-front .character-lobby .acct-chip {
  width: 100%;
  min-height: 57px;
  max-height: 72px;
  padding: 5px 12px 5px 5px !important;
  gap: 2px 8px !important;
  border: 1px solid #b6bed970 !important;
  border-bottom: 3px solid #181b3d !important;
  border-radius: 15px;
  background:
    linear-gradient(
      130deg,
      #344461,
      #22334c) !important;
  box-shadow: inset 0 1px #e4dbff30 !important;
  font: 800 20px/1.1 "Baloo 2", Nunito;
  text-align: start;
}
.festival-front .character-lobby.kzm-halloween .acct-chip {
  background:
    linear-gradient(
      130deg,
      #343051,
      #26213e) !important;
}
.festival-front .character-lobby .acct-chip.in {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
}
.festival-front .character-lobby .acct-chip .chip-av {
  grid-row: 1/3;
  width: 44px !important;
  height: 44px !important;
  min-width: 0;
  min-height: 0;
}
.festival-front .character-lobby .acct-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.festival-front .character-lobby .acct-chip .tier-chip {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  min-height: 18px;
}
.festival-front .character-lobby .acct-chip .tier-chip svg {
  width: 20px !important;
  height: 23px !important;
}
.festival-front .character-lobby .lobby-brand {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  height: 49px;
  pointer-events: none;
  z-index: 5;
}
.festival-front .character-lobby .lobby-brand > img {
  width: 49px;
  height: 49px;
  object-fit: contain;
}
.festival-front .character-lobby .lobby-brand > h1 {
  margin: 0;
  white-space: nowrap;
  font: 800 clamp(22px, 2.1cqw, 37px)/1 "Baloo 2";
  color: #ffe3a1;
  letter-spacing: .4px;
  text-shadow: 0 2px #241c40;
}
.festival-front .character-lobby .lobby-tools {
  position: absolute;
  top: 18px;
  right: max(26px, var(--safe-r));
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 6;
}
.festival-front .character-lobby .lobby-wallet,
.festival-front .character-lobby .lobby-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 11px;
  background: linear-gradient(#3a4d69, #263750);
  border: 1px solid #a0adbe70;
  border-bottom: 3px solid #171e36;
  border-radius: 12px;
  box-shadow: inset 0 1px #f1e9ff24;
  font: 800 21px/1 "Baloo 2";
}
.festival-front .character-lobby.kzm-halloween .lobby-wallet,
.festival-front .character-lobby.kzm-halloween .lobby-icon {
  background: linear-gradient(#3a3459, #292441);
}
.festival-front .character-lobby .lobby-wallet > .coin {
  width: 27px !important;
  height: 27px !important;
  flex: none;
}
.festival-front .character-lobby .lobby-icon {
  width: 43px;
  flex-direction: column;
  gap: 0;
  padding: 5px;
}
.festival-front .character-lobby .lobby-icon > svg {
  width: 23px !important;
  height: 23px !important;
}
.festival-front .character-lobby .lobby-icon > small {
  font: 800 8px/1 Nunito;
  opacity: .85;
}
.festival-front .character-lobby .lobby-body {
  position: absolute;
  inset: 78px 0 47px;
}
.festival-front .character-lobby .lobby-nav {
  position: absolute;
  left: 2.4%;
  top: 17%;
  width: 20%;
  max-width: 250px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  z-index: 5;
}
.festival-front .character-lobby .lobby-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: clamp(75px, 12cqh, 112px);
  gap: 7px;
  padding: 9px 4px;
  border: 1px solid #b6c3d582;
  border-bottom: 4px solid #192335;
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      #526888,
      #2d435f);
  box-shadow: inset 0 2px #ffffff1c, 0 4px 8px #17132d33;
  font-size: 17px;
}
.festival-front .character-lobby.kzm-halloween .lobby-tile {
  background:
    linear-gradient(
      145deg,
      #585375,
      #322d50);
  border-color: #c0b5d082;
  border-bottom-color: #191a35;
}
.festival-front .character-lobby .lobby-tile > svg {
  width: 32px !important;
  height: 32px !important;
  stroke-width: 2.1;
  color: #f6dba4;
}
.festival-front .character-lobby .lobby-nav-art {
  display: block;
  width: 38px;
  height: 38px;
  background-size: 200% 300%;
  flex: none;
}
.festival-front .character-lobby .lobby-pawn-icon {
  position: relative;
  display: block;
  width: 38px;
  height: 40px;
  isolation: isolate;
  flex: none;
}
.festival-front .character-lobby .lobby-pawn-icon img {
  position: absolute;
  inset: 0;
  width: 37px;
  height: 39px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 2px 2px #181c39);
}
.festival-front .character-lobby .lobby-pawn-icon.pair {
  width: 50px;
}
.festival-front .character-lobby .lobby-pawn-icon.pair img + img {
  left: 16px;
  top: 4px;
  z-index: 1;
}
.festival-front .character-lobby .lobby-tile > small {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 2px 5px;
  border-radius: 9px;
  background: #d95c72;
  color: white;
  font: 800 11px Nunito;
}
.festival-front .character-lobby .lobby-training {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #b6c3d582;
  border-bottom: 3px solid #192335;
  border-radius: 12px;
  background: linear-gradient(#516786, #31425d);
  box-shadow: inset 0 1px #ffffff26, 0 3px 7px #17132d30;
  font-size: 15px;
}
.festival-front .character-lobby.kzm-halloween .lobby-training {
  background: linear-gradient(#605474, #3b3153);
  border-color: #b9a9c882;
  border-bottom-color: #211a35;
}
.festival-front .character-lobby .lobby-training > .lobby-nav-art {
  width: 25px;
  height: 25px;
}
.festival-front .character-lobby .lobby-training > span:last-child {
  margin-left: auto;
  color: #f4d393;
  font-size: 21px;
}
.festival-front .character-lobby .lobby-hero {
  position: absolute;
  inset: 5% 26% 20% 26%;
  pointer-events: none;
}
.festival-front .character-lobby .lobby-pawn.festival-pawn {
  position: absolute;
  inset: auto !important;
  left: 50% !important;
  bottom: 12% !important;
  width: 79% !important;
  height: 85% !important;
  transform: translateX(-50%) !important;
  max-width: none !important;
  max-height: none !important;
  z-index: 3;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.festival-front .character-lobby .lobby-pawn:has(canvas) {
  background-image: none !important;
}
.festival-front .character-lobby .lobby-pawn > canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.festival-front .character-lobby .lobby-stage {
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 90%;
  height: 13%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 48% 36%,
      #869fb8 0,
      #536b87 52%,
      #d3b577 54%,
      #637b96 56%,
      #364b66 73%);
  box-shadow:
    0 8px #1e3049,
    0 12px #344b69,
    0 20px 25px #17132969;
}
.festival-front .character-lobby.kzm-halloween .lobby-stage {
  background:
    radial-gradient(
      ellipse at 48% 36%,
      #8f76b0 0,
      #605381 52%,
      #d3b577 54%,
      #665581 56%,
      #46365e 73%);
  box-shadow:
    0 8px #2b2341,
    0 12px #453355,
    0 20px 25px #17132969;
}
.festival-front .character-lobby .lobby-costume.festival-costume {
  pointer-events: auto;
  position: absolute;
  inset: auto !important;
  left: 50% !important;
  bottom: -1% !important;
  transform: translateX(-50%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  max-width: 85%;
  min-height: 34px;
  padding: 6px 15px !important;
  border: 1px solid #bdb3d56e;
  border-radius: 12px;
  background: #242c40ed;
  color: #fff8ff;
  font: 800 16px/1.1 "Baloo 2";
  z-index: 5;
}
.festival-front .character-lobby .lobby-costume svg {
  width: 14px !important;
  height: 14px !important;
}
.festival-front .character-lobby .lobby-front-fog {
  position: absolute;
  z-index: 4;
  inset: auto -20% 8%;
  height: 25%;
  filter: blur(11px);
  opacity: .65;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 32% 75%,
      #c4b4e05c,
      transparent 49%),
    radial-gradient(
      ellipse at 72% 78%,
      #d0bed76b,
      transparent 51%);
}
.festival-front .character-lobby .lobby-private {
  position: absolute;
  right: 2.8%;
  top: 20%;
  width: 21%;
  max-width: 260px;
  display: grid;
  gap: 11px;
  z-index: 5;
}
.festival-front .character-lobby .lobby-room-heading {
  font: 800 12px/1.2 Nunito;
  letter-spacing: .7px;
  color: #e4ddef;
  text-align: center;
}
.festival-front .character-lobby .lobby-room {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid #a5b8cb80;
  border-bottom: 3px solid #192336;
  border-radius: 13px;
  background:
    linear-gradient(
      135deg,
      #456485,
      #2d455f);
  box-shadow: inset 0 1px #ffffff24;
  font-size: 19px;
  text-align: start;
}
.festival-front .character-lobby.kzm-halloween .lobby-room {
  background:
    linear-gradient(
      135deg,
      #514565,
      #342d4b);
  border-color: #afa5cb80;
  border-bottom-color: #1a1936;
}
.festival-front .character-lobby .lobby-room > svg {
  width: 23px !important;
  height: 23px !important;
  color: #d0d9e8;
  flex: none;
}
.festival-front .character-lobby .lobby-room > span:last-child {
  margin-left: auto;
  color: #e9e2f6;
}
.festival-front .character-lobby .lobby-actions {
  position: absolute;
  bottom: 2.6%;
  left: 26%;
  right: 2.8%;
  max-width: 1600px;
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 12px;
  padding: 10px;
  background: #15263bc9;
  border: 1px solid #a6aeb767;
  border-radius: 21px;
  box-shadow: 0 5px #151e2c80, inset 0 1px #eee5ff17;
  z-index: 5;
}
.festival-front .character-lobby.kzm-halloween .lobby-actions {
  background: #1d1b36c9;
}
.festival-front .character-lobby .lobby-ranked {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 17px;
  border: 1px solid #b5adbe;
  border-radius: 13px;
  border-bottom: 3px solid #252d35;
  background:
    linear-gradient(
      110deg,
      #536a81,
      #31475f);
  text-align: start;
  min-width: 0;
}
.festival-front .character-lobby.kzm-halloween .lobby-ranked {
  background:
    linear-gradient(
      110deg,
      #6c5365,
      #3b314c);
  border-bottom-color: #251d35;
}
.festival-front .character-lobby .lobby-ranked > .menu-rank-crest {
  width: 45px !important;
  height: 55px !important;
  filter: drop-shadow(0 3px 3px #15112880);
  z-index: 1;
  transform-origin: 50% 70%;
  animation: lobby-rank-rock 5.8s ease-in-out 2.2s infinite;
}
.festival-front .character-lobby .lobby-ranked > span:not(.rk-chip) {
  position: relative;
  z-index: 1;
}
.festival-front .character-lobby .lobby-ranked b {
  font: 800 28px/1.1 "Baloo 2";
  display: block;
  color: #ffeed0;
}
.festival-front .character-lobby .lobby-ranked small {
  display: block;
  font: 800 12px/1.2 Nunito;
  color: #d9d2e2;
  margin-top: 5px;
}
.festival-front .character-lobby .lobby-ranked > .lobby-chevron {
  margin-left: auto;
  color: #f8ce78;
  font-size: 25px;
}
.festival-front .character-lobby .lobby-ranked > .rk-chip {
  position: absolute;
  right: 8px;
  top: 5px;
  z-index: 3;
  font-size: 10px;
  max-width: 52px;
}
.festival-front .character-lobby .lobby-play {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 2px solid #ffe9a5;
  border-bottom: 6px solid #c47b2f;
  border-radius: 14px;
  background:
    linear-gradient(
      #ffe68b 2%,
      #ffd25d 53%,
      #f5b343);
  box-shadow: inset 0 2px #fff5be;
  transform: skew(-3deg);
  color: #342339;
  font: 800 clamp(32px, 3.5cqw, 58px)/1 "Baloo 2";
  letter-spacing: .6px;
  text-shadow: 0 1px #ffea9b;
  text-transform: uppercase;
}
.festival-front .character-lobby .lobby-play > span {
  font-size: .65em;
}
.festival-front .character-lobby .lobby-play:active {
  transform: skew(-3deg) translateY(3px);
  border-bottom-width: 3px;
}
.festival-front .character-lobby .lobby-play:after,
.festival-front .character-lobby .lobby-ranked:after {
  content: "";
  position: absolute;
  top: -45%;
  left: -80%;
  width: 55%;
  height: 190%;
  background:
    linear-gradient(
      90deg,
      transparent,
      #fff9 48%,
      transparent);
  transform: translate3d(-150%, 0, 0) skew(-22deg);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: lobby-button-shine 5.8s ease-in-out .5s infinite;
}
.festival-front .character-lobby .lobby-ranked:after {
  animation-delay: 2.2s;
  background:
    linear-gradient(
      90deg,
      transparent,
      #ffe8ba70 48%,
      transparent);
}
@keyframes lobby-button-shine {
  0%, 58% {
    opacity: 0;
    transform: translate3d(-150%, 0, 0) skew(-22deg);
  }
  60% {
    opacity: 1;
  }
  79% {
    opacity: 1;
    transform: translate3d(420%, 0, 0) skew(-22deg);
  }
  81%, 100% {
    opacity: 0;
    transform: translate3d(420%, 0, 0) skew(-22deg);
  }
}
@keyframes lobby-rank-rock {
  0%, 60%, 81%, 100% {
    transform: rotate(0) scale(1);
  }
  65% {
    transform: rotate(-7deg) scale(1.04);
  }
  69% {
    transform: rotate(6deg) scale(1.04);
  }
  73% {
    transform: rotate(-4deg) scale(1.02);
  }
  77% {
    transform: rotate(2deg);
  }
}
.festival-front .character-lobby .lobby-footer.festival-footer {
  position: absolute !important;
  inset: auto 0 0 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  height: 44px !important;
  padding: 4px max(24px, var(--safe-r)) 5px max(24px, var(--safe-l));
  background: #142237c9;
  border-top: 1px solid #b0bfdc33;
  z-index: 6;
}
.festival-front .character-lobby.kzm-halloween .lobby-footer {
  background: #1c1c36c9;
}
.festival-front .character-lobby .menu-social {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: flex !important;
  gap: 9px;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
.festival-front .character-lobby .menu-social > .soc-btn {
  display: flex !important;
  align-items: center;
  gap: 7px;
  min-height: 32px !important;
  padding: 5px 12px !important;
  border: 1px solid #a6a9dd !important;
  border-bottom: 2px solid #151b38 !important;
  border-radius: 11px !important;
  background: linear-gradient(#6268b1, #41477c) !important;
  box-shadow: inset 0 1px #ffffff2b !important;
  color: white !important;
  font: 800 13px/1.1 "Baloo 2" !important;
  white-space: nowrap;
}
.festival-front .character-lobby .menu-social > .soc-btn + button {
  background: linear-gradient(#484e75, #313b5d) !important;
  border-color: #8d9dbd !important;
}
.festival-front .character-lobby .soc-btn > img {
  width: 20px !important;
  height: 18px !important;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.festival-front .character-lobby .soc-btn > svg {
  width: 17px !important;
  height: 17px !important;
}
.festival-front .character-lobby .menu-legal {
  position: static !important;
  display: flex;
  justify-content: end;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 !important;
  max-width: none !important;
  font: 800 11px/1.2 Nunito;
}
.festival-front .character-lobby .menu-legal > a {
  color: #d5d5e5;
}
.festival-front .character-lobby .festival-version {
  position: static !important;
  font: 800 9px/1 Nunito;
  color: #b6bdd3;
}
html[data-reduced-motion=true] .character-lobby .lobby-play:after,
html[data-reduced-motion=true] .character-lobby .lobby-ranked:after,
html[data-reduced-motion=true] .character-lobby .menu-rank-crest {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .character-lobby .lobby-play:after,
  .character-lobby .lobby-ranked:after,
  .character-lobby .menu-rank-crest {
    animation: none !important;
  }
}
@media (min-width: 1800px) {
  .festival-front .character-lobby .lobby-body {
    inset: 100px 0 58px;
  }
  .festival-front .character-lobby .lobby-account {
    top: 22px;
    max-width: 390px;
  }
  .festival-front .character-lobby .acct-chip {
    min-height: 74px;
    font-size: 26px;
  }
  .festival-front .character-lobby .acct-chip .chip-av {
    width: 58px !important;
    height: 58px !important;
  }
  .festival-front .character-lobby .acct-chip .tier-chip {
    font-size: 16px;
  }
  .festival-front .character-lobby .lobby-brand {
    top: 22px;
    height: 65px;
  }
  .festival-front .character-lobby .lobby-brand > img {
    width: 65px;
    height: 65px;
  }
  .festival-front .character-lobby .lobby-tools {
    top: 26px;
  }
  .festival-front .character-lobby .lobby-nav {
    max-width: 340px;
    gap: 17px;
  }
  .festival-front .character-lobby .lobby-tile {
    height: 145px;
    font-size: 23px;
    border-radius: 22px;
  }
  .festival-front .character-lobby .lobby-nav-art {
    width: 52px;
    height: 52px;
  }
  .festival-front .character-lobby .lobby-tile > svg {
    width: 43px !important;
    height: 43px !important;
  }
  .festival-front .character-lobby .lobby-pawn-icon,
  .festival-front .character-lobby .lobby-pawn-icon > img {
    width: 53px;
    height: 53px;
  }
  .festival-front .character-lobby .lobby-pawn-icon.pair {
    width: 72px;
  }
  .festival-front .character-lobby .lobby-pawn-icon.pair > img + img {
    left: 20px;
  }
  .festival-front .character-lobby .lobby-training {
    min-height: 56px;
    font-size: 20px;
  }
  .festival-front .character-lobby .lobby-private {
    max-width: 360px;
    gap: 16px;
  }
  .festival-front .character-lobby .lobby-room-heading {
    font-size: 16px;
  }
  .festival-front .character-lobby .lobby-room {
    min-height: 80px;
    font-size: 27px;
    padding: 15px 22px;
  }
  .festival-front .character-lobby .lobby-actions {
    padding: 15px;
    gap: 16px;
  }
  .festival-front .character-lobby .lobby-play {
    min-height: 120px;
  }
  .festival-front .character-lobby .lobby-ranked b {
    font-size: 36px;
  }
  .festival-front .character-lobby .lobby-ranked small {
    font-size: 17px;
  }
  .festival-front .character-lobby .lobby-ranked > .menu-rank-crest {
    width: 63px !important;
    height: 76px !important;
  }
  .festival-front .character-lobby .lobby-costume {
    font-size: 22px;
  }
  .festival-front .character-lobby .lobby-footer {
    height: 54px !important;
  }
  .festival-front .character-lobby .menu-social > .soc-btn {
    font-size: 16px !important;
    min-height: 39px !important;
  }
}
@media (max-height: 600px) {
  .festival-front .character-lobby .lobby-body {
    inset: 54px 0 39px;
  }
  .festival-front .character-lobby .lobby-account {
    top: 6px;
    left: max(16px, var(--safe-l));
    max-width: 205px;
  }
  .festival-front .character-lobby .acct-chip {
    min-height: 40px;
    font-size: 16px;
    border-radius: 12px;
  }
  .festival-front .character-lobby .acct-chip .chip-av {
    width: 31px !important;
    height: 31px !important;
  }
  .festival-front .character-lobby .acct-chip .tier-chip {
    font-size: 10px;
  }
  .festival-front .character-lobby .acct-chip .tier-chip svg {
    width: 17px !important;
    height: 18px !important;
  }
  .festival-front .character-lobby .lobby-brand {
    top: 5px;
    height: 42px;
    gap: 4px;
  }
  .festival-front .character-lobby .lobby-brand > img {
    width: 35px;
    height: 35px;
  }
  .festival-front .character-lobby .lobby-brand > h1 {
    font-size: 23px;
  }
  .festival-front .character-lobby .lobby-tools {
    top: 7px;
    right: max(16px, var(--safe-r));
    gap: 7px;
  }
  .festival-front .character-lobby .lobby-wallet,
  .festival-front .character-lobby .lobby-icon {
    min-height: 36px;
    font-size: 17px;
  }
  .festival-front .character-lobby .lobby-icon {
    width: 35px;
  }
  .festival-front .character-lobby .lobby-icon > svg {
    width: 20px !important;
    height: 20px !important;
  }
  .festival-front .character-lobby .lobby-wallet > .coin {
    width: 23px !important;
    height: 23px !important;
  }
  .festival-front .character-lobby .lobby-nav {
    gap: 9px;
    top: 14%;
  }
  .festival-front .character-lobby .lobby-tile {
    height: 65px;
    font-size: 14px;
    gap: 3px;
    border-radius: 12px;
    padding: 6px 2px;
  }
  .festival-front .character-lobby .lobby-tile > svg {
    width: 24px !important;
    height: 24px !important;
  }
  .festival-front .character-lobby .lobby-nav-art {
    width: 29px;
    height: 29px;
  }
  .festival-front .character-lobby .lobby-pawn-icon,
  .festival-front .character-lobby .lobby-pawn-icon > img {
    width: 28px;
    height: 29px;
  }
  .festival-front .character-lobby .lobby-pawn-icon.pair {
    width: 40px;
  }
  .festival-front .character-lobby .lobby-pawn-icon.pair > img + img {
    left: 12px;
  }
  .festival-front .character-lobby .lobby-training {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 13px;
  }
  .festival-front .character-lobby .lobby-training > .lobby-nav-art {
    width: 23px;
    height: 23px;
  }
  .festival-front .character-lobby .lobby-hero {
    inset: 2% 24% 26% 24%;
  }
  .festival-front .character-lobby .lobby-costume.festival-costume {
    font-size: 13px;
    min-height: 29px;
    padding: 4px 12px !important;
  }
  .festival-front .character-lobby .lobby-private {
    top: 19%;
    gap: 8px;
  }
  .festival-front .character-lobby .lobby-room-heading {
    font-size: 11px;
    letter-spacing: 0;
  }
  .festival-front .character-lobby .lobby-room {
    min-height: 44px;
    padding: 7px 10px;
    gap: 7px;
    font-size: 16px;
  }
  .festival-front .character-lobby .lobby-room > svg {
    width: 19px !important;
    height: 19px !important;
  }
  .festival-front .character-lobby .lobby-actions {
    left: 25%;
    bottom: 3%;
    padding: 7px;
    gap: 8px;
    border-radius: 16px;
  }
  .festival-front .character-lobby .lobby-play {
    min-height: 58px;
    font-size: 32px;
    gap: 12px;
    border-bottom-width: 4px;
  }
  .festival-front .character-lobby .lobby-ranked {
    padding: 6px 10px;
    gap: 9px;
  }
  .festival-front .character-lobby .lobby-ranked b {
    font-size: 23px;
  }
  .festival-front .character-lobby .lobby-ranked small {
    font-size: 11px;
    margin-top: 2px;
  }
  .festival-front .character-lobby .lobby-ranked > .menu-rank-crest {
    width: 32px !important;
    height: 40px !important;
  }
  .festival-front .character-lobby .lobby-footer.festival-footer {
    height: 36px !important;
    padding-inline: 15px;
  }
  .festival-front .character-lobby .menu-social > .soc-btn {
    min-height: 27px !important;
    font-size: 12px !important;
    padding: 3px 9px !important;
  }
  .festival-front .character-lobby .menu-legal {
    font-size: 10px;
  }
}
@media (max-height: 420px) {
  .festival-front .character-lobby .lobby-hero {
    inset: 0 24% 31% 24%;
  }
  .festival-front .character-lobby .lobby-nav {
    top: 10%;
    gap: 7px;
  }
  .festival-front .character-lobby .lobby-tile {
    height: 60px;
    font-size: 13px;
  }
  .festival-front .character-lobby .lobby-training {
    min-height: 31px;
  }
  .festival-front .character-lobby .lobby-actions {
    padding: 6px;
  }
  .festival-front .character-lobby .lobby-play {
    min-height: 52px;
    font-size: 29px;
  }
  .festival-front .character-lobby .lobby-ranked b {
    font-size: 21px;
  }
  .festival-front .character-lobby .lobby-ranked > .menu-rank-crest {
    width: 29px !important;
    height: 36px !important;
  }
}
@media (max-width: 660px) {
  .festival-front .character-lobby .lobby-brand > h1 {
    font-size: 18px;
  }
  .festival-front .character-lobby .lobby-brand > img {
    width: 29px;
    height: 29px;
  }
  .festival-front .character-lobby .lobby-account {
    width: 29%;
    left: 12px;
  }
  .festival-front .character-lobby .acct-chip {
    font-size: 14px;
  }
  .festival-front .character-lobby .lobby-wallet {
    padding: 5px 7px;
    font-size: 15px;
  }
  .festival-front .character-lobby .lobby-tools {
    gap: 5px;
    right: 12px;
  }
  .festival-front .character-lobby .lobby-nav {
    width: 21%;
    gap: 6px;
    top: 8%;
  }
  .festival-front .character-lobby .lobby-tile {
    height: 54px;
    font-size: 11px;
    gap: 2px;
  }
  .festival-front .character-lobby .lobby-tile > svg {
    width: 21px !important;
    height: 21px !important;
  }
  .festival-front .character-lobby .lobby-training {
    font-size: 11px;
    gap: 5px;
    min-height: 30px;
  }
  .festival-front .character-lobby .lobby-nav-art {
    width: 26px;
    height: 26px;
  }
  .festival-front .character-lobby .lobby-pawn-icon,
  .festival-front .character-lobby .lobby-pawn-icon > img {
    width: 25px;
    height: 26px;
  }
  .festival-front .character-lobby .lobby-private {
    width: 22%;
    top: 12%;
    gap: 7px;
  }
  .festival-front .character-lobby .lobby-room-heading {
    font-size: 10px;
    text-align: start;
  }
  .festival-front .character-lobby .lobby-room {
    min-height: 36px;
    font-size: 13px;
    gap: 5px;
    padding: 6px 7px;
  }
  .festival-front .character-lobby .lobby-room > svg {
    width: 16px !important;
    height: 16px !important;
  }
  .festival-front .character-lobby .lobby-room > span:last-child {
    display: none;
  }
  .festival-front .character-lobby .lobby-hero {
    inset: 0 24% 36% 24%;
  }
  .festival-front .character-lobby .lobby-costume.festival-costume {
    font-size: 11px;
    min-height: 24px;
    padding: 3px 9px !important;
  }
  .festival-front .character-lobby .lobby-actions {
    left: 25.5%;
    gap: 6px;
    padding: 5px;
    grid-template-columns: 1fr 1fr;
  }
  .festival-front .character-lobby .lobby-ranked {
    gap: 6px;
    padding: 5px 7px;
  }
  .festival-front .character-lobby .lobby-ranked b {
    font-size: 18px;
  }
  .festival-front .character-lobby .lobby-ranked small {
    font-size: 10px;
  }
  .festival-front .character-lobby .lobby-ranked > .menu-rank-crest {
    width: 25px !important;
    height: 32px !important;
  }
  .festival-front .character-lobby .lobby-ranked > .lobby-chevron {
    font-size: 18px;
  }
  .festival-front .character-lobby .lobby-play {
    min-height: 47px;
    font-size: 26px;
    gap: 9px;
  }
  .festival-front .character-lobby .lobby-footer.festival-footer {
    gap: 7px;
  }
  .festival-front .character-lobby .menu-legal {
    gap: 3px 8px;
    font-size: 9px;
  }
  .festival-front .character-lobby .festival-version {
    display: none;
  }
}
@media (min-width: 600px) and (orientation: portrait) {
  .festival-front .character-lobby .lobby-nav {
    width: 23%;
    top: 15%;
    gap: 10px;
  }
  .festival-front .character-lobby .lobby-tile {
    height: 85px;
    font-size: 15px;
  }
  .festival-front .character-lobby .lobby-private {
    top: 18%;
    width: 24%;
    right: 2.5%;
  }
  .festival-front .character-lobby .lobby-room-heading {
    font-size: 11px;
  }
  .festival-front .character-lobby .lobby-room {
    font-size: 15px;
    padding: 10px;
  }
  .festival-front .character-lobby .lobby-hero {
    inset: 10% 12% 21% 12%;
  }
  .festival-front .character-lobby .lobby-pawn.festival-pawn {
    width: 60% !important;
    height: 70% !important;
  }
  .festival-front .character-lobby .lobby-stage {
    left: 12%;
    width: 76%;
    height: 9%;
  }
  .festival-front .character-lobby .lobby-actions {
    left: 4%;
    right: 4%;
    bottom: 4%;
    grid-template-columns: 1fr 1.15fr;
  }
  .festival-front .character-lobby .lobby-ranked b {
    font-size: 25px;
  }
  .festival-front .character-lobby .lobby-brand > h1 {
    font-size: 22px;
  }
  .festival-front .character-lobby .lobby-brand > img {
    width: 38px;
    height: 38px;
  }
  .festival-front .character-lobby .lobby-account {
    width: 28%;
  }
  .festival-front .character-lobby .acct-chip {
    font-size: 17px;
  }
}
main.menu.festival-detail.ranked-mode {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 50px minmax(0, 1fr) 40px !important;
  gap: 12px !important;
  overflow: hidden !important;
  padding: 12px 24px !important;
}
.festival-detail.ranked-mode > .festival-detail-header {
  grid-row: 1;
  grid-column: 1;
  min-height: 0;
}
.festival-detail.ranked-mode > .festival-detail-footer {
  grid-row: 3;
  grid-column: 1;
  min-height: 0;
}
.festival-detail.ranked-mode > #menu-panel {
  grid-row: 2;
  grid-column: 1;
  width: 100% !important;
  max-width: 1200px !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 18px !important;
  border: 1px solid #9ba7c16e !important;
  border-radius: 22px !important;
  background: #192c45f5 !important;
  box-shadow: inset 0 1px #ffffff1c !important;
  overflow: hidden !important;
}
.approved-halloween + .festival-detail.ranked-mode > #menu-panel {
  background: #24203bf5 !important;
}
.festival-detail.ranked-mode .rk-page {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
  padding: 0 !important;
  max-width: none !important;
}
.festival-detail.ranked-mode .rk-top {
  display: flex !important;
  gap: 9px;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 34px;
  height: auto;
  flex: none;
  margin: 0;
  padding: 0;
}
.festival-detail.ranked-mode .rk-top > small {
  margin-right: auto;
  font-size: 12px;
  color: #cad0e1;
}
.festival-detail.ranked-mode .rk-top .btn {
  min-height: 33px;
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
}
.festival-detail.ranked-mode .rk-top .icon-btn {
  width: 33px;
  height: 33px;
  flex: none;
}
.festival-detail.ranked-mode .rk-match-layout {
  display: grid;
  grid-template-columns: minmax(200px, .7fr) minmax(0, 1.5fr);
  gap: 22px;
  min-height: 0;
  flex: 1;
}
.festival-detail.ranked-mode .rk-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  background:
    radial-gradient(
      ellipse at 50% 25%,
      #8d6d7540,
      transparent 70%),
    #16253a;
  border: 1px solid #9ba7c13c;
  border-radius: 17px;
  text-align: center;
  min-height: 0;
  overflow: hidden;
}
.approved-halloween + .festival-detail.ranked-mode .rk-identity {
  background:
    radial-gradient(
      ellipse at 50% 25%,
      #8d6d7540,
      transparent 70%),
    #211c32;
}
.festival-detail.ranked-mode .rk-identity > small {
  font: 800 12px Nunito;
  color: #c4c6d5;
}
.festival-detail.ranked-mode .rk-large-crest {
  width: clamp(70px, 10vw, 145px);
  height: clamp(80px, 17dvh, 165px);
  display: block;
  color: var(--tc);
  flex: none;
  filter: drop-shadow(0 9px 12px #10172f80);
}
.festival-detail.ranked-mode .rk-large-crest > svg {
  width: 100% !important;
  height: 100% !important;
}
.festival-detail.ranked-mode .rk-identity h3 {
  font: 800 30px/1 "Baloo 2";
  margin: 0;
}
.festival-detail.ranked-mode .rk-identity > strong {
  font: 800 28px/1 "Baloo 2";
  color: #ffe0a2;
}
.festival-detail.ranked-mode .rk-identity > strong > small {
  font-size: 13px;
  color: #d7cbd5;
}
.festival-detail.ranked-mode .rk-identity > p {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.festival-detail.ranked-mode .rk-controls {
  min-width: 0;
  min-height: 0;
}
.festival-detail.ranked-mode .rk-controls > .rk-me {
  display: flex !important;
  flex-direction: column;
  gap: 15px;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  padding: 18px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  overflow: visible !important;
}
.festival-detail.ranked-mode .rk-controls .rk-me-top,
.festival-detail.ranked-mode .rk-controls .rk-me > .sc-bar {
  display: none !important;
}
.festival-detail.ranked-mode .rk-controls .rk-me.locked,
.festival-detail.ranked-mode .rk-controls .rk-queue {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.festival-detail.ranked-mode .rk-controls .rk-me.locked > svg {
  width: 45px;
  height: 45px;
  color: #e8ca99;
}
.festival-detail.ranked-mode .rk-controls .rk-me.locked > div {
  display: grid;
  gap: 9px;
}
.festival-detail.ranked-mode .rk-modes {
  display: flex !important;
  gap: 8px;
  margin: 0;
  flex: none;
}
.festival-detail.ranked-mode .rk-modes > button {
  flex: 1;
  min-width: 0;
  min-height: 60px;
  padding: 12px;
  font: 800 21px/1.1 "Baloo 2";
  border: 1px solid #9ba7c170;
  border-radius: 13px;
  background: #34455f;
  color: #d7deed;
  white-space: normal;
}
.festival-detail.ranked-mode .rk-modes > button[aria-pressed=true] {
  color: #302a37;
  background: linear-gradient(#ffe6a2, #efc56d);
  border-color: #ffe2a3;
}
.festival-detail.ranked-mode .rk-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid #8a8fb369;
  border-radius: 14px;
  background: #1b263b;
}
.approved-halloween + .festival-detail.ranked-mode .rk-team {
  background: #28213d;
}
.festival-detail.ranked-mode .rk-partner-choice {
  grid-column: 1/-1;
  display: flex;
  min-height: 0;
  margin: 0;
}
.festival-detail.ranked-mode .rk-partner-choice > button {
  min-height: 37px;
  white-space: normal;
  font-size: 13px;
  padding: 7px;
}
.festival-detail.ranked-mode .rk-team > .mp-help {
  grid-column: 1/-1;
  margin: 0;
  font-size: 12px;
}
.festival-detail.ranked-mode .rk-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  grid-column: 1/-1;
  min-height: 0;
}
.festival-detail.ranked-mode .rk-team-head > b {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.festival-detail.ranked-mode .rk-team-head > b > svg {
  width: 17px;
  height: 17px;
}
.festival-detail.ranked-mode .rk-team .btn {
  min-height: 36px;
  height: auto;
  font: 800 14px/1.2 "Baloo 2";
  padding: 6px 9px;
  white-space: normal;
  min-width: 0;
}
.festival-detail.ranked-mode .rk-team-members {
  grid-column: 1/-1;
  display: flex;
  gap: 8px;
  min-height: 0;
}
.festival-detail.ranked-mode .rk-team-member {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 7px;
}
.festival-detail.ranked-mode .rk-team-code {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  min-height: 0;
  font-size: 12px;
}
.festival-detail.ranked-mode .rk-team-code > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.festival-detail.ranked-mode .rk-team-code small {
  font-size: 11px;
}
.festival-detail.ranked-mode .rk-controls .btn-quick {
  margin-top: auto !important;
  flex: none;
  min-height: 55px !important;
  height: auto !important;
  font: 800 25px/1.1 "Baloo 2";
  padding: 10px;
}
.festival-detail.ranked-mode .rk-controls .rk-msg {
  font-size: 12px;
  margin: 0;
}
.festival-detail.ranked-mode .rk-identity .rk-lock5 {
  width: 100%;
  margin: 0;
  padding: 9px;
  gap: 7px;
  text-align: start;
}
.festival-detail.ranked-mode .rk-identity .rk-lock5 > svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.festival-detail.ranked-mode .rk-identity .rk-lock5 small {
  font-size: 11px;
  line-height: 1.25;
}
.festival-detail.ranked-mode .rk-identity .rk-lock5 .num {
  font-size: 11px;
}
.festival-detail.ranked-mode .rk-identity:has(.rk-lock5) {
  gap: 9px;
}
.festival-detail.ranked-mode .rk-leader-layout {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  gap: 12px;
}
.festival-detail.ranked-mode .rk-leader-empty {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 0;
}
.festival-detail.ranked-mode .rk-leader-empty > svg {
  width: 64px;
  height: 64px;
  color: #ead393;
}
.festival-detail.ranked-mode .rk-leader-empty > p {
  font: 800 22px/1.2 "Baloo 2";
  max-width: 55%;
  margin: 0;
  color: #cbd0df;
}
.festival-detail.ranked-mode .rk-leader-layout .podium {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 14px;
  flex: 1;
  min-height: 0;
  max-height: 60%;
  height: auto;
  padding: 6px;
}
.festival-detail.ranked-mode .rk-leader-layout .pd {
  max-width: 28%;
  flex: 1;
  min-height: 0;
  height: 100%;
  position: relative;
}
.festival-detail.ranked-mode .rk-leader-layout .rk-right {
  flex: 1;
  min-height: 0;
  overflow: auto !important;
  margin: 0 !important;
  height: auto !important;
}
.festival-detail.ranked-mode .rk-my-position {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #3c3951;
  border: 1px solid #d0ac7369;
  border-radius: 12px;
  padding: 11px 15px;
  min-height: 48px;
  flex: none;
  font-size: 14px;
}
.festival-detail.ranked-mode .rk-my-position .tier-chip > svg {
  width: 27px;
  height: 30px;
}
.festival-detail.ranked-mode .rk-my-position > strong {
  margin-left: auto;
  color: #ffe3a7;
}
@media (max-height: 600px) {
  main.menu.festival-detail.ranked-mode {
    grid-template-rows: 38px minmax(0, 1fr) 32px !important;
    gap: 6px !important;
    padding: 5px 14px !important;
  }
  .festival-detail.ranked-mode > #menu-panel {
    padding: 10px !important;
    border-radius: 17px !important;
  }
  .festival-detail.ranked-mode .rk-page {
    gap: 7px;
  }
  .festival-detail.ranked-mode .rk-top {
    min-height: 27px;
    gap: 7px;
  }
  .festival-detail.ranked-mode .rk-top > small {
    font-size: 10px;
  }
  .festival-detail.ranked-mode .rk-top .btn {
    min-height: 27px;
    padding: 4px 8px;
    font-size: 11px;
  }
  .festival-detail.ranked-mode .rk-top .icon-btn {
    width: 27px;
    height: 27px;
  }
  .festival-detail.ranked-mode .rk-match-layout {
    grid-template-columns: minmax(150px, .65fr) minmax(0, 1.65fr);
    gap: 12px;
  }
  .festival-detail.ranked-mode .rk-identity {
    padding: 9px;
    gap: 7px;
  }
  .festival-detail.ranked-mode .rk-large-crest {
    width: 68px;
    height: 77px;
  }
  .festival-detail.ranked-mode .rk-identity h3 {
    font-size: 23px;
  }
  .festival-detail.ranked-mode .rk-identity > strong {
    font-size: 22px;
  }
  .festival-detail.ranked-mode .rk-identity > small,
  .festival-detail.ranked-mode .rk-identity > p {
    font-size: 11px;
  }
  .festival-detail.ranked-mode .rk-identity > .btn {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 11px;
  }
  .festival-detail.ranked-mode .rk-controls > .rk-me {
    gap: 8px;
    padding: 4px !important;
  }
  .festival-detail.ranked-mode .rk-modes {
    gap: 7px;
  }
  .festival-detail.ranked-mode .rk-modes > button {
    min-height: 40px;
    padding: 7px;
    font-size: 17px;
  }
  .festival-detail.ranked-mode .rk-team {
    gap: 6px;
    padding: 8px;
  }
  .festival-detail.ranked-mode .rk-partner-choice > button {
    min-height: 30px;
    padding: 4px 6px;
    font-size: 11px;
  }
  .festival-detail.ranked-mode .rk-team .btn {
    min-height: 29px;
    font-size: 12px;
    padding: 4px 8px;
  }
  .festival-detail.ranked-mode .rk-team-head > b {
    font-size: 11px;
  }
  .festival-detail.ranked-mode .rk-team-members {
    gap: 5px;
  }
  .festival-detail.ranked-mode .rk-team-member {
    padding: 4px;
    font-size: 11px;
  }
  .festival-detail.ranked-mode .rk-team-code {
    padding: 3px 6px;
    font-size: 11px;
  }
  .festival-detail.ranked-mode .rk-controls .btn-quick {
    min-height: 39px !important;
    padding: 7px;
    font-size: 20px;
  }
  .festival-detail.ranked-mode .rk-identity:has(.rk-lock5) .rk-large-crest {
    width: 47px;
    height: 53px;
  }
  .festival-detail.ranked-mode .rk-identity:has(.rk-lock5) h3 {
    font-size: 19px;
  }
  .festival-detail.ranked-mode .rk-identity .rk-lock5 {
    padding: 5px;
  }
  .festival-detail.ranked-mode .rk-identity .rk-lock5 b {
    font-size: 11px;
  }
  .festival-detail.ranked-mode .rk-identity .rk-lock5 small {
    font-size: 10px;
  }
  .festival-detail.ranked-mode .rk-identity:has(.rk-lock5) > .btn {
    display: none;
  }
  .festival-detail.ranked-mode .rk-my-position {
    min-height: 35px;
    padding: 5px 10px;
    font-size: 12px;
  }
  .festival-detail.ranked-mode .rk-leader-empty > p {
    font-size: 19px;
  }
}
@media (max-height: 360px) {
  .festival-detail.ranked-mode .rk-team-head:not(:has(.rk-team-leave)) {
    display: none;
  }
  .festival-detail.ranked-mode .rk-modes > button {
    min-height: 31px;
    font-size: 14px;
    padding: 4px;
  }
  .festival-detail.ranked-mode .rk-team {
    padding: 5px;
    gap: 5px;
  }
  .festival-detail.ranked-mode .rk-partner-choice > button {
    min-height: 27px;
  }
  .festival-detail.ranked-mode .rk-team .btn {
    min-height: 27px;
  }
  .festival-detail.ranked-mode .rk-controls > .rk-me {
    gap: 6px;
  }
  .festival-detail.ranked-mode .rk-identity {
    gap: 5px;
  }
  .festival-detail.ranked-mode .rk-identity .rk-lock5 small {
    display: none;
  }
  .festival-detail.ranked-mode .rk-large-crest {
    width: 55px;
    height: 62px;
  }
  .festival-detail.ranked-mode .rk-identity > p {
    display: none;
  }
}
main.menu.festival-detail.shop-preview-mode {
  display: grid !important;
  grid-template-columns: minmax(170px, .58fr) minmax(0, 1.65fr) !important;
  grid-template-rows: 50px minmax(0, 1fr) 40px !important;
  gap: 12px 20px !important;
  overflow: hidden !important;
  padding: 12px 24px !important;
}
main.menu.festival-detail.shop-preview-mode > .festival-detail-header {
  grid-row: 1 !important;
  grid-column: 1/-1 !important;
  min-height: 0;
}
main.menu.festival-detail.shop-preview-mode > .hero {
  grid-row: 2 !important;
  grid-column: 1 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  width: 100% !important;
  min-width: 0 !important;
  border: 1px solid #9aa9c13d;
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse at 50% 45%,
      #8196ba2c,
      transparent 68%),
    #192c45c9;
  overflow: hidden !important;
  position: relative;
}
.approved-halloween + main.menu.festival-detail.shop-preview-mode > .hero {
  background:
    radial-gradient(
      ellipse at 50% 45%,
      #aa86b02c,
      transparent 68%),
    #241f3dc9;
}
main.menu.festival-detail.shop-preview-mode > .festival-detail-footer {
  grid-row: 3 !important;
  grid-column: 1/-1 !important;
}
main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) {
  position: relative;
  grid-row: 2 !important;
  grid-column: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  grid-template-areas: "premium wallet" "tabs pager" "items items" "selection selection" !important;
  gap: 14px !important;
  padding: 20px !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  align-self: stretch !important;
  scrollbar-gutter: auto;
  background: #192c45f5 !important;
  border: 1px solid #9ba7c16e !important;
  border-radius: 20px !important;
  box-shadow: inset 0 1px #ffffff1c !important;
}
.approved-halloween + main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) {
  background: #24203bf5 !important;
}
main.menu.festival-detail.shop-preview-mode #menu-panel > .shop-head,
main.menu.festival-detail.shop-preview-mode #menu-panel > .inventory-description,
main.menu.festival-detail.shop-preview-mode #menu-panel > [data-go=main] {
  display: none !important;
}
main.menu.festival-detail.shop-preview-mode #menu-panel > .inventory-heading {
  grid-area: premium !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin: 0 !important;
  min-height: 32px;
}
.festival-detail .inventory-heading h2 {
  font: 800 23px/1 "Baloo 2";
  margin: 0;
}
.festival-detail .inventory-heading small {
  display: none;
}
.festival-detail .inventory-heading .btn {
  font-size: 12px;
  min-height: 31px;
}
main.menu.festival-detail.shop-preview-mode #menu-panel.shop > .jeton {
  grid-area: wallet !important;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  height: auto;
  margin: 0 !important;
  padding: 3px 8px !important;
  background: #16243c;
  border-radius: 10px;
}
.festival-detail .shop > .jeton b {
  font-size: 20px;
}
.festival-detail .shop > .jeton > span {
  font-size: 11px;
}
.festival-detail .shop > .jeton .reward-pause-mobile {
  display: none !important;
}
main.menu.festival-detail.shop-preview-mode #menu-panel.shop > .premium-card {
  grid-area: premium !important;
  position: static;
  align-self: center;
  min-height: 32px !important;
  margin: 0 !important;
  border: 1px solid #bda56b;
  border-radius: 10px;
  background:
    linear-gradient(
      110deg,
      #5a4b35,
      #2b3c56);
  overflow: visible !important;
  min-width: 0 !important;
}
.festival-detail .shop .premium-summary {
  padding: 8px 12px;
  min-height: 32px;
  gap: 6px;
}
.festival-detail .shop .premium-summary b {
  font: 800 15px/1.1 "Baloo 2";
}
.festival-detail .shop .premium-chevron {
  font-size: 17px;
}
main.menu.festival-detail.shop-preview-mode #menu-panel.shop > .premium-card[open] {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 10;
  background: #28334a;
  max-height: calc(100% - 24px);
  overflow: auto !important;
  box-shadow: 0 14px 50px #080e29b3, 0 0 0 100vmax #0c12286b;
}
main.menu.festival-detail.shop-preview-mode #menu-panel.shop:has(.premium-card[open]) {
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  overflow: hidden !important;
}
.festival-detail .shop .premium-content {
  gap: 12px;
  padding: 6px 14px 15px;
}
.festival-detail .shop .premium-content .btn {
  min-height: 42px !important;
  font-size: 14px !important;
}
.festival-detail .shop .premium-content .premium-copy > small {
  font-size: 13px !important;
  line-height: 1.4;
}
main.menu.festival-detail.shop-preview-mode #menu-panel > .stabs {
  grid-area: tabs !important;
  display: flex !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 3px !important;
  background: #15243b;
  border-radius: 12px;
}
.festival-detail #menu-panel > .stabs > button {
  flex: 1;
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 6px 10px !important;
  white-space: normal !important;
  font: 800 16px/1.1 "Baloo 2" !important;
  border-radius: 9px !important;
}
.festival-detail .inventory-tabs small {
  font-size: 10px;
  margin-left: 5px;
}
.festival-detail .catalog-pagination {
  grid-area: pager;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  min-height: 32px;
  font: 800 12px Nunito;
  color: #c5cce0;
}
.festival-detail .catalog-pagination > button {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  padding: 1px 9px;
  background: #3d465e;
  border: 1px solid #8f93ac80;
  border-radius: 9px;
  color: white;
  font: 800 22px/1 "Baloo 2";
  cursor: pointer;
}
.festival-detail .catalog-pagination > button:disabled {
  opacity: .35;
  cursor: default;
}
main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) > :is(.sgrid, .inventory-items) {
  grid-area: items !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 12px !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  align-content: stretch !important;
}
.festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  justify-items: center;
  min-height: 0 !important;
  height: 100% !important;
  min-width: 0 !important;
  padding: 10px 7px !important;
  gap: 5px !important;
  border: 1px solid #8d8dab75 !important;
  border-bottom: 3px solid #142238 !important;
  border-radius: 16px !important;
  background: linear-gradient(#3b4d68, #2a3a53) !important;
  overflow: hidden !important;
  box-shadow: inset 0 1px #ffffff12 !important;
}
.approved-halloween + .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) {
  background: linear-gradient(#433b59, #302d47) !important;
  border-bottom-color: #18182e !important;
}
.festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem.sel, .inventory-item.selected) {
  border-color: #e7c583 !important;
  box-shadow: inset 0 0 0 1px #e7c583 !important;
}
.festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(.sth, i) {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 150px !important;
  min-width: 0 !important;
}
.festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) :is(.sth, i) > :is(img, svg) {
  width: 100% !important;
  height: 100% !important;
  max-width: 150px !important;
  max-height: 150px !important;
  object-fit: contain !important;
  min-height: 0 !important;
}
.festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > b {
  font: 800 17px/1.1 "Baloo 2" !important;
  overflow-wrap: anywhere;
  text-align: center;
}
.festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(em, small) {
  font: 800 11px/1.2 Nunito !important;
  color: #e5d4b5;
  white-space: normal;
  text-align: center;
}
.festival-detail #menu-panel .sitem > .winl,
.festival-detail #menu-panel .sitem > .event-access:not(em) {
  display: none !important;
}
main.menu.festival-detail.shop-preview-mode #menu-panel > .spv,
main.menu.festival-detail.shop-preview-mode #menu-panel > .inventory-selection {
  grid-area: selection !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 0 0 !important;
  min-height: 58px;
  max-height: none;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid #9ca9c14d !important;
  border-radius: 0 !important;
  background: none !important;
}
main.menu.festival-detail.shop-preview-mode #menu-panel .spv > :is(.spvimg, .spvsvg),
.festival-detail .inventory-selected-thumb {
  width: 43px !important;
  height: 43px !important;
  object-fit: contain;
  flex: none;
}
.festival-detail .inventory-selected-thumb > img,
.festival-detail .inventory-selected-thumb > svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}
main.menu.festival-detail.shop-preview-mode #menu-panel .spvinfo {
  flex: 1;
  min-width: 0;
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  justify-content: space-between;
}
.festival-detail .shop-selection-title > b,
.festival-detail .inventory-selected-name > b {
  font: 800 20px/1.1 "Baloo 2" !important;
}
.festival-detail .inventory-selected-name {
  flex: 1;
}
.festival-detail .inventory-selected-name > small {
  font-size: 11px;
  color: #c8cde0;
}
.festival-detail .shop .sact {
  min-width: 140px !important;
  max-width: 55%;
  display: flex;
  flex-direction: column;
  gap: 3px !important;
}
.festival-detail .shop .sact > .btn,
.festival-detail .inventory-selection > .btn {
  min-height: 40px !important;
  width: auto !important;
  min-width: 140px;
  padding: 7px 13px !important;
  font: 800 17px/1.1 "Baloo 2" !important;
  white-space: normal !important;
  border-radius: 11px !important;
}
.festival-detail .shop .sact > .need {
  font-size: 10px !important;
  line-height: 1.15;
}
.festival-detail .shop .sact > .event-access,
.festival-detail .shop .sact > .price {
  display: none !important;
}
.shop-live-hero > .shop-world-preview {
  position: absolute;
  inset: 0;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.catalog-preview-art {
  position: absolute;
  inset: 6% 4% 14%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
  display: grid;
  place-items: center;
}
.catalog-preview-art:has(canvas) {
  background-image: none !important;
}
.catalog-preview-art > canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
.catalog-preview-art > img {
  max-width: 94%;
  max-height: 90%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.catalog-preview-stage {
  position: absolute;
  bottom: 12%;
  left: 8%;
  width: 84%;
  height: 10%;
  background:
    radial-gradient(
      ellipse,
      #8195b2,
      #4e617e 64%,
      #c2ac77 67%,
      #3b4863 71%);
  border-radius: 50%;
  box-shadow: 0 7px #192a42;
}
.festival-detail .inventory-pawn-stage {
  position: absolute;
  inset: 5% 0 25%;
  min-height: 0 !important;
}
.festival-detail .inventory-pawn {
  position: absolute;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}
.festival-detail .inventory-pawn > canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.festival-detail .inventory-loadout {
  position: absolute;
  inset: auto 9px 15px;
  display: flex !important;
  gap: 7px !important;
}
.festival-detail .inventory-loadout-slot {
  min-width: 0 !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 7px 3px !important;
}
.festival-detail .inventory-loadout-slot > i {
  width: 37px;
  height: 37px;
  display: block;
}
.festival-detail .inventory-loadout-slot > i > img,
.festival-detail .inventory-loadout-slot > i > svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.festival-detail .inventory-loadout-slot > span {
  display: block;
  text-align: center;
}
.festival-detail .inventory-loadout-slot small {
  font-size: 11px;
}
.festival-detail .inventory-loadout-slot b {
  display: none;
}
@media (max-width: 1099px), (orientation: portrait) {
  main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) > :is(.sgrid, .inventory-items) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-height: 600px) {
  main.menu.festival-detail.shop-preview-mode {
    grid-template-columns: minmax(145px, .52fr) minmax(0, 1.8fr) !important;
    grid-template-rows: 38px minmax(0, 1fr) 32px !important;
    gap: 7px 12px !important;
    padding: 5px 14px !important;
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) {
    padding: 10px !important;
    gap: 7px !important;
    border-radius: 16px !important;
  }
  .festival-detail #menu-panel > .stabs > button {
    min-height: 29px !important;
    padding: 4px 7px !important;
    font-size: 13px !important;
  }
  .festival-detail .shop .premium-summary {
    padding: 5px 9px;
    min-height: 29px;
  }
  .festival-detail .shop .premium-summary b {
    font-size: 13px;
  }
  .festival-detail .catalog-pagination {
    gap: 5px;
    font-size: 11px;
  }
  .festival-detail .catalog-pagination > button {
    min-width: 28px;
    min-height: 28px;
    font-size: 20px;
  }
  .festival-detail .inventory-heading h2 {
    font-size: 18px;
  }
  .festival-detail .inventory-heading .btn {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 11px;
  }
  .festival-detail .shop > .jeton b {
    font-size: 16px;
  }
  .festival-detail .shop > .jeton .coin {
    width: 20px !important;
    height: 20px !important;
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel.shop > .jeton {
    min-height: 29px;
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel.shop > .premium-card {
    min-height: 29px !important;
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) > :is(.sgrid, .inventory-items) {
    gap: 7px !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) {
    padding: 5px 5px 6px !important;
    gap: 2px !important;
    border-radius: 10px !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > b {
    font-size: 13px !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(em, small) {
    font-size: 10px !important;
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel > .spv,
  main.menu.festival-detail.shop-preview-mode #menu-panel > .inventory-selection {
    min-height: 43px !important;
    gap: 8px;
    padding-top: 6px !important;
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel .spv > :is(.spvimg, .spvsvg),
  .festival-detail .inventory-selected-thumb {
    width: 32px !important;
    height: 32px !important;
  }
  .festival-detail .shop-selection-title > b,
  .festival-detail .inventory-selected-name > b {
    font-size: 16px !important;
  }
  .festival-detail .shop .sact {
    min-width: 113px !important;
  }
  .festival-detail .shop .sact > .btn,
  .festival-detail .inventory-selection > .btn {
    min-height: 32px !important;
    min-width: 113px;
    padding: 5px 9px !important;
    font-size: 14px !important;
  }
  .festival-detail .inventory-selected-name > small {
    display: none;
  }
  .festival-detail .shop .sact > .need {
    display: none;
  }
  .festival-detail .inventory-loadout {
    gap: 5px !important;
    bottom: 10px;
  }
  .festival-detail .inventory-loadout-slot > i {
    width: 27px;
    height: 27px;
  }
  .festival-detail .inventory-loadout-slot small {
    font-size: 10px;
  }
}
@media (max-width: 660px) {
  main.menu.festival-detail.shop-preview-mode {
    grid-template-columns: minmax(125px, .55fr) minmax(0, 1.75fr) !important;
    gap: 6px 8px !important;
    padding-inline: 10px !important;
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) > :is(.sgrid, .inventory-items) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) {
    gap: 6px !important;
    padding: 8px !important;
  }
  .festival-detail .shop > .jeton > span {
    display: none;
  }
  .festival-detail .inventory-heading {
    gap: 5px;
  }
  .festival-detail .inventory-heading h2 {
    font-size: 16px;
  }
  .festival-detail .inventory-heading .btn {
    font-size: 10px;
    padding: 4px 6px;
  }
  .festival-detail .inventory-heading > div {
    display: none;
  }
  .festival-detail #menu-panel > .stabs > button {
    font-size: 11px !important;
    padding-inline: 5px !important;
  }
  .festival-detail .inventory-tabs small {
    display: none;
  }
  .festival-detail .shop .premium-summary b {
    font-size: 12px;
  }
  .festival-detail #menu-panel .spv > .spvimg,
  .festival-detail #menu-panel .spv > .spvsvg,
  .festival-detail .inventory-selected-thumb {
    display: none !important;
  }
  .festival-detail .shop .sact {
    min-width: 103px !important;
  }
  .festival-detail .shop .sact > .btn,
  .festival-detail .inventory-selection > .btn {
    min-width: 103px;
    font-size: 12px !important;
  }
  .festival-detail .shop-selection-title > b,
  .festival-detail .inventory-selected-name > b {
    font-size: 14px !important;
  }
}
.festival-front .character-lobby .lobby-pumpkin {
  position: absolute;
  left: -2%;
  bottom: 10%;
  width: 22%;
  aspect-ratio: 1;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 8px 6px #17112670);
}
.festival-front .character-lobby .lobby-pumpkin.second {
  left: auto;
  right: -2%;
  bottom: 9%;
  width: 20%;
  transform: scaleX(-1) rotate(-5deg);
}
.festival-front .character-lobby .lobby-pumpkin > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.festival-front .character-lobby .lobby-pumpkin > img.lobby-pumpkin-light {
  opacity: .6;
  filter: drop-shadow(0 0 5px #bd7aff) drop-shadow(0 0 12px #9629f2);
  animation: lobby-purple-light 3.8s ease-in-out infinite;
}
.festival-front .character-lobby .lobby-pumpkin.second > img.lobby-pumpkin-light {
  animation-delay: -1.7s;
  animation-duration: 4.6s;
}
@keyframes lobby-purple-light {
  0%, 100% {
    opacity: .12;
  }
  48%, 58% {
    opacity: .95;
  }
}
.festival-front .character-lobby .lobby-front-fog {
  z-index: 5;
  opacity: .7;
  background: none;
  filter: blur(10px);
  height: 29%;
  bottom: 7%;
  overflow: visible;
}
.festival-front .character-lobby .lobby-front-fog:before,
.festival-front .character-lobby .lobby-front-fog:after {
  content: "";
  position: absolute;
  inset: 0 -8%;
  background:
    radial-gradient(
      ellipse at 30% 65%,
      #d0c0e969,
      transparent 50%),
    radial-gradient(
      ellipse at 70% 73%,
      #cec0e168,
      transparent 51%);
  animation: lobby-fog-drift 12s ease-in-out infinite alternate;
  transform: translate3d(-5%, 0, 0);
}
.festival-front .character-lobby .lobby-front-fog:after {
  opacity: .65;
  inset: 25% 4% -5%;
  animation-direction: alternate-reverse;
  animation-duration: 15s;
  background:
    radial-gradient(
      ellipse at 50% 65%,
      #e0d3ed70,
      transparent 60%);
}
@keyframes lobby-fog-drift {
  from {
    transform: translate3d(-5%, 2%, 0);
  }
  to {
    transform: translate3d(6%, -3%, 0);
  }
}
.lobby-scenery > img.lobby-castle {
  opacity: .43;
  animation: none !important;
}
html[data-reduced-motion=true] .character-lobby :is(.lobby-pumpkin-light, .lobby-front-fog):before,
html[data-reduced-motion=true] .character-lobby :is(.lobby-pumpkin-light, .lobby-front-fog):after,
html[data-reduced-motion=true] .character-lobby .lobby-pumpkin-light {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .character-lobby .lobby-pumpkin-light,
  .character-lobby .lobby-front-fog:before,
  .character-lobby .lobby-front-fog:after {
    animation: none !important;
  }
}
.festival-front .character-lobby .soc-btn > img {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  mask: none !important;
}
main.menu.festival-detail.shop-preview-mode.shop-preview-mode {
  grid-template-columns: minmax(170px, .58fr) minmax(0, 1.65fr) !important;
}
main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 14px;
  align-items: center;
  z-index: 12;
  overflow: visible;
}
main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header > .festival-section-title {
  justify-self: start;
  font-size: 27px;
}
.catalog-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.catalog-header-tools > .premium-card {
  position: relative;
  min-width: 145px;
  max-width: 240px;
  min-height: 36px;
  padding: 0;
  border: 1px solid #b8a06d;
  border-radius: 11px;
  background:
    linear-gradient(
      115deg,
      #5b4a32,
      #2c3b55);
  color: #fff2d5;
  box-shadow: inset 0 1px #ffffff25;
  overflow: visible;
}
.catalog-header-tools .premium-summary {
  min-height: 36px;
  gap: 10px;
  padding: 7px 12px;
  white-space: nowrap;
}
.catalog-header-tools .premium-summary b {
  font: 800 16px/1.1 "Baloo 2";
}
.catalog-header-tools .premium-card[open] > .premium-content {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: min(450px, 85vw);
  max-height: 70dvh;
  overflow: auto;
  background: #27334a;
  border: 1px solid #b8a06d;
  border-radius: 15px;
  padding: 17px;
  box-shadow: 0 12px 45px #080d2699;
  display: grid;
  gap: 14px;
  z-index: 20;
}
.catalog-header-tools .premium-copy > small {
  display: block;
  color: #dae0ed;
  font: 800 13px/1.4 Nunito;
}
.catalog-header-tools .premium-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.catalog-header-tools .premium-content .btn {
  font-size: 14px;
  min-height: 39px;
  white-space: normal;
}
.catalog-header-tools .premium-policy-link {
  font: 800 11px Nunito;
  color: #d8dfef;
}
.catalog-header-tools > .catalog-header-wallet {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  margin: 0 !important;
  padding: 5px 10px;
  border: 1px solid #92a2bd80;
  border-radius: 11px;
  background: #16263f;
  color: #f7e1a2;
  font: 800 21px/1 "Baloo 2";
}
.catalog-header-tools > .catalog-header-wallet > span,
.catalog-header-tools .premium-adfree {
  display: none !important;
}
.catalog-header-tools > .catalog-header-wallet > .coin {
  width: 24px;
  height: 24px;
  flex: none;
}
.catalog-header-tools > .icon-btn {
  flex: none;
}
main.menu.festival-detail.shop-preview-mode.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) {
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  grid-template-areas: "tabs pager" "items items" "selection selection" !important;
}
main.menu.festival-detail.shop-preview-mode.shop-preview-mode #menu-panel > .inventory-heading {
  display: none !important;
}
.catalog-preview-art {
  inset: auto !important;
  top: 50% !important;
  left: 4% !important;
  width: 92% !important;
  height: auto !important;
  aspect-ratio: 3/4;
  max-height: 86%;
  transform: translateY(-50%);
  isolation: isolate;
}
.catalog-preview-art > .catalog-preview-stage {
  position: absolute;
  inset: auto 8% 3%;
  width: auto;
  height: 10%;
  z-index: 0;
}
.catalog-preview-art > canvas {
  position: relative;
  z-index: 1;
}
.festival-detail .inventory-pawn-stage {
  inset: auto !important;
  top: 45% !important;
  left: 4% !important;
  width: 92% !important;
  aspect-ratio: 3/4;
  height: auto !important;
  max-height: 70%;
  transform: translateY(-50%);
}
.festival-detail .inventory-pawn-stage .inventory-platform {
  bottom: 2% !important;
  height: 10% !important;
  width: 84% !important;
  left: 8% !important;
}
.festival-detail-footer .menu-legal > a {
  color: #d3d9e8;
  opacity: 1;
}
.festival-detail-footer .festival-version {
  color: #a9b6cc;
}
@media (max-height: 600px) {
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode {
    grid-template-columns: minmax(145px, .52fr) minmax(0, 1.8fr) !important;
  }
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header {
    gap: 10px;
  }
  .catalog-header-tools {
    gap: 7px;
  }
  .catalog-header-tools > .premium-card {
    min-width: 118px;
    min-height: 29px;
  }
  .catalog-header-tools .premium-summary {
    min-height: 29px;
    padding: 5px 9px;
    gap: 6px;
  }
  .catalog-header-tools .premium-summary b {
    font-size: 13px;
  }
  .catalog-header-tools > .catalog-header-wallet {
    min-height: 29px;
    padding: 3px 7px;
    font-size: 17px;
  }
  .catalog-header-tools > .catalog-header-wallet > .coin {
    width: 21px;
    height: 21px;
  }
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header > .festival-section-title {
    font-size: 21px;
  }
  .festival-detail-footer .menu-legal {
    font-size: 10px !important;
  }
}
@media (max-width: 660px) {
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode {
    grid-template-columns: minmax(125px, .55fr) minmax(0, 1.75fr) !important;
  }
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header {
    gap: 8px;
  }
  .catalog-header-tools {
    gap: 6px;
  }
  .catalog-header-tools > .premium-card {
    min-width: 106px;
  }
  .catalog-header-tools .premium-summary {
    padding: 5px 7px;
  }
  .catalog-header-tools .premium-summary b {
    font-size: 12px;
  }
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header > .festival-section-title {
    font-size: 19px;
  }
  .catalog-header-tools > .icon-btn {
    width: 32px;
    height: 32px;
  }
  .festival-front .character-lobby .menu-legal {
    font-size: 10px;
  }
}
@media (max-height: 360px) {
  .festival-detail.ranked-mode .rk-controls > .rk-me {
    gap: 4px;
  }
  .festival-detail.ranked-mode .rk-team {
    gap: 4px;
  }
  .festival-detail.ranked-mode .rk-controls .btn-quick {
    min-height: 35px !important;
  }
}
@media (max-height: 360px) {
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-rows: 1fr 1fr !important;
    column-gap: 7px !important;
    row-gap: 1px !important;
    padding: 5px 6px !important;
    align-items: center !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(.sth, i) {
    grid-column: 1 !important;
    grid-row: 1/3 !important;
    min-height: 32px !important;
    max-height: 100% !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > b {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 13px !important;
    text-align: start;
    justify-self: start;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(em, small) {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    text-align: start;
    justify-self: start;
    font-size: 10px !important;
  }
}
.festival-detail.inventory-mode .inventory-loadout {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  left: 6px;
  right: 6px;
  gap: 4px !important;
}
.festival-detail.inventory-mode .inventory-loadout-slot {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 6px 2px !important;
}
.festival-detail.inventory-mode .inventory-pawn-stage {
  top: 38% !important;
  max-height: 60% !important;
}
.festival-front .character-lobby .lobby-tile > span {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.festival-front .character-lobby .lobby-room > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 600px) and (orientation: portrait) {
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .hero {
    display: none !important;
  }
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) {
    grid-column: 1 !important;
  }
}
.festival-detail #menu-panel > .stabs {
  gap: 8px !important;
}
@media (orientation: landscape) and (max-width: 900px) and (max-height: 600px) {
  .festival-detail.inventory-mode .inventory-loadout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 5px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 9px !important;
  }
  .festival-detail.inventory-mode .inventory-loadout-slot {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: start !important;
    gap: 9px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 30px !important;
    height: auto !important;
    padding: 4px 9px !important;
    border-radius: 9px !important;
  }
  .festival-detail.inventory-mode .inventory-loadout-slot > i {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
  }
  .festival-detail.inventory-mode .inventory-loadout-slot > span {
    display: block !important;
    min-width: 0 !important;
    text-align: start !important;
  }
  .festival-detail.inventory-mode .inventory-loadout-slot small {
    font: 800 12px/1.15 Nunito !important;
    overflow-wrap: anywhere;
  }
  .festival-detail.inventory-mode .inventory-pawn-stage {
    top: 26% !important;
    height: 48% !important;
    max-height: 48% !important;
    aspect-ratio: auto !important;
    width: 92% !important;
    left: 4% !important;
  }
  .festival-detail #menu-panel > .stabs > button {
    font-size: 13px !important;
    min-height: 31px !important;
  }
}
@media (max-width: 660px) {
  .festival-detail #menu-panel > .stabs {
    gap: 6px !important;
  }
  .festival-detail #menu-panel > .stabs > button {
    font-size: 12px !important;
  }
}
.festival-detail .shop-world-preview .shop-world-roll {
  min-width: 0 !important;
  max-width: calc(100% - 16px) !important;
  width: calc(100% - 16px);
  font-size: clamp(12px, 1.4vw, 19px);
  padding: 6px 8px !important;
  bottom: 9px !important;
  box-sizing: border-box;
}
.festival-detail .shop-world-preview .shop-world-chip {
  max-width: calc(100% - 20px) !important;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  left: 10px !important;
  top: 10px !important;
  font-size: clamp(11px, 1.4vw, 19px);
  padding: 5px 9px !important;
}
.festival-detail.inventory-mode .inventory-loadout {
  width: auto !important;
  box-sizing: border-box;
}
.festival-front .character-lobby .lobby-front-fog {
  left: -12%;
  right: -12%;
  bottom: 8%;
  height: 35%;
  opacity: 1;
  filter: blur(7px);
  mask-image:
    radial-gradient(
      ellipse 50% 50% at 50% 50%,
      #000 28%,
      #000c 50%,
      transparent 100%);
}
.festival-front .character-lobby .lobby-front-fog:before {
  inset: 0 -5%;
  opacity: .95;
  background:
    radial-gradient(
      ellipse at 18% 72%,
      #713ea9cc 0%,
      #8c58bd80 25%,
      transparent 53%),
    radial-gradient(
      ellipse at 43% 61%,
      #b080d7c7 0%,
      #8f5abd9e 22%,
      transparent 49%),
    radial-gradient(
      ellipse at 69% 74%,
      #a568d4d9 0%,
      #6d3e9fa6 30%,
      transparent 56%),
    radial-gradient(
      ellipse at 87% 56%,
      #8b52bac4 0%,
      transparent 45%);
}
.festival-front .character-lobby .lobby-front-fog:after {
  inset: 14% -2% -4%;
  opacity: .88;
  background:
    radial-gradient(
      ellipse at 26% 68%,
      #c59ce7ba 0%,
      #a374c880 20%,
      transparent 46%),
    radial-gradient(
      ellipse at 56% 77%,
      #70439fcf 0%,
      #9a68c69e 26%,
      transparent 55%),
    radial-gradient(
      ellipse at 78% 52%,
      #bc8fe1c2 0%,
      transparent 44%);
}
@media (max-height: 450px) {
  .festival-front .character-lobby .lobby-front-fog {
    filter: blur(4px);
    height: 38%;
    bottom: 7%;
  }
}
.festival-front .character-lobby.kzm-halloween .lobby-body:after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -7%;
  height: 39%;
  z-index: 6;
  pointer-events: none;
  opacity: .65;
  filter: blur(9px);
  mask-image:
    radial-gradient(
      ellipse 55% 50% at 50% 50%,
      #000 18%,
      #000b 56%,
      transparent 100%);
  background:
    radial-gradient(
      ellipse at 19% 67%,
      #8955bab0 0%,
      transparent 47%),
    radial-gradient(
      ellipse at 49% 52%,
      #af7fd291 0%,
      transparent 48%),
    radial-gradient(
      ellipse at 77% 63%,
      #9c62c8a6 0%,
      transparent 51%);
  animation: lobby-lower-fog-drift 17s ease-in-out infinite alternate;
}
@keyframes lobby-lower-fog-drift {
  from {
    transform: translate3d(-2%, 2%, 0) scaleX(1.03);
  }
  to {
    transform: translate3d(2%, -2%, 0) scaleX(1);
  }
}
html[data-reduced-motion=true] .character-lobby .lobby-body:after {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .character-lobby .lobby-body:after {
    animation: none !important;
  }
}
@media (max-height: 450px) {
  .festival-front .character-lobby.kzm-halloween .lobby-body:after {
    height: 44%;
    bottom: -9%;
    filter: blur(5px);
    opacity: .62;
  }
}
main.festival-menu {
  box-sizing: border-box !important;
  min-height: 0 !important;
  height: var(--visible-height,100dvh) !important;
  inset: var(--visible-top,0) 0 auto !important;
  --ui-scale:clamp(1px,min(.06945vw,.11112dvh),1.7px);
}
main.festival-menu :is(.btn, .icon-btn, .soc-btn, .lobby-tile, .lobby-room, .lobby-training, .lobby-icon, .lobby-wallet) {
  box-sizing: border-box;
}
main.festival-menu :is(.btn-dark, .soc-btn, .lobby-tile, .lobby-room, .lobby-training, .lobby-icon, .lobby-wallet) {
  border-bottom: 4px solid #1c1933 !important;
  box-shadow: inset 0 1px #ffffff35, 0 3px 0 #14132b6b !important;
}
main.festival-menu .btn-gold {
  border-bottom: 4px solid #bb812b !important;
  box-shadow: inset 0 1px #fff4c8, 0 3px 0 #3d293d66 !important;
}
.festival-front .character-lobby .lobby-front-fog,
.festival-front .character-lobby .lobby-body:after {
  display: none !important;
}
.festival-front .character-lobby .lobby-cartoon-smoke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  filter: blur(.55px);
}
.lobby-scenery > .lobby-castle-animated {
  position: absolute;
  left: 32%;
  top: 8%;
  width: 58%;
  height: 62%;
  object-fit: contain;
  opacity: .47;
  filter: blur(.3px);
  mask-image:
    linear-gradient(
      #000 0 60%,
      #0006 82%,
      transparent 100%);
}
@media (min-width: 1100px) and (min-height: 620px) {
  .festival-front .character-lobby .lobby-body {
    top: calc(92 * var(--ui-scale));
    bottom: calc(67 * var(--ui-scale));
    left: 50%;
    right: auto;
    width: min(96%, 2100px);
    transform: translateX(-50%);
  }
  .festival-front .character-lobby .lobby-nav {
    left: 0;
    top: 15%;
    width: 23%;
    max-width: 360px;
    gap: calc(13 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-tile {
    height: calc(112 * var(--ui-scale));
    font-size: calc(20 * var(--ui-scale));
    border-radius: calc(17 * var(--ui-scale));
    gap: calc(7 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-nav-art {
    width: calc(40 * var(--ui-scale));
    height: calc(40 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-tile > svg {
    width: calc(38 * var(--ui-scale)) !important;
    height: calc(38 * var(--ui-scale)) !important;
  }
  .festival-front .character-lobby .lobby-training {
    min-height: calc(49 * var(--ui-scale));
    font-size: calc(18 * var(--ui-scale));
    padding: calc(8 * var(--ui-scale)) calc(13 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-private {
    right: 0;
    top: 21%;
    width: 22%;
    max-width: 340px;
    gap: calc(13 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-room {
    min-height: calc(64 * var(--ui-scale));
    font-size: calc(23 * var(--ui-scale));
    padding: calc(10 * var(--ui-scale)) calc(15 * var(--ui-scale));
    gap: calc(10 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-room-heading {
    font-size: calc(15 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-room > svg {
    width: calc(27 * var(--ui-scale)) !important;
    height: calc(27 * var(--ui-scale)) !important;
  }
  .festival-front .character-lobby .lobby-hero {
    inset: 2% 24% 23% 24%;
  }
  .festival-front .character-lobby .lobby-costume.festival-costume {
    font-size: calc(17 * var(--ui-scale));
    min-height: calc(35 * var(--ui-scale));
    padding: calc(5 * var(--ui-scale)) calc(14 * var(--ui-scale)) !important;
  }
  .festival-front .character-lobby .lobby-actions {
    left: 25%;
    right: 0;
    bottom: 2%;
    padding: calc(10 * var(--ui-scale));
    gap: calc(14 * var(--ui-scale));
    border-radius: calc(21 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-play {
    min-height: calc(90 * var(--ui-scale));
    font-size: calc(46 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-ranked {
    gap: calc(13 * var(--ui-scale));
    padding: calc(10 * var(--ui-scale)) calc(15 * var(--ui-scale));
    border-bottom: 4px solid #211a33;
  }
  .festival-front .character-lobby .lobby-ranked b {
    font-size: calc(30 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-ranked small {
    font-size: calc(14 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-ranked > .menu-rank-crest {
    width: calc(46 * var(--ui-scale)) !important;
    height: calc(56 * var(--ui-scale)) !important;
  }
  .festival-front .character-lobby .lobby-account {
    top: calc(15 * var(--ui-scale));
    left: calc(24 * var(--ui-scale));
    max-width: calc(325 * var(--ui-scale));
  }
  .festival-front .character-lobby .acct-chip {
    min-height: calc(61 * var(--ui-scale));
    font-size: calc(23 * var(--ui-scale));
    padding: calc(6 * var(--ui-scale)) calc(13 * var(--ui-scale)) !important;
    gap: calc(4 * var(--ui-scale)) calc(10 * var(--ui-scale)) !important;
  }
  .festival-front .character-lobby .acct-chip .chip-av {
    width: calc(46 * var(--ui-scale)) !important;
    height: calc(46 * var(--ui-scale)) !important;
  }
  .festival-front .character-lobby .acct-chip .tier-chip {
    font-size: calc(14 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-tools {
    top: calc(18 * var(--ui-scale));
    right: calc(24 * var(--ui-scale));
    gap: calc(12 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-wallet,
  .festival-front .character-lobby .lobby-icon {
    min-height: calc(48 * var(--ui-scale));
    font-size: calc(23 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-icon {
    width: calc(48 * var(--ui-scale));
  }
  .festival-front .character-lobby .lobby-icon > svg {
    width: calc(26 * var(--ui-scale)) !important;
    height: calc(26 * var(--ui-scale)) !important;
  }
  .festival-front .character-lobby .lobby-icon > small {
    font-size: calc(10 * var(--ui-scale));
  }
}
.festival-front .character-lobby .lobby-footer.festival-footer,
.festival-detail > .festival-detail-footer {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: calc(28 * var(--ui-scale)) !important;
  min-height: calc(58 * var(--ui-scale)) !important;
  height: calc(58 * var(--ui-scale)) !important;
  padding: calc(6 * var(--ui-scale)) calc(20 * var(--ui-scale)) !important;
  overflow: visible !important;
  background: #201e36e8 !important;
  border-top: 1px solid #b6aed649 !important;
  border-radius: 0 !important;
}
.festival-menu .festival-social-slot {
  flex: 0 0 auto !important;
}
main.festival-menu .festival-footer .festival-social-slot .menu-social {
  gap: calc(16 * var(--ui-scale)) !important;
}
main.festival-menu .festival-footer .festival-social-slot .menu-social > .soc-btn {
  min-height: calc(42 * var(--ui-scale)) !important;
  font: 800 calc(16 * var(--ui-scale))/1.1 "Baloo 2", Nunito !important;
  padding: calc(7 * var(--ui-scale)) calc(14 * var(--ui-scale)) !important;
  border: 1px solid #b7b9d6 !important;
  border-bottom: 4px solid #201b3e !important;
  box-shadow: inset 0 1px #fff5, 0 3px #11112b88 !important;
  border-radius: 12px !important;
  gap: calc(9 * var(--ui-scale)) !important;
}
main.festival-menu .festival-footer .festival-social-slot .menu-social > .soc-btn.soc-discord {
  background: linear-gradient(#626bad, #434b86) !important;
}
main.festival-menu .festival-footer .festival-social-slot .menu-social > .soc-btn:not(.soc-discord) {
  background: linear-gradient(#55526d, #37374f) !important;
}
main.festival-menu .festival-footer .festival-social-slot .menu-social > .soc-btn > img,
main.festival-menu .festival-footer .festival-social-slot .menu-social > .soc-btn > svg {
  width: calc(22 * var(--ui-scale)) !important;
  height: calc(21 * var(--ui-scale)) !important;
  object-fit: contain !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
main.festival-menu .festival-footer .festival-social-slot .menu-social > .soc-btn > img {
  filter: brightness(0) invert(1) !important;
}
.festival-menu .festival-footer .menu-legal {
  position: static !important;
  margin: 0 0 0 auto !important;
  display: flex !important;
  justify-content: end;
  max-width: none !important;
  gap: calc(18 * var(--ui-scale)) !important;
  font: 800 calc(13 * var(--ui-scale))/1.2 Nunito !important;
  align-items: center;
}
.festival-menu .festival-footer .menu-legal > a {
  color: #d2d1e1 !important;
  text-shadow: none !important;
  white-space: nowrap;
}
.festival-menu .festival-footer .festival-version {
  position: static !important;
  font: 800 calc(11 * var(--ui-scale))/1 Nunito !important;
  color: #aaa6bf !important;
}
.festival-front .character-lobby .lobby-body {
  bottom: calc(65 * var(--ui-scale));
}
.festival-detail.shop-preview-mode.shop-preview-mode,
.festival-detail.ranked-mode {
  grid-template-rows: calc(52 * var(--ui-scale)) minmax(0, 1fr) calc(58 * var(--ui-scale)) !important;
  row-gap: calc(12 * var(--ui-scale)) !important;
}
.festival-detail > .festival-detail-footer {
  align-self: stretch;
  grid-column: 1/-1 !important;
  padding-inline: calc(12 * var(--ui-scale)) !important;
  border-radius: 12px !important;
}
.festival-menu[data-menu-state=searching] > .festival-detail-footer,
.festival-menu[data-menu-state=connecting] > .festival-detail-footer,
.festival-menu[data-menu-state=room] > .festival-detail-footer {
  display: none !important;
}
.festival-menu[data-menu-state=searching],
.festival-menu[data-menu-state=connecting] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: calc(58 * var(--ui-scale)) minmax(0, 1fr) !important;
  align-items: center;
  row-gap: 15px !important;
}
.festival-menu:is([data-menu-state=searching], [data-menu-state=connecting]) > #menu-panel {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: min(92%, calc(580 * var(--ui-scale))) !important;
  max-width: none !important;
  max-height: 95% !important;
  justify-self: center;
  align-self: center;
  padding: calc(25 * var(--ui-scale)) !important;
  gap: calc(16 * var(--ui-scale)) !important;
  font-size: calc(17 * var(--ui-scale));
}
.festival-menu:is([data-menu-state=searching], [data-menu-state=connecting]) > #menu-panel h2 {
  font-size: calc(30 * var(--ui-scale));
  margin: 0;
}
.festival-menu:is([data-menu-state=searching], [data-menu-state=connecting]) > #menu-panel .mp-help {
  font-size: calc(16 * var(--ui-scale));
  margin: 0;
}
.festival-menu:is([data-menu-state=searching], [data-menu-state=connecting]) > #menu-panel .btn {
  font-size: calc(19 * var(--ui-scale));
  min-height: calc(48 * var(--ui-scale));
}
@media (max-height: 600px) {
  main.festival-menu {
    --ui-scale:1px;
  }
  .festival-front .character-lobby .lobby-footer.festival-footer,
  .festival-detail > .festival-detail-footer {
    height: 42px !important;
    min-height: 42px !important;
    padding: 4px 12px !important;
    gap: 14px !important;
  }
  main.festival-menu .festival-footer .festival-social-slot .menu-social > .soc-btn {
    min-height: 32px !important;
    font-size: 13px !important;
    padding: 4px 10px !important;
    border-radius: 9px !important;
    gap: 7px !important;
    border-bottom-width: 3px !important;
  }
  main.festival-menu .festival-footer .festival-social-slot .menu-social {
    gap: 13px !important;
  }
  main.festival-menu .festival-footer .festival-social-slot .menu-social > .soc-btn > img,
  main.festival-menu .festival-footer .festival-social-slot .menu-social > .soc-btn > svg {
    width: 19px !important;
    height: 18px !important;
  }
  .festival-menu .festival-footer .menu-legal {
    font-size: 10px !important;
    gap: 11px !important;
  }
  .festival-menu .festival-footer .festival-version {
    font-size: 9px !important;
  }
  .festival-front .character-lobby .lobby-body {
    bottom: 48px;
  }
  .festival-detail.shop-preview-mode.shop-preview-mode,
  .festival-detail.ranked-mode {
    grid-template-rows: 38px minmax(0, 1fr) 42px !important;
    row-gap: 7px !important;
  }
}
@media (max-width: 660px) {
  .festival-menu .festival-footer .festival-version {
    display: none !important;
  }
  .festival-menu .festival-footer .menu-legal {
    gap: 8px !important;
    font-size: 9px !important;
  }
  main.festival-menu .festival-footer .festival-social-slot .menu-social > .soc-btn {
    font-size: 11px !important;
    min-height: 30px !important;
    padding: 4px 8px !important;
    gap: 5px !important;
  }
  main.festival-menu .festival-footer .festival-social-slot .menu-social {
    gap: 10px !important;
  }
  main.festival-menu .festival-footer .festival-social-slot .menu-social > .soc-btn > img,
  main.festival-menu .festival-footer .festival-social-slot .menu-social > .soc-btn > svg {
    width: 16px !important;
    height: 16px !important;
  }
}
main.menu.festival-detail.lobby-wide {
  --room-font:clamp(15px,1.02vw,24px);
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  justify-items: center;
  align-items: center;
  padding: clamp(16px, 3dvh, 38px) clamp(16px, 3vw, 76px) !important;
}
main.menu.festival-detail.lobby-wide > .festival-detail-header,
main.menu.festival-detail.lobby-wide > .festival-detail-footer {
  display: none !important;
}
main.menu.festival-detail.lobby-wide > #menu-panel {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  align-self: center !important;
  width: 100% !important;
  max-width: 1700px !important;
  max-height: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: clamp(18px, 2vw, 42px) !important;
  border-radius: clamp(22px, 2vw, 38px) !important;
  box-sizing: border-box;
}
main.menu.festival-detail.lobby-wide .lobby {
  height: auto !important;
  min-height: 0 !important;
  display: grid !important;
  gap: clamp(16px, 2dvh, 28px) !important;
}
main.menu.festival-detail.lobby-wide .lb-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center !important;
  gap: 12px !important;
  flex: none !important;
  min-width: 0;
}
main.menu.festival-detail.lobby-wide .lb-title {
  min-width: 0 !important;
}
main.menu.festival-detail.lobby-wide .lb-title h2 {
  font-size: clamp(23px, 1.55vw, 36px) !important;
  line-height: 1.15;
}
main.menu.festival-detail.lobby-wide .lb-title .lb-edit {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
}
main.menu.festival-detail.lobby-wide .lb-code {
  padding: 8px 12px !important;
  gap: 9px !important;
  flex: none;
  max-width: 100%;
}
main.menu.festival-detail.lobby-wide .lb-code b {
  font-size: clamp(23px, 1.6vw, 36px) !important;
}
main.menu.festival-detail.lobby-wide .lb-code small {
  font-size: 11px !important;
}
main.menu.festival-detail.lobby-wide .lb-code .lb-copy {
  width: 36px !important;
  height: 36px !important;
}
main.menu.festival-detail.lobby-wide .lb-head > .btn {
  width: auto !important;
  min-height: 48px !important;
  padding: 9px 15px !important;
  font-size: var(--room-font) !important;
  white-space: normal;
}
main.menu.festival-detail.lobby-wide .lb-full {
  justify-self: end;
  font-size: var(--room-font) !important;
  padding: 12px 16px;
}
main.menu.festival-detail.lobby-wide .lb-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) !important;
  gap: clamp(18px, 2.2vw, 42px) !important;
  align-items: stretch !important;
  min-height: 0 !important;
  flex: none !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: clamp(12px, 1.3vw, 24px) !important;
  align-content: stretch !important;
  align-items: stretch !important;
  overflow: visible !important;
  padding: 4px 5px 9px !important;
  min-height: 0 !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats.teams {
  grid-template-rows: auto repeat(2, minmax(0, 1fr)) !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat,
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat:not(.empty) {
  display: grid !important;
  grid-template-columns: clamp(64px, 6.4vw, 108px) minmax(0, 1fr) !important;
  grid-template-rows: minmax(78px, 1fr) 38px !important;
  align-items: center !important;
  align-content: stretch !important;
  justify-items: stretch !important;
  align-self: stretch !important;
  gap: 8px 12px !important;
  min-height: 154px !important;
  height: 100% !important;
  max-height: none !important;
  padding: 14px !important;
  overflow: visible !important;
  box-sizing: border-box;
  border-radius: 22px !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile {
  width: 100% !important;
  min-height: 80px !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  gap: 5px !important;
  justify-self: center !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile .seat-av,
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile > img,
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.bot > img {
  width: clamp(56px, 5.2vw, 86px) !important;
  height: clamp(56px, 5.2vw, 86px) !important;
  min-width: 0 !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  object-fit: contain;
}
main.menu.festival-detail.lobby-wide .seat-profile small {
  font-size: clamp(10px, .75vw, 16px) !important;
  min-height: 14px !important;
  line-height: 1.2 !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-info {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-items: start !important;
  align-items: start !important;
  justify-content: center !important;
  text-align: start !important;
  gap: 8px !important;
  min-width: 0 !important;
  overflow: visible !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-info > b {
  font-size: clamp(16px, 1.2vw, 28px) !important;
  line-height: 1.18 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-info > b small {
  font-size: .7em !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats .mp-badge {
  font-size: clamp(11px, .8vw, 18px) !important;
  line-height: 1.2;
  padding: 4px 8px !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats .mp-ping {
  font-size: 12px !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-tools {
  grid-column: 1/-1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  justify-content: stretch !important;
  justify-self: stretch !important;
  gap: 8px !important;
  padding: 0 0 4px !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-tools > .btn {
  flex: 1;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 34px !important;
  height: auto !important;
  padding: 6px 10px !important;
  font-size: clamp(12px, .9vw, 20px) !important;
  line-height: 1.1 !important;
  border-radius: 12px !important;
  white-space: normal !important;
  box-shadow: inset 0 1px #ffffff35, 0 4px #17132b !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.empty {
  grid-template-columns: minmax(0, 1fr) !important;
  outline-offset: -7px !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.empty .seat-info {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-items: center !important;
  text-align: center !important;
}
main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.empty .seat-info small {
  display: block !important;
  font-size: 13px !important;
  line-height: 1.2;
}
main.menu.festival-detail.lobby-wide .team-head {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
main.menu.festival-detail.lobby-wide .team-head b {
  font-size: var(--room-font);
}
main.menu.festival-detail.lobby-wide .lb-side {
  display: grid !important;
  grid-template-rows: auto auto auto auto !important;
  align-content: start !important;
  gap: clamp(12px, 1.6dvh, 20px) !important;
  min-height: 0 !important;
}
main.menu.festival-detail.lobby-wide .lb-side-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 16px !important;
}
main.menu.festival-detail.lobby-wide .lb-side-top .field {
  margin: 0;
  gap: 8px !important;
}
main.menu.festival-detail.lobby-wide .lb-side-top .field > span {
  display: block !important;
  font-size: 13px !important;
}
main.menu.festival-detail.lobby-wide .lb-side-top .swatches {
  display: flex;
  flex-wrap: nowrap !important;
  gap: clamp(8px, 1vw, 18px) !important;
  padding: 5px !important;
  margin: 0 !important;
  --swg:8px;
}
main.menu.festival-detail.lobby-wide .lb-side-top .swatch {
  width: clamp(34px, 3.1vw, 60px) !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  min-width: 24px !important;
  flex: 0 1 auto;
}
main.menu.festival-detail.lobby-wide .lb-chat-slot {
  min-height: 46px !important;
}
main.menu.festival-detail.lobby-wide .lb-chat-slot .chat-btn {
  width: 48px !important;
  height: 48px !important;
}
main.menu.festival-detail.lobby-wide .room-set {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 16px !important;
  margin: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  flex: none !important;
  border-radius: 20px !important;
}
main.menu.festival-detail.lobby-wide .room-set h3 {
  display: flex !important;
  margin: 0 0 2px !important;
  font-size: var(--room-font) !important;
}
main.menu.festival-detail.lobby-wide .room-set .rs-row {
  display: grid !important;
  grid-template-columns: minmax(84px, .75fr) minmax(0, 1.8fr) !important;
  gap: 10px !important;
  align-items: center !important;
  min-width: 0 !important;
}
main.menu.festival-detail.lobby-wide .room-set .rs-row > span {
  font-size: clamp(11px, .82vw, 18px) !important;
  line-height: 1.2;
  white-space: normal !important;
}
main.menu.festival-detail.lobby-wide .room-set .rs-row > .seg {
  display: flex !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
  width: 100%;
  padding: 3px !important;
  gap: 2px !important;
}
main.menu.festival-detail.lobby-wide .room-set .seg button {
  flex: 1;
  min-width: 0 !important;
  min-height: 36px !important;
  font-size: clamp(12px, .94vw, 22px) !important;
  line-height: 1.15;
  padding: 6px 8px !important;
  white-space: normal !important;
}
main.menu.festival-detail.lobby-wide .room-set .stepper {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}
main.menu.festival-detail.lobby-wide .room-set .stepper button {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  font-size: 23px !important;
}
main.menu.festival-detail.lobby-wide .room-set .stepper output {
  font-size: clamp(17px, 1.1vw, 25px) !important;
  min-width: 26px;
  text-align: center;
}
main.menu.festival-detail.lobby-wide .lb-side > .mp-help {
  font-size: clamp(12px, .9vw, 18px) !important;
  line-height: 1.35;
  max-height: none !important;
  display: block !important;
  margin: 0 !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
}
main.menu.festival-detail.lobby-wide .lb-acts {
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 0 0 6px !important;
  margin: 0 !important;
}
main.menu.festival-detail.lobby-wide .lb-acts > .btn {
  min-width: 0 !important;
  min-height: 52px !important;
  font-size: clamp(17px, 1.2vw, 28px) !important;
  line-height: 1.15;
  padding: 10px !important;
  border-radius: 17px !important;
  white-space: normal !important;
}
@media (min-width: 1800px) and (min-height: 900px) {
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat,
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat:not(.empty) {
    min-height: 215px !important;
    grid-template-rows: minmax(112px, 1fr) 48px !important;
    padding: 22px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-tools > .btn {
    min-height: 44px !important;
  }
  main.menu.festival-detail.lobby-wide .room-set {
    padding: 22px !important;
    gap: 16px !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .seg button {
    min-height: 48px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-acts > .btn {
    min-height: 66px !important;
  }
}
@media (max-width: 1100px) and (min-height: 601px) and (orientation: portrait) {
  main.menu.festival-detail.lobby-wide {
    padding: 20px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-head {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  main.menu.festival-detail.lobby-wide .lb-head > .btn {
    width: 100% !important;
  }
  main.menu.festival-detail.lobby-wide .lb-body {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats {
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat,
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat:not(.empty) {
    min-height: 135px !important;
  }
  main.menu.festival-detail.lobby-wide .room-set {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  main.menu.festival-detail.lobby-wide .room-set h3 {
    grid-column: 1/-1;
  }
  main.menu.festival-detail.lobby-wide .room-set .rs-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 5px !important;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  main.menu.festival-detail.lobby-wide {
    padding: 8px max(10px, var(--safe-r)) 9px max(10px, var(--safe-l)) !important;
    --room-font:12px;
  }
  main.menu.festival-detail.lobby-wide > #menu-panel {
    height: 100% !important;
    max-width: none !important;
    padding: 10px !important;
    border-radius: 20px !important;
    overflow: auto !important;
  }
  main.menu.festival-detail.lobby-wide .lobby {
    height: 100% !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 9px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-head {
    grid-template-columns: minmax(0, 1fr) auto auto auto !important;
    gap: 7px !important;
    min-height: 35px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-title h2 {
    font-size: 17px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-title .lb-edit {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px;
  }
  main.menu.festival-detail.lobby-wide .lb-code {
    padding: 4px 7px !important;
    gap: 6px !important;
    border-radius: 12px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-code small {
    display: none !important;
  }
  main.menu.festival-detail.lobby-wide .lb-code b {
    font-size: 19px !important;
    letter-spacing: .1em;
  }
  main.menu.festival-detail.lobby-wide .lb-code .lb-copy {
    width: 28px !important;
    height: 28px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-head > .btn {
    min-height: 34px !important;
    font-size: 12px !important;
    padding: 5px 8px !important;
    line-height: 1.15;
    border-radius: 11px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-head > .btn svg {
    width: 16px !important;
    height: 16px !important;
    flex: none;
  }
  main.menu.festival-detail.lobby-wide .lb-full {
    font-size: 11px !important;
    padding: 7px 9px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) !important;
    gap: 12px !important;
    min-height: 0 !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats {
    gap: 9px !important;
    padding: 3px 4px 7px !important;
    overflow: auto !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(86px, 1fr) !important;
    scrollbar-width: thin;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats.teams {
    grid-template-rows: 25px repeat(2, minmax(86px, 1fr)) !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat,
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat:not(.empty) {
    min-height: 90px !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    grid-template-rows: minmax(43px, 1fr) 29px !important;
    padding: 7px !important;
    gap: 4px 6px !important;
    border-radius: 14px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile {
    min-height: 48px !important;
    width: 48px !important;
    gap: 2px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile .seat-av,
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile > img,
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.bot > img {
    width: 36px !important;
    height: 36px !important;
  }
  main.menu.festival-detail.lobby-wide .seat-profile small {
    font-size: 8px !important;
    min-height: 10px !important;
    line-height: 1.1 !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-info {
    gap: 4px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-info > b {
    font-size: 14px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .mp-badge {
    font-size: 10px !important;
    padding: 2px 5px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .mp-ping {
    display: none !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-tools {
    gap: 5px !important;
    padding-bottom: 3px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-tools > .btn {
    min-height: 29px !important;
    font-size: 11px !important;
    padding: 4px 6px !important;
    border-radius: 8px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.empty {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.empty .seat-info small {
    font-size: 10px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side {
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    gap: 6px !important;
    min-height: 0 !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side-top {
    gap: 9px !important;
    align-items: center !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side-top .field {
    gap: 0 !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side-top .field > span {
    display: none !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side-top .swatches {
    gap: 9px !important;
    padding: 4px !important;
    justify-content: start;
  }
  main.menu.festival-detail.lobby-wide .lb-side-top .swatch {
    width: 31px !important;
    min-width: 24px !important;
    max-width: 31px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-chat-slot {
    min-height: 32px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-chat-slot .chat-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }
  main.menu.festival-detail.lobby-wide .room-set {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 10px !important;
    padding: 10px !important;
    border-radius: 14px !important;
    overflow: visible !important;
  }
  main.menu.festival-detail.lobby-wide .room-set h3 {
    display: none !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .rs-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 3px !important;
    align-content: start !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .rs-row > span {
    font-size: 10px !important;
    line-height: 1.1 !important;
    letter-spacing: .02em;
  }
  main.menu.festival-detail.lobby-wide .room-set .rs-row > .seg {
    padding: 2px !important;
    gap: 1px !important;
    border-radius: 10px !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .seg button {
    min-height: 32px !important;
    padding: 5px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
  }
  main.menu.festival-detail.lobby-wide .rs-vis .seg button svg {
    width: 11px !important;
    height: 11px !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .stepper {
    width: 100%;
    justify-content: space-between;
    gap: 7px !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .stepper button {
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    font-size: 18px !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .stepper output {
    font-size: 15px !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .team-rules-btn {
    grid-column: 1/-1;
    grid-row: 3;
    font-size: 10px !important;
    min-height: 19px !important;
    padding: 0 !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side > .mp-help {
    font-size: 10px !important;
    line-height: 1.2 !important;
    align-self: end !important;
  }
  main.menu.festival-detail.lobby-wide .lb-acts {
    gap: 7px !important;
    padding-bottom: 4px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-acts > .btn {
    min-height: 38px !important;
    padding: 6px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-acts > .btn svg {
    width: 18px !important;
    height: 18px !important;
    flex: none;
  }
  main.menu.festival-detail.lobby-wide .team-head {
    min-height: 23px !important;
  }
  main.menu.festival-detail.lobby-wide .team-head b {
    font-size: 11px !important;
  }
  main.menu.festival-detail.lobby-wide .team-switch {
    font-size: 9px !important;
    min-height: 22px !important;
    padding: 3px 4px !important;
  }
}
@media (orientation: landscape) and (max-width: 650px) {
  main.menu.festival-detail.lobby-wide {
    padding: 5px 7px 7px !important;
  }
  main.menu.festival-detail.lobby-wide > #menu-panel {
    padding: 8px !important;
    border-radius: 17px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-head {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-head > .btn {
    min-height: 29px !important;
    padding: 4px 6px !important;
    font-size: 10px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-head > .lb-full {
    grid-column: 1;
    grid-row: 2;
    justify-self: start !important;
  }
  main.menu.festival-detail.lobby-wide .lb-title h2 {
    font-size: 15px !important;
  }
  main.menu.festival-detail.lobby-wide .lobby {
    gap: 6px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-body {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats {
    gap: 6px !important;
    padding: 2px 3px 6px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat,
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat:not(.empty) {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    min-height: 83px !important;
    padding: 5px !important;
    gap: 3px 4px !important;
    grid-template-rows: minmax(40px, 1fr) 27px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile {
    width: 34px !important;
    min-height: 43px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile .seat-av,
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile > img,
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.bot > img {
    width: 29px !important;
    height: 29px !important;
  }
  main.menu.festival-detail.lobby-wide .seat-profile small {
    font-size: 7px !important;
    line-height: 1 !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-info > b {
    font-size: 11px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .mp-badge {
    font-size: 8px !important;
    padding: 2px 4px !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-tools > .btn {
    min-height: 24px !important;
    font-size: 9px !important;
    padding: 4px 3px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side {
    gap: 4px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side-top .swatches {
    gap: 7px !important;
    padding: 4px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side-top .swatch {
    width: 25px !important;
    min-width: 20px !important;
    max-width: 25px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-chat-slot .chat-btn {
    width: 29px !important;
    height: 29px !important;
  }
  main.menu.festival-detail.lobby-wide .room-set {
    gap: 5px 7px !important;
    padding: 6px !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .seg button {
    font-size: 9px !important;
    min-height: 25px !important;
    padding: 3px !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .rs-row > span {
    font-size: 8px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side > .mp-help {
    font-size: 9px !important;
  }
  main.menu.festival-detail.lobby-wide .lb-acts > .btn {
    font-size: 11px !important;
    min-height: 34px !important;
    padding: 5px !important;
  }
}
.social-dialog:has(> .player-sheet) {
  width: min(1160px, 96vw);
  max-width: 96vw;
  max-height: 94dvh;
  overflow: auto;
  scrollbar-gutter: stable;
  border-radius: 24px;
}
.social-dialog > .player-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
}
.social-dialog > .player-sheet > .sheet-head {
  position: static;
  top: auto;
  margin: 0;
  padding: 0;
  min-height: 42px;
  background: transparent;
  border-radius: 0;
}
.social-dialog > .player-sheet > .sheet-head h2 {
  font-size: 28px;
  line-height: 1.15;
}
.social-dialog > .player-sheet > .sheet-head > .icon-btn {
  width: 42px;
  height: 42px;
  min-height: 42px;
}
.social-dialog .player-sheet .pl-main {
  display: grid;
  grid-template-columns: minmax(240px, .76fr) minmax(0, 1.24fr);
  gap: 22px;
  align-items: stretch;
}
.social-dialog .player-sheet .pl-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  min-width: 0;
}
.social-dialog .player-sheet .pl-pawn {
  width: 100%;
  height: 230px;
  max-width: 100%;
  max-height: 30dvh;
  object-fit: contain;
  flex: 0 1 auto;
}
.social-dialog .player-sheet .pl-pawn.av-dot {
  width: 100px;
  height: 100px;
  flex: none;
}
.social-dialog .player-sheet .pl-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-size: 26px;
  line-height: 1.15;
  min-width: 0;
  text-align: center;
}
.social-dialog .player-sheet .pl-name > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.social-dialog .player-sheet .pl-av {
  --s:42px;
  flex: none;
}
.social-dialog .player-sheet .pl-rank {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.social-dialog .player-sheet .pl-rank-score {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 6px;
  max-width: 100%;
}
.social-dialog .player-sheet .pl-rank-score .tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: normal;
  font: 900 20px/1.15 var(--display);
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--tc);
  max-width: 100%;
}
.social-dialog .player-sheet .pl-rank-score .rank-crest {
  width: 44px;
  height: 50px;
  flex: none;
}
.social-dialog .player-sheet .pl-rank-score > .num {
  font: 900 28px/1.05 var(--display);
  color: var(--gold-hi);
  white-space: nowrap;
}
.social-dialog .player-sheet .pl-rank-placement {
  font: 800 14px/1.25 var(--body);
  color: var(--soft);
  text-align: center;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.social-dialog .player-sheet .pl-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.social-dialog .player-sheet .pl-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.social-dialog .player-sheet .pl-stats > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 74px;
  padding: 12px;
  border-radius: 16px;
  min-width: 0;
}
.social-dialog .player-sheet .pl-stats small {
  font: 800 13px/1.2 var(--body);
  overflow-wrap: anywhere;
}
.social-dialog .player-sheet .pl-stats b {
  font: 900 21px/1.15 var(--display);
  overflow-wrap: anywhere;
}
.social-dialog .player-sheet .pl-gear {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}
.social-dialog .player-sheet .pl-gear > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  gap: 5px;
  border-radius: 16px;
  min-height: 140px;
}
.social-dialog .player-sheet .pl-gear .g-ic {
  width: 100%;
  height: 76px;
  max-width: 130px;
  object-fit: contain;
  flex: none;
}
.social-dialog .player-sheet .pl-gear .pl-board-thumb {
  max-width: 145px;
}
.social-dialog .player-sheet .pl-gear small {
  font-size: 12px;
  line-height: 1.15;
}
.social-dialog .player-sheet .pl-gear b {
  font: 900 16px/1.2 var(--display);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  max-width: 100%;
  text-align: center;
}
.social-dialog .player-sheet .pl-side > .btn,
.social-dialog .player-sheet .friend-profile-actions > .btn {
  min-height: 46px;
  padding: 10px 16px;
  font-size: 17px;
  line-height: 1.15;
  white-space: normal;
}
.social-dialog .player-sheet .friend-profile-actions {
  gap: 10px;
  flex: none;
}
@media (max-width: 1100px) {
  .social-dialog > .player-sheet {
    gap: 12px;
    padding: 18px;
  }
  .social-dialog .player-sheet .pl-main {
    grid-template-columns: minmax(195px, .72fr) minmax(0, 1.28fr);
    gap: 16px;
  }
  .social-dialog .player-sheet .pl-hero {
    padding: 14px;
    gap: 10px;
  }
  .social-dialog .player-sheet .pl-stats {
    gap: 8px;
  }
  .social-dialog .player-sheet .pl-stats > div {
    padding: 10px;
    min-height: 68px;
  }
  .social-dialog .player-sheet .pl-stats b {
    font-size: 19px;
  }
  .social-dialog .player-sheet .pl-pawn {
    height: 210px;
  }
  .social-dialog .player-sheet .pl-name {
    font-size: 23px;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .social-dialog:has(> .player-sheet) {
    max-height: 96dvh;
    border-radius: 18px;
    scrollbar-gutter: auto;
  }
  .social-dialog > .player-sheet {
    gap: 8px;
    padding: 12px;
  }
  .social-dialog > .player-sheet > .sheet-head {
    min-height: 32px;
  }
  .social-dialog > .player-sheet > .sheet-head h2 {
    font-size: 21px;
  }
  .social-dialog > .player-sheet > .sheet-head > .icon-btn {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }
  .social-dialog .player-sheet .pl-main {
    grid-template-columns: minmax(165px, .72fr) minmax(0, 1.28fr);
    gap: 12px;
  }
  .social-dialog .player-sheet .pl-hero {
    padding: 10px;
    gap: 8px;
    justify-content: center;
  }
  .social-dialog .player-sheet .pl-pawn {
    height: 115px;
    max-height: 31dvh;
  }
  .social-dialog .player-sheet .pl-pawn.av-dot {
    width: 66px;
    height: 66px;
  }
  .social-dialog .player-sheet .pl-name {
    font-size: 18px;
    gap: 8px;
  }
  .social-dialog .player-sheet .pl-av {
    --s:30px;
  }
  .social-dialog .player-sheet .pl-rank {
    gap: 5px;
  }
  .social-dialog .player-sheet .pl-rank-score {
    column-gap: 12px;
    row-gap: 4px;
  }
  .social-dialog .player-sheet .pl-rank-score .tier-chip {
    font-size: 15px;
    gap: 5px;
  }
  .social-dialog .player-sheet .pl-rank-score .rank-crest {
    width: 30px;
    height: 35px;
  }
  .social-dialog .player-sheet .pl-rank-score > .num {
    font-size: 22px;
  }
  .social-dialog .player-sheet .pl-rank-placement {
    font-size: 11px;
    line-height: 1.2;
  }
  .social-dialog .player-sheet .pl-side {
    gap: 8px;
  }
  .social-dialog .player-sheet .pl-stats {
    gap: 6px;
  }
  .social-dialog .player-sheet .pl-stats > div {
    min-height: 49px;
    padding: 6px 8px;
    gap: 3px;
    border-radius: 11px;
  }
  .social-dialog .player-sheet .pl-stats small {
    font-size: 10px;
    line-height: 1.15;
  }
  .social-dialog .player-sheet .pl-stats b {
    font-size: 16px;
    line-height: 1.15;
  }
  .social-dialog .player-sheet .pl-gear {
    gap: 6px;
    flex: none;
  }
  .social-dialog .player-sheet .pl-gear > div {
    min-height: 90px;
    padding: 6px;
    gap: 3px;
    border-radius: 11px;
  }
  .social-dialog .player-sheet .pl-gear .g-ic {
    height: 44px;
    max-width: 100px;
  }
  .social-dialog .player-sheet .pl-gear small {
    font-size: 10px;
  }
  .social-dialog .player-sheet .pl-gear b {
    font-size: 12px;
  }
  .social-dialog .player-sheet .pl-side > .btn,
  .social-dialog .player-sheet .friend-profile-actions > .btn {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 14px;
  }
  .social-dialog .player-sheet .friend-profile-actions {
    gap: 6px;
  }
}
@media (orientation: landscape) and (max-height: 350px) {
  .social-dialog > .player-sheet {
    padding: 9px;
    gap: 6px;
  }
  .social-dialog > .player-sheet > .sheet-head {
    min-height: 30px;
  }
  .social-dialog > .player-sheet > .sheet-head h2 {
    font-size: 19px;
  }
  .social-dialog .player-sheet .pl-main {
    grid-template-columns: minmax(140px, .68fr) minmax(0, 1.32fr);
    gap: 9px;
  }
  .social-dialog .player-sheet .pl-hero {
    padding: 8px;
    gap: 6px;
  }
  .social-dialog .player-sheet .pl-pawn {
    height: 92px;
    max-height: 29dvh;
  }
  .social-dialog .player-sheet .pl-name {
    font-size: 16px;
    gap: 6px;
  }
  .social-dialog .player-sheet .pl-av {
    --s:27px;
  }
  .social-dialog .player-sheet .pl-rank-score {
    column-gap: 9px;
  }
  .social-dialog .player-sheet .pl-rank-score .tier-chip {
    font-size: 14px;
  }
  .social-dialog .player-sheet .pl-rank-score .rank-crest {
    width: 26px;
    height: 30px;
  }
  .social-dialog .player-sheet .pl-rank-score > .num {
    font-size: 20px;
  }
  .social-dialog .player-sheet .pl-stats > div {
    min-height: 43px;
    padding: 5px 6px;
  }
  .social-dialog .player-sheet .pl-stats small {
    font-size: 9px;
  }
  .social-dialog .player-sheet .pl-stats b {
    font-size: 14px;
  }
  .social-dialog .player-sheet .pl-gear > div {
    min-height: 76px;
    padding: 5px;
    gap: 2px;
  }
  .social-dialog .player-sheet .pl-gear .g-ic {
    height: 34px;
  }
  .social-dialog .player-sheet .pl-gear b {
    font-size: 11px;
  }
  .social-dialog .player-sheet .pl-side {
    gap: 6px;
  }
  .social-dialog .player-sheet .pl-side > .btn,
  .social-dialog .player-sheet .friend-profile-actions > .btn {
    min-height: 32px;
    font-size: 12px;
    padding: 5px 8px;
  }
}
@media (orientation: portrait) and (max-width: 700px) {
  .social-dialog .player-sheet .pl-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .social-dialog .player-sheet .pl-hero {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 10px;
    padding: 14px;
  }
  .social-dialog .player-sheet .pl-pawn {
    grid-column: 1;
    grid-row: 1/3;
    width: 100%;
    height: 120px;
    max-height: none;
  }
  .social-dialog .player-sheet .pl-name {
    grid-column: 2;
    justify-content: start;
    text-align: start;
    font-size: 21px;
  }
  .social-dialog .player-sheet .pl-rank {
    grid-column: 2;
    justify-items: start;
  }
  .social-dialog .player-sheet .pl-rank-placement {
    text-align: start;
  }
  .social-dialog .player-sheet .pl-rank-score {
    justify-content: start;
    column-gap: 12px;
  }
  .social-dialog .player-sheet .pl-rank-score .rank-crest {
    width: 32px;
    height: 37px;
  }
  .social-dialog .player-sheet .pl-rank-score .tier-chip {
    font-size: 16px;
  }
  .social-dialog .player-sheet .pl-rank-score > .num {
    font-size: 23px;
  }
  .social-dialog .player-sheet .pl-stats > div {
    min-height: 65px;
    padding: 8px;
  }
  .social-dialog .player-sheet .pl-stats small {
    font-size: 11px;
  }
  .social-dialog .player-sheet .pl-stats b {
    font-size: 18px;
  }
  .social-dialog .player-sheet .pl-gear > div {
    min-height: 120px;
  }
  .social-dialog .player-sheet .pl-gear .g-ic {
    height: 64px;
  }
  .social-dialog .player-sheet .pl-gear b {
    font-size: 14px;
  }
}
.festival-detail.shop-preview-mode .shop-world-preview[data-tab=dice] .shop-world-stage {
  position: absolute;
  inset: auto 4%;
  top: 48%;
  height: auto;
  aspect-ratio: 1/1;
  max-height: calc(100% - 98px);
  transform: translateY(-50%);
  overflow: hidden;
}
.festival-detail.shop-preview-mode .shop-world-preview[data-tab=board] .shop-world-stage {
  position: absolute;
  inset: 42px 0 14px;
  overflow: hidden;
}
.festival-detail.shop-preview-mode .shop-world-preview .shop-world-roll {
  position: absolute;
  bottom: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 220px !important;
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 8px 12px !important;
  font-size: 19px !important;
  white-space: normal;
}
.festival-detail.shop-preview-mode .shop-world-preview .shop-world-chip {
  top: 16px !important;
  left: 50% !important;
  transform: translateX(-50%);
  max-width: calc(100% - 24px) !important;
  width: max-content;
  text-align: center;
  white-space: normal;
  font-size: 18px !important;
  line-height: 1.15;
}
.festival-detail.shop-preview-mode .catalog-dice-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-height: 600px) {
  .festival-detail.shop-preview-mode .shop-world-preview[data-tab=dice] .shop-world-stage {
    top: 49%;
    max-height: calc(100% - 77px);
  }
  .festival-detail.shop-preview-mode .shop-world-preview[data-tab=board] .shop-world-stage {
    inset: 34px 0 8px;
  }
  .festival-detail.shop-preview-mode .shop-world-preview .shop-world-roll {
    bottom: 10px !important;
    min-height: 36px !important;
    font-size: 15px !important;
    width: calc(100% - 20px) !important;
  }
  .festival-detail.shop-preview-mode .shop-world-preview .shop-world-chip {
    top: 10px !important;
    font-size: 13px !important;
  }
}
@media (min-width: 1100px) and (min-height: 620px) {
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode:has(.shop-world-preview[data-tab=board]) {
    grid-template-columns: minmax(320px, .95fr) minmax(0, 1.45fr) !important;
  }
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header > .festival-section-title {
    font-size: calc(29 * var(--ui-scale));
  }
  .festival-menu .festival-detail-header > .icon-btn,
  .catalog-header-tools > .icon-btn {
    width: calc(46 * var(--ui-scale));
    height: calc(46 * var(--ui-scale));
  }
  .catalog-header-tools .premium-summary {
    min-height: calc(42 * var(--ui-scale));
    padding: calc(8 * var(--ui-scale)) calc(13 * var(--ui-scale));
  }
  .catalog-header-tools .premium-summary b {
    font-size: calc(17 * var(--ui-scale));
  }
  .catalog-header-tools > .catalog-header-wallet {
    font-size: calc(23 * var(--ui-scale));
    min-height: calc(42 * var(--ui-scale));
  }
  .festival-detail #menu-panel > .stabs > button {
    font-size: calc(19 * var(--ui-scale)) !important;
    min-height: calc(43 * var(--ui-scale)) !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(.sth, i) {
    max-height: calc(200 * var(--ui-scale)) !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) :is(.sth, i) > :is(img, svg) {
    max-width: calc(200 * var(--ui-scale)) !important;
    max-height: calc(200 * var(--ui-scale)) !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > b {
    font-size: calc(20 * var(--ui-scale)) !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(em, small) {
    font-size: calc(13 * var(--ui-scale)) !important;
  }
  .festival-detail .shop .sact > .btn,
  .festival-detail .inventory-selection > .btn {
    font-size: calc(18 * var(--ui-scale)) !important;
    min-height: calc(44 * var(--ui-scale)) !important;
    padding: calc(8 * var(--ui-scale)) calc(18 * var(--ui-scale)) !important;
  }
  .festival-detail .shop-selection-title > b,
  .festival-detail .inventory-selected-name > b {
    font-size: calc(23 * var(--ui-scale)) !important;
  }
  .festival-detail.shop-preview-mode .shop-world-preview .shop-world-chip {
    font-size: calc(20 * var(--ui-scale)) !important;
  }
  .festival-detail.shop-preview-mode .shop-world-preview .shop-world-roll {
    font-size: calc(20 * var(--ui-scale)) !important;
    min-height: calc(48 * var(--ui-scale)) !important;
    max-width: calc(220 * var(--ui-scale)) !important;
  }
}
.festival-detail .sitem > em.premium-access {
  color: #342440 !important;
  background: #f6d37b !important;
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid #c5a050;
}
.festival-detail .sitem > em.eq {
  color: #153e34 !important;
  background: #8de0b2 !important;
  padding: 3px 9px;
  border-radius: 8px;
}
@media (max-height: 600px) {
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode:not(.inventory-mode) {
    grid-template-columns: minmax(170px, .72fr) minmax(0, 1.6fr) !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) {
    grid-template-columns: clamp(45px, 6.4vw, 70px) minmax(0, 1fr) !important;
    grid-template-rows: 1fr 1fr !important;
    column-gap: 8px !important;
    row-gap: 2px !important;
    padding: 5px 8px !important;
    align-items: center !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(.sth, i) {
    grid-column: 1 !important;
    grid-row: 1/3 !important;
    min-height: 36px !important;
    max-height: 100% !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > b {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 14px !important;
    text-align: start;
    justify-self: start;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(em, small) {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    text-align: start;
    justify-self: start;
    font-size: 10px !important;
    padding: 1px 4px !important;
  }
}
@media (max-width: 660px) {
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode:not(.inventory-mode) {
    grid-template-columns: 155px minmax(0, 1fr) !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) {
    grid-template-columns: 43px minmax(0, 1fr) !important;
    column-gap: 6px !important;
    padding: 4px 5px !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > b {
    font-size: 12px !important;
  }
}
.festival-front .character-lobby .lobby-cartoon-smoke {
  mask-image:
    linear-gradient(
      90deg,
      transparent,
      #000 6%,
      #000 94%,
      transparent);
}
@media (min-width: 901px) and (max-width: 1099px) and (min-height: 620px) {
  .festival-front .character-lobby .lobby-hero {
    bottom: 25%;
  }
}
@media (max-height: 360px) {
  .festival-detail.ranked-mode .rk-controls > .rk-me {
    padding: 0 !important;
    gap: 5px !important;
  }
}
main.festival-menu .btn-ok {
  border-bottom: 4px solid #286447 !important;
  box-shadow: inset 0 1px #d4ffeaaa, 0 3px #142d24 !important;
}
.festival-front .character-lobby .lobby-game-props {
  position: absolute;
  left: 3%;
  bottom: 9%;
  width: 19%;
  height: 25%;
  z-index: 2;
  pointer-events: none;
}
.festival-front .character-lobby .lobby-game-props > img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 85%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 8px 5px #16132d66);
}
.festival-front .character-lobby .lobby-deed-prop {
  position: absolute;
  right: 5%;
  top: 0;
  width: 43%;
  height: 75%;
  background: #f6eedc;
  border: 4px solid #e3d6b9;
  border-bottom: 9px solid #baa88e;
  border-radius: 10px;
  transform: rotate(10deg);
  box-shadow: 0 8px 10px #16132d55;
  overflow: hidden;
  color: #27344c;
  font: 800 clamp(10px, 1.1vw, 22px) Nunito;
  text-align: center;
}
.festival-front .character-lobby .lobby-deed-prop > i {
  display: block;
  height: 23%;
  background: #dd6b55;
  border-bottom: 3px solid #ae4b3e;
}
.festival-front .character-lobby .lobby-deed-prop > b {
  display: block;
  padding: 8px 2px 5px;
  font: inherit;
  line-height: 1.05;
}
.festival-front .character-lobby .lobby-deed-prop > small {
  font-size: .75em;
  opacity: .65;
}
.festival-front .character-lobby .lobby-deed-prop:after {
  content: "";
  display: block;
  height: 2px;
  background: #b6b2a8;
  margin: 8px 13px;
}
@media (max-height: 600px) {
  .festival-front .character-lobby .lobby-game-props {
    bottom: 5%;
  }
  .festival-front .character-lobby .lobby-deed-prop {
    border-width: 2px;
    border-bottom-width: 5px;
    border-radius: 6px;
    font-size: 9px;
  }
  .festival-front .character-lobby .lobby-deed-prop > b {
    padding: 5px 1px 2px;
  }
  .festival-front .character-lobby .lobby-deed-prop > small {
    font-size: 5px;
  }
  .festival-front .character-lobby .lobby-deed-prop:after {
    margin: 4px 6px;
    height: 1px;
  }
}
@media (max-height: 360px) {
  .festival-front .character-lobby .lobby-game-props {
    height: 16%;
    bottom: 3%;
  }
  .festival-front .character-lobby .lobby-game-props > img {
    height: 100%;
  }
  .festival-front .character-lobby .lobby-deed-prop {
    font-size: 7px;
  }
  .festival-front .character-lobby .lobby-deed-prop > b {
    padding: 2px 0;
  }
  .festival-front .character-lobby .lobby-deed-prop > small,
  .festival-front .character-lobby .lobby-deed-prop:after {
    display: none;
  }
}
@media (min-width: 600px) and (orientation: portrait) {
  .festival-front .character-lobby .lobby-game-props {
    height: 16%;
    bottom: 22%;
  }
}
@media (max-height: 600px) {
  .festival-front .character-lobby .lobby-game-props {
    bottom: 1%;
  }
}
main.menu.festival-detail.ranked-mode:has(.rk-queue) {
  grid-template-rows: calc(52 * var(--ui-scale)) minmax(0, 1fr) !important;
}
main.menu.festival-detail.ranked-mode:has(.rk-queue) > .festival-detail-footer {
  display: none !important;
}
@media (max-height: 600px) {
  main.menu.festival-detail.ranked-mode:has(.rk-queue) {
    grid-template-rows: 38px minmax(0, 1fr) !important;
  }
}
.lobby-scenery.approved-halloween > .lobby-moon {
  background:
    radial-gradient(
      ellipse at 31% 32%,
      #712b294f 0 10%,
      transparent 11%),
    radial-gradient(
      ellipse at 64% 63%,
      #66202850 0 14%,
      transparent 15%),
    radial-gradient(
      ellipse at 30% 73%,
      #902f3440 0 8%,
      transparent 9%),
    radial-gradient(
      circle at 38% 34%,
      #ef9c79,
      #cc615c 57%,
      #8e384c 100%);
  box-shadow: inset -2px -2px 8px #5e273a66, 0 0 22px #d5657133;
  opacity: .85;
}
:root {
  --desktop-unit:1px;
}
@media (min-width: 1921px) and (min-height: 900px) {
  :root {
    --desktop-unit:min(.0520833333vw,.0925925926dvh);
  }
  .lobby-scenery > .lobby-halo {
    inset: -40% -20% auto;
    height: 120%;
    border-radius: 50%;
    border: calc(2 * var(--desktop-unit)) solid #c3b5ed12;
    transform: rotate(-16deg);
  }
  .lobby-scenery > .lobby-horizon {
    left: -20%;
    right: -20%;
    bottom: -55%;
    height: 90%;
    border-radius: 50%;
    border-top: calc(2 * var(--desktop-unit)) solid #c6d3f325;
  }
  .lobby-scenery > .lobby-mist {
    bottom: 0;
    left: -10%;
    right: -10%;
    height: 40%;
  }
  .lobby-scenery > img.lobby-castle {
    left: 32%;
    top: 8%;
    width: 58%;
    height: 62%;
  }
  .lobby-scenery > .lobby-moon {
    right: 19%;
    top: 15%;
    width: calc(54 * var(--desktop-unit));
    border-radius: 50%;
  }
  .festival-front .character-lobby button {
    min-width: 0;
    line-height: 1.15;
  }
  .festival-front .character-lobby button:focus-visible {
    outline-offset: calc(3 * var(--desktop-unit));
  }
  .festival-front .character-lobby button:active {
    transform: translateY(calc(2 * var(--desktop-unit)));
  }
  .festival-front .character-lobby .lobby-account {
    left: max(calc(26 * var(--desktop-unit)), var(--safe-l));
    top: calc(16 * var(--desktop-unit));
    width: 24%;
    max-width: calc(300 * var(--desktop-unit));
  }
  .festival-front .character-lobby .acct-chip {
    width: 100%;
    min-height: calc(57 * var(--desktop-unit));
    max-height: calc(72 * var(--desktop-unit));
    padding: calc(5 * var(--desktop-unit)) calc(12 * var(--desktop-unit)) calc(5 * var(--desktop-unit)) calc(5 * var(--desktop-unit)) !important;
    gap: calc(2 * var(--desktop-unit)) calc(8 * var(--desktop-unit)) !important;
    border: calc(1 * var(--desktop-unit)) solid #b6bed970 !important;
    border-bottom: calc(3 * var(--desktop-unit)) solid #181b3d !important;
    border-radius: calc(15 * var(--desktop-unit));
    font: 800 calc(20 * var(--desktop-unit))/1.1 "Baloo 2", Nunito;
  }
  .festival-front .character-lobby .acct-chip.in {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .festival-front .character-lobby .acct-chip .chip-av {
    width: calc(44 * var(--desktop-unit)) !important;
    height: calc(44 * var(--desktop-unit)) !important;
    min-width: 0;
    min-height: 0;
  }
  .festival-front .character-lobby .acct-chip > span {
    min-width: 0;
  }
  .festival-front .character-lobby .acct-chip .tier-chip {
    gap: calc(5 * var(--desktop-unit));
    font-size: calc(12 * var(--desktop-unit));
    min-height: calc(18 * var(--desktop-unit));
  }
  .festival-front .character-lobby .acct-chip .tier-chip svg {
    width: calc(20 * var(--desktop-unit)) !important;
    height: calc(23 * var(--desktop-unit)) !important;
  }
  .festival-front .character-lobby .lobby-brand {
    top: calc(17 * var(--desktop-unit));
    left: 50%;
    transform: translateX(-50%);
    gap: calc(7 * var(--desktop-unit));
    height: calc(49 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-brand > img {
    width: calc(49 * var(--desktop-unit));
    height: calc(49 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-brand > h1 {
    margin: 0;
    font: 800 clamp(calc(22 * var(--desktop-unit)), 2.1cqw, calc(37 * var(--desktop-unit)))/1 "Baloo 2";
    letter-spacing: calc(0.4 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-tools {
    top: calc(18 * var(--desktop-unit));
    right: max(calc(26 * var(--desktop-unit)), var(--safe-r));
    gap: calc(10 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-wallet,
  .festival-front .character-lobby .lobby-icon {
    gap: calc(7 * var(--desktop-unit));
    min-height: calc(42 * var(--desktop-unit));
    padding: calc(6 * var(--desktop-unit)) calc(11 * var(--desktop-unit));
    border: calc(1 * var(--desktop-unit)) solid #a0adbe70;
    border-bottom: calc(3 * var(--desktop-unit)) solid #171e36;
    border-radius: calc(12 * var(--desktop-unit));
    font: 800 calc(21 * var(--desktop-unit))/1 "Baloo 2";
  }
  .festival-front .character-lobby .lobby-wallet > .coin {
    width: calc(27 * var(--desktop-unit)) !important;
    height: calc(27 * var(--desktop-unit)) !important;
  }
  .festival-front .character-lobby .lobby-icon {
    width: calc(43 * var(--desktop-unit));
    gap: 0;
    padding: calc(5 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-icon > svg {
    width: calc(23 * var(--desktop-unit)) !important;
    height: calc(23 * var(--desktop-unit)) !important;
  }
  .festival-front .character-lobby .lobby-icon > small {
    font: 800 calc(8 * var(--desktop-unit))/1 Nunito;
  }
  .festival-front .character-lobby .lobby-body {
    inset: calc(78 * var(--desktop-unit)) 0 calc(47 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-nav {
    left: 2.4%;
    top: 17%;
    width: 20%;
    max-width: calc(250 * var(--desktop-unit));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(12 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-tile {
    height: clamp(calc(75 * var(--desktop-unit)), 12cqh, calc(112 * var(--desktop-unit)));
    gap: calc(7 * var(--desktop-unit));
    padding: calc(9 * var(--desktop-unit)) calc(4 * var(--desktop-unit));
    border: calc(1 * var(--desktop-unit)) solid #b6c3d582;
    border-bottom: calc(4 * var(--desktop-unit)) solid #192335;
    border-radius: calc(17 * var(--desktop-unit));
    font-size: calc(17 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-tile > svg {
    width: calc(32 * var(--desktop-unit)) !important;
    height: calc(32 * var(--desktop-unit)) !important;
  }
  .festival-front .character-lobby .lobby-nav-art {
    width: calc(38 * var(--desktop-unit));
    height: calc(38 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-pawn-icon {
    width: calc(38 * var(--desktop-unit));
    height: calc(40 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-pawn-icon img {
    inset: 0;
    width: calc(37 * var(--desktop-unit));
    height: calc(39 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-pawn-icon.pair {
    width: calc(50 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-pawn-icon.pair img + img {
    left: calc(16 * var(--desktop-unit));
    top: calc(4 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-tile > small {
    right: calc(5 * var(--desktop-unit));
    top: calc(5 * var(--desktop-unit));
    padding: calc(2 * var(--desktop-unit)) calc(5 * var(--desktop-unit));
    border-radius: calc(9 * var(--desktop-unit));
    font: 800 calc(11 * var(--desktop-unit)) Nunito;
  }
  .festival-front .character-lobby .lobby-training {
    gap: calc(10 * var(--desktop-unit));
    min-height: calc(44 * var(--desktop-unit));
    padding: calc(7 * var(--desktop-unit)) calc(12 * var(--desktop-unit));
    border: calc(1 * var(--desktop-unit)) solid #b6c3d582;
    border-bottom: calc(3 * var(--desktop-unit)) solid #192335;
    border-radius: calc(12 * var(--desktop-unit));
    font-size: calc(15 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-training > .lobby-nav-art {
    width: calc(25 * var(--desktop-unit));
    height: calc(25 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-training > span:last-child {
    margin-left: auto;
    font-size: calc(21 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-hero {
    inset: 5% 26% 20% 26%;
  }
  .festival-front .character-lobby .lobby-pawn.festival-pawn {
    inset: auto !important;
    left: 50% !important;
    bottom: 12% !important;
    width: 79% !important;
    height: 85% !important;
    transform: translateX(-50%) !important;
    max-width: none !important;
    max-height: none !important;
  }
  .festival-front .character-lobby .lobby-pawn > canvas {
    width: 100% !important;
    height: 100% !important;
  }
  .festival-front .character-lobby .lobby-stage {
    bottom: 10%;
    left: 5%;
    width: 90%;
    height: 13%;
    border-radius: 50%;
  }
  .festival-front .character-lobby .lobby-costume.festival-costume {
    inset: auto !important;
    left: 50% !important;
    bottom: -1% !important;
    transform: translateX(-50%) !important;
    gap: calc(9 * var(--desktop-unit));
    width: max-content;
    max-width: 85%;
    min-height: calc(34 * var(--desktop-unit));
    padding: calc(6 * var(--desktop-unit)) calc(15 * var(--desktop-unit)) !important;
    border: calc(1 * var(--desktop-unit)) solid #bdb3d56e;
    border-radius: calc(12 * var(--desktop-unit));
    font: 800 calc(16 * var(--desktop-unit))/1.1 "Baloo 2";
  }
  .festival-front .character-lobby .lobby-costume svg {
    width: calc(14 * var(--desktop-unit)) !important;
    height: calc(14 * var(--desktop-unit)) !important;
  }
  .festival-front .character-lobby .lobby-front-fog {
    inset: auto -20% 8%;
    height: 25%;
  }
  .festival-front .character-lobby .lobby-private {
    right: 2.8%;
    top: 20%;
    width: 21%;
    max-width: calc(260 * var(--desktop-unit));
    gap: calc(11 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-room-heading {
    font: 800 calc(12 * var(--desktop-unit))/1.2 Nunito;
    letter-spacing: calc(0.7 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-room {
    gap: calc(10 * var(--desktop-unit));
    min-height: calc(58 * var(--desktop-unit));
    padding: calc(10 * var(--desktop-unit)) calc(13 * var(--desktop-unit));
    border: calc(1 * var(--desktop-unit)) solid #a5b8cb80;
    border-bottom: calc(3 * var(--desktop-unit)) solid #192336;
    border-radius: calc(13 * var(--desktop-unit));
    font-size: calc(19 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-room > svg {
    width: calc(23 * var(--desktop-unit)) !important;
    height: calc(23 * var(--desktop-unit)) !important;
  }
  .festival-front .character-lobby .lobby-room > span:last-child {
    margin-left: auto;
  }
  .festival-front .character-lobby .lobby-actions {
    bottom: 2.6%;
    left: 26%;
    right: 2.8%;
    max-width: calc(1600 * var(--desktop-unit));
    margin-left: auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: calc(12 * var(--desktop-unit));
    padding: calc(10 * var(--desktop-unit));
    border: calc(1 * var(--desktop-unit)) solid #a6aeb767;
    border-radius: calc(21 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-ranked {
    gap: calc(14 * var(--desktop-unit));
    padding: calc(10 * var(--desktop-unit)) calc(17 * var(--desktop-unit));
    border: calc(1 * var(--desktop-unit)) solid #b5adbe;
    border-radius: calc(13 * var(--desktop-unit));
    border-bottom: calc(3 * var(--desktop-unit)) solid #252d35;
    min-width: 0;
  }
  .festival-front .character-lobby .lobby-ranked > .menu-rank-crest {
    width: calc(45 * var(--desktop-unit)) !important;
    height: calc(55 * var(--desktop-unit)) !important;
  }
  .festival-front .character-lobby .lobby-ranked b {
    font: 800 calc(28 * var(--desktop-unit))/1.1 "Baloo 2";
  }
  .festival-front .character-lobby .lobby-ranked small {
    font: 800 calc(12 * var(--desktop-unit))/1.2 Nunito;
    margin-top: calc(5 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-ranked > .lobby-chevron {
    margin-left: auto;
    font-size: calc(25 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-ranked > .rk-chip {
    right: calc(8 * var(--desktop-unit));
    top: calc(5 * var(--desktop-unit));
    font-size: calc(10 * var(--desktop-unit));
    max-width: calc(52 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-play {
    min-width: 0;
    min-height: calc(85 * var(--desktop-unit));
    gap: calc(20 * var(--desktop-unit));
    border: calc(2 * var(--desktop-unit)) solid #ffe9a5;
    border-bottom: calc(6 * var(--desktop-unit)) solid #c47b2f;
    border-radius: calc(14 * var(--desktop-unit));
    transform: skew(-3deg);
    font: 800 clamp(calc(32 * var(--desktop-unit)), 3.5cqw, calc(58 * var(--desktop-unit)))/1 "Baloo 2";
    letter-spacing: calc(0.6 * var(--desktop-unit));
  }
  .festival-front .character-lobby .lobby-play > span {
    font-size: .65em;
  }
  .festival-front .character-lobby .lobby-play:active {
    transform: skew(-3deg) translateY(calc(3 * var(--desktop-unit)));
  }
  .festival-front .character-lobby .lobby-play:after,
  .festival-front .character-lobby .lobby-ranked:after {
    top: -45%;
    left: -80%;
    width: 55%;
    height: 190%;
    transform: translate3d(-150%, 0, 0) skew(-22deg);
  }
  @keyframes lobby-button-shine {
    0%, 58% {
      transform: translate3d(-150%, 0, 0) skew(-22deg);
    }
    79% {
      transform: translate3d(420%, 0, 0) skew(-22deg);
    }
    81%, 100% {
      transform: translate3d(420%, 0, 0) skew(-22deg);
    }
  }
  @keyframes lobby-rank-rock {
    0%, 60%, 81%, 100% {
      transform: rotate(0) scale(1);
    }
    65% {
      transform: rotate(-7deg) scale(1.04);
    }
    69% {
      transform: rotate(6deg) scale(1.04);
    }
    73% {
      transform: rotate(-4deg) scale(1.02);
    }
    77% {
      transform: rotate(2deg);
    }
  }
  .festival-front .character-lobby .lobby-footer.festival-footer {
    inset: auto 0 0 !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: calc(12 * var(--desktop-unit));
    height: calc(44 * var(--desktop-unit)) !important;
    padding: calc(4 * var(--desktop-unit)) max(calc(24 * var(--desktop-unit)), var(--safe-r)) calc(5 * var(--desktop-unit)) max(calc(24 * var(--desktop-unit)), var(--safe-l));
    border-top: calc(1 * var(--desktop-unit)) solid #b0bfdc33;
  }
  .festival-front .character-lobby .menu-social {
    inset: auto !important;
    transform: none !important;
    gap: calc(9 * var(--desktop-unit));
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }
  .festival-front .character-lobby .menu-social > .soc-btn {
    gap: calc(7 * var(--desktop-unit));
    min-height: calc(32 * var(--desktop-unit)) !important;
    padding: calc(5 * var(--desktop-unit)) calc(12 * var(--desktop-unit)) !important;
    border: calc(1 * var(--desktop-unit)) solid #a6a9dd !important;
    border-bottom: calc(2 * var(--desktop-unit)) solid #151b38 !important;
    border-radius: calc(11 * var(--desktop-unit)) !important;
    font: 800 calc(13 * var(--desktop-unit))/1.1 "Baloo 2" !important;
  }
  .festival-front .character-lobby .soc-btn > img {
    width: calc(20 * var(--desktop-unit)) !important;
    height: calc(18 * var(--desktop-unit)) !important;
  }
  .festival-front .character-lobby .soc-btn > svg {
    width: calc(17 * var(--desktop-unit)) !important;
    height: calc(17 * var(--desktop-unit)) !important;
  }
  .festival-front .character-lobby .menu-legal {
    gap: calc(4 * var(--desktop-unit)) calc(14 * var(--desktop-unit));
    margin: 0 !important;
    max-width: none !important;
    font: 800 calc(11 * var(--desktop-unit))/1.2 Nunito;
  }
  .festival-front .character-lobby .festival-version {
    font: 800 calc(9 * var(--desktop-unit))/1 Nunito;
  }
  @media (prefers-reduced-motion: reduce) {
  }
  @media (min-width: 1800px) {
    .festival-front .character-lobby .lobby-body {
      inset: calc(100 * var(--desktop-unit)) 0 calc(58 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-account {
      top: calc(22 * var(--desktop-unit));
      max-width: calc(390 * var(--desktop-unit));
    }
    .festival-front .character-lobby .acct-chip {
      min-height: calc(74 * var(--desktop-unit));
      font-size: calc(26 * var(--desktop-unit));
    }
    .festival-front .character-lobby .acct-chip .chip-av {
      width: calc(58 * var(--desktop-unit)) !important;
      height: calc(58 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .acct-chip .tier-chip {
      font-size: calc(16 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-brand {
      top: calc(22 * var(--desktop-unit));
      height: calc(65 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-brand > img {
      width: calc(65 * var(--desktop-unit));
      height: calc(65 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-tools {
      top: calc(26 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-nav {
      max-width: calc(340 * var(--desktop-unit));
      gap: calc(17 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-tile {
      height: calc(145 * var(--desktop-unit));
      font-size: calc(23 * var(--desktop-unit));
      border-radius: calc(22 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-nav-art {
      width: calc(52 * var(--desktop-unit));
      height: calc(52 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-tile > svg {
      width: calc(43 * var(--desktop-unit)) !important;
      height: calc(43 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-pawn-icon,
    .festival-front .character-lobby .lobby-pawn-icon > img {
      width: calc(53 * var(--desktop-unit));
      height: calc(53 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-pawn-icon.pair {
      width: calc(72 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-pawn-icon.pair > img + img {
      left: calc(20 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-training {
      min-height: calc(56 * var(--desktop-unit));
      font-size: calc(20 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-private {
      max-width: calc(360 * var(--desktop-unit));
      gap: calc(16 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-room-heading {
      font-size: calc(16 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-room {
      min-height: calc(80 * var(--desktop-unit));
      font-size: calc(27 * var(--desktop-unit));
      padding: calc(15 * var(--desktop-unit)) calc(22 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-actions {
      padding: calc(15 * var(--desktop-unit));
      gap: calc(16 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-play {
      min-height: calc(120 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-ranked b {
      font-size: calc(36 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-ranked small {
      font-size: calc(17 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-ranked > .menu-rank-crest {
      width: calc(63 * var(--desktop-unit)) !important;
      height: calc(76 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-costume {
      font-size: calc(22 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-footer {
      height: calc(54 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .menu-social > .soc-btn {
      font-size: calc(16 * var(--desktop-unit)) !important;
      min-height: calc(39 * var(--desktop-unit)) !important;
    }
  }
  @media (max-height: 600px) {
    .festival-front .character-lobby .lobby-body {
      inset: calc(54 * var(--desktop-unit)) 0 calc(39 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-account {
      top: calc(6 * var(--desktop-unit));
      left: max(calc(16 * var(--desktop-unit)), var(--safe-l));
      max-width: calc(205 * var(--desktop-unit));
    }
    .festival-front .character-lobby .acct-chip {
      min-height: calc(40 * var(--desktop-unit));
      font-size: calc(16 * var(--desktop-unit));
      border-radius: calc(12 * var(--desktop-unit));
    }
    .festival-front .character-lobby .acct-chip .chip-av {
      width: calc(31 * var(--desktop-unit)) !important;
      height: calc(31 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .acct-chip .tier-chip {
      font-size: calc(10 * var(--desktop-unit));
    }
    .festival-front .character-lobby .acct-chip .tier-chip svg {
      width: calc(17 * var(--desktop-unit)) !important;
      height: calc(18 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-brand {
      top: calc(5 * var(--desktop-unit));
      height: calc(42 * var(--desktop-unit));
      gap: calc(4 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-brand > img {
      width: calc(35 * var(--desktop-unit));
      height: calc(35 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-brand > h1 {
      font-size: calc(23 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-tools {
      top: calc(7 * var(--desktop-unit));
      right: max(calc(16 * var(--desktop-unit)), var(--safe-r));
      gap: calc(7 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-wallet,
    .festival-front .character-lobby .lobby-icon {
      min-height: calc(36 * var(--desktop-unit));
      font-size: calc(17 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-icon {
      width: calc(35 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-icon > svg {
      width: calc(20 * var(--desktop-unit)) !important;
      height: calc(20 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-wallet > .coin {
      width: calc(23 * var(--desktop-unit)) !important;
      height: calc(23 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-nav {
      gap: calc(9 * var(--desktop-unit));
      top: 14%;
    }
    .festival-front .character-lobby .lobby-tile {
      height: calc(65 * var(--desktop-unit));
      font-size: calc(14 * var(--desktop-unit));
      gap: calc(3 * var(--desktop-unit));
      border-radius: calc(12 * var(--desktop-unit));
      padding: calc(6 * var(--desktop-unit)) calc(2 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-tile > svg {
      width: calc(24 * var(--desktop-unit)) !important;
      height: calc(24 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-nav-art {
      width: calc(29 * var(--desktop-unit));
      height: calc(29 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-pawn-icon,
    .festival-front .character-lobby .lobby-pawn-icon > img {
      width: calc(28 * var(--desktop-unit));
      height: calc(29 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-pawn-icon.pair {
      width: calc(40 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-pawn-icon.pair > img + img {
      left: calc(12 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-training {
      min-height: calc(34 * var(--desktop-unit));
      padding: calc(5 * var(--desktop-unit)) calc(8 * var(--desktop-unit));
      font-size: calc(13 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-training > .lobby-nav-art {
      width: calc(23 * var(--desktop-unit));
      height: calc(23 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-hero {
      inset: 2% 24% 26% 24%;
    }
    .festival-front .character-lobby .lobby-costume.festival-costume {
      font-size: calc(13 * var(--desktop-unit));
      min-height: calc(29 * var(--desktop-unit));
      padding: calc(4 * var(--desktop-unit)) calc(12 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-private {
      top: 19%;
      gap: calc(8 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-room-heading {
      font-size: calc(11 * var(--desktop-unit));
      letter-spacing: 0;
    }
    .festival-front .character-lobby .lobby-room {
      min-height: calc(44 * var(--desktop-unit));
      padding: calc(7 * var(--desktop-unit)) calc(10 * var(--desktop-unit));
      gap: calc(7 * var(--desktop-unit));
      font-size: calc(16 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-room > svg {
      width: calc(19 * var(--desktop-unit)) !important;
      height: calc(19 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-actions {
      left: 25%;
      bottom: 3%;
      padding: calc(7 * var(--desktop-unit));
      gap: calc(8 * var(--desktop-unit));
      border-radius: calc(16 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-play {
      min-height: calc(58 * var(--desktop-unit));
      font-size: calc(32 * var(--desktop-unit));
      gap: calc(12 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-ranked {
      padding: calc(6 * var(--desktop-unit)) calc(10 * var(--desktop-unit));
      gap: calc(9 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-ranked b {
      font-size: calc(23 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-ranked small {
      font-size: calc(11 * var(--desktop-unit));
      margin-top: calc(2 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-ranked > .menu-rank-crest {
      width: calc(32 * var(--desktop-unit)) !important;
      height: calc(40 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-footer.festival-footer {
      height: calc(36 * var(--desktop-unit)) !important;
      padding-inline: calc(15 * var(--desktop-unit));
    }
    .festival-front .character-lobby .menu-social > .soc-btn {
      min-height: calc(27 * var(--desktop-unit)) !important;
      font-size: calc(12 * var(--desktop-unit)) !important;
      padding: calc(3 * var(--desktop-unit)) calc(9 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .menu-legal {
      font-size: calc(10 * var(--desktop-unit));
    }
  }
  @media (max-height: 420px) {
    .festival-front .character-lobby .lobby-hero {
      inset: 0 24% 31% 24%;
    }
    .festival-front .character-lobby .lobby-nav {
      top: 10%;
      gap: calc(7 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-tile {
      height: calc(60 * var(--desktop-unit));
      font-size: calc(13 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-training {
      min-height: calc(31 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-actions {
      padding: calc(6 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-play {
      min-height: calc(52 * var(--desktop-unit));
      font-size: calc(29 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-ranked b {
      font-size: calc(21 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-ranked > .menu-rank-crest {
      width: calc(29 * var(--desktop-unit)) !important;
      height: calc(36 * var(--desktop-unit)) !important;
    }
  }
  @media (max-width: 660px) {
    .festival-front .character-lobby .lobby-brand > h1 {
      font-size: calc(18 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-brand > img {
      width: calc(29 * var(--desktop-unit));
      height: calc(29 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-account {
      width: 29%;
      left: calc(12 * var(--desktop-unit));
    }
    .festival-front .character-lobby .acct-chip {
      font-size: calc(14 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-wallet {
      padding: calc(5 * var(--desktop-unit)) calc(7 * var(--desktop-unit));
      font-size: calc(15 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-tools {
      gap: calc(5 * var(--desktop-unit));
      right: calc(12 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-nav {
      width: 21%;
      gap: calc(6 * var(--desktop-unit));
      top: 8%;
    }
    .festival-front .character-lobby .lobby-tile {
      height: calc(54 * var(--desktop-unit));
      font-size: calc(11 * var(--desktop-unit));
      gap: calc(2 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-tile > svg {
      width: calc(21 * var(--desktop-unit)) !important;
      height: calc(21 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-training {
      font-size: calc(11 * var(--desktop-unit));
      gap: calc(5 * var(--desktop-unit));
      min-height: calc(30 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-nav-art {
      width: calc(26 * var(--desktop-unit));
      height: calc(26 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-pawn-icon,
    .festival-front .character-lobby .lobby-pawn-icon > img {
      width: calc(25 * var(--desktop-unit));
      height: calc(26 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-private {
      width: 22%;
      top: 12%;
      gap: calc(7 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-room-heading {
      font-size: calc(10 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-room {
      min-height: calc(36 * var(--desktop-unit));
      font-size: calc(13 * var(--desktop-unit));
      gap: calc(5 * var(--desktop-unit));
      padding: calc(6 * var(--desktop-unit)) calc(7 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-room > svg {
      width: calc(16 * var(--desktop-unit)) !important;
      height: calc(16 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-hero {
      inset: 0 24% 36% 24%;
    }
    .festival-front .character-lobby .lobby-costume.festival-costume {
      font-size: calc(11 * var(--desktop-unit));
      min-height: calc(24 * var(--desktop-unit));
      padding: calc(3 * var(--desktop-unit)) calc(9 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-actions {
      left: 25.5%;
      gap: calc(6 * var(--desktop-unit));
      padding: calc(5 * var(--desktop-unit));
      grid-template-columns: 1fr 1fr;
    }
    .festival-front .character-lobby .lobby-ranked {
      gap: calc(6 * var(--desktop-unit));
      padding: calc(5 * var(--desktop-unit)) calc(7 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-ranked b {
      font-size: calc(18 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-ranked small {
      font-size: calc(10 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-ranked > .menu-rank-crest {
      width: calc(25 * var(--desktop-unit)) !important;
      height: calc(32 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-ranked > .lobby-chevron {
      font-size: calc(18 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-play {
      min-height: calc(47 * var(--desktop-unit));
      font-size: calc(26 * var(--desktop-unit));
      gap: calc(9 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-footer.festival-footer {
      gap: calc(7 * var(--desktop-unit));
    }
    .festival-front .character-lobby .menu-legal {
      gap: calc(3 * var(--desktop-unit)) calc(8 * var(--desktop-unit));
      font-size: calc(9 * var(--desktop-unit));
    }
  }
  @media (min-width: 600px) and (orientation: portrait) {
    .festival-front .character-lobby .lobby-nav {
      width: 23%;
      top: 15%;
      gap: calc(10 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-tile {
      height: calc(85 * var(--desktop-unit));
      font-size: calc(15 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-private {
      top: 18%;
      width: 24%;
      right: 2.5%;
    }
    .festival-front .character-lobby .lobby-room-heading {
      font-size: calc(11 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-room {
      font-size: calc(15 * var(--desktop-unit));
      padding: calc(10 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-hero {
      inset: 10% 12% 21% 12%;
    }
    .festival-front .character-lobby .lobby-pawn.festival-pawn {
      width: 60% !important;
      height: 70% !important;
    }
    .festival-front .character-lobby .lobby-stage {
      left: 12%;
      width: 76%;
      height: 9%;
    }
    .festival-front .character-lobby .lobby-actions {
      left: 4%;
      right: 4%;
      bottom: 4%;
      grid-template-columns: 1fr 1.15fr;
    }
    .festival-front .character-lobby .lobby-ranked b {
      font-size: calc(25 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-brand > h1 {
      font-size: calc(22 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-brand > img {
      width: calc(38 * var(--desktop-unit));
      height: calc(38 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-account {
      width: 28%;
    }
    .festival-front .character-lobby .acct-chip {
      font-size: calc(17 * var(--desktop-unit));
    }
  }
  main.menu.festival-detail.ranked-mode {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: calc(50 * var(--desktop-unit)) minmax(0, 1fr) calc(40 * var(--desktop-unit)) !important;
    gap: calc(12 * var(--desktop-unit)) !important;
    padding: calc(12 * var(--desktop-unit)) calc(24 * var(--desktop-unit)) !important;
  }
  .festival-detail.ranked-mode > .festival-detail-header {
    min-height: 0;
  }
  .festival-detail.ranked-mode > .festival-detail-footer {
    min-height: 0;
  }
  .festival-detail.ranked-mode > #menu-panel {
    width: 100% !important;
    max-width: calc(1200 * var(--desktop-unit)) !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: calc(18 * var(--desktop-unit)) !important;
    border: calc(1 * var(--desktop-unit)) solid #9ba7c16e !important;
    border-radius: calc(22 * var(--desktop-unit)) !important;
  }
  .festival-detail.ranked-mode .rk-page {
    gap: calc(12 * var(--desktop-unit));
    min-height: 0;
    height: 100%;
    padding: 0 !important;
    max-width: none !important;
  }
  .festival-detail.ranked-mode .rk-top {
    gap: calc(9 * var(--desktop-unit));
    min-height: calc(34 * var(--desktop-unit));
    height: auto;
    margin: 0;
    padding: 0;
  }
  .festival-detail.ranked-mode .rk-top > small {
    margin-right: auto;
    font-size: calc(12 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-top .btn {
    min-height: calc(33 * var(--desktop-unit));
    padding: calc(6 * var(--desktop-unit)) calc(12 * var(--desktop-unit));
    font-size: calc(13 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-top .icon-btn {
    width: calc(33 * var(--desktop-unit));
    height: calc(33 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-match-layout {
    grid-template-columns: minmax(calc(200 * var(--desktop-unit)), .7fr) minmax(0, 1.5fr);
    gap: calc(22 * var(--desktop-unit));
    min-height: 0;
  }
  .festival-detail.ranked-mode .rk-identity {
    gap: calc(12 * var(--desktop-unit));
    padding: calc(18 * var(--desktop-unit));
    border: calc(1 * var(--desktop-unit)) solid #9ba7c13c;
    border-radius: calc(17 * var(--desktop-unit));
    min-height: 0;
  }
  .festival-detail.ranked-mode .rk-identity > small {
    font: 800 calc(12 * var(--desktop-unit)) Nunito;
  }
  .festival-detail.ranked-mode .rk-large-crest {
    width: clamp(calc(70 * var(--desktop-unit)), calc(192 * var(--desktop-unit)), calc(145 * var(--desktop-unit)));
    height: clamp(calc(80 * var(--desktop-unit)), calc(183.60000000000002 * var(--desktop-unit)), calc(165 * var(--desktop-unit)));
  }
  .festival-detail.ranked-mode .rk-large-crest > svg {
    width: 100% !important;
    height: 100% !important;
  }
  .festival-detail.ranked-mode .rk-identity h3 {
    font: 800 calc(30 * var(--desktop-unit))/1 "Baloo 2";
    margin: 0;
  }
  .festival-detail.ranked-mode .rk-identity > strong {
    font: 800 calc(28 * var(--desktop-unit))/1 "Baloo 2";
  }
  .festival-detail.ranked-mode .rk-identity > strong > small {
    font-size: calc(13 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-identity > p {
    margin: 0;
    max-width: 100%;
    font-size: calc(13 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-controls {
    min-width: 0;
    min-height: 0;
  }
  .festival-detail.ranked-mode .rk-controls > .rk-me {
    gap: calc(15 * var(--desktop-unit));
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    padding: calc(18 * var(--desktop-unit)) !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0;
  }
  .festival-detail.ranked-mode .rk-controls .rk-me.locked > svg {
    width: calc(45 * var(--desktop-unit));
    height: calc(45 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-controls .rk-me.locked > div {
    gap: calc(9 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-modes {
    gap: calc(8 * var(--desktop-unit));
    margin: 0;
  }
  .festival-detail.ranked-mode .rk-modes > button {
    min-width: 0;
    min-height: calc(60 * var(--desktop-unit));
    padding: calc(12 * var(--desktop-unit));
    font: 800 calc(21 * var(--desktop-unit))/1.1 "Baloo 2";
    border: calc(1 * var(--desktop-unit)) solid #9ba7c170;
    border-radius: calc(13 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-team {
    grid-template-columns: 1fr 1fr;
    gap: calc(10 * var(--desktop-unit));
    min-height: 0;
    margin: 0;
    padding: calc(13 * var(--desktop-unit));
    border: calc(1 * var(--desktop-unit)) solid #8a8fb369;
    border-radius: calc(14 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-partner-choice {
    min-height: 0;
    margin: 0;
  }
  .festival-detail.ranked-mode .rk-partner-choice > button {
    min-height: calc(37 * var(--desktop-unit));
    font-size: calc(13 * var(--desktop-unit));
    padding: calc(7 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-team > .mp-help {
    margin: 0;
    font-size: calc(12 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-team-head {
    gap: calc(10 * var(--desktop-unit));
    min-height: 0;
  }
  .festival-detail.ranked-mode .rk-team-head > b {
    gap: calc(7 * var(--desktop-unit));
    font-size: calc(13 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-team-head > b > svg {
    width: calc(17 * var(--desktop-unit));
    height: calc(17 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-team .btn {
    min-height: calc(36 * var(--desktop-unit));
    height: auto;
    font: 800 calc(14 * var(--desktop-unit))/1.2 "Baloo 2";
    padding: calc(6 * var(--desktop-unit)) calc(9 * var(--desktop-unit));
    min-width: 0;
  }
  .festival-detail.ranked-mode .rk-team-members {
    gap: calc(8 * var(--desktop-unit));
    min-height: 0;
  }
  .festival-detail.ranked-mode .rk-team-member {
    min-width: 0;
    gap: calc(7 * var(--desktop-unit));
    font-size: calc(12 * var(--desktop-unit));
    padding: calc(7 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-team-code {
    gap: calc(8 * var(--desktop-unit));
    padding: calc(6 * var(--desktop-unit)) calc(9 * var(--desktop-unit));
    min-height: 0;
    font-size: calc(12 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-team-code > div {
    gap: calc(12 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-team-code small {
    font-size: calc(11 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-controls .btn-quick {
    margin-top: auto !important;
    min-height: calc(55 * var(--desktop-unit)) !important;
    height: auto !important;
    font: 800 calc(25 * var(--desktop-unit))/1.1 "Baloo 2";
    padding: calc(10 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-controls .rk-msg {
    font-size: calc(12 * var(--desktop-unit));
    margin: 0;
  }
  .festival-detail.ranked-mode .rk-identity .rk-lock5 {
    width: 100%;
    margin: 0;
    padding: calc(9 * var(--desktop-unit));
    gap: calc(7 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-identity .rk-lock5 > svg {
    width: calc(18 * var(--desktop-unit));
    height: calc(18 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-identity .rk-lock5 small {
    font-size: calc(11 * var(--desktop-unit));
    line-height: 1.25;
  }
  .festival-detail.ranked-mode .rk-identity .rk-lock5 .num {
    font-size: calc(11 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-identity:has(.rk-lock5) {
    gap: calc(9 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-leader-layout {
    min-height: 0;
    gap: calc(12 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-leader-empty {
    gap: calc(22 * var(--desktop-unit));
    min-height: 0;
  }
  .festival-detail.ranked-mode .rk-leader-empty > svg {
    width: calc(64 * var(--desktop-unit));
    height: calc(64 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-leader-empty > p {
    font: 800 calc(22 * var(--desktop-unit))/1.2 "Baloo 2";
    max-width: 55%;
    margin: 0;
  }
  .festival-detail.ranked-mode .rk-leader-layout .podium {
    gap: calc(14 * var(--desktop-unit));
    min-height: 0;
    max-height: 60%;
    height: auto;
    padding: calc(6 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-leader-layout .pd {
    max-width: 28%;
    min-height: 0;
    height: 100%;
  }
  .festival-detail.ranked-mode .rk-leader-layout .rk-right {
    min-height: 0;
    margin: 0 !important;
    height: auto !important;
  }
  .festival-detail.ranked-mode .rk-my-position {
    gap: calc(14 * var(--desktop-unit));
    border: calc(1 * var(--desktop-unit)) solid #d0ac7369;
    border-radius: calc(12 * var(--desktop-unit));
    padding: calc(11 * var(--desktop-unit)) calc(15 * var(--desktop-unit));
    min-height: calc(48 * var(--desktop-unit));
    font-size: calc(14 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-my-position .tier-chip > svg {
    width: calc(27 * var(--desktop-unit));
    height: calc(30 * var(--desktop-unit));
  }
  .festival-detail.ranked-mode .rk-my-position > strong {
    margin-left: auto;
  }
  @media (max-height: 600px) {
    main.menu.festival-detail.ranked-mode {
      grid-template-rows: calc(38 * var(--desktop-unit)) minmax(0, 1fr) calc(32 * var(--desktop-unit)) !important;
      gap: calc(6 * var(--desktop-unit)) !important;
      padding: calc(5 * var(--desktop-unit)) calc(14 * var(--desktop-unit)) !important;
    }
    .festival-detail.ranked-mode > #menu-panel {
      padding: calc(10 * var(--desktop-unit)) !important;
      border-radius: calc(17 * var(--desktop-unit)) !important;
    }
    .festival-detail.ranked-mode .rk-page {
      gap: calc(7 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-top {
      min-height: calc(27 * var(--desktop-unit));
      gap: calc(7 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-top > small {
      font-size: calc(10 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-top .btn {
      min-height: calc(27 * var(--desktop-unit));
      padding: calc(4 * var(--desktop-unit)) calc(8 * var(--desktop-unit));
      font-size: calc(11 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-top .icon-btn {
      width: calc(27 * var(--desktop-unit));
      height: calc(27 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-match-layout {
      grid-template-columns: minmax(calc(150 * var(--desktop-unit)), .65fr) minmax(0, 1.65fr);
      gap: calc(12 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-identity {
      padding: calc(9 * var(--desktop-unit));
      gap: calc(7 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-large-crest {
      width: calc(68 * var(--desktop-unit));
      height: calc(77 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-identity h3 {
      font-size: calc(23 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-identity > strong {
      font-size: calc(22 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-identity > small,
    .festival-detail.ranked-mode .rk-identity > p {
      font-size: calc(11 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-identity > .btn {
      min-height: calc(28 * var(--desktop-unit));
      padding: calc(5 * var(--desktop-unit)) calc(9 * var(--desktop-unit));
      font-size: calc(11 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-controls > .rk-me {
      gap: calc(8 * var(--desktop-unit));
      padding: calc(4 * var(--desktop-unit)) !important;
    }
    .festival-detail.ranked-mode .rk-modes {
      gap: calc(7 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-modes > button {
      min-height: calc(40 * var(--desktop-unit));
      padding: calc(7 * var(--desktop-unit));
      font-size: calc(17 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-team {
      gap: calc(6 * var(--desktop-unit));
      padding: calc(8 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-partner-choice > button {
      min-height: calc(30 * var(--desktop-unit));
      padding: calc(4 * var(--desktop-unit)) calc(6 * var(--desktop-unit));
      font-size: calc(11 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-team .btn {
      min-height: calc(29 * var(--desktop-unit));
      font-size: calc(12 * var(--desktop-unit));
      padding: calc(4 * var(--desktop-unit)) calc(8 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-team-head > b {
      font-size: calc(11 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-team-members {
      gap: calc(5 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-team-member {
      padding: calc(4 * var(--desktop-unit));
      font-size: calc(11 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-team-code {
      padding: calc(3 * var(--desktop-unit)) calc(6 * var(--desktop-unit));
      font-size: calc(11 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-controls .btn-quick {
      min-height: calc(39 * var(--desktop-unit)) !important;
      padding: calc(7 * var(--desktop-unit));
      font-size: calc(20 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-identity:has(.rk-lock5) .rk-large-crest {
      width: calc(47 * var(--desktop-unit));
      height: calc(53 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-identity:has(.rk-lock5) h3 {
      font-size: calc(19 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-identity .rk-lock5 {
      padding: calc(5 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-identity .rk-lock5 b {
      font-size: calc(11 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-identity .rk-lock5 small {
      font-size: calc(10 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-my-position {
      min-height: calc(35 * var(--desktop-unit));
      padding: calc(5 * var(--desktop-unit)) calc(10 * var(--desktop-unit));
      font-size: calc(12 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-leader-empty > p {
      font-size: calc(19 * var(--desktop-unit));
    }
  }
  @media (max-height: 360px) {
    .festival-detail.ranked-mode .rk-modes > button {
      min-height: calc(31 * var(--desktop-unit));
      font-size: calc(14 * var(--desktop-unit));
      padding: calc(4 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-team {
      padding: calc(5 * var(--desktop-unit));
      gap: calc(5 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-partner-choice > button {
      min-height: calc(27 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-team .btn {
      min-height: calc(27 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-controls > .rk-me {
      gap: calc(6 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-identity {
      gap: calc(5 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-large-crest {
      width: calc(55 * var(--desktop-unit));
      height: calc(62 * var(--desktop-unit));
    }
  }
  main.menu.festival-detail.shop-preview-mode {
    grid-template-columns: minmax(calc(170 * var(--desktop-unit)), .58fr) minmax(0, 1.65fr) !important;
    grid-template-rows: calc(50 * var(--desktop-unit)) minmax(0, 1fr) calc(40 * var(--desktop-unit)) !important;
    gap: calc(12 * var(--desktop-unit)) calc(20 * var(--desktop-unit)) !important;
    padding: calc(12 * var(--desktop-unit)) calc(24 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.shop-preview-mode > .festival-detail-header {
    min-height: 0;
  }
  main.menu.festival-detail.shop-preview-mode > .hero {
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    width: 100% !important;
    min-width: 0 !important;
    border: calc(1 * var(--desktop-unit)) solid #9aa9c13d;
    border-radius: calc(20 * var(--desktop-unit));
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    gap: calc(14 * var(--desktop-unit)) !important;
    padding: calc(20 * var(--desktop-unit)) !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: calc(1 * var(--desktop-unit)) solid #9ba7c16e !important;
    border-radius: calc(20 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel > .inventory-heading {
    gap: calc(9 * var(--desktop-unit));
    margin: 0 !important;
    min-height: calc(32 * var(--desktop-unit));
  }
  .festival-detail .inventory-heading h2 {
    font: 800 calc(23 * var(--desktop-unit))/1 "Baloo 2";
    margin: 0;
  }
  .festival-detail .inventory-heading .btn {
    font-size: calc(12 * var(--desktop-unit));
    min-height: calc(31 * var(--desktop-unit));
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel.shop > .jeton {
    gap: calc(5 * var(--desktop-unit));
    min-height: calc(34 * var(--desktop-unit));
    height: auto;
    margin: 0 !important;
    padding: calc(3 * var(--desktop-unit)) calc(8 * var(--desktop-unit)) !important;
    border-radius: calc(10 * var(--desktop-unit));
  }
  .festival-detail .shop > .jeton b {
    font-size: calc(20 * var(--desktop-unit));
  }
  .festival-detail .shop > .jeton > span {
    font-size: calc(11 * var(--desktop-unit));
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel.shop > .premium-card {
    min-height: calc(32 * var(--desktop-unit)) !important;
    margin: 0 !important;
    border: calc(1 * var(--desktop-unit)) solid #bda56b;
    border-radius: calc(10 * var(--desktop-unit));
    min-width: 0 !important;
  }
  .festival-detail .shop .premium-summary {
    padding: calc(8 * var(--desktop-unit)) calc(12 * var(--desktop-unit));
    min-height: calc(32 * var(--desktop-unit));
    gap: calc(6 * var(--desktop-unit));
  }
  .festival-detail .shop .premium-summary b {
    font: 800 calc(15 * var(--desktop-unit))/1.1 "Baloo 2";
  }
  .festival-detail .shop .premium-chevron {
    font-size: calc(17 * var(--desktop-unit));
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel.shop > .premium-card[open] {
    top: calc(12 * var(--desktop-unit));
    left: calc(12 * var(--desktop-unit));
    right: calc(12 * var(--desktop-unit));
    max-height: calc(100% - calc(24 * var(--desktop-unit)));
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel.shop:has(.premium-card[open]) {
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  }
  .festival-detail .shop .premium-content {
    gap: calc(12 * var(--desktop-unit));
    padding: calc(6 * var(--desktop-unit)) calc(14 * var(--desktop-unit)) calc(15 * var(--desktop-unit));
  }
  .festival-detail .shop .premium-content .btn {
    min-height: calc(42 * var(--desktop-unit)) !important;
    font-size: calc(14 * var(--desktop-unit)) !important;
  }
  .festival-detail .shop .premium-content .premium-copy > small {
    font-size: calc(13 * var(--desktop-unit)) !important;
    line-height: 1.4;
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel > .stabs {
    gap: calc(7 * var(--desktop-unit)) !important;
    margin: 0 !important;
    padding: calc(3 * var(--desktop-unit)) !important;
    border-radius: calc(12 * var(--desktop-unit));
  }
  .festival-detail #menu-panel > .stabs > button {
    min-width: 0 !important;
    min-height: calc(36 * var(--desktop-unit)) !important;
    padding: calc(6 * var(--desktop-unit)) calc(10 * var(--desktop-unit)) !important;
    font: 800 calc(16 * var(--desktop-unit))/1.1 "Baloo 2" !important;
    border-radius: calc(9 * var(--desktop-unit)) !important;
  }
  .festival-detail .inventory-tabs small {
    font-size: calc(10 * var(--desktop-unit));
    margin-left: calc(5 * var(--desktop-unit));
  }
  .festival-detail .catalog-pagination {
    gap: calc(8 * var(--desktop-unit));
    min-height: calc(32 * var(--desktop-unit));
    font: 800 calc(12 * var(--desktop-unit)) Nunito;
  }
  .festival-detail .catalog-pagination > button {
    min-width: calc(32 * var(--desktop-unit));
    min-height: calc(32 * var(--desktop-unit));
    padding: calc(1 * var(--desktop-unit)) calc(9 * var(--desktop-unit));
    border: calc(1 * var(--desktop-unit)) solid #8f93ac80;
    border-radius: calc(9 * var(--desktop-unit));
    font: 800 calc(22 * var(--desktop-unit))/1 "Baloo 2";
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) > :is(.sgrid, .inventory-items) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    gap: calc(12 * var(--desktop-unit)) !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    padding: 0 !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) auto auto !important;
    min-height: 0 !important;
    height: 100% !important;
    min-width: 0 !important;
    padding: calc(10 * var(--desktop-unit)) calc(7 * var(--desktop-unit)) !important;
    gap: calc(5 * var(--desktop-unit)) !important;
    border: calc(1 * var(--desktop-unit)) solid #8d8dab75 !important;
    border-bottom: calc(3 * var(--desktop-unit)) solid #142238 !important;
    border-radius: calc(16 * var(--desktop-unit)) !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(.sth, i) {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: calc(150 * var(--desktop-unit)) !important;
    min-width: 0 !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) :is(.sth, i) > :is(img, svg) {
    width: 100% !important;
    height: 100% !important;
    max-width: calc(150 * var(--desktop-unit)) !important;
    max-height: calc(150 * var(--desktop-unit)) !important;
    min-height: 0 !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > b {
    font: 800 calc(17 * var(--desktop-unit))/1.1 "Baloo 2" !important;
  }
  .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(em, small) {
    font: 800 calc(11 * var(--desktop-unit))/1.2 Nunito !important;
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel > .spv,
  main.menu.festival-detail.shop-preview-mode #menu-panel > .inventory-selection {
    gap: calc(12 * var(--desktop-unit));
    padding: calc(10 * var(--desktop-unit)) 0 0 !important;
    min-height: calc(58 * var(--desktop-unit));
    max-height: none;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-top: calc(1 * var(--desktop-unit)) solid #9ca9c14d !important;
    border-radius: 0 !important;
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel .spv > :is(.spvimg, .spvsvg),
  .festival-detail .inventory-selected-thumb {
    width: calc(43 * var(--desktop-unit)) !important;
    height: calc(43 * var(--desktop-unit)) !important;
  }
  .festival-detail .inventory-selected-thumb > img,
  .festival-detail .inventory-selected-thumb > svg {
    width: 100% !important;
    height: 100% !important;
  }
  main.menu.festival-detail.shop-preview-mode #menu-panel .spvinfo {
    min-width: 0;
    gap: calc(12 * var(--desktop-unit)) !important;
  }
  .festival-detail .shop-selection-title > b,
  .festival-detail .inventory-selected-name > b {
    font: 800 calc(20 * var(--desktop-unit))/1.1 "Baloo 2" !important;
  }
  .festival-detail .inventory-selected-name > small {
    font-size: calc(11 * var(--desktop-unit));
  }
  .festival-detail .shop .sact {
    min-width: calc(140 * var(--desktop-unit)) !important;
    max-width: 55%;
    gap: calc(3 * var(--desktop-unit)) !important;
  }
  .festival-detail .shop .sact > .btn,
  .festival-detail .inventory-selection > .btn {
    min-height: calc(40 * var(--desktop-unit)) !important;
    width: auto !important;
    min-width: calc(140 * var(--desktop-unit));
    padding: calc(7 * var(--desktop-unit)) calc(13 * var(--desktop-unit)) !important;
    font: 800 calc(17 * var(--desktop-unit))/1.1 "Baloo 2" !important;
    border-radius: calc(11 * var(--desktop-unit)) !important;
  }
  .festival-detail .shop .sact > .need {
    font-size: calc(10 * var(--desktop-unit)) !important;
    line-height: 1.15;
  }
  .shop-live-hero > .shop-world-preview {
    inset: 0;
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  .catalog-preview-art {
    inset: 6% 4% 14%;
  }
  .catalog-preview-art > canvas {
    width: 100% !important;
    height: 100% !important;
  }
  .catalog-preview-art > img {
    max-width: 94%;
    max-height: 90%;
    width: 100%;
    height: 100%;
  }
  .catalog-preview-stage {
    bottom: 12%;
    left: 8%;
    width: 84%;
    height: 10%;
    border-radius: 50%;
  }
  .festival-detail .inventory-pawn-stage {
    inset: 5% 0 25%;
    min-height: 0 !important;
  }
  .festival-detail .inventory-pawn {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  .festival-detail .inventory-pawn > canvas {
    width: 100% !important;
    height: 100% !important;
  }
  .festival-detail .inventory-loadout {
    inset: auto calc(9 * var(--desktop-unit)) calc(15 * var(--desktop-unit));
    gap: calc(7 * var(--desktop-unit)) !important;
  }
  .festival-detail .inventory-loadout-slot {
    min-width: 0 !important;
    gap: calc(5 * var(--desktop-unit)) !important;
    padding: calc(7 * var(--desktop-unit)) calc(3 * var(--desktop-unit)) !important;
  }
  .festival-detail .inventory-loadout-slot > i {
    width: calc(37 * var(--desktop-unit));
    height: calc(37 * var(--desktop-unit));
  }
  .festival-detail .inventory-loadout-slot > i > img,
  .festival-detail .inventory-loadout-slot > i > svg {
    width: 100%;
    height: 100%;
  }
  .festival-detail .inventory-loadout-slot small {
    font-size: calc(11 * var(--desktop-unit));
  }
  @media (max-width: 1099px), (orientation: portrait) {
    main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) > :is(.sgrid, .inventory-items) {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
  }
  @media (max-height: 600px) {
    main.menu.festival-detail.shop-preview-mode {
      grid-template-columns: minmax(calc(145 * var(--desktop-unit)), .52fr) minmax(0, 1.8fr) !important;
      grid-template-rows: calc(38 * var(--desktop-unit)) minmax(0, 1fr) calc(32 * var(--desktop-unit)) !important;
      gap: calc(7 * var(--desktop-unit)) calc(12 * var(--desktop-unit)) !important;
      padding: calc(5 * var(--desktop-unit)) calc(14 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) {
      padding: calc(10 * var(--desktop-unit)) !important;
      gap: calc(7 * var(--desktop-unit)) !important;
      border-radius: calc(16 * var(--desktop-unit)) !important;
    }
    .festival-detail #menu-panel > .stabs > button {
      min-height: calc(29 * var(--desktop-unit)) !important;
      padding: calc(4 * var(--desktop-unit)) calc(7 * var(--desktop-unit)) !important;
      font-size: calc(13 * var(--desktop-unit)) !important;
    }
    .festival-detail .shop .premium-summary {
      padding: calc(5 * var(--desktop-unit)) calc(9 * var(--desktop-unit));
      min-height: calc(29 * var(--desktop-unit));
    }
    .festival-detail .shop .premium-summary b {
      font-size: calc(13 * var(--desktop-unit));
    }
    .festival-detail .catalog-pagination {
      gap: calc(5 * var(--desktop-unit));
      font-size: calc(11 * var(--desktop-unit));
    }
    .festival-detail .catalog-pagination > button {
      min-width: calc(28 * var(--desktop-unit));
      min-height: calc(28 * var(--desktop-unit));
      font-size: calc(20 * var(--desktop-unit));
    }
    .festival-detail .inventory-heading h2 {
      font-size: calc(18 * var(--desktop-unit));
    }
    .festival-detail .inventory-heading .btn {
      min-height: calc(28 * var(--desktop-unit));
      padding: calc(4 * var(--desktop-unit)) calc(8 * var(--desktop-unit));
      font-size: calc(11 * var(--desktop-unit));
    }
    .festival-detail .shop > .jeton b {
      font-size: calc(16 * var(--desktop-unit));
    }
    .festival-detail .shop > .jeton .coin {
      width: calc(20 * var(--desktop-unit)) !important;
      height: calc(20 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.shop-preview-mode #menu-panel.shop > .jeton {
      min-height: calc(29 * var(--desktop-unit));
    }
    main.menu.festival-detail.shop-preview-mode #menu-panel.shop > .premium-card {
      min-height: calc(29 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) > :is(.sgrid, .inventory-items) {
      gap: calc(7 * var(--desktop-unit)) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) {
      padding: calc(5 * var(--desktop-unit)) calc(5 * var(--desktop-unit)) calc(6 * var(--desktop-unit)) !important;
      gap: calc(2 * var(--desktop-unit)) !important;
      border-radius: calc(10 * var(--desktop-unit)) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > b {
      font-size: calc(13 * var(--desktop-unit)) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(em, small) {
      font-size: calc(10 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.shop-preview-mode #menu-panel > .spv,
    main.menu.festival-detail.shop-preview-mode #menu-panel > .inventory-selection {
      min-height: calc(43 * var(--desktop-unit)) !important;
      gap: calc(8 * var(--desktop-unit));
      padding-top: calc(6 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.shop-preview-mode #menu-panel .spv > :is(.spvimg, .spvsvg),
    .festival-detail .inventory-selected-thumb {
      width: calc(32 * var(--desktop-unit)) !important;
      height: calc(32 * var(--desktop-unit)) !important;
    }
    .festival-detail .shop-selection-title > b,
    .festival-detail .inventory-selected-name > b {
      font-size: calc(16 * var(--desktop-unit)) !important;
    }
    .festival-detail .shop .sact {
      min-width: calc(113 * var(--desktop-unit)) !important;
    }
    .festival-detail .shop .sact > .btn,
    .festival-detail .inventory-selection > .btn {
      min-height: calc(32 * var(--desktop-unit)) !important;
      min-width: calc(113 * var(--desktop-unit));
      padding: calc(5 * var(--desktop-unit)) calc(9 * var(--desktop-unit)) !important;
      font-size: calc(14 * var(--desktop-unit)) !important;
    }
    .festival-detail .inventory-loadout {
      gap: calc(5 * var(--desktop-unit)) !important;
      bottom: calc(10 * var(--desktop-unit));
    }
    .festival-detail .inventory-loadout-slot > i {
      width: calc(27 * var(--desktop-unit));
      height: calc(27 * var(--desktop-unit));
    }
    .festival-detail .inventory-loadout-slot small {
      font-size: calc(10 * var(--desktop-unit));
    }
  }
  @media (max-width: 660px) {
    main.menu.festival-detail.shop-preview-mode {
      grid-template-columns: minmax(calc(125 * var(--desktop-unit)), .55fr) minmax(0, 1.75fr) !important;
      gap: calc(6 * var(--desktop-unit)) calc(8 * var(--desktop-unit)) !important;
      padding-inline: calc(10 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) > :is(.sgrid, .inventory-items) {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    main.menu.festival-detail.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) {
      gap: calc(6 * var(--desktop-unit)) !important;
      padding: calc(8 * var(--desktop-unit)) !important;
    }
    .festival-detail .inventory-heading {
      gap: calc(5 * var(--desktop-unit));
    }
    .festival-detail .inventory-heading h2 {
      font-size: calc(16 * var(--desktop-unit));
    }
    .festival-detail .inventory-heading .btn {
      font-size: calc(10 * var(--desktop-unit));
      padding: calc(4 * var(--desktop-unit)) calc(6 * var(--desktop-unit));
    }
    .festival-detail #menu-panel > .stabs > button {
      font-size: calc(11 * var(--desktop-unit)) !important;
      padding-inline: calc(5 * var(--desktop-unit)) !important;
    }
    .festival-detail .shop .premium-summary b {
      font-size: calc(12 * var(--desktop-unit));
    }
    .festival-detail .shop .sact {
      min-width: calc(103 * var(--desktop-unit)) !important;
    }
    .festival-detail .shop .sact > .btn,
    .festival-detail .inventory-selection > .btn {
      min-width: calc(103 * var(--desktop-unit));
      font-size: calc(12 * var(--desktop-unit)) !important;
    }
    .festival-detail .shop-selection-title > b,
    .festival-detail .inventory-selected-name > b {
      font-size: calc(14 * var(--desktop-unit)) !important;
    }
  }
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode {
    grid-template-columns: minmax(calc(170 * var(--desktop-unit)), .58fr) minmax(0, 1.65fr) !important;
  }
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: calc(14 * var(--desktop-unit));
  }
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header > .festival-section-title {
    font-size: calc(27 * var(--desktop-unit));
  }
  .catalog-header-tools {
    gap: calc(10 * var(--desktop-unit));
    min-width: 0;
  }
  .catalog-header-tools > .premium-card {
    min-width: calc(145 * var(--desktop-unit));
    max-width: calc(240 * var(--desktop-unit));
    min-height: calc(36 * var(--desktop-unit));
    padding: 0;
    border: calc(1 * var(--desktop-unit)) solid #b8a06d;
    border-radius: calc(11 * var(--desktop-unit));
  }
  .catalog-header-tools .premium-summary {
    min-height: calc(36 * var(--desktop-unit));
    gap: calc(10 * var(--desktop-unit));
    padding: calc(7 * var(--desktop-unit)) calc(12 * var(--desktop-unit));
  }
  .catalog-header-tools .premium-summary b {
    font: 800 calc(16 * var(--desktop-unit))/1.1 "Baloo 2";
  }
  .catalog-header-tools .premium-card[open] > .premium-content {
    top: calc(100% + calc(9 * var(--desktop-unit)));
    right: 0;
    width: min(calc(450 * var(--desktop-unit)), calc(1632 * var(--desktop-unit)));
    max-height: calc(756 * var(--desktop-unit));
    border: calc(1 * var(--desktop-unit)) solid #b8a06d;
    border-radius: calc(15 * var(--desktop-unit));
    padding: calc(17 * var(--desktop-unit));
    gap: calc(14 * var(--desktop-unit));
  }
  .catalog-header-tools .premium-copy > small {
    font: 800 calc(13 * var(--desktop-unit))/1.4 Nunito;
  }
  .catalog-header-tools .premium-actions {
    grid-template-columns: 1fr 1fr;
    gap: calc(9 * var(--desktop-unit));
  }
  .catalog-header-tools .premium-content .btn {
    font-size: calc(14 * var(--desktop-unit));
    min-height: calc(39 * var(--desktop-unit));
  }
  .catalog-header-tools .premium-policy-link {
    font: 800 calc(11 * var(--desktop-unit)) Nunito;
  }
  .catalog-header-tools > .catalog-header-wallet {
    gap: calc(5 * var(--desktop-unit));
    min-height: calc(36 * var(--desktop-unit));
    margin: 0 !important;
    padding: calc(5 * var(--desktop-unit)) calc(10 * var(--desktop-unit));
    border: calc(1 * var(--desktop-unit)) solid #92a2bd80;
    border-radius: calc(11 * var(--desktop-unit));
    font: 800 calc(21 * var(--desktop-unit))/1 "Baloo 2";
  }
  .catalog-header-tools > .catalog-header-wallet > .coin {
    width: calc(24 * var(--desktop-unit));
    height: calc(24 * var(--desktop-unit));
  }
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode #menu-panel:is(.shop, .inventory-panel) {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
  }
  .catalog-preview-art {
    inset: auto !important;
    top: 50% !important;
    left: 4% !important;
    width: 92% !important;
    height: auto !important;
    max-height: 86%;
    transform: translateY(-50%);
  }
  .catalog-preview-art > .catalog-preview-stage {
    inset: auto 8% 3%;
    width: auto;
    height: 10%;
  }
  .festival-detail .inventory-pawn-stage {
    inset: auto !important;
    top: 45% !important;
    left: 4% !important;
    width: 92% !important;
    height: auto !important;
    max-height: 70%;
    transform: translateY(-50%);
  }
  .festival-detail .inventory-pawn-stage .inventory-platform {
    bottom: 2% !important;
    height: 10% !important;
    width: 84% !important;
    left: 8% !important;
  }
  @media (max-height: 600px) {
    main.menu.festival-detail.shop-preview-mode.shop-preview-mode {
      grid-template-columns: minmax(calc(145 * var(--desktop-unit)), .52fr) minmax(0, 1.8fr) !important;
    }
    main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header {
      gap: calc(10 * var(--desktop-unit));
    }
    .catalog-header-tools {
      gap: calc(7 * var(--desktop-unit));
    }
    .catalog-header-tools > .premium-card {
      min-width: calc(118 * var(--desktop-unit));
      min-height: calc(29 * var(--desktop-unit));
    }
    .catalog-header-tools .premium-summary {
      min-height: calc(29 * var(--desktop-unit));
      padding: calc(5 * var(--desktop-unit)) calc(9 * var(--desktop-unit));
      gap: calc(6 * var(--desktop-unit));
    }
    .catalog-header-tools .premium-summary b {
      font-size: calc(13 * var(--desktop-unit));
    }
    .catalog-header-tools > .catalog-header-wallet {
      min-height: calc(29 * var(--desktop-unit));
      padding: calc(3 * var(--desktop-unit)) calc(7 * var(--desktop-unit));
      font-size: calc(17 * var(--desktop-unit));
    }
    .catalog-header-tools > .catalog-header-wallet > .coin {
      width: calc(21 * var(--desktop-unit));
      height: calc(21 * var(--desktop-unit));
    }
    main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header > .festival-section-title {
      font-size: calc(21 * var(--desktop-unit));
    }
    .festival-detail-footer .menu-legal {
      font-size: calc(10 * var(--desktop-unit)) !important;
    }
  }
  @media (max-width: 660px) {
    main.menu.festival-detail.shop-preview-mode.shop-preview-mode {
      grid-template-columns: minmax(calc(125 * var(--desktop-unit)), .55fr) minmax(0, 1.75fr) !important;
    }
    main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header {
      gap: calc(8 * var(--desktop-unit));
    }
    .catalog-header-tools {
      gap: calc(6 * var(--desktop-unit));
    }
    .catalog-header-tools > .premium-card {
      min-width: calc(106 * var(--desktop-unit));
    }
    .catalog-header-tools .premium-summary {
      padding: calc(5 * var(--desktop-unit)) calc(7 * var(--desktop-unit));
    }
    .catalog-header-tools .premium-summary b {
      font-size: calc(12 * var(--desktop-unit));
    }
    main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header > .festival-section-title {
      font-size: calc(19 * var(--desktop-unit));
    }
    .catalog-header-tools > .icon-btn {
      width: calc(32 * var(--desktop-unit));
      height: calc(32 * var(--desktop-unit));
    }
    .festival-front .character-lobby .menu-legal {
      font-size: calc(10 * var(--desktop-unit));
    }
  }
  @media (max-height: 360px) {
    .festival-detail.ranked-mode .rk-controls > .rk-me {
      gap: calc(4 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-team {
      gap: calc(4 * var(--desktop-unit));
    }
    .festival-detail.ranked-mode .rk-controls .btn-quick {
      min-height: calc(35 * var(--desktop-unit)) !important;
    }
  }
  @media (max-height: 360px) {
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) {
      grid-template-columns: calc(42 * var(--desktop-unit)) minmax(0, 1fr) !important;
      grid-template-rows: 1fr 1fr !important;
      column-gap: calc(7 * var(--desktop-unit)) !important;
      row-gap: calc(1 * var(--desktop-unit)) !important;
      padding: calc(5 * var(--desktop-unit)) calc(6 * var(--desktop-unit)) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(.sth, i) {
      min-height: calc(32 * var(--desktop-unit)) !important;
      max-height: 100% !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > b {
      font-size: calc(13 * var(--desktop-unit)) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(em, small) {
      font-size: calc(10 * var(--desktop-unit)) !important;
    }
  }
  .festival-detail.inventory-mode .inventory-loadout {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    left: calc(6 * var(--desktop-unit));
    right: calc(6 * var(--desktop-unit));
    gap: calc(4 * var(--desktop-unit)) !important;
  }
  .festival-detail.inventory-mode .inventory-loadout-slot {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: calc(6 * var(--desktop-unit)) calc(2 * var(--desktop-unit)) !important;
  }
  .festival-detail.inventory-mode .inventory-pawn-stage {
    top: 38% !important;
    max-height: 60% !important;
  }
  .festival-front .character-lobby .lobby-tile > span {
    max-width: 100%;
  }
  .festival-front .character-lobby .lobby-room > span {
    min-width: 0;
  }
  @media (min-width: 600px) and (orientation: portrait) {
    main.menu.festival-detail.shop-preview-mode.shop-preview-mode {
      grid-template-columns: minmax(0, 1fr) !important;
    }
  }
  .festival-detail #menu-panel > .stabs {
    gap: calc(8 * var(--desktop-unit)) !important;
  }
  @media (orientation: landscape) and (max-width: 900px) and (max-height: 600px) {
    .festival-detail.inventory-mode .inventory-loadout {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: calc(5 * var(--desktop-unit)) !important;
      left: calc(8 * var(--desktop-unit)) !important;
      right: calc(8 * var(--desktop-unit)) !important;
      bottom: calc(9 * var(--desktop-unit)) !important;
    }
    .festival-detail.inventory-mode .inventory-loadout-slot {
      gap: calc(9 * var(--desktop-unit)) !important;
      width: 100% !important;
      min-width: 0 !important;
      min-height: calc(30 * var(--desktop-unit)) !important;
      height: auto !important;
      padding: calc(4 * var(--desktop-unit)) calc(9 * var(--desktop-unit)) !important;
      border-radius: calc(9 * var(--desktop-unit)) !important;
    }
    .festival-detail.inventory-mode .inventory-loadout-slot > i {
      width: calc(24 * var(--desktop-unit)) !important;
      height: calc(24 * var(--desktop-unit)) !important;
    }
    .festival-detail.inventory-mode .inventory-loadout-slot > span {
      min-width: 0 !important;
    }
    .festival-detail.inventory-mode .inventory-loadout-slot small {
      font: 800 calc(12 * var(--desktop-unit))/1.15 Nunito !important;
    }
    .festival-detail.inventory-mode .inventory-pawn-stage {
      top: 26% !important;
      height: 48% !important;
      max-height: 48% !important;
      width: 92% !important;
      left: 4% !important;
    }
    .festival-detail #menu-panel > .stabs > button {
      font-size: calc(13 * var(--desktop-unit)) !important;
      min-height: calc(31 * var(--desktop-unit)) !important;
    }
  }
  @media (max-width: 660px) {
    .festival-detail #menu-panel > .stabs {
      gap: calc(6 * var(--desktop-unit)) !important;
    }
    .festival-detail #menu-panel > .stabs > button {
      font-size: calc(12 * var(--desktop-unit)) !important;
    }
  }
  main.festival-menu {
    min-height: 0 !important;
    height: var(--visible-height,calc(1080 * var(--desktop-unit))) !important;
    inset: var(--visible-top,0) 0 auto !important;
    --ui-scale:clamp(calc(1 * var(--desktop-unit)),min(calc(1.33344 * var(--desktop-unit)),calc(1.200096 * var(--desktop-unit))),calc(1.7 * var(--desktop-unit)));
  }
  main.festival-menu :is(.btn-dark, .soc-btn, .lobby-tile, .lobby-room, .lobby-training, .lobby-icon, .lobby-wallet) {
    border-bottom: calc(4 * var(--desktop-unit)) solid #1c1933 !important;
  }
  main.festival-menu .btn-gold {
    border-bottom: calc(4 * var(--desktop-unit)) solid #bb812b !important;
  }
  .festival-front .character-lobby .lobby-cartoon-smoke {
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .lobby-scenery > .lobby-castle-animated {
    left: 32%;
    top: 8%;
    width: 58%;
    height: 62%;
  }
  @media (min-width: 1100px) and (min-height: 620px) {
    .festival-front .character-lobby .lobby-body {
      top: calc(92 * var(--ui-scale));
      bottom: calc(67 * var(--ui-scale));
      left: 50%;
      right: auto;
      width: min(96%, calc(2100 * var(--desktop-unit)));
      transform: translateX(-50%);
    }
    .festival-front .character-lobby .lobby-nav {
      left: 0;
      top: 15%;
      width: 23%;
      max-width: calc(360 * var(--desktop-unit));
      gap: calc(13 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-tile {
      height: calc(112 * var(--ui-scale));
      font-size: calc(20 * var(--ui-scale));
      border-radius: calc(17 * var(--ui-scale));
      gap: calc(7 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-nav-art {
      width: calc(40 * var(--ui-scale));
      height: calc(40 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-tile > svg {
      width: calc(38 * var(--ui-scale)) !important;
      height: calc(38 * var(--ui-scale)) !important;
    }
    .festival-front .character-lobby .lobby-training {
      min-height: calc(49 * var(--ui-scale));
      font-size: calc(18 * var(--ui-scale));
      padding: calc(8 * var(--ui-scale)) calc(13 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-private {
      right: 0;
      top: 21%;
      width: 22%;
      max-width: calc(340 * var(--desktop-unit));
      gap: calc(13 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-room {
      min-height: calc(64 * var(--ui-scale));
      font-size: calc(23 * var(--ui-scale));
      padding: calc(10 * var(--ui-scale)) calc(15 * var(--ui-scale));
      gap: calc(10 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-room-heading {
      font-size: calc(15 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-room > svg {
      width: calc(27 * var(--ui-scale)) !important;
      height: calc(27 * var(--ui-scale)) !important;
    }
    .festival-front .character-lobby .lobby-hero {
      inset: 2% 24% 23% 24%;
    }
    .festival-front .character-lobby .lobby-costume.festival-costume {
      font-size: calc(17 * var(--ui-scale));
      min-height: calc(35 * var(--ui-scale));
      padding: calc(5 * var(--ui-scale)) calc(14 * var(--ui-scale)) !important;
    }
    .festival-front .character-lobby .lobby-actions {
      left: 25%;
      right: 0;
      bottom: 2%;
      padding: calc(10 * var(--ui-scale));
      gap: calc(14 * var(--ui-scale));
      border-radius: calc(21 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-play {
      min-height: calc(90 * var(--ui-scale));
      font-size: calc(46 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-ranked {
      gap: calc(13 * var(--ui-scale));
      padding: calc(10 * var(--ui-scale)) calc(15 * var(--ui-scale));
      border-bottom: calc(4 * var(--desktop-unit)) solid #211a33;
    }
    .festival-front .character-lobby .lobby-ranked b {
      font-size: calc(30 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-ranked small {
      font-size: calc(14 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-ranked > .menu-rank-crest {
      width: calc(46 * var(--ui-scale)) !important;
      height: calc(56 * var(--ui-scale)) !important;
    }
    .festival-front .character-lobby .lobby-account {
      top: calc(15 * var(--ui-scale));
      left: calc(24 * var(--ui-scale));
      max-width: calc(325 * var(--ui-scale));
    }
    .festival-front .character-lobby .acct-chip {
      min-height: calc(61 * var(--ui-scale));
      font-size: calc(23 * var(--ui-scale));
      padding: calc(6 * var(--ui-scale)) calc(13 * var(--ui-scale)) !important;
      gap: calc(4 * var(--ui-scale)) calc(10 * var(--ui-scale)) !important;
    }
    .festival-front .character-lobby .acct-chip .chip-av {
      width: calc(46 * var(--ui-scale)) !important;
      height: calc(46 * var(--ui-scale)) !important;
    }
    .festival-front .character-lobby .acct-chip .tier-chip {
      font-size: calc(14 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-tools {
      top: calc(18 * var(--ui-scale));
      right: calc(24 * var(--ui-scale));
      gap: calc(12 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-wallet,
    .festival-front .character-lobby .lobby-icon {
      min-height: calc(48 * var(--ui-scale));
      font-size: calc(23 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-icon {
      width: calc(48 * var(--ui-scale));
    }
    .festival-front .character-lobby .lobby-icon > svg {
      width: calc(26 * var(--ui-scale)) !important;
      height: calc(26 * var(--ui-scale)) !important;
    }
    .festival-front .character-lobby .lobby-icon > small {
      font-size: calc(10 * var(--ui-scale));
    }
  }
  .festival-front .character-lobby .lobby-footer.festival-footer,
  .festival-detail > .festival-detail-footer {
    gap: calc(28 * var(--ui-scale)) !important;
    min-height: calc(58 * var(--ui-scale)) !important;
    height: calc(58 * var(--ui-scale)) !important;
    padding: calc(6 * var(--ui-scale)) calc(20 * var(--ui-scale)) !important;
    border-top: calc(1 * var(--desktop-unit)) solid #b6aed649 !important;
    border-radius: 0 !important;
  }
  .festival-menu .festival-social-slot .menu-social {
    gap: calc(16 * var(--ui-scale)) !important;
  }
  .festival-menu .festival-social-slot .soc-btn {
    min-height: calc(42 * var(--ui-scale)) !important;
    font: 800 calc(16 * var(--ui-scale))/1.1 "Baloo 2", Nunito !important;
    padding: calc(7 * var(--ui-scale)) calc(14 * var(--ui-scale)) !important;
    border: calc(1 * var(--desktop-unit)) solid #b7b9d6 !important;
    border-bottom: calc(4 * var(--desktop-unit)) solid #201b3e !important;
    border-radius: calc(12 * var(--desktop-unit)) !important;
    gap: calc(9 * var(--ui-scale)) !important;
  }
  .festival-menu .festival-social-slot .soc-btn > img,
  .festival-menu .festival-social-slot .soc-btn > svg {
    width: calc(22 * var(--ui-scale)) !important;
    height: calc(21 * var(--ui-scale)) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  .festival-menu .festival-footer .menu-legal {
    margin: 0 0 0 auto !important;
    max-width: none !important;
    gap: calc(18 * var(--ui-scale)) !important;
    font: 800 calc(13 * var(--ui-scale))/1.2 Nunito !important;
  }
  .festival-menu .festival-footer .festival-version {
    font: 800 calc(11 * var(--ui-scale))/1 Nunito !important;
  }
  .festival-front .character-lobby .lobby-body {
    bottom: calc(65 * var(--ui-scale));
  }
  .festival-detail.shop-preview-mode.shop-preview-mode,
  .festival-detail.ranked-mode {
    grid-template-rows: calc(52 * var(--ui-scale)) minmax(0, 1fr) calc(58 * var(--ui-scale)) !important;
    row-gap: calc(12 * var(--ui-scale)) !important;
  }
  .festival-detail > .festival-detail-footer {
    padding-inline: calc(12 * var(--ui-scale)) !important;
    border-radius: calc(12 * var(--desktop-unit)) !important;
  }
  .festival-menu[data-menu-state=searching],
  .festival-menu[data-menu-state=connecting] {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: calc(58 * var(--ui-scale)) minmax(0, 1fr) !important;
    row-gap: calc(15 * var(--desktop-unit)) !important;
  }
  .festival-menu:is([data-menu-state=searching], [data-menu-state=connecting]) > #menu-panel {
    width: min(92%, calc(580 * var(--ui-scale))) !important;
    max-width: none !important;
    max-height: 95% !important;
    padding: calc(25 * var(--ui-scale)) !important;
    gap: calc(16 * var(--ui-scale)) !important;
    font-size: calc(17 * var(--ui-scale));
  }
  .festival-menu:is([data-menu-state=searching], [data-menu-state=connecting]) > #menu-panel h2 {
    font-size: calc(30 * var(--ui-scale));
    margin: 0;
  }
  .festival-menu:is([data-menu-state=searching], [data-menu-state=connecting]) > #menu-panel .mp-help {
    font-size: calc(16 * var(--ui-scale));
    margin: 0;
  }
  .festival-menu:is([data-menu-state=searching], [data-menu-state=connecting]) > #menu-panel .btn {
    font-size: calc(19 * var(--ui-scale));
    min-height: calc(48 * var(--ui-scale));
  }
  @media (max-height: 600px) {
    main.festival-menu {
      --ui-scale:calc(1 * var(--desktop-unit));
    }
    .festival-front .character-lobby .lobby-footer.festival-footer,
    .festival-detail > .festival-detail-footer {
      height: calc(42 * var(--desktop-unit)) !important;
      min-height: calc(42 * var(--desktop-unit)) !important;
      padding: calc(4 * var(--desktop-unit)) calc(12 * var(--desktop-unit)) !important;
      gap: calc(14 * var(--desktop-unit)) !important;
    }
    .festival-menu .festival-social-slot .soc-btn {
      min-height: calc(32 * var(--desktop-unit)) !important;
      font-size: calc(13 * var(--desktop-unit)) !important;
      padding: calc(4 * var(--desktop-unit)) calc(10 * var(--desktop-unit)) !important;
      border-radius: calc(9 * var(--desktop-unit)) !important;
      gap: calc(7 * var(--desktop-unit)) !important;
    }
    .festival-menu .festival-social-slot .menu-social {
      gap: calc(13 * var(--desktop-unit)) !important;
    }
    .festival-menu .festival-social-slot .soc-btn > img,
    .festival-menu .festival-social-slot .soc-btn > svg {
      width: calc(19 * var(--desktop-unit)) !important;
      height: calc(18 * var(--desktop-unit)) !important;
    }
    .festival-menu .festival-footer .menu-legal {
      font-size: calc(10 * var(--desktop-unit)) !important;
      gap: calc(11 * var(--desktop-unit)) !important;
    }
    .festival-menu .festival-footer .festival-version {
      font-size: calc(9 * var(--desktop-unit)) !important;
    }
    .festival-front .character-lobby .lobby-body {
      bottom: calc(48 * var(--desktop-unit));
    }
    .festival-detail.shop-preview-mode.shop-preview-mode,
    .festival-detail.ranked-mode {
      grid-template-rows: calc(38 * var(--desktop-unit)) minmax(0, 1fr) calc(42 * var(--desktop-unit)) !important;
      row-gap: calc(7 * var(--desktop-unit)) !important;
    }
  }
  @media (max-width: 660px) {
    .festival-menu .festival-footer .menu-legal {
      gap: calc(8 * var(--desktop-unit)) !important;
      font-size: calc(9 * var(--desktop-unit)) !important;
    }
    .festival-menu .festival-social-slot .soc-btn {
      font-size: calc(11 * var(--desktop-unit)) !important;
      min-height: calc(30 * var(--desktop-unit)) !important;
      padding: calc(4 * var(--desktop-unit)) calc(8 * var(--desktop-unit)) !important;
      gap: calc(5 * var(--desktop-unit)) !important;
    }
    .festival-menu .festival-social-slot .menu-social {
      gap: calc(10 * var(--desktop-unit)) !important;
    }
    .festival-menu .festival-social-slot .soc-btn > img,
    .festival-menu .festival-social-slot .soc-btn > svg {
      width: calc(16 * var(--desktop-unit)) !important;
      height: calc(16 * var(--desktop-unit)) !important;
    }
  }
  main.menu.festival-detail.lobby-wide {
    --room-font:clamp(calc(15 * var(--desktop-unit)),calc(19.584 * var(--desktop-unit)),calc(24 * var(--desktop-unit)));
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    padding: clamp(calc(16 * var(--desktop-unit)), calc(32.400000000000006 * var(--desktop-unit)), calc(38 * var(--desktop-unit))) clamp(calc(16 * var(--desktop-unit)), calc(57.599999999999994 * var(--desktop-unit)), calc(76 * var(--desktop-unit))) !important;
  }
  main.menu.festival-detail.lobby-wide > #menu-panel {
    width: 100% !important;
    max-width: calc(1700 * var(--desktop-unit)) !important;
    max-height: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: clamp(calc(18 * var(--desktop-unit)), calc(38.4 * var(--desktop-unit)), calc(42 * var(--desktop-unit))) !important;
    border-radius: clamp(calc(22 * var(--desktop-unit)), calc(38.4 * var(--desktop-unit)), calc(38 * var(--desktop-unit))) !important;
  }
  main.menu.festival-detail.lobby-wide .lobby {
    height: auto !important;
    min-height: 0 !important;
    gap: clamp(calc(16 * var(--desktop-unit)), calc(21.6 * var(--desktop-unit)), calc(28 * var(--desktop-unit))) !important;
  }
  main.menu.festival-detail.lobby-wide .lb-head {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: calc(12 * var(--desktop-unit)) !important;
    min-width: 0;
  }
  main.menu.festival-detail.lobby-wide .lb-title {
    min-width: 0 !important;
  }
  main.menu.festival-detail.lobby-wide .lb-title h2 {
    font-size: clamp(calc(23 * var(--desktop-unit)), calc(29.759999999999998 * var(--desktop-unit)), calc(36 * var(--desktop-unit))) !important;
    line-height: 1.15;
  }
  main.menu.festival-detail.lobby-wide .lb-title .lb-edit {
    width: calc(42 * var(--desktop-unit)) !important;
    height: calc(42 * var(--desktop-unit)) !important;
    min-width: calc(42 * var(--desktop-unit));
  }
  main.menu.festival-detail.lobby-wide .lb-code {
    padding: calc(8 * var(--desktop-unit)) calc(12 * var(--desktop-unit)) !important;
    gap: calc(9 * var(--desktop-unit)) !important;
    max-width: 100%;
  }
  main.menu.festival-detail.lobby-wide .lb-code b {
    font-size: clamp(calc(23 * var(--desktop-unit)), calc(30.72 * var(--desktop-unit)), calc(36 * var(--desktop-unit))) !important;
  }
  main.menu.festival-detail.lobby-wide .lb-code small {
    font-size: calc(11 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide .lb-code .lb-copy {
    width: calc(36 * var(--desktop-unit)) !important;
    height: calc(36 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide .lb-head > .btn {
    width: auto !important;
    min-height: calc(48 * var(--desktop-unit)) !important;
    padding: calc(9 * var(--desktop-unit)) calc(15 * var(--desktop-unit)) !important;
    font-size: var(--room-font) !important;
  }
  main.menu.festival-detail.lobby-wide .lb-full {
    font-size: var(--room-font) !important;
    padding: calc(12 * var(--desktop-unit)) calc(16 * var(--desktop-unit));
  }
  main.menu.festival-detail.lobby-wide .lb-body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) !important;
    gap: clamp(calc(18 * var(--desktop-unit)), calc(42.24 * var(--desktop-unit)), calc(42 * var(--desktop-unit))) !important;
    min-height: 0 !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    gap: clamp(calc(12 * var(--desktop-unit)), calc(24.96 * var(--desktop-unit)), calc(24 * var(--desktop-unit))) !important;
    padding: calc(4 * var(--desktop-unit)) calc(5 * var(--desktop-unit)) calc(9 * var(--desktop-unit)) !important;
    min-height: 0 !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats.teams {
    grid-template-rows: auto repeat(2, minmax(0, 1fr)) !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat,
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat:not(.empty) {
    grid-template-columns: clamp(calc(64 * var(--desktop-unit)), calc(122.88 * var(--desktop-unit)), calc(108 * var(--desktop-unit))) minmax(0, 1fr) !important;
    grid-template-rows: minmax(calc(78 * var(--desktop-unit)), 1fr) calc(38 * var(--desktop-unit)) !important;
    gap: calc(8 * var(--desktop-unit)) calc(12 * var(--desktop-unit)) !important;
    min-height: calc(154 * var(--desktop-unit)) !important;
    height: 100% !important;
    max-height: none !important;
    padding: calc(14 * var(--desktop-unit)) !important;
    border-radius: calc(22 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile {
    width: 100% !important;
    min-height: calc(80 * var(--desktop-unit)) !important;
    gap: calc(5 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile .seat-av,
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile > img,
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.bot > img {
    width: clamp(calc(56 * var(--desktop-unit)), calc(99.84 * var(--desktop-unit)), calc(86 * var(--desktop-unit))) !important;
    height: clamp(calc(56 * var(--desktop-unit)), calc(99.84 * var(--desktop-unit)), calc(86 * var(--desktop-unit))) !important;
    min-width: 0 !important;
  }
  main.menu.festival-detail.lobby-wide .seat-profile small {
    font-size: clamp(calc(10 * var(--desktop-unit)), calc(14.399999999999999 * var(--desktop-unit)), calc(16 * var(--desktop-unit))) !important;
    min-height: calc(14 * var(--desktop-unit)) !important;
    line-height: 1.2 !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-info {
    gap: calc(8 * var(--desktop-unit)) !important;
    min-width: 0 !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-info > b {
    font-size: clamp(calc(16 * var(--desktop-unit)), calc(23.04 * var(--desktop-unit)), calc(28 * var(--desktop-unit))) !important;
    line-height: 1.18 !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-info > b small {
    font-size: .7em !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .mp-badge {
    font-size: clamp(calc(11 * var(--desktop-unit)), calc(15.36 * var(--desktop-unit)), calc(18 * var(--desktop-unit))) !important;
    line-height: 1.2;
    padding: calc(4 * var(--desktop-unit)) calc(8 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .mp-ping {
    font-size: calc(12 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-tools {
    width: 100% !important;
    min-width: 0 !important;
    gap: calc(8 * var(--desktop-unit)) !important;
    padding: 0 0 calc(4 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-tools > .btn {
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: calc(34 * var(--desktop-unit)) !important;
    height: auto !important;
    padding: calc(6 * var(--desktop-unit)) calc(10 * var(--desktop-unit)) !important;
    font-size: clamp(calc(12 * var(--desktop-unit)), calc(17.28 * var(--desktop-unit)), calc(20 * var(--desktop-unit))) !important;
    line-height: 1.1 !important;
    border-radius: calc(12 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.empty {
    grid-template-columns: minmax(0, 1fr) !important;
    outline-offset: calc(-7 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.empty .seat-info small {
    font-size: calc(13 * var(--desktop-unit)) !important;
    line-height: 1.2;
  }
  main.menu.festival-detail.lobby-wide .team-head {
    min-height: calc(32 * var(--desktop-unit));
    gap: calc(6 * var(--desktop-unit));
  }
  main.menu.festival-detail.lobby-wide .team-head b {
    font-size: var(--room-font);
  }
  main.menu.festival-detail.lobby-wide .lb-side {
    grid-template-rows: auto auto auto auto !important;
    gap: clamp(calc(12 * var(--desktop-unit)), calc(17.28 * var(--desktop-unit)), calc(20 * var(--desktop-unit))) !important;
    min-height: 0 !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side-top {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: calc(16 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side-top .field {
    margin: 0;
    gap: calc(8 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side-top .field > span {
    font-size: calc(13 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side-top .swatches {
    gap: clamp(calc(8 * var(--desktop-unit)), calc(19.2 * var(--desktop-unit)), calc(18 * var(--desktop-unit))) !important;
    padding: calc(5 * var(--desktop-unit)) !important;
    margin: 0 !important;
  }
  main.menu.festival-detail.lobby-wide .lb-side-top .swatch {
    width: clamp(calc(34 * var(--desktop-unit)), calc(59.519999999999996 * var(--desktop-unit)), calc(60 * var(--desktop-unit))) !important;
    height: auto !important;
    min-width: calc(24 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide .lb-chat-slot {
    min-height: calc(46 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide .lb-chat-slot .chat-btn {
    width: calc(48 * var(--desktop-unit)) !important;
    height: calc(48 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide .room-set {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: calc(12 * var(--desktop-unit)) !important;
    padding: calc(16 * var(--desktop-unit)) !important;
    margin: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: calc(20 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide .room-set h3 {
    margin: 0 0 calc(2 * var(--desktop-unit)) !important;
    font-size: var(--room-font) !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .rs-row {
    grid-template-columns: minmax(calc(84 * var(--desktop-unit)), .75fr) minmax(0, 1.8fr) !important;
    gap: calc(10 * var(--desktop-unit)) !important;
    min-width: 0 !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .rs-row > span {
    font-size: clamp(calc(11 * var(--desktop-unit)), calc(15.743999999999998 * var(--desktop-unit)), calc(18 * var(--desktop-unit))) !important;
    line-height: 1.2;
  }
  main.menu.festival-detail.lobby-wide .room-set .rs-row > .seg {
    min-width: 0 !important;
    width: 100%;
    padding: calc(3 * var(--desktop-unit)) !important;
    gap: calc(2 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .seg button {
    min-width: 0 !important;
    min-height: calc(36 * var(--desktop-unit)) !important;
    font-size: clamp(calc(12 * var(--desktop-unit)), calc(18.048 * var(--desktop-unit)), calc(22 * var(--desktop-unit))) !important;
    line-height: 1.15;
    padding: calc(6 * var(--desktop-unit)) calc(8 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .stepper {
    gap: calc(14 * var(--desktop-unit));
  }
  main.menu.festival-detail.lobby-wide .room-set .stepper button {
    width: calc(38 * var(--desktop-unit)) !important;
    height: calc(38 * var(--desktop-unit)) !important;
    min-width: calc(38 * var(--desktop-unit));
    font-size: calc(23 * var(--desktop-unit)) !important;
  }
  main.menu.festival-detail.lobby-wide .room-set .stepper output {
    font-size: clamp(calc(17 * var(--desktop-unit)), calc(21.12 * var(--desktop-unit)), calc(25 * var(--desktop-unit))) !important;
    min-width: calc(26 * var(--desktop-unit));
  }
  main.menu.festival-detail.lobby-wide .lb-side > .mp-help {
    font-size: clamp(calc(12 * var(--desktop-unit)), calc(17.28 * var(--desktop-unit)), calc(18 * var(--desktop-unit))) !important;
    line-height: 1.35;
    max-height: none !important;
    margin: 0 !important;
  }
  main.menu.festival-detail.lobby-wide .lb-acts {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important;
    gap: calc(12 * var(--desktop-unit)) !important;
    padding: 0 0 calc(6 * var(--desktop-unit)) !important;
    margin: 0 !important;
  }
  main.menu.festival-detail.lobby-wide .lb-acts > .btn {
    min-width: 0 !important;
    min-height: calc(52 * var(--desktop-unit)) !important;
    font-size: clamp(calc(17 * var(--desktop-unit)), calc(23.04 * var(--desktop-unit)), calc(28 * var(--desktop-unit))) !important;
    line-height: 1.15;
    padding: calc(10 * var(--desktop-unit)) !important;
    border-radius: calc(17 * var(--desktop-unit)) !important;
  }
  @media (min-width: 1800px) and (min-height: 900px) {
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat,
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat:not(.empty) {
      min-height: calc(215 * var(--desktop-unit)) !important;
      grid-template-rows: minmax(calc(112 * var(--desktop-unit)), 1fr) calc(48 * var(--desktop-unit)) !important;
      padding: calc(22 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-tools > .btn {
      min-height: calc(44 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set {
      padding: calc(22 * var(--desktop-unit)) !important;
      gap: calc(16 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set .seg button {
      min-height: calc(48 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-acts > .btn {
      min-height: calc(66 * var(--desktop-unit)) !important;
    }
  }
  @media (max-width: 1100px) and (min-height: 601px) and (orientation: portrait) {
    main.menu.festival-detail.lobby-wide {
      padding: calc(20 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-head {
      grid-template-columns: minmax(0, 1fr) auto !important;
    }
    main.menu.festival-detail.lobby-wide .lb-head > .btn {
      width: 100% !important;
    }
    main.menu.festival-detail.lobby-wide .lb-body {
      grid-template-columns: minmax(0, 1fr) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats {
      grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat,
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat:not(.empty) {
      min-height: calc(135 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set .rs-row {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: calc(5 * var(--desktop-unit)) !important;
    }
  }
  @media (orientation: landscape) and (max-height: 600px) {
    main.menu.festival-detail.lobby-wide {
      padding: calc(8 * var(--desktop-unit)) max(calc(10 * var(--desktop-unit)), var(--safe-r)) calc(9 * var(--desktop-unit)) max(calc(10 * var(--desktop-unit)), var(--safe-l)) !important;
      --room-font:calc(12 * var(--desktop-unit));
    }
    main.menu.festival-detail.lobby-wide > #menu-panel {
      height: 100% !important;
      max-width: none !important;
      padding: calc(10 * var(--desktop-unit)) !important;
      border-radius: calc(20 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lobby {
      height: 100% !important;
      grid-template-rows: auto minmax(0, 1fr) !important;
      gap: calc(9 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-head {
      grid-template-columns: minmax(0, 1fr) auto auto auto !important;
      gap: calc(7 * var(--desktop-unit)) !important;
      min-height: calc(35 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-title h2 {
      font-size: calc(17 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-title .lb-edit {
      width: calc(31 * var(--desktop-unit)) !important;
      height: calc(31 * var(--desktop-unit)) !important;
      min-width: calc(31 * var(--desktop-unit));
    }
    main.menu.festival-detail.lobby-wide .lb-code {
      padding: calc(4 * var(--desktop-unit)) calc(7 * var(--desktop-unit)) !important;
      gap: calc(6 * var(--desktop-unit)) !important;
      border-radius: calc(12 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-code b {
      font-size: calc(19 * var(--desktop-unit)) !important;
      letter-spacing: .1em;
    }
    main.menu.festival-detail.lobby-wide .lb-code .lb-copy {
      width: calc(28 * var(--desktop-unit)) !important;
      height: calc(28 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-head > .btn {
      min-height: calc(34 * var(--desktop-unit)) !important;
      font-size: calc(12 * var(--desktop-unit)) !important;
      padding: calc(5 * var(--desktop-unit)) calc(8 * var(--desktop-unit)) !important;
      line-height: 1.15;
      border-radius: calc(11 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-head > .btn svg {
      width: calc(16 * var(--desktop-unit)) !important;
      height: calc(16 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-full {
      font-size: calc(11 * var(--desktop-unit)) !important;
      padding: calc(7 * var(--desktop-unit)) calc(9 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-body {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) !important;
      gap: calc(12 * var(--desktop-unit)) !important;
      min-height: 0 !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats {
      gap: calc(9 * var(--desktop-unit)) !important;
      padding: calc(3 * var(--desktop-unit)) calc(4 * var(--desktop-unit)) calc(7 * var(--desktop-unit)) !important;
      grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
      grid-auto-rows: minmax(calc(86 * var(--desktop-unit)), 1fr) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats.teams {
      grid-template-rows: calc(25 * var(--desktop-unit)) repeat(2, minmax(calc(86 * var(--desktop-unit)), 1fr)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat,
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat:not(.empty) {
      min-height: calc(90 * var(--desktop-unit)) !important;
      grid-template-columns: calc(48 * var(--desktop-unit)) minmax(0, 1fr) !important;
      grid-template-rows: minmax(calc(43 * var(--desktop-unit)), 1fr) calc(29 * var(--desktop-unit)) !important;
      padding: calc(7 * var(--desktop-unit)) !important;
      gap: calc(4 * var(--desktop-unit)) calc(6 * var(--desktop-unit)) !important;
      border-radius: calc(14 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile {
      min-height: calc(48 * var(--desktop-unit)) !important;
      width: calc(48 * var(--desktop-unit)) !important;
      gap: calc(2 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile .seat-av,
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile > img,
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.bot > img {
      width: calc(36 * var(--desktop-unit)) !important;
      height: calc(36 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .seat-profile small {
      font-size: calc(8 * var(--desktop-unit)) !important;
      min-height: calc(10 * var(--desktop-unit)) !important;
      line-height: 1.1 !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-info {
      gap: calc(4 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-info > b {
      font-size: calc(14 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .mp-badge {
      font-size: calc(10 * var(--desktop-unit)) !important;
      padding: calc(2 * var(--desktop-unit)) calc(5 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-tools {
      gap: calc(5 * var(--desktop-unit)) !important;
      padding-bottom: calc(3 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-tools > .btn {
      min-height: calc(29 * var(--desktop-unit)) !important;
      font-size: calc(11 * var(--desktop-unit)) !important;
      padding: calc(4 * var(--desktop-unit)) calc(6 * var(--desktop-unit)) !important;
      border-radius: calc(8 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.empty {
      grid-template-columns: minmax(0, 1fr) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.empty .seat-info small {
      font-size: calc(10 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-side {
      grid-template-rows: auto auto minmax(0, 1fr) auto !important;
      gap: calc(6 * var(--desktop-unit)) !important;
      min-height: 0 !important;
    }
    main.menu.festival-detail.lobby-wide .lb-side-top {
      gap: calc(9 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-side-top .field {
      gap: 0 !important;
    }
    main.menu.festival-detail.lobby-wide .lb-side-top .swatches {
      gap: calc(9 * var(--desktop-unit)) !important;
      padding: calc(4 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-side-top .swatch {
      width: calc(31 * var(--desktop-unit)) !important;
      min-width: calc(24 * var(--desktop-unit)) !important;
      max-width: calc(31 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-chat-slot {
      min-height: calc(32 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-chat-slot .chat-btn {
      width: calc(34 * var(--desktop-unit)) !important;
      height: calc(34 * var(--desktop-unit)) !important;
      border-radius: calc(10 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: calc(10 * var(--desktop-unit)) calc(10 * var(--desktop-unit)) !important;
      padding: calc(10 * var(--desktop-unit)) !important;
      border-radius: calc(14 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set .rs-row {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: calc(3 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set .rs-row > span {
      font-size: calc(10 * var(--desktop-unit)) !important;
      line-height: 1.1 !important;
      letter-spacing: .02em;
    }
    main.menu.festival-detail.lobby-wide .room-set .rs-row > .seg {
      padding: calc(2 * var(--desktop-unit)) !important;
      gap: calc(1 * var(--desktop-unit)) !important;
      border-radius: calc(10 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set .seg button {
      min-height: calc(32 * var(--desktop-unit)) !important;
      padding: calc(5 * var(--desktop-unit)) !important;
      font-size: calc(11 * var(--desktop-unit)) !important;
      line-height: 1.1 !important;
    }
    main.menu.festival-detail.lobby-wide .rs-vis .seg button svg {
      width: calc(11 * var(--desktop-unit)) !important;
      height: calc(11 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set .stepper {
      width: 100%;
      gap: calc(7 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set .stepper button {
      width: calc(29 * var(--desktop-unit)) !important;
      height: calc(29 * var(--desktop-unit)) !important;
      min-width: calc(29 * var(--desktop-unit)) !important;
      font-size: calc(18 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set .stepper output {
      font-size: calc(15 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set .team-rules-btn {
      font-size: calc(10 * var(--desktop-unit)) !important;
      min-height: calc(19 * var(--desktop-unit)) !important;
      padding: 0 !important;
    }
    main.menu.festival-detail.lobby-wide .lb-side > .mp-help {
      font-size: calc(10 * var(--desktop-unit)) !important;
      line-height: 1.2 !important;
    }
    main.menu.festival-detail.lobby-wide .lb-acts {
      gap: calc(7 * var(--desktop-unit)) !important;
      padding-bottom: calc(4 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-acts > .btn {
      min-height: calc(38 * var(--desktop-unit)) !important;
      padding: calc(6 * var(--desktop-unit)) !important;
      font-size: calc(13 * var(--desktop-unit)) !important;
      border-radius: calc(12 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-acts > .btn svg {
      width: calc(18 * var(--desktop-unit)) !important;
      height: calc(18 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .team-head {
      min-height: calc(23 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .team-head b {
      font-size: calc(11 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .team-switch {
      font-size: calc(9 * var(--desktop-unit)) !important;
      min-height: calc(22 * var(--desktop-unit)) !important;
      padding: calc(3 * var(--desktop-unit)) calc(4 * var(--desktop-unit)) !important;
    }
  }
  @media (orientation: landscape) and (max-width: 650px) {
    main.menu.festival-detail.lobby-wide {
      padding: calc(5 * var(--desktop-unit)) calc(7 * var(--desktop-unit)) calc(7 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide > #menu-panel {
      padding: calc(8 * var(--desktop-unit)) !important;
      border-radius: calc(17 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-head {
      grid-template-columns: minmax(0, 1fr) auto !important;
      gap: calc(6 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-head > .btn {
      min-height: calc(29 * var(--desktop-unit)) !important;
      padding: calc(4 * var(--desktop-unit)) calc(6 * var(--desktop-unit)) !important;
      font-size: calc(10 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-title h2 {
      font-size: calc(15 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lobby {
      gap: calc(6 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-body {
      grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) !important;
      gap: calc(8 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats {
      gap: calc(6 * var(--desktop-unit)) !important;
      padding: calc(2 * var(--desktop-unit)) calc(3 * var(--desktop-unit)) calc(6 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat,
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat:not(.empty) {
      grid-template-columns: calc(32 * var(--desktop-unit)) minmax(0, 1fr) !important;
      min-height: calc(83 * var(--desktop-unit)) !important;
      padding: calc(5 * var(--desktop-unit)) !important;
      gap: calc(3 * var(--desktop-unit)) calc(4 * var(--desktop-unit)) !important;
      grid-template-rows: minmax(calc(40 * var(--desktop-unit)), 1fr) calc(27 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile {
      width: calc(34 * var(--desktop-unit)) !important;
      min-height: calc(43 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile .seat-av,
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat .seat-profile > img,
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat.bot > img {
      width: calc(29 * var(--desktop-unit)) !important;
      height: calc(29 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .seat-profile small {
      font-size: calc(7 * var(--desktop-unit)) !important;
      line-height: 1 !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-info > b {
      font-size: calc(11 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .mp-badge {
      font-size: calc(8 * var(--desktop-unit)) !important;
      padding: calc(2 * var(--desktop-unit)) calc(4 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide #menu-panel .seats .seat-tools > .btn {
      min-height: calc(24 * var(--desktop-unit)) !important;
      font-size: calc(9 * var(--desktop-unit)) !important;
      padding: calc(4 * var(--desktop-unit)) calc(3 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-side {
      gap: calc(4 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-side-top .swatches {
      gap: calc(7 * var(--desktop-unit)) !important;
      padding: calc(4 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-side-top .swatch {
      width: calc(25 * var(--desktop-unit)) !important;
      min-width: calc(20 * var(--desktop-unit)) !important;
      max-width: calc(25 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-chat-slot .chat-btn {
      width: calc(29 * var(--desktop-unit)) !important;
      height: calc(29 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set {
      gap: calc(5 * var(--desktop-unit)) calc(7 * var(--desktop-unit)) !important;
      padding: calc(6 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set .seg button {
      font-size: calc(9 * var(--desktop-unit)) !important;
      min-height: calc(25 * var(--desktop-unit)) !important;
      padding: calc(3 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .room-set .rs-row > span {
      font-size: calc(8 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-side > .mp-help {
      font-size: calc(9 * var(--desktop-unit)) !important;
    }
    main.menu.festival-detail.lobby-wide .lb-acts > .btn {
      font-size: calc(11 * var(--desktop-unit)) !important;
      min-height: calc(34 * var(--desktop-unit)) !important;
      padding: calc(5 * var(--desktop-unit)) !important;
    }
  }
  .social-dialog:has(> .player-sheet) {
    width: min(calc(1160 * var(--desktop-unit)), calc(1843.1999999999998 * var(--desktop-unit)));
    max-width: calc(1843.1999999999998 * var(--desktop-unit));
    max-height: calc(1015.2 * var(--desktop-unit));
    border-radius: calc(24 * var(--desktop-unit));
  }
  .social-dialog > .player-sheet {
    grid-template-rows: auto minmax(0, 1fr);
    gap: calc(16 * var(--desktop-unit));
    padding: calc(24 * var(--desktop-unit));
  }
  .social-dialog > .player-sheet > .sheet-head {
    top: auto;
    margin: 0;
    padding: 0;
    min-height: calc(42 * var(--desktop-unit));
    border-radius: 0;
  }
  .social-dialog > .player-sheet > .sheet-head h2 {
    font-size: calc(28 * var(--desktop-unit));
    line-height: 1.15;
  }
  .social-dialog > .player-sheet > .sheet-head > .icon-btn {
    width: calc(42 * var(--desktop-unit));
    height: calc(42 * var(--desktop-unit));
    min-height: calc(42 * var(--desktop-unit));
  }
  .social-dialog .player-sheet .pl-main {
    grid-template-columns: minmax(calc(240 * var(--desktop-unit)), .76fr) minmax(0, 1.24fr);
    gap: calc(22 * var(--desktop-unit));
  }
  .social-dialog .player-sheet .pl-hero {
    gap: calc(14 * var(--desktop-unit));
    padding: calc(20 * var(--desktop-unit));
    border-radius: calc(22 * var(--desktop-unit));
    min-width: 0;
  }
  .social-dialog .player-sheet .pl-pawn {
    width: 100%;
    height: calc(230 * var(--desktop-unit));
    max-width: 100%;
    max-height: calc(324 * var(--desktop-unit));
  }
  .social-dialog .player-sheet .pl-pawn.av-dot {
    width: calc(100 * var(--desktop-unit));
    height: calc(100 * var(--desktop-unit));
  }
  .social-dialog .player-sheet .pl-name {
    gap: calc(10 * var(--desktop-unit));
    width: 100%;
    font-size: calc(26 * var(--desktop-unit));
    line-height: 1.15;
    min-width: 0;
  }
  .social-dialog .player-sheet .pl-name > span:last-child {
    min-width: 0;
  }
  .social-dialog .player-sheet .pl-rank {
    gap: calc(8 * var(--desktop-unit));
    width: 100%;
    min-width: 0;
  }
  .social-dialog .player-sheet .pl-rank-score {
    column-gap: calc(18 * var(--desktop-unit));
    row-gap: calc(6 * var(--desktop-unit));
    max-width: 100%;
  }
  .social-dialog .player-sheet .pl-rank-score .tier-chip {
    gap: calc(8 * var(--desktop-unit));
    font: 900 calc(20 * var(--desktop-unit))/1.15 var(--display);
    padding: 0;
    max-width: 100%;
  }
  .social-dialog .player-sheet .pl-rank-score .rank-crest {
    width: calc(44 * var(--desktop-unit));
    height: calc(50 * var(--desktop-unit));
  }
  .social-dialog .player-sheet .pl-rank-score > .num {
    font: 900 calc(28 * var(--desktop-unit))/1.05 var(--display);
  }
  .social-dialog .player-sheet .pl-rank-placement {
    font: 800 calc(14 * var(--desktop-unit))/1.25 var(--body);
    max-width: 100%;
  }
  .social-dialog .player-sheet .pl-side {
    gap: calc(16 * var(--desktop-unit));
    min-width: 0;
  }
  .social-dialog .player-sheet .pl-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(10 * var(--desktop-unit));
  }
  .social-dialog .player-sheet .pl-stats > div {
    gap: calc(6 * var(--desktop-unit));
    min-height: calc(74 * var(--desktop-unit));
    padding: calc(12 * var(--desktop-unit));
    border-radius: calc(16 * var(--desktop-unit));
    min-width: 0;
  }
  .social-dialog .player-sheet .pl-stats small {
    font: 800 calc(13 * var(--desktop-unit))/1.2 var(--body);
  }
  .social-dialog .player-sheet .pl-stats b {
    font: 900 calc(21 * var(--desktop-unit))/1.15 var(--display);
  }
  .social-dialog .player-sheet .pl-gear {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(10 * var(--desktop-unit));
  }
  .social-dialog .player-sheet .pl-gear > div {
    padding: calc(12 * var(--desktop-unit)) calc(8 * var(--desktop-unit));
    gap: calc(5 * var(--desktop-unit));
    border-radius: calc(16 * var(--desktop-unit));
    min-height: calc(140 * var(--desktop-unit));
  }
  .social-dialog .player-sheet .pl-gear .g-ic {
    width: 100%;
    height: calc(76 * var(--desktop-unit));
    max-width: calc(130 * var(--desktop-unit));
  }
  .social-dialog .player-sheet .pl-gear .pl-board-thumb {
    max-width: calc(145 * var(--desktop-unit));
  }
  .social-dialog .player-sheet .pl-gear small {
    font-size: calc(12 * var(--desktop-unit));
    line-height: 1.15;
  }
  .social-dialog .player-sheet .pl-gear b {
    font: 900 calc(16 * var(--desktop-unit))/1.2 var(--display);
    max-width: 100%;
  }
  .social-dialog .player-sheet .pl-side > .btn,
  .social-dialog .player-sheet .friend-profile-actions > .btn {
    min-height: calc(46 * var(--desktop-unit));
    padding: calc(10 * var(--desktop-unit)) calc(16 * var(--desktop-unit));
    font-size: calc(17 * var(--desktop-unit));
    line-height: 1.15;
  }
  .social-dialog .player-sheet .friend-profile-actions {
    gap: calc(10 * var(--desktop-unit));
  }
  @media (max-width: 1100px) {
    .social-dialog > .player-sheet {
      gap: calc(12 * var(--desktop-unit));
      padding: calc(18 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-main {
      grid-template-columns: minmax(calc(195 * var(--desktop-unit)), .72fr) minmax(0, 1.28fr);
      gap: calc(16 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-hero {
      padding: calc(14 * var(--desktop-unit));
      gap: calc(10 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-stats {
      gap: calc(8 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-stats > div {
      padding: calc(10 * var(--desktop-unit));
      min-height: calc(68 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-stats b {
      font-size: calc(19 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-pawn {
      height: calc(210 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-name {
      font-size: calc(23 * var(--desktop-unit));
    }
  }
  @media (orientation: landscape) and (max-height: 600px) {
    .social-dialog:has(> .player-sheet) {
      max-height: calc(1036.8000000000002 * var(--desktop-unit));
      border-radius: calc(18 * var(--desktop-unit));
    }
    .social-dialog > .player-sheet {
      gap: calc(8 * var(--desktop-unit));
      padding: calc(12 * var(--desktop-unit));
    }
    .social-dialog > .player-sheet > .sheet-head {
      min-height: calc(32 * var(--desktop-unit));
    }
    .social-dialog > .player-sheet > .sheet-head h2 {
      font-size: calc(21 * var(--desktop-unit));
    }
    .social-dialog > .player-sheet > .sheet-head > .icon-btn {
      width: calc(32 * var(--desktop-unit));
      height: calc(32 * var(--desktop-unit));
      min-height: calc(32 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-main {
      grid-template-columns: minmax(calc(165 * var(--desktop-unit)), .72fr) minmax(0, 1.28fr);
      gap: calc(12 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-hero {
      padding: calc(10 * var(--desktop-unit));
      gap: calc(8 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-pawn {
      height: calc(115 * var(--desktop-unit));
      max-height: calc(334.8 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-pawn.av-dot {
      width: calc(66 * var(--desktop-unit));
      height: calc(66 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-name {
      font-size: calc(18 * var(--desktop-unit));
      gap: calc(8 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank {
      gap: calc(5 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank-score {
      column-gap: calc(12 * var(--desktop-unit));
      row-gap: calc(4 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank-score .tier-chip {
      font-size: calc(15 * var(--desktop-unit));
      gap: calc(5 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank-score .rank-crest {
      width: calc(30 * var(--desktop-unit));
      height: calc(35 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank-score > .num {
      font-size: calc(22 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank-placement {
      font-size: calc(11 * var(--desktop-unit));
      line-height: 1.2;
    }
    .social-dialog .player-sheet .pl-side {
      gap: calc(8 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-stats {
      gap: calc(6 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-stats > div {
      min-height: calc(49 * var(--desktop-unit));
      padding: calc(6 * var(--desktop-unit)) calc(8 * var(--desktop-unit));
      gap: calc(3 * var(--desktop-unit));
      border-radius: calc(11 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-stats small {
      font-size: calc(10 * var(--desktop-unit));
      line-height: 1.15;
    }
    .social-dialog .player-sheet .pl-stats b {
      font-size: calc(16 * var(--desktop-unit));
      line-height: 1.15;
    }
    .social-dialog .player-sheet .pl-gear {
      gap: calc(6 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-gear > div {
      min-height: calc(90 * var(--desktop-unit));
      padding: calc(6 * var(--desktop-unit));
      gap: calc(3 * var(--desktop-unit));
      border-radius: calc(11 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-gear .g-ic {
      height: calc(44 * var(--desktop-unit));
      max-width: calc(100 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-gear small {
      font-size: calc(10 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-gear b {
      font-size: calc(12 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-side > .btn,
    .social-dialog .player-sheet .friend-profile-actions > .btn {
      min-height: calc(36 * var(--desktop-unit));
      padding: calc(6 * var(--desktop-unit)) calc(10 * var(--desktop-unit));
      font-size: calc(14 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .friend-profile-actions {
      gap: calc(6 * var(--desktop-unit));
    }
  }
  @media (orientation: landscape) and (max-height: 350px) {
    .social-dialog > .player-sheet {
      padding: calc(9 * var(--desktop-unit));
      gap: calc(6 * var(--desktop-unit));
    }
    .social-dialog > .player-sheet > .sheet-head {
      min-height: calc(30 * var(--desktop-unit));
    }
    .social-dialog > .player-sheet > .sheet-head h2 {
      font-size: calc(19 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-main {
      grid-template-columns: minmax(calc(140 * var(--desktop-unit)), .68fr) minmax(0, 1.32fr);
      gap: calc(9 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-hero {
      padding: calc(8 * var(--desktop-unit));
      gap: calc(6 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-pawn {
      height: calc(92 * var(--desktop-unit));
      max-height: calc(313.20000000000005 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-name {
      font-size: calc(16 * var(--desktop-unit));
      gap: calc(6 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank-score {
      column-gap: calc(9 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank-score .tier-chip {
      font-size: calc(14 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank-score .rank-crest {
      width: calc(26 * var(--desktop-unit));
      height: calc(30 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank-score > .num {
      font-size: calc(20 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-stats > div {
      min-height: calc(43 * var(--desktop-unit));
      padding: calc(5 * var(--desktop-unit)) calc(6 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-stats small {
      font-size: calc(9 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-stats b {
      font-size: calc(14 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-gear > div {
      min-height: calc(76 * var(--desktop-unit));
      padding: calc(5 * var(--desktop-unit));
      gap: calc(2 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-gear .g-ic {
      height: calc(34 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-gear b {
      font-size: calc(11 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-side {
      gap: calc(6 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-side > .btn,
    .social-dialog .player-sheet .friend-profile-actions > .btn {
      min-height: calc(32 * var(--desktop-unit));
      font-size: calc(12 * var(--desktop-unit));
      padding: calc(5 * var(--desktop-unit)) calc(8 * var(--desktop-unit));
    }
  }
  @media (orientation: portrait) and (max-width: 700px) {
    .social-dialog .player-sheet .pl-main {
      grid-template-columns: minmax(0, 1fr);
    }
    .social-dialog .player-sheet .pl-hero {
      grid-template-columns: calc(90 * var(--desktop-unit)) minmax(0, 1fr);
      column-gap: calc(16 * var(--desktop-unit));
      row-gap: calc(10 * var(--desktop-unit));
      padding: calc(14 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-pawn {
      width: 100%;
      height: calc(120 * var(--desktop-unit));
      max-height: none;
    }
    .social-dialog .player-sheet .pl-name {
      font-size: calc(21 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank-score {
      column-gap: calc(12 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank-score .rank-crest {
      width: calc(32 * var(--desktop-unit));
      height: calc(37 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank-score .tier-chip {
      font-size: calc(16 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-rank-score > .num {
      font-size: calc(23 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-stats > div {
      min-height: calc(65 * var(--desktop-unit));
      padding: calc(8 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-stats small {
      font-size: calc(11 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-stats b {
      font-size: calc(18 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-gear > div {
      min-height: calc(120 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-gear .g-ic {
      height: calc(64 * var(--desktop-unit));
    }
    .social-dialog .player-sheet .pl-gear b {
      font-size: calc(14 * var(--desktop-unit));
    }
  }
  .festival-detail.shop-preview-mode .shop-world-preview[data-tab=dice] .shop-world-stage {
    inset: auto 4%;
    top: 48%;
    height: auto;
    max-height: calc(100% - calc(98 * var(--desktop-unit)));
    transform: translateY(-50%);
  }
  .festival-detail.shop-preview-mode .shop-world-preview[data-tab=board] .shop-world-stage {
    inset: calc(42 * var(--desktop-unit)) 0 calc(14 * var(--desktop-unit));
  }
  .festival-detail.shop-preview-mode .shop-world-preview .shop-world-roll {
    bottom: calc(18 * var(--desktop-unit)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - calc(32 * var(--desktop-unit))) !important;
    max-width: calc(220 * var(--desktop-unit)) !important;
    min-width: 0 !important;
    min-height: calc(48 * var(--desktop-unit)) !important;
    padding: calc(8 * var(--desktop-unit)) calc(12 * var(--desktop-unit)) !important;
    font-size: calc(19 * var(--desktop-unit)) !important;
  }
  .festival-detail.shop-preview-mode .shop-world-preview .shop-world-chip {
    top: calc(16 * var(--desktop-unit)) !important;
    left: 50% !important;
    transform: translateX(-50%);
    max-width: calc(100% - calc(24 * var(--desktop-unit))) !important;
    width: max-content;
    font-size: calc(18 * var(--desktop-unit)) !important;
    line-height: 1.15;
  }
  .festival-detail.shop-preview-mode .catalog-dice-canvas {
    width: 100%;
    height: 100%;
  }
  @media (max-height: 600px) {
    .festival-detail.shop-preview-mode .shop-world-preview[data-tab=dice] .shop-world-stage {
      top: 49%;
      max-height: calc(100% - calc(77 * var(--desktop-unit)));
    }
    .festival-detail.shop-preview-mode .shop-world-preview[data-tab=board] .shop-world-stage {
      inset: calc(34 * var(--desktop-unit)) 0 calc(8 * var(--desktop-unit));
    }
    .festival-detail.shop-preview-mode .shop-world-preview .shop-world-roll {
      bottom: calc(10 * var(--desktop-unit)) !important;
      min-height: calc(36 * var(--desktop-unit)) !important;
      font-size: calc(15 * var(--desktop-unit)) !important;
      width: calc(100% - calc(20 * var(--desktop-unit))) !important;
    }
    .festival-detail.shop-preview-mode .shop-world-preview .shop-world-chip {
      top: calc(10 * var(--desktop-unit)) !important;
      font-size: calc(13 * var(--desktop-unit)) !important;
    }
  }
  @media (min-width: 1100px) and (min-height: 620px) {
    main.menu.festival-detail.shop-preview-mode.shop-preview-mode:has(.shop-world-preview[data-tab=board]) {
      grid-template-columns: minmax(calc(320 * var(--desktop-unit)), .95fr) minmax(0, 1.45fr) !important;
    }
    main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header > .festival-section-title {
      font-size: calc(29 * var(--ui-scale));
    }
    .festival-menu .festival-detail-header > .icon-btn,
    .catalog-header-tools > .icon-btn {
      width: calc(46 * var(--ui-scale));
      height: calc(46 * var(--ui-scale));
    }
    .catalog-header-tools .premium-summary {
      min-height: calc(42 * var(--ui-scale));
      padding: calc(8 * var(--ui-scale)) calc(13 * var(--ui-scale));
    }
    .catalog-header-tools .premium-summary b {
      font-size: calc(17 * var(--ui-scale));
    }
    .catalog-header-tools > .catalog-header-wallet {
      font-size: calc(23 * var(--ui-scale));
      min-height: calc(42 * var(--ui-scale));
    }
    .festival-detail #menu-panel > .stabs > button {
      font-size: calc(19 * var(--ui-scale)) !important;
      min-height: calc(43 * var(--ui-scale)) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(.sth, i) {
      max-height: calc(200 * var(--ui-scale)) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) :is(.sth, i) > :is(img, svg) {
      max-width: calc(200 * var(--ui-scale)) !important;
      max-height: calc(200 * var(--ui-scale)) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > b {
      font-size: calc(20 * var(--ui-scale)) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(em, small) {
      font-size: calc(13 * var(--ui-scale)) !important;
    }
    .festival-detail .shop .sact > .btn,
    .festival-detail .inventory-selection > .btn {
      font-size: calc(18 * var(--ui-scale)) !important;
      min-height: calc(44 * var(--ui-scale)) !important;
      padding: calc(8 * var(--ui-scale)) calc(18 * var(--ui-scale)) !important;
    }
    .festival-detail .shop-selection-title > b,
    .festival-detail .inventory-selected-name > b {
      font-size: calc(23 * var(--ui-scale)) !important;
    }
    .festival-detail.shop-preview-mode .shop-world-preview .shop-world-chip {
      font-size: calc(20 * var(--ui-scale)) !important;
    }
    .festival-detail.shop-preview-mode .shop-world-preview .shop-world-roll {
      font-size: calc(20 * var(--ui-scale)) !important;
      min-height: calc(48 * var(--ui-scale)) !important;
      max-width: calc(220 * var(--ui-scale)) !important;
    }
  }
  .festival-detail .sitem > em.premium-access {
    padding: calc(3 * var(--desktop-unit)) calc(9 * var(--desktop-unit));
    border-radius: calc(8 * var(--desktop-unit));
    border: calc(1 * var(--desktop-unit)) solid #c5a050;
  }
  .festival-detail .sitem > em.eq {
    padding: calc(3 * var(--desktop-unit)) calc(9 * var(--desktop-unit));
    border-radius: calc(8 * var(--desktop-unit));
  }
  @media (max-height: 600px) {
    main.menu.festival-detail.shop-preview-mode.shop-preview-mode:not(.inventory-mode) {
      grid-template-columns: minmax(calc(170 * var(--desktop-unit)), .72fr) minmax(0, 1.6fr) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) {
      grid-template-columns: clamp(calc(45 * var(--desktop-unit)), calc(122.88 * var(--desktop-unit)), calc(70 * var(--desktop-unit))) minmax(0, 1fr) !important;
      grid-template-rows: 1fr 1fr !important;
      column-gap: calc(8 * var(--desktop-unit)) !important;
      row-gap: calc(2 * var(--desktop-unit)) !important;
      padding: calc(5 * var(--desktop-unit)) calc(8 * var(--desktop-unit)) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(.sth, i) {
      min-height: calc(36 * var(--desktop-unit)) !important;
      max-height: 100% !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > b {
      font-size: calc(14 * var(--desktop-unit)) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > :is(em, small) {
      font-size: calc(10 * var(--desktop-unit)) !important;
      padding: calc(1 * var(--desktop-unit)) calc(4 * var(--desktop-unit)) !important;
    }
  }
  @media (max-width: 660px) {
    main.menu.festival-detail.shop-preview-mode.shop-preview-mode:not(.inventory-mode) {
      grid-template-columns: calc(155 * var(--desktop-unit)) minmax(0, 1fr) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) {
      grid-template-columns: calc(43 * var(--desktop-unit)) minmax(0, 1fr) !important;
      column-gap: calc(6 * var(--desktop-unit)) !important;
      padding: calc(4 * var(--desktop-unit)) calc(5 * var(--desktop-unit)) !important;
    }
    .festival-detail #menu-panel:is(.shop, .inventory-panel) :is(.sitem, .inventory-item) > b {
      font-size: calc(12 * var(--desktop-unit)) !important;
    }
  }
  .kcard {
    width: min(calc(340 * var(--desktop-unit)), calc(1651.2 * var(--desktop-unit)));
    border-radius: calc(26 * var(--desktop-unit));
    padding: calc(12 * var(--desktop-unit));
  }
  .kcard .head {
    border-radius: calc(16 * var(--desktop-unit));
    padding: calc(12 * var(--desktop-unit)) calc(14 * var(--desktop-unit)) calc(10 * var(--desktop-unit));
  }
  .kcard .head small {
    font: 900 calc(11 * var(--desktop-unit))/1 var(--body);
    letter-spacing: .18em;
  }
  .kcard .head h3 {
    margin: calc(4 * var(--desktop-unit)) 0 0;
    font: 800 calc(30 * var(--desktop-unit))/1 var(--display);
  }
  .kcard .flagbar {
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(5 * var(--desktop-unit));
  }
  .kcard .art {
    margin-top: calc(10 * var(--desktop-unit));
    border-radius: calc(14 * var(--desktop-unit));
  }
  .kcard .art svg {
    width: 100%;
    height: 100%;
  }
  .kcard .tag {
    margin: calc(8 * var(--desktop-unit)) 0 calc(6 * var(--desktop-unit));
    font: 800 calc(13 * var(--desktop-unit))/1.2 var(--body);
  }
  .kcard table {
    width: 100%;
    font: 700 calc(14 * var(--desktop-unit))/1 var(--body);
  }
  .kcard td {
    padding: calc(6 * var(--desktop-unit)) calc(8 * var(--desktop-unit));
    border-bottom: calc(1 * var(--desktop-unit)) dashed rgba(30, 39, 64, .14);
  }
  .kcard td:last-child {
    font: 800 calc(15 * var(--desktop-unit))/1 var(--display);
  }
  .kcard tr.on td:first-child {
    border-radius: calc(8 * var(--desktop-unit)) 0 0 calc(8 * var(--desktop-unit));
  }
  .kcard tr.on td:last-child {
    border-radius: 0 calc(8 * var(--desktop-unit)) calc(8 * var(--desktop-unit)) 0;
  }
  .kcard .price {
    margin: calc(4 * var(--desktop-unit)) 0 calc(8 * var(--desktop-unit));
    padding: calc(10 * var(--desktop-unit)) calc(12 * var(--desktop-unit));
    border-radius: calc(12 * var(--desktop-unit));
  }
  .kcard .price span {
    font: 800 calc(13 * var(--desktop-unit))/1 var(--body);
    letter-spacing: .06em;
  }
  .kcard .price b {
    font: 800 calc(24 * var(--desktop-unit))/1 var(--display);
  }
  .kcard .foot {
    gap: calc(8 * var(--desktop-unit));
    margin-top: calc(8 * var(--desktop-unit));
    font: 800 calc(12 * var(--desktop-unit))/1.2 var(--body);
  }
  .kcard .owner {
    margin-top: calc(8 * var(--desktop-unit));
    gap: calc(8 * var(--desktop-unit));
    padding: calc(8 * var(--desktop-unit));
    border-radius: calc(12 * var(--desktop-unit));
    font: 800 calc(14 * var(--desktop-unit))/1 var(--display);
  }
  .kcard .owner i {
    width: calc(12 * var(--desktop-unit));
    height: calc(12 * var(--desktop-unit));
    border-radius: 50%;
  }
  .kcard .actions {
    grid-template-columns: 1fr 1fr;
    gap: calc(10 * var(--desktop-unit));
    margin-top: calc(12 * var(--desktop-unit));
  }
  .kcard .actions .btn {
    min-height: calc(50 * var(--desktop-unit));
    font-size: calc(17 * var(--desktop-unit));
    padding: 0 calc(10 * var(--desktop-unit));
  }
  .kcard .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kcard .actions > .btn {
    min-width: 0;
  }
  .kcard .x {
    right: calc(-10 * var(--desktop-unit));
    top: calc(-10 * var(--desktop-unit));
    width: calc(40 * var(--desktop-unit));
    height: calc(40 * var(--desktop-unit));
    border-radius: 50%;
    font: 800 calc(20 * var(--desktop-unit))/1 var(--display);
  }
  .kcard .note {
    margin-top: calc(8 * var(--desktop-unit));
    font: 700 calc(12 * var(--desktop-unit))/1.35 var(--body);
  }
  .kcard .setx {
    font: 800 calc(11 * var(--desktop-unit)) var(--body);
  }
  .kcard .badges {
    gap: calc(6 * var(--desktop-unit));
    margin: calc(-2 * var(--desktop-unit)) 0 calc(8 * var(--desktop-unit));
  }
  .kcard .badge-s,
  .kcard .badge-d {
    font: 800 calc(12 * var(--desktop-unit))/1 var(--body);
    padding: calc(6 * var(--desktop-unit)) calc(9 * var(--desktop-unit));
    border-radius: calc(999 * var(--desktop-unit));
  }
  .kcard.offer {
    width: min(calc(360 * var(--desktop-unit)), calc(1689.6 * var(--desktop-unit)));
  }
  .kcard.offer .head h3 {
    font-size: calc(28 * var(--desktop-unit));
  }
  .kcard .ctimer {
    left: calc(18 * var(--desktop-unit));
    right: calc(18 * var(--desktop-unit));
    top: calc(6 * var(--desktop-unit));
    height: calc(5 * var(--desktop-unit));
    border-radius: calc(3 * var(--desktop-unit));
  }
  .kcard .ctimer i {
    height: 100%;
    width: 100%;
  }
  .kcard .x.tut-target::after {
    bottom: auto;
    top: calc(44 * var(--desktop-unit));
    left: auto;
    right: 0;
    transform: none;
  }
  .kcard .ctimer {
    left: 50%;
    top: calc(-30 * var(--desktop-unit));
    transform: translateX(-50%);
    width: calc(62 * var(--desktop-unit));
    height: calc(62 * var(--desktop-unit));
    border-radius: 50%;
  }
  .kcard .ctimer b {
    font: 800 calc(24 * var(--desktop-unit))/1 var(--display);
  }
  .kcard .ctimer small {
    font: 800 calc(10 * var(--desktop-unit))/1 var(--body);
    letter-spacing: .08em;
  }
  .kcard .ctimer {
    top: calc(-46 * var(--desktop-unit)) !important;
  }
  .kcard.offer.incoming {
    width: min(calc(560 * var(--desktop-unit)), calc(1804.8 * var(--desktop-unit)));
  }
  .kcard.offer.incoming.compact {
    width: min(calc(360 * var(--desktop-unit)), calc(1804.8 * var(--desktop-unit)));
  }
  @media (max-width: 860px), (max-aspect-ratio: 9/10) {
    .overlay.side .kcard.offer.incoming.compact {
      width: 100%;
    }
  }
  :dir(rtl) .kcard .x {
    right: auto;
    left: calc(-10 * var(--desktop-unit));
  }
  @media (hover: hover) and (pointer: fine) {
    .kcard .x:hover {
      transform: scale(1.08);
    }
  }
  .kcard.corner {
    width: min(calc(360 * var(--desktop-unit)), calc(1728 * var(--desktop-unit)));
  }
  .kcard.corner .cscroll {
    max-height: calc(calc(1080 * var(--desktop-unit)) - calc(64 * var(--desktop-unit)));
    border-radius: calc(16 * var(--desktop-unit));
  }
  .kcard.corner .head {
    padding-top: calc(16 * var(--desktop-unit));
  }
  .kcard .chead-ic {
    left: calc(12 * var(--desktop-unit));
    top: 50%;
    transform: translateY(-50%);
    width: calc(44 * var(--desktop-unit));
    height: calc(44 * var(--desktop-unit));
    border-radius: calc(14 * var(--desktop-unit));
  }
  .kcard .chead-ic svg {
    width: calc(26 * var(--desktop-unit));
    height: calc(26 * var(--desktop-unit));
  }
  :dir(rtl) .kcard .chead-ic {
    left: auto;
    right: calc(12 * var(--desktop-unit));
  }
  .kcard.corner .head h3 {
    padding-inline: calc(40 * var(--desktop-unit));
  }
  .kcard .cscene svg {
    width: 100%;
    height: 100%;
  }
  .kcard .effects {
    margin-top: calc(8 * var(--desktop-unit));
    padding: calc(9 * var(--desktop-unit)) calc(12 * var(--desktop-unit));
    border-radius: calc(12 * var(--desktop-unit));
  }
  .kcard .effects h5 {
    gap: calc(6 * var(--desktop-unit));
    margin: 0 0 calc(6 * var(--desktop-unit));
    font: 800 calc(13 * var(--desktop-unit))/1 var(--display);
  }
  .kcard .effects h5 svg {
    width: calc(16 * var(--desktop-unit));
    height: calc(16 * var(--desktop-unit));
  }
  .kcard .effects ul {
    margin: 0;
    padding: 0;
    gap: calc(4 * var(--desktop-unit));
  }
  .kcard .effects li {
    gap: calc(8 * var(--desktop-unit));
    font: 700 calc(13 * var(--desktop-unit))/1.25 var(--body);
  }
  .kcard .effects li em {
    font: 800 calc(12 * var(--desktop-unit))/1.2 var(--display);
  }
  .kcard .effects p {
    margin: 0;
    font: 700 calc(12 * var(--desktop-unit)) var(--body);
  }
  .kcard .badges .badge-d svg,
  .kcard .badges .badge-o svg {
    width: calc(14 * var(--desktop-unit));
    height: calc(14 * var(--desktop-unit));
  }
  @media (orientation: landscape) and (max-height: 540px) {
    .kcard .head {
      padding: calc(8 * var(--desktop-unit)) calc(12 * var(--desktop-unit)) calc(7 * var(--desktop-unit));
    }
    .kcard .head h3 {
      font-size: calc(24 * var(--desktop-unit));
    }
    .kcard.corner .head {
      padding-top: calc(10 * var(--desktop-unit));
    }
    .kcard .art {
      height: calc(92 * var(--desktop-unit));
    }
    .kcard .art svg,
    .kcard .art img {
      height: 100%;
      width: 100%;
    }
    .kcard td {
      padding: calc(3 * var(--desktop-unit)) calc(8 * var(--desktop-unit));
    }
    .kcard .price {
      margin: calc(3 * var(--desktop-unit)) 0 calc(5 * var(--desktop-unit));
      padding: calc(7 * var(--desktop-unit)) calc(10 * var(--desktop-unit));
    }
    .kcard .price b {
      font-size: calc(20 * var(--desktop-unit));
    }
    .kcard .actions {
      margin-top: calc(8 * var(--desktop-unit));
      gap: calc(8 * var(--desktop-unit));
    }
    .kcard .actions .btn {
      min-height: calc(42 * var(--desktop-unit));
      font-size: calc(15 * var(--desktop-unit));
    }
    .kcard .ctimer {
      width: calc(50 * var(--desktop-unit)) !important;
      height: calc(50 * var(--desktop-unit)) !important;
      top: calc(-36 * var(--desktop-unit)) !important;
    }
    .kcard .ctimer b {
      font-size: calc(19 * var(--desktop-unit));
    }
    .kcard.corner .cscroll {
      max-height: calc(calc(1080 * var(--desktop-unit)) - calc(34 * var(--desktop-unit)));
    }
    .overlay.side .kcard.offer.incoming.compact {
      width: min(calc(360 * var(--desktop-unit)), calc(1036.8 * var(--desktop-unit)));
    }
  }
  .kcard.kc2 {
    width: min(calc(680 * var(--desktop-unit)), calc(calc(1920 * var(--desktop-unit)) - calc(28 * var(--desktop-unit)))) !important;
    max-width: none;
  }
  .kcard.kc2:not(.corner),
  .kcard.corner.kc2 .cscroll {
    column-gap: calc(14 * var(--desktop-unit));
    height: var(--kc2h);
    max-height: none;
  }
  .kcard.kc2:not(.corner) > *:not(.x):not(.ctimer),
  .kcard.corner.kc2 .cscroll > * {
    width: calc(50% - calc(7 * var(--desktop-unit)));
  }
  .kcard.kc2 .art {
    height: auto;
    min-height: calc(70 * var(--desktop-unit));
    max-height: 42%;
  }
  .kcard.kc2 .art svg {
    height: 100%;
    min-height: calc(70 * var(--desktop-unit));
  }
  .kcard.kc2 .actions {
    margin-top: auto;
  }
  .kcard.purchase-card.kc2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: calc(10 * var(--desktop-unit)) calc(14 * var(--desktop-unit));
  }
  .kcard.purchase-card.kc2 > .purchase-visual,
  .kcard.purchase-card.kc2 > .purchase-details,
  .kcard.purchase-card.kc2 > .actions {
    width: 100% !important;
    min-width: 0;
    min-height: 0;
  }
  .kcard.purchase-card.kc2 .purchase-visual .art {
    width: 82%;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .kcard.purchase-card.kc2 .purchase-visual .art svg {
    inset: 0;
    min-height: 0;
  }
  .kcard.purchase-card.kc2 > .actions {
    margin-top: 0;
  }
  .kcard.kc2 .x {
    top: calc(-14 * var(--desktop-unit));
    right: calc(-12 * var(--desktop-unit));
  }
  .kcard.corner.kc2 .cscroll {
    grid-template-columns: 1fr 1fr;
    column-gap: calc(14 * var(--desktop-unit));
    height: auto !important;
    min-height: 0;
  }
  .kcard.corner.kc2 .cscroll > * {
    width: auto !important;
  }
  .kcard.corner.kc2 .cl,
  .kcard.corner.kc2 .cr {
    min-height: 0;
    min-width: 0;
  }
  .kcard.corner.kc2 .cl .art {
    max-height: none;
    min-height: calc(120 * var(--desktop-unit));
  }
  .kcard.corner.kc2 .cl .art svg {
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .kcard.corner.kc2 .cl .cstat {
    margin-bottom: 0;
  }
  .kcard.corner.kc2 .cr .actions {
    margin-top: auto;
    padding-top: calc(8 * var(--desktop-unit));
  }
  .kcard .kstate {
    gap: calc(3 * var(--desktop-unit));
    margin: calc(8 * var(--desktop-unit)) 0 0;
    padding: calc(9 * var(--desktop-unit)) calc(12 * var(--desktop-unit));
    border-radius: calc(14 * var(--desktop-unit));
  }
  .kcard .kstate b {
    gap: calc(6 * var(--desktop-unit));
    font: 800 calc(15 * var(--desktop-unit))/1.1 var(--display);
  }
  .kcard .kstate b svg {
    width: calc(18 * var(--desktop-unit));
    height: calc(18 * var(--desktop-unit));
  }
  .kcard .kstate small {
    font: 700 calc(12.5 * var(--desktop-unit))/1.35 var(--body);
  }
  .kcard .kset {
    margin: calc(10 * var(--desktop-unit)) 0 0;
    padding: calc(9 * var(--desktop-unit)) calc(12 * var(--desktop-unit));
    border-radius: calc(14 * var(--desktop-unit));
  }
  .kcard .kset h5 {
    margin: 0 0 calc(6 * var(--desktop-unit));
    gap: calc(8 * var(--desktop-unit));
    font: 800 calc(13 * var(--desktop-unit))/1 var(--display);
    letter-spacing: .02em;
  }
  .kcard .kset h5 small {
    margin-left: auto;
    font: 800 calc(11.5 * var(--desktop-unit))/1 var(--body);
  }
  .kcard .kset ul {
    margin: 0;
    padding: 0;
    gap: calc(4 * var(--desktop-unit));
  }
  .kcard .kset li {
    grid-template-columns: calc(12 * var(--desktop-unit)) minmax(0, 1fr) auto;
    gap: calc(7 * var(--desktop-unit));
    font: 700 calc(12.5 * var(--desktop-unit))/1.2 var(--body);
  }
  .kcard .kset li i {
    width: calc(11 * var(--desktop-unit));
    height: calc(11 * var(--desktop-unit));
    border-radius: 50%;
  }
  .kcard .kset li em {
    font-size: calc(11.5 * var(--desktop-unit));
    max-width: calc(110 * var(--desktop-unit));
  }
  .kcard .kset p {
    margin: calc(6 * var(--desktop-unit)) 0 0;
    font: 700 calc(11.5 * var(--desktop-unit))/1.35 var(--body);
  }
  @media (min-width: 1900px) and (min-height: 1000px) and (pointer: fine) {
    .kcard {
      width: min(calc(339.84 * var(--desktop-unit)), calc(340.20000000000005 * var(--desktop-unit)));
      max-width: none;
      padding: clamp(calc(12 * var(--desktop-unit)), min(calc(12.096 * var(--desktop-unit)), calc(11.988000000000001 * var(--desktop-unit))), calc(24 * var(--desktop-unit)));
      border-radius: clamp(calc(26 * var(--desktop-unit)), min(calc(25.92 * var(--desktop-unit)), calc(25.92 * var(--desktop-unit))), calc(52 * var(--desktop-unit)));
    }
    .kcard .head {
      padding: clamp(calc(12 * var(--desktop-unit)), min(calc(12.096 * var(--desktop-unit)), calc(11.988000000000001 * var(--desktop-unit))), calc(24 * var(--desktop-unit))) clamp(calc(14 * var(--desktop-unit)), min(calc(14.016 * var(--desktop-unit)), calc(14.040000000000001 * var(--desktop-unit))), calc(28 * var(--desktop-unit)));
      border-radius: clamp(calc(16 * var(--desktop-unit)), min(calc(15.935999999999998 * var(--desktop-unit)), calc(15.984 * var(--desktop-unit))), calc(32 * var(--desktop-unit)));
    }
    .kcard .head small {
      font-size: clamp(calc(11 * var(--desktop-unit)), min(calc(10.943999999999999 * var(--desktop-unit)), calc(11.016000000000002 * var(--desktop-unit))), calc(22 * var(--desktop-unit)));
    }
    .kcard .head h3 {
      font-size: clamp(calc(30 * var(--desktop-unit)), min(calc(29.951999999999998 * var(--desktop-unit)), calc(30.024 * var(--desktop-unit))), calc(60 * var(--desktop-unit)));
    }
    .kcard .tag,
    .kcard table {
      font-size: clamp(calc(13 * var(--desktop-unit)), min(calc(13.056000000000001 * var(--desktop-unit)), calc(12.96 * var(--desktop-unit))), calc(26 * var(--desktop-unit)));
    }
    .kcard td:last-child {
      font-size: clamp(calc(15 * var(--desktop-unit)), min(calc(14.975999999999999 * var(--desktop-unit)), calc(15.012 * var(--desktop-unit))), calc(30 * var(--desktop-unit)));
    }
    .kcard .price b {
      font-size: clamp(calc(24 * var(--desktop-unit)), min(calc(24 * var(--desktop-unit)), calc(23.976000000000003 * var(--desktop-unit))), calc(48 * var(--desktop-unit)));
    }
    .kcard .actions {
      gap: clamp(calc(10 * var(--desktop-unit)), min(calc(9.984 * var(--desktop-unit)), calc(10.044 * var(--desktop-unit))), calc(20 * var(--desktop-unit)));
      margin-top: clamp(calc(12 * var(--desktop-unit)), min(calc(12.096 * var(--desktop-unit)), calc(11.988000000000001 * var(--desktop-unit))), calc(24 * var(--desktop-unit)));
    }
  }
  .kcard.corner .cscroll::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  .overlay .kcard.offer.incoming.compact {
    max-height: calc(var(--visible-height) - var(--safe-t) - var(--safe-b) - calc(54 * var(--desktop-unit)));
    min-height: 0;
  }
  @media (orientation: landscape) and (max-height: 600px) {
    .overlay .kcard.offer.incoming.compact {
      width: min(calc(400 * var(--desktop-unit)), calc(883.1999999999999 * var(--desktop-unit))) !important;
    }
  }
  @media (orientation: landscape) and (max-height: 540px) {
    .overlay .kcard.offer.incoming.compact {
      width: min(calc(420 * var(--desktop-unit)), calc(1036.8 * var(--desktop-unit)));
    }
  }
  .kcard.purchase-card.kc2 .purchase-visual > .head h3 {
    line-height: 1.12;
  }
  .kcard.purchase-card.kc2 .purchase-visual .art {
    width: min(82%, max(calc(110 * var(--desktop-unit)), calc((var(--kc2h) - calc(160 * var(--desktop-unit)))*1.77778)));
  }
  .kcard.purchase-card.kc2 > .purchase-details {
    padding-inline-end: calc(5 * var(--desktop-unit));
  }
}
main.menu.festival-menu:not(.festival-front) > .festival-detail-footer {
  display: none !important;
}
main.menu.festival-detail.shop-preview-mode.shop-preview-mode,
main.menu.festival-detail.ranked-mode {
  grid-template-rows: calc(52 * var(--ui-scale)) minmax(0, 1fr) !important;
}
main.menu.festival-detail.shop-preview-mode.shop-preview-mode > .festival-detail-header {
  min-width: 0 !important;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, auto) !important;
}
.festival-detail-header > .festival-section-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-header-tools {
  justify-content: end;
  min-width: 0 !important;
  max-width: 100%;
  gap: calc(10 * var(--ui-scale));
}
.catalog-header-tools > .premium-card {
  flex: 0 1 auto;
  min-width: 0 !important;
  max-width: calc(225 * var(--ui-scale)) !important;
}
.catalog-header-tools .premium-summary {
  min-width: 0 !important;
  max-width: 100%;
  padding-inline: calc(10 * var(--ui-scale)) !important;
}
.catalog-header-tools .premium-summary > b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-header-tools .premium-summary > span {
  flex: none;
}
.catalog-header-tools > .catalog-header-wallet {
  flex: 0 1 auto;
  min-width: 0 !important;
  white-space: nowrap;
  gap: calc(7 * var(--ui-scale)) !important;
  padding-inline: calc(9 * var(--ui-scale)) !important;
}
.catalog-header-tools .ad-coin {
  flex: none;
  max-width: 100%;
  white-space: nowrap;
}
.catalog-header-tools > .icon-btn {
  flex: none;
}
.festival-detail.shop-preview-mode > .shop-world-preview {
  min-width: 0 !important;
  max-width: 100%;
  overflow: hidden;
}
.festival-detail.shop-preview-mode .catalog-preview-art {
  left: 4% !important;
  right: auto !important;
  width: 92% !important;
  max-width: 92%;
  overflow: visible;
}
.festival-detail.shop-preview-mode .catalog-preview-art > canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (min-width: 1921px) and (min-height: 900px) {
  :root {
    --desktop-factor:min(calc(100vw / 1920px),calc(100dvh / 1080px));
  }
  main.festival-menu:is([data-menu-state=create], [data-menu-state=join]) > #menu-panel {
    zoom: var(--desktop-factor);
    --ui-scale:1.2px;
    max-height: calc(95dvh / var(--desktop-factor)) !important;
  }
  main.festival-menu > .festival-detail-header > .festival-section-title {
    font-size: calc(27 * var(--desktop-unit));
  }
  main.festival-menu > .festival-detail-header > .icon-btn {
    width: calc(46 * var(--desktop-unit));
    height: calc(46 * var(--desktop-unit));
    border-radius: calc(15 * var(--desktop-unit));
  }
  main.festival-menu > .festival-detail-header > .icon-btn > svg {
    width: calc(22 * var(--desktop-unit));
    height: calc(22 * var(--desktop-unit));
  }
  .catalog-header-tools > [data-go=shop] {
    font-size: calc(18 * var(--desktop-unit));
    padding: 0 calc(24 * var(--desktop-unit));
    min-height: calc(52 * var(--desktop-unit));
    border-radius: calc(18 * var(--desktop-unit));
  }
  .catalog-header-tools .ad-coin {
    font-size: calc(14 * var(--desktop-unit)) !important;
    min-height: calc(36 * var(--desktop-unit)) !important;
    padding: calc(4 * var(--desktop-unit)) calc(8 * var(--desktop-unit)) !important;
  }
  .catalog-header-tools .ad-coin > svg {
    width: calc(20 * var(--desktop-unit)) !important;
    height: calc(20 * var(--desktop-unit)) !important;
  }
  .catalog-header-tools .ad-coin small {
    font-size: calc(10 * var(--desktop-unit)) !important;
  }
  .catalog-header-tools > .catalog-header-wallet > .coin {
    width: calc(24 * var(--desktop-unit)) !important;
    height: calc(24 * var(--desktop-unit)) !important;
  }
  main.festival-menu .btn > svg {
    width: calc(24 * var(--desktop-unit));
    height: calc(24 * var(--desktop-unit));
  }
  main.festival-menu .icon-btn > svg {
    width: calc(22 * var(--desktop-unit));
    height: calc(22 * var(--desktop-unit));
  }
  .pcard .pname-profile {
    gap: calc(1 * var(--desktop-unit));
    min-height: calc(27 * var(--desktop-unit));
  }
  .pcard .hud-profile-hint {
    font-size: calc(9 * var(--desktop-unit)) !important;
  }
  .pcard .balance-line {
    gap: calc(5 * var(--desktop-unit));
    margin-top: calc(-3 * var(--desktop-unit));
    margin-bottom: calc(4 * var(--desktop-unit));
  }
  .pcard .player-tools {
    gap: calc(5 * var(--desktop-unit));
  }
  .pcard .player-properties {
    min-height: calc(40 * var(--desktop-unit));
    min-width: calc(48 * var(--desktop-unit));
    padding: calc(7 * var(--desktop-unit)) calc(10 * var(--desktop-unit));
    font-size: calc(14 * var(--desktop-unit));
    gap: calc(5 * var(--desktop-unit));
    border-radius: calc(5 * var(--desktop-unit));
  }
  .pcard .player-properties .ic {
    width: calc(20 * var(--desktop-unit));
    height: calc(20 * var(--desktop-unit));
  }
  .pcard .player-offers {
    width: calc(40 * var(--desktop-unit));
    height: calc(40 * var(--desktop-unit));
    padding: calc(5 * var(--desktop-unit));
    border-radius: calc(5 * var(--desktop-unit));
  }
  .pcard .player-offers .ic {
    width: calc(22 * var(--desktop-unit));
    height: calc(22 * var(--desktop-unit));
  }
  .pcard .ptimer {
    height: calc(12 * var(--desktop-unit));
    margin-top: calc(2 * var(--desktop-unit));
  }
  .pcard .ptimer span {
    inset-inline: calc(4 * var(--desktop-unit));
    font-size: calc(10 * var(--desktop-unit));
    line-height: calc(12 * var(--desktop-unit));
  }
  #modal > .overlay > .sheet.podium-sheet {
    width: min(calc(900 * var(--desktop-unit)), 100%);
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  main.menu.festival-detail.shop-preview-mode.shop-preview-mode,
  main.menu.festival-detail.ranked-mode {
    grid-template-rows: 38px minmax(0, 1fr) !important;
  }
  .catalog-header-tools {
    gap: 6px !important;
  }
  .catalog-header-tools > .premium-card {
    max-width: 150px !important;
  }
  .catalog-header-tools .premium-summary {
    padding-inline: 7px !important;
  }
  .catalog-header-tools > .catalog-header-wallet {
    padding-inline: 6px !important;
    gap: 5px !important;
  }
  .catalog-header-tools .ad-coin {
    font-size: 11px !important;
    padding: 4px 7px !important;
    min-width: 0 !important;
  }
}
@media (max-width: 660px) {
  .catalog-header-tools > .premium-card {
    max-width: 115px !important;
  }
  .catalog-header-tools .premium-summary > b {
    font-size: 11px !important;
  }
  .catalog-header-tools > .catalog-header-wallet {
    font-size: 15px !important;
  }
  .catalog-header-tools > .catalog-header-wallet > .coin {
    width: 16px !important;
    height: 16px !important;
  }
  .catalog-header-tools .ad-coin {
    font-size: 9px !important;
    padding: 3px 5px !important;
  }
}
.festival-front .character-lobby .lobby-profile {
  position: absolute;
  left: max(calc(26 * var(--desktop-unit)), var(--safe-l));
  top: calc(16 * var(--desktop-unit));
  width: 24%;
  max-width: calc(330 * var(--desktop-unit));
  z-index: 6;
  border: calc(1 * var(--desktop-unit)) solid #b7afce69;
  border-bottom: calc(4 * var(--desktop-unit)) solid #17172f;
  border-radius: calc(16 * var(--desktop-unit));
  background:
    linear-gradient(
      130deg,
      #344461,
      #22334c);
  box-shadow: inset 0 calc(1 * var(--desktop-unit)) #f3e3ff25;
}
.festival-front .character-lobby.kzm-halloween .lobby-profile {
  background:
    linear-gradient(
      130deg,
      #343051,
      #26213e);
}
.festival-front .character-lobby .lobby-profile > .lobby-account {
  position: static !important;
  display: block;
  width: 100%;
  max-width: none !important;
}
.festival-front .character-lobby .lobby-profile .acct-chip {
  min-height: calc(65 * var(--desktop-unit));
  max-height: none;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
  border-radius: calc(14 * var(--desktop-unit)) !important;
}
.festival-front .character-lobby .lobby-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(10 * var(--desktop-unit));
  margin: calc(-1 * var(--desktop-unit)) calc(13 * var(--desktop-unit)) calc(8 * var(--desktop-unit)) calc(72 * var(--desktop-unit));
  color: #ffe6ab;
  font: 800 calc(12 * var(--desktop-unit))/1 Nunito;
  pointer-events: none;
}
.festival-front .character-lobby .lobby-xp-track {
  display: block;
  overflow: hidden;
  height: calc(6 * var(--desktop-unit));
  border-radius: calc(8 * var(--desktop-unit));
  background: #12132c;
  box-shadow: 0 calc(1 * var(--desktop-unit)) #b7acd53a;
}
.festival-front .character-lobby .lobby-xp-bar {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #c4a0ef,
      #f1c876,
      #ffe6a4);
  box-shadow: inset 0 calc(1 * var(--desktop-unit)) #fff7ce80;
}
.festival-front .character-lobby .lobby-progress > b {
  white-space: nowrap;
}
.festival-front .character-lobby .lobby-xp-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.festival-front .character-lobby .lobby-wallet {
  position: relative;
  min-width: calc(80 * var(--desktop-unit));
  padding-inline: calc(12 * var(--desktop-unit)) calc(17 * var(--desktop-unit));
}
.festival-front .character-lobby .lobby-wallet-add {
  position: absolute;
  right: 0;
  bottom: calc(-8 * var(--desktop-unit));
  display: grid;
  place-items: center;
  width: calc(24 * var(--desktop-unit));
  height: calc(24 * var(--desktop-unit));
  border-radius: 50%;
  border: calc(1.5 * var(--desktop-unit)) solid #f4d19c;
  border-bottom: calc(3 * var(--desktop-unit)) solid #a27032;
  background: linear-gradient(#ffe7a0, #f5c157);
  box-shadow: 0 calc(2 * var(--desktop-unit)) calc(5 * var(--desktop-unit)) #18102e70;
  color: #5c3b29;
  font: 900 calc(20 * var(--desktop-unit))/1 Nunito;
}
.festival-front .character-lobby .lobby-tile > .lobby-notice {
  right: calc(-5 * var(--desktop-unit));
  top: calc(-7 * var(--desktop-unit));
  display: grid;
  place-items: center;
  min-width: calc(23 * var(--desktop-unit));
  min-height: calc(23 * var(--desktop-unit));
  padding: calc(2 * var(--desktop-unit)) calc(5 * var(--desktop-unit));
  border: calc(2 * var(--desktop-unit)) solid #f3adc0;
  border-bottom-color: #8c2e52;
  border-radius: calc(14 * var(--desktop-unit));
  background: linear-gradient(#f85e7e, #c2325e);
  box-shadow: 0 calc(3 * var(--desktop-unit)) calc(6 * var(--desktop-unit)) #24112f6b;
  font: 900 calc(12 * var(--desktop-unit))/1 Nunito;
  color: #fff7ec;
}
.festival-front .character-lobby .lobby-tile > .lobby-notice[hidden] {
  display: none !important;
}
.festival-front .character-lobby .lobby-private:has(.lobby-event) {
  top: 3.5%;
}
.festival-front .character-lobby .lobby-event {
  display: grid;
  grid-template-columns: calc(67 * var(--desktop-unit)) minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(10 * var(--desktop-unit));
  min-height: calc(101 * var(--desktop-unit));
  padding: calc(10 * var(--desktop-unit)) calc(12 * var(--desktop-unit));
  margin-bottom: calc(6 * var(--desktop-unit));
  border: calc(1 * var(--desktop-unit)) solid #bda9cc8c;
  border-bottom: calc(4 * var(--desktop-unit)) solid #201a35;
  border-radius: calc(15 * var(--desktop-unit));
  background:
    linear-gradient(
      130deg,
      #5c4b75d9,
      #372b51ed);
  box-shadow: inset 0 calc(1 * var(--desktop-unit)) #efd8ff25, 0 calc(6 * var(--desktop-unit)) calc(16 * var(--desktop-unit)) #17102b26;
  text-align: start;
}
.festival-front .character-lobby .lobby-event > span:not(.lobby-event-pumpkin) {
  display: grid;
  gap: calc(7 * var(--desktop-unit));
  min-width: 0;
}
.festival-front .character-lobby .lobby-event b {
  color: #ffefcf;
  font: 800 calc(19 * var(--desktop-unit))/1.1 "Baloo 2", Nunito;
}
.festival-front .character-lobby .lobby-event small {
  font: 800 calc(11 * var(--desktop-unit))/1.2 Nunito;
  color: #cfc1dd;
}
.festival-front .character-lobby .lobby-event > i {
  font-style: normal;
  font-size: calc(26 * var(--desktop-unit));
  color: #e3bedf;
}
.festival-front .character-lobby .lobby-event-pumpkin {
  position: relative;
  display: block;
  width: calc(67 * var(--desktop-unit));
  height: calc(67 * var(--desktop-unit));
  filter: drop-shadow(0 0 calc(13 * var(--desktop-unit)) #ffc34a25);
}
.festival-front .character-lobby .lobby-event-pumpkin > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.festival-front .character-lobby .lobby-room-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--desktop-unit));
  min-width: 0;
  letter-spacing: 0;
  line-height: 1.15;
  padding: calc(3 * var(--desktop-unit)) 0;
  color: #d4c5e5;
}
.festival-front .character-lobby .lobby-room-heading > svg {
  width: calc(20 * var(--desktop-unit)) !important;
  height: calc(20 * var(--desktop-unit)) !important;
  flex: none;
  color: #b89bce;
}
.festival-front .character-lobby .lobby-room-heading > span {
  min-width: 0;
}
.festival-front .character-lobby .lobby-room-rules {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(22 * var(--desktop-unit));
  height: calc(22 * var(--desktop-unit));
  padding: 0;
  border: calc(1 * var(--desktop-unit)) solid #b7a1ce75;
  border-radius: 50%;
  background: #2b2244;
  color: #d0bfdc;
  font: 800 calc(14 * var(--desktop-unit))/1 Georgia, serif;
}
.festival-front .character-lobby .lobby-play:after,
.festival-front .character-lobby .lobby-ranked:after {
  content: "";
  position: absolute;
  top: -55%;
  left: -55%;
  width: 46%;
  height: 210%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      90deg,
      transparent,
      #fff8c936 24%,
      #fffbe4c7 50%,
      #fff8c936 76%,
      transparent);
  transform: translate3d(-150%, 0, 0) skew(-22deg);
  animation: kzm141-button-reflection 6.8s ease-in-out .7s infinite;
}
.festival-front .character-lobby .lobby-play {
  box-shadow: inset 0 calc(2 * var(--desktop-unit)) #fff6c9, 0 0 calc(18 * var(--desktop-unit)) #f6be4527;
}
.festival-front .character-lobby .lobby-play:before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: calc(1 * var(--desktop-unit));
  height: calc(2 * var(--desktop-unit));
  border-radius: 100%;
  background:
    linear-gradient(
      90deg,
      transparent,
      #fffbe7,
      transparent);
  box-shadow: 0 0 calc(8 * var(--desktop-unit)) #fff2aa6e;
  pointer-events: none;
}
.festival-front .character-lobby .lobby-ranked:after {
  animation-delay: 1.9s;
  background:
    linear-gradient(
      90deg,
      transparent,
      #f3d1af21 25%,
      #ffecc17a 50%,
      #f3d1af21 75%,
      transparent);
}
.festival-front .character-lobby .lobby-ranked > .menu-rank-crest {
  animation: kzm141-rank-rock 6.8s ease-in-out 1.9s infinite;
}
@keyframes kzm141-button-reflection {
  0%, 48% {
    opacity: 0;
    transform: translate3d(-150%, 0, 0) skew(-22deg);
  }
  49% {
    opacity: 1;
  }
  66% {
    opacity: 1;
    transform: translate3d(430%, 0, 0) skew(-22deg);
  }
  68%, 100% {
    opacity: 0;
    transform: translate3d(430%, 0, 0) skew(-22deg);
  }
}
@keyframes kzm141-rank-rock {
  0%, 48%, 69%, 100% {
    transform: rotate(0);
  }
  53% {
    transform: rotate(-5deg);
  }
  57% {
    transform: rotate(4deg);
  }
  61% {
    transform: rotate(-3deg);
  }
  65% {
    transform: rotate(1deg);
  }
}
.festival-front .character-lobby .lobby-pumpkin-light {
  position: absolute;
  inset: 0;
  display: block;
  opacity: .93;
  background: #ffe7a1;
  -webkit-mask: url(../assets/menu/lobby-pumpkin-light.webp) center/contain no-repeat;
  mask: url(../assets/menu/lobby-pumpkin-light.webp) center/contain no-repeat;
  filter: drop-shadow(0 0 calc(5 * var(--desktop-unit)) #ffdf86) drop-shadow(0 0 calc(12 * var(--desktop-unit)) #ffb23d66) !important;
  animation: kzm141-pumpkin-warmth 7s ease-in-out infinite;
}
.festival-front .character-lobby .lobby-pumpkin.second .lobby-pumpkin-light {
  animation-delay: -3s;
}
@keyframes kzm141-pumpkin-warmth {
  0%, 100% {
    opacity: .83;
  }
  45%, 65% {
    opacity: 1;
  }
}
.festival-front .character-lobby .lobby-front-fog,
.festival-front .character-lobby .lobby-front-fog:before,
.festival-front .character-lobby .lobby-front-fog:after {
  background: none !important;
  filter: none !important;
  animation: none !important;
}
.festival-front .character-lobby .lobby-foot-aura {
  position: absolute;
  left: 25%;
  bottom: 12%;
  width: 50%;
  height: 59%;
  z-index: 2;
  pointer-events: none;
  opacity: .34;
  mask-image:
    linear-gradient(
      transparent,
      #0008 25%,
      #000 90%,
      transparent);
}
.festival-front .character-lobby .lobby-foot-aura > i {
  position: absolute;
  bottom: 0;
  left: 14%;
  width: 18%;
  height: 90%;
  background:
    linear-gradient(
      0deg,
      #f4c6ff75,
      #e5a5ef24 52%,
      transparent);
  filter: blur(calc(6 * var(--desktop-unit)));
  transform: skew(-7deg);
  animation: kzm141-foot-aura 10s ease-in-out infinite alternate;
}
.festival-front .character-lobby .lobby-foot-aura > i:nth-child(2) {
  left: 46%;
  height: 100%;
  width: 14%;
  transform: skew(5deg);
  animation-delay: -3s;
}
.festival-front .character-lobby .lobby-foot-aura > i:nth-child(3) {
  left: 75%;
  width: 9%;
  height: 73%;
  animation-delay: -6s;
}
@keyframes kzm141-foot-aura {
  from {
    opacity: .45;
    translate: 0 1%;
  }
  to {
    opacity: .85;
    translate: 4% -3%;
  }
}
.festival-front .character-lobby .lobby-game-props {
  isolation: isolate;
}
.festival-front .character-lobby .lobby-game-props:before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 11%;
  bottom: 8%;
  width: 78%;
  height: 105%;
  background:
    repeating-conic-gradient(
      from 2deg,
      transparent 0deg 20deg,
      #ffe1a454 22deg 24deg,
      transparent 26deg 44deg);
  mask-image:
    radial-gradient(
      ellipse,
      #0009,
      transparent 65%);
  opacity: .45;
  transform: rotate(-8deg);
  pointer-events: none;
}
.festival-front .character-lobby .lobby-game-props > img {
  object-fit: contain;
  filter: drop-shadow(0 calc(4 * var(--desktop-unit)) calc(5 * var(--desktop-unit)) #17102280);
}
.lobby-scenery .lobby-stars,
.lobby-scenery .lobby-bats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lobby-scenery .lobby-stars > i {
  position: absolute;
  left: var(--star-x);
  top: var(--star-y);
  width: calc(var(--star-size) * var(--desktop-unit));
  height: calc(var(--star-size) * var(--desktop-unit));
  border-radius: 50%;
  background: #f1d5e9;
  opacity: .28;
  box-shadow: 0 0 calc(4 * var(--desktop-unit)) #e7bce449;
}
.lobby-scenery .lobby-stars > i.twinkle {
  animation: kzm141-star-twinkle 9s ease-in-out var(--star-delay) infinite;
}
@keyframes kzm141-star-twinkle {
  0%, 40%, 100% {
    opacity: .22;
  }
  50%, 55% {
    opacity: .64;
  }
  65% {
    opacity: .28;
  }
}
.lobby-scenery .lobby-bunting {
  position: absolute;
  left: -2%;
  top: 0;
  width: 43%;
  height: 19%;
  overflow: visible;
  opacity: .56;
  pointer-events: none;
  filter: drop-shadow(0 calc(2 * var(--desktop-unit)) calc(3 * var(--desktop-unit)) #21142a33);
}
.lobby-scenery .lobby-bunting.right {
  left: auto;
  right: -2%;
  transform: scaleX(-1);
}
.lobby-scenery .lobby-bunting-rope {
  fill: none;
  stroke: #30223e;
  stroke-width: 2.5;
  opacity: .7;
}
.lobby-scenery .pennant-cloth {
  fill: #744464;
  stroke: #a16c873b;
  stroke-width: 1;
}
.lobby-scenery .lobby-pennant:nth-child(even) .pennant-cloth {
  fill: #584172;
}
.lobby-scenery .lobby-pennant {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: kzm141-pennant-sway 8s ease-in-out var(--sway-delay) infinite alternate;
}
@keyframes kzm141-pennant-sway {
  from {
    rotate: -2deg;
  }
  to {
    rotate: 2deg;
  }
}
.lobby-scenery .lobby-bat {
  position: absolute;
  left: 32%;
  top: 19%;
  width: calc(38 * var(--desktop-unit));
  height: calc(20 * var(--desktop-unit));
  fill: #251c3d;
  opacity: .40;
  animation: kzm141-bat-flight 23s ease-in-out infinite alternate;
}
.lobby-scenery .lobby-bat.bat-1 {
  left: 72%;
  top: 27%;
  width: calc(25 * var(--desktop-unit));
  height: calc(14 * var(--desktop-unit));
  opacity: .28;
  animation-delay: -8s;
  animation-duration: 29s;
}
.lobby-scenery .lobby-bat.bat-2 {
  left: 25%;
  top: 32%;
  width: calc(20 * var(--desktop-unit));
  height: calc(12 * var(--desktop-unit));
  opacity: .22;
  animation-delay: -15s;
  animation-duration: 31s;
}
.lobby-scenery .bat-wing {
  transform-box: fill-box;
  animation: kzm141-bat-wing 1.2s ease-in-out infinite alternate;
}
.lobby-scenery .bat-wing.left {
  transform-origin: 100% 60%;
}
.lobby-scenery .bat-wing.right {
  transform-origin: 0 60%;
}
@keyframes kzm141-bat-wing {
  from {
    scale: 1 .7;
    rotate: -4deg;
  }
  to {
    scale: 1 1.08;
    rotate: 4deg;
  }
}
@keyframes kzm141-bat-flight {
  0% {
    translate: 0 0;
    rotate: -3deg;
  }
  50% {
    translate: calc(52 * var(--desktop-unit)) calc(-14 * var(--desktop-unit));
    rotate: 2deg;
  }
  100% {
    translate: calc(105 * var(--desktop-unit)) calc(8 * var(--desktop-unit));
    rotate: -2deg;
  }
}
.social-dialog .pl-level {
  width: 100%;
  display: grid;
  gap: calc(5 * var(--desktop-unit));
  margin-top: calc(7 * var(--desktop-unit));
  padding-inline: calc(5 * var(--desktop-unit));
}
.social-dialog .pl-level > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(10 * var(--desktop-unit));
}
.social-dialog .pl-level b {
  font: 800 calc(15 * var(--desktop-unit))/1 "Baloo 2";
  color: #ffe0a2;
}
.social-dialog .pl-level span {
  font: 800 calc(11 * var(--desktop-unit))/1 Nunito;
  color: #d1cde4;
}
.social-dialog .pl-level progress {
  appearance: none;
  width: 100%;
  height: calc(6 * var(--desktop-unit));
  border: 0;
  border-radius: calc(8 * var(--desktop-unit));
  overflow: hidden;
  background: #11172e;
}
.social-dialog .pl-level progress::-webkit-progress-bar {
  background: #11172e;
}
.social-dialog .pl-level progress::-webkit-progress-value {
  background:
    linear-gradient(
      90deg,
      #b897e4,
      #f0ce85);
  border-radius: inherit;
}
.social-dialog .pl-level progress::-moz-progress-bar {
  background:
    linear-gradient(
      90deg,
      #b897e4,
      #f0ce85);
}
@media (max-height: 600px) {
  .festival-front .character-lobby .lobby-profile {
    left: max(16px, var(--safe-l));
    top: 6px;
    width: 27%;
    max-width: 230px;
    border-radius: 12px;
  }
  .festival-front .character-lobby .lobby-profile .acct-chip {
    min-height: 35px !important;
    max-height: none !important;
    font-size: 16px;
    border-radius: 10px !important;
    padding-top: 3px !important;
    padding-bottom: 2px !important;
  }
  .festival-front .character-lobby .lobby-profile .acct-chip .chip-av {
    width: 30px !important;
    height: 30px !important;
  }
  .festival-front .character-lobby .lobby-progress {
    gap: 7px;
    margin: 0 10px 5px 49px;
    font-size: 10px;
  }
  .festival-front .character-lobby .lobby-xp-track {
    height: 4px;
  }
  .festival-front .character-lobby .lobby-private:has(.lobby-event) {
    top: 0%;
    gap: 7px;
  }
  .festival-front .character-lobby .lobby-event {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 55px;
    padding: 5px 7px;
    border-radius: 10px;
    margin-bottom: 1px;
    border-bottom-width: 3px;
  }
  .festival-front .character-lobby .lobby-event-pumpkin {
    width: 38px;
    height: 38px;
  }
  .festival-front .character-lobby .lobby-event b {
    font-size: 13px;
  }
  .festival-front .character-lobby .lobby-event small {
    font-size: 9px;
  }
  .festival-front .character-lobby .lobby-event > span:not(.lobby-event-pumpkin) {
    gap: 3px;
  }
  .festival-front .character-lobby .lobby-event > i {
    font-size: 18px;
  }
  .festival-front .character-lobby .lobby-room-heading {
    gap: 5px;
    font-size: 11px;
    padding: 1px 0;
  }
  .festival-front .character-lobby .lobby-room-heading > svg {
    width: 15px !important;
    height: 15px !important;
  }
  .festival-front .character-lobby .lobby-room-rules {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  .festival-front .character-lobby .lobby-tile > .lobby-notice {
    min-width: 17px;
    min-height: 17px;
    right: -3px;
    top: -5px;
    font-size: 9px;
    border-width: 1px;
  }
  .festival-front .character-lobby .lobby-wallet {
    min-width: 54px;
    padding-inline: 7px 11px;
  }
  .festival-front .character-lobby .lobby-wallet-add {
    width: 17px;
    height: 17px;
    font-size: 14px;
    right: 0;
    bottom: -5px;
    border-width: 1px;
    border-bottom-width: 2px;
  }
  .lobby-scenery .lobby-bunting {
    height: 21%;
    opacity: .43;
  }
  .lobby-scenery .lobby-bat {
    width: 23px;
    height: 13px;
  }
  .lobby-scenery .lobby-bat.bat-1 {
    width: 18px;
    height: 10px;
  }
  .lobby-scenery .lobby-bat.bat-2 {
    display: none;
  }
  .social-dialog .pl-level {
    gap: 3px;
    margin-top: 4px;
  }
  .social-dialog .pl-level b {
    font-size: 11px;
  }
  .social-dialog .pl-level span {
    font-size: 9px;
  }
  .social-dialog .pl-level progress {
    height: 4px;
  }
}
@media (max-width: 660px) and (max-height: 600px) {
  .festival-front .character-lobby .lobby-profile {
    left: 12px;
    width: 29%;
    max-width: 180px;
  }
  .festival-front .character-lobby .lobby-profile .acct-chip {
    font-size: 14px;
  }
  .festival-front .character-lobby .lobby-progress {
    margin-left: 45px;
    font-size: 9px;
    gap: 5px;
  }
  .festival-front .character-lobby .lobby-private:has(.lobby-event) {
    top: -1%;
    gap: 4px;
  }
  .festival-front .character-lobby .lobby-event {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 46px;
    padding: 4px 5px;
    gap: 4px;
  }
  .festival-front .character-lobby .lobby-event-pumpkin {
    width: 30px;
    height: 33px;
  }
  .festival-front .character-lobby .lobby-event > i {
    display: none;
  }
  .festival-front .character-lobby .lobby-tile > span {
    font-size: 10px;
    white-space: nowrap;
  }
  .festival-front .character-lobby .lobby-event b {
    font-size: 11px;
  }
  .festival-front .character-lobby .lobby-event small {
    font-size: 8px;
  }
  .festival-front .character-lobby .lobby-room-heading {
    font-size: 9px;
    gap: 3px;
  }
  .festival-front .character-lobby .lobby-room-heading > svg {
    width: 12px !important;
    height: 12px !important;
  }
  .festival-front .character-lobby .lobby-room-rules {
    width: 13px;
    height: 13px;
    font-size: 9px;
  }
  .festival-front .character-lobby .lobby-private .lobby-room {
    min-height: 33px;
  }
}
@media (min-width: 600px) and (orientation: portrait) {
  .festival-front .character-lobby .lobby-profile {
    width: 29%;
    max-width: 260px;
  }
  .festival-front .character-lobby .lobby-profile .acct-chip {
    min-height: 54px;
    font-size: 19px;
  }
  .festival-front .character-lobby .lobby-progress {
    margin-left: 60px;
  }
  .festival-front .character-lobby .lobby-private:has(.lobby-event) {
    top: 4%;
  }
  .festival-front .character-lobby .lobby-event {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 83px;
    padding: 7px;
  }
  .festival-front .character-lobby .lobby-event-pumpkin {
    width: 44px;
    height: 49px;
  }
  .festival-front .character-lobby .lobby-event b {
    font-size: 15px;
  }
  .festival-front .character-lobby .lobby-event small {
    font-size: 10px;
  }
  .festival-front .character-lobby .lobby-event > i {
    display: none;
  }
}
html[data-reduced-motion=true] :is(.lobby-play:after, .lobby-ranked:after, .menu-rank-crest, .lobby-pennant, .lobby-stars > i, .lobby-bat, .bat-wing, .lobby-foot-aura > i, .lobby-pumpkin-light) {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .lobby-play:after,
  .lobby-ranked:after,
  .menu-rank-crest,
  .lobby-pennant,
  .lobby-stars > i,
  .lobby-bat,
  .bat-wing,
  .lobby-foot-aura > i,
  .lobby-pumpkin-light {
    animation: none !important;
  }
}
.festival-front .character-lobby .lobby-room-heading:before,
.festival-front .character-lobby .lobby-room-heading:after {
  content: "";
  height: calc(1 * var(--desktop-unit));
  flex: 1;
  background:
    linear-gradient(
      90deg,
      transparent,
      #b5a2d549);
}
.festival-front .character-lobby .lobby-room-heading:after {
  background:
    linear-gradient(
      90deg,
      #b5a2d549,
      transparent);
}
.social-dialog:has(.wallet-sheet, .event-collection) {
  width: min(calc(880 * var(--desktop-unit)), 94vw);
  max-height: 94dvh;
  font-size: calc(14 * var(--desktop-unit));
}
.wallet-sheet,
.event-collection {
  padding: calc(20 * var(--desktop-unit));
  min-width: 0;
}
.wallet-sheet > .sheet-head,
.event-collection > .sheet-head {
  padding-bottom: calc(12 * var(--desktop-unit));
}
.wallet-sheet .sheet-head h2 {
  display: flex;
  align-items: center;
  gap: calc(9 * var(--desktop-unit));
}
.wallet-sheet .sheet-head .coin {
  width: calc(32 * var(--desktop-unit));
  height: calc(32 * var(--desktop-unit));
}
.wallet-current {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(12 * var(--desktop-unit));
  color: #c4d3ef;
}
.wallet-current > b {
  display: flex;
  align-items: center;
  gap: calc(5 * var(--desktop-unit));
  color: #ffe28b;
  font-size: calc(23 * var(--desktop-unit));
}
.wallet-current .coin {
  width: calc(25 * var(--desktop-unit));
  height: calc(25 * var(--desktop-unit));
}
.wallet-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(14 * var(--desktop-unit));
}
.wallet-option {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  justify-items: center;
  align-items: start;
  gap: calc(5 * var(--desktop-unit));
  padding: calc(14 * var(--desktop-unit));
  border: 1px solid #658db9;
  border-radius: calc(18 * var(--desktop-unit));
  background: #152e52;
  text-align: center;
}
.wallet-premium {
  border-color: #d8b862;
  background:
    linear-gradient(
      135deg,
      #4b3c56,
      #19314f);
}
.wallet-option-icon {
  display: grid;
  place-items: center;
  width: calc(39 * var(--desktop-unit));
  height: calc(39 * var(--desktop-unit));
  border-radius: 50%;
  background: #8c74bb44;
  color: #ffe499;
  font-size: calc(23 * var(--desktop-unit));
}
.wallet-option h3 {
  font-size: calc(19 * var(--desktop-unit));
  line-height: 1.15;
  margin: 0;
  color: #fff0bc;
}
.wallet-option > b {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(5 * var(--desktop-unit));
  font-size: calc(17 * var(--desktop-unit));
  color: #ffe39c;
}
.wallet-option .coin {
  width: calc(20 * var(--desktop-unit));
  height: calc(20 * var(--desktop-unit));
}
.wallet-option p {
  font-size: calc(12 * var(--desktop-unit));
  line-height: 1.3;
  color: #c9d9f1;
  margin: calc(5 * var(--desktop-unit)) 0;
  overflow-wrap: anywhere;
}
.wallet-option .btn {
  width: 100%;
  font-size: calc(16 * var(--desktop-unit));
  min-height: calc(40 * var(--desktop-unit));
}
.wallet-packs h3 {
  font-size: calc(17 * var(--desktop-unit));
  margin: calc(15 * var(--desktop-unit)) 0 calc(8 * var(--desktop-unit));
}
.wallet-pack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(9 * var(--desktop-unit));
}
.wallet-pack {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: calc(4 * var(--desktop-unit));
  padding: calc(10 * var(--desktop-unit));
  border: 1px solid #6d6d99;
  border-radius: calc(13 * var(--desktop-unit));
  color: #b7c0d7;
  background: #263756;
  box-shadow: 0 calc(3 * var(--desktop-unit)) #0b1d38;
  opacity: .65;
  cursor: default;
}
.wallet-pack .coin {
  width: calc(27 * var(--desktop-unit));
  height: calc(27 * var(--desktop-unit));
}
.wallet-pack > b {
  font-size: calc(14 * var(--desktop-unit));
}
.wallet-pack > small {
  font-size: calc(11 * var(--desktop-unit));
  color: #e1c676;
}
.event-collection > p {
  margin: 0 0 calc(16 * var(--desktop-unit));
  color: #ead29b;
}
.event-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(14 * var(--desktop-unit));
}
.event-item {
  display: grid;
  justify-items: center;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: calc(7 * var(--desktop-unit));
  padding: calc(13 * var(--desktop-unit));
  border: 2px solid #9b84bd;
  border-radius: calc(18 * var(--desktop-unit));
  background: linear-gradient(#3e3b65, #162b4d);
  color: #fff0c3;
  box-shadow: 0 calc(5 * var(--desktop-unit)) #0a1b37;
  cursor: pointer;
}
.event-item-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: calc(160 * var(--desktop-unit));
}
.event-item-art > img,
.event-item-art > svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 100%;
}
.event-item small {
  font-size: calc(13 * var(--desktop-unit));
  color: #ccd8ef;
}
.event-item b {
  font-size: calc(21 * var(--desktop-unit));
}
.event-item-go {
  font-size: calc(13 * var(--desktop-unit));
  color: #ffdc74;
}
.friends-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  flex: none;
  margin: 3px 0 5px;
}
.friends-tabs button {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 38px;
  border: 1px solid #7196c8;
  border-radius: 11px;
  background: #1c3d6b;
  color: #dbe7fb;
  font: 800 12px Nunito;
  cursor: pointer;
  padding: 5px;
}
.friends-tabs button[aria-pressed=true] {
  background: linear-gradient(#ffe99c, #f5c94d);
  color: #172e53;
  border-color: #ffde76;
  box-shadow: 0 3px #9b6e24;
}
.friends-tabs i,
.friend-unread {
  font: 800 10px Nunito;
  font-style: normal;
  background: #e54f68;
  color: white;
  min-width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  padding: 0 4px;
}
.friend-unread {
  margin-inline-start: 5px;
}
.friends-tabs i[hidden] {
  display: none;
}
.friends-sidebar > [data-friends-panel][hidden] {
  display: none !important;
}
.friend-requests h3 {
  font-size: 13px;
  margin: 10px 0 6px;
  color: #ffe19a;
}
.friend-requests .mp-help {
  font-size: 12px;
  margin: 5px 0 15px;
}
@media (min-width: 1921px) and (min-height: 900px) {
  .social-dialog:has(.friends-sheet) {
    width: min(calc(1080 * var(--desktop-unit)), 94vw);
    font-size: calc(14 * var(--desktop-unit));
  }
  .friends-sheet {
    height: min(calc(620 * var(--desktop-unit)), 86dvh);
  }
  .friends-tabs button {
    font-size: calc(12 * var(--desktop-unit));
    min-height: calc(38 * var(--desktop-unit));
  }
  .friend-person img {
    width: calc(36 * var(--desktop-unit));
    height: calc(44 * var(--desktop-unit));
  }
  .friend-person small,
  .friend-chat > small {
    font-size: calc(10 * var(--desktop-unit));
  }
  .friend-row-actions > .btn {
    font-size: calc(11 * var(--desktop-unit));
    min-height: calc(34 * var(--desktop-unit));
  }
  .friend-chat-title {
    font-size: calc(21 * var(--desktop-unit));
  }
  .friend-message {
    font-size: calc(14 * var(--desktop-unit));
  }
  .friend-message time {
    font-size: calc(9 * var(--desktop-unit));
  }
  .friend-chat-input {
    min-height: calc(40 * var(--desktop-unit));
    font-size: calc(14 * var(--desktop-unit));
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .wallet-sheet,
  .event-collection {
    padding: 10px 13px;
  }
  .wallet-sheet > .sheet-head,
  .event-collection > .sheet-head {
    padding-bottom: 5px;
  }
  .wallet-sheet .sheet-head .coin {
    width: 23px;
    height: 23px;
  }
  .wallet-current {
    margin-bottom: 5px;
    font-size: 11px;
  }
  .wallet-current > b {
    font-size: 17px;
  }
  .wallet-current .coin {
    width: 19px;
    height: 19px;
  }
  .wallet-options {
    gap: 9px;
  }
  .wallet-option {
    grid-template-rows: auto auto auto 1fr auto;
    padding: 8px;
    gap: 3px;
    border-radius: 13px;
  }
  .wallet-option-icon {
    display: none;
  }
  .wallet-option h3 {
    font-size: 14px;
  }
  .wallet-option > b {
    font-size: 13px;
  }
  .wallet-option p {
    font-size: 10px;
    margin: 2px 0;
    max-width: 100%;
  }
  .wallet-option .btn {
    font-size: 13px;
    min-height: 31px;
    padding: 5px 8px;
  }
  .wallet-packs h3 {
    font-size: 13px;
    margin: 8px 0 5px;
  }
  .wallet-pack-grid {
    gap: 7px;
  }
  .wallet-pack {
    gap: 2px;
    padding: 5px;
  }
  .wallet-pack > span {
    display: none;
  }
  .wallet-pack > b {
    font-size: 11px;
  }
  .wallet-pack > small {
    font-size: 9px;
  }
  .event-collection > p {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .event-collection-grid {
    gap: 8px;
  }
  .event-item {
    padding: 7px;
    gap: 3px;
    border-radius: 12px;
  }
  .event-item-art {
    height: 100px;
  }
  .event-item b {
    font-size: 15px;
  }
  .event-item small,
  .event-item-go {
    font-size: 10px;
  }
  .friends-tabs {
    margin: 0 0 3px;
  }
  .friends-tabs button {
    font-size: 11px;
    min-height: 30px;
  }
  .friend-requests h3 {
    font-size: 11px;
    margin: 6px 0 4px;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  .wallet-options {
    grid-template-columns: 1fr;
  }
  .wallet-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-collection-grid {
    grid-template-columns: 1fr;
  }
  .event-item-art {
    height: 150px;
  }
  .event-item b {
    font-size: 19px;
  }
}
.event-item-art {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 0;
}
.event-item-art > :is(img, svg) {
  position: absolute;
  inset: 0;
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.game .pcard .pname {
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
  gap: 5px;
  flex-wrap: nowrap;
}
.game .pcard .pname-profile {
  min-width: 0;
  max-width: 100%;
  flex: 1;
  text-align: start;
}
.game .pcard .pname-profile > b {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game .pcard .pname .tchip {
  flex: none;
}
.game .pcard .pstatus {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  line-height: 1;
}
.game .pcard .pstatus .offl,
.game .pcard .pstatus .afkb {
  position: static;
  display: block;
  margin: 0 !important;
  padding: 2px 5px;
  font: 800 clamp(8px, calc(9 * var(--desktop-unit)), 18px)/1.15 var(--body);
  letter-spacing: 0;
  white-space: nowrap;
}
.game .pcard .pstatus .offl {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game .pcard .pstatus .afkb {
  flex: none;
}
.game .pcard .pstatus:not([hidden]) + .balance-line {
  margin-top: 1px !important;
}
.game .pcard.turn {
  transform: none;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--pc) 85%, #fff),
    0 0 14px color-mix(in srgb, var(--pc) 35%, transparent),
    0 10px 24px #0005,
    inset 0 0 0 1px #fff6;
}
.game .pcard .badge {
  display: none !important;
}
.overlay.side .sheet.trade {
  --trade-u:var(--desktop-unit,1px);
  width: min(calc(940 * var(--desktop-unit)), calc(100vw - calc(32 * var(--trade-u)))) !important;
  max-width: none !important;
  height: min(calc(760 * var(--desktop-unit)), calc(var(--visible-height,100dvh) - var(--safe-t) - var(--safe-b) - calc(32 * var(--trade-u)))) !important;
  max-height: none !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto auto !important;
  gap: calc(8 * var(--trade-u)) !important;
  overflow: hidden !important;
  padding: calc(14 * var(--trade-u)) !important;
}
.sheet.trade .sheet-head {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center;
  gap: calc(8 * var(--trade-u)) !important;
  min-height: calc(38 * var(--trade-u)) !important;
  margin: 0 !important;
  padding: 0 calc(102 * var(--trade-u)) 0 0 !important;
  top: auto !important;
  background: none !important;
}
.sheet.trade .sheet-head h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: calc(22 * var(--trade-u)) !important;
  line-height: 1.15 !important;
}
.sheet.trade .sheet-head > .icon-btn {
  position: absolute !important;
  inset-inline-end: 0 !important;
  top: 0 !important;
  width: calc(38 * var(--trade-u)) !important;
  height: calc(38 * var(--trade-u)) !important;
}
.sheet.trade .sheet-head > .ctimer,
.sheet.trade > .ctimer {
  position: absolute !important;
  inset-inline-end: calc(46 * var(--trade-u)) !important;
  inset-inline-start: auto !important;
  top: 0 !important;
  transform: none !important;
  scale: 1 !important;
  width: calc(38 * var(--trade-u)) !important;
  height: calc(38 * var(--trade-u)) !important;
}
.sheet.trade .trade-rules {
  position: static;
  min-width: 0;
  color: var(--soft);
}
.sheet.trade .trade-rules summary {
  display: grid;
  place-items: center;
  width: calc(32 * var(--trade-u));
  height: calc(32 * var(--trade-u));
  cursor: pointer;
  list-style: none;
  border-radius: calc(10 * var(--trade-u));
  background: #0b1c3b;
  box-shadow: inset 0 0 0 calc(1 * var(--trade-u)) #7396c099;
}
.sheet.trade .trade-rules summary::-webkit-details-marker {
  display: none;
}
.sheet.trade .trade-rules summary .ic {
  width: calc(20 * var(--trade-u));
  height: calc(20 * var(--trade-u));
}
.sheet.trade .trade-rules[open] > p {
  position: absolute;
  z-index: 8;
  inset-inline: 0;
  top: calc(100% + calc(5 * var(--trade-u)));
  margin: 0;
  padding: calc(12 * var(--trade-u));
  border: calc(1 * var(--trade-u)) solid #819acb;
  border-radius: calc(12 * var(--trade-u));
  background: #112b55;
  box-shadow: 0 calc(8 * var(--trade-u)) calc(20 * var(--trade-u)) #0007;
  max-height: min(42dvh, calc(180 * var(--trade-u)));
  overflow: auto;
  font-size: calc(12 * var(--trade-u));
  line-height: 1.4;
}
.sheet.trade .tcols {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: calc(10 * var(--trade-u)) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}
.sheet.trade .tcol {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  align-content: stretch !important;
  gap: calc(6 * var(--trade-u)) !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: calc(9 * var(--trade-u)) !important;
  overflow: hidden !important;
}
.sheet.trade .tcol h4 {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: calc(3 * var(--trade-u)) calc(7 * var(--trade-u)) !important;
  min-width: 0;
  margin: 0 !important;
  font-size: calc(14 * var(--trade-u)) !important;
  line-height: 1.1 !important;
}
.sheet.trade .tcol h4 > small:not(.tbal) {
  display: none !important;
}
.sheet.trade .tcol h4 > .tbal {
  font-size: calc(11 * var(--trade-u)) !important;
  line-height: 1.1 !important;
  white-space: nowrap;
  color: var(--soft);
}
.sheet.trade .tlist {
  display: grid !important;
  align-content: start !important;
  gap: calc(5 * var(--trade-u)) !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  padding-right: calc(2 * var(--trade-u)) !important;
}
.sheet.trade .tasset {
  display: grid !important;
  grid-template-columns: calc(4 * var(--trade-u)) minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: calc(6 * var(--trade-u)) !important;
  min-height: calc(38 * var(--trade-u)) !important;
  padding: calc(6 * var(--trade-u)) calc(8 * var(--trade-u)) !important;
  border-radius: calc(9 * var(--trade-u)) !important;
}
.sheet.trade .tasset .bar {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: calc(4 * var(--trade-u)) !important;
  height: calc(25 * var(--trade-u)) !important;
}
.sheet.trade .tasset > span {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center;
  gap: calc(6 * var(--trade-u));
  min-width: 0;
}
.sheet.trade .tasset b {
  min-width: 0;
  flex: 1;
  font-size: calc(13 * var(--trade-u)) !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet.trade .tasset > em {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  font-size: calc(12 * var(--trade-u)) !important;
  line-height: 1.1 !important;
  white-space: nowrap;
}
.sheet.trade .tasset .lvl-ic,
.sheet.trade .tasset small {
  flex: none;
  font-size: calc(10 * var(--trade-u));
}
.sheet.trade .tmoney {
  display: grid !important;
  grid-template-columns: calc(36 * var(--trade-u)) minmax(0, 1fr) calc(36 * var(--trade-u)) auto !important;
  grid-template-rows: auto !important;
  align-items: center;
  gap: calc(5 * var(--trade-u)) !important;
  min-width: 0;
}
.sheet.trade .tmoney > span {
  display: none !important;
}
.sheet.trade .tmoney [data-act=m-] {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
.sheet.trade .tmoney > b {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  font-size: calc(15 * var(--trade-u)) !important;
  text-align: center !important;
}
.sheet.trade .tmoney [data-act="m+"] {
  grid-column: 3 !important;
  grid-row: 1 !important;
}
.sheet.trade .tmoney [data-act=meq] {
  grid-column: 4 !important;
  grid-row: 1 !important;
  min-width: calc(60 * var(--trade-u)) !important;
}
.sheet.trade .tmoney .btn {
  min-height: calc(34 * var(--trade-u)) !important;
  height: calc(34 * var(--trade-u)) !important;
  padding: 0 calc(7 * var(--trade-u)) !important;
  font-size: calc(12 * var(--trade-u)) !important;
}
.sheet.trade .tmeter {
  margin: 0 !important;
  padding: calc(9 * var(--trade-u)) calc(10 * var(--trade-u)) !important;
  min-width: 0;
  border-radius: calc(12 * var(--trade-u));
}
.sheet.trade .tbar {
  height: calc(10 * var(--trade-u)) !important;
}
.sheet.trade .tbar .needle {
  top: -5px !important;
  height: calc(20 * var(--trade-u)) !important;
}
.sheet.trade .tvals {
  margin-top: calc(6 * var(--trade-u)) !important;
  font-size: calc(11 * var(--trade-u)) !important;
  line-height: 1.15 !important;
}
.sheet.trade .tpct {
  font-size: calc(17 * var(--trade-u)) !important;
}
.sheet.trade .trade-limits {
  margin-top: calc(3 * var(--trade-u));
  font-size: calc(10 * var(--trade-u));
  line-height: 1.1;
}
.sheet.trade .tmeter p {
  margin: calc(3 * var(--trade-u)) 0 0 !important;
  font-size: calc(11 * var(--trade-u)) !important;
  line-height: 1.2 !important;
}
.sheet.trade .actions {
  position: static !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: calc(9 * var(--trade-u)) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}
.sheet.trade .actions .btn {
  min-height: calc(42 * var(--trade-u)) !important;
  height: calc(42 * var(--trade-u)) !important;
  padding: 0 calc(10 * var(--trade-u)) !important;
  font-size: calc(16 * var(--trade-u)) !important;
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 700px) {
  .overlay.side .sheet.trade {
    width: 100% !important;
    height: 100% !important;
    gap: 5px !important;
    padding: 8px !important;
    border-radius: 15px !important;
  }
  .sheet.trade .sheet-head {
    min-height: 32px !important;
    padding-inline-end: 90px !important;
  }
  .sheet.trade .sheet-head h2 {
    font-size: 18px !important;
  }
  .sheet.trade .sheet-head > .icon-btn,
  .sheet.trade .sheet-head > .ctimer,
  .sheet.trade > .ctimer {
    width: 32px !important;
    height: 32px !important;
  }
  .sheet.trade .sheet-head > .ctimer,
  .sheet.trade > .ctimer {
    inset-inline-end: 40px !important;
  }
  .sheet.trade .trade-rules summary {
    width: 28px;
    height: 28px;
  }
  .sheet.trade .tcols {
    gap: 7px !important;
  }
  .sheet.trade .tcol {
    padding: 6px !important;
    gap: 4px !important;
  }
  .sheet.trade .tcol h4 {
    font-size: 12px !important;
    gap: 2px 5px !important;
  }
  .sheet.trade .tcol h4 > .tbal {
    font-size: 10px !important;
  }
  .sheet.trade .tlist {
    gap: 4px !important;
  }
  .sheet.trade .tasset {
    min-height: 36px !important;
    padding: 5px 6px !important;
    gap: 5px !important;
  }
  .sheet.trade .tasset b {
    font-size: 12px !important;
  }
  .sheet.trade .tasset > em {
    font-size: 11px !important;
  }
  .sheet.trade .tmoney {
    grid-template-columns: 32px minmax(0, 1fr) 32px auto !important;
    gap: 4px !important;
  }
  .sheet.trade .tmoney > b {
    font-size: 13px !important;
  }
  .sheet.trade .tmoney .btn {
    min-height: 30px !important;
    height: 30px !important;
    font-size: 11px !important;
  }
  .sheet.trade .tmeter {
    padding: 7px 8px !important;
  }
  .sheet.trade .tvals {
    font-size: 10px !important;
    margin-top: 4px !important;
  }
  .sheet.trade .tpct {
    font-size: 15px !important;
  }
  .sheet.trade .trade-limits {
    font-size: 9px !important;
    line-height: 1.1 !important;
    margin-top: 2px !important;
  }
  .sheet.trade .tmeter p {
    display: none !important;
  }
  .sheet.trade .actions {
    gap: 7px !important;
  }
  .sheet.trade .actions .btn {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 360px) {
  .overlay.side .sheet.trade {
    padding: 6px !important;
    gap: 4px !important;
  }
  .sheet.trade .tasset {
    min-height: 31px !important;
    padding: 3px 5px !important;
  }
  .sheet.trade .tasset .bar {
    height: 22px !important;
  }
  .sheet.trade .tasset b {
    font-size: 11px !important;
  }
  .sheet.trade .tasset > em {
    font-size: 10px !important;
  }
  .sheet.trade .tcol h4 {
    font-size: 11px !important;
  }
  .sheet.trade .tcol h4 > .tbal {
    font-size: 9px !important;
  }
  .sheet.trade .tmoney {
    grid-template-columns: 28px minmax(0, 1fr) 28px auto !important;
  }
  .sheet.trade .tmoney [data-act=meq] {
    min-width: 45px !important;
  }
  .sheet.trade .tmoney .btn {
    min-height: 28px !important;
    height: 28px !important;
    font-size: 10px !important;
  }
  .sheet.trade .actions .btn {
    min-height: 32px !important;
    height: 32px !important;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (min-height: 361px) and (max-height: 700px) {
  .sheet.trade .tasset {
    min-height: 34px !important;
  }
}
.lobby-scenery .lobby-bunting {
  opacity: .9;
  filter: drop-shadow(0 calc(2 * var(--desktop-unit)) calc(3 * var(--desktop-unit)) #21142a55);
}
.lobby-scenery .lobby-bunting-rope {
  stroke: #3f294e;
  opacity: .95;
}
.lobby-scenery .pennant-cloth {
  fill: #995c86;
  stroke: #d492af66;
}
.lobby-scenery .lobby-pennant:nth-child(even) .pennant-cloth {
  fill: #74538e;
}
.festival-front .character-lobby .lobby-foot-aura {
  left: 23%;
  width: 54%;
  bottom: 12%;
  height: 74%;
  opacity: .78;
  mask-image:
    linear-gradient(
      transparent,
      #000b 24%,
      #000 85%,
      transparent);
}
.festival-front .character-lobby .lobby-foot-aura > i {
  width: 14%;
  left: 17%;
  background:
    linear-gradient(
      0deg,
      #ffe4aaac,
      #e6b3ef59 40%,
      #d4a5f720 75%,
      transparent);
  filter: blur(calc(5 * var(--desktop-unit)));
}
.festival-front .character-lobby .lobby-foot-aura > i:nth-child(2) {
  left: 46%;
  width: 12%;
}
.festival-front .character-lobby .lobby-foot-aura > i:nth-child(3) {
  left: 72%;
  width: 9%;
}
.festival-front .character-lobby :is(.lobby-pumpkin, .lobby-event-pumpkin):before {
  content: "";
  position: absolute;
  inset: 0;
  background: #231729;
  -webkit-mask: url(../assets/menu/lobby-pumpkin-light.webp) center/contain no-repeat;
  mask: url(../assets/menu/lobby-pumpkin-light.webp) center/contain no-repeat;
}
.festival-front .character-lobby .lobby-pumpkin-light {
  background: #ffe59b;
  opacity: .06;
  filter: drop-shadow(0 0 calc(4 * var(--desktop-unit)) #ffe48b) drop-shadow(0 0 calc(11 * var(--desktop-unit)) #ffb632b0) !important;
  animation: kzm142-pumpkin-candle 6.8s ease-in-out infinite;
}
.festival-front .character-lobby .lobby-pumpkin.second .lobby-pumpkin-light {
  animation-delay: -3.1s;
  animation-duration: 7.7s;
}
@keyframes kzm142-pumpkin-candle {
  0%, 100% {
    opacity: .06;
  }
  32%, 57% {
    opacity: .98;
  }
  78% {
    opacity: .2;
  }
}
@media (max-height: 600px) {
  .lobby-scenery .lobby-bunting {
    opacity: .86;
  }
  .festival-front .character-lobby .lobby-foot-aura {
    opacity: .72;
    height: 76%;
  }
}
html[data-reduced-motion=true] .character-lobby .lobby-pumpkin-light {
  opacity: .65;
}
@media (prefers-reduced-motion: reduce) {
  .character-lobby .lobby-pumpkin-light {
    opacity: .65;
  }
}
.overlay.side .sheet.trade {
  box-sizing: border-box !important;
  min-width: 0 !important;
}
.sheet.trade .tcols,
.sheet.trade .tcol,
.sheet.trade .tlist {
  box-sizing: border-box !important;
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 700px) {
  .sheet.trade .tlist {
    gap: 3px !important;
  }
  .sheet.trade .tasset {
    min-height: 30px !important;
    padding-block: 3px !important;
  }
  .sheet.trade .tasset .bar {
    height: 22px !important;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 360px) {
  .sheet.trade .tasset {
    min-height: 28px !important;
    padding-block: 2px !important;
  }
  .sheet.trade .tmeter {
    padding-block: 5px !important;
  }
  .sheet.trade .trade-limits {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: wrap;
  }
}
.overlay.side > .sheet.trade > .actions {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
.festival-front .character-lobby .lobby-foot-aura {
  left: 18%;
  width: 64%;
  height: 80%;
  opacity: .82;
}
.festival-front .character-lobby .lobby-foot-aura > i {
  left: 2%;
  width: 18%;
  height: 94%;
  background:
    linear-gradient(
      0deg,
      #ffe1aaa8,
      #e8c0fb80 48%,
      #e3b8f53b 78%,
      transparent);
  filter: blur(calc(8 * var(--desktop-unit)));
}
.festival-front .character-lobby .lobby-foot-aura > i:nth-child(2) {
  left: 45%;
  width: 11%;
  height: 100%;
}
.festival-front .character-lobby .lobby-foot-aura > i:nth-child(3) {
  left: 84%;
  width: 15%;
  height: 87%;
}
.friend-message footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 4px;
  min-height: 16px;
}
.friend-message footer time {
  font-size: 11px;
  color: #a8bad4;
}
.friend-receipt {
  font-family: Arial, sans-serif;
  font-style: normal;
  font-size: 13px;
  letter-spacing: -4px;
  padding-right: 4px;
  color: #95a1b5;
  white-space: nowrap;
}
.friend-receipt.sent {
  letter-spacing: 0;
}
.friend-receipt.read {
  color: #60b7ff;
  text-shadow: 0 0 6px #5ab2ff35;
}
.friend-typing {
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bfd2ee;
  font-size: 12px;
  padding: 0 12px 4px;
}
.friend-typing[hidden] {
  display: none;
}
.friend-typing > span {
  display: flex;
  gap: 3px;
}
.friend-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c1b6f2;
  animation: friendTyping1 1.15s ease-in-out infinite;
}
.friend-typing i:nth-child(2) {
  animation-delay: .16s;
}
.friend-typing i:nth-child(3) {
  animation-delay: .32s;
}
@keyframes friendTyping1 {
  0%, 65%, 100% {
    transform: translateY(0);
    opacity: .4;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .friend-typing i {
    animation: none;
    opacity: .8;
  }
}
.friend-chat {
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
}
.social-dialog:has(.xp-summary) {
  width: min(470px, 94vw);
  max-height: 94dvh;
}
.xp-summary {
  width: 100%;
  max-height: 88dvh;
  overflow: auto;
  padding: clamp(20px, 4vw, 32px);
  color: #eef4ff;
  text-align: center;
}
.xp-summary header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.xp-summary header > span {
  font-size: 35px;
  color: #ffe083;
}
.xp-summary h2 {
  font-size: clamp(21px, 4vw, 28px);
  margin: 0;
}
.xp-summary-body {
  min-height: 180px;
  padding: 20px 0;
}
.xp-summary-earned {
  display: block;
  font-size: clamp(40px, 7vw, 60px);
  color: #ffe28c;
  line-height: 1.3;
}
.xp-summary-earned small {
  font-size: .38em;
}
.xp-summary-body p {
  color: #bdcce5;
  line-height: 1.45;
  font-size: 14px;
}
.xp-summary-body .xp-summary-levelup {
  color: #ffdf82;
  font-weight: 800;
  font-size: 18px;
}
.xp-summary-level {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.xp-summary-level b {
  font-size: 22px;
  color: #ffe28c;
}
.xp-summary-level small {
  color: #c8bdf1;
}
.xp-summary-level > span {
  margin-left: auto;
  font-size: 12px;
  color: #c3d2eb;
}
.xp-summary-bar {
  height: 16px;
  background: #101b31;
  border: 1px solid #61719c;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
}
.xp-summary-bar i {
  display: block;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      #b992ef,
      #ffe181);
  border-radius: inherit;
  transition: width 1s ease-out;
}
.xp-summary > .btn {
  width: 100%;
  min-height: 44px;
}
.xp-summary-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #5c5d83;
  border-top-color: #ffe18c;
  border-radius: 50%;
  animation: xpWait1 1s linear infinite;
}
@keyframes xpWait1 {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .xp-summary-bar i {
    transition: none;
  }
  .xp-summary-spinner {
    animation: none;
  }
}
@media (max-height: 420px) {
  .xp-summary {
    padding: 16px 24px;
    max-height: 94dvh;
  }
  .xp-summary-body {
    padding: 10px 0;
    min-height: 125px;
  }
  .xp-summary-earned {
    font-size: 38px;
  }
  .xp-summary-level {
    margin-top: 10px;
  }
}
.xp-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.xp-summary-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 12px 0;
}
.xp-summary-body p {
  margin: 0;
}
.xp-summary-earned {
  line-height: 1.1;
}
.xp-summary-level {
  margin-top: 6px;
}
.xp-summary-bar {
  margin-top: 0;
}
.xp-summary > .btn {
  flex: none;
}
@media (max-height: 420px) {
  .xp-summary {
    padding: 12px 20px;
    gap: 7px;
  }
  .xp-summary header > span {
    font-size: 26px;
  }
  .xp-summary h2 {
    font-size: 21px;
  }
  .xp-summary-body {
    gap: 6px;
    padding: 5px 0;
    min-height: 0;
  }
  .xp-summary-body .xp-summary-levelup {
    font-size: 16px;
  }
  .xp-summary-body p {
    font-size: 12px;
    line-height: 1.25;
  }
  .xp-summary-earned {
    font-size: 36px;
  }
  .xp-summary-level {
    margin-top: 3px;
  }
  .xp-summary-level b {
    font-size: 20px;
  }
  .xp-summary-bar {
    height: 13px;
  }
  .xp-summary > .btn {
    min-height: 36px;
    padding: 5px 16px;
  }
}
.sheet.trade .tasset {
  grid-template-columns: calc(4 * var(--trade-u)) minmax(0, 1fr) max-content max-content !important;
  column-gap: calc(7 * var(--trade-u)) !important;
}
.sheet.trade .tasset > .tasset-title {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: center;
  gap: calc(2 * var(--trade-u));
  min-width: 0;
  overflow: hidden;
}
.sheet.trade .tasset > .tasset-title > b {
  flex: none;
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
}
.sheet.trade .tasset > .tasset-title > small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}
.sheet.trade .tasset > .tasset-buildings {
  grid-column: 3 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex: none;
  align-items: center !important;
  justify-content: flex-end;
  gap: 0 !important;
  width: max-content !important;
  min-width: 0;
  overflow: visible;
}
.sheet.trade .tasset > .tasset-buildings > .lvl-ic {
  display: inline-flex !important;
  flex: none !important;
  width: max-content !important;
  height: auto !important;
  gap: calc(1 * var(--trade-u)) !important;
  align-items: center;
  white-space: nowrap;
  color: #72e69d;
}
.sheet.trade .tasset .tasset-buildings .lvl-ic > .ic {
  display: block;
  flex: none !important;
  width: calc(13 * var(--trade-u)) !important;
  height: calc(14 * var(--trade-u)) !important;
  max-width: none !important;
  max-height: none !important;
}
.sheet.trade .tasset .tasset-buildings .lvl-ic:not(.hotel):not(.pub) .ic > path:nth-child(2) {
  fill: #40a86e;
}
.sheet.trade .tasset .tasset-buildings .lvl-ic.hotel {
  color: #ff807e;
}
.sheet.trade .tasset .tasset-buildings .lvl-ic.hotel > .ic {
  width: calc(15 * var(--trade-u)) !important;
  height: calc(16 * var(--trade-u)) !important;
}
.sheet.trade .tasset .tasset-buildings .lvl-ic.hotel .ic > rect {
  fill: #b84350;
}
.sheet.trade .tasset .tasset-buildings .lvl-ic.pub {
  color: #a5c3eb;
}
.sheet.trade .tasset > em {
  grid-column: 4 !important;
  grid-row: 1 !important;
  justify-self: end;
  flex: none;
  min-width: max-content;
  white-space: nowrap !important;
  padding-inline-start: calc(2 * var(--trade-u));
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 700px) {
  .sheet.trade .tasset {
    column-gap: 5px !important;
  }
  .sheet.trade .tasset .tasset-buildings .lvl-ic > .ic {
    width: 12px !important;
    height: 13px !important;
  }
  .sheet.trade .tasset .tasset-buildings .lvl-ic.hotel > .ic {
    width: 14px !important;
    height: 15px !important;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 360px) {
  .sheet.trade .tasset {
    column-gap: 4px !important;
  }
  .sheet.trade .tasset .tasset-buildings .lvl-ic > .ic {
    width: 11px !important;
    height: 12px !important;
  }
  .sheet.trade .tasset .tasset-buildings .lvl-ic.hotel > .ic {
    width: 13px !important;
    height: 14px !important;
  }
}
.sheet.trade .tasset {
  grid-template-columns: calc(4 * var(--trade-u)) minmax(0, 1fr) max-content max-content !important;
  column-gap: calc(7 * var(--trade-u)) !important;
}
.sheet.trade .tasset > .tasset-title {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: center;
  gap: calc(2 * var(--trade-u));
  min-width: 0;
  overflow: hidden;
}
.sheet.trade .tasset > .tasset-title > b {
  flex: none;
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
}
.sheet.trade .tasset > .tasset-title > small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}
.sheet.trade .tasset > .tasset-buildings {
  grid-column: 3 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex: none;
  align-items: center !important;
  justify-content: flex-end;
  gap: 0 !important;
  width: max-content !important;
  min-width: 0;
  overflow: visible;
}
.sheet.trade .tasset > .tasset-buildings > .lvl-ic {
  display: inline-flex !important;
  flex: none !important;
  width: max-content !important;
  height: auto !important;
  gap: calc(1 * var(--trade-u)) !important;
  align-items: center;
  white-space: nowrap;
  color: #72e69d;
}
.sheet.trade .tasset .tasset-buildings .lvl-ic > .ic {
  display: block;
  flex: none !important;
  width: calc(13 * var(--trade-u)) !important;
  height: calc(14 * var(--trade-u)) !important;
  max-width: none !important;
  max-height: none !important;
}
.sheet.trade .tasset .tasset-buildings .lvl-ic:not(.hotel):not(.pub) .ic > path:nth-child(2) {
  fill: #40a86e;
}
.sheet.trade .tasset .tasset-buildings .lvl-ic.hotel {
  color: #ff807e;
}
.sheet.trade .tasset .tasset-buildings .lvl-ic.hotel > .ic {
  width: calc(15 * var(--trade-u)) !important;
  height: calc(16 * var(--trade-u)) !important;
}
.sheet.trade .tasset .tasset-buildings .lvl-ic.hotel .ic > rect {
  fill: #b84350;
}
.sheet.trade .tasset .tasset-buildings .lvl-ic.pub {
  color: #a5c3eb;
}
.sheet.trade .tasset > em {
  grid-column: 4 !important;
  grid-row: 1 !important;
  justify-self: end;
  flex: none;
  min-width: max-content;
  white-space: nowrap !important;
  padding-inline-start: calc(2 * var(--trade-u));
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 700px) {
  .sheet.trade .tasset {
    column-gap: 5px !important;
  }
  .sheet.trade .tasset .tasset-buildings .lvl-ic > .ic {
    width: 12px !important;
    height: 13px !important;
  }
  .sheet.trade .tasset .tasset-buildings .lvl-ic.hotel > .ic {
    width: 14px !important;
    height: 15px !important;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 360px) {
  .sheet.trade .tasset {
    column-gap: 4px !important;
  }
  .sheet.trade .tasset .tasset-buildings .lvl-ic > .ic {
    width: 11px !important;
    height: 12px !important;
  }
  .sheet.trade .tasset .tasset-buildings .lvl-ic.hotel > .ic {
    width: 13px !important;
    height: 14px !important;
  }
}
.wallet-premium-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  max-width: 100%;
  color: #ffe39c;
}
.wallet-premium-prices > b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: calc(15 * var(--desktop-unit));
  line-height: 1.35;
}
.wallet-premium-prices .coin {
  flex: none;
}
.catalog-header-tools .premium-summary > b {
  overflow: visible;
  text-overflow: clip;
}
.catalog-header-tools .premium-indicator {
  color: #78ecb4;
  font-size: .9em;
}
.catalog-header-tools .premium-content .premium-state {
  color: #83e9b9;
  font-weight: 800;
  margin: 0;
}
.catalog-header-tools .premium-content .premium-actions {
  min-width: 0;
}
.catalog-header-tools .premium-actions > .btn {
  min-width: 0;
  overflow-wrap: anywhere;
}
.catalog-header-tools .premium-content .premium-refund-manage {
  font-size: 12px !important;
}
@media (orientation: landscape) and (max-height: 600px) {
  .wallet-premium-prices {
    gap: 2px 10px;
  }
  .wallet-premium-prices > b {
    font-size: 12px;
  }
  .wallet-premium-prices .coin {
    width: 16px;
    height: 16px;
  }
  .wallet-option {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }
  .wallet-option .wallet-option-icon {
    display: none;
  }
}
@media (max-width: 660px) and (orientation: landscape) {
  .wallet-premium-prices {
    gap: 1px 7px;
  }
  .wallet-premium-prices > b {
    font-size: 10px;
  }
  .catalog-header-tools .premium-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .catalog-header-tools .premium-card[open] > .premium-content {
    max-height: 70dvh;
    width: min(340px, 80vw);
  }
}
.social-dialog:has(.friends-sheet) {
  --chat-u:var(--desktop-unit,1px);
}
.social-dialog .friend-messages {
  gap: calc(5 * var(--chat-u));
  padding: calc(9 * var(--chat-u));
  align-items: flex-start;
  justify-content: flex-start;
}
.social-dialog .friend-message {
  display: flex;
  align-items: flex-end;
  gap: calc(6 * var(--chat-u));
  flex: 0 0 auto;
  max-width: 88%;
  margin: 0;
  padding: calc(5 * var(--chat-u)) calc(9 * var(--chat-u));
  border-radius: calc(12 * var(--chat-u));
  font: 600 calc(13 * var(--chat-u))/1.35 var(--body);
  white-space: normal;
  min-width: 0;
}
.social-dialog .friend-message.mine {
  align-self: flex-end;
}
.social-dialog .friend-message-text {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.social-dialog .friend-message-meta {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  flex: none;
  gap: calc(4 * var(--chat-u));
  white-space: nowrap;
  line-height: 1;
  min-height: 0;
  padding-bottom: calc(1 * var(--chat-u));
}
.social-dialog .friend-message-meta time {
  font: 600 calc(9 * var(--chat-u))/1 var(--body) !important;
  color: #b6c9e4;
  opacity: 1;
}
.social-dialog .friend-message-meta .friend-receipt {
  font: normal calc(11 * var(--chat-u))/1 Arial, sans-serif;
  letter-spacing: calc(-3 * var(--chat-u));
  padding-inline-end: calc(3 * var(--chat-u));
  color: #b1bfd3;
}
.social-dialog .friend-message-meta .friend-receipt.sent {
  letter-spacing: 0;
  padding-inline-end: 0;
}
.social-dialog .friend-message-meta .friend-receipt.read {
  color: #70c9ff;
}
.social-dialog .friend-chat {
  gap: calc(6 * var(--chat-u));
}
.sheet.trade [data-trade-side=give] .tmoney > b,
.sheet.trade .tvals > span:first-child b,
.incoming .olist.give > h5 > em,
.incoming .olist.give li.cash > em {
  color: #ff9faa !important;
}
.sheet.trade [data-trade-side=get] .tmoney > b,
.sheet.trade .tvals > span:last-child b,
.incoming .olist.get > h5 > em,
.incoming .olist.get li.cash > em {
  color: #8de9b9 !important;
}
@media (orientation: landscape) and (max-height: 600px) {
  .social-dialog .friend-message {
    max-width: 95%;
    font-size: 12px;
    padding: 4px 7px;
    gap: 5px;
  }
  .social-dialog .friend-messages {
    gap: 4px;
  }
}
