/* Bomb Online — game UI. Sky blue / gray / navy, chunky cartoon panels.
   The 3D world (#world) is always behind; screens are fixed layers that never scroll as a page. */
:root {
  --ink: #17345f;          /* outlines + text */
  --ink-2: #0f2547;
  --navy: #1d3f72;
  --navy-2: #2a5590;
  --sky: #e9f4ff;
  --sky-2: #cfe6fb;
  --sky-3: #8fd0ff;
  --blue: #2f86e8;
  --blue-2: #4aa8ff;
  --blue-dark: #1d63b8;
  --gray: #8797ac;
  --gray-2: #c9d5e3;
  --orange: #ff8a3d;
  --orange-dark: #c45a17;
  --yellow: #ffd23f;
  --yellow-2: #ffb31a;
  --green: #35c27a;
  --red: #ef5a5f;
  --font-display: 'Baloo 2', 'Mitr', system-ui, sans-serif;
  --font-body: 'Mitr', 'Baloo 2', system-ui, 'Noto Sans', sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body {
  background: #8fd0ff; color: var(--ink); font-family: var(--font-body); font-size: 15px;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation; position: fixed; inset: 0;
}
input, textarea, select { -webkit-user-select: text; user-select: text; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
[hidden] { display: none !important; }
img { -webkit-user-drag: none; }
.spacer { flex: 1; }
.muted { color: var(--gray); }
.center { text-align: center; }

/* ---------- world + shade ---------- */
#world { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
#world canvas { display: block; width: 100%; height: 100%; touch-action: none; }
#shade { position: fixed; inset: 0; z-index: 1; pointer-events: none; transition: background .4s; }
body.s-home #shade { background: linear-gradient(180deg, rgba(23,52,95,.15), transparent 30%, transparent 55%, rgba(15,37,71,.55)); }
body.s-lobby #shade { background: linear-gradient(180deg, rgba(15,37,71,.35), transparent 18%, transparent 75%, rgba(15,37,71,.45)); }
body.s-room #shade { background: rgba(214,234,252,.72); }
.screen { position: fixed; inset: 0; z-index: 2; }

/* ---------- loading ---------- */
#loading { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px;
  background: radial-gradient(ellipse at 50% 35%, #bfe6ff, #6fbcf5 60%, #3d8fd8); transition: opacity .45s; }
#loading.done { opacity: 0; pointer-events: none; }
.loadbar { width: min(360px, 80vw); height: 22px; border-radius: 12px; border: 3px solid var(--ink); background: #fff; overflow: hidden; box-shadow: 0 4px 0 var(--ink-2); }
.loadbar i { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #ffe27a, var(--yellow-2)); transition: width .35s; }
.load-tip { margin: 0; color: #fff; font-weight: 500; text-align: center; text-shadow: 0 2px 0 rgba(15,37,71,.5); max-width: 420px; min-height: 2.6em; }

/* ---------- logo ---------- */
.logo-big { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: .82; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; letter-spacing: 1px;
  font-size: clamp(54px, 11vw, 112px); transform: rotate(-3deg); }
.logo-big span { -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill; text-shadow: 0 .09em 0 var(--ink-2), 0 .14em 18px rgba(15,37,71,.35); }
.logo-big .l1 { color: #fff; }
.logo-big .l2 { color: var(--yellow); font-size: .78em; margin-top: .06em; }

/* ---------- buttons ---------- */
.gbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border: 3px solid var(--ink); border-radius: 16px; font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.1;
  background: linear-gradient(180deg, #fff 0 50%, #e6f0fb 50%); color: var(--ink); box-shadow: 0 5px 0 var(--ink); transition: transform .06s, box-shadow .06s;
  white-space: nowrap; overflow: hidden; }
.gbtn::before { content: ''; position: absolute; left: 6px; right: 6px; top: 4px; height: 34%; border-radius: 10px; background: rgba(255,255,255,.45); pointer-events: none; }
.gbtn svg { width: 22px; height: 22px; flex: none; }
.gbtn:active:not([disabled]) { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.gbtn[disabled] { filter: grayscale(.7); opacity: .6; cursor: default; }
.gbtn.yellow { background: linear-gradient(180deg, #ffe066 0 48%, var(--yellow-2) 52%); color: var(--ink-2); }
.gbtn.blue { background: linear-gradient(180deg, var(--blue-2) 0 48%, var(--blue) 52%); color: #fff; text-shadow: 0 2px 0 rgba(15,37,71,.45); }
.gbtn.red { background: linear-gradient(180deg, #ff8a8d 0 48%, var(--red) 52%); color: #fff; text-shadow: 0 2px 0 rgba(90,10,10,.4); }
.gbtn.white { background: linear-gradient(180deg, #fff 0 48%, #e3eefa 52%); }
.gbtn.sm { min-height: 42px; padding: 0 14px; font-size: 15px; border-radius: 13px; box-shadow: 0 4px 0 var(--ink); }
.gbtn.sm svg { width: 18px; height: 18px; }
.gbtn.big { min-height: 64px; font-size: 24px; border-radius: 18px; padding: 0 28px; }
.gbtn.xl { min-height: 72px; font-size: clamp(20px, 3.4vw, 28px); border-radius: 22px; padding: 0 30px; box-shadow: 0 7px 0 var(--ink); }
.gbtn.xl svg { width: 30px; height: 30px; }
.gbtn.xl:active { transform: translateY(6px); }
.ibtn { position: relative; width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 3px solid var(--ink); border-radius: 15px;
  background: linear-gradient(180deg, #fff 0 50%, #e3eefa 50%); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.ibtn svg { width: 24px; height: 24px; }
.ibtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.ibtn.dark { background: rgba(10,28,52,.72); color: #fff; border-color: rgba(255,255,255,.55); box-shadow: none; }
.ibtn.dark svg { color: var(--yellow); }
.linkbtn { border: 0; background: none; color: var(--blue-dark); font-weight: 600; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.chip-btn { border: 2px solid var(--ink); background: var(--yellow); color: var(--ink-2); font-weight: 700; border-radius: 999px; padding: 2px 12px; font-size: 13px; box-shadow: 0 2px 0 var(--ink); }
.no-fs .fs-btn, .no-fs .fs-row { display: none !important; }

/* ---------- fields ---------- */
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--navy-2); font-weight: 600; }
input[type=text], input[type=number], input[type=password], input[type=email], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 13px; border: 3px solid var(--gray-2); background: #f6faff; color: var(--ink); font-size: 16px; font-weight: 500;
}
textarea { padding: 10px 14px; resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; background: #fff; }
.hint { font-size: 12px; color: var(--gray); font-weight: 400; }
.form { display: flex; flex-direction: column; gap: 12px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--gray); font-size: 13px; margin: 6px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 2px; background: var(--gray-2); }
.tabs { display: flex; gap: 6px; background: var(--sky-2); padding: 5px; border-radius: 15px; border: 2px solid #b9d6f2; flex-wrap: wrap; }
.tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; color: var(--navy-2); padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tabs button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 3px 0 #a9c8e6; }
.switch { display: inline-flex; gap: 4px; background: var(--sky-2); padding: 4px; border-radius: 13px; }
.switch button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; color: var(--navy-2); }
.switch button[aria-pressed=true] { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--blue-dark); }

/* ---------- shared game bits ---------- */
.pfp { width: 52px; height: 52px; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 40%, #d8efff, #8fc9f5); border: 3px solid var(--ink); object-fit: cover; }
.pfp.lg { width: 76px; height: 76px; }
.pfp.sm { width: 42px; height: 42px; border-width: 2px; }
.lv { display: inline-flex; align-items: center; padding: 0 8px; height: 20px; border-radius: 8px; background: var(--ink); color: var(--yellow); font-family: var(--font-display); font-weight: 800; font-size: 13px; white-space: nowrap; }
.lvrow { display: flex; align-items: center; gap: 6px; }
.expbar { display: block; flex: 1; min-width: 60px; height: 10px; border-radius: 6px; background: #c7dcf0; border: 2px solid var(--ink); overflow: hidden; }
.expbar i { display: block; height: 100%; background: linear-gradient(180deg, #ffe27a, var(--yellow-2)); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; border: 2px solid #fff; }
.cur { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 6px 0 4px; border-radius: 999px; background: rgba(10,28,52,.62); border: 2px solid rgba(255,255,255,.5); color: #fff; }
.cur svg { width: 28px; height: 28px; flex: none; }
.cur b { font-family: var(--font-display); font-weight: 800; font-size: 18px; min-width: 34px; padding-inline-end: 6px; font-variant-numeric: tabular-nums; }
.cur-plus { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.cur-plus svg { width: 14px; height: 14px; }
.cur.big { height: 48px; background: var(--sky); border: 3px solid var(--sky-2); color: var(--ink); padding: 0 14px 0 8px; }
.cur.big span { color: var(--navy-2); font-weight: 600; }
.online-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(10,28,52,.55); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.online-pill i { width: 9px; height: 9px; border-radius: 50%; background: #4ee08f; box-shadow: 0 0 0 3px rgba(78,224,143,.25); }

.toasts { position: fixed; left: 50%; top: calc(12px + var(--safe-t, 0px)); transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: calc(100% - 32px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 14px; border: 2px solid rgba(255,255,255,.6); box-shadow: 0 6px 18px rgba(15,37,71,.3); text-align: center; animation: toastIn .2s ease-out; font-weight: 500; pointer-events: auto; }
.toast.err { background: #c8393e; }
.toast .gbtn { margin-inline-start: 10px; min-height: 34px; font-size: 14px; padding: 0 12px; box-shadow: 0 3px 0 var(--ink-2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- title screen ---------- */
#home .corner { position: absolute; top: calc(14px + var(--safe-t, 0px)); right: calc(14px + var(--safe-r)); display: flex; gap: 10px; }
#home .title-wrap { position: absolute; left: 0; right: 0; top: calc(6vh + var(--safe-t, 0px)); display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none; }
.ribbon { position: relative; background: var(--ink); color: #fff; font-weight: 600; padding: 6px 28px; font-size: clamp(14px, 2vw, 18px); border-radius: 6px; box-shadow: 0 4px 0 var(--ink-2); max-width: 90vw; text-align: center; }
.ribbon::before, .ribbon::after { content: ''; position: absolute; top: 7px; width: 22px; height: 100%; background: var(--navy-2); z-index: -1; }
.ribbon::before { left: -14px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }
.ribbon::after { right: -14px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }
#home .home-actions { position: absolute; left: 50%; bottom: calc(9vh + var(--safe-b, 0px)); transform: translateX(-50%); width: min(440px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 14px; }
#home .home-actions .gbtn.xl { width: 100%; animation: breathe 2.2s ease-in-out infinite; }
#home .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#home .foot { position: absolute; bottom: calc(10px + var(--safe-b, 0px)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: 12px; }
@keyframes breathe { 50% { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) { #home .home-actions .gbtn.xl { animation: none; } }

/* ---------- lobby ---------- */
.topbar { position: absolute; top: calc(10px + var(--safe-t, 0px)); left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r)); display: flex; align-items: center; gap: 10px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; border-radius: 999px; border: 3px solid var(--ink); background: linear-gradient(180deg, #fff 0 50%, #eaf3fd 50%); box-shadow: 0 4px 0 var(--ink); text-align: start; min-width: 0; max-width: 46vw; }
.me-card:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.me-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.me-info b { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.char-plate { position: absolute; left: 36%; bottom: calc(112px + var(--safe-b, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 18px; border-radius: 999px; background: rgba(255,255,255,.92); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); max-width: 60vw; }
.char-plate b { font-family: var(--font-display); font-weight: 800; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modes { position: absolute; right: calc(18px + var(--safe-r)); top: calc(50% - 12px); transform: translateY(-50%); width: min(380px, 38vw); display: flex; flex-direction: column; gap: 14px; }
.tile { position: relative; display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 12px 18px 12px 14px; border: 3px solid var(--ink); border-radius: 22px; color: #fff; text-align: start; box-shadow: 0 6px 0 var(--ink); overflow: hidden; transition: transform .06s, box-shadow .06s; }
.tile::before { content: ''; position: absolute; left: 8px; right: 8px; top: 5px; height: 38%; border-radius: 16px; background: rgba(255,255,255,.28); pointer-events: none; }
.tile:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.tile .tile-ico { width: 62px; height: 62px; flex: none; padding: 12px; border-radius: 50%; background: rgba(255,255,255,.95); border: 3px solid var(--ink); }
.tile-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile strong { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.05; text-shadow: 0 2px 0 rgba(15,37,71,.45); }
.tile small { font-size: 14px; opacity: .95; }
.tile.quick { min-height: 118px; background: linear-gradient(180deg, #ffe066 0 50%, var(--yellow-2) 50%); color: var(--ink-2); }
.tile.quick strong { font-size: 32px; text-shadow: 0 2px 0 rgba(255,255,255,.6); }
.tile.quick .tile-ico { color: var(--yellow-2); width: 74px; height: 74px; }
.tile.rooms { background: linear-gradient(180deg, var(--blue-2) 0 50%, var(--blue) 50%); }
.tile.rooms .tile-ico { color: var(--blue); }
.tile.create { background: linear-gradient(180deg, #3d6bb0 0 50%, var(--navy) 50%); }
.tile.create .tile-ico { color: var(--navy); }
.tile .count { position: absolute; right: 12px; top: 10px; font-style: normal; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: #fff; color: var(--blue-dark); border: 2px solid var(--ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.dock { position: absolute; left: 50%; bottom: calc(10px + var(--safe-b, 0px)); transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 22px; background: rgba(255,255,255,.94); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); max-width: calc(100% - 24px); }
.dock button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 78px; height: 64px; border: 0; border-radius: 16px; background: transparent; color: var(--ink); font-weight: 700; font-size: 12px; }
.dock button svg { width: 30px; height: 30px; color: var(--navy-2); }
.dock button:hover, .dock button:active { background: var(--sky); }
.dock button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dock .badge { position: absolute; top: 2px; right: 10px; }

/* ---------- room ---------- */
#room { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: calc(10px + var(--safe-t, 0px)) calc(14px + var(--safe-r)) calc(12px + var(--safe-b, 0px)) calc(14px + var(--safe-l)); }
.room-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.room-title { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.room-title h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.code { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 9px; border: 2px dashed var(--blue); background: #fff; color: var(--blue-dark); font-family: var(--font-display); font-weight: 800; letter-spacing: 1.5px; font-size: 16px; }
.code svg { width: 15px; height: 15px; }
.room-main { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; min-height: 0; }
.slot-area { display: flex; gap: 14px; min-height: 0; }
.team-group { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; padding: 10px; border-radius: 20px; border: 3px solid var(--ink); background: rgba(255,255,255,.6); }
.team-group.t0 { background: linear-gradient(180deg, rgba(74,168,255,.28), rgba(255,255,255,.6)); }
.team-group.t1 { background: linear-gradient(180deg, rgba(255,138,61,.28), rgba(255,255,255,.6)); }
.team-group h3 { margin: 0; align-self: flex-start; font-family: var(--font-display); font-weight: 800; font-size: 16px; padding: 2px 14px; border-radius: 10px; color: #fff; border: 2px solid var(--ink); }
.team-group.t0 h3 { background: var(--blue); }
.team-group.t1 h3 { background: var(--orange); }
.team-group.ffa h3 { background: var(--navy-2); }
.slot-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); align-content: center; gap: 10px; }
/* clash/rumble (many players): compact fixed-height cards that scroll inside the same panel instead of overflowing it */
.slot-grid.many { grid-auto-rows: 86px; align-content: start; overflow-y: auto; gap: 8px; padding-right: 4px; scrollbar-width: thin; }
.slot-grid.many .slot { min-height: 0; height: 86px; border-radius: 12px; }
.slot-grid.many::-webkit-scrollbar { width: 6px; } .slot-grid.many::-webkit-scrollbar-thumb { background: rgba(20,48,79,.35); border-radius: 3px; }
.slot { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 120px; max-height: 300px; border-radius: 18px; border: 3px solid var(--ink); background: #fff; box-shadow: 0 4px 0 var(--ink); overflow: hidden; }
.slot .slot-img { flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(ellipse at 50% 80%, #ffffff, #cfe7fb 70%); }
.slot.t1 .slot-img { background: radial-gradient(ellipse at 50% 80%, #ffffff, #ffe0cc 70%); }
.slot .slot-img img { width: auto; height: 100%; max-width: 100%; object-fit: contain; display: block; }
.slot .slot-plate { padding: 4px 8px 6px; background: var(--ink); color: #fff; text-align: center; min-width: 0; }
.slot .slot-plate b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .slot-plate small { display: block; font-size: 11px; color: var(--yellow); font-weight: 600; }
.slot.me { border-color: var(--yellow-2); box-shadow: 0 4px 0 var(--ink), 0 0 0 3px var(--yellow); }
.slot .stamp { position: absolute; top: 10px; left: 50%; transform: translateX(-50%) rotate(-10deg); padding: 2px 10px; border: 3px solid #1f9d5c; color: #1f9d5c; background: rgba(255,255,255,.92); border-radius: 8px; font-family: var(--font-display); font-weight: 800; font-size: 15px; text-transform: uppercase; white-space: nowrap; }
.slot .crown { position: absolute; top: 6px; left: 8px; font-size: 20px; filter: drop-shadow(0 2px 0 rgba(15,37,71,.4)); }
.slot .bot-tag { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; padding: 3px; border-radius: 8px; background: var(--gray); color: #fff; border: 2px solid var(--ink); }
.slot .tools { position: absolute; top: 6px; right: 6px; display: flex; flex-direction: column; gap: 4px; }
.slot .tools button { width: 30px; height: 30px; padding: 4px; border-radius: 9px; border: 2px solid var(--ink); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.slot .tools button.kick { background: var(--red); color: #fff; }
.slot .tools svg { width: 16px; height: 16px; }
.slot.empty { background: rgba(255,255,255,.45); border-style: dashed; box-shadow: none; align-items: center; justify-content: center; color: var(--navy-2); font-weight: 600; gap: 4px; }
.slot.empty svg { width: 28px; height: 28px; opacity: .7; }
.slot.empty.can { cursor: pointer; }
.slot.empty.can:hover { background: rgba(255,255,255,.75); }
.room-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.map-card { border: 3px solid var(--ink); border-radius: 20px; background: #fff; box-shadow: 0 4px 0 var(--ink); overflow: hidden; }
.map-card canvas { display: block; width: 100%; height: auto; background: #6fae4a; }
.map-name { padding: 6px 12px 8px; font-weight: 600; color: var(--navy-2); text-align: center; }
.map-name b { color: var(--ink); }
.host-set { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; border-radius: 18px; background: rgba(255,255,255,.75); border: 3px solid var(--ink); }
.room-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.chat { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 18px; background: rgba(255,255,255,.85); border: 3px solid var(--ink); min-width: 0; }
.chat-log { height: 82px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; font-size: 14px; padding: 0 4px; -webkit-user-select: text; user-select: text; }
.chat-log p { margin: 0; overflow-wrap: anywhere; }
.chat-log b { color: var(--blue-dark); }
.chat form { display: flex; gap: 6px; }
.chat input { min-height: 42px; }
.room-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 260px; }
.small-actions { display: flex; gap: 8px; }
.small-actions .gbtn { flex: 1; }
.room-actions .gbtn.big { width: 100%; }
.room-actions .wait { margin: 0; text-align: center; font-weight: 600; color: var(--navy-2); }
.gbtn.ready-on { background: linear-gradient(180deg, #7de3a8 0 48%, var(--green) 52%); color: #fff; text-shadow: 0 2px 0 rgba(15,60,30,.4); }

/* ---------- windows ---------- */
.win { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: calc(16px + var(--safe-t, 0px)) 14px calc(16px + var(--safe-b, 0px)); background: rgba(13,30,60,.5); animation: fadeIn .15s ease-out; }
.win-box { position: relative; width: 100%; max-width: 560px; max-height: 100%; display: flex; flex-direction: column; border-radius: 26px; border: 4px solid var(--ink); background: #fff; box-shadow: 0 8px 0 var(--ink-2), 0 24px 50px rgba(0,0,0,.3); animation: popIn .22s cubic-bezier(.2,1.4,.4,1); }
.win-box.narrow { max-width: 440px; }
.win-box.wide { max-width: 760px; }
.win-title { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 8px 60px; border-radius: 21px 21px 0 0; background: linear-gradient(180deg, var(--blue-2) 0 50%, var(--blue) 50%); border-bottom: 4px solid var(--ink); }
.win-title h2 { margin: 0; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; text-align: center; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-title .x { position: absolute; top: -14px; right: -14px; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); background: linear-gradient(180deg, #ff8a8d 0 50%, var(--red) 50%); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 4px 0 var(--ink); }
[dir=rtl] .win-title .x { right: auto; left: -14px; }
.win-title .x svg { width: 20px; height: 20px; }
.win-title .x:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.win-body { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; min-height: 0; background: linear-gradient(180deg, #f3f9ff, #fff 120px); border-radius: 0 0 22px 22px; }
@keyframes popIn { from { transform: scale(.85); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-row .gbtn { flex: 1 1 140px; }
.settings-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.set-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--sky); }
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lang { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 3px solid var(--sky-2); background: #f6faff; text-align: start; min-width: 0; }
.lang b { font-size: 16px; overflow-wrap: anywhere; }
.lang small { color: var(--gray); font-size: 12px; }
.lang[aria-pressed=true] { border-color: var(--blue); background: #e2f0ff; box-shadow: 0 3px 0 var(--blue); }
.prof-head { display: flex; align-items: center; gap: 14px; }
.prof-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.prof-head .lv { align-self: flex-start; }
.prof-head b { font-family: var(--font-display); font-weight: 800; font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.statgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.statgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.statgrid div { background: var(--sky); border: 2px solid var(--sky-2); border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; min-width: 0; }
.statgrid b { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.statgrid span { font-size: 12px; color: var(--navy-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.looks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.look { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 6px; border-radius: 16px; border: 3px solid var(--sky-2); background: radial-gradient(ellipse at 50% 70%, #fff, #dbeefe); min-width: 0; }
.look img { width: 100%; max-width: 96px; aspect-ratio: 1; object-fit: contain; }
.look span { font-weight: 700; font-size: 13px; }
.look[aria-pressed=true] { border-color: var(--ink); background: radial-gradient(ellipse at 50% 70%, #fff8d6, #ffe27a); box-shadow: 0 3px 0 var(--ink); }
.guest-link { padding: 12px; border-radius: 16px; background: #fff8dc; border: 3px dashed var(--yellow-2); }
#googleBtn, #googleLinkBtn { display: flex; justify-content: center; min-height: 44px; }
.room-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.search { flex: 1 1 220px; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 12px; width: 20px; height: 20px; color: var(--gray); pointer-events: none; }
[dir=rtl] .search svg { left: auto; right: 12px; }
.search input { padding-inline-start: 40px; }
.joincode { display: flex; gap: 8px; flex: 1 1 260px; }
.joincode .gbtn { flex: none; max-width: 55%; white-space: normal; text-align: center; line-height: 1.05; }
.joincode input { text-transform: uppercase; letter-spacing: 2px; }
.room-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.room-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; border: 3px solid var(--ink); background: #fff; box-shadow: 0 4px 0 var(--ink); min-width: 0; }
.room-card h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.room-card h3 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-card h3 svg { width: 16px; height: 16px; flex: none; color: var(--gray); }
.room-card .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--sky); color: var(--navy-2); font-size: 12px; font-weight: 600; }
.chip.blue { background: #dcecff; color: var(--blue-dark); }
.chip.green { background: #dcf5e9; color: #1e7a53; }
.chip.gray { background: #eef1f5; color: var(--gray); }
.empty-note { text-align: center; padding: 26px 12px; color: var(--gray); font-weight: 500; grid-column: 1 / -1; }
.plist { display: flex; flex-direction: column; gap: 8px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: var(--sky); border: 2px solid var(--sky-2); min-width: 0; }
.prow.me { background: #fff6d0; border-color: var(--yellow); }
.prow .rank { width: 34px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--navy-2); flex: none; }
.prow .rank.r1 { color: #e0a100; } .prow .rank.r2 { color: #8a9bb0; } .prow .rank.r3 { color: #c47a3a; }
.prow .who { flex: 1; min-width: 0; display: flex; flex-direction: column; cursor: pointer; }
.prow .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .who small { color: var(--navy-2); font-size: 12px; }
.prow .val { font-family: var(--font-display); font-weight: 800; font-size: 20px; flex: none; }
.prow .acts { display: flex; gap: 6px; flex: none; }
.status { font-size: 12px; font-weight: 600; color: var(--gray); }
.status.on { color: #1f9d5c; }
.status.on::before { content: '● '; }
.add-friend { display: flex; gap: 8px; }
.hrow { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 16px; background: var(--sky); border: 2px solid var(--sky-2); }
.hrow .res { font-family: var(--font-display); font-weight: 800; font-size: 18px; text-align: center; border-radius: 10px; padding: 2px 0; color: #fff; background: var(--gray); }
.hrow .res.won { background: var(--yellow-2); color: var(--ink-2); }
.hrow .mid { display: flex; flex-direction: column; min-width: 0; }
.hrow .mid small { color: var(--navy-2); font-size: 12px; }
.hrow .nums { display: flex; gap: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.shop-wallet { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.shop-soon { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; border-radius: 18px; background: var(--sky); border: 3px dashed var(--sky-3); }
.shop-soon svg { width: 54px; height: 54px; color: var(--blue); }
.shop-soon p { margin: 0; font-weight: 600; }

/* result window */
.win.result .win-box { max-width: 600px; }
.result-banner { padding: 18px 16px 10px; border-radius: 21px 21px 0 0; background: linear-gradient(180deg, #4aa8ff, #2f86e8); border-bottom: 4px solid var(--ink); text-align: center; }
.result-banner.win { background: linear-gradient(180deg, #ffe066, #ffb31a); }
.result-banner.lose { background: linear-gradient(180deg, #a9b6c7, #7f8ea3); }
.result-title { margin: 0; font-family: 'Baloo 2', var(--font-display); font-weight: 800; font-size: clamp(40px, 8vw, 60px); line-height: 1; color: #fff; -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink-2); animation: popIn .4s cubic-bezier(.2,1.6,.4,1); }
.gains { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.exp-gain, .zeny-gain { font-family: var(--font-display); font-weight: 800; font-size: 22px; padding: 2px 14px; border-radius: 12px; }
.exp-gain { background: #fff3c4; color: #b07800; }
.zeny-gain { background: #dcefff; color: var(--blue-dark); }
.exp-gain:empty, .zeny-gain:empty { display: none; }
.result-list { display: flex; flex-direction: column; gap: 6px; }
.result-list .pfp { width: 32px; height: 32px; border-width: 2px; }
.result-list > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 50px 50px 34px; gap: 8px; align-items: center; padding: 5px 10px; border-radius: 12px; background: var(--sky); font-variant-numeric: tabular-nums; }
.result-list > div.t1 { background: #fff0e6; }
.result-list > div.me { box-shadow: inset 0 0 0 3px var(--yellow); }
.result-list .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.result-list .head { background: transparent !important; font-size: 12px; color: var(--gray); padding-block: 0; }
.result-list .rep { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--gray-2); background: #fff; color: var(--gray); display: flex; align-items: center; justify-content: center; padding: 0; font-size: 14px; }

/* ---------- game HUD ---------- */
#game { pointer-events: none; }
#game > * { pointer-events: auto; }
.hud { position: absolute; z-index: 5; pointer-events: none; }
.hud * { pointer-events: auto; }
.hud-top { left: 12px; right: 12px; top: calc(10px + var(--safe-t, 0px)); display: flex; justify-content: center; align-items: flex-start; gap: 10px; }
.scorebar { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 24px; background: rgba(10, 28, 52, .75); border: 2px solid rgba(255,255,255,.5); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.score { min-width: 40px; height: 36px; padding: 0 10px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; border: 2px solid rgba(255,255,255,.7); }
.score.b { background: var(--blue); box-shadow: inset 0 -3px 0 var(--blue-dark); }
.score.o { background: var(--orange); box-shadow: inset 0 -3px 0 var(--orange-dark); }
.timer { font-family: var(--font-display); font-weight: 800; font-size: 26px; min-width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.timer.low { color: #ff9b9b; }
.target { font-size: 11px; opacity: .85; text-align: center; }
.ffa-board { position: absolute; left: 12px; top: calc(60px + var(--safe-t, 0px)); z-index: 5; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 14px; background: rgba(10, 28, 52, .65); color: #fff; font-size: 13px; min-width: 130px; }
.ffa-board .me { color: var(--yellow); }

/* ---------- live player roster (top-left, collapsible) ---------- */
.roster { left: calc(10px + var(--safe-l, 0px)); top: calc(54px + var(--safe-t, 0px)); z-index: 6; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; max-width: 62vw; }
.rst-tab { pointer-events: auto; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 14px; border: 2px solid rgba(255,255,255,.5); background: rgba(10,28,52,.8); color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.3); line-height: 1; }
.rst-tab .rst-ico { font-size: 15px; }
.rst-tab .rst-caret { font-size: 11px; opacity: .85; transition: transform .15s; }
.roster.closed .rst-tab .rst-caret { transform: rotate(-90deg); }
.roster.closed .rst-body { display: none; }
.rst-body { pointer-events: auto; width: 182px; max-width: 62vw; max-height: 48vh; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 2px; padding: 7px; border-radius: 14px; background: rgba(10,28,52,.72); backdrop-filter: blur(3px); border: 2px solid rgba(255,255,255,.28); scrollbar-width: thin; }
.rst-body::-webkit-scrollbar { width: 5px; } .rst-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 3px; }
.rst-watch { align-self: center; margin-bottom: 2px; padding: 2px 10px; border-radius: 99px; background: rgba(163,18,122,.9); color: #fff; font-weight: 800; font-size: 12px; }
.rst-head { display: flex; align-items: center; gap: 6px; margin: 4px 2px 1px; color: #dce9fb; font-size: 12px; font-weight: 800; }
.rst-head:first-child { margin-top: 0; }
.rst-head .rst-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.rst-head.t0 .rst-dot { background: #2f86e8; } .rst-head.t1 .rst-dot { background: #ff8a3d; }
.rst-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rst-head.mine b { color: #fff; }
.rst-head .rst-score { font-size: 15px; font-weight: 900; color: #fff; }
.rst-row { display: flex; align-items: center; gap: 7px; padding: 4px 5px; border-radius: 10px; color: #fff; position: relative; }
.rst-row.can { cursor: pointer; } .rst-row.can:active { background: rgba(255,255,255,.1); }
.rst-row.me { background: rgba(255,210,63,.18); box-shadow: inset 0 0 0 1.5px rgba(255,210,63,.7); }
.rst-pfp { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; background: rgba(255,255,255,.12); object-fit: cover; }
.rst-mid { flex: 1; min-width: 0; line-height: 1.15; }
.rst-nm { display: block; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rst-sub { display: block; font-size: 11px; color: #a9c0dd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rst-sub.st-trap { color: #8fd0ff; } .rst-sub.st-resp { color: #ffd23f; } .rst-sub.st-out { color: #ff9a9a; } .rst-sub.st-left { color: #c7ccd4; }
.rst-kos { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: #ffd23f; }
/* status appearance */
.rst-row.trap .rst-pfp { box-shadow: 0 0 0 2px #6cc0ff; }
.rst-row.resp { opacity: .78; } .rst-row.resp .rst-pfp { animation: rstPulse 1s ease-in-out infinite; }
.rst-row.out { opacity: .6; } .rst-row.out .rst-pfp { filter: grayscale(1); }
.rst-row.left { opacity: .38; } .rst-row.left .rst-pfp { filter: grayscale(1) contrast(.85); }     /* left the match: faint black & white */
.rst-row.left .rst-nm { text-decoration: line-through; text-decoration-thickness: 1px; }
@keyframes rstPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (max-width: 480px) { .rst-body { width: 160px; } .rst-pfp { width: 27px; height: 27px; } .rst-nm { font-size: 12px; } }
@media (orientation: landscape) and (max-height: 460px) { .roster { top: calc(46px + var(--safe-t, 0px)); } .rst-body { max-height: 70vh; } }
.hud-exit { position: absolute; z-index: 6; right: calc(12px + var(--safe-r)); top: calc(10px + var(--safe-t, 0px)); display: flex; gap: 8px; }
.emote-wheel { position: absolute; z-index: 7; right: calc(12px + var(--safe-r)); top: calc(66px + var(--safe-t, 0px)); display: grid; grid-template-columns: repeat(3, 52px); gap: 6px; padding: 8px; border-radius: 18px; background: rgba(10,28,52,.82); border: 2px solid rgba(255,255,255,.5); animation: popIn .15s ease-out; }
.emote-wheel button { width: 52px; height: 52px; border-radius: 14px; border: 0; background: rgba(255,255,255,.12); font-size: 28px; line-height: 1; padding: 0; }
.emote-wheel button:active { transform: scale(.9); }
.stats { left: 50%; bottom: calc(12px + var(--safe-b, 0px)); transform: translateX(-50%); display: flex; gap: 14px; padding: 7px 14px; border-radius: 20px; background: rgba(10, 28, 52, .75); border: 2px solid rgba(255,255,255,.4); }
.stat { display: flex; align-items: center; gap: 6px; }
.pips { display: flex; gap: 3px; }
.pip { width: 13px; height: 9px; border-radius: 3px; background: rgba(255,255,255,.18); }
.pip.on { background: var(--yellow); box-shadow: inset 0 -2px 0 #d99a1a; }
.hint-keys { left: 12px; bottom: calc(12px + var(--safe-b, 0px)); padding: 8px 12px; border-radius: 14px; background: rgba(10, 28, 52, .62); color: #fff; font-size: 12px; max-width: 46%; }
.joy-zone { position: absolute; z-index: 4; left: 0; top: 70px; bottom: 0; width: 55%; touch-action: none; }
.pad { left: calc(18px + var(--safe-l)); bottom: calc(62px + var(--safe-b, 0px)); width: 148px; height: 148px; border-radius: 50%; background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.4); touch-action: none; pointer-events: none !important; transition: opacity .15s; }
.pad.float { transition: none; }
.pad * { pointer-events: none !important; }
.pad button { position: absolute; width: 50px; height: 50px; border: 0; border-radius: 14px; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; touch-action: none; }
.pad button.on { background: rgba(255,255,255,.25); }
.pad .knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; will-change: transform; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fff, #d9e6ee); box-shadow: 0 4px 0 rgba(0,0,0,.25); pointer-events: none; }
.fire { right: calc(20px + var(--safe-r)); bottom: calc(62px + var(--safe-b, 0px)); width: 112px; height: 112px; border-radius: 50%; border: 4px solid #fff; background: radial-gradient(circle at 38% 30%, #a8e0ff, #3aa8ff 55%, #1764c4); box-shadow: 0 6px 0 #154f99, 0 12px 24px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; padding: 0; touch-action: none; }
.fire:active { transform: translateY(3px); }
.pop { position: absolute; z-index: 7; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; color: #fff; pointer-events: none; white-space: nowrap; text-shadow: 0 3px 0 rgba(0,0,0,.5), 0 0 3px rgba(0,0,0,.6); animation: popUp .95s ease-out forwards; }
.pop.big { font-size: 44px; color: var(--yellow); -webkit-text-stroke: 2px #5a3a00; }
.pop.blue { color: #9fdcff; }
.pop.big.blue { color: #6cc8ff; -webkit-text-stroke: 2px #0b3a6a; }
.pop.big.orange { color: #ff9a4a; -webkit-text-stroke: 2px #6a2a00; }
.pop.gold { color: var(--yellow); font-size: 20px; }
.pop.emote { font-size: 40px; text-shadow: none; padding: 6px 10px; border-radius: 18px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); animation: emoteUp 2s ease-out forwards; }
@keyframes popUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.4); } 14% { opacity: 1; transform: translate(-50%, -60%) scale(1.25); } 28% { transform: translate(-50%, -70%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -170%) scale(1); } }
@keyframes emoteUp { 0% { opacity: 0; transform: translate(-50%, -40%) scale(.3); } 10% { opacity: 1; transform: translate(-50%, -70%) scale(1.15); } 18% { transform: translate(-50%, -70%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -95%); } }
.banner { position: absolute; z-index: 8; left: 50%; top: 30%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 7vw, 54px); color: #fff; text-align: center; max-width: calc(100% - 32px); text-shadow: 0 4px 0 rgba(0,0,0,.45); -webkit-text-stroke: 2px #0b2a4a; pointer-events: none; animation: bannerIn 1.5s ease-out forwards; }
.banner.hot { color: #ff7a7a; -webkit-text-stroke: 2px #5a0b0b; }
.banner.gold { color: var(--yellow); -webkit-text-stroke: 2px #5a3a00; }
.banner.count { font-size: clamp(64px, 18vw, 120px); top: 42%; animation-duration: .95s; }
.banner.go { color: var(--yellow); }
@keyframes bannerIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -62%); } }
@media (prefers-reduced-motion: reduce) { .pop, .banner { animation-name: fadeOut; } @keyframes fadeOut { 0%, 70% { opacity: 1; } 100% { opacity: 0; } } }
.netwarn { left: 50%; top: 45%; transform: translate(-50%, -50%); background: rgba(10,28,52,.85); color: #fff; padding: 12px 18px; border-radius: 14px; }

/* ---------- smaller landscape screens (phones held sideways) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .gbtn.xl { min-height: 56px; }
  .logo-big { font-size: clamp(40px, 14vh, 80px); }
  #home .title-wrap { top: calc(3vh + var(--safe-t, 0px)); gap: 8px; }
  #home .home-actions { bottom: calc(6vh + var(--safe-b, 0px)); gap: 10px; }
  .tile { min-height: 70px; padding: 8px 12px 8px 10px; border-radius: 18px; }
  .tile.quick { min-height: 82px; }
  .tile .tile-ico { width: 46px; height: 46px; padding: 9px; }
  .tile.quick .tile-ico { width: 54px; height: 54px; }
  .tile strong { font-size: 20px; } .tile.quick strong { font-size: 24px; }
  .tile small { font-size: 12px; }
  .modes { gap: 10px; top: calc(50% - 8px); }
  .dock button { height: 50px; width: 64px; font-size: 11px; }
  .dock button svg { width: 24px; height: 24px; }
  .char-plate { bottom: calc(84px + var(--safe-b, 0px)); padding-block: 3px; }
  .char-plate b { font-size: 16px; }
  .pfp { width: 42px; height: 42px; }
  .me-info b { font-size: 15px; }
  .room-main { grid-template-columns: minmax(0, 1fr) 200px; }
  .slot { min-height: 0; }
  .slot-grid { grid-auto-rows: minmax(0, 1fr); align-content: stretch; }
  .slot-grid:has(> :nth-child(5)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slot .slot-plate { padding: 2px 4px 3px; }
  .slot .slot-plate b { font-size: 12px; } .slot .slot-plate small { font-size: 10px; }
  .slot .tools { flex-direction: row; top: 4px; right: 4px; gap: 3px; }
  .slot .tools button { width: 22px; height: 22px; padding: 3px; border-radius: 7px; }
  .slot .tools svg { width: 12px; height: 12px; }
  .slot .bot-tag { width: 20px; height: 20px; top: 4px; left: 4px; padding: 2px; }
  .slot.empty svg { width: 20px; height: 20px; } .slot.empty { font-size: 12px; }
  .room-side { gap: 6px; }
  .host-set { grid-template-columns: 1fr; padding: 6px; gap: 4px; }
  .host-set select { min-height: 34px; padding-block: 2px; }
  .chat-log { height: 44px; }
  .gbtn.big { min-height: 50px; font-size: 20px; }
  .room-actions { min-width: 220px; gap: 6px; }
  .win-title { min-height: 48px; }
  .win-title h2 { font-size: 22px; }
  .win-body { padding: 12px 14px; gap: 10px; }
}

/* ---------- portrait (phones held upright, narrow tablets) ---------- */
@media (orientation: portrait), (max-width: 720px) {
  .online-pill { display: none; }
  .topbar { gap: 6px; flex-wrap: wrap; }
  .me-card { max-width: none; flex: 1 1 100%; padding-inline-end: 12px; }
  .topbar .spacer { display: none; }
  .topbar .cur { flex: 0 1 auto; }
  .topbar .fs-btn { margin-inline-start: auto; width: 40px; height: 40px; }
  .char-plate { left: 50%; top: 49%; bottom: auto; }
  .modes { left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r)); top: auto; bottom: calc(96px + var(--safe-b, 0px)); transform: none; width: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile.quick { grid-column: 1 / -1; min-height: 90px; }
  .tile { min-height: 80px; padding: 10px 12px; gap: 10px; }
  .tile .tile-ico { width: 46px; height: 46px; padding: 9px; }
  .tile.quick .tile-ico { width: 58px; height: 58px; }
  .tile strong { font-size: 19px; } .tile.quick strong { font-size: 26px; }
  .tile small { font-size: 12px; }
  .tile.rooms small, .tile.create small { display: none; }
  .dock { left: calc(10px + var(--safe-l)); right: calc(10px + var(--safe-r)); transform: none; justify-content: space-between; gap: 2px; padding: 4px; }
  .dock button { width: auto; flex: 1; height: 58px; font-size: 11px; min-width: 0; }
  .dock button svg { width: 26px; height: 26px; }
  .dock .badge { right: 4px; }
  #room { gap: 8px; }
  .room-top .gbtn span { display: none; }
  .room-title h2 { font-size: 22px; }
  .room-main { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .room-main > * { flex-shrink: 0; }
  .host-set .field span { font-size: 12px; }
  .host-set select { min-height: 40px; }
  .slot-area { flex: none; flex-direction: column; gap: 8px; }
  .team-group, .slot-grid { flex: none; }
  .slot-grid,   .team-group { padding: 8px; gap: 6px; }
  .team-group h3 { font-size: 14px; }
  .slot { min-height: 0; height: clamp(92px, 15vh, 128px); border-radius: 14px; }
  .slot .slot-plate b { font-size: 12px; }
  .slot .stamp { font-size: 11px; padding: 1px 6px; top: 6px; }
  .slot .tools { flex-direction: row; top: 4px; right: 4px; gap: 3px; }
  .slot .tools button { width: 24px; height: 24px; padding: 3px; border-radius: 8px; }
  .slot .tools svg { width: 13px; height: 13px; }
  .slot .bot-tag { width: 22px; height: 22px; top: 4px; left: 4px; padding: 2px; }
  .room-side { flex-direction: row; align-items: stretch; }
  .map-card { width: 120px; flex: none; border-radius: 14px; }
  .map-name { font-size: 11px; padding: 3px 4px 4px; }
  .host-set { flex: 1; grid-template-columns: 1fr; gap: 6px; padding: 8px; align-content: center; }
  .room-bottom { grid-template-columns: 1fr; gap: 8px; }
  .chat-log { height: 54px; }
  .room-actions { min-width: 0; flex-direction: row; flex-wrap: wrap; }
  .small-actions { flex: 1 1 100%; }
  .room-actions .gbtn.big { flex: 1; min-height: 56px; font-size: 22px; }
  .room-actions .wait { flex: 1 1 100%; }
  .looks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .look span { font-size: 11px; }
  .statgrid b { font-size: 20px; }
  .win-box { max-width: 100% !important; }
  .win-title h2 { font-size: 22px; }
  .win-title .x { top: -10px; right: -8px; width: 42px; height: 42px; }
  .hrow { grid-template-columns: 56px minmax(0, 1fr); }
  .hrow .nums { grid-column: 1 / -1; justify-content: flex-end; }
  .result-list > div { grid-template-columns: 30px minmax(0, 1fr) 40px 40px 32px; gap: 6px; }
}
@media (max-width: 480px) {
  .hud-top { justify-content: flex-start; left: calc(10px + var(--safe-l)); }
  .scorebar { gap: 6px; padding: 5px 8px; }
  .hud-exit .ibtn { width: 42px; height: 42px; }
}
@media (max-width: 640px) {
  .pad { width: 128px; height: 128px; left: 14px; }
  .pad button { transform: scale(.86); }
  .fire { width: 92px; height: 92px; right: 14px; }
  .stats { gap: 8px; padding: 6px 10px; }
  .pip { width: 8px; }
  .timer { font-size: 22px; min-width: 60px; }
  .score { min-width: 32px; height: 30px; font-size: 18px; }
  .cur { height: 34px; } .cur svg { width: 24px; height: 24px; } .cur b { font-size: 15px; min-width: 24px; }
}
@media (max-width: 380px) {
  .dock button span { display: none; }
  .dock button { height: 48px; }
  .modes { bottom: calc(78px + var(--safe-b, 0px)); }
}

/* ---------- flags, social links, festivals ---------- */
.flag { font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; font-weight: 400; display: inline-block; margin-inline-end: .25em; line-height: 1; vertical-align: -0.08em; }
.links-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--sky); border: 2px solid var(--sky-2); }
.link-in { display: flex; align-items: center; gap: 8px; }
.link-in svg { width: 32px; height: 32px; flex: none; }
.howto summary { cursor: pointer; font-weight: 600; color: var(--blue-dark); padding: 4px 0; }
.howto p { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: 14px; line-height: 1.45; -webkit-user-select: text; user-select: text; }
.howto p svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.soc-row { display: flex; gap: 10px; justify-content: center; }
.soc-row:empty { display: none; }
.soc-row a { width: 48px; height: 48px; border-radius: 14px; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); background: #fff; display: flex; align-items: center; justify-content: center; }
.soc-row a svg { width: 32px; height: 32px; }
.soc-row a:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.fest-banner { position: fixed; z-index: 3; left: 50%; top: calc(70px + var(--safe-t, 0px)); transform: translateX(-50%); display: none; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 4px 14px 4px 6px; border-radius: 999px;
  border: 3px solid var(--ink); background: linear-gradient(180deg, #fff6c9 0 50%, #ffe27a 50%); box-shadow: 0 4px 0 var(--ink); color: var(--ink-2); white-space: nowrap; animation: festIn .5s cubic-bezier(.2,1.5,.4,1); }
body.s-home .fest-banner, body.s-lobby .fest-banner { display: inline-flex; }
.fest-banner[hidden] { display: none !important; }
.fest-emoji { font-size: 26px; line-height: 1; font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; }
.fest-banner b { font-family: var(--font-display); font-weight: 800; font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
.fest-banner small { font-weight: 600; color: var(--orange-dark); }
.fest-more { font-style: normal; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
@keyframes festIn { from { transform: translateX(-50%) scale(.6); opacity: 0; } }
body.s-home .fest-banner { top: auto; bottom: calc(9vh + 190px + var(--safe-b, 0px)); }
@media (orientation: portrait), (max-width: 720px) { .fest-banner { top: calc(112px + var(--safe-t, 0px)); } body.s-home .fest-banner { bottom: auto; top: calc(14px + var(--safe-t, 0px)); left: calc(14px + var(--safe-l)); transform: none; max-width: calc(100% - 140px); } }
@media (max-height: 500px) and (orientation: landscape) { .fest-banner { top: calc(62px + var(--safe-t, 0px)); padding-block: 2px; } body.s-home .fest-banner { display: none; } }
.prow .emo { width: 42px; height: 42px; border-radius: 50%; background: #fff3c4; border: 2px solid var(--yellow-2); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; }
.prow .val.when { font-size: 14px; color: var(--orange-dark); }

.fest-head { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: linear-gradient(180deg, #fff8d8, #ffe89a); border: 3px solid var(--yellow-2); }
.fest-big { font-size: 54px; line-height: 1; font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; }
.fest-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fest-head b { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.fest-head small { color: var(--orange-dark); font-weight: 600; }
.fest-story { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink); -webkit-user-select: text; user-select: text; }
#festList .prow { cursor: pointer; }
#festList .prow:active { transform: translateY(2px); }

/* ---------- lobby room panel (rooms are listed right on the lobby screen) ---------- */
.lobby-panel { position: absolute; right: calc(16px + var(--safe-r)); top: calc(74px + var(--safe-t, 0px)); bottom: calc(98px + var(--safe-b, 0px)); width: min(480px, 44vw); display: flex; flex-direction: column; gap: 10px; }
.lp-actions { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.lp-actions .tile { min-height: 82px; padding: 8px 12px 8px 10px; gap: 10px; border-radius: 20px; }
.lp-actions .tile .tile-ico { width: 50px; height: 50px; padding: 10px; }
.lp-actions .tile strong { font-size: 21px; }
.lp-actions .tile.quick strong { font-size: 22px; }
.lp-actions .tile small { font-size: 12px; }
.room-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 22px; background: rgba(255,255,255,.93); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.rp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-head > b { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.rp-count { font-style: normal; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); }
.rp-filter { margin-inline-start: auto; display: flex; gap: 4px; background: var(--sky-2); padding: 3px; border-radius: 12px; }
.rp-filter button { border: 0; background: transparent; border-radius: 9px; padding: 4px 10px; font-weight: 700; font-size: 13px; color: var(--navy-2); white-space: nowrap; }
.rp-filter button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 2px 0 #a9c8e6; }
.rp-tools { display: flex; gap: 8px; }
.rp-tools .search { flex: 1 1 50%; }
.rp-tools .joincode { flex: 1 1 50%; }
.rp-tools input { min-height: 40px; font-size: 15px; }
.rp-tools .joincode .gbtn { min-height: 40px; }
.room-panel .room-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px 4px 6px 2px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.rrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 14px; background: var(--sky); border: 2px solid var(--sky-2); }
.rrow.bot { background: #f3f6fa; }
.rrow.playing { opacity: .72; }
.rrow .mtag { font-size: 11px; font-weight: 800; color: #fff; border-radius: 8px; padding: 3px 7px; border: 2px solid var(--ink); white-space: nowrap; }
.rrow .mtag.team { background: var(--blue); }
.rrow .mtag.ffa { background: var(--orange); }
.rrow .rinfo { min-width: 0; display: flex; flex-direction: column; }
.rrow .rinfo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; display: flex; align-items: center; gap: 4px; }
.rrow .rinfo b svg { width: 14px; height: 14px; flex: none; color: var(--gray); }
.rrow .rinfo small { color: var(--navy-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow .rcount { font-family: var(--font-display); font-weight: 800; font-size: 15px; white-space: nowrap; }
.rrow .gbtn { min-height: 36px; padding: 0 12px; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
#lobby .char-plate { left: calc((100% - min(480px, 44vw) - 16px) / 2); }
@media (max-height: 500px) and (orientation: landscape) {
  .lobby-panel { top: calc(58px + var(--safe-t, 0px)); bottom: calc(70px + var(--safe-b, 0px)); gap: 6px; }
  .lp-actions .tile { min-height: 56px; padding: 4px 10px 4px 6px; }
  .lp-actions .tile .tile-ico { width: 38px; height: 38px; padding: 7px; }
  .lp-actions .tile strong { font-size: 16px; } .lp-actions .tile small { display: none; }
  .room-panel { padding: 6px; gap: 5px; }
  .rp-tools { display: none; }
  .rp-head > b { font-size: 16px; }
  .rrow { padding: 4px 6px; }
  .fest-banner { left: calc(12px + var(--safe-l)); transform: none; }
}
@media (orientation: portrait), (max-width: 720px) {
  .lobby-panel { left: calc(10px + var(--safe-l)); right: calc(10px + var(--safe-r)); width: auto; top: 47%; bottom: calc(86px + var(--safe-b, 0px)); gap: 8px; }
  .lp-actions .tile { min-height: 62px; padding: 6px 10px 6px 6px; }
  .lp-actions .tile .tile-ico { width: 40px; height: 40px; padding: 8px; }
  .lp-actions .tile strong { font-size: 17px; } .lp-actions .tile.quick strong { font-size: 18px; } .lp-actions .tile small { display: none; }
  .room-panel { padding: 8px; }
  .rp-tools .joincode .gbtn { padding: 0 10px; }
  #lobby .char-plate { left: 50%; top: 39.5%; }
  .lp-actions .tile.quick { grid-column: auto; min-height: 62px; }
  .rp-filter button { padding: 4px 7px; font-size: 12px; }
}
@media (max-width: 380px) { .lobby-panel { bottom: calc(66px + var(--safe-b, 0px)); } }

/* ---------- settings ---------- */
.pref-list { display: flex; flex-direction: column; gap: 8px; }
.pref-sec { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--navy-2); margin-top: 6px; }
.pref-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--sky); flex-wrap: wrap; }
.pref-row > b { font-weight: 600; font-size: 15px; flex: 1 1 160px; }
.pref-row input[type=range] { flex: 1 1 140px; accent-color: var(--blue); height: 28px; }
.pref-row .val { min-width: 40px; text-align: end; font-weight: 700; color: var(--navy-2); }
.pref-row .switch button { padding: 0 12px; }
.toggle { position: relative; width: 56px; height: 32px; border-radius: 16px; border: 3px solid var(--ink); background: var(--gray-2); padding: 0; flex: none; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.25); transition: transform .15s; }
.toggle[aria-pressed=true] { background: var(--green); }
.toggle[aria-pressed=true]::after { transform: translateX(24px); }
[dir=rtl] .toggle[aria-pressed=true]::after { transform: translateX(-24px); }
[dir=rtl] .toggle::after { left: auto; right: 2px; }
.ping-box { right: calc(12px + var(--safe-r)); top: calc(64px + var(--safe-t, 0px)); padding: 3px 10px; border-radius: 10px; background: rgba(10,28,52,.65); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ping-box .good { color: #6ef0a0; } .ping-box .mid { color: #ffd34d; } .ping-box .bad { color: #ff8a8a; }
body.no-chat #room .chat { visibility: hidden; }
/* left-handed: joystick on the right, balloon button on the left */
body.lefty .pad { left: auto; right: calc(18px + var(--safe-r)); }
body.lefty .fire { right: auto; left: calc(20px + var(--safe-l)); }
body.lefty .joy-zone { left: auto; right: 0; }
.pad { transform: scale(var(--joy-scale, 1)); transform-origin: center; }
.fire { transform: scale(var(--btn-scale, 1)); transform-origin: center; }
.fire:active { transform: scale(var(--btn-scale, 1)) translateY(3px); }
.news-list { margin: 0; padding: 0 0 0 4px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.news-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.news-list li::before { content: '✨'; flex: none; font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; }
.news-when { margin: 0; padding: 6px 12px; border-radius: 12px; background: var(--sky); color: var(--navy-2); font-weight: 600; font-size: 14px; text-align: center; }

/* ---------- in-match item buttons (one-use items from the bag) ---------- */
.items { right: calc(20px + var(--safe-r)); bottom: calc(190px + var(--safe-b, 0px)); display: flex; gap: 8px; pointer-events: auto; }
.item-btn { position: relative; width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle at 38% 30%, #ffffff, #cfe7fb 60%, #8fb7de); box-shadow: 0 4px 0 #3c5f8a, 0 8px 14px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; padding: 0; touch-action: none; }
.item-btn .ico { font-size: 26px; line-height: 1; }
.item-btn b { position: absolute; right: -4px; bottom: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 13px; line-height: 22px; border: 2px solid #fff; }
.item-btn kbd { position: absolute; left: -4px; top: -6px; font: 700 11px/16px var(--font-ui, sans-serif); padding: 0 5px; border-radius: 6px; background: #fff; color: var(--ink); border: 2px solid var(--ink); }
body.touch .item-btn kbd { display: none; }
.item-btn:disabled, .item-btn.off { filter: grayscale(1); opacity: .5; }
.item-btn:active:not(:disabled) { transform: translateY(3px); }
.item-btn.hot { animation: itemPulse .6s ease-in-out infinite alternate; border-color: var(--yellow); }
@keyframes itemPulse { from { transform: scale(1); } to { transform: scale(1.18); } }
body.lefty .items { right: auto; left: calc(20px + var(--safe-l)); }
@media (max-width: 640px) { .items { bottom: calc(166px + var(--safe-b, 0px)); right: 10px; gap: 6px; } .item-btn { width: 46px; height: 46px; } .item-btn .ico { font-size: 22px; } }
@media (max-height: 500px) and (orientation: landscape) { .items { bottom: auto; top: calc(50% - 120px); right: calc(14px + var(--safe-r)); flex-direction: column; } }

/* ---------- lobby side buttons (check-in, level & bag, how to play) ---------- */
.side-btns { position: absolute; right: calc(14px + var(--safe-r)); top: calc(78px + var(--safe-t, 0px)); display: flex; flex-direction: column; gap: 10px; z-index: 3; }
.side-btn { position: relative; width: 66px; padding: 6px 2px 5px; border-radius: 18px; border: 3px solid var(--ink); background: linear-gradient(180deg, #ffffff, #dcecfb); box-shadow: 0 4px 0 var(--ink); color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 700; line-height: 1.1; text-align: center; }
.side-btn svg { width: 28px; height: 28px; color: var(--blue-dark); }
.side-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.side-btn .badge.dot { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--red); color: #fff; font-style: normal; font-weight: 800; font-size: 13px; line-height: 18px; border: 2px solid #fff; animation: itemPulse .7s ease-in-out infinite alternate; }
@media (orientation: portrait), (max-width: 720px) { .side-btns { top: calc(96px + var(--safe-t, 0px)); right: calc(8px + var(--safe-r)); gap: 8px; } .side-btn { width: 58px; font-size: 9.5px; border-radius: 15px; } .side-btn svg { width: 24px; height: 24px; } }
@media (max-height: 500px) and (orientation: landscape) { .side-btns { top: calc(60px + var(--safe-t, 0px)); gap: 6px; } .side-btn { width: 54px; padding: 3px 2px; font-size: 9px; } .side-btn svg { width: 20px; height: 20px; } }

/* reward chips */
.chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.rchip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 4px; border-radius: 10px; background: #fff; border: 2px solid var(--ink); font-size: 12px; white-space: nowrap; }
.rchip svg { width: 15px; height: 15px; } .rchip i { font-style: normal; font-size: 14px; }
.sub { margin: 4px 0 0; font-family: var(--font-display); font-size: 16px; color: var(--ink); }

/* check-in */
.ci-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ci-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 3px 8px; border-radius: 14px; border: 3px solid var(--ink); background: #eef5fc; min-width: 0; }
.ci-day small { font-weight: 800; color: var(--navy-2); font-size: 11px; }
.ci-day .chips { flex-direction: column; }
.ci-day.big { background: linear-gradient(180deg, #fff3c4, #ffd76a); }
.ci-day.today { border-color: var(--yellow-2, #f2a900); box-shadow: 0 0 0 3px var(--yellow); animation: itemPulse .8s ease-in-out infinite alternate; }
.ci-day.done { opacity: .6; }
.ci-day .tick { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #1f9d5c; text-shadow: 0 2px 0 #fff; }
.ci-month { display: flex; flex-direction: column; gap: 8px; }
.ci-bar, .sm-bar { height: 14px; border-radius: 7px; background: #dfe8f2; border: 2px solid var(--ink); overflow: hidden; }
.ci-bar i, .sm-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4aa8ff, #3fd08a); border-radius: 5px; }
.ci-ms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ci-m { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border-radius: 12px; background: #f4f8fc; border: 2px dashed var(--navy-2); font-size: 12px; }
.ci-m.got { border-style: solid; border-color: #1f9d5c; background: #e6f8ee; }
@media (max-width: 480px) { .ci-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ci-ms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* level & bag */
.lv-head { display: flex; align-items: center; gap: 12px; }
.lv.big { font-size: 18px; padding: 4px 12px; }
.lv-prog { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.expbar.big { height: 14px; width: 100%; }
.bag { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bag-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 14px; border: 3px solid var(--ink); background: #fff; text-align: center; }
.bag-item .ico { font-size: 30px; } .bag-item em { font-style: normal; font-weight: 800; color: var(--blue-dark); font-size: 18px; } .bag-item small { font-size: 11px; color: var(--navy-2); }
.lv-table { max-height: 42vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; border-radius: 12px; background: #f4f8fc; padding: 6px; border: 2px solid #c9d8e8; }
.lv-row { display: grid; grid-template-columns: 76px 88px minmax(0, 1fr); align-items: center; gap: 6px; padding: 4px 6px; border-radius: 10px; background: #fff; font-size: 13px; content-visibility: auto; contain-intrinsic-size: 0 34px; }
.lv-row .chips { justify-content: flex-start; }
.lv-row.past { opacity: .5; } .lv-row.now { background: #fff3c4; box-shadow: inset 0 0 0 2px var(--yellow-2, #f2a900); }
.lv-row .need { color: var(--navy-2); font-weight: 600; }
@media (max-width: 480px) { .lv-row { grid-template-columns: 1fr 1fr; } .lv-row .chips { grid-column: 1 / -1; } }
.lvup-big { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--blue-dark); }
.reward-row { display: flex; justify-content: center; margin: 6px 0 12px; }
.reward-row .rchip { font-size: 15px; padding: 3px 10px 3px 6px; } .reward-row .rchip svg { width: 20px; height: 20px; }

/* skill meter on the player card */
.skill-meter { display: flex; flex-direction: column; gap: 4px; }
.sm-top { display: flex; justify-content: space-between; font-weight: 700; } .sm-top b { font-family: var(--font-display); font-size: 20px; color: var(--blue-dark); }
.skill-meter small { color: var(--navy-2); font-weight: 600; }

/* ---------- tutorial overlay ---------- */
.tut { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.tut-bubble { position: absolute; left: 50%; top: calc(86px + var(--safe-t, 0px)); transform: translateX(-50%); width: min(520px, calc(100% - 24px)); padding: 10px 14px 10px; border-radius: 20px; border: 3px solid var(--ink); background: #fff; box-shadow: 0 5px 0 var(--ink), 0 10px 24px rgba(0,0,0,.25); pointer-events: auto; }
.tut-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tut-head b { font-family: var(--font-display); color: var(--blue-dark); font-size: 15px; }
.tut-skip { border: 2px solid var(--ink); background: #eef5fc; border-radius: 10px; padding: 2px 10px; font-weight: 700; font-size: 12px; color: var(--ink); }
.tut-bubble p { margin: 4px 0 6px; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.tut-dots { display: flex; gap: 5px; justify-content: center; }
.tut-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d3dfeb; border: 2px solid var(--ink); }
.tut-dots i.done { background: #3fd08a; } .tut-dots i.now { background: var(--yellow); transform: scale(1.3); }
.tut-arrow { position: absolute; left: 0; top: 0; width: 40px; height: 52px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.35)); }
.tut-arrow svg { width: 40px; height: 52px; display: block; }
.tut-ring { position: absolute; left: 0; top: 0; border-radius: 50%; border: 4px solid var(--yellow); box-shadow: 0 0 0 4px rgba(15,37,71,.5), 0 0 24px 6px rgba(255,211,77,.8); animation: tutRing 0.9s ease-in-out infinite alternate; }
@keyframes tutRing { from { opacity: 1; } to { opacity: .35; } }
@media (max-height: 500px) and (orientation: landscape) { .tut-bubble { top: calc(56px + var(--safe-t, 0px)); padding: 6px 10px; } .tut-bubble p { font-size: 14px; margin: 2px 0 4px; } }
.tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tut.low .tut-bubble { top: auto; bottom: calc(250px + var(--safe-b, 0px)); }
@media (max-height: 500px) and (orientation: landscape) { .tut.low .tut-bubble { bottom: calc(52px + var(--safe-b, 0px)); width: min(480px, calc(100% - 420px)); min-width: 300px; } .tut .tut-bubble { width: min(480px, calc(100% - 420px)); min-width: 300px; } }
@media (orientation: landscape) and (min-height: 501px) { .tut.low .tut-bubble { bottom: calc(90px + var(--safe-b, 0px)); } }
@media (orientation: portrait), (max-width: 720px) { .side-btns { top: calc(150px + var(--safe-t, 0px)); } }

/* ---------- modes: filter row, quick-play picker, queue, spectating ---------- */
.rp-filter { flex: 1 1 100%; margin-inline-start: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rp-filter::-webkit-scrollbar { display: none; }
.rp-filter button { flex: none; }
.mtag { white-space: nowrap; }
.mtag.classic, .mtag.survival, .mtag.shrink { background: #e05a6a; } .mtag.flag { background: #3fbf6a; } .mtag.coin { background: #e8a92a; }
.mtag.boss { background: #7a3fd0; } .mtag.crazy { background: #ff6aa8; } .mtag.giant { background: #2fa8b8; } .mtag.ranked { background: #c79a2a; } .mtag.practice { background: #7a7f8c; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.mode-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; border-radius: 16px; border: 3px solid var(--ink); background: linear-gradient(180deg, #fff, #e6f1fc); box-shadow: 0 4px 0 var(--ink); text-align: center; color: var(--ink); }
.mode-card .ico { font-size: 30px; line-height: 1.1; } .mode-card b { font-family: var(--font-display); font-size: 16px; } .mode-card small { font-size: 11.5px; color: var(--navy-2); line-height: 1.25; text-align: center; text-align-last: center; }
.mode-card:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.mode-card.ranked { background: linear-gradient(180deg, #fff6d8, #ffe08a); } .mode-card.boss { background: linear-gradient(180deg, #f3e8ff, #d9c2ff); }
.practice-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 8px; border-radius: 14px; background: #f1f6fb; border: 2px dashed var(--navy-2); }
.practice-row select { width: auto; min-height: 38px; }
@media (max-width: 480px) { .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.queue-box { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(92px + var(--safe-b, 0px)); z-index: 8; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 18px; border: 3px solid var(--ink); background: #fff; box-shadow: 0 5px 0 var(--ink); max-width: calc(100% - 24px); }
.queue-box b { display: block; font-size: 15px; } .queue-box small { color: var(--navy-2); font-weight: 600; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 4px solid #cfe2f5; border-top-color: var(--blue); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.throw-btn { right: calc(142px + var(--safe-r)); bottom: calc(70px + var(--safe-b, 0px)); width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle at 38% 30%, #fff7d1, #ffcf3a 60%, #e09a10); box-shadow: 0 4px 0 #9a6a0a, 0 8px 14px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; font-size: 28px; padding: 0; touch-action: none; pointer-events: auto; }
.throw-btn kbd { position: absolute; left: -4px; top: -6px; font: 700 11px/16px sans-serif; padding: 0 5px; border-radius: 6px; background: #fff; color: var(--ink); border: 2px solid var(--ink); }
body.touch .throw-btn kbd { display: none; }
body.lefty .throw-btn { right: auto; left: calc(142px + var(--safe-l)); }
@media (max-width: 640px) { .throw-btn { right: 112px; width: 52px; height: 52px; font-size: 24px; } }
.watch-pill { left: 50%; transform: translateX(-50%); bottom: calc(18px + var(--safe-b, 0px)); display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 16px; background: rgba(15,37,71,.88); color: #fff; font-weight: 700; pointer-events: auto; z-index: 6; }
body.watching #pad, body.watching #fire, body.watching #itemBar, body.watching #joyZone, body.watching .hud.stats, body.watching #emoteBtn { display: none !important; }
.boss-bar { left: 50%; transform: translateX(-50%); top: calc(86px + var(--safe-t, 0px)); width: min(360px, 70vw); display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 14px; background: rgba(15,37,71,.85); color: #fff; font-family: var(--font-display); }
.boss-bar .bb { flex: 1; height: 14px; border-radius: 7px; background: #3a2a5a; overflow: hidden; border: 2px solid #fff; }
.boss-bar .bb i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff4f86, #c25be0); transition: width .25s; }
.stat.abil { gap: 6px; font-size: 18px; } .stat.abil:not(:has(span:not([hidden]))) { display: none; }
.stat.abil b { font-size: 14px; color: #fff; }
.mmr-gain { font-weight: 800; color: #c79a2a; }

/* ---------- missions, achievements, season pass ---------- */
.ms-pane { display: flex; flex-direction: column; gap: 8px; max-height: 58vh; overflow-y: auto; padding: 2px; }
.ms-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; border: 3px solid var(--ink); background: #fff; }
.ms-row.done { opacity: .55; } .ms-row.bonus { background: linear-gradient(180deg, #fff7d6, #ffe7a0); }
.ms-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ms-txt b { font-size: 14px; } .ms-txt small { color: var(--navy-2); font-weight: 600; font-size: 11px; }
.ms-row .chips { justify-content: flex-end; max-width: 160px; }
.stars { color: #f2a900; letter-spacing: 2px; font-size: 13px; }
.pbar { height: 10px; border-radius: 5px; background: #dfe8f2; overflow: hidden; border: 2px solid var(--ink); }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, #4aa8ff, #3fd08a); }
@media (max-width: 520px) { .ms-row { grid-template-columns: minmax(0, 1fr) auto; } .ms-row .chips { grid-column: 1 / 2; justify-content: flex-start; max-width: none; } }
.pass-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.pass-head .pbar { grid-column: 1 / -1; } .pass-head small { grid-column: 1 / -1; color: var(--navy-2); font-weight: 600; }
.pass-grid { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.pass-tier { flex: none; width: 112px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; scroll-snap-align: center; opacity: .6; }
.pass-tier.open { opacity: 1; }
.pass-tier > b { text-align: center; font-family: var(--font-display); background: var(--ink); color: #fff; border-radius: 10px; }
.pass-cell { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 6px 4px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; min-height: 96px; justify-content: space-between; }
.pass-cell.premium { background: linear-gradient(180deg, #fff3c4, #ffd76a); }
.pass-cell .chips { flex-direction: column; }

/* ---------- guilds ---------- */
.g-head { display: flex; align-items: center; gap: 12px; }
.g-head b { display: block; font-family: var(--font-display); font-size: 20px; } .g-head small { color: var(--navy-2); font-weight: 600; }
.g-emb { flex: none; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; border: 3px solid var(--ink); }
.prow .g-emb { width: 38px; height: 38px; font-size: 22px; border-radius: 12px; }
.emb-pick { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.emb-pick button { font-size: 20px; padding: 4px 0; border-radius: 10px; border: 2px solid #c9d8e8; background: #fff; }
.emb-pick button.on { border-color: var(--ink); background: #fff3c4; }
.col-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.col-pick button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #c9d8e8; }
.col-pick button.on { box-shadow: 0 0 0 3px var(--ink); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: 20px; height: 20px; min-height: 0; }
.g-chat { height: 38vh; background: #f4f8fc; border-radius: 12px; padding: 8px; border: 2px solid #c9d8e8; }
.g-leave { align-self: flex-start; margin-top: 4px; }
.tier-row { font-weight: 700; color: var(--blue-dark); text-align: center; }

/* ---------- shop ---------- */
.shop-pane { display: flex; flex-direction: column; gap: 10px; max-height: 56vh; overflow-y: auto; padding: 2px; align-items: stretch; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.shop-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 16px; border: 3px solid var(--ink); background: #fff; text-align: center; }
.shop-card .price { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 16px; }
.shop-card .price svg { width: 18px; height: 18px; }
.big-btn { min-height: 52px; font-size: 18px; align-self: center; padding-inline: 22px; }
.topup-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.bank-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border-radius: 16px; border: 3px solid var(--ink); background: linear-gradient(180deg, #ffffff, #e3f0fc); }
.bank-card .acc { font-family: var(--font-display); font-size: 24px; letter-spacing: 1px; color: var(--blue-dark); }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; background: #fff7d6; border: 2px solid #e8c45a; font-size: 13px; }
.pack b { font-size: 16px; } .pack em { position: absolute; top: -8px; right: -4px; background: var(--red); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 8px; }
.topup-status { font-weight: 700; min-height: 1.4em; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; background: #e3ebf4; }
.tag.review { background: #fff3c4; } .tag.approved { background: #d6f5e3; } .tag.rejected { background: #fde0e1; }
/* announcements */
.ann-list { display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow-y: auto; }
.ann { padding: 10px 12px; border-radius: 14px; background: #f4f8fc; border: 2px solid #c9d8e8; }
.ann b { display: block; font-size: 16px; } .ann p { margin: 4px 0; white-space: pre-line; } .ann small { color: var(--navy-2); }
.ann-ticker { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(44px + var(--safe-b, 0px)); max-width: min(520px, calc(100% - 24px)); display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 16px; border: 3px solid var(--ink); background: #fff; box-shadow: 0 4px 0 var(--ink); color: var(--ink); }
.ann-ticker b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-list li.news-sep, #newsList li.news-sep { list-style: none; color: var(--navy-2); font-weight: 700; font-size: 13px; margin-top: 6px; }

.curse-pill { left: 50%; transform: translateX(-50%); top: calc(120px + var(--safe-t, 0px)); padding: 6px 14px; border-radius: 14px; background: #7a2fd0; color: #fff; font-weight: 800; border: 3px solid #fff; box-shadow: 0 4px 0 #3b1470; animation: itemPulse .5s ease-in-out infinite alternate; }
.mtag { max-width: 116px; overflow: hidden; text-overflow: ellipsis; text-align: center; text-align-last: center; }
@media (orientation: portrait), (max-width: 720px) {
  .side-btns { display: grid; grid-template-columns: repeat(2, 58px); gap: 6px; top: calc(150px + var(--safe-t, 0px)); }
  .side-btn { width: 58px; padding: 4px 2px; }
}

/* ---------- wardrobe ---------- */
#lookList { flex: none; height: min(46vh, 420px); overflow-y: auto; padding: 2px; align-content: start; }
.look { position: relative; }
.look.locked img { filter: saturate(.55) brightness(.92); }
.look .price, .chip .price { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 800; padding: 0 5px; border-radius: 8px; background: #fff; border: 2px solid var(--ink); }
.look .price { position: absolute; top: 4px; right: 4px; }
.look .price svg, .chip .price svg { width: 12px; height: 12px; }
.chips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 14px; border: 3px solid #c9d8e8; background: #fff; color: var(--ink); min-height: 76px; justify-content: center; }
.chip.on { border-color: var(--ink); background: #fff3c4; box-shadow: 0 0 0 2px var(--yellow); }
.chip.locked { background: #f4f8fc; }
.chip.fest { border-style: dashed; border-color: #e8902a; }
.chip .ico { font-size: 24px; line-height: 1; }
.chip .sw { width: 34px; height: 10px; border-radius: 5px; border: 2px solid var(--ink); }
.chip small { font-size: 10.5px; font-weight: 700; }
.chip small.stat { color: var(--blue-dark); }
.guide { display: flex; flex-direction: column; gap: 6px; max-height: 58vh; overflow-y: auto; padding: 2px; }
.g-sec { border: 2px solid #c9d8e8; border-radius: 14px; background: #fff; padding: 6px 12px; }
.g-sec[open] { border-color: var(--ink); }
.g-sec summary { font-family: var(--font-display); font-size: 16px; cursor: pointer; padding: 4px 0; }
.g-sec p { margin: 6px 0; line-height: 1.45; } .g-sec ul { margin: 4px 0 6px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.tabs.mini button { min-height: 34px; font-size: 13px; }
.net-pick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.net-pick .chip { min-height: 0; padding: 6px 10px; font-weight: 700; font-size: 13px; }
.usdt-card code.addr { font-size: 12px; word-break: break-all; background: #fff; padding: 4px 8px; border-radius: 8px; border: 2px solid #c9d8e8; user-select: all; }
.usdt-card .warn { color: #c05a00; font-weight: 700; }
/* shop: pages of packs, pack colour by kind, Thai-only note on bank top-up */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 4px; font-weight: 700; color: var(--navy, #1d3557); }
.pager .gbtn { min-width: 44px; }
.tabs.mini button svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.shop-card.pk-n { border-top: 4px solid #7cc4f5; } .shop-card.pk-s { border-top: 4px solid #8fd6a6; } .shop-card.pk-b { border-top: 4px solid #ffd166; }
.shop-card.pk-m, .shop-card.pk-ns, .shop-card.pk-nb, .shop-card.pk-sb { border-top: 4px solid #b39ddb; }
.shop-card.pk-z, .shop-card.pk-mz { border-top: 4px solid #f4a261; }
.thai-only { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: #fff8e1; border: 2px solid #ffd166; border-radius: 14px; padding: 8px 10px; margin: 6px 0 10px; color: #5b4300; }
.thai-only b { font-size: 14px; } .thai-only small { font-size: 12px; opacity: .9; }
.thai-head { display: inline-flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.flag-th { width: 27px; height: 18px; flex: 0 0 auto; border-radius: 3px; box-shadow: 0 0 0 1.5px rgba(23,52,95,.35); }
/* Gold price list */
.rate-head { text-align: center; font-weight: 800; color: var(--navy); background: linear-gradient(#fff7d6, #ffe9a6); border: 2px solid #e8c45a; border-radius: 12px; padding: 8px; margin-bottom: 8px; }
.rate-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12.5px; margin: 4px 0 8px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 2px var(--sky-2); }
.rate-table th { background: var(--navy); color: #fff; font-weight: 700; padding: 7px 3px; font-size: 11.5px; line-height: 1.2; }
.rate-table.cmp th:first-child, .rate-table.cmp td:first-child { width: 44%; }
.rate-table td { text-align: center; padding: 6px 3px; overflow-wrap: anywhere; border-top: 1px solid var(--sky-2); color: var(--ink); }
.rate-table td.bonus { color: #d1495b; font-weight: 800; } .rate-table td.net { font-weight: 800; color: var(--blue-dark); }
.rate-table tr.has-bonus td { background: #fffbe9; }
.rate-table.cmp td:first-child { text-align: left; padding-left: 10px; }
label.field.calc { margin-top: 6px; } .calc-res { text-align: center; font-weight: 800; color: var(--navy); background: var(--sky); border-radius: 12px; padding: 8px; margin: 6px 0; }
.shop-card small.thb { font-size: 11px; color: var(--navy-2); opacity: .85; }
.bank-head { display: flex; align-items: center; justify-content: center; gap: 8px; }
.bank-badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-size: 11px; font-weight: 800; letter-spacing: -.3px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 0 0 2px #fff, 0 0 0 3.5px rgba(23,52,95,.25); }
.mon-tag { margin: 6px 0 0; text-align: center; font-weight: 700; font-size: 13px; color: var(--navy); background: #fff4d6; border: 2px solid #ffd98a; border-radius: 12px; padding: 6px 8px; }
/* top-up dock: two bright buttons in the lobby corner (mirrors the side buttons) */
.topup-dock { position: absolute; left: calc(14px + var(--safe-l, 0px)); top: calc(78px + var(--safe-t, 0px)); display: flex; flex-direction: column; gap: 10px; z-index: 3; }
.dock-btn { position: relative; width: 74px; padding: 6px 3px 5px; border-radius: 18px; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.1; text-align: center; color: var(--ink); overflow: hidden; }
.dock-btn::after { content: ''; position: absolute; inset: -40% auto -40% -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg); animation: dockShine 3.6s ease-in-out infinite; pointer-events: none; }
.dock-btn.usdt::after { animation-delay: 1.8s; }
@keyframes dockShine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.dock-btn.gold { background: linear-gradient(180deg, #fff3b0, #ffc93a 55%, #f5a623); }
.dock-btn.usdt { background: linear-gradient(180deg, #c9fff0, #3fd6a8 55%, #1fae86); color: #06392c; }
.dock-btn b { font-size: 11px; font-weight: 800; } .dock-btn small { font-size: 8.5px; font-weight: 700; opacity: .8; }
.dock-ico { position: relative; width: 30px; height: 30px; display: grid; place-items: center; }
.dock-ico svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.18)); }
.dock-plus { position: absolute; right: -5px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: #e5394b; color: #fff; font-style: normal; font-weight: 900; font-size: 12px; line-height: 15px; border: 2px solid #fff; }
.usdt-ico { border-radius: 50%; background: #26a17b; color: #fff; font-weight: 900; font-size: 19px; border: 2px solid #fff; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.dock-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
@media (orientation: portrait), (max-width: 720px) { .topup-dock { top: calc(150px + var(--safe-t, 0px)); left: calc(8px + var(--safe-l, 0px)); gap: 8px; } .dock-btn { width: 64px; border-radius: 15px; } .dock-btn b { font-size: 10px; } }
@media (max-height: 500px) and (orientation: landscape) { .topup-dock { top: calc(60px + var(--safe-t, 0px)); gap: 6px; } .dock-btn { width: 60px; padding: 3px 2px; } .dock-btn small { display: none; } }
/* celebration screen */
.celebrate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, rgba(29,63,114,.55), rgba(8,18,40,.86)); animation: celIn .25s ease-out; padding: 16px; }
.celebrate.out { animation: celOut .25s ease-in forwards; }
@keyframes celIn { from { opacity: 0; } } @keyframes celOut { to { opacity: 0; } }
.cel-rays { position: absolute; left: 50%; top: 42%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: repeating-conic-gradient(from 0deg, rgba(255,226,120,.22) 0 10deg, transparent 10deg 20deg); border-radius: 50%; animation: celSpin 14s linear infinite; mask: radial-gradient(circle, #000 0 18%, transparent 55%); -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 55%); pointer-events: none; }
.celebrate.grand .cel-rays { background: repeating-conic-gradient(from 0deg, rgba(255,210,70,.4) 0 8deg, transparent 8deg 16deg); animation-duration: 8s; }
@keyframes celSpin { to { transform: rotate(360deg); } }
.cel-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cel-card { position: relative; width: min(360px, 92vw); padding: 22px 18px 18px; border-radius: 26px; border: 4px solid var(--ink); background: linear-gradient(180deg, #ffffff, #e6f3ff); box-shadow: 0 8px 0 var(--ink), 0 0 60px rgba(255,214,90,.55); text-align: center; animation: celPop .55s cubic-bezier(.2,1.6,.4,1); }
.celebrate.grand .cel-card { background: linear-gradient(180deg, #fffbe6, #ffe9a0); box-shadow: 0 8px 0 var(--ink), 0 0 90px rgba(255,200,60,.85); }
@keyframes celPop { from { transform: scale(.3) rotate(-6deg); opacity: 0; } }
.cel-title { margin: 0 0 4px; font-size: 28px; font-weight: 900; color: var(--navy); text-shadow: 0 3px 0 #ffd34d; animation: celBounce 1.4s ease-in-out .5s infinite; }
@keyframes celBounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.cel-sub { margin: 0 0 10px; font-weight: 700; color: var(--navy-2); }
.cel-chips { justify-content: center; margin: 8px 0 12px; } .cel-chips .rchip { animation: chipPop .45s cubic-bezier(.2,1.8,.4,1) both; transform-origin: center; font-size: 16px; }
@keyframes chipPop { from { transform: scale(0); opacity: 0; } }
.cel-gain { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0; font-size: 40px; font-weight: 900; color: #c47d00; text-shadow: 0 3px 0 #fff, 0 0 18px rgba(255,190,40,.8); font-variant-numeric: tabular-nums; }
.cel-gain svg { width: 42px; height: 42px; }
.cel-bal { margin: 4px auto 14px; padding: 8px 12px; border-radius: 16px; background: var(--navy); color: #fff; display: inline-flex; flex-direction: column; gap: 2px; min-width: 70%; transition: opacity .3s; }
.cel-bal small { font-size: 12px; opacity: .8; } .cel-bal span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; } .cel-bal svg { width: 24px; height: 24px; }
.cel-bal.in { animation: celPop .4s cubic-bezier(.2,1.6,.4,1); } .cel-bal.done span { animation: celBounce .6s ease-in-out 2; }
.cel-ok { min-width: 60%; }
/* not enough Gold / Zeny */
.cel-card.warn { background: linear-gradient(180deg, #fff, #ffecec); box-shadow: 0 8px 0 var(--ink), 0 0 50px rgba(255,90,110,.45); }
.nofunds .cel-title { color: #c62f45; text-shadow: none; animation: none; font-size: 24px; }
.nf-ico { position: relative; width: 74px; height: 74px; margin: 0 auto 6px; border-radius: 50%; background: #fff3d0; display: grid; place-items: center; box-shadow: inset 0 0 0 4px #ffd98a; animation: nfShake .5s ease-in-out 2; }
.nf-ico svg { width: 46px; height: 46px; } .nf-ico i { position: absolute; right: -2px; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: #e5394b; color: #fff; font-style: normal; font-weight: 900; line-height: 26px; border: 3px solid #fff; }
@keyframes nfShake { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.nf-btns { display: flex; flex-direction: column; gap: 8px; align-items: stretch; margin-top: 8px; }
.shop-wallet { flex-wrap: wrap; } .xchg-btn { align-self: center; }
.auto-card { display: flex; gap: 10px; align-items: flex-start; text-align: start; background: linear-gradient(135deg, #e9f6ff, #d6f5e8); border: 2px solid #9fd8c0; border-radius: 16px; padding: 10px 12px; margin: 0 0 10px; }
.auto-card b { display: block; color: var(--navy); font-size: 14px; margin-bottom: 2px; } .auto-card p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--navy-2); }
.auto-ico { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #2fbf8a; color: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: 0 3px 0 #1f8f66; }
/* top-up history */
.tp-list { display: flex; flex-direction: column; gap: 8px; }
.tp-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--sky-2); background: #fff; text-align: start; color: var(--ink); box-shadow: 0 3px 0 rgba(23,52,95,.12); cursor: pointer; }
.tp-row:active { transform: translateY(2px); box-shadow: none; }
.tp-ico { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff; }
.tp-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tp-amt { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tp-pill { font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.tp-gold { display: flex; align-items: center; gap: 5px; font-weight: 800; color: #b97800; } .tp-gold svg { width: 18px; height: 18px; } .tp-gold { flex-wrap: wrap; } .tp-gold em { white-space: nowrap; font-style: normal; font-size: 11.5px; color: #d1495b; background: #ffeef0; padding: 1px 7px; border-radius: 999px; }
.tp-why { font-size: 12px; color: var(--navy-2); opacity: .85; }
.tp-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: 11.5px; color: var(--navy-2); }
.tp-view { font-size: 18px; margin-top: 2px; }
.tp-row.ok { border-color: #a8e6c0; } .tp-row.ok .tp-ico { background: linear-gradient(#4fd38a, #24a865); } .tp-row.ok .tp-pill { background: #dcf7e8; color: #17804a; }
.tp-row.wait { border-color: #ffe08a; } .tp-row.wait .tp-ico { background: linear-gradient(#ffd45a, #f2a91f); } .tp-row.wait .tp-pill { background: #fff3cf; color: #9a6a00; }
.tp-row.bad { border-color: #ffc2c8; } .tp-row.bad .tp-ico { background: linear-gradient(#ff7a86, #e0404f); } .tp-row.bad .tp-pill { background: #ffe3e6; color: #c62f45; }
.tp-row.dup { border-color: #d6c8ff; } .tp-row.dup .tp-ico { background: linear-gradient(#b49aff, #7a5ae0); } .tp-row.dup .tp-pill { background: #eee8ff; color: #5a3ab8; }
.tp-more { display: block; margin: 10px auto 0; min-width: 60%; }
.topup-status.ok { color: #17804a; font-weight: 800; } .topup-status.bad { color: #c62f45; font-weight: 800; } .topup-status.wait { color: #9a6a00; font-weight: 700; }
.slip-card { max-height: 90vh; display: flex; flex-direction: column; gap: 6px; } .slip-img { overflow: auto; max-height: 62vh; border-radius: 12px; background: #eef4fb; } .slip-img img { width: 100%; display: block; }
/* logo: the O of BOMB is a round bomb with a lit fuse */
.logo-big .l1 { display: inline-flex; align-items: center; }
.bomb-o { position: relative; display: inline-block; width: .78em; height: .78em; margin: .06em .02em 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #6a7698 0 8%, #2b3350 26%, #121626 70%); box-shadow: 0 0 0 .07em var(--ink), 0 .09em 0 .07em var(--ink-2), inset -.06em -.08em 0 rgba(0,0,0,.35); animation: bombBob 2.4s ease-in-out infinite; }
.bomb-o::before { content: ''; position: absolute; left: 22%; top: 18%; width: 22%; height: 16%; border-radius: 50%; background: rgba(255,255,255,.75); transform: rotate(-30deg); }
.bomb-o .fuse { position: absolute; right: 2%; top: -14%; width: 26%; height: 26%; border-radius: 30%; background: #8a93ad; box-shadow: 0 0 0 .05em var(--ink); transform: rotate(35deg); }
.bomb-o .fuse::after { content: ''; position: absolute; left: 60%; top: -70%; width: 10%; height: 90%; background: #c8a060; border-radius: 3px; transform: rotate(25deg); transform-origin: bottom; }
.bomb-o .spark { position: absolute; right: -22%; top: -46%; width: 34%; height: 34%; background: radial-gradient(circle, #fff 0 18%, #ffe14a 30%, #ff8a1a 55%, transparent 70%); border-radius: 50%; animation: spark .35s steps(2) infinite alternate; }
.bomb-o .fest-hat { position: absolute; left: 50%; top: -38%; transform: translateX(-50%) rotate(8deg); font-size: .42em; font-style: normal; line-height: 1; -webkit-text-stroke: 0; text-shadow: none; }
@keyframes bombBob { 50% { transform: translateY(-.05em) rotate(-6deg); } }
@keyframes spark { to { transform: scale(1.35) rotate(40deg); } }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* hot ranking */
.side-btn.hot { background: linear-gradient(180deg, #fff3e0, #ffc98a); } .hot-ico { font-size: 24px; line-height: 1; }
.hot-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.hot-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 14px; background: #fff; border: 2px solid var(--sky-2); }
.hot-row.r1 { background: linear-gradient(90deg, #fff6d0, #fff); border-color: #ffd86a; } .hot-row.r2 { background: linear-gradient(90deg, #eef2f8, #fff); border-color: #c9d3e2; } .hot-row.r3 { background: linear-gradient(90deg, #ffe9da, #fff); border-color: #f2b88f; }
.hot-rank { flex: 0 0 30px; text-align: center; font-weight: 900; font-size: 18px; color: var(--navy); }
.hot-pfp { width: 42px; height: 42px; border-radius: 50%; background: var(--sky); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--sky-2); }
.hot-name { flex: 1; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-n { font-size: 12px; font-weight: 700; color: #c47d00; background: #fff4d6; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
#hotCur button svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

/* festival theme: window titles, a bunting strip along the top and side buttons take the festival colours */
body[data-fest="xmas"] { --fa: #e8312f; --fb: #2fa84f; }
body[data-fest="spooky"] { --fa: #ff8a1a; --fb: #7a3fbf; }
body[data-fest="krathong"] { --fa: #ff8a3d; --fb: #3fbf6a; }
body[data-fest="eid"] { --fa: #2fa86a; --fb: #ffcf3a; }
body[data-fest="newyear"] { --fa: #c25be0; --fb: #ffcf3a; }
body[data-fest="lunar"] { --fa: #e8312f; --fb: #ffcf3a; }
body[data-fest="dragon"] { --fa: #e8312f; --fb: #3fbf6a; }
body[data-fest="moon"] { --fa: #ff8a3d; --fb: #e8312f; }
body[data-fest="love"] { --fa: #ff4f86; --fb: #ff9ab8; }
body[data-fest="water"] { --fa: #4aa8ff; --fb: #ff5a9a; }
body[data-fest="lights"] { --fa: #ffb43a; --fb: #ff6a3d; }
body[data-fest="harvest"] { --fa: #e8902a; --fb: #c45a17; }
body[data-fest="spring"] { --fa: #ff9ab8; --fb: #ffd34d; }
body[data-fest="easter"] { --fa: #9fe0ff; --fb: #ff9ab8; }
body[data-fest="clover"] { --fa: #2fa84f; --fb: #ffd34d; }
body[data-fest="carnival"] { --fa: #c25be0; --fb: #3fbf6a; }
body[data-fest="color"] { --fa: #ff4f86; --fb: #4aa8ff; }
body[data-fest="flags"] { --fa: #e8312f; --fb: #2f6ad8; }
body[data-fest="kids"] { --fa: #ff5a7a; --fb: #4aa8ff; }
body[data-fest="veg"] { --fa: #ffd400; --fb: #e8312f; }
body[data-fest="marigold"] { --fa: #ff9a1a; --fb: #c25be0; }
body[data-fest="lantern"] { --fa: #ffcf3a; --fb: #ff6a8a; }
body[data-fest]:not([data-fest=""]) .win-title { background: linear-gradient(180deg, color-mix(in srgb, var(--fa) 75%, #fff) 0 50%, var(--fa) 50%); }
body[data-fest]:not([data-fest=""])::before { content: ''; position: fixed; left: 0; right: 0; top: 0; height: 16px; z-index: 50; pointer-events: none;
  background: conic-gradient(from 135deg at 50% 100%, var(--fa) 0 25%, transparent 0) 0 0 / 28px 16px repeat-x, conic-gradient(from 135deg at 50% 100%, var(--fb) 0 25%, transparent 0) 14px 0 / 28px 16px repeat-x; opacity: .9; }
body[data-fest]:not([data-fest=""]) .side-btn { border-color: var(--ink); background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--fb) 22%, #fff)); }
body[data-fest]:not([data-fest=""]) .fest-banner { box-shadow: 0 4px 0 var(--ink), 0 0 0 3px var(--fa) inset; }

/* ---------- r15: tabs that scroll sideways, limited pieces, bomb skins, boosters, inventory, events ---------- */
#wardTabs, .tabs.scroll { flex-shrink: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#wardTabs::-webkit-scrollbar, .tabs.scroll::-webkit-scrollbar { display: none; }
#wardTabs button, .tabs.scroll button { flex: 1 0 auto; white-space: nowrap; }
.sec-head { grid-column: 1 / -1; font-weight: 800; color: var(--navy-2); background: var(--sky-2); border-radius: 10px; padding: 6px 10px; font-size: 13px; margin-top: 4px; }
.chip.ltd, .bag-item.ltd { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from 0deg, #ffd700, #ff3cac, #00f5d4, #7b2ff7, #ffd700) border-box; animation: ltdGlow 2.4s linear infinite; }
@keyframes ltdGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, .0); } 50% { box-shadow: 0 0 12px 2px rgba(255, 60, 172, .45); } }
.bomb-sw { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9) 0 12%, transparent 13%), var(--c1); display: inline-grid; place-items: center; overflow: hidden; }
.bomb-sw.stripes { background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9) 0 12%, transparent 13%), repeating-linear-gradient(45deg, var(--c1) 0 6px, var(--c2) 6px 11px); }
.bomb-sw.dots { background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9) 0 12%, transparent 13%), radial-gradient(var(--c2) 22%, transparent 24%) 0 0 / 10px 10px, var(--c1); }
.bomb-sw.checker { background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9) 0 12%, transparent 13%), conic-gradient(var(--c1) 25%, var(--c2) 0 50%, var(--c1) 0 75%, var(--c2) 0) 0 0 / 12px 12px; }
.bomb-sw.swirl { background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9) 0 12%, transparent 13%), conic-gradient(var(--c1), var(--c2), var(--c1), var(--c2), var(--c1)); }
.bomb-sw.zigzag { background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9) 0 12%, transparent 13%), linear-gradient(135deg, var(--c2) 25%, transparent 25%) -5px 0 / 10px 10px, linear-gradient(225deg, var(--c2) 25%, transparent 25%) -5px 0 / 10px 10px, var(--c1); }
.bomb-sw.gem { background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.95) 0 14%, transparent 15%), linear-gradient(135deg, var(--c1), var(--c2)); }
.bomb-sw i { font-style: normal; font-size: 15px; line-height: 1; filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); }
.chip.bomb { min-height: 70px; }
.qty-row { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; font-weight: 700; }
.qty-row .chip { min-height: 34px; padding: 4px 12px; flex-direction: row; }
.qty-row .chip.on { border-color: var(--blue, #2f86e8); background: #e8f3ff; }
.boost-card { background: #fff; border: 3px solid #c9d8e8; border-radius: 16px; padding: 10px; margin-bottom: 10px; }
.boost-head { display: flex; align-items: center; gap: 10px; }
.boost-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.boost-head small { color: var(--navy-2); }
.boost-ico { font-size: 30px; width: 46px; height: 46px; border-radius: 14px; background: var(--sky-2); display: grid; place-items: center; }
.k-exp .boost-ico { background: #e3f7e6; } .k-zeny .boost-ico { background: #fff4d6; } .k-drop .boost-ico { background: #fde6f0; } .k-pass .boost-ico { background: #ece6ff; }
.boost-left { font-weight: 800; font-size: 13px; color: #8a96a8; white-space: nowrap; }
.boost-left.on { color: #1f9d55; }
.boost-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-top: 8px; }
.boost-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; border: 3px solid var(--ink); background: #fffbea; box-shadow: 0 3px 0 var(--ink); font-weight: 800; }
.boost-opt.zeny { background: #eef6ff; }
.boost-opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.boost-opt:disabled { opacity: .5; }
.boost-gain { display: block; font-weight: 800; color: #1f9d55; }
.fest-shop-head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; margin: 8px 0; border-radius: 14px; background: linear-gradient(135deg, #fff3d6, #ffe0ec); border: 3px dashed #e8902a; text-align: center; }
.fest-card .fest-ico { font-size: 30px; }
.sw.big { width: 48px; height: 12px; border-radius: 6px; border: 2px solid var(--ink); display: block; }
.shop-card .owned { font-weight: 800; color: #1f9d55; }
.bag-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; align-content: start; }
.bag-list > p, .bag-list > .boost-card, .bag-list > .chips, .bag-list > .big-btn { grid-column: 1 / -1; }
.bag-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; min-height: 84px; border-radius: 14px; border: 3px solid #c9d8e8; background: #fff; color: var(--ink); font-weight: 700; }
.bag-item.on { border-color: #2f86e8; background: #e8f3ff; }
.bag-item.fest { border-style: dashed; border-color: #e8902a; }
.bag-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.bag-item .ico { font-size: 26px; }
.bag-item .sw { width: 34px; height: 10px; border-radius: 5px; border: 2px solid var(--ink); }
.bag-item small { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bag-n { font-style: normal; font-size: 11px; background: var(--navy-2); color: #fff; border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.rrow.event { background: linear-gradient(135deg, #fff6d8, #ffe3f1); border-color: #e8902a; box-shadow: 0 3px 0 #e8902a; }
.event-pop { position: fixed; z-index: 50; top: calc(124px + var(--safe-t, 0px)); right: calc(12px + var(--safe-r, 0px)); width: min(300px, calc(100vw - 24px)); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: linear-gradient(135deg, #fffaf0, #ffeaf5); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); animation: evIn .45s cubic-bezier(.2, 1.4, .4, 1); }
.event-pop.soon { background: linear-gradient(135deg, #f2f8ff, #e6f0ff); }
@keyframes evIn { from { transform: translateX(120%); } to { transform: none; } }
.event-pop .ev-ico { font-size: 30px; animation: evBob 1.6s ease-in-out infinite; }
@keyframes evBob { 50% { transform: translateY(-3px) rotate(-6deg); } }
.event-pop .ev-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.event-pop .ev-txt small { font-weight: 800; color: #e8902a; text-transform: uppercase; font-size: 10px; letter-spacing: .5px; }
.event-pop .ev-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-pop .ev-txt span, .event-pop .ev-txt em { font-size: 12px; color: var(--navy-2); font-style: normal; }
.event-pop .ev-x { position: absolute; top: -10px; left: -10px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 12px; line-height: 1; }
body.s-game .event-pop { display: none; }
@media (orientation: landscape) { .event-pop { top: calc(86px + var(--safe-t, 0px)); right: calc(84px + var(--safe-r, 0px)); width: 270px; } }
@media (max-width: 480px) { .event-pop { width: min(270px, calc(100vw - 24px)); padding: 7px 10px; gap: 8px; } .event-pop .ev-ico { font-size: 24px; } }
.boost-opt .price, .fest-card .price { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; }
.boost-opt .price svg, .fest-card .price svg { width: 16px; height: 16px; }
.event-pop { transition: width .25s, padding .25s; }
.event-pop.mini { width: auto; padding: 5px 10px 5px 6px; gap: 6px; cursor: pointer; }
.event-pop.mini .ev-txt small, .event-pop.mini .ev-txt b, .event-pop.mini #evPopMode, .event-pop.mini #evPopJoin, .event-pop.mini .ev-x { display: none; }
.event-pop.mini .ev-ico { font-size: 22px; }
.event-pop.mini .ev-txt em { font-weight: 800; color: var(--ink); }

/* ---------- game-style dialogs (buy / confirm) ---------- */
.gdlg { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 16px; background: rgba(13, 30, 60, .55); backdrop-filter: blur(3px); animation: fadeIn .15s ease-out; }
.gdlg.out { animation: gdlgOut .2s ease-in forwards; }
@keyframes gdlgOut { to { opacity: 0; } }
.gdlg-card { position: relative; width: min(340px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 18px 16px; border-radius: 26px; background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%); border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 18px 40px rgba(0,0,0,.35); text-align: center; animation: gdlgIn .38s cubic-bezier(.2, 1.5, .4, 1); margin-top: 18px; }
@keyframes gdlgIn { from { transform: scale(.6) translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.gdlg-ribbon { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 8px 22px; border-radius: 16px; background: linear-gradient(180deg, #ffd84a, #ffb320); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-weight: 900; font-size: 17px; color: var(--ink); }
.gdlg-card.zeny .gdlg-ribbon { background: linear-gradient(180deg, #8fd0ff, #43acf7); }
.gdlg-card.danger .gdlg-ribbon { background: linear-gradient(180deg, #ff8a8a, #ff4f5a); color: #fff; }
.gdlg-vis { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin: 4px 0 2px; }
.gdlg-vis.small { width: 96px; height: 96px; }
.gdlg-rays { position: absolute; inset: -14px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 216, 74, .55) 0 12deg, transparent 12deg 30deg); animation: gdlgSpin 9s linear infinite; mask: radial-gradient(circle, #000 35%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 35%, transparent 70%); }
.gdlg-card.zeny .gdlg-rays { background: repeating-conic-gradient(from 0deg, rgba(67, 172, 247, .45) 0 12deg, transparent 12deg 30deg); }
@keyframes gdlgSpin { to { transform: rotate(360deg); } }
.gdlg-item { position: relative; width: 104px; height: 104px; border-radius: 28px; background: #fff; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; animation: gdlgBob 2.2s ease-in-out infinite; overflow: hidden; }
@keyframes gdlgBob { 50% { transform: translateY(-5px) rotate(-2deg); } }
.gdlg-item .ico { font-size: 46px; line-height: 1; }
.gdlg-item .sw { width: 54px; height: 13px; border-radius: 7px; border: 2px solid var(--ink); }
.gdlg-item.pf img { width: 100%; height: 100%; object-fit: cover; }
.gdlg-item.emo { font-size: 54px; }
.gdlg-item .bomb-sw.big { width: 70px; height: 70px; }
.gdlg-item .bomb-sw.big i { font-size: 30px; }
.gdlg-item.chips-vis { width: 150px; height: auto; min-height: 90px; padding: 8px; border-radius: 22px; }
.gdlg-item.chips-vis .chips { justify-content: center; }
.gdlg-name { font-size: 20px; font-weight: 900; color: var(--ink); line-height: 1.2; }
.gdlg-sub { color: var(--navy-2); font-size: 13px; margin-top: -4px; }
.gdlg-price { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px; background: #fff7d6; border: 3px solid var(--ink); font-size: 24px; font-weight: 900; color: var(--ink); flex-wrap: wrap; justify-content: center; }
.gdlg-price.zeny { background: #e6f4ff; }
.gdlg-price svg { width: 26px; height: 26px; }
.gdlg-price small { width: 100%; font-size: 12px; font-weight: 700; color: var(--navy-2); margin-top: -4px; }
.gdlg-bal { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 16px; background: var(--sky-2); }
.gdlg-bal > div { display: flex; flex-direction: column; align-items: center; flex: 1; }
.gdlg-bal small { font-size: 11px; color: var(--navy-2); font-weight: 700; }
.gdlg-bal span { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; font-size: 15px; }
.gdlg-bal span svg { width: 16px; height: 16px; }
.gdlg-bal .arr { color: var(--navy-2); font-size: 16px; flex: 0; }
.gdlg-bal.short > div:last-child span { color: #e0333d; }
.gdlg-warn { margin: 0; font-weight: 800; color: #e0333d; font-size: 14px; }
.gdlg-text { margin: 6px 4px 4px; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.gdlg-btns { width: 100%; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 6px; }
.gdlg-btns .gbtn { min-height: 52px; font-size: 17px; }
@media (orientation: landscape) and (max-height: 500px) {
  .gdlg-card { width: min(520px, 100%); display: grid; grid-template-columns: 140px 1fr; column-gap: 16px; row-gap: 6px; text-align: left; padding: 30px 16px 14px; }
  .gdlg-card > :not(.gdlg-vis):not(.gdlg-ribbon) { grid-column: 2; }
  .gdlg-vis { grid-row: 1 / span 6; align-self: center; width: 120px; height: 120px; }
  .gdlg-card.ask { display: flex; text-align: center; }
  .gdlg-price { justify-self: start; }
}
/* wardrobe filter: all / Gold / Zeny */
.cur-filter { grid-column: 1 / -1; display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--sky-2); position: sticky; top: 0; z-index: 2; }
.cur-filter button { flex: 1; min-height: 36px; border: 0; border-radius: 10px; background: transparent; font-weight: 800; color: var(--navy-2); display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.cur-filter button svg { width: 18px; height: 18px; }
.cur-filter button.on { background: #fff; color: var(--ink); box-shadow: 0 3px 0 #a9c8e6; }
.cur-filter button.cf-gold.on { background: #fff4c7; box-shadow: 0 3px 0 #e8b83a; }
.cur-filter button.cf-zeny.on { background: #e3f2ff; box-shadow: 0 3px 0 #7fbbe8; }

/* ---------- big Gold / Zeny shops ---------- */
.mall-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 8px 0; border-radius: 18px; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.mall-head.gold { background: linear-gradient(135deg, #fff3b8, #ffcf4a); }
.mall-head.zeny { background: linear-gradient(135deg, #e3f3ff, #8fd0ff); }
.mall-head > div { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.mall-head b { font-size: 19px; font-weight: 900; color: var(--ink); }
.mall-head small { font-weight: 700; color: var(--navy-2); }
.mall-ico { font-size: 32px; }
.mall-wallet { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); font-weight: 900; }
.mall-wallet svg { width: 18px; height: 18px; }
.mall-cats { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; flex-shrink: 0; }
.mall-cats::-webkit-scrollbar { display: none; }
.mall-cats button { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 14px; border: 3px solid #c9d8e8; background: #fff; font-weight: 800; color: var(--navy-2); white-space: nowrap; }
.mall-cats button em { font-style: normal; font-size: 11px; background: var(--sky-2); border-radius: 999px; padding: 0 6px; }
.mall-cats button.on { border-color: var(--ink); color: var(--ink); background: #fff7d6; box-shadow: 0 3px 0 var(--ink); }
.mc-ico { font-size: 18px; }
.mall-tools { display: flex; gap: 6px; align-items: center; margin: 4px 0 8px; flex-wrap: wrap; }
.mall-tools input[type=search] { flex: 1 1 140px; min-width: 0; min-height: 38px; border-radius: 12px; border: 2px solid #c9d8e8; padding: 0 10px; font: inherit; }
.mall-tools select { min-height: 38px; border-radius: 12px; border: 2px solid #c9d8e8; padding: 0 8px; font: inherit; font-weight: 700; background: #fff; }
.mall-hide { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; color: var(--navy-2); }
.mall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.mall-grid > p { grid-column: 1 / -1; }
.mall-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 18px; background: #fff; border: 3px solid #c9d8e8; text-align: center; }
.mall-card.gold { background: linear-gradient(180deg, #fffdf2, #fff); }
.mall-card.fest { border-style: dashed; border-color: #e8902a; }
.mall-card.have { opacity: .85; }
.mall-card .mall-vis { width: 76px; height: 76px; border-radius: 20px; border-width: 3px; box-shadow: 0 3px 0 var(--ink); animation: none; }
.mall-card .mall-vis .ico { font-size: 34px; }
.mall-card .mall-vis .sw { width: 40px; height: 10px; }
.mall-card .mall-vis.emo { font-size: 38px; }
.mall-card .mall-vis.chips-vis { width: 100%; height: auto; min-height: 76px; }
.mall-card .mall-vis .bomb-sw.big { width: 52px; height: 52px; }
.mall-card .stat { position: absolute; top: 6px; right: 6px; font-size: 11px; font-weight: 800; background: #fff; border-radius: 8px; padding: 0 4px; }
.mall-name { font-size: 13px; font-weight: 800; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mall-sub { font-size: 11px; color: var(--navy-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mall-card .price { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; }
.mall-card .price svg { width: 16px; height: 16px; }
.mall-card .owned { font-weight: 800; color: #1f9d55; font-size: 12px; }
.mall-card .gbtn { width: 100%; }
@media (max-width: 420px) { .mall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gdlg-card { overflow: visible; max-height: none; }
.mall-tools input[type=search] { width: auto; }
.mall-tools select { width: auto; flex: 0 0 auto; }
.mall-hide { width: auto; }

/* ---------- monster briefing before a match ---------- */
.mon-brief { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(13, 30, 60, .45); animation: fadeIn .2s ease-out; }
.mon-brief.out { animation: gdlgOut .25s ease-in forwards; }
.mb-card { position: relative; width: min(420px, 100%); max-height: calc(100% - 20px); overflow: auto; padding: 34px 16px 14px; border-radius: 24px; background: linear-gradient(180deg, #fff, #fff4f4); border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink); animation: gdlgIn .38s cubic-bezier(.2, 1.5, .4, 1); display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.mb-card .gdlg-ribbon { background: linear-gradient(180deg, #ff8a8a, #ff4f5a); color: #fff; }
.mb-list { display: flex; flex-direction: column; gap: 6px; }
.mb-mon { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid #ffd0d6; }
.mb-mon > div { display: flex; flex-direction: column; line-height: 1.25; }
.mb-mon small { color: var(--navy-2); }
.mb-ico { font-size: 34px; }
.mb-how { color: var(--ink); }
.mb-tips { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; font-weight: 700; color: var(--ink); font-size: 14px; }
.mb-card .gbtn { min-height: 48px; }
@media (orientation: landscape) and (max-height: 500px) { .mb-card { width: min(640px, 100%); } .mb-list { flex-direction: row; } .mb-mon { flex: 1; } }

/* ---------- inventory-only wardrobe and item details ---------- */
.look, .chip, .bag-item, .mall-card { position: relative; }
.info-dot { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-2); color: #fff; font: italic 900 13px/20px Georgia, serif; text-align: center; box-shadow: 0 2px 0 rgba(0,0,0,.25); cursor: pointer; z-index: 2; }
.mall-card .info-dot { top: 6px; left: 6px; }
.mall-card.tappable .mall-vis { cursor: pointer; }
.ward-shop { grid-column: 1 / -1; min-height: 46px; border-radius: 14px; border: 3px dashed #9cc4ea; background: #f2f9ff; font-weight: 800; color: var(--navy-2); margin-top: 6px; }
.ward-empty { grid-column: 1 / -1; padding: 14px 0; }
.chip.none { min-height: 76px; }
.gdlg-vis.big { width: 200px; height: 200px; margin: 0 0 2px; }
.item-preview { position: relative; width: 200px; height: 200px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.18)); animation: gdlgBob 2.6s ease-in-out infinite; }
.gdlg-card.item .gdlg-rays { inset: 10px; }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.item-tags span { padding: 3px 10px; border-radius: 999px; background: var(--sky-2); font-size: 12px; font-weight: 800; color: var(--navy-2); }
.item-lines { margin: 2px 0; padding: 0; list-style: none; width: 100%; display: flex; flex-direction: column; gap: 4px; }
.item-lines li { padding: 6px 10px; border-radius: 12px; background: #fff; border: 2px solid #e1ecf7; font-size: 14px; font-weight: 700; color: var(--ink); text-align: left; }
.gdlg-btns .gbtn .price { display: inline-flex; align-items: center; gap: 3px; background: rgba(255,255,255,.6); border-radius: 10px; padding: 0 6px; }
.gdlg-btns .gbtn .price svg { width: 16px; height: 16px; }
@media (orientation: landscape) and (max-height: 500px) { .gdlg-vis.big, .item-preview { width: 150px; height: 150px; } }

/* ---------- landscape lobby on every size (tablets, foldables opened, PCs): the room panel leaves room for the side buttons ---------- */
@media (orientation: landscape) and (min-width: 721px) {
  :root { --lp-w: min(480px, 44vw); --side-w: 84px; }
  #lobby .lobby-panel { right: calc(var(--side-w) + var(--safe-r)); width: var(--lp-w); }
  #lobby .char-plate { left: calc((100% - var(--lp-w) - var(--side-w)) / 2); }
  /* the festival banner sits just above the name plate, in the character's area (not over the top bar or the side buttons) */
  body.s-lobby .fest-banner { left: calc((100% - var(--lp-w) - var(--side-w)) / 2); top: auto; bottom: calc(166px + var(--safe-b, 0px)); transform: translateX(-50%); max-width: calc(100% - var(--lp-w) - var(--side-w) - 40px); }
  .event-pop { right: calc(var(--side-w, 84px) + 6px + var(--safe-r, 0px)); }
}
@media (orientation: landscape) and (min-width: 721px) and (max-height: 500px) { :root { --side-w: 72px; } #lobby .lobby-panel { bottom: calc(82px + var(--safe-b, 0px)); } body.s-lobby .fest-banner { bottom: calc(126px + var(--safe-b, 0px)); } }
/* nearly square screens (foldables opened, 4:3 tablets): a wider room panel and a smaller bottom bar */
@media (orientation: landscape) and (min-width: 721px) and (max-aspect-ratio: 4/3) {
  :root { --lp-w: min(540px, 52vw); }
  .dock button { width: 66px; height: 58px; font-size: 11px; }
  .dock button svg { width: 26px; height: 26px; }
  #lobby .char-plate { bottom: calc(96px + var(--safe-b, 0px)); }
}
/* big portrait tablets: keep the room list a comfortable width */
@media (orientation: portrait) and (min-width: 700px) {
  .lobby-panel { left: 50%; right: auto; width: min(680px, calc(100% - 140px)); transform: translateX(-50%); }
}
@media (orientation: landscape) and (min-width: 721px) and (max-aspect-ratio: 4/3) { body.s-lobby .fest-banner { bottom: calc(150px + var(--safe-b, 0px)); } }
@media (max-width: 380px) and (orientation: portrait) { .lobby-panel { bottom: calc(80px + var(--safe-b, 0px)); } .dock { padding: 3px; } .dock button { height: 54px; } }
@media (max-width: 380px) and (orientation: portrait) { .side-btns { grid-template-columns: repeat(2, 50px); gap: 5px; } .side-btn { width: 50px; font-size: 8.5px; padding: 4px 1px; } .side-btn svg { width: 20px; height: 20px; } }
.rrow .mtag.base { background: #7a52e0; }
.mb-card { overflow: visible; max-height: none; }
.banner.big { font-size: clamp(40px, 11vw, 80px); }
.ko-flash { position: absolute; inset: 0; z-index: 7; pointer-events: none; background: radial-gradient(circle, rgba(255,60,80,0) 30%, rgba(255,40,60,.55) 100%); animation: koFlash .7s ease-out forwards; }
@keyframes koFlash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- status cosmetics: frames and name colours ---------- */
img.framed { padding: 3px; background: linear-gradient(135deg, var(--f1), var(--f2)); border-color: transparent !important; box-shadow: 0 0 0 2px var(--ink), 0 0 10px color-mix(in srgb, var(--f1) 60%, transparent); }
img.framed.fs-solid { background: var(--f1); }
img.framed.fs-gold { background: linear-gradient(135deg, var(--f1), var(--f2), var(--f1), var(--f2)); background-size: 300% 300%; animation: frShine 3s linear infinite; }
img.framed.fs-rainbow { background: conic-gradient(#ff5a7a, #ffcf3a, #3fbf6a, #43acf7, #9b5be0, #ff5a7a); animation: frHue 4s linear infinite; }
img.framed.fs-stars { background: radial-gradient(circle at 20% 30%, #fff 0 1.5px, transparent 2px), radial-gradient(circle at 70% 80%, #fff 0 1.5px, transparent 2px), radial-gradient(circle at 80% 20%, #fff 0 1px, transparent 1.5px), linear-gradient(135deg, var(--f1), var(--f2)); }
img.framed.fs-fire { background: linear-gradient(0deg, var(--f1), var(--f2)); animation: frFire 1.2s ease-in-out infinite alternate; }
img.framed.fs-ice { background: linear-gradient(135deg, var(--f1), var(--f2), var(--f1)); box-shadow: 0 0 0 2px var(--ink), 0 0 14px #9fe0ff; }
@keyframes frShine { to { background-position: 300% 0; } }
@keyframes frHue { to { filter: hue-rotate(360deg); } }
@keyframes frFire { from { box-shadow: 0 0 0 2px var(--ink), 0 0 6px var(--f1); } to { box-shadow: 0 0 0 2px var(--ink), 0 0 18px var(--f2); } }
.nc { background: linear-gradient(90deg, var(--n1), var(--n2)); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; }
.fr-prev { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.fr-prev.big { width: 130px; height: 130px; padding: 6px; }
.nc-prev { font-family: var(--font-display); font-size: 15px; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-prev.big { font-size: 30px; }
.gdlg-item .fr-prev { width: 70px; height: 70px; }

/* ---------- deals tab ---------- */
.promo-card { position: relative; margin: 10px 0; padding: 14px 12px 12px; border-radius: 20px; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); background: #fff; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.promo-card p { margin: 0; font-weight: 700; color: var(--navy-2); font-size: 14px; line-height: 1.4; }
.pc-title { font-family: var(--font-display); font-size: 20px; font-weight: 900; color: var(--ink); }
.promo-card.first { background: linear-gradient(135deg, #fff3b8, #ffd0e0 60%, #d8c8ff); animation: firstGlow 1.6s ease-in-out infinite alternate; }
@keyframes firstGlow { to { box-shadow: 0 5px 0 var(--ink), 0 0 22px rgba(255, 60, 172, .55); } }
.pc-burst { position: absolute; top: -6px; right: -6px; width: 84px; height: 84px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 30px; color: #fff; background: radial-gradient(circle, #ff3cac 55%, transparent 56%), conic-gradient(#ffd700 0 10deg, transparent 10deg 20deg); background-size: 100%, 100%; -webkit-text-stroke: 2px #7a0040; transform: rotate(12deg); animation: burstSpin 6s linear infinite; }
@keyframes burstSpin { 50% { transform: rotate(-8deg) scale(1.08); } }
.promo-card.card { background: linear-gradient(135deg, #fffdf2, #fff1c2); }
.pc-ribbon { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #e8312f; color: #fff; font-weight: 900; font-size: 12px; }
.pc-active { color: #1f9d55 !important; }
.promo-card.spend { background: linear-gradient(135deg, #f1f8ff, #e2efff); }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.deals-head { margin: 14px 2px 6px; }
.cd-clock { font-weight: 800; font-size: 13px; color: #d1202f; background: #fff; border: 2px solid #ffc4cb; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.pc-bar { position: relative; height: 16px; border-radius: 999px; background: #dbe8f6; border: 2px solid var(--ink); margin: 6px 6px 22px; }
.pc-bar > i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #ffcf3a, #ff7a1a); }
.pc-mark { position: absolute; top: 16px; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: var(--navy-2); }
.pc-mark::before { content: ''; position: absolute; top: -14px; left: 50%; width: 3px; height: 12px; background: var(--ink); transform: translateX(-50%); }
.pc-mark.on { color: #d46a00; }
.pc-tier { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 14px; background: #fff; border: 2px solid #d6e4f3; }
.pc-tier.ready { border-color: #ffb320; background: #fffbe8; animation: firstGlow 1s ease-in-out infinite alternate; }
.pc-tier.done { opacity: .6; }
.pt-need { font-family: var(--font-display); font-weight: 900; }
.promo-rewards { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pr-gold { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; background: #fff4c7; border: 2px solid #e8b83a; border-radius: 999px; padding: 2px 8px; }
.pr-gold svg { width: 16px; height: 16px; }
.pr-item { display: inline-grid; place-items: center; cursor: pointer; }
.pr-item .fr-prev { width: 40px; height: 40px; }
.pr-item .gdlg-item { width: 44px; height: 44px; border-radius: 12px; border-width: 2px; box-shadow: 0 2px 0 var(--ink); animation: none; gap: 2px; }
.pr-item .gdlg-item .ico { font-size: 20px; } .pr-item .gdlg-item .sw { width: 26px; height: 7px; } .pr-item .gdlg-item.pf img { width: 100%; height: 100%; }
.pr-item .nc-prev { font-size: 13px; background-color: transparent; padding: 2px 6px; border-radius: 8px; border: 2px dashed #c9d8e8; }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.deal-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 10px; border-radius: 18px; background: linear-gradient(180deg, #fff, #fff4ef); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.deal-card.have { opacity: .7; }
.deal-off { position: absolute; top: -10px; left: -8px; background: #e8312f; color: #fff; font-weight: 900; font-size: 15px; padding: 3px 9px; border-radius: 12px; border: 2px solid var(--ink); transform: rotate(-8deg); }
.deal-items { display: flex; gap: 4px; justify-content: center; }
.deal-items .gdlg-item { width: 46px; height: 46px; border-radius: 12px; border-width: 2px; box-shadow: 0 2px 0 var(--ink); animation: none; gap: 2px; cursor: pointer; }
.deal-items .gdlg-item .ico { font-size: 20px; } .deal-items .gdlg-item .sw { width: 28px; height: 7px; } .deal-items .gdlg-item .bomb-sw.big { width: 32px; height: 32px; }
.deal-price { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.deal-price s { display: inline-flex; align-items: center; gap: 2px; color: #8a96a8; font-size: 12px; font-weight: 700; } .deal-price s svg { width: 12px; height: 12px; }
.deal-price .price { font-size: 18px; font-weight: 900; display: inline-flex; align-items: center; gap: 3px; } .deal-price .price svg { width: 18px; height: 18px; }
.deal-card .gbtn { width: 100%; }
.pack { position: relative; }
.pack.best { border-color: #ffb320 !important; background: #fffbe8 !important; transform: scale(1.04); }
.pack-best { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #e8312f; color: #fff; font-size: 10px; font-weight: 900; padding: 1px 8px; border-radius: 999px; border: 2px solid var(--ink); }
.first-note { margin: 8px 0; padding: 8px 12px; border-radius: 14px; background: linear-gradient(90deg, #ffd0e0, #fff3b8); border: 2px dashed #ff3cac; font-weight: 800; text-align: center; color: #a8005a; }
.dock-btn.promo { background: linear-gradient(180deg, #fff1f4, #ffc4cf); position: relative; }
.dock-btn.promo .dock-ico { font-size: 26px; }
.dock-btn.promo.hot { animation: promoHot .9s ease-in-out infinite alternate; }
@keyframes promoHot { to { transform: scale(1.06) rotate(-2deg); box-shadow: 0 4px 0 var(--ink), 0 0 16px rgba(255, 60, 100, .7); } }
.dock-btn.promo .badge.dot { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--red); color: #fff; font-style: normal; font-weight: 800; font-size: 12px; line-height: 16px; border: 2px solid #fff; }
.dock-btn.promo { overflow: visible; }
.promo-card, .pc-head, .deal-grid, .first-note { flex-shrink: 0; }
.promo-card.first .pc-title, .promo-card.first > p { padding-right: 74px; }
/* event invite: a centred card for a few seconds, then a 🎪 button in the left column */
.event-pop.fold { animation: evFold .35s ease-in forwards; }
@keyframes evFold { to { transform: translateX(-60vw) scale(.3); opacity: 0; } }
@media (orientation: portrait), (max-width: 720px) {
  .event-pop { top: calc(118px + var(--safe-t, 0px)); left: 50%; right: auto; transform: translateX(-50%); width: min(330px, calc(100vw - 24px)); }
  @keyframes evIn { from { transform: translate(-50%, -30px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
  @keyframes evFold { to { transform: translate(-90%, 120px) scale(.3); opacity: 0; } }
}
.dock-btn.event { background: linear-gradient(180deg, #fff8e1, #ffe08a); animation: evBob 1.6s ease-in-out infinite; }
.dock-btn.event.soon { background: linear-gradient(180deg, #eef6ff, #cfe6ff); animation: none; }
.dock-btn.event .dock-ico { font-size: 24px; }
.dock-btn.event small { font-weight: 800; color: #d1202f; font-variant-numeric: tabular-nums; }
.toast.bump { animation: toastBump .3s ease; } @keyframes toastBump { 50% { transform: scale(1.06); } }

/* ================= premium style: name colour effects, VIP, splash, rentals, fitting room, history ================= */
/* animated name colours */
.nc.ncfx-solid { background: none; color: var(--n1) !important; -webkit-text-fill-color: var(--n1); }
.nc.ncfx-glow { text-shadow: none; filter: drop-shadow(0 0 3px var(--n2)) drop-shadow(0 0 6px var(--n2)); }
.nc.ncfx-shine { background: linear-gradient(100deg, var(--n1) 0 35%, #fff 45%, var(--n2) 55%, var(--n1) 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: ncShine 2.4s linear infinite; filter: drop-shadow(0 1px 0 rgba(15,37,71,.35)); }
.nc.ncfx-neon { background: none; color: var(--n2) !important; -webkit-text-fill-color: var(--n2); text-shadow: 0 0 4px var(--n1), 0 0 10px var(--n1), 0 0 18px var(--n1); animation: ncPulse 1.6s ease-in-out infinite; }
.nc.ncfx-rainbow { background: linear-gradient(90deg, #ff5a7a, #ffb020, #3fbf6a, #43acf7, #9b5be0, #ff5a7a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: ncFlow 3s linear infinite; }
.nc.ncfx-fire { background: linear-gradient(0deg, var(--n1) 10%, var(--n2) 60%, #fff6c0 95%); background-size: 100% 200%; -webkit-background-clip: text; background-clip: text; animation: ncFire .9s ease-in-out infinite alternate; filter: drop-shadow(0 0 4px var(--n1)); }
.nc.ncfx-ice { background: linear-gradient(110deg, var(--n1), var(--n2) 40%, #fff 50%, var(--n2) 60%, var(--n1)); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; animation: ncShine 3.4s linear infinite; filter: drop-shadow(0 0 4px #bfeaff); }
.nc.ncfx-galaxy { background: linear-gradient(90deg, var(--n1), var(--n2), #ffffff, var(--n1)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: ncFlow 4s linear infinite; filter: drop-shadow(0 0 5px var(--n2)); }
@keyframes ncShine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes ncFlow { from { background-position: 0 0; } to { background-position: 300% 0; } }
@keyframes ncFire { from { background-position: 0 0; } to { background-position: 0 100%; } }
@keyframes ncPulse { 50% { text-shadow: 0 0 2px var(--n1), 0 0 6px var(--n1), 0 0 12px var(--n1); } }
img.framed.fs-diamond { background: conic-gradient(var(--f1), #fff, var(--f2), #fff, var(--f1)); animation: frHue 3s linear infinite; box-shadow: 0 0 0 2px var(--ink), 0 0 16px var(--f1), 0 0 26px var(--f2); }

/* VIP badge next to names */
.vipb { display: inline-flex; align-items: center; gap: 1px; margin-inline-start: 5px; padding: 0 6px; height: 18px; border-radius: 9px; font: 900 11px/1 var(--font-display, sans-serif); vertical-align: middle; color: #fff !important; -webkit-text-fill-color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.85); box-shadow: 0 1px 0 rgba(15,37,71,.35); background: #8aa0bd; filter: none; flex: none; white-space: nowrap; }
.vipb.vt1 { background: linear-gradient(135deg, #c8834a, #8a4f22); }
.vipb.vt2 { background: linear-gradient(135deg, #e5ecf6, #8f9db3); color: #1d3f72 !important; -webkit-text-fill-color: #1d3f72; text-shadow: none; }
.vipb.vt3 { background: linear-gradient(135deg, #ffe066, #f59e0b); color: #5a3500 !important; -webkit-text-fill-color: #5a3500; text-shadow: none; animation: vipShine 2.6s linear infinite; background-size: 200% 100%; }
.vipb.vt4 { background: linear-gradient(135deg, #00e5ff, #ff4fd8, #ffd34d, #00e5ff); background-size: 300% 100%; animation: ncFlow 3s linear infinite; box-shadow: 0 0 8px #7fe8ff; }
@keyframes vipShine { from { background-position: 0 0; } to { background-position: 200% 0; } }
.vip-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 2px 8px 2px 2px; border-radius: 999px; background: rgba(255,255,255,.9); border: 2px solid var(--ink); font-weight: 800; color: var(--ink); max-width: 230px; }
.vip-chip .vipb { margin: 0; }
.vip-chip small { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vip-chip.vt0 { animation: vipNudge 2.6s ease-in-out infinite; }
@keyframes vipNudge { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-3deg) scale(1.04); } 92% { transform: rotate(3deg) scale(1.04); } }
.me .vip-chip, #lobby .me .vip-chip { align-self: flex-start; }
.dock-btn.vip { background: linear-gradient(180deg, #fff0c2, #ffcf3a 50%, #b97a00); color: #3a2400; }
.dock-btn.vip .dock-ico { font-size: 26px; }
.dock-btn.hot { animation: dockHot 1.4s ease-in-out infinite; }
@keyframes dockHot { 50% { transform: scale(1.06); } }
.prow.vt3, .prow.vt4 { background: linear-gradient(90deg, rgba(255,215,0,.16), transparent); }
.slot-card .vipb, .prow .vipb { height: 16px; font-size: 10px; }

/* glowing call-to-action buttons */
.glow { animation: btnGlow 1.6s ease-in-out infinite; }
@keyframes btnGlow { 0%, 100% { box-shadow: 0 4px 0 var(--ink), 0 0 0 0 rgba(255,207,58,.0); } 50% { box-shadow: 0 4px 0 var(--ink), 0 0 0 6px rgba(255,207,58,.45), 0 0 22px rgba(255,207,58,.8); } }
.cel-btns { display: flex; gap: 10px; width: 100%; justify-content: center; flex-wrap: wrap; }
.cel-btns .gbtn { flex: 1 1 140px; min-width: 0; }
.cel-use { font-size: 19px; }

/* splash effect swatches */
.splash-sw { position: relative; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink);
  background: radial-gradient(circle, #fff 0 14%, var(--c2) 15% 30%, var(--c1) 31% 62%, transparent 63%), conic-gradient(from 0deg, var(--c1) 0 8%, transparent 8% 12.5%, var(--c1) 12.5% 20.5%, transparent 20.5% 25%, var(--c1) 25% 33%, transparent 33% 37.5%, var(--c1) 37.5% 45.5%, transparent 45.5% 50%, var(--c1) 50% 58%, transparent 58% 62.5%, var(--c1) 62.5% 70.5%, transparent 70.5% 75%, var(--c1) 75% 83%, transparent 83% 87.5%, var(--c1) 87.5% 95.5%, transparent 95.5%), #fff; }
.splash-sw i { font-style: normal; font-size: 15px; filter: drop-shadow(0 1px 0 #fff); }
.splash-sw.st-rainbow { background: radial-gradient(circle, #fff 0 16%, transparent 17%), conic-gradient(#ff5a7a, #ffcf3a, #3fbf6a, #43acf7, #9b5be0, #ff5a7a); animation: frHue 4s linear infinite; }
.splash-sw.st-neon { box-shadow: 0 0 10px var(--c1); }
.splash-sw.st-fire { background: radial-gradient(circle at 50% 70%, #fff6c0 0 14%, var(--c2) 15% 38%, var(--c1) 39% 66%, transparent 67%), #fff; }
.splash-sw.big { width: 74px; height: 74px; } .splash-sw.big i { font-size: 30px; }
.chip .splash-sw, .bag-item .splash-sw { width: 34px; height: 34px; }
.gdlg-item .splash-sw.big { width: 76px; height: 76px; }

/* shop cards: rarity, sale, rental time */
.mall-card.rar-r { border-color: #7fc4ff; }
.mall-card.rar-e { border-color: #b57cff; background: linear-gradient(180deg, #f6efff, #fff); box-shadow: 0 0 0 2px rgba(181,124,255,.25); }
.mall-card.rar-l { border-color: #ffb300; background: linear-gradient(180deg, #fff6d6, #fff); box-shadow: 0 0 0 2px rgba(255,179,0,.3), 0 0 16px rgba(255,179,0,.35); }
.mall-card.rar-l::after { content: ''; position: absolute; inset: 0; border-radius: 15px; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.7) 50%, transparent 65%); background-size: 250% 100%; animation: ncShine 3.2s linear infinite; }
.rar-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; border: 2px solid var(--ink); font-size: 9.5px; font-weight: 900; padding: 1px 6px; border-radius: 7px; color: #fff; background: #43acf7; z-index: 1; text-transform: uppercase; letter-spacing: .02em; }
.rar-e .rar-tag { background: #9b5be0; } .rar-l .rar-tag { background: linear-gradient(90deg, #ff8a00, #ffb300); }
.sale-tag { position: absolute; top: 5px; right: 5px; font-size: 11px; font-weight: 900; padding: 1px 6px; border-radius: 7px; color: #fff; background: #e8312f; transform: rotate(6deg); z-index: 1; box-shadow: 0 2px 0 var(--ink); }
.mall-card .info-dot { z-index: 2; }
.price.sale s { font-size: .78em; opacity: .55; margin-inline-end: 3px; font-weight: 700; }
.price .per, .gbtn .per { font-size: 10px; font-weight: 700; opacity: .75; margin-inline-start: 2px; }
.rent-left { font-style: normal; font-size: 10px; font-weight: 800; color: #b45309; background: #fff3c4; border: 1.5px solid #f5c35a; border-radius: 7px; padding: 0 5px; white-space: nowrap; }
.mall-card .rent-left { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 1; }
.chip .rent-left { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); }
.mall-acts { display: flex; gap: 5px; width: 100%; justify-content: center; }
.mall-acts .try-btn { flex: 0 0 auto; padding: 0 9px; }
.mall-head .mall-hist { margin-inline-start: 6px; padding: 5px 9px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; font-weight: 800; font-size: 12px; color: var(--ink); white-space: nowrap; }
.mall-cats.big button { padding: 8px 14px; font-size: 15px; }
.mall-cats.big button .mc-ico { font-size: 20px; }

/* Gold shop banner */
.mall-hero { position: relative; overflow: hidden; border-radius: 20px; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); margin: 2px 0 10px; flex-shrink: 0; }
.mh-track { display: flex; transition: transform .5s cubic-bezier(.3,1.3,.5,1); }
.mh-slide { flex: 0 0 100%; min-height: 118px; display: flex; align-items: center; gap: 10px; padding: 14px 16px 22px; text-align: start; color: #fff; border: 0; position: relative; overflow: hidden; }
.mh-slide::before { content: ''; position: absolute; inset: -50%; background: repeating-conic-gradient(rgba(255,255,255,.09) 0 10deg, transparent 10deg 20deg); animation: frHue 30s linear infinite; pointer-events: none; }
.mh-slide.launch { background: linear-gradient(135deg, #ff3d6e, #ff8a00); }
.mh-slide.names { background: linear-gradient(135deg, #3b2a8f, #2f86e8); }
.mh-slide.splash { background: linear-gradient(135deg, #0aa1d8, #3fbf9f); }
.mh-slide.frames { background: linear-gradient(135deg, #7a3fbf, #ff5a9a); }
.mh-slide.vip { background: linear-gradient(135deg, #1d1d3a, #7a5a00 60%, #ffcf3a); }
.mh-text { position: relative; flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mh-text b { font-family: var(--font-display); font-size: clamp(17px, 4.4vw, 24px); font-weight: 900; line-height: 1.1; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.mh-text small { font-weight: 700; font-size: 12.5px; opacity: .95; }
.mh-text .cd-clock { align-self: flex-start; background: rgba(0,0,0,.25); border-radius: 8px; padding: 1px 7px; font-weight: 800; font-size: 12px; }
.mh-go { align-self: flex-start; margin-top: 4px; background: #ffe066; color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 2px 10px; font-weight: 900; font-size: 13px; box-shadow: 0 2px 0 var(--ink); }
.mh-show { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; max-width: 46%; }
.mh-show .nc-prev { background-color: rgba(255,255,255,.92); padding: 1px 8px; border-radius: 8px; font-size: 14px; max-width: 150px; }
.mh-show:has(.splash-sw), .mh-show:has(.fr-prev) { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: 40%; }
.mh-dots { position: absolute; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.mh-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.mh-dots i.on { background: #fff; width: 18px; border-radius: 4px; }

/* rent dialog */
.gdlg-card.rent .rent-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; width: 100%; margin: 4px 0; }
.rent-plan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 7px; border-radius: 15px; border: 3px solid #c9d8e8; background: #fff; color: var(--ink); }
.rent-plan b { font-size: 14px; font-weight: 900; }
.rent-plan .price { display: inline-flex; align-items: center; gap: 2px; font-weight: 900; font-size: 15px; }
.rent-plan .price svg { width: 15px; height: 15px; }
.rent-plan .save { font-style: normal; font-size: 10px; font-weight: 800; color: #1f9d55; }
.rent-plan .best { position: absolute; top: -10px; font-style: normal; font-size: 9.5px; font-weight: 900; background: #ff5a7a; color: #fff; padding: 1px 6px; border-radius: 7px; border: 2px solid var(--ink); white-space: nowrap; }
.rent-plan.on { border-color: var(--ink); background: #fff7d6; box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
.rent-auto { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 13px; background: #eef7ff; border: 2px solid #b9d6f2; text-align: start; cursor: pointer; }
.rent-auto input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: #2f86e8; }
.rent-auto span { display: flex; flex-direction: column; } .rent-auto b { font-size: 13.5px; } .rent-auto small { font-size: 11px; color: var(--navy-2); }
.launch-note { font-weight: 900; font-size: 13px; color: #fff; background: linear-gradient(90deg, #ff3d6e, #ff8a00); padding: 3px 10px; border-radius: 10px; }

/* VIP window */
.vip-hero { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 20px; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); color: #fff; background: linear-gradient(135deg, #2a5590, #1d3f72); flex-shrink: 0; }
.vip-hero.vt1 { background: linear-gradient(135deg, #8a4f22, #c8834a); }
.vip-hero.vt2 { background: linear-gradient(135deg, #5b6b85, #c3cfe0); }
.vip-hero.vt3 { background: linear-gradient(135deg, #7a4a00, #ffb300); }
.vip-hero.vt4 { background: linear-gradient(135deg, #2b1055, #7597de, #ff4fd8); }
.vip-big { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 96px; flex: none; border-radius: 26px; background: rgba(255,255,255,.18); border: 3px solid rgba(255,255,255,.7); }
.vip-big .vip-crown { font-size: 40px; line-height: 1; animation: gdlgBob 2.2s ease-in-out infinite; }
.vip-big b { font-family: var(--font-display); font-size: 21px; font-weight: 900; }
.vip-info { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vip-info > b { font-size: 15px; line-height: 1.2; }
.vip-info small { font-size: 11.5px; opacity: .9; }
.vip-info .sbtn, .vip-info button { align-self: flex-start; }
.vip-bar { position: relative; height: 18px; border-radius: 9px; background: rgba(0,0,0,.28); overflow: hidden; border: 2px solid rgba(255,255,255,.7); }
.vip-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ffe066, #ffb300); border-radius: 7px; }
.vip-bar span { position: relative; display: block; text-align: center; font-size: 11px; font-weight: 900; line-height: 14px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.6); }
.vip-daily { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff7d6; border: 3px solid var(--ink); margin: 10px 0 4px; flex-shrink: 0; }
.vip-daily .vd-ico { font-size: 30px; } .vip-daily > div { flex: 1; display: flex; flex-direction: column; } .vip-daily small { color: var(--navy-2); font-weight: 600; }
.vip-perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 7px; flex-shrink: 0; }
.vip-perk { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 6px; border-radius: 14px; background: #f3f7fc; border: 2px solid #d5e3f2; opacity: .75; }
.vip-perk.on { background: #fff; border-color: #ffcf3a; opacity: 1; }
.vip-perk .pk-ico { font-size: 24px; } .vip-perk b { font-size: 12.5px; line-height: 1.2; } .vip-perk small { font-size: 10.5px; font-weight: 800; color: var(--navy-2); }
.vip-levels { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.vip-lv { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 14px; background: #fff; border: 2px solid #d5e3f2; }
.vip-lv .vl-head { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 62px; flex: none; }
.vip-lv .vl-head .vipb { margin: 0; height: 22px; font-size: 13px; }
.vip-lv .vl-head small { font-size: 10.5px; font-weight: 800; color: var(--navy-2); }
.vip-lv .promo-rewards { flex: 1; min-width: 0; justify-content: flex-start; }
.vip-lv.can { border-color: var(--ink); background: #fff7d6; }
.vip-lv.next { border-style: dashed; border-color: #ffb300; }
.vip-lv.got { opacity: .6; }
.vip-lv.locked .promo-rewards { filter: saturate(.6); }
.pr-gold.zeny { background: #eef7ff; }

/* history */
.hist-list { display: flex; flex-direction: column; gap: 5px; }
.hist-row { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 13px; background: #fff; border: 2px solid #e1ebf6; }
.hist-row .h-ico { font-size: 20px; width: 28px; text-align: center; flex: none; }
.hist-row .h-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hist-row .h-mid b { font-size: 13.5px; } .hist-row .h-mid small { font-size: 11px; color: var(--navy-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-row .h-amt { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.hist-row .h-amt b { font-size: 15px; font-weight: 900; } .hist-row .h-amt small { font-size: 10.5px; color: var(--navy-2); }
.hist-row.in .h-amt b { color: #1f9d55; } .hist-row.out .h-amt b { color: #e8312f; }
#histSubs { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.sub-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 14px; background: #fffbea; border: 2px solid #f5d77a; flex-wrap: wrap; }
.sub-row .fr-prev { width: 36px; height: 36px; } .sub-row .nc-prev { max-width: 130px; }
.sub-row .sub-info { flex: 1; min-width: 110px; display: flex; flex-direction: column; } .sub-row small { font-size: 11px; color: var(--navy-2); }
.switch { padding: 5px 10px; border-radius: 999px; border: 2px solid var(--ink); background: #e3eefa; font-weight: 800; font-size: 12px; color: var(--ink); }
.switch.on { background: #7de3a8; }

/* ================= fitting room ================= */
#viewer { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); pointer-events: none; }
#viewer > * { min-width: 0; }
#viewer > * { pointer-events: auto; }
body.viewing #home, body.viewing #lobby, body.viewing #room, body.viewing #eventPop, body.viewing .toasts ~ .fest-banner { visibility: hidden; }
body.viewing #shade { background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(15,37,71,.35)); }
.vw-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t, 0px)) calc(12px + var(--safe-r)) 6px calc(12px + var(--safe-l)); }
.vw-x { width: 46px; height: 46px; border-radius: 15px; border: 3px solid var(--ink); background: #fff; box-shadow: 0 4px 0 var(--ink); display: grid; place-items: center; flex: none; }
.vw-x svg { width: 22px; height: 22px; }
.vw-who { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.92); border: 3px solid var(--ink); min-width: 0; }
.vw-who .pfp { width: 38px; height: 38px; }
.vw-who b { font-family: var(--font-display); font-weight: 900; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; }
.vw-stage { position: relative; touch-action: none; cursor: grab; }
.vw-stage:active { cursor: grabbing; }
.vw-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(15,37,71,.7); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; pointer-events: none; transition: opacity .4s; animation: hintBob 1.8s ease-in-out infinite; }
.vw-hint.gone { opacity: 0; }
@keyframes hintBob { 50% { transform: translateX(-50%) translateY(-4px); } }
.vw-side { position: fixed; right: calc(12px + var(--safe-r)); top: calc(76px + var(--safe-t, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 101; }
.vw-side button { width: 46px; height: 46px; border-radius: 15px; border: 3px solid var(--ink); background: #fff; box-shadow: 0 3px 0 var(--ink); font-size: 22px; font-weight: 900; color: var(--ink); }
.vw-side button:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
#vwFx { background: linear-gradient(180deg, #fff3b0, #ffcf3a); }
.vw-panel { display: flex; flex-direction: column; gap: 6px; margin: 0 calc(8px + var(--safe-r)) calc(8px + var(--safe-b, 0px)) calc(8px + var(--safe-l)); padding: 8px; border-radius: 22px; background: rgba(255,255,255,.96); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); max-height: 42vh; min-height: 0; }
.vw-panel .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.vw-panel .tabs::-webkit-scrollbar { display: none; }
.vw-panel .tabs button { flex: 0 0 auto; white-space: nowrap; }
.vw-list { overflow-y: auto; min-height: 60px; flex: 1; overscroll-behavior: contain; }
.vw-sec { font-weight: 900; font-size: 12.5px; color: var(--navy-2); margin: 4px 2px; }
.vw-sec.hot { color: #b45309; }
.vw-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.vw-chip { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 70px; padding: 5px 3px; border-radius: 14px; border: 3px solid #c9d8e8; background: #fff; color: var(--ink); }
.vw-chip img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.vw-chip .ico { font-size: 24px; line-height: 1; }
.vw-chip .sw { width: 34px; height: 9px; border-radius: 5px; border: 2px solid var(--ink); }
.vw-chip small { font-size: 10px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-chip.on { border-color: var(--ink); background: #fff7d6; box-shadow: 0 3px 0 var(--ink); }
.vw-chip.shop { background: linear-gradient(180deg, #fffdf2, #fff); border-style: dashed; border-color: #ffcf3a; }
.vw-chip.shop.on { border-style: solid; border-color: var(--ink); }
.vw-chip .price { position: absolute; top: -7px; right: -4px; display: inline-flex; align-items: center; gap: 1px; font-size: 10px; font-weight: 900; padding: 0 4px; border-radius: 7px; background: #fff; border: 2px solid var(--ink); }
.vw-chip .price svg { width: 11px; height: 11px; }
.vw-chip .price s { display: none; }
.vw-btns { display: flex; gap: 8px; flex-shrink: 0; }
.vw-btns .gbtn { min-height: 48px; font-size: 16px; }
.vw-btns .gbtn.white { flex: 0 0 auto; padding: 0 14px; }
.vw-btns .gbtn.yellow { flex: 1; }
.vw-btns .price { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; }
.vw-btns .price svg { width: 18px; height: 18px; }
@media (orientation: landscape) and (min-width: 721px) {
  #viewer { grid-template-columns: minmax(0, 1fr) min(420px, 42vw); grid-template-rows: auto minmax(0, 1fr); }
  .vw-top { grid-column: 1 / 3; }
  .vw-stage { grid-column: 1; grid-row: 2; }
  .vw-panel { grid-column: 2; grid-row: 2; max-height: none; margin-top: 0; }
  .vw-side { right: calc(min(420px, 42vw) + 22px + var(--safe-r)); }
  .vw-row { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .vw-top { padding-top: calc(6px + var(--safe-t, 0px)); }
  .vw-x, .vw-side button { width: 40px; height: 40px; }
  .vw-side { top: calc(58px + var(--safe-t, 0px)); gap: 5px; }
}
@media (orientation: landscape) and (max-width: 720px) {
  #viewer { grid-template-columns: minmax(0, 1fr) 55vw; grid-template-rows: auto minmax(0, 1fr); }
  .vw-top { grid-column: 1 / 3; }
  .vw-stage { grid-column: 1; grid-row: 2; }
  .vw-panel { grid-column: 2; grid-row: 2; max-height: none; }
  .vw-side { right: calc(55vw + 18px); }
}

.mall-card { overflow: visible; }
.mall-grid { padding-top: 8px; row-gap: 14px; }
.mall-head { flex-wrap: wrap; }
.mall-head b { white-space: nowrap; }
.gdlg-card.rent { width: min(600px, calc(100vw - 24px)); max-width: 100%; }
.gdlg { overflow-y: auto; align-items: safe center; }
.gdlg-card.rent .rent-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rent-plan .price { flex-wrap: wrap; justify-content: center; font-size: 14px; row-gap: 0; }
.rent-plan .price s { flex-basis: 100%; text-align: center; margin: 0; font-size: 11px; }
.gdlg-btns .price s, .vw-btns .price s { display: none; }
.gdlg-card.rent .gdlg-btns .gbtn { min-width: 0; padding: 0 12px; font-size: 16px; }
@media (max-width: 360px) { .rent-plan b { font-size: 12.5px; } .rent-plan .price { font-size: 12.5px; } }

/* festival: go to its shop */
.fest-shop { font-style: normal; margin-inline-start: 6px; padding: 2px 9px; border-radius: 10px; background: #ffe066; border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); font-size: 12px; font-weight: 900; color: var(--ink); white-space: nowrap; animation: dockHot 1.4s ease-in-out infinite; cursor: pointer; }
.fest-shop-btn { width: 100%; margin: 4px 0 8px; }
.fest-row-shop { flex: none; margin-inline-start: 6px; }

.mall-acts { display: flex; gap: 5px; width: 100%; }
.mall-card .mall-acts .gbtn { width: auto; flex: 1 1 auto; min-width: 0; padding: 0 8px; }
.mall-card .mall-acts .try-btn { flex: 0 0 40px; padding: 0; }
.mall-card .price { flex-wrap: wrap; justify-content: center; row-gap: 0; max-width: 100%; }
.mall-card .price.sale s { flex-basis: 100%; text-align: center; margin: 0; font-size: 11px; line-height: 1.1; }

/* ================= premium bombs, offers, passes, invite ================= */
.bomb-sw.premium { background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9) 0 12%, transparent 13%), radial-gradient(circle, var(--c1) 0 55%, var(--c2) 100%); }
.bomb-sw.premium i { font-size: 18px; font-style: normal; }
.bomb-sw.premium.way-gold { box-shadow: 0 0 0 2px #ffd34d, 0 0 10px #ffcf3a; }
.bomb-sw.premium.way-cosmic { box-shadow: 0 0 10px #ff4fd8; }
.bomb-sw.premium.tier-m { animation: pbGlow 1.8s ease-in-out infinite; }
@keyframes pbGlow { 50% { box-shadow: 0 0 0 2px #ff4fd8, 0 0 16px #ff4fd8; } }
.bomb-sw .pb-stat { position: absolute; bottom: -2px; right: -4px; font-style: normal; font-size: 9px; font-weight: 900; color: #fff; background: #e8312f; border-radius: 6px; padding: 0 3px; border: 1.5px solid #fff; }
.bomb-sw { overflow: visible; }
.gdlg-item .bomb-sw.premium.big i { font-size: 34px; }
.mall-card.rar-m { border-color: #ff4fd8; background: linear-gradient(180deg, #fde7ff, #fff); box-shadow: 0 0 0 2px rgba(255,79,216,.3), 0 0 18px rgba(255,79,216,.45); }
.mall-card.rar-m::after { content: ''; position: absolute; inset: 0; border-radius: 15px; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); background-size: 250% 100%; animation: ncShine 2.4s linear infinite; }
.rar-m .rar-tag { background: linear-gradient(90deg, #7c3aed, #ff4fd8); }

.promo-card.starter { background: linear-gradient(135deg, #fff3b0, #ffcf3a 60%, #ff9a3d); border-color: var(--ink); position: relative; }
.promo-card .muted { display: block; text-align: center; margin-top: 4px; }
.promo-card.stepup { background: linear-gradient(135deg, #eef6ff, #dbeaff); }
.step-ladder { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: thin; }
.step { position: relative; flex: 0 0 142px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 8px; border-radius: 16px; border: 3px solid #c9d8e8; background: #fff; text-align: center; }
.step .step-n { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 13px; border: 2px solid #fff; }
.step > b { font-size: 18px; font-weight: 900; }
.step .promo-rewards { justify-content: center; }
.step.now { border-color: var(--ink); background: #fff7d6; box-shadow: 0 4px 0 var(--ink); transform: translateY(-3px); }
.step.locked { opacity: .55; filter: grayscale(.4); }
.step.done { opacity: .6; }
.step .step-st { font-size: 18px; }
.pr-gold.pass { background: #e9f3ff; }
.passcard { background: linear-gradient(135deg, #1d3f72, #2f86e8); color: #fff; }
.passcard.zpass { background: linear-gradient(135deg, #0f766e, #3fbf9f); }
.passcard.on { box-shadow: 0 0 0 3px #ffd34d, 0 6px 0 var(--ink); }
.passcard .pc-title { color: #fff; }
.pass-head { display: flex; align-items: center; gap: 10px; }
.pass-head .pass-ico { font-size: 40px; }
.pass-head > div { display: flex; flex-direction: column; } .pass-head small { opacity: .92; font-weight: 700; }
.pass-perks { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; font-weight: 700; font-size: 13px; }
.passcard .muted { color: #e3f0ff; }
.pass-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; margin: 8px 0 4px; }
.pass-plan { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; border: 3px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.pass-plan b { font-size: 14px; font-weight: 900; }
.pass-plan .price { display: inline-flex; align-items: center; gap: 2px; font-weight: 900; }
.pass-plan .price svg { width: 15px; height: 15px; }
.pass-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; opacity: .92; margin-top: 4px; cursor: pointer; }
.pass-auto input { width: 15px; height: 15px; accent-color: #ffd34d; }
.pass-warn { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 10px; margin: 6px 0; border-radius: 12px; background: #fff1f0; color: #b91c1c; border: 2px solid #fca5a5; }
.passcard .gbtn.sm { margin-top: 4px; }
.pass-chip { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; margin-inline-start: 4px; padding: 2px 8px; border-radius: 999px; border: 2px solid var(--ink); background: #e9f3ff; font-weight: 800; font-size: 10.5px; color: var(--ink); white-space: nowrap; }
.pass-chip.on { background: #d7f5e3; }
.pass-chip.warn { background: #ffe4e1; color: #b91c1c; animation: dockHot 1.2s ease-in-out infinite; }
.offer-pop .promo-rewards { justify-content: center; }
.result-offer { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.ro-note { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 7px 10px; border-radius: 12px; background: #fff4e5; border: 2px solid #fdba74; font-weight: 700; font-size: 13px; }
.ro-note.ok { background: #e6f9ee; border-color: #86efac; }
.ro-card { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; border: 3px solid var(--ink); background: linear-gradient(135deg, #fff3b0, #ffcf3a); box-shadow: 0 4px 0 var(--ink); text-align: start; color: var(--ink); animation: dockHot 2s ease-in-out infinite; }
.ro-card .ro-ico { font-size: 30px; } .ro-card > div { flex: 1; display: flex; flex-direction: column; min-width: 0; } .ro-card small { font-size: 11.5px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-card .price { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; }
.ro-card .price svg { width: 16px; height: 16px; }
.share-btn { flex: 0 0 auto; }
.side-btn.invite { background: linear-gradient(180deg, #d7f5e3, #7de3a8); }
.ref-hero { padding: 14px; border-radius: 20px; border: 3px solid var(--ink); background: linear-gradient(135deg, #3fbf6a, #43acf7); color: #fff; box-shadow: 0 5px 0 var(--ink); display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.ref-hero > b { font-family: var(--font-display); font-size: 21px; font-weight: 900; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.ref-hero > small { font-weight: 700; }
.ref-link { display: flex; gap: 6px; }
.ref-link input { flex: 1; min-width: 0; border-radius: 12px; border: 2px solid var(--ink); padding: 8px 10px; font-weight: 700; color: var(--ink); }
.ref-share { display: flex; gap: 6px; flex-wrap: wrap; }
.share-chip { padding: 6px 12px; border-radius: 12px; border: 2px solid #fff; color: #fff; font-weight: 800; font-size: 13px; }
.share-chip.more { background: #1d3f72; }
/* Splash Squad together (round 3): invite link, help card, chained-room countdown, mentor coins, guild quest */
.sqi-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 2px 0; }
.sqi-pop .sqi-link { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--ink); font-size: 13px; background: #f4fbff; color: var(--navy-2); margin: 4px 0 8px; }
.sqi-pop .sqi-share { justify-content: center; margin-bottom: 6px; }
.sqi-pop .gdlg-btns .gbtn { white-space: normal; line-height: 1.15; height: auto; min-height: 48px; font-size: 16px; }
.sqi-pop:not(.sqi-chain) .gdlg-btns { grid-template-columns: 1fr; }
.sqi-st { font-weight: 800; color: var(--navy-2); margin: 2px 0; }
.sqi-count { font-family: var(--font-display); font-size: 56px; line-height: 1; text-align: center; color: var(--navy-2); text-shadow: 0 3px 0 #bfe6ff; margin: 4px 0; animation: sqiPulse 1s infinite; }
@media (orientation: landscape) and (max-height: 500px) { .gdlg-card.sqi-pop, .gdlg-card.sq-pop { display: flex; flex-direction: column; text-align: center; max-height: calc(100dvh - 16px); overflow: auto; } .sqi-count { font-size: 40px; } }   /* after .sqi-count, so the smaller number wins on landscape phones */
@keyframes sqiPulse { 0% { transform: scale(1.15); } 60%, 100% { transform: scale(1); } }
.sqi-tags { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0; }
.sqi-tag { padding: 3px 10px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 800; font-size: 13px; background: #fff; color: var(--navy-2); }
.sqi-tag.fr { background: #ffe9f3; } .sqi-tag.mt { background: #fff5cf; } .sqi-tag.gd { background: #e4f5ff; }
.sqi-slot:empty { display: none; }
.sqi-card { margin: 6px 0; padding: 8px 10px; border-radius: 14px; border: 3px solid var(--ink); background: linear-gradient(135deg, #fff8dc, #ffe9a8); box-shadow: 0 3px 0 var(--ink); display: flex; flex-direction: column; gap: 3px; text-align: start; }
.sqi-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--navy-2); }
.sqi-coins { font-weight: 900; font-size: 16px; }
.sqi-today { font-weight: 700; color: var(--navy-2); }
.sqi-shop { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.sqi-buy { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1 1 calc(33% - 6px); min-width: 0; height: auto; padding: 5px 4px; line-height: 1.1; }
.sqi-buy .g-give { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.sqi-cost { font-weight: 900; white-space: nowrap; font-size: 13px; color: #8a5a00; }
.sqi-gq { margin-top: 8px; } .sqi-top5 { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.ref-code { font-weight: 900; letter-spacing: .08em; background: rgba(0,0,0,.2); align-self: flex-start; padding: 2px 10px; border-radius: 9px; }
.ref-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 7px; flex-shrink: 0; }
.ref-step { display: flex; flex-direction: column; gap: 4px; padding: 9px 10px; border-radius: 14px; background: #fff; border: 2px solid #d5e3f2; }
.ref-step small { font-weight: 800; color: var(--navy-2); font-size: 11.5px; }
.ref-step .promo-rewards { justify-content: flex-start; }
.ref-n { font-size: 15px; font-weight: 900; }
.ref-prog { display: flex; gap: 3px; flex: none; }
.ref-prog span { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 7px; background: #e3eefa; color: #7b8aa3; }
.ref-prog span.on { background: #7de3a8; color: #064e2b; }

.promo-card .pc-burst.small { font-size: 19px; -webkit-text-stroke: 1.5px #7a0040; }
.passcard small, .passcard p, .passcard li { color: #fff !important; }
.passcard .pass-warn b { color: #b91c1c !important; }
.passcard .promo-rewards, .passcard .pass-plan, .passcard .pass-plan * { color: var(--ink) !important; }
.ref-step > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* 7 side buttons: a little more compact in portrait so they stay above the name plate */
@media (orientation: portrait) {
  .side-btns { gap: 5px; }
  .side-btn { padding: 3px 1px; font-size: 9px; line-height: 1.05; }
  .side-btn svg { width: 21px; height: 21px; }
  .side-btn .hot-ico { font-size: 20px; line-height: 1; }
}
@media (orientation: portrait) and (max-height: 720px) {
  .side-btns { grid-template-columns: repeat(3, 46px) !important; gap: 4px; }
  .side-btn { width: 46px !important; font-size: 8px; border-radius: 12px; }
  .side-btn svg { width: 18px; height: 18px; } .side-btn .hot-ico { font-size: 17px; }
  .topup-dock { transform: scale(.8); transform-origin: top left; }
}
.foot a, .legal-links a, .legal-note a { color: inherit; text-decoration: underline; }
.legal-note { font-size: 12px; color: var(--navy-2); text-align: center; margin: 4px 0; }
.legal-links { font-size: 12.5px; text-align: center; color: var(--navy-2); margin: 6px 0; }
.legal-links.small { font-size: 11.5px; }
.pass-terms { display: inline-block; margin-inline-start: 10px; font-size: 11px; color: #e3f0ff !important; text-decoration: underline; }
.foot a, .legal-links a, .legal-note a { color: inherit; text-decoration: underline; }
.legal-note { font-size: 12px; color: var(--navy-2); text-align: center; margin: 4px 0; }
.legal-links { font-size: 12.5px; text-align: center; color: var(--navy-2); margin: 6px 0; }
.legal-links.small { font-size: 11.5px; }
.pass-terms { display: inline-block; margin-inline-start: 10px; font-size: 11px; color: #e3f0ff !important; text-decoration: underline; }
/* match tickets */
.tk-bar { right: calc(12px + var(--safe-r)); top: calc(96px + var(--safe-t, 0px)); display: flex; gap: 6px; pointer-events: auto; }
.tk-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; border: 2px solid rgba(255,255,255,.8); background: rgba(10,28,52,.7); color: #fff; padding: 0; line-height: 1; }
.tk-btn span { font-size: 20px; } .tk-btn small { font-size: 10px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tk-btn.on { background: linear-gradient(180deg, #3fdc7a, #1f9d55); border-color: #fff; }
.tk-btn:not(.on) { animation: dockHot 1.6s ease-in-out infinite; }
.tk-hint { left: 50%; transform: translateX(-50%); top: calc(150px + var(--safe-t, 0px)); padding: 7px 14px; border-radius: 14px; background: rgba(10,28,52,.8); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.tk-shop { margin-top: 14px; padding-top: 6px; border-top: 2px dashed #c9d8e8; }
.tk-card .boost-opt .save { font-style: normal; font-size: 10px; font-weight: 900; color: #1f9d55; }
.pass-auto.dark { color: var(--navy-2); opacity: 1; }
@media (orientation: portrait) { .tk-bar { top: calc(104px + var(--safe-t, 0px)); } }
.ref-qr { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 14px; padding: 8px; border: 2px solid var(--ink); }
.ref-qr canvas.qr { width: 112px; height: 112px; image-rendering: pixelated; flex: none; }
.ref-qr > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; } .ref-qr small { font-size: 12px; color: var(--navy-2); }
@media (orientation: landscape) { .tk-bar { flex-direction: column; top: calc(92px + var(--safe-t, 0px)); } .tk-btn { width: 42px; height: 42px; } }

/* ================= world bosses (raids) ================= */
.raid-tile { position: relative; flex: none; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 6px 10px 6px 8px; border: 3px solid var(--ink); border-radius: 20px; color: #fff; text-align: start; box-shadow: 0 5px 0 var(--ink); overflow: hidden;
  background: linear-gradient(135deg, #3a2a6a, #5b2a8a 55%, #2a3f7a); font-family: var(--font-display); }
.raid-tile::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 14px, transparent 14px 30px); pointer-events: none; }
.raid-tile:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.raid-tile.live { background: linear-gradient(135deg, #b0122f, #e8312f 50%, #ff7a1a); animation: raidPulse 1.3s ease-in-out infinite; }
.raid-tile.done { background: linear-gradient(135deg, #2a5590, #3a7ac8); }
@keyframes raidPulse { 0%, 100% { box-shadow: 0 5px 0 var(--ink), 0 0 0 0 rgba(255,80,60,.6); } 50% { box-shadow: 0 5px 0 var(--ink), 0 0 0 8px rgba(255,80,60,0); } }
.rt-face, .raid-face { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-size: 30px; line-height: 1; border: 3px solid #fff;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55) 0 14%, transparent 15%), radial-gradient(circle, var(--c1, #7a3fd0) 0 60%, var(--c2, #ffd34d) 100%); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.raid-tile.live .rt-face { animation: raidShake .5s ease-in-out infinite; }
@keyframes raidShake { 0%, 100% { transform: rotate(-6deg) scale(1.02); } 50% { transform: rotate(6deg) scale(1.08); } }
.rt-txt { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rt-txt small { font-size: 12px; font-weight: 700; opacity: .95; }
.rt-txt b { font-size: 18px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.rt-txt em { font-style: normal; font-size: 12px; font-weight: 700; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-bar { display: block; height: 8px; border-radius: 4px; background: rgba(0,0,0,.35); overflow: hidden; border: 1.5px solid #fff; margin: 2px 0; }
.rt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffe066, #ff4f86); transition: width .4s; }
.rt-side { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rt-go { padding: 6px 12px; border-radius: 12px; background: var(--yellow, #ffcf3a); color: var(--ink); font-weight: 900; font-size: 15px; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.raid-tile:not(.live) .rt-go { background: #fff; font-size: 13px; }
.rt-sched { font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 10px; background: rgba(255,255,255,.2); }
.raid-tile:not(.live) .rt-sched { display: none; }
@media (orientation: landscape) and (max-height: 500px) { .raid-tile { min-height: 50px; padding: 3px 8px; } .rt-face { width: 40px; height: 40px; font-size: 24px; } .rt-txt b { font-size: 15px; } .rt-txt small, .rt-txt em { font-size: 11px; } .rt-go { padding: 4px 9px; font-size: 13px; } }
.raid-face.sm { width: 38px; height: 38px; font-size: 22px; border-width: 2px; }
.raid-face.xl { width: 104px; height: 104px; font-size: 62px; border-width: 4px; box-shadow: 0 6px 0 rgba(0,0,0,.25), 0 0 24px var(--c1); }
.raid-face.xl.ko { filter: saturate(.8); transform: rotate(-12deg); }
.raid-fest { display: inline-block; font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 10px; background: #fff4c7; color: #7a4a00; border: 1.5px solid #e8b83a; margin: 2px 4px 0 0; }
.raid-hpbar { position: relative; width: 100%; height: 18px; border-radius: 9px; background: #3a2a5a; border: 2px solid var(--ink); overflow: hidden; }
.raid-hpbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffe066, #ff4f86 60%, #c25be0); transition: width .4s; }
.raid-hpbar span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.raid-hpbar.luck i { background: linear-gradient(90deg, #7fe8a0, #2fa86a); }
.gdlg-card.raid-pop { background: linear-gradient(180deg, #fff 0 60%, #ffe8e8); }
.gdlg-card.raid-pop .gdlg-ribbon { background: linear-gradient(180deg, #ff6a6a, #d01f3a); }
.raid-popinfo { width: 100%; display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; color: var(--navy); }
.raid-popnote { margin: 0; font-size: 13px; font-weight: 700; color: #7a4a00; background: #fff4c7; border-radius: 12px; padding: 6px 10px; }
/* raid window */
.raid-win .win-body { display: flex; flex-direction: column; gap: 10px; }
.raid-tabs button { min-height: 38px; font-size: 14px; }
.raid-hero { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: linear-gradient(135deg, #2a3f7a, #5b2a8a); color: #fff; border: 3px solid var(--ink); flex-wrap: wrap; }
.raid-hero.live { background: linear-gradient(135deg, #b0122f, #ff7a1a); }
.raid-hero .rh-info { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 4px; }
.raid-hero .rh-info b { font-family: var(--font-display); font-size: 22px; }
.raid-hero .rh-line { font-size: 13px; font-weight: 700; }
.raid-hero .gbtn { min-height: 52px; font-size: 18px; }
.raid-how { padding: 10px 14px; border-radius: 16px; background: var(--sky); border: 2px solid var(--sky-2); }
.raid-how ol { margin: 6px 0 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.raid-drops b { display: block; margin-bottom: 6px; }
.raid-items { display: flex; flex-wrap: wrap; gap: 8px; }
.raid-item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; padding: 8px 4px; border-radius: 14px; border: 2px solid #e8b83a; background: linear-gradient(180deg, #fffbe8, #fff1c2); box-shadow: 0 3px 0 #e8b83a; }
.raid-item small { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.2; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.raid-item .fr-prev { width: 42px; height: 42px; }
.raid-item .nc-prev { font-size: 14px; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raid-item.own { opacity: .65; }
.raid-item { position: relative; }
.raid-item.own::after { content: '✔'; position: absolute; top: 3px; right: 6px; font-weight: 900; color: #1f9d55; }
.raid-items.mini .raid-item { width: 70px; padding: 4px; }
.raid-items.got .raid-item { animation: raidGot 1.2s ease-in-out infinite alternate; }
@keyframes raidGot { from { box-shadow: 0 3px 0 #e8b83a, 0 0 0 rgba(255,207,58,0); } to { box-shadow: 0 3px 0 #e8b83a, 0 0 18px rgba(255,207,58,.9); } }
.raid-ltd { font-size: 32px; }
.raid-sched { display: flex; flex-direction: column; gap: 6px; }
.rs-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid var(--sky-2); }
.rs-row.live { border-color: #ff6a6a; background: #fff0f0; }
.rs-time { flex: none; width: 76px; white-space: pre-line; font-weight: 800; font-size: 13px; color: var(--navy); text-align: center; line-height: 1.25; }
.rs-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rs-name b { font-size: 15px; }
.rs-name small { font-size: 12px; color: var(--navy-2); }
.rs-state { flex: none; font-weight: 800; font-size: 13px; color: #d01f3a; }
.raid-boss { padding: 10px 12px; border-radius: 18px; background: #fff; border: 2px solid var(--sky-2); display: flex; flex-direction: column; gap: 8px; }
.rb-head { display: flex; align-items: center; gap: 10px; }
.rb-head > div { display: flex; flex-direction: column; }
.rb-title { font-family: var(--font-display); font-size: 18px; }
.rb-atk { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-atk span { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 10px; background: #ffe8e8; color: #a0102a; }
.raid-festgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.raid-festgrid .rf { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.raid-festgrid small { font-size: 11px; font-weight: 700; line-height: 1.2; }
.raid-stats { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--sky); font-weight: 800; }
/* in the fight */
.boss-bar .bb { position: relative; }
.boss-bar .bb span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; }
body.in-raid .boss-bar { width: min(460px, 78vw); }
body.in-raid .boss-bar .bb { height: 18px; }
body.in-raid .boss-bar b { max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boss-bar.angry { background: rgba(140,10,30,.9); animation: raidShake 1s ease-in-out infinite; }
.raid-me { left: 50%; transform: translateX(-50%); top: calc(118px + var(--safe-t, 0px)); display: flex; gap: 10px; padding: 3px 12px; border-radius: 12px; background: rgba(15,37,71,.8); color: #fff; font-family: var(--font-display); font-size: 14px; white-space: nowrap; }
.raid-me .rx b { color: #ffe066; }
.raid-me.bump { animation: raidBump .35s ease-out; }
@keyframes raidBump { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.15); } 100% { transform: translateX(-50%) scale(1); } }
.pop.raid-dmg { font-size: 26px; color: #fff; -webkit-text-stroke: 1.5px #7a0018; }
.pop.raid-dmg.crit { font-size: 38px; color: #ffe066; -webkit-text-stroke: 2px #7a3a00; }
.pop.raid-exp { font-size: 15px; color: #bff7c8; }
.pop.raid-exp.me { font-size: 24px; color: #7fff9a; -webkit-text-stroke: 1.5px #0a4a1a; }
.pop.raid-atk { font-size: 20px; color: #ffd0d0; -webkit-text-stroke: 1px #6a0010; }
/* result */
.gdlg-card.raid-res.win .gdlg-ribbon { background: linear-gradient(180deg, #ffd34d, #e89a00); }
.raid-mine { font-weight: 900; font-size: 15px; color: var(--navy); }
.raid-magic { color: #b45309; }
.raid-top { width: 100%; margin: 4px 0 0; padding: 6px 10px; list-style: none; border-radius: 12px; background: var(--sky); max-height: 150px; overflow: auto; font-size: 13px; }
.raid-top li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.raid-top li.me { color: var(--blue-dark); font-weight: 900; }
.rchip.exp { background: #e8ffe8; }
.bomb-sw.raid { background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9) 0 12%, transparent 13%), linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: 0 0 0 2px #ffd34d, 0 0 12px var(--c1); }
.bomb-sw.raid i { font-size: 18px; font-style: normal; }
@media (orientation: landscape) and (max-height: 500px) { .raid-me { top: calc(96px + var(--safe-t, 0px)); font-size: 12px; } .gdlg-card.raid-res, .gdlg-card.raid-pop { max-height: calc(100dvh - 20px); overflow: auto; } }

/* ================= lucky box, enhancing, styles, rankings, offers, why top up ================= */
.dock-btn.gacha { background: linear-gradient(180deg, #ffe8fb, #ff9ad8 55%, #c23f9a); color: #3a0030; }
.dock-btn.gacha .dock-ico, .dock-btn.rich .dock-ico { font-size: 26px; }
.dock-btn.gacha.free { animation: promoHot .9s ease-in-out infinite alternate; }
.dock-btn.rich { background: linear-gradient(180deg, #fff1e0, #ffb36b 55%, #e8590c); color: #3a1400; }
.power-chip { display: inline-flex; align-items: center; margin-top: 2px; margin-inline-start: 4px; padding: 2px 8px; border-radius: 999px; border: 2px solid var(--ink); background: linear-gradient(90deg, #fff3b0, #ffd34d); font-weight: 900; font-size: 10.5px; color: #3a2400; white-space: nowrap; }
.power-chip.none { background: #fff; animation: promoHot 1.2s ease-in-out infinite alternate; }
/* style items */
.ttl-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-weight: 900; font-size: 12px; color: #fff; background: linear-gradient(90deg, var(--c1), var(--c2)); border: 2px solid rgba(0,0,0,.25); text-shadow: 0 1px 2px rgba(0,0,0,.45); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ttl-chip.fx-solid { background: var(--c1); }
.ttl-chip.fx-neon, .ttl-chip.fx-shine { box-shadow: 0 0 8px var(--c1); }
.ttl-chip.fx-rainbow { background: linear-gradient(90deg, #ff5a7a, #ffcf3a, #3fbf6a, #43acf7, #9b5be0); background-size: 200% 100%; animation: ttlMove 3s linear infinite; }
.ttl-chip.fx-galaxy, .ttl-chip.fx-fire { background-size: 200% 100%; animation: ttlMove 2.5s linear infinite; }
@keyframes ttlMove { to { background-position: 200% 0; } }
.slot-plate .ttl-chip { font-size: 10px; padding: 1px 6px; margin-top: 2px; }
.bub-prev { display: inline-block; padding: 5px 10px; border-radius: 14px; border: 2px solid; font-weight: 800; font-size: 12px; }
.emo-prev { font-size: 18px; letter-spacing: 1px; }
.ko-prev { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 26px; background: radial-gradient(circle, var(--c2) 0 30%, var(--c1) 75%); box-shadow: 0 0 12px var(--c1); }
.chat-bub { padding: 4px 8px; border-radius: 12px; border: 2px solid; margin: 3px 0; }
.chat-bub .cb-emo { margin-inline-end: 4px; }
#emoteWheel.many { max-width: 300px; flex-wrap: wrap; justify-content: center; }
.enh-tag { position: absolute; top: 2px; left: 4px; font-style: normal; font-weight: 900; font-size: 11px; color: #fff; background: #e8312f; border-radius: 8px; padding: 0 5px; }
.enh-btn { position: absolute; bottom: 2px; right: 2px; font-size: 14px; background: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid var(--ink); cursor: pointer; }
.chip.bomb { position: relative; }
.item-more { width: 100%; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.item-more .gbtn { min-height: 42px; font-size: 14px; flex: 1; }
/* lucky box */
.gacha-win .win-body { display: flex; flex-direction: column; gap: 10px; }
.gc-hero { padding: 12px; border-radius: 20px; background: radial-gradient(circle at 50% 0, #fff6c8, transparent 60%), linear-gradient(135deg, #3a1d7a, #c23f9a 60%, #ff8a3d); color: #fff; border: 3px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.gc-ribbon { font-weight: 900; font-size: 13px; text-align: center; }
.gc-feat { display: flex; gap: 10px; justify-content: center; }
.gc-fcard { position: relative; flex: 1; max-width: 170px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 10px; border-radius: 16px; background: rgba(255,255,255,.95); color: var(--ink); border: 3px solid #ffd34d; box-shadow: 0 0 20px rgba(255,211,77,.8); animation: gcGlow 1.6s ease-in-out infinite alternate; }
.gc-fcard b { font-size: 12px; text-align: center; line-height: 1.2; }
.gc-fcard .bomb-sw, .gc-fcard .fr-prev { transform: scale(1.4); margin: 8px 0; }
@keyframes gcGlow { to { box-shadow: 0 0 34px rgba(255,120,220,.95); } }
.gc-ssr { position: absolute; top: -10px; padding: 1px 10px; border-radius: 999px; background: linear-gradient(90deg, #ff5a7a, #ffcf3a, #43acf7); color: #fff; font-weight: 900; font-size: 11px; border: 2px solid #fff; }
.gc-pity small { font-weight: 800; }
.gc-why { margin: 0; font-size: 13px; font-weight: 700; color: #7a2a6a; background: #ffe8fb; border-radius: 12px; padding: 8px 10px; }
.gc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gc-acts .gbtn { min-height: 56px; font-size: 16px; position: relative; }
.gc-acts .gc-free, .gc-acts .gbtn.blue { grid-column: 1 / -1; }
.gc-save { position: absolute; top: -9px; right: 8px; font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #ffd34d; color: #5a3a00; border: 2px solid var(--ink); }
.gc-wins { display: flex; flex-direction: column; gap: 3px; font-size: 12px; padding: 8px 10px; border-radius: 12px; background: var(--sky); max-height: 140px; overflow: auto; }
.gc-cost { font-style: normal; font-weight: 900; font-size: 11px; color: #b45309; }
.gc-rate { padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid var(--sky-2); display: flex; flex-direction: column; gap: 6px; }
.gc-rate.rar-ssr { border-color: #ff5a7a; } .gc-rate.rar-sr { border-color: #9b5be0; }
.gc-anim { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(10,10,40,.86); padding: 16px; overflow: auto; }
.gc-anim.out { opacity: 0; transition: opacity .25s; }
.gc-stage { position: relative; width: min(720px, 100%); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.gc-burst { position: absolute; inset: -40px; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 60%); pointer-events: none; animation: gcBurst 1.2s ease-out; }
.best-ssr .gc-burst { background: conic-gradient(from 0deg, #ff5a7a, #ffcf3a, #3fbf6a, #43acf7, #9b5be0, #ff5a7a); opacity: .35; border-radius: 50%; animation: gcSpin 3s linear infinite; }
@keyframes gcBurst { from { transform: scale(.2); opacity: 0; } }
@keyframes gcSpin { to { transform: rotate(360deg); } }
.gc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; }
.gc-grid.one { grid-template-columns: minmax(0, 220px); justify-content: center; }
@media (max-width: 600px) { .gc-grid { grid-template-columns: repeat(3, 1fr); } }
.gc-card { opacity: 0; transform: rotateY(90deg) scale(.6); animation: gcFlip .5s ease-out forwards; perspective: 600px; }
@keyframes gcFlip { to { opacity: 1; transform: none; } }
.gc-in { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: #fff; border: 3px solid #c9d5e3; min-height: 120px; text-align: center; }
.gc-in small { font-size: 11px; font-weight: 800; line-height: 1.2; }
.gc-card.rar-ssr .gc-in { border-color: #ff5a7a; background: linear-gradient(180deg, #fff, #ffe8f4); box-shadow: 0 0 24px #ff9ad8; }
.gc-card.rar-sr .gc-in { border-color: #9b5be0; background: linear-gradient(180deg, #fff, #f1e8ff); box-shadow: 0 0 14px #c2a0ff; }
.gc-card.rar-r .gc-in { border-color: #43acf7; }
.gc-rar { font-weight: 900; font-size: 11px; padding: 0 8px; border-radius: 999px; background: #e9f3ff; }
.gc-card.rar-ssr .gc-rar { background: linear-gradient(90deg, #ff5a7a, #ffcf3a); color: #fff; }
.gc-card.rar-sr .gc-rar { background: #9b5be0; color: #fff; }
.gc-dup, .gc-featmark { font-style: normal; font-size: 10px; font-weight: 900; color: #b45309; }
.gc-ok { min-height: 52px; }
/* enhancing */
.enh-dlg .gdlg-vis { position: relative; }
.enh-lv { position: absolute; bottom: 4px; right: 4px; font-weight: 900; font-size: 22px; color: #fff; background: #e8312f; border-radius: 12px; padding: 0 8px; border: 2px solid #fff; }
.gdlg-vis.hammer { animation: raidShake .15s linear infinite; }
.enh-info { width: 100%; display: flex; justify-content: space-around; gap: 6px; font-weight: 900; font-size: 15px; flex-wrap: wrap; }
.enh-rate { padding: 2px 10px; border-radius: 10px; color: #fff; }
.enh-rate.rhi { background: #1f9d55; } .enh-rate.rmid { background: #e89a00; } .enh-rate.rlo { background: #d01f3a; }
.enh-prot { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.enh-res { width: 100%; text-align: center; font-weight: 900; font-size: 18px; padding: 6px; border-radius: 12px; }
.enh-res.win { background: #e8ffe8; color: #1f7a3a; } .enh-res.lose { background: #ffe8e8; color: #a0102a; }
.stone-list { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stone-pack { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 14px; border: 2px solid var(--sky-2); background: #fff; }
.stone-pack.best { border-color: #ffd34d; background: #fffbe8; }
.sp-ico { font-size: 28px; }
/* gifts */
.gift-list { width: 100%; display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.gift-friend { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--sky-2); background: #fff; text-align: start; }
.gift-friend b { flex: 1; }
/* rankings & streak */
.rich-win .win-body { display: flex; flex-direction: column; gap: 10px; }
.rich-why { margin: 0; font-size: 13px; font-weight: 700; color: #7a3a00; background: #fff1e0; border-radius: 12px; padding: 8px 10px; }
.streak-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.streak-days .sd { white-space: pre-line; text-align: center; padding: 6px 2px; border-radius: 12px; background: #fff; border: 2px solid var(--sky-2); font-weight: 800; font-size: 12px; line-height: 1.3; }
.streak-days .sd.on { background: linear-gradient(180deg, #ffe0b0, #ff8a3d); border-color: #e8590c; color: #fff; }
.rich-count { font-weight: 900; margin: 0; }
.streak-tier { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid var(--sky-2); }
.streak-tier.ready { border-color: #ffb36b; background: #fff7ee; animation: promoHot 1s ease-in-out infinite alternate; }
.streak-tier.done { opacity: .6; }
.st-days { flex: none; width: 90px; }
.st-rew { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.st-rew .raid-item { width: 70px; padding: 4px; }
.rich-prizes { display: flex; flex-direction: column; gap: 6px; }
.rich-prizes .rp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border-radius: 12px; background: #fffbe8; border: 2px solid #ffe08a; }
.rich-prizes .raid-item { width: 74px; padding: 4px; }
.rich-me { font-weight: 900; text-align: center; padding: 8px; border-radius: 12px; background: var(--sky); }
.rich-list { max-height: none; }
.rich-list li { align-items: center; }
/* supporter power & why top up */
.power-path { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: linear-gradient(135deg, #fff8d8, #ffe9a0); border: 2px solid #e8b83a; text-align: start; }
.pp-title { font-size: 15px; }
.pp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.pp-step { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; background: rgba(255,255,255,.6); border: 2px dashed #e8b83a; text-align: center; }
.pp-step.on { background: #fff; border-style: solid; box-shadow: 0 2px 0 #e8b83a; }
.pp-step b { font-size: 12px; } .pp-step small { font-size: 11px; font-weight: 700; }
.pp-ico { font-size: 18px; }
.vip-win .power-path { margin-bottom: 10px; }
.gdlg-card.why-pop { width: min(560px, 100%); max-height: calc(100dvh - 24px); overflow: auto; position: relative; }
.why-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-weight: 900; font-size: 16px; z-index: 2; }
.why-lead { margin: 0; font-weight: 800; font-size: 14px; color: var(--navy); }
.why-best { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; border: 3px solid #e8590c; background: linear-gradient(135deg, #fff1e0, #ffd0a0); text-align: start; animation: promoHot 1s ease-in-out infinite alternate; }
.why-best > div { flex: 1; display: flex; flex-direction: column; } .wb-ico { font-size: 34px; }
.why-cards { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.why-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border-radius: 14px; border: 2px solid var(--sky-2); background: #fff; text-align: start; }
.why-card b { font-size: 13px; } .why-card small { font-size: 11.5px; color: var(--navy-2); font-weight: 600; line-height: 1.3; }
.wc-ico { font-size: 22px; }
.why-go { width: 100%; min-height: 54px; font-size: 18px; }
.why-snooze { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--navy); }
.why-snooze input { width: 20px; height: 20px; }
.nb-first { width: 100%; padding: 10px 12px; border-radius: 14px; background: #fff8d8; border: 2px solid #e8b83a; text-align: start; }
.nb-first ul { margin: 6px 0 0; padding-inline-start: 18px; font-size: 13px; font-weight: 700; display: flex; flex-direction: column; gap: 3px; }
.tut-trial { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.topup-why { padding: 10px 12px; border-radius: 16px; background: linear-gradient(135deg, #fff8d8, #fff); border: 2px solid #e8b83a; }
.topup-why ul { margin: 6px 0 0; padding-inline-start: 4px; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 700; }
.topup-why li.hot { color: #c2410c; }
.of-off { margin: 0; font-weight: 900; color: #d01f3a; font-size: 16px; }
.of-left { margin: 0; font-weight: 800; color: var(--navy); }
/* raid Gold */
.raid-gold { right: calc(12px + var(--safe-r)); top: calc(150px + var(--safe-t, 0px)); display: flex; flex-direction: column; gap: 6px; pointer-events: auto; }
.raid-gold .gbtn { min-height: 38px; padding: 3px 9px; font-size: 12px; display: flex; flex-direction: column; line-height: 1.1; }
.raid-gold { align-items: stretch; max-width: 128px; }
.raid-gold .rg-body { display: flex; flex-direction: column; gap: 5px; }
.raid-gold .rg-body[hidden] { display: none; }
.raid-gold .rg-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 8px; border-radius: 12px; border: 2px solid var(--ink); background: rgba(15,37,71,.82); color: #fff; font-family: inherit; font-weight: 700; font-size: 11px; line-height: 1.2; cursor: pointer; }
.raid-gold .rg-head i { font-style: normal; }
.raid-gold .rg-arrow { transition: transform .2s; }
.raid-gold.shut .rg-arrow { transform: rotate(-90deg); }
.raid-gold.shut { opacity: .85; }
.raid-gold .gbtn:disabled { opacity: .5; }
.raid-gold em { font-style: normal; font-size: 11px; }
.raid-gold #rgRevive { animation: promoHot .7s ease-in-out infinite alternate; }
.chest-btn { width: 100%; min-height: 50px; }
.chest-got { font-weight: 800; font-size: 13px; color: #7a3a00; text-align: center; }
@media (orientation: landscape) and (max-height: 500px) { .raid-gold { top: calc(120px + var(--safe-t, 0px)); } .why-cards { grid-template-columns: repeat(4, 1fr); } }
@media (orientation: landscape) and (max-height: 500px) { .gdlg-card.why-pop, .gdlg-card.enh-dlg, .gdlg-card.stones-dlg, .gdlg-card.raid-res { display: flex; flex-direction: column; text-align: center; max-height: calc(100dvh - 16px); overflow: auto; } }
.why-best .price, .why-card .price, .stone-pack .price { flex: none; display: inline-flex; align-items: center; gap: 3px; font-weight: 900; }
.why-best .price svg, .stone-pack .price svg, .gc-acts .price svg, .chest-btn .price svg, .offer-pop .price svg { width: 18px; height: 18px; }

/* ---- Shop tabs: grouped tiers (Gold / Zeny / Special) ---- */
.stabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; flex-shrink: 0; }
.stabs button { white-space: normal; }
.stab-grp { --c1: #fff4c4; --c2: #ffd84d; --cb: #e8b923; --ct: #7a5200; --cs: #c99a12;
  flex: 4 1 300px; min-width: 0; border-radius: 16px; padding: 4px 6px 6px; background: linear-gradient(180deg, var(--c1), #fff); border: 2px solid var(--cb); box-shadow: 0 3px 0 var(--cs); }
.stab-grp.g-zeny { --c1: #e3f2ff; --c2: #6cbcff; --cb: #8fc7f5; --ct: #1d4f8c; --cs: #6fa9de; flex: 3 1 230px; }
.stab-grp.g-spec { --c1: #f1eaff; --c2: #a98bff; --cb: #c4b0f5; --ct: #4b2f8f; --cs: #a28ee0; flex: 2 1 150px; }
.stab-h { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; color: var(--ct); padding: 0 4px 4px; }
.stab-h svg { width: 15px; height: 15px; }
.stab-h i { font-style: normal; font-size: 13px; }
.stab-row { display: flex; gap: 5px; }
.stab-row button { flex: 1 1 0; min-width: 0; min-height: 52px; border: 2px solid transparent; border-radius: 12px; background: rgba(255,255,255,.85);
  color: var(--ct); font-weight: 800; font-size: 12.5px; line-height: 1.15; padding: 4px 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 2px 0 rgba(0,0,0,.08); transition: transform .12s, background .15s, box-shadow .15s; cursor: pointer; }
.stab-row button i { font-style: normal; font-size: 19px; line-height: 1; filter: saturate(.85); transition: transform .15s; }
.stab-row button span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; overflow-wrap: break-word; hyphens: auto; }
.stab-row button:hover { background: #fff; transform: translateY(-1px); }
.stab-row button[aria-selected=true] { background: linear-gradient(180deg, #fff 0%, var(--c2) 140%); border-color: var(--cb); color: var(--ink-2);
  box-shadow: 0 3px 0 var(--cs), inset 0 -3px 0 rgba(0,0,0,.06); transform: translateY(-2px); }
.stab-row button[aria-selected=true] i { transform: scale(1.18); filter: none; }
.stab-row button.hot:not([aria-selected=true]) { color: #c81e2c; }
.stab-row button.hot i { animation: stabHot 1.6s ease-in-out infinite; }
@keyframes stabHot { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18) rotate(-6deg); } }
.stab-row button[hidden] { display: none; }
@media (max-width: 420px) {
  .stabs { gap: 6px; }
  .stab-grp { flex-basis: 100%; padding: 3px 5px 5px; }
  .stab-grp.g-zeny, .stab-grp.g-spec { flex: 1 1 100%; }
  .stab-row button { min-height: 46px; font-size: 11.5px; }
  .stab-row button i { font-size: 17px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .stabs { gap: 6px; }
  .stab-grp, .stab-grp.g-zeny, .stab-grp.g-spec { padding: 4px; flex: 1 1 auto; display: flex; align-items: center; gap: 3px; }
  .stab-row button { flex: 1 1 auto; }
  .stab-h { padding: 0 2px; } .stab-h span { display: none; } .stab-h svg { width: 18px; height: 18px; } .stab-h i { font-size: 16px; }
  .stab-row { flex: 1; }
  .stab-row { gap: 3px; }
  .stab-row button { min-height: 42px; gap: 1px; font-size: 11px; padding: 2px; }
  .stab-row button i { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .stab-row button.hot i { animation: none; } }

/* ---- dock: never runs off the screen (scrolls when there are many buttons) ---- */
.topup-dock { max-height: calc(100% - 78px - var(--safe-t) - 120px); overflow-y: auto; overflow-x: visible; scrollbar-width: none; padding: 2px 4px 8px 2px; margin: -2px -4px 0 -2px; }
.topup-dock::-webkit-scrollbar { display: none; }
@media (orientation: portrait), (max-width: 720px) { .topup-dock { max-height: calc(100% - 150px - var(--safe-t) - 190px); } }
@media (max-height: 500px) and (orientation: landscape) { .topup-dock { max-height: calc(100% - 60px - var(--safe-t) - 70px); } }
.dock-btn { flex-shrink: 0; }
.dock-btn.ladder { background: linear-gradient(180deg, #fff8d6, #ffd36b 60%, #ffb43a); }
.dock-btn.ladder .badge { position: absolute; top: 3px; right: 3px; }
.dock-btn.auto { background: linear-gradient(180deg, #eef6ff, #b9dcff); }
.dock-btn.auto.warn { background: linear-gradient(180deg, #fff0f0, #ffb3b8); animation: dockWarn 1.4s ease-in-out infinite; }
@keyframes dockWarn { 50% { transform: scale(1.05); } }

/* ---- price: Gold with the real money next to it ---- */
.price small.thb { font-size: .78em; font-weight: 700; opacity: .75; margin-inline-start: 3px; white-space: nowrap; }
.buy-auto { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; margin: 8px 4px 2px; padding: 8px 10px; border-radius: 12px; background: #eef6ff; border: 2px dashed #9cc7f0; text-align: start; }
.buy-auto input { width: 20px; height: 20px; accent-color: var(--blue); grid-row: span 2; }
.buy-auto span { font-weight: 800; font-size: 13px; color: var(--navy); }
.buy-auto small { font-size: 11px; color: var(--navy-2); opacity: .85; }
.auto-words { font-size: 11.5px; color: var(--navy-2); text-align: center; margin: 6px 0 2px; font-weight: 700; }
.pass-plan.best { position: relative; border-color: #f5a623 !important; box-shadow: 0 3px 0 #c98200 !important; background: linear-gradient(180deg, #fffbe6, #ffe9a3) !important; }
.pp-best { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #ff5d6c; color: #fff; font-size: 10px; font-weight: 900; padding: 1px 8px; border-radius: 99px; white-space: nowrap; box-shadow: 0 2px 0 #b8323f; }

/* ---- perks shop ---- */
.perk-hero, .auto-hero { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; margin-bottom: 10px; color: #fff;
  background: linear-gradient(120deg, #6a5cff, #3aa0ff 55%, #2fd6c3); box-shadow: 0 4px 0 #3b3fa8; border: 3px solid var(--ink); }
.auto-hero { background: linear-gradient(120deg, #1d3f72, #2f86e8 60%, #4aa8ff); }
.perk-hero b, .auto-hero b { display: block; font-size: 18px; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.perk-hero small, .auto-hero small { font-size: 12.5px; opacity: .95; }
.ph-ico, .ah-ico { font-size: 34px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.2)); animation: phFloat 2.4s ease-in-out infinite; }
@keyframes phFloat { 50% { transform: translateY(-4px) rotate(-6deg); } }
.perk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.perk-card { --pc: #3aa0ff; position: relative; display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 16%, #fff), #fff 55%);
  border: 3px solid color-mix(in srgb, var(--pc) 55%, #fff); box-shadow: 0 4px 0 color-mix(in srgb, var(--pc) 45%, #8aa); overflow: hidden; }
.perk-card.on { border-color: var(--pc); }
.perk-card.on::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--pc) 30%, transparent), transparent 55%); pointer-events: none; animation: pkGlow 2.6s ease-in-out infinite; }
@keyframes pkGlow { 50% { opacity: .4; } }
.pk-top { display: flex; align-items: center; gap: 10px; }
.pk-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-size: 26px; border-radius: 14px; background: var(--pc); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 3px 0 rgba(0,0,0,.12); }
.pk-txt { min-width: 0; flex: 1; } .pk-txt b { display: block; font-size: 15px; color: var(--ink); } .pk-txt small { display: block; font-size: 11.5px; color: var(--navy-2); line-height: 1.25; }
.pk-on { font-size: 18px; }
.pk-bar { position: relative; height: 20px; border-radius: 99px; background: #e8eef6; overflow: hidden; border: 2px solid #d4e0ee; }
.pk-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--pc), color-mix(in srgb, var(--pc) 60%, #fff)); border-radius: 99px; transition: width .4s; }
.pk-left { position: relative; display: block; text-align: center; font-size: 11px; font-weight: 800; line-height: 16px; color: var(--ink); }
.pk-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pk-plan { min-height: 32px; border-radius: 10px; border: 2px solid #d4e0ee; background: #fff; font-weight: 800; font-size: 12px; color: var(--navy); padding: 0 2px; }
.pk-plan.on { background: var(--pc); border-color: color-mix(in srgb, var(--pc) 70%, #000); color: #fff; box-shadow: 0 2px 0 color-mix(in srgb, var(--pc) 60%, #000); }
.pk-plan:disabled { opacity: .35; }
.pk-price { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 18px; font-weight: 900; color: #a86a00; }
.pk-price svg { width: 20px; height: 20px; } .pk-price small { font-size: 12px; color: var(--navy-2); font-weight: 700; }
.pk-auto { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--navy); justify-content: center; }
.pk-auto input { width: 17px; height: 17px; accent-color: var(--pc); }
.pk-autonote { text-align: center; font-size: 10.5px; color: var(--navy-2); opacity: .8; margin-top: -4px; }
.pk-buy { width: 100%; }
.pk-max { text-align: center; font-weight: 800; color: var(--navy-2); font-size: 12.5px; }
.perk-zeny { margin: 14px 0 6px; padding: 10px; border-radius: 14px; background: #f3f7fc; border: 2px solid #dbe6f2; }
.perk-zeny > b { display: block; margin-bottom: 6px; color: var(--navy); }

/* ---- auto-renew centre ---- */
.auto-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border-radius: 14px; background: #f3f8ff; border: 2px solid #cfe2f7; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.as-next { flex: 1; min-width: 140px; font-size: 13px; }
.auto-cd { font-variant-numeric: tabular-nums; color: #d1202f; font-weight: 900; }
.auto-sum > .auto-cd { font-size: 20px; }
.auto-low { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff0f0; border: 2px solid #ffb3b8; color: #b3121f; font-size: 13px; }
.auto-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.auto-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: #fff; border: 3px solid #d4e0ee; box-shadow: 0 3px 0 #c3d2e3; }
.auto-row.on.auto { border-color: #8fd0ff; background: linear-gradient(180deg, #f2f9ff, #fff); }
.auto-row.off { background: #fbf7f7; border-color: #f1c9cc; }
.auto-row.disc { border-color: #ff8a3d; box-shadow: 0 3px 0 #d36b22; }
.ar-ico { width: 44px; height: 44px; display: grid; place-items: center; font-size: 24px; border-radius: 12px; background: #eaf3fd; }
.auto-row.off .ar-ico { filter: grayscale(.7); opacity: .7; }
.ar-mid { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-mid > b { font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-st { font-size: 12px; color: var(--navy-2); font-weight: 700; }
.auto-row.off .ar-st { color: #b3121f; }
.ar-price { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; font-weight: 800; color: #a86a00; }
.ar-price svg { width: 15px; height: 15px; } .ar-price small { color: var(--navy-2); font-weight: 700; font-size: 11px; } .ar-price s { opacity: .55; }
.ar-plans { display: flex; gap: 4px; flex-wrap: wrap; } .ar-plans .chip { min-height: 26px; font-size: 11px; padding: 0 8px; }
.ar-disc { font-size: 12px; font-weight: 800; color: #d36b22; }
.ar-side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ar-side small { font-size: 10.5px; font-weight: 800; color: var(--navy-2); }
.aswitch { position: relative; width: 48px; height: 28px; display: inline-block; }
.aswitch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.aswitch i { position: absolute; inset: 0; border-radius: 99px; background: #c9d5e3; border: 2px solid #a9b9cc; transition: background .2s; }
.aswitch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.2); transition: transform .2s; }
.aswitch input:checked + i { background: #3cc46a; border-color: #2a9a50; }
.aswitch input:checked + i::after { transform: translateX(20px); }
.auto-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; text-align: center; color: var(--navy); }
.auto-empty > span { font-size: 40px; }
@media (max-width: 420px) { .auto-row { grid-template-columns: auto 1fr; } .ar-side { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; } }

/* ---- renewal pop-ups ---- */
.renew-pop .rp-clock { font-size: 40px; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; color: #d1202f; text-shadow: 0 3px 0 rgba(0,0,0,.08); margin: 6px 0; }
.renew-pop.ok .rp-clock { color: var(--blue-dark); }
.renew-pop .rp-txt { text-align: center; font-weight: 700; color: var(--navy); margin: 6px 4px 10px; line-height: 1.4; }
.renew-pop .gdlg-item.big { font-size: 54px; text-align: center; }
.renew-pop.fail .gdlg-ribbon { background: linear-gradient(180deg, #ff7a85, #e8394a); }
.renew-pop.disc .gdlg-ribbon { background: linear-gradient(180deg, #ffb86b, #ff7a1a); }
.renew-pop > .gbtn.blue { width: 100%; margin-top: 8px; }
.rp-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.rp-list > div { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; background: #fff3f3; border: 2px solid #ffd0d4; }
.rp-list span { font-size: 20px; } .rp-list small { color: #b3121f; font-weight: 700; font-size: 11px; }

/* ---- level offer pop-up ---- */
.lad-pop { text-align: center; }
.lad-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 8px 0 4px; }
.lad-dots i { width: 11px; height: 11px; border-radius: 50%; background: #dbe6f2; border: 2px solid #c3d2e3; }
.lad-dots i.done { background: #3cc46a; border-color: #2a9a50; }
.lad-dots i.now { background: #ffd34d; border-color: #e0a400; transform: scale(1.35); animation: ladNow 1s ease-in-out infinite; }
@keyframes ladNow { 50% { transform: scale(1.6); } }
.lad-lead { font-weight: 800; color: var(--navy); margin: 6px 0; }
.lad-box { padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #fffbea, #fff); border: 3px dashed #f5c542; margin: 6px 0; }
.lad-box .chips { justify-content: center; }
.lad-val { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 800; margin: 6px 0; }
.lad-val s { color: #8797ac; } .lad-val b { color: #d1202f; font-size: 20px; }
.lad-val em { font-style: normal; background: #ff5d6c; color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 99px; box-shadow: 0 2px 0 #b8323f; }
.lad-pop .big-btn { width: 100%; margin-top: 8px; }
.lad-next { display: block; margin-top: 8px; color: var(--navy-2); font-weight: 700; }

/* ---- item cooldowns ---- */
.item-btn { position: relative; }
.item-btn .cd { position: absolute; inset: 0; border-radius: inherit; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5);
  background: conic-gradient(rgba(13,30,60,.68) calc(var(--p, 0) * 360deg), transparent 0); pointer-events: none; }
/* short landscape lobby: keep the festival banner clear of the left dock */
@media (max-height: 500px) and (orientation: landscape) { body.s-lobby .fest-banner { left: calc(84px + var(--safe-l)); transform: none; max-width: calc(56% - 90px); } }
/* short landscape shop: all ten tabs on one compact row */
@media (max-height: 500px) and (orientation: landscape) {
  .stabs { flex-wrap: nowrap; gap: 4px; margin-bottom: 6px; }
  .stab-grp, .stab-grp.g-zeny, .stab-grp.g-spec { flex: 4 1 0; min-width: 0; padding: 3px; gap: 2px; }
  .stab-grp.g-zeny, .stab-grp.g-spec { flex-grow: 3; }
  .stab-h { padding: 0 1px; } .stab-h svg { width: 14px; height: 14px; } .stab-h i { font-size: 12px; }
  .stab-row { gap: 2px; }
  .stab-row button { flex: 1 1 0; min-width: 0; min-height: 38px; font-size: 10px; padding: 1px; line-height: 1.05; }
  .stab-row button i { font-size: 13px; }
}
/* ---- chat translation ---- */
.tr-btn { display: inline-grid; place-items: center; width: 24px; height: 22px; padding: 0; margin-inline-start: 4px; border-radius: 8px; border: 1.5px solid #b9d6f2; background: #f2f8ff; font-size: 12px; vertical-align: middle; cursor: pointer; opacity: .8; }
.tr-btn.on { background: #dff0ff; border-color: var(--blue); opacity: 1; }
.tr-btn.busy { animation: trSpin 1s linear infinite; }
@keyframes trSpin { to { transform: rotate(360deg); } }
.tr-out { display: block; margin-top: 2px; padding: 3px 8px; border-radius: 8px; background: rgba(47,134,232,.09); color: var(--navy); font-size: .92em; font-style: italic; }
.chat-bub .tr-out { background: rgba(255,255,255,.55); }
.tr-auto { flex: none; min-height: 34px; padding: 0 8px; border-radius: 10px; border: 2px solid #b9d6f2; background: #fff; color: var(--navy-2); font-weight: 800; font-size: 11.5px; white-space: nowrap; cursor: pointer; }
.tr-auto.on { background: #e3f2ff; border-color: var(--blue); color: var(--blue-dark); }
.tr-auto .tr-on { display: none; } .tr-auto.on .tr-on { display: inline; } .tr-auto.on .tr-off { display: none; }
/* ---- foreign players: no Thai bank → crypto notice ---- */
.fx-alert { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; margin: 4px 0 12px; padding: 14px; border-radius: 18px; color: #fff;
  background: radial-gradient(circle at 12% 30%, #ff5b5b, #c8102e 55%, #7a0016); border: 3px solid #4d000d; box-shadow: 0 5px 0 #4d000d, 0 0 0 4px rgba(255,80,80,.25); animation: faPulse 2.2s ease-in-out infinite; }
@keyframes faPulse { 50% { box-shadow: 0 5px 0 #4d000d, 0 0 0 9px rgba(255,80,80,.12); } }
.fa-ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; font-size: 34px; font-weight: 900; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff8a8a, #ff1f3d 45%, #b30020); box-shadow: inset 0 -5px 0 rgba(0,0,0,.25), inset 0 4px 6px rgba(255,255,255,.5), 0 3px 0 #4d000d; animation: faIco 1.2s ease-in-out infinite; }
@keyframes faIco { 50% { transform: scale(1.1) rotate(-6deg); } }
.fa-txt b { display: block; font-size: 16px; line-height: 1.25; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.fa-txt p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; opacity: .95; }
.fa-go { grid-column: 1 / -1; width: 100%; }
/* ---- lucky box reveal ---- */
.gx { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; overflow: hidden auto; padding: max(16px, var(--safe-t, 0px)) 12px max(16px, var(--safe-b, 0px));
  background: radial-gradient(circle at 50% 45%, #2a1f5c, #0b0820 70%); animation: fadeIn .2s ease-out; touch-action: manipulation; }
.gx.best-ssr { background: radial-gradient(circle at 50% 45%, #5a1f4a, #120616 70%); }
.gx.best-sr { background: radial-gradient(circle at 50% 45%, #3b1f6e, #0d0822 70%); }
.gx.out { opacity: 0; transition: opacity .25s; }
.gx.shake { animation: gxShake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes gxShake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(5px, -3px); } 30%, 50%, 70% { transform: translate(-8px, 4px); } 40%, 60% { transform: translate(8px, -4px); } }
.gx-rays { position: fixed; inset: -50%; pointer-events: none; opacity: .35; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.18) 0 8deg, transparent 8deg 22deg); animation: gcSpin 14s linear infinite; }
.gx.best-ssr .gx-rays { opacity: .5; background: repeating-conic-gradient(from 0deg, rgba(255,120,180,.35) 0 8deg, rgba(255,210,80,.25) 8deg 14deg, transparent 14deg 26deg); animation-duration: 7s; }
.gx-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.gx-stage { position: relative; z-index: 3; display: grid; place-items: center; width: min(760px, 100%); min-height: 260px; }
.gx-orb { position: relative; width: 150px; height: 150px; border-radius: 50%; animation: gxCharge 1.9s ease-in forwards; }
.gx-core { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #bfe3ff 30%, #43acf7 65%, #1d3f72); box-shadow: 0 0 40px #43acf7, 0 0 90px rgba(67,172,247,.6); }
.best-n .gx-core { background: radial-gradient(circle at 35% 30%, #fff, #e7eef7 30%, #9fb3c8 65%, #4a5d75); box-shadow: 0 0 40px #9fb3c8; }
.best-sr .gx-core { background: radial-gradient(circle at 35% 30%, #fff, #e2c8ff 30%, #a35bff 65%, #3b1f6e); box-shadow: 0 0 50px #a35bff, 0 0 110px rgba(163,91,255,.7); }
.best-ssr .gx-core { background: conic-gradient(from 0deg, #ff5a7a, #ffcf3a, #3fbf6a, #43acf7, #9b5be0, #ff5a7a); box-shadow: 0 0 60px #ff7ab8, 0 0 140px rgba(255,210,80,.8); animation: gcSpin 1.2s linear infinite; }
.gx-shine { position: absolute; left: 22%; top: 14%; width: 36%; height: 24%; border-radius: 50%; background: rgba(255,255,255,.75); filter: blur(4px); transform: rotate(-25deg); }
.gx-q { position: absolute; inset: 0; display: grid; place-items: center; font-size: 72px; font-weight: 900; color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.25), 0 0 20px rgba(255,255,255,.8); font-family: var(--font-display); }
@keyframes gxCharge { 0% { transform: scale(.2) rotate(0); } 25% { transform: scale(1) rotate(-4deg); } 40% { transform: scale(1.02) rotate(5deg); } 55% { transform: scale(1.05) rotate(-8deg) translateX(-4px); } 70% { transform: scale(1.1) rotate(10deg) translateX(6px); } 80% { transform: scale(1.14) rotate(-14deg) translateX(-8px); } 90% { transform: scale(1.2) rotate(16deg) translateX(9px); } 100% { transform: scale(1.28) rotate(-18deg) translateX(-10px); } }
.gx-orb.pop { animation: gxPop .35s ease-out forwards; }
@keyframes gxPop { to { transform: scale(2.4); opacity: 0; filter: brightness(3); } }
.gx-ring { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 6px solid rgba(255,255,255,.9); opacity: 0; pointer-events: none; }
.gx-ring.go { animation: gxRing .7s ease-out forwards; }
@keyframes gxRing { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(6); opacity: 0; border-width: 1px; } }
.gx-flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 4; }
.gx-flash.on { animation: gxFlash .55s ease-out; }
@keyframes gxFlash { 0% { opacity: 0; } 15% { opacity: .95; } 100% { opacity: 0; } }
.gx-banner { position: fixed; left: 50%; top: max(18px, var(--safe-t, 0px)); transform: translateX(-50%) scale(0); z-index: 5; pointer-events: none; font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 9vw, 64px); color: #fff; white-space: nowrap;
  text-shadow: 0 4px 0 #b8323f, 0 0 24px #ff7ab8, 0 0 50px #ffd34d; }
.best-sr .gx-banner { text-shadow: 0 4px 0 #5a2fa8, 0 0 24px #a35bff; }
.gx-banner.on { animation: gxBanner 1.4s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes gxBanner { 0% { transform: translateX(-50%) scale(0) rotate(-10deg); } 40% { transform: translateX(-50%) scale(1.2) rotate(3deg); } 100% { transform: translateX(-50%) scale(1) rotate(0); } }
.gx-stage.cards { display: flex; flex-direction: column; gap: 14px; margin-top: 54px; }
.gx-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: 100%; perspective: 900px; }
.gx-grid.one { grid-template-columns: minmax(0, 220px); justify-content: center; }
@media (max-width: 560px) { .gx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-height: 500px) and (orientation: landscape) { .gx-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } .gx-stage.cards { margin-top: 30px; gap: 8px; } .gx-front, .gx-back { min-height: 96px !important; } }
.gx-card { opacity: 0; transform: translateY(40px) scale(.7); }
.gx-card.in { animation: gxIn .35s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes gxIn { to { opacity: 1; transform: none; } }
.gx-flip { position: relative; transition: transform .55s cubic-bezier(.3,1.4,.5,1); transform-style: preserve-3d; }
.gx-card.open .gx-flip { transform: rotateY(180deg); }
.gx-back, .gx-front { min-height: 124px; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 4px; text-align: center; }
.gx-back { background: repeating-linear-gradient(45deg, #2a4d8f 0 10px, #24427c 10px 20px); border: 3px solid #8fd0ff; box-shadow: 0 0 14px rgba(143,208,255,.5); }
.gx-back b { font-size: 38px; color: #fff; font-family: var(--font-display); text-shadow: 0 3px 0 rgba(0,0,0,.3); }
.gx-front { position: absolute; inset: 0; transform: rotateY(180deg); background: #fff; border: 3px solid #c9d5e3; }
.gx-front small { font-size: 11px; font-weight: 800; line-height: 1.2; }
.gx-card.rar-sr .gx-front { border-color: #a35bff; background: linear-gradient(180deg, #fff, #f1e8ff); box-shadow: 0 0 20px #c2a0ff; }
.gx-card.rar-r .gx-front { border-color: #43acf7; }
.gx-card.rar-ssr .gx-front { border: 4px solid transparent; background: linear-gradient(#fff, #ffeef7) padding-box, conic-gradient(from var(--a, 0deg), #ff5a7a, #ffcf3a, #3fbf6a, #43acf7, #9b5be0, #ff5a7a) border-box; box-shadow: 0 0 30px #ff9ad8, 0 0 60px rgba(255,210,80,.6); }
.gx-card.rar-ssr.open { animation: gxSsr 1s ease-out; z-index: 2; }
@keyframes gxSsr { 0% { transform: scale(1); } 30% { transform: scale(1.25); } 100% { transform: scale(1.05); } }
.gx-card.tease .gx-back { animation: gxTease .12s linear infinite; border-color: #ffd34d; box-shadow: 0 0 30px #ffd34d, 0 0 60px #ff7ab8; }
@keyframes gxTease { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-3px) rotate(-2deg); } 75% { transform: translateX(3px) rotate(2deg); } }
.gx-btns { opacity: 0; transform: translateY(10px); transition: .3s; pointer-events: none; width: min(460px, 100%); }
.gx-btns.on { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .gx-orb, .gx-rays, .gx.shake { animation: none !important; } }
.cel-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cel-flash { position: absolute; inset: 0; background: #fff; pointer-events: none; opacity: 0; animation: gxFlash .5s ease-out; }
.celebrate .cel-card { animation: celPop .55s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes celPop { 0% { transform: scale(.3) rotate(-6deg); opacity: 0; } 60% { transform: scale(1.08) rotate(1deg); opacity: 1; } 100% { transform: none; } }
/* ---- random join + long room list ---- */
.rand-join { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; flex: none; }
.rand-join .gbtn { min-height: 30px; padding: 0 10px; font-size: 12.5px; white-space: nowrap; }
.rand-join .gbtn small { font-size: 10.5px; opacity: .8; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.rj-set { width: 30px; height: 30px; border-radius: 10px; border: 2px solid #b9d6f2; background: #fff; font-size: 14px; padding: 0; cursor: pointer; }
.rj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; }
.rj-opt { min-height: 44px; border-radius: 12px; border: 2px solid #cfe2f7; background: #f5faff; font-weight: 800; color: var(--navy); padding: 4px 8px; }
.rj-opt.on { background: #ffe27a; border-color: #e0a400; box-shadow: 0 3px 0 #c98a00; }
.rr-more { text-align: center; padding: 10px; font-weight: 800; color: var(--blue-dark); cursor: pointer; border-radius: 12px; background: #eef6ff; margin: 4px 0; }
/* ---- room list: status filter + viewers ---- */
.rp-status { display: flex; gap: 4px; margin: 4px 0 2px; overflow-x: auto; scrollbar-width: none; }
.rp-status::-webkit-scrollbar { display: none; }
.rp-status button { flex: 1 0 auto; min-height: 30px; padding: 0 10px; border-radius: 10px; border: 2px solid #cfe2f7; background: #fff; font-weight: 800; font-size: 12.5px; color: var(--navy-2); white-space: nowrap; }
.rp-status button[aria-selected=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.rr-w { display: inline-block; margin-inline-start: 6px; font-size: 11px; font-weight: 800; color: #a3127a; background: #ffe6f6; border-radius: 99px; padding: 0 7px; }
/* ---- room settings: ? help + spectators ---- */
.host-set .field > span { display: flex; align-items: center; gap: 5px; } .host-set .field > span i { font-style: normal; }
.qbtn { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 900; cursor: pointer; box-shadow: 0 2px 0 var(--blue-dark); flex: none; }
.qbtn:active { transform: translateY(2px); box-shadow: none; }
.spec-set { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 10px; border-radius: 12px; background: #fff3fb; border: 2px solid #ffd0ec; font-size: 13px; font-weight: 700; color: var(--navy); }
.spec-set input { width: 18px; height: 18px; accent-color: #d63aa0; vertical-align: -4px; }
.help-pop { max-width: 560px; }
.help-list { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow-y: auto; margin: 8px 0; }
.help-row { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; text-align: start; padding: 8px 10px; border-radius: 14px; border: 2px solid #d4e0ee; background: #f7fbff; color: var(--ink); }
.help-row.on { border-color: var(--blue); background: #e3f2ff; }
.help-row:disabled, .help-row.static { cursor: default; opacity: 1; }
.help-row b { display: block; font-size: 14px; } .help-row small { display: block; font-size: 12px; color: var(--navy-2); line-height: 1.35; }
.hr-ico { font-size: 26px; text-align: center; }
.help-tips { padding: 10px 12px; border-radius: 14px; background: #fffbe6; border: 2px dashed #f5c542; text-align: start; }
.help-tips b { color: var(--navy); } .help-tips p { margin: 5px 0 0; font-size: 13px; color: var(--navy-2); line-height: 1.4; }
.help-map { width: 100%; max-width: 450px; height: auto; aspect-ratio: 450 / 330; border-radius: 16px; border: 3px solid var(--ink); display: block; margin: 8px auto; touch-action: pan-y; }
.help-nav { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 8px; text-align: center; }
.help-nav .gbtn { min-height: 46px; font-size: 26px; padding: 0; }
.help-mapname { display: block; font-size: 17px; } .help-mapn { color: var(--navy-2); font-weight: 700; }
/* ---- spectators in a match ---- */
.spec-n { top: calc(56px + var(--safe-t, 0px)); left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 99px; background: rgba(163,18,122,.85); color: #fff; font-weight: 800; font-size: 13px; z-index: 6; position: fixed; }
.spec-fx { position: fixed; inset: 0; pointer-events: none; z-index: 7; overflow: hidden; }
.sf-cheer { position: absolute; bottom: 90px; font-size: 34px; animation: sfUp 2.6s ease-out forwards; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
@keyframes sfUp { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: 1; transform: translate(0, -30px) scale(1.2); } 100% { transform: translate(var(--dx, 0), -60vh) scale(.9); opacity: 0; } }
.sf-chat { position: absolute; left: 100%; white-space: nowrap; padding: 4px 12px; border-radius: 99px; background: rgba(13,30,60,.72); color: #fff; font-weight: 700; font-size: 14px; animation: sfSlide 7s linear forwards; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; }
.sf-chat b { color: #ffd34d; } .sf-chat .tr-btn { pointer-events: auto; } .sf-chat .tr-out { display: inline; background: none; color: #bfe3ff; margin-inline-start: 6px; }
@keyframes sfSlide { from { transform: translateX(0); } to { transform: translateX(calc(-100vw - 110%)); } }
.spec-bar { position: fixed; left: 50%; bottom: calc(10px + var(--safe-b, 0px)); transform: translateX(-50%); z-index: 8; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; width: min(640px, calc(100% - 16px)); padding: 8px; border-radius: 18px; background: rgba(255,255,255,.94); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.sb-cheers { display: flex; gap: 4px; }
.sb-cheer { width: 38px; height: 38px; border-radius: 12px; border: 2px solid #ffd0ec; background: #fff6fc; font-size: 20px; padding: 0; cursor: pointer; }
.sb-cheer:active { transform: scale(.88); }
.sb-say { display: flex; gap: 4px; flex: 1 1 200px; min-width: 0; } .sb-say input { flex: 1; min-width: 0; min-height: 36px; border-radius: 10px; border: 2px solid #cfe2f7; padding: 0 10px; font: inherit; }
.sb-throw.on { background: linear-gradient(180deg, #bfe9ff, #43acf7); color: #fff; animation: dockWarn 1s ease-in-out infinite; }
body.aiming #world { cursor: crosshair; }
body.watching .spec-bar:not([hidden]) ~ .watch-pill { bottom: auto; top: calc(90px + var(--safe-t, 0px)); }
@media (max-height: 500px) and (orientation: landscape) { .spec-bar { padding: 4px; gap: 4px; bottom: 4px; } .sb-cheer { width: 32px; height: 32px; font-size: 17px; } .sb-say input { min-height: 30px; } }
/* ---- every pop-up fits the screen: never wider than the screen, ribbon never cut, scrolls when tall ---- */
.gdlg { grid-template-columns: minmax(0, 1fr); justify-items: center; overflow-x: hidden; overflow-y: auto; padding: calc(30px + var(--safe-t, 0px)) 12px calc(16px + var(--safe-b, 0px)); }
.gdlg-card { max-width: calc(100vw - 24px); min-width: 0; box-sizing: border-box; }
.gdlg-card > * { max-width: 100%; min-width: 0; }
.gdlg-card.why-pop, .gdlg-card.lad-pop, .gdlg-card.help-pop, .gdlg-card.renew-pop { max-height: none; overflow: visible; }
.why-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.power-path .pp-steps { grid-template-columns: repeat(auto-fit, minmax(min(96px, 100%), 1fr)); }
@media (min-width: 520px) { .why-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gdlg-card .chips { flex-wrap: wrap; justify-content: center; }
.win { overflow: hidden; }
.win-box { max-width: min(var(--win-max, 760px), 100%); min-width: 0; }
/* ---- result over the podium: the 3D podium fills the top, the result card sits at the bottom ---- */
#w-result.pod { background: transparent; align-items: flex-end; padding-bottom: calc(10px + var(--safe-b, 0px)); pointer-events: none; }
#w-result.pod .win-box { pointer-events: auto; max-height: 52%; max-width: 620px; animation: podIn .5s cubic-bezier(.2,1.3,.4,1) .6s both; }
@keyframes podIn { from { transform: translateY(110%); } to { transform: none; } }
#w-result.pod .result-banner { display: none; }
.pod-title { position: fixed; left: 0; right: 0; top: calc(16px + var(--safe-t, 0px)); z-index: 61; text-align: center; pointer-events: none; font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 10vw, 76px); animation: podTitle 1s cubic-bezier(.2,1.8,.4,1) both; }
.pod-title.win, .pod-title.draw { color: #fff; text-shadow: 0 5px 0 #e08a00, 0 0 30px #ffd34d, 0 0 60px #ff9a3d; }
.pod-title.lose { color: #dff1ff; text-shadow: 0 5px 0 #1d3f72, 0 0 20px #6ec8ff; animation: podTitle 1s ease-out both, podSob 1.6s ease-in-out 1s infinite; }
@keyframes podTitle { 0% { transform: scale(0) rotate(-12deg); } 60% { transform: scale(1.2) rotate(3deg); } 100% { transform: none; } }
@keyframes podSob { 50% { transform: translateY(4px) rotate(-2deg); } }
@media (max-height: 520px) and (orientation: landscape) { #w-result.pod { align-items: center; justify-content: flex-end; padding-right: 12px; } #w-result.pod .win-box { max-height: calc(100% - 24px); max-width: 46%; } .pod-title { right: 48%; font-size: 40px; } }
.dock-btn.auto.nudge::before, #shopTabs [data-tab="autos"].nudge::before { content: '!'; position: absolute; top: 3px; right: 4px; width: 17px; height: 17px; border-radius: 50%; background: #ff3b4e; color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; z-index: 2; animation: dockWarn 1.2s ease-in-out infinite; }
#shopTabs [data-tab="autos"] { position: relative; }

.item-help .ih-facts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0; }
.item-help .ih-facts span { padding: 3px 10px; border-radius: 99px; background: #eef6ff; border: 2px solid #cfe2f7; font-weight: 800; font-size: 12.5px; color: var(--navy); }
.ih-sec { width: 100%; text-align: start; padding: 8px 10px; border-radius: 12px; background: #f7fbff; border: 2px solid #e1ecf8; }
.ih-sec b { color: var(--navy); font-size: 14px; } .ih-sec p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--navy-2); white-space: pre-line; }
.ref-step.hot { border-color: #f5a623 !important; background: linear-gradient(135deg, #fffbe6, #ffe9a3) !important; }
.ref-comm { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.rc-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fffaf0; border: 2px solid #ffe2a8; }
.rc-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #ffd27a; font-weight: 900; }
.rc-row b { display: block; font-size: 13.5px; } .rc-row small { color: var(--navy-2); font-size: 11.5px; }
.rc-row em { font-style: normal; font-weight: 900; color: #b07800; white-space: nowrap; }
/* ---- monster info panel (right side, small, never covers the middle) ---- */
.mon-info { position: fixed; right: calc(8px + var(--safe-r, 0px)); top: 50%; transform: translateY(-50%); z-index: 40; width: min(250px, 42vw); padding: 10px 10px 8px; border-radius: 16px; background: rgba(255,255,255,.95); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); animation: miIn .3s cubic-bezier(.2,1.4,.4,1); font-size: 12px; }
.mon-info.out { animation: miOut .25s ease-in forwards; }
@keyframes miIn { from { transform: translate(120%, -50%); } to { transform: translate(0, -50%); } }
@keyframes miOut { to { transform: translate(120%, -50%); opacity: 0; } }
.mi-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 11px; font-weight: 900; padding: 0; }
.mi-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; padding-right: 22px; } .mi-ico { font-size: 26px; } .mi-head b { font-size: 15px; color: var(--ink); }
.mi-sec { padding: 6px 8px; border-radius: 10px; background: #fff1f1; margin-bottom: 5px; } .mi-sec.ok { background: #ecfbef; }
.mi-sec small { font-weight: 900; color: var(--navy); } .mi-sec p { margin: 2px 0 0; line-height: 1.35; color: var(--navy-2); }
.mi-tip { margin: 2px 0 0; font-size: 11px; color: var(--navy-2); }
@media (max-height: 500px) and (orientation: landscape) { .mon-info { top: 56px; transform: none; width: 230px; } @keyframes miIn { from { transform: translateX(120%); } to { transform: none; } } }
/* while the podium shows, the lobby / room screens step aside so the 3D scene is visible */
body.podium #lobby, body.podium #room, body.podium #festBanner, body.podium #eventPop { visibility: hidden !important; }
/* lobby top rows: header, then the chips row (measured), then banner and side columns below */
.me-chips { position: absolute; top: var(--tb-b, calc(66px + var(--safe-t, 0px))); left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r)); display: flex; flex-wrap: wrap; align-items: center; gap: 5px; z-index: 4; pointer-events: none; }
.me-chips > * { pointer-events: auto; margin: 0 !important; }
.me-chips .vip-chip { max-width: 60vw; }
.topup-dock { top: var(--hud-b, calc(110px + var(--safe-t, 0px))) !important; }
.side-btns { top: var(--hud-b, calc(110px + var(--safe-t, 0px))) !important; }
.me-card { max-width: min(46vw, 360px); }
.me-card .me-info { min-width: 0; } .me-card #meName { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
@media (orientation: portrait), (max-width: 720px) { .fest-banner { left: 50% !important; transform: translateX(-50%) !important; max-width: calc(100% - 24px) !important; bottom: auto !important; } }

/* shop tabs: gold tier on its own row when space is tight, Zeny + Special share the next row */
@media (min-width: 421px) and (min-height: 501px) { .stab-grp { flex: 4 1 380px; } .stab-grp.g-zeny, .stab-grp.g-spec { flex: 3 1 280px; } }
/* ---- claim all + received items ---- */
.claim-all { width: 100%; margin: 6px 0 10px; min-height: 46px; font-size: 16px; }
.claim-day { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; margin-bottom: 10px; border-radius: 16px; background: linear-gradient(135deg, #fff8d6, #ffe7a0); border: 3px solid #f5c542; }
.claim-day .claim-all { margin: 0; }
.got-pop { width: min(560px, 100%); }
.gp-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 2px 0 4px; }
.gp-lines span { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #eef6ff; border: 1.5px solid #cfe2f7; color: var(--navy); }
.gp-stage { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 18px; background: radial-gradient(circle at 50% 40%, #fff, #dff0ff); border: 3px solid #b9d6f2; }
.gp-big { height: 170px; display: grid; place-items: center; } .gp-big img { max-height: 170px; max-width: 100%; } .gp-big .fr-prev { width: 120px; height: 120px; } .gp-big .nc-prev { font-size: 28px; }
.gp-cap { font-size: 13px; color: var(--navy); }
.gp-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 6px 0; }
.gp-it { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 14px; background: #fff; border: 2px solid #d4e0ee; }
.gp-it.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,134,232,.2); }
.gp-it small { font-size: 11px; font-weight: 800; text-align: center; line-height: 1.2; min-height: 26px; }
.gp-it .gbtn { width: 100%; min-height: 32px; font-size: 12.5px; padding: 0 4px; }
.gp-vis { width: 100%; height: 76px; display: grid; place-items: center; border: 0; background: #f4f9ff; border-radius: 10px; padding: 2px; cursor: pointer; overflow: hidden; }
.gp-vis img { max-height: 72px; max-width: 100%; } .gp-vis .fr-prev { width: 60px; height: 60px; } .gp-vis .nc-prev { font-size: 15px; }
.gp-emo { font-size: 34px; }
/* ===== phones (portrait / narrow): a calm lobby where nothing covers anything ===== */
.fest-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink); background: linear-gradient(180deg, #fff6c9, #ffe27a); font-weight: 800; font-size: 11px; color: var(--ink-2); white-space: nowrap; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
.rp-search-t { display: none; }
@media (orientation: portrait), (max-width: 720px) {
  /* header: card on the left, the two currencies stacked on the right */
  #lobby .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 8px; align-items: center; flex-wrap: nowrap; }
  #lobby .topbar .me-card { grid-row: 1 / span 2; max-width: none; min-width: 0; padding-block: 3px; }
  #lobby .topbar .online-pill, #lobby .topbar .spacer, #lobby .topbar .fs-btn { display: none !important; }
  #lobby .topbar .cur { height: 30px; padding: 0 8px 0 4px; font-size: 13.5px; justify-self: end; }
  #lobby .topbar .cur svg { width: 22px; height: 22px; } #lobby .topbar .cur-plus { width: 24px; height: 24px; }
  .me-chips { gap: 4px; } .me-chips > * { font-size: 10.5px !important; }
  /* the festival banner becomes a chip in the chips row */
  body.s-lobby #festBanner { display: none !important; }
  /* both side columns: one slim column, scrolling if needed, never past the room panel */
  .side-btns { display: flex !important; flex-direction: column; grid-template-columns: none !important; gap: 6px; max-height: calc(53% - var(--hud-b, 140px) - 10px); overflow-y: auto; scrollbar-width: none; padding: 2px 3px 6px; }
  .side-btns::-webkit-scrollbar { display: none; }
  .side-btn { width: 54px !important; padding: 4px 2px !important; font-size: 9px !important; border-radius: 14px !important; flex-shrink: 0; }
  .side-btn svg { width: 20px !important; height: 20px !important; }
  .dock-btn { width: 56px !important; } .dock-btn b { font-size: 9.5px !important; } .dock-btn small { display: none; } .dock-btn .dock-ico { font-size: 20px; }
  /* the name plate under the character is not needed here (the card at the top shows the name and opens the character) */
  #lobby .char-plate { display: none !important; }
  /* the room panel: compact boss bar and buttons, search folds away behind 🔍 so the list gets the room */
  .lobby-panel { top: 53% !important; gap: 6px !important; }
  .raid-tile { min-height: 50px; padding: 3px 8px; border-radius: 16px; } .raid-tile .rt-face { width: 38px; height: 38px; font-size: 22px; } .raid-tile .rt-txt b { font-size: 14.5px; } .raid-tile .rt-txt small, .raid-tile .rt-txt em { font-size: 10.5px; } .raid-tile .rt-go { padding: 3px 8px; font-size: 12px; }
  .lp-actions .tile, .lp-actions .tile.quick { min-height: 48px !important; padding: 4px 8px 4px 4px !important; border-radius: 16px; }
  .lp-actions .tile .tile-ico { width: 32px !important; height: 32px !important; padding: 6px !important; }
  .lp-actions .tile strong { font-size: 15px !important; }
  .room-panel { padding: 6px 8px !important; gap: 5px !important; border-radius: 18px; }
  .rp-head { gap: 5px; } .rp-head > b { font-size: 15px; }
  .rp-search-t { display: inline-grid; place-items: center; margin-inline-start: auto; }
  .rp-tools { display: none !important; }
  body.rp-search .rp-tools { display: flex !important; }
  .rp-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rp-status button { min-height: 26px; font-size: 11.5px; padding: 0 8px; }
  .rrow { padding: 4px 6px; flex-shrink: 0; }
  .side-btns.more, .topup-dock.more { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent); }
}
@media (orientation: portrait) and (max-height: 700px) { .lobby-panel { top: 47% !important; } .raid-tile { min-height: 42px; } body:not(.rp-search) .rp-filter { display: none !important; } .lp-actions .tile, .lp-actions .tile.quick { min-height: 42px !important; } }
@media (orientation: portrait) and (min-width: 600px) {
  /* tablets standing up: there is room, so a little bigger again */
  .side-btn { width: 62px !important; font-size: 10px !important; } .dock-btn { width: 64px !important; } .dock-btn small { display: block; }
  .lobby-panel { left: 50% !important; right: auto !important; width: min(640px, calc(100% - 40px)) !important; transform: translateX(-50%); }
}
.elsewhere { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(8,18,40,.85); backdrop-filter: blur(4px); }
.elsewhere .gdlg-card { width: min(380px, 100%); }
/* ---- selling screens: the buy / top-up buttons give a little excited shake now and then ---- */
@keyframes sellShake { 0%, 84%, 100% { transform: none; } 86% { transform: translateX(-3px) rotate(-2deg) scale(1.03); } 88% { transform: translateX(3px) rotate(2deg) scale(1.05); } 90% { transform: translateX(-3px) rotate(-1.5deg) scale(1.05); } 92% { transform: translateX(2px) rotate(1deg) scale(1.03); } 94% { transform: none; } }
@keyframes sellJolt { 0% { transform: scale(.94); } 30% { transform: scale(1.03) rotate(-.6deg); } 50% { transform: scale(.99) rotate(.5deg); } 70% { transform: scale(1.01); } 100% { transform: none; } }
#dockGold, #dockPromo, .dock-btn.ladder, .why-go, .fa-go, .pk-buy, .claim-all, .lad-pop .big-btn, .pass-plan.best, .pack.best, #w-shop .promo-card .gbtn.yellow, .offer-pop .gbtn.yellow, .renew-pop .gbtn.blue, .gdlg-card.buy.gold .gdlg-btns .gbtn.yellow, .tp-go, .rc-go { animation: sellShake 3.2s ease-in-out infinite; }
#dockPromo { animation-delay: .8s; } .dock-btn.ladder { animation-delay: 1.6s; } .pk-buy { animation-delay: calc(var(--i, 0) * .2s); }
#w-shop:not([hidden]) .win-box, .gdlg-card.why-pop, .gdlg-card.lad-pop, .gdlg-card.offer-pop, .gdlg-card.buy.gold { animation: sellJolt .55s cubic-bezier(.2,1.6,.4,1); }
@media (prefers-reduced-motion: reduce) { #dockGold, #dockPromo, .dock-btn.ladder, .why-go, .fa-go, .pk-buy, .claim-all, .pass-plan.best { animation: none !important; } }

/* ---------- announcements + update history (lobby only) ---------- */
#w-announce .ann-list { max-height: none; overflow: visible; gap: 8px; }
.ann-tabs { display: flex; gap: 6px; }
.ann-tab { flex: 1 1 0; min-width: 0; padding: 8px 6px; border-radius: 12px; border: 3px solid var(--ink); background: #e8f1fa; color: var(--ink); font: inherit; font-weight: 800; font-size: 14px; position: relative; box-shadow: 0 3px 0 var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-tab.on { background: #5bb8f5; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.ann-dot { position: absolute; top: -2px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ff4d5e; color: #fff; font-style: normal; font-size: 11px; line-height: 18px; text-align: center; }
.ann-scroll { display: flex; flex-direction: column; gap: 10px; max-height: min(52vh, 460px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 4px; }
@media (max-height: 520px) { .ann-scroll { max-height: 46vh; } }
.ann-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.ann-kind { font-size: 12px; font-weight: 800; color: var(--navy-2); background: #fff; border: 2px solid #c9d8e8; border-radius: 999px; padding: 1px 8px; }
.ann-new { font-size: 11px; font-weight: 900; color: #fff; background: #ff4d5e; border-radius: 999px; padding: 2px 8px; animation: annPulse 1.4s ease-in-out infinite; }
.ann-pin { font-size: 13px; }
.ann.upd { background: #eef6ff; border-color: #8cc4ef; }
.ann.new { border-color: #ffb23f; box-shadow: 0 0 0 3px rgba(255,178,63,.25); }
.ann.old { opacity: .78; }
.ann .news-list { margin: 2px 0 4px; padding-inline-start: 18px; }
.ann .news-list li { margin: 2px 0; }
.ann-empty { text-align: center; color: var(--navy-2); padding: 18px 0; }
.ann-hero { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #5bb8f5, #2f7fd0); color: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); animation: annHero .6s cubic-bezier(.2,1.6,.4,1) both; }
.ann-hero-ico { grid-row: span 2; font-size: 34px; animation: annWrench 1.2s ease-in-out infinite; }
.ann-hero b { font-size: 17px; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.ann-hero small { opacity: .95; font-size: 13px; }
.ann-ticker.new::after { content: ''; position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; border-radius: 50%; background: #ff4d5e; border: 2px solid #fff; animation: annPulse 1.2s infinite; }
body.in-game .ann-ticker, body.watching .ann-ticker, body.podium .ann-ticker { display: none !important; }
@keyframes annPulse { 50% { transform: scale(1.15); } }
@keyframes annHero { from { transform: scale(.7); opacity: 0; } }
@keyframes annWrench { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-18deg); } 75% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .ann-new, .ann-hero, .ann-hero-ico, .ann-ticker.new::after { animation: none; } }
/* festival: a big banner on roomy screens, a small chip in the top row on phones / short landscape screens (never both) */
@media (orientation: landscape) and (min-width: 721px) { #festChip { display: none !important; } }
@media (orientation: landscape) and (min-width: 721px) and (max-height: 500px) { #festChip:not([hidden]) { display: inline-flex !important; } body.s-lobby #festBanner { display: none !important; } }
/* tablets standing up: the player card does not need the whole width */
@media (orientation: portrait) and (min-width: 600px) { #lobby .topbar .me-card { justify-self: start; width: min(420px, 100%); } }
@media (orientation: landscape) and (max-height: 500px) {
  #lobby .char-plate { display: none !important; }
  body:not(.rp-search) #lobby .rp-filter { display: none !important; }
  #lobby .raid-tile { min-height: 40px; padding: 2px 8px; } #lobby .raid-tile .rt-face { width: 32px; height: 32px; font-size: 18px; } #lobby .raid-tile .rt-txt small, #lobby .raid-tile .rt-txt em { display: none; }
  #lobby .lp-actions .tile, #lobby .lp-actions .tile.quick { min-height: 44px !important; padding-block: 2px !important; } #lobby .lp-actions .tile strong { font-size: 15px !important; } #lobby .lp-actions .tile small { display: none; }
}
@media (orientation: landscape) and (max-height: 500px) { #lobby .rp-search-t { display: inline-grid; place-items: center; } body:not(.rp-search) #lobby .rp-tools { display: none !important; } body.rp-search #lobby .rp-tools { display: flex !important; } }
.ann .news-list { list-style: none; padding-inline-start: 0; } .ann .news-list li::before { content: none !important; display: none !important; }
/* contact us chips in Settings */
.ct-row { flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.ct-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 10px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; font-size: 13px; text-decoration: none; box-shadow: 0 2px 0 var(--ink); }
.ct-chip .ct-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ct-chip:active { transform: translateY(2px); box-shadow: none; }
/* folded away when they would cover something (decided by layoutTop for every screen shape) */
body.fold-fest.s-lobby #festBanner { display: none !important; }
body.fold-fest #lobby #festChip:not([hidden]) { display: inline-flex !important; }
body.fold-plate #lobby .char-plate { display: none !important; }
/* iPhone Safari: 100vh includes the address bar, use the visible height where supported */
@supports (height: 100dvh) { .gdlg-card { max-height: calc(100dvh - 32px); } }
/* front-screen music picker in Settings */
.pref-row.song-row { flex-wrap: wrap; }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; width: 100%; margin-top: 6px; }
.song-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; border-radius: 14px; border: 3px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-weight: 800; font-size: 12.5px; box-shadow: 0 3px 0 var(--ink); cursor: pointer; min-width: 0; }
.song-btn .song-ico { font-size: 22px; line-height: 1; }
.song-btn .song-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-btn .song-def { position: absolute; top: -8px; right: -4px; background: #ffcf3a; border: 2px solid var(--ink); border-radius: 999px; padding: 0 6px; font-size: 10px; font-weight: 900; }
.song-btn[aria-pressed="true"] { background: linear-gradient(180deg, #7cc8ff, #3a95e6); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.song-btn[aria-pressed="true"] .song-ico { animation: songBob .6s ease-in-out infinite alternate; }
.song-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
@keyframes songBob { to { transform: translateY(-3px) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .song-btn[aria-pressed="true"] .song-ico { animation: none; } }
/* short portrait screens: slimmer boss bar and buttons so the room list keeps its space */
body.lp-tight #lobby .raid-tile { min-height: 36px; padding: 2px 8px; } body.lp-tight #lobby .raid-tile .rt-face { width: 28px; height: 28px; font-size: 16px; }
body.lp-tight #lobby .raid-tile .rt-txt small, body.lp-tight #lobby .raid-tile .rt-txt em, body.lp-tight #lobby .raid-tile .rt-bar { display: none !important; }
body.lp-tight #lobby .lp-actions .tile, body.lp-tight #lobby .lp-actions .tile.quick { min-height: 40px !important; padding-block: 2px !important; }
body.lp-tight #lobby .lp-actions .tile .tile-ico { width: 28px !important; height: 28px !important; padding: 5px !important; }
body.lp-tight:not(.rp-search) #lobby .rp-filter { display: none !important; }
/* very short landscape phones (iPhone in Safari): the boss bar becomes one slim line */
@media (orientation: landscape) and (max-height: 420px) {
  #lobby .raid-tile { min-height: 32px !important; } #lobby .raid-tile .rt-face { width: 26px !important; height: 26px !important; font-size: 15px !important; }
  #lobby .lp-actions .tile, #lobby .lp-actions .tile.quick { min-height: 38px !important; }
  #lobby .room-panel { padding-block: 4px !important; }
  #lobby .rp-status button { min-height: 24px; }
}
/* short landscape phones: menu bar to the left of the room panel, icons only, so it never covers the room list */
body.dock-side #lobby .dock { left: calc(8px + var(--safe-l, 0px)); right: auto; transform: none; max-width: calc(var(--dock-max, 400px) - var(--safe-l, 0px)); gap: 0; padding: 3px; }
body.dock-side #lobby .dock button { flex: 1 1 0; min-width: 0; width: auto; height: 44px; font-size: 9.5px; } body.dock-side #lobby .dock button svg { width: 22px; height: 22px; }
body.dock-side #lobby .lobby-panel { bottom: calc(8px + var(--safe-b, 0px)) !important; }
body.lp-tiny:not(.rp-search) #lobby .rp-status { display: none !important; }
/* ===== Gold top-up: the receiving account as a big bank card, a big "attach slip" card, a proper checking screen ===== */
#shopTabs .topup-tab { background: linear-gradient(180deg, #fff3b0, #ffd23f) !important; border-color: #e0a100 !important; animation: sellShake 3.2s ease-in-out infinite 0.4s; position: relative; }
#shopTabs .topup-tab::after { content: '💎'; position: absolute; top: -8px; right: -4px; font-size: 14px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.3)); }
#shopTabs .topup-tab[aria-selected="true"] { background: linear-gradient(180deg, #ffe066, #ffb703) !important; box-shadow: 0 0 0 3px rgba(255,183,3,.35); }
.bank-hero { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; margin-top: 6px; border-radius: 22px; border: 4px solid var(--ink); background: radial-gradient(120% 80% at 100% 0%, #e8f3ff 0%, #ffffff 55%), #fff; box-shadow: 0 6px 0 var(--ink), 0 14px 26px rgba(16,40,80,.18); }
.bank-hero.bh-in { animation: bankPop .6s cubic-bezier(.2,1.5,.4,1); }
@keyframes bankPop { from { transform: scale(.94); } }
.bh-step { position: absolute; top: -14px; left: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #ff4d5e; color: #fff; font-weight: 900; font-size: 17px; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); z-index: 1; }
.bh-top { display: flex; align-items: center; gap: 12px; }
.bh-logo { flex: none; width: 92px; height: 60px; border-radius: 16px; background: #fff; border: 3px solid #d5e3f2; display: grid; place-items: center; padding: 6px; }
.bh-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bh-logo .bank-badge.big { font-size: 18px; padding: 8px 10px; border-radius: 10px; font-weight: 900; }
.bh-logo .bh-ico { font-size: 32px; }
.bh-name { display: flex; flex-direction: column; min-width: 0; text-align: start; }
.bh-name small { color: var(--navy-2); font-size: 12px; font-weight: 700; }
.bh-name b { font-size: 22px; line-height: 1.15; color: var(--ink); }
.bh-name em { font-style: normal; font-size: 12px; color: var(--navy-2); }
.bh-acc, .bh-holder { display: flex; flex-direction: column; align-items: center; padding: 8px 10px; border-radius: 14px; background: #f1f7fe; border: 2px dashed #b9d3ee; }
.bh-acc small, .bh-holder small { font-size: 12px; color: var(--navy-2); font-weight: 700; }
.bh-acc .acc { font-family: var(--font-display); font-size: clamp(26px, 7.5vw, 36px); letter-spacing: 2px; color: var(--blue-dark, #1d4f8f); line-height: 1.1; }
.bh-holder b { font-size: 18px; }
.bh-pp { text-align: center; font-size: 13px; color: var(--navy-2); font-weight: 700; }
.bh-copy { width: 100%; min-height: 54px; font-size: 18px !important; }
.bh-copy.done { background: linear-gradient(180deg, #6fdc8c, #2fb35a) !important; }
.slip-drop { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 18px; padding: 16px 16px; border-radius: 22px; border: 4px dashed #e0a100; background: linear-gradient(180deg, #fffbe6, #fff0b3); color: var(--ink); font: inherit; text-align: start; cursor: pointer; box-shadow: 0 5px 0 #c58b00; animation: sellShake 3.2s ease-in-out infinite 1.2s; }
.slip-drop:active { transform: translateY(3px); box-shadow: 0 2px 0 #c58b00; }
.slip-drop .sd-ico { font-size: 40px; flex: none; }
.slip-drop .sd-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.slip-drop .sd-txt b { font-size: 20px; } .slip-drop .sd-txt small { font-size: 12.5px; color: var(--navy-2); }
.slip-drop .sd-go { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: linear-gradient(180deg, #ffd23f, #ffa600); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.slip-check { position: fixed; inset: 0; z-index: 420; display: grid; place-items: center; padding: 16px; background: rgba(8,22,48,.72); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: scFade .25s ease; }
@keyframes scFade { from { opacity: 0; } }
.sc-card { width: min(360px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 20px 18px; border-radius: 28px; background: linear-gradient(180deg, #ffffff, #eaf4ff); border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 20px 50px rgba(0,0,0,.4); text-align: center; animation: gdlgIn .4s cubic-bezier(.2,1.5,.4,1); }
.sc-spin { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.sc-ring { position: absolute; inset: 0; border-radius: 50%; border: 9px solid transparent; border-top-color: #3a95e6; border-right-color: #7cc8ff; animation: scSpin 1s linear infinite; }
.sc-ring.r2 { inset: 14px; border-width: 6px; border-top-color: #ffb703; border-left-color: #ffe066; animation-duration: 1.6s; animation-direction: reverse; }
.sc-glass { font-size: 46px; animation: scFlip 1.8s ease-in-out infinite; filter: drop-shadow(0 3px 0 rgba(0,0,0,.15)); }
@keyframes scSpin { to { transform: rotate(360deg); } }
@keyframes scFlip { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
.sc-title { margin: 4px 0 0; font-size: 22px; color: var(--ink); }
.sc-time { font-family: var(--font-display); font-size: 30px; color: #1d6fd1; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.sc-steps { list-style: none; padding: 0; margin: 2px 0; display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: start; }
.sc-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: #f3f7fc; color: #8a97a8; font-weight: 700; font-size: 14px; }
.sc-steps li::before { content: '○'; width: 18px; text-align: center; }
.sc-steps li.on { background: #e3f1ff; color: var(--ink); } .sc-steps li.on::before { content: '◌'; animation: scSpin 1s linear infinite; display: inline-block; }
.sc-steps li.ok { color: #1f9d4c; } .sc-steps li.ok::before { content: '✔'; }
.sc-note { margin: 2px 0; font-size: 12.5px; color: var(--navy-2); }
.sc-bg { width: 100%; }
.slip-pill { position: fixed; z-index: 410; top: calc(10px + var(--safe-t, 0px)); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 3px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-weight: 800; font-size: 14px; box-shadow: 0 4px 0 var(--ink); animation: scFade .3s ease; }
.slip-pill .sp-glass { display: inline-block; animation: scFlip 1.8s ease-in-out infinite; }
.slip-pill b { color: #1d6fd1; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .sc-ring, .sc-glass, .slip-pill .sp-glass, .slip-drop, #shopTabs .topup-tab { animation: none !important; } }
/* buy pop-up: the item picture always stays inside its circle (it was spilling over the name on some screens) */
.gdlg-vis { flex: none; }
.gdlg-vis > :not(.gdlg-rays) { position: relative; max-width: 100%; max-height: 100%; }
.gdlg-vis img, .gdlg-vis canvas { max-width: 100%; max-height: 100%; object-fit: contain; }
.gdlg-vis + .gdlg-name { position: relative; z-index: 1; margin-top: 2px; }
/* the spectator effects layer covers the whole match screen: it must never catch touches (it was blocking the joystick) */
#game > .spec-fx, #game > #specFx { pointer-events: none !important; }
/* phones held upright: the whole shop scrolls as one page (the tab block no longer squeezes the content into a small box),
   and the wallet fits on one line */
@media (orientation: portrait) and (max-width: 700px) {
  #w-shop .win-body { overflow-y: auto; overscroll-behavior: contain; }
  #w-shop .shop-pane { max-height: none; overflow: visible; }
  #w-shop .shop-wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  #w-shop .shop-wallet .cur.big { min-width: 0; padding: 4px 8px; font-size: 13px; justify-content: center; }
  #w-shop .shop-wallet .cur.big span { display: none; }
  #w-shop .shop-wallet .xchg-btn { grid-column: 1 / -1; }
}
.help-sep { margin: 8px 2px 2px; font-weight: 900; font-size: 13px; color: var(--navy-2); text-align: start; }
.rp-head .rp-q { flex: none; margin-inline-start: 2px; }
/* key labels on the item / throw buttons follow Settings → key labels (auto = only when playing with a keyboard) */
body.key-hints .item-btn kbd, body.key-hints .throw-btn kbd { display: block !important; }
body.no-key-hints .item-btn kbd, body.no-key-hints .throw-btn kbd { display: none !important; }
.keys-pop { width: min(460px, 100%) !important; }
.keys-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; width: 100%; max-height: min(52vh, 420px); overflow-y: auto; padding: 2px; }
.key-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; border: 2px solid #c9d8e8; background: #f6faff; color: var(--ink); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; text-align: start; }
.key-row .kr-ico { font-size: 18px; } .key-row .kr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-row kbd { min-width: 38px; padding: 2px 8px; border-radius: 8px; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); font: 800 13px/18px var(--font-ui, sans-serif); text-align: center; }
.key-row.wait { border-color: #ffb703; background: #fff7d6; } .key-row.wait kbd { background: #ffe066; animation: annPulse 1s infinite; }
.chip.coin-usdc { border-color: #2775ca; } .chip.coin-usdc.on { background: #2775ca; color: #fff; }
/* room screen, phones held upright: map + monster info side by side, the host settings in a tidy 2-column grid underneath */
@media (orientation: portrait), (max-width: 720px) {
  #room .room-side { display: grid !important; grid-template-columns: 132px minmax(0, 1fr); gap: 8px; align-items: start; }
  #room .room-side .map-card { width: auto; grid-column: 1; grid-row: 1; }
  #room .room-side .mon-tag { grid-column: 2; grid-row: 1; margin: 0; align-self: stretch; display: flex; align-items: center; justify-content: center; }
  #room .room-side:not(:has(.mon-tag:not([hidden]))) .map-card { grid-column: 1 / -1; width: min(240px, 100%); justify-self: center; }
  #room .host-set { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; padding: 10px; }
  #room .host-set .field { min-width: 0; }
  #room .host-set .field > span { display: flex; align-items: center; gap: 6px; min-height: 22px; white-space: nowrap; overflow: hidden; }
  #room .host-set .field > span i { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
  #room .host-set select { width: 100%; min-width: 0; }
  #room .host-set .spec-set { grid-column: 1 / -1; }
}
@media (orientation: portrait) and (min-width: 600px) { #room .host-set { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* link Google: account card + reminder pop-up */
.g-acct { margin: 10px 0; padding: 12px; border-radius: 18px; border: 3px solid #c9d8e8; background: linear-gradient(180deg, #ffffff, #eef6ff); display: flex; flex-direction: column; gap: 10px; }
.g-acct.done { flex-direction: row; align-items: center; gap: 8px; border-color: #9fd9b0; background: #f0fbf3; font-size: 14px; }
.g-acct-head { display: flex; align-items: center; gap: 10px; }
.g-acct-head > div { display: flex; flex-direction: column; flex: 1; min-width: 0; text-align: start; }
.g-acct-head small { color: var(--navy-2); font-size: 12.5px; }
.g-acct-ico { font-size: 26px; }
.g-acct-bonus { flex: none; padding: 3px 10px; border-radius: 999px; background: linear-gradient(180deg, #fff3b0, #ffd23f); border: 2px solid var(--ink); font-weight: 900; font-size: 12px; white-space: nowrap; animation: annPulse 1.6s ease-in-out infinite; }
.g-btn-slot { display: flex; justify-content: center; min-height: 44px; }
.g-pop { width: min(380px, 100%) !important; }
.g-pop-hero { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0; }
.g-pop-g { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 900 30px/1 sans-serif; color: #fff; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.g-pop-plus { font-size: 26px; font-weight: 900; color: var(--navy-2); }
.g-pop-z { padding: 8px 14px; border-radius: 999px; background: linear-gradient(180deg, #fff3b0, #ffd23f); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-weight: 900; font-size: 20px; animation: sellShake 3.2s ease-in-out infinite; }
.g-pop-list { text-align: start; margin: 0; padding-inline-start: 20px; font-size: 13.5px; }
.g-pop-list li { margin: 3px 0; }
.name-bonus { font-style: normal; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: linear-gradient(180deg, #fff3b0, #ffd23f); border: 2px solid var(--ink); font-weight: 900; font-size: 11px; animation: annPulse 1.6s ease-in-out infinite; }
.name-form { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.name-form input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 14px; border: 3px solid var(--ink); font: inherit; font-size: 17px; text-align: center; }
#profName.locked { background: #eef2f7; color: var(--navy-2); } .name-lock { font-style: normal; margin-inline-start: 4px; }
.lesson-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-bottom: 8px; }
/* map roulette before a random-map match */
.map-roll { position: fixed; inset: 0; z-index: 430; display: grid; place-items: center; padding: 16px; background: rgba(8,22,48,.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: opacity .35s; }
.map-roll.out { opacity: 0; }
.mr-card { position: relative; width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 16px 18px; border-radius: 26px; background: linear-gradient(180deg, #fff, #eaf4ff); border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 20px 50px rgba(0,0,0,.4); animation: gdlgIn .4s cubic-bezier(.2,1.5,.4,1); }
.mr-map { width: 100%; height: auto; border-radius: 16px; border: 3px solid var(--ink); }
.mr-name { font-size: 22px; color: var(--ink); min-height: 30px; text-align: center; }
.mr-card.done { animation: bankPop .5s cubic-bezier(.2,1.5,.4,1); box-shadow: 0 8px 0 var(--ink), 0 0 0 6px rgba(255,210,63,.7), 0 20px 50px rgba(0,0,0,.4); }
/* pickers: standby bots / lobby players */
.picker-pop { width: min(440px, 100%) !important; }
.pk-top { display: flex; gap: 8px; width: 100%; }
.pk-search { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 12px; border: 2px solid #c9d8e8; font: inherit; }
.pk-list { width: 100%; max-height: min(52vh, 440px); overflow-y: auto; }
.pk-row { display: flex; align-items: center; gap: 8px; }
.pk-row > div { flex: 1; min-width: 0; text-align: start; }
.pk-row > div b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.small-actions { flex-wrap: wrap; }
.small-actions .gbtn { flex: 1 1 30%; min-width: 0; }
/* title screen info: festival, rotating invite line, latest update (the floating festival banner is not used here) */
body.s-home #festBanner { display: none !important; }
.home-info { pointer-events: auto; width: min(420px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.home-info button { font: inherit; color: var(--ink); cursor: pointer; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); display: flex; align-items: center; gap: 8px; text-align: start; }
.hi-fest { padding: 6px 12px 6px 6px; border-radius: 999px; background: linear-gradient(180deg, #fff6c9, #ffe27a); }
.hi-emo { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 20px; flex: none; border: 2px solid var(--ink); }
.hi-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.hi-txt b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hi-txt small { font-size: 12px; color: #c0392b; font-weight: 800; }
.hi-go { font-size: 22px; font-weight: 900; color: var(--navy-2); flex: none; }
.hi-promo { justify-content: center; text-align: center !important; padding: 8px 12px; border-radius: 16px; background: linear-gradient(180deg, #ffffff, #e6f3ff); font-weight: 800; font-size: 14px; min-height: 44px; }
.hi-promo.in { animation: hpIn .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes hpIn { from { transform: translateY(8px) scale(.96); opacity: 0; } }
.hi-news { padding: 6px 10px; border-radius: 14px; background: rgba(255,255,255,.92); font-size: 13px; }
.hi-tag { flex: none; padding: 2px 8px; border-radius: 999px; background: #ff4d5e; color: #fff; font-weight: 900; font-size: 11px; }
.hi-ntxt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
@media (max-height: 700px) { .hi-news { display: none; } }
@media (max-height: 560px) { .home-info { display: none; } }
@media (orientation: landscape) and (max-height: 500px) { #home .home-info { display: none; } }
.side-btn .sb-emo { font-style: normal; font-size: 22px; line-height: 1; } .side-btn.news-side { position: relative; } .side-btn.news-side .dot { position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: #ff4d5e; border: 2px solid #fff; }
/* online count: always visible in the lobby (phones: under the chips row, centred) and tappable */
button.online-pill { font: inherit; cursor: pointer; border: 0; }
@media (orientation: portrait), (max-width: 720px) {
  #lobby .topbar .online-pill { display: inline-flex !important; position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--hud-b, 140px) - 2px); z-index: 4; padding: 4px 12px; border-radius: 999px; background: rgba(15,37,71,.82); color: #fff; font-size: 12.5px; font-weight: 800; box-shadow: 0 3px 0 rgba(0,0,0,.25); white-space: nowrap; }
}
.online-pop .help-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; text-align: start; }
.on-bar { display: block; height: 8px; border-radius: 99px; background: #e3edf8; overflow: hidden; position: relative; }
.on-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(90deg, #6fdc8c, #2fb35a); border-radius: inherit; }
.on-n { font-size: 18px; min-width: 56px; text-align: end; }
body.s-home .ann-ticker { display: none !important; }
.online-pop .help-list { width: 100%; }
.online-pop .help-row { width: 100%; display: flex; align-items: center; gap: 10px; box-sizing: border-box; }

/* add-bot dialog: difficulty + random */
.sb-lbl { display: block; margin: 6px 0 4px; }
.sb-diff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.sb-go { width: 100%; margin-top: 12px; }

/* room list: expand button makes the list cover the whole lobby */
.rp-expand { display: inline-grid; place-items: center; }
.rp-expand svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rp-expand .rpx-close, body.rp-big .rp-expand .rpx-open { display: none; }
body.rp-big .rp-expand .rpx-close { display: block; }
body.rp-big #lobby .room-panel { position: fixed !important; z-index: 60; inset: calc(8px + var(--safe-t, 0px)) calc(8px + var(--safe-r, 0px)) calc(8px + var(--safe-b, 0px)) calc(8px + var(--safe-l, 0px)) !important;
  width: auto !important; height: auto !important; max-width: none !important; max-height: none !important; margin: 0 !important; transform: none !important; animation: rpBig .18s ease-out; }
body.rp-big #lobby .rp-expand { background: var(--sky, #4fb3ff); color: #fff; }
@keyframes rpBig { from { opacity: .4; transform: scale(.97); } to { opacity: 1; transform: none; } }
body.rp-big #lobby .rp-tools { display: flex !important; }

/* lucky box: tidy layout */
.gc-tabs button { white-space: nowrap; font-size: 14px; padding-inline: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gacha-win .gc-hero { padding: 14px 12px 12px; gap: 10px; box-shadow: 0 5px 0 var(--ink); }
.gacha-win .gc-ribbon { display: inline-block; align-self: center; padding: 3px 12px; border-radius: 999px; background: rgba(0,0,0,.22); }
.gacha-win .gc-feat { gap: 12px; padding-top: 8px; }
.gacha-win .gc-fcard { padding: 16px 8px 10px; min-width: 0; }
.gc-fvis { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 35%, #fff, #ffe7a8 70%); border: 3px solid #ffd34d; }
.gc-fvis > * { max-width: 100%; max-height: 100%; }
.gc-fvis img { width: 100%; height: 100%; object-fit: cover; }
.gacha-win .gc-fcard b { font-size: 13px; overflow-wrap: anywhere; }
.gc-pity { display: flex; flex-direction: column; gap: 5px; }
.gc-pity small { text-align: center; font-size: 13px; }
.gc-pbar { height: 22px; border-radius: 11px; background: rgba(20,10,50,.55); }
.gc-pbar span { font-size: 13px; }
.gacha-win .gc-why { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; border: 2px solid #f5c2ea; padding: 10px 12px; }
.gc-why-ico { font-size: 18px; line-height: 1.2; }
.gacha-win .gc-acts { gap: 10px; margin-top: 4px; }
.gc-acts .gc-free { min-height: 52px; font-size: 17px; }
.gbtn.green { background: linear-gradient(180deg, #8ff0a8 0 48%, #2fbf63 52%); color: #fff; text-shadow: 0 2px 0 rgba(10,70,30,.4); }
.gc-acts .gc-pull { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 68px; padding: 10px 6px 8px; line-height: 1.15; }
.gc-pull .gc-pl { font-size: 16px; font-weight: 900; white-space: nowrap; }
.gc-pull .price { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; font-size: 15px; font-weight: 900; }
.gc-pull .price .thb { font-size: 11px; opacity: .85; font-weight: 800; }
.gacha-win .gc-save { top: -12px; right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; text-shadow: none; font-weight: 900; }
.gc-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.gc-stars { padding: 4px 14px; border-radius: 999px; background: #fff4cc; border: 2px solid #f0c94a; font-weight: 900; color: #7a5200; }
.gc-foot small { color: var(--muted, #6b7a90); font-size: 12px; }
@media (max-width: 360px) { .gc-pull .gc-pl { font-size: 14px; } .gc-fvis { width: 70px; height: 70px; } }
.gc-acts .gc-pull { overflow: visible; margin-top: 6px; }

/* settings: highlighted one-hand mode switch at the top */
.pref-row.pref-feature { background: linear-gradient(135deg, #fff4cc, #ffe2a8); border: 3px solid #f0b429; box-shadow: 0 4px 0 #c98a00; padding: 12px 14px; }
.pf-txt { flex: 1 1 180px; display: flex; flex-direction: column; gap: 3px; }
.pf-txt b { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--navy-2); }
.pf-txt small { font-size: 13px; color: #6b4a00; line-height: 1.35; }
/* one-hand mode: stick and drop button side by side in the bottom corner (index finger on the stick, middle finger on the button) */
:root { --fw: 112px; --pw: 148px; }
@media (max-width: 640px) { :root { --fw: 92px; --pw: 128px; } }
body.one-hand .fire { right: calc(14px + var(--safe-r)); left: auto; bottom: calc(62px + var(--safe-b, 0px)); }
body.one-hand .pad { left: auto; right: calc(14px + var(--safe-r) + (var(--fw) / 2 + var(--fw) * var(--btn-scale, 1) / 2) + 14px + (var(--pw) * var(--joy-scale, 1) - var(--pw)) / 2); bottom: calc(62px + var(--safe-b, 0px) + (var(--fw) - var(--pw)) / 2); }
body.one-hand .joy-zone { left: auto; top: auto; bottom: 0; right: calc(14px + var(--safe-r) + (var(--fw) / 2 + var(--fw) * var(--btn-scale, 1) / 2) + 4px); width: calc(var(--pw) * var(--joy-scale, 1) + 110px); height: calc(var(--pw) * var(--joy-scale, 1) + 170px); }
body.one-hand.lefty .fire { right: auto; left: calc(14px + var(--safe-l)); }
body.one-hand.lefty .pad { right: auto; left: calc(14px + var(--safe-l) + (var(--fw) / 2 + var(--fw) * var(--btn-scale, 1) / 2) + 14px + (var(--pw) * var(--joy-scale, 1) - var(--pw)) / 2); }
body.one-hand.lefty .joy-zone { right: auto; left: calc(14px + var(--safe-l) + (var(--fw) / 2 + var(--fw) * var(--btn-scale, 1) / 2) + 4px); }
@media (max-height: 500px) and (orientation: landscape) {
  body.one-hand .items { right: auto; left: calc(14px + var(--safe-l)); }
  body.one-hand.lefty .items { left: auto; right: calc(14px + var(--safe-r)); }
}
@media (max-height: 500px) and (orientation: landscape) {
  body.one-hand .items { right: auto; left: calc(14px + var(--safe-l)); }
  body.one-hand.lefty .items { left: auto; right: calc(14px + var(--safe-r)); }
}

/* room list: game started but you can still jump in */
.rr-late { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: #fff1c2; color: #8a5a00; font-size: 12px; font-weight: 800; }

/* in-match people list */
.gp-head { font-weight: 900; color: var(--navy-2); margin: 6px 2px 2px; }
.gp-row.can { cursor: pointer; }
.gp-row.out { opacity: .55; }
.gp-st { margin-inline-start: auto; font-weight: 800; font-size: 13px; white-space: nowrap; }

/* lobby: switch between the room list, the lobby chat, or both */
.rp-view { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 14px; background: var(--sky); flex: none; }
.rp-view button { position: relative; min-height: 32px; border: 0; border-radius: 11px; background: transparent; font: inherit; font-weight: 800; font-size: 14px; color: var(--navy-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.rp-view button[aria-selected="true"] { background: #fff; box-shadow: 0 2px 0 var(--sky-2, #b9d7f0); color: var(--ink); }
.lc-dot { position: absolute; top: 4px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #ff4f5e; border: 2px solid #fff; }
.lobby-chat { display: none; flex-direction: column; gap: 6px; min-height: 0; }
.lc-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 4px 2px; overscroll-behavior: contain; }
.lc-row { display: flex; align-items: baseline; gap: 6px; padding: 5px 9px; border-radius: 12px; background: #f1f7fd; font-size: 14px; line-height: 1.35; flex-wrap: wrap; }
.lc-row.me { background: #e3f3ff; }
.lc-who { border: 0; background: none; padding: 0; font: inherit; font-weight: 900; color: var(--blue, #2f86e8); cursor: pointer; }
.lc-lv { font-size: 11px; font-weight: 800; color: var(--muted, #6b7a90); }
.lc-text { overflow-wrap: anywhere; min-width: 0; flex: 1 1 140px; }
.lc-form { display: flex; gap: 6px; flex: none; }
.lc-form input { flex: 1; min-width: 0; min-height: 40px; font-size: 15px; }
body.lv-chat #lobby .lobby-chat { display: flex; flex: 1; }
body.lv-chat #lobby .rp-head, body.lv-chat #lobby .rp-status, body.lv-chat #lobby .rp-tools, body.lv-chat #lobby .room-list { display: none !important; }
body.lv-both #lobby .lobby-chat { display: flex; flex: 1 1 45%; border-top: 2px dashed var(--sky-2, #b9d7f0); padding-top: 6px; }
body.lv-both #lobby .room-panel .room-list { flex: 1 1 55%; }
body.lv-both #lobby .rp-tools { display: none !important; }
body.lv-both #lobby .rp-status { display: none !important; }
body.lv-both #lobby .lobby-chat { flex: 1.2 1 0; min-height: 92px; }
body.lv-both #lobby .room-panel .room-list { flex: 1 1 0; min-height: 0; }
body.lv-both #lobby .lc-list { min-height: 30px; }
body.lv-both #lobby .lobby-chat { gap: 4px; padding-top: 4px; }
/* "both" without the big view: rooms on the left, chat on the right */
body.lv-both:not(.rp-big) #lobby .room-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 6px; }
body.lv-both:not(.rp-big) #lobby .rp-view, body.lv-both:not(.rp-big) #lobby .rp-head { grid-column: 1 / -1; }
body.lv-both:not(.rp-big) #lobby .room-panel .room-list { grid-column: 1; grid-row: 3; min-height: 0; }
body.lv-both:not(.rp-big) #lobby .lobby-chat { grid-column: 2; grid-row: 3; min-height: 0; border-top: 0; padding-top: 0; border-inline-start: 2px dashed var(--sky-2, #b9d7f0); padding-inline-start: 6px; }
body.lv-both:not(.rp-big) #lobby .rrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tag cnt" "info btn"; gap: 2px 6px; padding: 5px 6px; }
body.lv-both:not(.rp-big) #lobby .rrow .mtag { grid-area: tag; justify-self: start; font-size: 10px; padding: 1px 5px; border-width: 1.5px; }
body.lv-both:not(.rp-big) #lobby .rrow .rcount { grid-area: cnt; font-size: 12px; }
body.lv-both:not(.rp-big) #lobby .rrow .rinfo { grid-area: info; }
body.lv-both:not(.rp-big) #lobby .rrow .rinfo b { font-size: 13px; }
body.lv-both:not(.rp-big) #lobby .rrow .rinfo small { display: none; }
body.lv-both:not(.rp-big) #lobby .rrow .rinfo .rr-late { display: inline-block; font-size: 10px; }
body.lv-both:not(.rp-big) #lobby .rrow .gbtn { grid-area: btn; min-height: 28px; padding: 0 8px; font-size: 12px; box-shadow: 0 2px 0 var(--ink); }
body.lv-both:not(.rp-big) #lobby .lc-row { font-size: 13px; padding: 4px 7px; gap: 4px; }
body.lv-both:not(.rp-big) #lobby .lc-lv { display: none; }
body.lv-both:not(.rp-big) #lobby .lc-form input { min-height: 34px; font-size: 14px; padding-inline: 8px; }
body.lv-both:not(.rp-big) #lobby .lc-form .gbtn { min-height: 34px; padding: 0 10px; }
/* special pickups: pop-your-remote-balloons button (above the drop button), curse and away pills */
.det-btn { right: calc(28px + var(--safe-r)); bottom: calc(62px + var(--fw, 112px) + 16px + var(--safe-b, 0px)); width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle at 38% 30%, #ffd1d6, #ff4f5e 60%, #c0182a); box-shadow: 0 4px 0 #8a0f1c, 0 8px 14px rgba(0,0,0,.3); font-size: 30px; display: flex; align-items: center; justify-content: center; padding: 0; touch-action: none; pointer-events: auto; animation: itemPulse .6s ease-in-out infinite alternate; }
body.lefty .det-btn { right: auto; left: calc(28px + var(--safe-l)); }
@media (max-height: 500px) and (orientation: landscape) { .det-btn { bottom: calc(62px + var(--fw, 112px) + 6px + var(--safe-b, 0px)); width: 54px; height: 54px; font-size: 24px; } }
.devil-pill { top: calc(166px + var(--safe-t, 0px)); background: #5a1a9a; }
.afk-pill { top: calc(212px + var(--safe-t, 0px)); background: #42526e; box-shadow: 0 4px 0 #222c3e; animation: none; }
#abRemote, #abLine { font-weight: 900; font-size: 13px; white-space: nowrap; }

.app-side .dot { width: auto; height: auto; padding: 0 5px; border-radius: 999px; font-size: 10px; font-weight: 900; color: #fff; background: #2fbf63; top: -6px; right: -6px; display: block; }
.app-steps { text-align: start; display: flex; flex-direction: column; gap: 6px; padding-inline-start: 22px; margin: 4px 0 10px; line-height: 1.4; }

/* adventure */
.adv-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; border: 3px solid var(--ink); background: linear-gradient(135deg, #7fe0a0, #2fa86a); color: #fff; box-shadow: 0 5px 0 var(--ink); font: inherit; text-align: start; cursor: pointer; margin-bottom: 8px; }
.adv-ico { font-size: 34px; } .adv-txt { flex: 1; display: flex; flex-direction: column; } .adv-txt b { font-family: var(--font-display); font-size: 20px; text-shadow: 0 2px 0 rgba(0,60,20,.4); } .adv-txt small { font-weight: 700; opacity: .95; }
.adv-go { font-size: 22px; }
.adv-tabs button { white-space: nowrap; font-size: 14px; padding-inline: 4px; }
.adv-wname { grid-column: 1 / -1; font-weight: 900; color: var(--navy-2); text-align: center; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.adv-stage { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 16px; border: 3px solid var(--ink); background: #fff; box-shadow: 0 4px 0 var(--ink); font: inherit; cursor: pointer; min-width: 0; }
.adv-stage .as-n { font-family: var(--font-display); font-size: 22px; color: var(--navy-2); }
.adv-stage .as-stars { color: #f0b429; font-size: 15px; letter-spacing: 1px; }
.adv-stage small { font-size: 10px; color: var(--muted, #6b7a90); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adv-stage.done { background: #fff8db; }
.adv-stage.boss { background: linear-gradient(180deg, #ffe3e3, #ffd0d0); }
.adv-stage.locked { opacity: .5; filter: grayscale(.6); }
.adv-st-stars { color: #f0b429; font-size: 28px; letter-spacing: 4px; margin: 0; }
.adv-st-stars.big { font-size: 44px; }
.adv-facts { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.adv-gain { font-weight: 900; font-size: 17px; }
.adv-pill { left: 50%; transform: translateX(-50%); top: calc(76px + var(--safe-t, 0px)); padding: 5px 14px; border-radius: 14px; background: rgba(20,30,60,.78); color: #fff; font-weight: 900; border: 2px solid #fff; white-space: pre; }
@media (max-width: 380px) { .adv-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; } }

/* host changed the room settings: big pop-up card in the middle of the screen */
.room-chg { position: fixed; z-index: 95; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.6); min-width: min(320px, 86vw); max-width: 90vw; padding: 16px 18px 14px; border-radius: 24px; border: 4px solid var(--ink); background: linear-gradient(160deg, #ffffff, #e6f4ff); box-shadow: 0 8px 0 var(--ink), 0 0 0 9999px rgba(10,20,40,.25); text-align: center; animation: rcIn .45s cubic-bezier(.2,1.6,.4,1) forwards; cursor: pointer; }
.room-chg.out { animation: rcOut .45s ease-in forwards; }
.rc-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff; background: linear-gradient(90deg, #2f86e8, #7a52e0); border: 3px solid var(--ink); border-radius: 14px; padding: 4px 12px; margin: -34px auto 8px; width: max-content; max-width: 100%; box-shadow: 0 4px 0 var(--ink); }
.rc-by { font-size: 13px; color: var(--muted, #6b7a90); font-weight: 700; margin-bottom: 8px; }
.rc-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin-top: 6px; border-radius: 14px; background: #fff; border: 2px solid var(--sky-2, #b9d7f0); animation: rcRow .4s ease-out backwards; }
.rc-row:nth-child(4) { animation-delay: .12s; } .rc-row:nth-child(5) { animation-delay: .24s; } .rc-row:nth-child(6) { animation-delay: .36s; }
.rc-ico { font-size: 22px; } .rc-k { color: var(--navy-2); font-weight: 700; } .rc-v { margin-inline-start: auto; font-size: 17px; color: #2f86e8; }
@keyframes rcIn { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes rcOut { to { transform: translate(-50%, -50%) scale(.7); opacity: 0; } }
@keyframes rcRow { from { opacity: 0; transform: translateX(-14px); } }
.tut-ring, .tut-arrow, .tut-arrow * { pointer-events: none !important; }
#game > .tut { pointer-events: none; } #game > .tut .tut-bubble { pointer-events: auto; }

/* a bot talking during the match: a little speech bubble above its head */
.pop.say { transform: translate(-50%, -100%); text-shadow: none; line-height: 1.2; padding: 4px 10px; border-radius: 14px; background: #fff; color: var(--ink); border: 2px solid var(--ink); font-weight: 800; font-size: 13px; white-space: nowrap; box-shadow: 0 3px 0 rgba(15,37,71,.35); animation: sayIn .25s ease-out, sayOut .4s ease-in 2.4s forwards; pointer-events: none; }
.pop.say::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
@keyframes sayIn { from { opacity: 0; transform: translate(-50%, -80%) scale(.7); } }
@keyframes sayOut { to { opacity: 0; transform: translate(-50%, -130%); } }

/* help desk */
.tk-sel, .tk-text { width: 100%; font: inherit; font-size: 15px; border-radius: 12px; border: 2px solid var(--sky-2, #b9d7f0); padding: 8px 10px; }
.tk-lab { display: block; font-weight: 800; margin: 8px 0 4px; text-align: start; }
.tk-msgs { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 8px 0; text-align: start; }
.tk-msg { padding: 8px 12px; border-radius: 14px; background: #f1f5fa; align-self: flex-end; max-width: 92%; }
.tk-msg.admin { background: #e3f3ff; align-self: flex-start; border: 2px solid #b9dcff; }
.tk-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.tk-dot { position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff4f5e; margin-inline-start: 6px; vertical-align: middle; }

/* play style picker (character screen) */
.cls-box { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.cls-head { font-weight: 900; color: var(--navy-2); }
.cls-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cls-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; border: 3px solid var(--sky-2, #b9d7f0); background: #fff; font: inherit; cursor: pointer; min-width: 0; }
.cls-card.on { border-color: var(--ink); background: #fff6d1; box-shadow: 0 3px 0 var(--ink); }
.cls-ico { font-size: 24px; } .cls-card b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .cls-card small { font-size: 10px; color: var(--muted, #6b7a90); white-space: nowrap; }
@media (max-width: 420px) { .cls-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* weekly cup and guild war */
.cup-left { text-align: center; font-weight: 900; color: #b45309; margin: 4px 0; }
.cup-me { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 8px 12px; border-radius: 14px; background: #fff6d1; border: 2px solid #f0c94a; margin: 4px 0; }
.cup-me small { width: 100%; color: var(--muted, #6b7a90); }
.cup-go { width: 100%; margin: 6px 0; min-height: 52px; font-size: 18px; }
.cup-prizes { font-size: 12px; font-weight: 800; color: var(--navy-2); background: var(--sky); border-radius: 12px; padding: 6px 10px; margin-bottom: 6px; }
.cup-row { display: flex; align-items: center; gap: 8px; }
.cup-row.me { background: #fff6d1; }
.cup-rk { min-width: 32px; text-align: center; font-weight: 900; }
.cup-pts { margin-inline-start: auto; font-size: 16px; color: #2f86e8; }
.pay-help { align-self: flex-end; margin: 4px 0; }
/* match replay bar */
.rp-bar { position: fixed; left: 50%; bottom: calc(10px + var(--safe-b, 0px)); transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 6px; width: min(560px, calc(100% - 16px)); padding: 6px 8px; border-radius: 18px; background: rgba(255,255,255,.95); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); pointer-events: auto; color: var(--ink); }
.rp-bar > b { white-space: nowrap; font-size: 14px; }
.rp-bar .rp-prog { flex: 1; min-width: 40px; height: 10px; border-radius: 6px; background: #dfe8f3; overflow: hidden; border: 2px solid var(--ink); }
.rp-bar .rp-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4aa8ff, #2f7fd6); transition: width .1s linear; }
.rp-bar .gbtn.sm { min-width: 40px; padding: 4px 8px; }
body.replaying .watch-pill { bottom: auto; top: calc(90px + var(--safe-t, 0px)); }
body.replaying #specBar, body.replaying #specN { display: none !important; }
.hrow .h-rp { flex: 0 0 auto; margin-inline-start: 6px; }
@media (max-height: 500px) and (orientation: landscape) { .rp-bar { bottom: 4px; padding: 3px 6px; } }
/* "?" help everywhere */
.gdlg-ribbon.has-q { display: flex; align-items: center; justify-content: center; gap: 8px; }
.gdlg-ribbon .qbtn { width: 22px; height: 22px; font-size: 13px; background: #fff; color: var(--blue); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.lc-form .qbtn { align-self: center; margin-inline-end: 2px; }
.win-title h2 .qbtn, .cls-head .qbtn, .set-row .qbtn, .pc-title .qbtn, .pf-txt .qbtn { vertical-align: middle; margin-inline-start: 4px; }
.qh-tips p { text-align: start; }
body.replaying #watchText { white-space: nowrap; }
.hrow:has(.h-rp) { grid-template-columns: 70px minmax(0, 1fr) auto auto; }
@media (max-width: 520px) { .hrow:has(.h-rp) { grid-template-columns: 56px minmax(0, 1fr) auto; } .hrow:has(.h-rp) .nums { grid-column: 1 / -1; grid-row: 2; } }
/* smart "not enough Gold" box */
.nf-miss { margin: 6px 0 2px; padding: 8px 12px; border-radius: 14px; background: #fff6d6; border: 2px solid #f2c94c; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.nf-miss b { font-size: 16px; } .nf-miss small { font-size: 12px; color: var(--navy-2); }
/* item ran out in a match: small "+" to buy one */
.item-btn.qb::after { content: '+'; position: absolute; top: -4px; inset-inline-start: -4px; width: 18px; height: 18px; border-radius: 50%; background: #ffd34d; color: var(--ink); font: 900 14px/18px system-ui; text-align: center; border: 2px solid var(--ink); }
.item-btn.qb { opacity: 1 !important; filter: none !important; }
.item-btn.qb-arm { outline: 3px solid #ffd34d; outline-offset: 1px; animation: promoHot .6s ease-in-out infinite alternate; }
.item-btn .qb-price { display: none; }
/* blast glasses button in the ticket bar */
.tk-btn.glass { background: #fff6d6; border-color: #f2c94c; }
.tk-btn.glass.arm { outline: 3px solid #ffd34d; }
/* waiting room "take into the match" strip */
.room-boost { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 8px; margin-bottom: 6px; border-radius: 14px; background: rgba(255,246,214,.95); border: 2px solid #f2c94c; font-size: 12px; }
.room-boost[hidden] { display: none; }
.room-boost .rb-t { font-size: 12px; color: var(--ink); white-space: nowrap; }
.room-boost .rb-chip { border: 2px solid var(--ink); border-radius: 12px; background: #fff; padding: 3px 8px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; box-shadow: 0 2px 0 var(--ink); }
.room-boost .rb-chip:active { transform: translateY(2px); box-shadow: none; }
.room-boost .rb-x { margin-inline-start: auto; border: 0; background: none; font-size: 14px; color: var(--navy-2); cursor: pointer; }
/* buy again automatically */
.rs-sec { margin: 4px 0 14px; padding: 10px; border-radius: 18px; background: #f3f8ff; border: 2px solid #cfe0f5; display: flex; flex-direction: column; gap: 8px; }
.rs-head { display: flex; flex-direction: column; gap: 2px; } .rs-head b { font-size: 16px; color: var(--ink); }
.rs-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink); }
.rs-cap .rs-spent { flex-basis: 100%; font-weight: 600; }
.rs-list { display: flex; flex-direction: column; gap: 6px; }
.rs-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 14px; background: #fff; border: 2px solid #dbe6f3; }
.rs-row.on { border-color: #7fc79a; background: #f2fbf5; }
.rs-ico { font-size: 22px; width: 30px; text-align: center; flex: none; }
.rs-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rs-mid b { font-size: 14px; color: var(--ink); } .rs-mid > small { font-size: 12px; color: var(--navy-2); }
.rs-mins { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; } .rs-mins small { font-size: 11px; color: var(--navy-2); }
.chip.xs { padding: 1px 7px; font-size: 11px; min-height: 0; }
.rs-link { margin: 8px auto 0; display: block; }
/* top-up page: pay-day banner, first-time x2 and popular tags; result hint */
.payday-note { margin: 6px 0; padding: 8px 12px; border-radius: 14px; background: linear-gradient(90deg, #ffe58a, #ffcf5a); border: 2px solid var(--ink); display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.payday-note b { font-size: 15px; } .payday-note small { font-size: 12px; }
.pack .pack-best.pop { background: #ff7a45; color: #fff; }
.pack .pack-first { display: block; margin-top: 4px; font-size: 11px; font-weight: 800; color: #c2410c; }
.result-miss { display: block; margin: 4px auto 0; border: 0; background: #fff6d6; border-radius: 12px; padding: 4px 10px; font: inherit; font-size: 13px; font-weight: 700; color: #8a5a00; cursor: pointer; }
.result-miss[hidden] { display: none; }
/* lobby tour for new players */
.ltour { position: fixed; inset: 0; z-index: 90; }
.ltour .lt-ring { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(10,25,50,.62); border: 3px solid #ffd34d; transition: all .25s ease; pointer-events: none; animation: ltPulse 1.2s ease-in-out infinite alternate; }
@keyframes ltPulse { to { border-color: #fff; } }
.ltour .lt-bub { position: fixed; width: min(320px, calc(100vw - 20px)); padding: 12px 14px; border-radius: 18px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); color: var(--ink); font-weight: 700; font-size: 14px; }
.ltour .lt-bub p { margin: 0 0 10px; line-height: 1.4; }
.ltour .lt-btns { display: flex; justify-content: flex-end; gap: 8px; }
/* USDT orders waiting for payment */
.usdt-open { margin: 6px 0 10px; padding: 8px; border-radius: 16px; background: #fff6d6; border: 2px solid #f2c94c; display: flex; flex-direction: column; gap: 6px; }
.usdt-open .uo-t { font-size: 14px; color: var(--ink); }
.usdt-open .uo-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 12px; background: #fff; border: 2px solid #eadba6; }
.usdt-open .uo-row.on { border-color: var(--blue); }
.usdt-open .uo-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.usdt-open .uo-row b { font-size: 13px; color: var(--ink); word-break: break-all; } .usdt-open .uo-row small { font-size: 11px; color: var(--navy-2); }
.usdt-open .uo-row .gbtn { flex: none; }
/* loading screen: counting percentage + ad / latest update card */
#loading { gap: 14px; overflow: hidden; }
.load-pct { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 34px; color: #fff; line-height: 1; text-shadow: 0 3px 0 var(--ink), 0 0 18px rgba(255,255,255,.45); letter-spacing: 1px; min-width: 3.2em; text-align: center; }
.load-card { width: min(420px, 92vw); animation: lcIn .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes lcIn { from { transform: translateY(16px) scale(.96); opacity: 0; } }
.load-card .lc-ad, .load-card .lc-news { display: block; padding: 12px 14px; border-radius: 20px; background: rgba(255,255,255,.96); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); color: var(--ink); text-decoration: none; position: relative; }
.load-card .lc-ad img { display: block; width: 100%; max-height: 30vh; object-fit: cover; border-radius: 14px; margin: 4px 0 8px; }
.load-card .lc-ad b { display: block; font-size: 17px; } .load-card .lc-ad p { margin: 4px 0 0; font-size: 13px; color: var(--navy-2); }
.load-card .lc-tag { position: absolute; top: -11px; right: 14px; background: #ffd34d; border: 2px solid var(--ink); border-radius: 10px; padding: 0 8px; font-size: 11px; font-weight: 800; }
.load-card .lcn-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.load-card .lcn-head b { font-size: 16px; } .load-card .lcn-head small { font-size: 11px; color: var(--navy-2); }
.load-card .lc-news ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.load-card .lc-news li { font-size: 13px; line-height: 1.35; padding: 6px 9px; border-radius: 12px; background: linear-gradient(90deg, #eaf5ff, #f6fbff); border: 1px solid #d3e6f7; animation: lcIn .45s backwards; }
.load-card .lc-news li:nth-child(2) { animation-delay: .08s; } .load-card .lc-news li:nth-child(3) { animation-delay: .16s; } .load-card .lc-news li:nth-child(4) { animation-delay: .24s; } .load-card .lc-news li:nth-child(5) { animation-delay: .32s; }
@media (max-height: 640px) { #loading .logo-big { font-size: clamp(40px, 8vh, 70px); } .load-card .lc-news li:nth-child(n+4) { display: none; } }
@media (max-height: 460px) and (orientation: landscape) { #loading { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 10px 20px; } #loading .logo-big { font-size: 44px; } .load-pct { font-size: 26px; } .load-card { width: min(380px, 46vw); } .load-card .lc-news li:nth-child(n+3) { display: none; } .load-tip { display: none; } }
/* USDT: exchange fee help */
.usdt-fee { margin: 8px 0; padding: 10px 12px; border-radius: 16px; background: #fff6d6; border: 2px solid #f2c94c; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.usdt-fee b { font-size: 14px; } .usdt-fee p { margin: 0; font-size: 13px; line-height: 1.4; } .usdt-fee small { font-size: 12px; color: var(--navy-2); }
.usdt-fee .uf-calc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.usdt-fee .uf-calc input { width: 80px; padding: 4px 8px; border-radius: 10px; border: 2px solid var(--ink); font: inherit; }
.usdt-fee .uf-out { font-size: 15px; color: #1d6fd6; }
.joincode.usdt-tx { flex: none; align-items: stretch; margin: 6px 0; }
.joincode.usdt-tx input { flex: 1; min-width: 0; min-height: 44px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.joincode.usdt-tx .gbtn { min-height: 44px; }
/* USDT: any amount, fixed ending */
.ue-box { margin: 6px 0 8px; padding: 10px; border-radius: 16px; background: #eaf5ff; border: 2px dashed #4aa8ff; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ue-box small { font-size: 12px; color: var(--navy-2); text-align: center; }
.ue-big { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: 1px; color: #9db3cc; }
.ue-big b { color: #e8312f; font-size: 44px; padding: 0 4px; border-radius: 10px; background: #fff3a8; margin-inline-start: 2px; }
.usdt-fee .ue-ex { padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid #eadba6; font-size: 12.5px; }
/* USDT order: countdown and "where is the hash" help */
.ue-cd { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 0; padding: 6px 12px; border-radius: 14px; background: #eafbea; border: 2px solid #7fc79a; }
.ue-cd .ue-cdt { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 22px; color: #1f7a3d; letter-spacing: 1px; }
.ue-cd small { font-size: 12px; color: var(--navy-2); }
.ue-cd.soon { background: #fff1e6; border-color: #ff9a3d; } .ue-cd.soon .ue-cdt { color: #c2410c; }
.ue-cd.over { background: #fdeaea; border-color: #e8312f; } .ue-cd.over .ue-cdt { color: #b42318; }
.ue-hash { margin: 8px 0 4px; padding: 8px 12px; border-radius: 14px; background: #f3f8ff; border: 2px solid #cfe0f5; color: var(--ink); font-size: 13px; }
.ue-hash summary { font-weight: 800; cursor: pointer; }
.ue-hash ol { margin: 8px 0 6px; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 4px; }
.ue-hash p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; }
.ask .gdlg-text { white-space: pre-line; }
/* crypto: coin + network picker */
.cr-ic { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 15px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 2px 0 rgba(15,37,71,.25); border: 2px solid #fff; }
.cr-ic.lg { width: 56px; height: 56px; font-size: 28px; }
.cr-ic.net { font-size: 9px; letter-spacing: -.2px; }
.cr-step { display: block; margin: 10px 0 6px; font-size: 15px; color: var(--ink); }
.cr-coins { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.cr-coin { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 18px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); cursor: pointer; font: inherit; color: var(--ink); }
.cr-coin b { font-size: 20px; } .cr-coin small { font-size: 12px; }
.cr-coin:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.cr-head { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cr-head > b { font-size: 15px; color: var(--ink); }
.cr-nets { display: flex; flex-direction: column; gap: 7px; }
.cr-net { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 16px; background: #fff; border: 2px solid #cfe0f5; cursor: pointer; font: inherit; color: var(--ink); text-align: start; position: relative; }
.cr-net.on { border-color: var(--blue); background: #eaf5ff; box-shadow: 0 0 0 3px rgba(74,168,255,.25); }
.cr-nmid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .cr-nmid b { font-size: 14px; }
.cr-fees { display: flex; flex-wrap: wrap; gap: 4px; }
.cr-fee { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #f1f5fa; color: var(--navy-2); font-weight: 700; } .cr-fee.na { opacity: .5; }
.cr-tag { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 10px; background: #eef2f7; flex: none; }
.cr-tag.good { background: #dff7e6; color: #1f7a3d; } .cr-tag.warn { background: #fff1e6; color: #c2410c; }
.cr-hint { font-weight: 700; color: var(--blue); }
.cr-same { margin: 8px 0; padding: 8px 10px; border-radius: 12px; background: #fdeaea; border: 2px solid #f3b4b4; color: #8a1c1c; font-size: 12.5px; font-weight: 700; }
.usdt-card .cr-head { margin-bottom: 4px; }
.cr-ic.xs { width: 20px; height: 20px; font-size: 11px; border-width: 1.5px; }
.cr-duo { display: inline-flex; align-items: center; vertical-align: middle; } .cr-duo .cr-ic + .cr-ic { margin-inline-start: -6px; }
.dock-ico .cr-duo .cr-ic.xs { width: 24px; height: 24px; font-size: 13px; }
#topupSw button .cr-duo, .pay-sw button .cr-duo { margin-inline-end: 4px; }
.cr-tabt { font-weight: 800; } .cr-tabs { display: block; font-size: 10px; opacity: .75; line-height: 1; }
.cr-wal { font-size: 11px; color: #5b4a8a; font-weight: 700; }
.cr-rates { display: flex; align-items: center; justify-content: center; gap: 4px; }
/* crypto: hash guide with drawn screen */
.ue-hash .uh-head { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; } .ue-hash .uh-head b { font-size: 14px; }
.ue-hash .uh-fmt { display: flex; flex-direction: column; gap: 2px; padding: 6px 9px; border-radius: 10px; background: #fff; border: 1px solid #d3e6f7; }
.ue-hash .uh-fmt small { color: var(--navy-2); }
.uh-grid { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 10px; align-items: start; margin: 8px 0; }
@media (max-width: 380px) { .uh-grid { grid-template-columns: 1fr; } .uh-fig { max-width: 200px; margin: 0 auto; } }
.uh-fig svg { width: 100%; height: auto; display: block; }
.uh-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.uh-tabs button { border: 2px solid #cfe0f5; background: #fff; border-radius: 10px; padding: 3px 8px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer; }
.uh-tabs button[aria-selected="true"] { border-color: var(--blue); background: #eaf5ff; }
.ue-hash .uh-steps { margin: 6px 0 0; }
.uh-cap { display: block; margin-top: 4px; font-size: 11px; }
/* crypto: history rows and detail */
.plist .uo-hist { width: 100%; border: 0; font: inherit; cursor: pointer; text-align: start; display: flex; align-items: center; gap: 6px; }
.plist .uo-hist small { margin-inline-start: auto; font-size: 11px; color: var(--navy-2); white-space: nowrap; }
.uo-detail .gdlg-ribbon { display: flex; align-items: center; justify-content: center; gap: 4px; }
.ud-st { text-align: center; margin: 4px 0 8px; }
.ud-rows { display: flex; flex-direction: column; gap: 6px; text-align: start; }
.ud-row { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-radius: 12px; background: #f3f8ff; border: 1px solid #d3e6f7; }
.ud-row small { font-size: 11px; color: var(--navy-2); } .ud-row b { font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ud-row.big b { font-size: 18px; color: #1f7a3d; }
.ud-tx { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .ud-tx code { font-size: 11px; word-break: break-all; background: #fff; padding: 4px 6px; border-radius: 8px; border: 1px solid #d3e6f7; width: 100%; box-sizing: border-box; }
.cel-sub { white-space: pre-line; }
/* crypto: "how much will you send" red pop-up */
.ua-pop { border-color: #b42318 !important; }
.ua-pop .gdlg-ribbon { background: linear-gradient(180deg, #ff6b5e, #e8312f) !important; color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ua-pop .ua-net { display: block; text-align: center; color: var(--navy-2); margin: 2px 0 8px; }
.ua-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ua-row b { font-size: 20px; color: var(--ink); }
.ua-in { width: 140px; font-size: 28px; font-weight: 800; text-align: center; padding: 6px 10px; border-radius: 14px; border: 3px solid #e8312f; font-family: inherit; color: var(--ink); }
.ua-out { margin: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ua-out > small { font-weight: 700; color: var(--navy-2); }
.ua-big { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 38px; line-height: 1.1; color: var(--ink); letter-spacing: 1px; }
.ua-big .ua-x { color: #9db3cc; } .ua-big em { font-style: normal; font-size: 20px; color: var(--navy-2); }
.ua-big u, .ua-ex u, .ua-amt u { text-decoration: none; color: #e8312f; background: #fff3a8; border-bottom: 4px double #e8312f; padding: 0 2px; border-radius: 4px; }
.ua-rule { margin: 0; font-size: 12.5px; color: #8a1c1c; font-weight: 700; }
.ua-ex { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.ua-ex span { font-weight: 800; font-size: 13px; padding: 3px 7px; border-radius: 10px; background: #f3f8ff; border: 1px solid #d3e6f7; color: var(--ink); }
.ua-best { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; border-radius: 12px; background: #eafbea; border: 2px solid #7fc79a; }
.ua-best b { font-size: 16px; color: #1f7a3d; } .ua-best small { width: 100%; font-weight: 700; color: #1f7a3d; }
.ua-gold { font-weight: 800; color: #8a5a00; background: #fff6d6; border-radius: 12px; padding: 4px 10px; }
.ua-plan { margin: 6px 0; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid #e8312f; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ua-plan small { font-size: 12px; color: var(--navy-2); font-weight: 700; } .ua-amt { font-size: 24px; color: var(--ink); }

/* crypto wallet pill + window */
.cur.cr-cur { cursor: pointer; font: inherit; padding-inline-start: 6px; }
.cur.cr-cur .cr-duo .cr-ic.xs { width: 20px; height: 20px; font-size: 11px; }
.cur.cr-cur b { font-size: 16px; min-width: 0; }
.cur.cr-cur:active { transform: translateY(1px); }
#w-shop .shop-wallet:has(.cr-xbtn:not([hidden])) .xchg-btn { grid-column: auto; }
.cw-total { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #eaf5ff, #d6eafc); border: 2px solid #9cc7ea; margin-bottom: 10px; }
.cw-total small { color: var(--navy-2); font-weight: 800; }
.cw-total b { font-family: var(--font-display); font-size: 30px; color: var(--navy); font-variant-numeric: tabular-nums; }
.cw-total em { font-style: normal; color: #5a6b80; font-size: 13px; font-weight: 700; }
.cw-coins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.cw-coin { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: 14px; background: #fff; border: 2px solid #c9d6e4; color: var(--navy); font: inherit; cursor: pointer; }
.cw-coin.on { border-color: #2f8be0; box-shadow: 0 0 0 3px rgba(47,139,224,.22); background: #f3f9ff; }
.cw-coin .cw-ch { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; }
.cw-coin b { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.cw-coin small { color: #5a6b80; font-weight: 700; }
.cw-h { margin: 10px 0 4px; color: var(--navy); }
.cw-lab { display: inline-flex; align-items: center; gap: 4px; }
.calc-res.bad { color: #d23b3b; }
@media (max-width: 420px) { .cur.cr-cur b { font-size: 14px; } .cur.cr-cur .cr-duo .cr-ic.xs + .cr-ic.xs { display: none; } }
@media (orientation: portrait), (max-width: 720px) {
  #lobby .topbar:has(#meCrypto:not([hidden])) { grid-template-rows: auto auto auto; gap: 3px 8px; }
  #lobby .topbar:has(#meCrypto:not([hidden])) .me-card { grid-row: 1 / span 3; }
  #lobby .topbar .cur.cr-cur { height: 26px; grid-column: 2; }
  #lobby .topbar .cur.cr-cur b { font-size: 13px; }
}

/* top-up methods popup */
.pay-pop { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8,22,44,.62); backdrop-filter: blur(3px); animation: payIn .25s ease-out; }
.pay-pop.out { opacity: 0; transition: opacity .2s; }
@keyframes payIn { from { opacity: 0; } to { opacity: 1; } }
.pay-card { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; background: #f7fbff; border: 3px solid #12325a; box-shadow: 0 10px 0 rgba(10,30,60,.35), 0 24px 60px rgba(0,0,0,.35); animation: payPopIn .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes payPopIn { from { transform: scale(.85) translateY(20px); } to { transform: none; } }
.pay-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(255,255,255,.18); color: #fff; font-weight: 900; font-size: 16px; cursor: pointer; z-index: 1; }
.pay-head { padding: 22px 20px 16px; text-align: center; color: #fff; background: radial-gradient(120% 90% at 50% 0%, #4fb0f5 0%, #2a7fd0 45%, #173f78 100%); border-radius: 21px 21px 0 0; }
.pay-shield { width: 64px; height: 64px; margin: 0 auto 6px; display: grid; place-items: center; font-size: 36px; border-radius: 50%; background: rgba(255,255,255,.2); border: 3px solid rgba(255,255,255,.65); box-shadow: 0 0 0 6px rgba(255,255,255,.12); }
.pay-head h2 { margin: 2px 0 4px; font-family: var(--font-display); font-size: 23px; line-height: 1.2; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.pay-head p { margin: 0; font-size: 13.5px; opacity: .95; }
.pay-list { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 4px; }
.pay-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid #cfe0f0; box-shadow: 0 3px 0 #dbe7f3; text-align: start; }
.pay-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; background: #e8f3fd; }
.pay-ico .cr-duo .cr-ic { width: 24px; height: 24px; font-size: 13px; }
.pay-tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pay-tx b { color: #12325a; font-size: 15.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pay-tx small { color: #4d6177; font-size: 12.5px; line-height: 1.35; }
.pay-tags { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.pay-tag { font-size: 11px; font-weight: 900; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.pay-tag.ok { background: #dff6e6; color: #157a3b; border: 1.5px solid #8fd4a6; }
.pay-tag.fast { background: #fff3c4; color: #8a5a00; border: 1.5px solid #f0cf6a; }
.pay-soon { margin: 8px 14px 0; padding: 8px 10px; border-radius: 14px; border: 2px dashed #b7c7d8; background: #f0f4f8; text-align: center; }
.pay-soon-h { display: block; font-weight: 900; color: #5a6b80; margin-bottom: 5px; }
.pay-soon-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pay-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1.5px solid #c9d6e4; color: #5a6b80; font-weight: 800; font-size: 12.5px; }
.pay-chip i { font-style: normal; }
.pay-trust { margin: 10px 16px 0; font-size: 12px; color: #3f5670; text-align: center; line-height: 1.4; }
.pay-btns { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 16px; }
.pay-btns .gbtn { width: 100%; }
.ann-cta { margin: 6px 0 4px; }
@media (orientation: landscape) and (max-height: 520px) {
  .pay-card { width: min(640px, 100%); }
  .pay-head { padding: 12px 16px 10px; } .pay-shield { width: 40px; height: 40px; font-size: 22px; } .pay-head h2 { font-size: 19px; }
  .pay-list { flex-direction: row; } .pay-row { flex: 1 1 0; }
  .pay-btns { flex-direction: row; flex-wrap: wrap; } .pay-btns .gbtn { width: auto; flex: 1 1 0; } .pay-btns p { flex-basis: 100%; }
}
#w-shop .shop-wallet:has(.cr-xbtn:not([hidden])) .xchg-btn { min-width: 0; padding-inline: 6px; font-size: 12px; white-space: normal; line-height: 1.15; }

/* crypto top-up: flow strip, wallet bar, step 2 (hash) panel */
.cr-tabt, .cr-tabs { white-space: nowrap; }
.cf-flow { display: flex; align-items: stretch; justify-content: center; gap: 2px; margin: 8px 0; }
.cf-st { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; background: #eef4fa; border: 2px solid #d5e2ef; color: #5a6b80; text-align: center; }
.cf-st small { font-size: 10.5px; font-weight: 800; line-height: 1.15; }
.cf-st .cf-n { font-size: 18px; line-height: 1; }
.cf-st.on { background: #fff6cf; border-color: #f0c443; color: #6b4a00; box-shadow: 0 2px 0 #e6b62e; }
.cf-st.done { background: #e3f6e9; border-color: #9ed6ae; color: #1d6b3a; }
.cf-arr { align-self: center; font-style: normal; font-weight: 900; color: #9db3c8; }
.cf-bar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; padding: 8px 12px; border-radius: 14px; background: linear-gradient(180deg, #eaf5ff, #d9ebfb); border: 2px solid #9cc7ea; color: var(--navy); font: inherit; cursor: pointer; text-align: start; }
.cf-bl { display: flex; flex-direction: column; min-width: 0; } .cf-bl small { font-weight: 800; color: var(--navy-2); } .cf-bl b { font-size: 14px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-go { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--yellow); border: 2px solid var(--ink); font-weight: 900; font-size: 12.5px; color: var(--ink); }
.cf-badge { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--navy); color: #fff; font-weight: 900; font-size: 13px; }
.cf-addr { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cf-tx { margin: 10px 0 6px; padding: 12px; border-radius: 18px; background: linear-gradient(180deg, #fffdf2, #fff6d6); border: 3px solid #f0c443; box-shadow: 0 4px 0 #e2b12a; text-align: start; }
.cf-tx .cr-head { margin-bottom: 8px; }
.cf-form { display: flex; flex-direction: column; gap: 8px; }
.cf-inrow { display: flex; gap: 6px; align-items: stretch; }
.cf-inrow input { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; border-radius: 12px; border: 2px solid #c9b46a; background: #fff; font: inherit; font-size: 14px; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ink); }
.cf-inrow input:focus { outline: none; border-color: #2f8be0; box-shadow: 0 0 0 3px rgba(47,139,224,.2); }
.cf-paste { flex: none; min-height: 48px; }
.cf-check { width: 100%; min-height: 50px; font-size: 17px; }
.cf-tx .topup-status:empty { display: none; }
.cf-tx .ue-hash { background: #fff; }
.cf-s3 { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; padding: 8px 12px; border-radius: 14px; background: #e9f7ee; border: 2px solid #a6dbb6; color: #1d5b33; font-weight: 700; font-size: 13px; text-align: start; }
.cf-s3 .cf-badge { background: #1f8a4c; }
.cf-fee summary { font-weight: 800; cursor: pointer; }
.cf-intro { line-height: 1.45; }

/* shop: a raised golden button in the bottom bar + more ways in */
.dock button.nav-shop { overflow: visible; color: #5a3a00; }
.dock button.nav-shop .ns-ico { position: relative; width: 58px; height: 58px; margin-top: -30px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff6c2, #ffd23f 45%, #f39c12 100%); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink), 0 0 0 4px rgba(255,210,63,.35); animation: nsPulse 2.4s ease-in-out infinite; }
.dock button.nav-shop .ns-ico svg { width: 32px; height: 32px; color: #7a3d00; filter: drop-shadow(0 2px 0 rgba(255,255,255,.6)); }
.dock button.nav-shop > span:not(.ns-ico) { font-weight: 900; color: #8a4b00; }
.dock button.nav-shop:hover, .dock button.nav-shop:active { background: transparent; }
.dock button.nav-shop:active .ns-ico { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.ns-hot { position: absolute; top: -34px; inset-inline-end: 2px; padding: 0 5px; border-radius: 999px; background: #e5394b; color: #fff; font-style: normal; font-weight: 900; font-size: 9.5px; line-height: 16px; border: 2px solid #fff; transform: rotate(10deg); }
@keyframes nsPulse { 0%, 100% { box-shadow: 0 4px 0 var(--ink), 0 0 0 4px rgba(255,210,63,.35); } 50% { box-shadow: 0 4px 0 var(--ink), 0 0 0 9px rgba(255,210,63,.12); } }
@media (orientation: portrait), (max-width: 720px) { .dock button.nav-shop .ns-ico { width: 50px; height: 50px; margin-top: -24px; } .dock button.nav-shop .ns-ico svg { width: 28px; height: 28px; } .ns-hot { top: -28px; } }
@media (max-height: 500px) and (orientation: landscape) { .dock button.nav-shop .ns-ico { width: 42px; height: 42px; margin-top: -14px; } .ns-hot { top: -18px; } }
@media (prefers-reduced-motion: reduce) { .dock button.nav-shop .ns-ico { animation: none; } }
.dock-btn.shopd { background: linear-gradient(180deg, #ffe0ef, #ff7eb6 55%, #e94d93); color: #4a0b2a; }
.dock-btn.shopd::after { animation-delay: .9s; }
.room-shop { white-space: nowrap; }
.shop-topups { display: flex; gap: 6px; width: 100%; flex-basis: 100%; }
.shop-topups .gbtn { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-topups .st-cr { background: linear-gradient(180deg, #c9fff0, #3fd6a8 55%, #1fae86); color: #06392c; }
#w-shop .shop-wallet .shop-topups { grid-column: 1 / -1; }
.cf-tx .cr-head, .usdt-card .cr-head { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; text-align: start; flex-wrap: wrap; }
.usdt-card .ue-cd { padding: 6px 10px; } .usdt-card .ue-cd .ue-cdt { font-size: 20px; }
.ua-plan .ua-rule2 { color: #8a2b2b; font-size: 11.5px; }
.cf-bl b { white-space: normal; font-size: 13px; }
.cr-pnote { display: flex; align-items: center; gap: 6px; margin: 6px 0; padding: 6px 10px; border-radius: 12px; background: #e9faf3; border: 1.5px solid #9fdcc2; color: #0f5a40; font-size: 12px; font-weight: 700; line-height: 1.35; text-align: start; }
.cr-pnote .cr-duo { flex: none; }
/* item drops */
.new-tag { position: absolute; top: 6px; inset-inline-end: 6px; z-index: 2; padding: 1px 7px; border-radius: 999px; background: #e5394b; color: #fff; font-weight: 900; font-size: 10.5px; border: 2px solid #fff; box-shadow: 0 2px 0 rgba(0,0,0,.15); animation: newPulse 1.6s ease-in-out infinite; }
@keyframes newPulse { 50% { transform: scale(1.08); } }
.ns-hot.new { background: #ff2d55; animation: newPulse 1.4s ease-in-out infinite; }
.drop-next { display: flex; align-items: center; gap: 8px; margin: 6px 0; padding: 8px 12px; border-radius: 14px; background: linear-gradient(90deg, #fff4d1, #ffe2f0); border: 2px dashed #f0a6c8; color: #6b2b4a; text-align: start; }
.drop-next b { flex: 1; font-size: 13px; } .drop-next small { font-weight: 800; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .new-tag, .ns-hot.new { animation: none; } }
.ev-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink); background: linear-gradient(90deg, #ff5f9e, #ffb340); color: #fff; font-weight: 900; font-size: 11px; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(0,0,0,.25); animation: evGlow 2.4s ease-in-out infinite; }
.ev-chip.soon { background: linear-gradient(90deg, #4aa8ff, #7a52e0); }
@keyframes evGlow { 50% { box-shadow: 0 0 0 4px rgba(255,95,158,.25); } }
@media (prefers-reduced-motion: reduce) { .ev-chip { animation: none; } }
/* upcoming events (reward pop-up and calendar window) */
.ev-up { margin-top: 12px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.75); border: 2px solid #f0d27a; display: flex; flex-direction: column; gap: 6px; text-align: start; }
.ev-up-h { color: var(--navy); font-size: 14px; }
.ev-up .gbtn { align-self: center; }
.evr { padding: 7px 10px; border-radius: 12px; background: #fff; border: 1.5px solid #d6e3f0; display: flex; flex-direction: column; gap: 2px; }
.evr.on { border-color: #ff8fb7; background: #fff3f8; }
.evr-top { display: flex; align-items: center; gap: 6px; } .evr-top b { flex: 1; color: var(--navy); font-size: 13.5px; } .evr-top em { font-style: normal; font-weight: 900; font-size: 11.5px; color: #c2410c; white-space: nowrap; }
.evr small { color: #4d6177; font-size: 12px; line-height: 1.35; } .evr-story { font-style: italic; }
.ev-cal .ev-cal-list { display: flex; flex-direction: column; gap: 8px; max-height: min(60vh, 520px); overflow-y: auto; margin: 6px 0 10px; text-align: start; }
/* "where am I?" arrow */
.find-arrow { position: fixed; left: 0; top: 0; z-index: 9000; pointer-events: none; will-change: transform; }
.find-arrow[hidden] { display: none; }
.find-arrow .fa-in { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; animation: faBounce .5s ease-in-out infinite alternate; }
.find-arrow svg { width: 64px; height: 74px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.find-arrow b { background: #0f2547; color: #fff; font-size: 15px; font-weight: 800; padding: 5px 12px; border-radius: 999px; border: 2.5px solid #ffd23a; white-space: nowrap; margin-bottom: 4px; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.find-arrow i { position: absolute; bottom: -34px; width: 70px; height: 34px; border-radius: 50%; border: 4px solid #ffd23a; animation: faRing .7s ease-out infinite; }
@keyframes faBounce { from { transform: translate(-50%, -14px); } to { transform: translate(-50%, 0); } }
@keyframes faIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes faRing { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.3); } }
.find-dead { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 9000; pointer-events: none; max-width: min(88vw, 460px); text-align: center; background: rgba(15,37,71,.92); color: #fff; font-size: 18px; font-weight: 800; padding: 14px 20px; border-radius: 18px; border: 3px solid #ff8a8a; box-shadow: 0 8px 24px rgba(0,0,0,.35); animation: faIn .2s ease-out; }
.find-dead[hidden] { display: none; }
.find-arrow.up .fa-in { bottom: auto; top: 0; flex-direction: column-reverse; }
.find-arrow.up svg { transform: rotate(180deg); }
.find-arrow.up b { margin: 4px 0 0; }
.find-arrow.up i { bottom: auto; top: -30px; }
@media (max-width: 480px) {
  .hud-exit { gap: 5px; right: calc(8px + var(--safe-r)); }
  .hud-exit .ibtn { width: 38px; height: 38px; border-radius: 12px; border-width: 2.5px; }
  .hud-exit .ibtn svg { width: 21px; height: 21px; }
}
/* show / hide the shop category boxes */
.stabs-tog { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 0 8px; padding: 6px 12px; border: 2px dashed #b9cde3; border-radius: 12px; background: #f4f9ff; color: #1d4f8c; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.stabs-tog:hover { background: #e8f3ff; }
.stabs-tog .st-a { font-size: 11px; }
.stabs-tog.shut { border-style: solid; border-color: #8fc7f5; background: linear-gradient(180deg, #ffffff, #e3f2ff); box-shadow: 0 2px 0 #8fc7f5; }
#shopTabs[hidden] { display: none; }
/* translation in the lobby chat */
.lc-row .tr-out { flex-basis: 100%; }
.lc-form .tr-auto { flex: none; align-self: stretch; }
@media (max-width: 520px) { .lc-form .tr-auto .tr-on, .lc-form .tr-auto .tr-off { display: none; } }
/* item buttons: at most 4 per row; more items start a new row above (never reach the joystick) */
.items { flex-wrap: wrap-reverse; justify-content: flex-end; max-width: calc(4 * 56px + 3 * 8px); }
body.lefty .items { justify-content: flex-start; }
@media (max-width: 640px) { .items { max-width: calc(4 * 46px + 3 * 6px); row-gap: 6px; } }
@media (max-width: 430px) { .items { max-width: calc(4 * 44px + 3 * 6px); } .item-btn { width: 44px; height: 44px; } .item-btn .ico { font-size: 21px; } }
@media (max-height: 500px) and (orientation: landscape) { .items { max-width: none; max-height: calc(4 * 46px + 3 * 8px); align-content: flex-end; } }
@media (max-width: 640px) { body.one-hand .items { justify-content: flex-start; } body.one-hand.lefty .items { justify-content: flex-end; } }
.chtag { display: inline-block; padding: 1px 6px; border-radius: 8px; font-size: 10.5px; font-weight: 900; background: #12325a; color: #fff; margin-inline-start: 4px; vertical-align: 1px; }
/* gift code window */
.cd-form { display: flex; flex-direction: column; gap: 10px; align-items: stretch; margin-top: 10px; }
.cd-form input { font-size: 22px; font-weight: 800; letter-spacing: 2px; text-align: center; text-transform: uppercase; padding: 12px; border-radius: 14px; border: 3px solid #bcd3ee; background: #fff; color: #12325a; }
.cd-form input:focus { outline: none; border-color: #3b8de0; }
/* party bar (lobby + room) */
.party-bar { position: fixed; z-index: 9; left: 50%; transform: translateX(-50%); top: calc(118px + var(--safe-t, 0px)); width: min(440px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 18px; border: 3px solid var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 5px 0 var(--ink); }
body.s-room .party-bar { top: auto; bottom: calc(10px + var(--safe-b, 0px)); }
.pt-head { display: flex; align-items: center; gap: 6px; } .pt-head b { font-size: 14px; color: var(--navy, #12325a); }
.pt-mem { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 999px; border: 2px solid #bcd3ee; background: #f2f8ff; font: inherit; font-size: 12px; font-weight: 700; color: #12325a; cursor: pointer; max-width: 150px; }
.pt-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-chip.off { opacity: .5; } .pt-chip.busy { border-color: #f0b44c; } .pt-chip.add { padding: 5px 10px; border-style: dashed; background: #fff; }
.pfp.xs { width: 26px; height: 26px; border-width: 2px; }
.pt-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .pt-acts small { flex: 1; min-width: 140px; font-size: 11px; line-height: 1.3; }
/* weekly tournament */
.to-top { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.to-when { font-size: 17px; color: #12325a; } .to-cd { font-size: 22px; font-weight: 900; color: #1d4b82; font-variant-numeric: tabular-nums; }
.to-prizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0; }
.to-prize { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 14px; border: 2px solid #d4e2f0; background: #f6fbff; }
.to-act { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 6px 0 10px; } .to-ok { margin: 0; font-weight: 800; color: #1f9d55; }
.to-me { text-align: center; font-weight: 800; color: #12325a; margin: 6px 0; }
.to-bracket { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; }
.to-col { display: flex; flex-direction: column; justify-content: space-around; gap: 8px; min-width: 132px; }
.to-rn { font-size: 12px; text-align: center; color: #5d6f86; }
.to-m { border: 2px solid #d4e2f0; border-radius: 10px; background: #fff; padding: 3px 6px; font-size: 12px; }
.to-m.play { border-color: #e5394b; } .to-p { padding: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.to-p.win { font-weight: 900; color: #1f9d55; } .to-p.lose { opacity: .5; text-decoration: line-through; } .to-p.me { background: #fff6cc; border-radius: 4px; }
.to-live { color: #e5394b; font-weight: 800; }
/* tab labels never break inside a word (Thai "แรงก์" split over two lines); whole tabs wrap to the next row instead */
.tabs button { white-space: nowrap; word-break: keep-all; }
/* quick chat buttons: one tidy row that scrolls sideways */
.qc-row { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.qc-chip { flex: 0 0 auto; scroll-snap-align: start; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 12px; border-radius: 999px; border: 2px solid #12325a; background: linear-gradient(#ffffff, #e6f1fc); color: #12325a; font: inherit; font-size: 13px; font-weight: 800; box-shadow: 0 2px 0 #12325a; cursor: pointer; }
.qc-chip:active, .qc-chip.sent { transform: translateY(2px); box-shadow: none; background: #ffe680; }
.qc-chip.edit { background: #fff; border-style: dashed; padding: 6px 10px; }
.qc-panel { position: absolute; z-index: 8; right: calc(12px + var(--safe-r)); top: calc(62px + var(--safe-t, 0px)); width: min(380px, calc(100% - 24px)); padding: 8px; border-radius: 16px; background: rgba(10,28,52,.86); border: 2px solid rgba(255,255,255,.5); display: flex; flex-direction: column; gap: 6px; animation: popIn .15s ease-out; }
.qc-panel .qc-chip { background: rgba(255,255,255,.95); border-color: #fff; }
.qc-type { display: flex; gap: 6px; } .qc-type input { flex: 1; min-width: 0; border-radius: 12px; border: 0; padding: 8px 10px; font: inherit; }
.qc-ico { font-size: 20px; line-height: 1; }
.g-feed { position: absolute; z-index: 5; left: calc(10px + var(--safe-l, 0px)); top: calc(64px + var(--safe-t, 0px)); width: min(320px, 60vw); display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.g-feed p { margin: 0; padding: 3px 9px; border-radius: 10px; background: rgba(10,28,52,.62); color: #fff; font-size: 13px; line-height: 1.3; text-shadow: 0 1px 1px #000; transition: opacity .6s; animation: popIn .15s ease-out; overflow-wrap: anywhere; }
.g-feed p b { color: #ffe680; } .g-feed p.fade { opacity: 0; }
/* quick chat editor */
.qc-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.qc-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 14px; border: 2px solid #d4e2f0; background: #f7fbff; }
.qc-n { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: #12325a; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.qc-f { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.qc-f input { width: 100%; box-sizing: border-box; border: 2px solid #c9d6e8; border-radius: 10px; padding: 6px 8px; font: inherit; font-size: 14px; }
.qc-f .qc-l { font-weight: 800; color: #12325a; }
.qc-b { display: flex; flex-direction: column; gap: 3px; } .qc-mini { width: 30px; height: 24px; border-radius: 8px; border: 2px solid #c9d6e8; background: #fff; font-size: 11px; cursor: pointer; padding: 0; }
.qc-mini.del { color: #e5394b; } .qc-mini:disabled { opacity: .3; }
.qc-add { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; border: 2px dashed #9fc0e4; margin-bottom: 8px; }
.qc-add input { border: 2px solid #c9d6e8; border-radius: 10px; padding: 8px 10px; font: inherit; }
/* room screen chat tabs: in this room / everyone (lobby chat with tap-to-join room numbers) */
.rc-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.rc-tabs [role=tab] { position: relative; border: 2px solid #c9d6e8; background: #f2f8ff; color: #1d4b82; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.rc-tabs [role=tab][aria-selected=true] { background: #12325a; border-color: #12325a; color: #fff; }
.rc-tabs .spacer { flex: 1; } .rc-inv { white-space: nowrap; padding: 3px 10px; font-size: 12px; }
.rl-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #e5394b; }
.rl-log .lc-row { font-size: 13px; }
.lc-room { display: inline-flex; align-items: center; gap: 4px; margin: 3px 0 0 4px; padding: 3px 10px; border-radius: 999px; border: 2px solid #12325a; background: linear-gradient(#fff6c9, #ffe27a); color: #12325a; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 0 #12325a; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lc-room:active { transform: translateY(2px); box-shadow: none; } .lc-room.play { background: #eef2f7; color: #5d6f86; border-color: #9fb3c8; box-shadow: none; }
.lc-row.inv .lc-text { font-weight: 700; color: #b0580f; }
/* ---------- couples: pastel pink + sky ---------- */
.side-btn.love .hot-ico { animation: cpBeat 1.6s ease-in-out infinite; }
@keyframes cpBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.love-win .win-title { background: linear-gradient(135deg, #ffb3d4, #ffd6e8 55%, #c9e8ff); }
.love-win .win-body { background: linear-gradient(180deg, #fff6fb, #f3f9ff); }
.cp-card { position: relative; margin: 10px 0; padding: 14px; border-radius: 22px; border: 3px solid #ffb3d4; background: #fff; box-shadow: 0 5px 0 #f39cc4; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cp-card.mine { background: radial-gradient(circle at 50% 0, #ffe3f0, #fff 70%); }
.cp-card.ask { border-color: #ff7eb6; animation: cpGlow 1.8s ease-in-out infinite; }
@keyframes cpGlow { 50% { box-shadow: 0 5px 0 #f39cc4, 0 0 22px #ff9cc8; } }
.cp-pair { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cp-pair .cp-one { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 120px; } .cp-pair .cp-one b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.cp-pair .pfp { width: 46px; height: 46px; } .cp-pair.big .pfp { width: 76px; height: 76px; } .cp-pair.big .cp-one b { font-size: 14px; }
.cp-heart { font-size: 26px; animation: cpBeat 1.4s ease-in-out infinite; } .cp-pair.big .cp-heart { font-size: 38px; }
.cp-lv { font-weight: 900; color: #c2186b; }
.cp-bar { position: relative; width: 100%; max-width: 320px; height: 18px; border-radius: 999px; background: #ffe6f1; border: 2px solid #ffb3d4; overflow: hidden; }
.cp-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ff8fc0, #ff5fa2); border-radius: 999px; transition: width .4s; }
.cp-bar small { position: relative; display: block; text-align: center; font-size: 11px; font-weight: 800; line-height: 14px; color: #7a1648; }
.cp-perks { text-align: left; margin: 0; padding-left: 20px; font-size: 13px; } .cp-card h4 { margin: 6px 0 0; color: #c2186b; }
.cp-lvrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; } .cp-lvb { font-size: 20px; filter: grayscale(1); opacity: .35; } .cp-lvb.on { filter: none; opacity: 1; }
.cp-div { margin-top: 8px; opacity: .75; }
.cp-how { padding: 10px 12px; border-radius: 16px; background: #eef7ff; border: 2px dashed #9fc6ef; font-size: 13px; } .cp-how p { margin: 4px 0 0; }
.cp-friend { display: flex; align-items: center; gap: 8px; padding: 8px; margin: 6px 0; border-radius: 16px; background: #fff; border: 2px solid #f6d3e3; }
.cp-friend .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .cp-why { font-size: 11px; color: #9a6b82; max-width: 110px; text-align: right; }
.cp-ring { font-size: 34px; } .cp-ring.big { font-size: 48px; animation: cpBeat 1.4s infinite; }
.cp-vow { margin: 0; font-style: italic; color: #a0346b; }
.cp-rank { display: flex; align-items: center; gap: 8px; padding: 8px; margin: 6px 0; border-radius: 16px; background: #fff; border: 2px solid #f6d3e3; } .cp-rank .cp-pair { flex: 1; justify-content: flex-start; } .cp-rv { font-weight: 900; color: #c2186b; white-space: nowrap; }
.cp-dlg .cp-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; margin: 6px 0; }
.cp-rc { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 16px; border: 3px solid #e3d6f0; background: #fff; font: inherit; cursor: pointer; }
.cp-rc small { font-size: 10px; color: #7a6a8a; line-height: 1.2; min-height: 24px; } .cp-rc.on { border-color: #ff5fa2; background: #fff0f7; box-shadow: 0 0 0 3px #ffd1e6; transform: translateY(-2px); }
.cp-ri { font-size: 30px; } .cp-rc.rainbow .cp-ri { animation: cpBeat 1.4s infinite; }
.cp-price { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; } .cp-price svg { width: 14px; height: 14px; }
.cp-vowsel { width: 100%; padding: 8px; border-radius: 12px; border: 2px solid #ffb3d4; font: inherit; margin: 4px 0; }
.cp-when { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.pl-couple { color: #c2186b; font-weight: 800; }
/* wedding pop-up for everyone: small, at the top, shrinks to a heart */
.wed-pop { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); top: calc(8px + var(--safe-t, 0px)); width: min(440px, calc(100% - 20px)); display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 8px; border-radius: 18px; border: 3px solid #ff7eb6; background: linear-gradient(135deg, #fff0f7, #ffffff 60%, #eef7ff); box-shadow: 0 5px 0 #f39cc4, 0 8px 20px rgba(194,24,107,.18); animation: wpIn .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes wpIn { from { transform: translate(-50%, -120%); } }
.wed-pop .wp-ico { font-size: 28px; animation: cpBeat 1.4s infinite; } .wed-pop .wp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .wed-pop .wp-t b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #a0175f; } .wed-pop .wp-t small { font-size: 11px; color: #7a5a6b; }
.wed-pop .wp-x { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ff7eb6; background: #fff; color: #c2186b; font-size: 12px; line-height: 1; cursor: pointer; }
.wed-pop .gbtn { white-space: nowrap; }
.wed-pop.mini { width: auto; left: auto; right: calc(10px + var(--safe-r, 0px)); transform: none; top: calc(120px + var(--safe-t, 0px)); padding: 6px; cursor: pointer; }
.wed-pop.mini > :not(.wp-ico) { display: none; } .wed-pop.out { opacity: 0; transition: opacity .35s; }
/* the chapel */
.chapel-win .win-title { background: linear-gradient(135deg, #ffc6de, #fff3c9 50%, #c9e8ff); }
.chapel-body { padding: 0 !important; display: flex; flex-direction: column; }
.ch-sky { position: relative; overflow: hidden; min-height: 300px; background: radial-gradient(circle at 50% 110%, #ffd8ea 0, #fff4fa 45%, #dff0ff 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 10px 40px; }
.ch-arch { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 22px 14px; border-radius: 120px 120px 22px 22px; border: 4px solid #ffb3d4; background: rgba(255,255,255,.75); box-shadow: 0 0 0 8px rgba(255,214,232,.6); }
.ch-bells { font-size: 22px; letter-spacing: 6px; } .ch-ring { font-size: 40px; animation: cpBeat 1.5s infinite; } .ch-vow { margin: 0; font-style: italic; color: #a0346b; max-width: 260px; text-align: center; }
.ch-state { position: absolute; z-index: 3; left: 0; right: 0; bottom: 8px; text-align: center; font-weight: 900; color: #a0175f; text-shadow: 0 1px 0 #fff; }
.ch-float { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.ch-wish { position: absolute; left: 100%; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.88); border: 2px solid #ffc2dd; color: #6b1d45; font-size: 13px; font-weight: 700; animation: chFly linear forwards; box-shadow: 0 2px 6px rgba(194,24,107,.15); }
.ch-wish.me { border-color: #ff5fa2; background: #fff0f7; } .ch-wish b { color: #c2186b; }
@keyframes chFly { from { transform: translateX(0); } to { transform: translateX(calc(-100vw - 100%)); } }
.ch-heart { position: absolute; bottom: -20px; font-size: 24px; animation: chRise 3s ease-out forwards; }
@keyframes chRise { to { transform: translateY(-340px) rotate(25deg); opacity: 0; } }
.ch-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 4px; } .ch-count { font-size: 18px; color: #a0175f; } .ch-go { font-size: 18px; padding: 10px 22px; }
.ch-quick { padding: 0 12px; } .ch-say { display: flex; gap: 6px; padding: 4px 12px 12px; } .ch-say input { flex: 1; min-width: 0; border: 2px solid #ffb3d4; border-radius: 12px; padding: 8px 10px; font: inherit; }
.rn-wrap { display: flex; gap: 6px; align-items: stretch; } .rn-wrap input { flex: 1; min-width: 0; }
.rn-dice { font-size: 20px; padding: 0 12px; } .rn-dice.spin1 { animation: rnSpin .45s ease-out; }
@keyframes rnSpin { from { transform: rotate(-200deg) scale(.7); } }
/* side column scrolls: buttons keep their full height (they were squeezed and lost their label) */
.side-btns > *, .topup-dock > * { flex: none; }
/* friend / player rows with several buttons: the buttons go on their own line under the name */
.prow:has(.acts > :nth-child(2)) { flex-wrap: wrap; }
.prow:has(.acts > :nth-child(2)) .acts { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-end; }
.prow .who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ---------- shield rank badge (before the name) ---------- */
.shb { display: inline-flex; align-items: center; gap: 1px; margin-inline-end: 4px; padding: 0 4px 0 3px; height: 1.35em; border-radius: 6px 6px 9px 9px; vertical-align: -0.2em; font-style: normal; line-height: 1; border: 1.5px solid rgba(0,0,0,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.shb i { font-style: normal; font-size: .95em; } .shb em { font-style: normal; font-size: .62em; font-weight: 900; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.55); letter-spacing: -1px; }
.shb.s1 { background: linear-gradient(#e2b88a, #a8723f); } .shb.s2 { background: linear-gradient(#d4dae0, #8d98a3); } .shb.s3 { background: linear-gradient(#f2b07c, #b5602a); }
.shb.s4 { background: linear-gradient(#ffffff, #aebccb); } .shb.s5 { background: linear-gradient(#fff2a8, #e7a700); } .shb.s6 { background: linear-gradient(#9ff0c4, #15a85b); }
.shb.s7 { background: linear-gradient(#a9cdff, #2563eb); } .shb.s8 { background: linear-gradient(#ffb0b8, #d01c32); } .shb.s9 { background: linear-gradient(#e9fdff, #63d4f2); box-shadow: 0 0 6px #8fe9ff, inset 0 1px 0 #fff; }
.shb.s10 { background: linear-gradient(90deg, #ff5f6d, #ffc371, #7cf29c, #5ab9ff, #c77dff); box-shadow: 0 0 8px rgba(255,120,220,.8); animation: shGlow 2.4s linear infinite; }
@keyframes shGlow { 50% { filter: hue-rotate(60deg) brightness(1.1); } }
.shb.big { font-size: 34px; height: 1.4em; padding: 0 10px 0 8px; border-radius: 12px 12px 22px 22px; border-width: 3px; } .shb.big.s0 { background: #eef3f8; }
.sh-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; border-radius: 999px; border: 2px solid var(--ink); background: linear-gradient(#ffffff, #e8f2ff); font: inherit; font-size: 12px; font-weight: 800; color: var(--ink); box-shadow: 0 2px 0 var(--ink); cursor: pointer; }
.sh-chip .shb { margin: 0; }
.sh-win .win-title { background: linear-gradient(135deg, #ffe48a, #fff6d0 50%, #cfe8ff); }
.sh-head { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0 10px; } .sh-name { font-size: 20px; color: #12325a; }
.sh-bar { margin: 0 auto; max-width: 360px; background: #fff3c4; border-color: #f1c84b; } .sh-bar i { background: linear-gradient(90deg, #ffd23a, #f59e0b); } .sh-bar small { color: #6b4a00; }
.sh-next { text-align: center; font-weight: 700; color: #12325a; margin: 8px 0; } .sh-acts { display: flex; justify-content: center; margin: 6px 0 10px; }
.sh-ladder { display: flex; flex-direction: column; gap: 6px; }
.sh-rung { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 14px; background: #f5f8fc; border: 2px solid #dfe8f2; } .sh-rung b { min-width: 86px; } .sh-rung small { color: #5d6f86; font-size: 11px; }
.sh-rung.got { background: #fffbe8; border-color: #f1c84b; } .sh-rung.now { border-color: #2f7dff; box-shadow: 0 0 0 2px #cfe2ff; }
#w-shield .gbtn.blue { display: block; margin: 8px auto; }
/* Ask Bomby */
.hb-open { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-bottom: 8px; padding: 10px; border-radius: 16px; border: 3px dashed #7fb6ec; background: #eef7ff; color: #12325a; font: inherit; font-weight: 800; cursor: pointer; }
.hb-mini { border: 0; background: transparent; font-size: 20px; padding: 0 4px; cursor: pointer; }
.hb-body { display: flex; flex-direction: column; gap: 6px; }
.hb-log { min-height: 220px; max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.hb-msg { display: flex; gap: 6px; align-items: flex-end; } .hb-msg.me { justify-content: flex-end; }
.hb-ava { font-size: 24px; flex: none; }
.hb-bub { max-width: 82%; padding: 8px 11px; border-radius: 16px; background: #eef5ff; border: 2px solid #c9dcf2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hb-bub p { margin: 0; font-size: 14px; line-height: 1.4; } .hb-msg.me .hb-bub { background: #fff3c4; border-color: #f1c84b; }
.hb-live { font-weight: 700; color: #1d4b82; }
.hb-form { display: flex; gap: 6px; } .hb-form input { flex: 1; min-width: 0; border: 2px solid #c9d6e8; border-radius: 12px; padding: 9px 10px; font: inherit; }
.hb-point { position: relative; background: #fff6cc; border-radius: 8px; box-shadow: 0 0 0 3px #ffd23a; animation: hbFlash 1s ease-in-out 3; }
.hb-point::before { content: '👉'; position: absolute; left: -30px; top: 50%; transform: translateY(-50%); font-size: 22px; animation: hbPoint .6s ease-in-out infinite alternate; }
@keyframes hbPoint { to { transform: translate(6px, -50%); } } @keyframes hbFlash { 50% { box-shadow: 0 0 0 6px #ffe680; } }
#guideBody .g-sec p { margin-left: 26px; }
.lc-row.sys { background: linear-gradient(90deg, #fff6d6, #fff); border-radius: 10px; padding: 4px 6px; border: 1.5px solid #f1c84b; }
.lc-sys { color: #b45309; margin-inline-end: 6px; white-space: nowrap; } .lc-room.sysb { background: linear-gradient(#e8f4ff, #cfe6ff); }

/* shield buy button: long texts wrap instead of being cut */
.gbtn.sh-buy { white-space: normal; line-height: 1.25; height: auto; min-height: 48px; padding-top: 8px; padding-bottom: 8px; font-size: 15px; }

/* room chat: expand / shrink button (bigger log for reading lobby and room chat) */
.rc-big { flex: none; width: 34px; height: 30px; border-radius: 10px; border: 2px solid #c9d6e8; background: #f2f8ff; color: #12325a; font-size: 18px; font-weight: 900; line-height: 1; cursor: pointer; display: grid; place-items: center; margin-right: 4px; }
.rc-big:active { transform: translateY(1px); }
.rc-big[aria-pressed=true] { background: #12325a; border-color: #12325a; color: #fff; }
#room.chat-big .chat-log { height: min(44vh, 400px); }
@media (orientation: landscape) and (max-height: 500px) { #room.chat-big .chat-log { height: min(52vh, 260px); } }

/* room chips in chat: a room that can't be joined now looks faded (tap still explains why) */
.lc-room.off { filter: grayscale(.85); opacity: .55; box-shadow: none; }
.lc-room.off.play { filter: grayscale(.4); opacity: .7; }

/* floating Bomby helper (lobby): small, draggable, hides with × (Settings brings it back) */
.bomby-fab { position: fixed; z-index: 40; width: 58px; height: 58px; touch-action: none; user-select: none; -webkit-user-select: none; }
.bomby-fab[hidden] { display: none; }
.bf-bot { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--ink); background: radial-gradient(circle at 50% 35%, #ffffff, #bfe3ff); box-shadow: 0 4px 0 var(--ink), 0 6px 14px rgba(0,0,0,.25); font-size: 32px; line-height: 1; display: grid; place-items: center; cursor: grab; padding: 0; animation: bfBob 2.6s ease-in-out infinite; touch-action: none; }
.bomby-fab.drag .bf-bot { cursor: grabbing; animation: none; transform: scale(1.08); }
.bf-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: #5b6b80; color: #fff; font-size: 15px; font-weight: 900; line-height: 16px; padding: 0; cursor: pointer; }
.bf-say { position: absolute; bottom: 64px; left: 0; width: max-content; max-width: min(230px, 70vw); padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: #fff; border: 3px solid var(--ink); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.3; box-shadow: 0 4px 0 var(--ink); cursor: pointer; animation: popIn .25s ease-out; }
.bomby-fab.right .bf-say { left: auto; right: 0; border-radius: 14px 14px 4px 14px; }
.bf-say[hidden] { display: none; }
@keyframes bfBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-height: 500px) and (orientation: landscape) { .bomby-fab, .bf-bot { width: 46px; height: 46px; } .bf-bot { font-size: 25px; } .bf-say { bottom: 52px; } }

/* Bomby is typing… */
.hb-dots { display: inline-flex; gap: 5px; align-items: center; padding: 12px 14px; }
.hb-dots i { width: 8px; height: 8px; border-radius: 50%; background: #6b86a8; animation: hbDot 1s ease-in-out infinite; }
.hb-dots i:nth-child(2) { animation-delay: .15s; } .hb-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hbDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

/* expanded chat must never draw over the team slots (wide/tablet/Fold layouts): the room area scrolls instead */
#room.chat-big .room-main { overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 600px) { #room.chat-big .chat-log { height: min(34vh, 340px); } }
@media (min-width: 600px) and (max-height: 760px) { #room.chat-big .chat-log { height: min(28vh, 220px); } }

/* shield window: where else shards come from */
.sh-src { margin: 10px 0; padding: 10px; border-radius: 14px; background: #f3f8ff; border: 2px solid #cfe0f5; display: flex; flex-direction: column; gap: 6px; }
.sh-src > b { color: var(--ink); }
.sh-srow { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 7px 9px; border-radius: 11px; border: 2px solid #dbe7f6; background: #fff; color: var(--ink); font: inherit; font-size: 13px; line-height: 1.3; }
button.sh-srow { cursor: pointer; } button.sh-srow:active { transform: translateY(1px); }
.sh-srow > span:nth-child(2) { flex: 1; min-width: 0; }
.sh-sico { font-size: 20px; flex: none; } .sh-go { font-style: normal; font-weight: 900; color: #7d93ad; flex: none; }
.sh-srow.hot { border-color: #ffb43a; background: #fff7e3; }
.sh-live { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: #ff7a1a; border-radius: 999px; padding: 2px 7px; flex: none; }
.gc-shard { text-align: center; margin: 4px 0 0; font-size: 13px; font-weight: 700; color: #1d4b82; }
.gc-bag .gc-bagico { font-size: 34px; line-height: 1.2; }

/* Discord sign-in button (brand blurple) */
.dc-box { display: flex; flex-direction: column; align-items: center; }
.google-box:not([hidden]) + .dc-box .divider { display: none; }
.google-box:not([hidden]) + .dc-box { margin-top: 8px; }
.dc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 220px; padding: 0 18px; border: 0; border-radius: 999px; background: #5865F2; color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 3px 0 #3c45a5; }
.dc-btn:hover { background: #4752c4; } .dc-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #3c45a5; } .dc-btn:disabled { opacity: .6; }
.dc-ico { font-size: 18px; line-height: 1; }
#guestLink .dc-btn { margin: 8px auto 0; display: flex; }
.g-acct.dc .dc-btn { margin-top: 8px; width: 100%; }

/* ---------- lobby mini-games ---------- */
.mg-strip { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 12px; border: 3px solid var(--ink); border-radius: 16px; background: linear-gradient(90deg, #ffe36e, #ffb84d); color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 3px 0 var(--ink-2); text-align: left; min-height: 40px; flex: 0 0 auto; }
.mg-strip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink-2); }
.mg-s-ico { font-size: 22px; animation: mgBob 1.6s ease-in-out infinite; } .mg-s-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.15; }
.mg-s-txt b { font-size: 14px; font-weight: 900; } .mg-s-txt small { font-size: 11px; font-weight: 700; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-s-go { font-weight: 900; font-size: 14px; }
@keyframes mgBob { 50% { transform: translateY(-3px) rotate(-8deg); } }
.side-btn .mg-badge { min-width: 18px; padding: 0 4px; font-size: 10px; background: #22c55e; }
.mini-box { width: 100%; height: min(94vh, 820px); max-width: 900px !important; }
.mini-box .win-body.mg-body { flex: 1; padding: 12px; gap: 10px; overflow: hidden; }
.mg-body.hub, .mg-body.top { overflow-y: auto !important; }
.mg-today { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-radius: 14px; background: #fff; border: 2px solid #cfe3f7; }
.mg-today b { font-size: 13px; color: var(--ink); } .mg-tb { height: 8px; border-radius: 6px; background: #e6eef7; overflow: hidden; } .mg-tb i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd23f, #ff9f1a); transition: width .4s; }
.mg-today.full .mg-tb i { background: #22c55e; }
.mg-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .mg-cards { grid-template-columns: 1fr 1fr; } }
.mg-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 3px solid var(--ink); border-radius: 20px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 5px 0 var(--ink-2); overflow: hidden; }
.mg-card.spot { background: linear-gradient(135deg, #bfe9ff, #e9f7ff 60%, #fff); } .mg-card.mine { background: linear-gradient(135deg, #d9dde5, #f1f3f7 60%, #fff); }
.mg-card:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink-2); } .mg-card:disabled { opacity: .5; }
.mg-art { flex: 0 0 auto; width: 64px; height: 64px; display: grid; place-items: center; font-size: 38px; border-radius: 18px; background: #fff; border: 3px solid var(--ink); box-shadow: inset 0 -5px 0 rgba(0,0,0,.08); }
.mg-ctx { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; } .mg-ctx b { font-size: 18px; font-weight: 900; } .mg-ctx small { font-size: 12.5px; opacity: .8; line-height: 1.3; }
.mg-live { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #12804a; } .mg-live em { font-style: normal; }
.mg-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: mgPulse 1.5s infinite; }
@keyframes mgPulse { 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.mg-names { color: #4a5a78; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mg-go { flex: 0 0 auto; padding: 8px 12px; border-radius: 12px; background: var(--yellow, #ffd23f); border: 2px solid var(--ink); font-weight: 900; font-size: 14px; }
.mg-rankbtn { align-self: center; }
.mg-bar { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 36px; }
.mg-back { flex: 0 0 auto; min-width: 40px; height: 36px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font: inherit; font-weight: 900; cursor: pointer; box-shadow: 0 2px 0 var(--ink-2); }
.mg-bt { font-size: 16px; }
.mg-tabs, .ms-lv { display: flex; gap: 6px; flex-wrap: wrap; } .mg-tab { padding: 6px 12px; border: 2px solid #b9cde4; border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; color: var(--ink); } .mg-tab.on { background: var(--blue, #3fa7ff); color: #fff; border-color: var(--ink); }
.mg-rank { display: flex; flex-direction: column; gap: 6px; } .mg-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 2px solid #dbe7f3; } .mg-row.me { border-color: #ffb84d; background: #fff8e6; }
.mg-rn { width: 28px; text-align: center; font-weight: 900; } .mg-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mg-rv { font-size: 12.5px; font-weight: 800; color: #4a5a78; white-space: nowrap; }
/* spot the difference */
.sp-prog { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; } .sp-prog i { width: 12px; height: 12px; border-radius: 50%; background: #dbe7f3; border: 2px solid var(--ink); } .sp-prog i.on { background: #22c55e; }
.sp-prog b { margin-left: 4px; font-size: 13px; white-space: nowrap; }
.sp-timer { position: relative; flex: 1; height: 14px; border-radius: 8px; background: #e6eef7; border: 2px solid var(--ink); overflow: hidden; min-width: 60px; } .sp-timer i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3fd17a, #2db4ff); transition: width .25s linear; }
.sp-timer.low i { background: linear-gradient(90deg, #ff3b5c, #ff9f1a); animation: mgBlink .5s infinite alternate; } .sp-timer::after { content: attr(data-s); position: absolute; right: 6px; top: -2px; font-size: 11px; font-weight: 900; color: var(--ink); }
@keyframes mgBlink { to { opacity: .55; } }
.sp-ppl { display: flex; gap: 6px; overflow-x: auto; flex: 0 0 auto; padding-bottom: 2px; scrollbar-width: none; }
.sp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 999px; background: #fff; border: 2px solid var(--pc); font-size: 12px; white-space: nowrap; } .sp-chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--pc); } .sp-chip em { font-style: normal; font-weight: 900; background: var(--pc); color: #fff; border-radius: 8px; padding: 0 6px; } .sp-chip.me { box-shadow: 0 0 0 2px #ffd23f; }
.sp-pics { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; } .sp-pics.row { flex-direction: row; }
.sp-pic { position: relative; line-height: 0; } .sp-pic canvas { display: block; border-radius: 14px; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink-2); touch-action: manipulation; cursor: crosshair; background: #dfefff; }
.sp-float { position: absolute; transform: translate(-50%, -50%); line-height: 1; font-weight: 900; font-size: 16px; pointer-events: none; white-space: nowrap; animation: spFloat 1.3s ease-out forwards; text-shadow: 0 2px 0 #fff, 0 -1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff; }
.sp-float.good { color: #b35c00; font-size: 18px; } .sp-float.who { color: #2a3b5c; font-size: 13px; } .sp-float.bad { color: #ff2d55; font-size: 30px; animation-duration: .7s; }
@keyframes spFloat { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -160%) scale(1); } }
.sp-banner { min-width: 220px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 22px; border-radius: 20px; background: #fff; border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink-2); text-align: center; animation: popIn .25s cubic-bezier(.2,1.4,.4,1); }
.sp-banner b { font-size: 20px; } .sp-banner small { font-weight: 800; color: #b35c00; } .sp-next { font-style: normal; font-size: 12.5px; color: #4a5a78; }
.sp-hint { flex: 0 0 auto; text-align: center; font-size: 12px; color: #5a6a88; }
/* bomb sweeper (90s look: grey bevels, LED counters) */
.ms-panel { flex: 0 0 auto; align-self: center; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 6px 10px; background: #c0c4cc; border: 3px solid; border-color: #808590 #fff #fff #808590; border-radius: 6px; min-width: 240px; }
.ms-led { font-family: 'Courier New', monospace; font-weight: 900; font-size: 22px; letter-spacing: 1px; color: #ff2d2d; background: #1a0000; padding: 1px 6px; border-radius: 3px; text-shadow: 0 0 6px rgba(255,45,45,.7); }
.ms-face { width: 40px; height: 40px; font-size: 24px; line-height: 1; background: #c0c4cc; border: 3px solid; border-color: #fff #808590 #808590 #fff; cursor: pointer; padding: 0; } .ms-face:active { border-color: #808590 #fff #fff #808590; }
.ms-wrap { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.ms-wrap.shake { animation: msShake .5s; } @keyframes msShake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(6px, -4px); } 60% { transform: translate(-4px, -2px); } 80% { transform: translate(3px, 3px); } }
.ms-ppl { justify-content: center; flex-wrap: wrap; overflow: visible; } .ms-grid { position: relative; display: grid; grid-template-columns: repeat(var(--w), var(--cs, 28px)); grid-auto-rows: var(--cs, 28px); background: #9aa0aa; border: 4px solid; border-color: #808590 #fff #fff #808590; }
.ms-c { width: var(--cs, 28px); height: var(--cs, 28px); padding: 0; background: #c9cdd4; border: 3px solid; border-color: #fff #868b96 #868b96 #fff; font: 900 calc(var(--cs, 28px) * .55)/1 'Arial Black', Arial, sans-serif; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; display: grid; place-items: center; }
.ms-c.open { background: #e3e6eb; border: 1px solid #a3a8b2; cursor: default; } .ms-c.flag { font-size: calc(var(--cs, 28px) * .5); }
.ms-c.n1 { color: #1e40ff; } .ms-c.n2 { color: #0a8a2a; } .ms-c.n3 { color: #e01b1b; } .ms-c.n4 { color: #0b1f7a; } .ms-c.n5 { color: #8a1010; } .ms-c.n6 { color: #0a8a8a; } .ms-c.n7 { color: #111; } .ms-c.n8 { color: #666; }
.ms-c.ring { box-shadow: inset 0 0 0 3px var(--rc, #888); animation: msRing .9s ease-out; } @keyframes msRing { 0% { box-shadow: inset 0 0 0 4px var(--rc, #888), 0 0 0 4px var(--rc, #888); } 100% { box-shadow: inset 0 0 0 0 var(--rc, #888), 0 0 0 0 transparent; } }
.ms-grid .sp-float { z-index: 2; } .ms-end .sp-next { margin-top: 2px; }
.ms-c.bomb { font-size: calc(var(--cs, 28px) * .55); } .ms-c.hit { background: #ff3b3b; } .ms-c.wrong { background: #ffd0d0; }
.ms-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 12px; }
.ms-mode { padding: 8px 16px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; font: inherit; font-weight: 900; cursor: pointer; box-shadow: 0 3px 0 var(--ink-2); } .ms-mode.on { background: #ffe0e0; }
.ms-rew { font-weight: 900; color: #b35c00; font-size: 13px; } .ms-hint { flex: 0 0 auto; margin: 0; }
.ms-end { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 22px; background: #fff; border: 4px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink-2); text-align: center; animation: popIn .3s cubic-bezier(.2,1.4,.4,1) .35s both; }
.ms-end b { font-size: 20px; } .ms-end small { font-weight: 800; color: #4a5a78; } .ms-end.win small { color: #b35c00; }
@media (orientation: landscape) and (max-height: 560px) {
  .mg-body.mine { display: grid !important; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto 1fr; align-items: start; }
  .mg-body.mine > .ms-ppl { grid-column: 1; grid-row: 3; flex-wrap: wrap; max-width: 260px; overflow: visible; }
  .mg-body.mine > .mg-bar { grid-column: 1 / -1; }
  .mg-body.mine > .ms-panel { grid-column: 1; grid-row: 2; min-width: 0; gap: 10px; }
  .mg-body.mine > .ms-foot { grid-column: 1; grid-row: 4; flex-direction: column; align-self: start; }
  .mg-body.mine > .ms-hint { display: none; }
  .mg-body.mine > .ms-wrap { grid-column: 2; grid-row: 2 / 5; height: 100%; }
}
.dc-pop .dc-g { background: #5865F2; color: #fff; font-size: 26px; }
.dc-pop .dc-btn { align-self: center; margin-top: 4px; }
.dc-hide { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; color: #4a5a78; cursor: pointer; }
.dc-hide input { width: 18px; height: 18px; accent-color: #5865F2; }
.ann-cta.dc-btn { margin-top: 6px; }

/* sign-up picture puzzle */
.cap-row { display: flex; align-items: center; gap: 8px; }
.cap-img { width: 150px; height: 45px; border-radius: 10px; border: 2px solid #cfe3f7; background: #f4f9ff; flex: 0 0 auto; }
.cap-new { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font-size: 18px; cursor: pointer; flex: 0 0 auto; box-shadow: 0 2px 0 var(--ink-2); }
.cap-in { width: 70px !important; min-width: 0; text-align: center; font-size: 20px !important; font-weight: 900; flex: 0 0 auto; }

/* log in with other accounts */
.lg-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.google-box:not([hidden]) + .lg-box .divider { display: none; }
.lg-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
.lg-btns.lg-popbtns { margin: 4px 0; }
.lg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; min-width: 0; flex: 1 1 200px; max-width: 280px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--bg); color: var(--fg); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.28); }
.lg-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.28); } .lg-btn:disabled { opacity: .6; }
.lg-btn.sm { flex: 0 0 auto; min-height: 34px; font-size: 12.5px; padding: 0 12px; }
.lg-ico { font-size: 16px; font-weight: 900; line-height: 1; font-style: normal; }
.lg-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#guestLink .lg-btns { margin-top: 8px; }
.lg-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 12px; background: #fff; border: 2px solid #dbe7f3; }
.lg-name { display: flex; align-items: center; gap: 8px; min-width: 0; } .lg-name .lg-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; }
.lg-done { font-size: 12.5px; font-weight: 800; color: #12804a; white-space: nowrap; }
.ann-cta.lg-btn { margin-top: 6px; flex: 0 0 auto; }
.lg-btns.many { display: grid; grid-template-columns: 1fr 1fr; max-width: 420px; }
.lg-btns.many .lg-btn { max-width: none; min-height: 40px; font-size: 13.5px; }

.sp-float.lose { color: #e0002a; font-size: 18px; }
.sp-ring { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid var(--c); pointer-events: none; animation: spRing .9s ease-out forwards; }
@keyframes spRing { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
/* game update notice (spinning arrows, countdown, refresh) */
.upd-pop { z-index: 400; }
.gdlg-card.upd-card { display: flex; flex-direction: column; align-items: center; text-align: center; width: min(340px, 100%); gap: 10px; }
.upd-big { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffffff, #bfe3ff 70%); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink-2); font-size: 44px; }
.upd-spin { display: inline-block; font-style: normal; line-height: 1; animation: updSpin 1.1s linear infinite; }
@keyframes updSpin { to { transform: rotate(360deg); } }
.upd-prog { width: 100%; height: 12px; border-radius: 8px; background: #e6eef7; border: 2px solid var(--ink); overflow: hidden; } .upd-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3fd17a, #2db4ff); transition: width .9s linear; }
.upd-card .gbtn { width: 100%; }
.upd-bar, .upd-pill { position: fixed; z-index: 390; left: 50%; transform: translateX(-50%); top: calc(8px + var(--safe-t, 0px)); display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink-2); font: inherit; font-weight: 900; font-size: 13px; color: var(--ink); white-space: nowrap; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; }
.upd-bar { pointer-events: none; opacity: .92; } .upd-pill { cursor: pointer; background: linear-gradient(180deg, #ffe680, #ffc531); }
.upd-bar .upd-spin, .upd-pill .upd-spin { font-size: 16px; }
/* sweeper level picker (prices per level) */
.mg-body.minepick { overflow-y: auto !important; }
.ms-pick { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px), (orientation: landscape) and (min-width: 560px) { .ms-pick { grid-template-columns: repeat(2, 1fr); } .ms-pcard { flex-direction: column; text-align: center; } .ms-pcard .mg-ctx { align-items: center; } .ms-pcard .ms-price { flex-direction: row; flex-wrap: wrap; justify-content: center; } }
.ms-pcard { display: flex; align-items: center; gap: 12px; padding: 12px; border: 3px solid var(--ink); border-radius: 20px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 5px 0 var(--ink-2); }
.ms-pcard:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink-2); }
.ms-pcard.lv-e { background: linear-gradient(135deg, #c9f2d6, #f1fbf4 60%, #fff); } .ms-pcard.lv-m { background: linear-gradient(135deg, #ffe6a8, #fff7e0 60%, #fff); } .ms-pcard.lv-h { background: linear-gradient(135deg, #ffc2c8, #ffeef0 60%, #fff); } .ms-pcard.lv-x { background: linear-gradient(135deg, #d6c4ff, #f1ebff 60%, #fff); }
.ms-pcard .mg-art { width: 54px; height: 54px; font-size: 32px; }
.ms-price { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; }
.ms-pp { padding: 3px 9px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; font-weight: 900; font-size: 13px; white-space: nowrap; text-align: center; }
.ms-pp.good { color: #0a8a2a; } .ms-pp.bad { color: #e01b1b; } .ms-pp.gold { color: #b35c00; }
.ms-lvtab { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; padding: 4px 12px; border-radius: 14px; } .ms-lvtab small { font-size: 10.5px; font-weight: 800; opacity: .85; }
@media (orientation: landscape) and (min-width: 560px) { .ms-pick { grid-template-columns: repeat(4, 1fr); } .ms-pcard { padding: 10px 8px; gap: 8px; } }
/* snake rush */
.mg-card.snake { background: linear-gradient(135deg, #c9f0a8, #eefbe3 60%, #fff); }
@media (min-width: 980px) { .mg-cards { grid-template-columns: 1fr 1fr 1fr; } }
.sp-chip.off { opacity: .45; }
.sn-wrap { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.sn-cv { display: block; border: 4px solid var(--ink); border-radius: 10px; box-shadow: 0 5px 0 var(--ink-2); background: #aad46f; }
.sn-wrap .ms-end { z-index: 4; }
.sn-pad { flex: 0 0 auto; align-self: center; display: grid; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(2, 44px); gap: 6px; grid-template-areas: ". u ." "l d r"; }
.sn-key { border: 3px solid var(--ink); border-radius: 14px; background: linear-gradient(180deg, #ffffff, #dcecff); box-shadow: 0 4px 0 var(--ink-2); font-size: 20px; font-weight: 900; color: var(--ink); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.sn-key:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink-2); }
.sn-key.k0 { grid-area: u; } .sn-key.k1 { grid-area: r; } .sn-key.k2 { grid-area: d; } .sn-key.k3 { grid-area: l; }
.sn-foot { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; text-align: center; }
@media (pointer: fine) and (min-width: 900px) { .sn-pad { display: none; } }
@media (orientation: landscape) and (max-height: 560px) {
  .mg-body.snake { display: grid !important; grid-template-columns: minmax(170px, 240px) 1fr; grid-template-rows: auto auto minmax(0, 1fr) auto; align-items: start; min-height: 0; }
  .mg-body.snake > .mg-bar { grid-column: 1 / -1; }
  .mg-body.snake > .sn-ppl { grid-column: 1; grid-row: 2; flex-wrap: wrap; overflow: visible; }
  .mg-body.snake > .sn-pad { grid-column: 1; grid-row: 3; align-self: center; }
  .mg-body.snake > .sn-foot { grid-column: 1; grid-row: 4; flex-direction: column; }
  .mg-body.snake > .sn-wrap { grid-column: 2; grid-row: 2 / 5; min-height: 0; height: auto; align-self: stretch; }
  .mg-body.snake > .sn-ppl .sp-chip { font-size: 11px; padding: 2px 7px 2px 3px; }
}

/* rooms / chat panel: expand / shrink buttons in both top corners */
#lobby .rp-view { grid-template-columns: 38px repeat(3, minmax(0, 1fr)) 38px; align-items: center; }
#lobby .rp-view .rp-min { display: grid; place-items: center; width: 36px; height: 32px; min-height: 0; padding: 0; border-radius: 11px; background: linear-gradient(180deg, #6cc4ff, #2f9cf0); border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.45); color: #fff; cursor: pointer; transition: transform .08s; }
#lobby .rp-view .rp-min svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0 rgba(20,40,80,.35)); }
#lobby .rp-view .rp-min .rpx-close, body.rp-big #lobby .rp-view .rp-min .rpx-open { display: none; }
body.rp-big #lobby .rp-view .rp-min .rpx-close { display: block; }
body.rp-big #lobby .rp-view .rp-min { background: linear-gradient(180deg, #ffd84a, #ffb320); color: var(--ink); }
#lobby .rp-view .rp-min:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
#lobby .rp-view .rp-min:hover { filter: brightness(1.08); }

/* "both" view on phones: the chat column is narrow, so the message box keeps the room (help / Bomby buttons step aside) */
@media (max-width: 720px) {
  body.lv-both:not(.rp-big) #lobby .lc-form .qbtn, body.lv-both:not(.rp-big) #lobby .lc-form .hb-mini { display: none; }
  body.lv-both:not(.rp-big) #lobby .lc-form { gap: 4px; }
  body.lv-both:not(.rp-big) #lobby .lc-form input { min-width: 0; flex: 1 1 auto; }
  body.lv-both:not(.rp-big) #lobby .lc-form .gbtn { padding: 0 10px; flex: none; }
}

/* boss bar + mini-games strip: on phones held upright they become two small square buttons at the end of the
   "Quick play / Create room" row, so the rooms and chat get the space */
.lp-row, .lp-duo { display: contents; }
.lobby-panel .lp-duo > .raid-tile { order: 0; } .lobby-panel .lp-actions { order: 1; } .lobby-panel .lp-duo > .mg-strip { order: 2; } .lobby-panel > .room-panel { order: 3; }
@media (orientation: portrait) and (max-width: 720px) {
  #lobby .lp-row { display: flex; gap: 6px; align-items: stretch; order: 1; flex: none; min-width: 0; }
  #lobby .lp-row > .lp-actions { flex: 1 1 auto; min-width: 0; }
  #lobby .lp-duo { display: flex; gap: 6px; flex: none; }
  #lobby .lp-row .lp-actions .tile { min-width: 0; gap: 6px; padding-inline: 6px !important; }
  #lobby .lp-row .lp-actions .tile .tile-txt { min-width: 0; }
  #lobby .lp-row .lp-actions .tile strong { font-size: 14px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  #lobby .lp-row .lp-actions .tile .tile-ico { width: 26px !important; height: 26px !important; padding: 5px !important; flex: none; }
  #lobby .lp-row .lp-actions .tile.quick .tile-ico { display: none; }
  #lobby .lp-row .lp-actions .tile.quick { justify-content: center; }
  #lobby .lp-duo > .raid-tile, #lobby .lp-duo > .mg-strip { position: relative; width: 50px; min-width: 50px; min-height: 0 !important; height: auto; align-self: stretch; padding: 0 !important; justify-content: center; align-items: center; gap: 0; border-radius: 14px; overflow: visible; }
  #lobby .lp-duo > .raid-tile .rt-txt, #lobby .lp-duo > .raid-tile .rt-side { display: none !important; }
  #lobby .lp-duo > .raid-tile .rt-face { width: 36px !important; height: 36px !important; font-size: 21px !important; margin: 0; }
  #lobby .lp-duo > .raid-tile.live::after { content: ''; position: absolute; top: -4px; right: -4px; width: 13px; height: 13px; border-radius: 50%; background: #ff2d55; border: 2.5px solid #fff; box-shadow: 0 0 0 0 rgba(255,45,85,.6); animation: mgPulse 1.2s infinite; }
  #lobby .lp-duo > .mg-strip .mg-s-ico { font-size: 26px; line-height: 1; }
  #lobby .lp-duo > .mg-strip .mg-s-txt b, #lobby .lp-duo > .mg-strip .mg-s-go { display: none; }
  #lobby .lp-duo > .mg-strip .mg-s-txt { position: absolute; top: -7px; right: -7px; }
  #lobby .lp-duo > .mg-strip .mg-s-txt small { display: block; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #22c55e; color: #fff; border: 2px solid #fff; font-size: 11px; font-weight: 900; line-height: 16px; text-align: center; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
  #lobby .lp-duo > .mg-strip .mg-s-txt small:empty { display: none; }
}
/* level window: Gold level-up, the hard road note, the level road (exclusive milestone items) */
.lv-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin: 8px 0 4px; }
.lv-buy .lvb-go { min-height: 40px; padding: 0 16px; }
.lv-hardnote { margin: 4px 0; padding: 6px 10px; border-radius: 12px; background: linear-gradient(90deg, #ffe3d6, #fff3e8); color: #b3261e; font-weight: 800; font-size: 13px; text-align: center; }
.lv-road { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 6px 0 10px; }
.lr-step { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 12px; border: 2px solid #c9d8ea; background: #f5f9ff; opacity: .85; }
.lr-step b { font-size: 13px; } .lr-step small { font-size: 11.5px; color: #4a5a78; line-height: 1.3; }
.lr-step.got { border-color: #3fbf6a; background: #ecfbef; opacity: 1; }
.lr-step.hard { border-color: #ff9f6b; background: #fff4ec; }

.lr-step.got.hard { border-color: #3fbf6a; background: #ecfbef; }
.lr-step.god { grid-column: 1 / -1; border-color: #ffb300; background: linear-gradient(90deg, #fff6c8, #ffe0f0, #e0f2ff); box-shadow: 0 0 0 2px rgba(255,179,0,.25); }
.lv-row.hard .need { color: #c2410c; font-weight: 800; }
.lv-roadchip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 10px; background: linear-gradient(90deg, #ffd84a, #ffb320); color: #3a2a00; font-weight: 800; font-size: 11.5px; }
/* level 1000: the god rank next to names */
.lc-lv.god { background: linear-gradient(90deg, #ffd700, #ff3cac, #43acf7); color: #fff; border-radius: 8px; padding: 0 6px; font-weight: 900; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.shop-card { position: relative; }
.new-tag ~ .sale-tag { top: 30px; }
/* ===== level stairway: from the meadow at level 1 up through the sky, the peaks, the night and the storm to heaven ===== */
.st-open { width: 100%; margin: 6px 0 2px; min-height: 42px; }
#w-stair .st-box { width: min(760px, 100%); height: min(940px, 100%); max-height: none; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.st-tabs { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 8px 10px 0; padding: 3px; border-radius: 14px; background: var(--sky, #dfeeff); }
.st-tabs button { min-height: 34px; border: 0; border-radius: 11px; background: transparent; font: inherit; font-weight: 900; color: var(--navy-2, #2a3b5c); cursor: pointer; }
.st-tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 2px 0 #b9d7f0; color: var(--ink); }
.st-head { flex: none; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; margin: 8px 10px; padding: 8px 10px; border-radius: 18px; background: linear-gradient(135deg, #ffffff, #eaf5ff); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink-2); }
.st-ava { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); background: #dfefff; object-fit: cover; box-shadow: 0 0 0 3px #ffd84a; }
.st-htxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .st-htxt b { font-size: 18px; } .st-htxt small { font-weight: 800; color: #4a5a78; } .st-htxt .expbar { margin-top: 2px; }
.st-hside { display: flex; flex-wrap: wrap; gap: 4px; }
.st-chip { padding: 2px 9px; border-radius: 999px; background: #e6f2ff; border: 2px solid #9cc8f0; font-weight: 800; font-size: 12px; white-space: nowrap; }
.st-chip.gift { background: linear-gradient(90deg, #fff1b8, #ffd84a); border-color: #e0a100; }
.st-view { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0 10px 10px; border-radius: 20px; border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); scroll-behavior: auto; overscroll-behavior: contain; }
/* the sky changes with altitude: meadow → day sky → sunset peaks → night → storm → golden heaven */
.st-sky { position: relative; width: 100%; background: linear-gradient(0deg, #79c95b 0, #a8e07f 1.4%, #bfe9ff 2.2%, #8fd3ff 20%, #6fb6ff 27%, #ffc28a 36%, #ff8f6b 44%, #6a5acd 52%, #2a2468 60%, #1a1446 67%, #3a0f2e 72%, #6b1020 80%, #b0262a 88%, #ffb35c 93.5%, #fff1c8 96.5%, #ffffff 100%); }
.st-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.st-cloud { position: absolute; width: 120px; height: 38px; border-radius: 30px; background: rgba(255,255,255,.85); transform: scale(var(--s, 1)); filter: blur(.3px); animation: stDrift 70s linear infinite; box-shadow: 30px -14px 0 -2px rgba(255,255,255,.85), 62px -4px 0 -6px rgba(255,255,255,.8); opacity: .8; }
@keyframes stDrift { from { translate: -30vw 0; } to { translate: 60vw 0; } }
.st-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: stTwinkle 3.5s ease-in-out infinite; }
@keyframes stTwinkle { 50% { opacity: .2; transform: scale(.6); } }
.st-ember { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(#fff3b0, #ff7a1a 60%, transparent 70%); animation: stEmber 6s ease-in infinite; }
@keyframes stEmber { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-160px) translateX(20px); opacity: 0; } }
.st-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.st-path polyline { fill: none; stroke: rgba(255,255,255,.55); stroke-width: .9; stroke-dasharray: 2 2.6; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.st-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: radial-gradient(120% 80% at 50% 100%, #5fb648 0, #79c95b 55%, transparent 56%), linear-gradient(0deg, #4e9e3a, #79c95b); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; }
.st-ground b { padding: 4px 12px; border-radius: 12px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink-2); font-size: 13px; }
.st-zone { position: absolute; left: 6px; z-index: 3 !important; display: flex; flex-direction: column; padding: 4px 8px; border-radius: 12px; background: rgba(255,255,255,.88); border: 2px solid rgba(38,50,74,.5); box-shadow: 0 3px 8px rgba(0,0,0,.15); z-index: 1; pointer-events: none; }
.st-zone b { font-size: 12px; } .st-zone small { font-size: 10.5px; color: #4a5a78; font-weight: 700; }
.st-zone.z-night, .st-zone.z-storm { background: rgba(20,16,50,.75); color: #fff; border-color: rgba(255,255,255,.4); } .st-zone.z-night small, .st-zone.z-storm small { color: #ffd9a8; }
/* the stone steps (3D: a lighter top face and a deeper front) */
.st-step { position: absolute; z-index: 2; width: 96px; height: 40px; translate: -50% 0; border: 0; padding: 0; background: none; cursor: pointer; font: inherit; }
.st-step .st-top { position: absolute; left: 0; right: 0; top: 0; height: 14px; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, #ffffff, #dfe7f1); border: 2.5px solid #26324a; border-bottom: 0; }
.st-step .st-face { position: absolute; left: 0; right: 0; top: 11px; bottom: 0; display: grid; place-items: center; border-radius: 4px 4px 12px 12px; background: linear-gradient(180deg, #c8d3e2, #9fb0c8); border: 2.5px solid #26324a; font-size: 12px; font-weight: 900; color: #26324a; box-shadow: 0 5px 0 rgba(20,30,60,.35); }
.st-step.z-meadow .st-top { background: linear-gradient(180deg, #d9ffc4, #9fe07a); } .st-step.z-meadow .st-face { background: linear-gradient(180deg, #b78a5c, #8a6038); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.st-step.z-sky .st-top { background: linear-gradient(180deg, #ffffff, #e2f3ff); } .st-step.z-sky .st-face { background: linear-gradient(180deg, #e8f5ff, #b9dcf6); }
.st-step.z-peak .st-top { background: linear-gradient(180deg, #fff7ee, #ffe0c2); } .st-step.z-peak .st-face { background: linear-gradient(180deg, #d9a27a, #a86f4b); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.st-step.z-night .st-top { background: linear-gradient(180deg, #b9b2ff, #7e74e0); } .st-step.z-night .st-face { background: linear-gradient(180deg, #4b3fa8, #2e2672); color: #fff; }
.st-step.z-storm .st-top { background: linear-gradient(180deg, #ffcf6b, #ff7a1a); border-color: #1a0a0a; } .st-step.z-storm .st-face { background: linear-gradient(180deg, #3a1a1f, #1a0a0f); color: #ffcf6b; border-color: #1a0a0a; box-shadow: 0 5px 0 rgba(0,0,0,.5), 0 0 12px rgba(255,90,30,.55); }
.st-step.got .st-face::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); background-size: 200% 100%; animation: stShine 3s linear infinite; }
@keyframes stShine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.st-step.got .st-top { box-shadow: inset 0 -3px 0 rgba(255,216,74,.9); }
.st-step.big { width: 118px; } .st-step.big .st-face { font-size: 13px; }
.st-step.gift .st-chest { position: absolute; top: -20px; right: -10px; font-size: 22px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); animation: stBob 1.8s ease-in-out infinite; }
.st-step:not(.got).gift .st-chest { filter: grayscale(.4) drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
@keyframes stBob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.st-step:active { translate: -50% 2px; }
.st-step.here { z-index: 4; } .st-step.here .st-top, .st-step.here .st-face { border-color: #ffb300; box-shadow: 0 0 0 3px #ffd84a, 0 0 20px 4px rgba(255,216,74,.7); }
.st-me { position: absolute; bottom: -6px; display: flex; flex-direction: column; align-items: center; gap: 2px; animation: stHop 1.4s ease-in-out infinite; pointer-events: none; }
.st-me img { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; background: #dfefff; object-fit: cover; box-shadow: 0 0 0 3px #ffb300, 0 6px 10px rgba(0,0,0,.3); }
.st-me em { font-style: normal; padding: 2px 8px; border-radius: 10px; background: #ffd84a; border: 2px solid var(--ink); font-size: 11px; font-weight: 900; white-space: nowrap; }
.st-me.side-l { right: calc(100% + 6px); } .st-me.side-r { left: calc(100% + 6px); }
@keyframes stHop { 50% { transform: translateY(-6px); } }
/* heaven at the top */
.st-heaven { position: absolute; left: 0; right: 0; top: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 40px; overflow: hidden; }
.st-rays { position: absolute; left: 50%; top: 150px; width: 900px; height: 900px; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, rgba(255,236,170,.55) 0 6deg, transparent 6deg 18deg); border-radius: 50%; animation: stSpin 40s linear infinite; mask: radial-gradient(circle, #000 15%, transparent 60%); -webkit-mask: radial-gradient(circle, #000 15%, transparent 60%); }
@keyframes stSpin { to { rotate: 360deg; } }
.st-halo { position: absolute; left: 50%; top: 150px; width: 260px; height: 260px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,226,140,.6) 45%, transparent 70%); }
.st-gate { position: relative; z-index: 2; width: 200px; height: 170px; margin-top: 10px; border: 0; background: none; cursor: pointer; }
.st-gpost { position: absolute; bottom: 0; width: 30px; height: 130px; border-radius: 10px 10px 4px 4px; background: linear-gradient(90deg, #fff6d6, #ffd84a 50%, #e0a100); border: 3px solid #8a5a00; box-shadow: 0 0 14px rgba(255,216,74,.9); }
.st-gpost.l { left: 18px; } .st-gpost.r { right: 18px; }
.st-garch { position: absolute; left: 10px; right: 10px; top: 14px; height: 74px; border: 12px solid #ffd84a; border-bottom: 0; border-radius: 100px 100px 0 0; box-shadow: 0 0 18px rgba(255,216,74,.9), inset 0 0 12px rgba(255,255,255,.8); outline: 3px solid #8a5a00; outline-offset: -1px; }
.st-gcrown { position: absolute; left: 50%; top: -18px; translate: -50% 0; font-size: 40px; filter: drop-shadow(0 0 10px #ffd84a); animation: stBob 2.4s ease-in-out infinite; }
.st-htitle { position: relative; z-index: 2; margin-top: 6px; font-size: 26px; font-weight: 900; color: #7a4a00; text-shadow: 0 2px 0 #fff, 0 0 18px #ffd84a; letter-spacing: 1px; }
.st-hsub { position: relative; z-index: 2; font-weight: 800; color: #8a5a00; }
.st-hcloud { position: absolute; z-index: 1; bottom: 0; width: 240px; height: 90px; border-radius: 60px; background: #fff; box-shadow: 60px -30px 0 -6px #fff, 120px -6px 0 -14px #fff, -50px -14px 0 -12px #fff; opacity: .97; }
.st-hcloud.c0 { left: -60px; bottom: 30px; } .st-hcloud.c1 { left: 18%; bottom: -20px; } .st-hcloud.c2 { left: 46%; bottom: 10px; } .st-hcloud.c3 { right: -80px; bottom: -10px; }
.st-hcloud.c4 { left: 4%; bottom: 150px; transform: scale(.6); opacity: .8; } .st-hcloud.c5 { right: 2%; bottom: 190px; transform: scale(.55); opacity: .8; } .st-hcloud.c6 { left: 60%; bottom: 120px; transform: scale(.45); opacity: .7; }
.st-heaven .st-me.god { position: relative; left: auto; bottom: auto; translate: none; margin-top: 6px; z-index: 2; }
.st-heaven.reached .st-garch, .st-heaven.reached .st-gpost { animation: stGlow 1.6s ease-in-out infinite; }
@keyframes stGlow { 50% { box-shadow: 0 0 30px #fff3b0, 0 0 50px rgba(255,216,74,.9); } }
/* the step sheet */
.st-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; max-height: 70%; z-index: 10; display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 -6px 24px rgba(0,0,0,.3), 0 5px 0 var(--ink-2); animation: stUp .25s cubic-bezier(.2,1.2,.4,1); overflow: hidden; }
@keyframes stUp { from { transform: translateY(40%); opacity: 0; } }
.st-shead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; color: #fff; background: linear-gradient(90deg, #2f86e8, #43acf7); font-size: 15px; }
.st-shead.z-meadow { background: linear-gradient(90deg, #3fbf6a, #79c95b); } .st-shead.z-peak { background: linear-gradient(90deg, #ff8f6b, #ffc28a); } .st-shead.z-night { background: linear-gradient(90deg, #2a2468, #6a5acd); } .st-shead.z-storm { background: linear-gradient(90deg, #6b1020, #ff7a1a); } .st-shead.z-heaven { background: linear-gradient(90deg, #ffb300, #ffd84a); color: #5a3a00; }
.st-sx { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.18); color: #fff; font-weight: 900; cursor: pointer; }
.st-slist { overflow-y: auto; padding: 6px 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.st-srow { display: grid; grid-template-columns: 74px 1fr; grid-template-areas: "l c" "l w"; gap: 2px 8px; align-items: center; padding: 6px 8px; border-radius: 12px; background: #f4f8fd; border: 2px solid #dce8f5; }
.st-srow .st-sl { grid-area: l; display: flex; flex-direction: column; } .st-srow .st-sl b { font-size: 14px; } .st-srow .st-sl small { font-size: 10.5px; color: #6a7a96; font-weight: 700; }
.st-srow .chips { grid-area: c; } .st-srow .st-when { grid-area: w; font-size: 11px; color: #6a7a96; font-weight: 700; }
.st-srow.got { background: #ecfbef; border-color: #b6e8c2; } .st-srow.now { border-color: #ffb300; box-shadow: 0 0 0 2px #ffd84a; }
/* the EXP diary */
.st-log { flex: 1; min-height: 0; overflow-y: auto; margin: 0 10px 10px; padding: 4px; display: flex; flex-direction: column; gap: 6px; }
.lg-day { position: sticky; top: 0; z-index: 1; align-self: center; padding: 3px 12px; border-radius: 999px; background: #26324a; color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.lg-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 8px; border-radius: 16px; background: #fff; border: 2.5px solid #d7e5f4; box-shadow: 0 3px 0 #d7e5f4; }
.lg-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; background: linear-gradient(180deg, #e8f4ff, #cfe6fb); border: 2px solid #9cc8f0; }
.src-adventure .lg-ico { background: linear-gradient(180deg, #ecfbef, #c7efd2); border-color: #8fd6a2; } .src-raid .lg-ico { background: linear-gradient(180deg, #ffe9e3, #ffc6b5); border-color: #ff9f80; } .src-buy .lg-ico { background: linear-gradient(180deg, #fff6d6, #ffe08a); border-color: #e0a100; }
.lg-mid { min-width: 0; display: flex; flex-direction: column; gap: 3px; } .lg-mid > b { font-size: 14px; }
.lg-tags { display: flex; flex-wrap: wrap; gap: 4px; } .lg-tag { padding: 1px 7px; border-radius: 8px; background: #eef4fb; font-size: 11px; font-weight: 800; } .lg-tag.lg-won { background: #fff1b8; color: #8a5a00; } .lg-tag.lg-lost { background: #e6eef7; color: #4a5a78; }
.lg-pp { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; } .lg-pp small { font-size: 11px; color: #6a7a96; font-weight: 700; margin-inline-end: 2px; }
.lg-p { padding: 1px 6px; border-radius: 7px; background: #ffe6e6; color: #a32020; font-size: 11px; font-weight: 700; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lg-p.mate { background: #e3f2ff; color: #1f5fa8; }
.lg-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; } .lg-exp { color: #1f9d55; font-size: 15px; white-space: nowrap; } .lg-right small { font-size: 11px; color: #6a7a96; font-weight: 700; }
.lg-up { padding: 1px 7px; border-radius: 8px; background: linear-gradient(90deg, #ffd84a, #ffb320); border: 1.5px solid #8a5a00; font-size: 11px; font-weight: 900; white-space: nowrap; animation: stBob 2s ease-in-out infinite; }
.lg-empty { margin: 30px auto; max-width: 320px; text-align: center; padding: 16px; border-radius: 16px; background: #f4f8fd; border: 2px dashed #b9d7f0; font-weight: 700; color: #4a5a78; }
.lg-more { align-self: center; margin: 6px 0; }
@media (orientation: landscape) and (max-height: 560px) { .st-head { margin: 4px 10px; padding: 4px 8px; } .st-ava { width: 38px; height: 38px; } .st-htxt b { font-size: 15px; } .st-tabs { margin-top: 4px; } .st-tabs button { min-height: 28px; } }
@media (prefers-reduced-motion: reduce) { .st-cloud, .st-star, .st-ember, .st-rays, .st-me, .st-chest, .lg-up { animation: none !important; } }
.st-htxt .expbar { flex: none; height: 12px; width: 100%; }
/* stairway in a short landscape screen: header on the left, the climb on the right */
@media (orientation: landscape) and (max-height: 600px) {
  #w-stair .st-box { width: min(980px, 100%); display: grid; grid-template-columns: minmax(200px, 32%) 1fr; grid-template-rows: auto auto 1fr; }
  #w-stair .st-box > .win-title { grid-column: 1 / -1; }
  #w-stair .st-tabs { grid-column: 1; grid-row: 2; margin-inline-end: 0; }
  #w-stair .st-head { grid-column: 1; grid-row: 3; align-self: start; grid-template-columns: auto 1fr; margin-inline-end: 0; }
  #w-stair .st-hside { grid-column: 1 / -1; }
  #w-stair .st-view, #w-stair .st-log { grid-column: 2; grid-row: 2 / 4; margin-top: 8px; min-height: 0; }
  #w-stair .st-sheet { left: calc(32% + 10px); max-height: 82%; }
}
.st-gate::before { content: ''; position: absolute; left: 48px; right: 48px; top: 34px; bottom: 0; border-radius: 70px 70px 0 0; background: radial-gradient(ellipse at 50% 35%, #fff 0, #fff8dc 45%, rgba(255,226,140,.5) 100%); box-shadow: 0 0 34px 8px rgba(255,243,176,.9); animation: stGlow 2.4s ease-in-out infinite; }
.st-heaven::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(2px 2px at 12% 20%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 82% 14%, #fff 50%, transparent 51%), radial-gradient(3px 3px at 70% 40%, #ffe27a 50%, transparent 51%), radial-gradient(2px 2px at 25% 48%, #ffe27a 50%, transparent 51%), radial-gradient(3px 3px at 90% 60%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 8% 66%, #fff 50%, transparent 51%); animation: stTwinkle 3s ease-in-out infinite; }
.st-heaven .st-me.god { position: absolute; top: 128px; left: 50%; bottom: auto; translate: -50% 0; margin: 0; z-index: 3; } .st-heaven .st-me.god img { width: 58px; height: 58px; box-shadow: 0 0 0 4px #ffd84a, 0 0 26px 8px rgba(255,236,150,.95); }
.ltour .stt-step { display: inline-block; margin-bottom: 6px; padding: 1px 9px; border-radius: 999px; background: #ffd84a; border: 2px solid var(--ink); font-size: 12px; }
.ltour.st-tour { z-index: 95; }
/* stairway shortcuts: a chip in the lobby and a small button next to the level in Character */
.st-lchip, .st-pchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--ink); background: linear-gradient(180deg, #fff6c9, #ffd84a); box-shadow: 0 2px 0 var(--ink); font: inherit; font-weight: 900; font-size: 11.5px; color: var(--ink); white-space: nowrap; cursor: pointer; }
.st-lchip:active, .st-pchip:active { transform: translateY(2px); box-shadow: none; }
.st-pchip { flex: none; font-size: 12px; padding: 4px 10px; }
.prof-head .lvrow { flex-wrap: wrap; }
/* rooms / chat panel: small size (left corner shrinks, right corner grows) */
#lobby .rp-view .rp-min.l .rpx-open, #lobby .rp-view .rp-min.r .rpx-close { display: none !important; }
#lobby .rp-view .rp-min.l .rpx-close, #lobby .rp-view .rp-min.r .rpx-open { display: block !important; }
#lobby .rp-view .rp-min:disabled { opacity: .35; filter: grayscale(.6); cursor: default; }
body.rp-small #lobby .lobby-panel { top: auto !important; }
body.rp-small #lobby .room-panel { flex: none; height: clamp(150px, 27vh, 240px); gap: 4px; padding-block: 6px; }
body.rp-small #lobby .rp-filter, body.rp-small #lobby .rp-status, body.rp-small #lobby .rp-head .rp-tip { display: none !important; }
@media (orientation: landscape) and (max-height: 560px) { body.rp-small #lobby .room-panel { height: clamp(110px, 34vh, 170px); } }
.raid-res .raid-top { max-height: 128px; overflow-y: auto; }
@media (max-height: 520px) { .raid-res .raid-top, .raid-res .chest-out .muted, .raid-res .chest-out small, .raid-res > p.muted { display: none !important; } .raid-res .gdlg-vis { transform: scale(.8); margin-block: -10px; } }
/* short or near-square screens (foldables opened, tablets in landscape, small laptops): a window scrolls as one page
   instead of a small inner box under a tall header (on the Fold the shop items were stuck in a strip at the bottom) */
@media (max-height: 1000px) {
  #w-shop .win-body, #w-missions .win-body, #w-guide .win-body, #w-announce .win-body { overflow-y: auto; overscroll-behavior: contain; }
  .shop-pane, .ms-pane, .guide, .ann-list { max-height: none; overflow: visible; }
}
@media (max-height: 1000px) { .lv-table, .mode-grid, .help-list, .tk-msgs { max-height: none; overflow: visible; } }
/* TrueMoney Wallet top-up */
.gbtn.st-tw { background: linear-gradient(180deg, #ff9a3c, #f26b1d); color: #fff; }
.shop-topups { flex-wrap: wrap; }
.tw-hero .tw-logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(180deg, #ff9a3c, #f26b1d); font-size: 30px; border: 3px solid var(--ink); }
.tw-hero .tw-how { margin: 4px 0 8px; font-size: 13px; font-weight: 700; color: #4a5a78; }
.tw-wallet { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-top: 8px; border-radius: 16px; background: #fff7ee; border: 2.5px solid #f2b37a; }
.tw-wallet .tw-info { display: flex; flex-direction: column; min-width: 0; }
.tw-wallet .tw-info small { font-size: 11px; font-weight: 800; color: #a5541a; }
.tw-wallet .tw-info .acc { font-size: 20px; letter-spacing: .5px; }
.tw-wallet .tw-name { font-size: 12px; font-weight: 700; color: #4a5a78; }
.tw-wallet .tw-cp { flex: none; min-width: 52px; font-size: 20px; } .tw-wallet .tw-info .acc { white-space: nowrap; font-size: clamp(16px, 5vw, 20px); }
/* top-up methods pop-up: each way to pay is tappable */
.pay-row.tap { position: relative; cursor: pointer; padding-inline-end: 38px; transition: transform .12s, box-shadow .12s; }
.pay-row.tap:hover { box-shadow: 0 0 0 3px #9cc8f0; }
.pay-row.tap:active { transform: translateY(2px) scale(.99); }
.pay-row .pay-go { position: absolute; inset-inline-end: 12px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #2f86e8; color: #fff; font-weight: 900; font-size: 18px; line-height: 1; }
.help-row.soon { opacity: .6; cursor: default; filter: grayscale(.3); }
/* TrueMoney Wallet logo */
.tw-mark { display: inline-block; width: 40px; height: 40px; object-fit: contain; vertical-align: middle; }
.tw-mark.sm { width: 20px; height: 20px; margin-top: -2px; }
.hr-ico .tw-mark, .pay-ico .tw-mark { width: 100%; height: 100%; max-width: 44px; max-height: 44px; }
.help-row.soon .tw-mark { filter: grayscale(.6); opacity: .65; }
.tw-hero .tw-logo { background: #fff !important; padding: 6px; }
.tw-hero .tw-logo .tw-mark { width: 100%; height: 100%; }
.gbtn.st-tw { background: linear-gradient(180deg, #ffffff, #fff1e4) !important; color: #e8231f !important; }
/* first top-up from a small amount */
.trial-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px 12px; margin-top: 10px; border-radius: 20px; text-align: center;
  background: linear-gradient(135deg, #fff6d6, #ffe08a 60%, #ffd04d); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.trial-card .tc-ribbon { position: absolute; top: -13px; left: 50%; translate: -50% 0; padding: 3px 14px; border-radius: 999px; background: #e8231f; color: #fff; font-weight: 900; font-size: 12px; border: 2px solid var(--ink); white-space: nowrap; }
.trial-card .tc-title { font-size: 17px; }
.trial-card .tc-deal { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.trial-card .tc-pay { font-size: 26px; color: #12325a; }
.trial-card .tc-arrow { font-size: 22px; color: #a5541a; }
.trial-card .tc-get { font-size: 26px; color: #c2410c; text-shadow: 0 2px 0 #fff; }
.trial-card small { font-weight: 700; color: #5a3a00; font-size: 12px; }
/* comeback bonus bar on the top-up page */
.nudge-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 14px; background: linear-gradient(90deg, #ffe4e1, #fff1b8); border: 2.5px solid #e8231f; font-size: 13px; animation: dockHot 1.6s ease-in-out infinite; }
/* save-your-progress pop-up */
.save-pop .sv-hero { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px; border-radius: 18px; background: linear-gradient(180deg, #fff6d6, #ffe08a); border: 2.5px solid #e0a100; }
.save-pop .sv-gift { font-size: 44px; animation: stBob 1.6s ease-in-out infinite; }
.save-pop .sv-got { display: flex; flex-direction: column; gap: 2px; font-size: 16px; text-align: start; }
.save-pop .sv-body { margin: 6px 0 0; font-weight: 700; }
.save-pop .sv-btns { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
.save-pop .sv-btns .g-btn-slot { display: flex; justify-content: center; }
.save-pop .sv-lg { display: flex; flex-direction: column; gap: 6px; }
.save-pop .sv-lg.many { display: grid; grid-template-columns: 1fr 1fr; }
.save-pop .sv-reg { width: 100%; }
.save-pop .sv-lg.many > * { min-width: 0; font-size: 14px; padding-inline: 6px; gap: 6px; } .save-pop .sv-lg.many > * > :not(:first-child) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* try-on: tap effects (sparkles from the card, name + price floating over the character for ~1s) */
.vw-chip .price small.thb { display: none; }
.vw-spark { position: fixed; z-index: 9999; pointer-events: none; font-size: 18px; transform: translate(-50%, -50%); animation: vwSpark .85s ease-out forwards; }
@keyframes vwSpark { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); } 60% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.15) rotate(40deg); } }
.vw-stage { position: relative; }
.vw-pop { position: absolute; left: 50%; top: 30%; z-index: 5; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 18px 12px; min-width: 150px; max-width: 86%;
  border-radius: 20px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink), 0 10px 24px rgba(0,0,0,.25); text-align: center;
  animation: vwPop 1.6s cubic-bezier(.2,.9,.3,1.2) forwards; }
.vw-pop.paid { background: linear-gradient(180deg, #fff8d8, #ffe27a); }
.vw-pop .vp-name { font-size: 15px; font-weight: 900; color: var(--navy-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-pop .vp-price { position: static; display: inline-flex; align-items: center; gap: 4px; font-size: 24px; font-weight: 900; color: var(--ink); background: none; border: 0; padding: 0; }
.vw-pop .vp-price svg { width: 24px; height: 24px; }
.vw-pop .vp-price small.thb { display: inline; font-size: 14px; }
.vw-pop .vp-own { font-weight: 800; color: #15803d; }
@keyframes vwPop { 0% { opacity: 0; transform: translate(-50%, 30px) scale(.5); } 14% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 22% { transform: translate(-50%, 0) scale(1); } 78% { opacity: 1; transform: translate(-50%, -8px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60px) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .vw-spark { display: none; } }
/* duel challenge: waiting → accepted / declined / no answer */
.duel-wait { text-align: center; }
.duel-wait .dw-vs { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 6px; }
.duel-wait .dw-vs .pfp { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--ink); background: #e8f3ff; transition: filter .3s, transform .3s; }
.duel-wait .dw-me { animation: dwL 1.1s ease-in-out infinite; }
.duel-wait .dw-them { animation: dwR 1.1s ease-in-out infinite; }
.duel-wait .dw-swords { font-size: 36px; animation: dwClash 1.1s ease-in-out infinite; filter: drop-shadow(0 3px 0 rgba(0,0,0,.2)); }
@keyframes dwL { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(8px) rotate(4deg); } }
@keyframes dwR { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(-8px) rotate(-4deg); } }
@keyframes dwClash { 0%, 100% { transform: scale(1) rotate(0); } 45% { transform: scale(1.35) rotate(-12deg); } 55% { transform: scale(1.15) rotate(8deg); } }
.duel-wait .dw-text { font-weight: 800; min-height: 2.6em; }
.duel-wait .dw-dots::after { content: ''; display: inline-block; width: 1.4em; text-align: start; animation: dwDots 1.2s steps(4) infinite; }
@keyframes dwDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.duel-wait .gdlg-btns { justify-content: center; }
.duel-wait .dw-bar { align-self: stretch; width: auto; height: 10px; border-radius: 6px; background: #dfe9f4; border: 2px solid var(--ink); overflow: hidden; margin: 4px 6px 6px; }
.duel-wait .dw-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff6b6b, #ffb347); transform-origin: left; animation: dwBar linear forwards; }
[dir="rtl"] .duel-wait .dw-bar i { transform-origin: right; }
@keyframes dwBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.duel-wait.ok .gdlg-ribbon { background: linear-gradient(180deg, #4ade80, #16a34a); }
.duel-wait.ok .dw-vs .pfp, .duel-wait.ok .dw-swords { animation: none; }
.duel-wait.ok .dw-swords { animation: dwBoom .6s ease-out; font-size: 44px; }
.duel-wait.ok .dw-them { box-shadow: 0 0 0 4px #4ade80, 0 0 24px #4ade80; }
.duel-wait.ok .dw-text { color: #15803d; font-size: 1.08em; }
@keyframes dwBoom { 0% { transform: scale(.3); } 60% { transform: scale(1.5); } 100% { transform: scale(1); } }
.duel-wait .dw-spark { position: absolute; left: 50%; top: 50%; font-size: 18px; pointer-events: none; animation: dwSpark .9s ease-out forwards; }
@keyframes dwSpark { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2); } }
.duel-wait.no .gdlg-ribbon { background: linear-gradient(180deg, #94a3b8, #64748b); }
.duel-wait.no .dw-vs .pfp, .duel-wait.no .dw-swords { animation: none; }
.duel-wait.no .dw-them.sad { filter: grayscale(1) brightness(.9); transform: rotate(-8deg); }
.duel-wait.no { animation: dwShake .45s ease-in-out; }
@keyframes dwShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 50% { transform: translateX(7px); } 75% { transform: translateX(-4px); } }
@media (prefers-reduced-motion: reduce) { .duel-wait *, .duel-wait { animation: none !important; } }
/* bot guild answered my join request */
.gbot-ans { text-align: center; }
.gbot-ans .gb-top { display: flex; align-items: flex-start; gap: 10px; margin: 12px 4px 4px; text-align: start; }
.gbot-ans .gb-top .pfp { width: 60px; height: 60px; flex: none; border-radius: 50%; border: 3px solid var(--ink); background: #e8f3ff; }
.gbot-ans .gb-bubble { position: relative; flex: 1; padding: 8px 12px; border-radius: 16px; background: #f1f6fc; border: 2px solid #c9d8e8; font-weight: 700; display: flex; flex-direction: column; gap: 2px; }
.gbot-ans .gb-bubble b { font-size: 12px; color: var(--navy-2); }
.gbot-ans .gb-bubble::before { content: ''; position: absolute; inset-inline-start: -9px; top: 18px; border: 8px solid transparent; border-inline-end-color: #c9d8e8; border-inline-start: 0; }
.gbot-ans.ok .gdlg-ribbon { background: linear-gradient(180deg, #4ade80, #16a34a); }
.gbot-ans.ok .gb-top .pfp { box-shadow: 0 0 0 4px #4ade80; }
.gbot-ans.no .gdlg-ribbon { background: linear-gradient(180deg, #94a3b8, #64748b); }
.g-minlv { display: inline-block; margin-top: 2px; font-size: 11px; font-weight: 800; color: #b45309; }
.g-minlv.ok { color: #15803d; }
/* crypto top-up history rows (clear status pill, amount first) */
.plist .uo-hist { width: 100%; border: 2px solid #dbe7f3; background: #fff; border-radius: 16px; padding: 10px 12px; gap: 10px; box-shadow: 0 3px 0 #dbe7f3; }
.plist .uo-hist:active { transform: translateY(2px); box-shadow: 0 1px 0 #dbe7f3; }
.plist .uo-hist .uo-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.plist .uo-hist .uo-amt { font-size: 17px; font-weight: 900; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist .uo-hist .uo-amt em { font-style: normal; font-size: 13px; color: var(--navy-2); }
.plist .uo-hist .uo-to { font-size: 13px; font-weight: 800; color: #15803d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist .uo-hist .uo-net { margin: 0; font-size: 11px; color: var(--navy-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist .uo-hist .uo-side { display: flex; align-items: center; gap: 6px; flex: none; }
.plist .uo-hist .uo-pill { padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; white-space: nowrap; background: #e3ebf4; color: var(--navy-2); border: 2px solid transparent; }
.plist .uo-hist .uo-chev { font-size: 20px; font-weight: 900; color: #9db3cc; }
.plist .uo-hist.st-approved .uo-pill { background: #dcfce7; color: #15803d; border-color: #86efac; }
.plist .uo-hist.st-review .uo-pill { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.plist .uo-hist.st-rejected .uo-pill { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.plist .uo-hist.st-cancelled { background: #f7f9fc; }
.plist .uo-hist.st-cancelled .uo-pill { background: #eef2f7; color: #64748b; border-color: #cbd5e1; }
.plist .uo-hist.st-cancelled .uo-to { color: #94a3b8; text-decoration: line-through; }
.plist .uo-hist.st-cancelled .uo-amt { color: #64748b; }
.cr-ic.sm { width: 32px; height: 32px; font-size: 17px; flex: none; }
/* crypto amount: whole coins only, warning when a dot is typed */
.ua-pop .ua-row.bad .ua-in { border-color: #ef4444; background: #fff5f5; }
.ua-pop .ua-warn { display: flex; flex-direction: column; gap: 3px; margin: 8px 2px 0; padding: 9px 12px; border-radius: 14px; background: #fff7ed; border: 2px solid #fb923c; color: #9a3412; text-align: start; font-size: 13px; font-weight: 700; line-height: 1.45; }
.ua-pop .ua-warn b { font-size: 14px; color: #c2410c; }
.ua-pop .ua-warn.shake { animation: dwShake .45s ease-in-out; }
/* lobby chip: weekly top-up streak */
.stk-chip { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; margin-inline-start: 4px; padding: 2px 8px; border-radius: 999px; border: 2px solid var(--ink); background: #fff1e0; font-weight: 800; font-size: 10.5px; color: var(--ink); white-space: nowrap; cursor: pointer; }
.stk-chip b { font-size: 11px; } .stk-chip small { font-size: 10px; font-weight: 800; }
.stk-chip.on { background: #ffe7c2; }
.stk-chip.warn { background: #ffedd5; color: #c2410c; animation: dockHot 1.2s ease-in-out infinite; }
.stk-chip.ready { background: #dcfce7; color: #15803d; animation: dockHot 1.2s ease-in-out infinite; }
.stk-chip .stk-fire { display: inline-block; animation: stkFire 1.4s ease-in-out infinite; }
@keyframes stkFire { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(-6deg); } }
.wb-bar { background: linear-gradient(90deg, #fde2f3, #fff1d6); border-color: #f472b6; }
/* lucky wheel */
.wh-chip { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; margin-inline-start: 4px; padding: 2px 8px; border-radius: 999px; border: 2px solid var(--ink); background: linear-gradient(90deg, #fff3b0, #ffd6e8); font-weight: 800; font-size: 10.5px; color: var(--ink); white-space: nowrap; cursor: pointer; animation: dockHot 1.4s ease-in-out infinite; }
.wh-chip .wh-ico { display: inline-block; animation: whSpinIco 3s linear infinite; }
@keyframes whSpinIco { to { transform: rotate(360deg); } }
.wh-pop { text-align: center; }
.wh-pop .wh-wrap { position: relative; width: min(280px, 72vw); margin: 16px auto 6px; }
.wh-pop .wh-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 0 rgba(29,53,87,.25)); }
.wh-pop .wh-rot { transition: transform 4.2s cubic-bezier(.12,.8,.18,1); transform-origin: 0 0; }
.wh-pop .wh-txt { font-size: 14px; font-weight: 900; fill: #1d3557; }
.wh-pop .wh-txt.jp { font-size: 15px; fill: #b91c1c; }
.wh-pop .wh-pin { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 30px; color: #e63946; text-shadow: 0 2px 0 #1d3557; }
.wh-pop .wh-left { font-weight: 800; margin: 6px 0 0; }
.wh-pop .wh-res { min-height: 1.6em; font-size: 18px; font-weight: 900; color: #15803d; margin: 4px 0; }
.wh-pop .wh-res.wh-in { animation: dwBoom .6s ease-out; }
.wh-pop .gdlg-btns { display: flex; justify-content: center; } .wh-pop .gdlg-btns .gbtn { min-width: 60%; }
.wh-note { display: flex; align-items: center; gap: 8px; width: 100%; margin: 8px 0; padding: 8px 12px; border-radius: 14px; border: 2px dashed #f59e0b; background: #fffbeb; font: inherit; color: var(--ink); cursor: pointer; text-align: start; }
.wh-note span { font-size: 22px; } .wh-note b { flex: 1; font-size: 13px; } .wh-note em { font-style: normal; font-weight: 900; color: #b45309; }
/* treat the guild */
.gt-btn { display: block; width: 100%; margin: 6px 0 10px; }
.gt-pop .gt-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.gt-pop .gt-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 2.5px solid #c9d8e8; background: #fff; text-align: start; }
.gt-pop .gt-row.gt-pizza { background: #fff7e6; border-color: #fbbf24; }
.gt-pop .gt-row.gt-party { background: linear-gradient(90deg, #fdf2f8, #fff7ed); border-color: #f472b6; }
.gt-pop .gt-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gt-pop .gt-info b { font-size: 16px; } .gt-pop .gt-info small { font-size: 12px; color: var(--navy-2); font-weight: 700; }
.g-chat .g-treat { display: flex; align-items: center; gap: 8px; margin: 6px 0; padding: 8px 10px; border-radius: 12px; background: linear-gradient(90deg, #fff7d6, #ffe4f1); border: 2px solid #f9c74f; font-weight: 800; }
.g-chat .g-treat .gt-ico { font-size: 22px; }

/* ---------- leaving guard: "leaving already?" card with a crying water balloon ---------- */
.gdlg-card.leave .gdlg-ribbon { background: linear-gradient(180deg, #8fd0ff, #43acf7); color: var(--ink); }
.gdlg-card.leave .gdlg-rays { background: repeating-conic-gradient(from 0deg, rgba(67, 172, 247, .42) 0 12deg, transparent 12deg 30deg); }
.lv-vis { width: 124px; height: 124px; }
.lv-ball { position: relative; width: 86px; height: 94px; border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%; background: radial-gradient(circle at 34% 30%, #bfe6ff 0 14%, #5cb8ff 40%, #2f86e8 78%, #1d63b8 100%); border: 4px solid var(--ink); box-shadow: 0 5px 0 rgba(23, 52, 95, .35); animation: lvWobble 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.lv-shine { position: absolute; left: 14px; top: 12px; width: 16px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.85); transform: rotate(24deg); }
.lv-eye { position: absolute; top: 36px; width: 10px; height: 13px; border-radius: 50%; background: var(--ink); }
.lv-eye.l { left: 23px; } .lv-eye.r { right: 23px; }
.lv-eye::after { content: ''; position: absolute; left: 2px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.lv-eye.l::before, .lv-eye.r::before { content: ''; position: absolute; top: -9px; width: 13px; height: 4px; border-radius: 3px; background: var(--ink); }
.lv-eye.l::before { left: -3px; transform: rotate(-18deg); } .lv-eye.r::before { right: -3px; transform: rotate(18deg); }
.lv-mouth { position: absolute; left: 50%; top: 60px; width: 22px; height: 11px; margin-left: -11px; border: 4px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; }
.lv-tear { position: absolute; left: 22px; top: 50px; width: 9px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #dff3ff; border: 2px solid var(--ink); animation: lvTear 1.8s ease-in infinite; }
.lv-knot { position: absolute; left: 50%; bottom: -12px; width: 14px; height: 12px; margin-left: -7px; background: #1d63b8; border: 3px solid var(--ink); border-radius: 3px 3px 8px 8px; }
@keyframes lvWobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-3px); } }
@keyframes lvTear { 0% { transform: translateY(-4px) scale(.4); opacity: 0; } 20% { transform: translateY(0) scale(1); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(30px) scale(.9); opacity: 0; } }
.lv-sub { margin: 2px 4px 0; font-weight: 800; font-size: 15px; line-height: 1.4; color: var(--ink); }
.lv-sub.warn { color: #c4323d; }
.lv-online { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: #e3f6e8; border: 2px solid #9bd8ab; color: #1e7a3d; font-weight: 800; font-size: 13px; }
.lv-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fbf5b; box-shadow: 0 0 0 0 rgba(47,191,91,.6); animation: lvPing 1.6s ease-out infinite; }
@keyframes lvPing { to { box-shadow: 0 0 0 9px rgba(47,191,91,0); } }
.lv-btns { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.lv-btns .gbtn { width: 100%; }
.lv-stay { font-size: 19px; }
.lv-hint { margin-top: -5px; color: var(--navy-2); font-weight: 700; font-size: 12px; }
.lv-exit { align-self: center; background: none; border: 0; padding: 6px 12px; color: var(--gray); font-weight: 700; font-size: 13px; text-decoration: underline; cursor: pointer; }
.lv-exit:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .lv-ball, .lv-tear, .lv-dot { animation: none; } }
.lv-btns .gbtn { white-space: normal; }

/* someone joined my waiting room while a window covers it */
.join-pops { position: fixed; left: 50%; top: calc(10px + var(--safe-t, 0px)); transform: translateX(-50%); z-index: 140; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100% - 24px)); pointer-events: none; }
.join-pop { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 18px; background: linear-gradient(180deg, #ffffff, #e6f3ff); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink), 0 12px 26px rgba(13,30,60,.3); animation: jpIn .45s cubic-bezier(.2, 1.5, .4, 1); cursor: pointer; }
.join-pop.out { animation: jpOut .3s ease-in forwards; }
@keyframes jpIn { from { transform: translateY(-40px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes jpOut { to { transform: translateY(-30px); opacity: 0; } }
.jp-av { flex: none; width: 46px; height: 46px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; font-size: 26px; background: linear-gradient(180deg, #8fd0ff, #43acf7); border: 3px solid var(--ink); }
.jp-av img { width: 100%; height: 100%; object-fit: cover; }
.jp-tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: start; }
.jp-tx b { font-weight: 900; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jp-tx small { font-weight: 700; font-size: 12px; color: var(--navy-2); }
.room-gear svg { width: 22px; height: 22px; }

/* anti-bot: picture puzzle before a guest starts, and the "network blocked" card */
.gdlg-card.abcap .gdlg-ribbon { background: linear-gradient(180deg, #8fd0ff, #43acf7); }
.ab-sub { margin: 4px 2px 0; font-weight: 800; font-size: 15px; line-height: 1.45; color: var(--ink); }
.ab-row { width: 100%; justify-content: center; margin-top: 6px; }
.ab-row .cap-in { width: 64px; font-size: 22px; text-align: center; }
.ab-msg { min-height: 18px; margin: 0; font-weight: 800; font-size: 13px; color: #c4323d; }
.ab-go { width: 100%; }
.gdlg-card.shake { animation: abShake .4s ease-in-out; }
@keyframes abShake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.ab-ico { font-size: 54px; line-height: 1; margin-top: 4px; }
.ab-until { margin: 0; padding: 5px 12px; border-radius: 999px; background: #ffe9ea; border: 2px solid #f3b3b7; color: #b0262f; font-weight: 800; font-size: 13px; }
.ab-help { color: var(--gray); font-weight: 700; font-size: 12px; line-height: 1.4; }
.gdlg-card.abblk .gbtn { width: 100%; margin-top: 4px; }
.ab-row .cap-in { height: 44px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); }

/* losing-streak offer: three pack sizes */
.gdlg-card.rsc-pop { width: min(400px, 100%); gap: 6px; }
.rsc-sub { margin-top: 2px; }
.rsc-list { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.rsc-pack { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'head head' 'chips chips' 'worth buy'; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 18px; background: #fff; border: 3px solid var(--sky-2); text-align: start; }
.rsc-pack.best { border-color: #ffb320; background: linear-gradient(180deg, #fffbea, #fff3c4); box-shadow: 0 0 0 3px rgba(255, 179, 32, .25); padding-top: 16px; }
.rsc-best { position: absolute; top: -12px; inset-inline-end: 14px; padding: 2px 10px; border-radius: 999px; background: linear-gradient(180deg, #ff8a8a, #ff4f5a); color: #fff; border: 2px solid var(--ink); font-style: normal; font-weight: 900; font-size: 12px; animation: rscBob 1.6s ease-in-out infinite; }
@keyframes rscBob { 50% { transform: translateY(-3px); } }
.rsc-head { grid-area: head; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rsc-name { font-weight: 900; font-size: 16px; color: var(--ink); }
.rsc-off { padding: 1px 8px; border-radius: 999px; background: #ffe2e4; color: #c4323d; font-weight: 900; font-size: 13px; }
.rsc-chips { grid-area: chips; justify-content: flex-start; gap: 5px; }
.rsc-chips .rchip { padding: 2px 8px; font-size: 13px; }
.rsc-worth { grid-area: worth; color: var(--gray); font-weight: 700; font-size: 12px; text-decoration: line-through; }
.rsc-buy { grid-area: buy; min-width: 120px; }
.rsc-buy .price small.thb { display: none; }
.rsc-later { width: 100%; margin-top: 4px; }
@media (orientation: landscape) and (max-height: 500px) {
  .gdlg-card.rsc-pop { display: flex; flex-direction: column; width: min(780px, 100%); text-align: center; padding-top: 28px; }
  .rsc-list { flex-direction: row; align-items: stretch; }
  .rsc-pack { flex: 1 1 0; min-width: 0; grid-template-columns: 1fr; grid-template-areas: 'head' 'chips' 'worth' 'buy'; align-content: start; }
  .rsc-chips { justify-content: center; }
  .rsc-buy { min-width: 0; width: 100%; }
  .rsc-later { width: auto; align-self: center; padding-inline: 40px; }
}

/* display currency: 💱 chip in the shop title + the picker list */
.cur-chip { margin-inline-start: auto; margin-inline-end: 8px; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 900; font-size: 13px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.cur-chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.cur-note { margin: 0 0 8px; color: var(--navy-2); font-weight: 700; font-size: 13px; line-height: 1.45; text-align: center; }
.cur-list { display: flex; flex-direction: column; gap: 6px; max-height: min(56vh, 460px); overflow-y: auto; padding: 2px; }
.cur-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--sky-2); background: #fff; text-align: start; cursor: pointer; color: var(--ink); }
.cur-row.on { border-color: var(--blue); background: #eaf4ff; }
.cur-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cur-row b { font-weight: 800; font-size: 15px; }
.cur-row small { color: var(--gray); font-weight: 700; font-size: 12px; }
.cur-ico { flex: none; min-width: 38px; height: 38px; padding: 0 4px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); font-weight: 900; font-size: 15px; }
.cur-ok { color: var(--blue); font-weight: 900; font-size: 18px; }
/* foreign players: tap to show / hide the Thai-baht top-up ways */
.thb-toggle { align-self: center; margin: 6px auto; padding: 7px 14px; border-radius: 999px; border: 2px dashed var(--sky-3); background: #f4faff; color: var(--navy-2); font-weight: 800; font-size: 13px; cursor: pointer; }
.thb-toggle.in-shop { display: block; margin: 4px auto 8px; }

/* first top-up: "do you have a Thai bank account / TrueMoney?" */
.thb-ask-ico { font-size: 52px; line-height: 1; margin-top: 4px; }
.thb-ask-q { font-size: 18px; font-weight: 900; color: var(--ink); line-height: 1.35; }
.thb-ask-sub { margin: 0; color: var(--navy-2); font-weight: 700; font-size: 13px; line-height: 1.45; }
.thb-ask-btns { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.thb-ask-btns .gbtn { min-height: 52px; font-size: 16px; white-space: normal; }
.thb-ask-note { color: var(--gray); font-weight: 700; font-size: 12px; line-height: 1.4; }
.pk-fx { display: block; color: var(--navy-2); font-weight: 800; font-size: 12px; margin-top: -2px; }
/* first visit: language picker, the detected language first and highlighted */
#w-lang.first .lang[aria-pressed="true"] { box-shadow: 0 0 0 3px #ffb320; }

/* top-up chooser: speed note, Thai-only rows, THB tag (2026-10-18) */
.pay-speed { margin: 2px 0 10px; padding: 6px 10px; border-radius: 10px; background: #e7f6ec; color: #1f7a3d; font-weight: 700; font-size: .86em; text-align: center; }
.pay-head .pay-speed { margin: 8px auto 0; display: inline-block; }
.help-row.thai small { color: #8a5a00; }
.help-row.soon { opacity: .6; }
.thb-tag { font-style: normal; font-weight: 800; font-size: .8em; padding: 2px 8px; border-radius: 999px; background: #ffe9a8; color: #6b4a00; }
.cr-tbl { margin: 6px 0 10px; padding: 8px; border-radius: 12px; background: #eef6fd; border: 2px solid #cfe3f5; }
.cr-tbl-t { display: block; text-align: center; color: var(--navy-2); margin-bottom: 6px; }
.cr-tbl-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.cr-tbl-c { background: #fff; border-radius: 10px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 2px 0 #cfe3f5; }
.cr-tbl-c b { color: #1a7f5a; } .cr-tbl-c span { font-weight: 800; color: var(--navy-2); font-size: 12.5px; }

/* TrueMoney top-up page (2026-10-19): ways to send, wallet card, receive QR */
.tw-hero .bh-top { flex-wrap: wrap; }
.tw-hero .tw-thb { margin-left: auto; }
.tw-ways { display: grid; gap: 6px; margin: 8px 0 4px; }
.tw-way { padding: 8px 10px; border-radius: 12px; background: #eef6fd; border: 2px solid #cfe3f5; font-size: 13px; font-weight: 700; color: #2b3d5c; line-height: 1.35; }
.tw-card { margin-top: 10px; padding: 12px; border-radius: 18px; background: linear-gradient(180deg, #fff9f2, #fff1e2); border: 3px solid #f2b37a; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 3px 0 #e59a5a; }
.tw-card .tw-info { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.tw-card .tw-info small { font-size: 12px; font-weight: 800; color: #a5541a; letter-spacing: .3px; }
.tw-card .tw-num { font-size: clamp(16px, 5.2vw, 26px); letter-spacing: .5px; max-width: 100%; color: var(--navy, #1d2b4f); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tw-card .tw-name { font-size: 13px; font-weight: 700; color: #4a5a78; }
.tw-card .tw-cp { width: 100%; font-size: 16px; }
.tw-card .tw-cp.done { filter: hue-rotate(-80deg); }
.tw-qrbox { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: #fff; border: 2px dashed #f2b37a; }
.tw-qrbox > small { font-weight: 800; color: #a5541a; }
.tw-qrimg { width: min(240px, 70vw); height: auto; border-radius: 10px; image-rendering: pixelated; background: #fff; }
.tw-save { width: 100%; font-size: 15px; }
.tw-qrtip { font-size: 11px; color: #6b7a96; text-align: center; }
/* pass / Zeny-pass plan tiles: Gold price on one line, the player's money on its own line under it (no overlap on small phones) */
.pass-plan { min-width: 0; padding: 10px 4px 8px; }
.pass-plan .price { flex-wrap: wrap; justify-content: center; row-gap: 0; font-size: clamp(14px, 4.2vw, 18px); line-height: 1.15; max-width: 100%; }
.pass-plan .price svg { width: 16px; height: 16px; flex: none; }
.pass-plan .price small.thb { flex-basis: 100%; text-align: center; margin: 2px 0 0; font-size: 11.5px; opacity: .8; }
.pass-plan .pp-best { white-space: nowrap; }
.pass-plans:has(> .pass-plan:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pass-plans:has(> .pass-plan:nth-child(3)) .pass-plan .price { font-size: clamp(13px, 3.9vw, 18px); }
.pass-plans:has(> .pass-plan:nth-child(3)) .pass-plan .price svg { width: 14px; height: 14px; }
/* top-up pause card (owner closed a way of paying for a time) */
.pp-card { margin: 10px 0; padding: 22px 16px 16px; border-radius: 22px; text-align: center; background: linear-gradient(180deg, #eef5ff, #dbe8fb); border: 3px solid var(--ink, #1d2b4f); box-shadow: 0 4px 0 var(--ink, #1d2b4f); display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; overflow: hidden; }
.pp-card::before { content: ''; position: absolute; inset: -40% -20% auto; height: 120px; background: radial-gradient(closest-side, rgba(255,255,255,.8), transparent); pointer-events: none; }
.pp-ico { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; background: linear-gradient(180deg, #ffd66b, #ffb22e); border: 3px solid var(--ink, #1d2b4f); box-shadow: 0 3px 0 var(--ink, #1d2b4f); animation: ppBob 2.4s ease-in-out infinite; }
@keyframes ppBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.pp-way { font-weight: 800; color: #4a5a78; letter-spacing: .3px; }
.pp-title { margin: 0; font-size: 20px; font-weight: 900; color: var(--navy, #1d2b4f); }
.pp-msg { margin: 0; font-size: 14px; line-height: 1.5; color: #33425f; white-space: pre-line; max-width: 420px; }
.pp-when { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 14px; background: #fff; border: 2px solid #c7d8f2; }
.pp-when b { font-size: 15px; color: #1d2b4f; }
.pp-left { font-size: 13px; font-weight: 800; color: #e0592a; font-variant-numeric: tabular-nums; }
.pp-daily { color: #4a5a78; font-weight: 700; }
.pp-card .big-btn { width: 100%; max-width: 320px; margin-top: 4px; }
.help-row.paused { opacity: .85; filter: grayscale(.35); }
.help-row.paused small { color: #c4521c !important; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .pp-ico { animation: none; } }

/* player community window */
.cm-list { display: flex; flex-direction: column; gap: 8px; }
.cm-h { margin: 4px 0 2px; font-size: 15px; }
.cm-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 3px 0 var(--ink); }
.cm-card:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.cm-card .cm-ico { font-size: 26px; flex: 0 0 auto; }
.cm-card .cm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-card .cm-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-card .cm-txt small { opacity: .7; font-size: 12px; }
.cm-card .cm-go { flex: 0 0 auto; pointer-events: none; }
.cm-line { background: #eefbf1; } .cm-discord { background: #eef0ff; } .cm-fb { background: #eef5ff; } .cm-tg { background: #eaf7fd; }
.cm-more summary { cursor: pointer; font-weight: 700; padding: 6px 2px; }
.cm-more .cm-card { margin-top: 8px; }
.cm-pick { display: block; width: 100%; padding: 10px 12px; border-radius: 14px; border: 2px dashed var(--ink); background: #fff8dc; color: var(--ink); font-weight: 700; cursor: pointer; text-align: center; }
/* ---------- card / installments / counter top-up ---------- */
.kp-ico { display: inline-flex; flex-direction: row; flex-wrap: nowrap; gap: 2px; align-items: center; background: none !important; box-shadow: none !important; }
.kp-ico .kp-logo { width: 19px; height: 19px; flex: 0 0 auto; border-radius: 5px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18); object-fit: contain; }
.help-row .hr-ico .kp-ico { justify-content: center; width: 40px; }
.help-row.kp { grid-template-columns: 40px 1fr; }
.pay-ico .kp-ico .kp-logo { width: 20px; height: 20px; }
.gdlg-card.kp-pop { display: flex; flex-direction: column; align-items: stretch; text-align: center; max-width: min(460px, 94vw); max-height: calc(100dvh - 24px); overflow-y: auto; }
@media (orientation: landscape) and (max-height: 500px) { .gdlg-card.kp-pop { display: flex; grid-template-columns: none; margin-top: 4px; } }
.kp-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 8px; }
.kp-big { width: 40px; height: 40px; border-radius: 9px; background: #fff; box-shadow: 0 2px 4px rgba(20,40,80,.18); object-fit: contain; }
.kp-logos .kp-big[src$="cenpay.png"] { width: auto; height: 40px; padding: 0 4px; }
.kp-thai { text-align: center; font-size: 12px; color: #8a5a00; margin: 0 0 6px; }
.kp-form { display: grid; gap: 8px; text-align: start; }
.kp-f { display: grid; gap: 3px; font-size: 13px; color: #34507a; font-weight: 600; }
.kp-in { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 2px solid #c7d7ee; background: #f7fbff; font: inherit; font-size: 16px; color: #1c2f4f; }
.kp-in:focus { outline: none; border-color: #4aa3f0; background: #fff; }
.kp-chips, .kp-months { display: flex; flex-wrap: wrap; gap: 6px; }
.kp-chip, .kp-mon { padding: 7px 12px; border-radius: 999px; border: 2px solid #c7d7ee; background: #fff; font: inherit; font-weight: 700; color: #26416b; cursor: pointer; }
.kp-mon { min-width: 44px; }
.kp-mon.on, .kp-chip:active { background: #4aa3f0; border-color: #2f86d6; color: #fff; }
.kp-mon:disabled { opacity: .35; cursor: default; }
.kp-prev { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(180deg, #fff7d6, #ffe9a3); color: #6b4b00; }
.kp-prev small { color: #7a6a3a; }
.kp-cur { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 12px; color: #5b6b85; }
.kp-curbtn { padding: 4px 10px; border-radius: 999px; border: 2px solid #c7d7ee; background: #fff; font: inherit; font-weight: 700; color: #26416b; cursor: pointer; }
.kp-lim, .kp-perm { color: #5b6b85; font-size: 12px; }
.kp-h { font-size: 13px; color: #26416b; margin-top: 4px; }
.kp-banks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.kp-bank { padding: 6px; border-radius: 12px; border: 2px solid #c7d7ee; background: #fff; cursor: pointer; display: flex; justify-content: center; }
.kp-bank.on { border-color: #2f86d6; box-shadow: 0 0 0 3px rgba(74,163,240,.3); }
.kp-bimg { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.kp-go { width: 100%; box-sizing: border-box; margin-top: 10px; white-space: normal; line-height: 1.2; min-height: 48px; }
.kp-note { font-size: 12px; color: #5b6b85; text-align: center; margin: 8px 0 0; }
@media (max-width: 360px) { .kp-banks { grid-template-columns: repeat(3, 1fr); } }
.gdlg-card.kp-pop { padding-top: 14px; }
.kp-pop .gdlg-ribbon { position: static; transform: none; align-self: center; margin: 0 auto 4px; max-width: 100%; white-space: normal; }

/* ---- "game is updating" overlay (maintenance countdown during a deploy) ---- */
.maint-pop { z-index: 200; background: rgba(10, 24, 50, .72); }
.maint-card { width: min(400px, 100%); gap: 10px; background: linear-gradient(180deg, #eaf4ff 0%, #d7ebff 100%); }
.maint-ribbon { align-self: center; font-family: var(--font-display); font-weight: 900; font-size: 18px; color: #fff; background: linear-gradient(90deg, var(--sky), var(--blue)); border: 3px solid var(--ink); border-radius: 14px; padding: 6px 16px; box-shadow: 0 3px 0 var(--ink); letter-spacing: .3px; }
.maint-orb { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 38% 32%, #fff, #bfe0ff 60%, #7cc0ff 100%); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink), inset 0 -6px 10px rgba(0,0,0,.08); animation: maintBob 1.6s ease-in-out infinite; }
.maint-spin { font-size: 40px; display: block; animation: maintRock 2.2s ease-in-out infinite; }
@keyframes maintBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes maintRock { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.maint-sub { margin: 0; font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.maint-count { font-family: var(--font-display); font-weight: 900; font-size: 30px; color: var(--blue-dark); text-shadow: 0 2px 0 rgba(255,255,255,.7); min-height: 1.2em; }
.maint-prog { width: 100%; height: 14px; border-radius: 10px; background: #c3dcf5; border: 2px solid var(--ink); overflow: hidden; }
.maint-prog > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sky), var(--green)); transition: width .9s linear; }
.maint-prog.wait > i { width: 100% !important; background: linear-gradient(90deg, var(--sky), var(--blue), var(--sky)); background-size: 200% 100%; animation: maintFlow 1.2s linear infinite; }
@keyframes maintFlow { to { background-position: 200% 0; } }
.maint-hist { width: 100%; margin-top: 6px; text-align: left; }
.maint-hist-h { font-family: var(--font-display); font-weight: 900; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.maint-hist-list { max-height: 34vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.maint-hist-item { background: rgba(255,255,255,.7); border: 2px solid rgba(13,40,80,.12); border-radius: 12px; padding: 8px 10px; }
.maint-hist-item.now { border-color: var(--sky); background: #fff; box-shadow: 0 2px 0 rgba(60,140,240,.25); }
.maint-hist-at { font-size: 11px; font-weight: 800; color: var(--blue-dark); margin-bottom: 3px; }
.maint-hist-line { font-size: 12.5px; line-height: 1.5; color: #27405f; }

/* ---- piggy bank + level fund cards ---- */
.promo-card.piggy { background: linear-gradient(135deg, #fff0f5, #ffd9e6 60%, #ffc2d6); }
.promo-card.piggy.full { animation: firstGlow 1.4s ease-in-out infinite alternate; }
.pig-head { display: flex; align-items: center; gap: 10px; }
.pig-head small { display: block; font-weight: 700; color: var(--navy-2); line-height: 1.35; }
.pig-ico { font-size: 44px; line-height: 1; flex: 0 0 auto; filter: drop-shadow(0 3px 0 rgba(0,0,0,.15)); }
.promo-card.piggy.ready .pig-ico { animation: maintRock 1.6s ease-in-out infinite; }
.pig-bar { position: relative; height: 26px; border-radius: 999px; border: 3px solid var(--ink); background: #fff; overflow: hidden; }
.pig-bar > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ffd34d, #ff9a3d); transition: width .5s ease; }
[dir="rtl"] .pig-bar > i { inset: 0 0 0 auto; }
.pig-bar > span { position: relative; display: grid; place-items: center; height: 100%; font-weight: 900; font-size: 13px; color: var(--ink); }
.promo-card.fund { background: linear-gradient(135deg, #f0fff4, #d4f7df 60%, #b8efc9); }
.promo-card.fund .pc-title, .promo-card.fund > p { padding-right: 74px; }
[dir="rtl"] .promo-card.fund .pc-title, [dir="rtl"] .promo-card.fund > p { padding-right: 0; padding-left: 74px; }
.fund-steps { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 4px; scrollbar-width: thin; }
.fund-step { flex: 0 0 auto; min-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 8px 7px; border-radius: 14px; border: 2.5px solid var(--ink); background: #fff; font-size: 13px; }
.fund-step.done { opacity: .6; background: #eef2f6; }
.fund-step.now { background: #fff6c9; box-shadow: 0 3px 0 var(--ink); }
.fund-step .step-st { font-size: 16px; }

/* daily shop (offers page) */
.daily-head { margin-top: 10px; }
.daily-sub { margin: 2px 2px 8px; font-size: 12px; color: var(--muted, #5c6f8a); }
.daily-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.daily-card .daily-name { font-size: 12px; font-weight: 800; line-height: 1.25; text-align: center; min-height: 2.5em; display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; }
.daily-card.hot { border-color: #ff9f1c; box-shadow: 0 0 0 2px rgba(255, 159, 28, .35), 0 4px 0 #d67a00; }
.daily-card.hot .deal-off { background: linear-gradient(#ff6b3d, #e23b3b); color: #fff; }
.daily-card .deal-price { flex-wrap: wrap; justify-content: center; row-gap: 0; }

/* player card: what they are wearing */
.pl-wear { margin: 10px 0 6px; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #f3f9ff, #e6f2ff); border: 2px solid #cfe3f5; }
.pl-wear-title { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink, #1d3f72); }
.pl-wear-row { display: flex; gap: 10px; align-items: stretch; }
.pl-wear-full { flex: none; width: 96px; height: 128px; object-fit: contain; border-radius: 14px; background: radial-gradient(circle at 50% 35%, #fff, #d6ecff); border: 2px solid #cfe3f5; }
.pl-wear-chips { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; align-content: start; }
.pl-wear-chip { cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; background: #fff; border: 2px solid #cfe3f5; box-shadow: 0 3px 0 #cfe3f5; color: inherit; min-width: 0; }
.pl-wear-chip:active { transform: translateY(2px); box-shadow: 0 1px 0 #cfe3f5; }
.pl-wear-chip { overflow: hidden; }
.pl-wear-chip .gdlg-item { flex: none; transform: scale(.58); transform-origin: 50% 50%; margin: -19px -22px -18px; }
.pl-wear-name { font-size: 10.5px; font-weight: 800; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-wear-price { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 800; color: #b35c00; }
.pl-wear-price.own { color: #2a9d5c; }
.pl-wear-price img, .pl-wear-price svg { width: 12px; height: 12px; }
.pl-wear-tip { display: block; margin-top: 6px; text-align: center; color: var(--muted, #5c6f8a); font-size: 11.5px; }
@media (max-width: 380px) { .pl-wear-full { width: 78px; height: 104px; } }

/* wishlist: toggle in the item window + strip on the player card */
.wish-btn.on { background: linear-gradient(#ffe3ee, #ffc9dd); border-color: #e0568a; }
.pl-wish { background: linear-gradient(180deg, #fff5f9, #ffe6f0); border-color: #f5c2d6; }
.pl-wish .pl-wear-chip { position: relative; overflow: visible; border-color: #f5c2d6; box-shadow: 0 3px 0 #f5c2d6; }
.pl-wish-x { position: absolute; top: -6px; inset-inline-end: -6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #e23b3b; color: #fff; font-size: 12px; font-weight: 900; border: 2px solid #fff; cursor: pointer; }

/* guild level card: progress, daily chest, donations */
.g-lv { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 99px; background: linear-gradient(#ffe38a, #ffc93a); color: #5a3b00; font-size: 12px; font-weight: 900; border: 2px solid var(--ink, #1d3f72); white-space: nowrap; }
.g-lvcard { margin: 8px 0; padding: 10px 12px; border-radius: 16px; background: linear-gradient(180deg, #fffbe9, #fff1c4); border: 3px solid var(--ink, #1d3f72); box-shadow: 0 4px 0 var(--ink, #1d3f72); display: grid; gap: 8px; }
.g-lvtop { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.g-lvbig { font-size: 17px; color: #5a3b00; }
.g-lvbar { height: 12px; border-radius: 99px; background: #fff; border: 2px solid var(--ink, #1d3f72); overflow: hidden; }
.g-lvbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffc93a, #ff8a3d); }
.g-lvrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 6px; border-top: 2px dashed rgba(90, 59, 0, .18); }
.g-lvtxt { display: grid; gap: 2px; min-width: 0; }
.g-give { display: inline-flex; gap: 8px; flex-wrap: wrap; font-weight: 800; }
.g-give span { display: inline-flex; align-items: center; gap: 2px; }
.g-give img, .g-give svg, .g-don img, .g-don svg { width: 14px; height: 14px; }
.g-donbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.g-don { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.g-lvnote { color: #8a5a00; }
.g-lvup { background: linear-gradient(#fff6c9, #ffe38a) !important; }

/* monthly event coins (offers page) */
.coins-head { margin-top: 10px; }
.promo-card.coins { background: linear-gradient(180deg, #fff8e1, #ffe9a8); }
.coin-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.coin-have { font-size: 22px; color: #7a4b00; }
.coin-today { font-size: 12px; font-weight: 800; color: #8a5a00; }
.coin-sub { font-size: 12px; margin: 6px 0 8px; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.coin-cell { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 6px; border-radius: 14px; background: #fff; border: 2px solid var(--ink, #1d3f72); box-shadow: 0 3px 0 var(--ink, #1d3f72); min-height: 112px; text-align: center; }
.coin-cell.grand { background: linear-gradient(180deg, #fff, #ffe3f1); }
.coin-cell.have { opacity: .65; }
.coin-cell .g-give { justify-content: center; font-size: 13px; }
.coin-cell .gdlg-item { flex: none; transform: scale(.58); margin: -19px -22px -18px; cursor: pointer; }
.coin-name { font-size: 11px; font-weight: 800; line-height: 1.15; }
.coin-cell .gbtn { width: 100%; }

/* result screen: "almost there" goals */
.result-goals { margin: 8px 0; padding: 8px 10px; border-radius: 16px; background: linear-gradient(180deg, #f3f9ff, #e3f1ff); border: 2px solid #cfe3f5; display: grid; gap: 6px; }
.rg-title { font-size: 13px; color: var(--ink, #1d3f72); }
.rg-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 12px; background: #fff; border: 2px solid #cfe3f5; font: inherit; color: inherit; text-align: start; }
button.rg-row { cursor: pointer; box-shadow: 0 3px 0 #cfe3f5; }
button.rg-row:active { transform: translateY(2px); box-shadow: 0 1px 0 #cfe3f5; }
.rg-row.hot { border-color: #ff9f1c; background: linear-gradient(180deg, #fffaf0, #ffecc7); box-shadow: 0 3px 0 #e59a2b; }
.rg-ico { flex: none; font-size: 20px; }
.rg-text { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 13px; font-weight: 800; }
.rg-bar { display: block; height: 8px; border-radius: 99px; background: #e3edf8; overflow: hidden; }
.rg-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #5cc8ff, #2f86e8); }
.rg-row.hot .rg-bar i { background: linear-gradient(90deg, #ffc93a, #ff8a3d); }
.rg-go { flex: none; font-size: 20px; color: #7a8aa3; }

/* collection album */
.ward-album { display: block; margin: 6px auto 0; min-height: 40px; padding: 6px 16px; border-radius: 14px; border: 2px solid var(--ink, #1d3f72); background: linear-gradient(180deg, #fff8e1, #ffe29a); box-shadow: 0 3px 0 var(--ink, #1d3f72); font: inherit; font-weight: 800; color: #6b4300; cursor: pointer; position: relative; }
.ward-album:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink, #1d3f72); }
.ward-album.dot::after { content: ''; position: absolute; top: -5px; inset-inline-end: -5px; width: 14px; height: 14px; border-radius: 50%; background: #ff4d5e; border: 2px solid #fff; }
.gdlg-card.album { width: min(94vw, 460px); }
.alb-sub { margin: 4px 0 8px; font-size: 13px; text-align: center; }
.alb-list { display: grid; gap: 8px; max-height: 58vh; overflow-y: auto; padding: 2px; }
.alb-page { padding: 8px; border-radius: 14px; background: #f3f9ff; border: 2px solid #cfe3f5; display: grid; gap: 6px; }
.alb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.alb-n { font-weight: 800; color: #47607f; font-size: 12px; }
.alb-tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.alb-tier { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; border-radius: 10px; border: 2px solid #cfe3f5; background: #fff; font: inherit; color: inherit; min-width: 0; }
.alb-tier b { font-size: 13px; }
.alb-tier .g-give { flex-direction: column; gap: 0; font-size: 10px; align-items: center; }
.alb-tier:disabled { opacity: .6; }
.alb-tier.got { opacity: 1; background: #e6f7e9; border-color: #8fd19e; color: #2c7a3f; }
.alb-tier.ready { opacity: 1; cursor: pointer; border-color: #ff9f1c; background: linear-gradient(180deg, #fffaf0, #ffe2a8); box-shadow: 0 3px 0 #e59a2b; animation: albPulse 1.2s ease-in-out infinite; }
@keyframes albPulse { 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .alb-tier.ready { animation: none; } }

/* personal flash sale (offers page) */
.promo-card.flash { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; background: linear-gradient(180deg, #fff6e0, #ffd9c2); border-color: #ff7a3d; box-shadow: 0 0 0 2px rgba(255, 122, 61, .3), 0 4px 0 #d65a1f; }
.flash-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.flash-side .deal-off { position: static; background: linear-gradient(#ff6b3d, #e23b3b); color: #fff; }
.flash-name { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.flash-side .deal-price { flex-wrap: wrap; row-gap: 0; }
.flash-side .gbtn { min-width: 120px; }
.flash-sub { grid-column: 1 / -1; margin: 0; font-size: 12px; color: #7a3b12; }

/* season pass: grand prize + tier skip */
.pass-grand { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 6px 10px; border-radius: 14px; background: linear-gradient(180deg, #fff8e1, #ffe7a8); border: 2px solid #e5a82b; }
.pass-grand .gdlg-item { flex: none; animation: none; transform: scale(.55); margin: -23px; cursor: pointer; }
.pg-text { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.pg-text small { font-size: 11px; color: #6b4300; }
.pass-skip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.pass-skip .gbtn { display: inline-flex; align-items: center; gap: 3px; }
.pass-skip .gbtn img, .pass-skip .gbtn svg { width: 14px; height: 14px; }
.pass-skip small { flex-basis: 100%; font-size: 11px; color: var(--navy-2); }
.rchip.grand { background: #ffe29a; }

/* daily top-up limit dialogs */
.gdlg-card.capd { width: min(92vw, 400px); }
.cap-msg { margin: 6px 0; font-size: 13px; text-align: center; }
.cap-line { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 14px; margin: 4px 0; }
.cap-pend { display: block; text-align: center; color: #8a5a00; font-weight: 800; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
/* album / top-up limit dialogs on short landscape screens: one centred column (the default landscape dialog keeps a picture column on the left) */
.alb-list, .cap-grid { width: 100%; }
@media (orientation: landscape) and (max-height: 500px) {
  .gdlg-card.album, .gdlg-card.capd { display: flex; flex-direction: column; text-align: center; }
  .gdlg-card.album { width: min(96vw, 720px); }
  .gdlg-card.album .alb-list { grid-template-columns: 1fr 1fr; max-height: 48vh; }
}
/* TUNGKAO sign-in buttons: provider colour pill, real logo in a white circle, thin light outline, credit inside */
.lg-btn.tk { box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 3px 0 rgba(0,0,0,.28); min-height: 46px; padding: 0 16px 0 6px; gap: 10px; justify-content: flex-start; }
.lg-btn.tk:active { box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 1px 0 rgba(0,0,0,.28); }
.lg-btn.tk .lg-logo { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.lg-btn.tk .lg-logo img { width: 20px; height: 20px; display: block; }
.lg-btn.tk .lg-tx2 { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.1; padding-right: 22px; }
.lg-btn.tk .lg-sec { font-size: 9px; font-weight: 700; opacity: .85; letter-spacing: .2px; white-space: nowrap; }
.lg-btn.tk.sm { min-height: 36px; padding: 0 12px 0 4px; } .lg-btn.tk.sm .lg-logo { flex-basis: 28px; width: 28px; height: 28px; } .lg-btn.tk.sm .lg-logo img { width: 16px; height: 16px; } .lg-btn.tk.sm .lg-tx2 { padding-right: 4px; }
.lg-btn.tk.paused { filter: grayscale(1); opacity: .55; cursor: not-allowed; }
.lg-btns.many .lg-btn.tk .lg-tx2 { padding-right: 6px; }
.lg-name .lg-ico img { display: block; }
.lg-done.off { color: #8693a3; }
.tk-credit { display: block; width: fit-content; margin: 6px auto 0; font-size: 11px; font-weight: 700; color: #5b7088; text-decoration: none; opacity: .9; }
.tk-credit:hover { text-decoration: underline; }
.lg-legacy { margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lg-legacy .lg-legq { font-size: 12.5px; }
.tk-mig .gdlg-ribbon { background: linear-gradient(#2f80ed, #1a5fc2); }
/* crypto "backup 2" (TUNGKAO) */
.tkc-body { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.tkc-h { font-weight: 800; margin: 0; } .tkc-asset { font-weight: 900; font-size: 16px; color: #1d3c5e; }
.tkc-qr canvas { width: 168px; height: 168px; image-rendering: pixelated; background: #fff; border-radius: 10px; padding: 6px; }
.tkc-addr { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; width: 100%; }
.tkc-addr code { word-break: break-all; background: #eef4fb; border: 2px solid #d3e2f1; border-radius: 10px; padding: 6px 8px; font-size: 12.5px; max-width: 100%; }
.tkc-warn { color: #a3461b; font-size: 12.5px; font-weight: 700; margin: 0; text-align: center; }
.tkc-note, .tkc-rate { font-size: 12px; color: #5b7088; margin: 0; text-align: center; }
.tkc-wait { font-weight: 800; color: #1a5fc2; margin: 2px 0; text-align: center; }
.tkc-err { color: #b42318; font-weight: 700; text-align: center; }
.lg-bonus { width: 100%; text-align: center; font-size: 12.5px; font-weight: 800; color: #9a5b00; background: #fff6d9; border: 2px solid #ffe08a; border-radius: 12px; padding: 4px 8px; margin: 2px 0 6px; }
/* lots of sign-ins (9+): compact tiles, 3 per row (4 on wide screens) — logo in its white circle, name, credit */
.lg-btns.tiles { grid-template-columns: repeat(3, 1fr); max-width: 460px; gap: 8px; }
@media (min-width: 720px) and (min-height: 520px) { .lg-btns.tiles { grid-template-columns: repeat(4, 1fr); max-width: 560px; } }
.lg-btns.tiles .lg-btn.tk { flex-direction: column; justify-content: center; gap: 3px; padding: 7px 4px 6px; min-height: 0; border-radius: 16px; }
.lg-btns.tiles .lg-btn.tk .lg-logo { flex: 0 0 auto; width: 30px; height: 30px; }
.lg-btns.tiles .lg-btn.tk .lg-logo img { width: 18px; height: 18px; }
.lg-btns.tiles .lg-btn.tk .lg-tx2 { padding: 0; width: 100%; }
.lg-btns.tiles .lg-btn.tk .lg-txt { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lg-btns.tiles .lg-btn.tk .lg-sec { font-size: 8px; }
/* "system by tungkao.com": one small premium pill — gradient shield, muted lead-in, brand in a gradient */
.tk-by { display: flex; width: fit-content; align-items: center; gap: 6px; margin: 12px auto 2px; padding: 3px 11px 3px 3px; border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f2f6fb); box-shadow: 0 0 0 1px rgba(26, 60, 110, .10), 0 2px 8px rgba(26, 60, 110, .08);
  font-size: 10.5px; line-height: 1; font-weight: 600; color: #8592a5; text-decoration: none; white-space: nowrap; transition: box-shadow .15s, transform .15s; }
.tk-by:hover { box-shadow: 0 0 0 1px rgba(26, 115, 232, .35), 0 3px 10px rgba(26, 115, 232, .16); transform: translateY(-1px); }
.tk-by .tkb-ico { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #1a73e8, #12b886); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.tk-by .tkb-ico svg { width: 12px; height: 12px; display: block; }
.tk-by b { font-weight: 800; letter-spacing: .15px; background: linear-gradient(90deg, #1a5fc2, #0f9f73); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tk-by.pay { margin: 0 auto 10px; }
/* many sign-in tiles: the one badge below carries the credit, so the tiles stay clean */
.lg-btns.tiles .lg-btn.tk:not(.paused) .lg-sec { display: none; }
/* linked accounts list (account window): logo · name · one compact action — clean, no overlap */
#lgList { display: flex; flex-direction: column; gap: 8px; }
.lga-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 16px; background: #fff; border: 2px solid #dbe7f3; box-shadow: 0 2px 0 #dbe7f3; min-width: 0; }
.lga-row.done { background: linear-gradient(180deg, #f6fdf8, #ffffff); border-color: #c8ecd5; box-shadow: 0 2px 0 #c8ecd5; }
.lga-logo { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1.5px #e3ebf4, 0 2px 4px rgba(26,60,110,.08); font-size: 18px; }
.lga-logo img { width: 22px; height: 22px; display: block; }
.lga-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lga-name { min-width: 0; font-size: 15px; color: #1d3c5e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lga-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--bg); color: var(--fg);
  font: inherit; font-size: 13.5px; font-weight: 900; cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 3px 0 rgba(0,0,0,.22); white-space: nowrap; }
.lga-btn:active { transform: translateY(2px); box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 1px 0 rgba(0,0,0,.22); }
.lga-gift { align-self: flex-start; padding: 1px 8px; border-radius: 999px; background: #fff7d6; color: #8a5a00; font-size: 11.5px; font-weight: 900; box-shadow: inset 0 0 0 1px #ffd76a; white-space: nowrap; }
.lga-chip { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 900; white-space: nowrap; }
.lga-chip.ok { background: #e3f8eb; color: #127a45; box-shadow: inset 0 0 0 1.5px #a9e2c0; }
.lga-chip.off { background: #eef1f5; color: #7b8798; }
@media (max-width: 360px) { .lga-name { font-size: 14px; } .lga-btn { padding: 0 12px; font-size: 12.5px; } .lga-gift { font-size: 10.5px; } }
.lga-sub { font-size: 12px; font-weight: 800; color: #7b8798; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lga-sub.ok { color: #127a45; }
.lga-tick { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #22c55e, #12b886); box-shadow: 0 2px 0 #0f8a5f; }
.lga-tick.off { background: #c9d2dc; box-shadow: 0 2px 0 #aab4c0; font-size: 14px; }

/* ---------- Splash Squad (หน่วยสาดน้ำ) ---------- */
.sq-card { background: linear-gradient(135deg, #8fd8ff, #2f86e8); position: relative; }
.sq-card .adv-txt b { text-shadow: 0 2px 0 rgba(10,40,90,.45); }
.rrow .mtag.squad { background: linear-gradient(135deg, #43acf7, #1d6fd0); }   /* the lobby room list tag of a squad room (white text needs a colour like every mode tag) */
.sq-new { position: absolute; top: -9px; inset-inline-end: 44px; background: #ff4f86; color: #fff; font: 900 11px/18px var(--font-display, sans-serif); padding: 0 8px; border-radius: 9px; border: 2px solid #fff; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.sq-size { display: flex; flex-wrap: nowrap; gap: 4px; justify-content: center; margin: 6px 0; }
.sq-size .gbtn { min-width: 0; flex: 1 1 0; max-width: 44px; padding-inline: 2px; }
.sq-room { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 10px 12px; margin: 6px 0; border-radius: 16px; border: 3px solid var(--ink); background: linear-gradient(135deg, #e4f5ff, #bfe6ff); box-shadow: 0 4px 0 var(--ink); }
.sq-room-t { font-family: var(--font-display); color: var(--navy-2); font-size: 17px; }
.sq-hud { left: 50%; transform: translateX(-50%); top: calc(76px + var(--safe-t, 0px)); display: flex; gap: 10px; align-items: center; padding: 5px 14px; border-radius: 16px; background: rgba(15,37,71,.8); color: #fff; font-weight: 900; border: 2px solid #fff; white-space: nowrap; font-size: 14px; max-width: calc(100vw - 24px); }
.sq-hud .sq-hearts { letter-spacing: -1px; font-size: 13px; }
.sq-hud.hurt { animation: sqHurt .5s; }
@keyframes sqHurt { 0%, 100% { background: rgba(15,37,71,.8); } 30% { background: rgba(232,49,47,.92); transform: translateX(-50%) scale(1.08); } }
body.sq-on .hud.score-board { visibility: hidden; }
/* the squad bar, objective line, wave banner and combo let touches through (the banner lay over the joystick zone at every wave);
   "#game > *" turns pointer events back on for everything in #game, so the rule has to name #game too (the ❓ in the bar keeps its own) */
#game > .sq-hud, #game > .sqm-obj, #game > .sq-banner, #game > .sq-combo { pointer-events: none; }
.sq-banner { position: fixed; left: 50%; top: 32%; transform: translate(-50%, -50%) scale(.6); z-index: 30; font-family: var(--font-display); font-size: clamp(24px, 6vw, 44px); color: #fff; -webkit-text-stroke: 2px #0f2547; text-shadow: 0 4px 0 #0f2547; opacity: 0; white-space: nowrap; }
.sq-banner.in { animation: sqBan 2.2s ease-out forwards; }
.sq-banner.big { color: #ffd34d; } .sq-banner.good { color: #9fffb0; }
@keyframes sqBan { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
.sq-combo { position: fixed; inset-inline-end: calc(16px + var(--safe-r, 0px)); top: calc(120px + var(--safe-t, 0px)); z-index: 25; font-family: var(--font-display); font-size: 26px; color: #ffd34d; -webkit-text-stroke: 2px #5a3a00; text-shadow: 0 3px 0 #5a3a00; }
.sq-combo.pop { animation: sqPop .35s ease-out; }
@keyframes sqPop { 0% { transform: scale(1.6); } 100% { transform: scale(1); } }
.sq-gun, .sq-burst { position: absolute; border-radius: 50%; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; padding: 0; touch-action: none; pointer-events: auto; font-size: 30px; }
.sq-gun { right: calc(30px + var(--fw, 112px) + var(--safe-r)); bottom: calc(52px + var(--safe-b, 0px)); width: 74px; height: 74px; background: radial-gradient(circle at 38% 30%, #fff7d1, #ffcf3a 60%, #e09a10); box-shadow: 0 4px 0 #9a6a0a, 0 8px 14px rgba(0,0,0,.3); }
.sq-gun.charging { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(67,172,247,.55), 0 4px 0 #9a6a0a; }
.sq-gun.dry { filter: grayscale(.7) brightness(.9); }
.sq-gun::after { content: attr(data-lv); position: absolute; top: -8px; inset-inline-end: -6px; font: 900 12px/18px sans-serif; color: #fff; background: #3fbf6a; border-radius: 9px; padding: 0 5px; }
.sq-gun[data-lv=""]::after { display: none; }
.sq-bar { position: absolute; left: 10px; right: 10px; bottom: 9px; height: 7px; border-radius: 4px; background: rgba(15,37,71,.45); overflow: hidden; }
.sq-bar b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #43acf7, #9fe0ff); transition: width .15s; }
.sq-burst { right: calc(30px + var(--fw, 112px) + var(--safe-r)); bottom: calc(52px + 74px + 14px + var(--safe-b, 0px)); width: 66px; height: 66px; background: radial-gradient(circle at 38% 30%, #e4f5ff, #8fd8ff 60%, #2f86e8); box-shadow: 0 4px 0 #154f99, 0 8px 14px rgba(0,0,0,.3); filter: grayscale(.5); }
.sq-burst.ready { filter: none; animation: itemPulse .6s ease-in-out infinite alternate; }
.sq-ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); pointer-events: none; }
.sq-ring circle { fill: none; stroke-width: 4; }
.sq-ring .bg { stroke: rgba(255,255,255,.35); }
.sq-ring .fg { stroke: #ffd34d; stroke-linecap: round; stroke-dasharray: 107; stroke-dashoffset: 107; transition: stroke-dashoffset .2s; }
.sq-gun kbd, .sq-burst kbd { position: absolute; left: -4px; top: -6px; font: 700 11px/16px sans-serif; padding: 0 5px; border-radius: 6px; background: #fff; color: var(--ink); border: 2px solid var(--ink); }
body.touch .sq-gun kbd, body.touch .sq-burst kbd { display: none; }
body.lefty .sq-gun, body.lefty .sq-burst { right: auto; left: calc(30px + var(--fw, 112px) + var(--safe-l)); }
@media (max-width: 640px) { .sq-gun { width: 62px; height: 62px; font-size: 26px; } .sq-burst { width: 56px; height: 56px; font-size: 24px; bottom: calc(52px + 62px + 12px + var(--safe-b, 0px)); } .sq-hud { font-size: 12px; gap: 6px; padding: 4px 10px; } }
@media (max-height: 500px) and (orientation: landscape) { .sq-gun { width: 58px; height: 58px; bottom: calc(88px + var(--safe-b, 0px)); } .sq-burst { width: 52px; height: 52px; bottom: calc(88px + 58px + 10px + var(--safe-b, 0px)); } .sq-hud { top: calc(54px + var(--safe-t, 0px)); font-size: 12px; padding: 3px 10px; gap: 6px; } .sq-hud .sq-hearts { font-size: 11px; } }
.sq-grade { font-family: var(--font-display); font-size: 30px; margin: 0; }
.sq-grade.g-S { color: #f0b429; } .sq-grade.g-A { color: #3fbf6a; } .sq-grade.g-B { color: #2f86e8; } .sq-grade.g-C { color: #64748b; }
.sq-team { display: flex; flex-direction: column; gap: 3px; max-height: 26vh; overflow: auto; margin: 6px 0; }
.sq-tr { display: flex; justify-content: space-between; gap: 8px; padding: 3px 10px; border-radius: 10px; background: #eef6ff; font-size: 13px; }
.sq-tr.me { background: #fff3c4; font-weight: 900; }
.sq-tr b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-bomb { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0; padding: 8px 10px; border-radius: 14px; background: linear-gradient(135deg, #e4f5ff, #f3fbff); border: 2px dashed #8fd8ff; text-align: center; }
.sq-bomb-t { color: var(--navy-2); display: flex; align-items: center; gap: 6px; }
.sq-sw { display: inline-flex; gap: 3px; } .sq-sw i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(15,37,71,.4); }
.sq-try { width: 100%; display: flex; justify-content: center; }
.st-stage { position: relative; width: min(300px, 78vw); height: 130px; border-radius: 16px; background: linear-gradient(#bfe6ff, #e8f7ff 60%, #9fd88a 61%); overflow: hidden; border: 3px solid var(--ink); }
.st-stage i { position: absolute; font-style: normal; }
.st-kid { left: 14px; bottom: 18px; font-size: 38px; }
.st-mon { right: 18px; bottom: 22px; font-size: 34px; animation: stMon 3.6s infinite; }
.st-balloon { left: 70px; bottom: 22px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c1) 45%, var(--c1)); box-shadow: inset -3px -3px 0 var(--c2); animation: stBal 3.6s infinite; }
.st-beam { left: 60px; bottom: 38px; height: 8px; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--c2), var(--c1)); animation: stBeam 3.6s infinite; }
.st-bubble { right: 8px; bottom: 12px; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--c2); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.8), color-mix(in srgb, var(--c1) 35%, transparent)); opacity: 0; animation: stBub 3.6s infinite; }
.st-burst { left: 4px; bottom: 6px; width: 60px; height: 60px; border-radius: 50%; border: 4px solid var(--c1); opacity: 0; animation: stBurst 3.6s infinite; }
@keyframes stBal { 0%, 8% { transform: scale(0); } 14%, 26% { transform: scale(1); } 30% { transform: scale(1.8); opacity: .2; } 31%, 100% { transform: scale(0); } }
@keyframes stBub { 0%, 44% { opacity: 0; transform: scale(.4); } 50%, 62% { opacity: 1; transform: scale(1); } 66%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes stMon { 0%, 62% { opacity: 1; } 66%, 80% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes stBurst { 0%, 70% { opacity: 0; transform: scale(.3); } 76% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(2.6); } }
.st-labs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; font-weight: 800; color: var(--navy-2); margin-top: 6px; }
/* PC (no touch): the gun sits where the touch fire button would be, the burst to its left (clear of the item bar) */
body:not(.touch) .sq-gun { right: calc(20px + var(--safe-r)); bottom: calc(62px + var(--safe-b, 0px)); }
body:not(.touch) .sq-burst { right: calc(20px + 74px + 16px + var(--safe-r)); bottom: calc(66px + var(--safe-b, 0px)); }
/* touch: the burst sits up-left of the gun so it never covers the item buttons */
body.touch .sq-burst { right: calc(30px + var(--fw, 112px) + 40px + var(--safe-r)); }
body.touch.lefty .sq-burst { right: auto; left: calc(30px + var(--fw, 112px) + 40px + var(--safe-l)); }
/* portrait: the squad bar moves to the right under the top buttons (the team list stays free on the left) and may wrap */
@media (orientation: portrait) { .sq-hud { left: auto; right: calc(8px + var(--safe-r, 0px)); transform: none; flex-wrap: wrap; justify-content: flex-end; max-width: 54vw; white-space: normal; row-gap: 2px; } .sq-hud .sq-hearts { flex-basis: 100%; text-align: end; } @keyframes sqHurt { 0%, 100% { background: rgba(15,37,71,.8); } 30% { background: rgba(232,49,47,.92); } } }
.sq-info .gdlg-btns .gbtn, .sq-end .gdlg-btns .gbtn { white-space: normal; line-height: 1.15; font-size: 15px; }
@keyframes stBeam { 0%, 36% { width: 0; opacity: 1; } 46% { width: 64%; opacity: 1; } 54%, 100% { width: 64%; opacity: 0; } }
/* round 10: .gdlg-btns is a two-column grid — a squad window with one button (try pop-ups, stats, world boss for guests,
   prize card, chest / outfit set with only Close) lets it span the row instead of sitting in the narrow left column */
.sq-try-pop .gdlg-btns > .gbtn:only-child, .sqw-pop .gdlg-btns > .gbtn:only-child, .sqr-pop .gdlg-btns > .gbtn:only-child,
.sqx-info .gdlg-btns > .gbtn:only-child { grid-column: 1 / -1; }

/* ---------- Splash Squad teamwork (round 2): roles, pings, awards ---------- */
.sqt-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; margin: 4px 0 6px; }
.sqt-role { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; text-align: start; padding: 6px 8px; border-radius: 14px; border: 3px solid #c9dcef; background: #fff; box-shadow: 0 3px 0 #c9dcef; font: inherit; color: var(--navy-2, #1d3c5e); cursor: pointer; min-width: 0; }
.sqt-role .sqt-ri { font-size: 22px; line-height: 1; }
.sqt-role b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sqt-role small { grid-column: 1 / -1; margin-top: 2px; font-size: 11.5px; line-height: 1.2; color: #5b6b80; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sqt-role.on { border-color: #2f86e8; background: linear-gradient(135deg, #e4f5ff, #bfe6ff); box-shadow: 0 3px 0 #154f99; }
.sqt-role:active { transform: translateY(2px); box-shadow: 0 1px 0 #c9dcef; }
.sqt-team { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sqt-ping { position: absolute; border-radius: 50%; border: 3px solid #fff; width: 50px; height: 50px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; touch-action: none; pointer-events: auto;
  background: radial-gradient(circle at 38% 30%, #ffe1e6, #ff8a9a 60%, #e23d55); box-shadow: 0 4px 0 #9a1f33, 0 8px 14px rgba(0,0,0,.3);
  right: calc(30px + var(--fw, 112px) + 40px + 8px + var(--safe-r, 0px)); bottom: calc(52px + 74px + 14px + 66px + 14px + var(--safe-b, 0px)); }
.sqt-ping kbd { position: absolute; left: -4px; top: -6px; font: 700 11px/16px sans-serif; padding: 0 5px; border-radius: 6px; background: #fff; color: var(--ink); border: 2px solid var(--ink); }
body.touch .sqt-ping kbd { display: none; }
body:not(.touch) .sqt-ping { right: calc(20px + 74px + 16px + 66px + 14px + var(--safe-r, 0px)); bottom: calc(70px + var(--safe-b, 0px)); }
body.touch.lefty .sqt-ping { right: auto; left: calc(30px + var(--fw, 112px) + 40px + 8px + var(--safe-l, 0px)); }
@media (max-width: 640px) { body.touch .sqt-ping { width: 44px; height: 44px; font-size: 19px; bottom: calc(52px + 62px + 12px + 56px + 12px + var(--safe-b, 0px)); } }
@media (max-height: 500px) and (orientation: landscape) { body.touch .sqt-ping { width: 42px; height: 42px; font-size: 18px; bottom: calc(88px + 58px + 10px + 52px + 8px + var(--safe-b, 0px)); } }
.sqt-menu { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(120px + var(--safe-b, 0px)); z-index: 40; width: min(360px, calc(100vw - 32px)); padding: 8px; border-radius: 18px; background: rgba(15,37,71,.9); border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 6px; }
.sqt-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sqt-pbtn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border: 0; border-radius: 12px; background: #fff; color: var(--navy-2, #1d3c5e); font: inherit; cursor: pointer; box-shadow: 0 3px 0 #9fb6cf; min-width: 0; }
.sqt-pbtn .ico { font-size: 22px; line-height: 1.1; } .sqt-pbtn b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sqt-pbtn.help, .sqt-pbtn.mon { background: #ffe8eb; box-shadow: 0 3px 0 #e8a1ab; }
.sqt-pbtn kbd { position: absolute; top: 3px; inset-inline-start: 5px; font: 700 10px/14px sans-serif; color: #7b8798; }
body.touch .sqt-pbtn kbd { display: none; }
.sqt-pbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #9fb6cf; }
.sqt-maptg { border: 2px dashed #9fe0ff; background: transparent; color: #fff; border-radius: 12px; padding: 5px 8px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.sqt-maptg.on { background: #2f86e8; border-style: solid; }
body.sqt-tapping canvas { cursor: crosshair; }
@media (max-height: 500px) and (orientation: landscape) { .sqt-menu { bottom: calc(60px + var(--safe-b, 0px)); width: min(420px, calc(100vw - 32px)); } .sqt-pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .sqt-pbtn b { font-size: 11px; } }
.sqt-aw { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin: 6px 0; }
.sqt-awc { display: flex; flex-direction: column; align-items: center; padding: 6px 6px 5px; border-radius: 14px; background: linear-gradient(180deg, #fff9e0, #fff); border: 2px solid #ffd76a; box-shadow: 0 2px 0 #e6b840; min-width: 0; text-align: center; }
.sqt-awc .ico { font-size: 22px; line-height: 1.1; } .sqt-awc b { font-size: 13px; color: #8a5a00; }
.sqt-awc small { font-size: 11.5px; color: var(--navy-2, #1d3c5e); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sqt-awc.angel { background: linear-gradient(180deg, #eef8ff, #fff); border-color: #9fd2ff; box-shadow: 0 2px 0 #6eb4f0; } .sqt-awc.angel b { color: #1a5fc2; }
.sqt-awc.wall { background: linear-gradient(180deg, #f3f1ee, #fff); border-color: #c9bfb3; box-shadow: 0 2px 0 #a89c8e; } .sqt-awc.wall b { color: #6b5a48; }
.sqt-awc.assist { background: linear-gradient(180deg, #eafaf0, #fff); border-color: #a9e2c0; box-shadow: 0 2px 0 #6cc592; } .sqt-awc.assist b { color: #127a45; }
.sqt-awc.me { outline: 3px solid #ffcf3a; outline-offset: 1px; }
@media (max-width: 640px) { .sqt-menu { padding: 6px; gap: 4px; width: min(300px, calc(100vw - 32px)); } .sqt-pbtn { padding: 4px 2px; } .sqt-pbtn .ico { font-size: 18px; } .sqt-pbtn b { font-size: 12px; } .sqt-maptg { padding: 3px 6px; font-size: 12px; } }
@media (orientation: landscape) and (max-height: 500px) { .gdlg-card.sq-end, .gdlg-card.sq-info { display: flex; flex-direction: column; align-items: stretch; text-align: center; } .sqt-aw { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sqt-roles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (orientation: landscape) and (max-height: 500px) { .gdlg-card.sq-end .sq-facts { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin: 2px 0; } .sq-end .adv-st-stars.big { font-size: 30px; margin: 0; } .sq-end .sq-grade { font-size: 24px; } }
@media (orientation: landscape) and (max-height: 500px) { .gdlg-card.sq-end > *, .gdlg-card.sq-info > * { flex-shrink: 0; } .gdlg-card.sq-end .sq-team { max-height: 40vh; } }
@media (orientation: landscape) and (max-height: 500px) { .gdlg-card.sq-info .adv-facts { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin: 2px 0; } .gdlg-card.sq-info .adv-st-stars { margin: 0; } .sqt-role { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; text-align: center; padding: 4px 4px; } .sqt-role .sqt-ri { grid-row: auto; font-size: 20px; } .sqt-role small { font-size: 10.5px; } }
@media (orientation: portrait), (max-width: 720px) { #room .room-side .sq-room { grid-column: 1 / -1; margin: 0; } }
/* stage dialog: the big "Play now" button on its own row first, the room / help buttons side by side under it */
.sq-info .gdlg-btns .gbtn.yellow { order: -1; grid-column: 1 / -1; }
.sq-info .gdlg-btns .gbtn:not(.yellow) { font-size: 14px; }
.sq-info .gdlg-btns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.sq-info .gdlg-btns .gbtn:only-child { grid-column: 1 / -1; }
/* Splash Squad round 6: objective line under the squad bar, boss bar with phase marks and weak-point glow */
.sqm-obj { left: 50%; transform: translateX(-50%); top: calc(112px + var(--safe-t, 0px)); padding: 3px 12px; border-radius: 12px; background: rgba(255,255,255,.92); color: var(--navy-2, #1d2c4d); border: 2px solid #0f2547; font-weight: 900; font-size: 13px; white-space: nowrap; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; }
.sqm-obj.done { background: #d9ffe3; border-color: #2a8f3a; color: #1f6b35; }
.sqm-obj.low { background: #ffe0e0; border-color: #c0262d; color: #8f1a1f; animation: sqmLow 1s ease-in-out infinite; }
@keyframes sqmLow { 50% { background: #ffb8b8; } }
body.sq-on .boss-bar.sqm-bar { top: calc(142px + var(--safe-t, 0px)); width: min(380px, 74vw); }
.boss-bar.sqm-bar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%; font-size: 14px; }
.boss-bar.sqm-bar .bb { height: 16px; }
.boss-bar.sqm-bar.mini .bb i { background: linear-gradient(90deg, #ff9a1a, #ffd34d); }
.boss-bar.sqm-bar.weak { box-shadow: 0 0 0 3px #ff4fd8, 0 0 16px #ff4fd8; }
.boss-bar.sqm-bar.weak .bb i { background: linear-gradient(90deg, #ff4fd8, #ffd34d); }
.boss-bar .bb .bb-mk { position: absolute; top: 0; bottom: 0; width: 3px; margin-inline-start: -1px; background: #fff; opacity: .9; text-decoration: none; z-index: 1; }
/* portrait: under the squad bar on the right, so the team list on the left stays free */
@media (orientation: portrait) { .sqm-obj { top: calc(132px + var(--safe-t, 0px)); left: auto; right: calc(8px + var(--safe-r, 0px)); transform: none; max-width: 54vw; font-size: 12px; } body.sq-on .boss-bar.sqm-bar { top: calc(160px + var(--safe-t, 0px)); left: auto; right: calc(8px + var(--safe-r, 0px)); transform: none; width: 54vw; padding: 3px 8px; gap: 5px; } .boss-bar.sqm-bar b { font-size: 12px; } .boss-bar.sqm-bar .bb span { font-size: 10px; } }
@media (max-height: 500px) and (orientation: landscape) { .sqm-obj { top: calc(84px + var(--safe-t, 0px)); font-size: 12px; padding: 2px 10px; } body.sq-on .boss-bar.sqm-bar { top: calc(108px + var(--safe-t, 0px)); width: min(260px, 36vw); } }
/* portrait phones: the ping button lives above the joystick on the left (the item buttons fill the right side) */
@media (orientation: portrait) { body.touch .sqt-ping { right: auto; left: calc(16px + var(--safe-l, 0px)); bottom: calc(62px + var(--pw, 148px) + 14px + var(--safe-b, 0px)); } body.touch.lefty .sqt-ping { left: auto; right: calc(16px + var(--safe-r, 0px)); } }
/* squad: the hidden score boxes take no room (the team score can be big and pushed the timer under the buttons) */
body.sq-on #scoreA, body.sq-on #scoreB { display: none; }
/* squad on portrait phones: the item buttons sit a little higher so the bubble-burst button never covers them */
@media (orientation: portrait) { body.sq-on.touch .items { bottom: calc(218px + var(--safe-b, 0px)); } }
/* round 10: a dialog that has to scroll keeps its title ribbon inside the card (stuck to the top) instead of cutting it off */
.gdlg-card.gdlg-scroll { padding-top: 0; }
.gdlg-card.gdlg-scroll > .gdlg-ribbon { position: sticky; top: 0; left: auto; transform: none; z-index: 6; flex-shrink: 0; align-self: center; justify-self: center; grid-column: 1 / -1; margin: 6px auto 6px; max-width: calc(100% - 56px); overflow: hidden; text-overflow: ellipsis; }
.gdlg-card.gdlg-scroll > .why-x { top: 6px; }
/* round 10: a friend's help request is its own card on top of everything (never hidden or replaced by a dialog) */
.sqi-helppop { position: fixed; z-index: 200; top: calc(14px + var(--safe-t, 0px)); left: 50%; transform: translateX(-50%); width: min(360px, calc(100vw - 24px)); box-sizing: border-box; padding: 10px 12px; border-radius: 18px; border: 3px solid var(--ink); background: linear-gradient(180deg, #fff8dc, #ffe9a8); box-shadow: 0 5px 0 var(--ink), 0 12px 28px rgba(0,0,0,.35); text-align: center; color: var(--navy-2); animation: gdlgIn .38s cubic-bezier(.2, 1.5, .4, 1); }
.sqi-helppop .sqi-hp-t { display: block; font-size: 16px; overflow-wrap: anywhere; }
.sqi-helppop p { margin: 4px 0 8px; font-size: 14px; }
.sqi-hp-btns { display: flex; gap: 8px; justify-content: center; } .sqi-hp-btns .gbtn { flex: 1 1 0; white-space: normal; line-height: 1.15; height: auto; min-height: 42px; }
/* round 10: squad room on portrait phones — the squad box (stage, size, roles) comes first, the map preview is left out (a stage box names its map; the big modes pick their board when the match starts) */
@media (orientation: portrait), (max-width: 720px) {
  #room .room-main:has(#sqRoomBox:not([hidden])) .room-side { order: -1; }
  #room .room-side:has(#sqRoomBox:not([hidden])) .map-card { display: none; }
}
/* round 10: landscape phones — the item buttons sit in rows left of the fire button (they covered it in the old column);
   in Splash Squad they move further left, past the gun / burst / ping buttons */
@media (max-height: 500px) and (orientation: landscape) {
  .items { top: auto; bottom: calc(62px + var(--safe-b, 0px)); right: calc(20px + var(--fw) / 2 + var(--fw) * var(--btn-scale, 1) / 2 + 14px + var(--safe-r)); flex-direction: row; flex-wrap: wrap-reverse; justify-content: flex-end; align-content: flex-end; max-height: none; max-width: calc(4 * 46px + 3 * 6px); gap: 6px; }
  .item-btn { width: 46px; height: 46px; } .item-btn .ico { font-size: 22px; }
  body.lefty .items { right: auto; left: calc(20px + var(--fw) / 2 + var(--fw) * var(--btn-scale, 1) / 2 + 14px + var(--safe-l)); justify-content: flex-start; }
  body.sq-on .items { right: calc(30px + var(--fw) + 40px + 52px + 18px + var(--safe-r)); }
  body.sq-on.lefty .items { right: auto; left: calc(30px + var(--fw) + 40px + 52px + 18px + var(--safe-l)); }
}
@media (max-height: 500px) and (orientation: landscape) and (max-width: 640px) { .items { max-width: calc(3 * 46px + 2 * 6px); } }
@media (orientation: portrait), (max-width: 720px) {
  /* compact squad box: stage line, then my role (four small cards), then the host's size / stage buttons and invites, the rest after */
  #room .sq-room { gap: 3px; padding: 6px 8px; }
  #room .sq-room > * { order: 6; }
  #room .sq-room > .sq-room-t { order: 0; font-size: 15px; }
  #room .sq-room > small:first-of-type { order: 1; }
  #room .sq-room > .sqt-roles, #room .sq-room > .sqt-team { order: 2; }
  #room .sq-room > .sq-size, #room .sq-room > .sqx-worlds, #room .sq-room > .gbtn, #room .sq-room > .sqi-row { order: 3; }
  #room .sq-room .sqt-roles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 2px 0; }
  #room .sq-room .sqt-role { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 3px 2px; border-width: 2px; }
  #room .sq-room .sqt-role .sqt-ri { font-size: 18px; }
  #room .sq-room .sqt-role small { display: none; }
  #room .sq-room .sqt-role b { font-size: 12px; max-width: 100%; }
  #room .sq-room > .sb-lbl { display: none; }
}
/* the mode tag of a squad room is longer ("🫧 Splash Squad · 2/8"): one line, cut with … instead of spilling out of the pill */
#roomModeTag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* squad end card: "next stage" (yellow) on its own row first, the other buttons two by two under it (a lone half-width button looked lost) */
.sq-end .gdlg-btns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.sq-end .gdlg-btns .gbtn.yellow { order: -1; grid-column: 1 / -1; }
.sq-end .gdlg-btns .gbtn:only-child { grid-column: 1 / -1; }
.adv-gain .sq-gain { display: inline-block; margin: 0 6px; unicode-bidi: isolate; }
/* round 10: very short landscape phones (320–360 px high): the ping button sits left of the burst button (above it, it
   covered the squad bar and its ❓) and the boss bar moves a little left so the burst button never covers its end */
@media (max-height: 360px) and (orientation: landscape) {
  body.touch .sqt-ping { bottom: calc(128px + var(--safe-b, 0px)); right: calc(30px + var(--fw) + 40px + 52px + 8px + var(--safe-r, 0px)); }
  body.touch.lefty .sqt-ping { right: auto; left: calc(30px + var(--fw) + 40px + 52px + 8px + var(--safe-l, 0px)); }
  body.sq-on .boss-bar.sqm-bar { width: min(220px, 36vw); transform: translateX(-72%); }
  body.sq-on.lefty .boss-bar.sqm-bar { transform: translateX(-28%); }
}
/* round 10: short landscape windows without touch (small PC windows): the item row starts left of the ping button */
@media (max-height: 500px) and (orientation: landscape) { body.sq-on:not(.touch) .items { right: calc(252px + var(--safe-r, 0px)); } body.sq-on.lefty:not(.touch) .items { right: auto; left: calc(252px + var(--safe-l, 0px)); } }
/* round 10: the boss bar's phase marks run under its hit-point numbers (they cut through the digits) */
.boss-bar .bb span { z-index: 2; }
/* Splash Squad one-way stages (ด่านทางเดียว): the strip in the squad picker + the "forward only" sign */
.sqo-strip { margin: 4px 0 10px; padding: 8px 10px 10px; border-radius: 18px; border: 3px solid var(--ink, #0f2547); background: linear-gradient(180deg, #fff3c4, #ffd98a); box-shadow: 0 4px 0 var(--ink, #0f2547); }
.sqo-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.sqo-t { font-size: 15px; font-weight: 900; color: #1d2c4d; }
.sqo-tag { flex: 1 1 100%; min-width: 0; font-weight: 800; color: #8a4b00; font-size: 12px; }
.sqo-q { flex: 0 0 auto; margin-inline-start: auto; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink, #0f2547); background: #fff; font-size: 14px; padding: 0; cursor: pointer; }
.sqo-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.sqo-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px 5px; border-radius: 14px; border: 2px solid var(--ink, #0f2547); background: #fff; box-shadow: 0 3px 0 var(--ink, #0f2547); cursor: pointer; font: inherit; color: #1d2c4d; position: relative; }
.sqo-btn::after { content: '➡️'; position: absolute; top: -8px; inset-inline-end: -4px; font-size: 13px; }
.sqo-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink, #0f2547); }
.sqo-btn.locked { background: #dfe5ee; color: #6b7891; }
.sqo-btn.locked::after { content: none; }
.sqo-btn.done { background: #eaffef; }
.sqo-ico { font-size: 22px; line-height: 1.1; }
.sqo-st { font-size: 10px; font-weight: 900; color: #e0a100; letter-spacing: -1px; white-space: nowrap; }
.sqo-btn.locked .sqo-st { color: #6b7891; letter-spacing: 0; }
.sqo-sign { display: block; font-weight: 900; color: #8a4b00; background: #fff3c4; border: 2px solid #e0a100; border-radius: 12px; padding: 3px 10px; margin: 4px auto; width: fit-content; max-width: 100%; }
@media (max-width: 360px) { .sqo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
