/* Ivory gift tags, a brass pointer and green wrapping paper. Scoped to the giftbox UI. */
.bag-slot .fg-art,.bag-art-stage .fg-art{display:block;width:80%;height:72%;max-height:140px;margin:auto}
.bag-art-stage .fg-art{height:94%;width:94%}
button.fg-open{font:inherit;font-weight:700;color:#fff4dc;background:#17644f;border:1px solid #227b63;border-radius:.55rem;padding:.65rem 1rem;cursor:pointer}
button.fg-open:disabled{opacity:.55;cursor:default}
dialog.fg-dialog,dialog.fg-dialog *{box-sizing:border-box}
dialog.fg-dialog{color-scheme:light;width:min(596px,calc(100vw - 24px));max-width:100%;max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:auto;background:#fbf6e8;border:1px solid #c8b68c;border-radius:20px;box-shadow:0 18px 90px #0008;font:15px/1.45 "Trebuchet MS","Segoe UI",Arial,sans-serif;color:#203e34;text-align:left}
dialog.fg-dialog::backdrop{background:rgb(8 23 22/.76)}
.fg-dialog :is(h2,h3,p,strong,span){color:inherit}
.fg-dialog header.fg-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 20px 13px 18px;color:#fbf6e8;background:repeating-linear-gradient(45deg,transparent 0 15px,#dde4aa05 15px 17px),#174c40;border-bottom:3px double #dbbd79}
.fg-dialog .fg-brand{display:flex;gap:12px;align-items:center}
.fg-dialog .fg-brand .fg-art{width:53px;height:53px}
.fg-dialog .fg-brand h2{margin:0;font:700 23px/1.15 "Trebuchet MS","Segoe UI",sans-serif;letter-spacing:-.6px}
.fg-dialog button{appearance:none;min-height:40px;margin:0;font-family:inherit;font-size:14px;font-weight:700;line-height:1.2;text-transform:none;letter-spacing:normal;box-shadow:none;cursor:pointer}
.fg-dialog button:focus-visible,.fg-open:focus-visible{outline:3px solid #dfaa32;outline-offset:3px}
.fg-dialog .fg-close{padding:0;width:40px;line-height:1;font-size:25px;border:1px solid #90ab92;border-radius:50%;color:#fff7e7;background:transparent}
.fg-dialog .fg-close:hover{background:#356859}
.fg-dialog .fg-body{padding:23px 0 17px}
.fg-dialog .fg-headline{padding:0 23px;margin:0;overflow-wrap:anywhere;font-family:Georgia,"Times New Roman",serif;font-weight:700;font-size:clamp(23px,5vw,33px);line-height:1.13;color:#243f33;letter-spacing:-1px}
.fg-dialog .fg-sub{padding:0 24px;margin:6px 0 17px;overflow-wrap:anywhere;color:#556756;font-size:15px;line-height:1.4;font-family:inherit}
.fg-dialog .fg-aperture{position:relative;overflow:hidden;padding:15px 0;margin:6px 0 13px;background:#d6d3b9;background-image:repeating-linear-gradient(-50deg,transparent 0 7px,#ffffff1c 7px 8px);border-block:1px solid #b4b397;direction:ltr}
.fg-dialog .fg-aperture[hidden]{display:none}
.fg-dialog .fg-aperture::before,.fg-dialog .fg-aperture::after{content:"";position:absolute;z-index:1;left:50%;width:17px;height:14px;transform:translateX(-50%);background:#ad6d23;clip-path:polygon(0 0,100% 0,50% 100%);pointer-events:none}
.fg-dialog .fg-aperture::before{top:0}
.fg-dialog .fg-aperture::after{bottom:0;transform:translateX(-50%) rotate(180deg)}
.fg-dialog .fg-track{display:flex;position:relative;gap:8px;width:max-content}
.fg-dialog .fg-card{position:relative;display:grid;grid-template-rows:72px auto 1fr;align-items:start;justify-items:center;gap:2px;box-sizing:border-box;flex:0 0 132px;width:132px;min-height:141px;padding:7px 8px 13px;background:#f7f3e7;border:1px solid #babb9f;border-radius:7px;color:#274239;text-align:center;line-height:1.18}
.fg-dialog .fg-card::after{content:"";position:absolute;bottom:0;inset-inline:0;height:4px;background:#859580;border-radius:0 0 7px 7px}
.fg-dialog .fg-card.fg-tier-card{grid-template-rows:17px 70px auto 1fr;min-height:158px}
.fg-tier-badge[data-tier=uncommon]{--fg-tier-fg:#34523e;--fg-tier-bg:#dae9d9}
.fg-tier-badge[data-tier=common]{--fg-tier-fg:#4d5260;--fg-tier-bg:#e4e6ec}
.fg-tier-badge[data-tier=rare]{--fg-tier-fg:#4d4284;--fg-tier-bg:#e8e1f4}
.fg-tier-badge[data-tier=legendary]{--fg-tier-fg:#684416;--fg-tier-bg:#ffdfa0}
.fg-dialog .fg-tier-badge,.fg-odds .fg-tier-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border-radius:4px;color:var(--fg-tier-fg);background:var(--fg-tier-bg);font:700 11px/1.2 "Trebuchet MS","Segoe UI",sans-serif;letter-spacing:.1px}
.fg-tier-badge::before{content:"";width:5px;height:5px;flex:none;background:currentColor;transform:rotate(45deg)}
.fg-tier-badge[data-tier=legendary]::before{width:7px;height:7px;clip-path:polygon(50% 0,64% 35%,100% 50%,65% 64%,50% 100%,36% 65%,0 50%,35% 36%);transform:none}
.fg-dialog .fg-win-tier{padding:0 23px;margin:-3px 0 6px}
.fg-dialog .fg-win-tier[hidden]{display:none}
.fg-dialog .fg-card>img.rv-pirate-art{width:69px;height:69px;margin:0;object-fit:contain}
.fg-odds{margin:.65rem 0;font:inherit;color:inherit}
.fg-odds summary{cursor:pointer;font-weight:bold}
.fg-odds dl{display:grid;grid-template-columns:1fr;margin:.5rem 0;gap:0}
.fg-odds dt{display:flex;align-items:center;justify-content:space-between;margin:5px 0 1px}
.fg-odds dd,.fg-odds p{margin:0 0 5px;color:inherit;font-size:.86em;line-height:1.35}
.fg-dialog [data-currency=vpoints]{--fg-currency-ink:#205479;--fg-currency-trim:#5095c8}
.fg-dialog [data-currency=vbux]{--fg-currency-ink:#215a3c;--fg-currency-trim:#55a26e}
.fg-dialog [data-currency=vfabric]{--fg-currency-ink:#814413;--fg-currency-trim:#d67c32}
.fg-dialog .fg-card[data-currency]::after{background:var(--fg-currency-trim)}
.fg-dialog .fg-headline[data-currency],.fg-dialog .fg-card[data-currency] strong{color:var(--fg-currency-ink)}
.fg-dialog .fg-card[data-kind=sku]::after{background:#9588a6}
.fg-dialog .fg-card[data-winner=true]{background:#fffaf0;border-color:#976620;box-shadow:inset 0 0 0 1px #976620}
.fg-dialog .fg-card strong{font-family:inherit;font-weight:700;font-size:14px;letter-spacing:-.15px;color:#273d32;overflow-wrap:anywhere}
.fg-dialog .fg-card .fg-card-sub{font:12px/1.2 "Trebuchet MS","Segoe UI",sans-serif;color:#5d6457;overflow-wrap:anywhere}
.fg-dialog .fg-card>svg,.fg-dialog .fg-sku{display:block;position:relative;width:76px;height:72px;margin:0}
.fg-dialog .fg-sku>*{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.fg-dialog .fg-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px;padding:0 22px}
.fg-dialog .fg-remaining{margin-right:auto;font-size:13px;color:#5c665b}
.fg-dialog .fg-primary,.fg-dialog .fg-secondary{border-radius:8px;padding:10px 19px}
.fg-dialog .fg-primary{background:#185540;border:1px solid #164d3b;color:white}
.fg-dialog .fg-primary:hover{background:#226b51}
.fg-dialog .fg-secondary{background:transparent;color:#365b4a;border:1px solid #aeb9a3}
.fg-dialog .fg-secondary:hover{background:#eee9d9}
.fg-dialog .fg-sr{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap}
@media(max-width:440px){.fg-dialog .fg-card{width:108px;flex-basis:108px}.fg-dialog header.fg-header{padding:10px 15px}.fg-dialog .fg-sku,.fg-dialog .fg-card>svg{width:66px}.fg-dialog .fg-headline,.fg-dialog .fg-sub,.fg-dialog .fg-footer{padding-inline:16px}}
