.translation-note-trigger {
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid #705199;
  background:#2a2035;
  color:#dbc8ef;
  font-weight:900;
  cursor:pointer
}

.translation-note-trigger[hidden] {
  display:none
}

.translation-note-dialog {
  max-width:560px
}

.translation-note-dialog h2 {
  margin-top:0
}

.translation-note-dialog p {
  color:var(--muted);
  line-height:1.6
}

.event-v2-shell {
  height:min(88vh,860px);
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
  overflow:hidden
}

.event-v2-headbar {
  padding:16px 20px
}

.event-v2-controls {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap
}

.event-v2-controls .event-activate-btn {
  margin:0
}

.event-v2-controls .check {
  margin:0;
  padding:7px 9px;
  border:1px solid #5b466b;
  background:#1b1622;
  border-radius:9px;
  font-size:11px
}

.event-reserved-farms {
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
  padding:6px 8px;
  border:1px solid #5b466b;
  background:#191520;
  border-radius:9px;
  font-size:10px;
  color:#c6b8d3
}

.event-reserved-farms input {
  width:52px;
  margin:0;
  padding:5px 6px;
  text-align:center;
  font-size:14px;
  font-weight:800
}

.event-v2-tabs {
  overflow-x:auto;
  white-space:nowrap;
  scrollbar-width:thin
}

.event-v2-body {
  min-height:0;
  overflow:auto;
  max-height:none
}

.event-v2-card {
  padding:14px;
  border:1px solid var(--line);
  background:linear-gradient(145deg,#172430,#14202a);
  border-radius:13px
}

.event-v2-card h2 {
  margin:0 0 7px;
  font-size:22px
}

.event-v2-card p {
  color:#c8d5dc
}

.event-gold-note {
  padding:10px 11px;
  border:1px solid #795f2d;
  background:#2b2515;
  border-radius:10px;
  color:#f3d98c
}

.event-ratio-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  margin:11px 0
}

.event-ratio-grid>div {
  padding:9px 10px;
  border:1px solid #5e4b2d;
  background:#2a2417;
  border-radius:10px
}

.event-ratio-grid b,.event-ratio-grid strong,.event-ratio-grid small,.event-ratio-grid span {
  display:block
}

.event-ratio-grid strong {
  font-size:20px;
  color:#f1d373
}

.event-ratio-grid small {
  color:#c5ae72;
  font-size:9px
}

.event-ratio-grid span {
  margin-top:4px;
  color:#aebbc3;
  font-size:9px
}

.event-guide-steps {
  display:grid;
  gap:7px;
  padding-left:24px
}

.event-guide-steps li {
  padding:8px 9px;
  border:1px solid #344856;
  background:#16232d;
  border-radius:9px
}

.event-reset-note,.event-path,.event-moondew-note {
  margin-top:10px;
  padding:10px 11px;
  border:1px solid #665075;
  background:#231a2c;
  border-radius:10px;
  color:#d9c9e6
}

.event-guide-footer {
  margin-top:12px;
  padding:10px 11px;
  border:1px solid #384b59;
  background:#131f28;
  border-radius:10px
}

.event-guide-footer p {
  margin:0;
  font-size:12px
}

.event-guide-footer p+p {
  margin-top:7px
}

.event-v2-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:end
}

.event-v2-head h2,.event-v2-head h3 {
  margin:0
}

.event-v2-head p {
  margin:2px 0 0;
  color:var(--muted);
  font-size:11px
}

.event-v2-head>strong {
  padding:5px 9px;
  border-radius:999px;
  background:#38244b;
  color:#e5caf8;
  font-size:11px
}

.event-crop-points {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
  margin:10px 0
}

.event-crop-points>div {
  padding:8px 9px;
  border:1px solid #354956;
  background:#15232e;
  border-radius:9px
}

.event-crop-points b,.event-crop-points span {
  display:block
}

.event-crop-points span {
  font-size:9px;
  color:#aabac4
}

.event-mutation-section {
  margin-top:15px
}

.event-mutation-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-top:9px
}

.event-mutation-card {
  position:relative;
  padding:8px;
  border:1px solid #394d5b;
  background:#172430;
  border-radius:12px;
  text-align:center;
  cursor:pointer
}

.event-mutation-card.owned {
  border-color:#4c8c6a;
  background:#153127
}

