* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #7ec8f2;
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  overscroll-behavior: none;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 44%, transparent 52%, rgba(8, 30, 25, .2) 100%);
}

#waterTint {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  background: linear-gradient(180deg, rgba(24, 116, 180, .45), rgba(10, 70, 120, .6));
}

.hidden { display: none !important; }

/* ---------------- HUD ---------------- */
#hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(10px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 0 calc(14px + env(safe-area-inset-left));
  pointer-events: none;
}
body.playing #hud { display: flex; }

.hud-left {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: rgba(14, 34, 48, .32);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hud-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  flex: 0 0 auto;
}
.hud-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  white-space: nowrap;
}

.egg-hud {
  margin-left: 2px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  color: #ffe6a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
}
.egg-hud b { font-size: 13px; }
.egg-hud.done { color: #ffd45e; text-shadow: 0 0 8px rgba(255, 210, 90, .65); }

.hero-hud {
  margin-left: 2px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  color: #e0c7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
}
.hero-hud.done { color: #ffd45e; text-shadow: 0 0 8px rgba(255, 210, 90, .65); }

#prankOverlay {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
#prankOverlay.stink {
  opacity: 1;
  background: radial-gradient(circle at 50% 55%, rgba(132, 200, 90, .18) 0 35%, rgba(80, 145, 60, .38) 100%);
}
#prankOverlay.mud {
  opacity: 1;
  background:
    radial-gradient(circle at 16% 26%, rgba(92, 62, 32, .82) 0 5.5%, transparent 6.2%),
    radial-gradient(circle at 78% 18%, rgba(105, 72, 38, .72) 0 4.2%, transparent 5%),
    radial-gradient(circle at 34% 74%, rgba(80, 52, 26, .78) 0 6.5%, transparent 7.2%),
    radial-gradient(circle at 88% 66%, rgba(96, 64, 34, .7) 0 4.8%, transparent 5.5%),
    radial-gradient(circle at 55% 42%, rgba(110, 76, 40, .55) 0 3.8%, transparent 4.5%),
    linear-gradient(rgba(90, 60, 30, .12), rgba(90, 60, 30, .12));
}

.hud-right { display: flex; gap: 8px; pointer-events: auto; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(14, 34, 48, .36);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .1s ease, background .15s ease;
  padding: 0;
}
.icon-btn:active { transform: scale(.92); background: rgba(255, 255, 255, .22); }
.icon-btn.off { opacity: .55; }
.icon-btn.active {
  background: rgba(116, 214, 110, .58);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 3px rgba(255, 235, 120, .35);
}

/* ---------------- 准星 ---------------- */
#crosshair {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  z-index: 15;
  display: none;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .65));
}
body.playing #crosshair { display: block; }
#crosshair i, #crosshair b {
  position: absolute;
  background: rgba(255, 255, 255, .95);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
#crosshair i { left: 50%; top: 1px; width: 2px; height: 24px; transform: translateX(-50%); }
#crosshair b { top: 50%; left: 1px; width: 24px; height: 2px; transform: translateY(-50%); }
body.touch #crosshair { width: 30px; height: 30px; }
body.touch #crosshair i { height: 28px; }
body.touch #crosshair b { width: 28px; }

/* ---------------- 物品栏 ---------------- */
#hotbar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 22;
  display: none;
  gap: 5px;
  padding: 6px;
  border-radius: 17px;
  background: rgba(12, 28, 40, .46);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .26);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.playing #hotbar { display: flex; }

