@font-face { font-family: 'Source Han Sans SC Fami'; font-style: normal; font-weight: 500; font-display: swap; src: url('./assets/fonts/source-han-sans-sc-medium-latin.woff2') format('woff2'); } * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; } html, body { margin: 0; width: 100%; min-height: 100%; overflow-x: hidden; background: #440b23; color: #fff; font-family: 'SF Pro Text', 'SF Pro Display', 'Noto Sans Arabic', Arial, 'Helvetica Neue', Helvetica, sans-serif; } button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; } [hidden] { display: none !important; } .fami-page { display: flex; justify-content: center; width: 100%; min-height: 100svh; background: #440b23; } .fami-page[data-tab='brother'] { background: #080636; } .fami-page[data-tab='sister'] { background: #301008; } .fami-stage { --design-scale: 1; --design-height: 812px; --stage-height: 812px; --accent: #ff0979; --accent-soft: #ff5762; --tab-bg: rgba(94, 13, 35, 0.8); --tab-glow: #ff7948; --tab-jewel-left: -7px; --avatar-top: 35px; --center-height: 120px; --exp-top: 102px; --progress-from: #ff1e37; --progress-mid: #fe6a30; --progress-to: #ffcf67; position: relative; flex: 0 0 auto; width: min(100vw, 414px); height: var(--stage-height); overflow: hidden; background: #440b23; } .fami-page[data-tab='brother'] .fami-stage { --accent: #5709ff; --accent-soft: #5709ff; --tab-bg: rgba(17, 13, 94, 0.8); --tab-glow: #4872ff; --tab-jewel-left: 110px; --avatar-top: 41px; --center-height: 136px; --exp-top: 102px; --progress-from: #471eff; --progress-mid: #30bcfe; --progress-to: #67acff; background: #080636; } .fami-page[data-tab='sister'] .fami-stage { --accent: #ff4a09; --accent-soft: #ff4a09; --tab-bg: rgba(94, 29, 13, 0.8); --tab-glow: #ff7948; --tab-jewel-left: 220px; --avatar-top: 41px; --center-height: 136px; --exp-top: 93px; --progress-from: #ff5e1e; --progress-mid: #fe6a30; --progress-to: #ffb167; background: #301008; } .fami-design { position: relative; width: 375px; height: var(--design-height); transform: scale(var(--design-scale)); transform-origin: left top; } .fami-background, .fami-card-skin, .fami-tab-jewel, .fami-center-art, .fami-avatar-frame, .fami-level-badge img, .fami-status-bar img, .fami-nav-button img { display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; } .fami-background { position: absolute; z-index: 0; inset: 0; width: 375px; height: 812px; object-fit: fill; object-position: center top; } .fami-status-bar { position: absolute; z-index: 5; left: 0; top: 0; width: 375px; height: 44px; } .fami-page.has-native-status .fami-status-bar { visibility: hidden; } .fami-status-time { position: absolute; left: 33.87px; top: 13px; width: 54px; height: 15px; color: #fff; font-family: Helvetica, Arial, sans-serif; font-size: 15px; font-weight: 400; line-height: 15px; text-align: center; } .fami-status-cellular { position: absolute; left: 294.34px; top: 15px; width: 17px; height: 11.33px; } .fami-status-wifi { position: absolute; left: 316.34px; top: 16.33px; width: 15.33px; height: 11.01px; } .fami-status-battery { position: absolute; left: 336.67px; top: 16.33px; width: 24.33px; height: 11.33px; } .fami-nav { position: absolute; z-index: 5; left: 0; top: 44px; width: 375px; height: 44px; } .fami-nav h1 { position: absolute; left: 139px; top: 13px; width: 97px; height: 18px; margin: 0; color: #fff; font-family: 'Source Han Sans SC Fami', 'Noto Sans Arabic', sans-serif; font-size: 18px; font-weight: 500; line-height: 18px; text-align: center; white-space: nowrap; } .fami-nav-button { position: absolute; top: 10px; width: 24px; height: 24px; } .fami-nav-button--back { left: 16px; } .fami-nav-button--help { left: 335px; } .fami-nav-button img { width: 24px; height: 24px; object-fit: contain; } .fami-nav-button--help img { width: 25.4px; height: 25.4px; transform: translate(-0.7px, -0.7px); } .fami-tabs { position: absolute; z-index: 5; left: 16px; top: 109px; display: grid; grid-template-columns: repeat(3, 1fr); width: 343px; height: 37px; border: 0.5px solid #f4b747; border-radius: 32px; background: var(--tab-bg); box-shadow: inset 0 0 5.5px var(--tab-glow); direction: ltr; } .fami-tab-jewel { position: absolute; z-index: 0; left: calc(var(--tab-jewel-left) - 0.5px); top: -2.5px; width: 130px; height: 48px; object-fit: fill; } .fami-tabs button { position: relative; z-index: 1; height: 37px; color: rgba(255, 255, 255, 0.8); font-family: 'SF Pro Text', Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 18px; text-align: center; } .fami-tabs button[aria-selected='true'] { color: #fff; font-family: 'Source Han Sans SC Fami', 'Noto Sans Arabic', sans-serif; font-weight: 500; } .fami-tabs button[data-tab='brother'][aria-selected='false'], .fami-tabs button[data-tab='sister'][aria-selected='false'] { letter-spacing: 0.5px; } .fami-tabs button[data-tab='brother'][aria-selected='false'] { letter-spacing: 0.57px; } .fami-tabs button[data-tab='cp'][aria-selected='true'] { letter-spacing: 0.35px; } .fami-tabs button[data-tab='brother'][aria-selected='true'] { letter-spacing: -0.384px; } .fami-tabs button[data-tab='sister'][aria-selected='true'] { letter-spacing: 0.042px; } .fami-tabs button span { position: relative; top: -1px; } .fami-tabs button[data-tab='cp'][aria-selected='true'] span { left: -0.5px; } .fami-tabs button[data-tab='brother'] span, .fami-tabs button[data-tab='sister'] span { left: 1px; } .fami-content { position: absolute; z-index: 3; left: 0; top: 0; width: 375px; } .fami-relation-list { position: absolute; left: 14px; top: 169px; display: flex; flex-direction: column; gap: 14px; width: 347px; } .fami-relation-card { position: relative; flex: 0 0 199px; width: 347px; height: 199px; color: var(--accent); } .fami-card-skin { position: absolute; z-index: 0; inset: 0; width: 347px; height: 199px; object-fit: fill; } .fami-avatar { position: absolute; z-index: 2; top: var(--avatar-top); width: 66px; height: 66px; margin: 0; } .fami-avatar--left { left: 32px; } .fami-avatar--right { left: 250px; } .fami-avatar-photo { position: absolute; z-index: 1; left: 2.36px; top: 2.36px; display: grid; place-items: center; width: 61.29px; height: 61.29px; overflow: hidden; border-radius: 50%; background: rgba(255, 255, 255, 0.26); color: rgba(255, 255, 255, 0.9); font-size: 18px; font-weight: 600; } .fami-avatar-photo img { display: block; width: 100%; height: 100%; object-fit: cover; } .fami-avatar-frame { position: absolute; z-index: 2; inset: 0; width: 66px; height: 66px; object-fit: contain; } .fami-center-art-wrap { position: absolute; z-index: 1; left: 106px; top: 6px; width: 136px; height: var(--center-height); text-align: center; } .fami-center-art { position: absolute; z-index: 0; inset: 0; width: 136px; height: var(--center-height); object-fit: fill; } .fami-days-value { position: absolute; z-index: 1; left: 50%; top: 45px; color: var(--accent); font-size: 18px; font-family: 'SF Pro Text', Arial, sans-serif; font-weight: 400; line-height: 18px; text-shadow: 0 1px 0 #fff, 0 0 4px rgba(255, 255, 255, 0.75); transform: translateX(-50%); } .fami-days-unit { position: absolute; z-index: 1; left: 50%; top: 70px; color: var(--accent); font-family: 'SF Pro Text', Arial, sans-serif; font-size: 8px; font-weight: 400; line-height: 8px; text-shadow: 0 1px 0 #fff; transform: translateX(-50%); } .fami-exp-pill { position: absolute; z-index: 3; left: 119px; top: var(--exp-top); display: grid; place-items: center; width: 112px; height: 28px; } .fami-exp-pill-skin { position: absolute; z-index: 0; inset: 0; display: none; width: 112px; height: 28px; pointer-events: none; } .fami-page[data-tab='cp'] .fami-exp-pill-skin--cp, .fami-page[data-tab='brother'] .fami-exp-pill-skin--brother, .fami-page[data-tab='sister'] .fami-exp-pill-skin--sister { display: block; } .fami-exp-pill-skin--cp img { position: absolute; top: 0; display: block; height: 28px; pointer-events: none; } .fami-exp-pill-skin--cp img:nth-child(1) { left: 0; width: 49px; } .fami-exp-pill-skin--cp img:nth-child(2) { left: 49px; width: 14px; } .fami-exp-pill-skin--cp img:nth-child(3) { left: 63px; width: 49px; } .fami-exp-pill [data-value='exp-away'] { position: relative; z-index: 1; color: var(--accent); font-family: 'SF Pro Text', Arial, sans-serif; font-size: 8px; font-weight: 400; line-height: 8px; text-align: center; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 2px rgba(255, 255, 255, 0.85); white-space: nowrap; } .fami-progress-block { position: absolute; z-index: 3; left: 32px; top: 134px; width: 289px; height: 35px; } .fami-level-badge { position: absolute; top: 1.5px; width: 24px; height: 13px; } .fami-level-badge--left { left: 0; } .fami-level-badge--right { right: 0; } .fami-level-badge img { position: absolute; inset: 0; width: 24px; height: 13px; object-fit: fill; } .fami-level-badge span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: 'SF Pro Text', Arial, sans-serif; font-size: 9px; font-weight: 500; line-height: 9px; } .fami-progress-track { position: absolute; left: 28px; top: 0; width: 233px; height: 16px; overflow: hidden; border-radius: 74px; background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(6px); } .fami-progress-fill { position: absolute; left: 1px; top: 1px; width: 1px; height: 14px; overflow: hidden; border-radius: 7px; background: linear-gradient( 90deg, var(--progress-from) 0%, var(--progress-mid) 50%, var(--progress-to) 100% ); box-shadow: inset -4px 0 3px #fffef8, inset 0 2px 2px rgba(255, 254, 239, 0.48), inset 0 -2px 2px rgba(255, 255, 255, 0.45); } .fami-progress-fill::after { position: absolute; inset: 1px 2px; border-radius: inherit; background: radial-gradient( circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 2px ) 0 0 / 7px 7px; content: ''; mix-blend-mode: screen; opacity: 0.9; } .fami-progress-text { position: absolute; left: 50%; top: 2px; color: #fff; font-size: 14px; font-weight: 700; line-height: 14px; text-align: center; white-space: nowrap; transform: translateX(-50%); } .fami-time-text { position: absolute; left: 0; top: 20px; width: 289px; margin: 0; color: var(--accent-soft); font-family: 'SF Pro Text', Arial, sans-serif; font-size: 11px; font-weight: 400; line-height: 15px; text-align: center; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 0 2px rgba(255, 255, 255, 0.72); } .fami-state { position: absolute; left: 14px; top: 169px; display: grid; place-items: center; width: 347px; min-height: 199px; padding: 24px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 12px; background: rgba(20, 8, 35, 0.76); color: #fff; font-size: 14px; line-height: 20px; text-align: center; } .fami-state[data-retry='true'] { cursor: pointer; } .fami-nav-button:focus-visible, .fami-tabs button:focus-visible, .fami-state:focus-visible { outline: 2px solid var(--hy-theme-focus-ring, rgba(255, 255, 255, 0.75)); outline-offset: 2px; } [dir='rtl'] .fami-nav-button--back img { transform: scaleX(-1); } @media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }