/* Arc Reactor Home Screen */
/* STABLE REF: frontend/stable/css/gamify-arc.css — Compare here if this file breaks. */

.v2-home {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.v2-home-greeting-top {
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  z-index: 50;
  text-align: center;
  padding: 0 72px 0 20px;
  pointer-events: none;
}

.v2-home-greeting-top .v2-greeting {
  font-size: 16px;
  color: #aaaaaa;
  text-align: center;
}

.v2-home-greeting-top .v2-greeting strong {
  color: #fff;
}

.v2-home-greeting-top .v2-daily-coin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 8px auto 0;
  pointer-events: all;
  position: static;
  transform: none;
  left: auto;
  top: auto;
}

.v2-home-greeting-top .v2-daily-coin-btn.hidden {
  display: none;
}

#gfy-daily-insight {
  display: none;
}

body:not(.app-active) .arc-reactor-portal {
  display: none !important;
}

body:has(#page-store.active) .arc-reactor-portal,
body.plans-page-open .arc-reactor-portal,
body:has(#page-store.active) .arc-corner-btn,
body.plans-page-open .arc-corner-btn,
body:has(#page-store.active) .arc-store-row,
body.plans-page-open .arc-store-row {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body:has(#page-store.active) #page-v2-home,
body.plans-page-open #page-v2-home {
  display: none !important;
}

.gfy-coin-display.gfy-coin-collectable {
  cursor: pointer;
  animation: gfy-coin-pulse 2s ease-in-out infinite;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
}

@keyframes gfy-coin-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.2); }
  50% { box-shadow: 0 0 12px 2px rgba(255, 215, 0, 0.35); }
}

.plans-rank-showcase {
  position: relative;
  z-index: 70;
  margin-bottom: 20px;
  padding-bottom: 8px;
  clear: both;
}

.plans-rank-showcase-inner {
  position: relative;
  z-index: 70;
}

.plans-rank-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  position: relative;
  z-index: 70;
}

.arc-ring-group.arc-ring-settled {
  transition: none !important;
}

#page-store.active {
  position: relative;
  z-index: 80;
  background: var(--bg);
  isolation: isolate;
}

