/* TRIBUQUEST / Accueil dynamique, v2026-11-02. Aucun texte ni bouton dans l'image de fond. */
:root {
  --midnight:#172636; --midnight-deep:#0b1a25; --forest:#355846; --parchment:#f3e6c8;
  --gold:#d7ac55; --gold-light:#ffdf91; --copper:#b65f3c;
  --display:"Cinzel",Georgia,serif; --body:"Nunito Sans","Trebuchet MS",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#0b1a25;color:var(--parchment);font-family:var(--body)}
button{cursor:pointer;font:inherit}
button:focus-visible,a:focus-visible{outline:3px solid #ffedaa;outline-offset:3px}
[hidden]{display:none!important}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.skip-link{position:fixed;z-index:50;left:12px;top:-70px;padding:10px 15px;background:#fff;color:#08101d;border-radius:6px}
.skip-link:focus{top:12px}
.icon{width:21px;height:21px;flex:0 0 auto;fill:currentColor}
.page-shell{
  position:relative;isolation:isolate;display:flex;flex-direction:column;
  min-height:100vh;min-height:100svh;overflow:hidden;
  background:#7ba9a6 url('../assets/valbrume-fond.webp') center center/cover no-repeat;
}
.page-shell::before{
  content:"";pointer-events:none;position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(4,18,28,.39) 0%,rgba(8,25,35,.09) 19%,rgba(8,21,30,.1) 43%,rgba(8,23,31,.31) 69%,rgba(8,20,29,.77) 100%);
}
.page-shell::after{content:"";pointer-events:none;position:absolute;inset:-8%;z-index:-1;background:radial-gradient(ellipse at 50% 43%,transparent 22%,rgba(0,15,22,.12) 68%,rgba(0,12,24,.29) 100%)}
.site-header{
  position:relative;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:clamp(8px,1vw,20px);
  min-height:79px;padding:10px clamp(18px,2.4vw,49px);
  background:linear-gradient(180deg,rgba(7,20,29,.96),rgba(12,31,40,.91));
  border-bottom:1px solid #d9ad62aa;box-shadow:0 4px 23px #06121aaa,inset 0 1px #d8ab5c50;
}
.header-start{display:flex;align-items:center;gap:12px;flex:0 0 auto}
.brand-mini{display:flex;align-items:center;gap:10px;border:0;background:none;color:#f4d89d;font:800 clamp(16px,1.52vw,24px)/1 var(--display);letter-spacing:-.06em;text-shadow:0 2px 5px #0008;white-space:nowrap;padding:0}
.brand-mini .brand-quest{color:#fff0c5}
.brand-emblem{width:44px;height:44px;display:grid;place-items:center;border:1px solid #d7ac557b;border-radius:50%;background:#081c28bb;box-shadow:inset 0 0 0 3px #ac824328}
.brand-emblem svg{height:33px;width:33px;color:#eac275}
.main-nav{display:flex;align-items:center;justify-content:center;gap:clamp(1px,.55vw,12px);flex:1;min-width:0}
.nav-item{min-width:0;white-space:nowrap;padding:13px clamp(6px,.9vw,16px);border:1px solid transparent;border-radius:6px;background:transparent;color:#f3e5c8;font:700 clamp(11px,.88vw,15px)/1.15 var(--display);letter-spacing:.012em;transition:background .2s,color .2s,transform .2s}
.nav-item:hover,.nav-item:focus-visible{color:#fff0b6;background:#d7ac5524}
.nav-item.current{border-color:#d8b06c79;background:linear-gradient(180deg,#69513b9c,#493b2ba8);color:#ffdf9a}
.header-actions{min-width:0;display:flex;justify-content:flex-end;align-items:center;gap:9px;flex:0 0 auto}
.header-auth{display:flex;align-items:center;gap:8px}
.header-login,.header-register,.account-profile,.account-exit{display:flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:8px clamp(11px,1vw,18px);border-radius:24px;white-space:nowrap;font:700 clamp(11px,.88vw,14px)/1.2 var(--display);letter-spacing:.012em;transition:transform .2s,filter .2s}
.header-login{border:1px solid #d4a85b;background:linear-gradient(#183444,#0b1d2b);color:#fae3bb;box-shadow:0 3px 9px #0008}
.header-login .icon{color:#efc87e}
.header-register{border:1px solid #f3daa1;background:linear-gradient(#ffe4ac,#d6aa67);color:#3e261b;box-shadow:inset 0 1px #fff8,0 3px 10px #0005}
.header-login:hover,.header-register:hover,.account-profile:hover,.account-exit:hover{filter:brightness(1.13);transform:translateY(-1px)}
.desktop-account-state{display:flex;align-items:center;gap:7px;max-width:none}
.account-profile{min-width:0;max-width:210px;color:#ffe6b1;border:1px solid #d4a85b;background:linear-gradient(#2d4c48,#182e36);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-exit{color:#fff0d3;border:1px solid #a86548;background:linear-gradient(#754336,#4e281f)}
.menu-trigger,.mobile-account{display:none}
.mobile-menu{position:absolute;z-index:20;top:71px;left:12px;right:12px;padding:11px;border:1px solid #d6a858;border-radius:14px;background:linear-gradient(145deg,#1e3740f8,#0a1c28fa);box-shadow:0 14px 35px #000b}
.mobile-menu button{display:flex;align-items:center;gap:11px;width:100%;padding:12px 15px;color:#f7e9ca;background:transparent;border:0;border-bottom:1px solid #d7ac5530;text-align:left;font:700 clamp(13px,3.3vw,16px)/1.3 var(--display);letter-spacing:.015em}
.mobile-menu button:last-child{border-bottom:0}
.mobile-menu button .icon{color:#e2b769}
.mobile-menu button:hover{background:#d7ac5524}
.landing{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:620px;padding:clamp(29px,3vh,43px) 20px 24px}
.hero{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;width:min(800px,100%);text-align:center;padding:0 5px}
.hero-halo{position:absolute;pointer-events:none;z-index:-1;left:50%;top:-28px;transform:translateX(-50%);width:min(950px,105vw);height:570px;background:radial-gradient(ellipse closest-side,rgba(5,23,28,.69),rgba(5,20,27,.34) 65%,transparent 100%);filter:blur(10px)}
.hero-crest{display:grid;place-items:center;width:61px;height:61px;margin-bottom:8px;border-radius:50%;color:#fbe1a1;background:radial-gradient(#142937ad 40%,transparent 72%);filter:drop-shadow(0 2px 5px #0009)}
.hero-crest svg{width:58px;height:58px}
.hero-title-wrap{display:flex;align-items:center;justify-content:center;gap:10px;max-width:100%;white-space:nowrap}
.hero-flourish{color:#f0c579;font-size:24px;text-shadow:0 2px 6px #000}
.hero-title{margin:0;font:900 clamp(52px,6.8vw,110px)/1.08 var(--display);letter-spacing:-.085em;background:linear-gradient(#fff2ca 13%,#f5d28c 33%,#bb792e 62%,#ffe6a9 87%);background-clip:text;-webkit-background-clip:text;color:transparent;filter:drop-shadow(0 2px 1px #37210e) drop-shadow(0 5px 3px #031319);white-space:nowrap}
.hero-title span{letter-spacing:-.095em}
.hero-ribbon{position:relative;display:flex;align-items:center;justify-content:center;min-width:min(420px,83vw);max-width:100%;margin:11px auto 0;padding:10px 29px;border:1px solid #c98f48;border-radius:6px 6px 14px 14px;background:linear-gradient(175deg,#fff4d5,#e9c993 55%,#c89b63);color:#56321c;font:800 clamp(16px,1.6vw,22px)/1.3 var(--display);box-shadow:0 5px 19px #0008,inset 0 2px 2px #fff8}
.hero-ribbon::before,.hero-ribbon::after{content:"◆";position:absolute;top:50%;transform:translateY(-50%);color:#9a672b;font-size:12px}
.hero-ribbon::before{left:10px}.hero-ribbon::after{right:10px}
.hero-heading{margin:30px 0 5px;color:#fff2d3;font:800 clamp(17px,1.7vw,24px)/1.4 var(--display);text-shadow:0 3px 9px #001319}
.hero-summary{margin:0;color:#fff3dd;font:800 clamp(11px,1.15vw,16px)/1.5 var(--body);text-shadow:0 2px 7px #0009}
.hero-summary b{display:inline;padding:0 8px;color:#f8c875;font-size:.7em}
.hero-buttons{display:flex;flex-direction:column;align-items:center;gap:13px;width:min(470px,100%);margin:31px auto 0}
.play-button{position:relative;display:flex;align-items:center;justify-content:center;gap:19px;width:100%;min-height:69px;padding:12px 23px;border:2px solid #ffe2a4;border-radius:13px;background:linear-gradient(180deg,#e49c4d 0%,#bb672d 50%,#813c21 100%);color:#fff6d8;font:800 clamp(19px,2.15vw,28px)/1.2 var(--display);text-shadow:1px 2px 4px #4b210b;box-shadow:0 0 0 4px #251d1b,0 7px 26px #0009,0 0 29px #e5a4508c,inset 0 2px 2px #fff8;transition:transform .2s,filter .2s}
.play-button::before,.play-button::after{content:"✦";position:absolute;top:50%;transform:translateY(-50%);font-size:15px;color:#ffdf96}
.play-button::before{left:12px}.play-button::after{right:12px}
.play-button .icon{width:26px;height:26px;color:#ffedb5}
.play-button:hover{filter:brightness(1.12);transform:translateY(-2px)}
.discover-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:42px;padding:9px 24px;border:1px solid #d8ac60;border-radius:24px;background:linear-gradient(180deg,#233f48e9,#0e2937ef);box-shadow:0 3px 10px #0007;color:#ffead0;font:800 14px/1.3 var(--body);transition:background .2s,transform .2s}
.discover-button .icon{height:17px;width:17px;color:#eaca7a}
.discover-button:hover{background:#31564b;transform:translateY(-1px)}
.roster-wrap{width:min(615px,100%);margin:clamp(32px,5vh,49px) auto 0}
.roster-heading{display:flex;align-items:center;justify-content:center;gap:13px;margin:0 auto 12px;color:#fff1cf;font:800 13px/1.2 var(--display);letter-spacing:.02em;text-shadow:0 2px 6px #000b}
.roster-heading .line{height:1px;flex:1;max-width:90px;background:linear-gradient(90deg,transparent,#ecc17c)}
.roster-heading .line:last-child{transform:scaleX(-1)}
.roster{display:flex;align-items:center;justify-content:center;gap:clamp(7px,1.5vw,22px);width:100%}
.roster button{position:relative;width:clamp(70px,7.4vw,102px);height:clamp(86px,8.55vw,117px);display:flex;align-items:stretch;flex-direction:column;min-width:0;padding:3px;border:2px solid #edc884;border-radius:14px 14px 18px 18px;background:linear-gradient(#173444,#0a1c29);box-shadow:0 5px 15px #0008,inset 0 1px 2px #fff8;transition:transform .2s,box-shadow .2s}
.roster button:hover,.roster button:focus-visible{transform:translateY(-6px);box-shadow:0 8px 20px #000a,0 0 14px #ebbe5b8a}
.roster img{width:100%;height:100%;object-fit:cover;object-position:50% 24%;border-radius:10px 10px 14px 14px;display:block}
.roster button span{position:absolute;bottom:0;left:0;right:0;border-radius:0 0 13px 13px;background:linear-gradient(transparent,#0a1b23e8);padding:9px 2px 3px;text-align:center;color:#ffe6af;font-size:9px;font-weight:900;white-space:nowrap;text-shadow:0 1px 3px #000}
.roster-hint{font-size:11px;line-height:1.4;color:#fff0ce;margin:9px 0 0;text-shadow:0 2px 3px #000}
.quest-board{position:absolute;z-index:3;top:25%;left:clamp(18px,2.6vw,53px);width:clamp(195px,18vw,265px);filter:drop-shadow(0 13px 15px #04192288);transform:rotate(-1deg)}
.quest-board-top{display:flex;align-items:center;justify-content:center;gap:11px;padding:10px 9px;border:5px solid #674125;border-radius:16px 16px 3px 3px;background:linear-gradient(180deg,#694328,#392315);box-shadow:inset 0 0 0 2px #c18c4e,0 3px 10px #0008;color:#ffe0a2;font:800 clamp(10px,1.2vw,14px)/1.3 var(--display);text-align:center}
.board-compass{width:30px;height:30px;flex-shrink:0}
.quest-board-paper{padding:14px 9px 11px;border:7px solid #613a20;border-top:0;border-radius:0 0 13px 13px;background:linear-gradient(115deg,#edce99,#fff1c7 46%,#dbb77e);box-shadow:inset 0 0 0 2px #b88c59,inset 0 0 23px #9e734a64,0 7px 11px #0006}
.quest-board-paper button{display:flex;align-items:center;gap:10px;width:100%;min-height:54px;padding:7px 5px;border:0;border-bottom:1px solid #97623f55;background:transparent;color:#53341f;text-align:left;font:800 clamp(11px,1.05vw,14px)/1.25 var(--body);transition:background .15s}
.quest-board-paper button:last-child{border-bottom:0}
.quest-board-paper button:hover,.quest-board-paper button:focus-visible{background:#fff7d9a9}
.quest-board-paper .icon{width:27px;height:27px;color:#76501f;flex:0 0 27px}
.mobile-feature-row{display:none}
.site-footer{z-index:3;position:relative;min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px clamp(20px,3vw,50px);border-top:1px solid #dbb5674f;background:#0a1e2cb8;color:#f2deb5bd;font-size:11px;line-height:1.4}
.site-footer span{display:flex;align-items:center;gap:6px}
.site-footer .icon{width:15px;height:15px}
@media(max-width:1320px){
 .main-nav{gap:0}.nav-item{padding-inline:8px}
 .brand-mini{font-size:19px}.brand-emblem{width:38px;height:38px}.brand-emblem svg{width:29px;height:29px}
 .header-login,.header-register{padding-inline:12px}
 .quest-board{top:28%;width:205px}
 .quest-board-paper button{min-height:50px;font-size:12px}
 .hero{transform:translateX(60px);width:min(760px,calc(100% - 180px))}
}
@media(max-width:1100px){
 .site-header{padding-inline:20px}
 .main-nav{display:none}
 .menu-trigger,.mobile-account{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border:1px solid #d9ad6b;border-radius:10px;background:#102632;color:#fbe3ae}
 .header-auth{display:none}
 .desktop-account-state{display:none!important}
 .mobile-menu{top:70px}
 .brand-mini{font-size:21px}
 .hero{transform:none;width:min(740px,100%)}
 .quest-board{display:none}
 .mobile-feature-row{display:grid;grid-template-columns:repeat(4,1fr);width:min(620px,100%);gap:8px;margin:21px auto 0}
 .mobile-feature-row button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:45px;padding:6px 9px;border:1px solid #d9b46d91;border-radius:9px;color:#ffedc9;background:#0e2837e3;font-size:12px;font-weight:800}
 .mobile-feature-row .icon{width:18px;height:18px;color:#e4b968}
}
@media(max-width:740px){
 .page-shell{background-position:48% center}
 .site-header{min-height:67px;padding:8px 12px}
 .header-start{gap:8px}
 .brand-mini{font-size:clamp(14px,4vw,20px);gap:6px}
 .brand-emblem{width:33px;height:33px}.brand-emblem svg{width:26px;height:26px}
 .menu-trigger,.mobile-account{width:39px;height:39px;flex-basis:39px}
 .landing{padding:42px 14px 19px;min-height:calc(100svh - 113px)}
 .hero-crest{width:51px;height:51px;margin-bottom:8px}.hero-crest svg{width:49px;height:49px}
 .hero-title{font-size:clamp(37px,9vw,69px)}.hero-flourish{font-size:12px}.hero-title-wrap{gap:4px}
 .hero-ribbon{min-width:min(340px,91%);padding:9px 22px;margin-top:12px;font-size:clamp(12px,3.5vw,16px)}
 .hero-heading{max-width:480px;margin-top:31px;font-size:clamp(16px,4.2vw,21px)}
 .hero-summary{max-width:440px;font-size:clamp(11px,2.8vw,14px);line-height:1.7}
 .hero-summary b{padding:0 2px}
 .hero-buttons{width:min(400px,94%);margin-top:25px;gap:14px}
 .play-button{min-height:58px;font-size:clamp(16px,4.5vw,22px);gap:11px}.play-button .icon{width:23px;height:23px}
 .discover-button{font-size:13px}
 .roster-wrap{margin-top:42px}
 .roster-heading{font-size:clamp(10px,2.5vw,13px);gap:8px}
 .roster{gap:clamp(4px,1.8vw,12px)}
 .roster button{width:min(17.5vw,90px);height:clamp(77px,21.5vw,110px);border-radius:9px 9px 13px 13px}
 .roster img{border-radius:6px 6px 10px 10px}
 .roster button span{font-size:7px}
 .roster-hint{font-size:10px;max-width:380px;margin-inline:auto}
 .site-footer{font-size:10px;min-height:46px;justify-content:center;text-align:center;flex-wrap:wrap}
 .site-footer span:first-child{display:none}
 .mobile-feature-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .mobile-feature-row button{display:flex;flex-direction:column;gap:3px;min-height:58px;padding:6px 2px;font-size:11px}
}
@media(max-width:380px){
 .brand-mini{font-size:14px}.hero-title{font-size:35px}.hero-heading{font-size:15px}
 .hero-ribbon{font-size:11px}.hero-summary{font-size:10px}
 .hero-flourish{font-size:9px}.roster button span{font-size:6px}
}
@media(max-height:760px) and (min-width:1110px){.landing{padding-top:17px;padding-bottom:12px}.hero-crest{width:46px;height:46px;margin-bottom:1px}.hero-crest svg{width:43px;height:43px}.hero-title{font-size:clamp(56px,5.5vw,87px)}.hero-heading{margin-top:18px}.hero-buttons{margin-top:19px}.roster-wrap{margin-top:21px}.roster button{height:91px;width:80px}.site-header{min-height:69px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* FENÊTRES INTERACTIVES, STYLE JEU */
.tq-dialog {
  position:fixed;
  max-height:min(90vh,90svh);
  width:min(610px,calc(100% - 26px));
  padding:0; border:0; background:transparent; color:var(--parchment);
  overflow:visible;
}
.tq-dialog::backdrop { background:rgba(3,11,19,.78); backdrop-filter:blur(7px); }
.dialog-shell {
  max-height:min(90vh,90svh);
  overflow-y:auto;
  position:relative;
  border:2px solid #b48b48;
  border-radius:15px;
  background:radial-gradient(ellipse at 50% 5%,#2c4954 0%,#1d3643 33%,#112330 100%);
  box-shadow:0 0 0 5px #071722,0 0 0 7px #8d6b3c,0 24px 60px #000d,inset 0 0 35px #0004;
  padding:35px clamp(19px,5vw,43px) 26px;
  text-align:center;
}
.dialog-shell::before, .dialog-shell::after {
  position:absolute; font-size:24px; color:var(--gold); top:8px; line-height:1;
}
.dialog-shell::before { content:'✦'; left:12px; }
.dialog-shell::after { content:'✦'; right:12px; }
.dialog-close {
  position:absolute; top:12px; right:13px; z-index:1;
  color:#f6d797; background:#102534;
  width:34px; height:34px; display:grid; place-items:center;
  border:1px solid #9e7b46; border-radius:7px;
  font-size:28px; line-height:1;
}
.dialog-close:hover { background:#334e54; }
.dialog-crest { width:52px; height:52px; color:var(--gold-light); margin:0 auto 7px; }
.dialog-crest svg { width:100%; height:100%; }
.dialog-eyebrow { margin:0 0 10px; color:var(--gold-light); text-transform:uppercase; font-size:11px; font-weight:800; letter-spacing:.22em; }
.tq-dialog h2 { margin:0 0 14px; color:#ffdfa4; font:700 clamp(22px,5vw,32px)/1.3 var(--display); text-shadow:0 3px 5px #0009; }
.dialog-content { margin:0 auto; text-align:left; font-size:15px; line-height:1.7; }
.dialog-intro { text-align:center; margin:0 auto 15px; max-width:475px; }
.dialog-list { max-width:480px; margin:16px auto; padding:0; list-style:none; }
.dialog-list li { padding:7px 4px 7px 29px; position:relative; border-bottom:1px solid #d7ac552c; }
.dialog-list li::before { content:'✦'; position:absolute; left:7px; color:var(--gold-light); }
.dialog-bottom { margin:24px auto 0; width: min(100%,350px); }
.dialog-button { min-height:48px; font-size:14px; }
.hero-picker { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; margin-top:23px; }
.hero-choice { min-width:0; padding:3px 3px 8px; color:#f8e7c4; background:#142a38; border:2px solid #805f33; border-radius:9px; font-size:10px; font-weight:700; }
.hero-choice img { display:block; width:100%; height:auto; aspect-ratio:236/276; object-fit:cover; border-radius:5px; margin-bottom:7px; }
.hero-choice[aria-pressed="true"] { border-color:#ffe6a3; background:#405446; box-shadow:0 0 0 2px #f7cd6b55,0 0 23px #ffc85f42; }
.play-note { color:#c8b995; text-align:center; font-size:13px; line-height:1.5; margin:18px auto 0; }
@media (max-width: 560px) {
  .tq-dialog { max-height:92svh; }
  .dialog-shell { padding-top:29px; max-height:92svh; }
  .hero-picker { gap:4px; }
  .hero-choice { padding:2px 2px 5px; font-size:8px; }
  .dialog-content { font-size:14px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .hit, .hit::after, .mobile-party button { transition:none; }
}


.tq-auth-form {display:flex;flex-direction:column;gap:13px;margin:0 auto;max-width:410px;text-align:left}
.auth-description {margin:0 auto 18px;max-width:460px;font:600 14px/1.55 var(--body);color:#f2dfc1;text-align:center}
.auth-field {display:flex;flex-direction:column;gap:5px;font:800 13px/1.4 var(--body);color:#ffdfa4}
.auth-input {height:47px;padding:10px 13px;border:1px solid #b79357;border-radius:8px;background:#f8eedb;color:#1b2e34;font:700 16px/1.3 var(--body);width:100%;outline-offset:3px}
.auth-input:focus-visible{outline:3px solid #d7ac55;border-color:#533814}
.auth-input::placeholder{color:#726e64}
.tq-auth-form .dialog-button {margin-top:8px;cursor:pointer}
.tq-auth-form .dialog-button:disabled{opacity:.65;cursor:wait}
.auth-hint {margin:0;color:#cfbc98;font-size:12px;line-height:1.5;text-align:left}
.auth-remember{display:flex;align-items:center;gap:12px;margin:2px 0 0;padding:11px 13px;border:1px solid #b994587d;border-radius:10px;background:#0d2934b8;color:#fff0d2;cursor:pointer}
.auth-remember input{width:20px;height:20px;flex:none;margin:0;accent-color:#d4a85b;cursor:pointer}
.auth-remember-copy{display:flex;flex-direction:column;gap:2px;line-height:1.35}
.auth-remember-copy strong{font:800 14px/1.35 var(--body)}
.auth-remember-copy small{font:600 12px/1.35 var(--body);color:#d9c5a3}
.auth-remember:focus-within{outline:2px solid #efcd82;outline-offset:2px}
.auth-error {color:#ffe1d8;background:#743225;border:1px solid #f29a73;padding:11px 12px;border-radius:8px;font-size:13px;font-weight:800;line-height:1.5;margin:3px 0}
.auth-error[hidden]{display:none}
.auth-success {color:#162f2b;background:#a3dcb5;border:1px solid #c6ecb8;padding:10px 13px;border-radius:7px;text-align:center;font-weight:800}
.auth-switch {border:0;background:transparent;color:#f1cc8f;text-decoration:underline;cursor:pointer;padding:8px;font:800 14px/1.4 var(--body)}
.auth-switch:hover {color:#fff4d5}
.auth-summary {display:grid;gap:5px;border:1px solid #d7ac5588;border-radius:12px;background:#0c2630aa;padding:17px 19px;margin:14px auto 21px;text-align:center;overflow-wrap:anywhere}
.auth-summary strong{font:700 22px var(--display);color:#f7dda7}
.auth-summary span{color:#fff1d7;font-size:14px}
.auth-summary small{color:#cdb88d;font-size:12px}
.auth-admin-link {display:block;margin:17px auto 0;color:#e9c581;text-decoration:underline;text-align:center;font-weight:800}
@media (max-width:560px){.tq-auth-form{gap:12px}.auth-input{height:44px}.auth-description{font-size:13px}}

/* Le bouton commun est aussi visible sur ordinateur (hors media query mobile). */
.dialog-button {
  display:flex;align-items:center;justify-content:center;gap:11px;
  width:100%;min-height:50px;padding:12px 18px;
  border:2px solid #ffdea0;border-radius:11px;
  background:linear-gradient(180deg,#da903f 0%,#a34e24 55%,#6e2c1d 100%);
  box-shadow:0 0 0 3px rgba(48,28,22,.9),0 7px 22px #0007,inset 0 1px 1px #fff9;
  color:#fff;text-shadow:0 1px 2px #000a;
  font:700 15px/1.3 var(--display);
}
.dialog-button:hover {filter:brightness(1.11)}

/* SERVEURS DE JEU : choix AVANT les personnages. */
.server-loading {text-align:center;color:#f2dba6;margin:20px auto}
.server-grid {display:grid;gap:11px;margin:10px auto 14px;max-width:470px}
.server-card {display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;width:100%;padding:15px 17px;border:1px solid #d7ac55;border-radius:12px;background:linear-gradient(115deg,#29463d,#122c35);color:#f9ead0;text-align:left;transition:transform .15s,background .15s}
.server-card:hover:not(:disabled) {background:#365849;transform:translateY(-1px)}
.server-card:disabled {opacity:.48;cursor:not-allowed}
.server-name {grid-column:1 / -1;color:#ffe2a4;font:700 16px/1.4 var(--display)}
.server-stats {font:700 12px/1.4 var(--body);color:#e5d7c0}
.server-tag {justify-self:end;display:inline-block;font:800 11px/1.2 var(--body);color:#ffe3a9;border:1px solid #c4a77780;padding:5px 9px;border-radius:6px;background:#152a35}
.server-tag.is-joined {background:#355846;color:#fff0bf}
.hero-choice:disabled {cursor:not-allowed}
.hero-choice:disabled:not([aria-pressed="true"]) {opacity:.38;filter:grayscale(1)}
.hero-choice small {display:block;font:800 9px/1.3 var(--body);margin-top:3px;color:#f7c6ad}
.hero-choice .hero-yours {color:#9fe4c2}
.dialog-button:disabled {opacity:.55;cursor:not-allowed;filter:grayscale(.4)}
.hero-preview {display:block;object-fit:cover;max-width:140px;width:42%;height:auto;aspect-ratio:236/276;border:2px solid #d7ac55;border-radius:12px;margin:0 auto 16px;box-shadow:0 8px 25px #0008}
@media (max-width:440px) {.server-card{padding:12px}.server-name{font-size:14px}.server-tag{font-size:10px}}

/* Création de serveurs personnels - compatible bureau et mobile */
.server-create-button {max-width:470px;margin:13px auto 4px;background:linear-gradient(180deg,#3f6957,#264a44 55%,#162e36);border-color:#d7ac55}
.server-created-tag {grid-column:1/-1;color:#cdeac4;font-size:11px;font-weight:750}
.server-quota {margin:10px auto 4px;max-width:470px;color:#ffdfa4;font-size:12px;text-align:center;line-height:1.5}
.server-quota-note {margin:8px auto 11px;max-width:440px;text-align:center;color:#ecd4ac;font-size:12px;line-height:1.5}
.server-create-form{padding-top:5px}
@media(max-width:520px){.server-quota{font-size:11px}.server-create-button{font-size:13px}}


/* Recherche et accès privé aux mondes, compatibles iPhone. */
.server-search,.server-search-count,.server-search-empty {max-width:470px;margin-left:auto;margin-right:auto}
.server-search {margin-top:16px;margin-bottom:6px}
.server-search-label {display:flex;flex-direction:column;gap:8px;color:#f4dfae;font:800 13px/1.4 var(--body)}
.server-search-input {width:100%;min-height:44px;box-sizing:border-box;border:1px solid #cbaa69;border-radius:10px;padding:11px 14px;background:#132e37;color:#fff0d1;font:600 15px/1.4 var(--body)}
.server-search-input::placeholder{color:#b8ad97}
.server-search-input:focus-visible{outline:3px solid #efce88;outline-offset:2px}
.server-search-count{margin-top:6px;margin-bottom:10px;color:#d4c8ac;font-size:12px;text-align:left}
.server-search-empty{padding:14px;color:#e8d4ac;border:1px dashed #ad905f;border-radius:9px;text-align:center;font-size:13px}
.server-card[hidden],.server-search-empty[hidden],.server-private-password[hidden]{display:none!important}
.server-private-tag{display:inline-block;border:1px solid #d6ab63;background:#463725;border-radius:7px;padding:2px 8px;color:#ffe2a0;font:700 11px/1.5 var(--body)}
.server-private-toggle{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#132e37;border:1px solid #c4a26c;border-radius:11px;color:#ffecbd;cursor:pointer}
.server-private-toggle input{width:20px;height:20px;flex:0 0 20px;accent-color:#d7ac55;cursor:pointer}
.server-private-copy{display:flex;flex-direction:column;gap:3px}
.server-private-copy strong{font:800 14px/1.35 var(--body)}
.server-private-copy small{font:600 12px/1.4 var(--body);color:#d8c9a8}
.server-private-toggle:focus-within{outline:2px solid #efce88;outline-offset:2px}
.server-private-password{display:grid;gap:5px;padding:11px 13px;border:1px solid #b49a6a;border-radius:10px;background:#122b34}
.server-private-password .auth-field{margin:0}
.server-private-form{margin-top:14px}

/* TRIBUQUEST — PERSONNAGE DÉFINITIF PAR SERVEUR */
.hero-locked-card {
  display:flex; flex-direction:column; align-items:center; gap:12px;
  max-width:260px; margin:12px auto 17px;
}
.hero-locked-card img {
  width:min(156px,55vw); height:auto; aspect-ratio:236/276; object-fit:cover;
  border:2px solid #d7ac55; border-radius:12px; box-shadow:0 9px 28px #0008;
}
.hero-locked-caption {display:grid; justify-items:center; gap:5px}
.hero-locked-name {font:700 18px/1.3 var(--display); color:#ffe1a4}
.hero-locked-status {
  border:1px solid #b79858; border-radius:7px; padding:6px 12px;
  color:#ffdfa4; background:#172f31; font:700 12px/1.4 var(--body);
}
.character-lock-note {
  max-width:470px; margin:17px auto; padding:12px 14px;
  color:#f8dfb1; background:rgba(69,52,31,.55);
  border:1px solid rgba(216,173,86,.65); border-radius:10px;
  text-align:center; font:600 12px/1.6 var(--body);
}


/* v20261102-portraits : un portrait par serveur rejoint, pas de changement ici. */
.server-card {
  display:flex; align-items:center; min-width:0; width:100%;
  gap:12px; min-height:90px; padding:11px 14px;
}
.server-card.is-owned {background:linear-gradient(115deg,#315646,#142f37)}
.server-card-avatar {
  display:flex; flex:0 0 64px; align-items:center; justify-content:center;
  width:64px; height:64px; overflow:hidden; border-radius:50%;
  border:2px solid #cfa75a; background:linear-gradient(135deg,#233e46,#101e2c);
  box-shadow:0 2px 0 #0b1a1e, 0 0 0 3px #ab854d30;
}
.server-card-avatar.is-selected {border-color:#f2cf80;box-shadow:0 0 0 3px #e6c46a36, 0 4px 16px #0b1a1e77}
.server-card-avatar img {display:block;width:100%;height:100%;object-fit:cover;object-position:50% 42%;}
.server-card-avatar-plus {color:#f2d9a6;font:700 37px/1 var(--display);padding-bottom:5px;}
.server-card-details {min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:4px;}
.server-card .server-name {grid-column:auto;color:#ffe3aa;font:700 16px/1.3 var(--display);overflow-wrap:anywhere;}
.server-card .server-stats {font:700 12px/1.45 var(--body);color:#e1d7c4;}
.server-card .server-created-tag {grid-column:auto;font-size:11px;}
.server-card-actions {flex:0 0 auto;display:flex;align-items:flex-end;flex-direction:column;gap:6px;text-align:right;}
.server-card .server-tag {justify-self:auto;white-space:nowrap;}
.server-avatar-label {font:700 10px/1.3 var(--body);color:#e8cf9b;}
@media(max-width:520px) {
  .server-card {gap:9px;padding:10px 11px;min-height:76px}
  .server-card-avatar {flex-basis:50px;width:50px;height:50px}
  .server-card-avatar-plus {font-size:30px}
  .server-card .server-name {font-size:14px}
  .server-card .server-stats {font-size:11px}
  .server-card .server-tag {font-size:10px;padding:4px 6px}
  .server-avatar-label {font-size:9px}
}
@media(max-width:370px) {
  .server-card {gap:7px;padding:8px}
  .server-card-avatar {flex-basis:43px;width:43px;height:43px}
  .server-card .server-name {font-size:12px}
  .server-card-actions {gap:3px}
  .server-card .server-tag {font-size:9px}
}


/* Accès administration, placé entre Mon compte et Déconnexion (administrateurs uniquement). */
.account-admin{display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:43px;padding:8px clamp(11px,1vw,17px);border:1px solid #e8c477;border-radius:24px;background:linear-gradient(180deg,#77613b,#4c3b27);color:#fff0ca;text-decoration:none;font:700 clamp(11px,.88vw,14px)/1.2 var(--display);letter-spacing:.012em;white-space:nowrap;transition:transform .2s,filter .2s}
.account-admin:hover,.account-admin:focus-visible{filter:brightness(1.14);transform:translateY(-1px)}

/* Identité officielle TribuQuest : logo PNG original fourni par le créateur. */
.brand-emblem{background:none;border:0;box-shadow:none;overflow:hidden;border-radius:9px}
.brand-favicon{display:block;width:100%;height:100%;object-fit:contain}
.hero-official-logo-wrap{width:min(610px,100%);margin:0 auto;display:flex;align-items:center;justify-content:center}
.hero-official-logo{display:block;width:100%;height:auto;max-height:275px;object-fit:contain;filter:drop-shadow(0 7px 15px #07141bc9)}
@media(max-width:740px){.hero-official-logo-wrap{width:min(440px,94vw)}.hero-official-logo{max-height:215px}.hero-heading{margin-top:12px}}
@media(max-height:760px) and (min-width:1110px){.hero-official-logo-wrap{width:min(540px,100%)}.hero-official-logo{max-height:245px}}

/* Courtes présentations visibles sous chacun des cinq portraits. */
.roster-wrap{width:min(705px,100%)}
.roster{align-items:stretch;gap:clamp(6px,1.2vw,14px)}
.roster button{
  flex:1 1 0;
  width:auto;
  max-width:128px;
  height:auto;
  min-height:0;
  padding:4px;
  overflow:hidden;
  justify-content:flex-start;
}
.roster .roster-portrait{
  position:relative;
  display:block;
  flex:0 0 auto;
  aspect-ratio:236/276;
  width:100%;
  overflow:hidden;
  padding:0;
  border-radius:10px 10px 7px 7px;
  background:#193443;
}
.roster .roster-portrait img{
  display:block;
  width:100%;
  height:100%;
  border-radius:inherit;
  object-fit:cover;
  object-position:50% 50%;
}
.roster .roster-name{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:12px 2px 4px;
  border-radius:0;
  background:linear-gradient(transparent,#0b1c29e8);
  font:900 clamp(10px,1vw,13px)/1.15 var(--body);
  color:#ffe5ac;
  text-align:center;
  text-shadow:0 1px 3px #000;
}
.roster .roster-bio{
  position:static;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:1 1 auto;
  min-height:31px;
  width:100%;
  padding:5px 2px 3px;
  font:750 clamp(9px,.85vw,11px)/1.25 var(--body);
  color:#f5e2c0;
  white-space:normal;
  text-align:center;
  text-wrap:balance;
}
.hero-tagline{
  margin:0 0 8px;
  color:#ffdf9c;
  text-align:center;
  font:800 15px/1.3 var(--display);
}
.hero-description{max-width:425px;margin:0 auto 12px;text-align:center;line-height:1.55}
/* Fiche complète des 5 explorateurs : personnage en pied et biographie côte à côte. */
.tq-dialog:has(.hero-biography-layout){width:min(680px,calc(100% - 20px))}
.tq-dialog:has(.hero-biography-layout) .dialog-shell{
  padding:clamp(28px,4vw,38px) clamp(17px,4.5vw,37px) 24px;
  border:2px solid #d4ab62;
  box-shadow:0 0 0 4px #081c25,0 0 0 6px #b98f4d,0 24px 60px #000d,inset 0 0 32px #0004
}
.tq-dialog:has(.hero-biography-layout) .dialog-bottom{display:none}
.hero-biography-layout{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.94fr);
  align-items:center;gap:clamp(6px,2vw,18px);
  max-width:620px;margin:12px auto 0;min-height:300px
}
.hero-biography-text{align-self:center;min-width:0}
.hero-biography-text .hero-tagline{
  color:#ffe3a7;text-align:left;text-transform:uppercase;
  font:800 clamp(13px,2.7vw,21px)/1.3 var(--display);margin:0 0 15px;
  text-wrap:balance
}
.hero-biography-text .hero-description{
  color:#f4e6cd;text-align:left;max-width:none;
  font:600 clamp(13px,2.45vw,17px)/1.7 var(--body);
  margin:15px 0 0;overflow-wrap:break-word
}
.hero-divider{
  display:flex;align-items:center;justify-content:center;gap:9px;
  width:min(100%,240px);margin:0;color:#dfb66f
}
.hero-divider::before,.hero-divider::after,
.hero-biography-flourish::before,.hero-biography-flourish::after{
  content:'';height:1px;background:linear-gradient(90deg,transparent,#dcb575);
  flex:1
}
.hero-divider::after,.hero-biography-flourish::after{transform:rotate(180deg)}
.hero-divider{height:20px}
.hero-divider:empty::marker{content:''}
.hero-divider::before{min-width:30px}
.hero-divider::after{min-width:30px}
.hero-biography-figure{
  display:flex;align-items:flex-end;justify-content:center;
  position:relative;min-width:0;height:clamp(300px,45vw,460px);
  margin:0;overflow:visible;
}
.hero-biography-figure::after{
  content:'';position:absolute;z-index:0;bottom:3px;
  width:74%;height:11px;border-radius:50%;background:#edc27a42;
  filter:blur(10px);pointer-events:none
}
.hero-biography-fullbody{
  display:block;position:relative;z-index:1;max-width:100%;width:100%;
  height:100%;object-fit:contain;object-position:center bottom;
  filter:drop-shadow(0 7px 9px #07131bbb)
}
.hero-biography-image-missing{display:none}
.hero-biography-flourish{
  display:flex;align-items:center;justify-content:center;gap:11px;
  max-width:440px;height:17px;margin:3px auto 0;color:#e6c178
}
.hero-biography-flourish::before{background:linear-gradient(90deg,transparent,#dcb575)}
.hero-biography-flourish::after{background:linear-gradient(90deg,transparent,#dcb575);transform:rotate(180deg)}
.hero-biography-flourish{font-size:19px}
@media(max-width:560px){
 .tq-dialog:has(.hero-biography-layout){width:calc(100% - 20px)}
 .tq-dialog:has(.hero-biography-layout) .dialog-shell{padding:32px 15px 20px}
 .hero-biography-layout{gap:5px;min-height:295px}
 .hero-biography-figure{height:clamp(295px,93vw,400px)}
 .hero-biography-text .hero-tagline{font-size:clamp(12px,3.15vw,16px);line-height:1.4;margin-bottom:10px}
 .hero-biography-text .hero-description{font-size:clamp(12px,3.15vw,15px);line-height:1.55;margin-top:11px}
 .hero-biography-flourish{margin-top:6px}
}
@media(max-width:375px){
 .hero-biography-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:2px}
 .hero-biography-figure{height:295px}
 .hero-biography-text .hero-description{font-size:12px}
}

@media(max-width:740px){
  .roster-wrap{width:100%}
  .roster{gap:clamp(4px,1.4vw,9px)}
  .roster button{height:auto;max-width:none;min-width:0;padding:2px;border-radius:9px}
  .roster .roster-portrait{border-radius:6px 6px 5px 5px}
  .roster .roster-name{font-size:clamp(9px,2.4vw,12px);padding:10px 1px 3px}
  .roster .roster-bio{min-height:38px;font-size:clamp(8px,1.85vw,10px);padding:4px 1px}
}
@media(max-width:380px){
  .roster .roster-name{font-size:9px}
  .roster .roster-bio{font-size:8px}
}
@media(max-height:760px) and (min-width:1110px){
  .roster button{width:auto;height:auto;max-width:114px}
}

/* TQ_BAG_BUNDLED_20261103: style dans CSS principal pour chargement fiable */
/* Mini-CAPTCHA d'inscription — le sac de l'explorateur. Aucune image tierce. */
.registration-bag{min-width:0;margin:7px 0 0;padding:12px 12px 13px;border:1px solid #c6a56a;border-radius:14px;background:radial-gradient(circle at 25% 35%,#2d574c 0%,#182f38 75%);box-shadow:inset 0 1px 0 #f5d99b20,0 8px 22px #0917204d}
.registration-bag legend{max-width:100%;padding:0 9px;color:#ffe3ac;font:700 17px/1.3 var(--display);text-align:left}
.registration-bag-intro{font:600 12px/1.45 var(--body);color:#e8dbc4;margin:5px 0 12px}
.registration-bag-stage{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:center}
.registration-bag-pack{align-self:stretch;min-height:174px;display:grid;place-items:center;border-radius:11px;border:1px solid #c59b5570;background:radial-gradient(circle at 50% 45%,#688076b8,#24413e 67%,#142c32);box-shadow:inset 0 0 25px #09242b80}
.registration-bag-pack svg{width:90%;max-height:168px;filter:drop-shadow(0 6px 4px #071a2499)}
.registration-bag-pack.has-item{border-color:#e8c57c;background:radial-gradient(circle at 50% 45%,#6b9d84,#244f46 67%,#142c32);box-shadow:0 0 0 2px #49c2a345,inset 0 0 28px #ffdf8860}
.registration-bag-prompt{min-height:36px;margin:0 0 8px;color:#ffe9ba;font:700 13px/1.4 var(--body)}
.registration-bag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.registration-bag-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:77px;gap:3px;padding:6px 4px;border:1px solid #ad8e5c;border-radius:10px;background:linear-gradient(145deg,#f7e5bc,#ccb080);color:#342b21;cursor:pointer;box-shadow:0 3px 7px #001e2875,inset 0 1px #fff8db;transition:transform .12s,box-shadow .12s,border-color .12s;font:800 11px/1.25 var(--body)}
.registration-bag-choice:hover{transform:translateY(-2px);background:linear-gradient(145deg,#fff0ce,#debf8b)}
.registration-bag-choice[aria-pressed="true"]{border:2px solid #f8e09b;background:linear-gradient(145deg,#fce5ae,#d4a363);box-shadow:0 0 0 3px #50d9be6b,0 5px 13px #07141f99}
.registration-bag-choice:focus-visible,.registration-bag-refresh:focus-visible{outline:3px solid #fff1b5;outline-offset:2px}
.registration-bag-choice svg{display:block;width:31px;height:31px;color:#274b49;flex:none;stroke-width:1.6}
.registration-bag-choice[data-item="carrot"] svg{color:#ad4c25}
.registration-bag-choice[data-item="potion"] svg{color:#6b4b9c}
.registration-bag-choice[data-item="feather"] svg{color:#517486}
.registration-bag-choice[data-item="lantern"] svg{color:#b26d1e}
.registration-bag-choice[data-item="key"] svg{color:#906324}
.registration-bag-choice[data-item="book"] svg{color:#905337}
.registration-bag-bottom{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;margin-top:11px}
.registration-bag-notice{margin:0;flex:1;font:600 11px/1.45 var(--body);color:#e8decb}
.registration-bag-refresh{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border:1px solid #9c8e6e;border-radius:8px;background:#1b3f43;color:#fff0c5;cursor:pointer;font:700 11px/1.4 var(--body)}
.registration-bag-refresh:hover{background:#305b55}
.registration-bag-refresh:disabled{opacity:.5;cursor:wait}
.registration-bag-honeypot{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
@media(max-width:420px){.registration-bag{padding:10px}.registration-bag-stage{grid-template-columns:77px minmax(0,1fr);gap:8px}.registration-bag-pack{min-height:153px}.registration-bag-choice{min-height:67px;font-size:10px}.registration-bag-choice svg{width:26px;height:26px}}
@media(prefers-reduced-motion:reduce){.registration-bag-choice{transition:none}}


/* V3.2 - Fiches des explorateurs : pas de barre de défilement.
   La hauteur du personnage s'ajuste à la place réellement disponible. */
.tq-dialog:has(.hero-biography-layout){
  box-sizing:border-box;
  width:min(730px,calc(100vw - 28px));
  max-height:calc(100dvh - 30px);
  overflow:visible;
}
.tq-dialog:has(.hero-biography-layout) .dialog-shell{
  box-sizing:border-box;
  max-height:calc(100dvh - 30px);
  overflow:hidden;
  padding:clamp(16px,3vh,28px) clamp(14px,3.7vw,32px) 18px;
}
.tq-dialog:has(.hero-biography-layout) .dialog-crest{
  width:clamp(36px,5.5vh,48px);
  height:clamp(36px,5.5vh,48px);
  margin-bottom:4px;
}
.tq-dialog:has(.hero-biography-layout) .dialog-eyebrow{margin-bottom:4px}
.tq-dialog:has(.hero-biography-layout) h2{margin:0 0 5px}
.tq-dialog:has(.hero-biography-layout) .dialog-content{width:100%}
.tq-dialog:has(.hero-biography-layout) .hero-biography-layout{
  grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
  width:100%;
  max-width:640px;
  min-height:0;
  margin:6px auto 0;
  align-items:center;
  gap:clamp(6px,2vw,20px);
}
.tq-dialog:has(.hero-biography-layout) .hero-biography-figure{
  height:clamp(200px, min(56vh, 440px), 440px);
  align-self:end;
  overflow:hidden;
}
.tq-dialog:has(.hero-biography-layout) .hero-biography-fullbody{
  position:absolute;
  width:auto;
  max-width:none;
  height:100%;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  object-fit:contain;
  object-position:center bottom;
  image-rendering:auto;
  filter:contrast(1.10) saturate(1.08) drop-shadow(0 7px 10px #06141c99);
  mask-image:linear-gradient(to bottom,#000 0%,#000 94%,rgba(0,0,0,.9) 97%,transparent 100%);
}
.tq-dialog:has(.hero-biography-layout) .hero-biography-flourish{
  margin:2px auto 0;
  height:12px;
}
@media(max-width:560px){
  .tq-dialog:has(.hero-biography-layout){width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
  .tq-dialog:has(.hero-biography-layout) .dialog-shell{
    max-height:calc(100dvh - 20px);
    padding:clamp(17px,3vh,26px) 12px 14px;
  }
  .tq-dialog:has(.hero-biography-layout) .hero-biography-layout{
    grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);
    gap:5px;
  }
  .tq-dialog:has(.hero-biography-layout) .hero-biography-figure{
    height:clamp(190px,min(51vh,92vw),400px);
  }
  .tq-dialog:has(.hero-biography-layout) .hero-biography-text .hero-description{
    font-size:clamp(11px,3.1vw,15px);line-height:1.48;
  }
  .tq-dialog:has(.hero-biography-layout) .hero-biography-text .hero-tagline{
    font-size:clamp(11px,3.2vw,15px);line-height:1.28;
  }
}
@media(max-height:650px){
  .tq-dialog:has(.hero-biography-layout) .dialog-shell{padding-top:13px;padding-bottom:10px}
  .tq-dialog:has(.hero-biography-layout) .dialog-crest{width:34px;height:34px;margin-bottom:0}
  .tq-dialog:has(.hero-biography-layout) .dialog-eyebrow{margin-bottom:1px;font-size:10px}
  .tq-dialog:has(.hero-biography-layout) h2{font-size:clamp(19px,4vh,27px);margin-bottom:1px}
  .tq-dialog:has(.hero-biography-layout) .hero-biography-layout{margin-top:2px}
  .tq-dialog:has(.hero-biography-layout) .hero-biography-figure{height:clamp(165px,calc(100dvh - 205px),340px)}
  .tq-dialog:has(.hero-biography-layout) .hero-biography-text .hero-description{line-height:1.38}
  .tq-dialog:has(.hero-biography-layout) .hero-biography-flourish{height:8px}
}
