/* 2D 반려캐릭 기능은 이 파일과 dog-companion.js, data-dog-feature 마크업으로 분리됩니다. */
body.dog-modal-open { overflow: hidden; }
.dog-feature-on .market-shopping-header .nav-inner { grid-template-columns: minmax(0, 1fr) auto; }
.dog-feature-on .hero-layout {
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  align-items: start;
  gap: 12px;
}

.dog-item-nav {
  flex: 0 0 auto;
  align-self: center;
  margin-left: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #182234;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.dog-item-nav:hover { color: #0b7d55; }

.dog-hero-slot { position: relative; min-width: 0; align-self: start; }
.dog-mini-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 174px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d3e6dc;
  border-radius: 9px;
  background: #edf8f3;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgb(36 90 64 / .08);
}
.dog-mini-card:focus-visible { outline: 3px solid #1d75ea; outline-offset: 2px; }
.dog-mini-room {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #dcefe6 url('/assets/dog-companion/dog-room-v1.webp') center 63% / cover no-repeat;
}
.dog-mini-room::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgb(11 68 46 / .18));
  pointer-events: none;
}
.dog-call-prompt,
.dog-call-placeholder {
  position: absolute;
  z-index: 4;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 5px;
  transform: translateX(-50%);
  color: #155f46;
  text-align: center;
}
.dog-call-prompt { top: 50%; width: 90%; transform: translate(-50%, -50%); }
.dog-call-prompt b { font-size: 24px; animation: dogCallPulse 1.8s ease-in-out infinite; }
.dog-call-prompt strong { padding: 6px 10px; border-radius: 15px; background: rgb(255 255 255 / .88); font-size: 11px; }
.dog-call-placeholder { top: 50%; width: min(78%, 330px); transform: translate(-50%, -50%); }
.dog-call-placeholder b { font-size: 44px; animation: dogCallPulse 1.8s ease-in-out infinite; }
.dog-call-placeholder strong { font-size: 21px; }
.dog-call-placeholder small { color: #52675e; font-size: 13px; }
body.dog-is-summoned .dog-call-prompt,
body.dog-is-summoned .dog-call-placeholder,
body.dog-is-sofa-resting .dog-call-prompt,
body.dog-is-sofa-resting .dog-call-placeholder { display: none; }
.dog-sprite {
  display: block;
  aspect-ratio: 4 / 3;
  background-repeat: no-repeat;
  background-size: 400% 400%;
  background-position: 0 0;
  filter: drop-shadow(0 7px 7px rgb(48 54 45 / .2));
}
body:not(.dog-character-ready) .dog-sprite-mini,
body:not(.dog-character-ready) .dog-sprite-main,
body:not(.dog-character-ready) .dog-mini-name,
body:not(.dog-character-ready) .dog-speech,
body:not(.dog-character-ready) .dog-mini-action {
  visibility: hidden;
  opacity: 0;
  transition: none !important;
}
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species] .dog-sprite-mini,
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species] .dog-sprite-main,
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species] .dog-mini-name,
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species] .dog-mini-action[data-initial-label] {
  visibility: visible;
  opacity: 1;
  transition: none;
}
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species] .dog-mini-action[data-initial-label] {
  color: transparent;
  font-size: 0;
}
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species] .dog-mini-action[data-initial-label] b { display: none; }
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species] .dog-mini-action[data-initial-label]::before {
  content: attr(data-initial-label) " ›";
  color: #16251f;
  font-size: 10px;
  font-weight: 900;
}
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species="DOG"] .dog-sprite-mini,
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species="DOG"] .dog-sprite-main { background-image: url('/assets/dog-companion/dog-rest-sprites-v6.webp'); background-position: 0 66.666%; }
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species="FOX"] .dog-sprite-mini,
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species="FOX"] .dog-sprite-main { background-image: url('/assets/dog-companion/fox-rest-sprites-v1.webp'); background-position: 0 66.666%; }
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species="CAT"] .dog-sprite-mini,
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species="CAT"] .dog-sprite-main { background-image: url('/assets/dog-companion/cat-rest-sprites-v1.webp'); background-position: 0 66.666%; }
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species] .dog-sprite-mini { left: 50%; bottom: 30%; width: min(56%, 120px); }
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species="CAT"] .dog-sprite-mini { width: min(72%, 150px); }
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species] .dog-sprite-main { left: 50%; bottom: 32%; width: min(34%, 190px); }
body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species="CAT"] .dog-sprite-main { width: min(45%, 250px); }
body:not(.dog-is-summoned):not(.dog-is-sofa-resting) .dog-sprite-mini,
body:not(.dog-is-summoned):not(.dog-is-sofa-resting) .dog-sprite-main,
body:not(.dog-is-summoned):not(.dog-is-sofa-resting) .dog-mini-name,
body:not(.dog-is-summoned):not(.dog-is-sofa-resting) .dog-speech { visibility: hidden; opacity: 0; }
.dog-sprite-mini,
.dog-sprite-main,
.dog-mini-name,
.dog-speech { transition: opacity .25s ease; }
.dog-sprite-mini,
.dog-sprite-main { transition: left 4.2s cubic-bezier(.4, 0, .2, 1), bottom 4.2s cubic-bezier(.4, 0, .2, 1), width 4.2s cubic-bezier(.4, 0, .2, 1), opacity .25s ease; }
.dog-sprite-mini.is-sofa-traveling,
.dog-sprite-main.is-sofa-traveling {
  clip-path: inset(2% 0 0);
  will-change: left, bottom, width;
}
.dog-sprite-mini.is-entering { animation: dogEnterMini 4.2s cubic-bezier(.22,.72,.22,1) both; }
.dog-sprite-main.is-entering { animation: dogEnterMain 4.2s cubic-bezier(.22,.72,.22,1) both; }
.dog-sprite-mini {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 12px;
  width: min(88%, 200px);
  transform: translateX(-50%);
  background-image: none;
}
body.dog-is-sofa-resting .dog-sprite-mini.is-on-sofa {
  left: 50%;
  bottom: 30%;
  width: min(56%, 120px);
}
body[data-pet-species="CAT"].dog-is-sofa-resting .dog-sprite-mini.is-on-sofa {
  width: min(72%, 150px);
}
.dog-mini-name {
  position: absolute;
  z-index: 3;
  right: 9px;
  top: 9px;
  max-width: 72px;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 12px;
  background: rgb(255 255 255 / .86);
  color: #0a6446;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dog-mini-action {
  position: absolute;
  z-index: 3;
  right: 9px;
  bottom: 8px;
  padding: 6px 9px;
  border-radius: 15px;
  background: rgb(255 255 255 / .9);
  color: #16251f;
  font-size: 10px;
  font-weight: 900;
}
.dog-mini-action b { margin-left: 3px; font-size: 14px; }
.dog-reward-coin {
  position: absolute;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 4px solid #fff0a8;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff6b8 0 8%, #ffc72c 35%, #e99d00 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 1000;
  text-shadow: 0 2px 0 #c98100;
  box-shadow: inset 0 0 0 4px #ffd95c, 0 8px 24px rgb(92 60 0 / .35);
  cursor: pointer;
  animation: dogRewardCoinBlink 1.4s ease-in-out infinite;
}
.dog-reward-coin[hidden] { display: none; }
.dog-reward-coin:disabled { cursor: wait; opacity: .65; }
.dog-reward-coin-mini { right: 15px; top: 58px; }
.dog-reward-coin-main { right: 20%; top: 36%; width: 66px; height: 66px; font-size: 30px; }
.dog-reward-burst { position: absolute; z-index: 20; left: 50%; top: 55%; width: 84px; height: 84px; pointer-events: none; transform: translate(-50%, -50%); }
.dog-reward-burst i { position: absolute; inset: 0; display: grid; place-items: center; border: 5px solid #fff0a8; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff6b8 0 8%, #ffc72c 35%, #e99d00 100%); color: #fff; font-size: 36px; font-style: normal; font-weight: 1000; text-shadow: 0 3px 0 #c98100; box-shadow: inset 0 0 0 5px #ffd95c, 0 16px 36px rgb(0 0 0 / .34); animation: dogRewardCoinRise 1.2s cubic-bezier(.2,.65,.3,1) both; }
.dog-reward-burst b { position: absolute; z-index: 2; left: 50%; top: 42%; color: #fff; font-size: 20px; white-space: nowrap; text-shadow: 0 3px 8px rgb(89 53 0 / .8); animation: dogRewardAmountRise 1.2s ease-out both; }

.dog-modal-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(7 18 13 / .72);
  backdrop-filter: blur(5px);
}
.dog-modal {
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  max-height: min(860px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid #dbe8e1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 32px 80px rgb(0 0 0 / .28);
}
.dog-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid #e5ece8;
}
.dog-modal-header small { color: #078b5a; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.dog-modal-header h2 { margin: 2px 0 0; font-size: 23px; letter-spacing: -.8px; }
.dog-modal-header > button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f2f5f3;
  font-size: 25px;
  cursor: pointer;
}
.dog-modal-balance { min-width: 145px; padding: 8px 12px; border: 1px solid #d8eade; border-radius: 12px; background: #f5fbf8; }
.dog-modal-balance small, .dog-modal-balance strong { display: block; }
.dog-modal-balance small { color: #63716a; font-size: 11px; }
.dog-modal-balance strong { margin-top: 2px; color: #076443; font-size: 16px; }
.dog-modal-tabs { display: flex; gap: 4px; padding: 10px 20px 0; border-bottom: 1px solid #e5ece8; }
.dog-modal-tabs button {
  position: relative;
  min-width: 84px;
  padding: 11px 16px 13px;
  border: 0;
  background: transparent;
  color: #6b746f;
  font-weight: 800;
  cursor: pointer;
}
.dog-modal-tabs button.is-active { color: #076443; }
.dog-modal-tabs button.is-active::after { content: ""; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 3px; border-radius: 3px 3px 0 0; background: #0a9d69; }
.dog-care-panel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); min-height: 0; overflow: auto; }
.dog-room-stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: #dcefe6 url('/assets/dog-companion/dog-room-v1.webp') center 60% / cover no-repeat;
  cursor: pointer;
  touch-action: manipulation;
}
.dog-room-stage:focus-visible { outline: 4px solid #1d75ea; outline-offset: -4px; }
.dog-sprite-main {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 64px;
  width: min(58%, 340px);
  transform: translateX(-50%);
  background-image: none;
}
body.dog-is-sofa-resting .dog-sprite-main.is-on-sofa {
  left: 50%;
  bottom: 32%;
  width: min(34%, 190px);
}
body[data-pet-species="CAT"].dog-is-sofa-resting .dog-sprite-main.is-on-sofa {
  width: min(45%, 250px);
}
.dog-time-badge { position: absolute; z-index: 3; left: 16px; top: 16px; padding: 7px 10px; border-radius: 16px; background: rgb(255 255 255 / .88); color: #48554f; font-size: 12px; font-weight: 800; }
.dog-speech { position: absolute; z-index: 4; left: 50%; top: 78px; max-width: 70%; padding: 9px 13px; transform: translateX(-50%); border: 1px solid #dce7e1; border-radius: 16px 16px 16px 4px; background: rgb(255 255 255 / .94); font-size: 14px; font-weight: 800; box-shadow: 0 8px 18px rgb(34 68 50 / .12); }
.dog-stage-hint { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; margin: 0; padding: 12px; background: linear-gradient(transparent, rgb(4 42 27 / .7)); color: #fff; font-size: 12px; text-align: center; }
.dog-care-sidebar { padding: 20px; overflow-y: auto; background: #fbfdfc; }
.dog-name-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #e4ebe7; }
.dog-name-row small, .dog-name-row strong { display: block; }
.dog-name-row small { color: #758079; font-size: 11px; }
.dog-name-row strong { margin-top: 2px; font-size: 24px; }
.dog-name-row button { padding: 8px 11px; border: 1px solid #cdded5; border-radius: 18px; background: #fff; color: #076443; font-size: 12px; font-weight: 800; cursor: pointer; }
.dog-profile-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.dog-profile-summary div { padding: 10px; border-radius: 10px; background: #eef7f2; }
.dog-profile-summary dt { color: #65716b; font-size: 11px; }
.dog-profile-summary dd { margin: 3px 0 0; font-size: 15px; font-weight: 900; }
.dog-stat-list { display: grid; gap: 10px; }
.dog-stat-list label > span { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 12px; font-weight: 800; }
.dog-stat-list progress { width: 100%; height: 10px; accent-color: #11a56e; }
.dog-stat-list [data-dog-hunger] { accent-color: #ee9a22; }
.dog-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.dog-action-grid button { min-height: 48px; padding: 8px 5px; border: 1px solid #d6e4dc; border-radius: 11px; background: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.dog-action-grid button:hover { border-color: #45ad83; background: #effaf5; }
.dog-action-grid button:disabled { cursor: wait; opacity: .58; }
.dog-action-grid button span { display: block; margin-bottom: 2px; font-size: 18px; }
.dog-action-grid button:last-child { grid-column: 1 / -1; }
.dog-feedback { min-height: 42px; margin: 14px 0 0; padding: 10px 12px; border-radius: 9px; background: #f0f5f2; color: #49564f; font-size: 12px; line-height: 1.5; }
.dog-feedback.is-error { background: #fff0f0; color: #a32929; }
.dog-inventory-panel, .dog-shop-panel, .dog-adoption-panel { min-height: 480px; padding: 22px; overflow-y: auto; }
.dog-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dog-panel-heading small { color: #078b5a; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.dog-panel-heading h3 { margin: 3px 0 0; font-size: 23px; }
.dog-panel-heading p { margin: 0; color: #6d7771; font-size: 13px; }
.dog-item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dog-item-card { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; min-height: 132px; padding: 15px; border: 1px solid #dfe8e3; border-radius: 14px; background: #fff; }
.dog-item-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: #eef8f3; font-size: 29px; }
.dog-item-copy { min-width: 0; }
.dog-item-copy small { color: #078b5a; font-size: 10px; font-weight: 900; }
.dog-item-copy strong { display: block; margin: 3px 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.dog-item-copy p { min-height: 32px; margin: 0; color: #6d7771; font-size: 11px; line-height: 1.45; }
.dog-item-meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dog-item-meta b { font-size: 14px; }
.dog-item-meta button { padding: 7px 10px; border: 0; border-radius: 16px; background: #078b5a; color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.dog-item-meta button:disabled { background: #dfe5e2; color: #7f8883; cursor: not-allowed; }
.dog-empty { grid-column: 1 / -1; padding: 60px 20px; border: 1px dashed #cad8d1; border-radius: 14px; color: #68746e; text-align: center; }
.dog-policy-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #fff8e5; color: #735412; font-size: 12px; line-height: 1.5; }
.pet-adoption-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 8px auto 0; }
.pet-adoption-card { overflow: hidden; border: 2px solid #dce9e2; border-radius: 20px; background: #fbfefd; box-shadow: 0 12px 28px rgb(32 86 59 / .08); }
.pet-adoption-card.is-fox { border-color: #dce5f0; background: #fbfdff; }
.pet-adoption-card.is-cat { border-color: #ead9c6; background: #fffdf9; }
.pet-adoption-preview { display: block; width: 100%; aspect-ratio: 4 / 3; background: #e6f3ec url('/assets/dog-companion/dog-idle-sprites-v6.webp') 0 0 / 400% 400% no-repeat; }
.pet-adoption-card.is-fox .pet-adoption-preview { background-color: #edf4fb; background-image: url('/assets/dog-companion/fox-idle-sprites-v2.webp'); }
.pet-adoption-card.is-cat .pet-adoption-preview { background-color: #fff3df; background-image: url('/assets/dog-companion/cat-idle-sprites-v1.webp'); }
.pet-adoption-copy { padding: 16px; }
.pet-adoption-copy small { color: #078b5a; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.pet-adoption-copy strong { display: block; margin: 4px 0; font-size: 22px; }
.pet-adoption-copy p { min-height: 42px; margin: 0 0 14px; color: #66736c; font-size: 13px; line-height: 1.55; }
.pet-adoption-ranking { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 25px; margin-bottom: 8px; color: #6b7971; font-size: 12px; font-weight: 800; }
.pet-adoption-popular { padding: 4px 8px; border-radius: 999px; background: #fff0bd; color: #8c5c00; font-size: 11px; white-space: nowrap; }
.pet-adoption-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 10px 12px; border-radius: 11px; background: #eef7f2; font-size: 12px; }
.pet-adoption-price b { color: #076443; font-size: 16px; }
.pet-adoption-card button { width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: #078b5a; color: #fff; font-size: 14px; font-weight: 900; cursor: pointer; }
.pet-adoption-card button:disabled { background: #ccd7d1; color: #6f7a74; cursor: not-allowed; }
.pet-adoption-note { max-width: 760px; margin: 16px auto 0; padding: 12px 14px; border-radius: 11px; background: #fff8e5; color: #735412; font-size: 12px; line-height: 1.55; }
.pet-adoption-complete { max-width: 620px; margin: 70px auto; padding: 32px; border: 1px solid #dce9e2; border-radius: 20px; background: #f4fbf7; text-align: center; }
.pet-adoption-complete strong { display: block; margin-bottom: 8px; font-size: 24px; }
.pet-adoption-complete p { margin: 0; color: #65716b; line-height: 1.6; }

@media (max-width: 900px) {
  .dog-feature-on .hero-layout { grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr); }
  .dog-item-nav { margin-left: 22px; }
  .dog-care-panel { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr); }
  .dog-room-stage { min-height: 500px; }
  .dog-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pet-adoption-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .dog-feature-on .hero-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 6px; }
  .dog-mini-card { height: 160px; }
  .dog-mini-name { right: 5px; top: 36px; max-width: 54px; padding: 3px 5px; font-size: 9px; }
  .dog-sprite-mini { bottom: 27px; width: 118%; }
  .dog-mini-action { right: 5px; bottom: 5px; left: 5px; padding: 5px 4px; font-size: 9px; text-align: center; }
  body:not(.dog-character-ready) #return-market-storefront[data-initial-pet-species] .dog-mini-action[data-initial-label]::before { font-size: 9px; }
  .dog-call-prompt { top: 52%; }
  .dog-call-prompt b { font-size: 19px; }
  .dog-call-prompt strong { padding: 5px 6px; font-size: 9px; }
  .dog-modal-backdrop { padding: 0; }
  .dog-modal { width: 100%; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }
  .dog-modal-header { grid-template-columns: minmax(0, 1fr) auto 38px; gap: 8px; padding: 11px 12px; }
  .dog-modal-header h2 { font-size: 18px; }
  .dog-modal-header > button { width: 38px; height: 38px; }
  .dog-modal-balance { min-width: 116px; padding: 6px 8px; }
  .dog-modal-balance strong { font-size: 13px; }
  .dog-modal-tabs { padding: 6px 10px 0; }
  .dog-modal-tabs button { flex: 1; min-width: 0; padding: 10px 5px 12px; font-size: 13px; }
  .dog-care-panel { display: block; overflow-y: auto; }
  .dog-room-stage { min-height: 50dvh; }
  .dog-sprite-main { bottom: 45px; width: min(58%, 260px); }
  .dog-care-sidebar { overflow: visible; padding: 16px; }
  .dog-action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dog-action-grid button:last-child { grid-column: auto; }
  .dog-panel-heading { display: block; }
  .dog-panel-heading p { margin-top: 5px; }
  .dog-inventory-panel, .dog-shop-panel, .dog-adoption-panel { padding: 16px; }
  .dog-item-grid { grid-template-columns: 1fr; }
  .dog-adoption-panel { flex: 1; min-height: 0; overscroll-behavior: contain; }
  .pet-adoption-grid { grid-template-columns: 1fr; gap: 12px; padding-bottom: 12px; }
  .pet-adoption-card { display: grid; grid-template-columns: minmax(118px, 40%) minmax(0, 1fr); align-items: start; border-radius: 16px; }
  .pet-adoption-preview { width: 100%; max-height: none; aspect-ratio: 4 / 3; border-radius: 0 0 14px 0; }
  .pet-adoption-copy { min-width: 0; padding: 12px; }
  .pet-adoption-copy strong { margin: 2px 0; font-size: 19px; }
  .pet-adoption-copy p { min-height: 0; margin: 0 0 8px; font-size: 12px; line-height: 1.4; }
  .pet-adoption-ranking { min-height: 22px; margin-bottom: 6px; font-size: 11px; }
  .pet-adoption-popular { padding: 3px 6px; font-size: 10px; }
  .pet-adoption-price { margin-bottom: 8px; padding: 7px 9px; }
  .pet-adoption-price b { font-size: 14px; }
  .pet-adoption-card button { min-height: 42px; }
}

@media (max-width: 420px) {
  .dog-feature-on .hero-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
  .dog-mini-card { height: 160px; }
  .dog-sprite-mini { width: 122%; }
  .dog-mini-name { max-width: 58px; font-size: 10px; }
  .dog-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dog-action-grid button:last-child { grid-column: 1 / -1; }
}

@keyframes dogCallPulse {
  0%, 100% { transform: scale(1); opacity: .72; }
  50% { transform: scale(1.14); opacity: 1; }
}
@keyframes dogRewardCoinBlink {
  0%, 100% { opacity: .72; transform: scale(.94); filter: brightness(.95); }
  50% { opacity: 1; transform: scale(1.1); filter: brightness(1.12); }
}
@keyframes dogRewardCoinRise {
  0% { opacity: 0; transform: translateY(45px) scale(.55); }
  18% { opacity: 1; transform: translateY(15px) scale(1.1); }
  58% { opacity: 1; transform: translateY(-35px) scale(1); }
  100% { opacity: 0; transform: translateY(-210px) rotate(22deg) scale(.78); }
}
@keyframes dogRewardAmountRise {
  0% { opacity: 0; transform: translate(-50%, 25px) scale(.8); }
  25%, 70% { opacity: 1; transform: translate(-50%, -18px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -105px) scale(.9); }
}
@keyframes dogEnterMini {
  0% { opacity: 0; transform: translateX(72%) scale(.76); }
  18% { opacity: 1; }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}
@keyframes dogEnterMain {
  0% { opacity: 0; transform: translateX(85%) scale(.72); }
  18% { opacity: 1; }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .dog-reward-coin, .dog-reward-burst i, .dog-reward-burst b { animation-duration: .01ms; }
  .dog-sprite { transition: none !important; }
}
