/* ==========================================================================
   dotvoid — Meadow Tycoon (window, desktop sprites, gadget) and
   Personalization › Unlockables
   ========================================================================== */

/* ----------------------------------------------------------------- the meadow on the desktop */
#meadow-world { position: absolute; z-index: 0; inset: 0 0 var(--taskbar-h) 0; pointer-events: none; overflow: hidden; }
.mw-sprite { position: absolute; transform: translate(-50%, -100%); filter: drop-shadow(0 3px 3px rgba(0, 40, 0, .25)); }
.mw-sprite svg { display: block; width: 100%; height: auto; overflow: visible; }
.mw-sprite.grow { animation: mw-grow .7s var(--ease-out) both; }
@keyframes mw-grow { from { transform: translate(-50%, -100%) scale(0); opacity: 0; } }
.mw-sprout { animation: mw-sway 4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes mw-sway { from { rotate: -4deg; } to { rotate: 4deg; } }
.mw-spin { animation: mw-spin 5s linear infinite; }
@keyframes mw-spin { to { transform: rotate(360deg); } }
.mw-rise { animation: mw-rise 3.2s ease-in-out infinite; }
@keyframes mw-rise { 0% { transform: translateY(26px) scale(.5); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-14px) scale(1); opacity: 0; } }
.mw-raincloud { transform: translate(-50%, 0); filter: drop-shadow(0 6px 10px rgba(0, 40, 90, .2)); animation: mw-drift 18s ease-in-out infinite alternate; }
@keyframes mw-drift { to { translate: 40px 0; } }
.mw-rain path { stroke-dasharray: 6 10; animation: mw-rain .7s linear infinite; }
@keyframes mw-rain { to { stroke-dashoffset: -16; } }
.mw-aurora { transform: none; height: 90px; filter: blur(2px); opacity: .85; }
.mw-aurora svg { height: 100%; }
.mw-wave { animation: mw-wave 7s ease-in-out infinite alternate; transform-origin: center; }
@keyframes mw-wave { to { transform: scaleY(1.25) translateX(-12px); opacity: .7; } }
@media (prefers-reduced-motion: reduce) {
  .mw-sprite, .mw-sprite * { animation: none !important; }
}