body.v2-mode:not(.arc-ring-visible) .arc-reactor-portal,
body.v2-mode:not(.arc-ring-visible) .arc-reactor-portal,
body.arc-section-open .arc-reactor-portal,
body.settings-page-open .arc-reactor-portal,
body:has(.pillar-detail-panel.open) .arc-reactor-portal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.arc-reactor-portal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 48;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: top 0.45s cubic-bezier(0.34, 1.2, 0.64, 1), transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.arc-reactor-portal.arc-mini {
  top: calc(env(safe-area-inset-top) + 72px);
  height: auto;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.arc-reactor-portal .arc-reactor-wrap {
  position: relative;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.arc-reactor-portal.arc-mini .arc-reactor-wrap {
  transform: scale(0.42);
  transform-origin: top center;
}

.arc-reactor-wrap {
  position: relative;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
}

.arc-reactor-stage {
  display: none;
}

.arc-ring-group {
  position: relative;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  will-change: transform;
  touch-action: none;
}

.arc-spin-hit {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  z-index: 1;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}

.arc-spin-hit:active {
  cursor: grabbing;
}

.arc-track-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.arc-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.arc-pillars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.arc-pillar {
  position: absolute;
  width: 74px;
  height: 74px;
  margin: 0;
  border-radius: 50%;
  border: none;
  background: rgba(10, 10, 15, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
  pointer-events: all;
}

.arc-pillar[data-id="edge"] {
  box-shadow: 0 0 16px 4px rgba(255, 149, 0, 0.5),
              inset 0 0 12px rgba(255, 149, 0, 0.15);
  border: 1.5px solid rgba(255, 149, 0, 0.6);
}
.arc-pillar[data-id="body"] {
  box-shadow: 0 0 16px 4px rgba(155, 89, 255, 0.5),
              inset 0 0 12px rgba(155, 89, 255, 0.15);
  border: 1.5px solid rgba(155, 89, 255, 0.6);
}
.arc-pillar[data-id="fuel"] {
  box-shadow: 0 0 16px 4px rgba(0, 200, 83, 0.5),
              inset 0 0 12px rgba(0, 200, 83, 0.15);
  border: 1.5px solid rgba(0, 200, 83, 0.6);
}
.arc-pillar[data-id="wealth"] {
  box-shadow: 0 0 16px 4px rgba(255, 215, 0, 0.5),
              inset 0 0 12px rgba(255, 215, 0, 0.15);
  border: 1.5px solid rgba(255, 215, 0, 0.6);
}
.arc-pillar[data-id="recharge"] {
  box-shadow: 0 0 16px 4px rgba(79, 195, 247, 0.5),
              inset 0 0 12px rgba(79, 195, 247, 0.15);
  border: 1.5px solid rgba(79, 195, 247, 0.6);
}
.arc-pillar[data-id="mind"] {
  box-shadow: 0 0 16px 4px rgba(255, 107, 107, 0.5),
              inset 0 0 12px rgba(255, 107, 107, 0.15);
  border: 1.5px solid rgba(255, 107, 107, 0.6);
}

.arc-pillar.flash-tap {
  transform: translate(-50%, -50%) scale(1.2) !important;
  filter: brightness(1.5);
}

.arc-pillar-icon {
  width: 51px;
  height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arc-pillar-icon svg {
  width: 51px;
  height: 51px;
}

.arc-pillar-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
  opacity: 0.85;
}

.arc-pillar.at-12 {
  filter: brightness(1.35);
  box-shadow: 0 0 24px var(--pillar-glow, rgba(155, 89, 255, 0.6));
}

.arc-center-logo,
#arc-center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 132px;
  --spin-glow: 0;
  --spin-scale: 1;
  --spin-color: 155, 89, 255;
  background: transparent !important;
  background-color: transparent !important;
  border: none;
  box-shadow: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
}

.arc-center-logo img,
.arc-center-logo-img {
  width: 108px;
  height: 108px;
  pointer-events: none;
  background: transparent !important;
  background-color: transparent !important;
  border: none;
  box-shadow: none;
  transform: scale(var(--spin-scale, 1));
  filter: drop-shadow(0 0 calc(6px + 22px * var(--spin-glow, 0)) rgba(var(--spin-color, 155, 89, 255), calc(0.3 + 0.7 * var(--spin-glow, 0))));
  transition: filter 0.08s linear, transform 0.08s linear;
}

.arc-center-logo.arc-center-spinning img,
.arc-center-logo.arc-center-spinning .arc-center-logo-img {
  transition: none;
}

.arc-center-logo-draw {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.arc-center-logo-draw.playing {
  display: flex;
}

.arc-center-logo-img.hidden-for-draw {
  opacity: 0;
  visibility: hidden;
}

.arc-center-draw-svg {
  width: 95px;
  height: 95px;
  overflow: visible;
}

.arc-center-draw-svg .logo-draw-path {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arc-center-draw-svg .arc-draw-hex-outer { stroke-width: 1.8; }
.arc-center-draw-svg .arc-draw-hex-inner { stroke-width: 1.6; }
.arc-center-draw-svg .arc-draw-g-body,
.arc-center-draw-svg .arc-draw-g-arrow { stroke-width: 3.2; }

@keyframes arcCenterDrawPath {
  from { stroke-dashoffset: var(--path-length, 400); }
  to { stroke-dashoffset: 0; }
}

.arc-center-logo-draw.playing .arc-draw-hex-outer {
  animation: arcCenterDrawPath 0.6s ease-in-out forwards;
}

.arc-center-logo-draw.playing .arc-draw-hex-inner {
  animation: arcCenterDrawPath 0.5s ease-in-out 0.3s forwards;
}

.arc-center-logo-draw.playing .arc-draw-g-body {
  animation: arcCenterDrawPath 0.6s ease-in-out 0.8s forwards;
}

.arc-center-logo-draw.playing .arc-draw-g-arrow {
  animation: arcCenterDrawPath 0.3s ease-out 1.4s forwards;
}

.arc-center-logo-draw.glow .logo-draw-path {
  filter: drop-shadow(0 0 16px rgba(155, 89, 255, 1));
}

.arc-center-logo-draw.glow {
  animation: arcCenterLogoDrawGlow 0.4s ease-in-out forwards;
}

@keyframes arcCenterLogoDrawGlow {
  0% { filter: drop-shadow(0 0 0 rgba(155, 89, 255, 0)); }
  50% { filter: drop-shadow(0 0 18px rgba(155, 89, 255, 1)); }
  100% { filter: drop-shadow(0 0 8px rgba(155, 89, 255, 0.35)); }
}

.arc-center-logo img.arc-center-reveal-play,
.arc-center-logo-img.arc-center-reveal-play {
  animation: arcCenterLogoReveal 1.5s ease-out forwards;
}

@keyframes arcCenterLogoReveal {
  0% {
    opacity: 0;
    transform: scale(0.72);
    filter: drop-shadow(0 0 0 rgba(155, 89, 255, 0));
  }
  45% {
    opacity: 1;
    transform: scale(1.08);
    filter: drop-shadow(0 0 22px rgba(155, 89, 255, 1));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(155, 89, 255, 0.85));
  }
}

.arc-center-logo.checkin-pending img,
.arc-center-logo.checkin-pending .arc-center-logo-img {
  filter: sepia(1) saturate(3) hue-rotate(-10deg) brightness(1.1);
}

.arc-connectors.checkin-pending .arc-dash {
  animation: arc-dash-amber 1.8s ease-in-out infinite;
}

@keyframes arc-dash-amber {
  0%, 100% { opacity: 0.35; fill: #FF9500; }
  50% { opacity: 0.95; fill: #FFBB44; }
}

.arc-checkin-hint {
  position: fixed;
  bottom: max(76px, calc(env(safe-area-inset-bottom) + 60px));
  left: 0;
  right: 0;
  z-index: 50;
  text-align: center;
  font-size: 11px;
  color: #FF9500;
  font-family: var(--mono);
  min-height: 16px;
  margin: 0;
  padding: 0 16px;
  pointer-events: none;
}

.arc-spin-hint {
  position: absolute;
  left: 88%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
}

.arc-spin-hint.visible {
  animation:
    spinHintFadeIn 0.45s ease-out forwards,
    spinHintPulse 0.65s ease-in-out 0.55s 1;
}

.arc-spin-hint.fade-out {
  animation: spinHintFadeOut 0.5s ease-out forwards;
}

.arc-spin-hint-arrow {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 6px rgba(155, 89, 255, 0.45));
}

.arc-spin-hint-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #9B59FF;
  letter-spacing: 0.03em;
  opacity: 0;
}

.arc-spin-hint.visible .arc-spin-hint-text {
  animation: spinHintTextIn 0.5s ease-out 0.15s forwards;
}

@keyframes spinHintFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spinHintTextIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spinHintPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes spinHintFadeOut {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
}

/* Collect coins — below greeting */
#v2-daily-coin-btn.v2-daily-coin-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 32px;
  min-width: 120px;
  background: linear-gradient(135deg, #F0A429, #B8860B);
  color: #1a1200;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  animation: gfy-coin-pulse 1.4s ease-in-out infinite;
}

.v2-daily-coin-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  pointer-events: all;
}

.v3-rank-bar-badge.rank-glow-diamond .v3-rank-badge-img,
.v3-rank-bar-badge.rank-glow-diamond .v3-rank-badge-wrap .v3-rank-badge-img {
  opacity: 1 !important;
  filter: saturate(1.4) brightness(1.1) drop-shadow(0 0 6px rgba(100, 200, 255, 0.7)) !important;
}

.v3-rank-bar-badge.rank-glow-diamond .v3-rank-badge-wrap {
  box-shadow: 0 0 16px 4px rgba(79, 195, 247, 0.85);
}

.v3-rank-bar-badge.rank-glow-diamond .v3-rank-bar-label {
  opacity: 1;
  color: #4FC3F7;
  text-shadow: 0 0 10px rgba(79, 195, 247, 0.9);
}
.v2-home-rank-wrap {
  position: static;
  padding: 0;
  pointer-events: none;
  display: contents;
}

/* Rank bar sits BELOW the store pills row (not fixed to top) so it never
   crams together with the store labels — see arc-home-stores below. */
#v3-rank-bar {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  padding: 6px 16px 4px;
  margin: 6px 0 0;
  z-index: 60;
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.v2-home-rank-wrap .v3-rank-bar {
  padding-top: 6px;
}

.v3-rank-bar-badge {
  min-width: 84px;
}

.v3-rank-bar-badge .v3-rank-badge-img,
.v3-rank-bar-badge .v3-rank-badge-wrap {
  width: 78px;
  height: 78px;
}

/* Coin balance — top right, floats independently of the rank bar so it
   never crowds the rank badge, and stays tappable for the daily collect. */
#v3-coin-balance,
.v3-rank-bar .gfy-coin-display {
  position: fixed !important;
  top: max(12px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  left: auto;
  z-index: 105;
  pointer-events: auto;
  margin: 0;
}

.arc-corner-btn {
  position: fixed;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 8px));
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(155, 89, 255, 0.45);
  background: rgba(10, 10, 18, 0.92);
  color: #E8F4FF;
  font-size: 20px;
  cursor: pointer;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(155, 89, 255, 0.25);
  -webkit-tap-highlight-color: transparent;
  pointer-events: all;
}

body.app-active.arc-ring-visible .arc-corner-btn {
  display: flex;
}

.arc-settings-btn {
  left: max(16px, env(safe-area-inset-left));
}

#arc-home-settings-btn {
  width: 64px;
  height: 64px;
  background: transparent !important;
  border: 1.5px solid rgba(155, 89, 255, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(155, 89, 255, 0.4);
}

.arc-atlas-btn {
  right: max(16px, env(safe-area-inset-right));
  padding: 0;
}

#arc-home-atlas-btn {
  width: 64px;
  height: 64px;
  background: transparent !important;
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  filter: drop-shadow(0 0 8px #FFD700);
}

.arc-store-btn {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: auto;
  min-width: 88px;
  height: 48px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(155, 89, 255, 0.55);
  background: rgba(10, 10, 18, 0.94);
  box-shadow:
    0 0 14px rgba(155, 89, 255, 0.35),
    inset 0 0 12px rgba(155, 89, 255, 0.08);
  touch-action: manipulation;
}

.arc-store-btn:active {
  transform: translateX(-50%) scale(0.96);
  box-shadow: 0 0 20px rgba(155, 89, 255, 0.55);
}

.arc-store-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8F4FF;
  text-shadow: 0 0 10px rgba(155, 89, 255, 0.65);
  line-height: 1;
  pointer-events: none;
}

