/* The cosmetics appear as a cut film ticket and a physical shelf of posters.
   All artwork is decorative; progress and favorite links remain native. */

/* XP palette: pearl paper, amber film, starlight and rain glass. */
:is(.komi-display-xp,.komi-display-xp-equipped) {
 --display-xp-ink:#ece0c8;--display-xp-edge:#98856b;
 --display-xp-stock:#1f1a17;--display-xp-paper:#332925;--display-xp-well:#191615;
 --display-xp-fill:repeating-linear-gradient(114deg,#c39f86 0 6px,#efdccc 6px 9px,#c39f86 9px 16px,#7c6254 16px 17px);
}
:is(.komi-display-xp,.komi-display-xp-equipped).komi-store-xp-projection-film {
 --display-xp-ink:#ffda97;--display-xp-edge:#a87642;--display-xp-stock:#24180f;--display-xp-paper:#503320;--display-xp-well:#21170f;
 --display-xp-fill:radial-gradient(ellipse at 50% 110%,#fff4bd,#eaa352 65%,#96652b);
}
:is(.komi-display-xp,.komi-display-xp-equipped).komi-store-xp-star-chart {
 --display-xp-ink:#e1ceff;--display-xp-edge:#806ca3;--display-xp-stock:#18142a;--display-xp-paper:#2f2850;--display-xp-well:#190f2d;
 --display-xp-fill:radial-gradient(circle,#fff1ff 1px,transparent 1.6px) 0 0/14px 7px,
  linear-gradient(90deg,#685cce,#c89cfb 72%,#f2d7ff);
}
:is(.komi-display-xp,.komi-display-xp-equipped).komi-store-xp-rainfall-meter {
 --display-xp-ink:#b5f3ee;--display-xp-edge:#53929d;--display-xp-stock:#0f242a;--display-xp-paper:#203d48;--display-xp-well:#13252e;
 --display-xp-fill:repeating-linear-gradient(116deg,#a3ece5 0 4px,#59abb9 4px 9px,#5e99b5 9px 10px);
}
.komi-display-xp,
#profile.komi-profile-premium-mono .profile-xp-capsule.komi-display-xp-equipped {
 position:relative;isolation:isolate;box-sizing:border-box;min-width:0;
 color:var(--display-xp-ink);border:1px solid var(--display-xp-edge);border-radius:10px;
 background:radial-gradient(ellipse at 0 0,var(--display-xp-paper),transparent 72%),var(--display-xp-stock);
 box-shadow:inset 0 0 0 3px #08060565,0 3px 11px #0006;
}
.komi-display-xp {
 display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;
 width:100%;min-height:72px;padding:7px;
}
.komi-display-xp-seal {
 display:grid;place-content:center;justify-items:center;width:clamp(24px,5.1vw,41px);height:48px;
 color:var(--display-xp-ink);border:1px solid var(--display-xp-edge);border-radius:5px;
 background:
  linear-gradient(90deg,transparent 46%,var(--display-xp-edge) 49% 51%,transparent 55%) top/100% 7px no-repeat,
  linear-gradient(135deg,#ffffff16,#0009);
 box-shadow:inset 0 0 0 2px #0005;font:850 16px/.95 Manrope,Inter,sans-serif;
}
.komi-display-xp-seal em {font:750 8px/1.4 Manrope,Inter,sans-serif}
.komi-store-xp-star-chart .komi-display-xp-seal {border-radius:50%;box-shadow:inset 0 0 0 3px #19152e,inset 0 0 0 4px #9c83c977}
.komi-store-xp-rainfall-meter .komi-display-xp-seal {border-radius:2px 10px 2px 9px;border-style:dashed}
.komi-display-xp-main {display:grid;min-width:0;gap:4px}
.komi-display-xp-heading {display:flex;align-items:baseline;justify-content:space-between;gap:4px;min-width:0}
.komi-display-xp-heading b {font:850 clamp(9px,1.1vw,14px)/1.1 Manrope,Inter,sans-serif;color:#fff}
.komi-display-xp-heading small,.komi-display-xp-next {
 font:700 clamp(8px,1.05vw,11px)/1.2 Inter,sans-serif;color:#ede9e4;font-variant-numeric:tabular-nums;
}
.komi-display-xp-next b {color:var(--display-xp-ink)}
.komi-display-xp-heading small {font-size:9px;white-space:nowrap}
.komi-display-xp-track,
#profile.komi-profile-premium-mono .komi-display-xp-equipped .profile-xp-progress-track {
 position:relative;display:block;box-sizing:border-box;width:100%;height:18px;
 padding:3px 1px 4px;background:var(--display-xp-well);border:1px solid var(--display-xp-edge);border-radius:4px;
}
.komi-store-xp-projection-film :is(.komi-display-xp-track,.profile-xp-progress-track) {
 background:
  repeating-linear-gradient(90deg,#e59b5065 0 3px,transparent 3px 6px) 2px 0/100% 2px no-repeat,
  repeating-linear-gradient(90deg,#e59b5065 0 3px,transparent 3px 6px) 2px 100%/100% 2px no-repeat,
  var(--display-xp-well)!important;
}
.komi-display-xp-track progress,
#profile.komi-profile-premium-mono .profile-xp-capsule.komi-display-xp-equipped .profile-xp-progress-track progress {
 display:block;appearance:none;width:100%;height:100%;padding:0;margin:0;box-sizing:border-box;
 background:var(--display-xp-well)!important;border:0;box-shadow:none;border-radius:2px;overflow:hidden;
 accent-color:var(--display-xp-ink);
}
.komi-display-xp-track progress::-webkit-progress-bar,
#profile.komi-profile-premium-mono .profile-xp-capsule.komi-display-xp-equipped .profile-xp-progress-track progress::-webkit-progress-bar {
 background:var(--display-xp-well)!important;border-radius:2px;
}
.komi-display-xp-track progress::-webkit-progress-value,
#profile.komi-profile-premium-mono .profile-xp-capsule.komi-display-xp-equipped .profile-xp-progress-track progress::-webkit-progress-value {
 background:var(--display-xp-fill)!important;border-radius:2px;
}
.komi-display-xp-track progress::-moz-progress-bar,
#profile.komi-profile-premium-mono .profile-xp-capsule.komi-display-xp-equipped .profile-xp-progress-track progress::-moz-progress-bar {
 background:var(--display-xp-fill)!important;border-radius:2px;
}
.komi-display-checkpoints {display:none}
.komi-display-xp .komi-display-checkpoints,
.komi-display-xp-equipped .komi-display-checkpoints {
 position:absolute;inset:0 1px;display:flex;justify-content:space-around;align-items:center;padding-inline-start:12.5%;
 box-sizing:border-box;pointer-events:none;
}
.komi-display-checkpoints i {
 position:absolute;background:#171316;border:1px solid var(--display-xp-edge);box-sizing:border-box;
 width:5px;height:5px;border-radius:1px;transform:translateX(-50%) rotate(45deg);
}
.komi-display-checkpoints i:nth-child(1) {left:25%}
.komi-display-checkpoints i:nth-child(2) {left:50%}
.komi-display-checkpoints i:nth-child(3) {left:75%}
.komi-display-checkpoints i:nth-child(4) {left:calc(100% - 3px);width:6px;height:6px}
.komi-display-checkpoints i[data-reached] {background:var(--display-xp-ink);border-color:#231913}
#profile.komi-profile-premium-mono .komi-display-xp-equipped .profile-xp-level strong,
#profile.komi-profile-premium-mono .komi-display-xp-equipped .profile-xp-remaining {color:var(--display-xp-ink)}
#profile.komi-profile-premium-mono .komi-display-xp-equipped:not(.komi-store-xp-story-rhythm) .profile-xp-progress-track::after {content:none}
.komi-display-xp-fitting {margin-top:10px}

/* Display case materials vary, while the real poster bounds remain consistent. */
.komi-display-shelf {
 --display-case:#25211e;--display-edge:#a08264;--display-plaque:#fce6bd;
 --display-panel:#49362e;--display-poster-edge:#bb986a;--display-case-detail:#f7cc8d6c;
 position:relative;isolation:isolate;box-sizing:border-box;
 min-width:0;border:1px solid var(--display-edge);border-radius:9px;
 background:linear-gradient(145deg,#ffffff18,transparent 42%),var(--display-case);
 box-shadow:inset 0 0 0 3px #0007,0 3px 12px #0005;color:var(--display-plaque);
}
.komi-display-shelf.komi-store-showcase-manga-triptych {
 --display-case:linear-gradient(136deg,#3d3b40,#17171c 66%);--display-edge:#c7c4c0;--display-plaque:#fff7e9;
 --display-panel:repeating-linear-gradient(130deg,#6e6768 0 1px,#3f3b45 1px 3px);
 --display-poster-edge:#d4c4b7;--display-case-detail:#e1d4c591;border-radius:4px 8px 7px 5px;
}
.komi-display-shelf.komi-store-showcase-neon-marquee {
 --display-case:radial-gradient(ellipse at 50% 0,#523779 0%,#211632 72%);--display-edge:#ad8ee4;--display-plaque:#f3ddff;
 --display-panel:#29203b;--display-poster-edge:#8bcfc8;--display-case-detail:#caa3ff9b;
}
.komi-display-shelf.komi-store-showcase-library-shelf {
 --display-case:repeating-linear-gradient(174deg,#513326 0 7px,#452a20 9px 12px,#2f201b 14px 15px);
 --display-edge:#a77952;--display-plaque:#ffe7bc;
 --display-panel:#422d25;--display-poster-edge:#ddac77;--display-case-detail:#c28a5c80;
}
.komi-display-shelf.komi-store-showcase-treasure-map {
 --display-case:repeating-linear-gradient(160deg,#3d3422 0 5px,#473c27 6px 7px);
 --display-edge:#baa263;--display-plaque:#f8e6aa;--display-panel:#514230;
 --display-poster-edge:#d2b269;--display-case-detail:#d9ba5377;
}
#shop.komi-shop-studio .komi-display-shelf.komi-shop-showcase-demo {
 display:grid;gap:4px;padding:5px 6px 7px;width:100%;height:auto;min-height:0;
}
.komi-display-shelf-head {
 display:flex;align-items:baseline;justify-content:space-between;gap:3px;min-width:0;
 font:750 clamp(8px,1.04vw,12px)/1.15 Manrope,Inter,sans-serif;
}
#shop.komi-shop-studio .komi-display-shelf-head b {position:static;font:inherit;color:inherit;text-shadow:none}
.komi-display-shelf-head small {font:650 8px/1.15 Inter,sans-serif;color:#e8e4df;white-space:nowrap}
.komi-display-reels,.komi-display-shelf .komi-shop-favorite-list {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;min-width:0;counter-reset:none;
}
#shop.komi-shop-studio .komi-display-reels .komi-display-film,
#profile.komi-profile-premium-mono .komi-display-shelf .komi-shop-favorite-list a {
 position:relative;isolation:isolate;display:grid;align-items:end;min-width:0;margin:0;
 min-height:43px;aspect-ratio:1.06;overflow:hidden;box-sizing:border-box;
 background:var(--display-panel);border:1px solid var(--display-poster-edge);border-radius:4px;
}
#shop.komi-shop-studio .komi-display-reels .komi-display-film::after {content:none}
#shop.komi-shop-studio .komi-display-film img,
#profile.komi-profile-premium-mono .komi-display-shelf .komi-shop-favorite-list img {
 display:block;position:absolute;z-index:-1;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%;
 filter:none;background:none;border:0;border-radius:0;
}
#shop.komi-shop-studio .komi-display-film img[hidden] {display:none!important}
#shop.komi-shop-studio .komi-display-shelf[data-komi-showcase-kind="sample"] .komi-display-film img {
 object-fit:cover;object-position:center 9%;
 background:radial-gradient(ellipse at 50% 25%,#63758d,var(--display-panel) 82%);
}
#shop.komi-shop-studio .komi-display-shelf[data-komi-showcase-kind="sample"] .komi-display-film:nth-child(2) img {
 background:radial-gradient(ellipse at 50% 15%,#945d4e,var(--display-panel) 82%);
}
#shop.komi-shop-studio .komi-display-shelf[data-komi-showcase-kind="sample"] .komi-display-film:nth-child(3) img {
 background:radial-gradient(ellipse at 50% 15%,#547961,var(--display-panel) 82%);
}
#shop.komi-shop-studio .komi-display-shelf.komi-store-showcase-manga-triptych img,
#profile.komi-profile-premium-mono .komi-display-shelf.komi-store-showcase-manga-triptych img {filter:grayscale(1) contrast(1.08)}
#shop.komi-shop-studio .komi-display-reels .komi-display-film b,
#profile.komi-profile-premium-mono .komi-display-shelf .komi-shop-favorite-list a span {
 position:static;display:block;box-sizing:border-box;width:100%;min-width:0;overflow:hidden;
 color:#fff;background:linear-gradient(transparent,#0a080fee 52%);text-align:left;text-shadow:none;
 font:750 clamp(8px,1.02vw,11px)/1.15 Manrope,Inter,sans-serif;padding:9px 3px 3px;white-space:nowrap;text-overflow:ellipsis;
}
.komi-display-shelf.komi-store-showcase-neon-marquee::before,
.komi-display-shelf.komi-store-showcase-library-shelf::before {
 content:"";position:absolute;inset:auto 6px 3px;height:1px;pointer-events:none;background:var(--display-case-detail);
}
.komi-display-shelf.komi-store-showcase-neon-marquee::before {box-shadow:0 0 6px #de9eff}
.komi-display-showcase-fitting {margin-block:3px 0}
#shop.komi-shop-studio .komi-display-showcase-fitting .komi-display-film {aspect-ratio:.9;max-height:105px}
#profile.komi-profile-premium-mono .komi-shop-favorite-showcase.komi-display-shelf {
 max-width:480px;padding:9px 12px 13px;width:100%;
}
#profile.komi-profile-premium-mono .komi-display-shelf[hidden] {display:none!important}
#profile.komi-profile-premium-mono .komi-display-shelf h3 {
 color:var(--display-plaque);margin:1px 0 7px;font:800 13px/1.3 Manrope,Inter,sans-serif;
}
#profile.komi-profile-premium-mono .komi-display-shelf .komi-shop-favorite-list {gap:7px}
#profile.komi-profile-premium-mono .komi-display-shelf .komi-shop-favorite-list a {aspect-ratio:.78;max-height:146px}
#profile.komi-profile-premium-mono .komi-display-shelf .komi-shop-favorite-list a:focus-visible {
 outline:2px solid #fff;outline-offset:2px;z-index:1
}
@media (max-width:420px) {
 .komi-display-xp {gap:4px;padding:5px}
 .komi-display-xp-seal {width:24px;height:42px;font-size:14px}
 .komi-display-xp-heading {flex-wrap:wrap;gap:2px}
 #shop.komi-shop-studio .komi-display-shelf.komi-shop-showcase-demo {padding-inline:4px}
 #shop.komi-shop-studio .komi-display-reels {gap:2px}
 #profile.komi-profile-premium-mono .komi-shop-favorite-showcase.komi-display-shelf {padding-inline:8px}
}
@media (forced-colors:active) {
 .komi-display-xp,.komi-display-shelf,.komi-display-xp-equipped {border:1px solid CanvasText}
 .komi-display-checkpoints i {border:1px solid GrayText}
 .komi-display-checkpoints i[data-reached] {border-color:Highlight}
}
