/* Museum Rush, game-internal stylesheet.
   Tokens and button/badge look copied from style/lmlm-style.css (the site kit).
   The game runs in its own document (iframe or standalone URL), so it cannot
   use the site's Additional CSS. Keep the hex values in sync with the kit. */

:root {
  --lmlm-green: #00FF7F;
  --lmlm-pink: #FF1494;
  --lmlm-orange: #FEA500;
  --lmlm-blue: #2FCBFF;
  --lmlm-black: #1D1D1D;
  --lmlm-white: #FFFFFF;
  --lmlm-muted: #444444;
  --lmlm-hair: #EDEDED;
  --lmlm-hair-dark: #2B2B2B;
  --lmlm-tint: #F4FFF9;
  --lmlm-font: 'Montserrat', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--lmlm-black); color: var(--lmlm-black);
  font-family: var(--lmlm-font);
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none; overscroll-behavior: none;
}
button { font-family: inherit; cursor: pointer; }

#app { position: fixed; inset: 0; overflow: hidden; }
#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1280px; height: 720px;
  transform-origin: 50% 50%;
  background: var(--lmlm-white);
  overflow: hidden;
}
#world { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; display: block; }

/* ---------- HUD (metrics panel) ---------- */
#hud {
  position: absolute; left: 0; top: 0; width: 1280px; height: 64px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 14px 0 10px;
  background: var(--lmlm-black); color: var(--lmlm-white);
}
.hud-day { display: flex; align-items: center; gap: 8px; width: 178px; white-space: nowrap; }
.hud-day img { width: 40px; height: 40px; }
.hud-day b { display: block; font-size: 18px; font-weight: 900; }
.hud-day span { display: block; font-size: 15px; font-weight: 600; color: var(--lmlm-green); }
.hud-stat { display: flex; flex-direction: column; gap: 3px; }
.hud-stat b { font-size: 21px; font-weight: 800; line-height: 1; }
.hud-stat b, .hud-day span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-money { width: 128px; flex: 0 0 128px; }
.hud-inside { width: 58px; flex: 0 0 58px; }
.hud-lbl { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #BDBDBD; }
.hud-meter { display: grid; grid-template-columns: 140px 50px; grid-template-rows: auto auto; column-gap: 8px; row-gap: 5px; align-items: center; }
.hud-meter .hud-lbl { grid-column: 1 / 3; }
.hud-meter b { font-size: 18px; }
.meter { height: 12px; border-radius: 6px; background: var(--lmlm-hair-dark); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .3s linear; }
.meter-g i { background: var(--lmlm-green); }
.meter-p i { background: var(--lmlm-pink); }
.stars { position: relative; width: 95px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 18'%3E%3Cpath d='M9.5 1l2.5 5.3 5.7.7-4.2 4 1.1 5.7-5.1-2.8-5.1 2.8 1.1-5.7-4.2-4 5.7-.7z' fill='%232B2B2B'/%3E%3C/svg%3E") repeat-x 0 0 / 19px 18px; }
.stars-on { position: absolute; left: 0; top: 0; height: 18px; width: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 18'%3E%3Cpath d='M9.5 1l2.5 5.3 5.7.7-4.2 4 1.1 5.7-5.1-2.8-5.1 2.8 1.1-5.7-4.2-4 5.7-.7z' fill='%23FEA500'/%3E%3C/svg%3E") repeat-x 0 0 / 19px 18px; }
.hud-btns { margin-left: auto; display: flex; gap: 8px; }
.hbtn {
  width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--lmlm-white);
  background: transparent; color: var(--lmlm-white); font-weight: 900; font-size: 15px;
  display: grid; place-items: center; padding: 0;
}
.hbtn svg { width: 20px; height: 20px; fill: var(--lmlm-white); stroke: var(--lmlm-white); }
.hbtn:hover, .hbtn.on { background: var(--lmlm-green); border-color: var(--lmlm-green); color: var(--lmlm-black); }
.hbtn:hover svg, .hbtn.on svg { fill: var(--lmlm-black); stroke: var(--lmlm-black); }

/* ---------- build bar ---------- */
#bar {
  position: absolute; left: 0; top: 640px; width: 1280px; height: 80px;
  display: flex; align-items: center; gap: 8px; padding: 0 10px;
  background: var(--lmlm-white); border-top: 3px solid var(--lmlm-black);
}
.bar-lbl { width: 70px; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.tool {
  position: relative; flex: 1 1 0; height: 64px; min-width: 0;
  display: flex; align-items: center; gap: 6px; padding: 0 6px;
  background: var(--lmlm-white); border: 2px solid var(--lmlm-black); border-radius: 12px;
  text-align: left; color: var(--lmlm-black);
}
.tool:hover { background: var(--lmlm-tint); }
.tool.on { border-color: var(--lmlm-green); background: var(--lmlm-black); color: var(--lmlm-white); }
.tool.poor { opacity: .45; }
.tool .ic { width: 40px; height: 50px; flex: 0 0 40px; display: grid; place-items: center; }
.tool .ic img, .tool .ic svg { max-width: 40px; max-height: 50px; }
.tool b { display: block; font-size: 13px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; line-height: 1.15; }
.tool em { display: block; font-style: normal; font-size: 15px; font-weight: 800; color: var(--lmlm-pink); margin-top: 3px; }
.tool.on em { color: var(--lmlm-green); }
.tool kbd { position: absolute; right: 6px; top: 4px; font: 700 10px var(--lmlm-font); color: #9A9A9A; }

.tool .ic { position: relative; }
.ic-badge { position: absolute; right: -2px; bottom: 2px; width: 16px; height: 11px; border-radius: 3px; background: var(--lmlm-black); }
.ic-badge::after { content: ""; position: absolute; left: 5px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--lmlm-green); }

/* ---------- exhibit picker ---------- */
#picker {
  position: absolute; left: 110px; bottom: 86px; padding: 8px;
  background: var(--lmlm-white); border: 2px solid var(--lmlm-black); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
#picker[hidden] { display: none; }
.pk-row { display: flex; gap: 6px; align-items: stretch; }
.pk-ex {
  border: 2px solid var(--lmlm-black); border-radius: 10px; background: var(--lmlm-white);
  color: var(--lmlm-black); font-family: var(--lmlm-font);
}
.pk-ex { width: 84px; padding: 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pk-ex img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.pk-ex span { font-size: 10px; font-weight: 800; text-transform: uppercase; text-align: center; line-height: 1.1; }
.pk-ex em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--lmlm-pink); margin-top: auto; }
.pk-ex:hover { background: var(--lmlm-tint); }
.pk-ex.on { background: var(--lmlm-black); color: var(--lmlm-white); border-color: var(--lmlm-green); }
.pk-ex.on em { color: var(--lmlm-green); }
.pk-ex.locked { border-style: dashed; color: var(--lmlm-muted); }
.pk-ex.locked img { filter: grayscale(1) brightness(.6); opacity: .45; }
.pk-ex.locked em { color: var(--lmlm-muted); }
.pk-card { position: relative; display: flex; }
.pk-i {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; padding: 0; border-radius: 50%;
  border: 2px solid var(--lmlm-black); background: var(--lmlm-white); color: var(--lmlm-black);
  font: italic 900 13px/1 Georgia, serif; cursor: pointer;
}
.pk-i:hover, .pk-i.on { background: var(--lmlm-green); }
.tool .tool-i { top: -9px; right: -9px; display: grid; place-items: center; font-style: italic; }
.tool.on .tool-i { color: var(--lmlm-black); }
.pk-info {
  position: relative; display: flex; gap: 14px; margin-bottom: 10px; padding: 12px 14px;
  border: 2px solid var(--lmlm-black); border-radius: 12px; background: var(--lmlm-tint); max-width: 640px;
}
.pk-info-img { flex: 0 0 120px; }
.pk-info-img img { width: 120px; height: 110px; object-fit: contain; }
.pk-info-tx { font-size: 13px; line-height: 1.4; }
.pk-info-tx h3 { margin: 0 28px 4px 0; font-size: 16px; font-weight: 900; }
.pk-info-tx p { margin: 0 0 8px; }
.pk-info-tx dl { display: grid; grid-template-columns: 110px 1fr; gap: 3px 10px; margin: 0 0 8px; }
.pk-info-tx dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--lmlm-muted); padding-top: 2px; }
.pk-info-tx dd { margin: 0; font-weight: 700; }
.pk-info-tx dd.reg { font-weight: 400; }
.pk-info-tx dd.warn { color: var(--lmlm-pink); }
.pk-info-tx a { color: var(--lmlm-black); font-weight: 800; text-decoration: underline; text-decoration-color: var(--lmlm-green); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.pk-meter { display: inline-block; width: 70px; height: 8px; border-radius: 4px; background: var(--lmlm-hair); overflow: hidden; vertical-align: 0; margin-right: 4px; }
.pk-meter i { display: block; height: 100%; }
.pk-meter i.p { background: var(--lmlm-orange); }
.pk-meter i.t { background: var(--lmlm-green); }

/* ---------- visitor card ---------- */
#vcard {
  position: absolute; right: 12px; top: 74px; width: 330px; padding: 14px 16px 12px;
  background: var(--lmlm-white); border: 2px solid var(--lmlm-black); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 15px; line-height: 1.35;
}
#vcard[hidden] { display: none; }
.vc-x { position: absolute; right: 8px; top: 6px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--lmlm-black); }
.vc-head { display: flex; align-items: center; gap: 10px; padding-right: 30px; }
.vc-head img { width: 36px; height: 24px; border: 1px solid rgba(0,0,0,.2); }
.vc-head b { display: block; font-size: 18px; font-weight: 900; }
.vc-head span { display: block; font-size: 13px; color: var(--lmlm-muted); }
.vc-why { margin: 8px 0; font-style: italic; }
#vcard dl { display: grid; grid-template-columns: 76px 1fr; gap: 4px 8px; margin: 0 0 8px; }
#vcard dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--lmlm-muted); padding-top: 2px; }
#vcard dd { margin: 0; font-weight: 600; }
.vc-meter { display: inline-block; width: 70px; height: 9px; border-radius: 5px; background: var(--lmlm-hair); overflow: hidden; vertical-align: 0; }
.vc-meter i { display: block; height: 100%; }
.vc-diary { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--lmlm-hair); font-size: 13px; max-height: 132px; overflow: hidden; }
.vc-diary li { padding: 2px 0; }
.vc-diary li:first-child { font-weight: 800; }

