/* Register page: bridge card-table theme. Green felt, ivory cards, gold trim. Scoped to .rgh */
.rgh{
  --sz:1;
  --felt:#0e5c42; --felt-d:#08392a; --felt-dd:#041e15;
  --gold:#f2b91d; --gold-l:#ffd866; --gold-d:#c28f06; --ivory:#fffdf6; --paper:#f5f2e7;
  --ink:#14201a; --mute:#4a5b52; --line:#e1dbc8; --red:#b3261e; --green:#0f7a40;
  --display:'DM Serif Display',Georgia,'Times New Roman',serif;
  --sans:'Manrope','Segoe UI',system-ui,-apple-system,Arial,sans-serif;
  font-family:var(--sans); font-size:calc(1.0625rem * var(--sz)); line-height:1.65;
  color:var(--ink); background:var(--paper); -webkit-text-size-adjust:100%;
}
.rgh[data-size="2"]{--sz:1.2}
.rgh[data-size="3"]{--sz:1.4}
.rgh *,.rgh *::before,.rgh *::after{box-sizing:border-box}
.rgh :where(h2,h3,p,ul,ol,li,dl,dd,dt){margin:0}
.rgh :where(ul,ol){padding:0;list-style:none}
.rgh a{color:inherit}
.rgh-wrap{width:100%;max-width:1180px;margin:0 auto;padding-left:1rem;padding-right:1rem}
.rgh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rgh a:focus-visible,.rgh button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.rgh :where(h2,h3){font-family:var(--display);font-weight:400;letter-spacing:.005em}

