.fm-player-profile-link {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    padding: 4px 14px;
}
.fmcm-nav-chips .fm-player-profile-link {
    padding: 0;
}
.fm-player-profile-link a,
.fmcm-nav-chips .fm-player-profile-link a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #813348;
    border-radius: 999px;
    background: #813348;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}
.fm-player-profile-link a:hover {
    background: #602537;
    color: #fff;
}
.fm-profile-dialog,
.fm-personal-profile,
.fm-profile-track {
    --fm-profile-surface: #fffdfa;
    --fm-profile-soft: #f8eeef;
    --fm-profile-text: #32212a;
    --fm-profile-accent: #813348;
    --fm-profile-on-accent: #fff;
    --fm-profile-border: #b9929f;
    --fm-profile-focus: #17577b;
    box-sizing: border-box;
    color: var(--fm-profile-text);
}
.fm-profile-dialog,
.fm-personal-profile {
    background: var(--fm-profile-surface);
    border: 1px solid var(--fm-profile-border);
    border-radius: 16px;
    padding: clamp(16px, 4vw, 28px);
}
.fm-profile-dialog {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    width: min(480px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    margin: auto;
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: 0 16px 52px #21141b50;
}
.fm-profile-dialog::backdrop {
    background: #21141b9c;
}
.fm-personal-profile {
    width: min(100% - 24px, 940px);
    margin: 20px auto;
    scroll-margin-top: 110px;
}
.fm-profile-heading {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
}
.fm-profile-dialog h2,
.fm-personal-profile h2,
.fm-personal-profile h3 {
    color: var(--fm-profile-text);
    margin: 0 0 8px;
    line-height: 1.2;
    text-wrap: balance;
}
.fm-personal-profile h3 {
    margin-top: 20px;
}
.fm-profile-game-prompt {
    padding: 14px 16px;
    border-left: 4px solid var(--fm-profile-accent);
}
.fm-profile-game-prompt strong {
    color: var(--fm-profile-text);
    font-size: 1.08rem;
}
.fm-profile-game-prompt p {
    margin: 4px 0 10px;
}
.fm-profile-player-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    padding: clamp(12px, 3vw, 22px);
    border-radius: 12px;
    background: #44242c;
    color: #fff7ee;
}
.fm-profile-player-card h2,
.fm-profile-player-card p {
    margin: 0;
    color: inherit;
}
.fm-profile-player-card [data-profile-initial] {
    display: grid;
    flex: 0 0 48px;
    height: 48px;
    place-items: center;
    border-radius: 12px;
    background: #efd194;
    color: #44242c;
    font-size: 1.4rem;
    font-weight: 800;
}
.fm-profile-ticket-card {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-inline-start: auto;
    padding-inline: 10px;
    color: #fff7ee;
    border-radius: 8px;
    background: #683746;
}
.fm-profile-ticket-card strong {
    color: #f8dda2;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}
.fm-profile-actions > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 10px;
    color: var(--fm-profile-accent);
    font-weight: 700;
}
.fm-public-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.fm-profile-photo {
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--fm-profile-border);
}
.fm-personal-profile .fm-profile-check {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
}
.fm-personal-profile .fm-profile-check input {
    min-height: 0;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    accent-color: var(--fm-profile-accent);
}
.fm-personal-profile [data-preview-public] {
    display: inline-block;
    padding-bottom: 12px;
}
.fm-profile-score-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.fm-profile-score-photo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-inline-end: 5px;
    vertical-align: middle;
}
.fm-profile-dialog p,
.fm-personal-profile p {
    margin: 8px 0 14px;
}
.fm-profile-dialog form,
.fm-personal-profile form {
    display: grid;
    gap: 12px;
}
.fm-profile-dialog label,
.fm-personal-profile label {
    display: grid;
    gap: 5px;
    min-width: 0;
    font-weight: 650;
}
.fm-profile-dialog input,
.fm-personal-profile input {
    box-sizing: border-box;
    min-height: 44px;
    width: 100%;
    min-width: 0;
    padding: 8px 11px;
    border: 1px solid var(--fm-profile-border);
    border-radius: 8px;
    background: var(--fm-profile-surface);
    color: var(--fm-profile-text);
    font: inherit;
    font-size: 16px;
}
.fm-profile-actions,
.fm-profile-track {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fm-profile-dialog .fm-profile-actions {
    margin-top: 12px;
}
.fm-profile-dialog button,
.fm-personal-profile button,
.fm-profile-track button {
    width: auto;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--fm-profile-border);
    border-radius: 8px;
    background: var(--fm-profile-soft);
    color: var(--fm-profile-text);
    font-family: inherit;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}
