/* REVERSE home only. Original faceted metal emblems, amber actions.
   Radius: 20px sections, 16px tiles, 12px controls. Nav uses existing layer.
   No selectors alter the contents of cards, arena, clan or shop screens. */
@font-face { font-family: ReverseMenu; src: url('assets/clans/golos-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: ReverseMenu; src: url('assets/clans/golos-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
#tab-profile.reverse-home {
  --menu-panel: #1a1f23;
  --menu-panel-hi: #252c31;
  --menu-edge: #ffffff10;
  --menu-ink: #eef1f3;
  --menu-muted: #aeb7be;
  --menu-amber: #f1c47f;
  font-family: ReverseMenu, var(--font-body);
  gap: 12px !important;
  padding-bottom: 12px;
  color: var(--menu-ink);
}
#tab-profile.reverse-home::after { display: none; }
html[data-theme="light"] #tab-profile.reverse-home {
  --menu-panel: #f4f6f7;
  --menu-panel-hi: #e5e9eb;
  --menu-edge: #34424c16;
  --menu-ink: #202a32;
  --menu-muted: #56636c;
  --menu-amber: #82551b;
}
#tab-profile.reverse-home .hub-id { border-radius: 20px; background: var(--menu-panel); box-shadow: inset 0 1px 0 var(--menu-edge); }
#tab-profile.reverse-home .hub-id .hub-id-bg { height: 96px; background-position: 50% 40%; }
#tab-profile.reverse-home .hub-id::after { top: 60px; height: 36px; background: linear-gradient(transparent,var(--menu-panel)); }
#tab-profile.reverse-home .hub-id > .hub-id-main { padding: 70px 16px 8px; }
#tab-profile.reverse-home .hub-id .hub-identity { align-items: center; gap: 12px; }
#tab-profile.reverse-home .hub-id .hub-av { width: 58px; height: 58px; flex-basis: 58px; border: 3px solid var(--menu-panel); border-radius: 18px; }
#tab-profile.reverse-home .menu-player-copy { min-width: 0; flex: 1; padding-top: 20px; }
#tab-profile.reverse-home .hub-id .hub-name { margin: 0 !important; padding: 0; font: 700 21px/1.25 ReverseMenu,var(--font-body); letter-spacing: -.04em; color: var(--menu-ink) !important; }
#tab-profile.reverse-home .hub-id .hub-id-meta { padding: 0; margin: 6px 0 0; display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 4px 10px; }
#tab-profile.reverse-home .hub-id .hub-league { font: 400 11px/1.4 ReverseMenu,var(--font-body); color: var(--menu-amber); }
#tab-profile.reverse-home .hub-id .hub-pts { color: var(--menu-muted); font: 400 11px/1.4 ReverseMenu,var(--font-body); }
#tab-profile.reverse-home .hub-id .hub-pts strong { color: var(--menu-ink); font: inherit; font-weight: 700; }
#tab-profile.reverse-home .hub-id .hub-verse-switch { min-height: 44px; margin-top: 6px; padding: 10px 0 4px; border: 0; color: var(--menu-muted); }
#tab-profile.reverse-home .hub-id .hub-verse { color: var(--menu-muted) !important; font-size: 11px !important; }
#tab-profile.reverse-home .hub-wallet { padding: 8px 0; margin: 0; border-bottom: 1px solid var(--menu-edge); }
#tab-profile.reverse-home .hub-wallet-cell { min-height: 44px; gap: 4px; }
#tab-profile.reverse-home .hub-wallet-cell b { color: var(--menu-ink); font: 700 18px/1.2 ReverseMenu,var(--font-body); letter-spacing: -.035em; }
#tab-profile.reverse-home .hub-wallet-cell.c-coin b { color: var(--menu-amber); }
#tab-profile.reverse-home .hub-wallet-cell span { color: var(--menu-muted); font: 400 10px/1.4 ReverseMenu,var(--font-body); }
#tab-profile.reverse-home .hub-wallet-cell + .hub-wallet-cell { border-color: var(--menu-edge); }

