.formal-gacha{min-width:0;color:var(--ui-text-primary);gap:9px;display:grid}.formal-gacha button{touch-action:manipulation}.formal-gacha__surface{border:1px solid var(--ui-border);background:#140d0d;border-radius:6px;grid-template-columns:1fr 1fr;gap:4px;padding:3px;display:grid}.formal-gacha__surface button,.formal-gacha__categories button{color:#c3b8a5;background:0 0;border:0;border-radius:4px;min-height:42px;font-weight:900}.formal-gacha__surface button[aria-selected=true],.formal-gacha__categories button[aria-pressed=true]{color:#241606;background:linear-gradient(#ffe4a0,#c79a45);box-shadow:0 0 14px #ddae5040}.formal-gacha__categories{grid-template-columns:repeat(3,1fr);gap:4px;display:grid}.formal-gacha__categories button{background:#1e1515;border:1px solid #d5b97440}.formal-gacha__card{background:linear-gradient(145deg,#261412fa,#0f0a0afa);border:1px solid #dab8666b;border-radius:8px;gap:10px;padding:14px;display:grid;box-shadow:inset 0 0 32px #e0a63a0d}.formal-gacha__card header{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.formal-gacha__card h2,.formal-gacha__card p{margin:0}.formal-gacha__card h2{letter-spacing:.08em;font-size:19px}.formal-gacha__card header small{color:#d4aa58;letter-spacing:.1em;font-weight:900}.formal-gacha__card>p{color:#c2b5a4;font-size:12px}.formal-gacha__link{color:#d9ccba;white-space:nowrap;background:#ffffff0a;border:1px solid #ffffff29;border-radius:4px;min-height:36px;padding:6px 8px;font-size:10px;font-weight:800}.formal-gacha__rate-summary{grid-template-columns:repeat(4,1fr);gap:3px;display:grid}.formal-gacha__rate-summary span{color:#e8ddca;text-align:center;background:#211919;border:1px solid #ffffff17;padding:7px 2px;font-size:10px;font-weight:900}.formal-gacha__balance,.formal-gacha__ledger{background:#00000040;border-radius:4px;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;font-size:12px;display:flex}.formal-gacha__ledger span{color:#c5b9a7}.formal-gacha__ledger b,.formal-gacha__balance strong{color:#ffe2a1;font-variant-numeric:tabular-nums}.formal-gacha__primary{min-height:54px;color:var(--g4-text);background:var(--g4-primary);border:1px solid #f0ca6c;border-radius:6px;flex-direction:column;justify-content:center;align-items:center;font-weight:900;display:flex;box-shadow:0 6px 16px #00000047}.formal-gacha__primary b{font-size:15px}.formal-gacha__used{text-align:center;border:1px solid #ffffff17;border-radius:5px;padding:11px!important}.formal-gacha__actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.formal-gacha__actions button{color:#fff5dc;background:#291c1a;border:1px solid #ddb96361;border-radius:5px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:50px;font-weight:900;display:flex}.formal-gacha__actions button:last-child:nth-child(3){grid-column:1/-1}.formal-gacha button:disabled{opacity:1;background:var(--g4-panel);color:var(--g4-muted)}.formal-gacha__points{color:#ecd49c;background:#28201f;border:1px solid #aa8b4f;border-radius:6px;justify-content:space-between;align-items:center;min-height:48px;padding:9px 12px;font-weight:900;display:flex}.formal-gacha__points strong{font-variant-numeric:tabular-nums}.formal-gacha__confirm{text-align:center;line-height:1.8}.formal-gacha__confirm b{color:#d6ad5c}.formal-gacha__rates{gap:5px;max-height:min(58dvh,500px);display:grid;overflow:auto}.formal-gacha__rate-totals{z-index:1;background:var(--ui-bg-surface);grid-template-columns:repeat(4,1fr);gap:3px;padding-bottom:5px;display:grid;position:sticky;top:0}.formal-gacha__rate-totals span{border:1px solid var(--ui-border);flex-direction:column;align-items:center;padding:6px;font-size:10px;display:flex}.formal-gacha__rate-row{border-bottom:1px solid var(--ui-border);justify-content:space-between;align-items:center;gap:10px;padding:8px;font-size:11px;display:flex}.formal-gacha__rate-row span{overflow-wrap:anywhere;min-width:0}.formal-gacha__rate-row b{color:#d5ad5c;margin-right:7px}.formal-gacha__rate-row strong{white-space:nowrap;font-variant-numeric:tabular-nums}.formal-gacha__exchange{gap:6px;max-height:50dvh;display:grid;overflow:auto}.formal-gacha__exchange button{color:#eee3d1;text-align:left;background:#241b1c;border:1px solid #ffffff24;border-radius:5px;min-height:44px;padding:9px 11px}.formal-gacha__exchange button[aria-pressed=true]{background:#44331f;border-color:#d2aa58;box-shadow:inset 3px 0 #e2ba65}@media (max-width:360px){.formal-gacha__card{padding:11px}.formal-gacha__card h2{font-size:17px}.formal-gacha__link{font-size:9px}.formal-gacha__ledger{flex-direction:column;align-items:flex-start}}.formal-gacha__surface button,.formal-gacha__categories button,.formal-gacha__link,.formal-gacha__actions button,.formal-gacha__points,.formal-gacha__primary{min-height:44px}.formal-gacha__card>p,.formal-gacha__card header small,.formal-gacha__ledger,.formal-gacha__balance,.formal-gacha__used,.formal-gacha__confirm{font-size:14px;line-height:1.6}.formal-gacha__link,.formal-gacha__rate-summary span,.formal-gacha__rate-totals span,.formal-gacha__rate-row{font-size:14px}.formal-gacha__actions button b{font-size:16px}.formal-gacha__actions small{color:#f1dfbd;font-size:16px}.formal-gacha__primary small{font-size:14px}.formal-gacha__exchange button{min-height:44px;font-size:14px;line-height:1.5}@media (max-width:360px){.formal-gacha__link{font-size:14px}}.formal-gacha__card{box-shadow:none;gap:var(--g4-space-2);background:0 0;border:0;border-radius:0;padding:0}.formal-gacha__card header{justify-content:flex-end}.formal-gacha__card header .formal-gacha__link{min-height:44px}body.game04-theme .formal-gacha__primary:disabled{background:var(--g4-panel);color:var(--g4-muted)}body.game04-theme .formal-gacha__primary small{color:inherit}
