#gold-packet { --gp-bg:#0d0d10; --gp-line:#302b20; --gp-ink:#fff4da; --gp-dim:#bcaf96; --gp-gold:#ffd23f; --gp-card:url("https://media.gptpai.cc/img/cards/gold.webp"); color-scheme:dark; font:14px/1.5 system-ui,-apple-system,"PingFang SC",sans-serif; padding:0; }
#gold-packet * { box-sizing:border-box; }
#gold-packet [hidden] { display:none!important; }
#gold-packet .gp-app { width:100%; margin:auto; overflow:hidden; border:1px solid #3c3323; border-radius:20px; background:var(--gp-bg); color:var(--gp-ink); }
#gold-packet .gp-bar { min-height:54px; display:flex; justify-content:space-between; align-items:center; padding:0 17px; border-bottom:1px solid #262329; font-size:12px; color:var(--gp-dim); }
#gold-packet .gp-brand { display:flex; gap:9px; align-items:center; color:var(--gp-ink); font-weight:700; font-size:14px; }
#gold-packet .gp-logo { display:block; width:27px; height:27px; object-fit:contain; }
#gold-packet .gp-content { padding:19px 16px 0; }
#gold-packet .gp-intro { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:16px; }
#gold-packet h1,#gold-packet h2,#gold-packet p { margin:0; }
#gold-packet h1 { font-size:28px; line-height:1.18; letter-spacing:-.03em; font-weight:800; }
#gold-packet .gp-intro p { color:var(--gp-dim); margin-top:6px; font-size:12px; }
#gold-packet .gp-badge { display:flex; gap:5px; align-items:center; white-space:nowrap; padding:5px 9px; border:1px solid #574623; border-radius:999px; color:#ffe290; background:#272015; font-size:11px; }
#gold-packet .gp-badge svg,#gold-packet .gp-link svg { width:13px; height:13px; }
#gold-packet .gp-meter { display:grid; grid-template-columns:repeat(3,1fr); padding:10px 0; border:solid var(--gp-line); border-width:1px 0; text-align:center; }
#gold-packet .gp-meter > div { display:grid; gap:1px; }
#gold-packet .gp-meter > div + div { border-left:1px solid var(--gp-line); }
#gold-packet .gp-meter > div > span { color:var(--gp-dim); font-size:11px; }
#gold-packet .gp-meter b { font-size:19px; font-variant-numeric:tabular-nums; white-space:nowrap; }
#gold-packet .gp-meter b small { font-size:11px; font-weight:500; color:var(--gp-dim); }
#gold-packet .gp-meter div:last-child b { color:var(--gp-gold); }
#gold-packet .gp-section-head { display:flex; justify-content:space-between; align-items:center; min-height:46px; gap:8px; margin-top:5px; }
#gold-packet h2 { font-size:15px; font-weight:750; }
#gold-packet .gp-section-head > span { color:var(--gp-dim); font-size:12px; }
#gold-packet .gp-link { min-height:44px; display:flex; align-items:center; gap:5px; padding:0 0 0 8px; color:var(--gp-dim); background:none; border:0; font:inherit; font-size:12px; }
#gold-packet .gp-art { position:relative; background:var(--gp-card) center / 100% 100% no-repeat; aspect-ratio:1080/666; border-radius:13px; overflow:hidden; }
#gold-packet .gp-piece { position:absolute; width:13.75%; height:auto; pointer-events:none; }
#gold-packet .gp-track { position:relative; display:grid; place-items:center; min-height:48px; margin-top:12px; border:1px solid #433724; border-radius:11px; background:#211b13; }
#gold-packet .gp-track > span { color:#ddd0b4; font-size:12px; pointer-events:none; padding-inline:43px; text-align:center; }
#gold-packet .gp-track input { appearance:none; position:absolute; inset:0; width:100%; height:100%; margin:0; background:transparent; border-radius:11px; cursor:grab; touch-action:none; }
#gold-packet .gp-track input:active { cursor:grabbing; }
#gold-packet .gp-track input::-webkit-slider-thumb { appearance:none; width:44px; height:46px; border:0; border-radius:9px; background:linear-gradient(135deg,#ffe27a,#ffd23f); }
#gold-packet .gp-track input::-moz-range-thumb { width:44px; height:46px; border:0; border-radius:9px; background:#ffd23f; }
#gold-packet .gp-track:not(.gp-done)::after { content:""; position:absolute; left:calc(var(--thumb,22px) - 5px); width:8px; height:8px; border:solid #3d2b0c; border-width:2px 2px 0 0; transform:rotate(45deg); pointer-events:none; }
#gold-packet .gp-track.gp-done { background:#1c2418; border-color:#3d5232; }
#gold-packet .gp-track.gp-done > span { color:#c5e8a9; }
#gold-packet .gp-feedback { min-height:20px; color:var(--gp-dim); font-size:12px; margin:6px 0 12px!important; }
#gold-packet .gp-feedback[data-error] { color:#ffc0a9; }
#gold-packet .gp-primary { width:100%; min-height:48px; border:0; border-radius:11px; background:linear-gradient(135deg,#ffe27a,#ffd23f 55%,#ffb800); color:#171204; font:inherit; font-weight:800; }
#gold-packet .gp-watch { margin-top:12px; }
#gold-packet .gp-primary:disabled { background:#2b251a; color:#bcaa80; cursor:default; }
#gold-packet .gp-reward { position:relative; overflow:hidden; isolation:isolate; display:flex; align-items:center; min-height:114px; padding:13px 16px; margin-top:14px; border-radius:13px; background:#4a300f var(--gp-card) center / cover no-repeat; }
#gold-packet .gp-reward::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#23170dfc 5%,#23170de8 45%,#23170d15 82%); }
#gold-packet .gp-reward strong { font-size:50px; line-height:1.05; color:#ffe08a; }
#gold-packet .gp-reward small { font-size:16px; }
#gold-packet .gp-reward p { color:#f2d7a2; font-size:12px; }
#gold-packet .gp-reward p:last-child { margin-top:4px; }
#gold-packet .gp-list-scroll { max-height:clamp(100px,24svh,160px); overflow-y:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:#7a6238 #211b13; border-block:1px solid var(--gp-line); }
#gold-packet .gp-list { list-style:none; margin:0; padding:0; }
#gold-packet .gp-list li { display:grid; grid-template-columns:24px minmax(0,1fr) auto auto; gap:8px; align-items:center; padding:6px 7px; min-height:35px; border-bottom:1px solid var(--gp-line); font-size:13px; }
#gold-packet .gp-list li span:first-child,#gold-packet .gp-list time { color:var(--gp-dim); font-size:11px; font-variant-numeric:tabular-nums; }
#gold-packet .gp-list li:last-child { border-bottom:0; }
#gold-packet .gp-list li:nth-child(-n+3) span:first-child { color:#ffda79; }
#gold-packet .gp-own { background:#262014; color:#ffe197; }
#gold-packet .gp-message { text-align:center; padding-top:16px; }
#gold-packet .gp-message h2 { margin:16px 0 5px; font-size:19px; }
#gold-packet .gp-message p { color:var(--gp-dim); }
#gold-packet .gp-foot { padding:10px 0 9px; color:#a99b80; font-size:11px; text-align:center; }

