/* OfferDuel's existing portal signature, adapted from the retained Le Salon entry.
   The room, renderer and negotiation session stay mounted beneath the dialog. */
.brand-entrance {
  --entrance-accent: var(--accent);
  --entrance-highlight: #fbefd0;
  --entrance-shadow: #92703a;
  --entrance-glint: #eed397;
  --entrance-brass: #bc914b;
  --entrance-ground: var(--ink);
  --entrance-ink: var(--paper);
  --entrance-muted: var(--muted);
  --entrance-rule: var(--line);
  --entrance-duration: 3400ms;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(24px, 5vw, 80px);
  border: 0;
  border-radius: 0;
  background: var(--entrance-ground);
  color: var(--entrance-ink);
  overflow: auto;
  box-shadow: none;
}
.brand-entrance::backdrop { background: var(--entrance-ground); }
.brand-entrance[open] { display: flex; flex-direction: column; justify-content: space-between; }
.entrance-topline, .entrance-foot { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.entrance-topline { font: 12px/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--entrance-muted); }
.entrance-topline > :last-child { text-align: right; overflow-wrap: anywhere; }
.entrance-composition { display: flex; align-items: center; justify-content: center; gap: clamp(40px, 6vw, 100px); width: min(1100px, 100%); margin: auto; padding: 40px 0; }
.entrance-portal { position: relative; flex: 0 0 clamp(130px, 19vw, 255px); isolation: isolate; }
.entrance-mark { display: block; width: 100%; height: auto; overflow: visible; }
.entrance-copy { min-width: 0; flex: 1; }
.entrance-world-name { font: 14px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--entrance-accent); margin: 0 0 20px; }
.entrance-copy #brand-entrance-title { font: 400 clamp(48px, 7.8vw, 120px)/1.1 var(--serif); letter-spacing: -.035em; margin: 0; color: var(--entrance-ink); white-space: nowrap; }
.entrance-rule { display: block; height: 1px; width: 100%; background: var(--entrance-accent); opacity: .55; margin: 25px 0; transform-origin: left; }
.entrance-copy #entrance-tagline { font: 400 clamp(16px, 2vw, 25px)/1.5 var(--serif); color: var(--entrance-muted); margin: 0; }
.entrance-light { position: absolute; top: 51.8%; height: 1px; width: 60%; background: var(--entrance-highlight); opacity: 0; pointer-events: none; }
.entrance-light-left { right: 50%; transform-origin: right; }
.entrance-light-right { left: 50%; transform-origin: left; }
.entrance-foot { border-top: 1px solid var(--entrance-rule); padding-top: 20px; }
.entrance-foot p { color: var(--entrance-muted); font-size: 14px; margin: 0; }
.entrance-foot [data-entrance-enter] { display: inline-flex; align-items: center; justify-content: space-between; gap: 38px; min-height: 48px; padding: 10px 20px; border: 1.5px solid var(--entrance-accent); border-radius: 3px; background: transparent; color: var(--entrance-ink); font: 14px/1.4 var(--sans); white-space: nowrap; }
.entrance-foot [data-entrance-enter]:hover { color: var(--entrance-accent); }
.entrance-foot [data-entrance-enter]:focus-visible { outline: 2px solid var(--entrance-highlight); outline-offset: 5px; }
.brand-replay { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; margin-top: 16px; background: transparent; border: 0; color: var(--muted); font: 14px/1.5 var(--sans); }
.brand-replay svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.3; }
.brand-replay:hover { color: var(--accent); }
.brand-entrance[data-playing=true] .entrance-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: entrance-draw 1700ms cubic-bezier(.22,.61,.36,1) both; }
.brand-entrance[data-playing=true] .entrance-mark path:nth-child(2) { animation-delay: 110ms; }
.brand-entrance[data-playing=true] .entrance-mark path:nth-child(3) { animation-delay: 260ms; }
.brand-entrance[data-playing=true] .entrance-mark path:nth-child(n+4) { animation-delay: 650ms; }
.brand-entrance[data-playing=true] #brand-entrance-title { animation: entrance-reveal 1000ms 450ms both; }
.brand-entrance[data-playing=true] .entrance-world-name { animation: entrance-reveal 900ms 120ms both; }
.brand-entrance[data-playing=true] .entrance-rule { animation: entrance-rule 1000ms 1100ms both; }
.brand-entrance[data-playing=true] #entrance-tagline { animation: entrance-reveal 900ms 1400ms both; }
.brand-entrance[data-playing=true] .entrance-light { animation: entrance-meet 1500ms 950ms both; }
.brand-entrance[data-playing=true] .entrance-light-right { animation-delay: 1030ms; }
.brand-entrance[data-paused=true] *, .brand-entrance[data-paused=true] *::before, .brand-entrance[data-paused=true] *::after { animation-play-state: paused !important; }
@keyframes entrance-draw { to { stroke-dashoffset: 0; } }
@keyframes entrance-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes entrance-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes entrance-meet { 0% { opacity: 0; transform: scaleX(0); } 45% { opacity: .8; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(.05); } }
@media(max-width:650px) {
  .brand-entrance { padding: 24px; }
  .entrance-topline { font-size: 14px; letter-spacing: .12em; }
  .entrance-composition { flex-direction: column; gap: 26px; text-align: center; padding-block: 28px; }
  .entrance-portal { flex: 0 0 auto; width: clamp(100px, 27vw, 150px); }
  .entrance-copy { flex: 0 0 auto; width: 100%; }
  .entrance-copy #brand-entrance-title { font-size: clamp(43px, 12vw, 72px); }
  .entrance-world-name { font-size: 14px; margin-bottom: 13px; }
  .entrance-rule { width: 74%; margin: 18px auto; transform-origin: center; }
  .entrance-copy #entrance-tagline { font-size: 17px; }
  .entrance-foot { gap: 12px; }
  .entrance-foot p { font-size: 14px; max-width: 95px; }
  .entrance-foot [data-entrance-enter] { font-size: 14px; padding-inline: 14px; gap: 20px; }
}
@media(max-height:520px) and (min-width:651px) {
  .brand-entrance { padding: 18px 35px; }
  .entrance-composition { padding: 10px 0; gap: 35px; }
  .entrance-portal { flex-basis: 100px; }
  .entrance-copy #brand-entrance-title { font-size: 58px; }
  .entrance-world-name { font-size: 14px; margin-bottom: 7px; }
  .entrance-rule { margin-block: 12px; }
}
@media(prefers-reduced-motion:reduce) {
  .brand-entrance *, .brand-entrance *::before, .brand-entrance *::after { animation: none !important; transition: none !important; }
  .brand-entrance .entrance-mark path { stroke-dashoffset: 0 !important; }
}
.brand-entrance[data-reduced-motion=true] * { animation: none !important; transition: none !important; }
.brand-entrance[data-reduced-motion=true] .entrance-mark path { stroke-dashoffset: 0 !important; }
