/* 时装系统界面：沿用「格子 + 详情」册页（gd29）的骨架，左 3 列格子，右边把信息卡改成"预览台 | 说明"两栏 */
.of31 .gd29-g { grid-template-columns: repeat(3, var(--c)); }
.of31 .gd29-g.none { width: calc(var(--c) * 3 + 12px); }
.of31 .gd29-ic canvas.of31-ic, canvas.of31-ic { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.of31 .gd29-r { display: grid; grid-template-columns: 156px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; column-gap: 8px; row-gap: 4px; align-content: stretch; }
.of31 .gd29-top { grid-column: 2; grid-row: 1; height: auto; min-height: 34px; }
.of31 .gd29-top::after { display: none; }
.of31 .gd29-big { display: none; }
.of31 .gd29-nm b { font-size: 19px; letter-spacing: 2px; }
.of31 .gd29-chips { grid-column: 2; grid-row: 2; }
.of31 .gd29-chip small { letter-spacing: 1px; }
.of31 .gd29-desc { grid-column: 2; grid-row: 3; align-items: flex-start; }
.of31 .gd29-desc p { -webkit-line-clamp: 4; max-height: 76px; font-size: 12px; line-height: 19px; }
.of31 .gd29-act { grid-column: 1 / 3; grid-row: 4; }
.of31 .gd29-qty { display: none; }
.of31 .gd29-r::before { display: none; }
.of31 .gd29-flt { flex-wrap: nowrap; }

/* 预览台：一只穿着这一身的猫，右边竖排方向与动作 */
.of31-stage { grid-column: 1; grid-row: 1 / 4; display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 0; padding: 4px 4px 3px; box-sizing: border-box; border-radius: 8px; position: relative; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background: radial-gradient(ellipse at 50% 70%, rgba(255,250,232,.95) 0%, rgba(240,226,188,.8) 48%, rgba(214,190,138,.6) 100%);
  box-shadow: inset 0 0 0 1px rgba(122,98,64,.5), inset 0 0 0 3px rgba(251,246,230,.55), inset 0 0 14px rgba(120,84,40,.22); }
.of31-stage.grab { cursor: grabbing; }
.of31-cv { flex: 1 1 auto; min-height: 0; width: 100%; max-height: 100%; image-rendering: pixelated; object-fit: contain; pointer-events: none; }
/* 脚下的小转盘：针指着猫朝的方向，点一下转四分之一圈，拖猫也会跟着转 */
.of31-bar { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; height: 24px; border-top: 1px dashed rgba(122,98,64,.35); padding-top: 2px; }
.of31-bar span { font: 11px/1 "猫田楷", "Noto Sans SC", serif; letter-spacing: 1px; color: var(--ink-2); opacity: .8; }
.of31-dial { position: relative; flex: none; width: 22px; height: 22px; padding: 0; cursor: pointer; border: 0; background: none; }
.of31-ring { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: radial-gradient(circle at 40% 35%, #fbf6e6, #e4d4aa); box-shadow: 0 1px 0 rgba(122,98,64,.35), inset 0 0 0 2px rgba(251,246,230,.7); }
.of31-ring::before, .of31-ring::after { content: ""; position: absolute; background: rgba(122,98,64,.5); }
.of31-ring::before { left: 50%; top: 3px; bottom: 3px; width: 1px; } .of31-ring::after { top: 50%; left: 3px; right: 3px; height: 1px; }
.of31-needle { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -1px 0 0 -4px; transition: transform .28s cubic-bezier(.3,1.4,.5,1); transform-origin: 4px 1px; }
.of31-needle::before { content: ""; position: absolute; left: 0; top: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 9px solid #a63a2e; filter: drop-shadow(0 .5px 0 rgba(60,20,10,.4)); }
.of31-dial:active .of31-ring { transform: scale(.94); }

/* 猫的状态页上的小入口 */
.of31 .gd29-l { flex: 0 0 calc(var(--c) * 3 + 12px); width: calc(var(--c) * 3 + 12px); }
.of31 .gd29-pg { gap: 6px; }
.of31 .gd29-pg .gd29-n { white-space: nowrap; }
.cat-stage { position: relative; }
.of31 .gd29-pg.of31-two .gd29-n { display: none; }
/* 珍品时装的图标：慢慢呼吸的一圈微光 */
.of31-ic[data-id^="crane_"] { animation: of31-gc 3s ease-in-out infinite; }
.of31-ic[data-id^="peach_"] { animation: of31-gp 3s ease-in-out infinite; }
@keyframes of31-gc { 0%, 100% { filter: drop-shadow(0 0 0 rgba(207,232,255,0)); } 50% { filter: drop-shadow(0 0 2px rgba(207,232,255,.95)) brightness(1.08); } }
@keyframes of31-gp { 0%, 100% { filter: drop-shadow(0 0 0 rgba(242,147,174,0)); } 50% { filter: drop-shadow(0 0 2px rgba(242,147,174,.95)) brightness(1.06); } }
@media (prefers-reduced-motion: reduce) { .of31-ic { animation: none !important; } }
