* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: #6ebbe4;
  color: #3A271C;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { overflow: hidden; }
button, input { font-family: inherit; }
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus { outline: none; }
button:focus-visible, input:focus-visible {
  outline: 2px solid #FF8A3D;
  outline-offset: 2px;
}
[hidden] { display: none !important; }
#game {
  height: 100vh;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #7ec8ee;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
input { user-select: text; -webkit-user-select: text; }

/* 放学天空和校门 */
.stage {
  flex: 1 1 auto;
  min-height: 168px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(#7ec8ee 0%, #d4f1fb 36%, #ffe6c4 52%, #f0cb96 100%);
}
.sun {
  position: absolute;
  right: 18px;
  top: calc(86px + env(safe-area-inset-top));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fff6c8, #ffd15c 58%, #ffb03a);
  box-shadow: 0 0 0 8px rgba(255, 209, 92, .28);
}
.cloud {
  position: absolute;
  height: 14px;
  background: #fff;
  border-radius: 20px;
  opacity: .92;
}
.cloud:before, .cloud:after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.cloud-a {
  width: 58px;
  top: calc(18px + env(safe-area-inset-top));
  left: 16px;
  animation: drift 16s ease-in-out infinite alternate;
}
.cloud-a:before { width: 22px; height: 22px; top: -12px; left: 8px; }
.cloud-a:after { width: 16px; height: 16px; top: -8px; left: 28px; }
.cloud-b {
  width: 44px;
  top: calc(46px + env(safe-area-inset-top));
  right: 78px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
.cloud-b:before { width: 16px; height: 16px; top: -8px; left: 10px; }
@keyframes drift { to { transform: translateX(16px); } }

.tree {
  position: absolute;
  left: 6px;
  top: calc(108px + env(safe-area-inset-top));
  width: 58px;
  z-index: 1;
}
.crown {
  width: 48px;
  height: 40px;
  margin-left: 6px;
  background: #7dcb78;
  border-radius: 50%;
  box-shadow: -14px 8px 0 #69b86a, 12px 10px 0 #98dc90;
}
.trunk {
  width: 8px;
  height: 22px;
  margin: -4px auto 0;
  background: #c4844a;
  border-radius: 4px;
}
.school {
  position: absolute;
  left: 50%;
  top: calc(54px + env(safe-area-inset-top));
  width: 176px;
  transform: translateX(-50%);
  z-index: 1;
}
.roof {
  height: 28px;
  background: #FF8A3D;
  clip-path: polygon(8% 100%, 50% 0, 92% 100%);
  filter: drop-shadow(0 3px 0 rgba(190, 80, 20, .18));
}
.bell {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 26px;
  margin-left: -13px;
  z-index: 2;
  transform-origin: 50% 0;
}
.bell span {
  display: block;
  width: 20px;
  height: 16px;
  margin: 6px auto 0;
  background: #ffe08a;
  border-radius: 11px 11px 8px 8px;
  box-shadow: inset 0 -3px 0 #f0b429;
  position: relative;
}
.bell span:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 3px;
  height: 6px;
  margin-left: -1px;
  background: #e0a020;
}
.bell span:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: #e08a2a;
  border-radius: 50%;
}
.bell.ring { animation: ring .7s ease; }
@keyframes ring {
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-5deg); }
}
.block {
  margin: -4px 24px 0;
  background: #fff6ea;
  border-radius: 8px 8px 6px 6px;
  box-shadow: 0 8px 0 rgba(90, 50, 20, .06);
  padding-bottom: 6px;
}
.windows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 12px 0;
}
.windows i {
  display: block;
  height: 16px;
  background: #b7e4f6;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px #f3d3ae;
  position: relative;
}
.windows i:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #f3d3ae;
}
.gate {
  width: 44px;
  height: 32px;
  margin: 6px auto 0;
  background: #6b4634;
  border-radius: 20px 20px 3px 3px;
  position: relative;
}
.gate:before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 20px;
  background: #2c241f;
  border-radius: 8px 8px 0 0;
}
.bush {
  position: absolute;
  right: 8px;
  bottom: 16px;
  width: 42px;
  height: 24px;
  background: #8ed08a;
  border-radius: 18px 18px 8px 8px;
  z-index: 1;
}
.bush:before {
  content: "";
  position: absolute;
  left: -12px;
  bottom: 0;
  width: 26px;
  height: 18px;
  background: #74c278;
  border-radius: 14px;
}
.zebra {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 108px;
  height: 14px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 10px, transparent 10px 18px);
  border-radius: 3px;
  z-index: 1;
}

