.treasure-button{position:relative;display:grid;place-items:center;width:40px;height:40px;padding:5px;background:#eabe7010;border:1px solid #eabe7040;border-radius:50%;color:var(--gold);flex:none}.treasure-button svg{width:29px;height:29px;fill:#24383c;stroke:currentColor;stroke-width:2;stroke-linejoin:round}.treasure-button>span:not(:empty){position:absolute;right:-5px;top:-6px;min-width:18px;padding:2px 4px;border-radius:12px;background:var(--gold);color:#13232a;font-size:10px;font-weight:700}.treasure-dialog{max-width:580px;width:calc(100% - 28px);max-height:85dvh;overflow:auto}.treasure-close{position:absolute;right:10px;top:10px;font-size:24px}.treasure-list{display:grid;gap:10px;margin-top:22px}.treasure-entry{display:flex;align-items:center;gap:12px;padding:15px 12px;background:#ffffff05;border:1px solid #eabe7020;border-radius:12px}.treasure-entry>div{flex:1;min-width:0}.treasure-entry b{font-size:13px}.treasure-entry small{display:block;color:var(--muted);margin-top:5px}.treasure-icon{font-size:27px;color:var(--gold)}.treasure-entry button{padding:10px 12px;font-size:12px}.treasure-empty{text-align:center;padding:25px 0}.treasure-results{display:flex;flex-direction:column;align-items:center;gap:24px}.treasure-results>.card{width:min(300px,80vw)}@media(max-width:480px){.header-tools{gap:8px}.treasure-entry{gap:8px;padding:12px 8px}.treasure-entry b{font-size:12px}.treasure-entry button{padding:9px}.treasure-button{width:35px;height:35px}}

.captain-chest-dialog{width:min(96vw,760px);max-height:90dvh;overflow:auto}
.captain-chest-days{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;padding:0;list-style:none}
.captain-chest-day{display:flex;flex-direction:column;gap:.4rem;align-items:flex-start;padding:.75rem;border:1px solid #bd925a60;border-radius:.7rem;background:#132f37;overflow-wrap:anywhere}
.captain-chest-day[aria-current]{outline:2px solid #f8dc94;outline-offset:-2px}
.captain-chest-day:last-child{background:linear-gradient(145deg,#67451e,#223b3d);border-color:#f2c977}
.captain-chest-icon{font-size:1.45rem;color:#f2c977}
.captain-chest-day:last-child .captain-chest-icon{text-shadow:0 0 12px #ffcb60}
.captain-chest-locked small{color:#d0c5b5}
.captain-chest-available small{color:#ffe194}
.captain-chest-claimed small{color:#9fe5bc}
.captain-chest-day button{margin-top:auto;padding:.42rem .55rem}
.captain-chest-pending{display:grid;gap:.5rem;list-style:none;padding:0}
.captain-chest-pending li{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.6rem;border-bottom:1px solid #bd925a60}
.captain-chest-pending li span{display:block}
.captain-chest-opened .captain-chest-icon{animation:captain-chest-opening .5s ease-out}
@keyframes captain-chest-opening{50%{transform:scale(1.45);text-shadow:0 0 18px #ffdf8f}}
@media(max-width:600px){.captain-chest-days{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.captain-chest-opened .captain-chest-icon{animation:none}}
.captain-chest-button svg{width:24px;height:24px;fill:none;stroke-width:1.65;stroke-linecap:round}
.captain-chest-button:hover,.captain-chest-button:focus-visible{background:#eabe7024;border-color:var(--gold)}
.treasure-reveal .reveal-stage,.treasure-results>.card{width:min(300px,80vw,100%);margin-inline:auto}
.treasure-reveal .reveal-stage,.treasure-reveal .flip-shell,.treasure-results>.card{animation:none}
.treasure-results>.card.tcg{transform:none;max-width:100%}
.treasure-resource-button span{color:var(--gold);margin-right:.3em}