/* ---------- toasts ---------- */
#toasts { position: absolute; right: 12px; bottom: 92px; width: 440px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px; max-width: 440px; background: rgba(29,29,29,.92);
  padding: 10px 16px; border-radius: 12px;
  background: var(--lmlm-black); color: var(--lmlm-white);
  font-size: 16px; font-weight: 600; line-height: 1.35;
  border-left: 6px solid var(--lmlm-green);
  opacity: 0; transition: opacity .25s linear;
}
.toast.show { opacity: 1; }
.toast.warn { border-left-color: var(--lmlm-orange); }
.toast.tip { border-left-color: var(--lmlm-blue); }
.toast img { height: 34px; width: auto; flex: 0 0 auto; }
.toast b { font-weight: 800; }

/* ---------- info panel ---------- */
#info {
  position: absolute; width: 300px; padding: 14px 16px;
  background: var(--lmlm-white); border: 2px solid var(--lmlm-black); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 16px; line-height: 1.4;
}
#info h3 { margin: 0 0 4px; font-size: 16px; font-weight: 900; }
#info p { margin: 0 0 8px; }
#info .stat { font-weight: 800; }
#info a, .card p a { color: var(--lmlm-black); font-weight: 800; text-decoration: underline; text-decoration-color: var(--lmlm-green); text-decoration-thickness: 3px; text-underline-offset: 3px; }
#info .row { margin-top: 6px; }