.slot {
  position: relative;
  width: 56px;
  height: 68px;
  padding: 0;
  border-radius: 11px;
  border: 2px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  overflow: hidden;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.slot canvas {
  width: 46px;
  height: 46px;
  margin-top: 1px;
  image-rendering: pixelated;
  pointer-events: none;
}
.slot .nm {
  margin-top: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #edf9ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  pointer-events: none;
  white-space: nowrap;
}
.slot .num {
  position: absolute;
  left: 4px;
  top: 2px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  pointer-events: none;
}
.slot.sel {
  border-color: #fff;
  background: rgba(255, 255, 255, .26);
  transform: translateY(-7px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .28);
}
.slot:active { transform: translateY(-3px) scale(.96); }
body.touch .slot .num { display: none; }

#blockName {
  position: fixed;
  left: 50%;
  bottom: calc(98px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 21;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(12, 28, 40, .62);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  white-space: nowrap;
}
#blockName.show { opacity: 1; }

/* ---------------- 触屏操作 ---------------- */
#touchUI { display: none; position: fixed; inset: 0; z-index: 18; pointer-events: none; }
body.touch.playing #touchUI { display: block; }

#joystick {
  position: absolute;
  left: calc(16px + env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .11);
  border: 2px solid rgba(255, 255, 255, .3);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, .12);
  pointer-events: auto;
  touch-action: none;
}
#joystick::after {
  content: "走";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .35);
  pointer-events: none;
}
#knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #d7ecff 58%, #8fc1e2);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .32), inset 0 -2px 4px rgba(0, 0, 0, .12);
  pointer-events: none;
  will-change: transform;
}

