/* Approved reference treatment for the actual game UI. All numbers and actions
   remain dynamic; the reference is used only for individual illustrative motifs. */
.game { --reference-cream:#fff4e4; --reference-ink:#39271f; --reference-blue:#172b56; }
.game .topbar {
  position:absolute !important; z-index:45 !important; top:0; left:0; right:0;
  height:89px !important; box-sizing:border-box; padding:8px 16px 5px !important;
  display:flex !important; align-items:flex-start; gap:10px !important;
  background:linear-gradient(180deg,rgba(13,19,51,.57),rgba(13,19,51,0)) !important;
}
.game .topbar .brand {
  display:flex !important; position:relative; flex:0 0 287px; min-width:0 !important;
  width:287px; height:76px; padding:7px 10px 6px 94px; gap:0;
  box-sizing:border-box; border:2px solid #f4dcac; border-radius:19px;
  background:linear-gradient(170deg,#fffdf9 5%,#fff0d6 70%,#e1c5a0);
  box-shadow:0 4px 10px #101a3d9b,inset 0 2px 1px #fff;
  text-shadow:none; color:var(--reference-ink);
}
.game .topbar .brand-mark {
  position:absolute; top:-7px; left:-9px; width:100px; height:94px; padding:0;
  border:0; border-radius:50%; background: url('assets/ref-meadow/avatar.png') center/contain no-repeat !important;
  box-shadow:none !important;
}
.game .topbar .brand .profile-copy { display:flex;flex-direction:column;justify-content:center;min-width:0;gap:5px; }
.game .topbar .brand b { display:block;color:#372820;font:800 21px/1.1 Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.game .topbar .brand small { display:block;color:#284b83;font:800 12px/1.2 Arial,sans-serif;letter-spacing:0;
  border:2px solid #9ac7e7;border-radius:12px;padding:4px 8px;white-space:nowrap;background:linear-gradient(#dbf7ff,#a2dffb);box-shadow:inset 0 1px white; }
.game .topbar .resources {
  display:flex;flex:1 1 0;min-width:0 !important;max-width:none !important;width:auto;justify-content:space-around;
  gap:7px;margin:6px 4px 0 !important;padding:0 !important;border:0 !important;background:none !important;box-shadow:none !important;
}
.game .topbar .resources .resource {
  display:flex;position:relative;flex:1 1 0;justify-content:center;align-items:center;
  min-width:0 !important;max-width:250px; height:42px;box-sizing:border-box;margin:0;
  padding:2px 10px 2px 12px !important;gap:7px !important;
  border:2px solid #9d78b1 !important;border-radius:15px !important;
  background:linear-gradient(180deg,#313d73ed,#161e4fe8 73%,#21193ac9) !important;
  box-shadow:0 3px 7px #090d2d8f,inset 0 2px #6e65a6 !important;
}
.game .topbar .resource > span:last-child { display:flex;justify-content:center;align-items:center; }
.game .topbar .resource small { display:none !important; }
.game .topbar .resource b { color:#fff4df !important;font:800 clamp(13px,1.25vw,21px)/1 Arial,sans-serif !important;text-shadow:0 2px 2px #050c24;white-space:nowrap; }
.game .topbar .resource-icon,
.game .topbar .resource:nth-child(2) .resource-icon,
.game .topbar .resource:nth-child(3) .resource-icon,
.game .topbar .resource:nth-child(4) .resource-icon {
  display:grid;place-items:center;flex:0 0 clamp(25px,2.6vw,39px);width:clamp(25px,2.6vw,39px);height:clamp(25px,2.6vw,39px);
  border:0 !important;clip-path:none !important;border-radius:50% !important;box-shadow:none !important;
  background:none !important;font-size:clamp(21px,2.3vw,34px);text-shadow:0 2px 5px #070d2e;
}
.game .topbar .resource:nth-child(1) .resource-icon {font-size:0 !important;background:url('assets/ref-meadow/money-star.png') center/contain no-repeat !important;}
.game .topbar .resource:nth-child(2) .resource-icon {color:#bfefff !important;filter:drop-shadow(0 0 3px #9ed5f3);}
.game .topbar .resource:nth-child(3) .resource-icon {font-size:0 !important;background:url('assets/ref-meadow/money-gem.png') center/contain no-repeat !important;}
.game .topbar .resource:nth-child(4) .resource-icon {color:#f95075 !important;filter:drop-shadow(0 2px 3px #872750);}
.game .topbar > .icon-button {
  display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;margin-top:3px;
  border:3px solid #e5bd91 !important;border-radius:14px !important;
  background:linear-gradient(160deg,#fffefa,#ffe9d2 72%,#e8c59f) !important;
  color:#49332f !important;text-shadow:0 1px white;box-shadow:inset 0 2px #fff,0 4px 7px #09142e90 !important;
}
.game .topbar > .icon-button .ui-mail-icon { filter:sepia(.65) saturate(.9); }
.game .topbar > .icon-button:hover {filter:brightness(1.05);transform:translateY(-1px);}
.game .topbar > .icon-button:focus-visible,.ref-rail button:focus-visible,.ref-dock button:focus-visible,.ref-activity button:focus-visible,.ref-develop:focus-visible {outline:3px solid #ffec89;outline-offset:3px;}
/* The legacy buttons keep their original JS listeners, but are activated from
   the new, reference-shaped dock instead of being duplicated on screen. */
.game .bottom-nav {display:none !important;}
.game .scene .quest-card {display:none !important;}
.ref-rail { position:absolute;z-index:39;top:106px;left:16px;display:flex;flex-direction:column;gap:8px; }
.ref-rail button,.ref-dock button,.ref-develop { -webkit-tap-highlight-color:transparent;cursor:pointer; }
.ref-rail button {
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:84px;height:88px;box-sizing:border-box;gap:1px;padding:5px 3px;
  border:3px solid #e6c39f;border-radius:20px;background:linear-gradient(150deg,#fffef6,#ffe8d3 77%,#e9cbaa);
  color:#392b24;font:800 12px/1.12 Arial,sans-serif;text-shadow:0 1px white;
  box-shadow:0 5px 8px #0a15378a,inset 0 2px #fff;
}
.ref-rail button img {width:52px;height:53px;object-fit:contain;pointer-events:none;}
/* M24: rune entry uses the existing responsive left-rail button, not an overlay. */
.ref-rail .meadow-runes img {filter:drop-shadow(0 0 5px #60c9ff);}
.ref-rail .meadow-runes:focus-visible img,.ref-rail .meadow-runes:hover img {filter:drop-shadow(0 0 8px #42bfff);}
.ref-rail button:hover,.ref-dock button:hover,.ref-develop:hover {transform:translateY(-2px);filter:brightness(1.04);}
.ref-activity {position:absolute;z-index:38;right:16px;top:99px;width:222px;display:grid;gap:10px;}
.ref-activity button {display:grid;position:relative;grid-template-columns:76px minmax(0,1fr);align-items:center;
  width:100%;min-height:90px;gap:3px;padding:9px 8px;border:3px solid #dfc3a2;border-radius:17px;
  background:linear-gradient(145deg,#fffefa,#fff0dc 74%,#f5d8b6);
  box-shadow:0 5px 9px #09152b91,inset 0 2px white;color:#3b2a20;cursor:pointer;text-align:left;
}
.ref-activity button:first-child {background:linear-gradient(140deg,#a1d2ff,#2d79d8 74%,#174697);border-color:#bddbfe;color:white;text-shadow:0 2px #194779;}
.ref-activity img {width:70px;height:74px;object-fit:contain;grid-row:1/3;pointer-events:none;}
.ref-activity b {font:800 15px/1.16 Arial,sans-serif;}
.ref-activity small {font:700 11px/1.1 Arial,sans-serif;opacity:.85;}
.ref-dock {position:absolute;z-index:41;bottom:calc(11px + env(safe-area-inset-bottom));left:17px;display:flex;gap:10px;align-items:flex-end;max-width:calc(100% - 34px);}
.ref-dock button {
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:84px;height:88px;box-sizing:border-box;min-width:0;gap:1px;padding:5px 3px;
  border:3px solid #e6c39f;border-radius:20px;background:linear-gradient(150deg,#fffef6,#ffe8d3 77%,#e9cbaa);
  color:#392b24;font:800 12px/1.12 Arial,sans-serif;text-shadow:0 1px white;
  box-shadow:0 5px 8px #0a15378a,inset 0 2px #fff;
}
.ref-dock button::before {content:none !important;}
.ref-dock img {width:52px;height:53px;object-fit:contain;pointer-events:none;position:static;z-index:auto;filter:none;} 
.ref-dock button span {position:static;z-index:auto;}
.ref-develop {position:absolute;z-index:41;right:17px;bottom:calc(13px + env(safe-area-inset-bottom));width:170px;height:104px;
 display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:0;padding:4px 5px 10px;
 border:4px solid #d6e5ff;border-radius:28px 28px 18px 18px;
 background:linear-gradient(150deg,#e8f8ff,#a6c9fc 72%,#7da7e4);
 color:#332f4b;font:900 21px/1 Arial,sans-serif;text-shadow:0 1px white;
 box-shadow:0 6px 13px #0b1d4c9c,inset 0 2px white;
}
.ref-develop::before {content:'';width:115px;height:62px;display:block;background:url('assets/ref-meadow/rail-map.png') center/contain no-repeat;filter:drop-shadow(0 1px 3px #3b488b);}
/* Keep the sprite bounding boxes and the visual artwork on one camera. */
.game .scene .house-object img,.game .scene .illustrated-building img,.game .scene .tree-object img {object-position:center bottom !important;}
.game .scene .world-object[data-object="tree"] {pointer-events:none;}
.game .scene .tree-object :is(#tree-art,.object-tag) {pointer-events:auto;}
.game .scene .world-object[data-object="tree"] #tree-art {
  position:absolute;
  inset:auto 0 6%;
  margin-inline:auto;
  width:var(--tree-width,51%);
  height:var(--tree-height,51.7%);
  transform:none;
}
.game .scene .varya-object img,.game .scene .ded-object img,.game .scene .pet-object img {width:100% !important;height:100% !important;object-fit:contain !important;object-position:center bottom !important;filter:drop-shadow(0 4px 4px #26324775) !important;}
/* A crisp little ground-contact shadow, not a second clickable sprite. */
.game .scene .varya-object::before,.game .scene .ded-object::before,.game .scene .pet-object::before {content:'';position:absolute;left:19%;width:62%;bottom:0;height:6%;border-radius:50%;background:#1d344b56;filter:blur(4px);pointer-events:none;}
.game .scene .varya-object::before {left:37%;width:40%;bottom:2%;height:4%;}
.game .scene .ded-object::before {left:32%;width:45%;bottom:2%;height:4%;}
.game .scene .pet-object::before {left:38%;width:48%;bottom:7%;height:5%;}
#game #scene :is(.varya-object, .ded-object, .pet-object):is(:hover, :active) {transform:none;}
#game #scene .ded-object {pointer-events:none;}
#game #scene .ded-object > .touch-hit {
  display:block;position:absolute;inset:0 var(--ded-hit-right,0px) 0 var(--ded-hit-left,0px);
  width:auto;height:auto;transform:none;pointer-events:auto;cursor:pointer;
}
.game #scene .pet-object #fox-tag {bottom:-4px;max-width:none;}
.game #scene :is(.varya-object, .ded-object) .object-tag {top:100%;bottom:auto;max-width:none;}
@media (prefers-reduced-motion: no-preference) {
  #scene #varya-art {
    transform-origin:58% 97%;
    animation:meadow-character-breath 5.8s ease-in-out infinite,
      meadow-character-shift 9.4s ease-in-out infinite;
  }
  #scene #ded-art {
    transform-origin:54% 97%;
    animation:meadow-character-breath 7.2s ease-in-out infinite,
      meadow-character-shift 12.4s ease-in-out infinite;
  }
  #scene #fox-art {
    transform-origin:54% 92%;
    animation:meadow-character-breath 4.8s ease-in-out infinite,
      meadow-character-shift 8.4s ease-in-out infinite;
  }
  body.ed-active #scene :is(#varya-art, #ded-art, #fox-art),
  body.v3-open #scene :is(#varya-art, #ded-art, #fox-art),
  #scene .world-object:active :is(#varya-art, #ded-art, #fox-art) {animation-play-state:paused;}
}
@keyframes meadow-character-breath {
  0%, 12%, 100% {scale:1;}
  43% {scale:1.004 1.014;}
  68% {scale:1.001 1.004;}
}
@keyframes meadow-character-shift {
  0%, 15%, 56%, 94%, 100% {transform:skewX(0deg);}
  33% {transform:skewX(-1.12deg);}
  73% {transform:skewX(.83deg);}
}
.game .scene .house-object .object-tag,.game .scene .illustrated-building .building-sign {bottom:2% !important;}
.game .scene .house-object .house-upgrade-meter {bottom:-7px !important;}
.game .scene .world-object .object-tag,.game .scene .illustrated-building .building-sign {padding:6px 13px !important;font:800 clamp(10px,1.03vw,14px)/1.12 Arial,sans-serif !important;}
.game .scene .tree-object .object-tag {bottom:-1% !important;}
/* Navigation map is real: each marker opens its existing scene object. */
.ref-map-panel[hidden] {display:none !important;}
.ref-map-panel {position:fixed;z-index:98;inset:0;display:grid;place-items:center;background:#0c1c37af;backdrop-filter:blur(4px);}
.ref-map-card {position:relative;width:min(660px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:16px;
 border:7px ridge #a87c4d;border-radius:23px;background:#fff2dc;box-shadow:0 18px 65px #0b132fc9;}
.ref-map-card h2 {margin:0 45px 13px 0;color:#623c23;font:800 24px Georgia,serif;}
.ref-map-card .ref-map-close {position:absolute;right:11px;top:9px;min-height:40px;min-width:40px;border:2px solid #bd945c;border-radius:13px;background:#fff6e5;font:800 23px Arial,sans-serif;cursor:pointer;}
.ref-map-card .ref-map-image {position:relative;aspect-ratio:1672/941;background:url('assets/p0/clearing.webp') center/100% 100% no-repeat;border:3px solid #e3bb84;border-radius:14px;overflow:hidden;}
.ref-map-card .ref-map-image button {position:absolute;transform:translate(-50%,-50%);padding:5px 8px;border:2px solid #f5d092;border-radius:9px;background:#60391ce0;color:white;font:800 11px Arial,sans-serif;cursor:pointer;white-space:nowrap;}
@media (max-width:1200px) {
 .game .topbar {height:69px !important;padding:5px 9px !important;gap:5px !important;}
 .game .topbar .brand {flex-basis:200px;width:200px;height:58px;padding:5px 7px 5px 63px;border-radius:14px;}
 .game .topbar .brand-mark {width:72px;height:72px;left:-6px;top:-6px;}
 .game .topbar .brand b {font-size:16px;}
 .game .topbar .brand small {font-size:9px;padding:3px 5px;}
 .game .topbar .resources {gap:4px;margin:5px 2px 0 !important;}
 .game .topbar .resources .resource {height:37px;padding:3px 4px !important;gap:3px !important;}
 .game .topbar > .icon-button {width:38px;height:38px;flex-basis:38px;border-width:2px !important;border-radius:10px !important;}
 .ref-rail {top:76px;left:8px;gap:4px;}
 .ref-rail button {width:63px;height:65px;border-width:2px;border-radius:14px;font-size:10px;}
 .ref-rail button img {width:38px;height:39px;}
 .ref-activity {top:76px;right:8px;width:172px;gap:6px;}
 .ref-activity button {min-height:72px;grid-template-columns:57px minmax(0,1fr);padding:4px;border-width:2px;border-radius:11px;}
 .ref-activity img {width:55px;height:57px;}
 .ref-activity b {font-size:12px;}.ref-activity small {font-size:9px;}
 .ref-dock {left:8px;bottom:8px;gap:6px;max-width:calc(100% - 16px);}
 .ref-dock button {width:63px;height:65px;border-width:2px;border-radius:14px;padding:4px 2px;font-size:10px;gap:1px;}
 .ref-dock button::before {content:none !important;}
 .ref-dock img {width:38px;height:39px;}
 .ref-develop {bottom:8px;right:8px;width:133px;height:82px;border-width:3px;border-radius:18px;padding-bottom:6px;font-size:16px;}
 .ref-develop::before {width:90px;height:47px;}
}
@media (max-height:470px) and (orientation:landscape) {
 .game .topbar {height:48px !important;padding:2px 5px !important;gap:3px !important;}
 .game .topbar .brand {flex-basis:125px;width:125px;height:40px;padding:3px 3px 3px 40px;border-width:1px;border-radius:9px;}
 .game .topbar .brand-mark {width:45px;height:45px;left:-4px;top:-3px;}
 .game .topbar .brand b {font-size:11px;}.game .topbar .brand small {font-size:7px;border-width:1px;padding:1px 2px;}
 .game .topbar .resources {gap:2px;margin:3px 1px 0 !important;}
 .game .topbar .resources .resource {height:30px;border-width:1px !important;border-radius:9px !important;padding:1px 2px !important;gap:1px !important;}
 .game .topbar .resource-icon,.game .topbar .resource:nth-child(2) .resource-icon,.game .topbar .resource:nth-child(3) .resource-icon,.game .topbar .resource:nth-child(4) .resource-icon {flex-basis:20px;width:20px;height:20px;font-size:19px;}
 .game .topbar .resource b {font-size:11px !important;}
 .game .topbar > .icon-button {flex-basis:30px;width:30px;height:30px;padding:2px;font-size:15px;}
 .ref-rail {top:50px;left:4px;gap:3px;}
 .ref-rail button {width:43px;height:51px;padding:1px;border-width:1px;border-radius:10px;font-size:7px;}
 .ref-rail button img {width:31px;height:33px;}
 .ref-activity {top:52px;right:4px;width:120px;gap:4px;}
 .ref-activity button {min-height:49px;grid-template-columns:40px 1fr;gap:1px;padding:2px;border-width:1px;border-radius:8px;}
 .ref-activity img {width:40px;height:42px;}.ref-activity b {font-size:9px;}.ref-activity small {font-size:8px;}
 .ref-dock {left:4px;bottom:4px;gap:3px;max-width:calc(100% - 8px);}
 .ref-dock button {flex:0 0 43px;width:43px;min-width:0;max-width:none;height:51px;padding:1px;border-width:1px;border-radius:10px;font-size:7px;gap:0;}
 .ref-dock button::before {content:none !important;}
 .ref-dock img {width:31px;height:33px;}
 .ref-develop {right:4px;bottom:4px;width:110px;height:52px;padding:0 2px 4px;border-width:2px;border-radius:10px;font-size:12px;}
 .ref-develop::before {width:63px;height:27px;}
 .game .scene .object-tag,.game .scene .building-sign {padding:3px 5px !important;font-size:8px !important;}
}
@media(prefers-reduced-motion:reduce){.ref-rail button,.ref-dock button,.ref-develop {transition:none !important;}}
/* Final sign language from the approved village reference, without baking
   levels into images: text continues to come from the live game state. */
.game .scene .building-sign,.game .scene .world-object .object-tag {
  color:#3f2b21 !important;text-shadow:0 1px #fff7e9 !important;
  background:linear-gradient(170deg,#fffbea,#f2d7ac 72%,#d8ae76) !important;
  border:2px solid #b5874f !important;border-radius:13px !important;
  box-shadow:inset 0 2px white,0 3px 6px #15243d7d !important;
}
.game .scene .illustrated-building .building-sign {transform:translateX(-50%) rotate(-3deg);}
.game .scene .house-object .object-tag {transform:translateX(-50%) rotate(2deg);}
.game .scene .building-status {background:linear-gradient(#355782,#192f53);border:1px solid #c9dff3;color:#fff2d8;}
.ref-develop::before {background-image:url('assets/ref-meadow/nav-develop.png');}
@media(max-height:470px) and (orientation:landscape){
 .ref-dock {width:calc(100% - 8px);max-width:none;}
 .ref-dock button {flex:1 1 0;max-width:none;min-width:0;font-size:9px;}
 .ref-dock button::before {content:none !important;}
 .ref-dock img {width:31px;height:33px;}
}
/* Readable dark controls on the cream utility buttons. */
.game .topbar #open-post .ui-mail-icon {display:none !important;}
.game .topbar #open-post::after {content:'✉';font:700 29px/1 Arial,sans-serif;color:#5b4037;filter:drop-shadow(0 1px #fff);}
.game .topbar .fullscreen-button::after {filter:brightness(.34);}
.game .topbar .brand {cursor:pointer;text-align:left;}
.game .topbar .brand:focus-visible {outline:3px solid #ffec89;outline-offset:3px;}
.ref-profile-card {width:min(440px,calc(100vw - 28px));}
.ref-profile-summary {display:flex;align-items:center;gap:12px;padding:12px;border:2px solid #e8c597;border-radius:16px;background:#fffdfa;}
.ref-profile-summary img {width:76px;height:76px;object-fit:contain;}
.ref-profile-summary div {display:flex;flex-direction:column;gap:7px;}
.ref-profile-summary b {font:800 21px Arial,sans-serif;color:#3d2b25;}
.ref-profile-summary span {font:700 13px Arial,sans-serif;color:#32608a;}
.ref-profile-wallet {display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0;}
.ref-profile-wallet p {display:flex;flex-direction:column;gap:7px;padding:11px;margin:0;border:2px solid #ead0a9;border-radius:12px;background:#fdf7e9;}
.ref-profile-wallet span {font:700 12px Arial,sans-serif;color:#6d4d32;}
.ref-profile-wallet strong {font:800 22px Arial,sans-serif;color:#443026;}
.ref-profile-friends {width:100%;padding:12px;border:2px solid #d1a46e;border-radius:12px;background:linear-gradient(#fffaec,#e6c299);color:#553925;font:800 15px Arial,sans-serif;cursor:pointer;}

/* Final quality pass R48: unified painted resource icons for the HUD. */
.game .topbar .resources .resource { align-items:center !important; justify-content:center !important; }
.game .topbar .resources .resource > span:last-child { display:flex !important; align-items:center !important; justify-content:center !important; height:100%; }
.game .topbar .resources .resource .resource-icon {
  position:relative !important; top:auto !important; left:auto !important;
  flex:0 0 clamp(25px,2.6vw,39px) !important;
  width:clamp(25px,2.6vw,39px) !important; height:clamp(25px,2.6vw,39px) !important;
  display:block !important; font-size:0 !important; line-height:0 !important;
  transform:none !important; text-shadow:none !important; border-radius:0 !important;
  background-position:center center !important; background-size:contain !important; background-repeat:no-repeat !important;
  filter:none !important;
}
.game .topbar .resources .resource:nth-child(1) .resource-icon { background-image:url('assets/ref-meadow/resources-r48/spark.png') !important; }
.game .topbar .resources .resource:nth-child(2) .resource-icon { background-image:url('assets/ref-meadow/resources-r48/flake.png') !important; }
.game .topbar .resources .resource:nth-child(3) .resource-icon { background-image:url('assets/ref-meadow/resources-r48/diamond.png') !important; }
.game .topbar .resources .resource:nth-child(4) .resource-icon { background-image:url('assets/ref-meadow/resources-r48/energy.png') !important; }
.ref-dock img { image-rendering:auto; filter:none; object-position:center center; }
.ref-develop::before { background-image:url('assets/ref-meadow/vector/nav-develop.svg'); }
/* Align both buildings to their painted snow plots. Keep labels clear of doors. */
.game .scene .world-object[data-object="house"] #house-art,
.game .scene .world-object[data-object="workshop"] .building-art {
  object-fit:contain !important; object-position:center bottom !important;
}
.game .scene .world-object[data-object="house"] #house-art {transform:none !important;transform-origin:50% 100% !important;}
.game .scene .world-object[data-object="workshop"] .building-art {transform:translate(-6%,4%) scale(1.055) !important;transform-origin:50% 100% !important;}
.game .scene .world-object[data-object="workshop"] .building-sign {
  bottom:0 !important; transform:translateX(-50%) !important;
}
.game .scene .world-object[data-object="workshop"] .building-status {
  left:50% !important; right:auto !important; bottom:-5.5% !important;
  transform:translateX(-50%); white-space:nowrap;
}
@media(max-height:470px) and (orientation:landscape){
 .game .topbar .resources .resource .resource-icon { flex-basis:20px !important; width:20px !important; height:20px !important; }
 .ref-dock img {width:39px;height:28px;}
}

.ref-develop {display:none !important;}

/* DEV-27 R46: illustrated winter objects with the same painted material and shadows as left navigation, not flat glyphs.
   Keep the same button proportions, typography, and 3D art baseline as the left rail. */
.ref-dock button img {max-width:none;object-fit:contain;object-position:center center;}
@media(max-width:1200px){.ref-dock button img{width:38px;height:39px}}
@media(max-height:470px) and (orientation:landscape){.ref-dock button img{width:31px;height:33px}}

:is(.ref-dock,.ref-rail) button[data-game-spark]::after,
#game button[data-game-spark] > .meadow-mail-spark,
 #game .ref-rail button[data-event-notice="true"]::after{
 content:"";position:absolute;z-index:3;pointer-events:none;inset:3px 3px auto auto;
 width:clamp(18px,1.7vw,21px);height:clamp(18px,1.7vw,21px);border:0;border-radius:0;
 background:radial-gradient(circle at 35% 26%,#ff9397 0%,#ff3446 34%,#d7082a 76%,#a90020 100%);
 clip-path:polygon(50% 0,60% 33%,78% 12%,68% 41%,100% 50%,68% 59%,78% 88%,60% 67%,50% 100%,40% 67%,22% 88%,32% 59%,0 50%,32% 41%,22% 12%,40% 33%);
 filter:drop-shadow(0 0 1px #fffaf0) drop-shadow(0 0 2px #fffaf0) drop-shadow(0 0 5px #ff3550);
 animation:meadow-spark-pulse 2.4s ease-in-out infinite alternate;
}
#game .meadow-mail-spark {display:none;}
#game button[data-game-spark] > .meadow-mail-spark {display:block;}
#game #open-post[data-game-spark] > .meadow-mail-spark {inset:2px 2px auto auto;width:18px;height:18px;}
#game button[data-object="post"][data-game-spark] > .meadow-mail-spark {inset:9% 15% auto auto;}
@keyframes meadow-spark-pulse{from{opacity:.86;transform:scale(.94);}to{opacity:1;transform:scale(1.10);}}
@media(prefers-reduced-motion:reduce){
 :is(.ref-dock,.ref-rail) button[data-game-spark]::after,
 #game button[data-game-spark] > .meadow-mail-spark,
 #game .ref-rail button[data-event-notice="true"]::after{animation:none;}
}
