/* AVADA KEDAVRA · REFORMA VISUAL V
   Interiores: Meu Hogwarts, Meu Bruxo e Gringotes.
   Não altera autenticação, dados pessoais, economia ou permissões.
*/
:root {
  --ak5-ink:#0d1117;
  --ak5-panel:#171d24;
  --ak5-panel-alt:#1b222a;
  --ak5-line:rgba(211,171,107,.24);
  --ak5-gold:#d9b57a;
  --ak5-cream:#f4e9d7;
  --ak5-muted:#b6afa7;
}
/* Elementos de interface reutilizáveis e foco visível. */
.ak5-hogwarts a:focus-visible,.ak5-profile a:focus-visible,.ak5-profile button:focus-visible,
.ak5-bank a:focus-visible,.ak5-bank button:focus-visible,
.ak5-profile input:focus-visible,.ak5-profile textarea:focus-visible,.ak5-profile select:focus-visible {
  outline:2px solid #e4c38d;outline-offset:3px;
}
.ak5-hogwarts a,.ak5-profile a,.ak5-bank a { -webkit-tap-highlight-color:rgba(214,178,116,.13); }
.ak5-hogwarts [id],.ak5-bank [id] {scroll-margin-top:105px;}

/* I. Meu Hogwarts: recepção e orientação a partir do próprio painel. */
.ak5-hogwarts .ak3-welcome {min-height:510px;background:#090d13;}
.ak5-hogwarts .ak3-welcome-grid {min-height:510px;gap:clamp(24px,7vw,105px);}
.ak5-hogwarts .ak3-welcome-image {background-position:68% 37%;filter:saturate(.56) contrast(1.06);transform:scale(1.015);}
.ak5-hogwarts .ak3-welcome::after {background:
  linear-gradient(90deg,#070b11fa 0%,#090e16e8 35%,#0b121bb2 66%,#0c1016b7 100%),
  linear-gradient(0deg,#0d1117 0%,transparent 57%);}
.ak5-hogwarts .ak5-hero-tint {pointer-events:none;position:absolute;inset:0;z-index:-1;
  background:radial-gradient(ellipse at 88% 35%,rgba(203,154,89,.12),transparent 34%);}
.ak5-hogwarts .ak3-welcome-text h1 {font-size:clamp(68px,8.6vw,126px);letter-spacing:-.07em;text-wrap:balance;}
.ak5-hogwarts .ak3-welcome-intro {max-width:530px;}
.ak5-hogwarts .ak3-welcome-text .ak3-label:before {content:'';display:inline-block;vertical-align:middle;
  width:28px;height:1px;background:#d8b87f;margin-right:13px;}
.ak5-hogwarts .ak3-welcome-meta span {background:rgba(18,23,30,.76);border-color:rgba(226,186,123,.3);
  font-size:11px;letter-spacing:.04em;}
.ak5-hogwarts .ak3-portrait-block {max-height:380px;border-color:#e6c18f74;
  background:linear-gradient(175deg,#343139ba,#14171f);box-shadow:inset 0 0 0 10px #cbb17c10,0 29px 80px #0009;}
.ak5-hogwarts .ak3-portrait-block:before {border-color:#cba56a65;}
.ak5-hogwarts .ak3-portrait-block:after {content:'HOGWARTS · 1956';position:absolute;bottom:11px;left:0;right:0;
  text-align:center;letter-spacing:.22em;font:8px/1.4 Interface,Arial,sans-serif;color:#b8a782;z-index:4;}
.ak5-hogwarts .ak3-portrait-caption {padding-bottom:38px;}
.ak5-hogwarts .ak3-dashboard-content {padding-top:0;}
.ak5-compass {display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(0,1fr));
  border:1px solid var(--ak5-line);background:linear-gradient(135deg,#22252a,#141a21);
  box-shadow:0 18px 55px #0004;margin:31px 0 32px;}
.ak5-compass-intro {display:flex;align-items:center;gap:14px;padding:18px 22px;min-width:0;}
.ak5-compass-intro>span {color:#e3bc80;font:30px Editorial,Georgia,serif;}
.ak5-compass-intro>div {display:grid;gap:4px;}
.ak5-compass-intro strong {color:#f4e2c5;font:18px/1.25 Editorial,Georgia,serif;font-weight:400;}
.ak5-compass-intro small {color:#aca69b;font:10px/1.4 Interface,Arial,sans-serif;}
.ak5-compass>a {display:flex;align-items:center;gap:10px;min-width:0;border-left:1px solid var(--ak5-line);padding:17px 15px;
  color:#dfd8cd;font:11px/1.5 Interface,Arial,sans-serif;transition:background .18s,color .18s;}
.ak5-compass>a>span {color:#d7ae77;font:10px/1 Georgia,serif;}
.ak5-compass>a>b {margin-left:auto;font-size:16px;color:#c5a472;font-weight:400;}
.ak5-compass>a:hover {background:rgba(213,174,111,.13);color:#fff0d6;}
.ak5-hogwarts .ak3-stat-grid {gap:14px;}
.ak5-hogwarts .ak3-stat {min-height:226px;padding:28px;border-color:#d1aa6c36;
  background:linear-gradient(147deg,#22252b 0%,#151a21 73%);
  box-shadow:0 15px 34px #03070b35;transition:transform .18s,border-color .18s;}
.ak5-hogwarts .ak3-stat:hover {transform:translateY(-2px);border-color:#d6b4797b;}
.ak5-hogwarts .ak3-stat:nth-child(2) {background:radial-gradient(ellipse at 95% 5%,#b9945540,transparent 52%),linear-gradient(147deg,#292923,#161c20);}
.ak5-hogwarts .ak3-stat-head {letter-spacing:.16em;}
.ak5-hogwarts .ak3-sections {gap:15px;margin-top:28px;}
.ak5-hogwarts .ak3-panel {border-color:var(--ak5-line);background:linear-gradient(155deg,#191e25,#11171e);}
.ak5-hogwarts .ak3-panel-header {padding-bottom:20px;}
.ak5-hogwarts .ak3-panel-header h2 {text-wrap:balance;}
.ak5-hogwarts .ak3-event {position:relative;padding-left:23px;border-left:1px solid #cba7735c;margin-left:6px;}
.ak5-hogwarts .ak3-event:before {content:'';position:absolute;left:-5px;top:26px;width:9px;height:9px;
  background:#e0bc83;border:2px solid #171b21;border-radius:50%;box-sizing:border-box;}
.ak5-hogwarts .ak3-event>time {color:#dcb87a;}
.ak5-hogwarts .ak3-destinations {margin-top:76px;}
.ak5-hogwarts .ak3-destinations-grid {grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;}
.ak5-hogwarts .ak3-destinations-grid>a {min-height:227px;padding:23px 17px 25px;
  background:linear-gradient(145deg,#21242b,#121820);}
.ak5-hogwarts .ak3-destinations-grid h3 {font-size:clamp(22px,2vw,29px);overflow-wrap:anywhere;}
.ak5-hogwarts .ak3-destinations-grid p {font-size:11px;}
.ak5-hogwarts .ak3-destinations-grid>a:nth-child(3) {background:linear-gradient(145deg,#302c25,#181b1e);border-color:#d3b27658;}

/* II. Meu Bruxo: ficha de personagem, painéis e campos. */
.journey:has(.ak5-profile){max-width:1280px;padding-top:26px;}
.ak5-profile {color:#eee4d7;}
.ak5-profile .journey-heading {padding:38px clamp(22px,4vw,55px);border:1px solid #d4ad6d38;
  margin:22px 0 18px;background:radial-gradient(ellipse at 82% 22%,#d0a56819,transparent 35%),
  linear-gradient(125deg,#24272c,#151c22);position:relative;overflow:hidden;min-height:220px;align-items:center;}
.ak5-profile .journey-heading:after {content:'✥';position:absolute;right:8%;top:2%;color:#d9ad6e13;
  font:170px/1 Georgia,serif;pointer-events:none;}
.ak5-profile .journey-heading>div,.ak5-profile .journey-heading>.signout {position:relative;z-index:1;}
.ak5-profile .journey-heading h1 {font-size:clamp(49px,5.5vw,79px);letter-spacing:-.055em;color:#f9ecdb;}
.ak5-profile .journey-heading p:not(.eyebrow) {max-width:550px;color:#bcb5a9;font-size:13px;line-height:1.8;}
.ak5-profile .house-welcome {background:linear-gradient(125deg,var(--house-back,#192029),#121922);
  border-color:color-mix(in srgb,var(--house-glow,#cda66c) 45%,transparent);
  border-left:3px solid var(--house-glow,#d4af75);border-top-width:1px;padding:23px 29px;}
.ak5-profile .house-welcome>div {max-width:700px;}
.ak5-profile-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:19px 0 28px;}
.ak5-profile-actions>a {display:flex;align-items:center;gap:15px;min-width:0;padding:18px 20px;
  background:linear-gradient(145deg,#21272d,#161b20);border:1px solid var(--ak5-line);color:#eee1cd;
  transition:background .2s,border-color .2s,transform .2s;}
.ak5-profile-actions>a:hover {transform:translateY(-2px);background:#262b2e;border-color:#d8b47b9c;}
.ak5-profile-actions>a>span:first-child {font:29px/1 Editorial,Georgia,serif;color:#dbb47c;flex:none;}
.ak5-profile-actions>a>span:nth-child(2) {display:grid;gap:4px;min-width:0;}
.ak5-profile-actions strong {font:17px/1.25 Editorial,Georgia,serif;font-weight:400;}
.ak5-profile-actions small {color:#a9a7a2;font:10px/1.5 Interface,Arial,sans-serif;}
.ak5-profile-actions b {margin-left:auto;color:#d9b47b;font-weight:400;font-size:16px;}
.ak5-profile .account-layout {gap:25px;grid-template-columns:minmax(250px,300px) minmax(0,1fr);align-items:start;}
.ak5-profile .character-card {background:linear-gradient(150deg,#25282b,#151a20);border:1px solid #d4b27755;
  border-top:2px solid var(--house-glow,#d9b47b);padding:25px 22px;box-shadow:0 20px 52px #0004;}
.ak5-profile .character-card h2 {font-size:clamp(25px,2.2vw,34px);color:#f0dfc6;overflow-wrap:anywhere;}
.ak5-profile .character-house {color:var(--house-glow,#dcb779);}
.ak5-profile .character-details {border-color:#d4b17433;}
.ak5-profile .character-details span {font-size:12px;}
.ak5-profile .character-portrait-shell {overflow:hidden;}
.ak5-profile .character-portrait-shell img {width:100%;height:100%;object-fit:contain;object-position:center bottom;}
.ak5-profile .character-card .button {width:100%;justify-content:space-between;margin-top:8px;white-space:normal;min-height:43px;}
.ak5-profile .character-card .fine-print {border-top:1px solid #c8a66c26;padding-top:15px;margin-top:19px;}
.ak5-profile .account-content {min-width:0;}
.ak5-profile .ak5-account-tabs {display:flex;gap:3px;overflow-x:auto;scrollbar-width:thin;padding:7px;
  border:1px solid #c8a8733b;background:#14191d;margin:0 0 19px;}
.ak5-profile .ak5-account-tabs button {flex:1 0 auto;min-height:48px;margin:0;padding:12px 17px;color:#aca8a0;
  font:12px/1.4 Interface,Arial,sans-serif;background:transparent;border:1px solid transparent;
  border-bottom:2px solid transparent;white-space:nowrap;}
.ak5-profile .ak5-account-tabs button[aria-selected='true'] {color:#f4d5a3;border:1px solid #d4af7538;
  border-bottom:2px solid var(--house-glow,#d9b57a);background:linear-gradient(180deg,#d2aa671b,#cba66b08);}
.ak5-profile .ak5-account-tabs button:not([disabled]):hover {color:#f8e5c8;}
.ak5-profile .ak5-account-tabs button[disabled] {opacity:.4;cursor:not-allowed;}
.ak5-profile .form-paper {padding:clamp(24px,3.2vw,42px);background:linear-gradient(155deg,#20252a,#171d23);
  border:1px solid #cda8704d;box-shadow:0 16px 45px #0004;margin-bottom:22px;}
.ak5-profile .form-paper>h2 {font:400 clamp(30px,3.6vw,49px)/1.12 Editorial,Georgia,serif;
  color:#f6e8d4;letter-spacing:-.035em;margin:13px 0 24px;text-wrap:balance;}
.ak5-profile .character-form h3 {padding:12px 0 15px;margin:36px 0 21px;color:#f0d6ae;
  font:400 27px/1.22 Editorial,Georgia,serif;border-bottom:1px solid #caab773a;}
.ak5-profile .character-form label {color:#dcc6a4;line-height:1.5;}
.ak5-profile .character-form input:not([type='checkbox']),
.ak5-profile .character-form select,.ak5-profile .character-form textarea,
.ak5-profile .form-paper input:not([type='checkbox']),.ak5-profile .form-paper textarea {background:#10171d;
  border:1px solid #bea47761;color:#f4e7d3;border-radius:2px;box-shadow:none;min-height:47px;}
.ak5-profile .character-form textarea {line-height:1.6;}
.ak5-profile .character-form input:focus,.ak5-profile .character-form select:focus,.ak5-profile .character-form textarea:focus {
  border-color:#e0bd86;outline:2px solid #d4b27a77;outline-offset:1px;}
.ak5-profile .character-form input::placeholder,.ak5-profile .character-form textarea::placeholder {color:#8b8c87;}
.ak5-profile .ak-directory-check {padding:15px;background:#c8a3650d;border:1px solid #c6a76b36;}
.ak5-profile .ak-directory-check input {accent-color:#d4af75;min-height:auto;}
.ak5-profile .reading-progress {background:#d1b16c0b;border:1px solid #cca56f25;padding:16px;margin:16px 0;}
.ak5-profile .reading-progress progress {accent-color:#d7b272;}
.ak5-profile .journal-entry {border-color:#c9a56a3f;}

/* III. Gringotes: cofre, registro de moedas e fluxo de transferências. */
.ak-bank-main:has(.ak5-bank) {max-width:1280px;padding-top:24px;}
.ak5-bank {--ak5-vault-border:rgba(220,175,107,.32);}
.ak5-bank .ak-bank-hero {margin:19px 0 24px;min-height:317px;padding:clamp(35px,5vw,66px);
  display:flex;align-items:center;background:radial-gradient(circle at 82% 51%,#ac844a29,transparent 33%),
  linear-gradient(128deg,#252820,#191c20 58%,#10161d);box-shadow:0 25px 60px #0005;}
.ak5-bank .ak-bank-hero:before {border-color:#d8b77960;}
.ak5-bank .ak-bank-hero h1 {font:400 clamp(48px,5.9vw,82px)/1.03 Editorial,Georgia,serif;
  letter-spacing:-.05em;max-width:660px;text-wrap:balance;}
.ak5-bank .ak-bank-hero p:not(.eyebrow) {font:13px/1.8 Interface,Arial,sans-serif;color:#bdb6ac;}
.ak5-bank .ak-bank-glyph {font-size:clamp(105px,16vw,220px);top:50%;right:8%;transform:translateY(-50%);
  color:rgba(222,174,101,.17);width:290px;height:290px;border:2px solid #c3a06a30;border-radius:50%;
  display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 23px #d7ad6b0b,0 0 0 25px #d7ad6b23;}
.ak5-bank-hero-note {display:inline-flex;align-items:center;gap:11px;margin-top:25px;padding:10px 13px;
  border:1px solid #bfa06e4e;color:#dbbf8f;background:#c39e5c10;
  font:9px/1.5 Interface,Arial,sans-serif;letter-spacing:.14em;}
.ak5-bank-hero-note span {font-size:18px;}
.ak5-bank .ak-bank-overview {gap:14px;margin:0 0 17px;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);}
.ak5-bank .ak-bank-overview>div {position:relative;min-width:0;padding:clamp(24px,3.3vw,39px);
  background:linear-gradient(135deg,#252724,#171d24);border:1px solid #c5a06a5a;}
.ak5-bank .ak-bank-overview>div:first-child:before {content:'◈';position:absolute;right:28px;top:18px;
  font:70px/1 Editorial,Georgia,serif;color:#c6a1681d;pointer-events:none;}
.ak5-bank .ak-bank-balance {font:400 clamp(49px,5.9vw,78px)/1.06 Editorial,Georgia,serif!important;
  letter-spacing:-.06em;color:#fff0ce!important;overflow-wrap:anywhere;}
.ak5-bank .ak-bank-balance small {white-space:nowrap;font:13px/1.2 Interface,Arial,sans-serif;}
.ak5-bank .ak-bank-identity {background:linear-gradient(145deg,#1c232b,#12191f);}
.ak5-bank .ak-bank-identity code {font:clamp(18px,2.2vw,27px)/1.4 ui-monospace,Consolas,monospace;
  color:#f2d5a8;letter-spacing:.015em;}
.ak5-bank .ak-bank-copy {display:inline-flex;align-items:center;gap:7px;text-decoration:none;
  border:1px solid #c7a16c5a;background:#bd995d0d;padding:11px 15px;min-height:42px;color:#f0ce9a;}
.ak5-bank .ak-bank-copy:hover {background:#c9a26925;border-color:#dab87e;}
.ak5-copy-feedback {min-height:16px;color:#bdcaaa;font:11px/1.4 Interface,Arial,sans-serif;}
.ak5-bank-nav {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #c8a8773b;
  background:#151b22;margin-bottom:16px;}
.ak5-bank-nav a {color:#d7b77e;font:11px/1.5 ui-monospace,monospace;display:flex;align-items:center;
  justify-content:center;gap:10px;min-height:51px;padding:12px 15px;border-right:1px solid #c8a87732;transition:background .18s;}
.ak5-bank-nav a:last-child {border:0;}
.ak5-bank-nav a span {font:12px/1.4 Interface,Arial,sans-serif;color:#e0d9cc;}
.ak5-bank-nav a:hover {background:#d4ad7020;}
.ak5-bank .ak-bank-columns {gap:16px;align-items:start;}
.ak5-bank .ak-bank-section {padding:clamp(24px,3.2vw,37px);border-color:#c9a66e45;
  background:linear-gradient(148deg,#20252c,#161c23);}
.ak5-bank .ak-bank-section h2 {font:400 clamp(32px,3vw,44px)/1.1 Editorial,Georgia,serif;
  letter-spacing:-.025em;}
.ak5-bank .ak-bank-form {padding-top:8px;}
.ak5-bank .ak-bank-form input,.ak5-bank .ak-bank-confirm input {background:#0e151c;
  border-color:#c6a77460;border-radius:2px;}
.ak5-bank .ak-bank-button {font-weight:600;letter-spacing:.025em;}
.ak5-bank .ak-bank-list {margin-top:16px;}
.ak5-bank .ak-bank-entry {display:grid;grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;gap:12px;padding:18px 0;border-bottom-color:#caaa7340;}
.ak5-bank .ak-bank-entry:last-child {border-bottom:0;}
.ak5-bank .ak5-entry-symbol {width:37px;height:37px;border:1px solid #ceab754b;background:#c49a5716;
  display:flex;align-items:center;justify-content:center;font:21px Georgia,serif;color:#dfbd85;}
.ak5-bank .ak-bank-entry strong {font-size:12px;}
.ak5-bank .ak-bank-entry b {font:600 12px/1.4 ui-monospace,Consolas,monospace;white-space:nowrap;}
.ak5-bank .ak-bank-disclaimer {border-left:2px solid #c9a2677b;padding:8px 16px;margin-top:28px;max-width:700px;}

/* Telas menores: nenhum painel deve provocar scroll horizontal. */
@media (max-width:1050px){
 .ak5-hogwarts .ak3-destinations-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
 .ak5-compass{grid-template-columns:1fr 1fr;}
 .ak5-compass-intro{grid-column:1/-1;border-bottom:1px solid var(--ak5-line);}
 .ak5-compass>a:nth-of-type(1){border-left:0;}
 .ak5-compass>a:nth-of-type(3){border-top:1px solid var(--ak5-line);grid-column:1/-1;}
 .ak5-profile .account-layout{grid-template-columns:250px minmax(0,1fr);gap:18px;}
}
@media (max-width:800px){
 .ak5-hogwarts .ak3-welcome-grid{grid-template-columns:minmax(0,1fr) minmax(150px,220px);gap:22px;}
 .ak5-hogwarts .ak3-welcome-text h1{font-size:clamp(55px,10vw,84px);}
 .ak5-hogwarts .ak3-sections{grid-template-columns:1fr;}
 .ak5-profile .account-layout{grid-template-columns:1fr;}
 .ak5-profile .character-card{position:static;}
 .ak5-bank .ak-bank-overview{grid-template-columns:1fr;}
 .ak5-bank .ak-bank-hero{min-height:290px;}
 .ak5-bank .ak-bank-glyph{opacity:.6;right:-65px;}
}
@media (max-width:640px){
 .ak5-hogwarts .ak3-welcome{min-height:0;}
 .ak5-hogwarts .ak3-welcome-grid{min-height:0;gap:22px;padding-top:45px;padding-bottom:43px;grid-template-columns:minmax(0,1fr) 120px;}
 .ak5-hogwarts .ak3-welcome-text h1{font-size:clamp(45px,10vw,67px);margin:12px 0 16px;}
 .ak5-hogwarts .ak3-welcome-intro{font-size:15px;}
 .ak5-hogwarts .ak3-portrait-block{min-height:152px;max-height:215px;}
 .ak5-hogwarts .ak3-portrait-caption{font-size:11px;padding-left:4px;padding-right:4px;}
 .ak5-hogwarts .ak3-welcome-meta{margin:13px 0 19px;}
 .ak5-hogwarts .ak3-welcome-meta span{font-size:10px;padding:7px 9px;}
 .ak5-compass{margin:20px 0 24px;}
 .ak5-hogwarts .ak3-stat-grid{grid-template-columns:1fr;}
 .ak5-hogwarts .ak3-stat{min-height:176px;padding:22px;}
 .ak5-hogwarts .ak3-stat>strong{margin:13px 0 8px;}
 .ak5-hogwarts .ak3-sections{margin-top:20px;}
 .ak5-hogwarts .ak3-event{grid-template-columns:1fr;gap:6px;}
 .ak5-hogwarts .ak3-destinations{margin-top:56px;}
 .ak5-hogwarts .ak3-destinations-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 .ak5-hogwarts .ak3-destinations-grid>a{min-height:192px;padding:19px 16px;}
 .ak5-hogwarts .ak3-destinations-grid h3{font-size:23px;}
 .ak5-profile .journey-heading{min-height:0;padding:25px 21px;margin-top:17px;}
 .ak5-profile .journey-heading h1{font-size:clamp(44px,12vw,63px);}
 .ak5-profile .journey-heading:after{right:-13%;top:14%;font-size:120px;}
 .ak5-profile .house-welcome{padding:20px;}
 .ak5-profile-actions{grid-template-columns:1fr;gap:8px;margin:14px 0 22px;}
 .ak5-profile-actions>a{padding:13px 17px;min-height:63px;}
 .ak5-profile .ak5-account-tabs{margin-bottom:13px;}
 .ak5-profile .ak5-account-tabs button{padding:11px 12px;font-size:11px;min-height:44px;}
 .ak5-profile .form-paper{padding:22px 19px;}
 .ak5-profile .form-paper>h2{font-size:clamp(29px,8vw,37px);}
 .ak5-profile .character-form h3{font-size:25px;}
 .ak5-bank .ak-bank-hero{min-height:245px;padding:33px 23px;}
 .ak5-bank .ak-bank-hero h1{font-size:clamp(46px,10vw,61px);}
 .ak5-bank .ak-bank-glyph{font-size:130px;right:-116px;width:240px;height:240px;opacity:.4;}
 .ak5-bank-nav{grid-template-columns:repeat(2,minmax(0,1fr));}
 .ak5-bank-nav a:nth-child(2){border-right:0;}
 .ak5-bank-nav a:nth-child(-n+2){border-bottom:1px solid #c8a87732;}
 .ak5-bank .ak-bank-section{padding:23px 18px;}
 .ak5-bank .ak-bank-entry{grid-template-columns:32px minmax(0,1fr) auto;gap:8px;}
 .ak5-bank .ak5-entry-symbol{width:30px;height:30px;font-size:16px;}
}
@media (max-width:390px){
 .ak5-hogwarts .ak3-welcome-grid{display:block;}
 .ak5-hogwarts .ak3-portrait-block{display:none;}
 .ak5-compass{display:flex;flex-direction:column;}
 .ak5-compass-intro{border-bottom:1px solid var(--ak5-line);}
 .ak5-compass>a,.ak5-compass>a:nth-of-type(3){border:0;border-top:1px solid var(--ak5-line);}
 .ak5-hogwarts .ak3-destinations-grid{grid-template-columns:1fr;}
 .ak5-hogwarts .ak3-destinations-grid>a{min-height:165px;}
 .ak5-bank .ak-bank-balance{font-size:44px!important;}
}
@media (prefers-reduced-motion:reduce){
 .ak5-profile-actions>a,.ak5-hogwarts .ak3-stat,.ak5-compass>a,.ak5-bank-nav>a{transition:none!important;}
 .ak5-profile-actions>a:hover,.ak5-hogwarts .ak3-stat:hover{transform:none;}
}

/* Meu Bruxo | Mobile Flow Fix V13 (15/10/2026)
   Mantem cabecalho/Explorar intactos. Forca hero, casa, atalhos e ficha a seguirem fluxo vertical.
   Corrige a sobreposicao visual reportada no Android. */
@media (max-width: 800px) {
  .journey:has(.ak5-profile) {
    min-width: 0;
    overflow-x: clip;
  }
  .journey > .ak5-profile {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
  }
  .journey > .ak5-profile > .journey-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: none !important;
    margin: 15px 0 18px !important;
    padding: 24px 20px !important;
    box-sizing: border-box;
    isolation: isolate;
    overflow: hidden;
  }
  .journey > .ak5-profile > .journey-heading > div:first-child {
    display: block;
    position: relative !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    margin: 0;
    padding: 0;
  }
  .journey > .ak5-profile > .journey-heading .eyebrow {
    position: relative;
    display: block;
    width: auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    letter-spacing: .13em;
    line-height: 1.55;
    margin: 0 0 9px;
  }
  .journey > .ak5-profile > .journey-heading h1 {
    position: relative !important;
    display: block !important;
    width: 100%;
    max-width: 100%;
    font-size: clamp(39px, 10.2vw, 62px) !important;
    line-height: 1.06 !important;
    letter-spacing: -.045em !important;
    overflow-wrap: break-word;
    margin: 0 0 13px !important;
  }
  .journey > .ak5-profile > .journey-heading p:not(.eyebrow) {
    position: relative !important;
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 13px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    overflow-wrap: anywhere;
  }
  .journey > .ak5-profile > .journey-heading > :not(div:first-child) {
    position: relative !important;
    inset: auto !important;
    align-self: flex-start;
    max-width: 100%;
    z-index: 1;
  }
  .journey > .ak5-profile > .house-welcome {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    order: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto !important;
    min-height: 0;
    flex: none;
    margin: 0 0 18px !important;
    padding: 20px 18px !important;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
  .journey > .ak5-profile > .ak5-profile-actions {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 0;
    gap: 10px !important;
    flex: none;
    margin: 0 0 24px !important;
    padding: 0 !important;
    transform: none !important;
    clear: both;
  }
  .journey > .ak5-profile > .ak5-profile-actions > a {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) 18px !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 79px !important;
    margin: 0 !important;
    padding: 15px 17px !important;
    box-sizing: border-box;
    overflow: hidden;
    transform: none !important;
  }
  .journey > .ak5-profile > .ak5-profile-actions > a > span:nth-child(2) {
    display: grid;
    gap: 3px;
    min-width: 0;
  }
  .journey > .ak5-profile > .ak5-profile-actions strong {
    display: block;
    font-size: 19px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .journey > .ak5-profile > .ak5-profile-actions small {
    display: block;
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
  }
  .journey > .ak5-profile > .ak5-profile-actions b {
    margin-left: 0;
    text-align: right;
  }
  .journey > .ak5-profile > .account-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }
}
@media (max-width: 420px) {
  .journey > .ak5-profile > .journey-heading { padding: 22px 16px !important; }
  .journey > .ak5-profile > .journey-heading h1 { font-size: clamp(37px, 10vw, 45px) !important; }
  .journey > .ak5-profile > .ak5-profile-actions > a { padding: 14px 13px !important; gap: 11px !important; }
}