/* The battle is the main action; the owned theme stays on the player cover. */
#tab-profile.reverse-home .hub-play-grid > .menu-arena { min-height: 184px; border-radius: 20px; background: #172029; box-shadow: inset 0 1px 0 #fff2; }
#tab-profile.reverse-home .menu-arena .hub-f-art img { object-position: 65% 42%; opacity: .75; }
#tab-profile.reverse-home .menu-arena .hub-f-art::after { background: linear-gradient(90deg,#15212bf5 0%,#15212bbf 35%,#15212b22 100%),linear-gradient(0deg,#15212b9c,transparent 70%); }
#tab-profile.reverse-home .menu-arena .hub-cover-body { display: flex; align-items: flex-start; min-height: 184px; padding: 20px; gap: 6px; }
#tab-profile.reverse-home .menu-arena-format { font-size: 11px; line-height: 1.4; color: #c3cdd6; }
#tab-profile.reverse-home .hub-cover-title { font: 700 30px/1.05 ReverseMenu,var(--font-body); letter-spacing: -.045em; color: #f2f4f6; }
#tab-profile.reverse-home .hub-cover-meta { font: 400 11px/1.4 ReverseMenu,var(--font-body); color: #c3cdd6; }
#tab-profile.reverse-home .hub-cover-meta b { color: #f2f4f6; }
#tab-profile.reverse-home .menu-arena-emblem { position: absolute; z-index: 1; width: 110px; height: 110px; right: 13px; bottom: 23px; transform: rotate(9deg); object-fit: contain; }
#tab-profile.reverse-home .hub-play-action { display: inline-flex; align-items: center; gap: 28px; min-height: 42px; margin-top: 9px; padding: 5px 6px 5px 16px; border-radius: 24px; background: #f1c47f; color: #282114; font: 700 13px/1.2 ReverseMenu,var(--font-body); }
#tab-profile.reverse-home .menu-action-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #b17c3433; font: 400 20px/1 ReverseMenu,var(--font-body); }

/* Opening remains the existing live action, condensed into one control panel. */
#tab-profile.reverse-home .hub-opening { display: grid; grid-template-columns: minmax(0,1fr) 86px; grid-template-rows: auto auto auto; min-height: 140px; padding: 17px 16px 12px; column-gap: 8px; row-gap: 6px; border: 0; border-radius: 20px; background: var(--menu-panel); color: var(--menu-ink); box-shadow: inset 0 1px 0 var(--menu-edge); }
#tab-profile.reverse-home .hub-opening::before { display: none; }
#tab-profile.reverse-home .hub-opening-copy { display: block; grid-column: 1; grid-row: 1; }
#tab-profile.reverse-home .hub-opening h2 { font: 700 16px/1.3 ReverseMenu,var(--font-body); color: var(--menu-ink); letter-spacing: -.025em; }
#tab-profile.reverse-home .hub-opening-copy p { margin-top: 4px; color: var(--menu-muted); font-size: 11px; }
#tab-profile.reverse-home .hub-opening-art { grid-column: 2; grid-row: 1/3; height: 88px; width: 86px; }
#tab-profile.reverse-home .hub-opening-art img { width: 61px; height: 81px; border-radius: 5px; box-shadow: 5px 8px 12px #111b222b; transform: rotate(10deg); animation: none; }
#tab-profile.reverse-home #btn-open-card { grid-column: 1; grid-row: 2; justify-self: start; width: auto; min-width: 124px; min-height: 44px; padding: 8px 14px; gap: 18px; background: var(--menu-panel-hi); color: var(--menu-ink); border: 1px solid var(--menu-edge); border-radius: 12px; font: 700 12px/1.3 ReverseMenu,var(--font-body); }
#tab-profile.reverse-home #btn-open-card:disabled { opacity: .65; }
#tab-profile.reverse-home #hub-opening-status { grid-column: 1/-1; grid-row: 3; margin: 1px 0 0; text-align: left; color: var(--menu-muted); font-size: 10px; line-height: 1.5; }
#tab-profile.reverse-home .hub-opening[data-state="error"] #hub-opening-status { color: #e99ca2; }
html[data-theme="light"] #tab-profile.reverse-home .hub-opening[data-state="error"] #hub-opening-status { color: #a93b47; }