.event-mutation-card img {
  display:block;
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain
}

.event-mutation-card span {
  position:absolute;
  display:none;
  right:12px;
  top:12px;
  width:28px;
  height:28px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#238255;
  color:#fff;
  font-weight:900
}

.event-mutation-card.owned span {
  display:flex
}

.event-mutation-card b {
  font-size:10px
}

.event-v2-stats {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px
}

.event-v2-stats>div {
  padding:9px 10px;
  border:1px solid var(--line);
  background:#172430;
  border-radius:10px
}

.event-v2-stats small,.event-v2-stats b {
  display:block
}

.event-v2-stats small {
  font-size:9px;
  color:var(--muted)
}

.event-v2-unlock-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px
}

.event-v2-unlock-card {
  display:grid;
  grid-template-columns:58px 1fr;
  gap:9px;
  align-items:center;
  padding:8px;
  border:1px solid #394b59;
  border-radius:10px;
  background:#172430;
  cursor:pointer
}

.event-v2-unlock-card.owned {
  border-color:#386253;
  background:#153027
}

.event-v2-unlock-image {
  position:relative
}

.event-v2-unlock-image>img {
  width:52px;
  height:52px;
  object-fit:contain
}

.event-v2-unlock-image span,.event-v2-furniture>div>span {
  position:absolute;
  display:none;
  right:0;
  top:0;
  width:30px;
  height:30px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#238255;
  color:#fff;
  font-weight:900
}

.event-v2-unlock-card.owned span,.event-v2-furniture.owned span {
  display:flex
}

.event-v2-unlock-card small,.event-v2-unlock-card em,.event-v2-furniture em {
  display:block;
  font-size:9px;
  color:var(--muted);
  font-style:normal
}

.event-v2-furniture-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px
}

.event-v2-furniture {
  padding:7px;
  border:1px solid #394b59;
  border-radius:10px;
  background:#172430;
  cursor:pointer;
  text-align:center
}

.event-v2-furniture.owned {
  border-color:#386253;
  background:#153027
}

.event-v2-furniture>div {
  position:relative
}

.event-v2-furniture img {
  display:block;
  width:100%;
  aspect-ratio:275/350;
  object-fit:cover;
  object-position:top;
  border-radius:7px
}

.event-v2-furniture b {
  display:block;
  font-size:10px;
  line-height:1.2;
  margin:5px 0
}

.event-locked-date {
  min-height:360px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center
}

.event-locked-date small {
  color:#bda8cd;
  text-transform:uppercase;
  letter-spacing:.12em
}

.event-locked-date b {
  font-size:26px;
  margin-top:5px
}

.aniimo-needed-card {
  padding:0;
  overflow:hidden;
  cursor:pointer
}

.aniimo-needed-card .worker-ability {
  padding:10px 11px;
  border-bottom:1px solid var(--line);
  border-top:3px solid var(--ability-color)
}

.aniimo-needed-jobs {
  display:grid
}

.aniimo-needed-job {
  display:grid;
  grid-template-columns:minmax(120px,1fr) auto;
  gap:8px;
  align-items:center;
  padding:8px 9px;
  border-top:1px solid rgba(255,255,255,.05)
}

.aniimo-needed-job:first-child {
  border-top:0
}

.aniimo-needed-job-info b,.aniimo-needed-job-info small {
  display:block
}

.aniimo-needed-job-info b {
  font-size:11px;
  color:#edf5fa
}

.aniimo-needed-job-info small {
  font-size:9px;
  color:var(--muted);
  margin-top:2px
}

.aniimo-mini-list {
  display:flex;
  gap:4px
}

.aniimo-needed-pet {
  width:45px;
  border:0;
  background:transparent;
  color:white;
  padding:2px;
  cursor:pointer
}

.aniimo-needed-pet img {
  display:block;
  width:39px;
  height:39px;
  object-fit:cover;
  border-radius:10px;
  background:#0d1720;
  border:1px solid rgba(255,255,255,.14)
}

.aniimo-needed-pet small {
  display:block;
  font-size:8px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-top:2px
}

.aniimo-needed-pet.prismana img {
  box-shadow:0 0 0 2px #d06bea,0 0 10px #cd5ee966
}

.aniimo-any-note {
  max-width:170px;
  text-align:right
}

.aniimo-needed-dialog {
  width:min(980px,calc(100vw - 24px));
  max-height:90vh;
  padding:0
}

