.profile-main { min-height:75vh; padding:42px 0 70px; background:radial-gradient(circle at 0 15%,#eae4fa,transparent 35%),radial-gradient(circle at 100% 70%,#fce9eb,transparent 35%),#f8f7fc; color:#59617c; }
.profile-wrap { width:min(1080px,calc(100% - 48px)); margin:auto; }.player-profile,.profile-section,.character-detail { background:white; border:1px solid #eee9f3; border-radius:22px; overflow:hidden; box-shadow:0 12px 35px #4c4b7910; }.player-banner { height:200px; display:grid; place-items:center; background:linear-gradient(110deg,#777cb8,#b594c8 55%,#f1b8b1); color:#fff9; font-size:2rem; letter-spacing:1em; }.player-banner img { width:100%; height:100%; object-fit:cover; }.player-body { position:relative; padding:0 38px 32px; }.player-avatar { position:relative; margin-top:-65px; margin-bottom:18px; width:130px; height:130px; border:6px solid white; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:#e7dcf1; color:#9c83bd; font:700 48px Karma,serif; box-shadow:0 8px 24px #4c4b7920; }.player-avatar img { width:100%; height:100%; object-fit:cover; }.profile-edit { float:right; margin-top:20px; padding:10px 16px; border:1px solid #e4def0; border-radius:10px; background:#fff; color:#7480ab; font-weight:900; }.profile-kicker { color:#d99391; font-size:.65rem; font-weight:900; letter-spacing:.14em; }.player-body h1,.character-detail h1 { margin:8px 0 2px; color:#41548d; font:700 clamp(30px,4vw,43px)/1.1 Karma,serif; }.player-title { color:#a18ab5; margin:4px 0 15px; font-weight:800; }.player-score { display:inline-flex; align-items:center; gap:10px; padding:11px 17px; border-radius:13px; background:linear-gradient(110deg,#8b79c1,#d995b4); color:white; box-shadow:0 8px 18px #b18bb83d; }.player-score>span { font-size:25px; }.player-score strong,.player-score small { display:block; }.player-score small { opacity:.85; font-size:.7rem; }.player-bio { max-width:680px; line-height:1.7; white-space:pre-wrap; }.player-interests { font-size:.82rem; color:#9a8dab; }.profile-section { margin-top:22px; padding:30px; }.profile-section h2,.character-detail h2 { color:#45588f; font:700 25px Karma,serif; margin:8px 0; }.profile-section p { color:#8a8fa2; }.profile-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }.profile-text-link { color:#7784b1; text-decoration:none; font-size:.82rem; font-weight:900; }.achievement-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:20px 0 12px; }.achievement { display:flex; gap:12px; align-items:center; padding:16px; border-radius:14px; background:#f8f7fa; color:#b1afbd; }.achievement.is-unlocked { background:#f6effa; color:#9783b7; }.achievement>span { font-size:25px; }.achievement strong,.achievement small { display:block; }.achievement strong { font-size:.8rem; }.achievement small,.score-explanation { color:#a6a4b3; font-size:.7rem; margin-top:4px; }.profile-stories { display:grid; gap:9px; margin-top:18px; }.profile-story { display:flex; align-items:center; gap:16px; padding:15px; border:1px solid #eeeaf3; border-radius:12px; }.profile-story div { flex:1; }.profile-story strong,.profile-story small { display:block; }.profile-story small { color:#aaa5b8; margin-top:4px; }.profile-story a { color:#7885b1; font-size:.75rem; font-weight:900; text-decoration:none; }.character-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; margin-top:18px; }.character-card,.character-add { display:flex; flex-direction:column; text-align:left; overflow:hidden; gap:5px; padding:0 0 15px; border:1px solid #ece7f2; border-radius:15px; text-decoration:none; background:#fff; color:#52608d; }.character-card strong,.character-card small { padding:0 13px; }.character-card strong { margin-top:8px; }.character-card small,.character-add small { color:#aaa4b9; font-size:.7rem; }.character-portrait { height:160px; width:100%; display:grid; place-items:center; background:linear-gradient(145deg,#d7cdeb,#f5d4d5); color:white; font-size:45px; }.character-portrait img { width:100%; height:100%; object-fit:cover; }.character-add { align-items:center; justify-content:center; text-align:center; min-height:220px; padding:15px; border:2px dashed #ded2eb; background:#fcfaff; cursor:pointer; }.character-add>span { font-size:40px; color:#bba2ce; }.profile-dialog { width:min(520px,calc(100% - 30px)); max-height:90vh; border:0; border-radius:20px; padding:28px; color:#59617c; box-shadow:0 25px 90px #2d21434d; }.profile-dialog::backdrop { background:#29243e88; }.dialog-heading { display:flex; justify-content:space-between; align-items:start; }.dialog-heading h2 { margin:8px 0 20px; color:#45588f; font-family:Karma,serif; }.dialog-close { border:0; background:none; font-size:28px; color:#aaa1b8; }.profile-form { display:grid; gap:14px; }.profile-form label { display:grid; gap:7px; color:#67729a; font-size:.78rem; font-weight:900; }.profile-form label small { font-weight:400; color:#a7a2b3; }.profile-form input:not([type=checkbox]),.profile-form textarea { width:100%; padding:11px; border:1px solid #e3ddeb; border-radius:9px; background:#fcfbfe; font:inherit; color:#505b7b; }.profile-form .remove-image { display:flex; align-items:center; font-weight:600; }.profile-button { display:inline-block; width:fit-content; padding:12px 17px; border:0; border-radius:9px; background:#7c71b7; color:white; font-weight:900; text-decoration:none; cursor:pointer; }.profile-status[data-error] { color:#bf5c67; }.character-detail { display:grid; grid-template-columns:minmax(200px,300px) 1fr; gap:35px; margin-top:20px; padding:35px; }.character-detail-image { min-height:360px; display:grid; place-items:center; border-radius:15px; background:linear-gradient(145deg,#d7cdeb,#f5d4d5); color:white; font-size:60px; overflow:hidden; }.character-detail-image img { width:100%; height:100%; object-fit:cover; }.character-detail h2 { font-size:20px; margin-top:25px; }.character-by { color:#aaa1b5; }.character-long { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.8; }
@media(max-width:650px) { .profile-wrap { width:calc(100% - 28px); }.player-banner { height:135px; }.player-body { padding:0 20px 25px; }.player-avatar { width:100px; height:100px; margin-top:-50px; }.achievement-grid { grid-template-columns:1fr; }.profile-section { padding:22px; }.character-detail { grid-template-columns:1fr; padding:20px; }.character-detail-image { min-height:240px; max-height:350px; } }
/* Identidade e histórias do perfil */
.player-body .profile-kicker { display:inline-block; padding:6px 10px; border:1px solid #ead9e7; border-radius:20px; background:#fff7fb; color:#955a77; letter-spacing:.1em; }
.player-body h1 { color:#273c76; text-shadow:0 1px 0 #fff; }
.player-body .player-title { display:table; margin:8px 0 15px; padding:5px 10px; border:1px solid #e5d9ee; border-radius:8px; background:#f3edf9; color:#654b83; }
.player-body .player-bio { padding:14px 17px; border-left:3px solid #d19fbe; border-radius:0 10px 10px 0; background:#faf7fc; color:#454f6b; font-weight:700; }
.player-body .player-interests { display:table; padding:7px 11px; border:1px solid #e8dfed; border-radius:9px; background:#fff; color:#685a80; font-weight:800; }
.player-body .profile-edit { color:#526395; border-color:#d7cce8; background:#f9f6fd; }
.profile-stories { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:16px; }
.profile-stories .profile-story { display:flex; flex-direction:column; align-items:stretch; gap:0; padding:0; overflow:hidden; border:1px solid #e2d7eb; border-radius:16px; background:linear-gradient(145deg,#ffffffed,#f8f3fcdf); box-shadow:0 10px 25px #5d4c8212, inset 0 0 0 1px #ffffffb8; }
.profile-story-cover { width:100%; aspect-ratio:4/3; overflow:hidden; display:grid; place-items:center; background:radial-gradient(circle at 75% 25%,#f1bfbd,transparent 40%),linear-gradient(135deg,#8786c0,#c1a4d1 60%,#edb8b5); color:white; font-size:3rem; }
.profile-story-cover img { display:block; width:100%; height:100%; object-fit:cover; }
.profile-comic-cover { aspect-ratio: 3 / 4; position: relative; }
.profile-comic-cover img { position: absolute; inset: 0; }
.profile-story-content { display:flex; flex-direction:column; padding:16px; flex:1; }
.profile-story-meta { flex:1; min-width:0; }
.profile-story-meta small { color:#a370a1; font-size:.61rem; letter-spacing:.11em; font-weight:900; }
.profile-story-meta strong { margin:7px 0 16px; color:#394b82; font:700 19px/1.2 Karma,serif; overflow-wrap:anywhere; }
.profile-story-actions { display:flex; flex-wrap:wrap; gap:7px; padding-top:12px; border-top:1px solid #ebe4f0; }
.profile-story-actions a,.profile-story-actions button { display:inline-flex; align-items:center; padding:7px 9px; border:1px solid #e4d9eb; border-radius:8px; background:#faf7fd; color:#6a5e8c; font:800 .7rem 'Nunito Sans',sans-serif; text-decoration:none; cursor:pointer; }
.profile-story-actions button { color:#a55668; background:#fff7f8; border-color:#f2dce1; }.profile-story-actions button:hover { background:#fae6eb; }.profile-story-actions button:disabled { opacity:.55; cursor:wait; }
@media(max-width:520px) { .profile-stories { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.profile-story-content { padding:12px; }.profile-story-actions { gap:5px; }.profile-story-actions a,.profile-story-actions button { padding:7px; } }

/* Identidade do jogador */
.player-body h1 {
  color: #252654;
  font-weight: 800;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.player-body .player-title {
  width: fit-content;
  max-width: 100%;
  padding: 8px 15px;
  margin: 10px 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(120deg, #f8f3ffed, #fff2eef0) padding-box,
              linear-gradient(120deg, #a99bda, #e7a296) border-box;
  color: #443266;
  box-shadow: 0 5px 14px #55388418;
  font-weight: 900;
}

/* Perfil do jogador */
.profile-dashboard-page { padding: clamp(18px, 3vw, 28px) 0 40px; }
.profile-dashboard-page .player-banner { height: clamp(104px, 14vw, 160px); overflow: hidden; }
.profile-dashboard-page .player-banner img { display: block; height: 100%; object-position: center 45%; }
.profile-dashboard-page .player-body { padding: 0 20px 15px; }
.player-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-top: 9px;
}
.profile-dashboard-page .player-avatar {
  width: 82px;
  height: 82px;
  margin: -31px 0 0;
  border-width: 4px;
  font-size: 33px;
}
.profile-dashboard-page .player-name h1 { margin: 0; font-size: clamp(1.65rem, 3.3vw, 2.25rem); }
.profile-dashboard-page .player-name .player-title { margin: 3px 0 0; padding: 3px 9px; border-radius: 8px; font-size: .78rem; }
.player-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.profile-dashboard-page .player-score { padding: 6px 11px; gap: 5px; color: #483366; background: linear-gradient(120deg, #ede5ff, #ffede7); box-shadow: none; font-size: .82rem; }
.profile-dashboard-page .player-score > span { font-size: 1rem; }
.profile-dashboard-page .player-tools .profile-edit { float: none; margin: 0; padding: 7px 11px; font: 800 .8rem "Nunito Sans", sans-serif; }
.player-about { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 9px; }
.profile-dashboard-page .player-about p { margin: 0; max-width: 100%; overflow-wrap: anywhere; }
.profile-dashboard-page .player-about .player-bio { flex: 1 1 240px; padding: 5px 9px; font-size: .9rem; line-height: 1.5; }
.profile-dashboard-page .player-about .player-interests { padding: 4px 7px; }

.profile-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 29%);
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}
.profile-dashboard[hidden], .profile-library-panel[hidden] { display: none; }
.profile-library {
  min-width: 0;
  border: 1px solid #e8def1;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 20px #5642780d;
}
.profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 7px;
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid #ece4f5;
  background: #faf7ff;
}
.profile-tabs [role="tab"] {
  padding: 9px 5px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #554a76;
  text-align: center;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 900;
}
.profile-tabs [role="tab"]:hover { background: #f1ebfb; }
.profile-tabs [aria-selected="true"], .profile-tabs [aria-selected="true"]:hover {
  border-color: #e0cde2;
  background: linear-gradient(115deg, #eae1fb, #ffe8e3);
  color: #3f3669;
}
.profile-library-panel { padding: 13px 14px; }
.profile-dashboard .profile-section-heading { gap: 8px; flex-wrap: wrap; }
.profile-dashboard h2 { margin: 0; font: 700 1.3rem/1.18 Karma, Georgia, serif; color: #344576; }
.profile-dashboard .profile-text-link { color: #594681; }
.profile-library-panel p { margin: 8px 0 2px; font-size: .88rem; }
.profile-library-panel .profile-status:empty { margin: 0; }
.profile-library-panel .profile-stories {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 8px;
  margin-top: 10px;
}
.profile-library-panel .profile-story {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  border-radius: 11px;
  box-shadow: none;
}
.profile-library-panel .profile-story-cover {
  width: 100%;
  height: 100%;
  min-height: 75px;
  aspect-ratio: auto;
  position: relative;
  font-size: 1.6rem;
}
.profile-library-panel .profile-story-cover img { position: absolute; inset: 0; }
.profile-library-panel .profile-story-content { min-width: 0; padding: 7px 9px; }
.profile-library-panel .profile-story-meta strong { margin: 0; font-size: 1rem; }
.profile-library-panel .profile-story-meta small { margin: 2px 0 0; color: #635181; font-size: .7rem; letter-spacing: 0; }
.profile-library-panel .profile-story-actions { padding-top: 5px; border-top: none; gap: 4px; }
.profile-library-panel .profile-story-actions :is(a, button) { padding: 5px 7px; min-height: 29px; }
.profile-library-panel .character-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); margin-top: 9px; gap: 8px; }
.profile-library-panel .character-portrait { height: 78px; overflow: hidden; }
.profile-library-panel .character-card { padding-bottom: 8px; gap: 3px; }
.profile-library-panel .character-card strong { margin-top: 3px; overflow-wrap: anywhere; }
.profile-library-panel .character-card small { color: #716381; }
.profile-library-panel .character-card :is(strong, small) { padding: 0 8px; }
.profile-library-panel .character-add { min-height: 122px; padding: 8px; gap: 3px; }
.profile-library-panel .character-add strong { font-size: .82rem; }
.profile-library-panel .character-add small { color: #716381; }
.profile-library-panel .character-add > span { font-size: 24px; }

.profile-sidebar { display: grid; gap: 10px; }
.profile-sidebar .profile-section { margin: 0; padding: 13px 14px; border-radius: 15px; }
.profile-sidebar .achievement-grid { grid-template-columns: 1fr; gap: 5px; margin: 9px 0 6px; }
.profile-sidebar .achievement { padding: 5px 8px; gap: 7px; color: #514763; border-radius: 8px; }
.profile-sidebar .achievement.is-unlocked { color: #624881; }
.profile-sidebar .achievement > span { font-size: 1rem; }
.profile-sidebar .achievement small, .profile-sidebar .score-explanation { color: #6b617b; margin-top: 1px; }
.profile-sidebar .mascot-section summary { color: #344576; cursor: pointer; }
.profile-sidebar .mascot-section summary span { color: #65547c; margin-left: 6px; font-size: .78rem; }
.profile-sidebar .mascot-section fieldset { margin-top: 9px; }
.profile-sidebar .mascot-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.profile-sidebar .mascot-option-content { min-height: 54px; padding: 4px 3px; gap: 2px; }
.profile-sidebar .mascot-option-icon { width: 25px; height: 25px; border-radius: 7px; font-size: 1rem; }
.profile-sidebar .mascot-option-content strong { font-size: .74rem; }
.profile-sidebar .mascot-form-footer { margin-top: 8px; gap: 6px; }
.profile-sidebar .profile-button { padding: 7px 10px; font-size: .8rem; }

@media(max-width: 740px) {
  .profile-dashboard { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
  .profile-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media(max-width: 500px) {
  .profile-dashboard-page .player-body { padding: 0 12px 11px; }
  .player-identity { grid-template-columns: auto minmax(0, 1fr); gap: 6px 9px; }
  .profile-dashboard-page .player-avatar { width: 62px; height: 62px; margin-top: -20px; font-size: 26px; }
  .player-tools { grid-column: 2; justify-content: flex-start; }
  .profile-tabs [role="tab"] { font-size: .79rem; }
  .profile-sidebar { grid-template-columns: 1fr; }
}
