/* Dedicated touch presentation. Desktop layout rules never load at this width. */
:root { color-scheme: dark; font-family: Barlow, 'Segoe UI', sans-serif; font-synthesis: none; background: #182642; color: #f5f8ff; --display: Bungee, sans-serif; --heavy: Barlow, sans-serif; --blue: #4c73e8; --line: #3c4f6b; --muted: #b3c1d6; --subtle: #b4caff; --text: #f5f8ff; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-size: 16px; line-height: 1.5; }
button, input, select { font: inherit; }
button, a, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: #7295ff33; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .45; cursor: default; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
:where(button, a, input, summary, [tabindex]):focus-visible { outline: 3px solid #769dff; outline-offset: 3px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.muted { color: var(--muted); }
.topbar { background: #182642; border-bottom: 1px solid var(--line); padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.topbar-inner { position: relative; }
.brand-lockup { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 9px; font: 400 20px/1 var(--display); min-height: 48px; }
.trace-logo { width: 35px; height: 35px; object-fit: contain; }
.ecosystem-badge { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--subtle); }
nav { display: grid; grid-template-columns: .9fr 1.4fr .7fr; gap: 8px; border-top: 1px solid #30415e; }
nav > button, .nav-menu > summary { display: flex; align-items: center; justify-content: center; min-height: 48px; font-size: 14px; font-weight: 700; }
nav .nav-menu { min-width: 0; }
.nav-menu summary span { font-size: 11px; background: #2c4063; border-radius: 3px; padding: 0 5px; margin-left: 6px; }
.menu-panel { position: absolute; top: 100%; left: 0; right: 0; max-height: 65dvh; overflow-y: auto; overscroll-behavior: contain; background: #223451; border: 1px solid #536b91; padding: 12px; z-index: 30; box-shadow: 0 12px 28px #0b142caa; }
.history-item { display: block; text-align: left; width: 100%; padding: 13px 8px; border-bottom: 1px solid #3c4f6b; }
.history-item strong { display: block; overflow-wrap: anywhere; font-size: 15px; }
.history-item small { display: block; color: var(--muted); margin-top: 5px; font-size: 12px; }
.about-panel { padding: 20px; }
.about-panel p, .about-panel small { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.6; }
main { width: 100%; flex: 1; padding: 25px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); }
.home { text-align: center; }
.home-brand { display: flex; justify-content: center; align-items: center; gap: 10px; }
.home-brand > img { width: 64px; height: 64px; object-fit: contain; }
.home-brand > div { text-align: left; min-width: 0; }
.home-brand h1 { font: 400 clamp(22px, 7.2vw, 38px)/1.2 var(--display); letter-spacing: -.8px; text-shadow: 1px 2px #b84741; }
.home-brand p { font-size: 9px; letter-spacing: 1.1px; font-weight: 800; text-transform: uppercase; color: var(--subtle); margin-top: 7px; }
.home-tagline { margin: 17px auto 25px; max-width: 330px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.upload-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.upload-heading h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--subtle); padding: 12px 8px; border-bottom: 3px solid #95b0ff; }
.upload-heading > span { font-size: 12px; color: var(--muted); }
.public-scan-notice { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 15px 4px 5px; }
.public-scan-notice strong { display: block; color: #f5f8ff; font-size: 14px; margin-bottom: 5px; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 10px 25px; cursor: pointer; }
.dropzone input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.upload-art { width: 96px; height: 96px; object-fit: contain; margin: 0 0 16px; }
.dropzone > strong { font: 400 19px/1.5 var(--display); overflow-wrap: anywhere; }
.dropzone > span { display: block; width: 100%; margin-top: 18px; }
.browse-text { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 14px 22px; background: #4c73e8; font: 400 15px/1.5 var(--display); box-shadow: 3px 4px #304b93; }
.dropzone small { font-size: 10px; letter-spacing: .6px; margin-top: 19px; color: var(--muted); }
.dropzone.dragging { outline: 3px dashed #9fbfff; }
.home-controls { display: flex; align-items: flex-start; justify-content: space-between; border-top: 1px solid var(--line); gap: 12px; }
.scan-options { text-align: left; flex: 1; }
.scan-options summary { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; color: var(--muted); }
.scan-options summary:after { content: '+'; margin-left: 10px; }
.scan-options[open] summary:after { content: '−'; }
.options { padding: 0 0 16px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 54px; color: var(--muted); font-size: 14px; }
.check input { accent-color: #4c73e8; width: 22px; height: 22px; flex-shrink: 0; }
.text-button { color: var(--subtle); min-height: 48px; padding: 8px 4px; font-size: 14px; font-weight: 700; }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; margin: 22px auto 0; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: left; }
.privacy-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.home-limit { font-size: 12px; margin: 14px 0 0; color: #a0b3ce; line-height: 1.6; }
.site-footer { padding: 18px 16px calc(22px + env(safe-area-inset-bottom)); color: #a0b3ce; font-size: 11px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid #2d3f5e; }
.site-footer span + span:before { content: '/'; margin-right: 10px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 16px; font-size: 15px; font-weight: 800; border: 1px solid #526988; border-radius: 2px; }
.primary-button { background: #4c73e8; border-color: #4c73e8; color: white; box-shadow: 2px 3px #304b93; }
.secondary-button { color: #f5f8ff; }
.report-heading { display: grid; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.report-file { display: flex; gap: 10px; align-items: center; min-width: 0; }
.report-file > div { min-width: 0; }
.pack-tile { width: 34px; flex-shrink: 0; }
.pack-tile img { width: 34px; height: 34px; object-fit: contain; }
.report-heading h1 { font-size: 20px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.report-heading p { color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 6px; }
.report-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.report-scan-notice { font-size: 12px; color: var(--muted); margin-top: 13px; }
.report-context { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin: 20px 0 25px; font-size: 13px; color: var(--muted); }
.visibility-label { padding: 5px 8px; font-size: 10px; font-weight: 800; letter-spacing: 1px; background: #2b4168; color: #ccdcfa; }
.report-context a { color: #b6ceff; text-decoration: underline; min-height: 44px; display: flex; align-items: center; }
.report-desktop { display: grid; gap: 25px; }
.overview-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1px; line-height: 1.6; color: var(--subtle); }
.overview-heading img { width: 75px; height: 75px; object-fit: contain; }
.report-banner h2 { font-size: 32px; line-height: 1.12; font-weight: 900; letter-spacing: -.5px; overflow-wrap: anywhere; }
.report-banner p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 14px; }
.simple-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 23px 0 0; padding: 18px 0; border-block: 1px solid var(--line); }
.simple-stats > div { min-width: 0; }
.simple-stats strong { display: block; font: 400 27px/1.3 var(--display); overflow-wrap: anywhere; }
.simple-stats span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 6px; }
.review-notice { display: flex; align-items: flex-start; gap: 12px; border-left: 4px solid #86adff; background: #263e65; padding: 16px; margin-top: 20px; }
.review-icon { font: 400 27px/1.2 var(--display); }
.review-notice h2 { font-size: 19px; line-height: 1.4; }
.review-notice p { color: #cfddf4; font-size: 14px; line-height: 1.6; margin-top: 5px; }
.result-limit { color: var(--muted); font-size: 12px; margin-top: 13px; }
.scan-sheet { --text:#203149; --muted:#526879; --line:#c0cdd4; --subtle:#2858b3; color-scheme: light; color: var(--text); background: #edf1ef; border-top: 6px solid #6388f2; box-shadow: 4px 5px #101a30; min-width: 0; }
.sheet-masthead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
.sheet-brand { display: flex; align-items: center; gap: 7px; font: 400 15px/1.2 var(--display); }
.sheet-brand .trace-logo { width: 26px; height: 26px; }
.sheet-masthead > span:nth-child(2) { font-size: 8px; font-weight: 700; letter-spacing: .8px; max-width: 68px; text-align: right; }
.sheet-registration { display: none; }
.sheet-body { padding: 23px 16px; }
.card-title h2 { font: 400 24px/1.4 var(--display); letter-spacing: -.5px; }
.heading-dot { color: #4c73e8; }
.card-title > span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
#creator-ranking { overflow: visible; }
.creator-row { display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 9px 13px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.creator-index { display: none; }
.creator-avatar { grid-column: 1; grid-row: 1; display: grid; place-items: center; width: 46px; height: 50px; position: relative; overflow: hidden; transform: rotate(-3deg); border: 1px solid #718db85c; box-shadow: 3px 3px #1d365829; color: #21364f; font-weight: 900; font-size: 25px; }
.creator-row:nth-child(even) .creator-avatar { transform: rotate(3deg); }
.creator-avatar svg { width: 28px; height: 28px; }
.creator-avatar img, .profile-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #dfe8ed; }
.creator-avatar.image-ready > svg, .profile-picture.image-ready > span { visibility: hidden; }
.creator-info { grid-column: 2; grid-row: 1; min-width: 0; }
.creator-name { display: block; font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: -.4px; overflow-wrap: anywhere; }
.creator-info small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.creator-meter { display: block; height: 6px; background: #d2dddf; margin-top: 12px; }
.creator-meter > span { display: block; height: 100%; position: relative; }
.creator-meter > span:after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg,transparent 0 6px,#edf1ef 6px 8px); }
.creator-share { grid-column: 2; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 5px 0; }
.creator-share strong { font: 400 28px/1.3 var(--display); letter-spacing: -1px; }
.creator-share small { color: var(--muted); font-size: 13px; }
.creator-public-context { grid-column: 1 / -1; min-width: 0; margin-top: 13px; }
.profile-section-label { font-size: 10px; font-weight: 800; letter-spacing: 1px; margin: 14px 0 9px; color: #526879; }
.profile-games { display: grid; gap: 8px; }
.profile-game { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 10px; border: 1px solid #c2ced5; background: #e1e8eb; }
.profile-game > span:last-child { min-width: 0; }
.profile-game strong { display: block; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.profile-game small { display: block; font-size: 12px; color: #526879; margin-top: 4px; line-height: 1.4; }
.profile-picture { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; background: #bdcddd; overflow: hidden; }
.profile-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-group { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px 6px 6px; background: #dce5eb; max-width: 100%; }
.profile-group .profile-picture { width: 32px; height: 32px; }
.profile-group strong { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.profile-empty, .profile-checked, .creator-context-note, .ranking-note { font-size: 12px; color: #526879; line-height: 1.65; margin-top: 13px; }
.summary-footer { padding: 20px 16px; border-top: 1px solid var(--line); color: #526879; font-size: 13px; line-height: 1.6; }
.fingerprint-line { margin-top: 17px; }
#report-fingerprint { display: block; font: 10px/1.7 Consolas, monospace; overflow-wrap: anywhere; }
.fingerprint-line a { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; font-weight: 700; color: #2858b3; text-decoration: underline; text-underline-offset: 3px; }
.file-history-panel { padding: 20px 16px; border-top: 2px dashed var(--line); }
.file-history-heading h2 { font: 400 22px/1.4 var(--display); }
.file-history-heading > span, #file-selection-note { font-size: 12px; color: #526879; }
#file-selection-note { margin: 12px 0; }
.file-history-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border-top: 1px solid var(--line); padding: 17px 0; font-size: 14px; }
.file-history-row small { display: block; font-size: 12px; color: #526879; margin-top: 4px; }
.file-history-row > span:last-child { color: #2858b3; font-weight: 700; }
.sheet-bottom { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font: 7px/1.6 Consolas, monospace; color: #526879; }
.registration-bars { display: none; }
.progress-panel { text-align: center; margin: 48px 0; }
.scan-orbit img { width: 80px; height: 80px; object-fit: contain; }
.progress-panel h1 { margin-top: 25px; font: 400 25px/1.4 var(--display); }
.progress-panel p { color: var(--muted); margin-top: 15px; overflow-wrap: anywhere; }
.progress-track { height: 8px; background: #344968; overflow: hidden; margin: 25px 0; }
.progress-track div { height: 100%; width: 10%; background: #88a9ff; }
.progress-panel button { margin-top: 25px; }
.share-dialog { color-scheme: light; width: calc(100% - 24px); max-width: 540px; max-height: 88dvh; overflow-y: auto; padding: 30px 22px; color: #203149; background: #edf1ef; border: 1px solid #bac9d4; border-top: 6px solid #6388f2; }
.share-dialog::backdrop { background: #091326bd; }
.share-dialog .eyebrow { color: #2858b3; margin: 10px 0; }
.share-dialog h2 { font: 400 25px/1.4 var(--display); }
.share-dialog p { font-size: 15px; line-height: 1.6; color: #526879; margin-top: 15px; }
.share-dialog .primary-button { width: 100%; margin-top: 23px; }
.close-button { position: absolute; right: 3px; top: 3px; width: 48px; height: 48px; font-size: 27px; }
#share-link-area { margin-top: 20px; }
#share-link-area label { display: block; margin-bottom: 8px; }
input[type=text] { width: 100%; padding: 12px; font-size: 16px; background: #fff; color: #203149; border: 1px solid #7e94aa; }
#share-error { color: #9e263a; }
.error-box { margin-top: 22px; border-left: 4px solid #e4a19c; background: #412c3c; color: #ffd9d5; padding: 16px; font-size: 15px; overflow-wrap: anywhere; }
.empty-state { color: var(--muted); padding: 30px 0; }
.toast { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; right: 16px; z-index: 100; padding: 16px; background: #2b4168; border: 1px solid #6888b6; font-size: 14px; box-shadow: 0 4px 20px #101a3099; }
.file-drop-overlay { position: fixed; inset: 12px; z-index: 100; display: grid; place-items: center; text-align: center; pointer-events: none; background: #182642f5; border: 3px dashed #9fbfff; padding: 20px; }
.file-drop-overlay img { display: block; margin: 0 auto 20px; }
.file-drop-overlay strong { font: 400 24px/1.4 var(--display); display: block; }
.file-drop-overlay p { font-size: 13px; color: var(--muted); margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