#arc-home-atlas-btn .arc-atlas-eye-svg {
  overflow: visible;
}

#arc-home-atlas-btn .arc-atlas-lid {
  transform-box: fill-box;
  transform-origin: center center;
}

html:not(.gfy-reduce-motion) #arc-home-atlas-btn .arc-atlas-lid-top {
  animation: arc-atlas-lid-close-top 3.6s ease-in-out infinite;
}

html:not(.gfy-reduce-motion) #arc-home-atlas-btn .arc-atlas-lid-bottom {
  animation: arc-atlas-lid-close-bottom 3.6s ease-in-out infinite;
}

@keyframes arc-atlas-lid-close-top {
  0%, 86%, 100% {
    transform: translateY(0) scaleY(1);
    opacity: 0.35;
  }
  89%, 92% {
    transform: translateY(5px) scaleY(1.35);
    opacity: 1;
  }
}

@keyframes arc-atlas-lid-close-bottom {
  0%, 86%, 100% {
    transform: translateY(0) scaleY(1);
    opacity: 0.35;
  }
  89%, 92% {
    transform: translateY(-5px) scaleY(1.35);
    opacity: 1;
  }
}

body.app-active.arc-ring-visible #page-v2-home {
  pointer-events: none;
}

body.app-active.arc-ring-visible #arc-home-stores,
body.app-active.arc-ring-visible .arc-home-store-pill {
  pointer-events: all;
}

