/* Member artwork layers. Original identity, statistics and avatar layout retained. */
#tv-visitor-dialog.tvc-account-design .tvc-member-hero{
 position:relative;isolation:isolate;z-index:3;
 background-color:#e5f4f5;
 /* The grid stays above the six white cells, so their edges remain legible.
    Fixed irregular positions avoid a different composition on each opening. */
 background-image:linear-gradient(#50858c38 1px,transparent 1px),linear-gradient(90deg,#50858c38 1px,transparent 1px),
  linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),
  linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);
 background-size:18px 18px;
 background-position:0 0,0 0,36px 36px,126px 18px,180px 72px,0 108px,72px 90px,216px 108px;
 background-repeat:repeat,repeat,no-repeat,no-repeat,no-repeat,no-repeat,no-repeat,no-repeat;
}
/* Each ornament has its own high-resolution sprite window and placement. */
#tv-visitor-dialog.tvc-account-design .tvc-member-hero{
 min-height:140px;gap:10px;margin-bottom:12px;overflow:visible;
}
.tvc-local-ornaments{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.tvc-local-ornament{
 position:absolute;display:block;pointer-events:none;
 background-image:url('./member-art/ornaments-v2.png');background-repeat:no-repeat;
 background-size:calc(1774px * var(--s)) calc(887px * var(--s));
 width:calc(var(--w) * var(--s) * 1px);height:calc(var(--h) * var(--s) * 1px);
 background-position:calc(-1 * var(--x) * var(--s) * 1px) calc(-1 * var(--y) * var(--s) * 1px);
}
.tvc-local-toggle{--s:.16;--x:154;--y:106;--w:228;--h:142;left:54px;top:10px}
.tvc-local-greeting{--s:.205;--x:554;--y:90;--w:411;--h:174;left:36%;top:3px}
.tvc-local-cursor{--s:.175;--x:155;--y:398;--w:197;--h:277;left:18px;top:48px}
.tvc-local-heart{--s:.18;--x:152;--y:739;--w:106;--h:96;left:24px;bottom:9px}
.tvc-local-star{--s:.15;--x:1304;--y:100;--w:134;--h:134;left:104px;bottom:9px}
.tvc-local-triangle{--s:.18;--x:1337;--y:745;--w:69;--h:72;left:51%;bottom:10px}
#tv-visitor-dialog.tvc-account-design .tvc-member-avatar,
#tv-visitor-dialog.tvc-account-design .tvc-designer-avatar{
 position:relative;z-index:1;box-shadow:none;filter:none;border:2px solid #080c0b;
 border-radius:0;width:112px;height:auto;min-height:140px;margin:0;
 box-sizing:border-box;align-self:stretch;zoom:1;flex-shrink:0;
}
#tv-visitor-dialog.tvc-account-design .tvc-designer-avatar{
 /* Only the portrait interior (618,238;224x278) of the 886x1422
    reference is visible. The frame is drawn once, by the CSS border. */
 background-position:93.353474% 20.804196%;background-size:395.535714% 511.510791%;
 background-repeat:no-repeat;
 /* Whiten only the very light portrait backdrop; retain its darker grid,
    the character artwork and the frame. The source asset is unchanged. */
 filter:url(#tvc-local-white-portrait-grid);
}
#tv-visitor-dialog.tvc-account-design .tvc-member-identity{
 position:relative;z-index:2;min-width:0;padding:24px 0 20px;
}
#tv-visitor-dialog.tvc-account-design .tvc-member-name{font-size:26px;margin-bottom:6px;line-height:1.5}
#tv-visitor-dialog.tvc-account-design .tvc-member-stats{gap:6px}
#tv-visitor-dialog.tvc-account-design .tvc-member-balance,
#tv-visitor-dialog.tvc-account-design .tvc-member-streak .tvc-streak,
#tv-visitor-dialog.tvc-account-design .tvc-streak-value{font-size:15px}
#tv-visitor-dialog.tvc-account-design .tvc-member-streak{padding-inline-start:6px}
/* Center below either statistic in RTL as well as LTR; keep the existing
   keyboard, touch, dismissal and reduced-motion behavior. */
#tv-visitor-dialog.tvc-account-design .tvc-member-hero .tvc-stat-tooltip{
 inset-inline:auto;left:50%;right:auto;transform:translate(-50%,-6px);z-index:10;
}
#tv-visitor-dialog.tvc-account-design .tvc-member-hero .tvc-stat-anchor:not(.tvc-tip-dismissed):is(:hover,:focus-visible,.tvc-tip-touch:focus)>.tvc-stat-tooltip{
 transform:translate(-50%,0);
}
/* The corner occludes the rear arc; the near arc crosses in front of its edge.
   Both layers share one asset and geometry. Their masks are disjoint, so the
   semi-transparent grain/shadow is never painted twice. The 2px card border
   is included in the offsets: its top-left maps to (16px, 36px) in the asset. */
#tv-visitor-dialog.tvc-account-design .tvc-next-badge{
 position:relative;isolation:isolate;margin-top:28px;
 --tvc-card-edge:2px;
 --tvc-ring-entry-x:16px;--tvc-ring-entry-y:36px;
 --tvc-ring-left:calc(-1 * (var(--tvc-ring-entry-x) + var(--tvc-card-edge)));
 --tvc-ring-top:calc(-1 * (var(--tvc-ring-entry-y) + var(--tvc-card-edge)));
 --tvc-ring-width:74px;--tvc-ring-height:100px;
 /* Cast shadow belongs to the card surface, outside the ring's hard occlusion
    mask, so its blur can fade naturally instead of ending at a triangle. */
 background-image:url('./member-art/ring-contact-shadow.svg?v=3');
 background-size:var(--tvc-ring-width) var(--tvc-ring-height);
 background-position:var(--tvc-ring-left) var(--tvc-ring-top);
 background-repeat:no-repeat;
}
#tv-visitor-dialog.tvc-account-design .tvc-next-badge::before,
#tv-visitor-dialog.tvc-account-design .tvc-next-badge::after{
 content:'';position:absolute;left:var(--tvc-ring-left);top:var(--tvc-ring-top);
 width:var(--tvc-ring-width);height:var(--tvc-ring-height);
 background:url('./member-art/ring-v2.png') center/contain no-repeat;
 pointer-events:none;
}
#tv-visitor-dialog.tvc-account-design .tvc-next-badge::before{
 /* Rear: only the part outside the card's top and left edges remains visible. */
 clip-path:polygon(0 0,100% 0,100% var(--tvc-ring-entry-y),var(--tvc-ring-entry-x) var(--tvc-ring-entry-y),var(--tvc-ring-entry-x) 100%,0 100%);
 z-index:0;
}
#tv-visitor-dialog.tvc-account-design .tvc-next-badge::after{
 /* Front arc: preserve the down-right stippled contact shadow from the PNG.
    This extra 4px wedge contains the shadow, but not the rear rim. The card
    remains opaque over the rear rim, including its black top border. */
 clip-path:polygon(var(--tvc-ring-entry-x) var(--tvc-ring-entry-y),48px var(--tvc-ring-entry-y),var(--tvc-ring-entry-x) 80px);
 z-index:2;
}

