﻿/*
 * Detail page shell and item system
 */

    /* 详情页轻场景系统 v1 */
    .pet-detail-shell {
      display: flex;
      flex-direction: column;
      gap: 1.8rem;
    }
    .pet-detail-hero,
    .pet-detail-section {
      background: transparent;
      border: none;
      border-radius: 0;
      box-shadow: none;
      padding: 0;
      backdrop-filter: none;
    }
    .pet-detail-hero__top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 1.2rem;
    }
    .pet-info-fold {
      margin-bottom: 1rem;
    }
    .pet-info-fold__toggle {
      background: none;
      border: none;
      color: #8b7a6b;
      cursor: pointer;
      font-size: 0.85rem;
      padding: 0.2rem 0;
    }
    .pet-info-fold__panel {
      margin-top: 0.7rem;
      background: rgba(255,255,255,0.2);
      border: 1px solid rgba(255,255,255,0.52);
      border-radius: 22px;
      padding: 1rem;
    }
    .pet-detail-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }
    .pet-detail-hero__body {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
      gap: 1.2rem;
      align-items: start;
    }
    .pet-detail-decor-row {
      margin-top: 1.15rem;
      min-width: 0;
    }
    .pet-detail-stillframe {
      position: relative;
      overflow: hidden;
      min-height: 340px;
      border-radius: 28px;
      margin-bottom: 1rem;
      background: linear-gradient(180deg, rgba(255,249,244,0.96), rgba(247,239,232,0.94));
      border: 1px solid rgba(255,255,255,0.78);
      box-shadow: 0 18px 34px rgba(123, 102, 90, 0.12);
      isolation: isolate;
    }
    .pet-detail-stillframe__backdrop {
      position: absolute;
      inset: 0;
      opacity: 0.34;
    }
    .pet-detail-stillframe__backdrop img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: blur(28px) saturate(0.88);
      transform: scale(1.08);
    }
    .pet-detail-stillframe__content {
      position: relative;
      z-index: 1;
      min-height: 340px;
      display: grid;
      grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
      gap: 2.1rem;
      align-items: center;
      padding: 2rem 2.2rem;
    }
    .pet-detail-stillframe__visual {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 260px;
    }
    .pet-detail-stillframe__gallery {
      width: min(360px, 100%);
      display: grid;
      grid-template-columns: minmax(0, 1fr) 76px;
      gap: 0.65rem;
      align-items: stretch;
    }
    .pet-detail-stillframe__gallery--single,
    .pet-detail-stillframe__gallery--placeholder {
      grid-template-columns: minmax(0, 1fr);
    }
    .pet-detail-stillframe__gallery-lead {
      position: relative;
      width: 100%;
      aspect-ratio: 4 / 5;
      padding: 0;
      border: 0;
      border-radius: 24px;
      overflow: hidden;
      background: rgba(255, 251, 248, 0.78);
      box-shadow: 0 18px 32px rgba(92, 70, 59, 0.16);
      cursor: zoom-in;
    }
    .pet-detail-stillframe__gallery-lead::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      border: 1px solid rgba(255,255,255,0.7);
      pointer-events: none;
    }
    .pet-detail-stillframe__gallery-image,
    .pet-detail-stillframe__gallery-thumb-image {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }
    .pet-detail-stillframe__gallery-rail {
      display: grid;
      grid-template-rows: repeat(4, 1fr);
      gap: 0.65rem;
    }
    .pet-detail-stillframe__gallery-thumb {
      position: relative;
      width: 100%;
      aspect-ratio: 1 / 1;
      padding: 0;
      border: 1px solid rgba(255,255,255,0.68);
      border-radius: 18px;
      overflow: hidden;
      background: rgba(255, 251, 248, 0.82);
      box-shadow: 0 10px 20px rgba(109, 87, 76, 0.12);
      cursor: pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }
    .pet-detail-stillframe__gallery-thumb:hover {
      transform: translateY(-1px);
      border-color: rgba(213, 182, 173, 0.92);
      box-shadow: 0 14px 24px rgba(109, 87, 76, 0.16);
    }
    .pet-detail-stillframe__gallery-thumb.is-active {
      border-color: rgba(195, 154, 167, 0.92);
      box-shadow: 0 0 0 2px rgba(236, 209, 219, 0.38);
    }
    .pet-detail-stillframe__gallery-thumb-more {
      position: absolute;
      inset: auto 0 0 0;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 48%;
      background: linear-gradient(180deg, rgba(59, 42, 39, 0), rgba(59, 42, 39, 0.72));
      color: #fff8f4;
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0.04em;
    }
    .pet-detail-stillframe__gallery-fallback {
      position: relative;
      width: min(360px, 100%);
      aspect-ratio: 4 / 5;
      padding: 10px;
      border-radius: 34px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.86), rgba(252,245,239,0.84)),
        linear-gradient(180deg, rgba(228,208,194,0.48), rgba(204,181,165,0.16));
      border: 1px solid rgba(255,255,255,0.72);
      box-shadow: 0 18px 32px rgba(92, 70, 59, 0.16);
      overflow: hidden;
    }
    .pet-detail-stillframe__gallery-fallback-stage {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 26px;
      overflow: hidden;
      background:
        radial-gradient(circle at 50% 32%, rgba(255, 243, 228, 0.9), rgba(255, 243, 228, 0)),
        linear-gradient(180deg, rgba(244,236,229,0.96), rgba(232,221,211,0.98));
    }
    .pet-detail-stillframe__gallery-fallback-stage .pet-detail-stillframe__character-wrap {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 1rem 1rem 0;
    }
    .pet-detail-stillframe__glow {
      position: absolute;
      width: 220px;
      height: 220px;
      border-radius: 999px;
      background: radial-gradient(circle at center, rgba(255, 228, 189, 0.62), rgba(255, 228, 189, 0));
      filter: blur(18px);
    }
    .pet-detail-stillframe__portrait-shell {
      position: relative;
      width: min(280px, 100%);
      aspect-ratio: 4 / 5;
      display: block;
      padding: 10px;
      border-radius: 34px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.86), rgba(252,245,239,0.84)),
        linear-gradient(180deg, rgba(228,208,194,0.48), rgba(204,181,165,0.16));
      border: 1px solid rgba(255,255,255,0.72);
      box-shadow: 0 18px 32px rgba(92, 70, 59, 0.16);
      overflow: hidden;
    }
    .pet-detail-stillframe__character-stage {
      position: relative;
      width: 100%;
      height: 100%;
      display: block;
      border-radius: 26px;
      overflow: hidden;
      background:
        radial-gradient(circle at 50% 32%, rgba(255, 243, 228, 0.9), rgba(255, 243, 228, 0)),
        linear-gradient(180deg, rgba(244,236,229,0.96), rgba(232,221,211,0.98));
    }
    .pet-detail-stillframe__source-photo {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.16;
      filter: blur(6px) saturate(0.88);
      transform: scale(1.04);
      mix-blend-mode: soft-light;
    }
    .pet-detail-stillframe__stage-halo {
      position: absolute;
      inset: 14% 16% auto;
      height: 46%;
      border-radius: 999px;
      background: radial-gradient(circle at center, rgba(255, 228, 189, 0.72), rgba(255, 228, 189, 0));
      filter: blur(18px);
    }
    .pet-detail-stillframe__stage-floor {
      position: absolute;
      left: 8%;
      right: 8%;
      bottom: 0;
      height: 28%;
      border-radius: 56% 56% 24px 24px;
      background:
        linear-gradient(180deg, rgba(225,212,201,0.18), rgba(209,193,181,0.64)),
        linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0));
      box-shadow: inset 0 10px 20px rgba(255,255,255,0.18);
    }
    .pet-detail-stillframe__character-wrap {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 1rem 1rem 0;
      z-index: 1;
    }
    .pet-detail-stillframe__character {
      width: min(92%, 260px);
      height: auto;
      display: block;
      filter: drop-shadow(0 14px 24px rgba(89, 65, 51, 0.16));
    }
    .pet-detail-stillframe__character-wrap--dog .pet-detail-stillframe__character {
      transform: translateY(6px);
    }
    .pet-detail-stillframe__character-wrap--cat .pet-detail-stillframe__character {
      transform: translateY(2px);
    }
    .pet-detail-stillframe__meta {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.8rem;
      max-width: 460px;
    }
    .pet-detail-stillframe__badge {
      display: inline-flex;
      align-items: center;
      padding: 0.35rem 0.72rem;
      border-radius: 999px;
      background: rgba(255,255,255,0.68);
      border: 1px solid rgba(255,255,255,0.76);
      color: #8a7366;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .pet-detail-stillframe__name {
      margin: 0;
      color: #46372f;
      font-size: clamp(2rem, 4vw, 3.5rem);
      line-height: 1.02;
    }
    .pet-detail-stillframe__epitaph {
      margin: 0;
      color: #6d5a51;
      font-size: 1.02rem;
      line-height: 1.8;
      max-width: 40ch;
    }
    .pet-detail-stillframe__epitaph--muted {
      color: #8a776d;
    }
    .pet-detail-stillframe__years {
      color: #927d72;
      font-size: 0.92rem;
      letter-spacing: 0.08em;
    }
    .pet-detail-stillframe__ritual {
      width: min(100%, 360px);
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0;
      margin-top: 0.45rem;
      padding-top: 1rem;
      border-top: 1px solid rgba(221, 203, 191, 0.72);
    }
    .pet-detail-stillframe__ritual .tomb-worship {
      margin-top: 0;
      flex-shrink: 0;
    }
    .pet-detail-stillframe__ritual-btn {
      align-self: flex-start;
    }
    .pet-detail-stillframe__ritual-btn .tomb-worship__label {
      font-weight: 600;
    }
    .pet-detail-scene,
    .pet-detail-sidebar {
      min-width: 0;
    }
    .pet-detail-sidebar {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .ritual-panel {
      background: rgba(255, 248, 243, 0.68);
      border-radius: 22px;
      border: 1px solid rgba(255,255,255,0.74);
      padding: 1.1rem;
      box-shadow: 0 10px 22px rgba(140,120,110,0.06);
      backdrop-filter: blur(8px);
    }
    .ritual-action-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.75rem;
      margin-top: 0.4rem;
    }
    .ritual-action-btn {
      border: 1px solid rgba(210, 185, 168, 0.45);
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(250,241,236,0.9));
      color: #6b564c;
      padding: 0.85rem 0.7rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.32rem;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      min-height: 88px;
    }
    .ritual-action-btn:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 8px 18px rgba(164, 140, 128, 0.16);
      border-color: rgba(201, 161, 140, 0.8);
    }
    .ritual-action-btn:disabled {
      cursor: not-allowed;
      opacity: 0.58;
      box-shadow: none;
    }
    .ritual-action-btn__icon {
      font-size: 1.45rem;
      line-height: 1;
    }
    .ritual-action-btn__label {
      font-size: 0.92rem;
      font-weight: 600;
    }
    .ritual-action-btn--flower {
      background: linear-gradient(180deg, rgba(255,245,249,0.95), rgba(255,234,242,0.94));
    }
    .ritual-action-btn--candle {
      background: linear-gradient(180deg, rgba(255,250,236,0.95), rgba(255,241,214,0.94));
    }
    .ritual-action-btn--prayer {
      background: linear-gradient(180deg, rgba(243,246,255,0.95), rgba(231,237,255,0.94));
    }
    .ritual-panel__remaining {
      margin-top: 0.85rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.6rem;
      padding: 0.75rem 0.9rem;
      border-radius: 16px;
      background: rgba(255,255,255,0.6);
      border: 1px solid rgba(255,255,255,0.72);
      color: #7c675c;
    }
    .ritual-panel__remaining.is-limit {
      color: #9b6f61;
      background: rgba(255, 239, 235, 0.72);
    }
    .ritual-panel__remaining-label {
      font-size: 0.82rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .ritual-panel__remaining-value {
      font-size: 1.05rem;
      font-weight: 700;
    }
    .ritual-message-form {
      margin-top: 0.9rem;
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
    }
    .ritual-message-form__label {
      font-size: 0.88rem;
      color: #8d7568;
    }
    .ritual-message-input {
      min-height: 88px;
      border-radius: 16px;
      border: 1px solid rgba(214, 191, 178, 0.68);
      background: rgba(255,255,255,0.8);
      padding: 0.85rem 0.95rem;
      resize: vertical;
      color: #5d4c43;
      line-height: 1.6;
    }
    .ritual-message-input:focus {
      outline: none;
      border-color: rgba(220, 163, 180, 0.92);
      box-shadow: 0 0 0 3px rgba(255, 215, 226, 0.45);
    }
    .ritual-message-send {
      align-self: flex-end;
      border: none;
      border-radius: 999px;
      background: linear-gradient(135deg, #ef9fb2, #d889a3);
      color: #fff;
      padding: 0.65rem 1.2rem;
      cursor: pointer;
      font-weight: 600;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .ritual-message-send:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 16px rgba(216, 137, 163, 0.24);
    }
    .worship-records-container {
      margin-top: 1rem;
    }
    .ritual-summary-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.7rem;
    }
    .ritual-summary-card {
      background: rgba(255,255,255,0.58);
      border: 1px solid rgba(255,255,255,0.78);
      border-radius: 16px;
      padding: 0.8rem 0.9rem;
      min-width: 0;
    }
    .ritual-summary-card__label {
      font-size: 0.8rem;
      color: #967f73;
    }
    .ritual-summary-card__value {
      margin-top: 0.3rem;
      font-size: 1.25rem;
      font-weight: 700;
      color: #5e4b41;
    }
    .ritual-records-title {
      margin-top: 1rem;
      font-size: 0.88rem;
      color: #8d7568;
    }
    .worship-records-scroll {
      margin-top: 0.7rem;
      max-height: 260px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 0.7rem;
      padding-right: 0.2rem;
    }
    .ritual-records-empty {
      border-radius: 16px;
      background: rgba(255,255,255,0.52);
      border: 1px dashed rgba(212, 190, 178, 0.78);
      padding: 1rem;
      text-align: center;
      color: #8f786b;
    }
    .ritual-records-empty__title {
      font-weight: 600;
      color: #715d53;
    }
    .ritual-records-empty__desc {
      margin-top: 0.35rem;
      font-size: 0.88rem;
      line-height: 1.5;
    }
    .worship-record-item {
      display: flex;
      gap: 0.75rem;
      padding: 0.8rem;
      border-radius: 18px;
      background: rgba(255,255,255,0.5);
      border: 1px solid rgba(255,255,255,0.72);
      align-items: flex-start;
    }
    .worship-record-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      overflow: hidden;
      flex-shrink: 0;
      background: rgba(247, 233, 225, 0.88);
      border: 1px solid rgba(227, 207, 195, 0.72);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .worship-record-avatar__img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .worship-record-avatar__fallback {
      color: #a48779;
      font-size: 0.95rem;
    }
    .worship-record-content {
      min-width: 0;
      flex: 1;
    }
    .worship-record-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      flex-wrap: wrap;
    }
    .worship-record-user {
      color: #5b4a41;
      font-weight: 600;
    }
    .worship-record-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.28rem;
      padding: 0.26rem 0.6rem;
      border-radius: 999px;
      font-size: 0.76rem;
      background: rgba(255,255,255,0.74);
      color: #7a655b;
    }
    .worship-record-tag--flower {
      background: rgba(255, 236, 243, 0.95);
      color: #b45f87;
    }
    .worship-record-tag--candle {
      background: rgba(255, 245, 220, 0.95);
      color: #a77a32;
    }
    .worship-record-tag--prayer {
      background: rgba(236, 240, 255, 0.95);
      color: #6676b8;
    }
    .worship-record-tag--message {
      background: rgba(243, 235, 255, 0.95);
      color: #875fab;
    }
    .worship-record-message {
      margin-top: 0.5rem;
      color: #625148;
      line-height: 1.65;
      word-break: break-word;
    }
    .worship-record-time {
      margin-top: 0.4rem;
      font-size: 0.78rem;
      color: #9a8579;
    }
    .pet-detail-section__eyebrow,
    .grave-control-panel__eyebrow,
    .grave-scene-heading__eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.76rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #a48c80;
      margin-bottom: 0.35rem;
    }
    .pet-info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 0.9rem;
    }
    .pet-info-item {
      background: rgba(255,255,255,0.52);
      border: 1px solid rgba(255,255,255,0.74);
      border-radius: 18px;
      padding: 0.9rem 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }
    .pet-info-item__label {
      font-size: 0.8rem;
      color: #988173;
    }
    .pet-info-item__value {
      color: #54463c;
      line-height: 1.5;
    }
    .pet-rich-block {
      margin-top: 1rem;
      padding: 1rem 1.1rem;
      border-radius: 22px;
      background: rgba(255,255,255,0.45);
      border: 1px solid rgba(255,255,255,0.75);
      color: #5a4c42;
    }
    .pet-detail-section__header {
      margin-bottom: 0.9rem;
    }
    .pet-rich-block__title {
      font-size: 0.86rem;
      color: #917d70;
      margin-bottom: 0.5rem;
    }
    .pet-rich-block__content {
      line-height: 1.7;
    }
    .pet-rich-block--epitaph .pet-rich-block__content {
      font-family: 'Noto Serif SC', '楷体', 'KaiTi', serif;
      text-align: center;
    }
    .grave-scene-shell {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .grave-scene-heading {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 1rem;
      color: #5d4f45;
    }
    .grave-scene-heading strong {
      font-size: 1rem;
      color: #745f54;
    }
    .grave-stage {
      position: relative;
      min-height: 500px;
      border-radius: 28px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.88);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 16px 32px rgba(110, 91, 83, 0.16);
      isolation: isolate;
    }
    .grave-stage--sakura { background: linear-gradient(180deg, #f8bfd1 0%, #f7d8df 42%, #ebe6dc 42%, #c2c38e 100%); }
    .grave-stage--starry { background: linear-gradient(180deg, #1d2441 0%, #32416b 44%, #6d6d7d 44%, #8d8a78 100%); }
    .grave-stage--grassland { background: linear-gradient(180deg, #8acde9 0%, #dff4fb 32%, #d7d6c6 42%, #7bb76b 100%); }
    .grave-stage--autumn { background: linear-gradient(180deg, #f7cf92 0%, #f4e0bc 34%, #dcc6a2 42%, #b37e48 100%); }
    .grave-stage--snow { background: linear-gradient(180deg, #dfeaf4 0%, #f9fbfd 38%, #d9dde3 42%, #bcc6d2 100%); }
    .grave-stage__sky-glow,
    .grave-stage__horizon,
    .grave-stage__ground-shadow,
    .grave-stage__atmosphere,
    .grave-stage__effect-layer {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    .grave-stage__sky-glow {
      background: radial-gradient(circle at 50% 16%, rgba(255,255,255,0.35), transparent 36%);
      z-index: 0;
    }
    .grave-stage__horizon {
      top: 38%;
      height: 24%;
      bottom: auto;
      background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0));
      z-index: 0;
    }
    .grave-stage__ground-shadow {
      top: auto;
      height: 36%;
      background: radial-gradient(ellipse at 50% 18%, rgba(63,54,46,0.15), transparent 58%);
      z-index: 1;
    }
    .grave-stage__lawn {
      position: absolute;
      left: 12%;
      right: 12%;
      bottom: 6%;
      height: 24%;
      border-radius: 50% 50% 18% 18%;
      background: radial-gradient(ellipse at 50% 10%, rgba(147, 188, 123, 0.8), rgba(112, 156, 92, 0.96) 70%);
      box-shadow: inset 0 12px 20px rgba(255,255,255,0.18), 0 12px 20px rgba(74, 97, 53, 0.18);
      z-index: 2;
    }
    .grave-stage__fence {
      position: absolute;
      left: 16%;
      right: 16%;
      bottom: 24%;
      height: 18%;
      z-index: 2;
      display: flex;
      justify-content: space-between;
      align-items: end;
    }
    .grave-stage__fence-post {
      width: 14px;
      height: calc(42px + (var(--post-index) % 2) * 10px);
      border-radius: 8px 8px 4px 4px;
      background: linear-gradient(180deg, #c8986c, #8f613f);
      position: relative;
      box-shadow: 0 6px 10px rgba(85,54,35,0.18);
    }
    .grave-stage__fence-post::after {
      content: '';
      position: absolute;
      left: -8px;
      right: -8px;
      top: 18px;
      height: 6px;
      border-radius: 4px;
      background: linear-gradient(90deg, #b17e54, #8e623f);
    }
    .grave-stage__tomb {
      position: absolute;
      left: 50%;
      bottom: 13%;
      transform: translateX(-50%);
      width: min(280px, 56%);
      min-height: 310px;
      border-radius: 36px 36px 20px 20px;
      padding: 1.15rem 1.1rem 1.35rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      z-index: 3;
      box-shadow: 0 18px 30px rgba(52,43,37,0.24);
      border: 1px solid rgba(255,255,255,0.72);
    }
    .grave-stage__tomb-top {
      width: 56%;
      height: 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.34);
      margin-bottom: 0.85rem;
    }
    .grave-choice-tomb--classic,
    .grave-stage__tomb.grave-choice-tomb--classic {
      background: linear-gradient(180deg, rgba(232,224,215,0.95), rgba(184,173,161,0.96));
      color: #4c4037;
    }
    .grave-choice-tomb--elegant,
    .grave-stage__tomb.grave-choice-tomb--elegant {
      background: linear-gradient(180deg, rgba(243,239,234,0.98), rgba(204,197,189,0.94));
      color: #4c443c;
    }
    .grave-choice-tomb--modern,
    .grave-stage__tomb.grave-choice-tomb--modern {
      background: linear-gradient(180deg, rgba(228,231,237,0.96), rgba(171,179,193,0.94));
      color: #3f4452;
    }
    .grave-stage__portrait-wrap {
      width: 86px;
      height: 86px;
      border-radius: 50%;
      overflow: hidden;
      background: linear-gradient(135deg, rgba(243, 230, 224, 0.94) 0%, rgba(236, 244, 238, 0.94) 100%);
      box-shadow: 0 16px 34px rgba(88, 69, 60, 0.12), inset 0 1px 0 rgba(255,255,255,0.82);
      border: 3px solid rgba(255,255,255,0.94);
      margin-bottom: 0.85rem;
    }
    .grave-stage__portrait {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      background: rgba(255,255,255,0.45);
    }
    .grave-stage__portrait--placeholder {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
    }
    .grave-stage__name {
      font-size: 1.55rem;
      font-weight: 700;
      margin-bottom: 0.3rem;
      text-shadow: 0 1px 0 rgba(255,255,255,0.45);
    }
    .grave-stage__years {
      font-size: 0.95rem;
      letter-spacing: 0.1em;
      opacity: 0.85;
      margin-bottom: 0.8rem;
    }
    .grave-stage__epitaph {
      font-family: 'Noto Serif SC', '楷体', 'KaiTi', serif;
      font-size: 0.95rem;
      line-height: 1.65;
      max-width: 12rem;
      opacity: 0.92;
    }
    .grave-stage__companion,
    .grave-stage__blessing {
      position: absolute;
      z-index: 4;
      pointer-events: none;
    }
    .grave-stage__companion--front-right {
      right: 16%;
      bottom: 16%;
    }
    .grave-stage__guardian {
      position: absolute;
      z-index: 4;
      pointer-events: none;
      width: 112px;
      height: 146px;
      transform-origin: 50% 100%;
      animation: graveGuardianFloat 5.8s ease-in-out infinite;
    }
    .grave-stage__guardian--front-right {
      right: 12%;
      bottom: 12%;
    }
    .grave-stage__guardian-glow {
      position: absolute;
      left: 14px;
      right: 14px;
      bottom: 8px;
      height: 24px;
      border-radius: 999px;
      background: radial-gradient(circle at center, rgba(255, 225, 178, 0.42), rgba(255, 225, 178, 0));
      filter: blur(10px);
      opacity: 0.7;
    }
    .grave-stage__guardian-echo,
    .grave-stage__guardian-photo {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 30px 30px 18px 18px / 38px 38px 18px 18px;
    }
    .grave-stage__guardian-echo {
      opacity: 0.26;
      filter: saturate(0.8) blur(14px);
      transform: translateY(12px) scale(0.94);
    }
    .grave-stage__guardian-frame {
      position: absolute;
      inset: 0;
      display: block;
      border-radius: 36px 36px 22px 22px / 42px 42px 20px 20px;
      padding: 7px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,245,236,0.46)),
        linear-gradient(180deg, rgba(238,213,193,0.52), rgba(205,181,162,0.16));
      border: 1px solid rgba(255,255,255,0.6);
      box-shadow: 0 16px 28px rgba(86, 67, 56, 0.2);
      overflow: hidden;
      backdrop-filter: blur(6px);
    }
    .grave-stage__guardian.is-blessing .grave-stage__guardian-frame {
      box-shadow: 0 18px 32px rgba(86, 67, 56, 0.24), 0 0 26px rgba(255, 220, 160, 0.38);
      border-color: rgba(255, 244, 220, 0.82);
    }
    .grave-stage__guardian.is-blessing .grave-stage__guardian-glow {
      opacity: 1;
      background: radial-gradient(circle at center, rgba(255, 229, 188, 0.68), rgba(255, 229, 188, 0));
    }
    .grave-stage__guardian.is-blessing .grave-stage__guardian-echo {
      opacity: 0.4;
      transform: translateY(8px) scale(0.98);
    }
    .grave-stage__companion-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 60px;
      height: 60px;
      border-radius: 20px;
      background: rgba(255,248,244,0.86);
      box-shadow: 0 12px 20px rgba(110, 83, 67, 0.18);
      overflow: visible;
    }
    .grave-stage__slot-decoration {
      position: absolute;
      z-index: 4;
      pointer-events: none;
      bottom: 18%;
    }
    .grave-stage__slot-decoration--left {
      left: 14%;
    }
    .grave-stage__slot-decoration--right {
      right: 14%;
    }
    .grave-stage__slot-decoration-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 66px;
      height: 66px;
      border-radius: 22px;
      background: rgba(255, 248, 244, 0.88);
      box-shadow: 0 12px 20px rgba(110, 83, 67, 0.16);
      overflow: visible;
      backdrop-filter: blur(10px);
    }
    .grave-stage__slot-decoration--roses .grave-stage__slot-decoration-icon {
      background: rgba(255, 240, 245, 0.94);
      color: #c36f93;
    }
    .grave-stage__slot-decoration--candle .grave-stage__slot-decoration-icon {
      background: rgba(255, 247, 223, 0.95);
      color: #b07a2a;
      animation: candleFlicker 2.2s ease-in-out infinite;
    }
    .grave-stage__slot-decoration--chime .grave-stage__slot-decoration-icon {
      background: rgba(236, 246, 255, 0.94);
      color: #6996b6;
      transform-origin: center top;
      animation: graveChimeSwing 4.8s ease-in-out infinite;
    }
    .grave-stage__slot-decoration--clover .grave-stage__slot-decoration-icon {
      background: rgba(238, 249, 232, 0.95);
      color: #6b9d52;
    }
    .grave-stage__blessing-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 42px;
      height: 42px;
      padding: 0 0.65rem;
      border-radius: 999px;
      backdrop-filter: blur(10px);
      box-shadow: 0 10px 18px rgba(74,56,47,0.16);
      overflow: visible;
    }
    .grave-stage__blessing--sky-left { left: 15%; top: 14%; }
    .grave-stage__blessing--sky-right { right: 15%; top: 12%; }
    .grave-stage__blessing--front-left { left: 18%; bottom: 23%; }
    .grave-stage__blessing--front-right { right: 19%; bottom: 26%; }
    .grave-blessing--gold .grave-stage__blessing-icon { background: rgba(255,241,197,0.92); }
    .grave-blessing--light .grave-stage__blessing-icon { background: rgba(247,250,255,0.9); }
    .grave-blessing--pink .grave-stage__blessing-icon { background: rgba(255,232,242,0.92); }
    .grave-blessing--peace .grave-stage__blessing-icon { background: rgba(240,247,233,0.92); }
    .grave-stage__scene-effect {
      position: absolute;
      z-index: 2;
      pointer-events: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transform: translate(-50%, -50%);
    }
    .grave-stage__scene-effect--star {
    }
    .grave-stage__scene-effect--light {
    }
    .grave-stage__scene-effect--cherry {
    }
    .grave-illustration {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 0;
    }
    .grave-illustration svg {
      display: block;
      width: 100%;
      height: 100%;
      overflow: visible;
    }
    .grave-illustration--scene {
      width: 52px;
      height: 52px;
    }
    .grave-stage__slot-decoration-icon .grave-illustration--scene {
      width: 58px;
      height: 58px;
    }
    .grave-stage__companion-icon .grave-illustration--scene {
      width: 54px;
      height: 54px;
    }
    .grave-stage__blessing-icon .grave-illustration--badge {
      width: 26px;
      height: 26px;
    }
    .grave-stage__scene-effect .grave-illustration--scene-effect {
      width: 100%;
      height: 100%;
    }
    .grave-stage__scene-effect--star .grave-illustration--scene-effect {
      animation: graveTwinkle ease-in-out infinite;
      filter: drop-shadow(0 0 12px rgba(255, 233, 146, 0.52));
    }
    .grave-stage__scene-effect--light .grave-illustration--scene-effect {
      animation: graveSoftGlow ease-in-out infinite;
      filter: drop-shadow(0 0 16px rgba(255, 232, 162, 0.42));
    }
    .grave-stage__scene-effect--cherry .grave-illustration--scene-effect {
      animation: gravePetalDrift linear infinite;
    }
    .grave-stage__scene-badge {
      position: absolute;
      top: 16%;
      z-index: 3;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      border-radius: 999px;
      background: rgba(242, 248, 238, 0.9);
      color: #6f9978;
      box-shadow: 0 10px 18px rgba(84, 107, 77, 0.12);
      animation: graveSoftGlow 4.2s ease-in-out infinite;
    }
    .grave-stage__scene-badge--left {
      left: 15%;
    }
    .grave-stage__scene-badge--right {
      right: 15%;
    }
    .grave-atmo {
      position: absolute;
      z-index: 1;
      pointer-events: none;
      opacity: 0.9;
    }
    .grave-atmo__shape {
      display: block;
      width: 100%;
      height: 100%;
    }
    .grave-atmo--petal {
      width: 14px;
      height: 18px;
      animation: gravePetalDrift linear infinite;
    }
    .grave-atmo__shape--petal {
      border-radius: 75% 25% 72% 28%;
      background: linear-gradient(180deg, #f7d2dc, #eca8bb);
      transform: rotate(-28deg);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    }
    .grave-atmo--twinkle {
      width: 14px;
      height: 14px;
      animation: graveTwinkle ease-in-out infinite;
    }
    .grave-atmo__shape--twinkle {
      background: radial-gradient(circle at center, rgba(255,247,211,0.98) 0 42%, rgba(255,247,211,0) 43%);
      clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
      filter: drop-shadow(0 0 10px rgba(255,233,146,0.55));
    }
    .grave-atmo--cloud {
      width: 42px;
      height: 20px;
      animation: graveCloudFloat ease-in-out infinite;
    }
    .grave-atmo__shape--cloud {
      margin: 6px auto 0;
      width: 22px;
      height: 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.76);
      box-shadow: -10px 3px 0 2px rgba(255,255,255,0.72), 10px 2px 0 1px rgba(255,255,255,0.68);
    }
    .grave-atmo--mote {
      width: 10px;
      height: 10px;
      animation: graveTwinkle ease-in-out infinite;
    }
    .grave-atmo__shape--mote {
      border-radius: 999px;
      background: rgba(255,247,214,0.94);
      box-shadow: 0 0 10px rgba(255,231,174,0.54);
    }
    .grave-atmo--leaf {
      width: 15px;
      height: 20px;
      animation: graveLeafDrift linear infinite;
    }
    .grave-atmo__shape--leaf {
      border-radius: 70% 0 70% 0;
      background: linear-gradient(180deg, #d09c5c, #b8723d);
      transform: rotate(22deg);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
    }
    .grave-atmo--snow {
      width: 10px;
      height: 10px;
      animation: graveSnowDrift linear infinite;
    }
    .grave-atmo__shape--snow {
      border-radius: 999px;
      background: rgba(255,255,255,0.95);
      box-shadow: 0 0 0 2px rgba(223,236,248,0.55);
    }
    .grave-stage__worship-heart {
      position: absolute;
      left: 50%;
      top: 52%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      z-index: 6;
      animation: graveHeartFloat 2.6s ease-out forwards;
      text-shadow: 0 0 12px rgba(255, 105, 180, 0.55);
    }
    .grave-control-panel {
      background: transparent;
      border-radius: 0;
      padding: 0;
      border: none;
      box-shadow: none;
      backdrop-filter: none;
    }
    .pet-detail-decor-section {
      margin: 0;
      width: 100%;
    }
    .worship-decor-content {
      display: flex;
      flex-direction: column;
      gap: 0.95rem;
    }
    .grave-mode-note,
    .grave-control-panel__header,
    .grave-summary-card {
      display: none !important;
    }
    .grave-control-panel__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      margin-bottom: 0.8rem;
    }
    .grave-control-panel__title {
      font-size: 1rem;
      font-weight: 700;
      color: #5a4c42;
    }
    .grave-control-panel__header p {
      margin-top: 0.25rem;
      font-size: 0.9rem;
      color: #8a766b;
      line-height: 1.6;
    }
    .grave-mode-note {
      padding: 0.95rem 1rem;
      border-radius: 20px;
      background: linear-gradient(135deg, rgba(255,245,241,0.92), rgba(255,250,247,0.84));
      border: 1px solid rgba(239,220,212,0.98);
      box-shadow: 0 8px 18px rgba(140,120,110,0.05);
    }
    .grave-mode-note__badge {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.3rem 0.7rem;
      border-radius: 999px;
      background: rgba(255,105,180,0.1);
      color: #c05e8d;
      font-size: 0.82rem;
      font-weight: 600;
    }
    .grave-mode-note__text {
      margin-top: 0.65rem;
      color: #7d695f;
      font-size: 0.9rem;
      line-height: 1.7;
    }
    .grave-mode-note__action {
      margin-top: 0.75rem;
      padding: 0.55rem 1rem;
      border: none;
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(255,105,180,0.92), rgba(255,141,199,0.92));
      color: #fff;
      font-size: 0.88rem;
      cursor: pointer;
      box-shadow: 0 8px 16px rgba(255,105,180,0.16);
    }
    .grave-mode-note__action:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 20px rgba(255,105,180,0.2);
    }
    .grave-summary-card {
      margin-top: 0.9rem;
    }
    .grave-control-panel__readonly {
      margin-top: 0.9rem;
      padding: 0.8rem 0.9rem;
      border-radius: 18px;
      background: rgba(255,255,255,0.6);
      border: 1px solid rgba(234,220,212,0.92);
      color: #846f64;
      font-size: 0.84rem;
      line-height: 1.65;
    }
    .grave-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin: 0;
      padding: 0.28rem;
      background: rgba(255, 252, 249, 0.8);
      border: 1px solid rgba(235, 226, 219, 0.9);
      border-radius: 999px;
      width: 100%;
      align-self: flex-start;
    }
    .grave-tabs .item-tab {
      flex: 1 1 0;
      min-width: 0;
      padding: 0.56rem 0.9rem;
      border: none;
      border-radius: 999px;
      background: transparent;
      color: #7a685e;
      box-shadow: none;
      transform: none;
      text-align: center;
    }
    .grave-tabs .item-tab:hover {
      background: rgba(255,255,255,0.76);
      color: #5f5147;
      transform: none;
    }
    .grave-tabs .item-tab.active {
      background: rgba(255,255,255,0.98);
      color: #4f433a;
      border-color: transparent;
      box-shadow: 0 6px 16px rgba(120, 99, 88, 0.12);
    }
    .grave-tab-panels {
      min-height: 0;
    }
    .grave-tab-panels .item-content.active {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .grave-tab-panels .item-content[data-grave-tab-content="decor"].active {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.9rem 1rem;
    }
    .grave-control-group__title {
      font-size: 0.84rem;
      font-weight: 700;
      color: #66584f;
      margin-bottom: 0.55rem;
    }
    .grave-control-group {
      margin-top: 0;
      padding-top: 0;
      border-top: none;
    }
    .grave-choice-grid {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(138px, 152px);
      gap: 0.7rem;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 0.15rem 0.15rem 0.5rem;
      margin: 0 -0.15rem;
      scrollbar-width: none;
    }
    .grave-choice-grid--background {
      grid-auto-columns: minmax(164px, 184px);
    }
    .grave-choice-grid--compact {
      grid-auto-columns: minmax(126px, 140px);
    }
    .grave-choice-grid::-webkit-scrollbar {
      display: none;
    }
    .grave-choice-card {
      border: 1px solid rgba(232,219,211,0.95);
      background: rgba(255,255,255,0.72);
      border-radius: 16px;
      min-height: 126px;
      padding: 0.72rem;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      gap: 0.5rem;
      text-align: left;
      color: #5a4c42;
      transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }
    .grave-choice-card:hover {
      box-shadow: 0 10px 18px rgba(140,120,110,0.1);
      border-color: rgba(212, 196, 187, 0.96);
      background: rgba(255,255,255,0.9);
    }
    .grave-choice-card.is-previewing {
      border-color: rgba(234, 171, 96, 0.95);
      box-shadow: 0 0 0 3px rgba(234, 171, 96, 0.18);
      background: rgba(255, 249, 240, 0.94);
    }
    .grave-tab-panels.is-readonly .grave-choice-card {
      cursor: pointer;
    }
    .grave-tab-panels.is-readonly .grave-choice-card:hover {
      box-shadow: 0 10px 18px rgba(140,120,110,0.1);
    }
    .grave-choice-card.is-active {
      border-color: rgba(214, 168, 149, 0.96);
      box-shadow: 0 0 0 3px rgba(229, 205, 191, 0.42);
      background: rgba(255, 250, 246, 0.98);
    }
    .grave-choice-card__preview {
      min-height: 68px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      background: rgba(255,250,245,0.9);
      color: #6f5c51;
      overflow: hidden;
      position: relative;
    }
    .grave-choice-card__preview--icon {
      background: linear-gradient(180deg, rgba(255, 252, 249, 0.98), rgba(248, 240, 234, 0.96));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.96);
    }
    .grave-choice-card__preview--none {
      color: #a49388;
      background: rgba(248, 242, 237, 0.92);
    }
    .grave-choice-card__symbol {
      font-size: 1.75rem;
      line-height: 1;
      filter: drop-shadow(0 4px 10px rgba(123, 103, 93, 0.12));
    }
    .grave-choice-card__preview .grave-illustration--tray {
      width: 60px;
      height: 60px;
    }
    .grave-choice-card__photo-preview {
      display: inline-flex;
      width: 60px;
      height: 60px;
      padding: 3px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,236,228,0.9));
      box-shadow: 0 10px 18px rgba(117, 96, 84, 0.12);
    }
    .grave-choice-card__photo-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 14px;
      display: block;
    }
    .grave-swatch--sakura { background: linear-gradient(135deg, #f7b8c8, #fce8ef); }
    .grave-swatch--starry { background: linear-gradient(135deg, #1d2441, #44507d); color: #fff7d7; }
    .grave-swatch--grassland { background: linear-gradient(135deg, #9adcf2, #92c86d); }
    .grave-swatch--autumn { background: linear-gradient(135deg, #f6cb8e, #c88848); }
    .grave-swatch--snow { background: linear-gradient(135deg, #e9f2f9, #c7d1de); }
    .grave-choice-tomb {
      width: 42px;
      height: 54px;
      border-radius: 16px 16px 8px 8px;
      display: inline-block;
      box-shadow: inset 0 2px 0 rgba(255,255,255,0.35), 0 6px 12px rgba(0,0,0,0.1);
    }
    .grave-choice-card__name {
      font-size: 0.88rem;
      font-weight: 700;
      line-height: 1.35;
    }
    .grave-choice-card__meta {
      display: none;
    }
    .memories-empty {
      padding: 1rem 0;
      text-align: center;
      color: #9b877a;
    }
    @keyframes gravePetalDrift {
      0% { transform: translateY(-10px) translateX(0) rotate(0deg); opacity: 0; }
      12% { opacity: 1; }
      100% { transform: translateY(420px) translateX(32px) rotate(280deg); opacity: 0; }
    }
    @keyframes graveLeafDrift {
      0% { transform: translateY(-12px) translateX(0) rotate(0deg); opacity: 0; }
      10% { opacity: 1; }
      100% { transform: translateY(400px) translateX(-24px) rotate(210deg); opacity: 0; }
    }
    @keyframes graveSnowDrift {
      0% { transform: translateY(-12px) translateX(0); opacity: 0; }
      10% { opacity: 0.8; }
      100% { transform: translateY(380px) translateX(18px); opacity: 0; }
    }
    @keyframes graveGuardianFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-4px); }
    }
    @keyframes graveTwinkle {
      0%, 100% { transform: scale(0.8); opacity: 0.35; }
      50% { transform: scale(1.18); opacity: 1; }
    }
    @keyframes graveSoftGlow {
      0%, 100% { transform: scale(0.92); opacity: 0.4; }
      50% { transform: scale(1.08); opacity: 1; }
    }
    @keyframes graveCloudFloat {
      0%, 100% { transform: translateX(0); opacity: 0.68; }
      50% { transform: translateX(16px); opacity: 0.92; }
    }
    @keyframes graveChimeSwing {
      0%, 100% { transform: rotate(-4deg); }
      50% { transform: rotate(4deg); }
    }
    @keyframes graveHeartFloat {
      0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
      18% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
      100% { transform: translate(var(--heart-final-x), var(--heart-final-y)) scale(0.25); opacity: 0; }
    }
    @media (max-width: 980px) {
      .pet-detail-hero__body {
        grid-template-columns: 1fr;
      }
      .pet-detail-sidebar {
        order: 2;
      }
      .pet-detail-scene {
        order: 1;
      }
    }
    @media (max-width: 640px) {
      .pet-detail-stillframe {
        min-height: 0;
        border-radius: 24px;
      }
      .pet-detail-stillframe__content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        min-height: 0;
        padding: 1.15rem;
      }
      .pet-detail-stillframe__visual {
        min-height: 0;
      }
      .pet-detail-stillframe__gallery,
      .pet-detail-stillframe__gallery--single,
      .pet-detail-stillframe__gallery--placeholder {
        width: 100%;
        max-width: none;
        grid-template-columns: minmax(0, 1fr);
      }
      .pet-detail-stillframe__gallery-lead,
      .pet-detail-stillframe__gallery-fallback {
        aspect-ratio: 1 / 1;
        border-radius: 20px;
      }
      .pet-detail-stillframe__gallery-rail {
        grid-template-rows: none;
        grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
      }
      .pet-detail-stillframe__gallery-thumb {
        border-radius: 14px;
      }
      .pet-detail-stillframe__portrait-shell {
        width: min(240px, 100%);
        margin: 0 auto;
      }
      .pet-detail-stillframe__meta {
        gap: 0.55rem;
      }
      .pet-detail-stillframe__ritual {
        width: 100%;
      }
      .pet-detail-stillframe__name {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
      }
      .pet-detail-stillframe__epitaph {
        font-size: 0.95rem;
        line-height: 1.65;
      }
      .detail-view-toolbar {
        bottom: max(14px, env(safe-area-inset-bottom) + 8px);
      }
      .detail-view-back {
        padding: 0.72rem 1rem;
        font-size: 0.92rem;
      }
      .detail-view-top {
        width: 42px;
        height: 42px;
        right: 12px;
        bottom: 16px;
      }
      .pet-detail-hero,
      .pet-detail-section {
        padding: 0;
      }
      .pet-detail-hero__top {
        flex-direction: column;
      }
      .grave-stage {
        min-height: 420px;
      }
      .grave-stage__tomb {
        width: min(250px, 72%);
        min-height: 280px;
      }
      .grave-stage__companion--front-right {
        right: 10%;
      }
      .grave-stage__guardian {
        width: 96px;
        height: 126px;
      }
      .grave-stage__guardian--front-right {
        right: 8%;
        bottom: 11%;
      }
      .grave-stage__slot-decoration--left {
        left: 8%;
      }
      .grave-stage__slot-decoration--right {
        right: 8%;
      }
      .grave-choice-grid,
      .grave-choice-grid--background,
      .grave-choice-grid--compact {
        grid-auto-columns: minmax(132px, 78vw);
      }
      .grave-tabs {
        display: flex;
        width: 100%;
      }
      .grave-tabs .item-tab {
        flex: 1 1 0;
        min-width: 0;
      }
      .grave-tab-panels .item-content[data-grave-tab-content="decor"].active {
        grid-template-columns: 1fr;
      }
      .ritual-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .ritual-message-send {
        width: 100%;
      }
    }
    

    
