* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans, Arial, sans-serif); font-size: 15px; line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .emp-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-height); padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--foreground); font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.25; }
button:hover, .emp-button:hover { background: var(--muted-surface); }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: var(--focus-ring-width) solid var(--ring); outline-offset: var(--focus-ring-offset); }
.emp-primary, .emp-platform [aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.emp-primary:hover, .emp-platform [aria-pressed="true"]:hover { background: var(--brand-hover); }
.emp-header, .emp-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 4%; }
.emp-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.emp-brand { display: inline-flex; gap: 12px; align-items: center; color: var(--foreground); font-weight: 750; }
.emp-main { width: 100%; margin: 0; padding: 32px 4% 48px; min-height: 75vh; }
.emp-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.emp-kicker { font-size: 11px; color: var(--muted-foreground); font-weight: 700; margin: 0 0 6px; }
h1 { font-size: 34px; margin: 0; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.25; margin: 0 0 16px; }
h1, h2, h3 { overflow-wrap: anywhere; }
h3 { font-size: 18px; margin: 0 0 12px; }
p { overflow-wrap: anywhere; }
.emp-platform { display: flex; gap: 6px; flex-shrink: 0; margin-top: 20px; }
.emp-platform button { width: 44px; height: 44px; min-width: 44px; padding: 8px; }
.emp-platform button img { display: block; width: 26px; height: 26px; object-fit: contain; }
.emp-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin: 28px 0; overflow-x: auto; }
.emp-tabs button { white-space: nowrap; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 0; background: transparent; color: var(--muted-foreground); gap: 8px; }
.emp-tabs [aria-current="page"] { color: var(--brand); border-color: var(--brand); }
#emp-status:empty { display: none; }
#emp-status { padding: 12px 16px; border-left: 3px solid var(--brand); background: var(--brand-soft); }
.emp-leader { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--brand); color: var(--on-brand); padding: 32px; margin-bottom: 32px; }
.emp-leader, .emp-round-status.emp-goal { border-radius: 8px; }
.emp-channel-card { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--foreground); }
.emp-channel-card > span:nth-child(2) { min-width: 0; flex: 1; }
.emp-channel-card strong { display: block; font-size: 18px; overflow-wrap: anywhere; }
.emp-channel-card small { display: block; color: var(--muted-foreground); font-size: 12px; margin-top: 2px; }
.emp-main:has(.emp-channel-card) > .emp-heading .emp-channel-link { display: none; }
.emp-channel-avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); }
.emp-channel-avatar img:not(.emp-icon) { width: 100%; height: 100%; object-fit: cover; }
.emp-leader h2 { font-size: 30px; }
.emp-command { grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); margin-bottom: 0; gap: 36px; }
.emp-command h2 a, .emp-command .emp-leader-link { color: white; }
.emp-command h2 { margin: 0; }
.emp-command .emp-person { margin-top: 20px; }
.emp-state-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.emp-command .emp-state-label .emp-icon, .emp-launch .emp-state-label .emp-icon, .emp-command .emp-leader-link .emp-icon, .emp-command .emp-badge img { filter: brightness(0) invert(1); }
.emp-command .emp-badge { color: white; }
.emp-command .emp-metrics { margin: 20px 0; gap: 20px; }
.emp-command .emp-metrics strong { font-size: 26px; }
.emp-leader-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.emp-shield { display: grid; justify-items: center; align-content: center; gap: 12px; text-align: center; padding: 20px 0 20px 30px; border-left: 1px solid #ffffff45; }
.emp-shield-symbol .emp-icon { width: 64px; height: 64px; filter: brightness(0) invert(1); }
.emp-shield strong { display: block; font-size: 36px; font-variant-numeric: tabular-nums; line-height: 1.2; min-height: 44px; }
.emp-shield p { font-size: 12px; margin: 0; max-width: 280px; color: #ffffffdc; }
.emp-launch .emp-button { margin-top: 20px; }
.emp-dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border); gap: 16px; padding: 24px 0; }
.emp-dashboard-metrics > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.emp-dashboard-metrics span { color: var(--muted-foreground); font-size: 12px; }
.emp-dashboard-metrics strong { display: block; color: var(--foreground); font-size: 23px; font-variant-numeric: tabular-nums; }
.emp-live-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; white-space: nowrap; }
.emp-live-label .emp-icon { width: 16px; height: 16px; flex-basis: 16px; }
.emp-contender { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 1.3fr) 40px; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.emp-contender .emp-name { color: var(--foreground); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.emp-chase { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 12px; }
.emp-race-track { display: flex; height: 6px; background: var(--muted-surface); grid-column: 1 / -1; overflow: hidden; border-radius: 3px; }
.emp-race-track i { background: var(--brand); height: 100%; }
.emp-race-track i + i { background: #17b88b; }
.emp-verification-steps { padding: 20px 0; border-block: 1px solid var(--border); }
.emp-verification-steps code { font-size: 15px; overflow-wrap: anywhere; }
.emp-verification-steps ol { padding-left: 22px; }
.emp-verification-steps li { margin: 10px 0; }
.emp-pin-preview { white-space: pre-wrap; line-height: 1.7; max-width: 640px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control); }
.emp-pin-preview blockquote { margin: 12px 0; border-left: 3px solid var(--brand); padding-left: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .emp-shield-symbol { animation: empire-shield-arrive 650ms ease-out both; }
  .emp-race-track { animation: empire-track-arrive 450ms ease-out both; transform-origin: left; }
  .emp-score-changed { animation: empire-score-change 900ms ease-out; }
  @keyframes empire-shield-arrive { from { opacity: 0; transform: translateY(8px) rotate(-8deg); } to { opacity: 1; transform: none; } }
  @keyframes empire-track-arrive { from { transform: scaleX(.85); opacity: .4; } to { transform: none; opacity: 1; } }
  @keyframes empire-score-change { from { background: #17b88b25; } to { background: transparent; } }
}
.emp-leader .emp-meta, .emp-leader .emp-kicker { color: var(--on-brand); opacity: .85; }
.emp-person { display: flex; align-items: center; gap: 16px; min-width: 0; }
.emp-person > div { min-width: 0; }
.emp-avatar { width: 48px; height: 48px; flex: 0 0 48px; object-fit: cover; border-radius: 50%; background: var(--surface-strong); display: grid; place-items: center; color: var(--foreground); font-size: 18px; font-weight: 750; }
.emp-leader .emp-avatar { width: 80px; height: 80px; flex-basis: 80px; font-size: 30px; }
.emp-metrics { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; margin: 18px 0; }
.emp-votes-details { display: grid; gap: 2px; justify-self: start; }
.emp-metrics .emp-votes-details .emp-meta { margin: 0; font-size: 11px; line-height: 1.4; }
.emp-votes-details b { font-weight: 600; font-variant-numeric: tabular-nums; }
.emp-metrics strong { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.emp-meta { color: var(--muted-foreground); font-size: 13px; }
.emp-list { border-top: 1px solid var(--border); }
.emp-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.emp-row strong { overflow-wrap: anywhere; }
.emp-row .emp-name { font-weight: 700; color: var(--foreground); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emp-row .emp-person { gap: 12px; }
.emp-score { text-align: right; font-variant-numeric: tabular-nums; }
.emp-score strong { display: block; font-size: 20px; }
.emp-badge { display: inline-flex; align-items: center; color: var(--brand); font-size: 12px; gap: 4px; }
.emp-badge img { width: 16px; height: 16px; }
.emp-section { margin-top: 32px; }
.emp-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.emp-form { display: grid; gap: 18px; max-width: 800px; padding: 24px 0; }
.emp-form label { display: grid; gap: 6px; font-weight: 600; align-content: start; }
input:not([type="checkbox"]), textarea, select { width: 100%; min-height: var(--control-height); border: 1px solid var(--border); border-radius: var(--radius-field); padding: 9px 12px; color: var(--foreground); background: var(--surface); }
textarea { min-height: 110px; resize: vertical; }
.emp-form label.emp-check { display: flex; align-items: flex-start; font-weight: 400; gap: 10px; }
input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--brand); }
.emp-detail { max-width: 920px; }
.emp-detail.emp-participant { max-width: 780px; width: 100%; }
.emp-profile-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.emp-back-link { padding: 8px 0; border: 0; background: transparent; color: var(--muted-foreground); font-size: 13px; }
.emp-back-link:hover { background: transparent; color: var(--brand); }
.emp-profile-toolbar .emp-row-tools { display: flex; flex-wrap: nowrap; gap: 6px; }
.emp-profile-identity { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.emp-detail .emp-profile-identity .emp-person { margin: 0; gap: 16px; }
.emp-profile-identity .emp-avatar { width: 76px; height: 76px; flex-basis: 76px; font-size: 28px; }
.emp-profile-identity h2 { margin: 2px 0 4px; font-size: 28px; }
.emp-profile-identity .emp-kicker { display: block; margin: 0; }
.emp-profile-crown { color: var(--brand); }
.emp-profile-bio { margin: 20px 0 0; max-width: 640px; white-space: pre-wrap; }
.emp-social-links { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: thin; }
.emp-social-links:empty { display: none; }
.emp-social-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 7px 10px; min-height: 36px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--foreground); font-size: 13px; flex-shrink: 0; }
.emp-social-link img { width: 20px; height: 20px; object-fit: contain; }
.emp-participant .emp-metrics { gap: 20px; margin: 24px 0 20px; padding-block: 18px; border-block: 1px solid var(--border); }
.emp-participant .emp-metrics > div { min-width: 0; }
.emp-participant .emp-metrics strong { font-size: 25px; line-height: 1.25; }
.emp-participant .emp-metrics .emp-meta { display: block; margin-top: 4px; }
.emp-profile-goal { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; margin-bottom: 22px; }
.emp-profile-progress { flex: 0 0 100%; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.emp-profile-progress > span { display: block; height: 100%; background: var(--brand); }
.emp-profile-primary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.emp-profile-primary button { min-height: 44px; min-width: 0; padding: 10px 12px; }
.emp-supported .emp-icon { -webkit-mask-image: url('/empire/assets/heart.svg'); mask-image: url('/empire/assets/heart.svg'); }
.emp-support-feedback { display: flex; align-items: center; gap: 12px; padding: 16px 0 4px; color: var(--brand); }
.emp-support-feedback p { margin: 3px 0 0; color: var(--muted-foreground); font-size: 13px; }
.emp-support-feedback strong { font-size: 14px; }
.emp-support-heart { flex: 0 0 32px; height: 32px; display: grid; place-items: center; }
.emp-support-heart .emp-icon { width: 28px; height: 28px; }
.emp-owner-actions { flex-wrap: nowrap; overflow-x: auto; padding-top: 16px; border-top: 1px solid var(--border); gap: 8px; }
.emp-owner-actions button { flex: 0 0 auto; font-size: 13px; }
.emp-case-target { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.emp-case-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.emp-case-answer { border-left: 3px solid var(--brand); padding-left: 14px; margin: 16px 0; }
.emp-case-answer p { margin: 6px 0; white-space: pre-wrap; }
.emp-case-received { padding: 32px 0; }
.emp-case-received > .emp-icon { width: 36px; height: 36px; color: var(--brand); margin-bottom: 16px; }
.emp-purchase-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); gap: 16px; }
.emp-purchase-form h3, .emp-purchase-form p { margin: 0; }
.emp-purchase-fields { display: grid; grid-template-columns: minmax(0,2fr) minmax(100px,1fr); gap: 12px; }
.emp-gift-settings { display: grid; gap: 14px; padding: 16px 0; border-block: 1px solid var(--border); }
.emp-gifts { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.emp-gifts h3 { font-size: 18px; }
.emp-gift { padding: 16px 0; border-bottom: 1px solid var(--border); }
.emp-gift--hidden { opacity: .65; }
.emp-gift p, .emp-gift-preview p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0; }
.emp-gift-count { font-size: 12px; color: var(--brand); white-space: nowrap; }
.emp-gift-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; max-width: 100%; overflow-wrap: anywhere; }
.emp-gift-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.emp-gift-footer button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.emp-gift-preview { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.emp-review-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-width: 640px; margin: 20px 0; }
.emp-review-filters label { font-size: 13px; display: grid; gap: 6px; }
.emp-review-context { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 16px 0; }
.emp-review-context > div { min-width: 0; }
.emp-review-context span, .emp-review-context small { display: block; color: var(--muted-foreground); font-size: 12px; }
.emp-review-context strong { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.emp-review-status { font-size: 12px; color: var(--muted-foreground); }
.emp-case-heading h3 { margin: 0; }
.emp-case-message { white-space: pre-wrap; }
.emp-evidence-links { display: grid; gap: 8px; font-size: 13px; margin: 16px 0; overflow-wrap: anywhere; }
.emp-verification-data { display: grid; gap: 12px; padding: 16px 0; border-block: 1px solid var(--border); }
.emp-verification-data dt { color: var(--muted-foreground); font-size: 12px; }
.emp-verification-data dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.emp-text-action { padding: 0; border: 0; background: transparent; color: var(--brand); min-height: 32px; font-size: 13px; overflow-wrap: anywhere; }
.emp-detail .emp-person { margin: 24px 0; }
.emp-empty { padding: 40px 0; max-width: 680px; }
.emp-empty p { color: var(--muted-foreground); }
.emp-quote { padding: 18px 0; border-block: 1px solid var(--border); }
.emp-footer { border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-foreground); flex-wrap: wrap; }
.emp-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted-foreground); font-weight: 600; white-space: nowrap; }
.emp-case { padding: 20px 0; border-bottom: 1px solid var(--border); }
.emp-case .emp-form { padding: 0; }
.emp-icon { width: 20px; height: 20px; flex: 0 0 20px; }
span.emp-icon { display: inline-block; background-color: currentColor; -webkit-mask: var(--emp-icon-url) center / contain no-repeat; mask: var(--emp-icon-url) center / contain no-repeat; filter: none !important; }
.emp-how { display: grid; grid-template-columns: minmax(0,1fr) 200px; grid-template-rows: auto auto; align-items: center; gap: 20px 24px; padding: 28px; margin-bottom: 20px; border-radius: 16px; background: var(--brand-soft); }
.emp-how-heading { align-self: start; }
.emp-how-heading h2 { font-size: 24px; margin: 0 0 8px; max-width: 680px; }
.emp-how-heading p { margin: 0; font-size: 15px; }
.emp-how-art { grid-column: 2; grid-row: 1 / 3; width: 100%; aspect-ratio: 1; position: relative; }
.emp-how-art > img:first-child { display: block; width: 100%; height: 100%; object-fit: contain; }
.emp-how-art .emp-how-logo { position: absolute; left: 39.7%; top: 19.6%; width: 20.8%; height: 20.8%; border-radius: 50%; }
.emp-how-points { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-self: start; }
.emp-how-points > div { display: flex; gap: 10px; align-items: start; }
.emp-how-points .emp-icon { color: var(--brand); margin-top: 3px; }
.emp-how-points p { margin: 0; color: var(--muted-foreground); font-size: 13px; }
.emp-how-points strong { display: block; color: var(--foreground); font-size: 14px; margin-bottom: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .emp-how--intro .emp-how-art { animation: empire-how-arrive 3800ms ease-out both; }
  .emp-support-feedback--new .emp-support-heart { animation: empire-heart-confirm 700ms ease-out; }
  .emp-participant { animation: empire-profile-open 220ms ease-out; }
  @keyframes empire-profile-open { from { transform: translateY(4px); } to { transform: none; } }
  @keyframes empire-heart-confirm { 0% { transform: scale(.65); } 45% { transform: scale(1.22); } 70% { transform: scale(.95); } 100% { transform: scale(1); } }
  .emp-how--intro .emp-how-points > div { animation: empire-how-copy 600ms ease-out both; }
  .emp-how--intro .emp-how-points > div:nth-child(2) { animation-delay: 130ms; }
  @keyframes empire-how-arrive { 0% { opacity: 0; transform: translateY(12px) rotate(3deg); } 25% { opacity: 1; transform: translateY(-3px) rotate(-1deg); } 65% { opacity: 1; transform: translateY(2px); } 100% { opacity: 1; transform: none; } }
  @keyframes empire-how-copy { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
h2 .emp-icon, h3 .emp-icon { vertical-align: -3px; margin-right: 8px; }
.emp-embedded .emp-footer { display: none; }
.emp-cabinet .emp-header,.emp-cabinet .emp-footer,.emp-cabinet #emp-menu { display:none!important; }
.emp-cabinet .emp-main { max-width:none!important;min-height:0!important;margin:0!important;padding:8px 4px 24px!important; }
.emp-cabinet body { background:transparent; }
.emp-header { position: sticky; top: 0; z-index: 30; min-height: 64px; padding: 10px 4%; }
.emp-header-start { display:flex; align-items:center; gap:12px; min-width:0; }
.emp-embedded .emp-header { padding-top:max(10px, var(--tg-content-safe-area-inset-top, 0px)); }
.emp-menu { width:min(320px, calc(100vw - 24px)); max-height:calc(100dvh - 32px); margin:16px auto 16px 12px; border:1px solid var(--border); border-radius:8px; padding:16px; background:var(--surface); color:var(--foreground); }
.emp-menu::backdrop { background:rgb(15 23 42 / 35%); }
.emp-menu-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.emp-menu nav { display:grid; gap:4px; }
.emp-menu nav a { display:block; padding:12px; border-radius:8px; color:var(--foreground); }
.emp-menu nav a:hover { background:var(--muted-surface); }
.emp-embedded .emp-main { padding-top: max(20px, var(--tg-content-safe-area-inset-top, 0px)); padding-bottom: max(24px, var(--tg-content-safe-area-inset-bottom, 0px)); min-height: 100dvh; }
.emp-game-intro { padding: 4px 0 20px; }
.emp-game-intro h2 { font-size: 32px; max-width: 760px; margin: 0; }
.emp-round-status.emp-goal { background: var(--brand); color: white; padding: 20px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 0; margin-bottom: 20px; }
.emp-goal-number { order: 1; }
.emp-goal .emp-on-blue { order: 2; }
.emp-goal-timing { grid-column: 1 / -1; order: 3; display: flex; justify-content: space-between; gap: 16px; }
.emp-editor-heading { flex-direction: row; align-items: center; margin: 16px 0; }
.emp-editor-heading h2 { margin: 0; font-size: 22px; }
.emp-round-status.emp-goal span { color: white; opacity: .85; }
.emp-goal .emp-icon { filter: brightness(0) invert(1); }
.emp-goal-number { display: flex; gap: 16px; align-items: center; }
.emp-goal-number > .emp-icon { width: 28px; height: 28px; flex-basis: 28px; }
.emp-goal .emp-goal-number strong { font-size: 30px; }
.emp-goal small { font-size: 16px; font-weight: 500; }
.emp-goal .emp-on-blue { background: white; color: var(--brand); border-color: white; }
.emp-goal .emp-on-blue .emp-icon { color: inherit; opacity: 1; filter: none; }
.emp-no-players { display: grid; justify-items: start; gap: 16px; padding: 24px 0; }
.emp-no-players > .emp-icon { width: 32px; height: 32px; }
.emp-no-players h3 { margin: 0; }
.emp-account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; }
.emp-account-head h2 { font-size: 22px; margin: 0 0 4px; }
.emp-account-section { padding: 24px 0; border-top: 1px solid var(--border); }
.emp-account-section h3 { margin: 0; }
.emp-account-section summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; }
.emp-account-section summary::-webkit-details-marker { display: none; }
.emp-account-section summary > span:first-child, .emp-account-preference > span { display: inline-flex; align-items: center; gap: 10px; }
.emp-account-section summary > span:last-child::after { content: '+'; margin-left: 12px; font-size: 20px; }
.emp-account-section[open] summary > span:last-child::after { content: '-'; }
.emp-account-section > .emp-actions:last-child { margin-bottom: 0; }
.emp-support-owner { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.emp-purchase-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.emp-purchase-row p { margin: 4px 0 0; }
.emp-account-preference { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding: 24px 0; }
.emp-invite { padding: 20px 0; margin-bottom: 24px; border-block: 1px solid var(--border); }
.emp-invite h2 { font-size: 20px; margin: 0; }
.emp-invite .emp-heading { flex-direction: row; align-items: center; gap: 12px; }
.emp-invite .emp-heading h2 { min-width: 0; }
.emp-invite-link { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 16px; max-width: 800px; }
.emp-profile-editor { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 1100px; }
.emp-profile-editor > div, .emp-profile-editor > .emp-check, .emp-profile-editor > .emp-notice { grid-column: 1 / -1; }
.emp-submit-area { display: grid; justify-items: start; gap: 12px; }
.emp-form-error { width: 100%; border: 1px solid var(--destructive, #dc2626); border-radius: 8px; color: #991b1b; background: #fff1f2; padding: 12px 14px; grid-column: 1 / -1; }
.emp-form-error p { margin: 0; font-size: 14px; }
.emp-form-error .emp-actions { margin: 10px 0 0; }
.emp-form-error .emp-button { color: #991b1b; border-color: #fca5a5; background: white; font-size: 13px; }
.emp-back { margin-bottom: 16px; }
.emp-icon-button { width: var(--icon-control-size); height: var(--icon-control-size); flex: 0 0 var(--icon-control-size); min-height: 0; padding: 0; }
.emp-row-tools { display: flex; gap: 6px; flex-wrap: nowrap; }
.emp-profile-photo { display: flex; align-items: center; gap: 20px; }
.emp-photo-preview { position: relative; flex: 0 0 96px; }
.emp-photo-preview .emp-avatar { width: 96px; height: 96px; font-size: 30px; }
.emp-photo-preview .emp-icon-button { position: absolute; right: -4px; bottom: -4px; }
.emp-link-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr) 40px; align-items: end; gap: 10px; margin: 0 0 12px; }
.emp-notice { background: var(--brand-soft); padding: 14px 16px; color: var(--foreground); border-left: 3px solid var(--brand); }
.emp-list-heading { margin: 28px 0 16px; }
.emp-round-status { display: grid; grid-template-columns: 100px 1fr 1fr; gap: 20px; padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.emp-round-status span { display: block; color: var(--muted-foreground); font-size: 12px; }
.emp-round-status strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.emp-list-heading h2 { margin: 0; }
.emp-launch { padding: 32px; background: var(--brand); color: var(--on-brand); max-width: none; margin-bottom: 32px; }
.emp-launch p { color: var(--on-brand); max-width: 650px; margin-bottom: 0; }
.emp-prelaunch { background: var(--brand); color: var(--on-brand); padding: 32px 36px 0; }
.emp-prelaunch-status { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 20px; }
.emp-prelaunch-status .emp-icon { filter: brightness(0) invert(1); }
.emp-prelaunch h2 { font-size: 38px; line-height: 1.15; max-width: 760px; margin-bottom: 16px; }
.emp-prelaunch > p { max-width: 640px; font-size: 16px; margin: 0; }
.emp-prelaunch .emp-actions { margin: 24px 0; }
.emp-on-blue { background: transparent; color: var(--on-brand); border-color: #ffffff80; }
.emp-on-blue:hover { background: #ffffff1a; }
.emp-prelaunch-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid #ffffff40; padding: 14px 0; font-size: 12px; }
.emp-before-start { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; margin-top: 32px; }
.emp-before-start h2 { font-size: 21px; margin-bottom: 20px; }
.emp-feature-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.emp-feature-row .emp-icon { margin-top: 2px; }
.emp-feature-row h3 { font-size: 15px; margin: 0 0 4px; }
.emp-feature-row p, .emp-prelaunch-account p { margin: 0; color: var(--muted-foreground); font-size: 14px; max-width: 600px; }
.emp-prelaunch-account { border-left: 1px solid var(--border); padding-left: 36px; }
.emp-prelaunch-account > button { margin-top: 20px; }
.emp-primary .emp-icon { filter: brightness(0) invert(1); }
.emp-prelaunch-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; }
.emp-prelaunch-note p { margin-top: 6px; font-size: 13px; }
.emp-rules h3 { margin-top: 32px; scroll-margin-top: 20px; }
.emp-protection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.emp-protection-grid > div { display: flex; justify-content: space-between; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.emp-protection-grid span { font-size: 13px; color: var(--muted-foreground); }
.emp-protection-grid strong { white-space: nowrap; }
.emp-form > button[type="submit"] { justify-self: start; }
.emp-review-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 20px 0; }
.emp-post-evidence { white-space: pre-wrap; border-left: 3px solid var(--brand); padding: 12px 16px; background: var(--surface); }
.emp-chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; overflow-x: auto; margin: 20px 0; }
.emp-chart figure { margin: 0; min-width: 30px; flex: 1; text-align: center; }
.emp-chart .emp-bar { background: var(--brand); min-height: 2px; }
.emp-chart figcaption { font-size: 10px; color: var(--muted-foreground); }
@media (max-width: 700px) {
  .emp-profile-toolbar { margin-bottom: 22px; gap: 8px; }
  .emp-profile-toolbar .emp-icon-button { width: 34px; height: 34px; flex-basis: 34px; }
  .emp-profile-identity .emp-avatar { width: 60px; height: 60px; flex-basis: 60px; font-size: 24px; }
  .emp-profile-identity h2 { font-size: 22px; }
  .emp-profile-bio { margin-top: 16px; font-size: 14px; }
  .emp-participant .emp-metrics { gap: 12px; margin-top: 20px; padding-block: 16px; }
  .emp-participant .emp-metrics strong { font-size: 24px; }
  .emp-participant .emp-metrics .emp-meta { font-size: 11px; }
  .emp-profile-primary { gap: 8px; }
  .emp-profile-primary button { font-size: 12px; padding: 10px 8px; gap: 6px; }
  .emp-profile-primary .emp-icon { width: 18px; height: 18px; flex-basis: 18px; }
  .emp-how { grid-template-columns: minmax(0,1fr) 112px; gap: 14px 8px; padding: 16px; }
  .emp-how-heading h2 { font-size: 19px; line-height: 1.25; }
  .emp-how-heading p { font-size: 13px; }
  .emp-how-heading { align-self: center; }
  .emp-how-art { grid-row: 1; }
  .emp-how-points { grid-column: 1 / -1; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .emp-how-points p { font-size: 12px; }
  .emp-how-points strong { font-size: 13px; margin-bottom: 2px; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { touch-action: manipulation; }
  input:not([type="checkbox"]), textarea, select { font-size: 16px; }
  input:not([type="checkbox"]), select { height: 44px; min-height: 44px; }
  textarea { height: 110px; min-height: 110px; max-height: 240px; }
  .emp-actions { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; }
  .emp-actions > * { flex-shrink: 0; white-space: nowrap; }
  .emp-form { gap: 14px; padding: 16px 0; }
  .emp-account-section, .emp-account-preference { padding-block: 18px; }
  .emp-game-intro { padding-bottom: 16px; }
  .emp-channel-card { padding: 12px; gap: 12px; margin-bottom: 18px; }
  .emp-channel-card strong { font-size: 16px; }
  .emp-channel-avatar { width: 44px; height: 44px; flex-basis: 44px; }
  .emp-game-intro h2 { font-size: 25px; }
  .emp-round-status.emp-goal { grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 20px 16px; gap: 20px 12px; }
  .emp-goal-number { grid-column: auto; gap: 10px; }
  .emp-goal-number > .emp-icon { display: none; }
  .emp-editor-heading { flex-direction: row; align-items: center; }
  .emp-goal .emp-goal-number strong { font-size: 28px; }
  .emp-goal .emp-on-blue { padding: 10px; font-size: 13px; }
  .emp-heading:has(> h1) { flex-direction: row; align-items: center; gap: 12px; }
  .emp-heading h1 { font-size: 24px; }
  .emp-channel-link span:not(.emp-icon) { display: none; }
  .emp-channel-link { padding: 8px; }
  .emp-tabs button { flex-direction: column; gap: 4px; }
  .emp-tabs .emp-icon { width: 18px; height: 18px; }
  .emp-invite-button { width: 34px; height: 34px; min-height: 34px; padding: 0; }
  .emp-invite-button span:not(.emp-icon) { display: none; }
  .emp-account-head { align-items: flex-start; }
  .emp-account-head .emp-button { font-size: 12px; padding: 8px; }
  .emp-account-head h2 { font-size: 18px; }
  .emp-account-head .emp-avatar { width: 36px; height: 36px; flex-basis: 36px; }
  .emp-account-head .emp-person { gap: 8px; }
  .emp-purchase-row { font-size: 12px; gap: 10px; }
  .emp-purchase-row .emp-meta { font-size: 11px; }
  .emp-account-section summary { font-size: 16px; }
  .emp-profile-editor { grid-template-columns: minmax(0,1fr); }
  .emp-round-status { grid-template-columns: 45px 1fr 1fr; gap: 10px; }
  .emp-round-status strong { font-size: 15px; }
  .emp-round-status span { font-size: 10px; }
  .emp-prelaunch { padding: 24px 20px 0; }
  .emp-prelaunch h2 { font-size: 27px; }
  .emp-prelaunch > p { font-size: 14px; }
  .emp-prelaunch .emp-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .emp-prelaunch-bottom { font-size: 11px; }
  .emp-before-start { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .emp-prelaunch-account { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
  .emp-main { padding: 24px 16px 40px; }
  h1 { font-size: 28px; }
  .emp-heading { align-items: flex-start; flex-direction: column; }
  .emp-heading.emp-editor-heading { flex-direction: row; align-items: center; }
  .emp-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 20px 0; }
  .emp-tabs button { font-size: 12px; padding: 10px 0; min-width: 0; }
  .emp-list-heading { flex-direction: row; align-items: center; gap: 10px; }
  .emp-list-heading h2 { font-size: 19px; }
  .emp-list-heading > button { font-size: 12px; flex-shrink: 0; padding: 8px 10px; }
  .emp-launch { padding: 24px 20px; }
  .emp-link-row { grid-template-columns: minmax(70px, 1fr) minmax(0, 1.7fr) 34px; gap: 6px; }
  .emp-link-row label { font-size: 12px; }
  .emp-link-row .emp-icon-button, .emp-row .emp-icon-button { width: 34px; height: 34px; flex-basis: 34px; }
  .emp-row-tools { gap: 4px; }
  .emp-protection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .emp-review-comparison { grid-template-columns: minmax(0, 1fr); }
  .emp-leader { padding: 18px 16px; grid-template-columns: minmax(0, 1fr); }
  .emp-command .emp-person { margin-top: 12px; }
  .emp-command .emp-metrics { margin: 14px 0; }
  .emp-command .emp-actions { margin: 12px 0 0; }
  .emp-leader h2 { font-size: 24px; }
  .emp-leader .emp-avatar { width: 56px; height: 56px; flex-basis: 56px; }
  .emp-command { gap: 14px; }
  .emp-command h2 { font-size: 23px; }
  .emp-shield { border-left: 0; border-top: 1px solid #ffffff45; padding: 20px 0 0; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 12px; text-align: left; justify-items: start; }
  .emp-shield-symbol { grid-row: 1 / 4; align-self: center; }
  .emp-shield-symbol .emp-icon { width: 36px; height: 36px; }
  .emp-shield strong { font-size: 28px; min-height: 34px; }
  .emp-shield > span { font-size: 12px; }
  .emp-shield p { grid-column: 2; }
  .emp-dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 20px 0; gap: 16px; }
  .emp-dashboard-metrics strong { font-size: 21px; }
  .emp-contender { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) 32px; gap: 8px; padding: 14px 0; }
  .emp-contender .emp-avatar { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
  .emp-contender .emp-person { gap: 6px; }
  .emp-contender .emp-name { font-size: 12px; }
  .emp-contender .emp-icon-button { width: 32px; height: 32px; }
  .emp-chase { grid-template-columns: 1fr; font-size: 10px; gap: 3px; }
  .emp-live-label { font-size: 10px; }
  .emp-race .emp-list-heading { gap: 6px; }
  .emp-race h2 { font-size: 17px; }
  .emp-row { grid-template-columns: 18px minmax(0, 1fr) auto auto; gap: 8px; padding: 14px 0; }
  .emp-row .emp-avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: 14px; }
  .emp-row .emp-person { gap: 8px; }
  .emp-row .emp-button { padding: 8px; font-size: 12px; min-height: var(--control-height-small); }
  .emp-row .emp-meta { font-size: 10px; }
  .emp-row .emp-score strong { font-size: 16px; }
  .emp-metrics { gap: 12px; }
  .emp-metrics strong { font-size: 22px; }
  .emp-header, .emp-footer { padding: 16px; }
  html, body, body * { scrollbar-width: none !important; }
  html::-webkit-scrollbar, body::-webkit-scrollbar, body *::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
@media (prefers-reduced-motion: no-preference) { button, .emp-button { transition: background-color 120ms ease, border-color 120ms ease; } #emp-content { animation: empire-reveal 180ms ease-out; } @keyframes empire-reveal { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } } }
