/* Quiet jade glass, warm ivory, and one precise drawn icon system. */
:root { --ui-ink:#253e37; --ui-muted:#66776b; --ui-gold:#b69a61; --ui-line:#f7f3d96b; }
.ui-icon { display:inline-block; width:1.12em; height:1.12em; min-width:0; vertical-align:-.18em; flex:0 0 auto; color:inherit; pointer-events:none; overflow:visible; }
.ui-icon use { pointer-events:none; }
button .ui-icon,summary .ui-icon { vertical-align:-.2em; }
.topbar-brand { display:flex; align-items:center; line-height:1.2; letter-spacing:.06em; gap:8px; }
.topbar-brand > div { display:flex; flex-direction:column; justify-content:center; gap:3px; }
.topbar-brand small { margin:0; line-height:1; letter-spacing:.18em; opacity:.6; }
.topbar-brand .brand-mark { width:30px; height:30px; padding:6px; border-radius:9px; box-sizing:border-box; display:grid; place-items:center; background:#163a365e; border:1px solid #e7d39b65; }
.brand-mark .ui-icon { width:100%; height:100%; display:block; }
.topbar-brand .brand-mark .ui-icon { color:#e7d39b; }
body.map-active { --accent:#3f6b5a; --accent-2:#8b794f; --text:var(--ui-ink); --muted:var(--ui-muted); --line:#54725e30; }
.modal-panel,.modal-box,.bottom-grid,.cmd-menu,.obj-action-popup,.tutorial-card,body.admin-tools-open #adminPanel {
  background:linear-gradient(145deg,#f2f3e3c9,#dbe5d5b8)!important;
  border:1px solid #ffffe8a6!important; box-shadow:0 16px 48px #122f2a30,inset 0 1px 0 #fffff666;
  backdrop-filter:blur(18px) saturate(85%); -webkit-backdrop-filter:blur(18px) saturate(85%);
  color:var(--ui-ink);
}
.modal { background:#102b2529; }
.panel-nav,.cmd-menu-head { background:#f4f4e72b!important; border-bottom:1px solid #58735e20; }
.panel-nav button { color:#687b6b; font-weight:500; }
.panel-nav button.active { color:#244f40; background:#ffffff3d; box-shadow:inset 0 -1px 0 #ab9361; }
.modal-panel button,.bottom-grid button,.cmd-menu button { box-shadow:none; border-color:#456b5733; border-radius:8px; }
.modal-panel button:hover,.bottom-grid button:hover,.cmd-menu button:hover { border-color:#9b885977; background-color:#fffcde50; }
.modal-panel input,.modal-panel select,.modal-panel textarea { background:#f7faee75; border:1px solid #52705c40; border-radius:7px; color:var(--ui-ink); box-shadow:none; }
.modal-panel :focus-visible,.bottom-grid :focus-visible,.topbar :focus-visible { outline:2px solid #a99868; outline-offset:3px; }
.mobile-map-hud,.map-control-bar { background:#193e36b5!important; border:1px solid #d8d4a455!important; box-shadow:0 8px 24px #102f2426; }
.mobile-map-menu-btn > span { display:flex; justify-content:center; align-items:center; }
.mobile-map-menu-btn > span > .ui-icon { width:17px; height:17px; }
.mobile-map-menu-btn.active { background:#e4dbaf19; box-shadow:inset 0 -1px 0 #d0b977; }
.topbar .hud-disclosure > summary,.topbar .map-filter-toggle { background:#173e36a6!important; border-color:#dfd9b03d!important; color:#f3eed5; box-shadow:0 3px 12px #112c2420; }
.topbar .map-filter-toggle { display:grid; place-items:center; padding:6px; }
.topbar .map-filter-toggle .ui-icon { width:16px; height:16px; }
.topbar .account-menu-items .circ-btn { display:flex; align-items:center; gap:9px; }
.topbar .map-filter-options button { display:grid; place-items:center; }
.rarity-badge { background:#f8f7e35c!important; border:1px solid #b0a07366!important; color:#947c43!important; box-shadow:none!important; }
.rarity-badge .ui-icon { width:10px; height:10px; }
.ability,.place-card { background:#fafbef30!important; border-color:#60715b2c!important; box-shadow:none!important; }
.ability-tag { color:#43624f; background:#d7dfca73; }
.ability-chip,.last-act-chip,.pet-group-count { border-color:#657d5326; background:#f5f6e945; }
.detail-box,.career-badge,.stat-quick-row > *,.pet-near-death-summary { background:#fafcef32!important; border-color:#60715b20!important; box-shadow:none!important; }
.pet-quick-actions .career-badge { background:#e8e7d341!important; }
.action-bubble,.pet-status-bubble,.pet-hover-info { font-family:inherit; }
.world .pet-avatar .pet-status-bubble,.world .pet-avatar .pet-hover-info,.world .pet-avatar .action-bubble { background:#f1f3ddbd!important; color:#355444!important; box-shadow:0 2px 7px #152e241e!important; font-weight:500; }
.target-action-mode.immediate { background:#e9dfb742!important; }
.place-card-icon:has(>.ui-icon) { width:28px; height:28px; color:#52735c; }
.place-card-icon:has(>.ui-icon)>.ui-icon { width:24px; height:24px; }
.log-pet-avatar>.ui-icon { width:18px; height:18px; }
.mood-emoji .ui-icon { width:13px; height:13px; color:#a38d58; }
.gender-symbol .ui-icon { width:12px; height:12px; }
.story-brand .brand-mark { padding:7px; }
.game-logo-emoji>.ui-icon { width:28px; height:28px; color:#57765a; }
/* Replace generated character decorations with geometry. */
.stat-details>summary::before,.more-actions>summary::before,.log-group>summary::before { content:""!important; width:5px; height:5px; border-right:1px solid currentColor; border-top:1px solid currentColor; transform:rotate(45deg); margin-right:5px; }
.stat-details[open]>summary::before,.more-actions[open]>summary::before,.log-group[open]>summary::before { transform:rotate(135deg); }
summary::marker { content:""; }
.world-monster.attackable::after { content:""; width:7px; height:7px; right:-2px; top:0; border:1px solid #e4d0ab; background:#a65842; border-radius:50%; box-shadow:0 0 0 2px #3e493d55; }
.pet-avatar.dead::after { content:""; width:8px; height:12px; border:1px solid #77817499; border-radius:5px 5px 2px 2px; background:#e5e7da80; box-shadow:none; }
@media (hover:hover) and (pointer:fine) {
  html,body,body * { cursor:url('/cursor-arrow.svg?v=20261112-cell-v1') 3 2,auto!important; }
  button,button *,a,a *,summary,summary *,[role=button],[role=button] *,.place-card,.place-card *,.world-object,.world-monster,.pet-avatar,.minimap,.map-tgl { cursor:url('/cursor-active.svg?v=20261112-cell-v1') 3 2,pointer!important; }
  input,textarea,[contenteditable=true] { cursor:url('/cursor-arrow.svg?v=20261112-cell-v1') 3 2,text!important; }
  .topbar-brand .brand-mark { width:28px; height:28px; padding:6px; }
  .topbar-brand { font-size:13px; }
  .topbar-brand small { font-size:6px; }
}
@media(max-width:900px) { .topbar-brand>div { display:none; } }
/* A small ring belongs to the click, not to every mouse movement. */
.cursor-ripple { position:fixed; z-index:2147483645; pointer-events:none; width:14px; height:14px; margin:-7px; border-radius:50%; border:1px solid #fff3c8b0; box-shadow:0 0 0 1px #35554722; animation:cursor-ripple .36s ease-out both; }
@keyframes cursor-ripple { from {transform:scale(.4);opacity:.6;} to {transform:scale(1.5);opacity:0;} }
/* Short, readable action cues; no permanently pulsing icon decorations. */
.scheduled-event-marker { animation:none; filter:drop-shadow(0 2px 3px #153b3555); }
.map-fx { pointer-events:none; will-change:transform,opacity; }
.map-fx.fx-hit { width:24px; height:24px; border:1px solid #d6aa7866; background:radial-gradient(circle,#fff2c8b0 0, #e3b47333 30%,transparent 64%); box-shadow:none; animation:refined-impact .42s ease-out both; }
.map-fx.fx-heal,.map-fx.fx-grow { border:1px solid #c4dcb78a; background:radial-gradient(circle,#dce7c533,transparent 65%); box-shadow:0 0 12px #abd5b633; animation:refined-rise .85s ease-out both; }
.map-fx.fx-social { border-color:#ddcda07a; background:radial-gradient(circle,#ebd9b733,transparent 70%); box-shadow:none; }
.map-fx.fx-step,.map-fx.fx-dust { opacity:.38; background:#d7c49b50; box-shadow:none; }
.map-bolt-magic { background:#dde9d8; box-shadow:0 0 6px #b2d7d8,0 0 14px #aac8bb66; }
.float-text { font-weight:600; font-size:11px; letter-spacing:.02em; text-shadow:0 1px 3px #1e3b36; pointer-events:none; }
.fly-item { color:#d8c591; width:20px; height:20px; }
.fly-item>.ui-icon { width:100%; height:100%; }
@keyframes refined-impact { from {transform:translate(-50%,-50%) scale(.35);opacity:1;} to {transform:translate(-50%,-50%) scale(1.7);opacity:0;} }
@keyframes refined-rise { from {transform:translate(-50%,-30%) scale(.6);opacity:0;} 25% {opacity:.8;} to {transform:translate(-50%,-100%) scale(1.35);opacity:0;} }
@media(prefers-reduced-motion:reduce) { .cursor-halo,.cursor-ripple,.map-fx,.map-bolt,.fly-item,.heart-particle,.heart-float {display:none!important} .pet-avatar,.world-monster {animation:none!important;transition:none!important} }
body.page-hidden .map-fx,body.page-hidden .map-bolt {animation-play-state:paused!important;}

#rarityBadge {font-size:10px!important;background:#faf7e945!important;border:1px solid #a5925a55!important;color:var(--rarity-color,#56615e)!important;box-shadow:none!important;}
#rarityBadge .ui-icon {width:9px;height:9px;}
.mobile-map-menu-btn b {white-space:nowrap;line-height:1.15;}
.world-view>.topbar { z-index:160; }
.topbar .account-menu-items #userSettingsBtn { font-size:12px; font-weight:500; }
.topbar .account-menu-items .ui-icon { width:15px; height:15px; }
@media(hover:hover) and (pointer:fine) { .topbar .account-menu-items #userSettingsBtn { font-size:11px; } }

/* Keep silhouettes inside their tile while making pets the visual focal point. */
.world .pet-avatar .pixel-pet.pet-sprite-avatar.map { width:calc(var(--cell-size) * .98)!important; height:calc(var(--cell-size) * .98)!important; max-width:none; max-height:none; }
.world .pet-avatar .pet-sprite-avatar .asset-sprite { filter:drop-shadow(0 1px 1px #172e2677); }
.world .pet-avatar.mine .pet-sprite-avatar .asset-sprite { filter:drop-shadow(0 0 1px #fff3c6) drop-shadow(0 2px 2px #172e2677); }
.world .world-object.type-item > .asset-sprite-wrap,.world .world-object.type-item > .pixel-sprite { width:60%; height:60%; }
.world .world-object.type-item > .map-art-sprite { width:60%; height:60%; }
.world .terrain-tile-layer[data-object-type="item"] { inset:20%; transform:none; }
.world .pet-avatar.dead .pixel-pet.pet-sprite-avatar.map { width:calc(var(--cell-size) * .72)!important; height:calc(var(--cell-size) * .72)!important; }

/* Warm miniature world; sprites and cells share one scale. */
.world .world-monster:not(.boss) .monster-icon { width:calc(var(--cell-size) * .98);height:calc(var(--cell-size) * .98); }
.world .world-monster.boss .monster-icon { width:calc(var(--cell-size) * 1.8);height:calc(var(--cell-size) * 1.8); }
.world .pet-avatar .pixel-pet,.world .pet-avatar .pet-asset { background:none!important;border:0!important;box-shadow:none!important; }
.world .world-object.type-building {background:none;border:0;opacity:1;}
.world .world-object.own-object {box-shadow:none;}
.world .world-object.own-object:hover {box-shadow:inset 0 0 0 1px #fffbdd70;border-radius:5px;}
.world .world-object.type-building>.map-art-sprite,.world .world-object.type-building>.asset-sprite-wrap {width:94%;height:94%;filter:drop-shadow(0 2px 1px #56442b38);}
.terrain-art-canvas {filter:none;image-rendering:auto;}
.world {background:#a4b96e url('/game-assets/releases/20261112-pixel-v1/meadow.webp') repeat;background-size:var(--cell-size) var(--cell-size);}
.world .cmd-target-flag {transform:translate(-50%,2px);display:block;z-index:14;pointer-events:none;}
.world .cmd-target-flag .flag-pole,.world .cmd-target-flag::after {display:none;}
.world .cmd-target-flag b {display:block;background:#f5edcbe8;color:#6b6545;border:1px solid #fcf8de;border-radius:5px;font-size:9px;box-shadow:0 1px 3px #394e3633;}
.world .pet-avatar .action-bubble {top:-14px;bottom:auto;right:auto;left:50%;transform:translateX(-50%);font-size:10px;min-width:16px;padding:2px;}
.map-cell-hover {position:absolute;pointer-events:none;z-index:3;border:1px solid #fff4c4a6;background:#fff1ad1a;border-radius:5px;box-shadow:inset 0 0 0 2px #f9e6b526;transition:opacity .12s;}
.map-cell-hover[hidden] {display:none;}
.map-cell-hover[data-occupied=true] {border-color:#cce9be;background:#e1f3ca21;}
.game-dialog {width:min(350px,calc(100vw - 32px));box-sizing:border-box;padding:24px;border:1px solid #fff7dd;border-radius:20px;background:linear-gradient(145deg,#f7f4e9f5,#e7eddced);color:#3d5142;box-shadow:0 20px 70px #162c3544;backdrop-filter:blur(18px);}
.game-dialog::backdrop {background:#19372c50;backdrop-filter:blur(3px);}
.game-dialog h2 {font-size:17px;margin:10px 0;}
.game-dialog p {white-space:pre-line;font-size:12px;line-height:1.8;overflow-wrap:anywhere;}
.game-dialog-mark {width:32px;height:32px;padding:6px;background:#d7e3c7;border-radius:10px;box-sizing:border-box;}
.game-dialog-mark svg {width:100%;height:100%;}
.game-dialog-field {display:grid;gap:6px;font-size:11px;color:#748064;}
.game-dialog-field[hidden] {display:none;}
.game-dialog input {width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #afbfa3;border-radius:9px;background:#fffff5;color:#304b3b;font:inherit;font-size:14px;}
.game-dialog-actions {display:flex;justify-content:flex-end;gap:8px;margin-top:20px;}
.game-dialog-actions button {font-size:12px;padding:9px 18px;border-radius:9px;}

.game-dialog-actions button[type=submit] {border:1px solid #537453;background:#587655;color:#fffbed;box-shadow:0 2px 0 #3d593c;}
.game-dialog-actions button[type=submit]:hover {background:#688762;}
.game-dialog :focus-visible {outline:2px solid #bca66e;outline-offset:2px;}
#picnicBtn {font-size:11px;margin:3px 0 8px;background:#f5ecd566;border:1px solid #c7b88760;}

/* Small woodland labels, independent of the size of a map sprite. */
.world .world-object-tooltip,.world .monster-tooltip,.world .sched-ev-tooltip {
  max-width:180px;padding:5px 8px;border:1px solid #f5f0d875;border-radius:6px;
  background:#29483fe8;color:#f6f1dd;box-shadow:0 3px 9px #17332c25;
  font-family:inherit;font-weight:500;font-size:10px;line-height:1.4;text-shadow:none;
  backdrop-filter:blur(8px);pointer-events:none;
}
.world .world-object-tooltip {transform:translateX(calc(-50% + var(--tooltip-shift,0px)));bottom:calc(100% + 3px);text-align:left;}
.world .world-object-tooltip b {display:block;font-size:10px;font-weight:600;white-space:nowrap;}
.world .world-object-tooltip small {display:block;margin-top:1px;color:#d5ddc6;font-size:9px;font-weight:400;white-space:nowrap;}
.world .obj-level-sup {font-size:8px;padding:1px 3px;border-radius:4px;background:#29483fc4;color:#f6f1dd;box-shadow:none;}

/* A single responsive companion sheet replaces the cramped nested card grid. */
#petProfileModal .pet-profile-panel {
  width:min(372px,calc(100vw - 28px));min-width:0;max-width:none;
  max-height:calc(100dvh - 40px);padding:16px;border-radius:18px;
  display:flex;flex-direction:column;gap:0;overflow:hidden;
  background:linear-gradient(145deg,#f4f2e5e8,#e0e8d9de)!important;
}
#petProfileModal .panel-head {flex:0 0 auto;align-items:center;margin:0 0 10px;gap:12px;}
#petProfileTitle {font-size:14px;font-weight:650;line-height:1.4;letter-spacing:.02em;color:#355345;overflow-wrap:anywhere;}
#petProfileModal #closePetProfileBtn {width:28px;height:28px;min-height:28px;flex:0 0 28px;padding:6px;background:#faffef60;border:1px solid #6b806827;border-radius:50%;}
#petProfileBody {display:flex;flex-direction:column;align-items:stretch;gap:12px;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px;}
.companion-hero {display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:center;min-height:112px;}
#petProfileBody .profile-portrait {width:112px;height:112px;padding:0;margin:0;display:grid;place-items:center;align-self:center;}
#petProfileBody .profile-portrait .pixel-pet.pet-sprite-avatar.large {width:112px;height:112px;padding:0;min-width:0;background:none!important;border:0!important;box-shadow:none!important;filter:drop-shadow(0 5px 3px #52633c20);}
.companion-identity {min-width:0;}
.companion-eyebrow {font-size:9px;color:#83907a;letter-spacing:.13em;}
#petProfileBody .companion-identity h3 {margin:4px 0 8px;font-size:17px;line-height:1.35;color:#355345;overflow-wrap:anywhere;}
.companion-chips {display:flex;flex-wrap:wrap;gap:4px;font-size:10px;color:#66795f;}
.companion-chips>span {background:#f9f9ec68;border:1px solid #85927320;border-radius:5px;padding:3px 5px;line-height:1.3;white-space:nowrap;}
#petProfileBody .profile-family {margin-top:9px;gap:4px;}
#petProfileBody .profile-family-row {grid-template-columns:25px minmax(0,1fr);gap:5px;}
#petProfileBody .profile-family-row>span {font-size:9px;font-weight:500;text-align:left;color:#849078;}
#petProfileBody .profile-family-avatar {width:27px;height:27px;min-height:27px;padding:1px;background:#f9f9ec40!important;border:1px solid #81937522;border-radius:6px;}
.companion-facts {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:10px 12px;border-radius:10px;background:#fafff235;border:1px solid #7f937520;}
.companion-facts>div {min-width:0;display:flex;flex-direction:column;gap:3px;}
.companion-facts dt {font-size:10px;color:#7b8a70;}
.companion-facts dd {margin:0;font-size:12px;font-weight:550;line-height:1.5;word-break:normal;overflow-wrap:break-word;color:#425c49;}
.companion-facts .companion-owner {grid-column:1/-1;flex-direction:row;align-items:baseline;gap:12px;padding-top:7px;border-top:1px solid #8396771a;}
.companion-owner dt {flex:0 0 auto;}
.companion-owner dd {min-width:0;flex:1;}
#petProfileBody .profile-career-rarity {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
#petProfileBody .profile-career-rarity .detail-box {display:flex;align-items:center;justify-content:space-between;gap:5px;padding:8px 10px;min-height:0;border:1px solid #81937520;border-radius:8px;box-sizing:border-box;}
#petProfileBody .profile-career-rarity small {font-size:10px;white-space:nowrap;color:#7b8a70;}
#petProfileBody .profile-career-rarity b {font-size:11px;line-height:1.5;overflow-wrap:break-word;}
#petProfileBody .profile-rarity-badge b {color:var(--rarity-color,#56615e);}
#petProfileBody .profile-rarity-badge b .ui-icon {width:8px;height:8px;}
#petProfileBody .career-badge b>.ui-icon {display:none;}
.companion-vitals {display:grid;gap:9px;padding:2px 0;}
.companion-meter {display:grid;grid-template-columns:28px minmax(0,1fr) 76px;align-items:center;gap:9px;color:#6b7c64;font-size:10px;line-height:1.3;}
.companion-meter small {font-size:10px;text-align:right;font-variant-numeric:tabular-nums;color:#4c6653;white-space:nowrap;}
.companion-track {height:5px;background:#7488681c;border-radius:4px;overflow:hidden;}
.companion-track>i {display:block;height:100%;border-radius:4px;background:var(--meter-color);}
#petProfileBody .profile-inventory {padding:11px 0 1px;margin:0;border-top:1px solid #7f937525;gap:8px;}
#petProfileBody .profile-inventory .profile-label {font-size:10px;min-width:0;color:#7b8a70;}
#petProfileBody .profile-inventory .inv-slot {width:30px;height:30px;border:1px solid #81937530;background:#fafbee50;border-radius:8px;}
#petProfileBody .profile-inventory .inv-slot .map-art-sprite {width:25px;height:25px;}
#petProfileActions {display:flex;flex-wrap:wrap;gap:6px;padding-top:12px;margin:12px 0 0;border-top:1px solid #7f937525;flex-shrink:0;}
#petProfileActions:empty {display:none;}
#petProfileActions button {flex:1;min-height:32px;min-width:0;padding:6px 10px;font-size:11px;border-radius:8px;white-space:nowrap;}
#petProfileActions .primary {background:#55755b;color:#fffbed;border:1px solid #507052;}
#petProfileActions .ghost {background:#f5f5e945;color:#4c6953;border:1px solid #80937640;}
#petProfileActions .danger-btn {background:#c3917d14;color:#9d735e;border:1px solid #ac85722b;}
#petProfileBody .profile-death-layout {display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;}
@media(max-width:400px) {
  #petProfileModal .pet-profile-panel {padding:14px;}
  .companion-hero {grid-template-columns:92px minmax(0,1fr);gap:10px;min-height:96px;}
  #petProfileBody .profile-portrait,#petProfileBody .profile-portrait .pixel-pet.pet-sprite-avatar.large {width:92px;height:92px;}
  #petProfileActions button {min-height:38px;}
}

/* Portrait first; information becomes a quiet, compact caption. */
#petProfileModal .pet-profile-panel {width:min(348px,calc(100vw - 24px));padding:13px;}
#petProfileModal .panel-head {margin-bottom:2px;}
#petProfileTitle {font-size:12px;}
#petProfileBody {gap:8px;}
#petProfileBody > * {flex-shrink:0;}
.companion-hero {display:flex;flex-direction:column;gap:0;min-height:0;}
#petProfileBody .profile-portrait,#petProfileBody .profile-portrait .pixel-pet.pet-sprite-avatar.large {width:184px;height:184px;flex-shrink:0;}
.companion-eyebrow {display:none;}
.companion-identity {width:100%;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;}
#petProfileBody .companion-identity h3 {font-size:11px;margin:0;font-weight:550;}
.companion-chips {gap:3px;font-size:9px;}
.companion-chips>span {padding:2px 4px;background:#fcffef30;border-color:transparent;}
.companion-facts {grid-template-columns:1fr 1fr 1.25fr;padding:7px 9px;gap:8px;background:#fafff21a;border-color:#81937515;border-radius:7px;}
.companion-facts>div {gap:2px;}
.companion-facts dt {font-size:9px;}
.companion-facts dd {font-size:10px;line-height:1.4;font-weight:500;}
.companion-facts .companion-owner {grid-column:auto;flex-direction:column;padding:0;border:0;gap:2px;}
#petProfileBody .profile-career-rarity .detail-box {padding:4px 7px;background:transparent!important;border:0;}
#petProfileBody .profile-career-rarity small,#petProfileBody .profile-career-rarity b {font-size:9px;}
.companion-vitals {gap:7px;padding:0 7px;}
.companion-meter {grid-template-columns:24px minmax(0,1fr) 70px;font-size:9px;gap:7px;}
.companion-meter small {font-size:9px;}
.companion-track {height:4px;}
#petProfileBody .profile-inventory {padding:7px 4px 0;gap:7px;}
#petProfileBody .profile-inventory .profile-label {font-size:9px;}
#petProfileBody .profile-inventory .inv-slot {width:25px;height:25px;border-color:transparent;background:#fcffef30;}
#petProfileBody .profile-inventory .inv-slot .map-art-sprite {width:23px;height:23px;}
#petProfileActions {margin-top:8px;padding-top:8px;}
#petProfileActions button {font-size:10px;min-height:32px;padding:5px 8px;}
.companion-play-actions {display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:6px 0 0;}
.companion-play-actions[hidden] {display:none;}
.companion-play-actions button {flex:1;border:1px solid #7d94632e;background:#fcffed40;color:#57704d;border-radius:7px;font-size:10px;min-height:29px;padding:4px 7px;}
.companion-play-actions small {width:100%;text-align:center;font-size:8px;color:#8b947d;}
.companion-moment .pet-sprite-avatar {animation:companion-hop .85s ease-in-out;}
.world .map-fx.fx-play {width:38px;height:38px;border:1px dashed #d8e9ac;background:#c9e1a619;border-radius:50%;animation:refined-impact .85s ease-out both;}
@keyframes companion-hop {0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-8px) rotate(-4deg)}55%{transform:translateY(0) rotate(3deg)}75%{transform:translateY(-3px)}}

/* One social network, with details in a viewport-clamped hover/focus card. */
#relationships {display:block;}
.social-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:3px 0 12px;}
.social-heading b {font-size:11px;font-weight:550;}
.social-heading small,.social-empty {font-size:9px;color:#829078;}
.social-portraits {display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:9px 5px;}
.social-portrait-btn {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:0;padding:3px!important;border:1px solid transparent!important;background:transparent!important;box-shadow:none!important;border-radius:8px!important;}
.social-portrait-btn:hover,.social-portrait-btn:focus-visible {background:#ffffe62b!important;border-color:#a0b18354!important;}
.social-portrait-btn .pixel-pet.pet-sprite-avatar.tiny {width:38px!important;height:38px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;}
.social-portrait-btn>span:not(.pixel-pet) {font-size:9px;line-height:1.4;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5c7054;}
.social-portrait-btn.departed .pet-sprite-avatar {filter:grayscale(1);opacity:.6;}
.profile-social {display:flex;align-items:center;gap:8px;padding:2px 6px;min-width:0;}
.profile-social>span {font-size:9px;color:#7e8e70;flex:0 0 auto;}
.social-portraits.compact {display:flex;gap:3px;overflow-x:auto;scrollbar-width:thin;min-width:0;}
.compact .social-portrait-btn {flex:0 0 auto;min-height:0!important;}
.compact .social-portrait-btn .pixel-pet.pet-sprite-avatar.tiny {width:28px!important;height:28px!important;}
.social-peek {position:fixed;z-index:1500;width:190px;max-width:calc(100vw - 16px);box-sizing:border-box;padding:12px;border:1px solid #ffffe8b3;border-radius:12px;background:#eaf0dedf;backdrop-filter:blur(16px);box-shadow:0 8px 26px #253d3026;color:#455d43;display:flex;flex-direction:column;gap:5px;font-size:11px;animation:social-peek-in .14s ease-out;}
.social-peek>strong {font-size:12px;overflow-wrap:anywhere;}
.social-peek>span {font-size:11px;}
.social-peek>small,.social-peek>p {font-size:9px;color:#89916c;margin:0;}
.social-peek>p:empty {display:none;}
.social-peek>div {display:flex;gap:6px;margin-top:4px;}
.social-peek button {flex:1;padding:5px 8px;border-radius:6px;font-size:10px;background:#fffde637;border:1px solid #97a58048;color:#4f6950;box-shadow:none;}
@keyframes social-peek-in {from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}

.cmd-menu.map-quick-menu {width:268px;min-width:0;max-width:calc(100vw - 16px);border-radius:12px;padding:8px;overflow:auto;max-height:calc(100dvh - 16px);}
.map-quick-menu .cmd-menu-head {background:none!important;padding:1px 2px 6px;font-size:10px;min-height:0;border:0;}
.map-quick-menu .cmd-menu-close {width:24px;height:24px;min-height:24px;padding:5px;}
.map-location-summary {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 4px 11px;font-size:10px;}
.map-location-summary strong {font-size:11px;font-weight:550;}
.map-location-summary span {color:#879374;font-size:9px;}
.map-quick-menu .target-action-list {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;}
.map-quick-action {display:flex;align-items:center;flex-direction:column;gap:6px;min-width:0;padding:10px 3px 8px!important;border:1px solid #8c9d6a2e;background:#f7fae63d;border-radius:8px;box-shadow:none;}
.map-quick-action>.ui-icon {width:17px;height:17px;color:#69845d;}
.map-quick-action>b {font-size:11px;font-weight:550;}
.map-quick-action>small {font-size:8px;line-height:1.5;color:#879071;}
.map-quick-note {font-size:8px!important;line-height:1.6!important;color:#8b9679;margin:8px 3px 1px;}

/* A single leaf points at its tip; clicks briefly release three tiny leaves. */
.cursor-ripple {width:8px;height:8px;margin:-4px;border:0;box-shadow:none;border-radius:0;animation:leaf-click-fade .6s ease-out both;}
.cursor-ripple>i {position:absolute;inset:0;border-radius:0 80% 20% 80%;background:#d5e2a8bf;border:1px solid #faf2c077;transform-origin:center;animation:leaf-click-flutter .6s ease-out both;}
@keyframes leaf-click-fade {0%,70%{opacity:1}100%{opacity:0}}
@keyframes leaf-click-flutter {from{transform:translate(0,0) rotate(calc(var(--leaf-index)*90deg)) scale(.4)}to{transform:translate(calc((var(--leaf-index) - 1)*14px),-20px) rotate(calc(var(--leaf-index)*125deg + 40deg)) scale(.7)}}

/* Weather lives on the viewport; animations use only opacity and transforms. */
#weatherParticles::before,#weatherParticles::after {content:'';position:absolute;inset:0;opacity:0;pointer-events:none;}
#weatherParticles[data-weather=sunny]::before,#weatherParticles[data-weather=sunshower]::before {background:linear-gradient(125deg,transparent 18%,#fff7ce2b 22%,transparent 31%,#fff9d618 44%,transparent 56%);animation:woodland-rays 14s ease-in-out infinite;}
#weatherParticles[data-weather=rainbow]::before {inset:8% -10% auto 15%;height:60%;border-radius:50%;background:radial-gradient(ellipse at 50% 100%,transparent 53%,#a1d8c023 55%,#a5c7f52b 57%,#e4bded26 59%,#eed89f2e 61%,transparent 64%);animation:woodland-rays 12s ease-in-out infinite;}
#weatherParticles[data-weather=storm]::after {background:#d8e7ff;animation:distant-lightning 13s linear infinite;}
.weather-particle.pollen,.weather-particle.dew {width:3px;height:3px;border-radius:50%;background:#fff9cf88;box-shadow:0 0 4px #f8e9ad38;animation:woodland-pollen ease-in-out infinite;}
.weather-particle.dew {background:#eaffed9c;}
.weather-particle.sunrain {width:1px;height:12px;background:linear-gradient(transparent,#fff3bd94);animation:wpRain linear infinite;}
.weather-particle.leaf {width:7px;height:4px;border-radius:0 80% 20% 80%;background:#c8ad6f94;animation:woodland-leaf linear infinite;}
.weather-particle.leaf:nth-child(3n) {background:#d8c58d88;width:5px;height:3px;}
@keyframes woodland-rays {0%,100%{opacity:.25;transform:translateX(-2%)}50%{opacity:.7;transform:translateX(2%)}}
@keyframes woodland-pollen {0%,100%{opacity:0;transform:translate(0,12px)}30%,70%{opacity:.7}100%{transform:translate(var(--drift),-35px)}}
@keyframes woodland-leaf {from{transform:translate(0,-10vh) rotate(var(--leaf-turn));opacity:0}12%,80%{opacity:.7}to{transform:translate(var(--drift),110vh) rotate(calc(var(--leaf-turn) + 240deg));opacity:0}}
@keyframes distant-lightning {0%,79%,83%,100%{opacity:0}81%{opacity:.12}}
body.page-hidden #weatherParticles::before,body.page-hidden #weatherParticles::after {animation-play-state:paused!important;}
@media(prefers-reduced-motion:reduce) {#weatherParticles::before,#weatherParticles::after,.companion-moment .pet-sprite-avatar,.social-peek {animation:none!important;}#weatherParticles::before,#weatherParticles::after{display:none;}}
@media(max-width:400px) {#petProfileBody .profile-portrait,#petProfileBody .profile-portrait .pixel-pet.pet-sprite-avatar.large{width:172px;height:172px;}#petProfileActions button{min-height:36px;}}
