.album-nav { column-gap: clamp(12px, 2.5vw, 40px); }
.album-nav nav { gap: clamp(13px, 2vw, 30px); }
.album-nav nav a { padding-block: 9px; }
.album-nav nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.album-nav .brand-icon img { transform: rotate(6deg); width: 72%; height: 72%; }
.album-cover {
  position: relative; isolation: isolate;
  --album-fade-depth: clamp(96px, 11vw, 156px);
}
.album-cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, #70a9c8 0%, #a7c5d6 49%, #bcd1df 100%);
  mask-image: linear-gradient(to top, transparent, #0002 calc(var(--album-fade-depth) * .18),
    #0008 calc(var(--album-fade-depth) * .48), #000e calc(var(--album-fade-depth) * .79),
    #000 var(--album-fade-depth));
}
.album-cover .album-cover-inner { padding-bottom: calc(var(--album-fade-depth) * .86); }
.album-cover-inner {
  display: grid;
  grid-template-columns: minmax(0,1.03fr) minmax(0,1fr);
  align-items: center;
  gap: clamp(30px,5.4vw,90px);
  padding-block: clamp(28px,4vw,64px);
}
.album-feature {
  margin: 0;
  position: relative;
  padding: clamp(8px,1vw,14px);
  background: #fffdfa;
  border: 1px solid #253d4c;
  box-shadow: 8px 8px 0 #3283aa44;
  transform: rotate(-1.5deg);
}
.album-feature::before {
  content:""; position:absolute; width:26%; height:20px; top:-9px; left:37%; z-index:1;
  background: repeating-linear-gradient(125deg,#e0eef183 0 3px,#eff6f980 3px 6px),#d9e6edab;
  transform:rotate(-4deg);
}
.album-image-well { overflow: hidden; height: clamp(345px,32vw,485px); border: 1px solid #b2bac0; background: #dbe4e8; }
.album-feature-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.album-feature figcaption { padding: 10px 3px 1px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
.album-feature figcaption span:first-child { font: 500 clamp(18px,1.75vw,27px)/1.2 var(--heading-font); }
.album-feature figcaption span:last-child { color: #4e616d; font-size: .8125rem; }
.album-controls { min-width: 0; }
.album-overline { color: #1c3140; font-size: .875rem; letter-spacing: .015em; }
.album-overline span { color: #101c26; margin-right: 5px; }
#album-title { margin: 9px 0 10px; font-size: clamp(46px,5.1vw,80px); line-height: 1.12; letter-spacing: -.045em; }
.album-intro { max-width: 32em; line-height: 1.56; color: #1c3140; }
.album-prices { margin-top: clamp(19px,2.1vw,33px); }
.album-starter-note { margin-top: 7px; color: #1c3140; font-size: .8125rem; line-height: 1.55; }
.album-complete { margin: 10px 0; padding: 9px 12px; color: #142c3c; background: #e1f3ff; border-left: 3px solid #4582a6; font-weight: 600; line-height: 1.55; }
#album-starter-progress { display: inline-block; font-weight: 600; font-variant-numeric: tabular-nums; }
#album-starter-progress[hidden] { display: none; }
.album-wallet { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; font-size: .925rem; }
.album-wallet .line-icon { height: 17px; width: 17px; align-self: center; }
#album-balance { font-variant-numeric: tabular-nums; }
.ticket-wallet { margin-left:5px; padding-left:10px; border-left:1px solid #98b3c3; }
.draw-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 9px; }
.draw-options button {
  min-height: 53px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap:wrap;
  gap: 3px 6px; padding: 12px clamp(10px,1.2vw,18px); border-radius: 9px; border:1px solid #0e1e2a;
  background:#fff; color:#101a21; transition: box-shadow .15s,transform .15s;
}
.draw-options button strong { font-size: 1.12rem; }
.draw-options button span { font-size: .875rem; white-space: nowrap; }
.draw-options button b { font-weight:400; }
#draw-ten { background:#14232d; color:white; }
.draw-options button:enabled:hover { transform:translateY(-2px); box-shadow: 0 3px 0 #78a6c1; }
.draw-options button:disabled { cursor: default; border-color:#9daeb9; color:#62727c; background:#eef3f6; }
#draw-ten:disabled { background:#e4edf3; color:#62727c; }
.album-availability, #album-message, .album-recovery { margin-top: 7px; color: #1c3140; font-size: .875rem; }
.album-availability:empty, .album-recovery:not(:has(button:not([hidden]))), #album-message:empty { display:none; }
.album-link, .album-availability a { display:inline-block; border:0; background:transparent; padding:3px 0; font:inherit; color:#103347; text-decoration:underline; text-underline-offset:3px; }
.album-link:hover, .album-availability a:hover { color:#000; }
.album-cover [hidden], .album-collection [hidden], .album-dialog [hidden] { display:none; }
#album-message[data-error], #detail-message[data-error] { color:#601c17; }
.album-odds { margin-top: 17px; border-top:1px solid #86a8bb; padding-top:12px; }
.album-odds h2 { font:700 .875rem/1.35 var(--body-font); }
.album-odds dl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; margin:7px 0; }
.album-odds dl > div { border-left:1px solid #9eb9ca; padding-left:10px; }
.album-odds dl > div:first-child { border:0; padding:0; }
.album-odds dt { font-size:.8rem; color:#1c3140; }
.album-odds dd { margin:1px 0; font:500 clamp(18px,1.65vw,25px)/1.15 var(--heading-font); }
.album-odds .odds-return { display:block; color:#1c3140; font-size:.75rem; margin-top:3px; }
.album-odds p { color:#1c3140; font-size:.8125rem; line-height:1.55; }
.album-collection { padding-block: clamp(30px,4vw,64px); scroll-margin-top:18px; }
.collection-heading, .collection-tools, .album-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.collection-heading h2 { font-size:clamp(31px,3.2vw,48px); margin-top:4px; }
.collection-tools { justify-content:flex-end; gap:8px 18px; font-size:.875rem; }
.collection-wallet { border-block:1px solid #c8d6df; margin:16px 0 22px; padding:12px 0; display:flex; align-items:center; gap:7px 18px; flex-wrap:wrap; font-size:.9rem; }
.collection-wallet strong { font:500 1.4rem/1.1 var(--heading-font); margin-left:5px; }
.owned-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; }
.album-filter { display:inline-flex; align-items:center; flex-wrap:wrap; gap:5px; max-width:100%; }
.album-filter button {
  min-width:44px; min-height:40px; padding:6px 10px;
  border:1px solid #5d7486; border-radius:6px;
  background:#182431; color:#edf7ff; font:700 .875rem/1.2 var(--body-font);
}
.album-filter button:hover { background:#284154; border-color:#97cfed; }
.album-filter button[aria-pressed=true] { background:#63bfee; color:#071520; border-color:#9ad9fb; }
.album-filter button[aria-pressed=true]:hover { background:#89d1f6; }
.album-filter button:focus-visible { outline:2px solid #f5fbff; outline-offset:2px; box-shadow:0 0 0 5px #28638b; }
.album-pager { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px; margin:14px 0 4px; color:#425a6b; font-size:.875rem; }
.album-pager button { padding:6px 12px; min-height:36px; border-radius:6px; border:1px solid #7290a1; color:#1f4054; background:white; }
.album-pager button:disabled { border-color:#c2ccd3; color:#71818b; cursor:default; }
.collection-subheading { margin:0; font:700 1.05rem/1.4 var(--body-font); }
#collection-summary, #pool-status { margin:6px 0 12px; color:#4f626e; font-size:.925rem; }
.collection-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(10px,1.6vw,26px); }
.owned-card, .redeem-tier { min-width:0; padding:0; background:white; text-align:left; color:var(--ink); }
.owned-card .album-card, .redeem-tier .album-card { transition:box-shadow .15s, transform .15s; }
.owned-card:hover .album-card, .redeem-tier:enabled:hover .album-card { transform:translateY(-2px); box-shadow:0 3px 0 #8ba6b8; }
.collection-caption { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 9px; padding:7px 0; }
.collection-caption strong { font-size:.94rem; overflow-wrap:anywhere; }
.collection-caption span, .snap-badge { color:#435d6d; font-size:.8rem; }
.snap-badge { display:inline-block; background:#dff3ff; border-radius:4px; padding:2px 7px; }
#pool-details { margin-top:20px; padding-block:14px; border-top:1px solid #c8d6df; }
#pool-preview { margin-top:14px; }
.tier-face { aspect-ratio:1.4; }
.tier-face .album-card-medallion { width:50%; }
.tier-face .album-card-rarity { font-size:clamp(22px,14cqi,58px); }
.tier-remaining { color:#4b6473; font-size:.8125rem; }
.redeem-tier:disabled { cursor:default; }
.redeem-tier[data-remaining="0"] .tier-face { opacity:.67; }
.album-dialog { width:min(800px,94vw); padding:clamp(16px,3vw,28px); }
.album-dialog-head { flex-wrap:nowrap; }
.album-dialog-head h2 { overflow-wrap:anywhere; }
.album-dialog .primary { margin-top:18px; }
#draw-result-summary, #album-detail-meta, #detail-message { margin:10px 0; color:#405764; font-size:.9rem; }
#detail-message:empty { display:none; }
.result-vouchers, #redeem-quote { margin:8px 0 12px; padding:8px 11px; border-left:3px solid var(--blue); background:#edf7fd; color:#223f52; font-size:.875rem; }
#draw-result-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); align-items:start; gap:14px 9px; }
#album-results-dialog[data-count="1"] { width: min(430px,94vw); }
#album-detail { width:min(690px,94vw); }
#album-detail[data-mode=tier] { width:min(430px,94vw); }
#album-results-dialog[data-count="1"] #draw-result-grid { display:block; max-width: min(245px,37dvh); margin: 12px auto; }
#album-detail-art { display:flex; justify-content:center; width:100%; margin:12px auto; background:#f1f6f9; }
#album-detail-art .album-card { width:min(100%,calc(57dvh * var(--photo-aspect,.75))); aspect-ratio:var(--photo-aspect,.75); }
#album-detail-art .tier-face { width:min(280px,100%,49dvh); aspect-ratio:1.4; }
.result-card { min-width:0; animation:album-reveal .28s ease-out both; animation-delay:calc(var(--order,0)*27ms); }
.result-card p { margin:4px 0 0; font-size:.8rem; overflow-wrap:anywhere; }
.result-card p span { display:block; color:#526775; }
.result-card .item-return { color:#164e70; }
#album-set-snap, #album-redeem-confirm { width:100%; }
#album-set-snap:disabled, #album-redeem-confirm:disabled { color: #354b59; background: #e4edf2; border-color: #afc0cb; transform:none; cursor:default; }
#detail-retry { margin-top:9px; }
@keyframes album-reveal { from { opacity:0; transform:translateY(8px) scale(.98); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .result-card { animation:none; } }
@media (max-width:850px) and (min-width:651px) {
  .album-cover-inner { grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); gap:25px; }
  .draw-options button { flex-direction:column; align-items:center; }
}
@media (max-width:650px) {
  .album-nav nav { gap:12px; }
  .album-cover-inner { display:flex; flex-direction:column; align-items:stretch; gap:0; padding-block:25px; }
  .album-controls { display:contents; }
  .album-controls .album-overline { order:1; }
  #album-title { order:2; margin:5px 0; }
  .album-intro { order:3; font-size:.94rem; }
  .album-feature { order:4; margin:20px 4px 0; padding:6px; box-shadow:4px 4px 0 #3283aa44; }
  .album-image-well { height:clamp(220px,61vw,335px); }
  .album-feature figcaption { padding:5px 4px 1px; }
  .album-feature figcaption span:first-child { font-size:1rem; }
  .album-odds { order:5; margin-top:20px; }
  .album-prices { order:6; margin-top:13px; }
  .collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .collection-tools { justify-content:flex-start; }
  #draw-result-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:380px) {
  .album-nav nav { gap:8px; }
  .album-nav { gap:4px; width:calc(100% - 16px); }
  .album-nav a { font-size:.8rem; }
  .album-nav .brand { font-size:.9rem; gap:3px; }
  .album-nav #account-trigger-label { max-width:8.5ch; }
  .draw-options button { flex-direction:column; align-items:center; }
  #draw-result-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.album-masthead { position: sticky; top: 0; z-index: 10; }
.album-nav nav a.album-home-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 6px 14px; border: 1px solid var(--ink);
  border-radius: 999px; background: var(--blue); color: var(--ink); font-weight: 700;
}
.album-nav nav a.album-home-link:hover { background: #a8def9; text-decoration: none; }
.album-home-link svg { width: 17px; height: 17px; }
#collection.album-collection, #pool-details, #owned-heading { scroll-margin-top: 85px; }
@media (max-width: 480px) {
  .album-nav .brand > span:last-child { display: none; }
  .album-nav nav a.album-home-link { padding-inline: 10px; gap: 4px; }
  #collection.album-collection, #pool-details, #owned-heading { scroll-margin-top: 70px; }
}
