/* ======================================================================
   NeXus · James Senior · reich verzierte Steampunk-Optik
   Reiner Designaufsatz: nur HTML/CSS. Kein Chat und keine Registrierung.
   Verwendet vorhandene NeXus-Verzierungen und James' vorhandenes Porträt.
   ====================================================================== */

.reg-preview-backdrop {
  background:rgba(2,4,5,.77);
  backdrop-filter: blur(4px) saturate(.8);
  -webkit-backdrop-filter: blur(4px) saturate(.8);
}
.reg-window {
  --reg-brass: #b78c50;
  --reg-light: #f7deac;
  --reg-bronze: #4e351e;
  width:min(1040px,100%);
  padding:19px 19px 17px;
  border:3px solid #ae844b;
  border-radius:47px 47px 38px 38px / 62px 62px 42px 42px;
  background:
    radial-gradient(ellipse at 50% -2%,#a2794439 0%,transparent 35%),
    radial-gradient(ellipse at 90% 47%,#af82311b 0%,transparent 55%),
    radial-gradient(ellipse at 13% 82%,#d2a24a15 0%,transparent 48%),
    repeating-linear-gradient(153deg,#111411 0 3px,#191916 3px 6px,#131612 6px 11px);
  box-shadow:
    inset 0 0 0 2px #090d0c,
    inset 0 0 0 5px #684c2b,
    inset 0 0 0 7px #1b1812,
    inset 0 0 0 9px #9d7844,
    inset 0 0 31px 11px #000b,
    0 0 0 2px #16140e,
    0 0 0 5px #45311b,
    0 0 0 6px #94703b,
    0 24px 80px #000d,
    0 0 50px #bb7e2c24;
}
.reg-window::before {
  inset:10px; border-radius:36px 36px 29px 29px / 44px 44px 30px 30px;
  border:1px solid #ac7b3f8c;
  background:
    radial-gradient(circle at center,#fae0a6 0 1.5px,#604525 2px 3.5px,transparent 4.5px) top 4px left 26px / 88px 12px repeat-x,
    radial-gradient(circle at center,#fae0a6 0 1.5px,#604525 2px 3.5px,transparent 4.5px) bottom 4px left 26px / 88px 12px repeat-x,
    radial-gradient(circle at center,#cfa164 0 1.5px,#604525 2px 3.5px,transparent 4.5px) top 34px left 3px / 12px 79px repeat-y,
    radial-gradient(circle at center,#cfa164 0 1.5px,#604525 2px 3.5px,transparent 4.5px) top 34px right 3px / 12px 79px repeat-y;
  box-shadow:inset 0 0 0 1px #211b13,inset 0 0 0 3px #6146264d;
}
.reg-window::after {
  inset:17px;border-radius:29px 29px 23px 23px / 39px 39px 26px 26px;
  border:1px solid #bb985654;box-shadow:0 0 0 1px #090c0b;
}
.reg-ornament-top {
  z-index:10;top:-15px;
  width:255px;height:43px;
  background:url('frame-filigree.svg') center/contain no-repeat;
  font-size:0;filter:sepia(.5) saturate(1.25) brightness(1.18);
}
.reg-ornament-bottom {
  z-index:7;bottom:-14px;
  width:250px;height:32px;
  background:url('frame-filigree.svg') center/contain no-repeat;
  font-size:0;
}
.reg-decoration {
  position:absolute;z-index:6;pointer-events:none;
  background:url('frame-gear.svg') center/contain no-repeat;
  filter:sepia(1) saturate(1.5) brightness(1.3) drop-shadow(0 3px 3px #000);
  opacity:.95;
}
.reg-decoration-gear-left {width:58px;height:58px;left:10px;top:93px;transform:rotate(-22deg)}
.reg-decoration-gear-right {width:88px;height:88px;right:-4px;top:103px;transform:rotate(15deg)}
.reg-decoration-gear-small {width:53px;height:53px;right:46px;top:153px;transform:rotate(-9deg);opacity:.75}
.reg-decoration-gear-bottom {width:65px;height:65px;left:calc(50% - 32px);bottom:-31px;opacity:.9}
.reg-brass-pipe {
  position:absolute;top:67px;z-index:3;height:13px;pointer-events:none;
  background:linear-gradient(180deg,#241911 0%,#e3b675 23%,#5b3822 36%,#bb8e56 64%,#201710 100%);
  border-top:1px solid #f4d39a;border-bottom:1px solid #19130b;
  box-shadow:0 3px 6px #0009;
}
.reg-brass-pipe-left {left:53px;width:28%;border-radius:20px 3px 3px 20px}
.reg-brass-pipe-right {right:57px;width:27%;border-radius:3px 20px 20px 3px}
.reg-brass-pipe::after {
  content:"";position:absolute;top:-4px;right:20%;width:13px;height:20px;
  background:linear-gradient(90deg,#402914,#e0ad71,#5b3e24);
  border:1px solid #a87640;border-radius:3px;box-shadow:1px 1px 4px #000b;
}
.reg-header {
  position:relative;z-index:5;flex-shrink:0;
  display:grid;grid-template-columns:minmax(185px,1fr) minmax(290px,2fr) minmax(165px,1.05fr);
  gap:0;align-items:center;
  min-height:112px;margin:0 12px 5px;
  border:0;background:none;box-shadow:none;
}
.reg-header::before {
  content:"";position:absolute;inset:3px 8px 16px;z-index:-1;
  border:1px solid #6b4a2b;
  background:linear-gradient(180deg,#241e16,#151813);
  border-radius:42px 42px 19px 19px/44px 44px 17px 17px;
  box-shadow:0 3px 8px #0008,inset 0 1px #c29656,inset 0 -2px #0b0d0b;
}
.reg-identity {
  min-height:79px;position:relative;z-index:2;
  gap:11px;padding:12px 19px 12px 22px;
  border:1px solid #a27b48;border-right:1px solid #67492a;
  border-radius:44px 16px 23px 27px / 43px 14px 22px 27px;
  background:linear-gradient(125deg,#463321,#1b211c 45%,#171712);
  box-shadow:inset 0 0 0 2px #0c0f0c,inset 0 0 0 4px #6e513088,0 4px 12px #000b;
}
.reg-identity-gear {
  width:53px;height:53px;flex:0 0 53px;font-size:39px;
  border:2px solid #d6a767;color:#f1cb8c;
  box-shadow:0 0 0 3px #110f0b,0 0 0 5px #87613a,inset 0 0 9px #000;
}
.reg-identity strong {font-size:clamp(1.1rem,2.4vw,1.8rem);text-shadow:0 1px #000}
.reg-identity span:not(.reg-identity-gear){font-size:.72rem;color:#ebc994}
.reg-heading {
  z-index:3;min-height:116px;margin:0 -19px;align-self:start;
  padding:21px 11px 12px;
  background:
    radial-gradient(ellipse at 50% 0%,#59412a60,transparent 70%),
    linear-gradient(#312820,#101513 88%);
  border:2px solid #d4aa6a;
  border-radius:53px 53px 25px 25px / 40px 40px 23px 23px;
  box-shadow:
    inset 0 0 0 3px #0b0e0c,
    inset 0 0 0 5px #7b582e,
    inset 0 5px 10px #d5ae5321,
    0 0 0 3px #1f170e,
    0 5px 15px #000d;
}
.reg-heading::before {
  content:"";position:absolute;inset:9px 17px 12px;
  border:1px solid #75562f;border-radius:35px 35px 12px 12px;
  pointer-events:none;
}
.reg-heading::after {
  content:"❖";bottom:-17px;font-size:26px;color:#f0c582;
  text-shadow:0 1px #170e06,0 0 8px #e4ac6488;
}
.reg-heading h2 {
  position:relative;font-size:clamp(1.5rem,2.7vw,2.35rem);letter-spacing:.063em;
  margin:0 0 7px;text-shadow:0 2px 2px #000;
}
.reg-heading p{position:relative;font-size:clamp(.84rem,1.5vw,1.17rem)}
.reg-heading p::before,.reg-heading p::after{padding:0 7px}
.reg-header-right {
  min-height:79px;gap:12px;position:relative;z-index:2;
  padding:10px 18px 10px 25px;
  border:1px solid #a27b48;border-left:1px solid #664622;
  border-radius:18px 44px 30px 15px / 16px 44px 30px 15px;
  background:linear-gradient(225deg,#41311f,#1b201a 50%,#181915);
  box-shadow:inset 0 0 0 2px #0b0f0d,inset 0 0 0 4px #70523288,0 4px 13px #0009;
}
.reg-header-right p {color:#f1d19f;text-shadow:0 1px #000;font-size:.84rem}
.reg-close {
  flex-basis:47px;width:47px;height:47px;
  background:radial-gradient(circle at 40% 33%,#705038,#291e14 60%,#14140e);
  border:2px solid #edc68a;color:#ffe4b4;
  box-shadow:0 0 0 3px #16120e,0 0 0 5px #876139,0 2px 8px #000b,inset 0 0 0 2px #6d4d2a;
}
.reg-close:hover{background:radial-gradient(circle at 40% 33%,#926c43,#291e14 72%)}
.reg-chat-area {
  position:relative;margin:0 12px;padding:11px clamp(13px,2.5vw,28px) 15px;
  border:1px solid #654927;border-top:0;
  border-radius:0 0 11px 11px;
  background:
    linear-gradient(180deg,#1013103b,#1b1b177d 30%,#111713aa),
    radial-gradient(ellipse at 51% 50%,#63503821,transparent 62%),
    repeating-linear-gradient(135deg,#181a16 0 4px,#1b1b18 4px 8px);
  box-shadow:inset 0 8px 14px #0006,inset 0 0 0 2px #121612;
}
.reg-chat-area::before {
  content:"";position:absolute;right:8px;top:18px;width:133px;height:133px;
  background:url('frame-gear.svg') center/contain no-repeat;
  filter:sepia(1) saturate(1.2);opacity:.16;
}
.reg-chat-area::after {
  content:"";position:absolute;left:-36px;bottom:-13px;width:125px;height:125px;
  background:url('frame-gear.svg') center/contain no-repeat;
  filter:sepia(1) saturate(1.2);opacity:.12;
}
.reg-preview-label {font-size:.76rem;margin:4px 0 17px;color:#d5b788}
.reg-conversation {gap:13px}
.reg-message{gap:13px}
.reg-avatar {
  position:relative;flex:0 0 58px;width:58px;height:58px;
  border:2px solid #b98f51;
  background:#3d3024;
  box-shadow:0 0 0 3px #14130e,0 0 0 5px #876039,0 4px 9px #000b,inset 0 0 7px #000;
}
.reg-message:first-child .reg-avatar{width:91px;height:91px;flex-basis:91px;border-width:3px}
.reg-avatar img {
  display:block;width:100%;height:100%;object-fit:cover;object-position:center 24%;
  filter:sepia(.38) saturate(.77) contrast(1.07) brightness(.88);
}
.reg-bubble {padding:12px 19px 13px;border-radius:17px;box-shadow:0 5px 14px #000b}
.reg-bubble p{font-size:clamp(.94rem,1.4vw,1.11rem);line-height:1.38}
.reg-bubble-james {
  max-width:min(78%,680px);
  border:2px solid #b0874d;
  border-radius:18px 19px 19px 7px;
  background:linear-gradient(158deg,#383027,#22241e 65%,#1a1d19);
  box-shadow:inset 0 0 0 2px #131510,inset 0 2px 8px #eed59b14,0 4px 13px #000a;
}
.reg-bubble-james::before{left:-10px;bottom:17px;background:#25251e;border-color:#b0874d}
.reg-bubble-james small{font-size:.76rem;color:#f0bf80;margin-bottom:4px}
.reg-bubble-guest {
  max-width:min(67%,590px);padding:10px 22px;
  border:2px solid #b18953;
  border-radius:18px 17px 7px 17px;
  background:linear-gradient(155deg,#fff1d8,#dfc6a4 91%);
  box-shadow:inset 0 0 0 2px #fff8e2c7,0 3px 10px #000b;
}
.reg-bubble-guest::after{border-color:#b18953}
.reg-guest-seal {
  background:radial-gradient(circle at 45% 25%,#584329,#1b1e19 72%);
  color:#ecc58b;border-color:#c39b60;
  box-shadow:0 0 0 3px #17130d,0 0 0 4px #765735,inset 0 0 7px #000b;
}
.reg-composer {
  position:relative;z-index:5;margin:7px 12px 0;
  padding:10px 10px 10px 18px;min-height:65px;
  border:2px solid #bf9259;border-radius:14px;
  background:linear-gradient(#342c22,#171a15 70%);
  box-shadow:inset 0 0 0 2px #0d100d,inset 0 0 0 5px #71502b9c,0 5px 9px #0009;
}
.reg-composer::before,.reg-composer::after{
  content:"";position:absolute;top:50%;height:8px;width:8px;border-radius:50%;
  background:radial-gradient(circle at 38% 35%,#ffe2a5,#876035 65%,#1b160e 90%);
  box-shadow:0 0 0 1px #17130e,0 1px 2px #000;
  transform:translateY(-50%);
}
.reg-composer::before{left:5px}.reg-composer::after{right:5px}
.reg-composer-caption{font-size:.75rem;color:#ffdda6}
.reg-composer input{font-style:italic;font-size:1.01rem}
.reg-composer button {
  border:2px solid #bd925a;border-radius:9px;padding:10px 25px;
  color:#f0d6a7;
  background:linear-gradient(150deg,#665039,#3e2d20 45%,#231c15);
  box-shadow:inset 0 0 0 2px #0c0e0b,inset 0 0 0 4px #78542c,0 2px 5px #000a;
  opacity:.82;
}
.reg-footer {
  position:relative;z-index:5;margin:9px 12px 0;
  border:1px solid #a07746;border-radius:10px 10px 20px 20px;
  background:linear-gradient(#27251e,#141812);
  box-shadow:inset 0 0 0 2px #0b0f0c,inset 0 0 0 4px #4b3c25,0 4px 10px #0008;
}
.reg-footer span{min-height:43px;color:#e7c899}
.reg-footer b{color:#f1c483}

@media (max-width:760px) {
 .reg-window {padding:12px 11px 13px;border-radius:29px 29px 25px 25px / 35px 35px 25px 25px}
 .reg-header {margin:0 7px 4px;grid-template-columns:minmax(128px,1fr) minmax(175px,1.6fr) auto;min-height:93px}
 .reg-heading{min-height:94px;margin:0 -10px;padding:17px 8px 10px;border-radius:32px 32px 18px 18px}
 .reg-heading h2{font-size:clamp(1.18rem,3.2vw,1.8rem)}
 .reg-heading p{font-size:.83rem}
 .reg-identity{min-height:69px;padding:8px 10px;border-radius:30px 10px 13px 20px}
 .reg-identity-gear{width:42px;height:42px;flex-basis:42px;font-size:30px}
 .reg-identity strong{font-size:1.15rem}
 .reg-identity span:not(.reg-identity-gear){font-size:.61rem}
 .reg-header-right{min-height:65px;padding:9px 8px 9px 16px;border-radius:8px 25px 20px 8px}
 .reg-close{width:39px;height:39px;flex-basis:39px;font-size:1.7rem}
 .reg-brass-pipe{top:54px}
 .reg-decoration-gear-left{width:54px;height:54px;top:49px}
 .reg-decoration-gear-right{width:64px;height:64px;top:102px}
 .reg-decoration-gear-small{width:39px;height:39px;top:143px}
 .reg-chat-area{margin:0 7px;padding:10px 13px 14px}
 .reg-message:first-child .reg-avatar{width:66px;height:66px;flex-basis:66px}
 .reg-avatar{width:48px;height:48px;flex-basis:48px}
 .reg-bubble{padding:10px 13px}
 .reg-bubble p{font-size:.95rem}
 .reg-bubble-james{max-width:83%}
 .reg-composer{margin:5px 7px 0;padding:7px 9px 7px 15px;min-height:55px}
 .reg-footer{margin:7px 7px 0}
}
@media(max-width:500px) {
 .reg-window {padding:10px 7px 9px;border-radius:22px}
 .reg-window::before{inset:7px;border-radius:15px}
 .reg-window::after{inset:12px;border-radius:12px}
 .reg-header {grid-template-columns:1fr auto;grid-template-rows:auto auto;margin:0 6px 4px;min-height:0}
 .reg-identity{grid-row:1;grid-column:1;min-height:52px;padding:6px 13px;border-radius:21px 8px 8px 11px}
 .reg-header-right{grid-row:1;grid-column:2;min-height:52px;padding:6px 12px;border-radius:7px 21px 11px 7px}
 .reg-heading{grid-row:2;grid-column:1/-1;margin:-1px 0 1px;min-height:69px;padding:10px 6px;border-radius:17px}
 .reg-heading h2{font-size:1.35rem;margin:0 0 5px}
 .reg-heading p{font-size:.8rem}
 .reg-heading::after{bottom:-13px;font-size:21px}
 .reg-brass-pipe{display:none}
 .reg-decoration-gear-left{width:39px;height:39px;left:6px;top:45px}
 .reg-decoration-gear-right{width:44px;height:44px;right:2px;top:86px}
 .reg-decoration-gear-small{display:none}
 .reg-decoration-gear-bottom{width:43px;height:43px;left:calc(50% - 21px);bottom:-23px}
 .reg-chat-area{margin:0 6px;padding:8px 10px 12px}
 .reg-conversation{gap:11px}
 .reg-message{gap:8px}
 .reg-message:first-child .reg-avatar{width:53px;height:53px;flex-basis:53px}
 .reg-avatar{width:38px;height:38px;flex-basis:38px}
 .reg-bubble{padding:8px 9px}
 .reg-bubble p{font-size:.91rem}
 .reg-bubble-james{max-width:calc(100% - 50px)}
 .reg-bubble-guest{max-width:calc(100% - 52px)}
 .reg-guest-seal{width:29px;height:29px;flex-basis:29px}
 .reg-composer{margin:5px 6px 0;padding:6px 8px 6px 12px;min-height:49px}
 .reg-composer input{font-size:.91rem}
 .reg-composer button{padding:8px 11px}
 .reg-footer{margin:6px 6px 0;border-radius:6px 6px 12px 12px}
 .reg-footer span{min-height:39px}
 .reg-ornament-top{width:170px;top:-12px}
 .reg-ornament-bottom{width:160px}
}
@media(max-height:700px) {
 .reg-window{padding-top:10px;padding-bottom:9px}
 .reg-header{min-height:80px}
 .reg-heading{min-height:87px;padding-top:12px}
 .reg-footer span{min-height:34px;padding-top:5px;padding-bottom:5px}
}

/* Porträt-Ausschnitt: Gesicht und Schulterpartie statt der ganzen Figur. */
.reg-avatar img {
  width:195%;
  height:195%;
  max-width:none;
  max-height:none;
  object-fit:cover;
  transform:translate(-24%, -2%);
}
/* Bei mittleren Fensterbreiten bleibt der linke James-Schriftzug lesbar. */
@media (min-width:761px) and (max-width:1000px) {
  .reg-identity {padding:9px 9px;gap:8px}
  .reg-identity-gear {width:42px;height:42px;flex-basis:42px;font-size:31px}
  .reg-identity span:not(.reg-identity-gear) {font-size:.63rem}
  .reg-header-right p{font-size:.72rem}
}
.reg-avatar img {position:absolute;left:0;top:0}
