.game-layout {
  grid-template-columns: minmax(0, 1fr);
}
#partner-page,
#account-page {
  max-width: 800px;
  margin: 0 auto;
}
.partner-hero .companion-card {
  height: clamp(380px, 54dvh, 560px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background:
    radial-gradient(ellipse at 50% 35%, #fff9e7 0%, #fff9e700 65%),
    linear-gradient(155deg, #d9f0ee, #f4eedb 70%, #e6e7ce);
}
.partner-hero .card-label,
.partner-hero .pet-name,
.partner-hero .affection,
.partner-hero .pet-actions {
  flex-shrink: 0;
  margin: 0;
}
.partner-hero .pet-stage {
  flex: 1;
  height: auto;
  width: 100%;
  align-self: stretch;
  min-height: 190px;
}
.partner-hero .hero-penguin {
  bottom: 0;
  width: min(85%, 340px);
  height: 100%;
}
.partner-hero .pet-orbit {
  top: auto;
  bottom: 0;
  width: 80%;
  height: 90%;
}
.partner-hero .pet-shadow {
  bottom: 0;
}
.partner-hero .pet-actions button {
  min-height: 44px;
  font-size: 13px;
  gap: 6px;
}
.partner-hero .pet-actions svg {
  width: 18px;
  height: 18px;
}
.partner-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 14px 0;
  padding: 5px;
  border: 1px solid #fffdf2;
  border-radius: 16px;
  background: #e8e9dc;
}
.partner-tabs button {
  border: 0;
  border-radius: 12px;
  padding: 10px 2px;
  min-height: 44px;
  font-size: 13px;
  color: #6a827d;
  background: transparent;
  font-weight: 650;
}
.partner-tabs button[aria-selected='true'] {
  color: #24656d;
  background: #fffcef;
  box-shadow: 0 3px 8px #627c6c12;
}
.partner-tabs small {
  font-size: 10px;
  margin-left: 2px;
}
.partner-tabs .task-count {
  position: static;
  display: inline;
  padding: 1px 4px;
  border-radius: 6px;
}
.partner-panel .daily-card {
  display: flex;
  padding: 16px;
  gap: 12px;
}
.partner-feed-reward {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #fffdf3;
  border-radius: 18px;
  background: #f9f3e2;
  margin-top: 12px;
}
.partner-feed-reward h3,
.account-assets h3,
.account-details h3 {
  font-size: 14px;
}
.partner-feed-reward p {
  margin-top: 6px;
  color: #6c827d;
  font-size: 11px;
}
.partner-feed-reward button {
  flex-shrink: 0;
  font-size: 12px;
}
.partner-panel .page-summary {
  margin-top: 0;
}
.account-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px 14px;
}
.account-avatar {
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 72px;
  height: 72px;
  border: 3px solid #fffbed;
  border-radius: 24px;
  background: linear-gradient(145deg, #b0dfda, #dce9cb);
  color: #3f747c;
  font-size: 30px;
  overflow: hidden;
  box-shadow: 0 5px 15px #4b776315;
}
.account-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-card > div {
  min-width: 0;
}
.account-card h2 {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.account-card p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #65817d;
  overflow-wrap: anywhere;
}
.account-number {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #65817d;
  font-size: 12px;
}
.account-number button {
  width: 44px;
  height: 44px;
}
.account-number svg {
  width: 16px;
  height: 16px;
}
.wallet-card {
  padding: 22px;
  border: 1px solid #fff8dd;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 90% 5%, #fff7d7, transparent 65%),
    linear-gradient(140deg, #e3f0e5, #f1e7ce);
  box-shadow:
    0 5px 0 #d6d9c68c,
    0 12px 25px #62806b0c;
}
.wallet-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wallet-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.wallet-heading svg,
.account-assets svg,
.account-settings svg,
.wallet-actions svg {
  width: 20px;
  height: 20px;
}
.wallet-status {
  font-size: 11px;
  padding: 5px 8px;
  background: #fffaf080;
  border-radius: 8px;
  color: #7b8574;
}
.wallet-balance-label {
  font-size: 12px;
  color: #74867a;
  margin: 24px 0 8px;
}
.wallet-balance {
  font-size: 42px;
  font-weight: 700;
}
.wallet-balance small {
  font-size: 15px;
}
.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.wallet-records {
  border: 1px solid #d3d8c3;
  border-radius: 14px;
  background: #fffbedb0;
  color: #567770;
  min-height: 44px;
  font-weight: 650;
}
.wallet-note {
  margin: 16px 0 0;
  font-size: 11px;
  color: #7d8978;
}
.account-assets,
.account-details {
  margin-top: 18px;
  border: 1px solid #fffaf0;
  border-radius: 20px;
  background: #fff9ec;
  padding: 18px;
}
.account-assets > div {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.account-assets span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.account-details > div,
.withdraw-rules span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e4d5;
  font-size: 12px;
  color: #70857c;
}
.account-details strong,
.withdraw-rules strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.account-details > div:last-child {
  border: 0;
  padding-bottom: 0;
}
.account-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid #fffaf0;
  border-radius: 18px;
  background: #fff9ec;
  color: var(--ink);
  padding: 18px;
  margin-top: 16px;
}
.account-settings span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  margin-top: 16px;
  border: 1px solid #fffaf0;
  border-radius: 18px;
  background: #fff9ec;
  font-size: 13px;
}
.account-save .saved {
  display: inline-flex;
  gap: 8px;
  font-size: 12px;
}
.account-save .saved svg {
  width: 18px;
  height: 18px;
}
.wallet-empty-icon {
  width: 72px;
  height: 72px;
  padding: 18px;
  border-radius: 24px;
  background: #e5eee0;
  color: #57837a;
  margin: 12px auto 20px;
}
.wallet-modal-title {
  text-align: center;
  margin-bottom: 16px;
}
@media (max-width: 360px) {
  .partner-tabs button {
    font-size: 12px;
  }
  .partner-hero .companion-card {
    padding: 14px;
    gap: 10px;
  }
}
