:root{--gold:#ffd34b;--green:#38dd6e;--bg:#031008;--panel:#071b10;--line:#425d43}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;color:#fff;background:#031008}
body{padding:18px 14px 50px;background:radial-gradient(circle at 50% 0,#174d2c,#071b10 32%,#031008 76%)}
button,input,select{font:inherit}.hide{display:none!important}.page{width:min(900px,100%);margin:auto}
header{height:68px;display:flex;gap:12px;align-items:center;border-bottom:1px solid #755b18}header button{width:42px;height:42px;border:1px solid #80651a;border-radius:50%;background:#08190f;color:var(--gold);font-size:25px}header button:last-child{margin-left:auto;border-radius:10px;font-size:18px}header b,header small{display:block}header b{font-size:22px;color:var(--gold)}header small{font-size:10px;color:#8da292;margin-top:3px}
.tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.tabs button{height:42px;border:1px solid #426047;border-radius:10px;background:#071a10;color:#9db0a2;font-weight:900}.tabs button.active{color:#171006;background:linear-gradient(#ffdb61,#b47b08);border-color:#f0c344}
.invite-card{display:grid;grid-template-columns:210px 1fr;gap:18px;padding:18px;border:1px solid #806219;border-radius:17px;background:linear-gradient(135deg,#0b2617,#08170e);box-shadow:0 14px 32px #0005}.qr{display:grid;place-items:center;background:#fff;border-radius:13px;padding:10px;min-height:190px}.qr img{width:180px;height:180px;object-fit:contain}.invite-copy{display:flex;flex-direction:column;justify-content:center;min-width:0}.invite-copy small{color:#6be58c;font-size:9px}.invite-copy strong{font-size:28px;color:var(--gold);margin:5px 0}.link{border:1px solid #385640;background:#031109;border-radius:9px;padding:10px;color:#a9b8ad;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.share{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.share button,.receive button,.filters button,.pager button{border:0;border-radius:9px;background:linear-gradient(#ffd858,#ad7708);color:#171006;font-weight:1000;padding:10px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}.stats article{border:1px solid #3d5941;border-radius:12px;background:#07190f;padding:13px}.stats small,.stats b{display:block}.stats small{font-size:9px;color:#7f9b88}.stats b{margin-top:5px;color:#ffd34b;font-size:17px}
.receive{margin-top:12px;border:1px solid #896719;border-radius:14px;background:linear-gradient(90deg,#0b2416,#171708);padding:14px;display:flex;align-items:center;gap:15px}.receive div{flex:1}.receive small,.receive b{display:block}.receive small{font-size:9px;color:#c7b86d}.receive b{font-size:24px;color:#ffda58;margin-top:4px}.receive button{min-width:130px}.receive button:disabled{filter:grayscale(1);opacity:.55}
.rules{margin-top:13px;border:1px solid #3d5941;border-radius:14px;background:#07190f;padding:15px}.rules h2{font-size:16px;margin:0 0 10px}.levels{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.levels article{border:1px solid #71591d;border-radius:11px;background:#10180e;padding:12px}.levels span,.levels b,.levels small{display:block}.levels span{font-size:8px;color:#69e68b}.levels b{font-size:21px;color:#ffd34b;margin:3px 0}.levels small,.rules p{font-size:9px;color:#90a493;line-height:1.5}
.filters{display:grid;grid-template-columns:1fr 150px 100px;gap:8px}.filters input,.filters select{height:42px;border:1px solid #536a51;border-radius:9px;background:#05130b;color:#fff;padding:0 10px}.down-head{display:flex;align-items:center;margin:15px 0 6px}.down-head span{margin-left:auto;color:#819786;font-size:10px}.down-row{display:grid;grid-template-columns:1.2fr repeat(4,1fr);gap:7px;align-items:center;border-bottom:1px solid #29432f;padding:11px 3px}.down-row div small,.down-row div b{display:block}.down-row small{font-size:8px;color:#7f9786}.down-row b{font-size:11px;margin-top:3px}.level-badge{display:inline-block!important;width:max-content;border:1px solid #86661a;border-radius:6px;padding:2px 5px;color:#ffd04a!important}.pager{display:flex;justify-content:center;align-items:center;gap:10px;margin:15px}.pager span{font-size:10px;color:#98a99d}.pager button{padding:8px 12px}
.done{display:block;text-decoration:none;text-align:center;color:#ffd44d;border:1px solid #806319;border-radius:10px;padding:12px;margin-top:12px;font-weight:900}#toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%) translateY(12px);opacity:0;transition:.2s;border:1px solid #b78b20;border-radius:9px;background:#102017;padding:10px 15px}#toast.show{opacity:1;transform:translateX(-50%)}#toast.error{border-color:#9c3e36;color:#ffaaa0}
@media(max-width:650px){.invite-card{grid-template-columns:1fr}.qr{width:190px;margin:auto}.stats{grid-template-columns:1fr 1fr}.levels{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr}.filters button{grid-column:1/3}.down-row{grid-template-columns:1.2fr 1fr 1fr}.down-row .extra{display:none}}

/* ==========================================================
   LUCKZOO FULL-PAGE / APK SCROLL RESTORE
   Account and feature pages are real documents, not fixed cards.
   Keeps normal readable sizing and allows vertical scrolling.
   ========================================================== */
html{
  min-height:100%!important;
  height:auto!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:auto!important;
}

body{
  min-height:100dvh!important;
  height:auto!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  transform:none!important;
}

.page,
.wrap,
.wrapper,
.container,
.shell,
main{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  transform:none!important;
}

/* Landscape APK: do not squeeze a long page to fit one screen. */
@media (orientation:landscape){
  html,body{
    height:auto!important;
    min-height:100dvh!important;
    max-height:none!important;
    overflow-y:auto!important;
  }
}