.aniimo-needed-dialog-head {
  position:sticky;
  top:0;
  z-index:3;
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background:#101f2bf2
}

.aniimo-needed-dialog-head h2 {
  flex:1;
  margin:0
}

#aniimo-needed-dialog-body {
  padding:14px
}

.aniimo-expanded-jobs {
  display:grid;
  gap:9px
}

.aniimo-expanded-job {
  display:grid;
  grid-template-columns:minmax(170px,220px) 1fr;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  background:#142532;
  border-radius:11px
}

.aniimo-expanded-job b,.aniimo-expanded-job small {
  display:block
}

.aniimo-expanded-job small {
  font-size:10px;
  color:var(--muted)
}

.aniimo-expanded-pets {
  display:flex;
  flex-wrap:wrap;
  gap:5px
}

.aniimo-needed-pet.expanded {
  width:62px
}

.aniimo-needed-pet.expanded img {
  width:54px;
  height:54px
}

.aniimo-detail {
  display:grid;
  grid-template-columns:230px 1fr;
  gap:16px
}

.aniimo-detail-image {
  padding:10px;
  border:1px solid var(--line);
  background:#142532;
  border-radius:13px
}

.aniimo-detail-image img {
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain;
  border-radius:10px
}

.aniimo-detail-title {
  display:flex;
  gap:7px;
  align-items:center;
  flex-wrap:wrap
}

.aniimo-detail-title h2 {
  margin:0;
  font-size:28px
}

.prismana-tag,.legendary-tag {
  padding:3px 7px;
  border-radius:999px;
  font-size:10px
}

.prismana-tag {
  background:#5b2b6d;
  color:#f7dcff
}

.legendary-tag {
  background:#6f5f2a;
  color:#ffefad
}

.aniimo-acquisition {
  margin:10px 0;
  padding:9px 10px;
  border:1px solid var(--line);
  background:#152735;
  border-radius:9px
}

.aniimo-acquisition small,.aniimo-acquisition b {
  display:block
}

.aniimo-acquisition small {
  color:var(--muted)
}

.aniimo-traits {
  display:flex;
  gap:6px;
  flex-wrap:wrap
}

.aniimo-trait-chip {
  display:inline-flex;
  gap:5px;
  align-items:center;
  padding:5px 8px;
  border:1px solid var(--trait-color);
  background:#152735;
  border-radius:999px
}

.aniimo-trait-chip img {
  width:17px;
  height:17px
}

.aniimo-evolution {
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line)
}

.aniimo-evo-row {
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr;
  gap:8px;
  align-items:center
}

.aniimo-evo-row>div {
  display:flex;
  justify-content:center;
  gap:6px;
  flex-wrap:wrap
}

.aniimo-evo-row button,.aniimo-evo-row .current {
  width:112px;
  border:1px solid var(--line);
  background:#142735;
  color:white;
  border-radius:10px;
  padding:7px;
  text-align:center
}

.aniimo-evo-row .current {
  outline:2px solid #8653b8
}

.aniimo-evo-row img {
  width:74px;
  height:74px;
  object-fit:contain
}

.aniimo-evo-row b {
  display:block;
  font-size:11px
}

@media(max-width:820px) {
  .event-v2-controls {
    margin-left:0;
    width:100%
  }
  .event-dialog-head.event-v2-headbar {
    align-items:flex-start;
    flex-wrap:wrap
  }
  .event-ratio-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .event-crop-points {
    grid-template-columns:repeat(2,1fr)
  }
  .event-mutation-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .event-v2-furniture-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .event-v2-stats {
    grid-template-columns:repeat(2,1fr)
  }
  .aniimo-needed-job {
    grid-template-columns:1fr
  }
  .aniimo-mini-list {
    justify-content:flex-start
  }
  .aniimo-expanded-job {
    grid-template-columns:1fr
  }
  .aniimo-detail {
    grid-template-columns:1fr
  }
  .aniimo-detail-image {
    max-width:280px;
    margin:auto
  }
  .aniimo-evo-row {
    grid-template-columns:1fr
  }
  .aniimo-evo-row>span {
    display:none
  }
}

.facility-price-dialog {
  width:min(1040px,calc(100vw - 24px));
}

.facility-price-columns {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  padding:0 18px 18px;
}

