/* Horizontal case reel inside the existing casino layout. */
#lootboxView { --lb-common: #c0adb7; --lb-uncommon: #b5dbb2; --lb-rare: #6dd9ff; --lb-epic: #b58cff; --lb-legendary: #e6c78c; --lb-rarity: var(--lb-common); }
#lootboxView [data-rarity="common"] { --lb-rarity: var(--lb-common); }
#lootboxView [data-rarity="uncommon"] { --lb-rarity: var(--lb-uncommon); }
#lootboxView [data-rarity="rare"] { --lb-rarity: var(--lb-rare); }
#lootboxView [data-rarity="epic"] { --lb-rarity: var(--lb-epic); }
#lootboxView [data-rarity="legendary"] { --lb-rarity: var(--lb-legendary); }
.lb-heading h2 { font-size: clamp(34px,5vw,48px); }
.lb-machine { overflow: hidden; position: relative; border: 1px solid var(--line); border-top: 2px solid var(--gold); background: var(--panel); padding: 20px 30px 28px; }
.lb-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; position: relative; z-index: 2; }
.lb-toolbar > span { margin-right: auto; font-size: 11px; letter-spacing: .13em; color: var(--muted); }
.lb-toolbar button, .lb-status button { min-height: 44px; padding: 6px 0; color: var(--muted); background: transparent; font-size: 11px; }
.lb-toolbar button[aria-pressed="true"] { color: var(--gold); }
.lb-stage { --lb-card-width: 156px; position: relative; height: 244px; margin: 18px 0 24px; border: 1px solid #51474f; background: #100f13; isolation: isolate; }
.lb-viewport { position: absolute; inset: 0; overflow: hidden; }
.lb-viewport::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg,#100f13d9,transparent 14%,transparent 86%,#100f13d9); }
.lb-track { position: absolute; top: 24px; left: 0; display: flex; gap: 8px; width: max-content; }
.is-rolling .lb-track { will-change: transform; }
.lb-reel-card { flex: 0 0 var(--lb-card-width); width: var(--lb-card-width); box-sizing: border-box; height: 194px; display: flex; flex-direction: column; background: linear-gradient(0deg,color-mix(in srgb,var(--lb-rarity) 15%,#1c1a20),#1c1a20 65%); border: 1px solid #39343e; border-bottom: 4px solid var(--lb-rarity); padding: 12px; gap: 5px; overflow: hidden; }
.lb-reel-card .shop-card-visual { height: 118px; min-height: 118px; padding: 4px; border: 0; background: transparent; }
.lb-reel-card .shop-card-visual img { width: auto; height: auto; max-width: 108px; max-height: 104px; object-fit: contain; }
.lb-reel-card .shop-card-visual > span:not(.shop-card-badge) { font-size: 26px; }
.lb-reel-category { margin-top: auto; color: var(--muted); font-size: 10px; }
.lb-reel-card > strong { color: var(--paper); font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lb-marker { position: absolute; top: -1px; bottom: -1px; left: 50%; width: 2px; transform: translateX(-50%); background: #e6c78c; box-shadow: 0 0 10px #0009; z-index: 4; pointer-events: none; }
.lb-marker::before,.lb-marker::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border-left: 7px solid transparent; border-right: 7px solid transparent; }
.lb-marker::before { top: 0; border-top: 10px solid #e6c78c; }
.lb-marker::after { bottom: 0; border-bottom: 10px solid #e6c78c; }
.is-revealed .lb-reel-card { opacity: .4; }
.is-revealed .lb-reel-card.is-winner { opacity: 1; border-color: var(--lb-rarity); box-shadow: inset 0 0 22px color-mix(in srgb,var(--lb-rarity) 14%,transparent); }
.lb-result { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 20px; text-align: center; position: relative; z-index: 4; }
.lb-result > span { font-size: 11px; letter-spacing: .13em; color: var(--lb-rarity,var(--gold)); }
.lb-result > strong { font: 600 clamp(25px,4vw,36px)/1.15 var(--heading-type); overflow-wrap: anywhere; }
.lb-result p { margin: 0; color: var(--muted); font-size: 14px; }
#lbEquip { background: transparent; color: var(--gold); border-bottom: 1px solid var(--gold); min-height: 44px; padding: 8px 22px; font-size: 12px; }
.lb-buy { display: flex; justify-content: center; border-top: 1px solid var(--line); padding-top: 20px; }
.lb-buy > div { display: flex; flex-direction: column; gap: 6px; }
.lb-buy strong { font: 600 28px var(--heading-type); color: var(--gold); }
.lb-buy span { font-size: 13px; color: var(--muted); }
.lb-buy .slots-spin { font-size: 23px; min-height: 72px; }
.lb-status { flex-wrap: wrap; }
.lb-contents { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.lb-contents > summary { cursor: pointer; min-height: 32px; font-size: 13px; color: var(--paper); }
.lb-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 32px 0 16px; }
.lb-section-heading h3 { margin: 0; font: 600 24px var(--heading-type); }
.lb-section-heading span { color: var(--muted); font-size: 12px; }
.lb-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-categories button { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 10px 15px; min-height: 44px; font-size: 12px; }
.lb-categories button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lb-pool-note { color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 720px; margin: 16px 0; }
.lb-search { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 20px 0 16px; }
.lb-search label { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.lb-search input { width: min(280px,60%); background: var(--panel); border: 1px solid var(--line); color: var(--paper); padding: 12px; min-height: 44px; }
.lb-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.lb-item { border: 1px solid var(--line); border-top-color: var(--lb-rarity); background: var(--panel); padding: 12px; min-width: 0; display: flex; flex-direction: column; align-items: start; gap: 7px; content-visibility: auto; contain-intrinsic-size: auto 238px; }
.lb-item .shop-card-visual { width: 100%; min-height: 90px; height: 90px; background: var(--ink); padding: 8px; font-size: 26px; overflow: hidden; }
.lb-item .shop-card-visual img { width: auto; height: auto; max-height: 65px; max-width: 80%; object-fit: contain; }
.lb-item-tier { font-size: 9px; letter-spacing: .035em; color: var(--lb-rarity); margin-top: 6px; }
.lb-item > strong { font-size: 14px; overflow-wrap: anywhere; }
.lb-item-odds { color: var(--paper); font-size: 12px; font-variant-numeric: tabular-nums; }
.lb-item-price { color: var(--muted); font-size: 11px; }
.lb-owned { color: var(--gold); font-size: 10px; margin-top: auto; padding-top: 6px; }
.lb-more { display: block; margin: 20px auto; min-height: 44px; padding: 12px 25px; color: var(--gold); border: 1px solid var(--line); background: transparent; }
.lb-history, .lb-admin { border-top: 1px solid var(--line); padding: 20px 0; margin-top: 24px; color: var(--muted); font-size: 13px; }
.lb-history summary,.lb-admin summary { cursor: pointer; min-height: 32px; color: var(--paper); }
.lb-history-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lb-history-row > div { display: flex; flex-direction: column; gap: 5px; }
.lb-history-row strong { color: var(--lb-rarity); }
.lb-history-row time { font-size: 11px; white-space: nowrap; }
.lb-admin form { background: var(--panel); padding: 20px; display: grid; gap: 20px; }
.lb-admin label { display: flex; flex-direction: column; gap: 8px; }
.lb-admin input[type="number"] { width: 100%; min-height: 44px; padding: 10px; background: var(--ink); color: var(--paper); border: 1px solid var(--line); }
.lb-admin .lb-enabled,.lb-pool label { flex-direction: row; align-items: center; }
.lb-admin input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; }
.lb-weights { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.lb-pool { max-height: 280px; overflow: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 20px; }
.lb-pool label { min-height: 44px; }
#lbSave { justify-self: start; background: var(--gold); color: var(--ink); min-height: 44px; padding: 12px 24px; }
#lootboxView button:focus-visible,#lootboxView input:focus-visible,#lootboxView summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
#lootboxView button:disabled { opacity: .4; cursor: default; }
#lootboxView button:not(:disabled):hover { filter: brightness(1.12); }
@media(max-width:700px) { .lb-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); } .lb-machine { padding: 16px 20px 20px; } .lb-buy { gap: 16px; grid-template-columns: 1fr; } .lb-buy > div { flex-direction: row; align-items: baseline; justify-content: space-between; } .lb-weights { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .lb-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .lb-toolbar { gap: 12px; } .lb-toolbar > span { width: 100%; text-align: center; } .lb-stage { --lb-card-width: 120px; height: 216px; } .lb-reel-card { height: 166px; padding: 8px; } .lb-reel-card .shop-card-visual { height: 94px; min-height: 94px; } .lb-reel-card .shop-card-visual img { max-width: 90px; max-height: 84px; } .lb-reel-card .shop-card-visual > span:not(.shop-card-badge) { font-size: 22px; } .lb-heading { gap: 10px; } .lb-heading p { font-size: 12px; } .lb-heading .slots-wallet strong { font-size: 23px; } .lb-item { padding: 10px; } .lb-pool { grid-template-columns: 1fr; } .lb-categories button { flex-grow: 1; } .lb-section-heading { align-items: baseline; } .lb-section-heading h3 { font-size: 22px; } }
#lootboxView[data-motion="reduced"] *,#lootboxView[data-motion="reduced"] *::before,#lootboxView[data-motion="reduced"] *::after { animation: none !important; transition: none !important; }



/* September 2026: compact broadcast presentation. */
.lb-machine{padding:20px;background:var(--panel);border:1px solid var(--line)}.lb-toolbar{margin-bottom:12px}.lb-toolbar button{font-size:12px;min-height:40px;padding:8px}.lb-controls{margin-top:16px;padding-top:16px}.lb-heading h2{font-size:32px}
@media(max-width:600px){.lb-machine{padding:14px}.lb-heading h2{font-size:28px}}
