/* ============================================================
   LÀM CHÓ ONLINE — Làng Cún
   Handcrafted UI for the village dog playground
   ============================================================ */

:root {
  --gold-1: #fff3bd;
  --gold-2: #ffd772;
  --gold-3: #e9a232;
  --cream: #ffe9bf;
  --cream-soft: #f6dcb2;
  --brown-9: #2a160a;
  --brown-8: #3a2212;
  --brown-7: #52301a;
  --brown-6: #6b4327;
  --wood-light: #a9733e;
  --wood-dark: #5c3417;
  --ink: #452713;
  --ui-font: "Nunito", "Segoe UI", sans-serif;
  --display-font: "Baloo 2", "Nunito", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #24160d;
}
body {
  font-family: var(--ui-font);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible {
  outline: 2px solid rgba(255, 221, 151, .9);
  outline-offset: 3px;
}
svg { display: block; fill: currentColor; }
[hidden] { display: none !important; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ============================================================
   Backdrop & stage
   ============================================================ */
#backdrop {
  position: fixed;
  inset: -5%;
  z-index: 0;
  background-color: #5f452f;
  background-position: center;
  background-size: cover;
  filter: blur(26px) brightness(.48) saturate(.92);
  transform: scale(1.06);
  opacity: .9;
}

#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1536px;
  height: 1024px;
  transform: translate(-50%, -50%) scale(.8);
  transform-origin: center center;
  overflow: hidden;
  background: #7a9b54;
  box-shadow:
    0 40px 120px rgba(8, 4, 1, .65),
    0 0 0 1px rgba(255, 226, 174, .08);
  isolation: isolate;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><g fill='%23fff2cc' stroke='%235c3215' stroke-width='1.6'><ellipse cx='8' cy='13' rx='3.3' ry='4.3'/><ellipse cx='15' cy='8.5' rx='3.2' ry='4.4'/><ellipse cx='22' cy='10' rx='3.2' ry='4.4'/><ellipse cx='27' cy='16' rx='3' ry='4'/><path d='M16 14c-4.7 0-8.5 3.6-8.5 7.7 0 3.6 2.5 5.8 5.7 5.2 1.3-.2 2-.5 2.9-.5s1.6.3 2.9.5c3.1.6 5.7-1.6 5.7-5.2 0-4.1-3.9-7.7-8.7-7.7z'/></g></svg>") 16 16, pointer;
}

.scene-light {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 12% -8%, rgba(255, 236, 176, .20), transparent 44%),
    radial-gradient(105% 105% at 50% 50%, transparent 60%, rgba(24, 13, 5, .28) 100%),
    linear-gradient(180deg, rgba(255, 214, 140, .04) 0%, transparent 28%, transparent 78%, rgba(12, 20, 12, .14) 100%);
  mix-blend-mode: multiply;
}
.scene-light::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 55% at 25% 20%, rgba(255, 240, 195, .12), transparent 65%);
  mix-blend-mode: screen;
}

/* ============================================================
   Logo / brand
   ============================================================ */
.brand {
  position: absolute;
  z-index: 6;
  left: 22px;
  top: 6px;
  width: 512px;
  pointer-events: none;
  filter: drop-shadow(0 16px 28px rgba(38, 18, 5, .18));
}

.logo-wrap {
  width: 508px;
  height: 214px;
  margin-left: -8px;
}