#actions {
  position: absolute;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 60px 60px;
  grid-template-rows: 38px 60px 60px;
  gap: 9px;
  pointer-events: none;
}
.act {
  pointer-events: auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  color: #18334a;
  font-family: inherit;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .18), 0 8px 18px rgba(0, 0, 0, .2);
  transition: transform .07s ease, box-shadow .07s ease, filter .15s ease;
  padding: 0;
  touch-action: none;
}
.act:active, .act.down { transform: translateY(4px) scale(.96); box-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.act-break { background: linear-gradient(#ffc481, #ff9b52); }
.act-break.shoo {
  background: linear-gradient(#e1c7ff, #a879e8);
  box-shadow: 0 5px 0 rgba(80, 40, 120, .2), 0 8px 18px rgba(0, 0, 0, .2);
}
.act-break.torch {
  background: linear-gradient(#ffd47a, #e89b3c);
  box-shadow: 0 5px 0 rgba(120, 70, 20, .2), 0 8px 18px rgba(0, 0, 0, .2);
}
.act-break.bed {
  background: linear-gradient(#d9a2e8, #b06ac7);
  box-shadow: 0 5px 0 rgba(90, 40, 110, .2), 0 8px 18px rgba(0, 0, 0, .2);
}
.act-break.zombie {
  background: linear-gradient(#ff9d9d, #d95151);
  box-shadow: 0 5px 0 rgba(120, 30, 30, .2), 0 8px 18px rgba(0, 0, 0, .2);
}
.act-break.door {
  background: linear-gradient(#e2bd83, #b07e3f);
  box-shadow: 0 5px 0 rgba(110, 75, 30, .2), 0 8px 18px rgba(0, 0, 0, .2);
}
.act-break.pet {
  background: linear-gradient(#ffd0dd, #ff8fae);
  box-shadow: 0 5px 0 rgba(130, 40, 70, .2), 0 8px 18px rgba(0, 0, 0, .2);
}
.act-place { background: linear-gradient(#a4ef83, #67cd4c); }
.act-jump  { background: linear-gradient(#9bd8ff, #58b1f0); }
.act-fly   { background: linear-gradient(#d9c2ff, #b08cf0); font-size: 20px; }
.act-fly.active { filter: brightness(1.15); box-shadow: 0 0 0 4px rgba(255, 235, 120, .85), 0 5px 0 rgba(0, 0, 0, .18); }
.act-stack { background: linear-gradient(#ffe28a, #ffbd4a); }
.act-stack.active {
  filter: brightness(1.08);
  box-shadow: 0 0 0 4px rgba(255, 235, 120, .9), 0 4px 0 rgba(0, 0, 0, .18);
}

#btnStack { grid-column: 1 / span 2; grid-row: 1; border-radius: 14px; font-size: 15px; letter-spacing: 1px; }
#btnBreak { grid-column: 1; grid-row: 2; }
#btnPlace { grid-column: 1; grid-row: 3; }
#btnFly   { grid-column: 2; grid-row: 2; }
#btnJump  { grid-column: 2; grid-row: 3; }

/* ---------------- 全景地图 ---------------- */
.map-screen {
  z-index: 60;
  background: rgba(7, 19, 28, .92);
}
.map-panel {
  width: min(760px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 46, 62, .96), rgba(10, 25, 36, .98));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.map-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.map-head h2 { margin: 0; font-size: 21px; letter-spacing: 1px; }
.map-head p { margin: 3px 0 0; font-size: 11px; color: rgba(225, 243, 255, .72); }
.map-head .ghost-btn { flex: 0 0 auto; padding: 6px 18px; font-size: 14px; }
.map-canvas-wrap {
  width: min(64vh, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .2);
  background: #6fbf4a;
}
#overviewMap {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-size: 11px;
  color: rgba(230, 245, 255, .82);
}
.map-legend span { display: inline-flex; align-items: center; gap: 4px; }
.map-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-grass { background: #6fbf4a; }
.lg-water { background: #3f9fdc; }
.lg-road { background: #9a9f9c; }
.lg-home { background: #f08a8a; }
.lg-school { background: #f2d06b; }
.lg-player { background: #ff4d5e; border-radius: 50% !important; }

/* ---------------- 角色和宠物 ---------------- */
.customize-screen { z-index: 45; }
.custom-card {
  width: min(470px, 94vw);
  max-height: 94vh;
  overflow-y: auto;
  border-radius: 22px;
  padding: 16px 18px 15px;
  background: linear-gradient(180deg, rgba(22, 50, 58, .99), rgba(8, 24, 32, .99));
  border: 1px solid rgba(190, 240, 225, .28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  color: #eefcff;
  text-align: center;
}
.custom-card h2 { margin: 0 0 10px; font-size: 24px; }
.custom-section { margin-bottom: 10px; }
.custom-section h3 { margin: 0 0 6px; font-size: 13px; color: rgba(210, 245, 255, .75); letter-spacing: 1px; }
.skin-cards, .pet-cards { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.skin-card {
  width: 104px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  color: #eaf8ff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 6px;
  cursor: pointer;
}
.skin-card img { width: 64px; height: 64px; border-radius: 50%; display: block; margin: 0 auto 3px; }
.skin-card.sel { border-color: #b9f59a; background: rgba(154, 238, 110, .17); box-shadow: 0 0 0 3px rgba(154, 238, 110, .16); }
.pet-card {
  width: 92px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  color: #eaf8ff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 5px 6px;
  cursor: pointer;
}
.pet-card .pet-emoji { display: block; font-size: 30px; line-height: 1.15; }
.pet-card.sel { border-color: #ffd45e; background: rgba(255, 212, 94, .16); box-shadow: 0 0 0 3px rgba(255, 212, 94, .14); }
.pet-card.locked { opacity: .45; filter: grayscale(.6); }
.custom-switch { margin: 3px auto 9px; width: max-content; }
.custom-card .big-btn { width: 100%; margin-top: 2px; }

/* ---------------- 家人联机 ---------------- */
.start-links { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.start-links .ghost-btn, .start-links .coop-btn { margin: 0; }
.coop-btn {
  border: 2px solid rgba(120, 232, 214, .55);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(32, 112, 108, .92), rgba(18, 70, 76, .95));
  color: #eafffa;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 15px;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(6, 42, 44, .35);
}
.coop-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(6, 42, 44, .35); }
.coop-screen { z-index: 40; }
.coop-card {
  width: min(430px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 22px;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(19, 48, 58, .98), rgba(8, 24, 34, .99));
  border: 1px solid rgba(160, 240, 225, .25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  text-align: center;
  color: #eafcff;
}
.coop-card h2 { margin: 0 0 7px; font-size: 26px; }
.coop-lead { margin: 0 0 12px; font-size: 12px; line-height: 1.6; color: rgba(220, 245, 255, .75); }
.coop-name { font-size: 13px; margin-bottom: 10px; color: rgba(220, 245, 255, .85); }
.coop-name b { color: #b9f59a; }
.coop-card .big-btn { width: 100%; margin: 0 0 10px; }
.coop-or { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; font-size: 11px; color: rgba(220, 245, 255, .55); }
.coop-or::before, .coop-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .16); }
.coop-join { display: flex; gap: 7px; align-items: center; justify-content: center; }
.coop-join input {
  width: 150px;
  border: 2px solid rgba(160, 240, 225, .35);
  border-radius: 12px;
  background: rgba(4, 18, 26, .8);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  letter-spacing: 5px;
  text-align: center;
  padding: 8px 8px;
  outline: none;
}
.coop-join input:focus { border-color: #b9f59a; }
.coop-join .mid-btn { min-width: 0; padding: 9px 18px; border-radius: 12px; }
.coop-status { min-height: 18px; margin: 10px 0 4px; font-size: 12px; line-height: 1.5; color: #ffd45e; }
.coop-hud {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(9, 34, 42, .72);
  border: 1px solid rgba(160, 240, 225, .35);
  color: #dffcf5;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.coop-hud.hidden { display: none; }
.coop-dot { width: 7px; height: 7px; border-radius: 50%; background: #6fffd5; box-shadow: 0 0 8px #6fffd5; }
.coop-hud b { color: #fff; letter-spacing: 1px; }
.coop-hud span:last-child { color: rgba(220, 245, 255, .7); }
.lg-coop { background: #ff9f43; }

/* ---------------- 道具二级菜单 ---------------- */
.slot-bag {
  width: 82px;
  position: relative;
  background: linear-gradient(180deg, rgba(60, 72, 84, .95), rgba(30, 42, 54, .98));
  border-color: rgba(255, 255, 255, .34);
}
.slot-bag .bag-emoji { font-size: 26px; line-height: 1.05; }
.slot-bag .bag-current {
  position: absolute;
  right: 3px;
  bottom: 18px;
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
  border-radius: 4px;
  background: rgba(0, 0, 0, .25);
}
.slot-bag .nm { font-size: 11px; }
.slot-bag:active { transform: translateY(2px); }
.props-panel {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 26;
  width: min(540px, 96vw);
  padding: 5px 12px 10px;
  border-radius: 20px 20px 10px 10px;
  background: linear-gradient(180deg, rgba(20, 44, 60, .97), rgba(10, 25, 36, .98));
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .42);
}
.bag-handle {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(220, 245, 255, .38);
  margin: 0 auto 5px;
}
.props-panel.hidden { display: none; }
.bag-tabs { display: flex; gap: 4px; margin-left: 10px; }
.bag-tabs button {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(225, 243, 255, .8);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  cursor: pointer;
}
.bag-tabs button.active { background: rgba(154, 238, 110, .25); border-color: #b9f59a; color: #fff; }
.bag-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bag-item { max-width: none; flex: none; }
.props-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
}
.props-hint { margin-left: auto; margin-right: 8px; font-size: 10px; font-weight: 600; color: rgba(220, 240, 255, .55); }
.props-head button {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: transparent;
  color: #e8f7ff;
  font-family: inherit;
  font-size: 11px;
  padding: 3px 10px;
  cursor: pointer;
}
.props-list { display: flex; gap: 8px; justify-content: center; }
.props-item {
  flex: 1 1 0;
  max-width: 94px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  color: #eaf8ff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 4px 5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.props-item canvas { width: 44px; height: 44px; image-rendering: pixelated; }
.props-item.sel { border-color: #ffd45e; background: rgba(255, 212, 94, .16); box-shadow: 0 0 0 3px rgba(255, 212, 94, .14); }

/* ---------------- 提示 ---------------- */
#toast {
  position: fixed;
  left: 50%;
  top: calc(14px + env(safe-area-inset-top));
  transform: translate(-50%, -12px);
  z-index: 160;
  max-width: 82vw;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(12, 30, 44, .86);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 全屏遮罩 ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  overflow: auto;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .12), transparent 55%),
    linear-gradient(180deg, rgba(23, 78, 118, .52), rgba(9, 32, 52, .78));
}
.start { background: linear-gradient(180deg, rgba(18, 72, 110, .35), rgba(8, 28, 46, .72)); }

.start-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  max-width: 680px;
  width: 100%;
  padding: 6px;
}
.logo {
  width: 118px;
  height: 118px;
  display: block;
  animation: floaty 3.4s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .28));
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.start-inner h1 {
  margin: 2px 0 0;
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1.12;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 4px 0 #2f7a2a, 0 8px 0 rgba(0, 0, 0, .12), 0 12px 26px rgba(0, 0, 0, .35);
}
.kid-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 18px 5px 5px;
  margin: 2px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.kid-badge img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .92);
  box-shadow: 0 2px 7px rgba(0, 0, 0, .28);
  flex: 0 0 auto;
}
.kid-text { text-align: left; line-height: 1.2; }
.kid-text b { display: block; font-size: 16px; letter-spacing: 1px; }
.kid-text span { display: block; margin-top: 2px; font-size: 11px; color: rgba(230, 247, 255, .82); }
.mode-pick {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 4px 0 12px;
  flex-wrap: wrap;
}
.mode-opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 146px;
  padding: 8px 16px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, .28);
  background: rgba(10, 30, 46, .55);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.mode-opt b { color: #fff !important; -webkit-text-fill-color: #fff; font-size: 15px; letter-spacing: 1px; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.mode-opt span { font-size: 10px; color: rgba(232, 248, 255, .9) !important; -webkit-text-fill-color: rgba(232, 248, 255, .9); }
.mode-opt.active {
  background: rgba(154, 238, 110, .2);
  border-color: #b9f59a;
  box-shadow: 0 0 0 3px rgba(154, 238, 110, .18);
}
.mode-opt:active { transform: scale(.97); }
.mode-badge {
  margin-left: 2px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .15);
  color: #e8f7ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
body.survival .mode-badge { background: rgba(255, 140, 120, .28); color: #ffd9cf; }
.health-hud {
  position: fixed;
  top: calc(62px + env(safe-area-inset-top));
  left: calc(16px + env(safe-area-inset-left));
  z-index: 20;
  display: none;
  gap: 2px;
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(12, 24, 36, .52);
  border: 1px solid rgba(255, 255, 255, .16);
  pointer-events: none;
}
body.survival .health-hud { display: flex; }
.health-hud .health-mode {
  margin-right: 4px;
  color: #ffd9cf;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.6;
}
.health-hud .heart { font-size: 17px; line-height: 1; color: #ff5c72; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.health-hud .heart.empty { color: rgba(255, 255, 255, .2); }
#damageOverlay {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
  background: radial-gradient(circle at 50% 50%, rgba(220, 30, 50, 0) 35%, rgba(220, 30, 50, .5) 100%);
}
#damageOverlay.hurt { opacity: 1; }
.player-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 8px;
  max-width: 100%;
  flex-wrap: wrap;
}
.player-label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(230, 247, 255, .82);
  letter-spacing: 1px;
}
.player-chips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.player-chip {
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 4px 13px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.player-chip.active {
  background: rgba(154, 238, 110, .25);
  border-color: #b9f59a;
  box-shadow: 0 0 0 3px rgba(154, 238, 110, .15);
}
.mini-btn {
  border: 1px dashed rgba(255, 255, 255, .45);
  border-radius: 999px;
  padding: 4px 11px;
  background: transparent;
  color: rgba(230, 247, 255, .9);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.player-add-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
  width: 100%;
}
.player-add-row.hidden { display: none; }
#playerNameInput {
  width: min(200px, 46vw);
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(8, 25, 36, .75);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
#playerNameInput:focus { border-color: #b9f59a; }
.player-add-row .mid-btn { min-width: 0; flex: 0 0 auto; padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.start-tip {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(226, 244, 255, .78);
}
.start-foot {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(226, 244, 255, .5);
}

.big-btn {
  border: none;
  border-bottom: 6px solid #3f8f26;
  border-radius: 18px;
  padding: 15px 54px;
  background: linear-gradient(#9aee6e, #63c840);
  color: #14380a;
  font-family: inherit;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .26), inset 0 2px 0 rgba(255, 255, 255, .45);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
.big-btn:hover { filter: brightness(1.05); }
.big-btn:active { transform: translateY(4px); border-bottom-width: 2px; box-shadow: 0 4px 12px rgba(0, 0, 0, .22); }
.big-btn:disabled { filter: grayscale(.55) brightness(.85); cursor: default; }
.big-btn.small { font-size: 20px; padding: 12px 38px; border-radius: 15px; }

.ghost-btn {
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  padding: 8px 24px;
  background: rgba(10, 30, 46, .55);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.ghost-btn:active { transform: scale(.96); background: rgba(255, 255, 255, .2); }

.panel {
  max-height: 92vh;
  overflow-y: auto;
  width: min(560px, 100%);
  max-height: 100%;
  overflow: auto;
  border-radius: 26px;
  padding: 26px 28px 24px;
  background: linear-gradient(180deg, rgba(23, 49, 70, .94), rgba(14, 35, 52, .96));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .12);
  text-align: center;
}
.panel h2 { margin: 0 0 18px; font-size: 28px; letter-spacing: 1px; }
.panel h3 { margin: 0 0 8px; font-size: 24px; }
.panel p { font-size: 15px; line-height: 1.6; color: rgba(225, 243, 255, .85); }

.row { display: flex; gap: 10px; justify-content: center; margin: 12px 0 4px; flex-wrap: wrap; }

.mid-btn {
  flex: 1 1 0;
  min-width: 132px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 4px solid rgba(0, 0, 0, .26);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.mid-btn:active { transform: translateY(3px); border-bottom-width: 1px; background: rgba(255, 255, 255, .2); }
.mid-btn.danger { background: rgba(233, 103, 82, .32); border-color: rgba(255, 168, 150, .5); }

.danger-btn {
  margin-top: 14px;
  width: 100%;
  border: 1px solid rgba(255, 150, 130, .4);
  border-radius: 14px;
  padding: 11px;
  background: rgba(206, 74, 55, .2);
  color: #ffc9bd;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.danger-btn:active { background: rgba(206, 74, 55, .35); }

.save-note { margin: 12px 0 0 !important; font-size: 12px !important; color: rgba(225, 243, 255, .5) !important; }

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 8px 0;
  padding: 9px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.switch input { display: none; }
.switch .track {
  flex: 0 0 auto;
  width: 46px;
  height: 27px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .24);
  position: relative;
  transition: background .2s ease;
}
.switch .track::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .2s ease;
}
.switch input:checked + .track { background: #64c94c; }
.switch input:checked + .track::after { transform: translateX(19px); }
.switch-label { color: #eaf7ff; }

.help-panel { text-align: left; }
.help-panel h2 { text-align: center; }
.help-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(238, 249, 255, .92);
}
.help-ico { font-size: 21px; width: 28px; text-align: center; flex: 0 0 auto; }
.help-tip { margin: 12px 4px !important; font-size: 13px !important; }
.ideas {
  margin: 10px 0 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 220, 120, .1);
  border: 1px dashed rgba(255, 220, 120, .35);
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 240, 196, .92);
}
.ideas span { font-weight: 800; color: #ffe08a; }
.help-panel .big-btn { display: block; margin: 0 auto; }

body.touch .help-pc { display: none; }
body:not(.touch) .help-touch { display: none; }

.confirm-panel { max-width: 430px; z-index: 130; }
#confirmScreen { z-index: 120; background: rgba(5, 20, 32, .55); }

/* ---------------- 小屏适配 ---------------- */

@media (max-width: 900px) {
  .slot { width: 40px; height: 60px; }
  .slot canvas { width: 32px; height: 32px; }
  .slot-bag { width: 72px; }
  .slot-bag .bag-emoji { font-size: 23px; }
  .slot-bag .bag-current { width: 17px; height: 17px; bottom: 15px; }
  .bag-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .props-panel { bottom: calc(66px + env(safe-area-inset-bottom)); width: 97vw; padding: 4px 8px 8px; border-radius: 18px 18px 8px 8px; }
  .bag-handle { margin-bottom: 3px; }
  .props-head { margin-bottom: 5px; }
  .props-item canvas { width: 48px; height: 48px; }
  .props-item canvas { width: 36px; height: 36px; }
  .props-item { font-size: 10px; }
  .props-hint { display: none; }
  .coop-hud { top: 48px; font-size: 10px; padding: 3px 9px; }
  .panel h2 { font-size: 22px; margin: 0 0 6px; }
  .panel .switch { padding: 7px 13px; min-height: 40px; }
  .panel .switch .track { width: 38px; height: 22px; }
  .panel .switch .track::after { width: 16px; height: 16px; }
  .panel .row { gap: 5px; margin-bottom: 6px; }
  .panel .row .mid-btn { padding: 8px 10px; font-size: 13px; }
  .panel .big-btn.small { padding: 8px 26px; font-size: 18px; margin-bottom: 6px; }
  .panel .ghost-btn { padding: 5px 12px; font-size: 12px; margin-bottom: 4px; }
  .coop-card { padding: 14px 16px; }
  .custom-card { padding: 10px 12px; }
  .custom-card h2 { font-size: 19px; margin-bottom: 6px; }
  .custom-section { margin-bottom: 6px; }
  .skin-card { width: 88px; padding: 4px; }
  .skin-card img { width: 48px; height: 48px; }
  .pet-card { width: 76px; padding: 4px; font-size: 10px; }
  .pet-card .pet-emoji { font-size: 23px; }
  .coop-card h2 { font-size: 21px; }
  .coop-lead { font-size: 11px; margin-bottom: 8px; }
  .slot .nm { font-size: 9px; }
  #hotbar { gap: 5px; padding: 6px; }
}
@media (max-width: 820px) {
  .map-panel { padding: 10px 12px; gap: 7px; }
  .map-head h2 { font-size: 17px; }
  .map-head p { font-size: 10px; }
  .map-canvas-wrap { width: min(58vh, 100%); }
  .map-legend { font-size: 10px; gap: 4px 10px; }

  .slot { width: 38px; height: 56px; border-radius: 9px; }
  .slot canvas { width: 30px; height: 30px; }
  .slot .nm { font-size: 9px; }
  #hotbar { gap: 4px; padding: 5px; }
  #blockName { bottom: calc(84px + env(safe-area-inset-bottom)); font-size: 13px; }
  #joystick { width: 104px; height: 104px; left: calc(12px + env(safe-area-inset-left)); }
  #knob { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  #actions { grid-template-columns: 54px 54px; grid-template-rows: 36px 54px 54px; gap: 8px; right: calc(12px + env(safe-area-inset-right)); }
  #btnStack { font-size: 14px; }
  .act { font-size: 20px; }
  .act-fly { font-size: 18px; }
  .icon-btn { width: 40px; height: 40px; }
}

@media (max-width: 700px) {
  #hotbar { bottom: calc(132px + env(safe-area-inset-bottom)); }
  #blockName { bottom: calc(202px + env(safe-area-inset-bottom)); }
  .slot { width: 36px; height: 52px; }
  .slot canvas { width: 28px; height: 28px; }
  .panel {
  max-height: 92vh;
  overflow-y: auto; padding: 20px 18px; border-radius: 22px; }
  .panel h2 { font-size: 24px; }
  .big-btn { padding: 13px 38px; font-size: 21px; }
}

@media (max-height: 520px) {
  .start { align-items: flex-start; overflow-y: auto; padding: 8px 0; }
  .start-inner { gap: 4px; }
  .start-tip { display: none; }
  .logo { width: 54px; height: 54px; }
  .start-inner h1 { font-size: clamp(26px, 6vw, 34px); }
  .mode-opt { min-width: 128px; padding: 6px 12px; }
  .mode-pick { margin-bottom: 6px; }
  .player-pick { margin-bottom: 4px; }
  .player-add-row { margin-bottom: 5px; }
  .kid-badge { margin-bottom: 4px; }
  .big-btn { padding: 10px 38px; font-size: 20px; }
  .ghost-btn { padding: 5px 13px; font-size: 12px; }
  .coop-btn { padding: 5px 11px; font-size: 12px; }
  .logo { width: 74px; height: 74px; }
  .start-inner h1 { font-size: clamp(28px, 7vw, 40px); }
  .kid-badge { margin: 0 0 6px; }
  .kid-badge img { width: 46px; height: 46px; }
  .kid-text b { font-size: 15px; }
  .kid-text span { font-size: 10.5px; }
  .player-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 8px;
  max-width: 100%;
  flex-wrap: wrap;
}
.player-label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(230, 247, 255, .82);
  letter-spacing: 1px;
}
.player-chips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.player-chip {
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 4px 13px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.player-chip.active {
  background: rgba(154, 238, 110, .25);
  border-color: #b9f59a;
  box-shadow: 0 0 0 3px rgba(154, 238, 110, .15);
}
.mini-btn {
  border: 1px dashed rgba(255, 255, 255, .45);
  border-radius: 999px;
  padding: 4px 11px;
  background: transparent;
  color: rgba(230, 247, 255, .9);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.player-add-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
  width: 100%;
}
.player-add-row.hidden { display: none; }
#playerNameInput {
  width: min(200px, 46vw);
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(8, 25, 36, .75);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
#playerNameInput:focus { border-color: #b9f59a; }
.player-add-row .mid-btn { min-width: 0; flex: 0 0 auto; padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.start-tip { font-size: 11px; margin-top: 0; }
  .start-foot { display: none; }
  .big-btn { padding: 11px 42px; font-size: 21px; border-radius: 15px; }
  .ghost-btn { padding: 6px 18px; font-size: 13px; }
  .panel {
  max-height: 92vh;
  overflow-y: auto; padding: 18px 20px; }
  .panel h2 { margin-bottom: 10px; font-size: 22px; }
  .switch { padding: 6px 12px; margin: 6px 0; }
  .help-row { padding: 5px 8px; margin: 4px 0; font-size: 13px; }
  .help-ico { font-size: 18px; }
  .ideas { display: none; }
  .save-note { display: none; }
  .panel {
  max-height: 92vh;
  overflow-y: auto; padding: 14px 20px; }
  .panel h2 { margin-bottom: 8px; font-size: 21px; }
  .big-btn.small { padding: 9px 32px; font-size: 18px; }
  .row { margin: 8px 0 2px; }
  .mid-btn { padding: 9px 12px; font-size: 15px; }
  .switch { margin: 5px 0; padding: 6px 12px; }
  .danger-btn { margin-top: 8px; padding: 8px; }
  .help-panel h2 { margin-bottom: 6px; }
  .help-row { padding: 3px 8px; margin: 3px 0; font-size: 12.5px; }
  .help-ico { font-size: 17px; }
  .help-tip { margin: 6px 4px !important; font-size: 12px !important; }
}

@media (max-height: 400px) {
  .start-inner h1 { font-size: 28px; }
  .start-inner .logo { width: 62px; height: 62px; }
  .kid-badge { margin: 0 0 4px; padding: 4px 14px 4px 4px; gap: 8px; }
  .kid-badge img { width: 42px; height: 42px; }
  .kid-text b { font-size: 14px; }
  .kid-text span { font-size: 10px; }
  .player-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 8px;
  max-width: 100%;
  flex-wrap: wrap;
}
.player-label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(230, 247, 255, .82);
  letter-spacing: 1px;
}
.player-chips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.player-chip {
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 4px 13px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.player-chip.active {
  background: rgba(154, 238, 110, .25);
  border-color: #b9f59a;
  box-shadow: 0 0 0 3px rgba(154, 238, 110, .15);
}
.mini-btn {
  border: 1px dashed rgba(255, 255, 255, .45);
  border-radius: 999px;
  padding: 4px 11px;
  background: transparent;
  color: rgba(230, 247, 255, .9);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.player-add-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
  width: 100%;
}
.player-add-row.hidden { display: none; }
#playerNameInput {
  width: min(200px, 46vw);
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(8, 25, 36, .75);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
#playerNameInput:focus { border-color: #b9f59a; }
.player-add-row .mid-btn { min-width: 0; flex: 0 0 auto; padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.start-tip { font-size: 10px; }
  .big-btn { padding: 9px 36px; font-size: 19px; }
  .logo { animation: none; }
}
