:root{color-scheme:light;--ink:#152940;--muted:#67778c;--blue:#245ddd;--line:#dde5ef;--paper:#fff;--bg:#f4f7fb}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.65 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif}button,input{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.top{height:82px;border-bottom:1px solid var(--line);background:var(--paper);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1160px)/2))}.brand{font-size:19px;font-weight:750;display:flex;gap:12px;align-items:center}.mark{display:grid;place-items:center;background:var(--blue);color:#fff;width:38px;height:38px;border-radius:11px}#account{display:flex;gap:12px;align-items:center}main{max-width:1208px;margin:auto;padding:0 24px}.intro{padding:46px 0 30px}.eyebrow{color:var(--blue);font-size:11px;letter-spacing:2px;font-weight:750;margin:0 0 10px}h1{font-size:34px;line-height:1.35;letter-spacing:-1px;margin:0 0 12px}h2{font-size:20px;margin:0 0 8px}p{margin:0 0 18px}.intro>p:last-child,.muted{color:var(--muted)}.small{font-size:12px}.panel{border:1px solid var(--line);border-radius:18px;background:var(--paper);padding:28px;box-shadow:0 5px 20px #233f6410}.login-layout{display:grid;grid-template-columns:1.3fr 1fr;gap:60px;max-width:950px;margin:14px auto 50px;align-items:center}.login-info{padding:30px 0}.login-info h2{font-size:29px;margin:24px 0 16px}.badge{display:inline-block;background:#e9f0ff;border:1px solid #ccdcff;color:#2555ae;border-radius:24px;padding:5px 13px;font-size:12px;white-space:nowrap}.steps{padding-left:24px;color:var(--muted)}.steps li{padding:9px 0 9px 5px}.steps li::marker{color:var(--blue);font-weight:700}label{display:block;margin:17px 0 7px;font-size:13px;font-weight:650}input{border:1px solid #cbd6e4;background:#fcfdff;border-radius:9px;padding:11px 13px;width:100%;color:var(--ink)}input:focus,button:focus-visible,a:focus-visible{outline:3px solid #9cbdf5;outline-offset:3px}button{border-radius:9px;padding:10px 17px}.primary{background:var(--blue);color:#fff;font-weight:650;min-height:46px}.primary:hover:not(:disabled){background:#184bc2}.secondary{background:#edf2fa;color:#204a91;border:1px solid #d4deec;margin-top:10px}.plain{background:transparent;color:var(--blue);padding:7px 10px}#login-form .primary{width:100%;margin:24px 0 17px}#message{border:1px solid #eed197;background:#fff7e5;color:#6b4b17;padding:13px 18px;border-radius:10px;margin-bottom:20px;overflow-wrap:anywhere}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:30px}.tabs button{background:transparent;border-radius:0;padding:12px 3px;font-weight:650;color:var(--muted)}.tabs .active{color:var(--blue);border-bottom:3px solid var(--blue)}.store-layout{display:grid;grid-template-columns:minmax(0,1fr) 325px;gap:32px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.section-title h2{margin:0}.section-title>.muted{font-size:11px;letter-spacing:1px}.games{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:30px}.games button{background:#fff;border:1px solid var(--line);color:var(--muted)}.games button.selected{background:#eaf0ff;border-color:var(--blue);color:var(--blue)}.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.product{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;text-align:left;color:var(--ink);min-height:145px;position:relative}.product:hover{border-color:#8dafee}.product.selected{border:2px solid var(--blue);padding:19px;background:#f7faff}.product .product-title{display:block;font-weight:650;line-height:1.65;margin-bottom:15px}.product .price{font-size:23px;font-weight:750;color:var(--blue)}.product .unit{font-size:11px;color:var(--muted);margin-left:6px}.checkout{position:sticky;top:20px;height:fit-content}.checkout h2{font-size:17px;margin:12px 0}.checkout .primary,.checkout .secondary{width:100%}.total{display:flex;justify-content:space-between;align-items:baseline;padding:22px 0 16px;margin-top:8px;border-top:1px solid var(--line)}.total strong{font-size:29px;color:var(--blue)}.checkout>p:last-child{margin:18px 0 0}.history-row{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;border:1px solid var(--line);padding:22px;border-radius:12px;margin-bottom:12px}.history-row p{margin:4px 0}.history-row strong{font-size:17px}.history-row .right{text-align:right;flex-shrink:0}.order-panel{margin:16px 0 22px}.order-panel dl{display:grid;grid-template-columns:100px 1fr;font-size:14px;gap:8px;margin:22px 0}.order-panel dt{color:var(--muted)}.order-panel dd{margin:0;overflow-wrap:anywhere}#pay-form{display:inline-block;margin-right:12px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{color:var(--muted);font-weight:500}th,td{border-bottom:1px solid var(--line);padding:14px 10px}td:first-child,td:nth-child(2){font-family:ui-monospace,Consolas,monospace;white-space:nowrap}footer{text-align:center;color:var(--muted);font-size:12px;margin:65px 0 30px}footer span{font-size:11px;color:#8794a5}.empty{padding:45px;text-align:center;border:1px dashed var(--line);border-radius:13px;color:var(--muted)}@media(max-width:850px){.store-layout{grid-template-columns:1fr}.checkout{position:static}.login-layout{gap:25px;grid-template-columns:1fr 1fr}.login-info h2{font-size:24px}}@media(max-width:580px){.top{height:68px;padding:0 18px}.brand{font-size:16px}.mark{width:32px;height:32px}main{padding:0 18px}.intro{padding:30px 0 20px}h1{font-size:27px}.intro>p:last-child{font-size:13px}.login-layout{display:block;margin-top:0}.login-info{padding:0 0 18px}.login-info h2{display:none}.login-info p,.steps{display:none}.panel{padding:22px}.products{grid-template-columns:1fr}.product{min-height:110px}.history-row{align-items:flex-start;padding:17px;gap:10px}.history-row .right{max-width:110px}.history-row .badge{white-space:normal}#who{font-size:12px;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-panel dl{grid-template-columns:70px 1fr}footer{margin-top:40px}}

/* Keep card credentials/status readable; the table scrolls on narrow screens. */
th,td{white-space:nowrap}
