:root {
  --bg: #0f1722; --panel: #172233; --panel2: #1f2d44; --line: #2b3c58; --text: #e8eef7; --muted: #8fa3bf;
  --accent: #4ade80; --accent2: #22c55e; --gold: #fbbf24; --bad: #f87171; --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body { display: flex; flex-direction: column; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); }
.hide, [hidden] { display: none !important; }

/* ---- buttons ---- */
.btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; transition: .12s; }
.btn:hover { filter: brightness(1.2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(#34d870, #1fb455); border-color: #1a9c49; color: #05260f; font-weight: 700; }
.btn.gold { background: linear-gradient(#fcd34d, #f59e0b); border-color: #d98a06; color: #3a2400; font-weight: 700; }
.btn.link { background: none; border: none; color: var(--muted); text-decoration: underline; }
.btn.small { padding: 4px 9px; font-size: 13px; border-radius: 8px; }
.btn:disabled, .btn.off { opacity: .45; cursor: not-allowed; filter: none; }

/* ---- top bar ---- */
#top { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: #0b121b; border-bottom: 1px solid var(--line);
  overflow-x: auto; white-space: nowrap; flex: none; }
.logo { font-weight: 800; font-size: 18px; margin-right: 6px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 14px; flex: none; }
.chip.money { color: var(--gold); font-weight: 700; }
.chip.click { cursor: pointer; }
.chip.buff { border-color: #a855f7; }
.chip em { font-style: normal; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ---- layout ---- */
#layout { flex: 1; min-height: 0; display: flex; }
#center { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#tabs { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; padding: 8px 10px 4px; overflow-x: auto; flex: none; scrollbar-width: thin; }
#tabs::-webkit-scrollbar { height: 8px; }
#tabs::-webkit-scrollbar-thumb { background: #2a3a52; border-radius: 6px; }
.tab { background: var(--panel); border: 1px solid var(--line); border-bottom: none; border-radius: 10px 10px 0 0;
  padding: 7px 13px; white-space: nowrap; color: var(--muted); }
.tab.on { background: var(--panel2); color: var(--text); font-weight: 700; box-shadow: inset 0 3px 0 var(--accent); }
.tab.tabmode { position: absolute; right: 10px; top: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; opacity: .6; background: var(--panel); }
.tab.tabmode:hover { opacity: 1; }
.subtabs { flex: 0 0 calc(100% + 20px); box-sizing: border-box; margin: 0 -10px -4px; display: flex; gap: 2px; padding: 4px 10px 0; order: 9; background: var(--panel2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stab { background: transparent; border: none; border-radius: 8px 8px 0 0; padding: 6px 14px; color: var(--muted); white-space: nowrap; }
.stab:hover { color: var(--text); background: #ffffff0d; }
.stab.on { color: var(--text); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.tab i, .stab i { font-style: normal; background: var(--bad); color: #fff; border-radius: 99px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
#view { flex: 1; min-height: 0; overflow-y: auto; background: var(--panel2); padding: 12px; }

#side { width: 290px; flex: none; background: #0b121b; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.sidehead { padding: 8px 12px 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
#online { max-height: 130px; overflow-y: auto; padding: 0 8px; }
.pl { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 8px; cursor: pointer; }
.pl:hover { background: var(--panel); }
.pl .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
#log { flex: 1; overflow-y: auto; padding: 4px 12px; font-size: 13.5px; min-height: 0; }
.msg { margin: 3px 0; word-wrap: break-word; }
.msg b { color: var(--accent); }
.msg.sys { color: var(--gold); font-style: italic; }
#chatform { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
#chatform input { flex: 1; min-width: 0; }
input, select { background: #0f1a2a; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; outline: none; }
input:focus, select:focus { border-color: var(--accent); }
#chatToggle { display: none; }

/* ---- garden ---- */
#gbanner { margin-bottom: 10px; }
.banner { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex;
  flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.banner h3 { margin: 0; font-size: 16px; }
.cmp { display: grid; grid-template-columns: auto auto auto; gap: 2px 14px; font-size: 13px; }
.cmp b { text-align: right; }
.ev-banner { border-color: var(--evc, #fb923c); background: linear-gradient(90deg, #2a1a10, var(--panel)); }

#gscene { position: relative; border-radius: 18px; overflow: hidden; padding: 70px 14px 18px;
  background: linear-gradient(to bottom, var(--g1), var(--g2) 40%, var(--grass) 40%);
  box-shadow: 0 6px 24px #0008, inset 0 0 0 2px #fff2; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
#decor { position: absolute; left: 0; right: 0; top: 12px; display: flex; justify-content: center; gap: 18px; font-size: 38px; z-index: 1;
  filter: drop-shadow(0 3px 2px #0005); pointer-events: none; }
#grid { position: relative; z-index: 2; display: grid; gap: 8px; max-width: 760px; margin: 0 auto; touch-action: none; user-select: none; }
.tile { position: relative; aspect-ratio: 1; border-radius: 14px; cursor: pointer;
  background: radial-gradient(circle at 30% 25%, var(--s1), var(--s2)); box-shadow: inset 0 -5px 0 #0004, 0 2px 4px #0005;
  display: flex; align-items: center; justify-content: center; overflow: hidden; transition: box-shadow .2s, transform .1s; }
.tile:hover { transform: translateY(-2px); filter: brightness(1.12); }
.tile .crop { font-size: calc(var(--tile, 60px) * .6); line-height: 1; transform: scale(var(--sc, 1)); transform-origin: 50% 80%; transition: transform .6s;
  filter: drop-shadow(0 3px 2px #0006); }
.tile.ready .crop { animation: bob 1.4s ease-in-out infinite; }
.tile.ready { box-shadow: inset 0 -5px 0 #0004, 0 0 0 3px #fff9, 0 0 16px 4px #ffffff66; }
.tile.mut { box-shadow: inset 0 -5px 0 #0004, 0 0 0 3px var(--mc), 0 0 18px 5px var(--mc); }
.tile.giant .crop { filter: drop-shadow(0 3px 2px #0006) saturate(1.2); }
.tile .muts { position: absolute; top: 2px; left: 4px; font-size: calc(var(--tile, 60px) * .22); line-height: 1; display: flex; gap: 1px; }
.tile .bar { position: absolute; left: 8%; right: 8%; bottom: 5px; height: 5px; background: #0007; border-radius: 3px; overflow: hidden; }
.tile .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #86efac, #22c55e); }
.tile.ready .bar { display: none; }
.tile.empty .bar { display: none; }
@keyframes bob { 0%, 100% { transform: scale(var(--sc, 1)) translateY(0); } 50% { transform: scale(var(--sc, 1)) translateY(-5%); } }
.float { position: fixed; z-index: 60; pointer-events: none; font-weight: 800; font-size: 18px; text-shadow: 0 2px 4px #000a;
  animation: floatUp .9s ease-out forwards; }
@keyframes floatUp { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-46px); } }

#petrow { position: relative; z-index: 3; display: flex; gap: 22px; justify-content: center; margin-top: 12px; min-height: 40px; }
.petw { text-align: center; animation: hop 2.2s ease-in-out infinite; }
.petw:nth-child(2) { animation-delay: .5s; } .petw:nth-child(3) { animation-delay: 1s; }
.petw .e { font-size: 32px; display: block; filter: drop-shadow(0 3px 2px #0006); }
.petw small { font-size: 11px; background: #0007; color: #fff; padding: 0 6px; border-radius: 8px; }
.petw.golden .e { filter: drop-shadow(0 0 8px gold); }
.petw.rainbow .e { animation: hue 3s linear infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-10px); } }
@keyframes hue { to { filter: hue-rotate(360deg) drop-shadow(0 0 8px #fff); } }

#gbar { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; }
.slot { position: relative; width: 78px; height: 88px; border-radius: 12px; background: var(--panel); border: 2px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; font-size: 38px; line-height: 1.1; padding: 5px 2px 0; }
.slot > span { display: block; }
.slot .nm { font-style: normal; display: block; font-size: 11px; line-height: 1.1; font-weight: 600; color: var(--text, #e8f0e8); text-align: center; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.slot.sel { border-color: var(--accent); box-shadow: 0 0 12px #4ade8088; transform: translateY(-3px); }
.slot em { position: absolute; right: 4px; bottom: 1px; font-size: 12px; font-style: normal; font-weight: 700; text-shadow: 0 1px 2px #000; }
.slot kbd { position: absolute; left: 4px; top: 1px; font-size: 10px; color: var(--muted); }
.noseeds { color: var(--muted); padding: 10px; }
.gbtns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- panels ---- */
.sub { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.sub .btn.on { background: var(--accent2); color: #05260f; font-weight: 700; }
.sub .grow { flex: 1; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.card { background: linear-gradient(115deg, #ffffff2e 0%, #ffffff12 28%, transparent 29%), var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--rc, var(--line)); border-radius: var(--radius);
  padding: 10px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.card .em { font-size: 38px; line-height: 1.1; }
.card b { font-size: 15px; }
.card small { color: var(--muted); }
.card .row { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.card .row .btn { flex: 1; }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: #0005; color: var(--rc, #fff); width: fit-content; border: 1px solid var(--rc, var(--line)); }
.tag.ev { color: #fb923c; border-color: #fb923c; margin-left: 4px; }
.price { color: var(--gold); font-weight: 700; }
.soldout { opacity: .5; }
h2 { margin: 14px 0 8px; font-size: 16px; }
h2:first-child { margin-top: 0; }
.list { display: flex; flex-direction: column; gap: 6px; }
.rowc { background: linear-gradient(115deg, #ffffff2e 0%, #ffffff12 28%, transparent 29%), var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: flex; gap: 10px; align-items: center; }
.rowc .em { font-size: 28px; }
.rowc .grow { flex: 1; min-width: 0; }
.mt { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 99px; margin-right: 3px; color: #111; }
.prog { height: 8px; background: #0006; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, #86efac, #22c55e); }
.slotsrow { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pslot { width: 100px; min-height: 100px; border: 2px dashed var(--line); border-radius: 14px; text-align: center; padding: 8px 4px; background: var(--panel); }
.pslot .em { font-size: 34px; display: block; }
.pslot.full { border-style: solid; }
.locked { filter: grayscale(1) brightness(.6); }
.bonusbar { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.bonusbar span { background: var(--panel); padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
table.lb { width: 100%; border-collapse: collapse; }
table.lb td, table.lb th { padding: 5px 8px; text-align: left; border-bottom: 1px solid var(--line); }
table.lb th { color: var(--muted); font-weight: 600; font-size: 12px; }

/* ---- overlays, toasts, tip ---- */
.overlay { position: fixed; inset: 0; background: #000b; display: none; align-items: center; justify-content: center; z-index: 100; padding: 14px; }
.overlay.show { display: flex; }
.loginbox, .modalbox { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; width: min(420px, 100%);
  max-height: 90vh; overflow-y: auto; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.loginbox h1 { margin: 0; font-size: 30px; }
.biglogo { font-size: 56px; }
.err { color: var(--bad); min-height: 1.2em; }
.modalbox h3 { margin: 0; }
.bigpet { font-size: 90px; animation: hop 1.2s ease-in-out infinite; }
.modalbox .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.modalbox select { width: 100%; }
#toasts { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast { background: #0b121bf0; border: 1px solid var(--line); padding: 8px 14px; border-radius: 12px; animation: fadeIn .2s, fadeOut .4s 2.6s forwards; }
.toast.good { border-color: var(--accent); } .toast.bad { border-color: var(--bad); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes fadeOut { to { opacity: 0; } }
#tip { position: fixed; z-index: 90; background: #0f1824f2; border: 2px solid #3e5a86; border-radius: 12px; padding: 8px 11px; box-shadow: 0 8px 24px #000a; font-size: 13px;
  pointer-events: none; display: none; max-width: 240px; }

/* ---- mobile ---- */
@media (max-width: 820px) {
  #side { position: fixed; right: 0; top: 0; bottom: 0; z-index: 70; width: min(320px, 88vw); transform: translateX(100%); transition: transform .2s; }
  #side.open { transform: none; }
  #chatToggle { display: block; position: fixed; right: 12px; bottom: 14px; z-index: 80; width: 52px; height: 52px; border-radius: 50%;
    background: var(--accent2); border: none; font-size: 24px; box-shadow: 0 4px 12px #0008; }
  #gscene { padding: 64px 8px 14px; }
  .slot { width: 66px; height: 78px; font-size: 32px; }
}

/* ---- v0.4 ---- */
#chanbar { display: flex; gap: 6px; padding: 4px 12px; }
#chanbar:empty { display: none; }
.btn.on { background: var(--accent); color: #062; }
.tile .regr { position: absolute; bottom: 2px; right: 4px; font-size: calc(var(--tile, 60px) * .2); color: #86efac; font-weight: 700; }
#evdeco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
#evdeco span { position: absolute; font-size: 28px; opacity: .85; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.card.locked { opacity: .5; filter: grayscale(.8); }
.msg small.muted { font-size: 11px; }
.pslot small.muted { font-size: 11px; }
select { background: var(--panel); color: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px; width: 100%; margin: 4px 0; }
.modalbox input[type=number], .modal input[type=text], .modal input:not([type]) { width: 100%; margin: 4px 0; }
.btn.dim { opacity: .55; }

/* ---- v0.4.1 performance ---- */
.tile { contain: layout paint; transition: none; }
.tile:hover { filter: none; transform: none; outline: 2px solid #fff6; outline-offset: -2px; }
.tile .crop { filter: none; transition: none; will-change: transform; }
.tile.giant .crop { filter: none; }
.tile.ready .crop { animation-duration: 1.8s; }
.tile.ready { box-shadow: inset 0 -5px 0 #0004, 0 0 0 3px #fff9; }
.tile.mut { box-shadow: inset 0 -5px 0 #0004, 0 0 0 3px var(--mc); }
.petw .e, .petw.golden .e { filter: none; }
.petw.golden .e { text-shadow: 0 0 10px gold; }
.petw.rainbow .e { animation: none; text-shadow: 0 0 10px #f0f, 0 0 16px #0ff; }
#decor { filter: none; }
body.lowfx .tile .crop, body.lowfx .tile.ready .crop, body.lowfx .petw, body.lowfx #evdeco span { animation: none !important; }

/* weather tints are plain CSS layers: far cheaper than repainting a big canvas every frame */
#fxtint, #fxflash { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
#fx { will-change: auto; }
[data-wx="rain"] #fxtint, [data-wx="thunder"] #fxtint { background: #12306044; }
[data-wx="frost"] #fxtint, [data-wx="snowfall"] #fxtint { background: #bfe4ff22; }
[data-wx="heat"] #fxtint { background: linear-gradient(to top, #ff7a1a55, #ff7a1a00); }
[data-wx="bloodmoon"] #fxtint { background: #7a000044; }
[data-wx="bloodmoon"] #fxtint::after { content: ''; position: absolute; right: 15%; top: 20px; width: 52px; height: 52px; border-radius: 50%; background: #ffb3a3; }
[data-wx="meteor"] #fxtint { background: #7c2d1233; }
[data-wx="aurora"] #fxtint { background: linear-gradient(to bottom, #2dd4bf44, #a78bfa33 55%, #0000); }
[data-wx="goldenhour"] #fxtint { background: linear-gradient(to top, #fbbf2455, #fb923c22); }
[data-wx="rainbow"] #fxtint { background: #ffffff10; }
[data-wx="rainbow"] #fxtint::after { content: ''; position: absolute; left: 50%; top: 14px; width: 58%; max-width: 520px; height: 34%; transform: translateX(-50%); border-radius: 999px 999px 0 0; border: 5px solid #ef444477; box-shadow: 0 0 0 5px #fb923c66, 0 0 0 10px #facc1566, 0 0 0 15px #4ade8066, 0 0 0 20px #60a5fa66, 0 0 0 25px #a78bfa66; }
[data-wx="dewmist"] #fxtint { background: #a5f3fc1c; }
[data-wx="breeze"] #fxtint { background: #86efac14; }
[data-wx="pollendrift"] #fxtint { background: #fde04718; }
[data-wx="eclipse"] #fxtint { background: #0b0b2a77; }
[data-wx="eclipse"] #fxtint::after { content: ''; position: absolute; right: 18%; top: 22px; width: 52px; height: 52px; border-radius: 50%; background: #05050f; box-shadow: 0 0 0 3px #818cf8aa, 0 0 22px 6px #818cf855; }
[data-wx="ash"] #fxtint { background: #4b556355; }
[data-wx="crystalhail"] #fxtint { background: #67e8f91e; }
#fxflash { background: #fff; opacity: 0; }
#fxflash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .5; } 100% { opacity: 0; } }

/* ---- themed scrollbars ---- */
:root { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--muted); }
*::-webkit-scrollbar-corner { background: transparent; }

/* ---- v0.5 ---- */
.tile .pest { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: calc(var(--tile, 60px) * .45);
  z-index: 3; cursor: pointer; animation: pestwob .5s infinite alternate; filter: drop-shadow(0 2px 3px #000a); }
.tile .pest:empty { display: none; }
.tile.haspest { box-shadow: inset 0 0 0 2px #ef4444aa; }
.tile.haspest .crop { filter: saturate(.5) brightness(.85); }
@keyframes pestwob { from { transform: translate(-6%, 2%) rotate(-12deg); } to { transform: translate(6%, -2%) rotate(12deg); } }
body.lowfx .tile .pest { animation: none; }
.tile .fzb { position: absolute; top: 2px; right: 4px; font-size: calc(var(--tile, 60px) * .2); line-height: 1; pointer-events: none; }
.slot.fert { border-style: dashed; }
.slot.fert.sel { border-color: #a3e635; box-shadow: 0 0 12px #a3e63588; }
.banner.boss { border-color: #ef4444; background: linear-gradient(90deg, #7f1d1d66, var(--panel)); }
.prog.big { height: 14px; border-radius: 7px; margin: 6px 0; }
.prog.big i { background: linear-gradient(90deg, #f87171, #ef4444); }
.card.boss { border-top-color: #ef4444; }
.card.wide { grid-column: 1 / -1; margin-bottom: 10px; }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 8px 0; }
.sday { background: #0004; border: 1px solid var(--line); border-radius: 10px; padding: 6px 2px; text-align: center; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.sday small { font-size: 11px; color: var(--muted); }
.sday.done { background: #16a34a44; border-color: #22c55e; }
.sday.next { border-color: var(--gold); box-shadow: 0 0 10px #facc1566; animation: pulse 1.2s infinite alternate; }
.topdmg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; margin-top: 6px; }
.labrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.labrow select { flex: 1; min-width: 140px; }
select, #modal input[type=number] { background: var(--panel); color: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font: inherit; width: 100%; box-sizing: border-box; }
#tut { display: none; position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 40; width: min(440px, calc(100vw - 24px));
  background: var(--panel); border: 2px solid var(--accent); border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 30px #000a; }
.tutbtns { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.chip.pulse { animation: pulse 1s infinite alternate; }
@keyframes pulse { from { box-shadow: 0 0 0 0 #facc1500; } to { box-shadow: 0 0 10px 2px #facc15aa; } }
#gscene[data-gh="1"] { background: linear-gradient(to bottom, #bae6fd88, #ecfeff55 40%, #14532d 40%); box-shadow: 0 6px 24px #0008, inset 0 0 0 4px #ffffff55, inset 0 0 40px #ffffff22; }
.btn.on { background: var(--accent); color: #052e16; }
table.lb { width: 100%; border-collapse: collapse; }
table.lb th, table.lb td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .streak { gap: 3px; } .sday small { display: none; } }

/* ---- v0.6 store ---- */
.card.pack { gap: 4px; }
.packitems { list-style: none; margin: 4px 0; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 1px; text-align: left; }
.card.pack .packitems { margin-bottom: 8px; }
.tag { background: #facc1522; color: #facc15; border-radius: 6px; padding: 1px 6px; align-self: center; }
label.chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 10px 0; cursor: pointer; }
label.chk input { margin-top: 3px; flex: none; }
#stPay { margin: 8px 0; min-height: 44px; }
.card.pack { display: flex; flex-direction: column; }
.card.pack > .btn { margin-top: auto; }

/* ---- v0.7 ---- */
.chatcog { float: right; background: none; border: 0; cursor: pointer; font-size: 14px; padding: 0 2px; }
.msg b.cn { cursor: pointer; }
.msg b.cn:hover { text-decoration: underline; }
#loginEmail, #loginReset, #loginGName { display: flex; flex-direction: column; gap: 8px; }
#loginEmail[hidden], #loginReset[hidden], #loginGName[hidden], #loginNew[hidden], #loginKey[hidden], #gBtnWrap[hidden] { display: none; }
#gBtnWrap { display: flex; justify-content: center; margin: 4px 0; }
#loginEmail .row, .modalbox .row { display: flex; gap: 8px; }
#loginEmail .row .btn { flex: 1; }
.modalbox h4 { margin: 14px 0 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.modalbox input:not([type=checkbox]), .loginbox input { background: #0b140f; color: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; width: 100%; box-sizing: border-box; }
.modalbox .col { display: flex; flex-direction: column; gap: 8px; }
p.warn { background: #facc1514; border: 1px solid #facc1555; border-radius: 10px; padding: 8px 10px; }
.btn.bad { background: #7f1d1d; color: #fecaca; }
#loginNew, #loginKey { display: flex; flex-direction: column; gap: 8px; }

/* rebirth badges */
.rb{vertical-align:-5px;flex:none}.rblock{filter:grayscale(1) brightness(.55);opacity:.55}
.rbgrid{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:6px;margin:8px 0 14px}.rbgrid .rbcell svg{width:100%;height:auto;max-width:44px}
.rbcell{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;border-radius:10px;background:rgba(255,255,255,.06)}.rbcell.cur{outline:2px solid #fbbf24}
.rbc{fill:#fbbf24}.rbv{stroke:#334155}

/* name colours: white for everyone, supporters get a metal or rainbow name */
.nm{color:#fff}.cn{color:#fff}
.nm.s1{color:#e8a463}.nm.s2{color:#d5dde8}.nm.s3{color:#ffd24a}
.nm.s4,.nm.s5{background:linear-gradient(90deg,#ff5f6d,#ffc371,#7ee787,#5eead4,#60a5fa,#e879f9,#ff5f6d);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;font-weight:700}
.nm.s5{background-size:200% 100%;animation:rbflow 3s linear infinite;text-shadow:0 0 8px rgba(232,121,249,.5)}
@keyframes rbflow{to{background-position:200% 0}}
@media (prefers-reduced-motion:reduce){.nm.s5{animation:none}}

/* no underlines on names in tables */
.lb a,.lb a:hover{text-decoration:none}

#peekcard{position:fixed;z-index:60;display:none;pointer-events:none;background:#0f172a;border:1px solid #334155;border-radius:10px;padding:8px 12px;font-size:13px;line-height:1.5;box-shadow:0 6px 20px rgba(0,0,0,.5);min-width:170px;color:#e2e8f0}
#peekcard small{color:#94a3b8;margin-left:4px}
#peekcard .pkach{display:flex;align-items:center;gap:8px;margin:4px 0;padding:5px 8px;background:#1e293b;border-radius:8px}
#peekcard .pkem{font-size:28px;line-height:1}
#peekcard .pkach small{margin-left:0}

/* supporter names are bold; silver is a cooler steel tone so it stands apart from white */
.nm.s1,.nm.s2,.nm.s3,.nm.s4,.nm.s5{font-weight:800}
.nm.s2{color:#a5b8d0}
.nm.s1,.nm.s2,.nm.s3,.nm.s4,.nm.s5{font-weight:600}
.nm.s1,.nm.s2,.nm.s3,.nm.s4,.nm.s5{font-weight:700}

/* hide / show chat (desktop) */
.chatbtns{float:right;display:flex;gap:6px;align-items:center}.chatbtns .chatcog{position:static}
#chatShow{display:none;position:fixed;right:14px;bottom:14px;z-index:80;box-shadow:0 4px 12px #0008}
@media (min-width: 821px){
  body.fs #layout.nochat ~ #chatShow{display:block}
}
.chatbtns .chatcog{font-size:12px;color:var(--muted);text-transform:none;letter-spacing:0;border:1px solid var(--line);border-radius:6px;padding:1px 7px}.chatbtns .chatcog:last-child{border:0;font-size:14px}

/* ======== v0.8: tilted 3D garden ======== */
#gscene { padding: 0; height: var(--sh, 560px); border-radius: 18px;
  background: linear-gradient(180deg, var(--g1) 0%, var(--g2) var(--hz, 150px), var(--grass) var(--hz, 150px)); }
#sky3d { position: absolute; left: 0; right: 0; top: 0; height: var(--hz, 150px); overflow: hidden; z-index: 0; pointer-events: none; }
#sky3d .sun { position: absolute; right: 12%; top: 14%; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, #fffbe0 0%, #ffeaa0 38%, rgba(255,234,160,0) 70%); }
#gscene[data-sky="dusk"] #sky3d .sun { background: radial-gradient(circle, #fff0d0 0%, #ffae6e 40%, rgba(255,174,110,0) 70%); top: 38%; }
#gscene[data-sky="night"] #sky3d .sun { background: radial-gradient(circle, #ffffff 0%, #dbe4ff 26%, rgba(219,228,255,0) 66%); width: 90px; height: 90px; }
#gscene[data-sky="aurora"] #sky3d .sun { display: none; }
#gscene[data-sky="overcast"] #sky3d .sun, #gscene[data-sky="storm"] #sky3d .sun, #gscene[data-sky="nebula"] #sky3d .sun { display: none; }
#gscene[data-sky="sunrise"] #sky3d .sun { background: radial-gradient(circle, #fffbe0 0%, #ffc27a 42%, rgba(255,194,122,0) 70%); top: 44%; }
#sky3d .hill { position: absolute; border-radius: 50%; bottom: -60px; }
#sky3d .h1 { left: -18%; width: 70%; height: 120px; background: color-mix(in srgb, var(--grass) 55%, var(--g2)); }
#sky3d .h2 { right: -22%; width: 76%; height: 140px; background: color-mix(in srgb, var(--grass) 68%, var(--g2)); }
#stage { position: absolute; left: 0; right: 0; top: var(--hz, 150px); bottom: 0; z-index: 2; perspective: var(--pp, 1500px); perspective-origin: 50% 0; overflow: visible; }
#plane { position: absolute; left: 50%; top: 0; width: 3200px; height: 2000px; margin-left: -1600px; transform-origin: 50% 0;
  transform: rotateX(var(--tilt, 55deg)); transform-style: preserve-3d;
  background: repeating-linear-gradient(0deg, var(--grass) 0 calc(var(--tile, 80px) * 1.1), color-mix(in srgb, var(--grass) 90%, #000) calc(var(--tile, 80px) * 1.1) calc(var(--tile, 80px) * 2.2)); }
#bed { position: absolute; left: calc(50% - var(--bw, 400px) / 2 + var(--bx, 0) * var(--tile, 60px)); top: calc(var(--y0, 60px) + var(--by, 0) * var(--tile, 60px)); box-sizing: border-box; padding: 14px; background: #5a3a20;
  border: 10px solid #8f6334; border-radius: 14px; transform-style: preserve-3d; }
#grid { position: static; display: grid; gap: var(--gap, 6px); max-width: none; margin: 0; transform-style: preserve-3d; }
#fog { position: absolute; left: 0; right: 0; top: calc(var(--hz, 150px) - 30px); height: 110px; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--g2) 85%, transparent) 30%, transparent 100%); }
#decor { left: 10px; right: auto; top: 14px; width: auto; max-height: calc(var(--sh, 560px) - 28px); flex-direction: column; flex-wrap: wrap; align-content: flex-start; justify-content: flex-start; gap: 8px; z-index: 4; font-size: 30px; }
#petrow { position: absolute; left: auto; right: 10px; top: 14px; bottom: auto; margin: 0; z-index: 4; flex-direction: column; flex-wrap: wrap-reverse; align-content: flex-start; align-items: center; gap: 10px; max-height: calc(var(--sh, 560px) - 28px); min-height: 0; }
@media (max-width: 640px) { #decor { font-size: 20px; gap: 4px; left: 4px; } #petrow { right: 4px; gap: 6px; } .petw .e { font-size: 22px; } .petw small { display: none; } }
#evdeco { z-index: 1; }
.tile { display: block; width: var(--tile); height: var(--tile); aspect-ratio: auto; overflow: visible; contain: none; border-radius: 8px;
  transform-style: preserve-3d; background: repeating-linear-gradient(90deg, var(--s1) 0 calc(var(--tile) * .16), var(--s2) calc(var(--tile) * .16) calc(var(--tile) * .32));
  box-shadow: inset 0 0 10px #0006; }
.tile:hover { outline: 2px solid #fff8; outline-offset: -2px; transform: none; filter: none; }
.tile .crop { position: absolute; left: 0; right: 0; bottom: 30%; text-align: center; font-size: calc(var(--tile) * .5); line-height: 1;
  transform-origin: 50% 100%; transform: rotateX(calc(var(--tilt, 0deg) * -1)) scale(var(--sc, 1)); filter: drop-shadow(0 6px 3px #0005); will-change: auto; transition: none; pointer-events: none; }
.tile.ready { box-shadow: inset 0 0 0 3px #fff, 0 0 20px 5px #ffffffaa; }
.tile.mut { box-shadow: inset 0 0 0 3px var(--mc), 0 0 18px 4px var(--mc); }
.tile.ready .crop { animation: bob3 1.8s ease-in-out infinite; }
@keyframes bob3 { 0%, 100% { transform: rotateX(calc(var(--tilt, 0deg) * -1)) scale(var(--sc, 1)) translateY(0); } 50% { transform: rotateX(calc(var(--tilt, 0deg) * -1)) scale(var(--sc, 1)) translateY(-6%); } }
.tile .muts, .tile .regr, .tile .fzb { transform-origin: 50% 100%; transform: rotateX(calc(var(--tilt, 0deg) * -1)); z-index: 2; }
.tile .muts { top: -18%; left: 2px; font-size: calc(var(--tile) * .24); }
.tile .fzb { top: -18%; right: 2px; font-size: calc(var(--tile) * .24); }
.tile .pest { inset: auto 0 30% 0; transform-origin: 50% 100%; transform: rotateX(calc(var(--tilt, 0deg) * -1)); font-size: calc(var(--tile) * .5); z-index: 3; }
.tile .bar { left: 10%; right: 10%; bottom: 4px; }
.tile.haspest { box-shadow: inset 0 0 0 2px #ef4444cc; }
/* greenhouse: the same tilted field seen through glass panes, on a pale stone floor */
#gscene[data-gh="1"] { background: linear-gradient(180deg, var(--g1) 0%, var(--g2) var(--hz, 150px), var(--grass) var(--hz, 150px));
  box-shadow: 0 6px 24px #0008, inset 0 0 0 4px #ffffff88, inset 0 0 50px #ffffff33; }
#gscene[data-gh="1"] #plane { background: repeating-linear-gradient(0deg, #d5ebdc 0 calc(var(--tile) * 1.1), #c6e0d0 calc(var(--tile) * 1.1) calc(var(--tile) * 2.2)); }
#gscene[data-gh="1"] #bed { background: #3f5f4a; border-color: #cfe3d6; }
#gscene[data-gh="1"] #sky3d { background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), #ffffff66 calc(25% - 2px) 25%); }
@media (max-width: 820px) { #gscene { padding: 0; } }
.rbx21{filter:drop-shadow(0 0 3px #fbbf24aa)}.rbx22{filter:drop-shadow(0 0 4px #c084fcbb)}
.rblock.rbx21,.rblock.rbx22{filter:grayscale(1) brightness(.55)}
.vip{vertical-align:-3px;flex:none;filter:drop-shadow(0 0 3px #ffc21a99)}
/* settings window */
.setpane { text-align: left; display: flex; flex-direction: column; gap: 12px; }
.setpane h3 { text-align: center; }
.setsec { background: #ffffff0a; border: 1px solid var(--line); border-radius: 12px; padding: 2px 14px 12px; }
.setsec h4 { margin: 12px 0 4px; }
.setsec label.chk { margin: 8px 0; }
.setsec p { margin: 6px 0; }
.setsub { margin: 12px 0 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.setpane .row { justify-content: center; }
.setsec .row { flex-wrap: nowrap; } .setsec .row input { flex: 1; min-width: 0; }

/* admin role badge and /bc broadcast banner */
.adm { display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .08em; padding: 1px 5px; border-radius: 5px; color: #fff; background: linear-gradient(135deg, #f43f5e, #fb923c); vertical-align: 1px; }
.bcbanner { position: fixed; left: 0; right: 0; top: 14%; z-index: 300; display: flex; justify-content: center; pointer-events: none; perspective: 800px; animation: bcIn .75s cubic-bezier(.25, .9, .3, 1.1) both; transform-origin: 50% 0; }
.bcbanner.out { animation: bcOut .5s cubic-bezier(.5, 0, .75, .4) both; }
.bcbox { position: relative; max-width: min(92vw, 900px); padding: 16px 38px 20px; border-radius: 22px; text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #0b1a2e99, #13302a8c); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid #ffffff55; box-shadow: 0 12px 40px #0006, inset 0 1px 0 #fff4, 0 0 40px #4ade8033; }
.bcbox small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #86efac; margin-bottom: 5px; }
.bcbox b { display: block; font-size: clamp(22px, 4.4vw, 40px); line-height: 1.15; font-weight: 800; text-shadow: 0 2px 12px #0008; word-break: break-word; }
.bcbox::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; left: -120px; background: linear-gradient(100deg, transparent, #ffffff40, transparent); transform: skewX(-20deg); animation: bcShine 2.4s .7s ease-in-out infinite; }
.bcbox i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #4ade80, #38bdf8); transform-origin: left; animation: bcBar 5s linear both; }
.bcconf { display: none; }
@keyframes bcIn { 0% { opacity: 0; transform: rotateX(-85deg); } 70% { opacity: 1; transform: rotateX(8deg); } 100% { opacity: 1; transform: none; } }
@keyframes bcOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: rotateX(-85deg); } }
@keyframes bcShine { 0% { left: -120px; } 45%, 100% { left: 110%; } }
@keyframes bcBar { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .bcbox::after { animation: none; } }
.rbcell .rbn{font-size:9px;line-height:1.1;text-align:center;color:var(--muted);word-break:break-word}@media(max-width:640px){.rbcell .rbn{display:none}}

/* ---- v0.8 garden ornaments: big animated decorations on the horizon ---- */
#decor { position: absolute; left: 0; right: 0; top: calc(var(--hz, 120px) + 8px); bottom: auto; width: auto; height: 0; max-height: none; display: block; z-index: 4; font-size: 0; filter: none; pointer-events: none; }
.orn { position: absolute; bottom: 0; transform: translateX(-50%); width: var(--s); height: var(--s); pointer-events: auto; font-size: var(--s); line-height: 1; }
.orn::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: -5%; height: 14%; border-radius: 50%; background: radial-gradient(ellipse, #0007, transparent 70%); }
.orn .oe { position: absolute; inset: 0; display: block; text-align: center; font-size: var(--s); line-height: 1; transform-origin: 50% 95%; filter: drop-shadow(0 4px 3px #0006); }
.orn i { position: absolute; font-style: normal; pointer-events: none; }
.orn.pv { position: relative; transform: none; left: auto; margin: 6px auto 12px; --s: 54px; }
/* movement */
.fx-sway .oe { animation: ornSway 3.4s ease-in-out infinite; }
.fx-bob .oe { animation: ornBob 1.8s ease-in-out infinite; }
.fx-hop .oe { animation: ornHop 2.4s ease-in-out infinite; }
.fx-flap .oe { animation: ornSway 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
.fx-glow .oe, .fx-smoke .oe { animation: ornFlicker 2.6s ease-in-out infinite; }
.fx-spark .oe { animation: ornBreathe 4s ease-in-out infinite; }
.fx-hearts .oe { animation: ornBreathe 3s ease-in-out infinite; }
.fx-mist .oe { animation: ornBob 4.5s ease-in-out infinite; }
.fx-fire .oe { animation: ornDragon 3.2s ease-in-out infinite; }
.fx-rocket .oe { animation: ornRocket 11s ease-in infinite; }
.fx-fountain .oe { animation: none; }
@keyframes ornSway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes ornBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes ornHop { 0%, 55%, 100% { transform: translateY(0) scaleY(1); } 62% { transform: translateY(0) scaleY(.88); } 75% { transform: translateY(-22%) scaleY(1.05); } 88% { transform: translateY(0) scaleY(.92); } }
@keyframes ornFlicker { 0%, 100% { filter: drop-shadow(0 0 8px #ffb84a) brightness(1); } 45% { filter: drop-shadow(0 0 16px #ffd36a) brightness(1.15); } 70% { filter: drop-shadow(0 0 6px #ff9a3a) brightness(.95); } }
@keyframes ornBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes ornDragon { 0%, 100% { transform: scale(1, 1) rotate(0); } 25% { transform: scale(1.06, .96) rotate(-2deg); } 50% { transform: scale(.96, 1.05) rotate(0); } 75% { transform: scale(1.06, .96) rotate(2deg); } }
@keyframes ornRocket { 0%, 70% { transform: translate(0, 0) rotate(0); } 74% { transform: translate(2px, 0) rotate(0); } 78% { transform: translate(-2px, 0); } 100% { transform: translate(0, -420%) rotate(6deg); opacity: 0; } }
/* glows */
.orn .og { left: -20%; right: -20%; top: -10%; bottom: -10%; border-radius: 50%; background: radial-gradient(circle, #ffdd7a99, #ffb84a33 45%, transparent 70%); animation: ornGlow 2.6s ease-in-out infinite; z-index: -1; }
.orn .og.warm { left: 20%; right: 20%; top: 40%; bottom: 10%; background: radial-gradient(circle, #ffc85acc, transparent 70%); }
@keyframes ornGlow { 0%, 100% { opacity: .75; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.08); } }
/* fountain water */
.orn .od { left: 46%; top: 8%; width: 7%; height: 7%; border-radius: 50%; background: #9fe3ff; box-shadow: 0 0 6px #fff9; animation: ornDrop 1.4s ease-out infinite; }
.orn .od.d2 { animation-delay: .35s; --dx: -22px; } .orn .od.d3 { animation-delay: .7s; --dx: 20px; } .orn .od.d4 { animation-delay: 1.05s; --dx: 8px; } .orn .od.d1 { --dx: -8px; }
@keyframes ornDrop { 0% { transform: translate(0, 12px) scale(.5); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(var(--dx, 0), calc(var(--s) * .6)) scale(1); opacity: 0; } }
/* smoke from chimneys and rocket exhaust */
.orn .os { left: 60%; top: 6%; width: 18%; height: 18%; border-radius: 50%; background: #e5e7ebcc; animation: ornSmoke 3s ease-out infinite; }
.orn .os.s2 { animation-delay: 1s; } .orn .os.s3 { animation-delay: 2s; }
@keyframes ornSmoke { 0% { transform: translate(0, 0) scale(.4); opacity: .8; } 100% { transform: translate(14px, calc(var(--s) * -.5)) scale(1.4); opacity: 0; } }
.fx-rocket .os { left: 38%; top: 80%; background: #f3f4f6cc; animation: ornExhaust 11s ease-out infinite; }
.fx-rocket .os.s2 { animation-delay: .3s; }
@keyframes ornExhaust { 0%, 70% { opacity: 0; transform: scale(.3); } 76% { opacity: .9; } 100% { opacity: 0; transform: translate(0, calc(var(--s) * 1.4)) scale(2); } }
.orn .of { left: 28%; top: 78%; font-size: calc(var(--s) * .45); opacity: 0; transform-origin: 50% 0; animation: ornFlame 11s ease-in infinite; }
@keyframes ornFlame { 0%, 70% { opacity: 0; transform: scale(.4); } 74% { opacity: 1; transform: scale(1.1) translateY(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4) translateY(calc(var(--s) * -3.8)); } }
/* dragon fire */
.orn .ob { left: -26%; top: 14%; font-size: calc(var(--s) * .4); opacity: 0; transform: rotate(-90deg); animation: ornBreath 5s ease-out infinite; }
@keyframes ornBreath { 0%, 55% { opacity: 0; transform: rotate(-90deg) scale(.3); } 62% { opacity: 1; transform: rotate(-90deg) scale(1.3) translateY(-6px); } 75% { opacity: .8; transform: rotate(-90deg) scale(1.9) translateY(-14px); } 85%, 100% { opacity: 0; transform: rotate(-90deg) scale(2.2) translateY(-20px); } }
/* sparkles and hearts */
.orn .ok { font-size: calc(var(--s) * .2); opacity: 0; animation: ornTwinkle 2.4s ease-in-out infinite; }
.orn .ok.k1 { left: 8%; top: 10%; } .orn .ok.k2 { right: 6%; top: 30%; animation-delay: .8s; } .orn .ok.k3 { left: 40%; top: -6%; animation-delay: 1.6s; }
@keyframes ornTwinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(40deg); } }
.orn .oh { font-size: calc(var(--s) * .22); opacity: 0; left: 40%; top: 20%; animation: ornHeart 3s ease-out infinite; }
.orn .oh.h2 { left: 20%; animation-delay: 1s; } .orn .oh.h3 { left: 62%; animation-delay: 2s; }
@keyframes ornHeart { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(var(--s) * -.7)) scale(1.1); } }
.orn .om { left: 10%; right: 10%; bottom: 8%; height: 26%; border-radius: 50%; background: radial-gradient(ellipse, #c4b5fdaa, transparent 70%); animation: ornMist 5s ease-in-out infinite; }
.orn .om.m2 { animation-delay: 2.5s; bottom: 24%; }
@keyframes ornMist { 0%, 100% { transform: translateX(-8%) scale(.9); opacity: .3; } 50% { transform: translateX(8%) scale(1.15); opacity: .85; } }
body.lowfx .orn *, body.lowfx .orn { animation: none !important; }
body.lowfx .orn i { display: none; }
@media (max-width: 640px) { #decor { font-size: 0; left: 0; } }

/* Bloomerz Farm Plus */
.plus{font-weight:900;font-size:1.15em;margin-left:2px;vertical-align:.3em;line-height:1;background:linear-gradient(90deg,#fde047,#f59e0b,#fde047);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:plusSh 2.2s linear infinite;filter:drop-shadow(0 0 3px #f59e0b88)}
@keyframes plusSh{to{background-position:-200% 0}}
.lowfx .plus{animation:none}
.plusbox{border:1px solid #f5c54266;background:linear-gradient(135deg,#f5c54212,transparent);border-radius:12px;padding:12px;margin:10px 0}
.plushead{display:flex;gap:12px;align-items:center;margin-bottom:6px}
.plusbig{font-size:38px;font-weight:900;line-height:1;background:linear-gradient(90deg,#fde047,#f59e0b,#fde047);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:plusSh 2.2s linear infinite}
.plusok{color:#facc15;font-weight:700}
.plusperks{margin:6px 0 8px;padding-left:18px;line-height:1.5}
#chatShow{opacity:.45;transition:opacity .15s}
#chatShow:hover,#chatShow:focus-visible,#chatShow:active{opacity:1}
.plusbox .row{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
/* pets: bottom right, stacked downwards, hover card says what each one does */
#petrow{top:auto!important;bottom:12px;max-height:calc(var(--sh,560px) - 60px);justify-content:flex-start}
.petw{cursor:help}
#pettipcard{display:none;position:fixed;z-index:200;width:220px;background:#0b1220f2;color:#e8f0ff;border:1px solid #ffffff33;border-radius:10px;padding:8px 10px;font-size:12px;line-height:1.45;box-shadow:0 6px 18px #000a;pointer-events:none}
#pettipcard small{font-size:12px}
@media (max-width:640px){#petrow{bottom:6px}#pettipcard{width:180px;font-size:11px}}

/* zoom controls for the growing area */
#zoombar{position:absolute;left:10px;bottom:10px;z-index:6;display:flex;gap:4px;align-items:center;background:#0b1220b3;border:1px solid #ffffff2a;border-radius:10px;padding:3px}
#zoombar button{min-width:30px;height:28px;border:0;border-radius:7px;background:#ffffff1f;color:#fff;font-size:17px;font-weight:700;cursor:pointer;padding:0 6px;line-height:1}
#zoombar button#zlvl{font-size:12px;min-width:46px;font-weight:600}
#zoombar button:hover{background:#ffffff40}
#gscene{cursor:grab}#gscene .tile{cursor:pointer}
#zoombar.locked button:not(#zlock){opacity:.4;cursor:not-allowed}#zoombar.locked{border-color:#facc1588}
#gscene.zlocked{cursor:default}
/* zoom controls: bottom right of the garden, pets sit just above */
#zoombar{left:auto;right:10px}
#petrow{bottom:54px!important;max-height:calc(var(--sh,560px) - 100px)}
@media (max-width:640px){#zoombar{right:6px;bottom:6px}#petrow{bottom:48px!important}}

/* boss intro: a big full-screen banner with lightning */
.bossintro{position:fixed;inset:0;z-index:400;pointer-events:none;display:grid;place-items:center;background:radial-gradient(ellipse at center,#1a0030cc 0%,#05000fe6 80%);animation:biIn .25s ease-out;overflow:hidden}
.bossintro.out{animation:biOut .5s ease-in forwards}
@keyframes biIn{from{opacity:0}to{opacity:1}}@keyframes biOut{to{opacity:0}}
.bi-flash{position:absolute;inset:0;background:#fff;opacity:0;animation:biFlash 3s linear forwards}
@keyframes biFlash{0%{opacity:.95}4%{opacity:0}12%{opacity:.8}16%{opacity:.05}22%{opacity:0}38%{opacity:.9}42%{opacity:0}46%{opacity:.6}50%{opacity:0}64%{opacity:.85}68%{opacity:0}78%{opacity:.5}82%{opacity:0}100%{opacity:0}}
.bi-bolts i{position:absolute;top:-6%;font-style:normal;font-size:min(46vh,380px);opacity:0;filter:drop-shadow(0 0 18px #a5b4fc) drop-shadow(0 0 40px #fde047);animation:biBolt 3s linear forwards}
.bi-bolts .b1{left:4%;animation-delay:0s}.bi-bolts .b2{right:6%;animation-delay:.55s}.bi-bolts .b3{left:34%;animation-delay:1.2s;font-size:min(56vh,460px)}.bi-bolts .b4{right:28%;animation-delay:1.9s}
@keyframes biBolt{0%{opacity:0;transform:scale(.8) rotate(-6deg)}3%{opacity:1}12%{opacity:0}16%{opacity:.9}24%{opacity:0}100%{opacity:0}}
.bi-text{position:relative;text-align:center;color:#fff;animation:biShake .12s linear 0s 12,biPop .5s cubic-bezier(.2,1.6,.4,1)}
.bi-text small{display:block;font-size:clamp(14px,2.4vw,26px);letter-spacing:.25em;color:#fde047;text-shadow:0 0 12px #f59e0b;font-weight:800}
.bi-text b{display:block;font-size:clamp(44px,11vw,150px);line-height:1;font-weight:900;text-transform:uppercase;color:#fff;-webkit-text-stroke:2px #7c3aed;text-shadow:0 0 18px #a78bfa,0 0 50px #7c3aed,0 6px 0 #3b0764;margin:6px 0 14px}
.bi-emoji{font-size:clamp(70px,16vw,200px);line-height:1;filter:drop-shadow(0 0 24px #c4b5fd)}
@keyframes biShake{0%,100%{transform:translate(0,0)}25%{transform:translate(-5px,3px)}50%{transform:translate(4px,-4px)}75%{transform:translate(-3px,-2px)}}
@keyframes biPop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
.lowfx .bi-flash,.lowfx .bi-bolts{display:none}.lowfx .bi-text{animation:none}
@media (prefers-reduced-motion:reduce){.bi-flash{animation-duration:3s;opacity:0;animation:none}.bi-text{animation:none}}
#gbanner{margin:10px 0 0}

/* Garden / Greenhouse switch: top centre of the play screen, faded until hovered */
#ghsw{position:absolute;left:50%;top:10px;transform:translateX(-50%);z-index:7;display:flex;gap:4px;padding:3px;border-radius:12px;background:#0b1220aa;border:1px solid #ffffff2a;opacity:.4;transition:opacity .15s}
#ghsw:empty{display:none}
#ghsw:hover,#ghsw:focus-within{opacity:1}
#ghsw button{border:0;border-radius:9px;padding:6px 12px;background:#ffffff1f;color:#fff;font-weight:600;font-size:14px;cursor:pointer;font-family:inherit}
#ghsw button:hover{background:#ffffff40}
#ghsw button.on{background:var(--accent2,#4ade80);color:#05260f;font-weight:800}
@media (max-width:640px){#ghsw button{padding:5px 9px;font-size:13px}}
#fog{display:none!important}

/* harvest / sell (bottom centre) and expand (bottom right) sit on the play screen, faded until hovered */
#gactc,#gactr{position:absolute;bottom:10px;z-index:7;display:flex;gap:8px;opacity:.4;transition:opacity .15s}
#gactc{left:50%;transform:translateX(-50%)}
#gactr{right:10px}
#gactc:empty,#gactr:empty{display:none}
#gactc:hover,#gactr:hover,#gactc:focus-within,#gactr:focus-within{opacity:1}
#gactc .btn,#gactr .btn{box-shadow:0 2px 10px #0008}
#zoombar{right:auto;left:10px}
#petrow{bottom:54px!important}
@media (max-width:640px){#gactc,#gactr{bottom:6px;gap:5px}#gactc .btn,#gactr .btn{padding:6px 8px;font-size:13px}#zoombar{left:6px;bottom:50px}#gactr{right:6px}}
@media (max-width:640px){#gactc .btn,#gactr .btn{white-space:nowrap;padding:5px 7px;font-size:12px}#gactc,#gactr{gap:4px}#zoombar{opacity:.55}#zoombar:hover{opacity:1}}
@media (max-width:640px){#gactr{bottom:44px}#zoombar{bottom:44px}}

/* Login page: sign-in box with the About section */
#login.overlay { align-items: flex-start; overflow-y: auto; }
.loginwrap { display: flex; gap: 22px; align-items: flex-start; justify-content: center; flex-wrap: wrap; width: min(1180px, 100%); margin: auto; padding: 8px 0 30px; }
.loginwrap .loginbox { flex: 0 0 min(420px, 100%); position: sticky; top: 8px; }
@media (max-width: 960px) { .loginwrap .loginbox { position: static; } }
.about { flex: 1 1 520px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-sizing: border-box; }
.about h2 { margin: 0 0 8px; font-size: 24px; }
.about .lead { margin: 0 0 14px; line-height: 1.5; }
.afeat { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.afeat > div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.afeat h3 { margin: 0 0 6px; font-size: 16px; }
.afeat ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--text); }
.afeat li { margin: 3px 0; }
.about .anote { margin: 14px 0 0; font-size: 13px; }
@media (max-width: 760px) { .about { padding: 16px; } .afeat { grid-template-columns: 1fr; } }

.xpchip { gap: 6px; }
.xpbar { display: inline-block; width: 44px; height: 6px; background: #0007; border-radius: 3px; overflow: hidden; vertical-align: middle; margin-left: 6px; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #fde68a, #f59e0b); }
.lvtag { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 8px; background: #f59e0b33; color: #fbbf24; vertical-align: middle; }

.lvlup{position:fixed;inset:0;z-index:410;pointer-events:auto;cursor:pointer;display:grid;place-items:center;background:radial-gradient(ellipse at center,#2a1a00dd 0%,#080400f0 80%);animation:biIn .25s ease-out;overflow:hidden}
.lvlup.out{animation:biOut .5s ease-in forwards}
.lv-flash{position:absolute;inset:0;background:#fff;opacity:0}
.lvlup.full .lv-flash,.lvlup.flip .lv-flash{animation:lvFlash .6s ease-out}
@keyframes lvFlash{0%{opacity:.7}100%{opacity:0}}
.lv-box{position:relative;text-align:center;width:min(86vw,520px);color:#fde68a;animation:lvIn .5s cubic-bezier(.2,1.4,.4,1)}
@keyframes lvIn{from{transform:scale(.3);opacity:0}}
.lv-top{display:block;font-size:clamp(18px,4.5vw,28px);letter-spacing:.35em;font-weight:800;text-shadow:0 0 18px #f59e0b}
.lv-num{position:relative;height:clamp(110px,26vw,170px);font-size:clamp(90px,22vw,150px);font-weight:900;line-height:1;margin:6px 0;text-shadow:0 0 30px #f59e0b,0 4px 0 #92400e}
.lv-num span{position:absolute;left:0;right:0;top:0}
.lv-new{opacity:0;transform:translateY(60%) scale(.4)}
.lvlup.flip .lv-old{animation:lvOld .45s ease-in forwards}
.lvlup.flip .lv-new{animation:lvNew .7s .3s cubic-bezier(.2,1.6,.4,1) forwards;color:#fff}
@keyframes lvOld{to{opacity:0;transform:translateY(-70%) scale(.5)}}
@keyframes lvNew{to{opacity:1;transform:none}}
.lv-stars{position:absolute;left:50%;top:50%}
.lv-stars i{position:absolute;font-style:normal;font-size:26px;opacity:0}
.lvlup.flip .lv-stars i{animation:lvStar 1.3s var(--t) ease-out forwards}
@keyframes lvStar{0%{opacity:1;transform:rotate(var(--a)) translateX(0) scale(.4)}100%{opacity:0;transform:rotate(var(--a)) translateX(var(--d)) scale(1.3)}}
.lv-bar{height:22px;background:#0008;border:2px solid #f59e0b88;border-radius:12px;overflow:hidden}
.lv-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#fde68a,#f59e0b,#fb923c);box-shadow:0 0 14px #f59e0b}
.lvlup.full .lv-bar{animation:lvPulse .5s}
@keyframes lvPulse{50%{transform:scale(1.06);filter:brightness(1.6)}}
.lv-xp{margin-top:8px;font-size:18px;color:#fff}.lv-xp b{font-size:24px;color:#fde68a}
.lv-sub{display:block;margin-top:14px;min-height:20px;color:#fde68a;font-size:16px;animation:fadeIn .4s}
[data-wx="fireworks"] #fxtint { background: #0a0f3a55; }
[data-wx="bonfiresmoke"] #fxtint { background: linear-gradient(to top, #ff5a1a55, #1a0b2e22); }
.lv-hint{display:block;margin-top:18px;font-size:12px;color:#fde68a99;letter-spacing:.08em;text-transform:uppercase}

/* Country Flag decoration: pole in the ground, waving flag */
.orn .flagwrap { filter: drop-shadow(0 3px 2px #0005); }
.orn .fpole { left: 22%; bottom: 3%; width: 4%; min-width: 2px; height: 94%; background: linear-gradient(90deg, #8a8f98, #f1f3f6 45%, #6d727b); border-radius: 2px; }
.orn .fball { left: calc(24% - 2.5%); top: -1%; width: 8.5%; height: 8.5%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #d9a520); }
.orn .fcloth { left: 26%; top: 6%; width: 64%; height: 42%; background-size: 100% 100%; background-repeat: no-repeat; border-radius: 1px; box-shadow: 0 0 0 1px #0002; transform-origin: 0 50%; animation: flagWave 2.4s ease-in-out infinite; }
.orn .fcloth::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #fff0 0%, #fff3 22%, #0002 40%, #fff3 58%, #0001 78%, #fff0 100%); background-size: 200% 100%; animation: flagSheen 2.4s linear infinite; }
.orn.fx-still::after { content: ""; position: absolute; left: 12%; width: 24%; bottom: -3%; height: 9%; border-radius: 50%; background: radial-gradient(ellipse, #5a3c22, #3d2816 70%, transparent 72%); }
.orn.fx-still .oe { animation: none; }
@keyframes flagWave { 0%,100% { transform: skewY(-3deg) scaleX(1); } 25% { transform: skewY(2deg) scaleX(.95); } 50% { transform: skewY(-2deg) scaleX(1.02); } 75% { transform: skewY(3deg) scaleX(.96); } }
@keyframes flagSheen { from { background-position: 0 0; } to { background-position: -200% 0; } }
.fpq { width: 100%; box-sizing: border-box; margin: 6px 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line, #345); background: #0b140f; color: inherit; font-size: 15px; }
.fplist { max-height: 46vh; overflow: auto; display: grid; gap: 4px; margin: 6px 0 10px; }
.fprow { display: flex; align-items: center; gap: 10px; text-align: left; padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; background: #ffffff0d; color: inherit; font-size: 15px; cursor: pointer; }
.fprow:hover { background: #ffffff1c; } .fprow.sel { border-color: #f5c542; background: #f5c54226; }
.fimg { width: 30px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px #0003; vertical-align: middle; display: inline-block; font-size: 11px; text-align: center; line-height: 20px; }

/* Notice board: wooden board on the ground at the left of the garden */
#gground { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.gobj { position: absolute; left: calc(1600px + var(--ux) * var(--tile)); top: calc(var(--y0) + var(--uy) * var(--tile)); width: 0; height: 0; transform-style: preserve-3d; }
.gobj > * { position: absolute; left: 0; bottom: 0; transform: translateX(-50%) rotateX(calc(var(--tilt) * -1)) translateY(calc(var(--h, 0) * var(--tile) * -1)) scaleX(var(--f, 1)); transform-origin: 50% 100%; }
.gobj > .gshadow { width: calc(var(--tile) * .9 * var(--k, 1)); height: calc(var(--tile) * .45 * var(--k, 1)); border-radius: 50%; background: radial-gradient(ellipse, #0007, transparent 70%); transform: translateX(-50%) translateY(50%); pointer-events: none; }
.gobj .nbwrap { width: calc(var(--tile) * 1.25 * var(--k, 1)); pointer-events: auto; }
.gobj .orn { position: absolute; width: var(--s); height: var(--s); left: 0; pointer-events: auto; }
#gscene.placing { cursor: crosshair; }
#placebar { opacity: .6; font-size: 13px; flex-wrap: nowrap !important; padding: 5px 10px !important; top: 4px !important; position: absolute; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100% - 16px); gap: 8px 12px; align-items: center; background: #0d1a1270; border: 1px solid #f5c542; border-radius: 12px; padding: 8px 12px; font-size: 14px; max-width: 94%; }
.nbwrap { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; transition: transform .15s; }
.nbwrap:hover { transform: scale(1.06) rotate(-1deg); }
.nb { position: relative; display: block; width: 100%; aspect-ratio: 1 / .92; filter: drop-shadow(0 4px 3px #0007); }
.nb::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -6%; height: 12%; border-radius: 50%; background: radial-gradient(ellipse, #3d2816, #5a3c22aa 60%, transparent 72%); }
.nbp { position: absolute; bottom: 0; width: 9%; height: 44%; background: linear-gradient(90deg, #6b4423, #8a5a30 50%, #5a3a1c); border-radius: 2px 2px 0 0; z-index: 0; }
.nbp.l { left: 16%; } .nbp.r { right: 16%; }
.nbb { position: absolute; left: 0; right: 0; top: 0; height: 68%; border-radius: 5px; border: 2px solid #4a2d14; z-index: 1;
  background: repeating-linear-gradient(0deg, #b9824a 0 22%, #9c6b3a 22% 24%), #b9824a; box-shadow: inset 0 0 0 2px #d9a76a55, inset 0 -4px 6px #0003; }
.nbh { position: absolute; left: 0; right: 0; top: 4%; text-align: center; font: 800 clamp(6px, 1.1vw, 9px)/1 system-ui, sans-serif; letter-spacing: .12em; color: #3b230f; text-shadow: 0 1px 0 #e5c08f88; }
.nbpaper { position: absolute; left: 14%; right: 14%; top: 16%; bottom: 14%; background: #fdf6dc; border-radius: 2px; transform: rotate(-2deg); box-shadow: 0 1px 2px #0005; }
.nbpaper.has { background: repeating-linear-gradient(0deg, #fdf6dc 0 4px, #6a5a3a77 4px 5px), #fdf6dc; }
.nbpin { position: absolute; left: 47%; top: 8%; width: 9%; height: 11%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a8a, #c0262d); box-shadow: 0 1px 2px #0007; }
.nbread { margin: 10px 0 14px; padding: 16px; border-radius: 10px; font-size: 17px; line-height: 1.4; color: #3b230f; word-break: break-word; background: repeating-linear-gradient(0deg, #fdf6dc 0 22px, #c9b98e 22px 23px), #fdf6dc; border: 3px solid #8a5a30; }
.orn .nb { position: absolute; inset: 8% 0 0 0; width: auto; }
.gobj .nbwrap:hover { transform: translateX(-50%) rotateX(calc(var(--tilt) * -1)) translateY(calc(var(--h, 0) * var(--tile) * -1)) scaleX(var(--f, 1)) scale(1.06); }
.gobj.moving { pointer-events: none; z-index: 30; }
.gobj.moving > * { pointer-events: none; opacity: .85; filter: drop-shadow(0 0 8px #ffe27a) drop-shadow(0 0 2px #fff); }
#placebar .pbk { display: flex; align-items: center; gap: 6px; } #placebar input[type=range] { width: 120px; } #placebar .pbl { min-width: 42px; text-align: center; font-weight: 700; } #placebar:hover { opacity: .95; }

.stepper { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; } .stepper b { min-width: 44px; text-align: center; }
.flagown { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 4px 0; } .flagown .fo { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 8px; background: #ffffff10; font-size: 12px; } .flagown .fo.on { background: #4ade8022; } .flagown .fo span { flex: 1; text-align: left; } .flagown .fo img, .flagown .fo svg { height: 16px; }

/* Legendary (gold), Mythical (pink) and Divine (purple) seeds shine and glimmer in the shop */
.card.shiny { position: relative; overflow: hidden; border-color: var(--rc); border-width: 2px; border-top-width: 4px; animation: shinePulse 2.6s ease-in-out infinite; }
.card.shiny.rar-legendary { --gl: #fbbf24; background: linear-gradient(160deg, #fbbf2433, #3a2a06 55%, #fbbf2422), var(--panel); }
.card.shiny.rar-mythical { --gl: #f472b6; background: linear-gradient(160deg, #f472b633, #3b1030 55%, #f472b622), var(--panel); }
.card.shiny.rar-divine { --gl: #c084fc; background: linear-gradient(160deg, #c084fc33, #26104a 55%, #c084fc22), var(--panel); }
.card.shiny.rar-limited { --gl: #ef4444; background: linear-gradient(160deg, #ef444440, #3f0d12 55%, #ef444428), var(--panel); }
.card.shiny::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; pointer-events: none; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, #ffffff55, transparent); animation: shineSweep 3.4s ease-in-out infinite; }
.card.shiny::before { content: '✦'; position: absolute; top: 8px; right: 10px; color: #fff; font-size: 14px; text-shadow: 0 0 8px var(--gl), 0 0 14px var(--gl); animation: shineTwinkle 1.8s ease-in-out infinite; pointer-events: none; }
.card.shiny.rar-divine::before { content: '✧'; animation-delay: .6s; }
.card.shiny .em { filter: drop-shadow(0 0 8px var(--gl)); }
@keyframes shinePulse { 0%, 100% { box-shadow: 0 0 6px var(--gl), inset 0 0 10px #ffffff10; } 50% { box-shadow: 0 0 18px var(--gl), 0 0 30px color-mix(in srgb, var(--gl) 50%, transparent), inset 0 0 18px #ffffff22; } }
@keyframes shineSweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes shineTwinkle { 0%, 100% { opacity: .35; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.25) rotate(25deg); } }
@media (prefers-reduced-motion: reduce) { .card.shiny, .card.shiny::after, .card.shiny::before { animation: none; } .card.shiny { box-shadow: 0 0 12px var(--gl); } }

.si { height: 1.05em; width: 1.05em; object-fit: contain; vertical-align: -0.15em; display: inline-block; pointer-events: none; user-select: none; }
.tile .crop .si { height: 1em; width: 1em; vertical-align: top; }

.copyright { flex: none; text-align: center; font-size: 11px; color: var(--muted); opacity: .75; padding: 6px 10px; background: var(--panel2); border-top: 1px solid var(--line); }
#login .copyright { background: none; border: none; padding: 14px 10px 24px; }

.slot.rar { border-color: var(--rc); background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 28%, transparent), color-mix(in srgb, var(--rc) 6%, transparent)), var(--panel); box-shadow: 0 0 6px color-mix(in srgb, var(--rc) 40%, transparent); }
.slot.rar.sel { border-color: #fff; box-shadow: 0 0 0 2px var(--rc), 0 0 14px var(--rc); }

/* ---- Full screen farm (F): garden fills the window, menus on top, hotbar below, panels open over the farm ---- */
#fspanel, #fsmenu { display: none; }
body.fs { overflow: hidden; }
body.fs #top { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 46px; padding: 0 10px; background: linear-gradient(#0b1220f5, #0b1220d0); border-bottom: 2px solid #ffffff22; overflow: visible; }
body.fs #top .logo { font-size: 16px; margin-right: 4px; }
body.fs #top .logo small { display: none; }
body.fs #fsmenu { display: flex; gap: 4px; flex: none; }
body.fs #fschips { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
body.fs #fschips::-webkit-scrollbar { display: none; }
.fsm { position: relative; padding: 7px 12px; border-radius: 9px; border: 0; background: #ffffff14; color: #fff; font: 700 13px/1 inherit; cursor: pointer; white-space: nowrap; }
.fsm:hover, .fsg:hover .fsm, .fsg:focus-within .fsm { background: #ffffff2a; }
.fsm.on { background: #22c55e; color: #04210f; }
.fsm i { position: absolute; right: -4px; top: -6px; background: #ef4444; color: #fff; border-radius: 99px; font-size: 10px; padding: 1px 5px; font-style: normal; }
.fsg { position: relative; }
.fsdd { display: none; position: absolute; left: 0; top: 100%; padding-top: 6px; min-width: 200px; z-index: 70; }
.fsg:hover .fsdd, .fsg:focus-within .fsdd { display: block; }
.fsdd::before { content: ""; position: absolute; inset: 6px 0 0 0; background: #0b1220f7; border: 2px solid #ffffff33; border-radius: 10px; box-shadow: 0 10px 28px #000a; z-index: -1; }
.fsi { display: flex; justify-content: space-between; align-items: center; width: calc(100% - 12px); margin: 6px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #fff; font: 700 14px/1 inherit; cursor: pointer; text-align: left; position: relative; }
.fsi + .fsi { margin-top: 0; }
.fsi:hover { background: #ffffff1f; }
.fsi.on { background: #22c55e; color: #04210f; }
.fsi kbd { font: 700 11px inherit; background: #ffffff22; border-radius: 5px; padding: 2px 6px; margin-left: 14px; }
.fsi.on kbd { background: #0002; }
body.fs #layout { position: fixed; left: 0; right: 0; top: 46px; bottom: 0; display: block; z-index: 1; }
body.fs #center { position: absolute; inset: 0; display: block; }
body.fs #tabs, body.fs .copyright, body.fs #chatToggle { display: none; }
body.fs #view { position: absolute; inset: 0; padding: 0; overflow: hidden; background: #000; }
body.fs #gscene { border-radius: 0; height: 100% !important; box-shadow: none; }
body.fs #gbanner { position: fixed; top: 104px; left: 360px; z-index: 20; width: min(560px, calc(100vw - 380px)); font-size: 13px; }
body.fs #gbar { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 30; margin: 0; padding: 8px 8px 6px; background: #0b1220d9; border: 3px solid #ffffff44; border-radius: 14px; max-width: min(96vw, 900px); display: block; }
body.fs #gbar .slots { flex-wrap: nowrap; overflow-x: auto; gap: 5px; padding-top: 6px; scrollbar-width: thin; }
body.fs #gbar .slot { width: 64px; height: 72px; flex: none; }
body.fs #gbar .slot kbd { font-size: 12px; color: #fff; opacity: .95; font-weight: 800; }
body.fs #gactc { bottom: 106px; }
body.fs #gactr { bottom: 14px; }
body.fs #zoombar { bottom: 14px; }
/* chat: a see-through box at the top left (Global and Guild) */
body.fs #side { position: fixed; left: 12px; top: 56px; bottom: auto; width: 320px; height: 210px; z-index: 25; transform: none; background: #0b122080; border: 1px solid #ffffff2e; border-radius: 12px; overflow: hidden; backdrop-filter: blur(2px); transition: background .15s; }
body.fs #side:hover, body.fs #side:focus-within { background: #0b1220d0; }
body.fs #side .sidehead, body.fs #online { display: none; }
body.fs #chanbar { padding: 6px 8px 2px; }
body.fs #log { font-size: 12.5px; padding: 2px 10px; }
body.fs #chatform { padding: 6px; background: #0000002a; }
body.fs #chatform input { opacity: .85; padding: 5px 8px; }
body.fs #layout.nochat #side { display: none; }
body.fs #petrow { top: 14px !important; bottom: auto !important; }
body.fs.fspanel #fspanel { display: flex; position: fixed; inset: 46px 0 104px 0; z-index: 40; background: #02061066; align-items: flex-start; justify-content: center; padding: 14px; }
.fsbox { width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; background: #0f1a2bf5; border: 3px solid #ffffff33; border-radius: 16px; box-shadow: 0 20px 60px #000a; overflow: hidden; }
.fshead { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fshead h3 { margin: 0; font-size: 20px; }
#fsview { overflow-y: auto; padding: 12px; flex: 1; min-height: 0; }
@media (max-width: 760px) { body.fs .fsm { padding: 6px 8px; font-size: 12px; } body.fs #side { width: 250px; height: 150px; } }

/* hotbar editing (Bag open in full screen) */
.slot.empty { background: #ffffff0a; border-style: dashed; opacity: .75; }
.slot.empty kbd { position: absolute; left: 4px; top: 1px; font-size: 12px; color: #fff; opacity: .6; }
.slot.ghost { opacity: .45; filter: grayscale(.6); }
body.fsbag #gbar { border-color: #22c55e; box-shadow: 0 0 0 3px #22c55e55, 0 8px 30px #000a; }
body.fsbag #gbar .slot { cursor: grab; }
.slot.dropt { outline: 3px dashed #22c55e; outline-offset: 2px; transform: translateY(-4px) scale(1.05); }
body.fsbag #fsview [draggable=true] { cursor: grab; }
.hothint { background: #14532d66; border: 1px solid #22c55e88; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px; }

/* second hotbar section and compact Bag tiles */
.hgap { flex: none; width: 14px; align-self: stretch; margin: 0 3px; border-left: 2px dashed #ffffff40; }
.slot.sp { border-style: solid; border-color: #a3e63588; background: linear-gradient(180deg, #a3e63522, #a3e63508), var(--panel); }
.slot.gearslot { border-color: #a855f788; background: linear-gradient(180deg, #a855f722, #a855f708), var(--panel); }
.slot.empty.sp { border-style: dashed; }
body.hotdrag[data-hd=sp] #gbar .slot:not(.sp), body.hotdrag[data-hd=sd] #gbar .slot.sp { opacity: .35; }
.btiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-bottom: 8px; }
.btile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px 4px; border-radius: 10px; border: 2px solid var(--rc, #2b3c58); background: linear-gradient(180deg, color-mix(in srgb, var(--rc, #2b3c58) 22%, transparent), color-mix(in srgb, var(--rc, #2b3c58) 5%, transparent)), var(--panel); cursor: pointer; user-select: none; text-align: center; }
.btile:hover { box-shadow: 0 0 10px color-mix(in srgb, var(--rc, #2b3c58) 60%, transparent); transform: translateY(-1px); }
.btile.onbar { outline: 2px solid #22c55e88; outline-offset: -1px; }
.btile .bi { font-size: 26px; line-height: 1; height: 34px; display: flex; align-items: center; justify-content: center; }
.btile .bi img { width: 34px; height: 34px; object-fit: contain; }
.btile b { font-size: 11px; line-height: 1.15; font-weight: 700; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.3em; }
.btile small { font-size: 11px; color: var(--muted); }
.btile .lk { position: absolute; right: 2px; top: 2px; border: 0; background: #0006; border-radius: 6px; padding: 1px 4px; font-size: 11px; cursor: pointer; color: #fff; }
.btile .lk.on { background: #b4881c; }
.btile .lk.use { background: #22c55e; color: #04210f; font-weight: 800; }

/* full screen hotbar: no box behind it, just see-through slots */
body.fs #gbar { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0; max-width: 98vw; }
body.fs #gbar .slots { overflow: visible; flex-wrap: nowrap; padding-top: 8px; }
body.fs #gbar .slot { background: linear-gradient(180deg, color-mix(in srgb, var(--rc, #ffffff) 16%, transparent), color-mix(in srgb, var(--rc, #ffffff) 3%, transparent)), #0b122052; box-shadow: none; }
body.fs #gbar .slot.sp { background: #0b122052; }
body.fs #gbar .slot.empty { background: #0b122030; }
body.fs #gbar .slot .nm, body.fs #gbar .slot em, body.fs #gbar .slot kbd { text-shadow: 0 1px 3px #000, 0 0 4px #000; }
body.fs #gbar .slot .nm { font-size: 10px; }
body.fs #gbar .slot.sel { background: linear-gradient(180deg, color-mix(in srgb, var(--rc, #ffffff) 28%, transparent), color-mix(in srgb, var(--rc, #ffffff) 8%, transparent)), #0b122070; box-shadow: 0 0 0 2px var(--rc, #fff), 0 0 14px var(--rc, #fff); }
body.fsbag #gbar { box-shadow: none !important; border: 0 !important; }
body.fsbag #gbar .slot { outline: 2px dashed #22c55e99; outline-offset: 1px; }
body.fs .hgap { border-left-color: #ffffff55; }
body.fs #gbar .slot em { top: 2px; bottom: auto; right: 5px; }
body.fs .ev-banner { display: none; }

/* full screen top bar: round status icons, with a timer that slides in for the last 30 seconds */
body.fs #fschips { overflow: visible; }
body.fs #top .logo { margin-right: 2px; font-size: 20px; }
.fic { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #0009; border: 1px solid #ffffff33; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; padding: 0; font-family: inherit; }
.fic.click { cursor: pointer; }
.fic.click:hover { background: #ffffff2a; }
.fic.buff { border-color: #a855f7; }
.fic svg { width: 20px; height: 20px; }
.fic .icb { position: absolute; right: -5px; bottom: -5px; background: #000d; border: 1px solid #ffffff33; border-radius: 7px; font: 800 9px/1.2 inherit; font-style: normal; padding: 1px 4px; }
.fic .ictm { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); background: #000d; border: 1px solid #fde68a99; border-radius: 7px; padding: 1px 7px; font: 800 12px/1.3 inherit; font-style: normal; color: #fde68a; white-space: nowrap; z-index: 65; animation: ictm .5s ease-out; }
@keyframes ictm { from { opacity: 0; transform: translate(-50%, -6px); } }
.fic .ictip { display: none; position: absolute; top: calc(100% + 6px); right: -4px; background: #0b1220f7; border: 2px solid #ffffff33; border-radius: 9px; padding: 6px 10px; font: 700 12px/1.3 inherit; white-space: nowrap; z-index: 70; box-shadow: 0 8px 22px #000a; }
.fic:hover .ictip { display: block; }
.fic:hover .ictm { display: none; }
.fscog .fsdd { left: auto; right: 0; }
body.fs #top .chip.money, body.fs #top .xpchip { padding: 4px 10px; font-size: 13px; }

/* status icons: a column down the right of the farm, shown as small round icons; the name and timer pop out to the left on hover, and a timer shows by itself for its last 30 seconds */
#fsstatus { display: none; }
body.fs #fsstatus { display: flex; flex-direction: column; gap: 7px; position: fixed; right: 10px; top: 56px; z-index: 55; }
#fsstatus .fic { background: #0b1220aa; }
#fsstatus .fic .ictm { top: 50%; left: auto; right: calc(100% + 7px); transform: translateY(-50%); animation: ictm2 .5s ease-out; }
@keyframes ictm2 { from { opacity: 0; transform: translate(8px, -50%); } }
#fsstatus .fic .ictip { top: 50%; right: calc(100% + 7px); transform: translateY(-50%); }
body.fs #petrow { right: 62px; }

/* status icons live in the top bar, pushed to the right with the money and level */
body.fs #fschips { justify-content: flex-end; margin-left: auto; }
body.fs #petrow { right: 10px; }

/* compact panels in full screen: smaller cards and rows so more fits without scrolling */
body.fs .fsbox { width: min(1280px, 100%); }
body.fs .fshead { padding: 6px 12px; }
body.fs .fshead h3 { font-size: 17px; }
body.fs #fsview { padding: 8px 10px; font-size: 13px; }
body.fs #fsview h2 { margin: 8px 0 5px; font-size: 14px; }
body.fs #fsview .sub { margin-bottom: 6px; gap: 5px; }
body.fs #fsview .btn { padding: 5px 10px; font-size: 12.5px; }
body.fs #fsview .btn.small { padding: 3px 8px; font-size: 12px; }
body.fs #fsview .banner { padding: 6px 10px; gap: 8px; margin-bottom: 6px; }
body.fs #fsview .banner h3 { font-size: 14px; }
body.fs #fsview .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 7px; }
body.fs #fsview .card { padding: 7px 8px; gap: 2px; border-radius: 10px; }
body.fs #fsview .card .em { font-size: 28px; }
body.fs #fsview .card .em img, body.fs #fsview .card img.si { width: 34px; height: 34px; }
body.fs #fsview .card b { font-size: 13px; }
body.fs #fsview .card small, body.fs #fsview .card .muted { font-size: 11px; }
body.fs #fsview .card .row { padding-top: 3px; gap: 4px; }
body.fs #fsview .card.wide { margin-bottom: 6px; }
body.fs #fsview .list { gap: 4px; }
body.fs #fsview .rowc { padding: 4px 8px; gap: 8px; border-radius: 9px; }
body.fs #fsview .rowc .em { font-size: 22px; }
body.fs #fsview .rowc .em img { width: 28px; height: 28px; }
body.fs #fsview .grid2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
body.fs #fsview .prog { height: 6px; }
body.fs #fsview .prog.big { height: 10px; margin: 4px 0; }
body.fs #fsview p { margin: 4px 0; }
body.fs #fsview .streak { gap: 4px; margin: 4px 0; }
body.fs #fsview h3 { margin: 0 0 3px; font-size: 14px; }
body.fs #fsview .card.wide { padding: 6px 10px; margin-bottom: 5px; }
body.fs #fsview .sday { padding: 4px 6px; }
body.fs #fsview .sday small { font-size: 10.5px; }
body.fs #fsview .streak { margin: 4px 0; }
body.fs #fsview .cards:has(.locked) { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 5px; }
body.fs #fsview .cards:has(.locked) .card { padding: 5px 6px; }
body.fs #fsview .cards:has(.locked) .card .em { font-size: 22px; }
body.fs #fsview .labrow select { padding: 4px 6px; }
body.fs #fsview .rbgrid { gap: 4px; margin: 4px 0 8px; }
body.fs #fsview .rbgrid .rbcell svg { max-width: 34px; }
body.fs #fsview .list .rowc small { font-size: 11px; }
body.fs #fsview .list { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 5px 8px; align-items: stretch; }
body.fs #fsview .grid2 > .card { margin: 0; }
/* the dimmer behind a full screen panel also covers the strip around the hotbar, but stays under the hotbar itself */
#fsdim { display: none; }
body.fs.fspanel #fsdim { display: block; position: fixed; left: 0; right: 0; bottom: 0; height: 104px; background: #02061066; z-index: 20; pointer-events: none; }
body.fs #fsview .shopcards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
body.fs #ghsw { opacity: .85; }
body.fs #gbanner .sub { margin-bottom: 4px; }
/* full screen boss bar: slim, centred just above the hotbar */
#fsboss { display: none; }
body.fs #fsboss:not(:empty) { display: flex; position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 25; flex-direction: column; align-items: center; pointer-events: none; color: #fff; text-shadow: 0 2px 6px #000a; animation: bsIn .5s ease-out both; }
body.fs #fsboss .fsbn { font-weight: 800; font-size: 15px; margin-bottom: 4px; letter-spacing: .02em; }
body.fs #fsboss .fsbt { position: relative; width: min(420px, 80vw); height: 14px; border-radius: 99px; overflow: hidden; background: #0008; border: 1px solid #ffffff44; }
body.fs #fsboss .fsbt i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(180deg, #fb7185, #ef4444 60%, #b91c1c); overflow: hidden; transition: width .4s; }
body.fs #fsboss .fsbt i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(100deg, transparent, #fff6, transparent); transform: skewX(-20deg); animation: bsSh 2.6s ease-in-out infinite; }
body.fs #fsboss .fsbt span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 11px sans-serif; text-shadow: 0 1px 3px #000; }
body.fs #fsboss .fsbs { font: 600 11px sans-serif; margin-top: 3px; color: #e5e7ebdd; }
body.fs.fsbossup #gactc { bottom: 164px; }
@keyframes bsIn { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes bsSh { to { left: 110%; } }
/* compact Harvest / Sell buttons in full screen */
body.fs #gactc { gap: 5px; bottom: 100px; }
body.fs #gactc .btn { padding: 3px 10px; font-size: 12px; border-radius: 9px; }
body.fs.fsbossup #gactc { bottom: 158px; }
body.fs #fschips .wchip { background: #0009; border-color: #ffffff33; color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
body.fs #fschips .wchip em { font-style: normal; color: #fde68a; margin-left: 4px; }
/* message from Support */
#inboxbox { display: flex; flex-direction: column; gap: 10px; text-align: center; }
#inboxbox .inbq { font-size: 12px; color: var(--muted); font-style: italic; }
#inboxbox .inbm { background: #4ade8018; border: 1px solid #4ade8055; border-radius: 12px; padding: 10px 12px; font-size: 15px; text-align: left; white-space: pre-wrap; word-break: break-word; }
#inboxbox textarea { width: 100%; resize: vertical; border-radius: 10px; border: 1px solid var(--line); background: #0003; color: inherit; padding: 8px; font: inherit; }
/* Quests screen: boss and guild goal on top, daily reward across, all-quests bonus, then the quests 3 x 3 */
.qpage { display: flex; flex-direction: column; gap: 8px; }
.qpage .card.wide, .qpage .card { margin: 0; }
.qtop { display: grid; grid-template-columns: 1fr; gap: 8px; }
.qtop.two { grid-template-columns: 1fr 1fr; }
.qtop .card { display: flex; flex-direction: column; gap: 4px; }
.qtop .card .btn { margin-top: auto; }
.qall .seg { display: flex; gap: 4px; margin: 6px 0; }
.qall .seg i { flex: 1; height: 10px; border-radius: 4px; background: #0007; border: 1px solid #ffffff14; }
.qall .seg i.f { background: linear-gradient(90deg, #fbbf24, #f59e0b); border-color: #fbbf24; }
.qgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qcard.ready { border-color: #fbbf2499; background: linear-gradient(115deg, #ffffff2e 0%, #ffffff12 28%, transparent 29%), #2a24104d; }
@media (max-width: 900px) { .qtop.two { grid-template-columns: 1fr; } .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .qgrid { grid-template-columns: 1fr; } }
body.fs #fsview .qpage { gap: 6px; }
body.fs #fsview .qgrid { gap: 6px; }
body.fs #fsview .qcard { padding: 5px 8px; }
body.fs #fsview .qcard .grow { font-size: 12.5px; line-height: 1.2; }
body.fs #fsview .qtop .card small { font-size: 11px; }
body.fs #fsview .qall small { font-size: 11px; }
body.fs #fsview .qpage .bosshint, body.fs #fsview .qpage .qallx { display: none; }
body.fs #fsview .qpage .sday { padding: 3px 4px; }
body.fs #fsview .qpage .streak { margin: 3px 0 5px; }
body.fs #fsview .qpage .card h3 { margin-bottom: 2px; }
body.fs #fsview .qpage .card.wide { padding: 6px 10px; }
body.fs #fsview .qpage .prog.big { margin: 3px 0; }
@media (max-width: 1500px) { body.fs #fschips .wchip .wn { display: none; } }
body.fs #fsview .qpage .btn { padding: 3px 10px; }
body.fs #fsview .qpage .qall .seg { margin: 3px 0 0; }
body.fs #fsview .qpage .qtop .card { padding: 6px 10px; gap: 2px; }
body.fs #fsview .qpage .qcard { padding: 4px 8px; }
body.fs #fsview .qpage .qcard .prog { margin: 2px 0; }
/* crop boxes (Bag and Market list): details on top, three mutation slots left, Lock / Sell all / Sell 1 right, price bottom right */
.list.crops { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 7px; }
.ctile { position: relative; border: 2px solid var(--rc, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--rc, #1e2f4e) 24%, #14213a), color-mix(in srgb, var(--rc, #1e2f4e) 6%, #14213a) 70%); box-shadow: inset 0 1px 0 #ffffff40, inset 0 -10px 18px #00000030, 0 0 0 1px #0006, 0 0 calc(var(--g, 4) * 1px) color-mix(in srgb, var(--rc, #fff) 40%, transparent); border-radius: 12px; padding: 8px 9px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; gap: 6px 6px; align-items: center; }
.ctop { grid-column: 1; grid-row: 1; display: flex; gap: 7px; align-items: center; min-width: 0; }
.ctop .em { font-size: 24px; flex: none; display: flex; }
.ctop .em img { width: 26px; height: 26px; }
.cinfo { min-width: 0; }
.cname b { font-size: 12px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.cmeta { font-size: 11px; color: var(--muted); }
.cs { grid-column: 1; min-width: 0; }
.cs.c1 { grid-row: 2; } .cs.c2 { grid-row: 3; } .cs.c3 { grid-row: 4; }
.sl { display: inline-block; max-width: 100%; border-radius: 999px; padding: 1px 8px; font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #111; }
.sl.no { background: #0b1426; color: #5f7196; border: 1px dashed #ffffff22; font-weight: 600; }
.sl.more { background: #334155; color: #e2e8f0; cursor: help; }
.cb1, .cb2, .cb3 { grid-column: 2; justify-self: end; }
.cb1 { grid-row: 1; } .cb2 { grid-row: 2; } .cb3 { grid-row: 3; }
.ctile .btn.small { width: 62px; padding: 3px 0; font-size: 11.5px; text-align: center; }
.btn.lck { background: #16a34a33; color: #4ade80; border: 1px solid #22c55e88; }
.btn.unl { background: #dc262633; color: #f87171; border: 1px solid #ef444488; }
.cprice { grid-column: 2; grid-row: 4; justify-self: end; font-weight: 800; color: #fff; font-size: 13px; }
@media (max-width: 560px) { .list.crops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.fs #fsview .list.crops { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
body.fs #fsview .ctile { padding: 6px 8px; gap: 5px 6px; }
body.fs #fsview .list.crops + h2, body.fs #fsview h2 + .list.crops { margin-top: 4px; }
/* small static glass reflection on every crop box (no animation) */
.ctile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, #ffffff38 0%, #ffffff1a 22%, #ffffff00 46%), linear-gradient(180deg, #ffffff2e 0, #ffffff00 14%); }

/* store: glass reflection on every card (static, no animation) */
.card.glass{position:relative;overflow:hidden;background:linear-gradient(160deg,color-mix(in srgb,var(--rc) 16%,var(--panel)),var(--panel) 60%);border:2px solid color-mix(in srgb,var(--rc) 70%,transparent)}
.card.glass::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,#ffffff2e 0%,#ffffff12 28%,transparent 29%)}
.card.glass .btn{position:relative;z-index:2}
.card.glass .packitems{background:#0003;border-radius:8px;padding:8px}
.shsec{margin:16px 0 8px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);display:flex;gap:8px;align-items:center}
.shsec::after{content:'';flex:1;height:1px;background:var(--line)}
.plusbox{position:relative;overflow:hidden}
.plusbox::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,#ffffff22 0%,transparent 30%)}
.plusbox .btn{position:relative;z-index:2}
/* glass reflection on bag tiles and pet slots (static) */
.btile::after, .pslot::after, .slot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, #ffffff2e 0%, #ffffff12 28%, transparent 29%); }
.pslot { position: relative; }

/* recipe book cards (crafting grid) */
.card.rbk { height: 188px; padding: 10px; gap: 0; }
.card.rbk.locked { opacity: 1; filter: none; }
.card.rbk.locked .rbr { opacity: .7; }
.rbg, .rbn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px; align-items: center; }
.rbt { background: #0003; border: 1px solid #ffffff14; border-radius: 10px; height: 54px; display: grid; place-items: center; font-size: 30px; line-height: 1; }
.rbt img.si, .rbi img.si { width: 34px; height: 34px; object-fit: contain; }
.rbi img.si { width: 26px; height: 26px; }
.rbp { font-size: 18px; color: var(--muted); font-weight: 800; }
.rbn { font-size: 10.5px; color: #cbd5e1; text-align: center; margin-top: 3px; }
.rbn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rba { text-align: center; color: var(--muted); font-size: 11px; margin: 2px 0; line-height: 1; }
.rbr { display: flex; gap: 8px; align-items: center; justify-content: center; background: color-mix(in srgb, var(--rc) 22%, #0004); border-radius: 10px; padding: 5px 8px; height: 38px; min-width: 0; }
.rbr .rbi { font-size: 24px; line-height: 1; flex: none; }
.rbr b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rbr b.rbu { color: var(--muted); font-weight: 700; font-style: italic; }
.rbs { text-align: center; margin-top: 5px; min-height: 1.3em; font-size: 11.5px; }
.card.rbk.locked { background: linear-gradient(115deg, #ffffff12 0%, #ffffff08 28%, transparent 29%), var(--panel); }
.card.rbk.locked .rbr { background: #0004; }

/* Lab benches: hidden result until ready, tap to reveal */
.cards.benches { grid-template-columns: repeat(auto-fill, minmax(230px, 280px)); margin-bottom: 8px; }
.card.rbk.bench { height: 178px; }
.card.bench .rbi.bq { filter: grayscale(1) brightness(.75); }
.card.bench.brdy { cursor: pointer; border-color: #fbbf2488; box-shadow: 0 0 0 2px #fbbf2444, 0 0 20px #fbbf2455; animation: benchWob 2.2s ease-in-out infinite; }
.card.bench.brdy .rbr { background: linear-gradient(135deg, #fbbf2433, #0004); border: 1px dashed #fbbf24aa; }
.card.bench.brdy .rbr b { color: #fde68a; }
.card.bench.brdy .rbi { animation: benchPulse 1.2s ease-in-out infinite; }
.card.bench.opening { animation: benchCrack .7s ease-in forwards; }
@keyframes benchWob { 0%, 100% { transform: rotate(0); } 8% { transform: rotate(-1.2deg); } 16% { transform: rotate(1.2deg); } 24% { transform: rotate(0); } }
@keyframes benchPulse { 50% { transform: scale(1.2); } }
@keyframes benchCrack { 0% { transform: scale(1); } 15% { transform: scale(1.04) rotate(-2deg); } 30% { transform: scale(1.04) rotate(2deg); } 45% { transform: scale(1.06) rotate(-3deg); } 60% { transform: scale(1.08) rotate(3deg); filter: brightness(1.5); } 100% { transform: scale(1.12); filter: brightness(3); opacity: .2; } }
/* full-screen reveal */
.brev { position: fixed; inset: 0; z-index: 420; display: grid; place-items: center; overflow: hidden; padding: 24px; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--rc) 35%, #050a12) 0%, #050a12ee 70%); animation: bvFade .35s ease-out; }
.brev.out { animation: bvOut .35s ease-in forwards; }
@keyframes bvFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bvOut { to { opacity: 0; } }
.bv-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: bvFlash .6s ease-out; }
@keyframes bvFlash { 0% { opacity: .9; } 100% { opacity: 0; } }
.bv-rays { position: absolute; left: 50%; top: 44%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 28%, transparent) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 40%); mask: radial-gradient(circle, #000 0, transparent 40%); animation: bvSpin 28s linear infinite; opacity: .8; }
@keyframes bvSpin { to { transform: rotate(360deg); } }
.bv-sp { position: absolute; left: 50%; top: 44%; width: 0; height: 0; }
.bv-sp i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 8px var(--rc); opacity: 0; animation: bvSp 1.6s var(--t) .4s ease-out forwards; transform: rotate(var(--a)) translateX(0); }
.bv-sp i:nth-child(3n) { background: #fff; }
@keyframes bvSp { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) translateY(40px); } }
.bv-card { position: relative; text-align: center; display: grid; gap: 10px; justify-items: center; max-width: 420px; width: 100%; }
.bv-k { letter-spacing: .3em; font-size: 12px; color: #fde68a; text-transform: uppercase; animation: bvUp .5s .5s both; }
.bv-em { font-size: clamp(96px, 22vmin, 170px); line-height: 1; filter: drop-shadow(0 0 26px var(--rc)); animation: bvPop .9s .35s cubic-bezier(.2, 1.5, .4, 1) both; }
.bv-em img.si { width: clamp(96px, 22vmin, 170px); height: clamp(96px, 22vmin, 170px); object-fit: contain; }
@keyframes bvPop { 0% { transform: scale(0) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.25) rotate(6deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.bv-nm { font-size: clamp(26px, 6vmin, 40px); font-weight: 900; text-shadow: 0 0 20px var(--rc); animation: bvUp .5s .85s both; }
.bv-rar { padding: 3px 14px; border-radius: 99px; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #0b1220; background: var(--rc); animation: bvUp .5s 1s both; }
.bv-rc { font-size: 15px; color: #cbd5e1; animation: bvUp .5s 1.1s both; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.bv-rc img.si { width: 22px; height: 22px; }
.bv-st { font-size: 14px; color: var(--muted); animation: bvUp .5s 1.2s both; }
.bv-new { background: #ef4444; color: #fff; font-weight: 800; font-size: 12px; padding: 2px 9px; border-radius: 99px; animation: bvUp .5s 1.1s both; }
.brev .btn { margin-top: 8px; padding: 11px 28px; font-size: 16px; animation: bvUp .5s 1.35s both; }
@keyframes bvUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body.lowfx .card.bench.brdy, body.lowfx .bv-rays { animation: none; }
@media (prefers-reduced-motion: reduce) { .card.bench.brdy, .bv-rays, .card.bench.brdy .rbi { animation: none; } }

/* pet trading cards */
.cards.petcards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pcd { position: relative; overflow: hidden; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--rc) 75%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 14%, var(--panel)), var(--panel) 62%); display: flex; flex-direction: column; }
.pcd::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, #ffffff2e 0%, #ffffff12 28%, transparent 29%); }
.pcd .btn { position: relative; z-index: 2; }
.pcd-art { height: 92px; display: grid; place-items: center; font-size: 52px; position: relative; background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--rc) 45%, transparent), transparent 70%); }
.pcd-lv { position: absolute; top: 8px; left: 8px; background: #0007; border: 1px solid #ffffff22; border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 800; }
.pcd-var { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: linear-gradient(90deg, #fbbf24, #f59e0b); color: #2a1a00; }
.pcd-ev { position: absolute; bottom: 6px; right: 8px; font-size: 18px; }
.pcd-nb { background: #0005; border-block: 1px solid #ffffff18; padding: 5px 8px; text-align: center; font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcd-rar { text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rc); margin-top: 6px; }
.pcd-st { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 6px 8px 0; min-height: 28px; }
.pcd-st span { background: #0004; border-radius: 99px; padding: 2px 8px; font-size: 12px; white-space: nowrap; }
.pcd-ab { padding: 6px 10px 0; font-size: 12px; text-align: center; color: #cbd5e1; min-height: 3.2em; }
.pcd-xp { margin: 8px 10px 0; height: 7px; border-radius: 99px; background: #0006; overflow: hidden; }
.pcd-xp i { display: block; height: 100%; background: linear-gradient(90deg, #86efac, #22c55e); }
.pcd-xpt { font-size: 11px; text-align: center; color: var(--muted); margin-top: 2px; }
.pcd-act { padding: 8px 10px 10px; margin-top: auto; display: grid; }
.pcd.eq { box-shadow: 0 0 0 2px #4ade80aa, 0 0 16px #4ade8055; }
/* fusion modal */
.fz { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 10px 0; }
.fzs { height: 100px; border-radius: 12px; border: 2px dashed var(--line); display: grid; place-items: center; align-content: center; background: #0003; text-align: center; padding: 4px; }
.fzs.full { border-style: solid; border-color: var(--rc); background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 18%, #0003), #0003); }
.fzs .fe { font-size: 46px; line-height: 1.1; } .fzs small { font-size: 11px; }
.fzm { font-size: 32px; text-align: center; }
.fz.go .fzs:first-child { animation: fzL 1.1s ease-in forwards; } .fz.go .fzs:last-child { animation: fzR 1.1s ease-in forwards; } .fz.go .fzm { animation: fzBrew 1.1s ease-in forwards; }
@keyframes fzL { 0% { transform: none; } 50% { transform: translateX(30%) rotate(8deg); } 100% { transform: translateX(75%) scale(.2) rotate(360deg); opacity: 0; } }
@keyframes fzR { 0% { transform: none; } 50% { transform: translateX(-30%) rotate(-8deg); } 100% { transform: translateX(-75%) scale(.2) rotate(-360deg); opacity: 0; } }
@keyframes fzBrew { 0% { transform: scale(1); } 70% { transform: scale(2.2) rotate(180deg); filter: brightness(2); } 100% { transform: scale(3); opacity: 0; } }
.fztray { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; max-height: 170px; overflow: auto; }
.fzc { border: 2px solid color-mix(in srgb, var(--rc) 60%, transparent); background: #0003; border-radius: 12px; padding: 5px 9px; cursor: pointer; font-size: 13px; color: var(--text); }
.fzc.on { border-color: #fff; background: #ffffff22; } .fzc[disabled], .fzc.dis { opacity: .35; cursor: not-allowed; }
.bv-up { background: #22c55e; color: #04210f; font-weight: 900; font-size: 12px; padding: 2px 10px; border-radius: 99px; animation: bvUp .5s 1.1s both; }
.bv-up.same { background: #334155; color: #cbd5e1; } .bv-up.gold { background: linear-gradient(90deg, #fbbf24, #f59e0b); color: #2a1a00; }
.bv-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; animation: bvUp .5s 1.15s both; } .bv-chips span { background: #0005; border-radius: 99px; padding: 3px 10px; font-size: 13px; }

/* rank badges and name colours */
.nm.rk-dev { color: #2dd4bf; font-weight: 800; } .nm.rk-admin { color: #f87171; font-weight: 800; } .nm.rk-vip { color: #fbbf24; font-weight: 800; } .nm.rk-beta { color: #60a5fa; font-weight: 800; }
.nm.rk-plus { color: #c084fc; font-weight: 800; }
.r-admin { --c1: #ef4444; --hi: #fecaca; --glow: #ef444488; } .r-beta { --c1: #3b82f6; --hi: #bfdbfe; --glow: #3b82f688; } .r-dev { --c1: #14b8a6; --hi: #99f6e4; --glow: #14b8a688; } .r-plus { --c1: #a855f7; --hi: #e9d5ff; --glow: #a855f788; } .r-vip { --c1: #f5b301; --hi: #fde68a; --glow: #f5b30188; }
.rkb { position: relative; display: inline-flex; align-items: center; vertical-align: 1px; font-size: 9px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; padding: 1px 5px; border-radius: 6px; color: var(--hi); background: #0009; text-shadow: 0 0 6px var(--c1); box-shadow: 0 0 10px var(--glow), inset 0 0 8px var(--glow); isolation: isolate; animation: rkPulse 2.6s ease-in-out infinite; }
@keyframes rkPulse { 50% { box-shadow: 0 0 15px var(--c1), inset 0 0 12px var(--glow); } }
.rkb::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(105deg, var(--c1) 35%, #fff 50%, var(--c1) 65%); background-size: 300% 100%; background-position: 130% 0; -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); -webkit-mask-composite: xor; pointer-events: none; z-index: 2; animation: rkSweep 3.2s ease-in-out infinite; }
.rkb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; background: linear-gradient(105deg, transparent 38%, #ffffff55 50%, transparent 62%); background-size: 300% 100%; background-position: 130% 0; animation: rkSweep 3.2s ease-in-out infinite; }
@keyframes rkSweep { 0%, 45% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
.r-beta.rkb, .r-beta.rkb::before, .r-beta.rkb::after { animation-delay: .5s; } .r-dev.rkb, .r-dev.rkb::before, .r-dev.rkb::after { animation-delay: 1s; } .r-vip.rkb, .r-vip.rkb::before, .r-vip.rkb::after { animation-delay: 1.5s; } .r-plus.rkb, .r-plus.rkb::before, .r-plus.rkb::after { animation-delay: 2s; }
.rot { display: inline-grid; vertical-align: 1px; }
.rot .rslot { grid-area: 1 / 1; opacity: 0; transition: opacity .7s ease; justify-self: start; } .rot .rslot.on { opacity: 1; }
body.lowfx .rkb, body.lowfx .rkb::before, body.lowfx .rkb::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .rkb, .rkb::before, .rkb::after { animation: none; } .rot .rslot { transition: none; } }

/* ======== v0.7.1: players list on the right, chat pops out bottom right ======== */
#chatbox { display: contents; }
.keepop { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; color: var(--muted); text-transform: none; letter-spacing: 0; cursor: pointer; user-select: none; }
.keepop input { accent-color: var(--accent); margin: 0; padding: 0; width: auto; }
.psec { padding: 8px 4px 2px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #ffffff80; }
#chatShow .cbadge { background: var(--bad, #ef4444); color: #fff; border-radius: 99px; padding: 0 6px; font-size: 11px; margin-left: 6px; }
#chatShow .cbadge:empty { display: none; }
/* chat scrollbars: slim, green and glassy like the rest */
#log, #online { scrollbar-width: thin; scrollbar-color: #3f8f63 transparent; }
#log::-webkit-scrollbar, #online::-webkit-scrollbar { width: 8px; }
#log::-webkit-scrollbar-track, #online::-webkit-scrollbar-track { background: #ffffff08; border-radius: 99px; margin: 4px 0; }
#log::-webkit-scrollbar-thumb, #online::-webkit-scrollbar-thumb { background: linear-gradient(115deg, #ffffff55 0%, #ffffff18 40%, transparent 41%), #2f7d52; border: 2px solid transparent; background-clip: padding-box; border-radius: 99px; box-shadow: 0 0 6px #4ade8055; }
#log::-webkit-scrollbar-thumb:hover, #online::-webkit-scrollbar-thumb:hover { background: linear-gradient(115deg, #ffffff77 0%, #ffffff28 40%, transparent 41%), #4ade80; background-clip: padding-box; border: 2px solid transparent; }
@media (min-width: 821px) {
  body:not(.fs) #side { width: 260px; background: #0b121b; }
  body:not(.fs) #side > .sidehead:first-child { padding: 12px 14px 4px; }
  body:not(.fs) #online { max-height: none; flex: 1; min-height: 0; padding: 0 10px 64px; }
  body:not(.fs) #online .pl { padding: 4px 6px; }
  body:not(.fs) #chatbox { position: fixed; right: 14px; bottom: 62px; width: 360px; height: min(400px, calc(100vh - 140px)); z-index: 79; display: flex; flex-direction: column; overflow: hidden;
    background: linear-gradient(115deg, #ffffff2e 0%, #ffffff12 28%, transparent 29%), #0b121bf0; border: 1px solid #ffffff2e; border-radius: 14px; box-shadow: 0 12px 40px #000a, inset 0 1px 0 #ffffff30;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px) scale(.96); transform-origin: 100% 100%; transition: opacity .35s ease, transform .25s ease, visibility 0s .35s; }
  @keyframes chatShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
  body:not(.fs) #layout.chatopen #chatbox { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .35s ease, transform .25s ease; }
  body:not(.fs) #layout.chatopen:not(.opaque) #chatbox:not(:hover) { opacity: .42; }
  body:not(.fs) #chatbox .sidehead { padding: 10px 12px 2px; }
  body:not(.fs) #chatbox #chanbar { padding: 4px 10px; }
  body:not(.fs) #chatbox #log { flex: 1; min-height: 0; }
  body:not(.fs) #chatShow { display: flex; align-items: center; opacity: 1; overflow: hidden; border-radius: 99px; padding: 9px 16px; z-index: 80; background: linear-gradient(115deg, #ffffff30 0%, #ffffff10 30%, transparent 31%), var(--accent2, #16a34a); border: 1px solid #ffffff33; }
  body:not(.fs) #chatShow::after { content: ''; position: absolute; top: -30%; bottom: -30%; width: 38%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, #ffffff55, transparent); animation: chatShine 6s ease-in-out infinite; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { #chatShow::after { animation: none !important; } }

/* Message from Support: glass, slightly see-through, with the shine sweep */
.modalbox:has(#inboxbox) { position: relative; overflow: hidden; background: linear-gradient(115deg, #ffffff2e 0%, #ffffff12 28%, transparent 29%), #172233d9; backdrop-filter: blur(6px); border: 1px solid #ffffff33; box-shadow: 0 16px 50px #000a, inset 0 1px 0 #ffffff40; }
.modalbox:has(#inboxbox)::after { content: ''; position: absolute; top: -30%; bottom: -30%; width: 34%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, #ffffff30, transparent); animation: supShine 5s ease-in-out infinite; pointer-events: none; }
@keyframes supShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
#inboxbox { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
#inboxbox textarea { background: #0b121b99; border: 1px solid #ffffff22; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .modalbox:has(#inboxbox)::after { animation: none; } }

.supbtn { display: none; float: right; margin-top: -3px; font-size: 11px; text-transform: none; letter-spacing: 0; border-radius: 99px; background: linear-gradient(115deg, #ffffff30 0%, #ffffff10 30%, transparent 31%), #be185d; border-color: #f472b6; color: #fff; }
body.storeon .supbtn { display: inline-block; }
body.fs .supbtn { display: none !important; }
/* chat: no Hide chat button (the Chat button toggles it), pin docks it in the side bar */
body:not(.fs) [data-act="hideChat"] { display: none; }
body.fs #pinChat, body.fs #keepOpaque { display: none; }
#pinChat { opacity: .55; } #pinChat.on { opacity: 1; background: #4ade8033; border-color: var(--accent); }
@media (min-width: 821px) {
  body:not(.fs) #layout.pinned #chatbox { position: static; width: auto; height: 300px; flex: none; border-radius: 0; border-width: 1px 0 0; box-shadow: none; background: #0b121b; opacity: 1 !important; visibility: visible; pointer-events: auto; transform: none; padding-bottom: 54px; }
  body:not(.fs) #layout.pinned:not(.chatopen) #chatbox { display: none; }
  body:not(.fs) #layout.pinned #keepOpaque { display: none; }
  body:not(.fs) #layout.pinned #online { padding-bottom: 8px; }
}

/* chat titles (like Boss Slayer) only show while the mouse is over the name */
.msg .ctl { display: none; }
.msg .cn:hover + .ctl { display: inline; }

/* Support popup (bubbles) and tickets */
.inbhd { display: flex; align-items: center; gap: 10px; text-align: left; }
.inbic { font-size: 38px; filter: drop-shadow(0 0 8px #60a5fa88); }
.supill { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 9px; font-weight: 800; letter-spacing: .1em; color: #bfdbfe; background: #0009; border: 1.5px solid #3b82f6; box-shadow: 0 0 10px #3b82f688, inset 0 0 8px #3b82f688; vertical-align: 1px; }
.bub { max-width: 90%; text-align: left; padding: 8px 11px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.bub.s { background: #3b82f622; border: 1px solid #3b82f666; border-bottom-left-radius: 4px; align-self: flex-start; }
.bub.u { background: #4ade8022; border: 1px solid #4ade8066; border-bottom-right-radius: 4px; align-self: flex-end; }
.bub .tkts { display: block; margin-top: 2px; font-size: 10px; }
.btn.link.small { font-size: 12px; }
.modalbox:has(#tkbox) { width: min(880px, 96vw); max-width: none; }
.tkbox { display: flex; flex-direction: column; gap: 10px; }
.tknew { display: grid; gap: 6px; text-align: left; } .tknew .btn { justify-self: end; }
.tklist { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; padding-right: 2px; }
.tkc { border: 1px solid #ffffff22; border-radius: 12px; background: #0b121b66; overflow: hidden; }
.tkc.on { border-color: #3b82f688; }
.tkh { all: unset; box-sizing: border-box; display: flex; gap: 8px; align-items: center; width: 100%; padding: 8px 10px; cursor: pointer; text-align: left; }
.tkh:hover { background: #ffffff0d; }
.tkt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.tkst { font-size: 10px; font-weight: 800; border-radius: 99px; padding: 1px 8px; flex: none; }
.tk-open { background: #fbbf24; color: #3b2a00; } .tk-answered { background: #4ade80; color: #052e16; } .tk-closed { background: #64748b; color: #fff; }
.tkb { display: flex; flex-direction: column; gap: 6px; padding: 4px 10px 10px; }
.tkclosed { font-size: 12px; color: var(--muted); background: #0006; border-radius: 10px; padding: 8px 10px; text-align: left; }
.tkb textarea, .tknew textarea { width: 100%; background: #0b121b99; color: inherit; border: 1px solid #ffffff22; border-radius: 10px; padding: 8px 10px; font: inherit; resize: none; box-sizing: border-box; }

.supbox { border: 1px solid #f472b655; background: linear-gradient(135deg, #f472b614, transparent); border-radius: 12px; padding: 12px; margin: 10px 0; }
.supheart { font-size: 34px; line-height: 1; }
.supamts { margin-top: 8px; }

/* incubators: always one line, boxes stretch to fill it */
.list.incs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; }
.list.incs .rowc { min-width: 0; padding: 6px 8px; gap: 6px; flex-wrap: wrap; }
.list.incs .rowc .em { font-size: 22px; }
.list.incs .rowc .grow { flex: 1 1 60px; min-width: 0; font-size: 13px; line-height: 1.25; }
.list.incs .rowc b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; max-width: 100%; vertical-align: top; }
.list.incs .rowc .btn { width: 100%; padding: 4px 8px; }
@media (max-width: 560px) { .list.incs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ======== Store: shine on everything (Support, Plus, packs, buttons, headings) ======== */
.storehero { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 10px 0; align-items: stretch; }
.storehero .supbox, .storehero .plusbox { margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden;
  background: linear-gradient(115deg, #ffffff2e 0%, #ffffff12 28%, transparent 29%), var(--bgc); border: 1px solid #ffffff2a; border-radius: 14px; box-shadow: inset 0 1px 0 #ffffff30, 0 6px 20px #0006; }
.storehero .supbox { --bgc: #3a1a3acc; }
.storehero .plusbox { --bgc: #2a1c4acc; }
.storehero .plusbox::after, .storehero .supbox::after, .storev .card.pack.glass::before { content: ''; position: absolute; top: -30%; bottom: -30%; width: 34%; left: -60%; inset-inline: auto; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, #ffffff30, transparent); animation: supShine 5s ease-in-out infinite; pointer-events: none; z-index: 2; }
.storehero .plusbox::after { right: auto; background: linear-gradient(90deg, transparent, #ffffff30, transparent); }
.storehero .plusbox::after, .storehero .supbox::after { height: auto; }
.storehero .plusbox { animation: none; }
.storehero .plusbox::after { animation-delay: .8s; }
.storev .card.pack.glass:nth-child(2)::before { animation-delay: .7s; } .storev .card.pack.glass:nth-child(3)::before { animation-delay: 1.4s; } .storev .card.pack.glass:nth-child(4)::before { animation-delay: 2.1s; } .storev .card.pack.glass:nth-child(5)::before { animation-delay: 2.8s; }
.sbody { display: grid; gap: 6px; flex: none; }
.storehero .plushead, .storehero .supbox > *, .storehero .plusbox > * { flex-shrink: 0; }
.supprog { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pbar { width: 46%; min-width: 120px; height: 8px; border-radius: 99px; background: #0006; overflow: hidden; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, #f472b6, #fbbf24); border-radius: 99px; }
.supamts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.storehero .plusbox > .row { margin-top: auto; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 10px; }
.btn.pink { background: linear-gradient(115deg, #ffffff55 0%, #ffffff18 30%, transparent 31%), linear-gradient(#f472b6, #be185d); color: #fff; border-color: #9d174d; }
.storev .btn { position: relative; overflow: hidden; }
.storev .btn::after { content: ''; position: absolute; top: -30%; bottom: -30%; width: 40%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, #ffffffaa, transparent); animation: supShine 3.6s ease-in-out infinite; pointer-events: none; }
.storev .btn.dim::after { display: none; }
.storev .shsec::after { background: linear-gradient(90deg, var(--line) 0 35%, #ffffffcc 50%, var(--line) 65% 100%) 100% 0 / 300% 100%; animation: shText 5s ease-in-out infinite; }
@keyframes shText { 0%, 40% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .storev *, .storev *::before, .storev *::after { animation: none !important; } }

.rowc.hrdy{box-shadow:0 0 0 1px #4ade8066,0 0 14px #4ade8040}
.rowc.opening{animation:benchCrack .7s ease-in forwards}

.supstory{margin:0;font-size:12.5px;line-height:1.5;color:#e2e8f0cc}
.suprules{font-size:12.5px;background:#0000002e;border-radius:8px;padding:8px 10px}
.suprules ul{margin:6px 0;padding-left:18px}.suprules li{margin:3px 0}

.modalbox .supbox { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 14px; margin: 0 0 10px; --bgc: #3a1a3acc;
  background: linear-gradient(115deg, #ffffff2e 0%, #ffffff12 28%, transparent 29%), var(--bgc); border: 1px solid #ffffff2a; border-radius: 14px; box-shadow: inset 0 1px 0 #ffffff30; }
.modalbox .supbox::after { content: ''; position: absolute; top: -30%; bottom: -30%; width: 34%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, #ffffff30, transparent); animation: supShine 5s ease-in-out infinite; pointer-events: none; }
.modalbox:has(.supbox) { max-width: 560px; }
.modalbox .supbox .btn::after { content: ''; position: absolute; top: -30%; bottom: -30%; width: 40%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, #ffffffaa, transparent); animation: supShine 3.6s ease-in-out infinite; pointer-events: none; }
.modalbox .supbox .btn { position: relative; overflow: hidden; }
.modalbox:has(.supbox) { width: min(580px, 94vw); max-width: none; }
.modalbox .suprules { text-align: left; } .modalbox .supamts { justify-content: flex-start; }
.modalbox .supstory { text-align: left; }

.supbox .sbody { text-align: center; justify-items: center; }
.supbox .supprog { width: 100%; justify-content: center; }
.supbox .pbar { width: 74%; height: 13px; }
.supbox .supamts { justify-content: center; }
.modalbox .supamts { justify-content: center; }

.tksplit { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 12px; height: min(430px, 60vh); }
.tklist { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; text-align: left; }
.tki { all: unset; box-sizing: border-box; display: grid; gap: 3px; border: 1px solid #ffffff22; border-radius: 12px; background: #0b121b66; padding: 8px 10px; cursor: pointer; }
.tki:hover { background: #ffffff0d; } .tki.on { border-color: #3b82f6aa; background: #3b82f61a; }
.tkr { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tki .tkt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.tkconv { border: 1px solid #ffffff22; border-radius: 14px; background: #0b121b66; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.tkch { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #ffffff22; text-align: left; }
.tkch .tkt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkmsgs { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.tkrep { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #ffffff22; align-items: stretch; }
.tkrep textarea { flex: 1; background: #0b121b99; color: inherit; border: 1px solid #ffffff22; border-radius: 10px; padding: 8px 10px; font: inherit; resize: none; box-sizing: border-box; }
.tkconv .tkclosed { margin: 10px; }
.tkempty { margin: auto; text-align: center; color: var(--muted); padding: 20px; }
@media (max-width: 700px) { .tksplit { grid-template-columns: 1fr; height: auto; } .tklist { max-height: 160px; } .tkconv { height: 360px; } }
.tkbox .inbhd .grow { flex: 1; text-align: left; }

#fztip, #sdtip { position: fixed; z-index: 400; pointer-events: none; max-width: 260px; background: #0f1824f2; border: 2px solid var(--rc, #fff); border-radius: 12px; padding: 9px 11px; box-shadow: 0 8px 24px #000a; text-align: left; font-size: 13px; display: grid; gap: 6px; }
#fztip .fzt-h, #sdtip .fzt-h { display: flex; gap: 8px; align-items: center; } #fztip .fzt-h > span, #sdtip .fzt-h > span { font-size: 30px; }
#fztip .fzt-c, #sdtip .fzt-c { display: flex; flex-wrap: wrap; gap: 4px; } #fztip .fzt-c span, #sdtip .fzt-c span { background: #ffffff14; border-radius: 99px; padding: 1px 8px; }
#fztip .fzt-a { color: var(--muted); }

/* settings and stats */
.modalbox:has(.stg) { width: min(780px, 96vw); max-width: none; }
.stg .sthero { display: flex; gap: 12px; align-items: center; border: 1px solid #f472b655; background: linear-gradient(135deg, #f472b61a, transparent); border-radius: 14px; padding: 12px; position: relative; overflow: hidden; }
.stg .stav { width: 56px; height: 56px; border-radius: 50%; background: #22324a; display: grid; place-items: center; font-size: 28px; flex: none; }
.stg .stname { font-size: 18px; } .stg .sttot { text-align: right; }
.stg .stv { font-size: 22px; font-weight: 800; line-height: 1.15; } .stg .stl { font-size: 12px; color: var(--muted); }
.stg .sttiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stg .stt { border: 1px solid var(--line); border-radius: 12px; background: #0b121b66; padding: 9px 11px; position: relative; overflow: hidden; }
.stg .stt::after, .stg .sthero::after { content: ''; position: absolute; top: -30%; bottom: -30%; width: 34%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, #ffffff1c, transparent); animation: supShine 6s ease-in-out infinite; pointer-events: none; }
.stg .stcard { border: 1px solid var(--line); border-radius: 14px; background: #ffffff0a; padding: 4px 14px 12px; }
.stg .stcard h4 { margin: 10px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #9fb3cc; }
.stg .stbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: #0006; }
.stg .stbar i { display: block; min-width: 3px; }
.stg .stleg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; }
.stg .stleg b { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.stg .stmore { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.stg .strow { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #ffffff14; }
.stg .stgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stg .stcard label.chk { margin: 6px 0; }
@media (max-width: 700px) { .stg .sttiles { grid-template-columns: 1fr 1fr; } .stg .stgrid, .stg .stmore { grid-template-columns: 1fr; } .stg .sthero { flex-wrap: wrap; } }

/* a sprinkler is running: water falls over the garden so you can see it working */
#grid.sprk::after { content: ''; position: absolute; inset: -4px; pointer-events: none; z-index: 5; border-radius: 12px;
  background: radial-gradient(circle at 20% 20%, #7dd3fc55, transparent 6px) 0 0 / 38px 46px, radial-gradient(circle at 70% 60%, #bae6fdaa, transparent 5px) 0 0 / 52px 61px, radial-gradient(circle at 40% 80%, #7dd3fc77, transparent 5px) 0 0 / 29px 37px,
    linear-gradient(#38bdf822, #38bdf80d);
  animation: sprkRain 1.1s linear infinite; }
@keyframes sprkRain { to { background-position: 0 46px, 0 61px, 0 37px, 0 0; } }
body.lowfx #grid.sprk::after, .lowfx #grid.sprk::after { animation: none; }

.pcd.pcd-lock { opacity: .75; filter: grayscale(1) brightness(.8); min-height: 0; }
.pcd.pcd-lock .pcd-art { opacity: .6; } .pcd.pcd-lock .pcd-nb { color: var(--muted); font-style: italic; }

/* Locked crops: gold vault card with a LOCKED ribbon */
.ctile.clocked { padding-top: 24px; border-color: #facc15; background: linear-gradient(160deg, #3a3012, #14213a 70%); box-shadow: inset 0 0 0 1px #facc1566, 0 0 16px #facc1555; }
.ctile.clocked::before { content: "🔒 LOCKED"; position: absolute; top: 0; left: 0; right: 0; text-align: center; font-size: 9.5px; font-weight: 900; letter-spacing: .18em; color: #2a2200; background: linear-gradient(90deg, #f59e0b, #fde047, #f59e0b); padding: 1px 0; z-index: 2; border-radius: 10px 10px 0 0; }
body.fs #fsview .ctile.clocked { padding-top: 22px; }

/* Count medal: the amount you own, on the top-left corner of cards and rows */
.qm { position: absolute; left: -10px; top: -10px; z-index: 6; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 99px; background: var(--rc, #4ade80); color: #06101f; border: 3px solid #0b1426; display: grid; place-items: center; font-weight: 900; font-size: 13px; line-height: 1; box-shadow: 0 3px 8px #0009; pointer-events: none; }
.ctile.clocked .qm { background: #facc15; }
.ctile, .btile, .card:has(> .qm), .rowc:has(> .qm) { position: relative; margin: 8px 0 0 8px; }
.rowc:has(> .qm) { --rc: #4ade80; }
.rowc:has(> .qm) > .em { margin-left: 8px; }
body.fs #fsview .qm { min-width: 24px; height: 24px; font-size: 11px; border-width: 2px; left: -8px; top: -8px; }

#sdtip .fzt-h img { width: 32px; height: 32px; object-fit: contain; } #sdtip .fzt-c b { color: #fff; }

/* Game-styled tooltip (replaces the browser's plain title box) */
#gtip { position: fixed; z-index: 450; pointer-events: none; max-width: 260px; background: #0f1824f2; border: 2px solid #3e5a86; border-radius: 12px; padding: 7px 11px; box-shadow: 0 8px 24px #000a; font-size: 13px; line-height: 1.35; color: var(--fg, #e8eef7); text-align: left; }
.shelp { color: #e8eef7; font-weight: 700; }

/* Locked seeds: same gold vault look as locked crops */
.card.slocked, .btile.slocked { position: relative; border-color: #facc15; background: linear-gradient(160deg, #3a3012, #14213a 70%); box-shadow: inset 0 0 0 1px #facc1566, 0 0 16px #facc1555; padding-top: 24px; }
.card.slocked { border-top-width: 2px; }
.card.slocked::before, .btile.slocked::before { content: "🔒 LOCKED"; position: absolute; top: 0; left: 0; right: 0; text-align: center; font-size: 9.5px; font-weight: 900; letter-spacing: .18em; color: #2a2200; background: linear-gradient(90deg, #f59e0b, #fde047, #f59e0b); padding: 1px 0; z-index: 2; border-radius: 10px 10px 0 0; }
.card.slocked .qm, .btile.slocked .qm { background: #facc15; }
.btile .lk { background: #16a34a99; } .btile .lk.on { background: #dc2626cc; }
.btile.slocked .lk { top: 20px; }

/* Locked cards: rarity bar along the bottom edge */
.rbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--rc, #94a3b8); color: #06101f; font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .2em; text-align: center; text-transform: uppercase; padding: 1px 0; border-radius: 0 0 9px 9px; pointer-events: none; }
.ctile.clocked, .card.slocked, .btile.slocked { padding-bottom: 24px; }
.btile.slocked { padding-bottom: 20px; } .btile .rbar { font-size: 9px; letter-spacing: .12em; }
body.fs #fsview .ctile.clocked { padding-bottom: 22px; }

/* ---- visitor list (top left of your garden) ---- */
#vis{position:absolute;left:10px;top:10px;z-index:8;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
#vis:empty{display:none}
.vchip{background:linear-gradient(#1f2d44,#172233);border:1px solid var(--line);border-radius:999px;padding:4px 11px;font-size:14px;color:var(--text);box-shadow:0 2px 8px #0006}
.vchip b{color:var(--accent)}
.vchip.open,.vchip:hover{border-color:var(--accent)}
.vdd{background:#0b121bf2;border:1px solid var(--line);border-radius:12px;padding:6px;display:grid;gap:4px;width:224px;max-height:min(60vh,340px);overflow:auto;box-shadow:0 8px 22px #000a}
.vgl{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);padding:2px 4px 0}
.vrow{display:flex;align-items:center;gap:7px;background:var(--panel2);border:0;border-radius:8px;padding:4px 7px;font-size:13px;text-align:left;color:var(--text)}
.vrow:hover{filter:brightness(1.25)}
.vrow b{flex:1;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vd{width:7px;height:7px;border-radius:50%;background:var(--accent);flex:none}
.vd.f{background:var(--gold)}
.vlv{font-size:10px;font-weight:700;background:#0b121b;border:1px solid var(--line);border-radius:6px;padding:0 5px;color:var(--gold)}

/* ---- achievement unlock popup ---- */
.achpop{position:fixed;left:50%;top:12px;width:min(360px,calc(100vw - 20px));margin-left:calc(min(360px,calc(100vw - 20px)) / -2);z-index:9000;display:flex;gap:10px;align-items:center;padding:9px 10px;background:#0b121bf2;border:1px solid var(--gold);border-radius:14px;box-shadow:0 8px 24px #000b,0 0 18px #fbbf2444;overflow:hidden;animation:achDrop .6s cubic-bezier(.2,1.3,.4,1) both}
.achpop::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 35%,#fff5 50%,transparent 65%);transform:translateX(-120%);animation:achShine 1.4s .5s 2}
.achpop.out{animation:achOut .35s ease-in both}
.achpop .aic{width:46px;height:46px;flex:none;display:grid;place-items:center;border-radius:50%;font-size:25px;background:radial-gradient(#fcd34d,#b45309);box-shadow:0 0 0 2px #fff6 inset}
.achpop .atx{flex:1;min-width:0;display:grid;line-height:1.25}
.achpop small{color:var(--gold);font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:700}
.achpop b{font-size:16px}
.achpop .atx span{color:var(--muted);font-size:12px}
.achpop .axx{position:absolute;right:6px;top:2px;background:none;border:0;color:var(--muted);font-size:11px;padding:2px 4px;z-index:2}
.achpop .btn{flex:none;margin-top:8px}
@keyframes achDrop{from{transform:translateY(-100px);opacity:0}}
@keyframes achOut{to{transform:translateY(-100px);opacity:0}}
@keyframes achShine{to{transform:translateX(120%)}}

/* Egg artwork (public/eggs): the picture already carries its name, so it is drawn larger than a seed icon */
img.si[src^="/eggs/"] { height: 70px; width: auto; max-width: 80px; vertical-align: middle; }
.card .em img.si[src^="/eggs/"] { height: 104px; max-width: 120px; }
body.fs #fsview .rowc .em img.si[src^="/eggs/"] { height: 48px; width: auto; max-width: 56px; }
body.fs #fsview .card .em img.si[src^="/eggs/"] { height: 64px; width: auto; max-width: 76px; }
.card .em:has(> img.si[src^="/eggs/"]) { display: flex; justify-content: center; margin-bottom: 4px; }

/* developer command prompt */
#dcomp { border-top: 1px solid var(--line); background: var(--panel2); padding: 6px 8px; max-height: 46%; overflow-y: auto; font-size: 12.5px; }
#dcomp .dch { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
#dcomp .dch .cur { background: var(--accent, #6ab04c); color: #0b1a0d; border-radius: 4px; padding: 0 5px; }
#dcomp .dch em { opacity: .7; font-style: normal; flex-basis: 100%; }
#dcomp .dcn { margin: 3px 0; opacity: .85; }
#dcomp .dci { display: flex; gap: 8px; padding: 3px 6px; border-radius: 5px; cursor: pointer; }
#dcomp .dci b { flex: none; }
#dcomp .dci span { opacity: .65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dcomp .dci:hover, #dcomp .dci.sel { background: rgba(255,255,255,.12); }
.fxwrap { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.fxwrap i { position: absolute; font-style: normal; font-size: 20px; opacity: 0; animation: fxb 1.6s ease-out forwards; }
@keyframes fxb { 0% { opacity: 1; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.3); } }

/* ======== v0.7.1 Forest Edge scenery: emoji sky, oval lawn with wide receding mown stripes, tree line and fence ======== */
#gscene:not([data-gh="1"]) { background: linear-gradient(180deg, var(--g1) 0%, var(--g2) var(--hz, 150px), var(--g2) 100%); }
#gscene:not([data-gh="1"]) #sky3d .hill, #gscene:not([data-gh="1"]) #fog { display: none; }
#gscene:not([data-gh="1"]) #plane { background: none; z-index: 3; }
#gscene[data-gh="1"] #plane { background: repeating-linear-gradient(0deg, #d5ebdc 0 calc(var(--tile) * 1.1), #c6e0d0 calc(var(--tile) * 1.1) calc(var(--tile) * 2.2)); }
#lawn, #farm, #fence { position: absolute; left: 0; top: 0; width: 100%; height: 0; pointer-events: none; }
#lawn { z-index: 0; } #farm { z-index: 1; } #fence { z-index: 2; }
#farm .tr { position: absolute; transform: translate(-50%, -88%); line-height: 1; }
#gscene[data-dark="1"] #farm, #gscene[data-dark="1"] #fence { opacity: .6; }
#sky3d .sun::after { content: "☀️"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 62px; filter: drop-shadow(0 2px 3px #0003); }
#gscene[data-dark="1"] #sky3d .sun::after { content: "🌙"; }
#sky3d .cl { position: absolute; font-style: normal; line-height: 1; font-size: clamp(54px, calc(var(--hz, 150px) * .62), 110px); filter: drop-shadow(0 4px 3px #0002); animation: clDrift 70s ease-in-out infinite alternate; }
#sky3d .c1 { left: 5%; top: 12%; } #sky3d .c2 { left: 34%; top: 2%; animation-duration: 90s; font-size: clamp(60px, calc(var(--hz, 150px) * .72), 124px); }
#sky3d .c3 { left: 50%; top: 30%; animation-duration: 80s; } #sky3d .c4 { left: 68%; top: 4%; animation-duration: 100s; }
@keyframes clDrift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }
#gscene[data-dark="1"] #sky3d .cl { opacity: .5; filter: brightness(.6); }
#gscene[data-sky="overcast"] #sky3d .cl, #gscene[data-sky="storm"] #sky3d .cl { filter: brightness(.82) saturate(.5); }
#sky3d .stars { position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  background-image: radial-gradient(1.6px 1.6px at 18px 26px, #fff, transparent), radial-gradient(1.2px 1.2px at 74px 80px, #fff, transparent), radial-gradient(1.8px 1.8px at 128px 18px, #fff, transparent), radial-gradient(1.2px 1.2px at 168px 64px, #fff, transparent), radial-gradient(1.5px 1.5px at 210px 100px, #fff, transparent), radial-gradient(1.2px 1.2px at 46px 118px, #fff, transparent), radial-gradient(1.4px 1.4px at 250px 40px, #fff, transparent);
  background-size: 280px 140px; }
#gscene[data-dark="1"] #sky3d .stars { opacity: .9; }
body.lowfx #sky3d .cl { animation: none; }
#lawn, #farm, #fence { will-change: transform; }
/* v0.7.1 Administrator warning + maintenance banner */
#admwarn { position: fixed; inset: 0; z-index: 9800; display: grid; place-items: center; padding: 16px; background: rgba(5, 10, 8, .55); backdrop-filter: blur(9px) saturate(.8); -webkit-backdrop-filter: blur(9px) saturate(.8); animation: awIn .25s ease-out both; }
#admwarn .awbox { width: min(440px, 100%); text-align: center; background: #0b121b; border: 2px solid #f59e0b; border-radius: 16px; padding: 22px 22px 20px; box-shadow: 0 18px 60px #000c, 0 0 0 6px #f59e0b22; display: grid; gap: 6px; justify-items: center; }
#admwarn .awic { font-size: 42px; line-height: 1; }
#admwarn small { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
#admwarn h2 { margin: 0; font-size: 26px; color: #fbbf24; }
#admwarn p { margin: 8px 0 4px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
#admwarn em { color: var(--muted); font-size: 12px; font-style: normal; }
#admwarn .btn { margin-top: 10px; min-width: 160px; font-size: 16px; padding: 9px 18px; }
@keyframes awIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
#maintbar { position: fixed; left: 0; right: 0; top: 0; height: 30px; z-index: 9700; display: grid; place-items: center; pointer-events: none;
  background: repeating-linear-gradient(-45deg, #111 0 14px, #facc15 14px 28px); box-shadow: 0 2px 8px #0009; }
#maintbar span { background: #111; color: #facc15; font-weight: 900; letter-spacing: .28em; font-size: 13px; padding: 3px 18px; border-radius: 4px; border: 1px solid #facc15; }
body.maint { padding-top: 30px; }
#dcomp .dckeys { opacity: .6; font-size: 11px; margin-top: 4px; } #dcomp kbd { background: rgba(255,255,255,.14); border-radius: 3px; padding: 0 4px; font: inherit; font-weight: 700; }
/* Bar under the garden (not full screen): count medal in the top-left corner of each slot, like the cards */
body:not(.fs) #gbar .slots { padding: 10px 0 0 10px; }
body:not(.fs) #gbar .slot .qm { left: -9px; top: -9px; min-width: 26px; height: 26px; font-size: 12px; }
body:not(.fs) #gbar .slot.fert .qm, body:not(.fs) #gbar .slot.gearslot .qm { background: #4ade80; }
body:not(.fs) #gbar .slot kbd { display: none; }
#maintbar.beta { background: repeating-linear-gradient(-45deg, #0a0f1c 0 14px, #2563eb 14px 28px); }
#maintbar.beta span { background: #0a0f1c; color: #60a5fa; border-color: #3b82f6; }
/* Moving the farm: it lifts off the ground while you carry it */
#gscene.movefarm #bed { transform: translateZ(22px); box-shadow: 0 26px 30px #000a; filter: brightness(1.1); transition: transform .15s, box-shadow .15s; cursor: grabbing; }
#gscene.movefarm #bed * { pointer-events: none; }
#zoombar #zmove[hidden] { display: none; }
.fxdust { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 7; }
.fxdust span { position: absolute; display: block; border-radius: 50%; background: radial-gradient(circle, #c29a68, #9a714600 72%); will-change: transform, opacity; }

/* Plot view: only the plots on grass, filling the garden box (not in full screen) */
#gscene.pv #sky3d, #gscene.pv #decor, #gscene.pv #farm, #gscene.pv #fence, #gscene.pv #lawn, #gscene.pv #evdeco, #gscene.pv #petrow, #gscene.pv #fog, #gscene.pv #gground, #gscene.pv #zmove { display: none; }
#gscene.pv:not([data-gh="1"]), #gscene.pv { background: repeating-linear-gradient(0deg, var(--grass) 0 56px, color-mix(in srgb, var(--grass) 90%, #000) 56px 112px); }
#gscene.pv[data-gh="1"] { background: repeating-linear-gradient(0deg, #d5ebdc 0 56px, #c6e0d0 56px 112px); }
#gscene.pv #bed { left: calc(50% - var(--bw, 400px) / 2); top: var(--y0, 10px); }
#zoombar #zpv { display: inline-flex; align-items: center; gap: 0; padding: 0 9px; }
#zoombar #zpv b { font-size: 12px; font-weight: 700; white-space: pre; }
#zoombar #zpv.on { background: var(--accent2, #4ade80); color: #05260f; }
body.fs #zoombar #zpv { display: none; }
@media (max-width: 640px) { #zoombar #zpv b { display: none; } }
#maintbar.notice { background: repeating-linear-gradient(-45deg, #111 0 14px, #dc2626 14px 28px); }
#maintbar.notice span { background: #111; color: #fecaca; border-color: #ef4444; letter-spacing: .06em; max-width: 94vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
