/* Shared account and rewards pages. Scoped to keep the portal's other pages intact. */
.player-page { max-width: 1040px; margin: 0 auto; }
.player-page [hidden] { display: none !important; }
.player-page h1, .player-page h2, .player-page h3, .player-page p { margin-top: 0; }
.player-page h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; letter-spacing: -.035em; margin-bottom: 10px; }
.player-page h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 6px; }
.player-page h3 { font-size: 16px; margin-bottom: 6px; }
.player-page p { color: var(--muted); }
.player-page a:focus-visible, .player-page button:focus-visible, .player-page input:focus-visible { outline: 3px solid #0879bb; outline-offset: 3px; }
.player-page .button { min-height: 46px; gap: 8px; text-align: center; }
.player-page .button:disabled { opacity: .65; cursor: wait; }
.player-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.player-crumb a:hover { color: #0879bb; text-decoration: underline; }
.player-crumb .bi { font-size: 11px; }
.player-hero { position: relative; overflow: hidden; padding: 30px; border-radius: 22px; background: radial-gradient(ellipse at 100% 0, #176189, transparent 70%), #082c49; color: #fff; margin-bottom: 24px; }
.player-hero .eyebrow { color: #9de9ff; margin-bottom: 10px; display: block; letter-spacing: .12em; font-size: 12px; }
.player-hero p { color: #c8dfea; margin-bottom: 0; max-width: 620px; }
.player-hero-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.player-hero-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.player-avatar { width: 88px; height: 88px; object-fit: cover; background: #e6f6ff; border: 4px solid #73c7e7; border-radius: 24px; box-shadow: 0 8px 20px #021a322b; }
.player-hero-symbol { display: grid; place-items: center; flex: 0 0 68px; height: 68px; border: 1px solid #4e91b3; background: #ffffff0b; border-radius: 20px; color: #a6edff; font-size: 30px; }
.player-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.player-hero-tags span { display: inline-flex; align-items: center; gap: 6px; color: #d7effa; background: #ffffff0b; border: 1px solid #437a9c; padding: 4px 10px; border-radius: 7px; font-size: 13px; }
.player-badge { display: inline-flex; gap: 6px; align-items: center; align-self: flex-start; width: fit-content; border-radius: 999px; background: #fff6e7; color: #80500e; padding: 6px 11px; font-size: 12px; font-weight: 700; }
.player-badge.is-active { background: #e7f8f0; color: #146647; }
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 22px; }
.player-stack { display: grid; gap: 22px; min-width: 0; }
.player-panel { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 5px 20px #0a395807; }
.player-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.player-panel-heading > .bi { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; background: #edf8ff; color: #0879bb; border-radius: 12px; font-size: 19px; }
.player-panel-heading p { margin: 0; font-size: 13px; }
.player-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.player-stat { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.player-stat > .bi { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #097bb5; background: #eaf7ff; margin-bottom: 12px; font-size: 18px; }
.player-stat:nth-child(2) > .bi { color: #9a6c0d; background: #fff6dc; }
.player-stat:nth-child(3) > .bi { color: #7750b4; background: #f3edff; }
.player-stat small { display: block; color: var(--muted); margin-bottom: 4px; }
.player-stat strong { display: block; font-size: clamp(20px, 2.7vw, 27px); letter-spacing: -.025em; line-height: 1.35; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.player-stat strong span { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.player-mission { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #edf8ff; border-radius: 12px; margin-bottom: 18px; }
.player-mission > .bi { color: #0879bb; font-size: 22px; }
.player-mission small { display: block; color: var(--muted); margin-bottom: 3px; }
.player-mission strong { overflow-wrap: anywhere; }
.player-attributes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.player-attributes > div { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; border-bottom: 1px solid #e7eff5; padding: 13px 0; }
.player-attributes dt { color: var(--muted); }
.player-attributes dt .bi { margin-right: 6px; color: #6e8ea6; }
.player-attributes dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.player-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 18px 0 0; line-height: 1.65; }
.player-note > .bi { flex-shrink: 0; color: #0879bb; }
.player-link-list { display: grid; gap: 4px; margin: 16px -10px -8px; }
.player-link { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px; border-radius: 12px; }
.player-link:hover { background: #f0f8fe; }
.player-link > .bi:first-child { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; background: #edf7fd; color: #0879bb; border-radius: 10px; font-size: 18px; }
.player-link > span { flex: 1; }
.player-link strong, .player-link small { display: block; }
.player-link small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.player-link > .bi:last-child { color: #7a95aa; font-size: 13px; }
.player-link.is-danger { color: #a13a42; }
.player-link.is-danger > .bi:first-child { background: #fff1f2; color: #a13a42; }
.player-support { background: #edf7fd; box-shadow: none; }
.player-support p { font-size: 13px; margin-bottom: 16px; }
.player-support .button { width: 100%; background: #fff; }
.player-empty { padding: 30px 16px; text-align: center; }
.player-empty > .bi { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 16px; font-size: 28px; border-radius: 18px; background: #edf8ff; color: #2181b5; }
.player-empty p { max-width: 410px; margin: 0 auto 20px; font-size: 14px; }
.player-empty .button { margin: 0 auto; }
.player-form { display: grid; gap: 22px; }
.player-field { display: grid; gap: 8px; }
.player-field label { font-weight: 650; font-size: 14px; }
.player-field .password-field { display: flex; }
.player-field .password-field input { width: 100%; min-width: 0; min-height: 50px; font-size: 16px; padding-left: 14px; background: #fbfdff; }
.player-field .toggle-password { width: 42px; min-height: 42px; }
.player-field .toggle-password .bi { font-size: 20px; }
.player-field .toggle-password.is-visible .bi-eye::before { content: '\f340'; }
.player-field-hint { margin: 0; font-size: 12px; color: var(--muted); }
.player-field input[aria-invalid="true"] { border-color: #c94650; }
.player-page .player-field-error { min-height: 0; margin: 0; color: #ad303e; font-size: 13px; }
.player-rules { display: flex; flex-wrap: wrap; gap: 7px 14px; list-style: none; padding: 0; margin: 0; }
.player-rules li { color: var(--muted); font-size: 12px; }
.player-rules .bi { margin-right: 4px; }
.player-rules li.is-met { color: #146647; }
.player-form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.player-form-actions .button-primary { flex: 1; }
.player-alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; margin-bottom: 22px; border: 1px solid #edbcc3; border-radius: 12px; color: #9d3040; background: #fff3f4; }
.player-alert.is-success { background: #effaf5; color: #156346; border-color: #b8e1cd; }
.player-alert .bi { font-size: 20px; }
.player-alert p { margin: 0; color: inherit; }
.player-tips { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 20px; }
.player-tips li { display: flex; gap: 10px; }
.player-tips li > .bi { color: #2388b5; margin-top: 2px; }
.player-tips strong { display: block; font-size: 14px; }
.player-tips p { font-size: 13px; margin: 4px 0 0; }
.reward-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.reward-step { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.reward-step > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: #e9f7ff; color: #0879bb; font-weight: 800; }
.reward-step strong { display: block; font-size: 14px; }
.reward-step small { display: block; color: var(--muted); font-size: 12px; }
.reward-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.reward-filters { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px; border-radius: 12px; border: 1px solid var(--line); background: #e9f3fa; }
.reward-filter { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 40px; border: 0; border-radius: 8px; padding: 8px 14px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 650; }
.reward-filter[aria-pressed="true"] { color: #0b6595; background: #fff; box-shadow: 0 2px 5px #0a39580d; }
.reward-filter span { font-size: 12px; background: #e7f2f9; padding: 0 6px; border-radius: 5px; }
.reward-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); flex: 0 1 275px; }
.reward-search:focus-within { outline: 3px solid #0879bb; outline-offset: 2px; }
.player-page .reward-search input { width: 100%; min-width: 0; min-height: 48px; border: 0; padding: 8px 0; background: transparent; outline: none; box-shadow: none; font-size: 16px; }
.reward-section { margin-bottom: 28px; }
.reward-section-heading { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.reward-section-heading h2 { margin: 0; }
.reward-section-heading > .bi { color: #0879bb; font-size: 21px; }
.reward-section-heading > span { margin-left: auto; color: var(--muted); font-size: 13px; }
.reward-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.reward-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 5px 20px #0a395807; }
.reward-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 20px; background: #f6fbff; border-bottom: 1px solid #e4eff6; }
.reward-card-author { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.reward-card-author img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.reward-card-body { padding: 20px; }
.reward-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.reward-code-row h3 { min-width: 0; flex: 1 1 150px; margin: 0; }
.reward-code-row code { font: 800 22px/1.3 Consolas, monospace; letter-spacing: .025em; color: #0b527d; overflow-wrap: anywhere; user-select: all; }
.reward-copy { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #bfddec; border-radius: 9px; background: #edf8ff; color: #0c6797; padding: 9px 12px; font-weight: 700; cursor: pointer; }
.reward-copy:hover { background: #dff2ff; border-color: #88bdda; }
.reward-copy:disabled { cursor: wait; opacity: .7; }
.reward-copy.is-copied { background: #eaf8ef; color: #146647; border-color: #a8d5bd; }
.reward-expiry { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.reward-items { display: grid; gap: 9px; list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px dashed var(--line); }
.reward-items li { display: flex; gap: 10px; align-items: center; min-width: 0; }
.reward-items img { width: 34px; height: 34px; padding: 4px; border-radius: 8px; background: #f0f7fc; object-fit: contain; image-rendering: pixelated; flex: 0 0 34px; }
.reward-items li > span { flex: 1; overflow-wrap: anywhere; font-size: 14px; }
.reward-items strong { color: #0b527d; font-size: 13px; white-space: nowrap; }
.reward-items-note { margin: 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; }
.reward-login { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 24px; border: 1px dashed #9bc4df; border-radius: 16px; background: #edf7fd; }
.reward-login > .bi { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #0879bb; background: #fff; font-size: 24px; }
.reward-login > div { flex: 1 1 220px; }
.reward-login h3 { margin-bottom: 4px; }
.reward-login p { margin: 0; font-size: 13px; }
.reward-result { color: var(--muted); font-size: 13px; margin: -8px 0 18px; }
.reward-bottom-note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; padding: 16px; border-radius: 12px; background: #eaf4fb; }
.reward-bottom-note .bi { color: #0879bb; }
@media (max-width: 800px) {
    .player-layout { grid-template-columns: minmax(0, 1fr); }
    .player-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .reward-steps { gap: 10px; }
    .reward-step { padding: 14px 12px; align-items: flex-start; }
}
@media (max-width: 560px) {
    .player-crumb { margin-bottom: 14px; }
    .player-hero { padding: 24px 20px; border-radius: 18px; margin-bottom: 18px; }
    .player-hero-row { gap: 14px; }
    .player-avatar { width: 66px; height: 66px; border-radius: 18px; border-width: 3px; }
    .player-hero-symbol { flex-basis: 50px; height: 50px; border-radius: 14px; font-size: 24px; }
    .player-hero-row > .player-badge { margin-left: 80px; }
    .player-panel { padding: 20px; }
    .player-stats { grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
    .player-stat { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; align-items: center; padding: 14px 18px; }
    .player-stat > .bi { grid-row: span 2; margin: 0; }
    .player-stat small { margin: 0; }
    .player-stat strong { font-size: 23px; }
    .player-attributes { grid-template-columns: 1fr; }
    .player-sidebar { grid-template-columns: 1fr; }
    .player-form-actions { flex-direction: column; }
    .player-form-actions .button { width: 100%; }
    .reward-steps { grid-template-columns: 1fr; gap: 8px; }
    .reward-step { align-items: center; padding: 12px 16px; }
    .reward-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .reward-toolbar { align-items: stretch; }
    .reward-filters { width: 100%; flex-wrap: nowrap; }
    .reward-filter { flex: 1; padding: 8px; gap: 5px; }
    .reward-search { flex-basis: 100%; }
    .reward-section-heading { flex-wrap: wrap; }
    .reward-section-heading > span { margin-left: 0; flex-basis: 100%; }
    .reward-login { padding: 20px; }
    .reward-login .button { width: 100%; }
}
