:root { --ink:#101b35; --muted:#7e8da8; --line:#dce5ee; --paper:#f5f8fb; --white:#fff; --cyan:#00b8a8; --cyan-dark:#008f85; --gold:#f3b431; --coral:#ff6b65; --violet:#7264e8; }
* { box-sizing:border-box; }
html { background:#eaf0f5; }
body { margin:0; color:var(--ink); background:radial-gradient(circle at 50% -15%, #cfe8e5 0, #eef4f7 35%, #e8eef4 100%); font-family:"PingFang SC","Microsoft YaHei",Inter,system-ui,sans-serif; }
button,input { font:inherit; }
button { color:inherit; }
.app-shell { position:relative; width:min(100%,520px); min-height:100vh; margin:auto; background:var(--paper); box-shadow:0 0 70px #20334b22; overflow:hidden; padding-bottom:88px; }
.screen { padding:14px 14px 30px; }
.app-header { position:sticky; top:0; z-index:20; display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:10px; height:68px; padding:9px 14px; background:#f8fafce8; backdrop-filter:blur(18px); border-bottom:1px solid #e0e8ef; }
.brand-mark { display:grid; place-items:center; width:38px; height:38px; border-radius:13px; color:white; background:var(--ink); font-weight:900; font-size:13px; letter-spacing:-1px; box-shadow:inset 0 -8px 18px #00b8a844; }
.app-header h1 { margin:0; font-size:18px; line-height:1.1; letter-spacing:-.4px; }
.eyebrow { margin:0 0 3px; color:var(--cyan-dark); font-size:9px; font-weight:900; letter-spacing:1.8px; }
.lang-btn,.round-btn { border:0; background:#e9eef3; border-radius:12px; height:38px; padding:0 12px; font-weight:700; font-size:12px; }
.round-btn { width:38px; padding:0; font-size:28px; }
.icon { display:inline-grid; place-items:center; line-height:1; font-style:normal; }
.hero-card { position:relative; min-height:238px; padding:26px 24px; color:white; border-radius:28px; overflow:hidden; background:linear-gradient(145deg,#0d1932 0%,#173651 55%,#008f85 130%); box-shadow:0 18px 40px #13243d26; }
.hero-card:before { content:"DF"; position:absolute; right:-8px; bottom:-45px; font-size:148px; font-weight:950; letter-spacing:-18px; color:#ffffff0a; }
.hero-orbit { position:absolute; border:1px solid #52e5d84d; border-radius:50%; }
.orbit-one { width:210px;height:210px;right:-78px;top:-55px; }.orbit-two{width:125px;height:125px;right:-35px;top:-12px;border-style:dashed}
.hero-copy { position:absolute; left:24px; right:20px; bottom:24px; z-index:2; }
.pill { display:inline-block; padding:6px 9px; color:#78f0e5; background:#00b8a820; border:1px solid #4cd5ca55; border-radius:99px; font-size:9px; font-weight:900; letter-spacing:1px; }
.hero-copy h2 { margin:12px 0 7px; max-width:360px; font-size:28px; line-height:1.15; letter-spacing:-1.2px; }
.hero-copy p { margin:0; max-width:330px; color:#b9c7d6; font-size:11px; }
.hero-metric { position:absolute; top:25px; right:24px; display:flex; flex-direction:column; text-align:right; }.hero-metric small{color:#7c90a7;font-size:8px;letter-spacing:2px}.hero-metric b{font-size:23px}.hero-metric span{color:#64eadf;font-size:8px;font-weight:900;letter-spacing:1px}
.notice { display:flex; align-items:center; gap:10px; margin:12px 0; padding:13px 14px; color:#027c73; background:#e7f9f6; border:1px solid #9ce8df; border-radius:15px; font-size:12px; font-weight:800; }.notice em{margin-left:auto;padding:3px 7px;border-radius:20px;background:white;font-style:normal;font-size:9px}
.action-grid { display:grid; grid-template-columns:1.25fr .75fr; grid-template-rows:64px 64px; gap:9px; }.action-grid button{border:1px solid var(--line);background:white;border-radius:17px;text-align:left;padding:0 16px;display:flex;align-items:center;gap:12px;box-shadow:0 6px 18px #1b32460c}.action-grid button>span{display:flex;flex-direction:column;gap:3px}.action-grid button b{font-size:13px}.action-grid button small{color:var(--muted);font-size:10px}.action-grid .trade-entry{grid-row:1/3;flex-direction:column;align-items:flex-start;justify-content:flex-end;color:white;border:0;background:linear-gradient(160deg,#00b8a8,#007a73);padding:20px;box-shadow:0 13px 26px #00a7982b}.trade-entry>span{font-size:22px;font-weight:900}.trade-entry small{color:#bdfff8!important}.trade-entry b{width:100%;display:flex;justify-content:space-between;margin-top:12px;padding-top:12px;border-top:1px solid #ffffff45}
.section-title { display:flex; align-items:center; justify-content:space-between; margin:20px 2px 9px; }.section-title h2{margin:0;font-size:17px}.section-title span{color:var(--cyan-dark);font-size:9px;font-weight:900;letter-spacing:1.3px}
.data-table { overflow:hidden; background:white; border:1px solid var(--line); border-radius:18px; }.table-head,.table-row{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;min-height:39px;padding:0 13px;border-bottom:1px solid #e5ecf2;font-size:11px}.table-head{background:#f0f5f8;font-size:10px}.table-head :last-child,.table-row :last-child{text-align:right}.table-row:last-child{border:0}.table-row span{color:#70809a}.table-row strong{color:#008c82;font-weight:800;font-variant-numeric:tabular-nums}
.bottom-nav { position:fixed; z-index:30; left:50%; bottom:10px; transform:translateX(-50%); display:grid; grid-template-columns:repeat(4,1fr); width:min(calc(100% - 20px),500px); padding:6px; border:1px solid #dbe5ed; border-radius:20px; background:#ffffffee; backdrop-filter:blur(18px); box-shadow:0 12px 34px #0d20352c; }.bottom-nav button{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:transparent;border-radius:14px;padding:8px 3px 7px;color:#8795a9;font-size:10px}.bottom-nav button.active{color:white;background:var(--ink);box-shadow:inset 0 -10px 20px #008f8522}.nav-icon{position:relative;font-size:19px}.nav-icon b{position:absolute;right:-10px;top:-6px;display:grid;place-items:center;min-width:16px;height:16px;padding:0 3px;border-radius:9px;background:var(--coral);color:white;font-size:9px}
.filter-panel { padding:10px; background:white; border:1px solid var(--line); border-radius:18px; }.filter-panel>div{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.filter-panel>div+div{grid-template-columns:repeat(4,1fr);margin-top:7px}.filter-panel button{border:0;background:#f0f4f8;border-radius:10px;padding:10px 2px;color:#72819a;font-size:11px}.filter-panel button.selected{color:white;background:var(--ink)}
.order-list,.message-list,.hall-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}.order-card{display:flex;justify-content:space-between;align-items:center;padding:16px;background:white;border:1px solid var(--line);border-radius:19px}.order-card p{display:grid;grid-template-columns:45px 1fr;margin:0 0 5px;font-size:11px}.order-card p span{color:#8290a5}.order-card time{color:#97a3b5;font-size:10px}.order-card>strong{display:flex;flex-direction:column;align-items:center;justify-content:center;width:72px;height:72px;border-radius:20px;font-size:18px}.order-card>strong small{font-size:10px}.win{color:#00a293;background:#e7f9f6}.loss{color:#ed625d;background:#fff0ef}
.message-line{position:absolute;left:34px;top:80px;bottom:110px;width:2px;background:#d7e5eb}.message-card{position:relative;z-index:1;display:grid;grid-template-columns:42px 1fr 14px;gap:10px;align-items:center;width:100%;padding:15px 12px;border:1px solid var(--line);border-radius:18px;background:white;text-align:left}.message-card strong{font-size:13px}.message-card p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:5px 0;color:#7f8da3;font-size:10px}.message-card time{color:#a1adbc;font-size:10px}.mail-badge{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:13px;color:#008f85;background:#e4f8f4;font-size:18px}.mail-badge b{position:absolute;right:0;top:0;width:7px;height:7px;border-radius:50%;background:var(--coral)}.empty-note{text-align:center;color:#9ca8b8;font-size:11px;margin-top:25px}
.profile-hero{position:relative;display:flex;align-items:center;gap:14px;padding:22px;color:white;border-radius:24px;background:linear-gradient(140deg,#101b35,#21435d 65%,#00a69b 150%)}.profile-hero:after{content:"";position:absolute;right:18px;bottom:0;width:108px;height:66px;border:1px solid #ffffff18;border-bottom:0;border-radius:108px 108px 0 0}.avatar{display:grid;place-items:center;width:58px;height:58px;border-radius:19px;background:white;color:var(--ink);font-weight:950}.profile-hero span{font-size:9px;letter-spacing:1.3px;color:#7af0e6}.profile-hero h2{margin:5px 0 3px;font-size:20px}.profile-hero p{margin:0;color:#c2cedb;font-size:11px}.profile-hero button{position:absolute;z-index:1;right:20px;top:20px;width:34px;height:34px;border:0;border-radius:11px;background:#ffffff13;color:white;font-size:18px}
.balance-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}.balance-grid div{padding:15px;background:white;border:1px solid var(--line);border-radius:16px}.balance-grid span{display:block;color:#7c8ca4;font-size:11px}.balance-grid b{display:block;margin-top:7px;color:var(--gold);font-size:22px}.dual-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.dual-actions button{border:0;border-radius:15px;padding:14px;color:white;background:var(--ink);font-weight:800}.dual-actions .icon{margin-right:8px;color:#67e8dc}.menu-list{margin-top:10px;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:white}.menu-list button{display:grid;grid-template-columns:28px 1fr 16px;align-items:center;width:100%;padding:15px 14px;border:0;border-bottom:1px solid #e3ebf1;background:white;text-align:left}.menu-list button:last-child{border:0}.menu-list button>.icon:first-child{color:var(--cyan-dark);font-size:19px}.menu-list button>.icon:last-child{color:#9aa7b8}.menu-list b{font-size:13px}.logout{width:100%;margin-top:12px;padding:14px;border:1px solid #ffb6b2;border-radius:15px;background:#fff8f7;color:var(--coral);font-weight:800}
.wallet-strip{display:grid;grid-template-columns:1.2fr 1fr 1fr;overflow:hidden;border-radius:19px;background:white;border:1px solid var(--line)}.wallet-strip div{padding:16px 12px;border-right:1px solid var(--line)}.wallet-strip div:first-child{color:white;background:var(--ink)}.wallet-strip div:last-child{border:0}.wallet-strip span{display:block;color:#8897aa;font-size:10px}.wallet-strip div:first-child span{color:#a9b7c8}.wallet-strip b{display:block;margin-top:8px;font-size:18px}.wallet-strip div:first-child b{color:var(--gold)}.currency-chip{display:inline-flex;align-items:center;gap:10px;margin:12px 0;padding:8px 12px;border-radius:12px;color:#007c73;background:#e6f9f6;border:1px solid #9ce8df;font-weight:900;font-size:12px}.currency-chip small{font-size:8px;font-weight:700;opacity:.7}
.hall-card{position:relative;display:flex;align-items:center;justify-content:space-between;width:100%;padding:17px 18px 17px 23px;border:1px solid var(--line);border-radius:20px;background:white;text-align:left;overflow:hidden}.hall-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:var(--accent)}.hall-card small{display:block;color:var(--accent);font-size:8px;font-weight:900;letter-spacing:1.4px}.hall-card strong{display:block;margin:3px 0 7px;font-size:20px}.hall-card p{margin:3px 0;color:#7b8ba2;font-size:10px}.hall-card em{display:flex;flex-direction:column;align-items:center;justify-content:center;width:72px;height:72px;border-radius:50%;background:#f2f6f9;font-style:normal;font-size:9px}.hall-card em b{font-size:12px}.hall-card>.icon{color:#9ba8b9;font-size:22px}.cyan{--accent:#00b8a8}.gold{--accent:#f3b431}.violet{--accent:#7264e8}.coral{--accent:#ff6b65}
.round-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px}.round-summary>div{padding:14px;background:white;border:1px solid var(--line);border-radius:17px}.round-summary span{color:#7d8ba1;font-size:10px}.round-summary>div>b{font-size:13px}.round-summary>div:first-child>b{display:block;margin:3px 0 8px;font-size:20px}.round-summary p{margin:5px 0;color:#8290a6;font-size:10px}.round-summary p strong{color:var(--ink)}.round-bar{display:flex;align-items:center;gap:7px;margin:10px 0;padding:11px 12px;border-radius:14px;color:white;background:var(--ink);font-size:10px}.round-bar b{margin-left:auto}.round-bar em{padding:4px 7px;border-radius:7px;background:#ffffff1c;font-style:normal}.trade-panel{margin-top:12px;padding:13px;background:white;border:1px solid var(--line);border-radius:19px}.trade-title{display:flex;justify-content:space-between;font-size:12px}.choice-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px}.choice-grid button{display:flex;flex-direction:column;gap:3px;padding:10px 2px;border:1px solid var(--line);border-radius:12px;background:#f5f8fb}.choice-grid button.selected{color:white;border-color:var(--ink);background:var(--ink)}.choice-grid small{font-size:9px}.amount-row{display:grid;grid-template-columns:44px 1fr 44px;gap:7px;margin:9px 0}.amount-row button{border:0;border-radius:11px;background:#edf2f6;font-size:20px}.amount-row label{display:flex;align-items:center;justify-content:space-between;padding:7px 12px;border:1px solid var(--line);border-radius:11px}.amount-row span{font-size:10px;color:#8190a5}.amount-row input{width:75px;border:0;outline:0;text-align:right;font-weight:900;background:transparent}.primary-btn{width:100%;padding:14px;border:0;border-radius:13px;color:white;background:linear-gradient(100deg,#00a99b,#00877f);font-weight:900;box-shadow:0 9px 20px #00a1922b}.primary-btn:disabled{opacity:.4;box-shadow:none}.sheet-wrap{position:fixed;z-index:80;inset:0;display:flex;justify-content:center;align-items:flex-end}.sheet-mask{position:absolute;inset:0;border:0;background:#0b172b99;backdrop-filter:blur(4px)}.sheet{position:relative;width:min(100%,520px);padding:25px 20px 24px;border-radius:28px 28px 0 0;background:white}.sheet-tag{color:var(--cyan-dark);font-size:9px;font-weight:900;letter-spacing:1.4px}.sheet h2{margin:8px 0 20px;font-size:22px}.sheet-close{position:absolute;right:18px;top:18px;width:35px;height:35px;border:0;border-radius:12px;background:#edf2f5;font-size:22px}.confirm-row{display:flex;justify-content:space-between;padding:13px 0;border-top:1px solid #e5ebf0;font-size:12px}.sheet .primary-btn{margin-top:12px}.success-state{text-align:center}.success-state>div{display:grid;place-items:center;width:62px;height:62px;margin:auto;border-radius:20px;color:white;background:var(--cyan);font-size:32px}.success-state h2{margin-bottom:6px}.success-state p{color:var(--muted);font-size:12px}
.article-card,.form-card{padding:21px;background:white;border:1px solid var(--line);border-radius:21px}.article-card h2{margin:13px 0 5px;font-size:23px}.article-card time{color:#98a5b7;font-size:10px}.article-card p{color:#687991;font-size:13px;line-height:1.8}.article-card h3{margin:22px 0 2px;font-size:15px}.detail-box{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0;padding:15px;border-radius:14px;background:#f1f5f7;font-size:11px}.detail-box b{text-align:right}.cyan-text{color:var(--cyan-dark)!important}
.form-visual{display:flex;align-items:center;gap:12px;padding:15px;margin-bottom:20px;border-radius:16px;color:white;background:var(--ink)}.form-visual .icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#00b8a82b;color:#75ece2;font-size:20px}.form-visual span{font-size:10px;font-weight:900;letter-spacing:1.5px}.form-card label{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-size:12px;font-weight:800}.form-card input{width:100%;padding:14px;border:1px solid var(--line);border-radius:13px;outline:0;background:#f7f9fb}.form-card input:focus{border-color:#56cfc5;box-shadow:0 0 0 3px #00b8a812}.form-card>p{color:#8996a8;font-size:10px}.form-card>.primary-btn{margin-top:12px}.quick-money{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.quick-money button{padding:9px;border:1px solid #a4ded8;border-radius:10px;color:#00887e;background:#eaf9f7;font-weight:800}.inline-success{margin-top:12px;padding:11px;border-radius:11px;color:#007c73;background:#e3f8f4;text-align:center;font-size:11px;font-weight:800}
.record-list{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:white}.record-list article{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:10px;padding:16px;border-bottom:1px solid #e3eaf0}.record-list article:last-child{border:0}.record-dot{width:8px;height:8px;border-radius:50%;background:var(--cyan)}.record-list b{display:block;font-size:12px}.record-list time{display:block;margin-top:4px;color:#99a5b5;font-size:9px}.record-list strong{font-size:12px}.loss-text{color:var(--coral)}
@media (min-width:700px){body:before,body:after{position:fixed;top:50%;transform:translateY(-50%);font-size:10px;font-weight:900;letter-spacing:4px;color:#7890a0;writing-mode:vertical-rl}body:before{content:"DATA FLOW · CONTRACT CENTER";left:calc(50% - 330px)}body:after{content:"E-CNY · SECURE NETWORK";right:calc(50% - 330px)}}
@media (max-width:360px){.hero-copy h2{font-size:24px}.table-head,.table-row{padding:0 9px}.hall-card{padding-right:10px}.hall-card em{width:62px;height:62px}}

/* Black & gold wealth-management theme */
:root {
  --ink:#090806;
  --muted:#9f957f;
  --line:#3a3121;
  --paper:#090806;
  --white:#15120d;
  --cyan:#d8b85a;
  --cyan-dark:#c8a13d;
  --gold:#e2bd57;
  --coral:#d36f54;
  --violet:#ab8d56;
  --gold-soft:#f4dfa1;
  --night-card:#15120d;
  --night-card-2:#1d1810;
  --night-text:#f8eed2;
}

html, body { background:#050504; }
body { color:var(--night-text); background:radial-gradient(circle at 50% -12%,#4a3919 0,#151109 26%,#050504 62%); }
.app-shell { background:linear-gradient(180deg,#0e0c08 0%,#070605 100%); box-shadow:0 0 80px #000; }
.app-header { background:#0b0907e8; border-bottom-color:#302817; }
.app-header h1 { color:#f9edcc; }
.eyebrow { color:#cfae50; }
.brand-mark { color:#171107; background:linear-gradient(145deg,#f4dfa1,#a77d20); box-shadow:inset 0 1px 0 #fff7cf,0 7px 20px #c89f3830; }
.lang-btn,.round-btn { color:#e8d394; background:#1c1810; border:1px solid #3b3020; }

.hero-card { color:#fff4d2; background:linear-gradient(145deg,#070605 0%,#171207 54%,#4d3913 100%); border:1px solid #6d5523; box-shadow:0 20px 45px #0008, inset 0 1px 0 #f4d87e33; }
.hero-card:after { content:""; position:absolute; inset:0; background:linear-gradient(115deg,transparent 22%,#d6ae4e12 48%,transparent 72%); pointer-events:none; }
.hero-card:before { color:#e2bd570c; }
.hero-orbit { border-color:#d8b85a55; }
.pill { color:#f1d27b; background:#d8b85a12; border-color:#d8b85a55; }
.hero-copy p { color:#b8aa88; }
.hero-metric small { color:#a39575; }
.hero-metric span { color:#e6c564; }

.notice { color:#ead28b; background:#17130c; border-color:#4c3b1c; }
.notice em { color:#171107; background:linear-gradient(120deg,#f1d27b,#b88b2d); }
.action-grid { grid-template-rows:64px 64px auto; }
.action-grid button { color:#f4e8c8; background:linear-gradient(145deg,#17140e,#100e0a); border-color:#3a3121; box-shadow:0 10px 24px #0005,inset 0 1px 0 #ffffff08; }
.action-grid button .icon { color:#dfbd5c; }
.action-grid button small { color:#948a74; }
.action-grid .trade-entry { color:#171107; background:linear-gradient(145deg,#f0d079,#a8781d); box-shadow:0 14px 30px #d2aa4230,inset 0 1px 0 #fff9d1; }
.trade-entry small { color:#59420f!important; }
.trade-entry b { border-top-color:#4f390f55; }
.refund-entry { grid-column:1/3; min-height:58px; }
.refund-entry span { flex:1; }
.refund-entry:after { content:"申请"; padding:6px 10px; color:#1b1407; background:linear-gradient(120deg,#f2d77f,#b48526); border-radius:999px; font-size:9px; font-weight:900; }

.section-title h2 { color:#f6e8c0; }
.section-title span { color:#cfae50; }
.data-table,.filter-panel,.order-card,.message-card,.balance-grid div,.menu-list,.round-summary>div,.trade-panel,.article-card,.form-card,.record-list,.hall-card { color:#f5e8c6; background:#14110c; border-color:#3a3121; }
.table-head { color:#e5c86e; background:#211a0e; }
.table-head,.table-row { border-bottom-color:#30291d; }
.table-row span { color:#a69b84; }
.table-row strong { color:#e2bd57; }
.filter-panel button,.choice-grid button,.amount-row button { color:#a99e87; background:#211c13; }
.filter-panel button.selected,.choice-grid button.selected { color:#171107; border-color:#e1bd58; background:linear-gradient(135deg,#f1d17c,#af7f22); }
.order-card p span,.order-card time,.message-card p,.message-card time { color:#978d78; }
.win { color:#e4c66d; background:#2d2412; }
.loss { color:#e18769; background:#2c1711; }
.mail-badge { color:#e2bd57; background:#2a2111; }
.message-line { background:#4a3b20; }
.bottom-nav { background:#110e09ee; border-color:#4b3b1d; box-shadow:0 14px 38px #000b; }
.bottom-nav button { color:#8f856f; }
.bottom-nav button.active { color:#171107; background:linear-gradient(145deg,#f0d176,#ad7d20); box-shadow:inset 0 1px 0 #fff5c5,0 5px 16px #d1a43f33; }

.profile-hero { color:#f7e8bf; background:linear-gradient(135deg,#080706,#1b1408 62%,#594015 130%); border:1px solid #6b5222; }
.profile-hero span { color:#dfbd5c; }
.profile-hero p { color:#a99d84; }
.avatar { color:#1b1407; background:linear-gradient(135deg,#f5dea0,#c4932b); }
.profile-hero button { color:#e0c36a; background:#d8b85a16; }
.balance-grid span { color:#9c927e; }
.balance-grid b { color:#e2bd57; }
.dual-actions button { color:#171107; background:linear-gradient(145deg,#eccb6d,#a9791e); box-shadow:inset 0 1px 0 #fff5c4; }
.dual-actions .icon { color:#4d360d; }
.menu-list button { color:#eee1be; background:#14110c; border-bottom-color:#30291d; }
.menu-list button>.icon:first-child,.menu-list button>.icon:last-child { color:#d7b655; }
.logout { color:#dca07d; background:#1d110c; border-color:#583021; }

.wallet-strip { background:#14110c; border-color:#3a3121; }
.wallet-strip div { border-right-color:#3a3121; }
.wallet-strip div:first-child { color:#f5e6b9; background:linear-gradient(145deg,#090806,#2c210e); }
.wallet-strip span,.wallet-strip div:first-child span { color:#958a73; }
.wallet-strip div:first-child b { color:#e5c15f; }
.currency-chip { color:#e4c568; background:#201a0e; border-color:#5d4820; }
.hall-card:before { background:linear-gradient(#f1d274,#9d711f); }
.hall-card small,.hall-card em b { color:#d9b858; }
.hall-card p { color:#9f947e; }
.hall-card em { color:#b6aa90; background:#211c13; border:1px solid #3b3120; }
.hall-card>.icon { color:#d6b659; }

.round-summary p,.round-summary span { color:#9b907b; }
.round-summary p strong { color:#f3e6c3; }
.round-bar { color:#f7e9c1; background:linear-gradient(100deg,#0b0906,#3a2a0c); border:1px solid #574119; }
.trade-title { color:#e9d49a; }
.amount-row label { border-color:#40351f; background:#0f0d09; }
.amount-row span { color:#8f856f; }
.amount-row input { color:#f5e9c8; }
.primary-btn { color:#1a1306; background:linear-gradient(105deg,#f2d57d,#ad7d20); box-shadow:0 10px 22px #d2a64130,inset 0 1px 0 #fff7cf; }
.sheet-mask { background:#000c; }
.sheet { color:#f5e9c9; background:#15110b; border-top:1px solid #5e4820; }
.sheet-tag,.cyan-text { color:#e0bd58!important; }
.sheet-close { color:#d8b85a; background:#251e12; }
.confirm-row { border-top-color:#3a3020; }
.success-state>div { color:#1b1407; background:linear-gradient(145deg,#f1d37a,#aa791f); }

.article-card p,.form-card>p { color:#a99d84; }
.detail-box { color:#e8d9b3; background:#211b11; }
.form-visual { color:#f5e6ba; background:linear-gradient(120deg,#090806,#39290c); border:1px solid #5e461b; }
.form-visual .icon { color:#ebcb6b; background:#d8b85a14; }
.form-card input,.form-card textarea { width:100%; padding:14px; color:#f4e8c8; border:1px solid #41351f; border-radius:13px; outline:0; resize:vertical; background:#0e0c08; }
.form-card input:focus,.form-card textarea:focus { border-color:#d1aa48; box-shadow:0 0 0 3px #d7b45518; }
.quick-money button { color:#e4c261; background:#241c0d; border-color:#5a451e; }
.inline-success { color:#efd175; background:#2a2111; }
.record-list article { border-bottom-color:#30291d; }
.record-dot { background:#dcb958; }
.cyan-text { color:#e0bd58!important; }

@media (min-width:700px){body:before,body:after{color:#9f8036}}

.html-toast { position:fixed; z-index:100; left:50%; bottom:94px; transform:translateX(-50%); width:max-content; max-width:calc(100% - 40px); padding:11px 17px; color:#171107; background:linear-gradient(120deg,#f2d77f,#b48526); border:1px solid #f7e3a6; border-radius:999px; box-shadow:0 12px 30px #0009; font-size:12px; font-weight:900; }
.text-link { padding:0; color:#f0dfb2; border:0; background:transparent; }
.sheet-copy { margin:-8px 0 18px; color:#a99d84; font-size:12px; }
.bank-card { position:relative; display:flex; flex-direction:column; min-height:190px; padding:23px; color:#191207; background:linear-gradient(145deg,#f4dda0,#c1922f 58%,#7d5717); border:1px solid #f5dfa1; border-radius:24px; box-shadow:0 18px 35px #0008; overflow:hidden; }
.bank-card:after { content:"DF"; position:absolute; right:-5px; bottom:-35px; color:#24190317; font-size:120px; font-weight:950; letter-spacing:-14px; }
.bank-card span { font-size:9px; font-weight:900; letter-spacing:2px; }
.bank-card b { margin-top:20px; font-size:16px; }
.bank-card strong { margin-top:25px; font-size:20px; letter-spacing:2px; }
.bank-card small { margin-top:auto; font-weight:800; }
.bank-form { margin-top:12px; }
.form-result:empty { display:none; }

.auth-screen { position:relative; display:flex; flex-direction:column; justify-content:center; min-height:100vh; padding:34px 18px 26px; overflow:hidden; background:radial-gradient(circle at 86% 8%,#584016 0,transparent 28%),radial-gradient(circle at -15% 55%,#33250e 0,transparent 35%),#080705; }
.auth-glow { position:absolute; top:8%; right:-110px; width:280px; height:280px; border:1px solid #d7b45538; border-radius:50%; box-shadow:0 0 90px #d0a43a18,inset 0 0 70px #d0a43a0b; }
.auth-glow:after { content:""; position:absolute; inset:48px; border:1px dashed #d7b45544; border-radius:50%; }
.auth-brand { position:relative; z-index:1; margin:0 8px 24px; }
.auth-logo { display:grid; place-items:center; width:54px; height:54px; color:#191207; background:linear-gradient(145deg,#f4dfa1,#a77d20); border:1px solid #fff0b9; border-radius:18px; box-shadow:0 12px 28px #c89f3838; font-size:17px; font-weight:950; }
.auth-brand p { margin:15px 0 6px; color:#d3b353; font-size:9px; font-weight:900; letter-spacing:3px; }
.auth-brand h1 { max-width:350px; margin:0 0 7px; color:#f8ebc8; font-size:27px; line-height:1.15; letter-spacing:-1px; }
.auth-brand span { color:#857a65; font-size:8px; font-weight:800; letter-spacing:1.6px; }
.auth-card { position:relative; z-index:1; padding:18px; background:linear-gradient(145deg,#17130d,#0e0c08); border:1px solid #4d3c1d; border-radius:25px; box-shadow:0 26px 60px #000a,inset 0 1px 0 #ffffff0a; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:5px; background:#090806; border:1px solid #302717; border-radius:14px; }
.auth-tabs button { padding:10px; color:#887e69; border:0; border-radius:10px; background:transparent; font-size:12px; font-weight:900; }
.auth-tabs button.active { color:#181106; background:linear-gradient(135deg,#f2d77f,#ae7d20); box-shadow:inset 0 1px 0 #fff4bf; }
.auth-heading { margin:20px 2px 16px; }
.auth-heading>span { color:#d1af50; font-size:8px; font-weight:900; letter-spacing:2px; }
.auth-heading h2 { margin:5px 0 4px; color:#f6e8c2; font-size:21px; }
.auth-heading p { margin:0; color:#8e846f; font-size:10px; }
.auth-card form>label { display:flex; flex-direction:column; gap:7px; margin:12px 0; color:#e9d7aa; font-size:11px; font-weight:800; }
.auth-card input { width:100%; padding:13px 14px; color:#f4e8c8; border:1px solid #40341f; border-radius:12px; outline:0; background:#0b0a07; }
.auth-card input:focus { border-color:#d1aa48; box-shadow:0 0 0 3px #d7b45516; }
.password-field { position:relative; }
.password-field input { padding-right:48px; }
.password-field button { position:absolute; top:50%; right:7px; transform:translateY(-50%); width:36px; height:36px; color:#d9b858; border:0; border-radius:10px; background:#251d0e; }
.auth-options { display:flex; align-items:center; justify-content:space-between; margin:10px 1px 14px; }
.auth-options .remember,.agree-row { display:flex!important; flex-direction:row!important; align-items:center; gap:7px!important; margin:0!important; color:#998e78!important; font-size:10px!important; font-weight:600!important; }
.remember input,.agree-row input { width:15px; height:15px; accent-color:#d5ad49; }
.auth-options>button { padding:4px; color:#d9b858; border:0; background:transparent; font-size:10px; }
.agree-row { margin:12px 0!important; line-height:1.5; }
.auth-submit { margin-top:5px; }
.auth-error { margin-top:12px; padding:10px; color:#e69b7e; background:#29140e; border:1px solid #5b2f20; border-radius:11px; text-align:center; font-size:11px; font-weight:800; }
.auth-footer { position:relative; z-index:1; margin:20px 0 0; color:#6e6554; text-align:center; font-size:8px; letter-spacing:1.4px; }
@media (max-height:760px){.auth-screen{justify-content:flex-start;padding-top:22px}.auth-brand{margin-bottom:16px}.auth-brand h1{font-size:23px}.auth-card{padding:14px}.auth-heading{margin:14px 2px 10px}.auth-card form>label{margin:9px 0}}

/* Word revision: education-refund banner, senior-friendly numbers and payment binding */
.refund-hero{min-height:238px;padding:0;isolation:isolate}
.refund-hero>img{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover}
.refund-hero .hero-shade{position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#06070bf2 0%,#09090bd1 36%,#09090b33 72%,#09090b4d 100%)}
.refund-hero .hero-copy{max-width:72%;padding:24px 18px}
.refund-hero .hero-copy h2{max-width:250px;margin:14px 0 9px;font-size:27px;line-height:1.12}
.refund-hero .hero-copy p{max-width:220px;color:#efe0b8;font-size:12px;line-height:1.55}
.refund-hero .hero-metric{right:15px;bottom:15px;padding:10px 12px;background:#080706bd;border:1px solid #cfa84266;border-radius:13px;backdrop-filter:blur(8px)}
.notice span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wallet-strip b,.balance-grid b,.round-summary>div:first-child>b{font-variant-numeric:tabular-nums}
.wallet-strip b{font-size:16px}
.hall-list{display:grid;gap:10px}
.hall-card strong{font-size:22px}
.hall-card p{font-size:12px;line-height:1.45}
.hall-card em{font-size:10px}
.hall-card em b{font-size:15px;font-variant-numeric:tabular-nums}
.hall-card em b{min-width:54px;text-align:center;transition:color .2s ease,transform .2s ease}
.hall-card em b.counter-change{color:#fff1a9;transform:scale(1.06)}
.bright-mode .hall-card em b.counter-change{color:#0d62cc}
.countdown{display:inline-block;padding:4px 7px;color:#191106!important;background:linear-gradient(135deg,#f2d77f,#b88425);border-radius:7px;font-size:15px!important;font-variant-numeric:tabular-nums}
.profit-text{color:#36d59f!important}
.loss-text{color:#ff755f!important}
.order-filters>div:first-child{grid-template-columns:repeat(auto-fit,minmax(48px,1fr))}
.order-filters>div:last-child{grid-template-columns:repeat(4,1fr)}
.order-filters button{padding:9px 2px;font-size:9px}
.order-card{align-items:stretch}
.order-card>div{min-width:0}
.order-card p{display:flex;align-items:center;gap:8px}
.order-card p span{width:58px;flex:0 0 auto}
.order-card time{display:block;margin-top:6px;font-size:10px}
.result-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:86px;margin:-14px -14px -14px 0;padding:13px 10px;border-left:1px solid currentColor;border-radius:0 17px 17px 0;font-size:18px;font-variant-numeric:tabular-nums}
.result-badge small{margin-bottom:8px;font-size:11px}
.result-badge.win{color:#35d49e;background:#0d2c23}
.result-badge.loss{color:#ff765f;background:#301613}
.result-badge.pending{color:#f1ce6f;background:#2b2413}
.copy-btn{margin-left:auto;padding:3px 7px;color:#e1be60;border:1px solid #5a4824;border-radius:6px;background:#211b10;font-size:9px}
.order-card[hidden]{display:none}
.profile-hero h2{max-width:270px;font-size:17px;line-height:1.35}
.notice-copy{font-size:15px;line-height:1.75}
.bank-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:12px;padding:5px;border:1px solid #463820;border-radius:14px;background:#110e09}
.bank-tabs button{position:relative;padding:11px 4px;color:#a89c82;border:0;border-radius:10px;background:transparent;font-size:11px;font-weight:900}
.bank-tabs button.selected{color:#181106;background:linear-gradient(135deg,#f2d77f,#ae7d20)}
.bank-bound-dot{position:absolute;top:6px;right:8px;width:6px;height:6px;border-radius:50%;background:#35d49e}
.bank-tabs button.selected .bank-bound-dot{background:#145c38}
.withdraw-pick-label{margin:0 0 8px;color:#c4b48a;font-size:12px;font-weight:800}
.withdraw-bound{display:flex;flex-direction:column;gap:4px;margin:0 0 16px;padding:12px 14px;border:1px solid #d1aa48;border-radius:14px;background:#211b10}
.withdraw-bound span{color:#d9b858;font-size:10px;font-weight:900;letter-spacing:1px}
.withdraw-bound b{font-size:16px}
.withdraw-bound small{color:#92866f;font-size:11px}
.withdraw-edit{display:block;margin:4px 0 12px}
.withdraw-empty-note{margin:0 0 14px;color:#a99d84;font-size:12px}
.withdraw-screen .bank-form{margin-top:4px;padding:0;border:0;background:transparent;box-shadow:none}
.withdraw-banks{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.withdraw-bank{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding:12px 14px;color:#f1dfb1;border:1px solid #463820;border-radius:14px;background:#110e09;text-align:left}
.withdraw-bank.selected{border-color:#d1aa48;background:#211b10;box-shadow:0 0 0 2px #d7b45533}
.withdraw-bank span{color:#d9b858;font-size:10px;font-weight:900;letter-spacing:1px}
.withdraw-bank b{font-size:15px}
.withdraw-bank small{color:#92866f;font-size:11px}
.withdraw-empty{padding:8px 0 16px}
.withdraw-empty p{margin:0 0 12px;color:#a99d84}
.qr-upload{position:relative;cursor:pointer}
.qr-upload>input{position:absolute;width:1px;height:1px;opacity:0}
.qr-upload>span{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:210px;padding:20px;border:1px dashed #a8812d;border-radius:15px;background:#100d08 center/contain no-repeat;text-align:center}
.qr-upload .icon{margin-bottom:12px;color:#d9b858;font-size:32px}
.qr-upload b{color:#f1dfb1;font-size:14px}
.qr-upload small{margin-top:7px;color:#92866f;font-size:10px}
.qr-upload .has-image{justify-content:flex-end;text-shadow:0 1px 4px #000;background-color:#0a0906}
.qr-upload .has-image b,.qr-upload .has-image small{padding:4px 8px;color:#fff;background:#000b;border-radius:7px}

/* Optional high-contrast light palette for older users */
body.bright-mode{color:#172036;background:#f6f0df;font-size:17px}
.bright-mode .app-shell{background:#f8f3e7;box-shadow:0 0 60px #6d552322}
.bright-mode .app-header{background:#fffdf7f2;border-bottom-color:#d5c397}
.bright-mode .app-header h1,.bright-mode .section-title h2{color:#172036}
.bright-mode .eyebrow{color:#8e650f}
.bright-mode .lang-btn,.bright-mode .round-btn{color:#172036;background:#f5ead0;border-color:#cdb678}
.bright-mode .notice{color:#5f4100;background:#fff3c9;border-color:#cfab4c}
.bright-mode .action-grid button:not(.trade-entry){color:#172036;background:#fff;border-color:#d9cca9;box-shadow:0 8px 20px #5c492317}
.bright-mode .action-grid button small{color:#625b4d}
.bright-mode .data-table,.bright-mode .filter-panel,.bright-mode .order-card,.bright-mode .message-card,.bright-mode .balance-grid div,.bright-mode .menu-list,.bright-mode .round-summary>div,.bright-mode .trade-panel,.bright-mode .article-card,.bright-mode .form-card,.bright-mode .record-list,.bright-mode .hall-card{color:#172036;background:#fff;border-color:#d6cab0}
.bright-mode .table-head{color:#523b07;background:#f5e6bd}
.bright-mode .table-head,.bright-mode .table-row{border-bottom-color:#ddd1b9}
.bright-mode .table-row span,.bright-mode .order-card p span,.bright-mode .order-card time,.bright-mode .message-card p,.bright-mode .message-card time{color:#596477}
.bright-mode .table-row strong{color:#0d62cc}
.bright-mode .filter-panel button,.bright-mode .choice-grid button,.bright-mode .amount-row button{color:#26334b;background:#f2eee5;border-color:#cfc2a5}
.bright-mode .bottom-nav{background:#fffdf7ed;border-color:#d0bd8d;box-shadow:0 12px 30px #4f3d1929}
.bright-mode .bottom-nav button{color:#5e6879}
.bright-mode .profile-hero{color:#fff;background:linear-gradient(135deg,#18233b,#32466d 62%,#9b711e 140%)}
.bright-mode .balance-grid span,.bright-mode .round-summary p,.bright-mode .round-summary span,.bright-mode .hall-card p{color:#526078}
.bright-mode .menu-list button{color:#172036;background:#fff;border-bottom-color:#ddd2ba}
.bright-mode .wallet-strip{background:#fff;border-color:#d8cab0}
.bright-mode .wallet-strip div{border-right-color:#d8cab0}
.bright-mode .wallet-strip div:first-child{color:#fff;background:#172036}
.bright-mode .hall-card em{color:#28364e;background:#f0f3f7;border-color:#d2dae5}
.bright-mode .round-summary p strong{color:#172036}
.bright-mode .round-bar{color:#fff;background:#172036;border-color:#172036}
.bright-mode .amount-row label{border-color:#cfc2a5;background:#fff}
.bright-mode .amount-row input{color:#172036}
.bright-mode .form-card input,.bright-mode .form-card textarea{color:#172036;background:#fffefb;border-color:#cfc2a5}
.bright-mode .article-card p,.bright-mode .form-card>p{color:#4c586d}
.bright-mode .detail-box{color:#172036;background:#f2eee5}
.bright-mode .record-list article{border-bottom-color:#ddd2ba}
.bright-mode .bank-tabs{background:#fff;border-color:#d1c09a}
.bright-mode .bank-tabs button{color:#394760}
.bright-mode .withdraw-pick-label{color:#8e650f}
.bright-mode .withdraw-bound{color:#172036;background:#fff8e6;border-color:#c9a227}
.bright-mode .withdraw-bound span{color:#8e650f}
.bright-mode .withdraw-bound small{color:#596477}
.bright-mode .withdraw-empty-note{color:#4c586d}
.bright-mode .withdraw-bank{color:#172036;background:#fff;border-color:#d1c09a}
.bright-mode .withdraw-bank.selected{border-color:#c9a227;background:#fff8e6}
.bright-mode .withdraw-bank span{color:#8e650f}
.bright-mode .withdraw-bank small{color:#596477}
.bright-mode .qr-upload>span{background-color:#faf7ef}
.bright-mode .qr-upload b{color:#172036}
.bright-mode .auth-screen{background:radial-gradient(circle at 86% 8%,#e7ca7d 0,transparent 28%),#f8f3e7}
.bright-mode .auth-brand h1{color:#172036}
.bright-mode .auth-brand span{color:#665f50}
.bright-mode .auth-card{background:#fff;border-color:#d5c397;box-shadow:0 20px 50px #71591f24}
.bright-mode .auth-heading h2,.bright-mode .auth-card form>label{color:#172036}
.bright-mode .auth-card input{color:#172036;background:#fffefb;border-color:#cdbf9e}
.bright-mode .auth-footer{color:#6b6558}

@media(max-width:390px){.refund-hero .hero-copy{max-width:78%}.refund-hero .hero-copy h2{font-size:24px}.order-filters button{font-size:8px}.result-badge{min-width:76px}.wallet-strip b{font-size:14px}}

/* Persistent font-size controls */
body{--ui-scale:1}
.app-shell{zoom:var(--ui-scale)}
body[data-font-level="0"] .app-shell{width:min(100%,520px);min-height:100vh}
body[data-font-level="1"] .app-shell{width:min(100%,520px);min-height:100vh}
body[data-font-level="2"] .app-shell{width:min(89.286%,464.29px);min-height:89.286vh}
.header-tools{display:flex;align-items:center;gap:4px}
.header-tools button{min-width:32px;height:34px;padding:0 7px;color:#e8d394;border:1px solid #3b3020;border-radius:9px;background:#1c1810;font-size:10px;font-weight:900}
.header-tools button:disabled{cursor:not-allowed;opacity:.35}
.header-tools span{min-width:25px;color:#c9b77f;text-align:center;font-size:8px;font-weight:800}
.header-tools .theme-toggle{min-width:39px}
.auth-tools{position:absolute;z-index:4;top:14px;right:14px;padding:4px;border:1px solid #4d3c1d;border-radius:12px;background:#0b0907cc;backdrop-filter:blur(10px)}
.bright-mode .header-tools button{color:#172036;background:#f5ead0;border-color:#cdb678}
.bright-mode .header-tools span{color:#5f4a16}
.bright-mode .auth-tools{background:#fffdf1e8;border-color:#cdb678}
@media(max-width:390px){.app-header{grid-template-columns:38px minmax(82px,1fr) auto;gap:6px;padding-left:10px;padding-right:8px}.header-tools{gap:2px}.header-tools button{min-width:29px;padding:0 5px}.header-tools .theme-toggle{min-width:34px}.header-tools span{display:none}}

/* Fixed gold logo shared by login and registration */
.auth-brand{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:14px;margin:38px 8px 20px}
.auth-brand>.auth-logo{width:58px;height:58px;border-radius:19px;color:#1b1306;background:linear-gradient(145deg,#fff0b1 0%,#e0b84e 46%,#916312 100%);border:1px solid #ffe9a1;box-shadow:0 14px 32px #c89f384a,inset 0 1px 0 #fff8d2;font-size:22px;text-shadow:0 1px #fff2a8}
.auth-brand-copy{min-width:0}
.auth-brand-copy p{margin:0 0 6px}
.auth-brand-copy h1{margin-bottom:7px}
@media(max-height:760px){.auth-brand{margin-top:34px;margin-bottom:14px}.auth-brand>.auth-logo{width:52px;height:52px}.auth-brand{grid-template-columns:52px minmax(0,1fr)}}

/* Structured trading summary */
.round-summary{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:stretch;gap:10px}
.round-summary>div{min-width:0;padding:15px}
.round-primary{display:flex;flex-direction:column;justify-content:center;gap:17px;background:linear-gradient(145deg,#17130d,#0d0b08)!important}
.round-summary .round-number,.round-summary .round-timer{margin:0}
.round-primary span{display:block;margin-bottom:7px;color:#c4aa62;font-size:13px;font-weight:900;letter-spacing:.4px}
.round-number strong{display:block;color:#f6e8c3!important;font-size:18px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
.round-timer .countdown{display:inline-block;padding:7px 10px;font-size:21px!important;line-height:1.1;letter-spacing:.5px}
.round-account{display:flex;flex-direction:column}
.round-account .text-link{display:flex;justify-content:flex-end;width:100%;margin-bottom:8px;font-size:11px}
.summary-metrics{display:grid;gap:0}
.round-summary .summary-metrics p{display:flex;flex-direction:column;gap:4px;margin:0;padding:8px 0;border-top:1px solid #30291d}
.summary-metrics span{font-size:11px;font-weight:700}
.summary-metrics strong{color:#f3e6c3;font-size:15px;font-variant-numeric:tabular-nums}
.summary-metrics .account-balance{padding-bottom:0}
.summary-metrics .account-balance strong{color:#e5c15f;font-size:19px}
.bright-mode .round-primary{background:linear-gradient(145deg,#fff,#f6efdc)!important}
.bright-mode .round-number strong,.bright-mode .summary-metrics strong{color:#172036!important}
.bright-mode .round-summary .summary-metrics p{border-top-color:#ddd1b9}
.bright-mode .summary-metrics .account-balance strong{color:#946900!important}
@media(max-width:370px){.round-summary{grid-template-columns:1fr}.round-primary{display:grid;grid-template-columns:1fr 1fr;gap:12px}.round-account .text-link{justify-content:flex-start}.summary-metrics{grid-template-columns:repeat(3,1fr);gap:8px}.round-summary .summary-metrics p{padding:8px 0 0}.summary-metrics .account-balance strong{font-size:16px}}

/* Mobile single-screen trading workspace */
body[data-page="market"]{overflow:hidden;overscroll-behavior:none}
body[data-page="market"] .app-shell{height:var(--scaled-viewport-height,100vh);min-height:0;padding-bottom:0;overflow:hidden}
.market-screen{display:grid;grid-template-rows:auto auto minmax(92px,1fr) auto;gap:8px;height:calc(var(--scaled-viewport-height,100vh) - 68px);padding:9px 12px max(10px,env(safe-area-inset-bottom));overflow:hidden}
.market-screen .round-summary{gap:8px}
.market-screen .round-summary>div{padding:11px 12px;border-radius:14px}
.market-screen .round-primary{gap:9px}
.market-screen .round-primary span{margin-bottom:4px;font-size:11px}
.market-screen .round-number strong{font-size:16px}
.market-screen .round-timer .countdown{padding:5px 8px;font-size:18px!important}
.market-screen .round-account .text-link{margin-bottom:3px;font-size:10px}
.market-screen .round-summary .summary-metrics p{gap:2px;padding:5px 0}
.market-screen .summary-metrics span{font-size:9px}
.market-screen .summary-metrics strong{font-size:13px}
.market-screen .summary-metrics .account-balance strong{font-size:16px}
.market-screen .round-bar{min-height:36px;margin:0;padding:8px 10px;border-radius:11px}
.market-live-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.market-live-panel .section-title{flex:0 0 auto;margin:0 2px 6px}
.market-live-panel .section-title h2{font-size:14px}
.market-live-panel .data-table{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border-radius:14px}
.market-live-panel .table-head{position:sticky;z-index:2;top:0;min-height:31px}
.market-live-panel .table-row{min-height:31px}
.market-live-panel .table-head,.market-live-panel .table-row{padding:0 11px;font-size:9px}
.market-live-panel .table-row{will-change:transform}
.market-live-panel .data-table.feed-advance .table-row{transform:translateY(-31px);transition:transform .42s cubic-bezier(.45,0,.2,1)}
.market-screen .trade-panel{margin:0;padding:10px 11px;border-radius:16px;box-shadow:0 -10px 28px #0004}
.market-screen .trade-title{font-size:10px}
.market-screen .choice-grid{gap:6px;margin-top:7px}
.market-screen .choice-grid button{padding:7px 2px;border-radius:9px}
.market-screen .choice-grid small{font-size:8px}
.market-screen .amount-row{grid-template-columns:38px 1fr 38px;gap:6px;margin:7px 0}
.market-screen .amount-row label{padding:5px 10px;border-radius:9px}
.market-screen .amount-row button{border-radius:9px;font-size:18px}
.market-screen .primary-btn{padding:11px;border-radius:11px}
@media(max-width:370px){.market-screen .round-summary{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}.market-screen .round-primary{display:flex;gap:7px}.market-screen .round-account .text-link{justify-content:flex-end}.market-screen .summary-metrics{display:grid;grid-template-columns:1fr;gap:0}.market-screen .round-summary .summary-metrics p{padding:4px 0}.market-screen .summary-metrics .account-balance strong{font-size:15px}}
@media(max-height:650px){.market-screen{grid-template-rows:auto auto minmax(68px,1fr) auto;gap:6px;padding-top:7px}.market-screen .round-summary>div{padding:8px 10px}.market-screen .round-primary{gap:6px}.market-screen .round-primary span{font-size:9px}.market-screen .round-number strong{font-size:14px}.market-screen .round-timer .countdown{font-size:16px!important}.market-screen .round-summary .summary-metrics p{padding:3px 0}.market-screen .trade-panel{padding:8px 10px}.market-screen .choice-grid{margin-top:5px}.market-screen .choice-grid button{padding:5px 2px}.market-screen .amount-row{margin:5px 0}.market-screen .primary-btn{padding:9px}}

/* High-contrast, immediate betting feedback */
.trade-title span{display:flex;align-items:center;gap:5px;color:#9f947e}
.trade-title [data-choice-label]{display:inline-grid;place-items:center;min-width:23px;padding:3px 7px;color:#171107;background:#e5c15f;border-radius:999px;font-size:10px}
.choice-grid button{position:relative;overflow:hidden;transition:transform .16s ease,background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}
.choice-grid button:active{transform:scale(.92)}
.choice-grid button.selected{transform:translateY(-2px);font-weight:950}
.choice-grid button.selected:after{content:"✓";position:absolute;top:3px;right:5px;font-size:8px;font-weight:950}
.choice-grid .choice-高.selected{color:#fff!important;border-color:#ff846f!important;background:linear-gradient(145deg,#ff765d,#ba2e23)!important;box-shadow:0 7px 16px #e54f3f55,inset 0 1px 0 #ffc2b7}
.choice-grid .choice-低.selected{color:#fff!important;border-color:#60bdff!important;background:linear-gradient(145deg,#3daeff,#1764c1)!important;box-shadow:0 7px 16px #258ee055,inset 0 1px 0 #bfe4ff}
.choice-grid .choice-多.selected{color:#1d1405!important;border-color:#ffe38b!important;background:linear-gradient(145deg,#ffe58b,#c18a1d)!important;box-shadow:0 7px 16px #d3a23355,inset 0 1px 0 #fff8d2}
.choice-grid .choice-空.selected{color:#fff!important;border-color:#b7a5ff!important;background:linear-gradient(145deg,#9f82ff,#5a3ec0)!important;box-shadow:0 7px 16px #7358df55,inset 0 1px 0 #ddd2ff}
.trade-buy-button{transition:transform .16s ease,background .25s ease,box-shadow .25s ease}
.trade-buy-button:active{transform:scale(.98)}
.trade-buy-button[data-choice-state="高"]{color:#fff;background:linear-gradient(105deg,#ff735b,#b82e25);box-shadow:0 9px 22px #de4b3d45}
.trade-buy-button[data-choice-state="低"]{color:#fff;background:linear-gradient(105deg,#43b1ff,#175fba);box-shadow:0 9px 22px #2687d845}
.trade-buy-button[data-choice-state="多"]{color:#1b1305;background:linear-gradient(105deg,#ffe188,#b9821b);box-shadow:0 9px 22px #d2a64145}
.trade-buy-button[data-choice-state="空"]{color:#fff;background:linear-gradient(105deg,#9d80ff,#5639ba);box-shadow:0 9px 22px #7255d745}
.trade-panel.selection-flash{animation:tradePanelFlash .38s ease}
.amount-row button.amount-tap{animation:amountTap .26s ease}
@keyframes tradePanelFlash{0%{box-shadow:0 0 0 0 #e6c45e55}55%{box-shadow:0 0 0 5px #e6c45e1f}100%{box-shadow:0 -10px 28px #0004}}
@keyframes amountTap{50%{transform:scale(.86);color:#171107;background:#e5c15f}}
@media(prefers-reduced-motion:reduce){.choice-grid button,.trade-buy-button{transition:none}.trade-panel.selection-flash,.amount-row button.amount-tap{animation:none}}

/* Single-screen home with an auto-rotating market feed */
body[data-page="home"]{overflow:hidden;overscroll-behavior:none}
body[data-page="home"] .app-shell{height:var(--scaled-viewport-height,100vh);min-height:0;padding-bottom:0;overflow:hidden}
.home-screen{display:grid;grid-template-rows:minmax(102px,128px) auto auto minmax(64px,1fr);gap:8px;height:calc(var(--scaled-viewport-height,100vh) - 150px);padding:9px 12px 6px;overflow:hidden}
.home-screen .refund-hero{min-height:0;height:100%;border-radius:18px}
.home-screen .refund-hero .hero-copy{left:15px;bottom:13px;max-width:78%;padding:0}
.home-screen .refund-hero .hero-copy .pill{padding:4px 7px;font-size:7px}
.home-screen .refund-hero .hero-copy h2{margin:7px 0 4px;font-size:20px;line-height:1.08}
.home-screen .refund-hero .hero-copy p{font-size:9px;line-height:1.35}
.home-screen .notice{min-height:36px;margin:0;padding:8px 10px;border-radius:11px;font-size:9px}
.home-screen .notice em{font-size:7px}
.home-screen .action-grid{grid-template-columns:1fr 1fr;grid-template-rows:repeat(2,78px);gap:9px}
.home-screen .action-grid button{min-height:0;padding:12px 14px;border-radius:16px;gap:10px}
.home-screen .action-grid button b{font-size:15px}
.home-screen .action-grid button small{font-size:11px}
.home-screen .home-entry{display:grid;grid-template-columns:44px minmax(0,1fr) 14px;align-items:center;gap:10px;padding:12px 12px;text-align:left}
.home-screen .home-entry>.entry-logo{display:grid;place-items:center;width:44px;height:44px;color:#e7c667;background:#2a2111;border:1px solid #5b4720;border-radius:13px;font-size:12px;font-weight:950;line-height:1}
.home-screen .home-entry>.entry-logo .entry-mark{width:24px;height:24px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-screen .home-entry>.entry-logo .icon{font-size:20px}
.home-screen .home-entry>.entry-copy{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.home-screen .home-entry>.entry-copy b,.home-screen .home-entry>.entry-copy small{display:block;overflow:hidden;width:100%;text-overflow:ellipsis;white-space:nowrap}
.home-screen .home-entry>.icon:last-child{color:#bda75f;font-size:20px}
.home-screen .entry-trade{color:#1b1406;background:linear-gradient(145deg,#f2d47d,#aa771a);border-color:#efd982;box-shadow:0 8px 18px #c89b3440,inset 0 1px 0 #fff5c5}
.home-screen .entry-trade>.entry-logo{color:#fff3bb;background:#312005;border-color:#694b11}
.home-screen .entry-trade>.entry-copy small{color:#59400c}
.home-screen .entry-trade>.icon:last-child{color:#3f2b07}
.home-screen .home-entry:active{transform:scale(.97)}
.bright-mode .home-screen .home-entry{color:#172036;background:#fff;border-color:#d9cca9}
.bright-mode .home-screen .entry-trade{color:#1b1406;background:linear-gradient(145deg,#f2d47d,#c18c27);border-color:#c99f43}
.bright-mode .home-screen .entry-trade>.entry-copy small{color:#59400c}
.bright-mode .home-screen .home-entry>.entry-logo{color:#6c4b06;background:#fff4ce;border-color:#d4b866}
.home-screen .trade-entry{grid-row:auto;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-items:center;padding:8px 11px}
.home-screen .trade-entry>span{font-size:14px;line-height:1}
.home-screen .trade-entry>small{grid-column:1;grid-row:2}
.home-screen .trade-entry>b{grid-column:2;grid-row:1/3;width:auto;margin:0;padding:0;border:0;font-size:0}
.home-screen .trade-entry>b .icon{font-size:18px}
.home-screen .refund-entry{grid-column:auto;min-height:0}
.home-screen .refund-entry:after{display:none}
.home-live-panel{--feed-row-height:29px;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.home-live-panel .section-title{flex:0 0 auto;margin:0 2px 5px}
.home-live-panel .section-title h2{font-size:14px}
.home-live-panel .data-table{flex:1;min-height:0;overflow:hidden;border-radius:13px}
.home-live-panel .table-head{position:sticky;z-index:2;top:0;min-height:29px}
.home-live-panel .table-row{min-height:29px;will-change:transform}
.home-live-panel .table-head,.home-live-panel .table-row{padding:0 10px;font-size:9px}
.live-carousel-panel .data-table.feed-advance .table-row{transform:translateY(calc(var(--feed-row-height,31px) * -1));transition:transform .42s cubic-bezier(.45,0,.2,1)}
@media(max-height:650px){.home-screen{grid-template-rows:minmax(86px,104px) auto auto minmax(52px,1fr);gap:6px}.home-screen .action-grid{grid-template-rows:repeat(2,68px);gap:7px}.home-screen .refund-hero .hero-copy h2{font-size:17px}.home-screen .notice{min-height:31px;padding:6px 9px}.home-screen .action-grid button{padding:10px 11px}.home-screen .home-entry{grid-template-columns:40px minmax(0,1fr) 12px;padding:10px 11px}.home-screen .home-entry>.entry-logo{width:40px;height:40px;font-size:11px}.home-live-panel{--feed-row-height:27px}.home-live-panel .table-head,.home-live-panel .table-row{min-height:27px}}

/* Deposit and withdrawal status filters */
.record-status-filter{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:10px;padding:5px;border:1px solid #44371f;border-radius:14px;background:#110e09}
.record-status-filter button{padding:9px 3px;color:#a89c82;border:0;border-radius:9px;background:transparent;font-size:10px;font-weight:900}
.record-status-filter button.selected{color:#181106;background:linear-gradient(135deg,#f2d77f,#ae7d20);box-shadow:inset 0 1px 0 #fff4bf}
.status-record-list article[hidden]{display:none}
.record-result{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.record-status{padding:3px 7px;border-radius:999px;font-size:8px;font-style:normal;font-weight:900;white-space:nowrap}
.record-status.status-pending{color:#f1ce6f;background:#2b2413;border:1px solid #5c4922}
.record-status.status-paid{color:#54dcad;background:#102c24;border:1px solid #245b49}
.record-status.status-rejected{color:#ff8a72;background:#301713;border:1px solid #673328}
.record-dot.status-pending{background:#e0bb56;box-shadow:0 0 0 3px #e0bb5618}
.record-dot.status-paid{background:#40c994;box-shadow:0 0 0 3px #40c99418}
.record-dot.status-rejected{background:#ee6c56;box-shadow:0 0 0 3px #ee6c5618}
.bright-mode .record-status-filter{background:#fff;border-color:#d1c09a}
.bright-mode .record-status-filter button{color:#394760}
.bright-mode .record-status.status-pending{color:#785300;background:#fff3c9;border-color:#d4b45a}
.bright-mode .record-status.status-paid{color:#08704f;background:#e3f8ef;border-color:#8cd2b8}
.bright-mode .record-status.status-rejected{color:#a63729;background:#fff0ec;border-color:#e7a398}

/* Refresh control integrated into the crest of the decorative half-ring */
.profile-hero .avatar+div{min-width:0;padding-right:40px}
.profile-hero:after{border-color:#d8b85a38}
.profile-hero [data-refresh]{right:56px;top:auto;bottom:50px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #d8b85a78;border-radius:50%;background:linear-gradient(145deg,#211a0d,#0e0b07);color:#e9c764;box-shadow:inset 0 1px 0 #f8dc8040,0 3px 8px #0004;transition:transform .2s ease,background .2s ease}
.profile-hero [data-refresh] .icon{display:block;font-family:Arial,"PingFang SC",sans-serif;font-size:21px;font-weight:800;line-height:1;transform:none;text-shadow:none}
.profile-hero [data-refresh]:active{transform:scale(.92);background:#2a2111}
.profile-hero [data-refresh].refresh-spin .icon{animation:profileRefreshSpin .55s ease}
@keyframes profileRefreshSpin{to{transform:rotate(360deg)}}
.bright-mode .profile-hero:after{border-color:#ffe89a4d}
.bright-mode .profile-hero [data-refresh]{color:#ffe99b;background:linear-gradient(145deg,#3b4b70,#1d2945);border-color:#ffe89a80;box-shadow:inset 0 1px 0 #fff5bf40,0 3px 8px #0003}

/* Reflow rules for the enlarged-text setting */
body[data-font-level="2"] .app-header{grid-template-columns:38px minmax(0,1fr) auto;gap:5px;height:auto;min-height:68px;padding:8px 9px}
body[data-font-level="2"] .app-header>div{min-width:0}
body[data-font-level="2"] .app-header h1{font-size:17px;line-height:1.2;overflow-wrap:anywhere}
body[data-font-level="2"] .header-tools{gap:2px}
body[data-font-level="2"] .header-tools span{display:none}
body[data-font-level="2"] .header-tools button{min-width:28px;height:32px;padding:0 4px;font-size:9px}
body[data-font-level="2"] .header-tools .theme-toggle{min-width:32px}
body[data-font-level="2"] .screen{padding-left:12px;padding-right:12px}
body[data-font-level="2"] .notice{align-items:flex-start;line-height:1.45}
body[data-font-level="2"] .notice span{white-space:normal}
body[data-font-level="2"] .action-grid{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);grid-template-rows:repeat(2,minmax(68px,auto))}
body[data-font-level="2"] .action-grid button{min-width:0;padding:10px 12px}
body[data-font-level="2"] .action-grid button>span{min-width:0}
body[data-font-level="2"] .action-grid button b,body[data-font-level="2"] .action-grid button small{line-height:1.35;white-space:normal;overflow-wrap:anywhere}
body[data-font-level="2"] .table-head,body[data-font-level="2"] .table-row{grid-template-columns:minmax(0,.85fr) minmax(0,.95fr) minmax(0,1.2fr);min-height:43px;padding:5px 10px;line-height:1.35}
body[data-font-level="2"] .table-head>*,body[data-font-level="2"] .table-row>*{min-width:0;overflow-wrap:anywhere}
body[data-font-level="2"] .profile-hero{min-height:112px;padding:20px;align-items:center}
body[data-font-level="2"] .profile-hero .avatar{flex:0 0 auto;width:52px;height:52px;border-radius:17px}
body[data-font-level="2"] .profile-hero .avatar+div{min-width:0;padding-right:0}
body[data-font-level="2"] .profile-hero span{display:block;max-width:220px;line-height:1.45;letter-spacing:.8px}
body[data-font-level="2"] .profile-hero h2{max-width:210px;margin-top:6px;font-size:16px;overflow-wrap:anywhere}
body[data-font-level="2"] .profile-hero p{max-width:210px;line-height:1.4}
body[data-font-level="2"] .profile-hero [data-refresh]{right:56px;top:auto;bottom:50px;width:32px;height:32px}
body[data-font-level="2"] .balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-font-level="2"] .balance-grid div{min-width:0;padding:13px}
body[data-font-level="2"] .balance-grid b{font-size:19px;line-height:1.2;overflow-wrap:anywhere}
body[data-font-level="2"] .dual-actions button{min-width:0;padding:13px 8px}
body[data-font-level="2"] .menu-list button{grid-template-columns:26px minmax(0,1fr) 14px;min-height:50px;padding:13px 12px}
body[data-font-level="2"] .menu-list b{line-height:1.35;overflow-wrap:anywhere}
body[data-font-level="2"] .order-card{gap:10px;padding:14px}
body[data-font-level="2"] .order-card>div{min-width:0}
body[data-font-level="2"] .order-card>strong{flex:0 0 68px;width:68px;height:68px}
body[data-font-level="2"] .message-card{grid-template-columns:40px minmax(0,1fr) 12px}
body[data-font-level="2"] .hall-card>div{min-width:0}
body[data-font-level="2"] .hall-card em{flex:0 0 68px;width:68px;height:68px}
body[data-font-level="2"] .wallet-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-font-level="2"] .wallet-strip div{min-width:0;padding:13px 9px}
body[data-font-level="2"] .wallet-strip b{font-size:15px;line-height:1.25;overflow-wrap:anywhere}
body[data-font-level="2"] .round-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}
body[data-font-level="2"] .round-summary>div{min-width:0;padding:11px}
body[data-font-level="2"] .round-number strong{font-size:16px;white-space:normal;overflow-wrap:anywhere}
body[data-font-level="2"] .round-timer .countdown{font-size:18px!important}
body[data-font-level="2"] .choice-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
body[data-font-level="2"] .choice-grid button{min-width:0}
body[data-font-level="2"] .amount-row{grid-template-columns:38px minmax(0,1fr) 38px}
body[data-font-level="2"] .amount-row label{min-width:0;padding-left:9px;padding-right:9px}
body[data-font-level="2"] .amount-row input{min-width:0;width:62px}
body[data-font-level="2"] .record-list article{grid-template-columns:10px minmax(0,1fr) auto;gap:8px;padding:14px 12px}
body[data-font-level="2"] .record-list article>div{min-width:0}
body[data-font-level="2"] .bottom-nav button{min-width:0;padding-left:1px;padding-right:1px;line-height:1.2}
body[data-font-level="2"] .bottom-nav button>span:last-child{max-width:100%;overflow-wrap:anywhere;text-align:center}
body[data-font-level="2"][data-page="home"] .home-screen{grid-template-rows:minmax(102px,126px) auto auto minmax(58px,1fr);gap:6px;padding:7px 10px 5px}
body[data-font-level="2"][data-page="home"] .home-screen .refund-hero .hero-copy{left:16px;right:14px;bottom:12px}
body[data-font-level="2"][data-page="home"] .home-screen .refund-hero .hero-copy h2{font-size:18px}
body[data-font-level="2"][data-page="home"] .home-screen .notice{min-height:34px;padding:6px 9px;align-items:center}
body[data-font-level="2"][data-page="home"] .home-screen .notice span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-font-level="2"][data-page="home"] .home-screen .action-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,74px);gap:8px}
body[data-font-level="2"][data-page="home"] .home-screen .action-grid button{padding:10px 10px}
body[data-font-level="2"][data-page="home"] .home-screen .home-entry{grid-template-columns:40px minmax(0,1fr) 12px;gap:8px}
body[data-font-level="2"][data-page="home"] .home-screen .home-entry>.entry-logo{width:40px;height:40px}
body[data-font-level="2"][data-page="market"] .market-screen{grid-template-rows:auto auto minmax(72px,1fr) auto;gap:6px;padding:7px 10px max(8px,env(safe-area-inset-bottom))}
body[data-font-level="2"][data-page="market"] .market-screen .round-summary{grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:6px}
body[data-font-level="2"][data-page="market"] .market-screen .round-summary>div{padding:8px 9px}
body[data-font-level="2"][data-page="market"] .market-screen .round-primary{gap:6px}
body[data-font-level="2"][data-page="market"] .market-screen .round-primary span{font-size:9px}
body[data-font-level="2"][data-page="market"] .market-screen .round-number strong{font-size:14px;white-space:nowrap}
body[data-font-level="2"][data-page="market"] .market-screen .round-timer .countdown{padding:5px 7px;font-size:16px!important}
body[data-font-level="2"][data-page="market"] .market-screen .trade-panel{padding:8px 9px}
body[data-font-level="2"][data-page="market"] .market-screen .choice-grid{margin-top:5px}
body[data-font-level="2"][data-page="market"] .market-screen .choice-grid button{padding:5px 2px}
body[data-font-level="2"][data-page="market"] .market-screen .amount-row{margin:5px 0}
body[data-font-level="2"][data-page="market"] .market-screen .primary-btn{padding:9px}

/* Shared overflow guards across small, standard and enlarged text modes */
.app-header>div,.hero-copy,.action-grid button>span,.profile-hero .avatar+div,.message-card>span,.order-card>div,.hall-card>div,.record-list article>div{min-width:0}
.app-header h1,.profile-hero h2,.menu-list b,.order-card p,.hall-card p,.record-list b,.record-list time{overflow-wrap:anywhere}
.balance-grid,.dual-actions,.filter-panel>div,.choice-grid,.record-status-filter{grid-auto-columns:minmax(0,1fr)}
.balance-grid>*,.dual-actions>*,.filter-panel button,.choice-grid button,.record-status-filter button{min-width:0}
body[data-font-level="0"] .app-header h1{line-height:1.2}
body[data-font-level="0"] .bottom-nav button>span:last-child{white-space:nowrap}
body[data-font-level="0"] .table-head>*,body[data-font-level="0"] .table-row>*{min-width:0}

/* Balanced proportions for the small-text setting */
body[data-font-level="0"] .app-header{grid-template-columns:42px minmax(0,1fr) auto;gap:9px;height:auto;min-height:68px;padding:9px 14px}
body[data-font-level="0"] .app-header>div{min-width:0}
body[data-font-level="0"] .app-header h1{font-size:16px;overflow-wrap:anywhere}
body[data-font-level="0"] .header-tools button{min-width:32px;height:34px;padding:0 7px;font-size:9px}
body[data-font-level="0"] .header-tools .theme-toggle{min-width:38px}
body[data-font-level="0"] .header-tools span{min-width:25px;font-size:8px}
body[data-font-level="0"] .screen{padding-left:14px;padding-right:14px}
body[data-font-level="0"] .profile-hero{min-height:102px;padding:22px}
body[data-font-level="0"] .profile-hero h2{max-width:290px;font-size:16px}
body[data-font-level="0"] .profile-hero [data-refresh]{right:56px;top:auto;bottom:50px}
body[data-font-level="0"] .balance-grid div{padding:15px}
body[data-font-level="0"] .menu-list button{min-height:48px;padding-top:14px;padding-bottom:14px}
body[data-font-level="0"] .menu-list b{font-size:12px}
body[data-font-level="0"] .table-head,body[data-font-level="0"] .table-row{min-height:39px;font-size:10px;line-height:1.35}
body[data-font-level="0"] .table-head{font-size:9px}
body[data-font-level="0"] .bottom-nav button{font-size:9px;line-height:1.2}
body[data-font-level="0"] .nav-icon{font-size:18px}
body[data-font-level="0"] .order-card p,body[data-font-level="0"] .message-card p,body[data-font-level="0"] .hall-card p{line-height:1.45}
body[data-font-level="0"] .form-card label,body[data-font-level="0"] .article-card p{line-height:1.65}
body[data-font-level="0"][data-page="home"] .home-screen{grid-template-rows:minmax(102px,128px) auto auto minmax(64px,1fr)}
body[data-font-level="0"][data-page="home"] .home-screen .action-grid{grid-template-rows:repeat(2,76px)}
body[data-font-level="0"][data-page="market"] .market-screen .round-summary>div{padding:10px 12px}
body[data-font-level="0"] .eyebrow,body[data-font-level="0"] .pill,body[data-font-level="0"] .hero-metric small{font-size:8px}
body[data-font-level="0"] .hero-copy h2{font-size:25px}
body[data-font-level="0"] .hero-copy p{font-size:10px}
body[data-font-level="0"] .notice{font-size:11px}
body[data-font-level="0"] .action-grid button b{font-size:12px}
body[data-font-level="0"] .action-grid button small{font-size:9px}
body[data-font-level="0"] .section-title h2{font-size:16px}
body[data-font-level="0"] .profile-hero span{font-size:8px}
body[data-font-level="0"] .profile-hero p{font-size:10px}
body[data-font-level="0"] .balance-grid span{font-size:10px}
body[data-font-level="0"] .balance-grid b{font-size:20px}
body[data-font-level="0"] .order-card p,body[data-font-level="0"] .message-card p{font-size:9px}
body[data-font-level="0"] .order-card time,body[data-font-level="0"] .message-card time{font-size:9px}
body[data-font-level="0"] .message-card strong{font-size:12px}
body[data-font-level="0"] .hall-card strong{font-size:18px}
body[data-font-level="0"] .hall-card p{font-size:10px}
body[data-font-level="0"] .form-card label,body[data-font-level="0"] .article-card p{font-size:11px}

/* Lock the app horizontally in every font mode; keep normal vertical scrolling */
html,body{width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}
body{touch-action:pan-y}
.app-shell{overscroll-behavior-x:none}
body[data-font-level="0"]{overflow-x:hidden}
body[data-font-level="0"] .bottom-nav{max-width:calc(100% - 22px)}

/* Unified interactive feedback for order filters */
.order-filters button{position:relative;border:1px solid transparent;outline:0;transition:transform .16s ease,color .2s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease}
.order-filters button:not(.selected){color:#aa9d82;background:#201b12;border-color:#3a3020}
.order-filters button.selected,.bright-mode .order-filters button.selected{color:#181106!important;background:linear-gradient(135deg,#f5dc8d 0%,#d7aa42 52%,#a8751c 100%)!important;border-color:#f4da87!important;box-shadow:inset 0 1px 0 #fff5c7,0 5px 14px #d3a13938!important;font-weight:900}
.order-filters button:active{transform:scale(.95)}
.order-filters button.filter-pop{animation:orderFilterPop .34s ease}
.bright-mode .order-filters button:not(.selected){color:#4f596c;background:#f3eee3;border-color:#d5c6a7}
.order-empty{margin:24px 0;padding:18px;color:#a99a7b;border:1px dashed #4b3b20;border-radius:15px;background:#13100b;text-align:center;font-size:11px}
@keyframes orderFilterPop{0%{transform:scale(.94)}55%{transform:scale(1.04)}100%{transform:scale(1)}}

/* Prevent iOS and mobile in-app browsers from zooming the page on input focus */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(max-width:768px),(hover:none) and (pointer:coarse){
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),textarea,select{font-size:16px!important;line-height:1.35}
  .auth-card input,.form-card input,.form-card textarea,.amount-row input{font-size:16px!important}
}