#gold-packet[data-kind="black"] {
  --gp-bg:#101115; --gp-line:#333641; --gp-ink:#f0f2fa; --gp-dim:#b8c0ce; --gp-gold:#dce6fa;
  --gp-card:url("https://media.gptpai.cc/img/cards/black.webp");
}
#gold-packet[data-kind="black"] .gp-app { border-color:#414652; }
#gold-packet[data-kind="black"] .gp-badge { color:#dce6fa; background:#222632; border-color:#464e61; }
#gold-packet[data-kind="black"] .gp-track:not(.gp-done) { background:#20242d; border-color:#424955; }
#gold-packet[data-kind="black"] .gp-track:not(.gp-done) > span { color:#d0d8e6; }
#gold-packet[data-kind="black"] .gp-track:not(.gp-done)::after { border-color:#262e40; }
#gold-packet[data-kind="black"] .gp-track input::-webkit-slider-thumb { background:linear-gradient(140deg,#f7f9ff,#b5c5df); }
#gold-packet[data-kind="black"] .gp-track input::-moz-range-thumb { background:#d7e0f2; }
#gold-packet[data-kind="black"] .gp-primary { color:#151d2e; background:linear-gradient(140deg,#f5f8ff,#c4d2eb 65%,#a8b7d4); }
#gold-packet[data-kind="black"] .gp-primary:disabled { color:#a9b4c7; background:#272c37; }
#gold-packet[data-kind="black"] .gp-reward { background-color:#242b3a; }
#gold-packet[data-kind="black"] .gp-reward::before { background:linear-gradient(90deg,#121722fc 5%,#141a25d9 44%,#13182515 82%); }
#gold-packet[data-kind="black"] .gp-reward strong,#gold-packet[data-kind="black"] .gp-list li:nth-child(-n+3) span:first-child { color:#e0eafe; }
#gold-packet[data-kind="black"] .gp-reward p,#gold-packet[data-kind="black"] .gp-foot { color:#bbc5d7; }
#gold-packet[data-kind="black"] .gp-list-scroll { scrollbar-color:#737e94 #242833; }
#gold-packet[data-kind="black"] .gp-own { background:#242c3c; color:#e2ebff; }
#gold-packet {
  width:min(calc(100% - 24px),392px);
  max-height:calc(100dvh - 22px);
  border:0;
  background:transparent;
  overflow:auto;
  overscroll-behavior:contain;
}
#gold-packet::backdrop { background:rgba(0,0,0,.82); }
#gold-packet .gp-close {
  min-width:44px; min-height:44px; margin-right:-8px; border:0;
  background:none; color:var(--gp-dim); font:inherit; font-size:24px; line-height:1;
}
#gold-packet .gp-art { width:min(100%, max(176px,calc((100dvh - 376px) * 1.62))); margin-inline:auto; }
#gold-packet .gp-board { display:block; width:100%; height:100%; }
#gold-packet .gp-art[data-solved] .gp-board { visibility:hidden; }
#gold-packet .gp-track > span { padding-inline:44px; }
#gold-packet .gp-section-head h2 { min-width:0; }
#gold-packet .gp-link { min-width:44px; }
#gold-packet .gp-link:disabled { opacity:.55; }
#gold-packet .gp-foot { margin:0; }
#gold-packet .gp-note { color:var(--gp-dim); margin:-8px 0 12px; overflow-wrap:anywhere; font-size:13px; }
#gold-packet .gp-list li span:nth-child(2) { overflow-wrap:anywhere; }
#gold-packet .gp-list li time { white-space:nowrap; }
#gold-packet .gp-retry { margin-top:14px; }
@media (max-height:580px) {
  #gold-packet .gp-bar { min-height:45px; }
  #gold-packet .gp-content { padding-top:13px; }
  #gold-packet .gp-intro { margin-bottom:10px; }
  #gold-packet .gp-section-head { min-height:40px; }
  #gold-packet .gp-reward { min-height:93px; margin-top:11px; }
  #gold-packet .gp-list-scroll { max-height:clamp(76px,23dvh,130px); }
}

body.packet-lock { overflow:hidden; }
#gold-packet .gp-done-title { padding-top:16px; color:var(--gp-dim); }

@media (max-height:520px) {
  #gold-packet .gp-art { min-width:0; width:min(100%,154px); }
  #gold-packet .gp-reward { min-height:82px; }
  #gold-packet .gp-list-scroll { max-height:88px; }
  #gold-packet .gp-foot { padding:6px 0; }
}
