/* Compact, user-controlled guild media carousel. No automatic advance. */
.guild-showcase { position: relative; z-index: 2; max-width: 720px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid rgb(176 141 79 / .3); text-align: left; scroll-margin-top: 24px; }
.guild-showcase + .colophon { margin-top: 36px; }
.showcase-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.showcase-heading h3 { margin: 0; font: 600 21px/1.25 var(--f-heading); color: #f3e9d4; }
.showcase-nav { display: flex; align-items: center; flex: 0 0 auto; gap: 2px; }
.showcase-nav button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #e4c087; cursor: pointer; font: 400 27px/1 var(--f-body); }
.showcase-nav button:hover { background: rgb(176 141 79 / .15); }
.showcase-counter { min-width: 32px; color: #d4c7ad; font: 600 13px/1 var(--f-label); text-align: center; }
.showcase-viewport { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 3px; }
.showcase-viewport::-webkit-scrollbar { display: none; }
.showcase-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.showcase-card { display: block; width: 100%; padding: 0; border: 1px solid #a68a50; border-radius: 3px; background: var(--night-2); color: #f1e9d7; cursor: pointer; text-align: left; text-decoration: none; overflow: clip; }
.showcase-card:hover { border-color: #ceab65; }
.showcase-card:focus-visible { outline: 3px solid #f4c877; outline-offset: -5px; }
.showcase-nav button:focus-visible { outline: 2px solid #f4c877; outline-offset: -4px; }
.showcase-image { display: block; position: relative; height: clamp(160px,25vw,220px); }
.showcase-image > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.showcase-image::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,rgb(5 15 20 / .12),transparent 35%,rgb(5 15 20 / .22)); }
.showcase-duration { position: absolute; z-index: 1; top: 10px; right: 10px; padding: 4px 7px; color: #f3e9d4; background: rgb(9 24 32 / .85); border: 1px solid rgb(222 196 145 / .42); border-radius: 2px; font: 600 10px/1.3 var(--f-label); letter-spacing: .03em; }
.showcase-play, .showcase-enlarge { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 52px; height: 52px; transform: translate(-50%,-50%); border: 1px solid #dfc48b; border-radius: 50%; background: rgb(10 26 40 / .76); color: #f4c877; transition: background .18s ease; }
.showcase-play svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }
.showcase-card:hover .showcase-play, .showcase-card:hover .showcase-enlarge { background: rgb(127 78 32 / .93); }
.showcase-enlarge { font: 400 27px/1 var(--f-label); }
.showcase-dialog { width: min(1000px,calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 1px solid #b08d4f; border-radius: 4px; background: var(--night-2); color: #f1e9d7; box-shadow: 0 16px 60px rgb(0 0 0 / .5); }
.showcase-dialog::backdrop { background: rgb(3 10 15 / .86); }
.showcase-dialog__head { display: grid; grid-template-columns: minmax(0,1fr) auto 44px; align-items: center; gap: 8px; padding: 4px 8px 4px 22px; }
.showcase-dialog__credit { margin: 0; font: 400 16px/1.4 var(--f-body); }
.showcase-dialog__nav { display: flex; align-items: center; }
.showcase-dialog__nav button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ember-hi); cursor: pointer; font: 400 27px/1 var(--f-body); }
.showcase-dialog__nav button:hover { background: rgb(176 141 79 / .15); }
.showcase-dialog__nav button:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: -4px; }
.showcase-dialog__counter { min-width: 36px; text-align: center; color: var(--night-motto); font: 400 14px/1 var(--f-label); }
.showcase-dialog__close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; background: transparent; color: #e4c087; cursor: pointer; font: 400 30px/1 var(--f-body); }
.showcase-dialog__close:focus-visible { outline: 2px solid #dfc48b; outline-offset: -3px; }
.showcase-dialog__media { position: relative; background: var(--night-top); }
.showcase-dialog__video { display: block; width: 100%; height: auto; max-height: 66dvh; object-fit: contain; background: #07121b; }
.showcase-dialog__file { color: #e4c087; text-underline-offset: 3px; }
.showcase-dialog__error { margin: 0; padding: 14px 22px; color: #f3d19b; font: 400 17px/1.5 var(--f-body); }
body.showcase-open { overflow-y: hidden; }
@media (max-width: 600px) {
  .guild-showcase { margin-top: 32px; padding-top: 16px; }
  .showcase-heading h3 { font-size: 19px; }
  .showcase-duration { top: 8px; right: 8px; font-size: 9px; }
  .showcase-play, .showcase-enlarge { top: 50%; width: 44px; height: 44px; }
  .showcase-dialog__head { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .showcase-play, .showcase-enlarge { transition: none; } }
@media (max-width: 480px) {
  .showcase-dialog__head { grid-template-columns: minmax(0,1fr) 44px; row-gap: 0; }
  .showcase-dialog__close { grid-column: 2; grid-row: 1; }
  .showcase-dialog__nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@media (forced-colors: active) {
  .showcase-card, .showcase-play, .showcase-duration, .showcase-enlarge { border-color: ButtonText; }
  .showcase-play, .showcase-duration, .showcase-enlarge { background: ButtonFace; color: ButtonText; }
}

.showcase-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px !important; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.showcase-dialog__loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); margin: 0; padding: 8px 14px; border-radius: 3px; background: rgb(10 26 40 / .9); color: var(--night-motto); font: 400 16px/1.4 var(--f-body); white-space: nowrap; pointer-events: none; }
.showcase-dialog__loading:not([hidden]) { animation: showcase-loading-reveal .12s .35s both; }
@keyframes showcase-loading-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .showcase-dialog__loading:not([hidden]) { animation-duration: 0s; } }