/* Illustrated destinations, no wallpaper behind the labels. */
#tab-profile.reverse-home .hub-section-title { margin: 11px 0 1px; color: var(--menu-ink); font: 700 18px/1.3 ReverseMenu,var(--font-body); letter-spacing: -.03em; }
#tab-profile.reverse-home :is(.hub-modes,.hub-discover) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#tab-profile.reverse-home .menu-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; isolation: isolate; min-height: 144px; min-width: 0; padding: 15px 13px; gap: 5px; overflow: hidden; border: 0; border-radius: 16px; background: radial-gradient(ellipse at 85% 12%,#91afa518,transparent 72%),var(--menu-panel); box-shadow: inset 0 1px 0 var(--menu-edge); text-align: left; cursor: pointer; }
#tab-profile.reverse-home .menu-tile:nth-child(2n) { background: radial-gradient(ellipse at 85% 12%,#d4b17416,transparent 72%),var(--menu-panel); }
#tab-profile.reverse-home .menu-emblem { position: absolute; top: 4px; right: 5px; width: 90px; height: 90px; object-fit: contain; pointer-events: none; }
#tab-profile.reverse-home .menu-tile .hub-mode-name { position: relative; z-index: 1; color: var(--menu-ink); font: 700 15px/1.25 ReverseMenu,var(--font-body); letter-spacing: -.025em; }
#tab-profile.reverse-home .menu-tile .hub-mode-sub { position: relative; z-index: 1; color: var(--menu-muted) !important; font: 400 10px/1.4 ReverseMenu,var(--font-body); }
#tab-profile.reverse-home .menu-market { min-height: 124px; padding: 18px; border-radius: 20px; background: radial-gradient(ellipse at 90% 50%,#91afa51a,transparent 65%),var(--menu-panel); box-shadow: inset 0 1px 0 var(--menu-edge); }
#tab-profile.reverse-home .menu-market::after { display: none; }
#tab-profile.reverse-home .menu-market .menu-emblem { top: 12px; right: 10px; width: 100px; height: 100px; }
#tab-profile.reverse-home .menu-market > span { display: block; max-width: calc(100% - 100px); }
#tab-profile.reverse-home .menu-market strong { color: var(--menu-ink); font: 700 20px/1.2 ReverseMenu,var(--font-body); letter-spacing: -.035em; }
#tab-profile.reverse-home .menu-market small { color: var(--menu-muted); font: 400 11px/1.5 ReverseMenu,var(--font-body); margin-top: 6px; }
#tab-profile.reverse-home .menu-market b { color: var(--menu-amber); font: 700 11px/1.3 ReverseMenu,var(--font-body); margin-top: 12px; }
#tab-profile.reverse-home .hub-links { padding: 0; margin: 0; border: 0; gap: 10px; }
#tab-profile.reverse-home .hub-links .menu-tile { display: flex; align-items: flex-start; justify-content: center; min-height: 82px; padding: 12px 9px 12px 65px; border-radius: 16px; background: var(--menu-panel); box-shadow: inset 0 1px 0 var(--menu-edge); }
#tab-profile.reverse-home .hub-links .menu-emblem { width: 57px; height: 57px; top: 12px; left: 4px; right: auto; }
#tab-profile.reverse-home .hub-links .hub-mode-name { align-self: auto; font-size: 13px; }
#tab-profile.reverse-home .hub-links .hub-mode-sub { align-self: auto; font-size: 10px; }
#tab-profile.reverse-home .hub-section-row { margin-top: 8px; }
#tab-profile.reverse-home .hub-section-row > button { color: var(--menu-amber); font: 400 11px/1.3 ReverseMenu,var(--font-body); }
#tab-profile.reverse-home .recent-list { gap: 0; border-radius: 16px; overflow: hidden; background: var(--menu-panel); padding: 2px 13px; }
#tab-profile.reverse-home .recent-item { min-height: 70px; padding: 10px 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none; }
#tab-profile.reverse-home .recent-item + .recent-item { border-top: 1px solid var(--menu-edge) !important; }
#tab-profile.reverse-home .recent-item::after { display: none; }
#tab-profile.reverse-home .recent-icon-wrap { width: 37px !important; height: 48px !important; flex: 0 0 37px; border-radius: 7px !important; box-shadow: none; }
#tab-profile.reverse-home .recent-icon { width: 100%; height: 100%; object-fit: cover; }
#tab-profile.reverse-home .recent-name { color: var(--menu-ink); font: 700 12px/1.4 ReverseMenu,var(--font-body); }
#tab-profile.reverse-home .recent-rank { font-size: 9px; letter-spacing: .03em; }
#tab-profile.reverse-home .recent-pts { background: none; border: 0; color: var(--menu-amber); font: 700 12px/1.3 ReverseMenu,var(--font-body); }
#tab-profile.reverse-home button:focus-visible { outline: 2px solid var(--menu-amber); outline-offset: 3px; }