.logo-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.logo-text text {
  font-family: var(--display-font);
  font-weight: 800;
  paint-order: stroke fill;
}
.title-main {
  font-size: 118px;
  letter-spacing: -1px;
  fill: url(#title-gold);
  stroke: #74360f;
  stroke-width: 11px;
  stroke-linejoin: round;
}
.title-depth {
  font-size: 118px;
  letter-spacing: -1px;
  fill: #7d3b11;
  stroke: #4a2107;
  stroke-width: 11px;
  stroke-linejoin: round;
}
.title-gloss {
  font-size: 118px;
  letter-spacing: -1px;
  fill: url(#title-shine);
  stroke: none;
  opacity: .86;
}
.online-main {
  font-size: 68px;
  letter-spacing: 5px;
  fill: url(#online-grad);
  stroke: #fff9e6;
  stroke-width: 8px;
  stroke-linejoin: round;
}
.online-depth {
  font-size: 68px;
  letter-spacing: 5px;
  fill: #1579b8;
  stroke: #0d3652;
  stroke-width: 15px;
  stroke-linejoin: round;
}
.paw-mark use {
  fill: url(#title-gold);
  stroke: #6c310d;
  stroke-width: 6px;
  paint-order: stroke fill;
  filter: url(#icon-shadow);
}
.paw-mark {
  transform-box: view-box;
  transform-origin: 500px 58px;
  transform: rotate(17deg);
}
.logo-bone use {
  fill: #fff4d7;
  stroke: #6c3411;
  stroke-width: 4px;
  paint-order: stroke fill;
  filter: url(#icon-shadow);
}
.online-row {
  transform-box: view-box;
  transform-origin: 286px 190px;
}

.tagline-board {
  position: relative;
  margin: -12px 0 0 8px;
  width: 462px;
  padding: 11px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: center;
  border-radius: 15px;
  color: #ffe9b7;
  background:
    linear-gradient(180deg, rgba(112, 70, 35, .94), rgba(71, 41, 20, .95)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 215, 150, .04) 28px 29px);
  border: 2px solid rgba(206, 155, 93, .82);
  box-shadow:
    0 5px 0 rgba(48, 26, 12, .72),
    0 14px 30px rgba(30, 14, 4, .35),
    inset 0 2px 0 rgba(255, 228, 180, .23),
    inset 0 -3px 0 rgba(28, 13, 5, .35);
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: .1px;
  text-shadow: 0 2px 0 rgba(44, 21, 7, .8);
}
.tagline-board::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 222, 164, .16);
  border-radius: 10px;
  pointer-events: none;
}
.tagline-board span:first-child {
  color: #ffecc6;
}

/* ============================================================
   Side menu
   ============================================================ */
.side-menu {
  position: absolute;
  z-index: 8;
  left: 22px;
  top: 322px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.menu-btn {
  position: relative;
  width: 94px;
  height: 99px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 23px;
  color: var(--cream);
  background:
    radial-gradient(115% 80% at 30% 10%, rgba(255, 255, 255, .20), transparent 48%),
    linear-gradient(180deg, rgba(116, 79, 47, .97) 0%, rgba(75, 47, 27, .98) 54%, rgba(49, 30, 17, .99) 100%);
  border: 2px solid rgba(255, 211, 143, .36);
  box-shadow:
    0 5px 0 rgba(44, 24, 11, .82),
    0 12px 20px rgba(24, 11, 3, .33),
    inset 0 2px 0 rgba(255, 241, 208, .2),
    inset 0 -6px 16px rgba(29, 14, 5, .3);
  transition: transform .13s ease, filter .13s ease, border-color .13s ease;
}
.menu-btn::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 18px;
  border: 1px solid rgba(255, 233, 191, .12);
  pointer-events: none;
}
.menu-btn:hover {
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.08);
  border-color: rgba(255, 221, 159, .65);
}
.menu-btn:active { transform: translateY(0) scale(.97); }
.menu-icon {
  color: #ffdd97;
  filter: drop-shadow(0 2px 2px rgba(30, 13, 3, .65));
}
.menu-icon svg { width: 39px; height: 39px; }
.menu-label {
  font-family: var(--display-font);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: .1px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(44, 21, 7, .8);
}
.menu-btn .badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 50px;
  background: linear-gradient(180deg, #ff9468, #db452f);
  border: 2px solid #ffdba3;
  color: #fff8e8;
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(53, 13, 5, .45);
  animation: badge-bob 2.8s ease-in-out infinite;
}
@keyframes badge-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ============================================================
   Minimap
   ============================================================ */
.minimap-panel {
  position: absolute;
  z-index: 8;
  right: 18px;
  top: 16px;
  width: 272px;
  padding: 24px 10px 10px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(61, 43, 29, .78), rgba(26, 19, 13, .86));
  border: 1px solid rgba(255, 219, 158, .35);
  box-shadow:
    0 14px 30px rgba(21, 9, 2, .38),
    inset 0 1px 0 rgba(255, 248, 230, .16);
  backdrop-filter: blur(9px) saturate(1.05);
}
.minimap-title {
  position: relative;
  z-index: 2;
  height: 42px;
  margin: -33px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(112, 73, 38, .99), rgba(64, 39, 20, .99)),
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(255, 229, 184, .05) 15px 16px);
  border: 2px solid rgba(217, 169, 104, .8);
  box-shadow:
    0 4px 0 rgba(39, 21, 8, .8),
    0 8px 15px rgba(24, 10, 2, .35),
    inset 0 2px 0 rgba(255, 237, 200, .2);
  font-family: var(--display-font);
  font-size: 21px;
  font-weight: 700;
  color: #ffeec6;
  letter-spacing: .2px;
  text-shadow: 0 2px 0 #3e200c;
}
.sound-btn {
  position: relative;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 238, 203, .75);
  background: rgba(35, 20, 9, .36);
  border: 1px solid rgba(255, 224, 169, .2);
  transition: background .15s ease, color .15s ease;
}
.minimap-audio-controls {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.audio-open-btn {
  position: relative;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 238, 203, .75);
  background: rgba(35, 20, 9, .36);
  border: 1px solid rgba(255, 224, 169, .2);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.audio-open-btn:hover,
.audio-open-btn.active { background: rgba(255, 235, 200, .16); color: #fff2d2; }
.audio-open-btn.active { transform: rotate(-8deg); }
.audio-open-btn svg { width: 14px; height: 14px; }
.sound-btn:hover { background: rgba(255, 235, 200, .16); color: #fff2d2; }
.sound-btn svg { width: 15px; height: 15px; }
.sound-btn .sound-off { display: none; }
body.muted .sound-btn .sound-on { display: none; }
body.muted .sound-btn .sound-off { display: block; }
#mapName {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0 62px 0 4px;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.minimap-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(197, 151, 93, .75);
  background: #7b9a58;
  box-shadow:
    inset 0 2px 8px rgba(28, 13, 4, .4),
    0 1px 0 rgba(255, 236, 199, .2);
}
.minimap-frame canvas {
  display: block;
  width: 100%;
  height: auto;
}
.minimap-pin { display: none; }

.online-row-count {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 6px 1px;
  font-size: 14px;
  font-weight: 700;
  color: #f8e2bb;
  text-shadow: 0 1px 2px rgba(20, 9, 2, .5);
}
.online-row-count b { color: #fff6de; font-weight: 900; }
.online-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #8df08c;
  box-shadow: 0 0 0 3px rgba(116, 224, 116, .16), 0 0 9px rgba(124, 255, 133, .8);
  animation: online-pulse 2.1s ease-out infinite;
}
@keyframes online-pulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 238, 132, .45), 0 0 8px rgba(124, 255, 133, .6); }
  70% { box-shadow: 0 0 0 6px rgba(126, 238, 132, 0), 0 0 8px rgba(124, 255, 133, .15); }
  100% { box-shadow: 0 0 0 0 rgba(126, 238, 132, 0), 0 0 8px rgba(124, 255, 133, .6); }
}
.weather {
  margin-left: auto;
  font-size: 12.5px;
  color: rgba(255, 235, 199, .62);
  font-weight: 800;
}

/* ============================================================
   Chat
   ============================================================ */
