/* R15f · Master Mode trophy gallery. Stage units (cqw) so it always fits the 16:9 frame. */
#trophies{z-index:23;background:radial-gradient(ellipse at 50% 30%,#2a2238 0,#120d18f0 72%);color:#f2e3bd;font-family:CupMemphis,Georgia,serif}
#trophies .trophy-hall{position:relative;width:88cqw;max-height:53cqw;box-sizing:border-box;padding:1.4cqw 2.2cqw 1cqw;background:linear-gradient(#1e1826,#15111b);border:.25cqw solid #8a6a2c;border-radius:.6cqw;box-shadow:0 0 0 .2cqw #1a120a,0 .6cqw 0 #08060b,0 0 5cqw #000c;overflow:hidden}
#trophies .trophy-hall::before{content:"";position:absolute;inset:.45cqw;border:.1cqw solid #c9a24f55;border-radius:.4cqw;pointer-events:none}
#trophies header{display:flex;align-items:flex-end;gap:2cqw;border-bottom:.15cqw solid #8a6a2c;padding-bottom:.6cqw}
#trophies header>div:first-child{flex:1}
#trophies .trophy-kicker{font-size:.95cqw;letter-spacing:.35cqw;color:#c9a24f}
#trophies h2{font:3cqw CupVogue,Georgia,serif;margin:0;line-height:1;color:#ffe7a8;text-shadow:0 .2cqw 0 #5a3d12}
#trophies .trophy-score{text-align:right;line-height:1.1}
#trophies .trophy-score strong{display:block;font:2.2cqw CupVogue,Georgia,serif;color:#ffd96a}
#trophies .trophy-score span{font-size:.95cqw;color:#c9b88f}
#trophies .trophy-back{font:1.2cqw CupMemphis,Georgia,serif;color:#2a1d0c;background:#e9c86d;border:.15cqw solid #2a1d0c;border-radius:.3cqw;padding:.45cqw 1.1cqw;cursor:pointer;box-shadow:0 .2cqw 0 #2a1d0c}
#trophies .trophy-back:hover,#trophies .trophy-back:focus-visible{background:#ffe08a;outline:.2cqw solid #ffe7a8;outline-offset:.15cqw}
#trophies h3{font:1.05cqw CupMemphis,Georgia,serif;letter-spacing:.25cqw;color:#c9a24f;margin:.8cqw 0 .3cqw}
#trophies .trophy-shelf{display:grid;grid-template-columns:repeat(9,1fr);gap:.2cqw .6cqw;padding:.2cqw .4cqw .5cqw;background:linear-gradient(transparent 82%,#3a2a14 82%,#2a1d0e 90%,transparent 90%);background-size:100% 50%}
#trophies .trophy-bonus{grid-template-columns:repeat(12,1fr);background-size:100% 100%}
#trophies .trophy{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:8.8cqw;padding:0;margin:0;background:none;border:0;border-radius:.4cqw;cursor:pointer;color:inherit}
#trophies .trophy-bonus .trophy{height:7cqw}
#trophies .trophy:focus-visible,#trophies .trophy:hover{background:radial-gradient(ellipse at 50% 60%,#ffd96a2a,transparent 70%);outline:none}
#trophies .trophy:focus-visible::after{content:"";position:absolute;inset:.1cqw;border:.15cqw dashed #ffd96a;border-radius:.4cqw}
/* the relic floats and glows like the placed relics in Terraria */
#trophies .relic{width:4.7cqw;height:4.7cqw;margin-bottom:.15cqw;image-rendering:pixelated;animation:relicBob 3s ease-in-out infinite}
#trophies .trophy-bonus .relic{width:3.5cqw;height:3.5cqw}
#trophies .relic-sheet{background:url(assets/terraria/Extra_198.png) no-repeat;background-size:100% 2800%}
#trophies .relic-gilded{display:flex;align-items:center;justify-content:center}
#trophies .relic-gilded img{max-width:100%;max-height:100%;image-rendering:pixelated;filter:grayscale(1) sepia(1) saturate(3.4) hue-rotate(-6deg) brightness(1.08) contrast(1.15)}
#trophies .trophy:not(.is-earned) .relic{filter:brightness(0) opacity(.42);animation:none}
#trophies .trophy:not(.is-earned) .relic-gilded img{filter:brightness(0)}
#trophies .trophy.is-earned .relic{filter:drop-shadow(0 0 .35cqw #ffd96a99)}
#trophies .trophy.is-earned:focus-visible .relic,#trophies .trophy.is-earned:hover .relic{filter:drop-shadow(0 0 .7cqw #ffe9a0)}
#trophies .plinth{width:3.8cqw;height:1.13cqw;background:url(assets/terraria/Tiles_617.png) no-repeat;background-size:100% 900%;background-position:0 42.19%;image-rendering:pixelated}
#trophies .trophy-bonus .plinth{width:2.9cqw;height:.86cqw}
#trophies .trophy:not(.is-earned) .plinth{filter:grayscale(1) brightness(.45)}
#trophies .trophy-name{font-size:.85cqw;line-height:1.1;margin-top:.25cqw;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d8c79c}
#trophies .trophy:not(.is-earned) .trophy-name{color:#6f6450}
#trophies .trophy-bonus .trophy-name{font-size:.7cqw}
@keyframes relicBob{50%{transform:translateY(-.35cqw)}}
#trophies .trophy-detail{display:flex;align-items:baseline;gap:1.2cqw;min-height:2cqw;margin-top:.6cqw;padding:.55cqw 1cqw;border-top:.12cqw solid #8a6a2c66;font-size:1.05cqw;color:#b8a983}
#trophies .trophy-detail strong{font:1.5cqw CupVogue,Georgia,serif;color:#e9dcb8}
#trophies .trophy-detail.is-earned strong{color:#ffd96a}
#trophies .trophy-detail small{margin-left:auto;font-size:.9cqw;color:#8f8366}
#trophies .trophy-keys{text-align:center;font-size:.8cqw;color:#7d7259;margin:.3cqw 0 0}
#trophies.all-earned .trophy-hall{box-shadow:0 0 0 .2cqw #1a120a,0 .6cqw 0 #08060b,0 0 4cqw #ffd96a55}
@media (prefers-reduced-motion:reduce){#trophies .relic{animation:none}}
/* R15i · fight records in the detail line and header */
#trophies .trophy-score small{display:block;font-size:.85cqw;color:#a8987a;margin-top:.15cqw}
#trophies .trophy-detail{flex-wrap:wrap}
#trophies .trophy-record{display:grid;grid-template-columns:auto auto;gap:.1cqw .8cqw;margin:0 0 0 1cqw;font-size:.95cqw}
#trophies .trophy-record dt{color:#8f8366}
#trophies .trophy-record dd{margin:0;color:#e9dcb8}