body.app-active.arc-ring-visible #page-v2-home .v2-daily-coin-btn,
body.app-active.arc-ring-visible #page-v2-home .v3-rank-bar {
  pointer-events: auto;
}

/* Settings back — legacy settings page */
.settings-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(155, 89, 255, 0.35);
  border-radius: 10px;
  background: rgba(10, 10, 18, 0.92);
  color: #E8F4FF;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(155, 89, 255, 0.2);
  -webkit-tap-highlight-color: transparent;
}

.settings-back-btn:active {
  transform: scale(0.96);
}

.v2-settings-sheet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.v2-settings-back-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(155, 89, 255, 0.35);
  background: rgba(10, 10, 18, 0.92);
  color: #E8F4FF;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.v2-settings-sheet-title {
  font-size: 18px;
  font-weight: 800;
  flex: 1;
}

.v2-section.open .v2-section-header {
  padding-top: calc(env(safe-area-inset-top) + 100px);
}

.v2-section-header-icon {
  width: 28px;
  height: 28px;
  margin-right: 8px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(155, 89, 255, 0.5));
}

.v2-section-header {
  display: flex;
  align-items: center;
}

.v2-tile-grid,
.v2-bubble-tile,
.v2-home-gear,
.v2-home-greeting-block,
.v2-resources-bar,
.v2-home-chat-btn {
  display: none !important;
}

