:root{--d12-ivory:#f4ecd8;--d12-paper:#fff9ed;--d12-green:#174c34;--d12-burgundy:#741f2c;--d12-gold:#b88a38;--d12-ink:#352414;--d12-line:#dbc99f}
.imperial-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body{padding-bottom:calc(134px + env(safe-area-inset-bottom));background:var(--d12-ivory);color:var(--d12-ink)}
.adsense-section{min-height:58px;padding:8px 12px;background:var(--d12-ivory)}
.adsense-frame{min-height:58px;border-width:2px;border-radius:9px;box-shadow:none}
.adsense-placeholder{font-size:12px;font-weight:600}
.d12-wallet-status{margin:9px 0 0;text-align:center;color:#67573c;font:12px/1.4 system-ui,sans-serif}
.holdings-toggle.empire-banner-toggle{display:block;width:100%;margin:13px auto 0;padding:0;border:0;background:transparent;line-height:0;cursor:pointer}
.empire-banner-toggle img{display:block;width:min(100%,640px);height:auto;margin:auto}
.player-level{color:var(--d12-ink)}
.level-heading strong,.level-heading span,.level-content p{color:var(--d12-green)}
.rise-bottom-nav.roman-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#f4ecdff2;border-top:2px solid var(--d12-gold);box-shadow:0 -5px 18px #492d1824;backdrop-filter:blur(8px)}
.rise-bottom-nav.roman-nav .roman-nav-item{display:flex;min-width:0;min-height:48px;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:3px 2px;border:1px solid transparent;border-radius:9px;background:transparent;color:#584325;text-decoration:none;font:700 clamp(8px,2.35vw,11px)/1.15 system-ui,sans-serif;text-align:center;white-space:normal;overflow-wrap:anywhere}
.rise-bottom-nav.roman-nav .roman-nav-item.active{border-color:#cfb46e;background:#fff8e8;color:#5f3518}
.rise-bottom-nav.roman-nav .roman-nav-item:disabled{opacity:.64;cursor:default}
.rise-bottom-nav.roman-nav .nav-symbol,.rise-bottom-nav.roman-nav .nav-symbol img{width:25px;height:25px;object-fit:contain}
.rise-bottom-nav.roman-nav .nav-symbol.nav-icon{flex:none;width:25px;height:25px}
.nav-icon-home{background-position:0 0}.nav-icon-challenges{background-position:33.333% 0}.nav-icon-offers{background-position:66.667% 0}.nav-icon-wheel{background-position:100% 0}
.nav-icon-community{background-position:0 100%}.nav-icon-marketplace{background-position:33.333% 100%}.nav-icon-empire{background-position:66.667% 100%}.nav-icon-wallet{background-position:100% 100%}
.d12-nav-status{position:fixed;z-index:20;left:50%;bottom:calc(142px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 24px);transform:translateX(-50%);margin:0;padding:8px 12px;border:1px solid var(--d12-gold);border-radius:9px;background:#fff9ed;color:#4b3821;font:12px/1.4 system-ui,sans-serif;box-shadow:0 3px 12px #39241130}
.d12-nav-status:empty{display:none}
html[dir="rtl"] body{direction:rtl}
html[dir="rtl"] .language{right:auto;left:16px}
html[dir="rtl"] .roman-nav{direction:rtl}

.empire-page{min-height:100vh;padding:12px 12px calc(150px + env(safe-area-inset-bottom));background:#f7f2e8;color:var(--d12-ink);font-family:Georgia,"Times New Roman",serif}
.empire-shell{max-width:1080px;margin:auto;padding:0 12px 26px;background:#fffdf8;border:1px solid #e6dcc7;border-radius:16px;box-shadow:0 5px 20px #47331912}
.empire-header{display:flex;align-items:center;justify-content:center;min-height:72px;margin:0 -12px 10px;padding:12px 14px;background:linear-gradient(110deg,#fffdf8,#f6eddb);border-bottom:2px solid #c6a45c;border-radius:16px 16px 0 0;text-align:center;color:var(--d12-burgundy)}
.empire-header h1{margin:0;font-size:clamp(21px,5vw,28px);line-height:1.15}
.empire-header .empire-brand{margin:0 0 3px;color:var(--d12-green);font:800 10px/1.2 system-ui,sans-serif;letter-spacing:.16em}
.empire-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0}
.empire-toolbar a,.empire-toolbar button{border:1px solid var(--d12-gold);border-radius:9px;padding:9px 12px;background:#fff9ed;color:var(--d12-green);font:700 13px system-ui,sans-serif;text-decoration:none}
.empire-toolbar select{max-width:125px;border:1px solid var(--d12-gold);border-radius:8px;padding:8px;background:#fff9ed;color:var(--d12-ink)}
.empire-intro{padding:9px 12px;border:1px solid #e1d3b6;border-radius:10px;background:#fffaf0;text-align:center}
.empire-intro p{margin:0;color:#665238;font:12px/1.45 system-ui,sans-serif}
.empire-status{min-height:18px;margin:8px 0;color:#5f4828;font:11px/1.4 system-ui,sans-serif;text-align:center}
.empire-currencies{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0 12px}
.empire-currency{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:7px;min-width:0;padding:8px;border:1px solid #d6c397;border-radius:11px;background:#fffdf8;box-shadow:0 2px 7px #4c381212}
.empire-currency img{grid-row:1/3;width:34px;height:34px;object-fit:contain}
.empire-currency span{min-width:0;color:#533b21;font:700 clamp(9px,2.5vw,12px)/1.15 system-ui,sans-serif;overflow-wrap:anywhere}
.empire-currency strong{color:var(--d12-green);font:800 14px/1.2 system-ui,sans-serif;overflow-wrap:anywhere}
.empire-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:14px 0}
.empire-category-tab{min-height:48px;padding:7px 4px;border:1px solid #b79552;border-radius:9px;background:linear-gradient(#fff9ec,#ead8b2);color:#533b21;font:700 11px/1.2 system-ui,sans-serif;overflow-wrap:anywhere}
.empire-category-tab[aria-selected="true"]{border-color:#702332;background:linear-gradient(#843040,#5d1b29);color:#fff1d0;box-shadow:inset 0 0 0 1px #d0aa5c}
.empire-panel{min-height:150px;padding:11px;border:1px solid #e2d5bd;border-radius:12px;background:#fffdf8}
.empire-panel h3{margin:0 0 10px;color:var(--d12-green);font-size:18px}
.empire-panel-note{color:#6b583b;font:13px/1.5 system-ui,sans-serif}
.empire-assets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.empire-asset{min-width:0;padding:8px 5px;border:1px solid #e6ddcc;border-radius:10px;background:#fff;text-align:center;box-shadow:0 2px 7px #40321b0c}
.empire-asset img{display:block;width:48px;height:48px;object-fit:contain;margin:0 auto 5px;mix-blend-mode:multiply}
.empire-asset-name{display:block;min-height:2.5em;color:#342819;font:700 12px/1.25 system-ui,sans-serif;overflow-wrap:anywhere}
.empire-asset-quantity{display:block;margin-top:5px;color:var(--d12-green);font:800 17px/1.2 system-ui,sans-serif}
.empire-asset-balances{display:block;margin-top:5px;color:#6e5a3a;font:10px/1.45 system-ui,sans-serif;overflow-wrap:anywhere}
.empire-asset-id{display:block;margin-top:4px;color:#80745f;font:10px/1.3 ui-monospace,monospace;overflow-wrap:anywhere}
.empire-preparing{margin:8px 0;padding:15px;border:1px dashed #b79a64;border-radius:9px;background:#fbf3e2;color:#745d36;font:700 13px/1.5 system-ui,sans-serif;text-align:center}
.empire-empty{margin:8px 0;color:#76664c;font:13px/1.5 system-ui,sans-serif;text-align:center}
@media(max-width:430px){.empire-page{padding:7px 5px calc(142px + env(safe-area-inset-bottom))}.empire-shell{padding-inline:8px}.empire-header{min-height:64px;padding:9px}.empire-toolbar{margin:8px 0}.empire-currencies{gap:5px}.empire-currency{grid-template-columns:27px minmax(0,1fr);column-gap:4px;padding:6px 4px}.empire-currency img{width:27px;height:27px}.empire-currency strong{font-size:12px}.empire-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.empire-assets{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.empire-asset{padding:7px 3px}.empire-asset img{width:42px;height:42px}.empire-asset-name{font-size:10px}.empire-asset-quantity{font-size:15px}.empire-category-tab{font-size:12px}}
.empire-bottom-nav{position:fixed;z-index:30;inset-inline:0;bottom:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;max-width:720px;margin:auto;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border:1px solid #d0b873;border-bottom:0;border-radius:14px 14px 0 0;background:#fffdf3f5;box-shadow:0 -4px 16px #3924111c;backdrop-filter:blur(8px)}
.empire-bottom-nav .roman-nav-item{display:flex;min-width:0;min-height:48px;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:3px 2px;border:1px solid transparent;border-radius:8px;background:transparent;color:#584325;text-decoration:none;font:700 clamp(8px,2.25vw,10px)/1.12 system-ui,sans-serif;text-align:center;white-space:normal;overflow-wrap:anywhere}
.empire-bottom-nav .roman-nav-item.active{border-color:#cfb46e;background:#fff8e8;color:#5f3518}
.empire-bottom-nav .roman-nav-item:disabled{opacity:.68}
.empire-bottom-nav .nav-symbol,.empire-bottom-nav .nav-symbol.nav-icon{flex:none;width:28px;height:28px}
@media(min-width:700px){.empire-bottom-nav{bottom:12px;border-bottom:1px solid #d0b873;border-radius:14px}.empire-page{padding-bottom:100px}}

/* Phase 9: high-visibility 3 / 3 / 2 mobile navigation */
body{padding-bottom:calc(410px + env(safe-area-inset-bottom))}
.empire-page{padding-bottom:calc(410px + env(safe-area-inset-bottom))}
.rise-bottom-nav.roman-nav{box-sizing:border-box;position:fixed;left:0;right:0;bottom:0;transform:none;width:100%;max-width:none;margin:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(3,minmax(116px,auto));grid-auto-flow:row;align-content:stretch;gap:3px;padding:6px 6px calc(6px + env(safe-area-inset-bottom));border:0;border-top:1px solid #c8a85f;border-radius:0;background:#fffaf0f5;box-shadow:0 -2px 7px #35241412;backdrop-filter:blur(8px)}
.rise-bottom-nav.roman-nav .roman-nav-item{grid-column:span 2;grid-row:auto;display:flex;min-width:0;min-height:116px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px;border:1px solid transparent;border-radius:8px;font:700 clamp(15px,4vw,16px)/1.2 system-ui,sans-serif;text-align:center;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.rise-bottom-nav.roman-nav .roman-nav-item:nth-child(-n+6){grid-column:span 2}
.rise-bottom-nav.roman-nav .roman-nav-item:nth-child(7),.rise-bottom-nav.roman-nav .roman-nav-item:nth-child(8){grid-column:span 3;min-height:116px}
.rise-bottom-nav.roman-nav .roman-nav-item.active{border-color:#c7a452;background:linear-gradient(#1a704f,#0d5038);color:#fff3d0}
.rise-bottom-nav.roman-nav .nav-symbol.nav-icon{display:flex;flex:none;width:74px;height:64px;align-items:center;justify-content:center;background:none}
.rise-bottom-nav.roman-nav .nav-symbol.nav-icon .roman-nav-art{display:block;width:auto;height:62px;max-width:72px;object-fit:contain;object-position:center}
.d12-nav-status{bottom:calc(420px + env(safe-area-inset-bottom))}
.holdings-toggle.empire-banner-toggle{min-height:0;margin:8px auto 0;padding:0}
.empire-banner-toggle img{width:100%;max-width:none;height:auto}
.empire-intro p{font-size:13px}
.empire-status{font-size:12px}
.empire-category-tab{min-height:52px;font-size:13px;line-height:1.18}
.empire-asset-name{font-size:12px}
.empire-asset-balances{font-size:11px}
.empire-preparing{font-size:14px}
.empire-currency span{font-size:clamp(11px,3vw,13px)}
body:not(.empire-page)::before,body:not(.empire-page)::after{display:none!important;content:none!important;background:none!important}
body:not(.empire-page) .hero{max-width:none;margin:0}
body:not(.empire-page) .adsense-section,body:not(.empire-page) .holdings,body:not(.empire-page) .player-level,body:not(.empire-page) .season-airdrop{margin-inline:8px}
body:not(.empire-page) .holdings{padding-inline:10px}
@media(max-width:380px){
  .rise-bottom-nav.roman-nav{gap:2px;padding-inline:4px}
  .rise-bottom-nav.roman-nav .roman-nav-item,.rise-bottom-nav.roman-nav .roman-nav-item:nth-child(7),.rise-bottom-nav.roman-nav .roman-nav-item:nth-child(8){min-height:116px;padding-inline:2px;font-size:15px}
  .rise-bottom-nav.roman-nav .nav-symbol.nav-icon{width:70px;height:60px}
  .rise-bottom-nav.roman-nav .nav-symbol.nav-icon .roman-nav-art{height:58px;max-width:68px}
  .empire-category-tab{min-height:56px;padding-inline:2px;font-size:11px;line-height:1.12}
}
@media(max-width:430px){.empire-categories{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.empire-category-tab{min-height:58px;padding-inline:3px;font-size:12px;line-height:1.12}}
@media(max-width:380px){.empire-category-tab{min-height:56px;padding-inline:2px;font-size:11px}}

/* Phase 9: single, content-sized season status; stronger Empire typography */
.player-level{position:relative;z-index:auto;display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:12px;min-width:0;min-height:0;height:auto;margin:14px 8px;padding:13px;border:1px solid #b78632;border-radius:12px;background:linear-gradient(135deg,#fff9eb,#ecd6b0);box-shadow:0 2px 6px #65431e18;box-sizing:border-box;overflow:visible}
.level-emblem{display:grid;place-items:center;flex:none;width:56px;height:56px;min-width:56px;border:3px double #d6a43f;border-radius:50%;font:700 27px/1 Georgia,serif}
.player-level .level-content{display:block;min-width:0;min-height:0;align-self:center}
.player-level .level-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 10px;min-width:0;font-size:16px;line-height:1.25}
.player-level .level-heading strong{min-width:0;font-size:16px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.player-level .level-heading span{font-size:14px;font-weight:700;line-height:1.25;white-space:normal}
.player-level .level-track{display:block;width:100%;height:14px;min-height:14px;margin:8px 0 0;border:1px solid #a57a35;border-radius:999px;box-sizing:border-box}
.player-level .level-content>p{display:block;position:static;min-width:0;margin:8px 0 0;font:600 13px/1.35 system-ui,sans-serif;text-align:start;overflow-wrap:anywhere}
.empire-toolbar a,.empire-toolbar select{min-height:44px;padding:10px 13px;font-size:14px}
.empire-intro p,.empire-status{font-size:14px;line-height:1.45}
.empire-category-tab{min-height:62px;padding:8px 4px;font-size:14px;line-height:1.2;overflow-wrap:anywhere}
.empire-asset-name{font-size:14px;line-height:1.25}
.empire-asset-balances,.empire-asset-id{font-size:12px;line-height:1.35}
.empire-currency span{font-size:14px}
.empire-currency strong{font-size:15px}
@media(max-width:430px){.empire-category-tab{min-height:62px;padding-inline:3px;font-size:13px}.empire-asset-name{font-size:13px}}
@media(max-width:380px){.empire-category-tab{min-height:62px;padding-inline:2px;font-size:12px}}

/* Phase 10: final XL navigation overrides; keep this block last. */
.rise-bottom-nav.roman-nav{
  position:fixed;inset-inline:0;bottom:0;z-index:1000;box-sizing:border-box;
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(3,minmax(146px,auto));
  gap:4px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));
  width:100%;min-height:0;background:#fff8e8;border-top:1px solid #c7a452;
}
.rise-bottom-nav.roman-nav .roman-nav-item,
.rise-bottom-nav.roman-nav .roman-nav-item:nth-child(7),
.rise-bottom-nav.roman-nav .roman-nav-item:nth-child(8){
  box-sizing:border-box;grid-column:span 2;grid-row:auto;align-self:stretch;justify-self:stretch;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  min-width:0;min-height:146px;height:auto;padding:7px 4px;
  border:1px solid #d3b76c;border-radius:10px;background:#fff8e8;color:#581b24;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:18px;font-weight:800;line-height:1.2;
  text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;word-break:normal;
}
.rise-bottom-nav.roman-nav .roman-nav-item:nth-child(7){grid-column:1 / span 3;grid-row:3}
.rise-bottom-nav.roman-nav .roman-nav-item:nth-child(8){grid-column:4 / span 3;grid-row:3}
.rise-bottom-nav.roman-nav .roman-nav-item.active,
.rise-bottom-nav.roman-nav .roman-nav-item[aria-current="page"]{background:#07583e;color:#fff;border-color:#c7a452}
.rise-bottom-nav.roman-nav .roman-nav-item > span[data-roman-label]{font-size:18px;font-weight:800;line-height:1.2;color:inherit;white-space:normal;overflow-wrap:anywhere}
.rise-bottom-nav.roman-nav .nav-symbol.nav-icon{
  display:flex;flex:none;align-items:center;justify-content:center;box-sizing:border-box;
  width:100%;max-width:108px;height:80px;min-height:80px;padding:0;background:transparent;
}
.rise-bottom-nav.roman-nav .nav-symbol.nav-icon .roman-nav-art{
  display:block;flex:none;width:100%;height:80px;max-width:100%;max-height:80px;
  object-fit:contain;object-position:center;aspect-ratio:auto;
}
body:not(.empire-page){padding-bottom:calc(486px + env(safe-area-inset-bottom))}
body.empire-page{padding-bottom:calc(486px + env(safe-area-inset-bottom))}
.d12-nav-status{bottom:calc(492px + env(safe-area-inset-bottom))}
@media(max-width:380px){
  .rise-bottom-nav.roman-nav{gap:3px;padding-inline:4px;padding-top:7px;grid-template-rows:repeat(3,minmax(146px,auto))}
  .rise-bottom-nav.roman-nav .roman-nav-item,
  .rise-bottom-nav.roman-nav .roman-nav-item:nth-child(7),
  .rise-bottom-nav.roman-nav .roman-nav-item:nth-child(8){min-height:146px;height:auto;padding:6px 3px;font-size:18px;line-height:1.2}
  .rise-bottom-nav.roman-nav .nav-symbol.nav-icon{width:100%;max-width:108px;height:80px;min-height:80px}
  .rise-bottom-nav.roman-nav .nav-symbol.nav-icon .roman-nav-art{width:100%;height:80px;max-height:80px;max-width:100%}
}

/* Phase 11: clearer home balances, reserved ad placeholder, and Empire assets. */
body:not(.empire-page) .adsense-section{
  min-height:148px;margin:0 8px 16px;padding:12px 8px 16px;background:#f5ecd8;
}
body:not(.empire-page) .adsense-frame{
  display:flex;min-height:120px;align-items:center;justify-content:center;box-sizing:border-box;
  padding:14px 10px;border:2px solid #b88a38;border-radius:12px;
  background:linear-gradient(135deg,#fff9ec,#f0dfbb);box-shadow:0 2px 6px #6b451d18;overflow:hidden;
}
body:not(.empire-page) .adsense-placeholder{
  display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  color:#76582d;text-align:center;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
}
body:not(.empire-page) .adsense-title{font-size:20px;font-weight:800;line-height:1.2;letter-spacing:.02em;color:#8b672b}
body:not(.empire-page) .adsense-subtitle{font-size:17px;font-weight:700;line-height:1.25;color:#5b4528}
body:not(.empire-page) .adsense-note{font-size:12px;font-weight:500;line-height:1.35;color:#766344}
body:not(.empire-page) .holdings{margin-top:0;padding:12px 9px 20px}
body:not(.empire-page) .holdings .coin-card{
  display:flex;min-width:0;min-height:184px;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:3px;padding:8px 4px 10px;text-align:center;
}
body:not(.empire-page) .holdings .coin-card img.currency-art,
body:not(.empire-page) .holdings .coin-card:not(.points) img.currency-art{
  display:block;flex:none;width:min(100%,76px);height:76px;max-width:76px;margin:0 auto 2px;
  object-fit:contain;object-position:center;filter:drop-shadow(0 2px 2px #62451b25);
}
body:not(.empire-page) .holdings .coin-card h2,
body:not(.empire-page) .holdings .coin-card .rise-points-main-title{
  min-width:0;margin:0;color:inherit;font-size:clamp(16px,4.4vw,18px);font-weight:800;line-height:1.2;
  text-align:center;overflow-wrap:anywhere;
}
body:not(.empire-page) .holdings .coin-card strong{
  min-width:0;margin-top:1px;font-size:clamp(20px,5.4vw,24px);font-weight:800;line-height:1.2;
  font-variant-numeric:tabular-nums;overflow-wrap:anywhere;word-break:break-word;
}
.empire-assets{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.empire-asset{padding:9px 6px}
.empire-asset img{
  display:block;width:96px;height:96px;max-width:100%;margin:0 auto 7px;
  object-fit:contain;object-position:center;mix-blend-mode:normal;
}
.empire-asset-name{min-height:2.5em;font-size:16px;font-weight:700;line-height:1.25;overflow-wrap:anywhere;color:#342819}
.empire-asset-quantity{margin-top:6px;color:#07583e;font-size:20px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums}
.empire-asset-balances{font-size:13px;line-height:1.4}
.empire-asset-id{font-size:11px}
@media(max-width:430px){
  body:not(.empire-page) .adsense-section{min-height:142px;margin:0 6px 16px;padding:10px 6px 14px}
  body:not(.empire-page) .adsense-frame{min-height:118px;padding:12px 8px}
  body:not(.empire-page) .adsense-title{font-size:19px}
  body:not(.empire-page) .adsense-subtitle{font-size:16px}
  body:not(.empire-page) .holdings{padding-inline:7px}
  body:not(.empire-page) .holdings .coin-card{min-height:178px;padding:7px 3px 9px}
  body:not(.empire-page) .holdings .coin-card img.currency-art,
  body:not(.empire-page) .holdings .coin-card:not(.points) img.currency-art{width:min(100%,72px);height:72px;max-width:72px}
  body:not(.empire-page) .holdings .coin-card h2,
  body:not(.empire-page) .holdings .coin-card .rise-points-main-title{font-size:16px}
  body:not(.empire-page) .holdings .coin-card strong{font-size:20px}
  .empire-assets{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .empire-asset{padding:8px 4px}
  .empire-asset img{width:96px;height:96px}
  .empire-asset-name{font-size:16px;line-height:1.25}
  .empire-asset-quantity{font-size:19px}
}

/* Phase 13: shared Roman gold plaques and premium mobile type. */
.roman-gold-plaque{
  border:1px solid #9b712a;border-radius:8px;
  background:linear-gradient(180deg,#fff1c3 0%,#e7c46f 48%,#d6aa4d 100%);
  color:#581b24;font-weight:800;text-align:center;
  text-shadow:0 1px 0 #fff0bf,0 1px 2px #5c351d55;
  box-shadow:inset 0 1px 0 #fff8dd,0 1px 2px #4b32141f;
}
.hero .brand h1.roman-gold-plaque{display:inline-block;max-width:100%;margin:0 auto;padding:3px 12px;font-size:28px;font-weight:900;line-height:1.15;white-space:nowrap}
.empire-header h1.roman-gold-plaque{display:inline-block;margin:0;padding:4px 11px;font-size:28px;font-weight:900;line-height:1.15}
.player-level .level-heading strong.roman-gold-plaque{display:inline-block;max-width:100%;padding:5px 9px;font-size:20px;line-height:1.2}
.holdings .coin-card h2.roman-gold-plaque,
.holdings .coin-card .rise-points-main-title.roman-gold-plaque{display:block;width:100%;min-width:0;margin:0;padding:4px 3px;font-size:clamp(17px,4.5vw,20px);font-weight:900;line-height:1.15;overflow-wrap:anywhere}
.empire-panel h3.roman-gold-plaque,.empire-panel h4.roman-gold-plaque{display:block;width:100%;margin:0 0 10px;padding:6px 9px;font-size:22px;font-weight:900;line-height:1.2}
.empire-panel h4.roman-gold-plaque{margin:12px 0 8px;font-size:20px}
.empire-category-tab.roman-gold-plaque{min-height:66px;padding:8px 5px;font-size:16px;font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.empire-category-tab.roman-gold-plaque[aria-selected="true"]{border-color:#a77a28;background:linear-gradient(180deg,#176d4d,#07583e);color:#fff;text-shadow:0 1px 2px #001c12;box-shadow:inset 0 1px 0 #b3d1aa,0 1px 2px #4b32141f}
.empire-currency .roman-gold-plaque{display:block;min-width:0;padding:4px 5px;font-size:17px;font-weight:900;line-height:1.18;overflow-wrap:anywhere}
.empire-asset-name.roman-gold-plaque{display:block;min-height:0;margin:0;padding:5px 6px;font-size:18px;font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.empire-asset-quantity{margin-top:7px;font-size:24px;font-weight:900;line-height:1.2;color:#07583e}
.empire-asset-balances,.empire-asset-id,.empire-panel-note{font-size:15px;line-height:1.4}
.empire-preparing,.empire-empty,.empire-intro p,.empire-status{font-size:15px;line-height:1.45}
.empire-toolbar a,.empire-toolbar button,.empire-toolbar select{font-size:16px;font-weight:800}
.empire-page .empire-ad-section{min-height:148px;margin:0 0 14px;padding:10px 0 14px;background:#f5ecd8}
.adsense-section .adsense-frame{min-height:120px;padding:13px 9px;border:2px solid #b88a38;border-radius:11px;background:linear-gradient(135deg,#fff9ec,#efdbad);box-shadow:0 2px 6px #6b451d18}
.adsense-placeholder{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#76582d;text-align:center;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.adsense-placeholder[hidden]{display:none}
.adsense-title.roman-gold-plaque{display:inline-block;max-width:100%;padding:4px 12px;font-size:20px;font-weight:900;line-height:1.2}
.adsense-subtitle{font-size:17px;font-weight:800;line-height:1.25;color:#581b24}
.adsense-note{font-size:15px;font-weight:600;line-height:1.35;color:#493017}
.rise-bottom-nav.roman-nav .roman-nav-item.roman-gold-plaque{border-color:#9b712a;background:linear-gradient(180deg,#fff1c3,#e1bb60);color:#581b24;text-shadow:0 1px 0 #fff0bf,0 1px 2px #5c351d55;box-shadow:inset 0 1px 0 #fff8dd,0 1px 2px #4b32141f}
.rise-bottom-nav.roman-nav .roman-nav-item.roman-gold-plaque.active,
.rise-bottom-nav.roman-nav .roman-nav-item.roman-gold-plaque[aria-current="page"]{border-color:#c7a452;background:#07583e;color:#fff;text-shadow:0 1px 2px #001c12;box-shadow:inset 0 1px 0 #b3d1aa,0 1px 2px #4b32141f}
@media(max-width:430px){
 .empire-assets{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .empire-asset{padding:9px 7px}
 .empire-asset img{width:96px;height:96px}
 .empire-asset-name.roman-gold-plaque{font-size:17px}
 .empire-asset-quantity{font-size:22px}
 .empire-category-tab.roman-gold-plaque{min-height:72px;padding:8px 4px;font-size:16px}
 .empire-currency .roman-gold-plaque{font-size:17px}
 .adsense-section .adsense-frame{min-height:120px}
 .empire-page .empire-ad-section{min-height:148px;padding-block:10px 14px}
 .adsense-title.roman-gold-plaque{font-size:19px}
 .adsense-subtitle{font-size:16px}
}
@media(max-width:430px){
  .empire-currency{display:flex;min-width:0;flex-direction:column;align-items:stretch;gap:6px;padding:8px 4px;text-align:center}
  .empire-currency img{width:52px;height:52px;margin:0 auto}
  .empire-currency .roman-gold-plaque{font-size:16px;line-height:1.18}
  .empire-currency strong{font-size:22px;line-height:1.2;overflow-wrap:anywhere}
}
/* Phase 13 mobile fit and minimum readable information size. */
body:not(.empire-page) .holdings{width:auto;margin:0 8px;padding-inline:7px}
.d12-wallet-status,.d12-nav-status{font-size:15px;line-height:1.4}
.player-level .level-heading span:not(strong),.player-level .level-content>p{font-size:15px;line-height:1.4}
.empire-currency strong{font-size:22px;font-weight:900;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body:not(.empire-page) .holdings .coin-card strong{font-size:clamp(22px,5.4vw,26px)}
.empire-header .empire-brand{font-size:15px;font-weight:800}


/* Phase 14 targeted corrections: no RISE Points coin art; larger Empire tabs. */
.empire-page .empire-categories{grid-template-columns:repeat(4,minmax(0,1fr))}
.empire-currency-points{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;text-align:center}
.empire-currency-points .roman-gold-plaque{grid-column:1;align-self:center;width:100%}
.empire-currency-points strong{grid-column:1;text-align:center}
@media(max-width:430px){.empire-currency-points .roman-gold-plaque{width:100%}.empire-currency-points strong{text-align:center}}
.empire-categories .empire-category-tab.roman-gold-plaque{min-height:110px;height:auto;padding:10px 4px;font-size:24px;line-height:1.2;white-space:normal;overflow-wrap:anywhere;word-break:normal}


/* Phase 15: coin visibility and reusable catalog asset presentation. */
.empire-currency:not(.empire-currency-points){grid-template-columns:88px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;min-height:112px;padding:10px}
.empire-currency:not(.empire-currency-points) img{grid-row:1/3;width:88px;height:88px;max-width:100%;object-fit:contain;object-position:center}
.empire-currency:not(.empire-currency-points) .roman-gold-plaque{align-self:end;font-size:18px;line-height:1.2}
.empire-currency:not(.empire-currency-points) strong{align-self:start;font-size:24px;font-weight:900;line-height:1.2;text-align:start}
.rise-asset-card{min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 8px;border:1px solid #e6ddcc;border-radius:10px;background:#fff;text-align:center}
.rise-asset-card .rise-asset-image{display:block;width:min(100px,100%);height:100px;max-width:100%;margin:0 auto;object-fit:contain;object-position:center}
.rise-asset-card.rise-asset-large .rise-asset-image{width:min(140px,100%);height:140px}
.rise-asset-card .rise-asset-name{display:block;width:100%;color:#342819;font-size:18px;font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.rise-asset-card .rise-asset-quantity{display:block;color:#07583e;font-size:24px;font-weight:900;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.holdings .coin-card.points h2.rise-points-main-title{display:block;width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#f6d27d;font-size:clamp(22px,5.4vw,26px);font-weight:900;line-height:1.2;text-align:center;text-shadow:0 1px 3px #00170e;overflow-wrap:anywhere}
@media(max-width:430px){
  .empire-page .empire-currencies{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .empire-page .empire-currency-points{grid-column:1 / -1;min-height:90px}
  .empire-page .empire-currency:not(.empire-currency-points){display:flex;min-height:172px;flex-direction:column;align-items:stretch;gap:8px;padding:10px;text-align:center}
  .empire-page .empire-currency:not(.empire-currency-points) img{flex:none;width:88px;height:88px;max-width:100%;margin:0 auto;object-fit:contain}
  .empire-page .empire-currency:not(.empire-currency-points) .roman-gold-plaque{align-self:stretch;font-size:18px}
  .empire-page .empire-currency:not(.empire-currency-points) strong{align-self:stretch;font-size:24px;text-align:center}
  .rise-asset-card .rise-asset-image{width:min(100px,100%);height:100px}
  .rise-asset-card.rise-asset-large .rise-asset-image{width:min(140px,100%);height:140px}
}

/* Branding pass: wrap public copy at narrow viewport widths. */
.empire-intro p,.empire-status,.d12-wallet-status,.d12-nav-status,.empire-toolbar a,.empire-category-tab,.empire-asset-name,.empire-asset-balances,.empire-asset-id,.adsense-subtitle,.adsense-note{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal}

/* D12 catalog preview: static illustrations remain separate from authenticated holdings. */
.empire-catalog-section{margin:18px 0 12px;padding:14px;border:1px solid #c6a35d;border-radius:14px;background:#fffaf0;box-shadow:0 2px 8px #3c24100d}
.empire-section-heading{margin:14px 0 8px}
.empire-section-heading h2{margin:0 0 6px;font-size:clamp(20px,5vw,26px);line-height:1.2}
.empire-section-heading p{margin:5px 0;color:#49382d;font-size:15px;line-height:1.4}
.empire-catalog-header h2{margin:0 0 8px;font-size:clamp(20px,5vw,26px);line-height:1.2}
.empire-catalog-header p,.empire-catalog-notice{display:block;margin:7px 0;color:#49382d;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.empire-catalog-notice{padding:8px 10px;border-inline-start:3px solid #94732f;background:#f5ecd8;font-weight:700}
.empire-catalog-filter-label{display:block;margin:12px 0 5px;color:#4d2630;font-size:16px;font-weight:800}
.empire-catalog-filter{display:block;width:100%;min-height:44px;padding:8px 10px;border:1px solid #a9813c;border-radius:8px;background:#fff;color:#28221b;font:600 16px/1.25 system-ui,sans-serif}
.empire-catalog-status{min-height:22px;margin:9px 0;color:#5a4632;font-size:14px;font-variant-numeric:tabular-nums}
.empire-catalog-currency-hint{grid-column:1/-1;margin:8px 0;padding:12px;border-inline-start:3px solid #a77b2f;background:#f5ecd8;color:#39231d;font-size:16px;font-weight:700;line-height:1.35}
.empire-catalog-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:minmax(210px,1fr);align-items:stretch;gap:10px;min-width:0}
.empire-catalog-card{box-sizing:border-box;display:flex;min-width:0;min-height:210px;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;padding:10px 8px;border:1px solid #e1d4b8;border-radius:11px;background:#fff;text-align:center;overflow-wrap:break-word}
.empire-catalog-image{display:block;width:min(140px,100%);height:auto;aspect-ratio:1;flex:0 0 auto;object-fit:contain;object-position:center;content-visibility:auto}
.empire-catalog-name{display:block;width:100%;min-width:0;color:#39231d;font-size:16px;font-weight:800;line-height:1.25;overflow-wrap:break-word;word-break:normal;hyphens:auto}
.empire-catalog-translation-note,.empire-catalog-state{display:block;color:#685a45;font-size:13px;line-height:1.3;overflow-wrap:anywhere}
.empire-catalog-unavailable{justify-content:center;background:repeating-linear-gradient(135deg,#fffaf0,#fffaf0 10px,#f8f0df 10px,#f8f0df 20px)}
.empire-catalog-more{display:block;width:100%;min-height:48px;margin:12px 0 0;padding:10px;border:1px solid #806024;border-radius:9px;background:#07583e;color:#fff;font:800 16px/1.2 system-ui,sans-serif}
@media(max-width:900px){.empire-catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}}
@media(max-width:430px){.empire-catalog-section{margin:14px 0 10px;padding:10px 8px}.empire-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.empire-catalog-card{min-height:198px;padding:8px 4px}.empire-catalog-image{width:min(112px,100%)}.empire-catalog-name{font-size:15px;line-height:1.25}.empire-catalog-translation-note,.empire-catalog-state{font-size:12px;line-height:1.25}}
@media(max-width:340px){.empire-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.empire-catalog-card{min-height:210px;padding:8px}.empire-catalog-image{width:min(128px,100%)}.empire-catalog-name{font-size:16px}}

/* V4.1 explicit responsive cascade: cache-busted page CSS; mobile keeps three equal tracks. */
.empire-page .empire-shell .empire-catalog-section .empire-catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:minmax(210px,1fr)}
@media(min-width:431px) and (max-width:900px){.empire-page .empire-shell .empire-catalog-section .empire-catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:341px) and (max-width:430px){.empire-page .empire-shell .empire-catalog-section .empire-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:340px){.empire-page .empire-shell .empire-catalog-section .empire-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