/* Equal five destinations: every original icon remains recognisable at 34px. */
#bottom-nav.reverse-menu-nav { display: grid !important; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: center; width: min(calc(100% - 24px),456px); max-width: 456px; padding: 6px !important; min-height: 76px !important; border-radius: 22px !important; bottom: max(10px,env(safe-area-inset-bottom)) !important; background: var(--nav-bg) !important; box-shadow: 0 10px 28px #0b151d33,inset 0 1px 0 #ffffff0a !important; font-family: ReverseMenu,var(--font-body); }
#bottom-nav.reverse-menu-nav .nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: 62px !important; min-height: 62px; padding: 4px 0 6px; border: 0; border-radius: 16px !important; background: transparent !important; transform: none !important; }
#bottom-nav.reverse-menu-nav .nav-ico { width: 38px; height: 38px; }
#bottom-nav.reverse-menu-nav .menu-nav-icon { display: block; width: 38px; height: 38px; object-fit: contain; opacity: .78; }
#bottom-nav.reverse-menu-nav .nav-label { color: var(--text-sub) !important; opacity: 1 !important; font-size: 10px !important; font-weight: 400 !important; letter-spacing: -.025em; white-space: nowrap; }
#bottom-nav.reverse-menu-nav .nav-btn.active { background: var(--bg-hover) !important; box-shadow: inset 0 -2px 0 var(--accent-hi); }
#bottom-nav.reverse-menu-nav .nav-btn.active .menu-nav-icon { opacity: 1; }
#bottom-nav.reverse-menu-nav .nav-btn.active .nav-label { color: var(--accent-hi) !important; font-weight: 700 !important; }
#bottom-nav.reverse-menu-nav .nav-btn:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: -2px; }
#bottom-nav.reverse-menu-nav[hidden] { display: none !important; }
@media (hover:hover) {
  #tab-profile.reverse-home :is(.menu-tile,.menu-market):hover { background-color: var(--menu-panel-hi); }
  #bottom-nav.reverse-menu-nav .nav-btn:hover .menu-nav-icon { opacity: 1; }
}
@media (prefers-reduced-motion:no-preference) {
  #tab-profile.reverse-home :is(.menu-tile,.menu-market,.menu-arena) { transition: transform 180ms cubic-bezier(.22,1,.36,1); }
  #tab-profile.reverse-home :is(.menu-tile,.menu-market,.menu-arena):active { transform: scale(.985); }
  #bottom-nav.reverse-menu-nav .menu-nav-icon { transition: transform 200ms cubic-bezier(.22,1,.36,1),opacity 200ms; }
  #bottom-nav.reverse-menu-nav .nav-btn.active .menu-nav-icon { transform: translateY(-1px); }
}
@media (prefers-reduced-motion:reduce) { #tab-profile.reverse-home *, #bottom-nav.reverse-menu-nav * { animation: none !important; transition: none !important; } }
@media (max-width:359px) {
  #tab-profile.reverse-home .menu-player-copy { padding-top: 16px; }
  #tab-profile.reverse-home .hub-id .hub-name { font-size: 19px !important; }
  #tab-profile.reverse-home .hub-wallet-cell b { font-size: 16px; }
  #tab-profile.reverse-home .menu-tile { min-height: 136px; padding-inline: 11px; }
  #tab-profile.reverse-home .menu-emblem { width: 80px; height: 80px; }
  #tab-profile.reverse-home .menu-tile .hub-mode-name { font-size: 13px; }
  #tab-profile.reverse-home .menu-tile .hub-mode-sub { font-size: 9px; }
  #tab-profile.reverse-home .hub-links .menu-tile { padding-left: 50px; }
  #tab-profile.reverse-home .hub-links .menu-emblem { width: 46px; height: 46px; top: 18px; }
  #tab-profile.reverse-home .menu-market { padding: 15px; }
  #tab-profile.reverse-home .menu-market strong { font-size: 18px; }
  #tab-profile.reverse-home .menu-market .menu-emblem { width: 85px; height: 85px; top: 20px; right: 4px; }
  #tab-profile.reverse-home .menu-market > span { max-width: calc(100% - 80px); }
  #bottom-nav.reverse-menu-nav .nav-label { font-size: 9px !important; }
}
@media (min-width:700px) {
  #tab-profile.reverse-home .hub-modes { grid-template-columns: repeat(4,minmax(0,1fr)); }
  #tab-profile.reverse-home .menu-tile { min-height: 152px; }
}