/* ---------- screens ---------- */
.scr {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(29,29,29,.72);
}
.scr[hidden], #info[hidden] { display: none; }
.scr.party { background: rgba(29,29,29,.3); }
#party { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; pointer-events: none; }
#party[hidden] { display: none; }
#win-dog { display: block; width: 360px; height: 150px; margin: 4px auto 6px; }
.card {
  width: 780px; max-height: 690px; overflow: auto; padding: 34px 40px;
  background: var(--lmlm-white); border-radius: 18px; border: 2px solid var(--lmlm-black);
  font-size: 19px; line-height: 1.5;
}
.card-sm { width: 420px; text-align: center; }
.card-wide { width: 940px; padding: 18px 34px; }
.card-wide .lede { font-size: 16px; margin-bottom: 6px; }
.card h1 { margin: 12px 0 6px; font-size: 44px; font-weight: 900; line-height: 1.05; }
.card h2 { margin: 0 0 10px; font-size: 28px; font-weight: 900; line-height: 1.15; }
.card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.hl { background: linear-gradient(transparent 58%, var(--lmlm-green) 58%); padding: 0 2px; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--lmlm-black); color: var(--lmlm-green); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lede { margin: 0 0 12px; font-size: 21px; }
.goal { margin: -4px 0 8px; font-size: 14px; font-weight: 700; color: var(--lmlm-muted); }
.small { margin: 14px 0 0; font-size: 13px; color: var(--lmlm-muted); }
ul.arrows { list-style: none; padding: 0; margin: 10px 0 14px; font-size: 17px; line-height: 1.4; }
ul.arrows li { position: relative; padding-left: 26px; margin-bottom: 5px; }
ul.arrows li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 3px; background: var(--lmlm-green); box-shadow: 4px -3px 0 -1px var(--lmlm-green), 4px 3px 0 -1px var(--lmlm-green); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card-sm .row { justify-content: center; }
.name-row label { width: 100%; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.name-row input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 2px solid var(--lmlm-black); border-radius: 999px;
  font: 700 17px var(--lmlm-font); color: var(--lmlm-black); background: var(--lmlm-white);
  -webkit-user-select: text; user-select: text;
}
.name-row input:focus { outline: none; border-color: var(--lmlm-green); box-shadow: 0 0 0 3px rgba(0,255,127,.35); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 2px solid var(--lmlm-black); background: var(--lmlm-black); color: var(--lmlm-white);
  font: 800 14px var(--lmlm-font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background-color .15s linear, color .15s linear, border-color .15s linear;
}
.btn:hover { background: var(--lmlm-pink); border-color: var(--lmlm-pink); }
.btn-green { background: var(--lmlm-green); border-color: var(--lmlm-green); color: var(--lmlm-black); }
.btn-green:hover { background: var(--lmlm-black); border-color: var(--lmlm-black); color: var(--lmlm-white); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 12px; }
.btn-pink { background: var(--lmlm-pink); border-color: var(--lmlm-pink); color: var(--lmlm-white); }
.btn-pink:hover { background: var(--lmlm-black); border-color: var(--lmlm-black); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn:disabled:hover { background: var(--lmlm-green); border-color: var(--lmlm-green); color: var(--lmlm-black); }

/* day report */
.rep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 10px; }
.rep-fig { border: 1px solid var(--lmlm-black); border-radius: 12px; padding: 10px 12px; }
.rep-fig b { display: block; font-size: 24px; font-weight: 900; line-height: 1.1; }
.rep-fig span { font-size: 12px; font-weight: 600; color: var(--lmlm-muted); }
.rep-fig.neg b { color: var(--lmlm-pink); }
.rep-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 14px; }
.rep-bar { display: grid; grid-template-columns: 26px 80px 1fr 34px; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 6px; }
.rep-bar img { width: 24px; height: 16px; border: 1px solid rgba(0,0,0,.2); }
.rep-bar .track { height: 10px; border-radius: 5px; background: var(--lmlm-hair); overflow: hidden; }
.rep-bar .track i { display: block; height: 100%; background: var(--lmlm-green); }
.rep-bar b { text-align: right; }
.rep-list { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.rep-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--lmlm-hair); padding: 3px 0; }
.rep-list b { font-weight: 800; }
.rep-list b.neg { color: var(--lmlm-pink); }
.price-note { margin: 0 0 10px; padding: 6px 12px; border-radius: 10px; background: var(--lmlm-tint); border: 1px solid var(--lmlm-green); font-size: 15px; }
.price-note b.up { color: #00B85C; }
.price-note b.neg { color: var(--lmlm-pink); }
.btn-icon { gap: 6px; }
.btn-icon svg { width: 14px; height: 14px; fill: currentColor; }
.rep-stars { width: 95px; display: inline-block; vertical-align: -2px; margin-left: 8px; }
.countdown { display: flex; align-items: center; gap: 16px; margin: 4px 0 14px; padding: 12px 16px; border-radius: 14px; background: var(--lmlm-black); color: var(--lmlm-white); }
.cd-days { flex: 0 0 auto; text-align: center; }
.cd-days b { display: block; font-size: 40px; font-weight: 900; line-height: 1; color: var(--lmlm-green); }
.cd-days span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cd-main p { margin: 6px 0 0; font-size: 14px; }
.cd-main p b { color: var(--lmlm-green); }
.cd-dots { display: flex; gap: 5px; }
.cd-dots i { width: 22px; height: 8px; border-radius: 4px; background: var(--lmlm-hair-dark); border: 1px solid var(--lmlm-muted); }
.cd-dots i.done { background: var(--lmlm-green); border-color: var(--lmlm-green); }
.portrait .countdown { gap: 12px; padding: 10px 12px; }
.portrait .cd-days b { font-size: 32px; }
.portrait .cd-dots i { width: 14px; }
.reward {
  margin: 4px 0 16px; padding: 14px 16px 16px; border: 3px dashed var(--lmlm-green); border-radius: 16px;
  background: var(--lmlm-tint);
}
.rw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; }
.rw-head h3 { margin: 0; font-size: 20px; font-weight: 900; }
.rw-badge { padding: 3px 10px; border-radius: 999px; background: var(--lmlm-pink); color: var(--lmlm-white); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.rw-hint { font-size: 13px; color: var(--lmlm-muted); }
.rw-opts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.rw-opts.one { grid-template-columns: 1fr; max-width: 420px; }
.rw-or { align-self: center; font-size: 13px; font-weight: 900; text-transform: uppercase; color: var(--lmlm-muted); }
.rw {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; cursor: pointer;
  border: 2px solid var(--lmlm-black); border-radius: 14px; background: var(--lmlm-white); color: var(--lmlm-black); font-family: var(--lmlm-font);
  box-shadow: 0 4px 0 var(--lmlm-black); transition: transform .12s ease, box-shadow .12s ease, background-color .12s linear;
}
.rw:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--lmlm-black); }
.rw:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--lmlm-black); }
.rw-radio { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--lmlm-black); background: var(--lmlm-white); }
.rw img, .rw-ic { width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; }
.rw-ic { display: grid; place-items: center; border-radius: 50%; background: #F5C542; border: 2px solid var(--lmlm-black); font-size: 26px; font-weight: 900; }
.rw-tx { flex: 1; }
.rw-tx b { display: block; font-size: 16px; font-weight: 900; }
.rw-tx span { font-size: 13px; color: var(--lmlm-muted); }
.rw-cta { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: var(--lmlm-green); color: var(--lmlm-black); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.rw.on { background: var(--lmlm-black); color: var(--lmlm-white); border-color: var(--lmlm-green); box-shadow: 0 4px 0 var(--lmlm-green); }
.rw.on .rw-tx span { color: var(--lmlm-green); }
.rw.on .rw-radio { background: var(--lmlm-green); border-color: var(--lmlm-green); box-shadow: inset 0 0 0 4px var(--lmlm-black); }
.rw.on .rw-cta { background: var(--lmlm-white); }
.rw-opts:has(.rw.on) .rw:not(.on) { opacity: .6; }
.rw-opts:has(.rw.on) .rw:not(.on):hover { opacity: 1; }
.rw-note { font-size: 14px; font-weight: 700; color: var(--lmlm-muted); }
.stork { margin: 0 0 14px; padding: 12px 16px; border: 2px solid var(--lmlm-black); border-radius: 14px; }
.stork h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.stork h3 img { width: 26px; height: 32px; object-fit: contain; }
.stork ol { margin: 0; padding-left: 22px; }
.stork li { margin-bottom: 8px; font-size: 14px; line-height: 1.4; }
.stork li b { display: block; font-weight: 900; }
.stork li span { display: block; color: var(--lmlm-muted); }
.stork li em { display: block; font-style: normal; font-weight: 800; }
.stork p { margin: 0; }
.stork-tease { margin: 0 0 12px; font-size: 14px; color: var(--lmlm-muted); }
#info .clerk.empty b { color: var(--lmlm-muted); }
.cta-note { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--lmlm-hair); font-size: 14px; }
.cta-note a { color: var(--lmlm-black); font-weight: 800; text-decoration: underline; text-decoration-color: var(--lmlm-green); text-decoration-thickness: 3px; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .meter i, .toast { transition: none; }
}

/* ---------- leaderboard ---------- */
.board { margin: 6px 0 16px; }
.board h3 { margin-bottom: 6px; }
.board table { width: 100%; border-collapse: collapse; font-size: 15px; }
.board th { text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--lmlm-muted); padding: 4px 6px; border-bottom: 2px solid var(--lmlm-black); }
.board td { padding: 5px 6px; border-bottom: 1px solid var(--lmlm-hair); font-variant-numeric: tabular-nums; }
.board td:first-child { width: 28px; font-weight: 800; }
.board td small { margin-left: 8px; font-size: 12px; color: var(--lmlm-muted); }
.board tr.me td { background: var(--lmlm-tint); font-weight: 800; }
.board tr.me td:first-child { box-shadow: inset 4px 0 0 var(--lmlm-green); }
.board .won { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--lmlm-green); font-size: 10px; font-weight: 900; letter-spacing: .06em; vertical-align: 1px; }
.board-me { margin: 8px 0 0; font-size: 15px; }
.board-how { margin: 6px 0 0; font-size: 12px; color: var(--lmlm-muted); }
.card-board { position: relative; width: 720px; }
.card-board .board h3 { font-size: 20px; margin: 0 0 10px; }