/* v53 — single full-screen scroll per section */
.v2-section.open {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.v2-section.open .v2-card-stack {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  display: block;
  touch-action: pan-y;
}

.v2-section.open .v2-card {
  position: relative;
  inset: auto;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  display: none;
  padding: 0 56px 24px 16px;
  min-height: auto;
  justify-content: flex-start;
}

.v2-section.open .v2-card.active {
  display: block;
}

.v2-section.open .v2-card-inner {
  max-height: none;
  overflow: visible;
}

.v2-section.open .meal-log-scroll,
.v2-section.open .scroll-lock {
  overflow: visible;
  max-height: none;
}

.v2-section.open .v2-back-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  font-size: 20px;
  line-height: 1;
}

/* v54 — center logo size override (enlarged + centered per bug 6) */
#arc-center-logo,
.arc-center-logo {
  width: 132px !important;
  height: 132px !important;
  min-width: 132px !important;
  min-height: 132px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#arc-center-logo img,
.arc-center-logo img {
  width: 108px !important;
  height: 108px !important;
  min-width: 108px !important;
  min-height: 108px !important;
  object-fit: contain !important;
}

/* v54 — XP count white */
.v3-rank-bar-xp,
.v3-rank-bar-xp span {
  color: #FFFFFF !important;
}

/* v56 — home store row + settings time fix */
.arc-home-stores {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
  padding: 0 16px 8px;
  pointer-events: all;
}
.arc-home-store-pill {
  flex: 1;
  max-width: 160px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(155, 89, 255, 0.45);
  background: rgba(10, 10, 18, 0.9);
  color: #E8F4FF;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(155, 89, 255, 0.25);
}
.arc-home-store-pill.affiliate {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}
.arc-home-store-pill:active { transform: scale(0.97); }

/* Bottom dock (arc corner buttons / store row) must never cover the last
   scrollable content on settings, profile, or store pages. */
#page-settings,
#page-profile,
#page-store,
.page.active {
  padding-bottom: max(120px, calc(env(safe-area-inset-bottom) + 100px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#page-settings .pref-row input[type="time"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#page-settings .pref-row { width: 100%; max-width: 100%; }
#page-settings .pref-row,
#page-settings .card {
  overflow: hidden;
  box-sizing: border-box;
}

.profile-back-btn {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 0px));
  left: 16px;
  z-index: 5;
  background: rgba(10, 10, 18, 0.85);
  border: 1px solid rgba(155, 89, 255, 0.35);
  color: #9B59FF;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
#page-profile { position: relative; padding-top: 52px; }

.arc-store-row {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.arc-store-row .arc-store-btn-split {
  min-width: 0;
  width: auto;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(155, 89, 255, 0.55);
  background: rgba(10, 10, 18, 0.94);
  box-shadow: 0 0 14px rgba(155, 89, 255, 0.35);
  touch-action: manipulation;
}
.arc-store-row .arc-store-btn-split.affiliate {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.25);
}
.arc-store-row .arc-store-btn-split:active { transform: scale(0.96); }