.fm-profile-dialog button[data-auth-submit],
.fm-personal-profile button[type="submit"],
.fm-personal-profile [aria-pressed="true"],
.fm-profile-track [aria-pressed="true"] {
    border-color: var(--fm-profile-accent);
    background: var(--fm-profile-accent);
    color: var(--fm-profile-on-accent);
}
.fm-profile-dialog [data-close] {
    flex: 0 0 44px;
    padding: 0;
    font-size: 1.4rem;
}
.fm-profile-dialog button:disabled,
.fm-personal-profile button:disabled,
.fm-profile-track button:disabled {
    opacity: .65;
    cursor: wait;
}
.fm-profile-dialog :focus-visible,
.fm-personal-profile :focus-visible,
.fm-profile-track :focus-visible {
    outline: 2px solid var(--fm-profile-focus);
    outline-offset: 2px;
}
.fm-profile-dialog [data-key] {
    display: block;
    background: var(--fm-profile-soft);
    border: 1px solid var(--fm-profile-border);
    padding: 10px;
    border-radius: 8px;
    color: var(--fm-profile-text);
    font-size: .95rem;
    overflow-wrap: anywhere;
    user-select: all;
}
.fm-personal-profile > button {
    margin: 5px 8px 5px 0;
}
.fm-personal-profile details {
    margin-top: 16px;
    border: 1px solid var(--fm-profile-border);
    border-radius: 10px;
    padding: 0 12px;
}
.fm-personal-profile summary {
    padding: 11px 0;
    font-weight: 750;
    cursor: pointer;
}
.fm-personal-profile details form {
    padding-bottom: 12px;
}
.fm-personal-profile ul {
    padding-left: 0;
    list-style: none;
}
.fm-personal-profile li a {
    color: var(--fm-profile-accent);
    font-weight: 700;
    text-decoration: underline;
}
.fm-profile-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--fm-profile-border);
}
.fm-profile-row div {
    min-width: 0;
    overflow-wrap: anywhere;
}
.fm-profile-row button {
    flex: 0 0 auto;
}
.fm-profile-row small,
.fm-profile-track small {
    display: block;
    color: var(--fm-profile-text);
}
.fm-profile-track {
    margin: 10px 0 2px;
}
.fm-profile-track small {
    width: 100%;
}
.fm-profile-track small:empty,
.fm-profile-dialog p:empty,
.fm-personal-profile [data-profile-message]:empty,
.fm-personal-profile [data-address-message]:empty,
.fm-personal-profile [data-photo-message]:empty,
.fm-profile-dialog [hidden],
.fm-personal-profile [hidden],
.fm-profile-hidden-offer,
.fm-profile-replaced-save {
    display: none !important;
}
@media (min-width: 600px) {
    .fm-personal-profile [data-address-form] {
        grid-template-columns: 1fr 1fr;
    }
}
@media (prefers-color-scheme: dark) {
    .fm-profile-dialog,
    .fm-personal-profile,
    .fm-profile-track {
        --fm-profile-surface: #251e23;
        --fm-profile-soft: #3a292f;
        --fm-profile-text: #fff5ef;
        --fm-profile-accent: #ffc3ce;
        --fm-profile-on-accent: #421d29;
        --fm-profile-border: #98727f;
        --fm-profile-focus: #8bddff;
    }
}