/* ---------- desk staff and hiring ---------- */
#info .staff { margin: 0 0 8px; border-top: 1px solid var(--lmlm-hair); }
#info .clerk { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--lmlm-hair); }
#info .clerk b { font-weight: 900; margin-right: 4px; }
#info .clerk img { width: 16px; height: 11px; margin-right: 2px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.2); }
#info .clerk span { display: block; font-size: 13px; color: var(--lmlm-muted); }
.card-hire { position: relative; width: 980px; padding: 24px 30px; }
.card-hire h2 { margin-bottom: 4px; }
.card-hire .lede { font-size: 16px; }
.cands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cand { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 2px solid var(--lmlm-black); border-radius: 14px; font-size: 14px; line-height: 1.35; }
.cand-head { display: flex; align-items: center; gap: 10px; }
.cand-head .ava { width: 46px; height: 46px; flex: 0 0 46px; }
.cand-head b { display: block; font-size: 17px; font-weight: 900; }
.cand-head span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--lmlm-pink); }
.cand-langs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-weight: 700; font-size: 13px; }
.cand-langs img { width: 18px; height: 12px; margin-right: 4px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.2); }
.cand ul { margin: 0; padding-left: 18px; color: var(--lmlm-muted); }
.cand dl { display: grid; grid-template-columns: 60px 1fr; gap: 2px 8px; margin: 0; }
.cand dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--lmlm-muted); padding-top: 2px; }
.cand dd { margin: 0; font-weight: 700; }
.cand .btn { margin-top: auto; }