.facility-price-column {
  min-width:0;
  overflow:hidden;
  border:1px solid #334b5c;
  border-radius:12px;
  background:#101f2a;
}

.facility-price-column-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid #334b5c;
  background:#162a38;
}

.facility-price-column-head span {
  color:#b7c8d3;
  font-size:11px;
  font-weight:800;
}

.facility-price-column-head b {
  color:#d9b7f2;
  font-size:16px;
}

.facility-price-column .facility-price-list {
  padding:10px;
}

.facility-price-column .facility-price-total {
  margin:0 10px 10px;
}

.facility-price-row.important-upgrade {
  border-color:#9b7832;
  background:linear-gradient(135deg,#2a2415,#172630);
  box-shadow:inset 3px 0 0 #d9b64f;
}

.important-upgrade-badge {
  display:inline-block;
  margin-left:6px;
  padding:2px 5px;
  border-radius:999px;
  background:#5c4616;
  color:#ffe18a;
  font-size:8px;
  font-style:normal;
  font-weight:900;
  letter-spacing:.04em;
  vertical-align:2px;
}

@media(max-width:760px) {
  .facility-price-columns {
    grid-template-columns:1fr;
    padding:0 10px 12px;
  }
  .facility-price-dialog {
    width:min(96vw,680px);
  }
}

/* v2.0.1 bugfix polish */
.translation-note-trigger {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 28px;
  padding:0;
  line-height:1;
  box-sizing:border-box;
  vertical-align:middle;
}

/* Event recipe opt-in should read as an intentional control, not a loose checkbox. */
.event-v2-controls .check.switch {
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:38px;
  margin:0;
  padding:7px 11px;
  border:1px solid #5b466b;
  border-radius:10px;
  background:#191520;
  color:#dccdeb;
  font-size:11px;
  font-weight:750;
  line-height:1.25;
  cursor:pointer;
}
.event-v2-controls .check.switch:hover {
  border-color:#8d62bb;
  background:#21182b;
}
.event-v2-controls .check.switch input:disabled ~ span,
.event-v2-controls .check.switch:has(input:disabled) {
  opacity:.55;
  cursor:not-allowed;
}

/* worker-card already owns the colored top rail; avoid the duplicate rail on Aniimo Needed cards */
.aniimo-needed-card .worker-ability {
  border-top:0 !important;
}

/* Consistent, visible close affordance across dialogs. */
.close,
.event-dialog-close,
.order-close {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  min-width:38px;
  padding:0 !important;
  border:1px solid rgba(255,116,116,.42) !important;
  border-radius:8px !important;
  background:#7d2630 !important;
  color:#fff !important;
  font-size:28px !important;
  font-weight:800;
  line-height:1 !important;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}
.close:hover,
.event-dialog-close:hover,
.order-close:hover {
  background:#9b313c !important;
  border-color:#ff9aa2 !important;
}

.kofi-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  flex:0 0 36px;
  margin-left:8px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:9px;
  background:#ff5e5b;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
  transition:transform .15s ease,filter .15s ease;
}
.kofi-button:hover { transform:translateY(-1px); filter:brightness(1.06); }
.kofi-button svg { width:23px; height:23px; fill:#fff; display:block; }

@media (max-width:760px) {
  .kofi-button { width:32px; height:32px; flex-basis:32px; margin-left:4px; }
  .kofi-button svg { width:20px; height:20px; }
}

.event-recipe-warning-dialog {
  width:min(520px,calc(100vw - 28px));
  max-width:520px;
  padding:24px 24px 20px;
  border:1px solid #72518d;
  border-radius:16px;
  background:linear-gradient(160deg,#1c2630,#171c25 65%,#211829);
  color:#eef5f7;
  box-shadow:0 24px 70px rgba(0,0,0,.55);
}
.event-recipe-warning-dialog::backdrop { background:rgba(2,8,13,.76); backdrop-filter:blur(3px); }
.event-recipe-warning-dialog h2 { margin:0 46px 8px 0; font-size:22px; }
.event-recipe-warning-dialog p { margin:0; color:#c7d1d8; line-height:1.55; }
.event-recipe-warning-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  margin-bottom:12px;
  border-radius:11px;
  background:#5c3d19;
  border:1px solid #c79245;
  color:#ffd58d;
  font-size:24px;
  font-weight:900;
}
.event-recipe-warning-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:20px; flex-wrap:wrap; }
.event-recipe-warning-actions button { min-height:40px; }

/* 2.0.2 dialog + Aniimo Needed polish */
.close,
.advanced-dialog-close,
.event-dialog-close,
.order-close {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  min-width:34px;
  padding:0!important;
  border:1px solid rgba(255,126,139,.28)!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,rgba(125,44,57,.78),rgba(84,29,40,.78))!important;
  color:#ffe4e7!important;
  font-size:23px!important;
  font-weight:750;
  line-height:1!important;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 4px 12px rgba(0,0,0,.18);
  transition:background .15s ease,border-color .15s ease,transform .15s ease,box-shadow .15s ease;
}
.close:hover,
.advanced-dialog-close:hover,
.event-dialog-close:hover,
.order-close:hover {
  background:linear-gradient(180deg,rgba(154,52,68,.94),rgba(109,35,49,.94))!important;
  border-color:rgba(255,157,167,.58)!important;
  transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 6px 16px rgba(0,0,0,.24);
}
.close:active,
.advanced-dialog-close:active,
.event-dialog-close:active,
.order-close:active { transform:translateY(0); }

