/* TROPHY CASE on /profile (ticket 663; assets/trophy.js). One fridge-door board (kit .k-board + .k-title plank); each
   numbered catch is the catch card's composition: the paint ROSETTE tilted on the left with its label-maker chip carrying
   the serial (gen_result.py: chip centred 12.5% above the rosette's middle, 28% of its height, 92% of its width), the FW1
   fish cut-out, its paint on the fish page's Dymo chip, and the worn SVG wear meter (band chart paint) full width under it. */
.cabinet{max-width:520px;margin:26px auto 0;padding:0 4px}
.cabinet .k-board{padding:26px 38px 24px 26px}
.cabinet .k-title{font-size:30px}
.cabinet .k-sub{margin-bottom:4px}
/* the fish page's Polaroid: habitat scene + fish UNDER the frame's lip (fish.json photo rect 7.1/6.2/85.6/70.9 %) */
.tr-photo{grid-area:photo;position:relative;justify-self:start;width:100%;max-width:190px;aspect-ratio:400/410;transform:rotate(2.5deg);
  filter:drop-shadow(0 5px 5px #0007)}
.tr-pic{position:absolute;left:7.1%;top:6.2%;width:85.6%;height:70.9%;overflow:hidden;background:#1d3a44 center/cover no-repeat;
  display:flex;align-items:center;justify-content:center}
.tr-frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.tr-fish{display:block;width:88%;height:80%;object-fit:contain;filter:drop-shadow(0 4px 3px #0007);transition:filter .9s ease}
canvas.tr-fish{width:88%;height:80%;object-fit:contain}
.tr-q{position:absolute;font:400 40px/1 var(--sign);color:#f4f1ea;text-shadow:0 2px 0 #0008;opacity:0;transition:opacity .4s}
.tr-cap{position:absolute;left:0;right:0;bottom:4.5%;text-align:center;font:400 16px/1.1 var(--hand);color:var(--ink2);opacity:0;transition:opacity .4s}
/* not caught by the viewer: the dex's ??? card - near-black silhouette over the murked scene */
.tr-photo.sil .tr-pic::after{content:'';position:absolute;inset:0;background:rgba(12,28,34,.55)}
.tr-photo.sil .tr-fish{filter:brightness(0) opacity(.88)}
.tr-photo.sil .tr-q,.tr-photo.sil .tr-cap{opacity:1}
.tr-photo.sil .tr-q{z-index:1}
.tr-photo.seen .tr-pic{animation:tr-dev 1.1s ease both}
@keyframes tr-dev{from{filter:brightness(.25) sepia(.6)}}
@media (prefers-reduced-motion:reduce){.tr-photo.seen .tr-pic{animation:none}}
.tr-of{font:400 17px/1.2 var(--hand);color:var(--ink2);margin:0}
.tr-foot{grid-area:foot;margin-top:8px}
.tr-wear{display:block;width:100%;height:auto;overflow:visible}
.tr-wear .tr-cut{stroke:#2b1d10;stroke-width:2;opacity:.75}
.tr-wear .tr-rim{fill:none;stroke:#2b1d10;stroke-width:1.6;opacity:.7}
.tr-wear .tr-ax{font:400 12px var(--sign);fill:#6a4524}
.tr-wear .tr-wedge{fill:#2b1d10;stroke:#f4f1ea;stroke-width:1.4;stroke-linejoin:round}
.tr-wear .tr-needle{stroke:#2b1d10;stroke-width:2.4;stroke-linecap:round}
.tr-wear .tr-float{font:400 17px var(--sign);fill:#2b1d10}
.tr-grade{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:2px}
.tr-grade .k-stamp{font-size:15px;white-space:nowrap}
.tr-grade small{white-space:nowrap}
.tr-grade small{font:400 15px/1 var(--hand);color:var(--ink2)}
.cab-tip{display:flex;gap:8px;align-items:flex-start;font:400 17px/1.3 var(--hand);color:var(--ink2);margin:10px 4px 0}
.cab-tip img{flex:none;margin-top:2px}
/* v3: case summary (csfloat inventory header) + grade spread in the meter's own band paint */
.cab-sum{display:flex;gap:8px;margin:10px 0 8px}
/* Joe 2026-11-13 ("these header areas ... more consistent with our UI"): each tile is the kit's sticky-note strip
   (.k-strip's painted border-image), never a CSS cream box */
.cab-tile{flex:1 1 0;min-width:0;display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;justify-content:center;
  column-gap:4px;align-items:center;text-align:center;padding:2px 2px 1px;border:9px solid transparent;border-image:url('/assets/img/kit/sticky-note-strip.webp') 24 fill / 9px stretch;
  filter:drop-shadow(0 2px 2px rgba(58,38,20,.3));transform:rotate(-1.2deg)}
.cab-tile:nth-child(2){transform:rotate(1deg)}
.cab-tile:nth-child(3){transform:rotate(-.4deg)}
.cab-tile img{grid-row:1;width:28px;height:28px;object-fit:contain}
.cab-tile b{grid-row:1;font:400 24px/1 var(--sign);color:var(--ink)}
.cab-tile small{grid-row:2;grid-column:1/-1;font:400 15px/1.05 var(--hand);color:var(--ink2);white-space:nowrap}
/* v3 per catch: BEST! burst on the fish, spec chips (toe-tag weight, landed day, pattern) */
.trophy{position:relative}
.tr-best{position:absolute;right:-8px;top:-14px;width:60px;height:auto;transform:rotate(9deg);filter:drop-shadow(0 3px 3px #0005);animation:tr-pop .5s cubic-bezier(.3,1.6,.5,1) both}
@keyframes tr-pop{from{transform:rotate(9deg) scale(.2);opacity:0}}
@media (prefers-reduced-motion:reduce){.tr-best{animation:none}}
.tr-spec{display:flex;flex-wrap:wrap;gap:6px 8px;margin-top:8px}
.tr-chip img{width:20px;height:20px;object-fit:contain}
.tr-toe{background:url(/assets/trophy/ui/card-toetag.webp) left center/auto 100% no-repeat;box-shadow:none;border-radius:0;
  padding:4px 10px 3px 30px;font:400 17px/1.1 var(--sign);transform:rotate(-2deg)}
.tr-pat{font-family:var(--sign);font-size:15px;letter-spacing:.4px}
.tr-wear .tr-lo{font-size:11px}
/* v4 (Joe 2026-11-13: "we got rid of the badges that said the name ... just had a little paint symbol ... missing the name
   of the fish ... these other elements still do not resemble our UI guidelines"): Polaroid left with the fish's name on its
   lip and the paint SPLAT stuck on its corner, the serial on the kit's yellow tape, spec lines written on the paper (no
   CSS pills), the grade spread as the kit's tin tabs (they filter the case) */
.trophy{display:grid;grid-template-columns:minmax(0,56%) 1fr;grid-template-areas:"photo body" "foot foot";column-gap:14px;
  padding:18px 2px 12px;border-top:2px dashed rgba(58,38,20,.28)}
.trophy:first-of-type,.cab-tabs+.trophy{border-top:0}
.trophy[hidden]{display:none}
.tr-body{grid-area:body;min-width:0;align-self:center}
.tr-serial{margin:0 0 2px;padding:0 12px;font-size:30px;transform:rotate(-3deg)}
.tr-of{text-align:center;margin:0 0 6px;white-space:nowrap;font-size:16px}
.tr-splat{position:absolute;left:-12px;top:-10px;width:30%;height:auto;transform:rotate(-12deg);filter:drop-shadow(0 2px 2px #0006);z-index:2}
.tr-name{position:absolute;left:8%;right:8%;top:79%;bottom:3%;display:flex;align-items:center;justify-content:center;text-align:center;
  font:400 var(--nfs,20px)/1 var(--marker);color:#1d1a18;text-transform:uppercase;white-space:nowrap}  /* fish.json "name": Permanent Marker, upper case, #1d1a18, square to the print */
.tr-name .tr-unk,.tr-photo.sil .tr-name .tr-real{display:none}
.tr-photo.sil .tr-name .tr-unk{display:inline}
.tr-cap{bottom:6%;font-size:14px;color:#f4f1ea;text-shadow:0 1px 2px #000a;z-index:1}
.tr-spec{display:flex;flex-direction:column;gap:3px;margin-top:2px}
.tr-chip{display:flex;align-items:center;gap:6px;font:400 17px/1.15 var(--hand);color:var(--ink)}
.tr-chip img{width:22px;height:22px;object-fit:contain;flex:none}
.tr-toe{background:url(/assets/trophy/ui/card-toetag.webp) left center/auto 26px no-repeat;padding:3px 0 2px 30px;
  font:400 18px/1.1 var(--sign);transform:rotate(-2deg)}
.tr-pat{font-family:var(--hand);font-size:17px;letter-spacing:0}
.cab-tabs{margin:14px -6px 4px;padding-top:16px}
.cab-tabs{overflow:visible}
.cab-tabs button.k-tab{background:none;appearance:none;-webkit-appearance:none}
.cab-tabs .k-tab{flex:1 1 0;min-width:0;height:62px;padding:2px 2px;font-size:clamp(9px,2.7vw,13px);line-height:1.05;white-space:normal;overflow-wrap:anywhere}
.cab-tabs .k-tab span:not(.k-badge){max-width:76px}
.cab-tabs .k-tab .k-badge{top:-12px;right:-10px}
.cab-dot{display:block;width:22px;height:7px;border-radius:2px;margin:-4px 0 3px;box-shadow:inset 0 -1px 0 #0005}
.tr-name.two{white-space:normal;line-height:.92;top:78%;bottom:2%}
/* the case's owner (Joe 2026-11-13: "my username showing my profile picture in a nice circular icon"): the social card's
   avatar ring (social.css .sc-av) around the player's face + the name as a plain public link */
.cab-who{display:flex;align-items:center;justify-content:center;white-space:nowrap}
.cab-me{display:inline-flex;align-items:center;gap:7px;color:var(--ink);text-decoration:none}
.cab-me b{font:inherit;font-weight:400;color:#1d4f8a;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.cab-me .sc-av{flex:0 0 40px;height:40px}
.cab-face{display:block;width:36px;height:36px;border-radius:50%;border:2px solid #fff;overflow:hidden;background:#d9c9a8}
.cab-face img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0;transform-origin:50% 0;border:0;border-radius:0}
/* Joe 2026-11-19 ("search all of your paint jobs ... simple searching and sorting"): the case's controls, all kit parts -
   the k-input box, the steel sort plate, the paint SPLATS as the paint filter (a paint is its splat, no words) */
.cab-tools{display:flex;gap:8px;align-items:center;margin:10px 0 6px}
.cab-q{height:44px;font-size:19px}
.cab-sort{flex:none;height:46px;padding:0 34px}
.tr-grade small{white-space:normal;text-align:right;line-height:1.15}
.cab-paints{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 6px;margin:2px 0 4px}
.cab-paint{width:48px;height:48px;padding:2px;border:0;background:none;cursor:pointer;opacity:.55;transition:opacity .15s,transform .15s}
.cab-paint img{display:block;width:100%;height:100%;filter:drop-shadow(0 2px 2px #0006)}
.cab-paint.on{opacity:1;transform:scale(1.18) rotate(-8deg)}
.cab-paints:not(:has(.on)) .cab-paint{opacity:1}
.cab-count{margin:4px 0 0;text-align:center;font:400 17px/1.2 var(--hand);color:var(--ink2)}
.cab-count:empty{display:none}
.cab-more{display:flex;margin:10px auto 0;min-width:180px}
.cab-more[hidden]{display:none}
/* the club board: each card wears its standing on the Polaroid and names who landed it */
.tr-place{position:absolute;right:-6px;bottom:-8px;z-index:3;min-width:30px;height:30px;border-radius:15px;font-size:16px}
.tr-by{margin:0 0 6px;font:400 17px/1.1 var(--hand);white-space:nowrap;overflow:hidden;max-width:100%}
.tr-by b{overflow:hidden;text-overflow:ellipsis}
.tr-by .sc-av{flex:0 0 30px;height:30px}
.tr-by .cab-face{width:26px;height:26px}
.cab-mine{margin:10px 0 0;text-align:center;font:400 17px/1.3 var(--hand);color:var(--ink2)}
.cab-mine a,.cab-board a:not(.k-btn){color:#1d4f8a}
.cab-board{display:flex;justify-content:center;margin:12px 0 0}
@media (max-width:420px){.cab-tools{flex-wrap:wrap}.cab-q{flex:1 1 100%}.cab-sort{margin:0 auto}}