/* sound toggle */
.hbtn .mute { display: none; }
.hbtn.off .mute { display: inline; }
.hbtn.off .wave { display: none; }

/* ---------- portrait (phone held upright) ----------
   fit() in game.js sets .portrait on #app when the turned map comes out bigger than the normal one.
   The stage is then not scaled: the HUD, the map canvas (drawn turned a quarter turn) and the build bar
   stack at real pixel size, and panels and screens are sized for a narrow screen.
   fit() also sets --hud-h and --bar-h on the stage. */
.portrait #stage {
  left: 0; top: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  background: var(--lmlm-black);
}
.portrait #world { position: relative; order: 1; flex: none; margin: auto 0; }
/* flex order would paint the canvas over the overlays, so lift them */
.portrait #picker, .portrait #vcard, .portrait #toasts, .portrait #info, .portrait .scr, .portrait #party { z-index: 1; }
.portrait .lg { display: none; }

.portrait #hud {
  position: relative; order: 0; flex: none; width: 100%; height: auto;
  flex-wrap: wrap; align-items: center; gap: 5px 10px;
  padding: calc(6px + env(safe-area-inset-top)) 8px 7px;
}
.portrait #hud::before { content: ""; order: 3; flex: 0 0 100%; height: 0; }
.portrait .hud-day { order: 0; width: auto; gap: 0; }
.portrait .hud-day img { display: none; }
.portrait .hud-day b { font-size: 15px; }
.portrait .hud-day span { font-size: 12px; }
.portrait .hud-money { order: 1; width: auto; flex: 0 1 auto; }
.portrait .hud-btns { order: 2; gap: 4px; }
.portrait .hbtn { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }
.portrait .hbtn svg { width: 16px; height: 16px; }
.portrait .hud-meter { order: 4; flex: 1 1 0; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; column-gap: 5px; row-gap: 3px; }
.portrait .hud-stat:not(.hud-meter):not(.hud-money):not(.hud-inside) { order: 5; }
.portrait .hud-inside { order: 6; width: auto; flex: none; }
.portrait .hud-stat { gap: 2px; }
.portrait .hud-lbl { font-size: 9px; letter-spacing: .04em; white-space: nowrap; }
.portrait .hud-stat b { font-size: 16px; }
.portrait .hud-meter b { font-size: 13px; }
.portrait .meter { height: 8px; }
.portrait .stars, .portrait .stars-on { height: 14px; background-size: 15px 14px; }
.portrait .stars { width: 75px; }