.aniimo-needed-dialog-head .close,
.advanced-setup-head .advanced-dialog-close,
.event-dialog-head .event-dialog-close,
.order-panel .order-close {
  position:static!important;
  top:auto!important;
  right:auto!important;
  flex:0 0 34px;
  margin:0!important;
}

#recipe>.close,
.event-recipe-warning-dialog>.close {
  position:absolute;
  top:12px;
  right:12px;
  z-index:5;
}
.feature-help-dialog>.close,
.facility-price-dialog>.close {
  width:34px;
  height:34px;
  min-width:34px;
}

.aniimo-simple-meta {
  display:flex!important;
  align-items:center;
  gap:6px;
  min-height:22px;
}
.aniimo-simple-meta>span:last-child {
  white-space:nowrap;
}
.personality-icon-only {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  flex:0 0 22px;
  border-radius:7px;
  background:rgba(153,99,205,.12);
  border:1px solid rgba(190,148,230,.18);
}
.personality-icon-only .personality-icon {
  width:20px;
  height:20px;
}
.aniimo-simple-any {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:20px;
  padding:0 5px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  background:#182a36;
  color:#aebfca;
  font-size:8px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.aniimo-expanded-jobs {
  gap:12px;
}
.aniimo-expanded-job {
  display:grid;
  grid-template-columns:minmax(210px,250px) minmax(0,1fr);
  gap:0;
  align-items:stretch;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(123,151,169,.28);
  border-top:3px solid var(--ability-color);
  background:linear-gradient(145deg,#152735,#101d27);
  border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.16);
}
.aniimo-expanded-job-meta {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
  padding:15px 14px;
  border-right:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,0));
}
.aniimo-expanded-role {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.aniimo-expanded-role b {
  color:#f1f6f9;
  font-size:13px;
  line-height:1.3;
}
.aniimo-expanded-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:35px;
  height:27px;
  padding:0 7px;
  border-radius:8px;
  color:#fff;
  font-size:12px;
  font-weight:900;
  background:color-mix(in srgb,var(--ability-color) 38%,#172530);
  border:1px solid color-mix(in srgb,var(--ability-color) 62%,transparent);
}
.aniimo-expanded-meta {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.aniimo-meta-pill {
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:27px;
  padding:3px 8px;
  border:1px solid rgba(188,151,224,.2);
  border-radius:999px;
  background:rgba(138,83,183,.1);
  color:#dcd0e9;
  font-size:10px;
  font-weight:700;
}
.aniimo-meta-pill .personality-inline {
  gap:5px;
  font-size:10px;
}
.aniimo-meta-pill .personality-icon {
  width:18px;
  height:18px;
}
.aniimo-meta-pill.trait-pill {
  border-color:rgba(132,174,198,.2);
  background:rgba(70,123,150,.1);
  color:#dceaf1;
}
.aniimo-meta-pill.family-pill {
  border-color:rgba(218,178,99,.22);
  background:rgba(145,104,39,.12);
  color:#f2d79d;
}
.aniimo-meta-pill.muted-pill {
  border-color:rgba(255,255,255,.09);
  background:rgba(255,255,255,.035);
  color:#aebfc9;
}
.aniimo-expanded-pets {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(82px,1fr));
  gap:8px;
  align-content:center;
  padding:12px;
}
.aniimo-needed-pet.expanded {
  position:relative;
  width:auto;
  min-width:0;
  min-height:98px;
  padding:8px 6px 7px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:linear-gradient(180deg,#192d3b,#12222d);
  box-shadow:0 4px 12px rgba(0,0,0,.12);
  transition:transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
.aniimo-needed-pet.expanded:hover {
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--ability-color,#8c72d8) 55%,rgba(255,255,255,.18));
  background:linear-gradient(180deg,#1d3444,#142734);
  box-shadow:0 7px 18px rgba(0,0,0,.2);
}
.aniimo-needed-pet.expanded img {
  width:58px;
  height:58px;
  margin:0 auto;
  object-fit:cover;
  border-radius:12px;
  background:#0d1720;
  border:1px solid rgba(255,255,255,.13);
}
.aniimo-needed-pet.expanded small {
  margin-top:5px;
  font-size:9px;
  line-height:1.15;
  color:#e7f0f5;
}
.aniimo-pet-level {
  position:absolute;
  z-index:2;
  top:5px;
  right:5px;
  display:inline-flex;
  align-items:center;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  background:#0b151ddd;
  border:1px solid rgba(255,255,255,.15);
  color:#eef7fb;
  font-size:8px;
  font-weight:900;
  box-shadow:0 2px 6px rgba(0,0,0,.25);
}
.aniimo-needed-pet.expanded.prismana {
  border-color:rgba(216,99,238,.36);
  background:linear-gradient(180deg,rgba(82,42,97,.48),#152532 62%);
}
.aniimo-needed-pet.expanded.legendary:not(.prismana) {
  border-color:rgba(222,185,92,.34);
}
.aniimo-expanded-empty {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:88px;
  padding:14px;
  color:#aebfc9;
  font-size:11px;
  text-align:center;
}

.aniimo-detail {
  gap:20px;
}
.aniimo-detail-image {
  position:relative;
  padding:14px;
  border:1px solid rgba(144,166,180,.25);
  background:radial-gradient(circle at 50% 35%,rgba(137,100,184,.14),transparent 62%),linear-gradient(180deg,#172a38,#101d27);
  border-radius:16px;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}
.aniimo-detail-image img {
  border-radius:13px;
}
.aniimo-detail>div:last-child {
  min-width:0;
  padding:2px 0;
}
.aniimo-detail-title {
  padding-bottom:10px;
  margin-bottom:2px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.aniimo-acquisition {
  margin:12px 0 15px;
  padding:11px 12px;
  border-color:rgba(125,151,168,.22);
  background:linear-gradient(180deg,#172b39,#13242f);
  border-radius:11px;
}
.aniimo-traits {
  gap:7px;
}
.aniimo-trait-chip {
  min-height:32px;
  padding:5px 9px;
  border-color:color-mix(in srgb,var(--trait-color) 55%,rgba(255,255,255,.08));
  background:color-mix(in srgb,var(--trait-color) 9%,#142631);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.aniimo-evolution {
  margin-top:17px;
  padding-top:15px;
}
.aniimo-evo-row button,
.aniimo-evo-row .current {
  border-color:rgba(128,151,166,.24);
  background:linear-gradient(180deg,#172c3a,#12232e);
  transition:transform .15s ease,border-color .15s ease;
}
.aniimo-evo-row button:hover {
  transform:translateY(-1px);
  border-color:rgba(166,126,209,.48);
}

@media(max-width:820px) {
  .aniimo-expanded-job {
    grid-template-columns:1fr;
  }
  .aniimo-expanded-job-meta {
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.06);
  }
  .aniimo-expanded-pets {
    grid-template-columns:repeat(auto-fill,minmax(76px,1fr));
  }
}
/* 2.0.2 close control final pass: compact square, no clipping, calm focus ring. */
.close,
.advanced-dialog-close,
.event-dialog-close,
.order-close {
  min-height:34px!important;
  max-height:34px;
  border-radius:9px!important;
}
.close:focus-visible,
.advanced-dialog-close:focus-visible,
.event-dialog-close:focus-visible,
.order-close:focus-visible {
  outline:2px solid rgba(244,126,139,.52)!important;
  outline-offset:2px;
}