/* 浮在画面上的金币和摊名，不是标题栏 */
.hud {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px 0 6px;
  background: rgba(255, 250, 245, .94);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 4px 12px rgba(80, 40, 10, .12);
  color: #3A271C;
  font-weight: 700;
  font-size: 14px;
}
.nick-pill {
  border: 0;
  max-width: 42vw;
  min-width: 0;
}
.nick-pill:active { transform: scale(.97); }
.nick {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FF8A3D;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex: none;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coin-pill .mp-icon { width: 20px; height: 20px; color: #FF8A3D; }
.coin-pill.pop { animation: bump .25s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }
.coin-col { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.daychip {
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 248, 240, .88);
  color: #8A5A3A;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(80, 40, 10, .08);
}
.mutebtn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 245, .94);
  color: #8A5A3A;
  box-shadow: 0 4px 12px rgba(80, 40, 10, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.mutebtn:active { transform: scale(.94); }
.mutebtn .mp-icon { width: 18px; height: 18px; }

.lane {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 3;
  min-height: 132px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  padding: 0 8px;
}
.lane-empty {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A5A3A;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

.kid {
  width: 31%;
  max-width: 124px;
  animation: slidein .32s ease;
}
@keyframes slidein {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.kid.out-ok { animation: popout .32s ease forwards; }
.kid.out-bad { animation: droop .32s ease forwards; }
@keyframes popout { to { transform: translateY(-18px) scale(1.04); opacity: 0; } }
@keyframes droop { to { transform: translateX(-16px); opacity: 0; } }
.bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fffdf9;
  border: 1px solid #ffe1c7;
  border-radius: 14px;
  padding: 6px 6px 6px 8px;
  box-shadow: 0 6px 16px rgba(80, 40, 10, .12);
  position: relative;
  margin-bottom: 8px;
}
.bubble:after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -6px;
  border: 6px solid transparent;
  border-top-color: #fffdf9;
  border-bottom: 0;
}
.bubble-txt { flex: 1; min-width: 0; }
.bubble-txt b {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  color: #3A271C;
}
.bubble-txt small {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: #A08978;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar {
  height: 6px;
  margin-top: 4px;
  background: #f3e6dc;
  border-radius: 99px;
  overflow: hidden;
}
.bar .fill {
  display: block;
  height: 100%;
  width: 100%;
  background: #3cb089;
  border-radius: inherit;
}
.bar.warn .fill { background: #f0a202; }
.bar.danger .fill { background: #e24b3b; }
.figure {
  width: 62px;
  height: 74px;
  margin: 0 auto;
  position: relative;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-3px); } }
.kid.mad .figure { animation: fret .18s linear infinite; }
@keyframes fret {
  25% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
}
.hair {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 0;
  width: 42px;
  height: 18px;
  background: var(--hair, #3A271C);
  border-radius: 14px 14px 8px 8px;
}
.face {
  width: 40px;
  height: 40px;
  margin: 8px auto 0;
  background: #ffd3b0;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.eye {
  position: absolute;
  top: 16px;
  width: 4px;
  height: 5px;
  background: #3A271C;
  border-radius: 50%;
}
.eye.l { left: 10px; }
.eye.r { right: 10px; }
.face:before, .face:after {
  content: "";
  position: absolute;
  top: 22px;
  width: 6px;
  height: 4px;
  border-radius: 50%;
  background: #f4a7a0;
  opacity: .85;
}
.face:before { left: 3px; }
.face:after { right: 3px; }
.smile {
  position: absolute;
  left: 13px;
  top: 26px;
  width: 14px;
  height: 6px;
  border-bottom: 2px solid #c47a62;
  border-radius: 0 0 10px 10px;
}
.kid.mad .smile {
  border-bottom: 0;
  border-top: 2px solid #c47a62;
  border-radius: 10px 10px 0 0;
  top: 27px;
}
.torso {
  width: 46px;
  height: 28px;
  margin: -8px auto 0;
  background: var(--shirt, #5B8DEF);
  border-radius: 12px 12px 14px 14px;
  position: relative;
  z-index: 0;
}
.torso:after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -6px;
  height: 7px;
  background: rgba(90, 50, 20, .13);
  border-radius: 50%;
}

/* 零食造型，按钮和气泡共用 */
.art { position: relative; display: block; flex: none; }
.art-sausage {
  width: 42px;
  height: 14px;
  border-radius: 20px;
  background: linear-gradient(#ffb15a, #ef5d2a);
  box-shadow: inset 0 -3px 0 rgba(120, 30, 0, .25);
}
.art-sausage:before {
  content: "";
  position: absolute;
  left: 6px;
  right: 8px;
  top: 3px;
  bottom: 3px;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(90, 20, 0, .35) 7px 9px);
  border-radius: 8px;
}
.art-sausage:after {
  content: "";
  position: absolute;
  right: -6px;
  top: 5px;
  width: 8px;
  height: 4px;
  background: #e7c08a;
  border-radius: 2px;
}
.art-tart {
  width: 30px;
  height: 18px;
  margin-top: 6px;
  background: linear-gradient(#ffe29a, #f0b429);
  border-radius: 3px 3px 14px 14px;
  box-shadow: inset 0 -5px 0 #e0892a;
}
.art-tart:before {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: -6px;
  height: 10px;
  background: #f6c453;
  border-radius: 7px;
  box-shadow: inset 0 -3px 0 #e09a30;
}
.art-tart:after {
  content: "";
  position: absolute;
  left: 11px;
  top: -1px;
  width: 7px;
  height: 5px;
  background: #c47a2a;
  border-radius: 50%;
  opacity: .75;
}
.art-milk {
  width: 22px;
  height: 28px;
  margin-top: 6px;
  background: linear-gradient(#fff, #e7f3ff);
  border: 2px solid #7eb6e8;
  border-radius: 3px;
}
.art-milk:before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: -8px;
  height: 10px;
  background: #fff;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.art-milk:after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 8px;
  height: 5px;
  background: #8ec8f0;
  border-radius: 2px;
}
.art-spicy {
  width: 24px;
  height: 7px;
  margin: 10px 0;
  border-radius: 6px;
  background: linear-gradient(#ff7a66, #e23b32);
  box-shadow: 0 -8px 0 #ff5a4a, 0 8px 0 #d4332c;
}
.art-chips {
  width: 24px;
  height: 30px;
  background: linear-gradient(#ffe07a, #f5c043);
  clip-path: polygon(16% 0, 84% 0, 100% 16%, 86% 100%, 14% 100%, 0 16%);
}
.art-chips:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef6a3a;
}
.bubble .art-sausage { width: 30px; height: 11px; }
.bubble .art-tart { width: 22px; height: 14px; }
.bubble .art-milk { width: 16px; height: 22px; }
.bubble .art-spicy { width: 18px; box-shadow: 0 -6px 0 #ff5a4a, 0 6px 0 #d4332c; }
.bubble .art-chips { width: 16px; height: 22px; }

/* 摊位 */
.dock {
  position: relative;
  z-index: 4;
  flex: 0 1 auto;
  max-height: 62dvh;
  overflow: auto;
  background: linear-gradient(#fff8f2, #ffe8d4);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 24px rgba(120, 70, 30, .12);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.awning {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 16px 8px;
  color: #fff;
  background: repeating-linear-gradient(90deg, #FF8A3D 0 16px, #ffb07a 16px 32px);
  border-radius: 26px 26px 0 0;
  box-shadow: inset 0 -4px 0 rgba(180, 70, 10, .25);
}
.awning strong {
  font-size: 16px;
  letter-spacing: .06em;
  text-shadow: 0 1px 0 rgba(160, 60, 0, .35);
}
.awning em {
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  background: rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 3px 8px;
}
.awning em:empty { display: none; }
.timewrap { padding: 8px 16px 0; }
.timewrap span {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #8A5A3A;
  margin-bottom: 4px;
}
.timebar {
  height: 8px;
  background: rgba(255,255,255,.8);
  border-radius: 99px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(180, 100, 40, .12);
}
#timeFill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ffb067, #FF8A3D);
  border-radius: inherit;
}
.timewrap.rush #timeFill { background: #e24b3b; }
.timewrap.rush span { color: #e24b3b; }
.counter {
  display: flex;
  gap: 8px;
  padding: 8px 16px 0;
}
.prop {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #f3e2d2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(120, 70, 30, .05);
}
.grill {
  background: #5c4036;
  border-color: #4a342c;
}
.plate { background: #fff8ee; }
.jar { background: #fff4e4; }
.prop.pop { animation: bump .35s ease; }

.ready, .play { padding: 4px 16px 0; }
.ready-title {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #3A271C;
}
.ready-desc {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #6A5144;
}
.name-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #f0d8c4;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(120, 70, 30, .04);
}
.name-field span { color: #A08978; font-size: 13px; flex: none; }
.name-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  color: #3A271C;
  padding: 10px 0;
  outline: none;
}
.name-field input::placeholder { color: #c4b0a2; font-weight: 500; }
.best-line {
  margin: 8px 0 0;
  font-size: 12px;
  color: #A08978;
}
.go {
  width: 100%;
  height: 52px;
  margin-top: 10px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(#ffb067, #FF8A3D);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 5px 0 #e06a22;
}
.go:active { transform: translateY(4px); box-shadow: 0 1px 0 #e06a22; }
.go:disabled { opacity: .7; }
.ready-links { display: flex; gap: 8px; margin-top: 10px; }
.linkbtn {
  flex: 1;
  height: 44px;
  border: 1px solid #f0d8c4;
  border-radius: 14px;
  background: #fff;
  color: #6A5144;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 0 #f3e0d0;
}
.linkbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #f3e0d0; background: #fff1e6; }
.linkbtn .mp-icon { width: 18px; height: 18px; color: #FF8A3D; }

.tray { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tray.n1 { grid-template-columns: 1fr; }
.tray.n3 .food:last-child, .tray.n5 .food:last-child { grid-column: 1 / -1; }
.food {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #ffe1c7;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 4px 0 #f0d2b4;
}
.food:active { transform: translateY(3px); box-shadow: 0 1px 0 #f0d2b4; }
.food.hot {
  border-color: #FF8A3D;
  box-shadow: 0 4px 0 #FF8A3D, 0 0 0 3px rgba(255, 138, 61, .28);
  animation: hot .8s ease-in-out infinite;
}
@keyframes hot { 50% { transform: translateY(-1px); } }
.food-meta { min-width: 0; }
.food-meta b { display: block; font-size: 16px; color: #3A271C; }
.food-meta small { display: block; margin-top: 2px; font-size: 12px; color: #A08978; }
.hint {
  margin: 8px 0 0;
  min-height: 18px;
  text-align: center;
  font-size: 12px;
  color: #A08978;
}
.tray.shake { animation: shake .28s linear; }
@keyframes shake {
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(58, 39, 28, .38);
  z-index: 20;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  max-height: 78dvh;
  display: flex;
  flex-direction: column;
  background: #fff8f2;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 40px rgba(60, 30, 10, .22);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet-cap {
  display: flex;
  align-items: center;
  padding: 14px 16px 6px;
}
.sheet-cap h2 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  color: #3A271C;
}
.iconbtn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff1e6;
  color: #6A5144;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iconbtn:active { transform: scale(.94); }
.iconbtn .mp-icon { width: 20px; height: 20px; }
.sheet-body {
  overflow: auto;
  padding: 8px 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.stars { display: flex; justify-content: center; gap: 6px; color: #e7d8cc; }
.stars .mp-icon { width: 28px; height: 28px; }
.stars .on { color: #FF8A3D; }
.result-line {
  margin: 8px 0 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #3A271C;
}
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.statgrid div {
  background: #fff;
  border: 1px solid #f3e2d2;
  border-radius: 14px;
  padding: 10px 4px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(120, 70, 30, .04);
}
.statgrid b {
  display: block;
  font-size: 20px;
  color: #FF8A3D;
  font-variant-numeric: tabular-nums;
}
.statgrid small { color: #A08978; font-size: 12px; }
.wallet, .rankline, .secnote, .center {
  text-align: center;
  color: #A08978;
  font-size: 13px;
}
.wallet { margin: 12px 0 4px; color: #6A5144; font-weight: 700; }
.rankline { margin: 0 0 12px; }
.ghost {
  flex: 1;
  height: 46px;
  border-radius: 14px;
  border: 1px solid #f0d2b8;
  background: #fff;
  color: #6A5144;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 3px 0 #f0d8c4;
}
.ghost:active { transform: translateY(2px); box-shadow: 0 1px 0 #f0d8c4; }
.ghost:disabled { opacity: .65; }
.row2 { display: flex; gap: 8px; margin-top: 8px; }
.doubled {
  margin: 0 0 8px;
  text-align: center;
  color: #E06A22;
  font-size: 13px;
  font-weight: 700;
}

.sec {
  margin: 6px 0 6px;
  font-size: 13px;
  color: #A08978;
  font-weight: 700;
}
.secnote { margin: 0 0 8px; text-align: left; }
.goods {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #f3e2d2;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(120, 70, 30, .05);
}
.ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff1e4;
  color: #FF8A3D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ico .mp-icon { width: 24px; height: 24px; }
.goods .info { flex: 1; min-width: 0; }
.goods .info b { display: block; font-size: 15px; color: #3A271C; }
.goods .info p { margin: 3px 0 0; font-size: 12px; line-height: 1.4; color: #A08978; }
.buy {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #FF8A3D;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}
.buy:active { transform: scale(.96); }
.buy.poor, .buy:disabled { background: #f0e4d8; color: #A08978; }

.mebox {
  background: #fff;
  border: 1px solid #ffd7b8;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(255, 138, 61, .12);
}
.mebox b { display: block; font-size: 12px; color: #A08978; }
.mebox span { display: block; margin-top: 4px; font-size: 16px; font-weight: 700; color: #3A271C; }
.rankrow {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #f3e2d2;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.rankrow.mine { border-color: #FF8A3D; box-shadow: 0 0 0 2px rgba(255, 138, 61, .2); }
.rankrow .no { width: 26px; text-align: center; font-weight: 700; color: #A08978; flex: none; }
.top1 .no { color: #e0a106; }
.top2 .no { color: #8a97a3; }
.top3 .no { color: #c47a3a; }
.rankrow .rk { flex: 1; min-width: 0; }
.rankrow .rk b {
  display: block;
  font-size: 15px;
  color: #3A271C;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rankrow .rk small { color: #A08978; font-size: 12px; }
.rankrow em {
  font-style: normal;
  font-weight: 700;
  color: #FF8A3D;
  font-variant-numeric: tabular-nums;
}
.emptyrank { text-align: center; color: #A08978; padding: 22px 8px; }
.emptyrank .mp-icon { width: 36px; height: 36px; color: #FF8A3D; }
.emptyrank p { margin: 8px 0 0; font-size: 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  max-width: calc(100% - 48px);
  background: rgba(58, 39, 28, .92);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  text-align: center;
}
.flyer {
  position: fixed;
  z-index: 12;
  font-weight: 700;
  font-size: 16px;
  color: #e06a22;
  pointer-events: none;
  text-shadow: 0 1px 0 #fff;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