.portrait #bar {
  position: relative; order: 2; flex: none; top: auto; width: 100%; height: auto;
  gap: 4px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.portrait .bar-lbl, .portrait .tool kbd { display: none; }
.portrait .tool { height: 62px; flex-direction: column; justify-content: center; gap: 1px; padding: 3px 2px; text-align: center; border-radius: 10px; }
.portrait .tool .ic { width: 30px; height: 26px; flex: 0 0 26px; }
.portrait .tool .ic img, .portrait .tool .ic svg { max-width: 30px; max-height: 26px; }
.portrait .tool b { font-size: 8.5px; line-height: 1.1; }
.portrait .tool em { font-size: 11px; margin-top: 1px; }
.portrait .ic-badge { right: -4px; bottom: 0; }

.portrait #info, .portrait #vcard, .portrait #picker {
  left: 8px; right: 8px; width: auto;
  max-height: calc(100% - var(--hud-h) - var(--bar-h) - 16px); overflow: auto;
  touch-action: pan-y; overscroll-behavior: contain;
}
.portrait #info { font-size: 14px; padding: 12px 14px; }
.portrait #info .btn-sm { min-height: 38px; padding: 0 14px; }
.portrait #vcard { font-size: 14px; padding: 12px 14px 10px; }
.portrait .vc-diary { max-height: 84px; }
.portrait #picker { bottom: calc(var(--bar-h) + 6px); padding: 8px 6px 6px; }
.portrait .pk-row { flex-wrap: wrap; gap: 8px 6px; }
.portrait .pk-card { flex: 0 0 calc(25% - 4.5px); }
.portrait .pk-ex { width: 100%; padding: 4px 2px; }
.portrait .pk-ex img { height: 34px; }
.portrait .pk-ex span, .portrait .pk-ex em { font-size: 9px; }
.portrait .pk-i { top: -5px; right: -5px; width: 24px; height: 24px; }
.portrait .pk-info { gap: 10px; padding: 10px; max-width: none; }
.portrait .pk-info-img { flex: 0 0 72px; }
.portrait .pk-info-img img { width: 72px; height: 56px; }
.portrait .pk-info-tx { font-size: 12px; }
.portrait .pk-info-tx h3 { font-size: 14px; }
.portrait .pk-info-tx dl { grid-template-columns: 84px 1fr; }
.portrait .pk-info-tx dt { font-size: 10px; }
.portrait #toasts { left: 8px; right: 8px; width: auto; bottom: calc(var(--bar-h) + 8px); }
.portrait #picker:not([hidden]) ~ #toasts { top: calc(var(--hud-h) + 8px); bottom: auto; } /* keep the picker readable */
.portrait .toast { max-width: 100%; font-size: 13px; padding: 8px 12px; gap: 8px; }
.portrait .toast img { height: 26px; }

