/* Continuous artwork, shared spacing, and live HTML content for all four pages. */
.mobile-app.royal-feature-view {
 --royal-ink:#132c43; --royal-muted:#657585; --royal-gold:#b78a43;
 width:100%; max-width:480px; min-height:100dvh; color:var(--royal-ink);
 background:linear-gradient(180deg,#02132b99,#02132bde 55%,#02132bed),url("assets/01_background/mobile-royal-hall-v2.webp") center top / cover no-repeat;
 padding-bottom:calc(var(--royal-dock-height) + env(safe-area-inset-bottom,0px));
}
.mobile-app.royal-feature-view > :is(.site-footer,.bottom-nav) { display:none !important; }
.mobile-app.royal-feature-view #route-page { padding:0; margin:0; min-height:0; animation:none; }
.royal-page { position:relative; width:100%; min-height:calc(100dvh - var(--royal-dock-height) - env(safe-area-inset-bottom,0px)); padding:28px 20px 20px; }
.royal-page-content { display:grid; gap:24px; min-width:0; }
.royal-page img { display:block; max-width:100%; height:auto; }
.royal-page svg { width:24px; height:24px; flex:none; }
.royal-page a { color:inherit; text-decoration:none; }
.royal-page :is(button,a,summary):focus-visible { outline:2px solid #d8b46c; outline-offset:4px; }
.royal-page button { font-family:inherit; }
.royal-page :is(button,a):active { transform:scale(.98); }
.royal-page-head { display:flex; align-items:center; gap:16px; min-height:80px; margin-bottom:24px; padding-bottom:22px; border-bottom:1px solid #c5a46e40; color:#f5dfb3; }
.royal-page-head > div { flex:1; min-width:0; }
.royal-page-kicker { display:block; color:#ccb38a; font-size:9px; font-weight:500; letter-spacing:.16em; line-height:1.6; }
.royal-page-head h1 { margin:7px 0 0; font-family:"Noto Serif TC","Microsoft JhengHei",serif; font-size:28px; font-weight:700; letter-spacing:.12em; line-height:1.2; outline:none; }
.royal-page .royal-page-back { display:grid; place-items:center; flex:none; width:44px; height:44px; padding:0; border:1px solid #c8a76a88; border-radius:50%; color:#f5dfb3; background:linear-gradient(145deg,#1c3f5c99,#071c32cc); box-shadow:inset 0 1px #fff2cc22; }
.royal-head-jewel { width:10px; height:10px; margin:0 6px; flex:none; transform:rotate(45deg); border:1px solid #d3b77b; background:linear-gradient(135deg,#dec49b,#94703a); box-shadow:0 0 16px #dabb6844; }
.royal-page-panel { position:relative; width:100%; margin:0; padding:24px 22px; border:1px solid #e4c790; border-radius:20px; background:linear-gradient(135deg,#fffefa,#f0f5f7 70%,#e5edf3); box-shadow:0 16px 40px #0005,inset 0 0 0 4px #fff8; }
.royal-panel-body { min-width:0; }
.royal-panel-heading { margin-bottom:20px; }
.royal-panel-heading > span { display:block; font-size:9px; font-weight:600; letter-spacing:.16em; line-height:1.6; color:#94733e; }
.royal-panel-heading h2 { margin:5px 0 0; font-size:21px; font-weight:800; line-height:1.4; letter-spacing:.04em; color:var(--royal-ink); }
.royal-page-footer { display:flex; flex-direction:column; align-items:center; gap:18px; width:100%; margin:0; padding:8px 4px 16px; color:#b9c9d8; text-align:center; }
.royal-footer-brand { display:flex; align-items:center; justify-content:center; gap:14px; width:min(100%,260px); color:#d6bc8c; }
.royal-footer-brand::before,.royal-footer-brand::after { content:""; flex:1; height:1px; background:linear-gradient(90deg,transparent,#b9996255); }
.royal-footer-brand::after { transform:rotate(180deg); }
.royal-footer-brand span { font-size:10px; font-weight:500; letter-spacing:.22em; white-space:nowrap; }
.royal-page-footer > p { margin:0; color:#c4cdd5; font-size:12px; letter-spacing:.15em; }
.royal-empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:230px; padding:30px 4px; text-align:center; }
.royal-empty-icon { display:grid; place-items:center; width:74px; height:74px; margin-bottom:20px; border:1px solid #c7ad7944; border-radius:50%; color:#b28a46; background:radial-gradient(circle,#f3e8d3,#fbfaf500); }
.royal-empty-icon svg { width:32px; height:32px; }
.royal-empty-state strong { font-size:16px; font-weight:600; color:#314b62; }
.royal-empty-state p { margin:10px 0 0; font-size:13px; font-weight:400; color:var(--royal-muted); line-height:1.7; }
.royal-announcement-list { display:grid; gap:20px; }
.royal-announcement-list article { padding-top:20px; border-top:1px solid #cbb58c55; }
.royal-announcement-meta { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; color:#8a713e; font-size:11px; }
.royal-announcement-meta > span { padding:3px 8px; border-radius:5px; background:#e9dbbe; }
.royal-announcement-list h3 { margin:10px 0; font-size:17px; line-height:1.6; overflow-wrap:anywhere; }
.royal-announcement-list p { margin:0; color:#53677a; font-size:14px; font-weight:400; line-height:1.9; overflow-wrap:anywhere; }
.royal-page .royal-music { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:8px 22px; border:1px solid #b9955966; border-radius:24px; color:#efdbb4; background:#082238b3; font-size:13px; font-weight:500; }
.royal-music svg { width:18px; height:18px; }
.royal-music:disabled { opacity:.5; }
.royal-policy-links { display:flex; justify-content:center; flex-wrap:wrap; gap:0 16px; color:#c0ceda; }
.royal-policy-links a { display:flex; align-items:center; min-height:36px; font-size:11px; font-weight:400; }
.royal-service-intro { margin:-10px 0 22px; font-size:13px; font-weight:400; color:var(--royal-muted); line-height:1.8; }
.royal-service-grid { display:grid; gap:12px; }
.royal-page .royal-service-card { display:flex; align-items:center; width:100%; min-width:0; min-height:90px; gap:12px; padding:14px 12px; border:1px solid #d5c5a788; border-radius:14px; background:#fff9; color:var(--royal-ink); text-align:left; box-shadow:0 3px 10px #142c3c05; }
.royal-page .royal-service-icon { flex:none; width:52px; height:52px; object-fit:contain; }
.royal-service-copy { flex:1; min-width:0; }
.royal-service-copy strong { display:block; font-size:16px; font-weight:700; line-height:1.5; }
.royal-service-copy small { display:block; margin-top:4px; font-size:11px; font-weight:400; color:#71808c; line-height:1.6; }
.royal-service-status { display:flex; align-items:center; gap:2px; flex:none; font-size:11px; font-weight:500; color:#946d2f; }
.royal-service-status svg { width:14px; height:14px; }
.royal-service-card.is-pending .royal-service-status { padding:4px 7px; border-radius:6px; background:#e8edf0; color:#667989; }
.royal-service-hours { display:flex; align-items:center; gap:14px; margin-top:22px; padding:18px 2px 0; border-top:1px solid #cbb58c55; }
.royal-clock { position:relative; flex:none; width:30px; height:30px; border:1px solid #b5965f; border-radius:50%; }
.royal-clock::before { content:""; position:absolute; left:14px; top:6px; height:8px; border-left:1px solid #b5965f; }
.royal-clock::after { content:""; position:absolute; left:14px; top:14px; width:6px; border-top:1px solid #b5965f; transform:rotate(25deg); transform-origin:left; }
.royal-service-hours div { min-width:0; }
.royal-service-hours div > span { font-size:11px; color:#75828d; }
.royal-service-hours strong { display:block; margin:3px 0 5px; color:#725d37; font-size:14px; font-weight:600; }
.royal-service-hours p { margin:0; font-size:11px; font-weight:400; color:#71808c; line-height:1.7; }
.royal-faq { margin-top:24px; }
.royal-faq details { border-top:1px solid #cbb58c55; padding:10px 0; }
.royal-faq summary { min-height:44px; padding:10px 0; font-size:14px; cursor:pointer; }
.royal-faq p { margin:5px 0 10px; font-size:13px; font-weight:400; line-height:1.8; color:#617487; overflow-wrap:anywhere; }
.royal-profile-body { width:100%; display:grid; gap:18px; }
.royal-account-card { position:relative; overflow:hidden; width:100%; padding:24px; border:1px solid #cfaf7288; border-radius:22px; color:#edf4f8; background:radial-gradient(ellipse at 100% 0,#52859a44,transparent 65%),linear-gradient(135deg,#163f58f2,#09243af5 70%); box-shadow:0 18px 35px #0004,inset 0 0 0 4px #ffffff05; }
.royal-account-card::after { content:""; position:absolute; pointer-events:none; width:210px; height:210px; right:-95px; top:-115px; border:1px solid #c6a66c33; border-radius:50%; box-shadow:0 0 0 18px #b89b6007,0 0 0 19px #c6a66c22,0 0 0 40px #b89b6005,0 0 0 41px #c6a66c11; }
.royal-account-identity { display:flex; align-items:center; gap:14px; }
.royal-page .royal-account-avatar { width:62px; height:62px; object-fit:contain; flex:none; }
.royal-account-identity > div { flex:1; min-width:0; }
.royal-account-caption { display:block; font-size:8px; font-weight:500; letter-spacing:.12em; color:#beab86; }
.royal-account-name { display:block; margin:5px 0; color:#f5f8fb; font-size:20px; font-weight:600; line-height:1.3; overflow-wrap:anywhere; }
.royal-account-role { display:block; color:#adbdc9; font-size:12px; font-weight:400; }
.royal-page .royal-account-edit { display:grid; place-items:center; flex:none; width:40px; height:40px; padding:0; border:1px solid #d2b37844; border-radius:12px; background:#06203555; color:#e0c694; }
.royal-account-edit svg { width:19px; height:19px; }
.royal-account-wallet { position:relative; margin-top:24px; padding-top:20px; border-top:1px solid #d5bc882b; }
.royal-account-balance-label { display:flex; align-items:center; gap:8px; color:#afc2cf; font-size:12px; font-weight:500; letter-spacing:.06em; }
.royal-page .royal-account-eye { display:grid; place-items:center; width:38px; height:32px; padding:0; border:0; border-radius:8px; background:none; color:#aabdcb; }
.royal-account-eye svg { width:18px; height:18px; }
.royal-account-eye[aria-pressed="true"] { opacity:.5; }
.royal-account-balance { display:block; margin-top:6px; font-family:"Segoe UI",Arial,"Microsoft JhengHei",sans-serif; font-size:clamp(26px,7cqw,34px); font-weight:600; line-height:1.3; letter-spacing:-.02em; color:#f5e4bf; font-variant-numeric:lining-nums tabular-nums; overflow-wrap:anywhere; }
.royal-account-balance.is-compact { font-size:clamp(21px,5.5cqw,27px); }
.royal-account-card.is-balance-hidden .royal-account-balance { display:none; }
.royal-balance-hidden-note { display:block; margin-top:8px; font-size:20px; line-height:1.8; color:#f4d99e; }
.royal-balance-hidden-note[hidden] { display:none; }
.royal-account-card-brand { display:block; margin-top:22px; color:#9aafbd; font-size:9px; letter-spacing:.22em; text-align:right; }
.royal-account-actions { display:grid; gap:12px; }
.royal-account-actions button { display:flex; align-items:center; width:100%; min-height:90px; padding:18px; gap:14px; border:1px solid #d9c399aa; border-radius:16px; background:linear-gradient(130deg,#fffdf7,#edf3f8); color:var(--royal-ink); text-align:left; box-shadow:0 8px 20px #0002; }
.royal-action-icon { display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:12px; color:#a27c3f; background:#eee4cf; }
.royal-action-icon svg { width:23px; height:23px; }
.royal-action-copy { flex:1; min-width:0; }
.royal-action-copy strong { display:block; font-size:16px; font-weight:700; }
.royal-action-copy small { display:block; margin-top:6px; font-size:12px; font-weight:400; color:#70808d; line-height:1.6; }
.royal-account-actions button > svg { width:17px; height:17px; color:#a08047; }
.royal-history-top { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.royal-history-top .royal-panel-heading { min-width:0; }
.royal-provider-filter { width:34%; min-width:100px; margin-bottom:16px; }
.royal-provider-filter select { width:100%; min-height:40px; padding:8px; border:1px solid #c9b38a; border-radius:10px; background:#fff9; color:#354c60; font-family:inherit; font-size:12px; }
.royal-history-mode { display:flex; gap:22px; margin:0 0 20px; border-bottom:1px solid #d3c8b544; font-size:13px; color:#7e8b97; }
.royal-history-mode a { min-height:40px; padding:6px 2px 12px; }
.royal-history-mode [aria-current] { color:#967238; border-bottom:2px solid #b39155; font-weight:700; }
.royal-history-presets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.royal-history-presets button { min-height:40px; padding:8px 4px; border:1px solid #d3c5a9; border-radius:10px; background:#fff8; color:#586c7c; font-size:13px; font-weight:500; }
.royal-history-presets [aria-pressed="true"] { background:linear-gradient(135deg,#234a61,#102d42); border-color:#345469; color:#f7e4bb; box-shadow:0 3px 8px #0b293522; }
.royal-date-settings { margin:12px 0 18px; color:#72828f; font-size:11px; }
.royal-date-settings summary { min-height:40px; padding:12px 0; cursor:pointer; }
.royal-date-inputs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.royal-date-inputs label { display:flex; flex-direction:column; gap:6px; min-width:0; font-size:12px; }
.royal-date-inputs input { width:100%; min-width:0; min-height:44px; padding:8px 5px; border:1px solid #d5c5a3; border-radius:8px; color:#304b60; background:#fff; font-size:13px; }
.royal-date-inputs button { grid-column:1/-1; min-height:42px; border:1px solid #c3a568; border-radius:10px; color:#725a31; background:#f4ead5; font-size:13px; }
.royal-page .history-results { padding:0; margin:0; min-height:0; }
.royal-result-count { margin:0 0 16px; color:#768591; font-size:12px; }
.royal-record-list { display:grid; gap:12px; }
.royal-record-row { position:relative; display:grid; grid-template-columns:46px minmax(0,1fr) minmax(0,1fr) 12px; gap:10px; align-items:center; padding:14px 12px; border:1px solid #d8c9aa99; border-radius:12px; background:#fff9; }
.royal-page .royal-record-thumb { grid-row:1/3; width:46px; height:46px; object-fit:cover; border-radius:8px; border:1px solid #c6ad80; }
.royal-record-name { grid-column:2/4; min-width:0; }
.royal-record-name strong { display:inline; margin-right:8px; font-size:14px; overflow-wrap:anywhere; }
.royal-record-name small { display:inline; color:#81909c; font-size:10px; font-weight:400; }
.royal-record-money { grid-row:2; min-width:0; }
.royal-record-money > span { display:block; color:#81909c; font-size:10px; }
.royal-record-money strong { display:block; margin-top:4px; color:#23465f; font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.royal-row-arrow { grid-column:4; grid-row:1/3; width:7px; height:7px; border-top:1px solid #a58953; border-right:1px solid #a58953; transform:rotate(45deg); }
.royal-record-row > time { grid-column:2/4; color:#87949e; font-size:10px; font-weight:400; }
.royal-bet-detail > summary { list-style:none; cursor:pointer; }
.royal-bet-detail > summary::-webkit-details-marker { display:none; }
.royal-bet-detail[open] .royal-row-arrow { transform:rotate(135deg); }
.royal-bet-detail dl { margin:-8px 0 0; padding:20px 14px 12px; background:#fff7; border:1px solid #d8c9aa99; border-top:0; border-radius:0 0 12px 12px; font-size:12px; }
.royal-bet-detail dl > div { display:flex; justify-content:space-between; gap:12px; margin:8px 0; }
.royal-bet-detail dt { flex:none; color:#748592; }
.royal-bet-detail dd { margin:0; text-align:right; overflow-wrap:anywhere; }
.royal-history-note { margin:16px 0 0; color:#85919c; font-size:11px; font-weight:400; line-height:1.7; }
.royal-page .history-pagination { gap:16px; margin:20px 0 8px; font-size:12px; }
.royal-page .history-pagination button { width:40px; height:40px; border-color:#d3c5a9; border-radius:10px; color:#8c754b; background:#fff8; font-size:22px; }
.royal-page .history-totals > div,.royal-page .history-report-card { border-color:#d8c9aa99; background:#fff8; box-shadow:none; }
.royal-page .history-totals span { font-size:12px; color:#738492; }
.royal-page .history-totals strong { color:#9b793d; font-size:21px; }
.royal-page .history-metric-note { font-size:11px; font-weight:400; }
.royal-page .history-result-heading h2 { font-size:17px; }
.royal-page .history-result-heading > span,.royal-page .history-range { font-size:12px; }
.royal-page .history-report-grid { grid-template-columns:1fr; }
.royal-page .history-report-card { padding:16px; border-radius:12px; }
.royal-page .history-report-card h3 { font-size:15px; }
.royal-page .history-report-card dl > div { font-size:13px; }
.royal-page .history-empty,.royal-page .history-loading { min-height:200px; padding:24px 0; gap:12px; color:#718393; }
.royal-page .history-empty svg { width:48px; height:48px; fill:#f1e7d3; stroke:#b3945d; stroke-width:1.8; margin-bottom:8px; }
.royal-page .history-empty strong { font-size:15px; font-weight:600; color:#314e63; }
.royal-page .history-empty p { font-size:12px; font-weight:400; }
.royal-page .history-back-link { display:inline-block; min-height:40px; margin:0 0 8px; color:#997d46; font-size:13px; }
.royal-login-prompt { padding:44px 4px; text-align:center; }
.royal-login-prompt h3 { font-size:17px; }
.royal-login-prompt p { font-size:13px; font-weight:400; color:#728595; }
.royal-page .primary-button,.royal-page .secondary-button { border-color:#c5ad79; background:linear-gradient(145deg,#234a61,#102d42); color:#f8e2b5; font-size:14px; box-shadow:none; }
.royal-nav .royal-nav-button.active { background:radial-gradient(ellipse at bottom,#c69a3544,transparent 85%); color:#ffe7a0; }
.royal-nav .royal-nav-home:not(.active) { color:#d9e9fc; text-shadow:none; }
@media(hover:hover) {
 .royal-page :is(button,a):hover { color:inherit; transform:none; filter:none; }
 .royal-page :is(.royal-service-card,.royal-account-actions button):hover { border-color:#af8d50; background:#fff; box-shadow:0 5px 18px #122d4115; }
 .royal-page .royal-page-back:hover,.royal-page .royal-music:hover { background:#1b3b51; color:#fff0c9; }
 .royal-page .royal-service-card:hover > img { transform:none; }
}
@media(max-width:380px) {
 .royal-page { padding:22px 14px 16px; }
 .royal-page-head { gap:12px; margin-bottom:20px; }
 .royal-page-kicker { font-size:8px; letter-spacing:.12em; }
 .royal-page-head h1 { font-size:25px; }
 .royal-page-panel { padding:22px 16px; }
 .royal-account-card { padding:22px 18px; }
 .royal-page .royal-account-avatar { width:54px; height:54px; }
 .royal-account-name { font-size:18px; }
 .royal-page .royal-service-card { gap:8px; padding:12px 10px; }
 .royal-page .royal-service-icon { width:44px; height:44px; }
 .royal-service-copy strong { font-size:14px; }
 .royal-service-copy small { font-size:10px; }
 .royal-service-status { font-size:10px; }
 .royal-record-row { gap:8px; padding:12px 8px; }
}