.chat-panel {
  position: absolute;
  z-index: 9;
  left: 22px;
  bottom: 22px;
  width: 430px;
  height: 218px;
  padding: 11px 13px 12px;
  display: flex;
  flex-direction: column;
  border-radius: 19px;
  background:
    linear-gradient(180deg, rgba(22, 44, 56, .72), rgba(8, 21, 29, .88));
  border: 1px solid rgba(173, 211, 225, .22);
  box-shadow:
    0 18px 38px rgba(5, 12, 14, .4),
    inset 0 1px 0 rgba(244, 253, 255, .15);
  backdrop-filter: blur(10px) saturate(1.05);
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(196, 224, 234, .65);
}
.chat-title { display: flex; align-items: center; gap: 6px; }
.chat-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ae0ae;
  box-shadow: 0 0 8px rgba(103, 235, 165, .8);
}
.chat-hint {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  color: rgba(197, 221, 229, .38);
  text-transform: none;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 2px 3px 5px;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 600;
  color: #e9f5fa;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.chat-log::-webkit-scrollbar { display: none; }
.chat-line {
  animation: chat-in .22s ease both;
  word-break: break-word;
}
.chat-line .chat-name { font-weight: 900; }
.chat-line .chat-text { color: #dcecf1; opacity: .94; }
.chat-line .chat-text.me { color: #f7ead2; }
.chat-line .chat-heart { color: #ff9ba8; }
@keyframes chat-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-form {
  display: flex;
  gap: 8px;
  padding-top: 2px;
}
.chat-form input {
  flex: 1;
  min-width: 0;
  height: 39px;
  padding: 0 13px;
  border-radius: 12px;
  color: #effbff;
  background: rgba(5, 16, 23, .65);
  border: 1px solid rgba(166, 208, 222, .24);
  font-size: 14.5px;
  font-weight: 600;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .22);
  transition: border-color .15s ease, background .15s ease;
}
.chat-form input::placeholder { color: rgba(195, 221, 230, .42); font-weight: 600; }
.chat-form input:focus {
  border-color: rgba(255, 219, 151, .55);
  background: rgba(5, 16, 23, .84);
}
.chat-form button {
  width: 42px;
  height: 39px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #614018;
  background: linear-gradient(180deg, #ffedbc, #d8a95f);
  border: 1px solid rgba(255, 247, 221, .7);
  box-shadow:
    0 2px 0 rgba(84, 49, 16, .6),
    inset 0 1px 0 rgba(255, 255, 255, .65);
  transition: transform .12s ease, filter .12s ease;
}
.chat-form button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.chat-form button:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(84, 49, 16, .6); }
.chat-form button svg { width: 19px; height: 19px; transform: translateX(-1px); }

/* ============================================================
   Action bar
   ============================================================ */
.action-bar {
  position: absolute;
  z-index: 10;
  left: 864px;
  bottom: 15px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.action-btn {
  position: relative;
  width: 116px;
  height: 89px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 20px;
  color: #ffe7b7;
  font-family: var(--display-font);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .1px;
  text-shadow: 0 2px 0 rgba(45, 22, 8, .8);
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(180deg, rgba(108, 73, 45, .98), rgba(64, 41, 23, .99) 60%, rgba(44, 27, 15, 1));
  border: 2px solid rgba(255, 213, 148, .34);
  box-shadow:
    0 5px 0 rgba(40, 21, 9, .85),
    0 11px 19px rgba(24, 11, 3, .3),
    inset 0 2px 0 rgba(255, 243, 213, .18),
    inset 0 -7px 14px rgba(28, 13, 5, .3);
  transition: transform .12s ease, border-color .12s ease, filter .12s ease;
}
.action-btn::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 15px;
  border: 1px solid rgba(255, 235, 196, .1);
  pointer-events: none;
}
.action-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  border-color: rgba(255, 225, 165, .6);
}
.action-btn:active, .action-btn.pressed { transform: translateY(1px) scale(.975); }
.action-btn.active {
  border-color: rgba(255, 221, 143, .92);
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(255, 242, 196, .26), transparent 55%),
    linear-gradient(180deg, rgba(140, 96, 49, .99), rgba(89, 55, 27, .99) 60%, rgba(58, 35, 18, 1));
  box-shadow:
    0 5px 0 rgba(40, 21, 9, .85),
    0 0 24px rgba(255, 202, 93, .22),
    inset 0 2px 0 rgba(255, 249, 224, .25);
}
.action-btn kbd {
  position: absolute;
  top: 7px;
  right: 9px;
  color: rgba(255, 238, 203, .4);
  font-family: var(--ui-font);
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
}
.action-icon {
  display: grid;
  place-items: center;
  color: #ffdc94;
  filter: drop-shadow(0 2px 2px rgba(33, 15, 4, .55));
}
.action-icon svg { width: 35px; height: 35px; }
.action-btn[data-emote="dance"] .action-icon { color: #ffbbae; }
.action-btn[data-emote="bark"] .action-icon { color: #ffd786; }
.action-btn[data-emote="eat"] .action-icon { color: #ffcd8c; }

/* ============================================================
   Zoom controls
   ============================================================ */
.zoom-controls {
  position: absolute;
  z-index: 10;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.zoom-label {
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.6px;
  color: rgba(255, 234, 194, .4);
  text-shadow: 0 1px 2px rgba(20, 9, 2, .5);
}
.zoom-btn {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffe8ba;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .2), transparent 55%),
    linear-gradient(180deg, rgba(96, 66, 40, .94), rgba(49, 31, 17, .96));
  border: 1px solid rgba(255, 223, 161, .38);
  box-shadow:
    0 4px 0 rgba(38, 20, 8, .65),
    0 8px 16px rgba(24, 11, 3, .3),
    inset 0 1px 0 rgba(255, 244, 214, .2);
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  transition: transform .12s ease, filter .12s ease;
}
.zoom-btn svg { width: 17px; height: 17px; }
.zoom-btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.zoom-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(38, 20, 8, .65); }

/* ============================================================
   Round side buttons
   ============================================================ */
.side-actions {
  position: absolute;
  z-index: 10;
  right: 19px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  pointer-events: none;
}
.side-actions .round-btn { pointer-events: auto; }
.round-btn {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #5d3e22;
  background:
    radial-gradient(circle at 36% 25%, rgba(255, 255, 255, .9), rgba(247, 235, 215, .55) 30%, rgba(205, 180, 145, .72) 68%, rgba(148, 117, 81, .9) 100%);
  border: 3px solid rgba(255, 248, 234, .62);
  box-shadow:
    0 7px 0 rgba(70, 43, 21, .45),
    0 16px 28px rgba(24, 11, 3, .4),
    inset 0 2px 2px rgba(255, 255, 255, .75),
    inset 0 -7px 12px rgba(100, 68, 35, .22);
  transition: transform .14s ease, filter .14s ease;
}
.round-btn:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.04); }
.round-btn:active { transform: translateY(2px) scale(.98); }
.round-btn.small { width: 73px; height: 73px; }
.round-btn.small svg { width: 36px; height: 36px; }
.round-btn.big { width: 118px; height: 118px; }
.round-btn.big svg { width: 67px; height: 67px; color: rgba(255, 255, 255, .95); filter: drop-shadow(0 2px 2px rgba(92, 58, 25, .45)); }
.round-btn .btn-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(37, 21, 9, .82);
  border: 1px solid rgba(255, 222, 162, .24);
  color: #ffe8bd;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.round-btn:hover .btn-label { opacity: 1; transform: translateX(-50%) translateY(0); }
.round-btn.big .big-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 245, 220, .18);
  animation: big-glow 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes big-glow {
  0%, 100% { transform: scale(.97); opacity: .45; }
  50% { transform: scale(1.05); opacity: 1; }
}
.round-btn.big::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 251, 240, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  pointer-events: none;
}

/* ============================================================
   Hint / toasts
   ============================================================ */
.hint-pill {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(35, 24, 13, .62);
  border: 1px solid rgba(255, 229, 181, .22);
  box-shadow: 0 7px 20px rgba(18, 8, 2, .25);
  color: rgba(255, 240, 210, .83);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.hint-pill.hide { opacity: 0; transform: translateX(-50%) translateY(8px); }
.hint-pill b { color: #ffe2a3; font-weight: 900; }
.hint-key {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 240, 210, .13);
  border: 1px solid rgba(255, 233, 193, .22);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .4px;
  color: #fff0c9;
}

.toast-stack {
  position: absolute;
  z-index: 20;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 17px 9px 11px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(76, 52, 31, .93), rgba(40, 25, 13, .95));
  border: 1px solid rgba(255, 216, 149, .44);
  box-shadow: 0 9px 24px rgba(18, 7, 1, .35), inset 0 1px 0 rgba(255, 244, 216, .22);
  color: #ffebc6;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(43, 22, 8, .7);
  animation: toast-in .3s cubic-bezier(.2, .9, .25, 1.2) both;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.toast.leaving { animation: toast-out .3s ease both; }
.toast .toast-ico {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 223, 157, .14);
  color: #ffdd98;
}
.toast .toast-ico svg { width: 17px; height: 17px; }
.toast.gold { border-color: rgba(255, 210, 115, .75); box-shadow: 0 0 26px rgba(255, 194, 76, .22), 0 9px 24px rgba(18, 7, 1, .35); }
.toast.small { font-size: 13px; padding: 7px 14px 7px 9px; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-6px) scale(.96); }
}

