.account-panel {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.12fr);
  width: min(100%, 950px);
  margin: clamp(10px, 4vw, 44px) auto;
  background: #fffdf9;
  border: 1px solid #dbc8ce;
  border-radius: 26px;
  box-shadow: 0 20px 60px -34px #50213c70;
}
.account-panel .account-intro {
  display: flex;
  flex-direction: column;
  align-items: start;
  container-type: inline-size;
  padding: clamp(26px, 4.5vw, 54px);
  background: linear-gradient(180deg, #fff8ed 6%, #fff5edee 38%, #ffeadc6b 63%, transparent 78%),
              url('/hero/island.webp') 67% bottom / cover no-repeat #ffecd9;
}
.account-intro img { width: 124px; max-width: 50%; margin-bottom: clamp(32px, 5vw, 52px) }
.account-intro h1 { font-size: clamp(2rem, 19cqi, 4.5rem); line-height: 1.04; letter-spacing: -.045em; margin: 0; color: #301e35 }
.account-intro h1 span { color: #94294e }
.account-intro p { max-width: 25ch; font-size: .97rem; line-height: 1.5; color: #4e3749; margin-top: 16px }
.account-panel #account-form { align-self: center; padding: clamp(25px, 3.7vw, 48px); margin: 0; min-width: 0 }
.account-panel #account-form-title { font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.12; margin: 0 0 18px }
.account-contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px }
.account-contact > div { min-width: 0 }
.account-panel .account-actions { margin-top: 22px }
.account-panel .avatar-choice, .profile-edit .avatar-choice {
  gap: 14px; margin: 10px 0 17px; padding: 12px 14px; border: 1px solid #e6d7da;
  border-radius: 15px; background: linear-gradient(110deg, #fff4eb, #fffaf8);
}
.account-panel .avatar-circle, .profile-edit .avatar-circle {
  width: 64px; height: 64px; border: 1px dashed #af7180; box-shadow: inset 0 0 0 3px #fff8f1;
  background: #f6dee0; color: #7f294b;
}
.avatar-choice label[for="avatar-file"] { color: #762c49; font-weight: 750 }
.account-panel :is(input:not([type=file]), select), .profile-edit :is(input:not([type=file]), select), .locker-form .look-search {
  min-height: 46px; border: 1px solid #cbbac6; border-radius: 10px; background: #fff; color: #392b39;
}
.account-panel :is(input:not([type=file]), select):focus-visible, .profile-edit :is(input:not([type=file]), select):focus-visible,
.locker-form .look-search:focus-visible { border-color: #94294e; outline: 2px solid #94294e50; outline-offset: 1px }
.account-panel #reveal:focus-visible { border-radius: 7px; outline-offset: -4px }
.account-panel form, .account-intro h1 span, .account-actions { animation: none }

.profile-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; overflow: hidden;
  padding: clamp(22px, 4vw, 44px); margin-bottom: 18px; border: 1px solid #dbc7cd; border-radius: 24px;
  background: linear-gradient(104deg, #fff9f1 25%, #fff3e8f0 54%, #f8d1c866 100%), url('/hero/island.webp') center 43% / cover;
}
.profile-summary > div:first-child { min-width: 0 }
.profile-summary h1 { margin: 0; font: 800 .72rem/1.4 Montserrat, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: #863450 }
.profile-summary .welcome { margin: .3em 0; gap: 14px; color: #332035; font: 700 clamp(1.85rem, 4vw, 3.3rem)/1.1 Oswald, Impact, sans-serif }
.profile-summary .face { width: clamp(44px, 5vw, 62px); height: clamp(44px, 5vw, 62px); border: 2px solid #fff; box-shadow: 0 2px 8px #6430482b }
.profile-summary p { overflow-wrap: anywhere; margin: .5em 0 0; color: #5c4555; font-size: .94rem }
.profile-wallet { flex: none; display: grid; gap: 3px; min-width: 120px; max-width: 100%; padding: 14px 19px; border-radius: 16px; background: #fff9f4ee; border: 1px solid #d1acae }
.profile-wallet > span { color: #654a5c; font-size: .83rem; font-weight: 700 }
.profile-wallet strong { overflow-wrap: anywhere; font: 700 clamp(1.45rem, 2.6vw, 2.25rem)/1.2 Oswald, Impact, sans-serif }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 16px; align-items: start }
.profile-grid > .box { min-width: 0; margin: 0 }
.profile-grid h2 { margin: 0 0 18px; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.18 }
.profile-grid .empty { padding: 20px 14px }
.profile-tournaments { grid-column: 1; grid-row: 1 }
.profile-history { grid-column: 1; grid-row: 2 }
.profile-edit { grid-column: 2; grid-row: 1 / 3 }
.profile-edit #sv { margin-top: 18px }
.profile-edit #photo-status:not(:empty) { color: #633a50; margin: 10px 0 }
.welcome .face { box-shadow: 0 0 0 3px #fffcf6, 0 0 0 4px #e3cad1 }
.box.wardrobe-links {
  border: 1px solid #d7c0ce; border-inline-start: 5px solid #983657; border-radius: 18px;
  background: linear-gradient(105deg, #fffaf4 22%, #faeee9 77%, #f0e4f2); padding: clamp(16px, 2.4vw, 26px);
}
.wardrobe-links h3 { font-size: clamp(1.35rem, 2.45vw, 1.9rem); line-height: 1.15; margin-bottom: 3px }

.fh-feature::backdrop { background: #26152ec7 }
.locker-dialog {
  background: #fffaf5; border: 1px solid #e0cbd2; border-radius: 22px;
  box-shadow: 0 24px 85px -18px #21112690; color: #322037;
}
.locker-head { gap: 12px; border-bottom: 1px solid #e3d3d8; padding-bottom: 12px }
.locker-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); letter-spacing: -.025em; line-height: 1.12 }
.fh-feature .fh-close { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid #d4bdc9; background: #fffcf7; color: #56384b }
.locker-showcase { background: #fff5f0; border-radius: 16px; border-color: #dfc7d2; padding: 4px }
.locker-dialog .locker-stage {
  border-radius: 12px; background: linear-gradient(155deg, #fff4d9bb, #ffddcd66 58%, #bca8d466),
    linear-gradient(180deg, #f2d7e3 0%, #f9e2e2 73%, #ebcedb 74%, #d5bed7);
}
.locker-dialog .locker-pad { background: #9e789450; box-shadow: 0 4px 20px #9e789435 }
.look-caption { padding: 14px 12px 10px }
.look-caption h3 { font-size: clamp(1.3rem, 2.7vw, 1.75rem) }
.locker-mode:not(:empty) { font-size: .73rem; font-weight: 700; color: #6f3550; padding: 4px 8px; background: #f2dddF; border-radius: 6px }
.look-tabs { border: 1px solid #e3cfd8; background: #f1e7e9; border-radius: 12px }
.look-tabs button { min-height: 40px; border-radius: 8px }
.look-tabs button[aria-pressed=true] { color: #85284a; background: #fffaf6; box-shadow: 0 1px 5px #65384930 }
.look-items { gap: 8px; scrollbar-color: #ba91a6 transparent; scrollbar-width: thin }
.look-option { border: 1px solid #decbd4; border-radius: 10px; color: #402c3d }
.look-option img,.look-none { background: linear-gradient(145deg, #fff1e3, #f1e3ea 75%, #dfd4e7) }
.look-option[aria-pressed=true] { border-color: #922e53; box-shadow: 0 0 0 1px #922e53 }
.locker-stage-note,.locker-msg { line-height: 1.4 }
.fh-feature :is(button,input):focus-visible { outline: 2px solid #a23b64; outline-offset: 1px }
.locker-orbit input[type=range] { accent-color: #963356; min-height: 28px }

.season-dialog {
  color: #fff7ef; border: 1px solid #bd8199;
  background: linear-gradient(178deg, #301c32ed 12%, #512440ed 46%, #2c1e3bda 100%),
    url('/hero/island.webp') center bottom / cover #301e35;
}
.season-dialog .fh-close,.season-dialog .story-toggle { color: #fff8ee; border-color: #d7b5c77d; background: #331e35c9 }
.story-kicker { color: #ffd3ad; font-size: .74rem }
.story-year { color: #ffffff18; right: 2%; top: 9%; font-family: Oswald, Impact, sans-serif; letter-spacing: -.06em }
.story-bars i { background: #ffe0bc }
.season-dialog .story-name { letter-spacing: -.035em; font-size: clamp(2.2rem, 7vw, 3.4rem) }
.season-dialog .season-stats div { background: #27182db3; border: 1px solid #d7abc23a }
.season-dialog .season-stats dd { color: #ffe2bc; font-family: Oswald, Impact, sans-serif }
.season-dialog .story-toggle { min-height: 44px; border-radius: 10px; padding: 7px 22px }
.season-dialog :is(button,input):focus-visible { outline-color: #ffcfac }

@media (max-width: 720px) {
  .account-panel { grid-template-columns: 1fr; width: min(100%, 510px); margin: 8px auto 22px; border-radius: 20px }
  .account-panel .account-intro {
    padding: 22px clamp(20px, 5vw, 32px);
    background: linear-gradient(90deg, #fff6ed 15%, #fff3e8eb 48%, #ffe6da40 100%), url('/hero/island.webp') center 47% / cover;
  }
  .account-intro img { width: 96px; margin-bottom: 14px }
  .account-intro h1 { font-size: clamp(2.55rem, 9vw, 3.85rem) }
  .account-intro p { margin-top: 8px; font-size: .88rem }
  .account-panel #account-form { padding: 22px clamp(18px, 5vw, 32px) }
  .profile-grid { grid-template-columns: minmax(0, 1fr) }
  .profile-grid > .box { grid-area: auto }
}
@media (max-width: 470px) {
  .profile-summary { align-items: start; flex-direction: column; gap: 15px }
  .profile-wallet { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 7px 12px; border-radius: 9px }
  .account-contact { grid-template-columns: minmax(0, 1fr) }
  .wardrobe-links .row { display: grid; grid-template-columns: 1fr; width: 100% }
  .look-option>span:last-child { padding: 5px 4px; font-size: .71rem }
}
@media (prefers-reduced-motion: no-preference) {
  .look-tabs button,.look-option,.fh-close,.avatar-circle,.story-toggle { transition: background-color .18s, border-color .18s, box-shadow .18s }
  .look-option img { transition: transform .22s ease-out }
  .fh-feature[open] { animation: player-dialog-in .22s cubic-bezier(.2,.78,.22,1) }
  .season-dialog[data-scene="1"] .season-stats, .season-dialog[data-scene="2"] .season-stats { animation: player-dialog-in .28s ease-out }
  @keyframes player-dialog-in { from { opacity: 0; transform: translateY(7px) } to { opacity: 1; transform: none } }
  @media (hover: hover) {
    .look-option:hover img { transform: scale(1.04) }
    .fh-close:hover,.look-option:hover,.avatar-choice:hover .avatar-circle { border-color: #9a4665 }
  }
}