/* Profile dashboard and entry tracker */
.fm-personal-profile {
    --profile-hero: #2c182a;
    --profile-hero-edge: #50293b;
    --profile-glow: #c5739d;
    --profile-highlight: #ffdadf;
    border-radius: 22px;
}
.fm-personal-profile[data-profile-color="ocean"],
[data-profile-color-choice="ocean"] { --profile-hero: #102a40; --profile-hero-edge: #194768; --profile-glow: #7bdbf1; --profile-highlight: #d9f7ff; }
.fm-personal-profile[data-profile-color="forest"],
[data-profile-color-choice="forest"] { --profile-hero: #112e28; --profile-hero-edge: #205044; --profile-glow: #81d6b5; --profile-highlight: #d9f7e7; }
.fm-personal-profile[data-profile-color="gold"],
[data-profile-color-choice="gold"] { --profile-hero: #35281a; --profile-hero-edge: #5b401c; --profile-glow: #ffcb72; --profile-highlight: #ffefc4; }
[data-profile-color-choice="berry"] { --profile-glow: #c5739d; }
.fm-personal-profile h1 {
    margin: 0;
    font: 850 clamp(1.8rem, 5vw, 2.9rem)/1.05 system-ui,sans-serif;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
}
.fm-profile-player-card,
.fm-profile-welcome,
.fm-public-profile,
.fm-sweep-tracker-header {
    color: #fff9fb;
    background: radial-gradient(ellipse at top right, var(--profile-hero-edge), transparent 75%), var(--profile-hero);
    border: 1px solid var(--profile-hero-edge);
    box-shadow: inset 0 2px 0 var(--profile-glow), 0 8px 20px #1c12231c;
}
.fm-profile-player-card {
    border-radius: 16px;
    padding: clamp(14px, 4vw, 24px);
    gap: 14px;
}
.fm-profile-player-card h1,
.fm-profile-welcome h1,
.fm-public-profile h1,
.fm-sweep-tracker-header h2 { color: inherit; }
.fm-profile-player-card [data-profile-initial] {
    width: clamp(44px, 10vw, 58px);
    height: clamp(44px, 10vw, 58px);
    flex-basis: clamp(44px, 10vw, 58px);
    color: var(--profile-hero);
    background: var(--profile-highlight);
    border: 1px solid var(--profile-glow);
    font-size: 1.48rem;
}
.fm-profile-ticket-card {
    min-height: 50px;
    border: 1px solid #ffffff48;
    background: #130e1b66;
    color: #fff9fb;
}
.fm-profile-ticket-card:hover,
.fm-profile-ticket-card strong { color: var(--profile-highlight); }
.fm-profile-welcome p,
.fm-sweep-tracker-header p { color: #fbecf4; }
.fm-profile-welcome .fm-profile-actions button:nth-child(2),
.fm-sweep-tracker-header > button {
    background: var(--profile-highlight);
    color: var(--profile-hero);
    border-color: var(--profile-glow);
}
.fm-profile-dialog {
    border-radius: 22px;
    border-top: 3px solid var(--fm-profile-accent);
}
.fm-profile-dialog label > small {
    font-size: .81rem;
    font-weight: 550;
}
.fm-profile-library-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.fm-profile-library-heading h2 { margin: 0; }
.fm-profile-library-heading a,
.fm-profile-actions a { text-underline-offset: .18em; }
.fm-profile-tabs {
    padding: 4px;
    margin-top: 10px;
    border-radius: 12px;
    background: var(--fm-profile-soft);
}
.fm-profile-tabs button {
    flex: 1;
    border-color: transparent;
}
.fm-personal-profile .fm-profile-row .fm-sweep-note { margin-top: 6px; }
.fm-profile-settings {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}
.fm-personal-profile .fm-profile-settings > details { margin: 0; }
.fm-profile-color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 12px;
}
.fm-personal-profile [data-profile-color-choice]::before {
    display: inline-block;
    width: .8em;
    height: .8em;
    margin-inline-end: .4em;
    border-radius: 50%;
    background: var(--profile-glow);
    content: '';
}
.fm-personal-profile [data-profile-color-choice][aria-pressed="true"] {
    outline: 2px solid var(--fm-profile-focus);
    outline-offset: 1px;
}
.fm-profile-browser-activity {
    padding-block: 0;
    border-radius: 14px;
}
.fm-personal-profile.fm-profile-browser-activity > summary {
    min-height: 44px;
    padding: 10px 0;
    cursor: pointer;
}
.fm-profile-browser-activity > .fmsave-lucky {
    width: 100%;
    margin: 10px 0;
}
.fm-profile-browser-activity .fmsave-lucky-saved { padding: 14px; border: 0; border-radius: 10px; }
.fm-sweep-tracker-header {
    width: 100%;
    padding: 16px;
    margin: 12px 0;
}
.fm-public-profile a { color: var(--profile-highlight); }
.fm-profile-track {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 6px;
    border-top: 1px solid var(--fm-profile-border);
    padding: 8px 0 0;
}
.fm-track-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.fm-track-actions button { flex: 1 1 auto; padding-inline: 7px; }
.fm-profile-track .fm-profile-last-entry {
    width: auto;
    font-size: .8rem;
    font-weight: 700;
}
.fm-profile-track .fm-sweep-note,
.fm-personal-profile .fm-sweep-note {
    padding: 0 9px;
    border: 1px solid var(--fm-profile-border);
    border-radius: 8px;
}
.fm-sweep-note summary { min-height: 44px; padding: 10px 0; font-weight: 700; cursor: pointer; }
.fm-sweep-note form { display: grid; gap: 6px; padding-bottom: 9px; }
.fm-sweep-note label { display: grid; gap: 4px; font-weight: 700; }
.fm-sweep-note textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid var(--fm-profile-border);
    border-radius: 7px;
    color: var(--fm-profile-text);
    background: var(--fm-profile-surface);
    font: 16px/1.45 system-ui,sans-serif;
    resize: vertical;
}
.fm-sweep-note [role="status"]:empty,
.fm-profile-old-title[hidden],
.fmsave-lucky[hidden],
.fm-profile-browser-activity [hidden] { display: none !important; }
@media (max-width: 500px) {
    .fm-personal-profile { width: calc(100% - 16px); padding-inline: 12px; }
    .fm-sweep-tracker-header { width: 100%; }
    .fm-profile-ticket-card { margin-inline-start: 0; }
    .fm-track-actions button { font-size: .83rem; }
}

/* Full-page player themes. Swatches use the same colors as their page. */
html[data-fm-profile-theme] {
    --lucky-page:#f5e8f0; --lucky-surface:#fffaff; --lucky-soft:#fceaf6; --lucky-line:#dbc4d4;
    --lucky-text:#2c172b; --lucky-accent:#8a265f; --lucky-hero:#31162f; --lucky-edge:#672650; --lucky-glow:#f3a8d4;
}
html[data-fm-profile-theme="ocean"], [data-profile-color-choice="ocean"] {
    --lucky-page:#dfedf8; --lucky-surface:#f8fcff; --lucky-soft:#e6f3fb; --lucky-line:#bfd9e9;
    --lucky-text:#122b40; --lucky-accent:#17597f; --lucky-hero:#142c50; --lucky-edge:#16476b; --lucky-glow:#89dcff;
}
html[data-fm-profile-theme="forest"], [data-profile-color-choice="forest"] {
    --lucky-page:#deeee5; --lucky-surface:#f9fefb; --lucky-soft:#e8f7ee; --lucky-line:#bfd8ca;
    --lucky-text:#143124; --lucky-accent:#1f6349; --lucky-hero:#112e2a; --lucky-edge:#236454; --lucky-glow:#a6f4c6;
}
html[data-fm-profile-theme="gold"], [data-profile-color-choice="gold"] {
    --lucky-page:#f4ebd3; --lucky-surface:#fffcf2; --lucky-soft:#fff0ce; --lucky-line:#dbcaa0;
    --lucky-text:#332716; --lucky-accent:#754812; --lucky-hero:#30221a; --lucky-edge:#68411c; --lucky-glow:#ffdb8c;
}
html[data-fm-profile-theme="coral"], [data-profile-color-choice="coral"] {
    --lucky-page:#f7e4df; --lucky-surface:#fffaf7; --lucky-soft:#ffeae2; --lucky-line:#e2c4b9;
    --lucky-text:#3c2521; --lucky-accent:#9c4136; --lucky-hero:#46221e; --lucky-edge:#8c4136; --lucky-glow:#ffc1ac;
}
html[data-fm-profile-theme="lavender"], [data-profile-color-choice="lavender"] {
    --lucky-page:#eae4f9; --lucky-surface:#fcfaff; --lucky-soft:#f0e8ff; --lucky-line:#d3c4e7;
    --lucky-text:#2d2445; --lucky-accent:#614099; --lucky-hero:#292045; --lucky-edge:#513873; --lucky-glow:#dbc3ff;
}
html[data-fm-profile-theme="glacier"], [data-profile-color-choice="glacier"] {
    --lucky-page:#e0eee9; --lucky-surface:#f6fdfa; --lucky-soft:#e4f4ec; --lucky-line:#b6d8ce;
    --lucky-text:#123a36; --lucky-accent:#0e6963; --lucky-hero:#16363b; --lucky-edge:#217278; --lucky-glow:#a3f4ec;
}
html[data-fm-profile-theme="midnight"], [data-profile-color-choice="midnight"] {
    --lucky-page:#121a2b; --lucky-surface:#212b40; --lucky-soft:#2c3953; --lucky-line:#546685;
    --lucky-text:#f2f6ff; --lucky-accent:#bad0ff; --lucky-hero:#131d37; --lucky-edge:#354d7a; --lucky-glow:#bfcdff;
}
[data-profile-color-choice="berry"] { --lucky-glow:#ed98cb; }

html[data-fm-profile-theme], html[data-fm-profile-theme] body {
    min-height:100%;
    background:var(--lucky-page) !important;
}
html[data-fm-profile-theme] :is(#page,#main,.site-main,.fmcm-post-shell) {
    background-color:transparent !important;
    background-image:none !important;
}
html[data-fm-profile-theme] :is(#fm-my-profile,#fm-public-profile,.fm-profile-browser-activity) {
    --fm-profile-surface:var(--lucky-surface); --fm-profile-soft:var(--lucky-soft);
    --fm-profile-border:var(--lucky-line); --fm-profile-text:var(--lucky-text);
    --fm-profile-accent:var(--lucky-accent); --fm-profile-focus:var(--lucky-accent);
    --profile-hero:var(--lucky-hero); --profile-hero-edge:var(--lucky-edge);
    --profile-glow:var(--lucky-glow); --profile-highlight:#fff;
    color:var(--lucky-text);
}
html[data-fm-profile-theme="midnight"] #fm-my-profile { --fm-profile-on-accent:#17233b; }
#fm-my-profile {
    width:min(1080px,calc(100% - 22px));
    margin:clamp(10px,3vw,30px) auto;
    padding:0;
    border:0;
    border-radius:0;
    background:none;
    box-shadow:none;
}
#fm-my-profile h1 {
    margin:0;
    color:#fff;
    font:850 clamp(1.9rem,5.5vw,3.9rem)/1 system-ui,sans-serif;
    letter-spacing:-.055em;
}
.fm-profile-overview {
    display:grid;
    grid-template-columns:minmax(0,1.6fr) minmax(235px,1fr);
    gap:12px;
}
#fm-my-profile .fm-profile-player-card, .fm-profile-welcome-main, #fm-public-profile {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    box-sizing:border-box;
    min-height:clamp(142px,18vw,214px);
    border:1px solid color-mix(in srgb,var(--lucky-edge) 78%,white);
    border-radius:24px;
    background:
        radial-gradient(ellipse at 100% 0%,var(--lucky-edge),transparent 72%),
        linear-gradient(140deg,var(--lucky-hero) 65%,var(--lucky-edge));
    color:#fff;
    box-shadow:0 12px 32px color-mix(in srgb,var(--lucky-hero) 14%,transparent);
}
.fm-profile-welcome-main::after, #fm-my-profile .fm-profile-player-card::after {
    position:absolute;
    inset:-80% -12% auto auto;
    z-index:-1;
    width:390px;
    height:390px;
    transform:rotate(-18deg) skew(-6deg);
    border:1px solid #ffffff2a;
    border-radius:26%;
    box-shadow:0 0 0 25px #ffffff0d,0 0 0 49px #ffffff0a,0 0 0 73px #ffffff08;
    content:'';
    pointer-events:none;
}
#fm-my-profile .fm-profile-player-card { margin:0; gap:clamp(12px,2.4vw,25px); padding:clamp(16px,3.6vw,38px); flex-wrap:nowrap; }
.fm-profile-player-card > div { min-width:0; }
#fm-my-profile [data-profile-player] { margin-top:8px; color:#fff; overflow-wrap:anywhere; }
#fm-my-profile [data-profile-initial], #fm-public-profile .fm-profile-avatar-emblem {
    display:grid;
    flex:0 0 clamp(52px,7vw,92px);
    width:clamp(52px,7vw,92px);
    height:clamp(52px,7vw,92px);
    place-items:center;
    overflow:hidden;
    margin:0;
    border:2px solid #fff9;
    border-radius:25%;
    background:var(--lucky-glow);
    color:var(--lucky-hero);
    box-shadow:0 0 0 5px #fff2,0 8px 25px #0003;
    font:900 clamp(1.5rem,4vw,2.75rem)/1 system-ui,sans-serif;
}
#fm-my-profile [data-profile-initial] img, #fm-public-profile img.fm-profile-avatar-emblem {
    width:100%; height:100%; border-radius:22%; object-fit:cover;
}
#fm-public-profile img.fm-profile-avatar-emblem { max-width:92px; max-height:92px; }
#fm-public-profile h1, #fm-public-profile p, #fm-public-profile a { color:#fff; }
#fm-my-profile .fm-profile-ticket-card {
    display:grid;
    position:relative;
    isolation:isolate;
    grid-template-rows:auto 1fr auto;
    align-content:center;
    gap:6px;
    padding:clamp(15px,2.6vw,28px);
    margin:0;
    overflow:hidden;
    border:1px solid var(--lucky-line);
    border-radius:24px;
    background:linear-gradient(148deg,var(--lucky-surface),var(--lucky-soft));
    color:var(--lucky-text);
    font-weight:740;
    text-decoration:none;
}
#fm-my-profile .fm-profile-ticket-card strong { align-self:center; color:var(--lucky-accent); font-size:clamp(2.4rem,6vw,4.1rem); line-height:1.05; overflow-wrap:anywhere; }
#fm-my-profile .fm-profile-ticket-card > span:last-child { font-size:.86rem; color:var(--lucky-accent); }
.fm-profile-ticket-card::after { position:absolute; z-index:-1; inset:auto -18px -25px auto; color:var(--lucky-accent); opacity:.11; font-size:9rem; line-height:1; content:'★'; transform:rotate(18deg); }
.fm-profile-welcome-main { display:grid; grid-template-columns:minmax(0,1fr) minmax(104px,30%); min-height:255px; align-items:center; padding:clamp(22px,5vw,60px); }
#fm-my-profile .fm-profile-welcome-main p { color:#fff; margin:12px 0 20px; }
#fm-my-profile .fm-profile-welcome-main :is(button,button:nth-child(2)) {
    border:1px solid #ffffff65;
    background:#ffffff16;
    color:#fff;
}
#fm-my-profile .fm-profile-welcome-main .fm-profile-primary { background:#fff; color:var(--lucky-hero); }
.fm-profile-ticket-art { display:grid; position:relative; isolation:isolate; justify-self:center; place-items:center; width:74%; min-width:94px; aspect-ratio:1.58; transform:rotate(10deg); }
.fm-profile-ticket-art::before, .fm-profile-ticket-art::after, .fm-profile-ticket-art span {
    position:absolute; inset:0; border:2px solid #fff6; border-radius:12px; box-shadow:0 12px 22px #0003; content:'';
}
.fm-profile-ticket-art::before { z-index:-2; transform:rotate(-26deg) translate(-6%,2%); background:#a45180; }
.fm-profile-ticket-art::after { z-index:-1; transform:rotate(11deg) translate(8%,2%); background:#ffd895; }
.fm-profile-ticket-art span { display:grid; place-items:center; background:repeating-linear-gradient(110deg,#ffffff2c 0px,#ffffff2c 2px,transparent 2px,transparent 10px),var(--lucky-glow); color:var(--lucky-hero); font-size:clamp(2rem,5.9vw,4rem); line-height:1; }
.fm-profile-destinations {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin:12px 0;
}
#fm-my-profile .fm-profile-destinations :is(a,button) {
    display:flex; align-items:center; justify-content:center; gap:7px;
    box-sizing:border-box; min-height:54px; padding:7px;
    border:1px solid var(--lucky-line); border-radius:16px;
    background:var(--lucky-surface); color:var(--lucky-text);
    font:740 clamp(.75rem,2.5vw,1rem)/1.18 system-ui,sans-serif;
    text-align:center; text-decoration:none;
}
#fm-my-profile .fm-profile-destinations span {
    display:grid; flex:0 0 25px; height:25px; place-items:center;
    border-radius:8px; background:var(--lucky-soft); color:var(--lucky-accent);
}
#fm-my-profile .fm-profile-destinations :is(a,button):hover, #fm-my-profile .fm-profile-ticket-card:hover { border-color:var(--lucky-accent); }
.fm-profile-spaces {
    display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr); align-items:start; gap:12px;
}
.fm-profile-spaces > * {
    min-width:0; margin:0; padding:clamp(13px,2.8vw,25px);
    border:1px solid var(--lucky-line); border-radius:22px;
    background:var(--lucky-surface);
}
#fm-my-profile .fm-profile-library-heading { margin-top:0; }
#fm-my-profile .fm-profile-library-heading a, #fm-my-profile [data-profile-items] a, #fm-my-profile [data-preview-public] { color:var(--lucky-accent); }
#fm-my-profile .fm-profile-settings h2 { margin:0; }
#fm-my-profile .fm-profile-settings h3 { margin:0 0 8px; font-size:.95rem; }
.fm-profile-color-card { padding:12px; border:1px solid var(--lucky-line); border-radius:14px; background:var(--lucky-soft); }
#fm-my-profile .fm-profile-color-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:0; }
#fm-my-profile [data-profile-color-choice] { padding:6px; font-size:.79rem; white-space:nowrap; }
#fm-my-profile [data-profile-color-choice]::before { background:var(--lucky-glow); border:1px solid #3c2d4655; }
#fm-my-profile .fm-profile-color-card [role="status"]:empty, #fm-my-profile [data-profile-birthday] [role="status"]:empty { display:none; }
#fm-my-profile .fm-profile-settings details { padding:0 10px; }
#fm-my-profile [data-profile-birthday] summary span { margin-left:4px; font-size:.72rem; font-weight:800; color:var(--lucky-accent); }
#fm-my-profile .fm-profile-settings .fm-profile-utility { margin:4px 0 0; }
[data-birthday-fields] { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.8fr); gap:8px; }
[data-birthday-fields] label { display:grid; gap:3px; font-weight:700; font-size:.85rem; }
[data-birthday-fields] select {
    box-sizing:border-box; width:100%; min-height:44px; padding:6px;
    border:1px solid var(--fm-profile-border); border-radius:8px;
    background:var(--fm-profile-surface); color:var(--fm-profile-text); font:16px system-ui,sans-serif;
}
[data-signup-birthday] summary { min-height:44px; align-content:center; cursor:pointer; font-weight:740; }
[data-signup-birthday] p, [data-profile-birthday] p { margin:2px 0 9px; font-size:.87rem; }
#fm-my-profile a:focus-visible, #fm-my-profile button:focus-visible, [data-birthday-fields] select:focus-visible {
    outline:2px solid var(--lucky-accent,var(--fm-profile-focus)); outline-offset:2px;
}
@media (max-width:760px) {
    .fm-profile-spaces { grid-template-columns:minmax(0,1fr); }
    .fm-profile-overview { grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:7px; }
    #fm-my-profile .fm-profile-player-card, #fm-my-profile .fm-profile-ticket-card { border-radius:18px; }
    #fm-my-profile .fm-profile-player-card { align-content:center; flex-wrap:wrap; }
    #fm-my-profile .fm-profile-player-card h1 { font-size:clamp(1.5rem,5.9vw,2.4rem); }
    #fm-my-profile [data-profile-player] { font-size:.82rem; }
    #fm-my-profile .fm-profile-ticket-card strong { font-size:clamp(1.8rem,7vw,3.8rem); }
    #fm-my-profile .fm-profile-ticket-card > span:last-child { font-size:.73rem; }
    #fm-my-profile .fm-profile-color-options { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:460px) {
    .fm-profile-welcome-main { grid-template-columns:minmax(0,1fr) minmax(82px,28%); min-height:205px; }
    .fm-profile-ticket-art { min-width:67px; }
    #fm-my-profile .fm-profile-welcome-main .fm-profile-actions { gap:5px; }
    #fm-my-profile .fm-profile-welcome-main button { padding-inline:8px; }
    #fm-my-profile .fm-profile-destinations :is(a,button) { flex-direction:column; }
    #fm-my-profile .fm-profile-color-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
#fm-my-profile, #fm-public-profile, html[data-fm-profile-theme] .fm-profile-browser-activity {
    font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}
#fm-my-profile :is(h2,h3), #fm-public-profile h1 {
    font-family:inherit;
    font-weight:800;
    letter-spacing:-.03em;
}
#fm-my-profile [data-profile-claims]:not([hidden]) {
    padding:14px 22px 14px 42px;
    border:1px solid var(--lucky-line);
    border-radius:16px;
    background:var(--lucky-surface);
}
#fm-my-profile [data-profile-claims] a { color:var(--lucky-accent); }
