/* Public Interface 1 only. Every selector is rooted at .ui1-portal. */
:root { --ui1-ink: #1d1413; --ui1-red: #a71f21; --ui1-red-dark: #711315; --ui1-gold: #f2c45d; --ui1-paper: #f6efdf; --ui1-muted: #6e5c54; }
html.ui1-portal-document { scroll-behavior: smooth; }
body.ui1-portal { min-height: 100vh; margin: 0; color: var(--ui1-ink); background: #1b1213; font-family: Inter, Arial, sans-serif; }
body.ui1-portal * { box-sizing: border-box; }
body.ui1-portal a { text-decoration: none; }

/* Existing public navigation restyled; Interface 2 never gets .ui1-portal. */
body.ui1-portal .ui1-nav { position: relative; z-index: 50; border: 0 !important; color: #fff; background: linear-gradient(90deg, rgba(24, 12, 13, .98), rgba(61, 19, 20, .98), rgba(24, 12, 13, .98)) !important; box-shadow: 0 4px 18px rgba(0, 0, 0, .35) !important; }
body.ui1-portal .ui1-nav::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; content: ''; background: linear-gradient(90deg, transparent, var(--ui1-gold), transparent); opacity: .8; }
body.ui1-portal .ui1-nav .max-w-6xl { max-width: 1280px; }
body.ui1-portal .ui1-nav a { color: #fff !important; }
body.ui1-portal .ui1-nav .text-indigo-600 { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; letter-spacing: .01em; text-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
body.ui1-portal .ui1-nav__brand-text { display: block; max-width: 180px; overflow: hidden; color: #fff8dc; font-size: 14px; font-style: normal; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
body.ui1-portal .ui1-nav__logo { width: 138px; max-height: 46px; object-fit: contain; object-position: left center; }
body.ui1-portal .ui1-nav__link { position: relative; padding: 10px 12px; color: #f7e6bd !important; font-size: 12px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
body.ui1-portal .ui1-nav__link::after { position: absolute; right: 13px; bottom: 4px; left: 13px; height: 2px; content: ''; transform: scaleX(0); transition: transform .2s ease; background: var(--ui1-gold); }
body.ui1-portal .ui1-nav__link:hover { color: #fff !important; background: transparent; transform: none; }
body.ui1-portal .ui1-nav__link:hover::after { transform: scaleX(1); }
body.ui1-portal .ui1-nav .bg-slate-50, body.ui1-portal .ui1-nav .bg-white { border-color: rgba(242, 196, 93, .4) !important; color: #fff !important; background: rgba(255, 255, 255, .06) !important; }
body.ui1-portal .ui1-nav .text-slate-700, body.ui1-portal .ui1-nav .text-slate-600 { color: #fff !important; }
body.ui1-portal .ui1-nav .text-slate-400 { color: #e9c870 !important; }
body.ui1-portal .ui1-nav .border-slate-100, body.ui1-portal .ui1-nav .border-slate-200 { border-color: rgba(242, 196, 93, .32) !important; }
body.ui1-portal .ui1-nav .bg-rose-50 { border-color: rgba(255, 191, 191, .45) !important; color: #fff !important; background: rgba(169, 31, 33, .82) !important; }
body.ui1-portal .ui1-nav .bg-indigo-50 { border-color: rgba(242, 196, 93, .45) !important; color: #301313 !important; background: linear-gradient(135deg, #ffe29a, #d5a23d) !important; }
body.ui1-portal .ui1-nav .frontend-mobile-portrait-hide { display: none !important; }
body.ui1-portal .frontend-mobile-overlay { background: rgba(20, 8, 9, .76); }
body.ui1-portal .frontend-mobile-drawer { border-color: rgba(242, 196, 93, .34); color: #fff; background: #251314; }
body.ui1-portal .frontend-mobile-drawer .bg-white, body.ui1-portal .frontend-mobile-drawer .bg-slate-50 { border-color: rgba(242, 196, 93, .24) !important; color: #fff !important; background: rgba(255, 255, 255, .07) !important; }
body.ui1-portal .frontend-mobile-drawer .text-slate-900, body.ui1-portal .frontend-mobile-drawer .text-slate-700, body.ui1-portal .frontend-mobile-drawer .text-slate-600 { color: #fff !important; }
body.ui1-portal .frontend-mobile-drawer .text-slate-400, body.ui1-portal .frontend-mobile-drawer .text-slate-500 { color: #e3c987 !important; }

/* Interface 1 navigation: its own responsive layout, independent from Theme 2. */
body.ui1-portal .ui1-nav { position: sticky !important; top: 0; background: linear-gradient(105deg, rgba(24, 10, 12, .98), rgba(78, 21, 22, .98) 49%, rgba(31, 12, 13, .98)) !important; }
body.ui1-portal .ui1-nav__frame { display: grid; width: min(100% - 32px, 1360px); min-height: 74px; margin: 0 auto; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 2vw, 32px); }
body.ui1-portal .ui1-nav__brand { display: inline-flex; min-width: 0; align-items: center; gap: 10px; }
body.ui1-portal .ui1-nav__brand .ui1-nav__logo { width: 130px; max-height: 48px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
body.ui1-portal .ui1-nav__brand-copy { display: grid; min-width: 0; border-left: 1px solid rgba(244, 201, 105, .36); padding-left: 10px; }
body.ui1-portal .ui1-nav__brand-copy strong { overflow: hidden; color: #fff6da; font-family: Georgia, serif; font-size: 14px; font-weight: 800; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
body.ui1-portal .ui1-nav__brand-copy small { margin-top: 2px; color: #edc76d; font-size: 8px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
body.ui1-portal .ui1-nav__desktop-links { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 2px; }
body.ui1-portal .ui1-nav__link { border-radius: 7px; padding: 10px clamp(7px, 1vw, 13px); color: #f5ddb1 !important; font-size: 10px; font-weight: 900; letter-spacing: .055em; white-space: nowrap; }
body.ui1-portal .ui1-nav__link::after { right: 10px; bottom: 5px; left: 10px; height: 2px; background: #f4c65f; }
body.ui1-portal .ui1-nav__link:hover { color: #fff8e3 !important; background: rgba(255, 235, 183, .1); }
body.ui1-portal .ui1-nav__link.is-active { color: #3c1711 !important; background: linear-gradient(135deg, #ffe7a2, #dc9e35); box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 3px 10px rgba(0, 0, 0, .22); }
body.ui1-portal .ui1-nav__link.is-active::after { transform: scaleX(1); background: #8e2520; }
body.ui1-portal .ui1-nav__link.is-highlight { color: #ffd979 !important; }
body.ui1-portal .ui1-nav__controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
body.ui1-portal .ui1-nav__charge, body.ui1-portal .ui1-nav__register { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255, 238, 177, .7); border-radius: 7px; padding: 10px 12px; color: #3b170f !important; font-size: 10px; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(135deg, #ffeaa4, #d99c32); box-shadow: inset 0 1px rgba(255, 255, 255, .68), 0 4px 11px rgba(0, 0, 0, .22); transition: transform .18s ease, filter .18s ease; white-space: nowrap; }
body.ui1-portal .ui1-nav__charge:hover, body.ui1-portal .ui1-nav__register:hover { color: #3b170f !important; transform: translateY(-2px); filter: brightness(1.08); }
body.ui1-portal .ui1-nav__login { padding: 9px 7px; color: #fff1cc !important; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
body.ui1-portal .ui1-nav__login:hover { color: #fff !important; }
body.ui1-portal .ui1-nav__account { display: grid; min-width: 184px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 9px; border: 1px solid rgba(247, 215, 135, .36); border-radius: 8px; padding: 8px 11px; color: #fff !important; background: rgba(255, 250, 224, .07); }
body.ui1-portal .ui1-nav__account > i { display: grid; width: 29px; height: 29px; grid-row: span 2; place-items: center; border-radius: 50%; color: #4a160f; font-size: 12px; background: linear-gradient(135deg, #ffebb1, #d79b36); }
body.ui1-portal .ui1-nav__account span { display: grid; min-width: 0; }
body.ui1-portal .ui1-nav__account small { color: #e6c979; font-size: 7px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
body.ui1-portal .ui1-nav__account strong { overflow: hidden; color: #fff9e7; font-size: 11px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
body.ui1-portal .ui1-nav__account b { overflow: hidden; color: #b9ec86; font-size: 9px; font-weight: 850; letter-spacing: .03em; text-overflow: ellipsis; white-space: nowrap; }
body.ui1-portal .ui1-nav__logout, body.ui1-portal .ui1-nav__menu-toggle { display: inline-grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(246, 213, 128, .38); border-radius: 8px; color: #ffe8a5 !important; cursor: pointer; font-size: 13px; background: rgba(255, 255, 255, .06); transition: background .18s ease, color .18s ease, transform .18s ease; }
body.ui1-portal .ui1-nav__logout:hover, body.ui1-portal .ui1-nav__menu-toggle:hover { color: #3c1711 !important; transform: translateY(-2px); background: #f5cf76; }
body.ui1-portal .ui1-nav__menu-toggle { display: none; }

.ui1-portal-main { overflow: hidden; background: var(--ui1-paper); }
.ui1-hero { position: relative; display: grid; min-height: min(760px, calc(100vh - 80px)); overflow: hidden; place-items: center; background: #291315 url('/img.php?theme=ui1&f=full__big.jpg&v=20260831') center top / cover no-repeat; isolation: isolate; }
.ui1-hero::before { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(90deg, rgba(15, 7, 8, .78) 0%, rgba(17, 7, 8, .3) 50%, rgba(15, 7, 8, .17) 100%), linear-gradient(0deg, rgba(17, 7, 8, .7), transparent 34%); }
.ui1-hero::after { position: absolute; right: 0; bottom: 0; left: 0; z-index: -1; height: 140px; content: ''; background: linear-gradient(transparent, var(--ui1-paper)); }
.ui1-hero__backdrop { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 25% 48%, rgba(239, 180, 52, .16), transparent 20%); }
.ui1-age-rating { position: absolute; top: 24px; left: clamp(14px, 3vw, 52px); z-index: 2; width: clamp(64px, 8vw, 106px); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.ui1-hero__content { width: min(100% - 44px, 1160px); margin: 8px auto 0; padding: 88px 0 130px; }
.ui1-hero__eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: #fce6a4; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-shadow: 0 2px 3px rgba(0, 0, 0, .55); text-transform: uppercase; }
.ui1-hero__eyebrow span { width: 9px; height: 9px; border-radius: 99px; background: #ef4444; box-shadow: 0 0 12px #ff8f8f; }
.ui1-hero__title-art { display: block; width: min(500px, 62vw); max-height: 210px; object-fit: contain; object-position: left center; filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .62)); }
.ui1-hero h1 { margin: 8px 0 0; color: #fff6d9; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 50px); font-weight: 800; line-height: 1; text-shadow: 0 4px 5px rgba(0, 0, 0, .52); }
.ui1-hero__description { max-width: 440px; margin: 15px 0 23px; color: #fff7e9; font-size: 16px; font-weight: 500; line-height: 1.6; text-shadow: 0 2px 3px rgba(0, 0, 0, .6); }
.ui1-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; max-width: 600px; }
.ui1-action { display: inline-flex; min-width: 132px; align-items: center; gap: 10px; border: 1px solid rgba(255, 242, 193, .38); border-radius: 7px; padding: 11px 14px; color: #fff; box-shadow: inset 0 1px rgba(255, 255, 255, .22), 0 5px 10px rgba(0, 0, 0, .25); transition: transform .2s ease, filter .2s ease; }
.ui1-action:hover { color: #fff; transform: translateY(-3px); filter: brightness(1.12); }
.ui1-action > i { font-size: 25px; }
.ui1-action img { width: 26px; height: 28px; object-fit: contain; }
.ui1-platform-icon { display: grid; width: 26px; height: 28px; flex: 0 0 26px; place-items: center; }
.ui1-platform-icon img { display: block; width: 26px; height: 28px; object-fit: contain; }
.ui1-platform-icon i { display: none; color: #f7d77f; font-size: 24px; }
.ui1-platform-icon.is-fallback img { display: none; }
.ui1-platform-icon.is-fallback i { display: block; }
.ui1-action span { display: grid; font-size: 14px; font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.ui1-action small { margin-bottom: 3px; font-size: 8px; font-weight: 700; letter-spacing: .08em; opacity: .8; }
.ui1-action--gold { color: #4b1c10; border-color: #ffe8a2; background: linear-gradient(135deg, #ffe59b, #d99a2b); }
.ui1-action--gold:hover { color: #2d0b09; }
.ui1-action--store { background: linear-gradient(135deg, #202020, #0c0c0c); }
.ui1-action--outline { background: linear-gradient(135deg, #9c2224, #561113); }
.ui1-hero__account { display: inline-flex; align-items: center; gap: 9px; max-width: 580px; margin-top: 25px; border: 1px solid rgba(255, 240, 202, .22); border-radius: 6px; padding: 10px 13px; color: #f8eccc; background: rgba(28, 10, 11, .49); font-size: 12px; backdrop-filter: blur(4px); }
.ui1-hero__account > i { color: #a8e86c; }
.ui1-hero__account a { margin-left: auto; color: #ffe08b; font-weight: 800; white-space: nowrap; }
.ui1-hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 710px); margin-top: 22px; overflow: hidden; border: 1px solid rgba(255, 229, 163, .32); border-radius: 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .13); background: linear-gradient(135deg, rgba(27, 9, 11, .75), rgba(72, 20, 21, .52)); backdrop-filter: blur(10px); }
.ui1-hero__stats article { position: relative; min-width: 0; padding: 15px 17px; }
.ui1-hero__stats article + article { border-left: 1px solid rgba(255, 229, 163, .22); }
.ui1-hero__stats article::after { position: absolute; top: 0; right: 0; left: 0; height: 2px; content: ''; opacity: .75; background: linear-gradient(90deg, transparent, #f2c45d, transparent); }
.ui1-hero__stats span { display: block; overflow: hidden; color: #f5d481; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ui1-hero__stats span i { margin-right: 4px; color: #fff0ba; }
.ui1-hero__stats strong { display: block; overflow: hidden; margin: 7px 0 4px; color: #fff7df; font-family: Georgia, serif; font-size: 18px; font-weight: 800; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.ui1-hero__stats small { display: block; overflow: hidden; color: #ddcfb6; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ui1-hero__server-status strong { color: #baf28a; font-family: Inter, Arial, sans-serif; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }
.ui1-hero__server-status strong b { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #8ee76b; box-shadow: 0 0 0 4px rgba(142, 231, 107, .14), 0 0 13px #8ee76b; animation: ui1-server-pulse 2s ease-in-out infinite; }
@keyframes ui1-server-pulse { 50% { transform: scale(.75); opacity: .55; } }
.ui1-hero__scroll { position: absolute; bottom: 28px; left: 50%; display: inline-flex; align-items: center; gap: 9px; transform: translateX(-50%); color: #4a322b; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ui1-hero__scroll span { width: 22px; height: 34px; border: 2px solid #754329; border-radius: 15px; }
.ui1-hero__scroll span::after { display: block; width: 4px; height: 7px; margin: 6px auto; border-radius: 6px; content: ''; animation: ui1-scroll 1.7s infinite; background: #a62022; }
@keyframes ui1-scroll { 0%, 100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(11px); opacity: .1; } }

.ui1-section { position: relative; padding: 76px max(22px, calc((100vw - 1160px) / 2)); }
.ui1-section--paper { background: var(--ui1-paper); }
.ui1-section__heading { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 20px; margin-bottom: 34px; }
.ui1-section__heading::after { grid-column: 1 / -1; width: 100%; height: 1px; content: ''; background: linear-gradient(90deg, #af2022 0 150px, rgba(115, 66, 43, .22) 150px); }
.ui1-section__heading p { grid-column: 1 / -1; margin: 0; color: #a51e20; font-size: 10px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.ui1-section__heading h2 { margin: 0; color: #38211d; font-family: Georgia, serif; font-size: clamp(27px, 3vw, 40px); font-weight: 800; line-height: 1.1; }
.ui1-section__heading a { align-self: center; color: #9e2021; font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.ui1-section__heading a i { margin-left: 5px; transition: transform .2s ease; }
.ui1-section__heading a:hover { color: #621315; }
.ui1-section__heading a:hover i { transform: translateX(4px); }
.ui1-news__layout { display: grid; grid-template-columns: 206px minmax(0, 1fr); gap: 25px; }
.ui1-guides { display: grid; gap: 10px; align-content: start; }
.ui1-guide-card { position: relative; display: grid !important; min-height: 76px; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; overflow: hidden; border: 1px solid rgba(85, 38, 28, .24); border-radius: 10px; padding: 10px; color: #3f231c; box-shadow: 0 7px 15px rgba(63, 28, 20, .1); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.ui1-guide-card::before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; content: ''; background: currentColor; opacity: .75; }
.ui1-guide-card:hover { transform: translateX(4px); color: #351710; box-shadow: 0 11px 20px rgba(63, 28, 20, .17); filter: brightness(1.03); }
.ui1-guide-card > i { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; color: #fff8e4; font-size: 15px; background: currentColor; }
.ui1-guide-card > span { display: grid; min-width: 0; gap: 3px; }
.ui1-guide-card strong { overflow: hidden; color: #3b2019; font-family: Georgia, serif; font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ui1-guide-card small { overflow: hidden; color: #755d51; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ui1-guide-card b { color: currentColor; font-size: 10px; }
.ui1-guide-card--gold { color: #a16b1f; background: linear-gradient(135deg, #fff4d4, #f8e2a4); }
.ui1-guide-card--red { color: #a42725; background: linear-gradient(135deg, #fff0df, #f9d5c5); }
.ui1-guide-card--ink { color: #4b4c63; background: linear-gradient(135deg, #f0eff1, #dedee6); }
.ui1-guide-card--leaf { color: #43704d; background: linear-gradient(135deg, #edfae4, #d4efca); }
.ui1-guide-card--gold > i { background: #a16b1f; }
.ui1-guide-card--red > i { background: #a42725; }
.ui1-guide-card--ink > i { background: #4b4c63; }
.ui1-guide-card--leaf > i { background: #43704d; }
.ui1-news__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ui1-news-card { overflow: hidden; border: 1px solid rgba(85, 38, 28, .22); background: #fffaf0; box-shadow: 0 8px 20px rgba(54, 25, 19, .09); transition: transform .25s ease, box-shadow .25s ease; }
.ui1-news-card:hover { transform: translateY(-5px); box-shadow: 0 15px 26px rgba(54, 25, 19, .17); }
.ui1-news-card__image { display: block; height: 170px; overflow: hidden; background: #672021 center / cover no-repeat; }
.ui1-news-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.ui1-news-card:hover .ui1-news-card__image img { transform: scale(1.06); filter: saturate(1.08); }
.ui1-news-card__body { padding: 16px 17px 17px; }
.ui1-news-card__body > div { display: flex; justify-content: space-between; gap: 8px; color: #80685d; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ui1-news-card__body > div span { color: #aa2021; }
.ui1-news-card h3 { min-height: 45px; margin: 9px 0 11px; font-family: Georgia, serif; font-size: 18px; line-height: 1.25; }
.ui1-news-card h3 a { color: #35201b; }
.ui1-news-card h3 a:hover { color: #a51f21; }
.ui1-news-card__more { color: #a51f21; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ui1-news-card__more i { margin-left: 3px; font-size: 8px; }
.ui1-news-card--featured { position: relative; }
.ui1-empty-state { display: grid; min-height: 270px; grid-column: 1 / -1; place-content: center; border: 1px dashed rgba(113, 58, 40, .4); color: #73564a; text-align: center; }
.ui1-empty-state i { margin-bottom: 14px; color: #aa2021; font-size: 38px; }
.ui1-empty-state h3 { margin: 0; font-family: Georgia, serif; font-size: 23px; }
.ui1-empty-state p { max-width: 380px; margin: 9px 0 0; font-size: 13px; }

.ui1-section--dark { overflow: hidden; color: #fff; background: #160d0e radial-gradient(circle at 17% 30%, rgba(170, 31, 33, .5), transparent 31%), radial-gradient(circle at 82% 70%, rgba(240, 187, 72, .2), transparent 28%); }
.ui1-section--dark::after { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; content: ''; background: linear-gradient(90deg, transparent, #d8aa55, transparent); opacity: .75; }
.ui1-section__heading--light h2 { color: #fff5da; }
.ui1-section__heading--light p, .ui1-section__heading--light a { color: #f3ca71; }
.ui1-section__heading--light::after { background: linear-gradient(90deg, #e0b058 0 150px, rgba(255, 238, 195, .21) 150px); }
.ui1-character-showcase { display: grid; grid-template-columns: 185px minmax(0, 1fr); align-items: stretch; gap: 27px; }
.ui1-character-tabs { display: grid; align-content: center; gap: 7px; }
.ui1-character-tabs button { position: relative; width: 100%; border: 1px solid rgba(255, 240, 207, .18); padding: 13px 17px; color: #eedfc0; cursor: pointer; font: 800 11px Inter, sans-serif; letter-spacing: .08em; text-align: left; text-transform: uppercase; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; background: rgba(255, 255, 255, .06); }
.ui1-character-tabs button:hover, .ui1-character-tabs button.is-active { border-color: #efc86b; color: #321b18; transform: translateX(5px); background: linear-gradient(90deg, #ffe08b, #d9a43e); }
.ui1-character-tabs button.is-active::after { position: absolute; top: calc(50% - 7px); right: -9px; width: 14px; height: 14px; content: ''; transform: rotate(45deg); background: #d9a43e; }
.ui1-character-stage { min-height: 380px; overflow: hidden; border: 1px solid rgba(245, 204, 105, .38); background: linear-gradient(112deg, rgba(45, 13, 14, .82), rgba(12, 11, 17, .68)); }
.ui1-character-panel { position: relative; display: grid; min-height: 380px; grid-template-columns: minmax(230px, .86fr) minmax(280px, 1.14fr); align-items: center; overflow: hidden; padding: 32px 40px; }
.ui1-character-panel::before { position: absolute; top: 50%; right: 16%; z-index: 0; width: 290px; height: 290px; border: 1px solid rgba(249, 215, 127, .42); border-radius: 50%; content: ''; transform: translateY(-50%); box-shadow: 0 0 0 25px rgba(218, 157, 40, .06), 0 0 80px rgba(213, 95, 40, .38); }
.ui1-character-panel__copy { position: relative; z-index: 1; }
.ui1-character-panel__copy p { margin: 0 0 8px; color: #f0ca72; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.ui1-character-panel__copy h3 { margin: 0; color: #fff4d8; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 52px); line-height: 1.03; }
.ui1-character-panel__copy > span { display: block; width: 75px; height: 3px; margin: 20px 0; background: #e7b650; }
.ui1-character-panel__copy > div { max-width: 330px; color: #e7d9c2; font-size: 14px; line-height: 1.7; }
.ui1-character-panel__copy a { display: inline-block; margin-top: 23px; color: #f8d274; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ui1-character-panel__copy a i { margin-left: 5px; }
.ui1-character-panel > img { position: relative; z-index: 1; width: min(100%, 440px); max-height: 340px; justify-self: end; object-fit: contain; filter: drop-shadow(0 15px 13px rgba(0, 0, 0, .54)); animation: ui1-character-enter .38s ease both; }
@keyframes ui1-character-enter { from { transform: translateX(18px); opacity: .25; } to { transform: translateX(0); opacity: 1; } }

.ui1-section--features { background: #efe4ce; }
.ui1-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ui1-feature-grid article { min-height: 205px; padding: 26px 22px; border-top: 4px solid #aa2223; background: #fff9ec; box-shadow: 0 9px 19px rgba(76, 42, 29, .1); }
.ui1-feature-grid article i { display: inline-grid; width: 43px; height: 43px; margin-bottom: 17px; place-items: center; border-radius: 50%; color: #fff7e0; font-size: 17px; background: linear-gradient(135deg, #c13a2e, #7d191a); box-shadow: 0 4px 9px rgba(125, 25, 26, .27); }
.ui1-feature-grid h3 { margin: 0; color: #3a211b; font-family: Georgia, serif; font-size: 20px; }
.ui1-feature-grid p { margin: 9px 0 0; color: #725d52; font-size: 13px; line-height: 1.65; }
.ui1-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 47px max(22px, calc((100vw - 1160px) / 2)); color: #fff4d5; background: linear-gradient(105deg, #76191b, #b52a25 56%, #6e1619); }
.ui1-cta p { margin: 0 0 6px; color: #ffd978; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.ui1-cta h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(26px, 3vw, 38px); }
.ui1-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ui1-cta__actions a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 246, 201, .47); padding: 13px 17px; font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; transition: transform .2s ease, filter .2s ease; }
.ui1-cta__actions a:hover { transform: translateY(-2px); filter: brightness(1.09); }
.ui1-cta__primary { color: #481715; background: #ffe096; }
.ui1-cta__secondary { color: #fff8de; background: rgba(65, 11, 13, .34); }

/* A coherent public shell for the other Interface 1 pages. */
body.ui1-portal:not(.ui1-portal-home) { background: #ede0c8; }
body.ui1-portal:not(.ui1-portal-home)::before { position: fixed; inset: 0; z-index: -1; content: ''; opacity: .32; background: url('/img.php?theme=ui1&f=full__big.jpg&v=20260831') center top / cover no-repeat; }
body.ui1-portal .ui1-portal-content { position: relative; max-width: 1120px !important; margin-top: 48px !important; margin-bottom: 58px !important; border-top: 4px solid #a51f21; padding: clamp(22px, 4vw, 45px) !important; background: rgba(255, 250, 238, .96); box-shadow: 0 16px 42px rgba(49, 24, 20, .26); }
body.ui1-portal .ui1-portal-content .bg-white { border-color: rgba(111, 55, 37, .22) !important; background: #fffaf0 !important; box-shadow: 0 7px 18px rgba(49, 24, 20, .08) !important; }
body.ui1-portal .ui1-portal-content .bg-slate-50, body.ui1-portal .ui1-portal-content .bg-slate-100 { background: #f3ead8 !important; }
body.ui1-portal .ui1-portal-content .text-slate-900, body.ui1-portal .ui1-portal-content .text-slate-800, body.ui1-portal .ui1-portal-content .text-slate-700 { color: #372019 !important; }
body.ui1-portal .ui1-portal-content .text-slate-600, body.ui1-portal .ui1-portal-content .text-slate-500 { color: #70594d !important; }
body.ui1-portal .ui1-portal-content .text-emerald-600, body.ui1-portal .ui1-portal-content .text-indigo-600 { color: #a51f21 !important; }
body.ui1-portal .ui1-portal-content .border-slate-100, body.ui1-portal .ui1-portal-content .border-slate-200, body.ui1-portal .ui1-portal-content .border-slate-300 { border-color: rgba(111, 55, 37, .22) !important; }
body.ui1-portal .ui1-footer { margin-top: 0 !important; border-top: 3px solid #e4b451 !important; color: #f9ecd1; background: #221212 !important; }
body.ui1-portal .ui1-footer .text-slate-800, body.ui1-portal .ui1-footer .text-slate-600, body.ui1-portal .ui1-footer .text-slate-500, body.ui1-portal .ui1-footer .text-slate-400 { color: #efdfc0 !important; }
body.ui1-portal .ui1-footer .border-slate-50 { border-color: rgba(245, 208, 128, .22) !important; }
body.ui1-portal .ui1-footer a:hover { color: #f4c65e !important; }

/* Interface 1 skins for the public service pages. */
body.ui1-portal .ui1-page { overflow: hidden; border-top-color: #c48a2d; background: #f8f0df; }
body.ui1-portal .ui1-page::after { position: absolute; top: 0; right: 0; width: min(46%, 450px); height: 130px; content: ''; pointer-events: none; opacity: .68; background: radial-gradient(circle at 90% 0, rgba(181, 41, 37, .2), transparent 65%); }
body.ui1-portal .ui1-page > .text-center:first-child { position: relative; z-index: 1; margin-bottom: 34px !important; border-bottom: 1px solid rgba(130, 57, 35, .24); padding: 4px 20px 23px; }
body.ui1-portal .ui1-page > .text-center:first-child::after { position: absolute; bottom: -2px; left: 50%; width: 94px; height: 4px; content: ''; transform: translateX(-50%); background: linear-gradient(90deg, #811719, #e4b45a); }
body.ui1-portal .ui1-page > .text-center:first-child h1 { color: #481d19 !important; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 45px) !important; font-weight: 800 !important; letter-spacing: -.025em !important; text-transform: none !important; }
body.ui1-portal .ui1-page > .text-center:first-child p { color: #7b5b4c !important; font-size: 13px !important; }
body.ui1-portal .ui1-page .bg-white, body.ui1-portal .ui1-page .download-card, body.ui1-portal .ui1-page .news-card { border: 1px solid rgba(102, 47, 31, .24) !important; border-radius: 15px !important; background: linear-gradient(145deg, #fffdf4, #f9efdc) !important; box-shadow: 0 10px 24px rgba(65, 30, 23, .11) !important; }
body.ui1-portal .ui1-page .bg-slate-50, body.ui1-portal .ui1-page .bg-slate-100 { background: #f1e5cd !important; }
body.ui1-portal .ui1-page .border-slate-100, body.ui1-portal .ui1-page .border-slate-200, body.ui1-portal .ui1-page .border-slate-300 { border-color: rgba(116, 53, 33, .2) !important; }
body.ui1-portal .ui1-page .text-slate-900, body.ui1-portal .ui1-page .text-slate-800, body.ui1-portal .ui1-page .text-slate-700 { color: #43211a !important; }
body.ui1-portal .ui1-page .text-slate-600, body.ui1-portal .ui1-page .text-slate-500, body.ui1-portal .ui1-page .text-slate-400 { color: #755d50 !important; }
body.ui1-portal .ui1-page .text-emerald-500, body.ui1-portal .ui1-page .text-emerald-600, body.ui1-portal .ui1-page .text-indigo-600 { color: #aa2422 !important; }

body.ui1-portal .ui1-page--charge input, body.ui1-portal .ui1-page--charge select { border-color: rgba(126, 48, 30, .25) !important; color: #49231c !important; background: #fffaf0 !important; box-shadow: inset 0 1px 2px rgba(71, 34, 23, .06); }
body.ui1-portal .ui1-page--charge input:focus, body.ui1-portal .ui1-page--charge select:focus { border-color: #b22a26 !important; box-shadow: 0 0 0 3px rgba(178, 42, 38, .12) !important; }
body.ui1-portal .ui1-page--charge button.bg-white { color: #8c201e !important; background: #fff8e7 !important; }
body.ui1-portal .ui1-page--charge .bg-emerald-50 { border-color: rgba(211, 158, 47, .35) !important; background: #fff3d4 !important; }
body.ui1-portal .ui1-page--charge .bg-amber-50 { border-color: rgba(187, 102, 37, .26) !important; background: #fff0d7 !important; }
body.ui1-portal .ui1-page--charge .bg-emerald-600, body.ui1-portal .ui1-page--charge .bg-amber-500 { color: #fff8e5 !important; background: linear-gradient(135deg, #b02b27, #741618) !important; box-shadow: 0 8px 16px rgba(112, 22, 24, .22) !important; }
body.ui1-portal .ui1-page--charge a[href*="zalo"] { color: #fff9e6 !important; background: linear-gradient(135deg, #c99430, #8c521d) !important; box-shadow: 0 8px 16px rgba(124, 73, 28, .2) !important; }

body.ui1-portal .ui1-page--giftcode .code-card { border: 1px dashed rgba(168, 45, 37, .52) !important; border-radius: 12px !important; background: #fff8e8 !important; box-shadow: none !important; }
body.ui1-portal .ui1-page--giftcode .code-card .font-mono { color: #8f1f1e !important; font-size: 16px !important; text-shadow: none; }
body.ui1-portal .ui1-page--giftcode .code-card button { border: 1px solid #ffd77b; color: #fff7e3 !important; background: linear-gradient(135deg, #b42e29, #741718) !important; box-shadow: 0 4px 10px rgba(117, 23, 24, .18) !important; }
body.ui1-portal .ui1-page--giftcode .bg-amber-50 { border-color: rgba(195, 139, 44, .35) !important; background: #fff0d3 !important; }
body.ui1-portal .ui1-page--giftcode .text-amber-500, body.ui1-portal .ui1-page--giftcode .text-amber-800 { color: #8c461a !important; }

body.ui1-portal .ui1-page--download .download-card { position: relative; overflow: hidden; }
body.ui1-portal .ui1-page--download .download-card::before { position: absolute; top: 0; right: 0; width: 110px; height: 4px; content: ''; background: linear-gradient(90deg, #821819, #e1b45d); }
body.ui1-portal .ui1-page--download .download-card > div:first-child > div:first-child { color: #a52421 !important; }
body.ui1-portal .ui1-page--download .download-card a { border: 1px solid rgba(132, 48, 30, .19); border-radius: 9px; padding: 11px 12px; color: #5a2c20 !important; background: rgba(255, 251, 238, .74); }
body.ui1-portal .ui1-page--download .download-card a:hover { border-color: #c69031; color: #9b211f !important; background: #fff3d6; }
body.ui1-portal .ui1-page--download .bg-slate-900 { border: 1px solid rgba(240, 201, 105, .36); border-radius: 17px !important; background: radial-gradient(circle at 92% 20%, rgba(220, 163, 50, .22), transparent 30%), linear-gradient(125deg, #53191a, #1e1012) !important; }
body.ui1-portal .ui1-page--download .bg-slate-900 a { color: #421b12 !important; background: linear-gradient(135deg, #ffe7a3, #d29a32) !important; }

body.ui1-portal .ui1-page--news .news-card { border-radius: 14px !important; transition: transform .2s ease, box-shadow .2s ease; }
body.ui1-portal .ui1-page--news .news-card:hover { transform: translateY(-5px); box-shadow: 0 16px 28px rgba(68, 28, 22, .18) !important; }
body.ui1-portal .ui1-page--news .news-card .h-48 { border-bottom: 3px solid #d7a542; }
body.ui1-portal .ui1-page--news .news-card .absolute span { border: 1px solid rgba(255, 230, 160, .7); border-radius: 6px !important; color: #fff6d9 !important; background: #a82522 !important; box-shadow: 0 4px 10px rgba(112, 22, 24, .24) !important; }
body.ui1-portal .ui1-page--news .news-card h3 { font-family: Georgia, serif; font-size: 21px !important; }
body.ui1-portal .ui1-page--news .news-card h3:hover, body.ui1-portal .ui1-page--news .news-card .text-emerald-600 { color: #a22421 !important; }
body.ui1-portal .ui1-page--news .news-card .border-t { border-color: rgba(112, 48, 31, .2) !important; }

body.ui1-portal .ui1-page--payment > .mb-6 { position: relative; margin-bottom: 30px !important; border-bottom: 1px solid rgba(130, 57, 35, .24); padding: 4px 0 20px; }
body.ui1-portal .ui1-page--payment > .mb-6::after { position: absolute; bottom: -2px; left: 0; width: 92px; height: 4px; content: ''; background: linear-gradient(90deg, #811719, #e4b45a); }
body.ui1-portal .ui1-page--payment > .mb-6 h1 { color: #481d19 !important; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 45px) !important; }
body.ui1-portal .ui1-page--payment [class*="bg-[#1e293b]"] { border: 1px solid rgba(235, 192, 91, .42); border-radius: 16px !important; background: radial-gradient(circle at 96% 4%, rgba(221, 172, 58, .22), transparent 32%), linear-gradient(140deg, #5a1c1d, #1d1011 72%) !important; box-shadow: 0 15px 30px rgba(54, 20, 19, .26) !important; }
body.ui1-portal .ui1-page--payment [class*="bg-[#1e293b]"] .text-emerald-400, body.ui1-portal .ui1-page--payment [class*="bg-[#1e293b]"] .text-rose-500 { color: #ffd77d !important; }
body.ui1-portal .ui1-page--payment .qr-box { border-color: rgba(173, 47, 38, .52) !important; border-radius: 15px !important; background: #fff8e8 !important; box-shadow: inset 0 0 0 5px rgba(215, 169, 73, .1) !important; }
body.ui1-portal .ui1-page--payment .qr-box img { border-radius: 10px !important; }
body.ui1-portal .ui1-page--payment .bg-emerald-50 { border-color: rgba(204, 153, 49, .34) !important; color: #8c321f !important; background: #fff0d3 !important; }
body.ui1-portal .ui1-page--payment .bg-emerald-500 { background: #a52a24 !important; }

body.ui1-portal .ui1-page--account input { border-color: rgba(126, 48, 30, .22) !important; color: #49231c !important; background: #fffaf0 !important; box-shadow: inset 0 1px 2px rgba(71, 34, 23, .06); }
body.ui1-portal .ui1-page--account input:focus { border-color: #b22a26 !important; box-shadow: 0 0 0 3px rgba(178, 42, 38, .12) !important; }
body.ui1-portal .ui1-page--account .bg-emerald-100 { color: #fff4d5 !important; background: linear-gradient(135deg, #b02b27, #741618) !important; }
body.ui1-portal .ui1-page--account .bg-emerald-50 { border-color: rgba(211, 158, 47, .35) !important; color: #8c321f !important; background: #fff3d4 !important; }
body.ui1-portal .ui1-page--account .bg-emerald-50:hover { background: #ffe8b0 !important; }
body.ui1-portal .ui1-page--account .bg-emerald-600 { color: #fff8e5 !important; background: linear-gradient(135deg, #b02b27, #741618) !important; box-shadow: 0 8px 16px rgba(112, 22, 24, .22) !important; }
body.ui1-portal .ui1-page--account .bg-amber-50 { border-color: rgba(195, 139, 44, .35) !important; background: #fff0d3 !important; }
body.ui1-portal .ui1-page--account .text-amber-500, body.ui1-portal .ui1-page--account .text-amber-400 { color: #a22421 !important; }
body.ui1-portal .ui1-page--account .text-emerald-400 { color: #a16b1f !important; }
body.ui1-portal .ui1-page--account .text-emerald-500 { color: #aa2422 !important; }
body.ui1-portal .ui1-page--account .shadow-emerald-100 { --tw-shadow-color: rgba(178, 42, 38, .18) !important; }

@media (max-width: 640px) {
    body.ui1-portal .ui1-page > .text-center:first-child { padding-right: 8px; padding-left: 8px; }
    body.ui1-portal .ui1-page .bg-white, body.ui1-portal .ui1-page .download-card, body.ui1-portal .ui1-page .news-card { border-radius: 12px !important; }
    body.ui1-portal .ui1-page--charge .grid.lg\:grid-cols-12 { gap: 18px !important; }
}

@media (max-width: 900px) {
    .ui1-news__layout, .ui1-character-showcase { grid-template-columns: 1fr; }
    .ui1-guides { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ui1-character-tabs { grid-template-columns: repeat(5, minmax(135px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
    .ui1-character-tabs button { min-width: 135px; }
    .ui1-character-tabs button:hover, .ui1-character-tabs button.is-active { transform: translateY(-2px); }
    .ui1-character-tabs button.is-active::after { top: auto; right: calc(50% - 7px); bottom: -9px; }
    .ui1-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
    body.ui1-portal .ui1-nav__desktop-links, body.ui1-portal .ui1-nav__account, body.ui1-portal .ui1-nav__logout { display: none; }
    body.ui1-portal .ui1-nav__menu-toggle { display: inline-grid !important; }
}
@media (min-width: 700px) {
    .ui1-news-card--featured { display: grid; grid-column: span 2; grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr); min-height: 205px; }
    .ui1-news-card--featured .ui1-news-card__image { height: auto; min-height: 205px; }
    .ui1-news-card--featured .ui1-news-card__body { display: flex; min-height: 205px; flex-direction: column; justify-content: center; padding: 24px; }
    .ui1-news-card--featured h3 { min-height: 0; font-size: 23px; }
}
@media (max-width: 640px) {
    body.ui1-portal .ui1-nav__frame { width: min(100% - 22px, 1360px); min-height: 62px; gap: 8px; }
    body.ui1-portal .ui1-nav__brand .ui1-nav__logo { width: 104px; max-height: 38px; }
    body.ui1-portal .ui1-nav__brand-copy, body.ui1-portal .ui1-nav__charge, body.ui1-portal .ui1-nav__login { display: none; }
    body.ui1-portal .ui1-nav__register { padding: 9px 10px; font-size: 9px; }
    body.ui1-portal .ui1-nav__menu-toggle { width: 36px; height: 36px; }
    .ui1-hero { min-height: 670px; background-image: url('/img.php?theme=ui1&f=sm__full.jpg&v=20260831'); background-position: 57% top; }
    .ui1-hero::before { background: linear-gradient(90deg, rgba(17, 7, 8, .78), rgba(17, 7, 8, .22)), linear-gradient(0deg, rgba(17, 7, 8, .78), transparent 37%); }
    .ui1-age-rating { top: 16px; width: 58px; }
    .ui1-hero__content { width: min(100% - 32px, 500px); margin-top: 72px; padding-bottom: 106px; }
    .ui1-hero__eyebrow { max-width: 235px; font-size: 9px; line-height: 1.45; }
    .ui1-hero__title-art { width: min(350px, 88vw); max-height: 140px; }
    .ui1-hero h1 { font-size: 31px; }
    .ui1-hero__description { max-width: 270px; font-size: 13px; }
    .ui1-hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 370px; gap: 8px; }
    .ui1-action { min-width: 0; min-height: 60px; padding: 8px 9px; }
    .ui1-action > i { font-size: 20px; }
    .ui1-action span { font-size: 11px; }
    .ui1-action small { font-size: 7px; }
    .ui1-hero__account { display: grid; grid-template-columns: auto 1fr; max-width: 365px; font-size: 10px; }
    .ui1-hero__account a { grid-column: 2; margin-left: 0; color: #ffe490; }
    .ui1-hero__stats { margin-top: 16px; border-radius: 9px; }
    .ui1-hero__stats article { padding: 11px 9px; }
    .ui1-hero__stats strong { margin: 6px 0 3px; font-size: 12px; }
    .ui1-hero__stats small { font-size: 8px; }
    .ui1-hero__server-status strong { font-size: 10px; }
    .ui1-hero__server-status strong b { width: 6px; height: 6px; margin-right: 2px; }
    .ui1-section { padding-top: 54px; padding-bottom: 54px; }
    .ui1-section__heading { grid-template-columns: 1fr; }
    .ui1-section__heading a { justify-self: start; }
    .ui1-news__grid { grid-template-columns: 1fr; }
    .ui1-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ui1-news-card__image { height: 190px; }
    .ui1-character-stage, .ui1-character-panel { min-height: 460px; }
    .ui1-character-panel { display: block; padding: 27px 23px; }
    .ui1-character-panel::before { top: auto; right: 50%; bottom: 12px; width: 235px; height: 235px; transform: translateX(50%); }
    .ui1-character-panel > img { position: absolute; right: 50%; bottom: 0; width: min(90%, 300px); max-height: 270px; transform: translateX(50%); }
    .ui1-character-panel__copy > div { max-width: 260px; font-size: 12px; }
    .ui1-feature-grid { grid-template-columns: 1fr; }
    .ui1-feature-grid article { min-height: 0; }
    .ui1-cta { display: grid; padding-top: 38px; padding-bottom: 38px; }
    .ui1-cta__actions { width: 100%; }
    .ui1-cta__actions a { flex: 1; justify-content: center; }
    body.ui1-portal .ui1-portal-content { margin-top: 25px !important; padding: 20px !important; }
}