/* ============================================================
   Modal panels
   ============================================================ */
.modal-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
}
.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(17, 9, 4, .48);
  backdrop-filter: blur(3px);
  animation: scrim-in .2s ease both;
}
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }

.panel {
  position: relative;
  z-index: 1;
  width: 646px;
  max-height: 760px;
  display: flex;
  flex-direction: column;
  border-radius: 27px;
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, .06), transparent 48%),
    linear-gradient(180deg, rgba(67, 46, 30, .985), rgba(30, 20, 12, .99));
  border: 2px solid rgba(227, 177, 110, .55);
  box-shadow:
    0 34px 80px rgba(6, 2, 0, .62),
    0 0 0 1px rgba(33, 17, 7, .8),
    inset 0 2px 0 rgba(255, 236, 197, .16);
  animation: panel-in .3s cubic-bezier(.2, .9, .25, 1.12) both;
  overflow: hidden;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 21px;
  border: 1px solid rgba(255, 230, 186, .09);
  pointer-events: none;
}
.panel-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 23px 25px 17px;
  border-bottom: 1px solid rgba(255, 216, 152, .13);
  background: linear-gradient(180deg, rgba(255, 230, 188, .045), transparent);
}
.panel-heading { flex: 1; min-width: 0; }
.panel-kicker {
  display: block;
  margin-bottom: 2px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 209, 124, .64);
}
.panel h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff1d1;
  text-shadow: 0 2px 0 rgba(32, 15, 5, .8);
}
.panel-close {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 231, 190, .8);
  background: rgba(255, 237, 205, .07);
  border: 1px solid rgba(255, 228, 181, .2);
  transition: background .15s ease, transform .15s ease;
}
.panel-close:hover { background: rgba(255, 227, 175, .16); transform: rotate(7deg); }
.panel-close svg { width: 17px; height: 17px; }
.panel-body {
  overflow-y: auto;
  padding: 17px 25px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 210, 135, .28) transparent;
}
.panel-body::-webkit-scrollbar { width: 8px; }
.panel-body::-webkit-scrollbar-thumb {
  background: rgba(255, 213, 142, .23);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.panel-sub {
  margin: 0;
  padding: 13px 25px 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(249, 222, 183, .62);
}
.coin-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 6px 13px 6px 8px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(255, 232, 192, .08);
  border: 1px solid rgba(255, 221, 160, .22);
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 700;
  color: #ffe4a9;
}
.coin-chip svg { width: 22px; height: 22px; }
.friends-count {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 232, 192, .06);
  border: 1px solid rgba(255, 221, 160, .16);
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(255, 234, 199, .7);
}
.friends-count b { color: #fff0cb; font-size: 14px; }

/* ---- quests ---- */
.profile-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 25px;
  border-bottom: 1px solid rgba(255, 216, 152, .1);
  background: linear-gradient(90deg, rgba(255, 218, 152, .07), transparent 75%);
}
.profile-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6c4219;
  background:
    radial-gradient(circle at 35% 28%, #fff5d8, #f4d394 55%, #c88d44);
  border: 2px solid rgba(255, 240, 207, .7);
  box-shadow: 0 5px 12px rgba(22, 9, 2, .35), inset 0 2px 0 rgba(255, 255, 255, .55);
}
.profile-avatar svg { width: 31px; height: 31px; }
.profile-info { flex: 1; min-width: 0; }
.profile-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.profile-name { font-family: var(--display-font); font-size: 18px; font-weight: 700; color: #fff1d2; }
.profile-level {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 209, 117, .14);
  color: #ffdaa0;
  border: 1px solid rgba(255, 214, 141, .2);
}
.profile-xp {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 226, 181, .5);
}
.xp-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 235, 205, .1);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3);
}
.xp-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffcd6a, #ffebad);
  box-shadow: 0 0 10px rgba(255, 204, 102, .35);
  transition: width .4s ease;
}
.profile-coins {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  color: #ffe3a5;
}
.profile-coins svg { width: 22px; height: 22px; }

.quest-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  margin-bottom: 9px;
  border-radius: 16px;
  background: rgba(255, 244, 221, .048);
  border: 1px solid rgba(255, 229, 186, .1);
  transition: background .15s ease, border-color .15s ease;
}
.quest-card:hover { background: rgba(255, 243, 218, .07); border-color: rgba(255, 224, 170, .18); }
.quest-ico {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--q-color, #ffd67d);
  background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.quest-ico svg { width: 26px; height: 26px; }
.quest-main { flex: 1; min-width: 0; }
.quest-name {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 600;
  color: #fbeccd;
}
.quest-desc { font-size: 12.5px; font-weight: 600; color: rgba(238, 213, 176, .58); }
.quest-progress-row { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.quest-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 240, 214, .1);
  overflow: hidden;
}
.quest-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #eda944, #ffdf95);
  box-shadow: 0 0 8px rgba(255, 199, 105, .25);
}
.quest-count { flex: none; font-size: 10.5px; font-weight: 900; color: rgba(255, 229, 184, .55); letter-spacing: .2px; }
.quest-reward {
  flex: none;
  min-width: 82px;
  height: 39px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 238, 197, .17), rgba(255, 238, 197, .07));
  border: 1px solid rgba(255, 232, 187, .19);
  font-size: 11.5px;
  font-weight: 900;
  color: #ffe7b4;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.quest-reward:not(:disabled):hover { background: rgba(255, 236, 192, .2); transform: translateY(-1px); }
