/* The 枫叶集市 wardrobe (public/wardrobe.js), on the campus and mail pages. Phone first. Palette tokens only. */
/* 头像框: the frame picture is 1000×1250 with the photo area 680×863 in the middle (assets/art/template-frame.png). */
.art-frame-host, .art-frame-slot { position: relative; display: inline-block; flex: none; }
.art-frame-host > .art-frame-img { position: absolute; left: -23.53%; top: -22.42%; width: 147.06%; height: 144.84%; max-width: none; pointer-events: none; z-index: 1; }
/* 气泡框: a 9-slice picture (600×600, corners 150px; assets/art/template-bubble.png). */
.art-bubble-on { border: 22px solid transparent; border-image-slice: 25% fill; border-image-width: 22px; border-image-repeat: stretch; background-clip: padding-box; }
.note-card.art-bubble-on, .rec-slip.art-bubble-on { box-shadow: none; }
/* token (top right) and up to three 贴纸 (bottom right) on the 学生证 */
.art-pins { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.art-pin-token { position: absolute; top: 40px; right: 10px; width: 52px; height: 52px; object-fit: contain; border-radius: 50%; transform: rotate(6deg); }
.art-pin-sticker { position: absolute; bottom: 8px; width: 46px; height: 46px; object-fit: contain; }
.art-pin-sticker.s0 { right: 10px; transform: rotate(-8deg); } .art-pin-sticker.s1 { right: 58px; transform: rotate(5deg); } .art-pin-sticker.s2 { right: 106px; transform: rotate(-3deg); }

/* 底纹: a tile (assets/art/template-pattern.png, 400×400, repeats seamlessly) under a paper wash so the words stay readable. */
.student-card.art-pattern-on { background-image: linear-gradient(color-mix(in srgb, var(--p-paper) 70%, transparent), color-mix(in srgb, var(--p-paper) 70%, transparent)), var(--art-pattern);
  background-size: auto, 120px 120px; background-repeat: repeat; }
.cp-badge.art-pattern-on .cp-paper i { background-image: linear-gradient(color-mix(in srgb, var(--p-paper) 62%, transparent), color-mix(in srgb, var(--p-paper) 62%, transparent)), var(--art-pattern);
  background-size: auto, 64px 64px; background-repeat: repeat; }
/* 信笺: a 9-slice border round the letter (800×800, corners 200px; assets/art/template-letter.png); 火漆印 sits on its top right. */
.art-letter-on { border: 26px solid transparent; border-image-slice: 25%; border-image-width: 26px; border-image-repeat: round; }
@media (min-width: 761px) { .art-letter-on { border-width: 40px; border-image-width: 40px; } }
.art-seal { position: absolute; top: -18px; right: 10px; width: 64px; height: 64px; object-fit: contain; transform: rotate(-12deg); pointer-events: none; z-index: 2; }
@media (min-width: 761px) { .art-seal { width: 84px; height: 84px; top: -26px; right: 18px; } }
/* 档案背景: a wide picture (1600×900; assets/art/template-backdrop.png) behind the 学生证 on the 学生档案, like a scene the card is
   held up against; it fades out downwards. record-page is a grid: the picture and the card share its third row (after 返回 and the title). */
.record-page.art-backdrop-on::before { content: ""; grid-row: 3; grid-column: 1; margin: -10px -8px -46px; border-radius: 12px; pointer-events: none;
  background: var(--art-backdrop) center top / cover no-repeat; -webkit-mask-image: linear-gradient(to bottom, var(--p-bark) 62%, transparent); mask-image: linear-gradient(to bottom, var(--p-bark) 62%, transparent); }
.record-page.art-backdrop-on > .student-card { grid-row: 3; grid-column: 1; position: relative; z-index: 1; margin: 34px 14px 0; }
