.lottery-card{background:linear-gradient(140deg,#fff 35%,#f0fbf8);border-color:rgba(18,168,154,.22)}
.lottery-card .lottery-badge{color:#8a6406;background:#fff6db;border:1px solid #f2e2a8}
.lottery-icon{color:var(--accent-strong);background:#e8f8f5;font-weight:900}
.lottery-card .lottery-card-title{min-height:0;margin:6px 0 10px;color:var(--muted);font-size:12px;line-height:1.5}
.lottery-card-meta{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin:4px 0 14px}
.lottery-card-meta b{color:var(--ink);font-variant-numeric:tabular-nums}
.lottery-card .lottery-card-bottom{align-items:end;gap:10px;padding-top:12px;border-top:1px solid rgba(18,168,154,.12)}
.lottery-clock{display:grid;gap:5px;min-width:0}
.lottery-clock-label{font-size:10px;color:var(--muted)}
.lottery-clock strong{font-size:19px;line-height:1.4;color:var(--accent-strong);font-variant-numeric:tabular-nums;letter-spacing:.2px}
.lottery-card-action{padding:7px 9px;border-radius:9px;background:#e6f7f2;color:#087d72;font-size:11px;font-weight:800;white-space:nowrap}
.lottery-main{width:min(920px,calc(100% - 32px));display:grid;align-content:start;align-items:start;gap:16px;padding-bottom:32px}
.lottery-main>.lottery-back{margin:0;text-decoration:none;justify-self:start}
.lottery-main .content-panel{min-width:0;margin:0;padding:22px}
.lottery-hero{background:linear-gradient(135deg,#fff 35%,#eefbf8);border-color:rgba(18,168,154,.18)}
.lottery-heading-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.lottery-heading{display:flex;align-items:flex-start;gap:16px}
.lottery-detail-icon{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border-radius:16px;background:#e5f7f2;color:#087e74;font-size:28px;font-weight:900;overflow:hidden}
.lottery-detail-icon img{width:100%;height:100%;object-fit:contain}
.lottery-heading h1{margin:0 0 5px;font-size:25px;line-height:1.3;overflow-wrap:anywhere}
.lottery-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.lottery-heading-body{min-width:0}
.lottery-heading-meta{display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px}
.lottery-heading-meta .lottery-participation-summary{font-size:11px;line-height:1.5;color:var(--muted)}
.lottery-participation-summary.is-announced{color:#087f72;font-weight:650}
.lottery-heading-meta .lottery-participation-summary.is-announced{color:#087f72}
.lottery-share-button{display:inline-flex;flex:0 0 auto;align-items:center;gap:5px;margin:0;padding:6px 11px;border-color:#b7e3d9;color:#078a80;background:#f7fdfb;font-size:12px;min-height:32px;white-space:nowrap}
.lottery-share-button svg{display:block;width:14px;height:14px;flex:0 0 14px}
.lottery-share-button[hidden]{display:none!important}
.lottery-overview{display:grid;grid-template-columns:120px minmax(0,1fr);gap:18px;margin:16px 0;padding:14px 16px;border:1px solid rgba(18,168,154,.13);border-radius:14px;background:rgba(255,255,255,.8)}
.lottery-overview>div{display:grid;gap:4px}
.lottery-overview small,.lottery-overview .lottery-clock-label{font-size:11px;color:var(--muted)}
.lottery-overview strong{font-size:26px;line-height:1.2;color:#0b8f82;font-variant-numeric:tabular-nums}
.lottery-overview em{font-size:13px;font-style:normal;font-weight:500;margin-left:7px}
.lottery-next-countdown{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 8px;min-width:0;margin-top:3px;padding-top:6px;border-top:1px solid rgba(18,168,154,.12)}
.lottery-next-countdown>span{font-size:11px;line-height:1.5;color:var(--muted)}
.lottery-clock .lottery-next-countdown>strong{font-size:18px;line-height:1.4;letter-spacing:0}
.lottery-rule{color:var(--muted);font-size:12px;line-height:1.65;margin:10px 0 12px}
.lottery-join-button{width:100%;min-height:44px}
.lottery-entry-status{padding:12px;border-radius:11px;background:#f1f5f8;color:var(--muted);text-align:center;font-size:13px;line-height:1.5;font-weight:750}
.lottery-entry-status.is-joined{background:#e2f5ef;color:#087f72}
.lottery-history-link{display:block;margin-top:12px;text-align:center;text-decoration:none;color:#098c80;font-size:11px}
.lottery-winners>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.lottery-winners h2{font-size:22px;margin:4px 0 0}
.lottery-winner-round-note{margin:5px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}
.lottery-winners>header>span{font-size:12px;color:var(--muted)}
.lottery-winner-tools{display:grid;justify-items:end;gap:6px}.lottery-winner-tools>span{font-size:11px;color:var(--muted)}
.lottery-winner-tools>button{min-height:34px;font-size:11px;padding:7px 10px;white-space:nowrap}
.lottery-next-note{font-size:12px;color:#098c80;line-height:1.75;margin:0 0 15px}
.lottery-past-modal{width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 36px);box-sizing:border-box;padding:0;border:1px solid #d3e9e4;border-radius:22px;background:#fff;color:var(--ink);box-shadow:0 24px 80px rgba(16,45,53,.2)}
.lottery-past-modal::backdrop{background:rgba(16,31,47,.5);backdrop-filter:blur(4px)}
.lottery-past-modal>header{display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}
.lottery-past-modal h2{font-size:24px;line-height:1.3;margin:5px 0 0}
.lottery-past-close{display:grid;place-items:center;justify-self:end;width:36px;height:36px;min-width:36px;min-height:36px;margin:0;padding:0;border:1px solid var(--line);border-radius:10px;line-height:1;background:#f9fbfc;color:var(--muted);cursor:pointer}
.lottery-past-close svg{display:block;width:18px;height:18px;pointer-events:none}
.lottery-past-body{max-height:calc(100dvh - 160px);overflow:auto;padding:20px 24px;overscroll-behavior:contain}
.lottery-past-round{padding:16px;margin-bottom:16px;border:1px solid var(--line);border-radius:16px;background:#f8fcfa}
.lottery-past-round>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.lottery-past-round h3{font-size:15px;margin:0 0 5px}.lottery-past-round small,.lottery-past-round>header>span{font-size:11px;color:var(--muted)}
.lottery-past-pager{display:flex;justify-content:flex-end;align-items:center;gap:10px;font-size:12px}.lottery-past-pager button{font-size:12px}
.lottery-winner-list{display:grid;gap:9px;padding:0;margin:0;list-style:none}
.lottery-winner-row{display:grid;grid-template-columns:32px 42px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px;border:1px solid rgba(38,83,111,.1);border-radius:14px;background:#fff;box-shadow:0 5px 15px rgba(25,54,79,.035)}
.lottery-winner-rank{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#edf4f5;color:#64788b;font-size:14px;font-weight:800}
.lottery-winner-row.top-1{background:linear-gradient(100deg,#fffdf7,#fff 46%,#f4fbfa)}
.lottery-winner-row.top-1 .lottery-winner-rank{color:#bd8707;background:#fff4d6}
.lottery-winner-row.top-2 .lottery-winner-rank{color:#76879a;background:#eef1f5}
.lottery-winner-row.top-3 .lottery-winner-rank{color:#a56539;background:#fff0e7}
.lottery-winner-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#dff8f5,#eaf0fb);font-size:14px;font-style:normal;color:#087f75;font-weight:800}
.lottery-winner-avatar img{width:100%;height:100%;object-fit:cover}
.lottery-winner-name{display:grid;gap:4px;min-width:0}
.lottery-winner-name strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px}
.lottery-winner-name small{font-size:10px;color:#098c80}
.lottery-winner-award{padding:8px 11px;border-radius:10px;background:#eaf9f6;color:#078a80;font-size:11px;font-weight:750}
.lottery-winner-row.is-me{border-color:rgba(20,174,160,.45);background:#f3fbfa}
.lottery-result-empty{padding:20px 12px;border:1px dashed rgba(13,148,136,.23);border-radius:13px;text-align:center;color:var(--muted);font-size:13px}
.lottery-privacy-note{margin:12px 0 0;font-size:11px;color:var(--muted);line-height:1.65}
.lottery-more{display:block;width:100%;margin-top:14px}
.lottery-private-prize{padding:20px;border:1px solid #a8dfd4;border-radius:16px;background:#e9faf4}
.lottery-private-prize h2{margin:7px 0;color:#087f72}
.lottery-private-prize p{font-size:12px;color:var(--muted)}
.lottery-private-prize pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;padding:16px;background:#fff;border:1px solid #cce8df;border-radius:10px;font-size:14px;color:#15574e;user-select:text}
.lottery-private-prize button{width:100%}
.lottery-prize-actions{display:flex;flex-wrap:wrap;gap:10px}
.lottery-prize-actions>button,.lottery-prize-actions>a{flex:1 1 200px;width:auto;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:13px}
.lottery-redemption-note{margin:12px 0 0;line-height:1.7}
.lottery-prize-instructions{margin-top:18px;padding-top:16px;border-top:1px solid #b9e4d9}
.lottery-prize-instructions h3{margin:0 0 12px;font-size:16px;color:#116e63}
.lottery-prize-instructions img,.lottery-prize-instructions video{max-width:100%;height:auto}
.lottery-description h2{font-size:22px;margin:0 0 18px}
.lottery-description img,.lottery-description video{max-width:100%;height:auto}
.lottery-unavailable{text-align:center;padding:40px 25px!important}
.lottery-unavailable h1{font-size:24px}
.lottery-unavailable p{color:var(--muted);font-size:13px;line-height:1.8}
.lottery-history-list{display:grid;gap:12px}
.lottery-history-heading{margin:0 0 18px}.lottery-history-heading h2{margin:5px 0;font-size:21px}.lottery-history-heading p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}
.lottery-history-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto auto;gap:15px;align-items:center;padding:18px;border:1px solid var(--line);border-radius:15px;background:#fff}
.lottery-history-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:13px;background:#eaf8f4;color:#098c80;font-size:22px;font-weight:800;overflow:hidden}
.lottery-history-icon img{width:100%;height:100%;object-fit:contain}
.lottery-history-card h3{margin:0 0 5px;font-size:14px}
.lottery-history-card p,.lottery-history-card small{margin:0;color:var(--muted);font-size:11px;line-height:1.6}
.lottery-history-status{color:var(--muted);font-size:12px;white-space:nowrap}
.lottery-history-status.won{color:#078a80;font-weight:800}
.lottery-history-card>a{font-size:11px;white-space:nowrap}
.lottery-history-pager{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:18px;font-size:12px}
@media(max-width:760px){
  .product-card.lottery-card{min-height:184px}
  .lottery-card h3{min-height:0;margin:8px 0 4px}
  .lottery-card .lottery-card-title{font-size:10px;min-height:0;margin:0 0 6px}
  .lottery-card-meta{font-size:10px;gap:4px;margin:2px 0 8px}
  .lottery-card .lottery-card-bottom{align-items:flex-end;flex-direction:row;gap:5px;padding-top:8px}
  .lottery-card-bottom .lottery-clock{flex:1;min-width:0;gap:2px}
  .lottery-card-bottom .lottery-clock-label{font-size:9px}
  .lottery-card-bottom .lottery-clock strong{font-size:clamp(12px,3.9vw,16px);line-height:1.3}
  .lottery-card-bottom .lottery-clock .lottery-draw-result{font-size:11px;line-height:1.4}
  .lottery-card-action{flex:0 0 auto;align-self:auto;padding:6px;font-size:9px;border-radius:8px}
  .lottery-main{width:calc(100% - 24px);gap:12px}
  .lottery-main .content-panel{padding:14px;border-radius:15px}
  .lottery-heading-topline{gap:8px;margin-bottom:10px}
  .lottery-heading-topline .eyebrow{font-size:8px;letter-spacing:.13em}
  .lottery-share-button{min-height:30px;padding:5px 9px;font-size:11px;border-radius:9px}
  .lottery-heading{gap:11px}.lottery-detail-icon{width:44px;height:44px;flex-basis:44px;border-radius:12px}
  .lottery-heading h1{font-size:18px;line-height:1.35;margin-bottom:4px}.lottery-heading p{font-size:11px}
  .lottery-overview{grid-template-columns:78px minmax(0,1fr);gap:10px;padding:10px 12px;margin:12px 0}
  .lottery-overview>div{gap:3px}.lottery-overview strong{font-size:22px}.lottery-overview small,.lottery-overview .lottery-clock-label{font-size:10px}
  .lottery-overview .lottery-draw-result{font-size:18px;line-height:1.35}
  .lottery-overview .lottery-next-countdown>span{font-size:10px}.lottery-overview .lottery-next-countdown>strong{font-size:15px}
  .lottery-rule{font-size:11px;line-height:1.6;margin:10px 0}
  .lottery-entry-status{padding:10px;font-size:12px}.lottery-join-button{min-height:40px}
  .lottery-history-link{margin-top:10px;font-size:11px}
  .lottery-winner-row{grid-template-columns:26px 34px minmax(0,1fr) auto;gap:8px;padding:10px}
  .lottery-winner-rank{width:26px;height:28px;font-size:12px}.lottery-winner-avatar{width:34px;height:34px}
  .lottery-winner-name strong{font-size:12px}.lottery-winner-award{font-size:10px;padding:6px}
  .lottery-history-card{grid-template-columns:42px minmax(0,1fr) auto;gap:10px;padding:13px}
  .lottery-history-icon{width:42px;height:42px}.lottery-history-card>a{grid-column:2/4}
  .lottery-private-prize{padding:15px}
  .lottery-winners>header{align-items:start;gap:8px;margin-bottom:12px}.lottery-winners h2{font-size:19px}.lottery-winner-tools>button{min-height:32px;font-size:10px;padding:6px 8px}
  .lottery-result-empty{padding:16px 10px;font-size:12px}.lottery-privacy-note{margin-top:10px;font-size:10px}
  .lottery-past-modal>header{padding:15px 14px}.lottery-past-modal h2{font-size:20px}.lottery-past-body{padding:14px}
  .lottery-past-round{padding:11px}.lottery-past-round h3{font-size:13px}.lottery-past-round>header{align-items:start}
}
