:root { color-scheme: dark; --cursor-color: #5ab8ea; --text: #e7edf6; --muted: #9caec2; --accent: #5ab8ea; --line: rgba(164,190,219,.16); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100svh; background: #07111e; color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .5; }
a:focus-visible,button:focus-visible,input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.backdrop,.background-video,.shade { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.backdrop { background: #07111e url('assets/profile/poster.jpg') center / cover no-repeat; }
.background-video { object-fit: cover; opacity: 0; transition: opacity .5s; }
.background-video.is-playing { opacity: 1; }
.shade { background: linear-gradient(180deg,rgba(3,10,18,.55),rgba(3,10,18,.85)); }
.entry { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 80px 24px; }
.entry-back { position: absolute; left: 28px; top: 24px; min-height: 44px; display: flex; align-items: center; font-size: 14px; color: var(--muted); }
.entry-content { width: min(100%,360px); text-align: center; }
.eyebrow { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.entry h1 { margin: 0; font-size: clamp(44px,10vw,64px); font-weight: 650; letter-spacing: -.06em; }
h1 span,h2 span { color: var(--accent); }
.entry-caption { color: var(--muted); margin: 20px 0 36px; }
.enter-button { width: 100%; min-height: 50px; padding: 14px 20px; background: #dcebf5; color: #0a1825; border: 1px solid #dcebf5; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.enter-button:hover { background: #fff; }
.quiet-button { min-height: 44px; margin-top: 12px; padding: 10px 20px; border: 0; background: none; color: var(--muted); font-size: 14px; }
.quiet-button:hover { color: var(--text); }
.entry-note { font-size: 12px; color: var(--muted); margin-top: 24px; }
.profile-shell { position: relative; width: min(100% - 40px,580px); margin: auto; padding: 32px 0; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); }
.media-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.media-controls button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); background: rgba(8,18,29,.85); border-radius: 6px; font-size: 12px; }
.volume-label { display: grid; gap: 2px; padding: 4px 0 4px 8px; color: var(--muted); font-size: 11px; }
.volume-label input { width: 70px; height: 24px; margin: 0; accent-color: var(--accent); }
.profile-card { overflow: hidden; background: rgba(8,20,34,.92); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.profile-banner { height: 150px; position: relative; background: #09213c url('assets/profile/discord-reference.png') center top / 100% auto no-repeat; }
.profile-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent,rgba(8,20,34,.6)); }
.profile-banner > span { position: absolute; top: 18px; right: 20px; padding: 5px 8px; color: #d4e8f9; font: 11px ui-monospace,monospace; background: rgba(3,12,22,.7); border-radius: 4px; }
.profile-body { padding: 0 28px 12px; }
.identity-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -42px 0 22px; position: relative; }
.avatar { flex: 0 0 104px; width: 104px; height: 104px; border: 5px solid #081422; border-radius: 50%; background: #09213c url('assets/profile/discord-reference.png') -9px -59px / 310px auto no-repeat; }
.status-note { max-width: 225px; margin: 34px 0 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #172332; color: #d8e2ec; font-size: 13px; line-height: 1.5; }
.profile-body h2 { margin: 0; font-size: clamp(32px,7vw,42px); line-height: 1.1; letter-spacing: -.045em; font-weight: 650; }
.profile-caption { margin: 16px 0; color: #b7c8d9; font-size: 15px; }
.interests { display: flex; gap: 16px; padding: 0; margin: 20px 0 26px; list-style: none; color: var(--accent); font: 12px ui-monospace,monospace; }
.discord-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #101e30; }
.panel-label { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.discord-name { margin: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.discord-panel button { flex-shrink: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: #192c43; font-size: 13px; }
.discord-panel button:hover,.media-controls button:hover { border-color: #5d7896; }
.profile-links { margin-top: 20px; }
.profile-links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.profile-links a:last-child { border-bottom: 0; }
.profile-links a:hover { color: var(--accent); }
.profile-links small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.feedback { min-height: 20px; color: var(--muted); margin: 12px 0 0; font-size: 12px; line-height: 1.5; }
.profile-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; color: #a1b0c0; font-size: 12px; }
.no-script { position: relative; text-align: center; padding: 20px; }
@media (max-width: 480px) {
  .profile-shell { width: calc(100% - 28px); padding-top: 16px; }
  .profile-body { padding-inline: 20px; }
  .profile-banner { height: 112px; }
  .identity-row { gap: 12px; }
  .status-note { font-size: 12px; padding: 9px 10px; }
  .avatar { flex-basis: 94px; width: 94px; height: 94px; background-size: 285px auto; background-position: -9px -55px; }
  .discord-panel { padding: 14px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; } .background-video { display: none; } }

/* Safe insets apply independently from the portfolio stylesheet. */
html { -webkit-text-size-adjust: 100%; }
.profile-shell { padding-top: max(24px, env(safe-area-inset-top, 0px)); padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); width: min(calc(100% - 28px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)), 580px); }
.entry-back { top: calc(16px + env(safe-area-inset-top, 0px)); left: max(20px, env(safe-area-inset-left, 0px)); }
.entry { padding-top: calc(80px + env(safe-area-inset-top, 0px)); padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 360px) { .profile-body { padding-inline: 16px; } .status-note { max-width: 148px; } .media-controls { gap: 6px; } }