.portrait .scr { padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)); }
.portrait .card {
  width: 100%; max-height: 100%; padding: 20px 16px; font-size: 15px; line-height: 1.45;
  touch-action: pan-y; overscroll-behavior: contain;
}
.portrait .card-sm { max-width: 420px; }
.portrait .card h1 { font-size: 34px; }
.portrait .card h2 { font-size: 22px; }
.portrait .card h3 { font-size: 13px; }
.portrait .lede, .portrait .card-wide .lede, .portrait .card-hire .lede { font-size: 15px; }
.portrait ul.arrows { font-size: 14px; }
ol.steps { list-style: none; counter-reset: st; padding: 0; margin: 12px 0 16px; font-size: 17px; line-height: 1.4; }
ol.steps li { counter-increment: st; position: relative; padding-left: 36px; margin-bottom: 8px; min-height: 26px; }
ol.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--lmlm-green); color: var(--lmlm-black); font-weight: 900; font-size: 13px; line-height: 24px; text-align: center; }
.portrait ol.steps { font-size: 15px; }
/* the zoom buttons stay under the screens and panels */
.portrait #zoom { z-index: 1; }
.portrait .goal { font-size: 13px; }
.portrait .rep-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
.portrait .rep-fig { padding: 8px 10px; }
.portrait .rep-fig b { font-size: 20px; }
.portrait .rep-cols { grid-template-columns: 1fr; gap: 12px; }
.portrait .rep-list { font-size: 13px; }
.portrait .rep-list li { gap: 10px; }
.portrait .rep-list li b, .portrait .rep-list li span:last-child { white-space: nowrap; }
.portrait .rep-bar { grid-template-columns: 26px 80px 1fr 30px; font-size: 13px; }
.portrait .price-note { font-size: 13px; }
.portrait .rw-opts { grid-template-columns: 1fr; gap: 8px; }
.portrait .rw { padding: 8px 12px; }
.portrait .rw-or { text-align: center; }
.portrait .rw-cta { padding: 4px 8px; font-size: 11px; }
.portrait .rw img, .portrait .rw-ic { width: 44px; height: 44px; flex: 0 0 44px; }
.portrait .cands { grid-template-columns: 1fr; gap: 10px; }
.portrait .cand { padding: 12px; }
.portrait .card-hire h2, .portrait .card-board h2 { padding-right: 34px; }
.portrait .board table { font-size: 13px; }
.portrait .board th { font-size: 10px; padding: 4px; }
.portrait .board td { padding: 5px 4px; }
.portrait .board td small { display: block; margin-left: 0; }
.portrait .card-board .board h3 { font-size: 17px; padding-right: 34px; }
.portrait #win-dog { max-width: 100%; height: auto; }
.portrait #party { width: 100%; height: 100%; }

/* zoom buttons on the map */
#zoom { position: absolute; left: 12px; top: 76px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
#zoom .hbtn { width: 40px; height: 40px; font: 900 22px/1 var(--lmlm-font); background: var(--lmlm-black); color: var(--lmlm-white); }
#zoom-out { opacity: .35; pointer-events: none; }
#zoom.zoomed #zoom-out { opacity: 1; pointer-events: auto; }
.portrait #zoom { position: absolute; top: calc(var(--hud-h) + 8px); left: 8px; }
.portrait #zoom .hbtn { width: 36px; height: 36px; }
/* gift shop info: a preview of the next level */
.shop-next { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--lmlm-muted); }
.shop-next img { width: 96px; height: auto; }
