/* R55: new pier activities; the crossing HUD and accepted scene stay native. */
.ux54-port-hero{align-self:start}
.h55-hub h2{font-size:23px}.h55-hub-actions{display:grid;gap:8px}.h55-hub-actions>button{display:block;width:100%;min-height:58px;text-align:left;white-space:normal;padding:11px 13px;font-size:16px}.h55-hub-actions small{display:block;font:12px/1.5 system-ui;margin-top:3px;color:inherit;opacity:.85}
#modal[data-kind=harbor55]{box-sizing:border-box;width:min(1040px,calc(100vw - 32px));max-width:none;max-height:92dvh;padding:25px;background:#09252d;color:#eee3c9;border:1px solid #bd9a63;border-radius:14px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.h55-dialog{min-width:0}.h55-dialog h2{font:clamp(27px,4vw,39px)/1.2 Georgia;margin:8px 42px 18px 0}.h55-dialog h3{font:25px/1.2 Georgia;margin:14px 0}.h55-dialog h4{font:20px/1.3 Georgia;margin:0 0 10px}.h55-dialog p{font:15px/1.55 system-ui;margin:12px 0}.h55-dialog small,.h55-dialog .h55-note{font:13px/1.55 system-ui;color:#c6d3bd}.h55-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:20px}.h55-tabs button{min-height:46px;padding:9px 8px;font:14px/1.3 system-ui;white-space:normal;overflow-wrap:anywhere}.h55-tabs [aria-pressed=true]{box-shadow:inset 0 -3px #e1bd76}
.h55-wheel-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:28px;align-items:start}.h55-wheel-layout>section{min-width:0}.h55-wheel{position:relative;max-width:430px;width:100%;aspect-ratio:1;margin:0 auto;contain:layout}.h55-rotor{position:absolute;inset:0;transform-origin:center}.h55-wheel-face,.h55-rotor>img{position:absolute;width:100%;height:100%;inset:0;object-fit:contain}.h55-rotor>img{pointer-events:none;filter:drop-shadow(0 5px 5px #00121877)}.h55-pointer{position:absolute;left:50%;top:21.8%;transform:translateX(-50%);width:16px;height:24px;clip-path:polygon(0 0,100% 0,50% 100%);background:#f4d18d;filter:drop-shadow(0 2px 1px #000);z-index:1}.h55-rotor.is-spinning{animation:h55-spin 2.4s cubic-bezier(.15,.64,.16,1) both}
@keyframes h55-spin{from{transform:rotate(var(--h55-from,0deg))}to{transform:rotate(var(--h55-to,1440deg))}}
.h55-receipt{padding:16px;background:#173f40;border:1px solid #9d9d70;border-radius:9px;margin-top:8px}.h55-receipt p:first-child{margin:0;color:#e8ce9a;font-family:Georgia;font-size:23px}.h55-receipt .ux54-prizes{margin:10px 0}.h55-receipt small{color:#d4e3c1}.h55-odds{list-style:none;padding:0;margin:0}.h55-odds>li{display:grid;grid-template-columns:30px minmax(0,1fr) 40px;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #40655d;font:14px/1.35 system-ui}.h55-odds b{text-align:right;font-variant-numeric:tabular-nums}.h55-prize-icon{width:28px;height:30px;display:inline-flex}.h55-prize-icon svg{width:100%;height:100%}.h55-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.h55-actions>button{flex:1 1 130px;min-width:0;min-height:48px;padding:10px 14px;font:14px/1.4 system-ui;white-space:normal;overflow-wrap:anywhere}.h55-dialog button:disabled{opacity:1;background:#17323a;color:#aebfb8;border-color:#526e68;cursor:default}.h55-explanation{padding:12px;border-left:3px solid #beaa79;background:#243e3d}.h55-confirm{padding:16px;background:#294545;border:1px solid #d7b777;border-radius:8px;margin-top:18px}.h55-footer{border-top:1px solid #41655d;padding-top:16px;margin-top:24px}.h55-footer>button{flex:0 1 220px}
.h55-chests{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}.h55-chest-card{min-width:0;padding:16px;background:#12333a;border:1px solid #829172;border-radius:10px}.h55-chest-card .ux54-chest{width:100%;max-width:250px;margin:4px auto 15px}.h55-chest-card h3{font-size:23px;margin-top:0}.h55-chest-card .ux54-prizes{gap:8px}.h55-chest-card progress,.h55-badge-detail progress{width:100%;height:9px;accent-color:#dabd7e}.h55-chest-card small{display:block;font-size:12px}.h55-saved{color:#d1e0b5}.h55-chest-card.is-claimed{border-color:#9d9f70}
.h55-collection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}.h55-badge-card{min-width:0;display:flex;flex-direction:column;gap:9px;align-items:center;padding:14px 12px;background:#18383e;border:1px solid #7d9278;border-radius:9px;color:#eee2c2;cursor:pointer;text-align:center;white-space:normal}.h55-badge-card b{font:21px/1.25 Georgia}.h55-badge-card>span:last-child{font:13px/1.5 system-ui}.h55-badge-art{display:block;width:100%;max-width:190px;aspect-ratio:1;background-image:url('assets/r55/badge-atlas.png');background-size:300% 200%;background-position:var(--badge-x,0%) var(--badge-y,0%);border-radius:8px;overflow:hidden}.h55-badge-card.is-locked .h55-badge-art,.h55-badge-art.is-locked{filter:grayscale(1) brightness(.65)}.h55-badge-card.is-earned{border-color:#bea576}.h55-badge-detail{max-width:500px;margin:0 auto;text-align:center}.h55-badge-detail .h55-badge-art{max-width:240px;margin:18px auto}.h55-history{list-style:none;padding:0;margin:12px 0}.h55-history>li{display:flex;flex-direction:column;gap:5px;padding:13px 0;border-bottom:1px solid #496960;font:14px/1.4 system-ui}.h55-history>li span{font-size:13px;color:#c3d3be}
@media(max-width:680px){#modal[data-kind=harbor55]{width:calc(100vw - 16px);max-height:94dvh;padding:16px;border-radius:10px}.h55-dialog h2{font-size:29px}.h55-tabs{gap:5px;margin-bottom:15px}.h55-tabs button{font-size:12px;min-height:46px;padding:8px 4px}.h55-wheel-layout{grid-template-columns:1fr;gap:15px}.h55-wheel{max-width:360px}.h55-receipt{padding:12px}.h55-odds>li{padding:8px 0}.h55-chests{grid-template-columns:1fr;gap:12px}.h55-chest-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;padding:12px}.h55-chest-card .ux54-chest{margin:0;align-self:start}.h55-chest-card h3{font-size:21px}.h55-chest-card .ux54-prize-item{font-size:12px}.h55-chest-card .ux54-prize-item i{width:23px;height:26px}.h55-chest-card .ux54-prize-item b{font-size:20px}.h55-chest-card .h55-actions>button{font-size:13px;padding:9px}.h55-collection{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.h55-badge-card{padding:10px 8px}.h55-badge-card b{font-size:19px}.h55-footer>button{flex:1 1 130px}}
@media(max-width:360px){.h55-chest-card{grid-template-columns:1fr}.h55-chest-card .ux54-chest{max-width:170px;margin:auto}.h55-badge-card b{font-size:17px}}
@media(prefers-reduced-motion:reduce){.h55-rotor.is-spinning{animation:none!important}.h55-dialog .ux54-chest{animation:none!important;transition:none!important}}
.no-motion .h55-rotor.is-spinning,.no-motion .h55-dialog .ux54-chest{animation:none!important;transition:none!important}
