.donut-page[data-trial="groggy-ring"]{
  --gr-panel:#1b2633;--gr-light:#f5ece0;--gr-muted:#c6c1b6;--gr-gold:#ffcf74;
  --gr-blue:#8be3ff;--gr-red:#ff9e90;--gr-stands:url("/groggy/tribunes-v1.webp");
  color:var(--gr-light);background:radial-gradient(ellipse at 42% 0%,#3f302a,transparent 48%),#111821;
  padding-top:clamp(.65rem,1.5vw,1.45rem)
}
.donut-page[data-trial="groggy-ring"] .davy-surface{width:min(100%,86rem)}
.donut-page[data-trial="groggy-ring"] .davy-surface>header{margin-bottom:.65rem;border-bottom:1px solid #6b5344;padding-bottom:.6rem;gap:.45rem}
.donut-page[data-trial="groggy-ring"] #davy-title{
  color:#ffe4ae;letter-spacing:.04em;font:900 clamp(1.75rem,4vw,2.9rem)/1 Impact,"Arial Narrow",sans-serif;text-transform:uppercase
}
.donut-page[data-trial="groggy-ring"] :is(button,input,select):focus-visible{outline:2px solid #ffe6aa;outline-offset:3px}
.groggy-match h3,.groggy-setup h3{margin:0}
.groggy-match p,.groggy-setup p{margin:.4rem 0}
.gr-kicker{font-size:.77rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--gr-gold)}
.gr-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.6rem;gap:.6rem;color:var(--gr-muted);font-size:.82rem}
.gr-top button,.gr-setup-intro button{padding:.35rem .55rem}
.gr-layout{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(280px,1fr);align-items:start;gap:clamp(.75rem,1.55vw,1.5rem)}
.gr-field-column{min-width:0}
.gr-scoreboard{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr) minmax(0,1fr);
  border:1px solid #70553b;border-radius:.65rem .65rem 0 0;background:#191c22;text-align:center
}
.gr-scoreboard>div{padding:.42rem .2rem}
.gr-scoreboard>div>b{display:block;color:#ffdfa3;font-size:1.04rem}
.gr-scoreboard small{color:#e1d7c6;line-height:1.18}
.gr-side-0{--gr-team:var(--gr-blue);--gr-team-ink:#133247}
.gr-side-1{--gr-team:var(--gr-red);--gr-team-ink:#522a2a}
.gr-score-team{display:flex;align-items:center;justify-content:space-evenly;gap:.3rem;color:var(--gr-team);background:var(--gr-team-ink);font-weight:750}
.gr-score-team:first-child{border-radius:.65rem 0 0 0}.gr-score-team:last-child{border-radius:0 .65rem 0 0}
.gr-score-team b{font:900 clamp(1.4rem,3vw,2.2rem)/1 "Arial Narrow",Impact,sans-serif}
.gr-arena{
  --gr-rail:clamp(6px,1.45vw,18px);
  background:#473121;border:1px solid #896440;border-top:0;border-radius:0 0 .65rem .65rem;
  overflow:hidden;box-shadow:0 13px 28px #080a0c70;padding:0 var(--gr-rail)
}
.gr-stands{
  display:grid;place-items:end center;height:clamp(72px,8.5vw,128px);margin-inline:calc(-1 * var(--gr-rail));
  background:linear-gradient(180deg,#29180f15 19%,#29180f0d 62%,#21130bec 100%),var(--gr-stands) center 52%/cover
}
.gr-stands span{
  margin-bottom:5px;border:1px solid #d5a265;background:#332019f0;color:#ffe1a4;padding:.2rem .65rem;
  font:900 .74rem/1.35 "Arial Narrow",sans-serif;letter-spacing:.18em;box-shadow:0 3px 1px #110c0a80;transform:rotate(-1deg)
}
.gr-board{
  position:relative;display:grid;grid-template-columns:repeat(11,minmax(0,1fr));grid-template-rows:repeat(7,minmax(0,1fr));
  aspect-ratio:11/7;isolation:isolate;overflow:hidden;border:0;outline:1px solid #c7d39b66;
  background:repeating-linear-gradient(90deg,transparent 0 9.09%,#92c87516 9.09% 18.18%),
    repeating-linear-gradient(15deg,#dbe4a20d 0 1px,#05180e11 1px 3px,transparent 3px 7px),
    radial-gradient(ellipse at 38% 30%,#477743,#2b623b 58%,#204c36)
}
.gr-markings,.gr-lines{position:absolute;inset:0;pointer-events:none}
.gr-markings{z-index:0;inset:2% 2.4%;border:2px solid #c8d6a5a8}
.gr-markings::before{content:"";position:absolute;inset:0 auto 0 50%;border-left:2px solid #c8d6a5a8}
.gr-markings::after{
  content:"";position:absolute;top:50%;left:50%;width:21%;aspect-ratio:1;border:2px solid #c8d6a5a8;border-radius:50%;transform:translate(-50%,-50%)
}
.gr-markings i:first-child,.gr-markings i:nth-child(2){position:absolute;top:24%;width:17%;height:52%;border:2px solid #c8d6a5a8}
.gr-markings i:first-child{left:0;border-left:0}.gr-markings i:nth-child(2){right:0;border-right:0}
.gr-markings i:last-child{position:absolute;inset:49% auto auto 49.75%;width:5px;aspect-ratio:1;background:#e8edcc;border-radius:50%}
.gr-wood{height:14px;margin-inline:calc(-1 * var(--gr-rail));border-top:2px solid #b78450;background:repeating-linear-gradient(2deg,#382719 0 2px,#815d37 2px 6px,#503524 6px 9px)}
.gr-board button{
  position:relative;display:grid;place-items:center;min-width:0;min-height:0;margin:0;padding:0;
  border:1px solid transparent;border-radius:0;background:transparent;box-shadow:none;
  transition:background-color .15s,border-color .15s;touch-action:manipulation
}
.gr-board button:disabled{opacity:1;cursor:default}
.gr-board button:not(:disabled):hover{background-color:#dbeedc25;border-color:#def8dc88}
.gr-board button:focus-visible{outline:2px solid #fff3bb;outline-offset:-3px;z-index:5}
.gr-board button.gr-goal{
  background:repeating-linear-gradient(48deg,#c8caac58 0 1px,transparent 1px 8px),
    repeating-linear-gradient(-48deg,#c8caac58 0 1px,transparent 1px 8px),#333a2ca1;
  box-shadow:inset 4px 0 #d9b786,inset 7px 0 #62452f,inset 0 0 14px #151b10b0
}
.gr-board button.gr-goal:nth-of-type(11n){box-shadow:inset -4px 0 #d9b786,inset -7px 0 #62452f,inset 0 0 14px #151b10b0}
.gr-board button[data-groggy-cell$=":2"].gr-goal{border-top:4px solid #d9b786}
.gr-board button[data-groggy-cell$=":4"].gr-goal{border-bottom:4px solid #d9b786}
.gr-board button.gr-blocked{background:#61392f99;box-shadow:inset 0 0 0 1px #ffd0a780}
.gr-board button.gr-active{box-shadow:inset 0 0 0 2px #fff3bb;z-index:3}
.gr-board button.gr-path,.gr-board button.gr-goal-preview{background-color:#e4c15c7f;border-color:#f5d477ba}
.gr-board button.gr-candidate{border-color:#b9fae1;background-color:#55deb380;border-style:dashed}
.gr-board button.gr-candidate::after{
  content:"";position:absolute;inset:auto 10% 12% auto;width:8%;aspect-ratio:1;background:#d8fff1;border-radius:50%;pointer-events:none
}
.gr-lines{z-index:2;overflow:hidden}
.gr-line{position:absolute;left:var(--gx);top:var(--gy);width:var(--gl);height:3px;transform:translateY(-50%);border-radius:3px}
.gr-line-y{width:3px;height:var(--gl);transform:translateX(-50%)}
.gr-path-line{background:#ffe895;box-shadow:0 0 7px #fbdd7f}
.gr-grapple-line{height:5px;background:repeating-linear-gradient(90deg,#54412e 0 2px,#efd39b 2px 6px);box-shadow:0 1px 2px #130f0a}
.gr-grapple-line.gr-line-y{width:5px;height:var(--gl);background:repeating-linear-gradient(0deg,#54412e 0 2px,#efd39b 2px 6px)}
.gr-ray{background:#efb8ff;box-shadow:0 0 10px 3px #d38bff;animation:gr-beam .23s ease-out}
@keyframes gr-beam{from{opacity:0}40%{opacity:1}to{opacity:.55}}
.gr-piece{
  position:relative;z-index:3;display:block;width:79%;aspect-ratio:1;max-width:65px;max-height:92%;
  color:#fff9e9;background:var(--gr-team-ink);border:2px solid var(--gr-team);border-radius:25%;
  box-shadow:0 2px 6px #101d17;pointer-events:none
}
.gr-piece img,.gr-sheet-art img,.gr-roster-art img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:center 31%;border-radius:inherit
}
.gr-piece.gr-ball{border-radius:50%;outline:1px dashed #fff8cc;outline-offset:1px}
.gr-active .gr-piece{box-shadow:0 0 0 2px #fff3bb,0 0 12px #fff1ae}
.gr-role-chip,.gr-state-chip{
  position:absolute;display:grid;place-items:center;background:var(--gr-team-ink);color:#fff;border:1px solid var(--gr-team);
  font:bold clamp(.55rem,1.1vw,.77rem)/1 sans-serif;min-width:1.17em;min-height:1.17em;border-radius:50%;right:-3px;bottom:-3px
}
.gr-ball .gr-role-chip{color:#211708;background:#ffe4a0;border-color:#fff4ce}
.gr-state-chip{left:-3px;top:-3px;right:auto;bottom:auto;background:#573e1f;border-color:#ffe4a0}
.gr-flight{position:absolute;z-index:8;margin:0}
.gr-impact{
  position:absolute;z-index:10;pointer-events:none;left:50%;top:9%;translate:-50% 0;text-align:center;
  font:900 clamp(.9rem,2vw,1.4rem)/1.14 "Arial Narrow",sans-serif;padding:.4rem .65rem;color:#ffe8b7;
  border:1px solid #e7ae65;border-radius:.35rem;background:#23170eeb;white-space:nowrap;box-shadow:0 3px 9px #1117
}
.gr-impact-tackle,.gr-impact-push,.gr-impact-luffy{background:#612a1b}
.gr-impact-grab,.gr-impact-throw,.gr-impact-escape{background:#663f1c}
.gr-impact-guard,.gr-impact-zoro{background:#253e6a}
.gr-impact-recover{background:#17482d}.gr-impact-foxy{background:#4d2d67}.gr-impact-sanji,.gr-impact-sprint{background:#23576c}
.gr-aura-recover{box-shadow:0 0 12px 4px #aaf2ae}.gr-aura-guard,.gr-aura-zoro{box-shadow:0 0 12px 4px #a9ddff}
.gr-goal-flash::after{content:"";position:absolute;inset:0;z-index:8;pointer-events:none;background:#ffc75a5c}
.gr-status{min-height:1.25rem;font-size:.86rem;color:#ffe0a2}.gr-status:empty{min-height:0}
.gr-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-top:.7rem}
.gr-team-card{min-width:0;background:#192430;border:1px solid #48545e;border-top:2px solid var(--gr-team);border-radius:.45rem;padding:.45rem}
.gr-team-card h3{display:flex;justify-content:space-between;align-items:center;gap:.25rem;font-size:.88rem;color:var(--gr-team);margin:0 0 .4rem}
.gr-team-card h3 span{font-size:.65rem;text-transform:uppercase;font-weight:800;color:#151c21;background:var(--gr-team);border-radius:2rem;padding:.12rem .35rem;white-space:nowrap}
.gr-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.24rem}
.gr-roster-unit{
  background:#111c26;color:var(--gr-light);border:1px solid transparent;border-radius:.3rem;min-width:0;
  display:grid;grid-template-columns:25px minmax(0,1fr);gap:.22rem;text-align:left;padding:.26rem .22rem;align-items:start
}
.gr-roster-unit[aria-pressed=true]{border-color:#e4c07c;background:#332b23}
.gr-roster-art{display:block;width:100%;aspect-ratio:1;overflow:hidden;border-radius:.24rem;border:1px solid var(--gr-team)}
.gr-roster-info{min-width:0}
.gr-roster-info>b,.gr-roster-info>small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.73rem}
.gr-roster-info>small{font-size:.63rem;color:var(--gr-muted)}.gr-roster-info .gr-roster-effect{color:#ffd58e;white-space:normal}
.gr-endurance{display:flex;gap:.3rem;align-items:center;white-space:nowrap;line-height:1.1}
.gr-endurance meter{width:5rem;max-width:50%;height:.55rem}.gr-endurance meter::-webkit-meter-bar{background:#101820;border:0}
.gr-endurance meter::-webkit-meter-optimum-value{background:#9cdba4}.gr-endurance small{font-size:.66rem;color:#cfdec8}
.gr-roster .gr-endurance meter{width:2.5rem}
.gr-panel{min-width:0;background:var(--gr-panel);border:1px solid #46505a;border-radius:.65rem;padding:.72rem}
.gr-unit-sheet{display:grid;grid-template-columns:clamp(52px,6.5vw,83px) minmax(0,1fr);align-items:center;gap:.65rem}
.gr-sheet-art{aspect-ratio:1;border-radius:.4rem;border:1px solid #ab9773;overflow:hidden;background:#18202a}
.gr-unit-sheet h3{font-size:clamp(1.18rem,2vw,1.7rem);line-height:1.05;margin:.18rem 0 .4rem}
.gr-unit-sheet small{color:var(--gr-muted);font-size:.72rem}
.gr-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.22rem;margin:.55rem 0}
.gr-stats>div{display:block;text-align:center;background:#111b26;border-radius:.3rem;border:1px solid #455261;padding:.25rem .08rem}
.gr-stats dt{color:#c8d3dd;font-size:clamp(.59rem,1vw,.72rem);line-height:1.06}.gr-stats dd{margin:.14rem 0 0;color:#ffe19e;font-weight:800}
.gr-unit-effects{padding:.16rem .35rem;border-radius:.3rem;background:#3b3033;color:#ffe1aa;font-size:.73rem}
.gr-action-group{margin-top:.55rem}.gr-action-group h4{margin:0 0 .3rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:#d9bd89}
.gr-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.gr-action{min-width:0}
.gr-action button{
  display:flex;align-items:center;gap:.32rem;width:100%;min-height:40px;margin:0;text-align:left;padding:.38rem;
  background:#283746;border:1px solid #586d7d;color:#fff4de;border-radius:.35rem;line-height:1.15
}
.gr-action button b{font-size:.82rem;display:block}.gr-action button small{display:block;margin-top:.17rem;font-weight:600;color:#d4d7d7;font-size:.67rem}
.gr-action-icon{flex:0 0 1.15rem;font-size:1.07rem;color:#ffd88b;text-align:center}
.gr-action button[aria-disabled=true]{cursor:default;background:#202936;border-color:#46515b;color:#d7d5d0}
.gr-action button[aria-disabled=true] .gr-action-icon{color:#b0a089}
.gr-action button[aria-pressed=true],.gr-action button:not([aria-disabled=true]):hover{border-color:#ffe8a3;background:#414045}
.gr-action .gr-pilot-command{background:#40354b;border-color:#a083aa}
.gr-reason{font-size:.69rem;color:#d1ccc1;display:block;margin:.16rem .04rem;line-height:1.2}
.gr-end{margin-top:.62rem;width:100%;display:flex;justify-content:space-between;align-items:center}
.gr-confirm{
  margin:.55rem 0 0;display:flex;align-items:center;justify-content:space-between;gap:.45rem;
  padding:.55rem;background:#23252a;border:1px solid #aa865c;border-radius:.45rem;min-width:0
}
.gr-confirm p{font-size:.85rem;color:#eadac2}.gr-confirm>div+div{display:flex;gap:.25rem;flex-wrap:wrap;justify-content:flex-end}
.gr-confirm strong{color:#ffe0a2}.gr-confirm button{font-size:.78rem;padding:.35rem .5rem}
.gr-result{background:linear-gradient(145deg,#463325,#222631);border-color:#ad8955}
.gr-result h3{font-size:clamp(1.5rem,4vw,2.65rem);color:#ffe0a2}
.gr-setup-intro{
  display:flex;align-items:flex-end;min-height:clamp(160px,24vw,238px);padding:clamp(.8rem,2.4vw,1.55rem);
  border:1px solid #8e6e4d;border-radius:.7rem;background:linear-gradient(90deg,#151b24fa 4%,#171d26c9 33%,#171d2640 67%),var(--gr-stands) center 48%/cover
}
.gr-setup-intro h2{margin:.5rem 0 .15rem;line-height:1;color:#ffe4af;font-size:clamp(2rem,4.7vw,3.8rem)}
.gr-mode{display:flex;gap:.45rem;flex-wrap:wrap;margin:.6rem 0}.gr-mode button[aria-pressed=true]{background:#e8c486;color:#1d2125;border-color:#e8c486}
.groggy-picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,.84fr);gap:clamp(.45rem,1.5vw,1.1rem);align-items:stretch}
.gr-slot{min-width:0;background:#19242e;border:1px solid #5b5652;border-radius:.55rem;padding:.65rem}
.gr-slot h3{font-size:clamp(.9rem,1.65vw,1.28rem);margin-bottom:.4rem;color:#fff0d6}.gr-slot:nth-child(2){border-top:2px solid #e7bc70}
.gr-card{
  min-width:0;color:#f5ece0;display:flex;flex-direction:column;gap:.2rem;text-align:left;
  background:#141c25;border:1px solid #54483d;border-radius:.38rem;overflow:hidden;padding:.45rem
}
.gr-card strong{font-size:.9rem;line-height:1.12}.gr-card small,.gr-slot label small,.groggy-opponent small{font-size:.72rem;color:#cfc4b0;display:block}
.gr-card-art{display:block;aspect-ratio:4/4.2;overflow:hidden;border-radius:.23rem;background:#282c34}
.gr-card-art img{display:block;width:100%;height:100%;object-fit:cover}
.gr-card-empty{
  display:grid;place-items:center;border:1px dashed #a89877;color:#d8ba87;font-size:clamp(1.7rem,5vw,3.6rem);
  background:radial-gradient(ellipse at 50% 50%,#42392e,#1b242e)
}
.gr-tactical .gr-card{border-style:dashed}.gr-slot-actions{display:flex;flex-wrap:wrap;margin:.36rem 0;gap:.25rem}
.gr-slot button{font-size:.77rem;padding:.28rem .4rem}.gr-slot label,.groggy-opponent,.gr-filters label{display:block;font-size:.77rem;color:#eedbc2;margin-top:.4rem}
.gr-slot select,.groggy-opponent select,.gr-filters select,.gr-filters input{
  display:block;width:100%;min-width:0;padding:.43rem .45rem;margin:.22rem 0;color:#f4efe5;background:#101b25;
  border:1px solid #6a7180;border-radius:.33rem
}
.gr-role-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.gr-setup-footer{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-top:.8rem}
.gr-setup-footer .groggy-opponent{width:min(100%,28rem)}
.gr-gallery{
  box-sizing:border-box;width:min(940px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 26px);
  background:#162330;color:var(--gr-light);border:1px solid #b8935b;border-radius:.65rem;padding:.72rem;overflow:auto
}
.gr-gallery::backdrop{background:#0b0e13bd}
.gr-gallery header{position:sticky;top:-.72rem;z-index:2;background:#162330;padding:.66rem 0 .45rem;margin-bottom:.45rem;border-bottom:1px solid #8c7254}
.gr-filters{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:.45rem}
.gr-gallery-count{color:#e6cfa5;font-size:.8rem}.gr-gallery-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(129px,1fr));gap:.44rem}
.gr-gallery-card{width:100%;padding:.4rem;border:1px solid #526274}.gr-gallery-card:disabled{opacity:.62}
.gr-gallery-card[aria-pressed=true]{border-color:#ffda8f}

@media(max-width:760px){
  .donut-page[data-trial="groggy-ring"]{padding:.55rem}
  .donut-page[data-trial="groggy-ring"] .davy-surface>header{margin-bottom:.5rem;align-items:center}
  .donut-page[data-trial="groggy-ring"] .davy-surface>header button{font-size:.73rem;padding:.33rem}
  .gr-top{margin-bottom:.4rem}.gr-top button{font-size:.73rem}
  .gr-layout{grid-template-columns:minmax(0,1fr);gap:.55rem}.gr-field-column{display:contents}
  .gr-scoreboard{order:0}.gr-scoreboard>div{padding:.32rem .15rem;font-size:.75rem}
  .gr-scoreboard>div>b{font-size:.86rem}.gr-scoreboard small{font-size:.62rem;display:block}.gr-score-team{font-size:.7rem}
  .gr-arena{order:1;margin-top:-.55rem}.gr-stands{height:47px;background-position:center 50%}
  .gr-stands span{font-size:.56rem;margin-bottom:3px}.gr-wood{height:8px}.gr-board{aspect-ratio:11/7.7}
  .gr-board button.gr-goal{box-shadow:inset 2px 0 #d9b786,inset 3px 0 #62452f}
  .gr-board button.gr-goal:nth-of-type(11n){box-shadow:inset -2px 0 #d9b786,inset -3px 0 #62452f}
  .gr-board button[data-groggy-cell$=":2"].gr-goal,.gr-board button[data-groggy-cell$=":4"].gr-goal{border-width:2px}
  .gr-piece{width:83%;border-width:1.5px}
  .gr-layout>.gr-panel{order:3}.gr-status{order:2;margin:0!important}.gr-status:empty{display:none}
  .gr-teams{order:4;grid-template-columns:minmax(0,1fr);margin:0}.gr-roster-unit{grid-template-columns:21px minmax(0,1fr);padding:.26rem .1rem}
  .gr-confirm{position:fixed;inset:auto 0 0;z-index:7;margin:0;padding:.4rem .62rem calc(.5rem + env(safe-area-inset-bottom));border-radius:0}
  .gr-confirm p{font-size:.72rem;line-height:1.2;margin:.25rem 0}.gr-confirm>div+div{flex:0 0 min(41%,155px)}
  .gr-confirm button{font-size:.72rem;padding:.38rem .35rem}.groggy-match:has(.gr-confirm){padding-bottom:8rem}
  .groggy-picks{grid-template-columns:repeat(2,minmax(0,1fr))}.gr-slot{padding:.42rem}
  .gr-setup-footer{align-items:flex-start;flex-direction:column}.gr-setup-intro{min-height:126px}
  .gr-filters{grid-template-columns:1fr 1fr}.gr-filters label:first-child{grid-column:1/-1}
  .gr-gallery-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
  .groggy-match *, .groggy-setup *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
