/* Block J4: the account screens on the game's Noir Deco system */
.acct { max-width: 480px; }
.acct .wordmark.small { padding: 18px 0 10px; }
.acct .brand-link { text-decoration: none; }
.acct .tagline { margin: 4px 0 0; text-align: center; color: var(--smoke); font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.acct form label { display: block; margin: 0 0 12px; }
.acct form input { display: block; width: 100%; margin-top: 6px; padding: 12px 12px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: rgba(7, 8, 15, .55); color: var(--ivory); font-size: 1rem; }
.acct form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.acct .hint { display: block; margin-top: 6px; color: var(--smoke); font-size: .8125rem; line-height: 1.4; }
.acct .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; padding: 0 18px; border-radius: 12px; border: 1px solid var(--gold); background: rgba(232, 196, 118, .1); color: var(--gold); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; }
.acct .btn.gold { background: linear-gradient(180deg, #f6dfa4 0%, var(--gold) 45%, var(--brass) 100%); color: var(--ink); border-color: transparent; }
.acct .btn.slim { width: auto; min-height: 44px; font-size: .9375rem; }
.acct .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 12px; }
.acct .row input { flex: 1 1 160px; margin: 0; }
.acct .links { margin: 14px 0 0; text-align: center; color: var(--smoke); font-size: .9375rem; }
.acct .links a { color: var(--gold); }
.acct .me { margin: 0 0 12px; } .acct .me div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.acct .me dd { margin: 0; font-weight: 600; word-break: break-all; text-align: right; }
.acct .sessions, .acct .users { list-style: none; margin: 0 0 12px; padding: 0; }
.acct .sessions li, .acct .users li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .9375rem; }
.acct .sessions li span, .acct .users li span { color: var(--smoke); font-size: .8125rem; }
.acct .users .tag { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.acct .users button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ivory); font-size: .8125rem; }
.acct .foot { text-align: center; font-size: .8125rem; margin: 18px 0 0; } .acct .foot a { color: var(--gold); }
.acct .toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; max-width: 92vw; padding: 10px 16px; border-radius: 999px; background: rgba(7, 8, 15, .92); border: 1px solid var(--line); color: var(--ivory); font-size: .875rem; font-weight: 600; }
.acct .notice { margin: 0 0 12px; }
/* contrast over the chandelier glow: darker glass for the account and libreta panels, a backdrop under the foot line */
.acct .glass { background: var(--glass-2); }
.acct .foot { margin: 18px auto 0; padding: 8px 12px; border-radius: 10px; background: rgba(7, 8, 15, .72); color: #d8d2c8; }
/* Block J4.1: profiles */
.acct .tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 14px; }
.acct .tab { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(7, 8, 15, .8); color: #d8d2c8; font-weight: 600; font-size: .9375rem; text-decoration: none; }
.acct .tab[aria-selected="true"] { border-color: var(--gold); color: var(--gold); background: linear-gradient(rgba(232, 196, 118, .12), rgba(232, 196, 118, .12)), rgba(7, 8, 15, .85); }
.acct .label.section.first { margin-top: 0; }
.pf-head { display: flex; gap: 14px; align-items: center; margin: 0 0 12px; }
.pf-photo-wrap { display: inline-flex; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); background: rgba(7, 8, 15, .6); flex: 0 0 96px; }
.pf-photo-wrap.character { border-color: var(--brass); }
.pf-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-photo-btn { position: relative; padding: 0; border: 0; background: none; border-radius: 50%; flex: 0 0 auto; }
.pf-photo-hint { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: rgba(7, 8, 15, .9); border: 1px solid var(--line); color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pf-id { min-width: 0; } .pf-id .h2 { margin-bottom: 2px; word-break: break-all; } .pf-id .muted { margin: 0 0 4px; color: #cfc9bf; }
.pf-email { display: flex; align-items: center; gap: 6px; margin: 0; color: #d8d2c8; font-size: .875rem; word-break: break-all; } .pf-email svg { width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 2; flex: 0 0 auto; } .pf-email small { color: var(--smoke); font-size: .75rem; white-space: nowrap; }
.pf-bio { margin: 2px 0 0; color: var(--ivory); font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.acct form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; min-height: 64px; border-radius: 10px; border: 1px solid var(--line); background: rgba(7, 8, 15, .55); color: var(--ivory); font: inherit; font-size: 1rem; resize: vertical; }
.acct form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.pf-switch { margin: 14px 0 4px; } .acct .row.tight { margin: 0 0 8px; }
.pf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.pf-stats div { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(7, 8, 15, .45); min-width: 0; }
.pf-stats dt { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #cfc9bf; }
.pf-stats dd { margin: 2px 0 0; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ivory); overflow-wrap: anywhere; }
.pf-stats dd.pos { color: #9fe3b1; } .pf-stats dd.neg { color: #ffb0bc; }
.pf-chart { display: block; width: 100%; height: auto; margin-top: 4px; } .pf-chart .zero { stroke: rgba(232, 196, 118, .45); stroke-width: 1; stroke-dasharray: 3 3; } .pf-chart .line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; } .pf-chart .dot.pos { fill: #9fe3b1; } .pf-chart .dot.neg { fill: #ffb0bc; }
.pf-hist { list-style: none; margin: 0; padding: 0; }
.pf-hist li { border-bottom: 1px solid var(--line-soft); } .pf-hist li:last-child { border-bottom: 0; }
.pf-hist .rowbtn { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; width: 100%; min-height: 56px; padding: 8px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.pf-hist .avatar.sm { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(7, 8, 15, .6) center/cover no-repeat; display: inline-block; }
.pf-hist .who b { display: block; font-size: .9375rem; color: var(--ivory); } .pf-hist .who span { color: #cfc9bf; font-size: .8125rem; }
.pf-hist .amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ivory); } .pf-hist .amt small { display: block; font-weight: 400; color: #cfc9bf; font-size: .75rem; }
.pf-hist .amt.pos { color: #9fe3b1; } .pf-hist .amt.neg { color: #ffb0bc; }
.pf-summary .table-wrap { overflow-x: auto; } .pf-table { width: 100%; border-collapse: collapse; font-size: .875rem; } .pf-table th, .pf-table td { padding: 6px 4px; border-bottom: 1px solid var(--line-soft); text-align: left; } .pf-table th { color: #cfc9bf; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; } .pf-table td.num, .pf-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; } .pf-table .pos { color: #9fe3b1; } .pf-table .neg { color: #ffb0bc; }
.pf-summary .settle .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: .9375rem; }
.acct .back { min-height: 44px; padding: 0 12px 0 0; border: 0; background: none; color: var(--gold); font-weight: 600; font-size: 1rem; }
.acct .center { text-align: center; }
.acct .users li .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* crop dialog */
.crop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(7, 8, 15, .78); }
.crop-box { width: min(92vw, 360px); margin: 0; }
.crop-stage { width: 256px; height: 256px; margin: 8px auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); touch-action: none; cursor: grab; background: #0b0f2a; }
.crop-stage canvas { display: block; width: 256px; height: 256px; }
.crop-zoom { display: block; margin: 8px 0; } .crop-zoom input { display: block; width: 100%; margin-top: 6px; accent-color: var(--gold); }
.crop .row2 { margin-top: 10px; } .crop .btn { margin-top: 0; }
/* J4.2: Personaje */
.pf-char { margin: 6px 0 10px; } .pf-char > summary { list-style: none; display: inline-flex; cursor: pointer; } .pf-char > summary::-webkit-details-marker { display: none; }
.pf-char .picker-grid { max-height: 360px; } .pf-char .tile.selected .portrait { box-shadow: 0 0 0 3px var(--gold); } .pf-char .tile.selected .tname { color: var(--gold); font-weight: 700; }
.pf-char-line { margin: 0 0 6px; color: #d8d2c8; }
/* block J4.4: the profile inside the table overlay (?embed=1): no wordmark or foot, room below for the voice buttons */
body.embed .acct .wordmark, body.embed .acct .foot, body.embed .bg { display: none; }
body.embed { background: #0b0f2a; }
body.embed .acct { padding-top: 8px; padding-bottom: 84px; }
/* block J4.6.1: the wordmark goes to the homepage (no layout change; the >= 44 px tap area comes from /juego/styles.css .brand-link) */
.acct .brand-link:active { opacity: .8; }
/* block J4.7: the app bar pushed the wordmark block down onto the chandelier glow: the tagline and the small labels get a backdrop-free lift */
.acct .tagline { color: #e6dfd2; text-shadow: 0 1px 4px rgba(0, 0, 0, .95), 0 0 12px rgba(0, 0, 0, .8); }
.acct .glass .label { color: #b9bdd8; }
.acct .foot a { white-space: nowrap; }