/* ---------- Buttons ---------- */
.rgh-btn{
  position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:52px;padding:.6rem 1.4rem;border-radius:12px;
  border:2px solid transparent;font:inherit;font-weight:800;font-size:.95em;letter-spacing:.01em;line-height:1.2;text-decoration:none;text-align:center;cursor:pointer;
  transition:background-color .2s,border-color .2s,color .2s,transform .2s,box-shadow .2s;
}
.rgh-btn--gold{background:linear-gradient(180deg,var(--gold-l),var(--gold));color:#1d1600;box-shadow:0 4px 0 var(--gold-d),0 10px 20px rgba(0,0,0,.18)}
.rgh-btn--gold:hover{transform:translateY(-2px);box-shadow:0 6px 0 var(--gold-d),0 14px 24px rgba(0,0,0,.22)}
.rgh-btn--gold:active{transform:translateY(2px);box-shadow:0 1px 0 var(--gold-d)}
.rgh-btn--gold::after{
  content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);
  transform:skewX(-20deg);animation:rgh-shine 5s ease-in-out 1.6s infinite;pointer-events:none;
}
.rgh-btn--ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.rgh-btn--ghost:hover{background:rgba(255,255,255,.2);border-color:#fff;transform:translateY(-2px)}
.rgh-btn--line{background:#fff;color:var(--felt-d);border-color:var(--felt-d)}
.rgh-btn--line:hover{background:var(--felt-d);color:#fff}
.rgh-btn--off{background:#ece9dd;color:#6a746d;border-color:#d8d3c0;cursor:not-allowed}
@keyframes rgh-shine{0%,60%{left:-60%}100%{left:130%}}

/* ---------- Hero: the card table ---------- */
.rgh-hero{
  position:relative;overflow:hidden;color:#fff;padding:2.8rem 0 6.8rem;border-bottom:6px solid var(--gold);isolation:isolate;
  background:
    radial-gradient(circle at 76% 46%,rgba(255,255,255,.13),transparent 38%),
    radial-gradient(110% 80% at 50% 0%,rgba(255,255,255,.10),transparent 60%),
    repeating-linear-gradient(45deg,rgba(255,255,255,.026) 0 2px,transparent 2px 16px),
    radial-gradient(130% 120% at 50% 35%,var(--felt) 0%,var(--felt-d) 62%,var(--felt-dd) 100%);
}
.rgh-hero::after{content:"";position:absolute;inset:12px;border:1.5px dashed rgba(242,185,29,.38);border-radius:20px;pointer-events:none;z-index:-1}
.rgh-suit{position:absolute;z-index:-1;font-size:3.6rem;color:rgba(255,255,255,.06);pointer-events:none;animation:rgh-float 11s ease-in-out infinite}
.rgh-suit--1{left:3%;top:9%}
.rgh-suit--2{left:45%;top:5%;font-size:2.3rem;animation-delay:-2s}
.rgh-suit--3{right:4%;top:60%;animation-delay:-4s}
.rgh-suit--4{left:30%;bottom:14%;font-size:2.5rem;animation-delay:-6s}
@keyframes rgh-float{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-16px) rotate(6deg)}}

.rgh-hero-in{display:grid;gap:2.2rem;align-items:center}
.rgh-hero-copy>*{animation:rgh-up .8s cubic-bezier(.2,.7,.2,1) both}
.rgh-hero-copy>:nth-child(2){animation-delay:.1s}
.rgh-hero-copy>:nth-child(3){animation-delay:.2s}
.rgh-hero-copy>:nth-child(4){animation-delay:.3s}
.rgh-hero-copy>:nth-child(5){animation-delay:.4s}
@keyframes rgh-up{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}

.rgh-hero-date{display:inline-flex;align-items:center;gap:.6rem;font-weight:800;font-size:.8em;letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
.rgh-hero-date::before{content:"";width:2.2rem;height:2px;background:var(--gold);border-radius:2px}
.rgh .rgh-hero h2{margin-top:.7rem;color:#fff;font-size:clamp(2.3rem,7.2vw,4.1em);line-height:1.06;text-shadow:0 3px 18px rgba(0,0,0,.4)}
.rgh-hero-sub{margin-top:1.1rem;max-width:46ch;color:#dcebe2;font-size:1.06em;text-align:left}
.rgh-chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.5rem}
.rgh-chips li{padding:.4rem 1rem;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.24);color:#eaf4ee;font-size:.9em;font-weight:600;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.rgh-chips b{color:var(--gold);font-weight:800}
.rgh-hero-actions{display:flex;flex-direction:column;gap:.7rem;margin-top:1.6rem;max-width:24rem}

/* Stage: compass ring, fanned hand, floating bidding-box tiles */
.rgh-stage{position:relative;width:100%;max-width:400px;height:270px;margin:0 auto}
.rgh-ring{position:absolute;left:50%;top:46%;width:300px;height:300px;margin:-150px 0 0 -150px;border-radius:50%;border:1.5px solid rgba(242,185,29,.35);box-shadow:inset 0 0 40px rgba(0,0,0,.25),0 0 40px rgba(242,185,29,.08)}
.rgh-ring::before{content:"";position:absolute;inset:14px;border-radius:50%;border:1.5px dashed rgba(242,185,29,.45);animation:rgh-spin 70s linear infinite}
.rgh-ring i{position:absolute;display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:var(--felt-dd);border:1.5px solid var(--gold);color:var(--gold);font:normal 800 .78rem var(--sans)}
.rgh-ring .n{left:50%;top:-1rem;margin-left:-1rem}
.rgh-ring .s{left:50%;bottom:-1rem;margin-left:-1rem}
.rgh-ring .e{right:-1rem;top:50%;margin-top:-1rem}
.rgh-ring .w{left:-1rem;top:50%;margin-top:-1rem}
@keyframes rgh-spin{to{transform:rotate(360deg)}}

.rgh-hand{position:absolute;left:0;right:0;bottom:6px;height:220px}
.rgh-pc{
  position:absolute;left:50%;bottom:0;width:112px;height:158px;margin-left:-56px;background:var(--ivory);border:1px solid #d6d0bb;border-radius:12px;
  box-shadow:0 12px 24px rgba(0,0,0,.4),inset 0 0 0 4px #fff;color:#14201a;transform-origin:50% 135%;
  transform:rotate(var(--r,0deg));animation:rgh-deal .9s cubic-bezier(.2,.8,.2,1) both,rgh-sway 7s ease-in-out 1.6s infinite;
  transition:transform .45s cubic-bezier(.2,.8,.2,1);
}
.rgh-pc:nth-child(1){animation-delay:.25s,1.6s}
.rgh-pc:nth-child(2){animation-delay:.35s,1.8s}
.rgh-pc:nth-child(3){animation-delay:.45s,2s}
.rgh-pc:nth-child(4){animation-delay:.55s,2.2s}
.rgh-pc:nth-child(5){animation-delay:.65s,2.4s}
.rgh-stage:hover .rgh-pc{animation-play-state:paused,paused;transform:rotate(calc(var(--r,0deg) * 1.35)) translateY(-6px)}
.rgh-pc.is-red{color:var(--red)}
.rgh-pc::before,.rgh-pc::after{content:attr(data-r) "\A" attr(data-s);white-space:pre;position:absolute;font-family:var(--display);font-size:1.05rem;line-height:1.1;text-align:center}
.rgh-pc::before{left:11px;top:9px}
.rgh-pc::after{right:11px;bottom:9px;transform:rotate(180deg)}
.rgh-pc u{position:absolute;inset:0;display:grid;place-items:center;text-decoration:none;font-size:3.1rem;line-height:1}
@keyframes rgh-deal{from{transform:rotate(0deg) translate(60px,40px) scale(.9);opacity:0}to{transform:rotate(var(--r,0deg));opacity:1}}
@keyframes rgh-sway{0%,100%{transform:rotate(var(--r,0deg))}50%{transform:rotate(calc(var(--r,0deg) + 2.2deg)) translateY(-4px)}}

.rgh-bid{position:absolute;display:grid;place-items:center;min-width:3.1rem;height:2.5rem;padding:0 .7rem;border-radius:9px;background:#fff;color:#0b1f45;font:800 1.02rem var(--sans);
  box-shadow:0 8px 16px rgba(0,0,0,.35);border-bottom:3px solid #d6d0bb;animation:rgh-bob 6s ease-in-out infinite}
.rgh-bid em{font-style:normal;margin-left:.1em}
.rgh-bid .r{color:var(--red)}
.rgh-bid--1{left:-6px;top:6px;transform:rotate(-8deg)}
.rgh-bid--2{right:-4px;top:22px;transform:rotate(7deg);animation-delay:-1.5s}
.rgh-bid--3{left:2px;bottom:34px;transform:rotate(6deg);animation-delay:-3s}
.rgh-bid--4{right:6px;bottom:20px;transform:rotate(-6deg);animation-delay:-4.5s}
@keyframes rgh-bob{0%,100%{translate:0 0}50%{translate:0 -9px}}

/* ---------- How it works ---------- */
.rgh-steps-wrap{position:relative;z-index:2;margin-top:-3.3rem}
.rgh-steps{display:grid;grid-template-columns:minmax(0,1fr);gap:.8rem;padding:1.1rem;background:var(--ivory);border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 40px rgba(4,30,21,.22)}
.rgh-steps li{display:flex;align-items:center;gap:.9rem;min-width:0}
.rgh-steps li>div{min-width:0}
.rgh-steps li>span{
  flex:none;display:grid;place-items:center;width:2.7rem;height:2.7rem;border-radius:50%;background:var(--felt-d);color:var(--gold);
  border:2px solid var(--gold);font-family:var(--display);font-size:1.15em;box-shadow:0 0 0 4px rgba(242,185,29,.16);
}
.rgh-steps b{display:block;font-weight:800;color:var(--felt-dd);line-height:1.25}
.rgh-steps small{display:block;margin-top:.15rem;color:var(--mute);font-size:.86em;line-height:1.45}

/* ---------- Events ---------- */
.rgh-events{padding-top:2.6rem;padding-bottom:1rem}
.rgh-head{display:flex;flex-direction:column;gap:1rem}
.rgh-head h2{font-size:clamp(1.6rem,4.8vw,2.3em);line-height:1.15;color:var(--felt-dd)}
.rgh-head h2::after{content:"♠\FE0E  ♥\FE0E  ♦\FE0E  ♣\FE0E";display:block;margin-top:.35rem;color:var(--gold-d);font-family:var(--sans);font-size:.5em;letter-spacing:.45em}
.rgh-head p{margin-top:.4rem;color:var(--mute)}
.rgh-size{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.rgh-size>span:first-child{font-weight:700;color:var(--mute);margin-right:.2rem;font-size:.92em}
.rgh-size button{min-width:46px;min-height:46px;border:2px solid var(--felt-d);border-radius:10px;background:#fff;color:var(--felt-d);font:inherit;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background-color .2s,color .2s,transform .2s}
.rgh-size button:hover{transform:translateY(-1px)}
.rgh-size button[aria-pressed="true"]{background:var(--felt-d);color:var(--gold)}

.rgh-filter{margin-top:1.3rem}
.rgh-filter ul{display:flex;flex-wrap:wrap;gap:.5rem}
.rgh-filter button{min-height:44px;padding:.35rem 1.1rem;border:2px solid var(--line);border-radius:999px;background:#fff;color:var(--felt-d);font:inherit;font-weight:700;font-size:.9em;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s,transform .2s}
.rgh-filter button:hover{border-color:var(--felt);transform:translateY(-1px)}
.rgh-filter button[aria-pressed="true"]{background:var(--felt-d);border-color:var(--felt-d);color:var(--gold)}

.rgh-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:1.4rem;margin-top:1.5rem}
.rgh-ev{
  position:relative;display:flex;flex-direction:column;gap:.9rem;overflow:hidden;padding:1.25rem 1.25rem 1.35rem;
  background:var(--ivory);border:1px solid var(--line);border-top:5px solid var(--gold);border-radius:18px;box-shadow:0 2px 6px rgba(4,30,21,.07);
  transition:transform .55s cubic-bezier(.2,.7,.2,1),opacity .55s ease,box-shadow .25s,border-color .25s;
}
.rgh-ev[hidden]{display:none}
.rgh-ev::before{
  content:attr(data-suit);position:absolute;right:-.1em;top:-.2em;font-size:8.5rem;line-height:1;color:var(--felt-d);opacity:.055;pointer-events:none;
  transition:transform .6s cubic-bezier(.2,.7,.2,1),opacity .4s;transform-origin:70% 50%;
}
.rgh-ev.is-red::before{color:var(--red)}
.rgh-ev>*{position:relative}
.rgh-ev:hover{transform:translateY(-5px);border-color:#d2c9ad;box-shadow:0 20px 38px rgba(4,30,21,.16)}
.rgh-ev:hover::before{transform:rotate(-10deg) scale(1.1);opacity:.1}
.rgh-ev.rgh-pre{opacity:0;transform:translateY(26px)}
.rgh-ev.rgh-in{opacity:1;transform:none}
.rgh-ev.rgh-in:hover{transform:translateY(-5px)}

.rgh-ev-top{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.rgh-type{font-weight:800;font-size:.76em;letter-spacing:.09em;text-transform:uppercase;color:var(--felt)}
.rgh-badge{display:inline-flex;align-items:center;padding:.15rem .8rem;border-radius:999px;font-weight:800;font-size:.8em;white-space:nowrap}
.rgh-badge--ok{background:#e1f3e8;color:#0b5c2f}
.rgh-badge--ok::before{content:"";width:.5em;height:.5em;margin-right:.5em;border-radius:50%;background:#16a34a;box-shadow:0 0 0 0 rgba(22,163,74,.6);animation:rgh-pulse 2.2s ease-out infinite}
.rgh-badge--warn{background:#fff0c9;color:#7a5200}
.rgh-badge--bad{background:#fbe1de;color:#8f1d16}
.rgh-badge--off{background:#ebe8dc;color:#555e58}
@keyframes rgh-pulse{0%{box-shadow:0 0 0 0 rgba(22,163,74,.55)}70%,100%{box-shadow:0 0 0 .55em rgba(22,163,74,0)}}
.rgh-ev h3{font-size:1.4em;line-height:1.25;color:var(--felt-dd)}
.rgh-cat{margin-top:-.6rem;color:var(--felt);font-weight:700;font-size:.9em}

.rgh-fee{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .6rem;padding:.75rem 1rem;border-radius:13px;background:linear-gradient(180deg,#fff9e3,#fff3cb);border:1px solid #efd88a;border-left:5px solid var(--gold)}
.rgh-fee b{font-family:var(--display);font-weight:400;font-size:1.9em;line-height:1.1;color:var(--felt-dd)}
.rgh-fee span{color:#5e4700;font-weight:700;font-size:.9em}
.rgh-fee.is-tba b{font-size:1.15em}
.rgh-strata{padding:.8rem 1rem;border-radius:13px;border:1px solid #b9dcc8;border-left:5px solid var(--green);background:#e7f4ed;color:#11402a;font-size:.93em;line-height:1.6;text-align:left}
.rgh-fee-extra{color:var(--mute);font-size:.92em}

.rgh-meta{display:flex;flex-direction:column;border-top:1px dashed #cfc8b0}
.rgh-meta>div{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.55rem 0;border-bottom:1px dashed #e4dfcc}
.rgh-meta>div:last-child{border-bottom:0}
.rgh-meta dt{color:var(--mute);font-weight:700;font-size:.86em}
.rgh-meta dd{text-align:right;font-weight:800;color:var(--ink);font-size:.95em}

.rgh-actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:auto;padding-top:.3rem}
.rgh-none{margin-top:1.2rem;padding:1.4rem;border:2px dashed #cfc8b0;border-radius:14px;background:#fff;text-align:center;color:var(--mute)}

/* ---------- Help ---------- */
.rgh-pad{padding-top:1.6rem;padding-bottom:3.2rem}
.rgh-help{
  position:relative;overflow:hidden;display:grid;gap:1.2rem;padding:1.7rem;border-radius:20px;color:#fff;border-bottom:5px solid var(--gold);
  background:repeating-linear-gradient(45deg,rgba(255,255,255,.03) 0 2px,transparent 2px 16px),radial-gradient(130% 160% at 50% 0%,var(--felt) 0%,var(--felt-d) 70%,var(--felt-dd) 100%);
}
.rgh-help::before{content:"♠";position:absolute;right:2%;top:-18%;font-size:12rem;line-height:1;color:rgba(255,255,255,.05);pointer-events:none}
.rgh-help>*{position:relative}
.rgh-help h2{font-size:1.65em;color:#fff}
.rgh-help p{margin-top:.5rem;max-width:58ch;color:#dcebe2;text-align:left}
.rgh-help-actions{display:flex;flex-direction:column;gap:.65rem}

/* ---------- Larger screens ---------- */
@media (min-width:700px){
  .rgh-hero-sub,.rgh-strata,.rgh-help p{text-align:justify;hyphens:auto;-webkit-hyphens:auto}
}
@media (min-width:560px){
  .rgh-hero-actions{flex-direction:row;flex-wrap:wrap;max-width:none}
  .rgh-head{flex-direction:row;align-items:flex-end;justify-content:space-between}
}
@media (min-width:700px){
  .rgh-wrap{padding-left:1.5rem;padding-right:1.5rem}
  .rgh-hero{padding:3.6rem 0 7.4rem}
  .rgh-steps{grid-template-columns:repeat(3,minmax(0,1fr));padding:1.3rem 1.5rem;gap:1.5rem}
  .rgh-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
  .rgh-help{grid-template-columns:1fr auto;align-items:center;padding:2.1rem 2.4rem}
  .rgh-help-actions{flex-direction:row;flex-wrap:wrap}
}
@media (min-width:900px){
  .rgh-hero-in{grid-template-columns:1.1fr .9fr}
  .rgh-stage{height:310px;max-width:440px}
  .rgh-ring{width:340px;height:340px;margin:-170px 0 0 -170px}
  .rgh-hand{height:250px}
  .rgh-pc{width:128px;height:180px;margin-left:-64px}
  .rgh-pc u{font-size:3.5rem}
  .rgh-pc::before,.rgh-pc::after{font-size:1.15rem}
}
@media (min-width:1020px){
  .rgh-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:899px){
  .rgh-stage{height:240px}
  .rgh-ring{width:250px;height:250px;margin:-125px 0 0 -125px}
}
@media (max-width:560px){
  .rgh-hero{padding-bottom:8.4rem}
  .rgh-actions .rgh-btn{padding:.6rem .6rem;font-size:.88em}
  .rgh-stage{max-width:300px;height:220px}
  .rgh-hand{height:180px}
  .rgh-pc{width:92px;height:130px;margin-left:-46px}
  .rgh-pc u{font-size:2.4rem}
  .rgh-pc::before,.rgh-pc::after{font-size:.85rem}
  .rgh-bid{min-width:2.5rem;height:2.1rem;font-size:.88rem}
}

@media (prefers-reduced-motion:reduce){
  .rgh *,.rgh *::before,.rgh *::after{transition:none!important;animation:none!important}
  .rgh-ev.rgh-pre{opacity:1;transform:none}
  .rgh-hero-copy>*{opacity:1}
}
@media print{
  .rgh-stage,.rgh-suit,.rgh-filter,.rgh-size,.rgh-actions,.rgh-help,.rgh-hero-actions{display:none!important}
  .rgh{background:#fff}
  .rgh-hero{background:none;color:#000;padding:1rem 0;border-bottom:2px solid #000}
  .rgh .rgh-hero h2,.rgh-hero-sub,.rgh-hero-date,.rgh-chips li{color:#000;text-shadow:none}
  .rgh-ev{break-inside:avoid;box-shadow:none}
  .rgh-grid{grid-template-columns:1fr 1fr}
}
