* { box-sizing: border-box; }
:root {
  --ink: #315b68; --muted: #6e929b; --teal: #66c9c5; --deep: #399f9f;
  --cream: #fffdf6; --pink: #f7c9d8; --lavender: #dcd5f4; --gold: #f5d58c;
}
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background: radial-gradient(circle at 15% 10%, #e7fbf8 0, transparent 35%),
              radial-gradient(circle at 85% 25%, #e9e4fa 0, transparent 32%),
              linear-gradient(145deg, #c8f0eb, #d9f3f3 48%, #e4eafa);
  font-family: "Nunito", sans-serif;
}
button { font: inherit; }
.page-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar { display:flex; align-items:center; justify-content:space-between; padding:24px 0 12px; gap:16px; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--ink); font: 24px/0.92 "Bubblegum Sans", cursive; }
.brand em { color:#4caeaa; font-style:normal; }
.brand-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:16px; background:#fffdf6; box-shadow:0 5px 0 #a6dcd6; font-size:27px; }
.ticket-counter { cursor:pointer; font:inherit; color:inherit; display:flex; align-items:center; gap:8px; padding:10px 17px; background:#fffdf6; border:2px solid #a9ded8; border-radius:18px; box-shadow:0 5px 0 #a6dcd6; }
.ticket-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.ticket-number { font:26px "Bubblegum Sans", cursive; color:#398f91; }
.ticket-label { font-size:10px; font-weight:900; letter-spacing:1.5px; color:#83a8aa; }
.hero { text-align:center; padding:36px 0 30px; }
.eyebrow,.section-kicker,.reveal-kicker { color:#67aaa9; font-size:11px; font-weight:900; letter-spacing:2.3px; text-transform:uppercase; }
h1,h2,.chest-caption { font-family:"Bubblegum Sans",cursive; font-weight:400; }
h1 { font-size:clamp(36px,7vw,66px); line-height:1; margin:12px 0 4px; color:#397d88; text-shadow:0 3px 0 #fff; }
.subtitle { margin:8px 0 24px; color:#72969d; font-weight:700; }
.machine-card { position:relative; width:min(560px,100%); margin:0 auto; padding:26px 22px 22px; border:3px solid #fff; border-radius:34px; background:rgba(255,253,246,.82); box-shadow:0 12px 0 rgba(112,183,180,.32),0 22px 50px rgba(75,137,148,.12); overflow:hidden; }
.machine-card:before { content:""; position:absolute; inset:9px; border:1px dashed #b8dfda; border-radius:25px; pointer-events:none; }
.chest-wrap { position:relative; width:min(280px,75vw); height:245px; margin:0 auto 8px; display:grid; place-items:center; }
.chest-glow { position:absolute; width:210px; height:170px; border-radius:50%; background:#f9df9d; filter:blur(36px); opacity:.65; }
.chest-placeholder { position:relative; width:190px; height:160px; border-radius:28px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:8px; background:linear-gradient(145deg,#f6d99a,#d7a96b); border:5px solid #fff0c9; box-shadow:0 12px 0 #bd986b; color:#fffdf6; }
.chest-placeholder span { font-size:76px; filter:drop-shadow(0 5px 2px #9b7955); }
.chest-placeholder small { font-size:9px; font-weight:900; letter-spacing:1px; color:#876b4d; }
.chest-image { position:relative; z-index:1; display:block; width:100%; height:100%; object-fit:contain; animation:chestFloat 3s ease-in-out infinite; filter:drop-shadow(0 12px 10px #8cb9b6); }
.chest-caption { color:#6c9fa2; font-size:19px; letter-spacing:1px; margin:6px 0 16px; }
.pull-button { position:relative; z-index:1; cursor:pointer; border:0; border-radius:18px; padding:15px 34px; background:linear-gradient(180deg,#f8d99b,#efbd79); color:#755936; font:25px "Bubblegum Sans",cursive; box-shadow:0 6px 0 #d4a568,0 10px 20px #e9d6b3; transition:transform .12s,filter .12s; }
.pull-button:hover { filter:brightness(1.04); transform:translateY(-2px); }
.pull-button:active { transform:translateY(4px); box-shadow:0 2px 0 #d4a568; }
.pull-button:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.cost-note { margin-top:13px; font-size:12px; color:#8aa6a6; font-weight:700; }
.status-line { min-height:20px; margin-top:10px; color:#67a6a5; font-size:12px; font-weight:800; }
.sparkle { position:absolute; z-index:1; color:#e7bd69; font-size:30px; animation:twinkle 2s infinite ease-in-out; }
.sparkle-one { top:48px; left:15%; }.sparkle-two { right:15%; top:100px; animation-delay:.7s; }
@keyframes twinkle { 50% { transform:scale(.65) rotate(25deg); opacity:.45; } }
.shake { animation:shake .55s ease-in-out; }
@keyframes shake { 0%,100%{transform:translateX(0) rotate(0)} 15%{transform:translateX(-8px) rotate(-3deg)} 30%{transform:translateX(8px) rotate(3deg)} 45%{transform:translateX(-6px) rotate(-2deg)} 60%{transform:translateX(6px) rotate(2deg)} 75%{transform:translateX(-3px)} }
.results-section,.collection-section { padding:34px 0 8px; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:16px; margin-bottom:16px; }
.section-heading h2 { font-size:32px; margin:3px 0 0; color:#397d88; }
.collection-count { font:700 12px "Nunito"; color:#79a5a7; vertical-align:middle; }
.text-button { border:1px solid #a8d8d4; background:#ffffff8c; border-radius:12px; color:#58999a; font-weight:900; padding:9px 13px; cursor:pointer; }
.results-grid,.collection-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); gap:13px; }
.drop-card,.collection-card { position:relative; min-width:0; padding:12px; text-align:center; background:#fffdf2d9; border:2px solid #fff; border-radius:20px; box-shadow:0 5px 0 #b7ded9; }
.art-frame { height:140px; display:grid; place-items:center; overflow:hidden; border-radius:14px; background:linear-gradient(145deg,#e5f7f3,#eeeafa); }
.art-frame img { width:100%; height:100%; object-fit:contain; }
.art-fallback { font-size:45px; }
.item-name { margin:9px 0 2px; font:19px "Bubblegum Sans",cursive; color:#4c858d; overflow-wrap:anywhere; }
.item-type { font-size:10px; font-weight:900; letter-spacing:1px; color:#9ab5b5; text-transform:uppercase; }
.stars { min-height:18px; margin-top:5px; color:#e5b44e; letter-spacing:1px; font-size:14px; }
.owned { margin-top:3px; font-size:11px; color:#8aa5a5; font-weight:900; }
.unknown { opacity:.64; filter:grayscale(.45); }
.empty-state { grid-column:1/-1; text-align:center; padding:30px; border:2px dashed #a9d9d5; border-radius:18px; color:#83a9aa; font-weight:800; }
.more-pulls { margin:38px 0 26px; padding:28px; text-align:center; border:2px solid #fff; border-radius:28px; background:#fffdf0d9; box-shadow:0 7px 0 #b7ded9; }
.more-pulls h2 { margin:5px 0; color:#4a8990; font-size:34px; }
.more-pulls p { color:#78999d; }
.more-pulls-icon { font-size:40px; }
.social-buttons { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:20px 0; }
.social-button { display:inline-flex; align-items:center; gap:8px; padding:12px 17px; border-radius:14px; background:#dff5ef; color:#458b89; text-decoration:none; font-weight:900; border:1px solid #b8e3dc; cursor:pointer; }
.social-note { font-size:11px; max-width:560px; margin:12px auto 0; }
footer { text-align:center; padding:30px 0 24px; color:#8badae; font-size:12px; font-weight:800; }
footer span { color:#e89ab6; }
.reveal-overlay { position:fixed; inset:0; z-index:10; display:grid; place-items:center; padding:16px; background:#315b68a8; backdrop-filter:blur(7px); }
.reveal-overlay[hidden],.more-pulls[hidden] { display:none; }
.reveal-panel { position:relative; width:min(900px,100%); max-height:90vh; overflow:auto; padding:28px; border:4px solid #fff; border-radius:30px; background:linear-gradient(145deg,#f4fffa,#f5f0ff); text-align:center; box-shadow:0 15px 0 #87bdb8; }
.reveal-panel h2 { margin:6px 0 20px; color:#43858d; font-size:34px; }
.close-reveal { position:absolute; top:10px; right:14px; border:0; background:transparent; color:#75a4a5; font-size:30px; cursor:pointer; }
.reveal-items { display:grid; grid-template-columns:repeat(auto-fit,minmax(125px,1fr)); gap:10px; }
.reveal-items .art-frame { height:120px; }
.reveal-close-button { margin-top:24px; }
@media(max-width:600px) {
 .page-shell { width:min(100% - 22px,1120px); }
 .topbar { padding-top:15px; }
 .brand { font-size:20px; }.brand-icon { width:42px;height:42px; }
 .ticket-counter { padding:8px 10px; gap:5px; }.ticket-number { font-size:23px; }
 .hero { padding-top:26px; }.machine-card { padding:20px 14px; border-radius:26px; }
 .chest-wrap { height:210px; }.section-heading h2 { font-size:27px; }
 .results-grid,.collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .art-frame { height:130px; }.reveal-panel { padding:24px 14px; }
}


.support-section { margin:34px 0 24px; padding:28px; text-align:center; border:2px solid #fff; border-radius:28px; background:rgba(255,253,246,.78); box-shadow:0 7px 0 #b7ded9; }
.support-section h2 { margin:5px 0 8px; color:#4a8990; font-size:32px; }
.support-section p { max-width:560px; margin:0 auto; color:#78999d; }
.support-buttons { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:20px; }
.support-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:180px; padding:13px 20px; border-radius:15px; color:#fff; text-decoration:none; font-weight:900; box-shadow:0 4px 0 rgba(49,91,104,.15); transition:transform .12s,filter .12s; }
.support-button:hover { transform:translateY(-2px); filter:brightness(1.04); }
.paypal-button { background:linear-gradient(135deg,#68a9d5,#477fb8); }
.alerts-button { background:linear-gradient(135deg,#e8a1bd,#cf7f9f); }


/* Character guarantee counter */
.pity-counter { display:flex; flex-direction:column; align-items:center; gap:2px; padding:9px 14px; background:#f4f0ff; border:2px solid #d6c8f1; border-radius:16px; box-shadow:0 5px 0 #d6c8f1; }
.pity-label { font-size:9px; font-weight:900; letter-spacing:1px; color:#9a83bd; }
.pity-counter strong { font:21px "Bubblegum Sans", cursive; color:#8066a8; }
.pity-note { max-width:420px; margin:8px auto 0; color:#9a9bad; font-size:12px; line-height:1.4; }
@media (max-width:520px) {
  .topbar { flex-wrap:wrap; }
  .pity-counter { padding:7px 9px; }
  .pity-label { font-size:8px; }
  .pity-counter strong { font-size:18px; }
}

/* Ticket refill popup */
.ticket-counter:hover { transform:translateY(-1px); filter:brightness(1.02); }
.ticket-counter:focus-visible { outline:3px solid #8066a8; outline-offset:4px; }
.refill-panel { width:min(620px,100%); }
.refill-description { color:#78999d; font-weight:800; }
.copyright-note { margin-top:10px; font-size:8px; line-height:1.5; font-weight:500; letter-spacing:.15px; color:#9bb5b5; }


/* Full-size character artwork viewer */
.character-card-clickable { cursor: zoom-in; transition:transform .15s, box-shadow .15s; }
.character-card-clickable:hover { transform:translateY(-3px); box-shadow:0 8px 0 #9bcfc9; }
.character-card-clickable:focus-visible { outline:3px solid #8066a8; outline-offset:4px; }
.art-lightbox[hidden] { display:none; }
.art-lightbox { position:fixed; inset:0; z-index:30; display:grid; place-items:center; padding:24px; background:rgba(20,30,38,.92); backdrop-filter:blur(8px); }
.art-lightbox-content { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; height:100%; gap:10px; }
.art-lightbox-content img { display:block; max-width:100%; max-height:calc(100vh - 90px); width:auto; height:auto; object-fit:contain; border-radius:12px; box-shadow:0 12px 50px #0008; }
.art-lightbox-name { color:#fff; font:24px "Bubblegum Sans",cursive; text-align:center; text-shadow:0 2px 8px #0008; }
.art-lightbox-close { position:absolute; top:14px; right:20px; z-index:1; width:46px; height:46px; border:1px solid #ffffff70; border-radius:50%; background:#ffffff20; color:white; font-size:34px; line-height:1; cursor:pointer; }
.art-lightbox-close:hover { background:#ffffff38; }
@media(max-width:600px) {
  .art-lightbox { padding:12px; }
  .art-lightbox-content img { max-height:calc(100vh - 82px); }
}

.chest-placeholder[hidden] { display:none !important; }

@keyframes chestFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-5px); } }