/* ----------------------------------------------------------------- game window */
.meadow { display: flex; flex-direction: column; height: 100%; background: linear-gradient(#bfe6ff, #e8f7e0 58%, #9fd870 59%, #6ab83f); }
.md-nag {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px;
  background: linear-gradient(#fffbe6, #ffefb0); border-bottom: 1px solid #e0c060; color: #4a3a10;
}
.md-nag > img { width: 32px; height: 32px; flex: none; }
.md-nag p { flex: 1; min-width: 0; margin: 0; font-size: 12.5px; }
.md-nag-btns { flex: none; display: flex; flex-direction: column; gap: 5px; }
.md-nag-btns .btn { font-size: 11.5px; }
.md-nag-x { flex: none; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #8a7030; }
.md-nag-x svg { width: 11px; height: 10px; fill: currentColor; }
@media (hover: hover) { .md-nag-x:hover { background: rgba(0, 0, 0, .08); } }
.md-body { flex: 1; min-height: 0; display: flex; }
.md-left { flex: 0 0 42%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 12px; }
.md-wallet { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 6px; padding: 6px 16px; border-radius: 20px; background: rgba(255, 255, 255, .7); box-shadow: 0 2px 8px rgba(0, 40, 80, .15), inset 0 1px 0 #fff; }
.md-coin { width: 24px; height: 24px; align-self: center; }
.md-gold-n { font-size: 24px; color: #7a4a00; font-variant-numeric: tabular-nums; }
.md-wallet small { color: #7a4a00; }
.md-rate { flex-basis: 100%; text-align: center; font-size: 12px; color: #3a6a20; font-weight: 600; }
.md-sun-wrap { position: relative; flex: 1; min-height: 150px; width: 100%; display: grid; place-items: center; }
.md-sun {
  position: relative; width: min(190px, 70%); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.md-sun:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
.md-sun-rays {
  position: absolute; inset: -14%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 80, .55) 0 8deg, transparent 8deg 22.5deg);
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 44%, #000 62%, transparent 72%);
  mask: radial-gradient(circle, transparent 42%, #000 44%, #000 62%, transparent 72%);
  animation: mw-spin 24s linear infinite;
}
.md-sun-core {
  position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fffbe0, #ffe25a 38%, #ffb21a 72%, #f08a00);
  box-shadow: 0 0 30px rgba(255, 200, 40, .8), 0 0 70px rgba(255, 220, 90, .5), inset 0 -8px 16px rgba(200, 90, 0, .35), inset 0 6px 10px rgba(255, 255, 255, .8);
  transition: transform .12s;
}
.md-sun-core::after { content: ""; position: absolute; left: 18%; top: 10%; width: 48%; height: 30%; border-radius: 50%; background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); }
@media (hover: hover) { .md-sun:hover .md-sun-core { transform: scale(1.04); } }
.md-sun.pop .md-sun-core { animation: md-pop .18s ease-out; }
@keyframes md-pop { 50% { transform: scale(.92); } }
.md-fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.md-plus { position: absolute; transform: translate(-50%, -50%); font-size: 20px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(120, 70, 0, .9), 0 0 8px rgba(255, 200, 40, .9); animation: md-float .9s ease-out forwards; white-space: nowrap; }
@keyframes md-float { to { transform: translate(-50%, -260%); opacity: 0; } }
.md-spark { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8c0, #ffc21a 60%, #c07800); animation: md-spark .7s ease-out forwards; }
@keyframes md-spark { to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }
.md-hint { margin: 0; font-size: 12px; color: #2a5a1a; text-align: center; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.md-world { justify-content: center; font-size: 12px; color: #1f4a12; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8); border-radius: 6px; padding: 4px 10px; }
.md-left .btn img { width: 16px; height: 16px; }
.md-right { flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 10px 10px 10px 0; border: 1px solid rgba(255, 255, 255, .9); border-radius: 10px; background: rgba(255, 255, 255, .78); box-shadow: 0 4px 16px rgba(0, 40, 80, .15); overflow: hidden; }
.md-tabs { flex: none; display: flex; border-bottom: 1px solid #c9daec; background: linear-gradient(#fff, #eaf3fb); }
.md-tab { flex: 1; height: 34px; border: 0; background: transparent; color: #2a4a70; font-weight: 600; }
.md-tab.current { color: #12375f; box-shadow: inset 0 -3px 0 #3c8be8; background: #fff; }
.md-list { flex: 1; min-height: 0; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.md-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left;
  border: 1px solid #c9daec; border-radius: 8px; background: linear-gradient(#fff, #f2f7fc); color: inherit;
}
@media (hover: hover) { .md-row:not(:disabled):hover { border-color: #7eb4ea; box-shadow: 0 0 0 1px #b8d6fb; } }
.md-row:not(:disabled):active { transform: scale(.99); }
.md-row:disabled { opacity: .62; cursor: default; }
.md-row.bought { animation: md-bought .35s; }
@keyframes md-bought { 50% { background: #e8ffd8; } }
.md-row.mystery { opacity: .7; border-style: dashed; }
.md-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(#bfe6ff, #a8e08a); font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); background-size: 100% 100%; }
.md-ico-sprout { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='8' fill='%23d8f4ff'/%3E%3Cpath d='M0 30h40v10H0z' fill='%2378c850'/%3E%3Cpath d='M20 34V18' stroke='%232f8a1c' stroke-width='2'/%3E%3Cg transform='translate(20 14)' fill='%23ff7ab8'%3E%3Cellipse rx='3' ry='5' cy='-4'/%3E%3Cellipse rx='3' ry='5' cy='-4' transform='rotate(72)'/%3E%3Cellipse rx='3' ry='5' cy='-4' transform='rotate(144)'/%3E%3Cellipse rx='3' ry='5' cy='-4' transform='rotate(216)'/%3E%3Cellipse rx='3' ry='5' cy='-4' transform='rotate(288)'/%3E%3Ccircle r='2.6' fill='%23ffb21a'/%3E%3C/g%3E%3C/svg%3E"); }
.md-ico-bubbler { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='8' fill='%23d8f4ff'/%3E%3Ccircle cx='20' cy='15' r='9' fill='%23e8fbff' stroke='%237ae0ff' stroke-width='1.6'/%3E%3Ccircle cx='20' cy='15' r='3' fill='%23ffd23a'/%3E%3Crect x='14' y='28' width='12' height='10' rx='2' fill='%232ac8e8'/%3E%3C/svg%3E"); }
.md-ico-windmill { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='8' fill='%23d8f4ff'/%3E%3Cpath d='M18 18h4l3 22h-10z' fill='%23fff' stroke='%237a8ea4'/%3E%3Cpath d='M20 16 19 3h2zM20 16l13-1v2zM20 16l1 13h-2zM20 16 7 17v-2z' fill='%23fff' stroke='%238aa2b8'/%3E%3C/svg%3E"); }
.md-ico-raincloud { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='8' fill='%23d8f4ff'/%3E%3Cpath d='M12 32v4M20 32v4M28 32v4' stroke='%237fc8f0' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M10 28h21a6 6 0 0 0 0-12 9 9 0 0 0-17-2 6.5 6.5 0 0 0-4 14z' fill='%23fff' stroke='%239ab4cf'/%3E%3C/svg%3E"); }
.md-ico-greenhouse { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='8' fill='%23d8f4ff'/%3E%3Cpath d='M6 36V22a14 12 0 0 1 28 0v14z' fill='%23c8f0ff' stroke='%238ac8e8' stroke-width='1.4'/%3E%3Cpath d='M20 10v26M6 24h28' stroke='%238ac8e8'/%3E%3Cpath d='M12 36c0-6 3-9 6-10-1 4 0 7 2 10z' fill='%234cb83a'/%3E%3C/svg%3E"); }
.md-ico-aurora { background: linear-gradient(160deg, #0b1e3a, #123a66); }
.md-ico-aurora::before { content: ""; width: 28px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, #5affc8, #7a8aff, #ff7ae0); filter: blur(2px); }
.md-ico-up { background: linear-gradient(#ffe27a, #e09a00); }
.md-row.locked .md-ico-up { background: linear-gradient(#c6ced8, #8e9aa8); }
.md-ico-up svg { width: 20px; height: 20px; fill: #fff; color: #fff; }
.md-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.md-row-text b { color: #12375f; }
.md-row-text span { font-size: 12px; color: #5a6b80; }
.md-row-text small { font-size: 11px; color: #3a7a20; }
.md-row-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.md-cost { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #7a4a00; font-variant-numeric: tabular-nums; }
.md-cost img { width: 15px; height: 15px; }
.md-row:disabled .md-cost { color: #a04030; }
.md-owned { min-width: 28px; font-size: 20px; font-weight: 700; color: #2a5a8a; text-align: right; font-variant-numeric: tabular-nums; }
.md-empty, .md-done { margin: 6px 4px; font-size: 12px; color: #5a6b80; }

/* gadget */
.g-meadow {
  position: relative; display: flex; align-items: center; gap: 10px; width: 150px; padding: 10px 10px 22px; border: 1px solid rgba(0, 0, 0, .45); text-align: left; cursor: pointer; color: #3a2a00;
  background: linear-gradient(#cfeeff, #e8f8e0 55%, #9fd870 56%, #6ab83f) !important;
}
.g-md-sun { flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fffbe0, #ffd23a 50%, #f08a00); box-shadow: 0 0 12px rgba(255, 200, 40, .9); animation: g-md-glow 2.4s ease-in-out infinite alternate; }
@keyframes g-md-glow { to { box-shadow: 0 0 20px rgba(255, 210, 60, 1); } }
.g-md-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.g-md-text small { font-size: 10.5px; color: #2a5a8a; font-weight: 600; }
.g-md-gold { font-size: 14px; color: #6a3a00; font-variant-numeric: tabular-nums; }
.g-md-rate { font-size: 11px; color: #1f5a10; font-weight: 600; }
.g-md-play { position: absolute; right: 8px; bottom: 6px; padding: 1px 8px; border-radius: 8px; background: linear-gradient(#9fe58a, #3ea42c); color: #fff; font-size: 10.5px; font-weight: 700; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); }

/* ----------------------------------------------------------------- Personalization › Unlockables */
.pz-gold { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.pz-gold img { width: 14px; height: 14px; }
.pz-unlock { height: 26px; padding: 0 10px; font-size: 12px; }
.pz-unlock.gray .pz-gold { color: #6a4a00; }
.pz-wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e6c870; border-radius: 10px; background: linear-gradient(#fffbea, #fff0c4); }
.pz-wallet-coin { width: 40px; height: 40px; }
.pz-wallet > div:nth-child(2) { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.pz-wallet b { font-size: 18px; color: #6b4b00; font-variant-numeric: tabular-nums; }
.pz-wallet span { font-size: 12px; color: #7a6420; }
.pz-wallet-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-wallet-btns img { width: 16px; height: 16px; }
.pz-unlocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pz-unlock-card { display: flex; flex-direction: column; border: 1px solid #c9daec; border-radius: 8px; background: #fff; overflow: hidden; }
.pz-unlock-card.flash { animation: pz-flash 1.6s ease-out; }
@keyframes pz-flash { 0%, 40% { box-shadow: 0 0 0 3px #ffd23a, 0 0 18px rgba(255, 200, 40, .8); } }
.pz-unlock-card .st-thumb { height: 96px; }
.pz-unlock-card .st-thumb-icon { width: 54px; height: 54px; }
.pz-unlock-text { display: flex; flex-direction: column; padding: 8px 10px 0; }
.pz-unlock-text b { color: #12375f; }
.pz-unlock-text span { font-size: 12px; color: #5a6b80; }
.pz-unlock-act { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 10px; margin-top: auto; }
.pz-unlock-act > :only-child { margin-left: auto; }
.pz-owned { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #2a8a2a; }
.pz-owned svg { width: 13px; height: 13px; }
.pz-wall-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pz-wall-wrap .pz-unlock { margin-top: -2px; }

@media (max-width: 700px), (max-height: 480px) {
  .md-body { flex-direction: column; overflow: auto; }
  .md-left { flex: none; padding: 10px; }
  .md-sun-wrap { min-height: 150px; flex: none; height: 170px; }
  .md-sun { width: 140px; }
  .md-right { flex: none; margin: 0 8px 10px; min-height: 320px; }
  .md-nag { flex-wrap: wrap; }
  .md-nag p { flex-basis: calc(100% - 90px); }
  .md-nag-btns { flex-direction: row; flex-wrap: wrap; }
}