.quest-reward svg { width: 16px; height: 16px; }
.quest-reward.claim {
  background: linear-gradient(180deg, #ffdf98, #e9ae4f);
  border-color: rgba(255, 244, 211, .7);
  color: #55401c;
  box-shadow: 0 3px 0 rgba(109, 63, 18, .5), inset 0 1px 0 rgba(255, 255, 255, .55);
  text-shadow: none;
}
.quest-reward.claim:hover { filter: brightness(1.06); background: linear-gradient(180deg, #ffe7ae, #f0b75b); }
.quest-reward.claimed { opacity: .45; }

/* ---- shop ---- */
.shop-tabs {
  display: flex;
  gap: 7px;
  padding: 14px 25px 0;
}
.shop-tab {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(255, 232, 197, .58);
  border: 1px solid rgba(255, 229, 184, .12);
  background: rgba(255, 235, 204, .035);
  transition: all .15s ease;
}
.shop-tab:hover { color: #ffe7bd; background: rgba(255, 235, 204, .08); }
.shop-tab.active {
  color: #493418;
  background: linear-gradient(180deg, #ffe7ad, #e7b45f);
  border-color: rgba(255, 246, 219, .6);
  box-shadow: 0 2px 0 rgba(105, 65, 20, .5);
}
.shop-body { padding-top: 13px; }
.shop-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: rgba(255, 244, 221, .045);
  border: 1px solid rgba(255, 229, 186, .09);
}
.item-thumb {
  width: 53px;
  height: 53px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--item-color, #ffd581);
  background:
    radial-gradient(100% 100% at 30% 0%, rgba(255, 255, 255, .13), transparent 60%),
    linear-gradient(145deg, rgba(255, 244, 221, .1), rgba(255, 244, 221, .03));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.item-thumb svg { width: 33px; height: 33px; }
.item-main { flex: 1; min-width: 0; }
.item-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display-font);
  font-size: 16.5px;
  font-weight: 600;
  color: #f9ebce;
}
.item-desc { font-size: 12px; font-weight: 600; color: rgba(243, 219, 184, .52); line-height: 1.35; }
.item-owned {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(143, 221, 142, .12);
  color: #b7e9ad;
  border: 1px solid rgba(155, 230, 151, .18);
}
.shop-buy {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 37px;
  padding: 0 13px;
  border-radius: 11px;
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 700;
  color: #503717;
  background: linear-gradient(180deg, #ffe6a7, #e4ad53);
  border: 1px solid rgba(255, 246, 219, .65);
  box-shadow: 0 3px 0 rgba(102, 62, 18, .45), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: filter .12s ease, transform .12s ease;
}
.shop-buy:hover { filter: brightness(1.07); transform: translateY(-1px); }
.shop-buy:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(102, 62, 18, .45); }
.shop-buy:disabled { opacity: .45; filter: grayscale(.35); cursor: not-allowed; transform: none; }
.shop-buy svg { width: 16px; height: 16px; }

/* ---- inventory ---- */
.inventory-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding-top: 14px;
}
.inv-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 244, 221, .045);
  border: 1px solid rgba(255, 229, 186, .09);
}
.inv-card .item-thumb { width: 48px; height: 48px; border-radius: 12px; }
.inv-card .item-thumb svg { width: 29px; height: 29px; }
.inv-main { flex: 1; min-width: 0; }
.inv-main .item-name { font-size: 15.5px; }
.inv-main .item-desc { margin-top: 1px; }
.inv-actions { display: flex; align-items: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.inv-use {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .2px;
  color: #533a1b;
  background: linear-gradient(180deg, #ffe4a0, #dfa94e);
  border: 1px solid rgba(255, 245, 217, .55);
  box-shadow: 0 2px 0 rgba(99, 60, 17, .4);
}
.inv-use:hover { filter: brightness(1.06); }
.inv-use.equipped {
  color: #b7eab2;
  background: rgba(132, 211, 131, .12);
  border-color: rgba(148, 225, 145, .24);
  box-shadow: none;
  cursor: default;
}
.inv-qty { font-size: 10.5px; font-weight: 900; color: rgba(255, 232, 193, .55); }
.inv-empty {
  grid-column: 1 / -1;
  padding: 28px 0;
  text-align: center;
  color: rgba(255, 229, 190, .4);
  font-weight: 700;
}

/* ---- friends ---- */
.friends-body { padding-top: 12px; }
.friend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 15px;
  border-bottom: 1px solid transparent;
  transition: background .15s ease;
}
.friend-row:hover { background: rgba(255, 244, 221, .045); }
.friend-avatar {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 239, 210, .08);
  border: 2px solid rgba(255, 232, 190, .22);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .2);
}
.friend-avatar canvas { display: block; width: 100%; height: 100%; }
.friend-main { flex: 1; min-width: 0; }
.friend-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display-font);
  font-size: 16.5px;
  font-weight: 600;
  color: #f9eccf;
}
.friend-name .online-dot { width: 6px; height: 6px; box-shadow: none; animation: none; }
.friend-status { font-size: 11.5px; font-weight: 600; color: rgba(242, 219, 184, .5); }
.friend-hello {
  flex: none;
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 900;
  color: #ffe7b6;
  background: rgba(255, 236, 199, .09);
  border: 1px solid rgba(255, 231, 190, .18);
  transition: background .15s ease, transform .15s ease;
}
.friend-hello:hover { background: rgba(255, 236, 199, .17); transform: translateY(-1px); }
.friend-hello.ready {
  color: #56401e;
  background: linear-gradient(180deg, #ffe7a8, #e3ad52);
  border-color: rgba(255, 247, 223, .6);
}

/* ============================================================
   Rotate hint & boot
   ============================================================ */
.rotate-hint {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(110% 80% at 50% 30%, rgba(106, 74, 43, .55), transparent 65%),
    rgba(22, 14, 8, .96);
}
.rotate-hint.show { display: flex; }
.rotate-inner { max-width: 340px; text-align: center; }
.rotate-phone {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  color: #6b431f;
  background: linear-gradient(145deg, #fff3d1, #d9ae6b);
  border: 2px solid rgba(255, 245, 217, .55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4), inset 0 2px 0 rgba(255, 255, 255, .6);
  animation: rotate-wiggle 2.6s ease-in-out infinite;
}
.rotate-phone svg { width: 54px; height: 54px; }
@keyframes rotate-wiggle {
  0%, 55%, 100% { transform: rotate(0); }
  65%, 85% { transform: rotate(-90deg); }
}
.rotate-inner h3 {
  margin: 0 0 7px;
  font-family: var(--display-font);
  font-size: 25px;
  color: #ffedc6;
}
.rotate-inner p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  color: rgba(247, 221, 180, .62);
}
.rotate-inner button {
  padding: 10px 21px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  color: #4b3517;
  background: linear-gradient(180deg, #ffe6a8, #dca94d);
  border: 1px solid rgba(255, 246, 219, .6);
  box-shadow: 0 4px 0 rgba(91, 55, 15, .5);
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(100% 80% at 50% 38%, #5b422b, #22160d 72%);
  color: rgba(255, 236, 198, .8);
  transition: opacity .55s ease, visibility .55s ease;
}
.boot-screen.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-screen p {
  margin: 0;
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .2px;
}
.boot-paw {
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  color: #5c3a18;
  background: linear-gradient(145deg, #fff2cc, #dcaa63);
  border: 2px solid rgba(255, 246, 220, .55);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .4), inset 0 2px 0 rgba(255, 255, 255, .55);
  animation: boot-bounce 1.25s cubic-bezier(.2, .8, .3, 1.2) infinite;
}
.boot-paw svg { width: 48px; height: 48px; }
@keyframes boot-bounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  40% { transform: translateY(-12px) rotate(6deg); }
  60% { transform: translateY(-4px) rotate(2deg); }
}

/* ============================================================
   Welcome / random dog reveal
   ============================================================ */
.welcome-layer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
}
.welcome-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(65% 55% at 50% 40%, rgba(61, 42, 25, .22), transparent 75%),
    rgba(17, 10, 5, .62);
  backdrop-filter: blur(7px) saturate(.95);
  animation: scrim-in .35s ease both;
}
.welcome-card {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  padding: 25px 30px 22px;
  text-align: center;
  border-radius: 27px;
  background:
    radial-gradient(110% 65% at 50% 0%, rgba(255, 255, 255, .08), transparent 55%),
    linear-gradient(180deg, rgba(70, 48, 31, .985), rgba(31, 20, 11, .995));
  border: 2px solid rgba(233, 184, 112, .6);
  box-shadow:
    0 35px 90px rgba(5, 2, 0, .6),
    inset 0 2px 0 rgba(255, 239, 205, .2);
  animation: welcome-in .48s cubic-bezier(.18, .9, .25, 1.12) both;
}
@keyframes welcome-in {
  from { opacity: 0; transform: translateY(22px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.welcome-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 21px;
  border: 1px solid rgba(255, 231, 187, .1);
  pointer-events: none;
}
.welcome-kicker {
  margin-bottom: 13px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  color: rgba(255, 211, 130, .65);
}
.welcome-avatar {
  position: relative;
  width: 154px;
  height: 154px;
  margin: 0 auto 15px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(145deg, rgba(255, 235, 191, .65), rgba(255, 213, 139, .15));
  border: 1px solid rgba(255, 233, 188, .35);
  box-shadow: 0 16px 34px rgba(9, 4, 1, .35);
}
.welcome-avatar::after {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 222, 162, .2);
  animation: welcome-spin 26s linear infinite;
  pointer-events: none;
}
@keyframes welcome-spin { to { transform: rotate(360deg); } }
.welcome-avatar canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.welcome-card h2 {
  margin: 0 0 9px;
  font-family: var(--display-font);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.16;
  color: #fff0cf;
  text-shadow: 0 2px 0 rgba(31, 14, 4, .8);
}
.welcome-card h2 span {
  font-size: 34px;
  color: #ffd578;
  text-shadow: 0 3px 0 rgba(75, 39, 8, .55), 0 0 24px rgba(255, 198, 88, .2);
}
.welcome-copy {
  margin: 0 auto 13px;
  max-width: 338px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.56;
  color: rgba(250, 226, 189, .68);
}
.welcome-copy b { color: #ffe3ac; font-weight: 900; }
.welcome-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.welcome-tags span {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 235, 202, .07);
  border: 1px solid rgba(255, 226, 178, .15);
  font-size: 10.5px;
  font-weight: 800;
  color: rgba(255, 228, 187, .6);
}
.welcome-actions {
  display: flex;
  gap: 9px;
  justify-content: center;
}
.welcome-primary,
.welcome-secondary {
  height: 46px;
  border-radius: 13px;
  font-family: var(--display-font);
  font-weight: 700;
  transition: transform .14s ease, filter .14s ease;
}
.welcome-secondary {
  padding: 0 16px;
  color: rgba(255, 235, 203, .78);
  background: rgba(255, 232, 196, .075);
  border: 1px solid rgba(255, 229, 185, .2);
  font-size: 13px;
}
.welcome-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #503717;
  font-size: 15px;
  background: linear-gradient(180deg, #ffedb8, #e3ae54);
  border: 1px solid rgba(255, 247, 222, .7);
  box-shadow:
    0 4px 0 rgba(100, 60, 17, .55),
    inset 0 1px 0 rgba(255, 255, 255, .7);
}
.welcome-primary svg { width: 20px; height: 20px; }
.welcome-primary:hover,
.welcome-secondary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.welcome-primary:active,
.welcome-secondary:active { transform: translateY(1px); }
.welcome-note {
  margin-top: 15px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2px;
  color: rgba(246, 222, 185, .34);
}

/* ============================================================
   Small screens
   ============================================================ */
@media (max-width: 1180px) {
  .chat-hint { display: none; }
}
@media (max-width: 700px) {
  .brand { filter: drop-shadow(0 10px 18px rgba(38, 18, 5, .15)); }
  .hint-pill { display: none; }
}

/* ============================================================
   World map / travel
   ============================================================ */
.map-fade {
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(62, 41, 24, .94), #120a04 82%);
  opacity: 0;
  transition: opacity .3s ease;
}
.map-fade.show { opacity: 1; pointer-events: auto; }

.map-open-btn {
  width: 100%;
  height: 37px;
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 11px;
  font-family: var(--display-font);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #ffeec6;
  background:
    linear-gradient(180deg, rgba(112, 73, 38, .95), rgba(64, 39, 20, .98));
  border: 1px solid rgba(217, 169, 104, .6);
  box-shadow:
    0 3px 0 rgba(39, 21, 8, .75),
    inset 0 1px 0 rgba(255, 237, 200, .16);
  transition: transform .13s ease, filter .13s ease;
}
.map-open-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.map-open-btn:active { transform: translateY(1px); }
.map-open-btn svg { width: 17px; height: 17px; flex: none; color: #ffd78f; }
.map-open-btn span { flex: 1; text-align: left; }
.map-open-btn b {
  min-width: 36px;
  padding: 2px 6px;
  border-radius: 7px;
  font-size: 11.5px;
  color: #4d3011;
  background: linear-gradient(180deg, #ffe9ad, #d9a756);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}

.minimap-frame { cursor: pointer; transition: filter .16s ease; }
.minimap-frame:hover { filter: brightness(1.07); }

.portal-prompt {
  position: absolute;
  z-index: 13;
  left: 50%;
  bottom: 124px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 17px 9px 10px;
  border-radius: 17px;
  color: #fff1cd;
  background:
    radial-gradient(120% 90% at 25% 0%, rgba(255, 255, 255, .14), transparent 55%),
    linear-gradient(180deg, rgba(87, 59, 34, .97), rgba(44, 27, 14, .98));
  border: 2px solid rgba(255, 217, 150, .55);
  box-shadow:
    0 6px 0 rgba(32, 17, 6, .7),
    0 16px 30px rgba(15, 6, 1, .4),
    inset 0 2px 0 rgba(255, 243, 211, .18);
  animation: portal-in .22s cubic-bezier(.2, .9, .3, 1.15) both;
  cursor: pointer;
}
@keyframes portal-in {
  from { opacity: 0; transform: translate(-50%, 8px) scale(.94); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.portal-prompt:hover { filter: brightness(1.08); }
.portal-key {
  width: 33px;
  height: 33px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-family: var(--display-font);
  font-size: 16px;
  font-weight: 900;
  color: #4e3112;
  background: linear-gradient(180deg, #fff3cb, #d8a44e);
  border: 1px solid rgba(255, 249, 226, .7);
  box-shadow: 0 2px 0 rgba(74, 42, 10, .55), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.portal-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 230, 188, .7);
}
.portal-copy b {
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 700;
  color: #fff0c8;
  text-shadow: 0 1px 0 rgba(40, 20, 5, .6);
}
.portal-copy i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 219, 160, .55);
}
.portal-prompt > svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
  color: #ffd68b;
  transform: rotate(-90deg);
}

/* map picker panel */
.panel-map { width: 1000px; }
.map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  padding-top: 4px;
}
.map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border-radius: 17px;
  color: #f6e5c4;
  background: linear-gradient(180deg, rgba(84, 58, 36, .9), rgba(38, 24, 14, .96));
  border: 1.5px solid rgba(217, 169, 104, .32);
  box-shadow:
    0 4px 0 rgba(25, 13, 5, .45),
    inset 0 1px 0 rgba(255, 238, 203, .1);
  transition: transform .15s ease, border-color .15s ease, filter .15s ease;
}
.map-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 214, 141, .7);
  filter: brightness(1.05);
}
.map-card.current {
  border-color: rgba(255, 219, 137, .85);
  box-shadow:
    0 0 0 2px rgba(255, 204, 108, .18),
    0 6px 18px rgba(12, 5, 1, .35),
    inset 0 1px 0 rgba(255, 244, 213, .18);
}
.map-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 440 / 288;
  overflow: hidden;
  background: #2d2317;
}
.map-thumb canvas {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform .35s ease;
}
.map-card:hover .map-thumb canvas { transform: scale(1.035); }
.map-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(24, 13, 5, .6));
  pointer-events: none;
}
.map-tag {
  position: absolute;
  z-index: 1;
  left: 9px;
  top: 9px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #4c3011;
  background: linear-gradient(180deg, #ffedb9, #dda94f);
  border: 1px solid rgba(255, 247, 221, .65);
  box-shadow: 0 2px 5px rgba(30, 14, 3, .35);
}
.map-tag.visited {
  color: #eaf5e1;
  background: rgba(56, 89, 45, .8);
  border-color: rgba(168, 214, 140, .45);
}
.map-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 11px;
}
.map-card-icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--map-color, #ffd06d);
  background: rgba(255, 226, 172, .08);
  border: 1px solid rgba(255, 224, 169, .16);
}
.map-card-icon svg { width: 21px; height: 21px; }
.map-card-main { min-width: 0; flex: 1; }
.map-card-name {
  display: block;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff0ca;
  text-shadow: 0 1px 0 rgba(37, 19, 5, .55);
}
.map-card-kicker {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 224, 176, .55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-card-meta {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 800;
  color: rgba(255, 228, 181, .4);
}
.map-card-go {
  flex: none;
  font-size: 11.5px;
  font-weight: 900;
  color: #ffd58c;
  opacity: .8;
}
.map-card.current .map-card-go { color: #9fe3a8; opacity: 1; }

@media (max-width: 1180px) {
  .panel-map { width: min(1000px, calc(100vw - 32px)); }
}

/* ============================================================
   Audio settings
   ============================================================ */
.audio-panel {
  position: absolute;
  z-index: 24;
  right: 18px;
  top: 382px;
  width: 292px;
  padding: 14px 15px 13px;
  border-radius: 19px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .08), transparent 55%),
    linear-gradient(180deg, rgba(67, 45, 28, .985), rgba(27, 18, 10, .99));
  border: 1.5px solid rgba(225, 176, 108, .55);
  box-shadow:
    0 20px 46px rgba(10, 4, 1, .55),
    inset 0 1px 0 rgba(255, 240, 207, .16);
  color: #f8e8c7;
  animation: audio-in .22s cubic-bezier(.2, .9, .3, 1.12) both;
}
@keyframes audio-in {
  from { opacity: 0; transform: translateY(-7px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.audio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 221, 163, .14);
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  color: #fff0ca;
}
.audio-head > span { display: flex; align-items: center; gap: 7px; }
.audio-head svg { width: 18px; height: 18px; color: #ffd37f; }
.audio-close {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 231, 190, .72);
  background: rgba(255, 237, 205, .07);
  border: 1px solid rgba(255, 228, 181, .18);
}
.audio-close:hover { background: rgba(255, 227, 175, .16); }
.audio-close svg { width: 13px; height: 13px; }
.audio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  font-size: 13px;
  font-weight: 800;
  color: #f4dfb8;
}
.switch {
  position: relative;
  width: 46px;
  height: 25px;
  flex: none;
  border-radius: 13px;
  background: rgba(9, 6, 3, .55);
  border: 1px solid rgba(255, 224, 167, .2);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .35);
  transition: background .18s ease, border-color .18s ease;
}
.switch i {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff0c8, #c9974d);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .18s cubic-bezier(.2, .9, .3, 1.2);
}
.switch.on {
  background: linear-gradient(180deg, #7fbb6f, #4b8e52);
  border-color: rgba(192, 244, 166, .55);
}
.switch.on i { transform: translateX(21px); }
.audio-slider {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 226, 181, .55);
}
.audio-slider > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.audio-slider b { color: #ffe8b2; font-size: 11px; }
.audio-slider input {
  width: 100%;
  height: 17px;
  margin: 0;
  accent-color: #f4c96d;
  cursor: pointer;
}
.audio-select {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 226, 181, .55);
}
.audio-select > span { display: block; margin-bottom: 4px; }
.audio-select select {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border-radius: 9px;
  color: #ffeec8;
  background: rgba(12, 8, 4, .55);
  border: 1px solid rgba(255, 222, 165, .24);
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.audio-select select:focus { border-color: rgba(255, 220, 150, .6); }
.audio-note {
  margin: 10px 0 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255, 228, 184, .35);
}
.sound-btn.playing { color: #ffe4a3; }
.sound-btn.playing .sound-on { filter: drop-shadow(0 0 5px rgba(255, 219, 132, .7)); }

/* ============================================================
   Mic / voice chat
   ============================================================ */
.chat-form .mic-btn {
  position: relative;
  width: 42px;
  height: 39px;
  flex: none;
  color: #a7e7d8;
  background:
    linear-gradient(180deg, rgba(48, 86, 91, .95), rgba(19, 44, 50, .98));
  border: 1px solid rgba(151, 225, 210, .32);
  box-shadow:
    0 2px 0 rgba(6, 20, 22, .65),
    inset 0 1px 0 rgba(227, 255, 250, .18);
}
.chat-form .mic-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  color: #d7fff5;
}
.chat-form .mic-btn:active { transform: translateY(1px); }
.chat-form .mic-btn svg { width: 18px; height: 18px; }
.chat-form .mic-btn svg { transform: none; }
.chat-form .mic-btn.recording {
  color: #fff6ec;
  background: linear-gradient(180deg, #e56a58, #a72f31);
  border-color: rgba(255, 196, 177, .65);
  box-shadow:
    0 0 0 4px rgba(233, 90, 74, .13),
    0 0 18px rgba(255, 99, 80, .55),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}
.mic-ripple {
  position: absolute;
  inset: -5px;
  border-radius: 14px;
  border: 2px solid transparent;
  pointer-events: none;
}
.mic-btn.recording .mic-ripple {
  border-color: rgba(255, 133, 113, .55);
  animation: mic-ping 1.25s ease-out infinite;
}
@keyframes mic-ping {
  0% { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.22); opacity: 0; }
}
.mic-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 1px 7px;
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffd8cf;
  background: rgba(119, 38, 31, .38);
  border: 1px solid rgba(255, 128, 108, .26);
  animation: chat-in .2s ease both;
}
.mic-status b { color: #fff2d5; font-weight: 900; }
.mic-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #ff8371;
  box-shadow: 0 0 8px rgba(255, 107, 85, .85);
  animation: mic-blink 1s ease-in-out infinite;
}
@keyframes mic-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}
.chat-voice { margin: 4px 0 6px; }
.chat-voice audio {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 3px;
  border-radius: 9px;
  color-scheme: dark;
}
.chat-voice audio::-webkit-media-controls-panel { background-color: #172d37; }
.chat-voice .chat-voice-meta {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(198, 225, 232, .42);
}

@media (max-width: 1180px) {
  .audio-panel { width: 264px; }
}

/* ============================================================
   Compact landscape phones: fill the display and keep every HUD row
   inside the cropped, centered 3:2 game stage.
   ============================================================ */
@media (orientation: landscape) and (max-height: 700px) and (max-width: 1280px) {
  #stage { box-shadow: none; }

  .brand {
    top: calc(var(--mobile-landscape-crop, 0px) + 8px);
    left: 16px;
    width: 360px;
  }
  .logo-wrap {
    width: 356px;
    height: 150px;
    margin-left: -4px;
  }
  .tagline-board { display: none; }

  .side-menu {
    top: calc(var(--mobile-landscape-crop, 0px) + 158px);
    left: 16px;
    flex-direction: row;
    gap: 7px;
  }
  .menu-btn {
    width: 82px;
    height: 80px;
    gap: 0;
    border-radius: 14px;
  }
  .menu-btn::before { inset: 3px; border-radius: 10px; }
  .menu-icon svg { width: 30px; height: 30px; }
  .menu-label { display: none; }
  .menu-btn .badge {
    top: -5px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .minimap-panel {
    top: calc(var(--mobile-landscape-crop, 0px) + 12px);
    right: 14px;
    width: 320px;
    padding: 20px 8px 8px;
    border-radius: 16px;
  }
  .minimap-title {
    height: auto;
    min-height: 0;
    margin: -28px 0 8px;
    padding: 7px 8px;
    flex-direction: column;
    gap: 5px;
    border-radius: 9px;
    font-size: 24px;
  }
  #mapName { padding: 0; line-height: 1.15; }
  .minimap-audio-controls {
    position: relative;
    inset: auto;
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  .audio-open-btn,
  .sound-btn { width: 72px; height: 72px; }
  .audio-open-btn svg { width: 24px; height: 24px; }
  .sound-btn svg { width: 25px; height: 25px; }
  .minimap-frame { border-radius: 10px; }
  .online-row-count { gap: 5px; padding: 8px 4px 0; font-size: 17px; }
  .online-dot { width: 9px; height: 9px; }
  .weather { font-size: 15px; }
  .map-open-btn { height: 72px; margin-top: 8px; padding: 0 9px; gap: 6px; font-size: 20px; }
  .map-open-btn svg { width: 25px; height: 25px; }
  .map-open-btn b { min-width: 46px; font-size: 17px; }

  .audio-panel {
    top: var(--mobile-landscape-audio-top, 350px);
    right: 14px;
    width: 360px;
    max-height: calc(var(--mobile-landscape-visible-height, 700px) - 24px);
    overflow-y: auto;
    padding: 8px 14px;
    border-radius: 14px;
  }
  .audio-head { padding-bottom: 6px; font-size: 22px; }
  .audio-close { width: 48px; height: 48px; }
  .audio-row { min-height: 64px; margin-top: 6px; font-size: 20px; }
  .switch { width: 82px; height: 64px; border-radius: 32px; }
  .switch i { left: 4px; top: 4px; width: 56px; height: 56px; }
  .switch.on i { transform: translateX(18px); }
  .audio-slider { margin-top: 4px; font-size: 18px; }
  .audio-slider input { height: 30px; }
  .audio-slider b { font-size: 18px; }
  .audio-select { margin-top: 6px; font-size: 18px; }
  .audio-select select { height: 44px; font-size: 20px; }
  .audio-note { margin-top: 4px; font-size: 15px; }

  .chat-panel {
    left: 16px;
    bottom: calc(var(--mobile-landscape-crop, 0px) + 22px);
    width: 500px;
    height: 230px;
    padding: 8px 10px 9px;
    border-radius: 14px;
  }
  .chat-head { padding-bottom: 4px; font-size: 10px; }
  .chat-hint { display: block; font-size: 9px; }
  .chat-log { font-size: 15px; }
  .chat-form { gap: 5px; }
  .chat-form input { height: 68px; font-size: 18px; }
  .chat-form button { width: 80px; height: 80px; }
  .chat-form .mic-btn { width: 80px; height: 80px; }
  .chat-form button svg,
  .chat-form .mic-btn svg { width: 30px; height: 30px; }

  .action-bar {
    left: 910px;
    bottom: calc(var(--mobile-landscape-crop, 0px) + 22px);
    gap: 8px;
  }
  .action-btn {
    width: 116px;
    height: 86px;
    gap: 1px;
    border-radius: 14px;
    font-size: 14px;
  }
  .action-btn::before { inset: 3px; border-radius: 10px; }
  .action-btn kbd { top: 5px; right: 6px; font-size: 8px; }
  .action-icon svg { width: 29px; height: 29px; }

  .side-actions {
    right: 12px;
    bottom: calc(var(--mobile-landscape-crop, 0px) + 22px);
    gap: 8px;
  }
  .round-btn.small { width: 80px; height: 80px; }
  .round-btn.small svg { width: 40px; height: 40px; }
  .round-btn.big { width: 94px; height: 94px; }
  .round-btn.big svg { width: 54px; height: 54px; }
  .round-btn.big .big-glow { inset: -8px; }

  .zoom-controls { right: 390px; gap: 6px; }
  .zoom-btn { width: 64px; height: 64px; font-size: 30px; }
  .zoom-btn svg { width: 28px; height: 28px; }
  .zoom-label { font-size: 14px; }
  .hint-pill { display: none; }
  .portal-prompt { bottom: calc(var(--mobile-landscape-crop, 0px) + 120px); }
}
