#relay[hidden],#app[hidden]{display:none!important}
html.in-relay,html.in-relay body{height:auto;overflow:auto;background:#111824}
#relay,.tc-dialog{--gold:#ffd47e;--light:#faf5e9;--dim:#c1ccdd;--edge:#465269;--base:#151c2c;color:var(--light);font:500 1rem/1.38 Barlow,system-ui,sans-serif}
#relay{min-height:100dvh;background:radial-gradient(ellipse at 30% 0,#283853 0,transparent 55%),#101622}
#relay button,.tc-dialog button,#relay select{font:inherit;color:inherit;cursor:pointer}
#relay button:focus-visible,.tc-dialog button:focus-visible,#relay select:focus-visible{outline:3px solid var(--gold);outline-offset:3px;z-index:4}
.tc-head{padding:0 max(3.4%,calc((100% - 1170px)/2));height:54px;display:flex;gap:clamp(16px,5vw,80px);align-items:center;background:#101622;border-bottom:1px solid #4c5870}
.tc-brand{display:flex;align-items:center;gap:6px;font-weight:950;font-style:italic;white-space:nowrap;letter-spacing:-.04em}.tc-brand i{display:grid;place-items:center;color:#14202e;background:var(--gold);width:27px;height:29px;transform:skew(-10deg);font-size:1.45rem;margin-right:4px}.tc-brand b{color:var(--gold)}
.tc-head nav{align-self:stretch;display:flex;gap:clamp(5px,2vw,28px)}.tc-head button{background:none;border:0;color:#cbd3e1!important;font-size:.92rem!important;font-weight:700!important;min-height:42px}.tc-head [aria-current]{color:var(--gold)!important;border-bottom:3px solid var(--gold)}.tc-audio{margin-left:auto;width:40px}
.tc-main{width:min(93%,1170px);margin:auto;padding:13px 0 24px}.tc-title,.tc-turnbar,.tc-bindertools,.tc-live,.tc-under,.tc-bars,.tc-ground{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tc-title{margin-bottom:9px}.tc-kicker,.tc-cardbody small,.tc-intent small{color:var(--gold);text-transform:uppercase;font-size:.75rem;font-weight:850;letter-spacing:.13em}
#relay h1,#relay h2,.tc-dialog h2{font-family:"Barlow Condensed","Arial Narrow",Impact,system-ui,sans-serif;font-style:italic;font-weight:930;letter-spacing:-.045em;text-transform:uppercase;margin:0;color:var(--light)}
#relay h1{font-size:clamp(2.2rem,4.2vw,3.7rem);line-height:.96}#relay h1 em{color:var(--gold)}#relay h2,.tc-dialog h2{font-size:clamp(1.35rem,2.4vw,2rem)}
.tc-path{display:flex;gap:10px;align-items:center}.tc-path span,.tc-count{font-size:.84rem;color:#c4cbd8}.tc-path span{padding:5px 10px;border:1px solid #515e73;transform:skew(-6deg)}.tc-path .now{color:#1a2030;background:var(--gold);border-color:var(--gold);font-weight:800}
.tc-field,.tc-inter{isolation:isolate;position:relative;overflow:hidden;background:#30404f var(--terrain) center 61%/cover;border:1px solid #617189;border-top:3px solid #e8bb70}.tc-field{height:clamp(190px,29vh,310px)}.tc-field:before,.tc-inter:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(#12203988,transparent 30%,transparent 65%,#101725d9)}
.tc-bars{position:absolute;z-index:2;inset:10px 2% auto;align-items:start}.tc-health{width:min(28%,270px);padding:5px 10px 7px;background:#121b2dee;border-left:3px solid #92e5cb}.tc-health.enemy{border-left:0;border-right:3px solid #ff948d}.tc-health>div{display:flex;align-items:baseline;justify-content:space-between;gap:4px}.tc-health span,.tc-ground span{font-size:.82rem}.tc-health i{display:block;background:#4b5566;height:5px;margin-top:4px}.tc-health em{display:block;height:100%;background:#81dfc2}.tc-health.enemy em{background:#ff948d}
.tc-piece{position:absolute;bottom:9%;width:32%;height:76%;pointer-events:none;display:grid;place-items:end center}.tc-piece:before{content:"";position:absolute;bottom:-2%;width:50%;height:10%;background:radial-gradient(ellipse,#0f281b88,transparent 72%)}.tc-piece img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:bottom;filter:drop-shadow(1px 3px 2px #16203388)}.tc-piece.player{left:7%}.tc-piece.rival{right:7%}
.tc-intent{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);padding:9px 18px;text-align:center;display:grid;min-width:135px;background:#152033ef;border:1px solid #d3ae71;border-top:3px solid var(--gold);box-shadow:0 4px 14px #10203a55}.tc-intent b{font-size:1.18rem}.tc-intent span{color:#e5dfcf;font-size:.84rem}.tc-ground{position:absolute;inset:auto 2% 6px;text-shadow:0 2px 3px #000}.tc-ground b{font-size:.9rem;text-transform:uppercase;font-style:italic;letter-spacing:.07em}
.tc-command{background:linear-gradient(145deg,#232e42,#182130 68%);border:1px solid #47546b;border-top:0;padding:10px 17px 9px}.tc-turnbar{gap:15px;justify-content:start}.tc-turnbar h2{margin-right:auto!important}.tc-energy{display:flex;align-items:center;gap:5px;color:#cee9fc;font-size:.9rem}.tc-energy>span{display:flex;gap:3px;margin-right:4px}.tc-energy i{display:block;width:10px;height:13px;transform:skew(-12deg);background:#3f5265;border:1px solid #819db3}.tc-energy i.on{background:#9ee4ff}.tc-block{font-size:.9rem;color:#b6e7d9}
.tc-primary,.tc-actions button,.tc-slots button,.tc-forms button,.tc-bindertools button,.tc-under button,.tc-dialog button[data-cmd="equip"]{border:1px solid #606e84;background:#263248;padding:8px 14px;font-weight:700!important;border-radius:3px}
.tc-primary{color:#191d29!important;background:var(--gold)!important;border-color:#ffd986!important}.tc-primary:hover{filter:brightness(1.08)}.tc-live{margin:5px 0 10px;align-items:baseline;color:#d8dfec;font-size:.91rem}.tc-live>b{white-space:nowrap;font-size:.82rem;color:#ffc6a6}
.tc-hand,.tc-binder,.tc-offers{display:grid;gap:12px}.tc-hand{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));align-items:stretch}.tc-hand .tc-card{width:100%;max-width:300px}.tc-binder{grid-template-columns:repeat(auto-fill,minmax(175px,1fr));margin-top:15px}.tc-offers{grid-template-columns:repeat(3,minmax(0,210px));justify-content:center;max-width:840px;margin:16px auto 0}
#relay .tc-card{position:relative;isolation:isolate;min-width:0;text-align:left;display:flex;align-self:stretch;flex-direction:column;align-items:stretch;padding:3px;overflow:hidden;color:#f9f6ed;border-radius:9px;border:2px solid color-mix(in srgb,var(--ink) 72%,#52596c);background:linear-gradient(135deg,#273142,var(--ink) 48%,#2d3949);box-shadow:0 3px 8px #070a1380;transition:transform .13s,box-shadow .13s}
#relay .tc-card:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 0 0 1px var(--ink),0 6px 12px #05091388}.tc-art{height:clamp(90px,15.2vh,170px);position:relative;isolation:isolate;overflow:hidden;border-radius:4px 4px 0 0;border-bottom:2px solid var(--ink);background:linear-gradient(5deg,#1017288f,transparent 54%),var(--art) center/cover}
.tc-art img{width:100%;height:97%;object-fit:contain;object-position:bottom;position:absolute;bottom:0;filter:drop-shadow(1px 3px 2px #10172899)}.tc-cost,.tc-level,.tc-stars{position:absolute;z-index:2;font-weight:900;line-height:1}.tc-cost{top:5px;left:5px;display:grid;place-items:center;width:29px;height:32px;clip-path:polygon(50% 0,96% 21%,96% 76%,50% 100%,4% 76%,4% 21%);background:#a6e7ff;color:#142f47;font-size:1.16rem}.tc-level{top:6px;right:5px;padding:4px 6px;background:#172036e8;color:#fff5d8;font-size:.76rem}.tc-stars{right:6px;bottom:3px;color:#ffdb83;text-shadow:0 1px 3px #000;letter-spacing:.06em}.tc-cardbody{display:flex;flex:1;flex-direction:column;background:#1b2436;padding:7px 10px 6px}.tc-cardbody small{color:var(--ink);font-size:.69rem;line-height:1.25}.tc-cardbody>strong{font:900 italic clamp(1.2rem,2.1vw,1.75rem)/1.05 "Barlow Condensed","Arial Narrow",system-ui,sans-serif;letter-spacing:-.04em}.tc-skill{font-size:.85rem;color:#fff1c7;font-weight:700;margin-top:3px}.tc-rule{color:#c9d3e1;font-size:.82rem;line-height:1.25;margin-top:2px}.tc-values{background:#101a2b;display:flex;justify-content:space-between;padding:5px 10px;color:#cbd7e7;font-size:.74rem;letter-spacing:.04em}.tc-values b{font-size:.94rem;color:white}.tc-card.f1,.tc-card.f2{outline:1px solid #ffdaa4;outline-offset:-4px}.tc-card.f2 .tc-art:after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 18px 3px #f3d29699}
#relay .tc-card:disabled{cursor:default;opacity:.66}.tc-card.locked .tc-art img{filter:grayscale(.85);opacity:.73}.tc-under{margin-top:9px;color:var(--dim);font-size:.82rem}.tc-under button{color:#d9e8f4!important;font-size:.84rem!important;padding:5px 9px;min-height:32px}.tc-awards{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.tc-awards span{display:flex;align-items:center;gap:5px;background:#30323a;color:#f5dcad;border:1px solid #6d634e;font-size:.84rem;padding:2px 8px}.tc-awards img{height:27px;width:24px;object-fit:contain}
.tc-bindertools{border-block:1px solid var(--edge);padding:10px 0}.tc-bindertools>div,.tc-forms{display:flex;gap:7px}.tc-bindertools p,.tc-inter small,.tc-dialog p{color:var(--dim)}.tc-bindertools p{font-size:.89rem}.tc-bindertools [aria-pressed="true"],.tc-forms [aria-pressed="true"]{background:#d5b77a;color:#181e29!important}.tc-count b{color:var(--gold);font-size:1.1rem}
.tc-inter{min-height:clamp(390px,60vh,640px);padding:26px 18px;display:grid;align-items:center;text-align:center}.tc-inter:before{background:#101b2bda}.tc-inter h2{font-size:clamp(2rem,4.5vw,3.8rem)!important;line-height:1.1}.tc-inter p{color:#d8e0ec;margin:8px auto}.tc-inter .tc-awards,.tc-actions,.tc-result{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}.tc-actions{margin:15px 0}.tc-actions select{background:#23314b;color:white;border:1px solid #78889e;padding:8px}.tc-campfire{display:flex;align-items:center;justify-content:center;gap:15px;margin:10px auto}.tc-campfire>img{width:min(30%,180px);max-height:190px;object-fit:contain}.tc-campfire>div{max-width:420px}.tc-result{gap:25px;margin:20px}.tc-result span{display:grid}.tc-result b{font-size:2rem;color:var(--gold)}
.tc-dialog{position:fixed;inset:0;border:1px solid #8795a9;border-top:3px solid var(--gold);border-radius:8px;background:#182335;color:#f9f2e5;padding:24px;width:min(560px,94vw);max-height:88dvh;overflow:auto;box-shadow:0 15px 90px #050b18c9;margin:auto}.tc-dialog::backdrop{background:#071020be}.tc-dialog h2{padding-right:25px;margin:4px 0 14px}.tc-dialog h3{margin:10px 0 4px}.tc-dialog p{margin:9px 0}.tc-dialog .tc-close{position:absolute;right:6px;top:5px;width:42px;height:42px;border:0;background:transparent;font-size:1.7rem}.tc-detail{display:grid;grid-template-columns:minmax(100px,36%) 1fr;gap:14px;align-items:center}.tc-portrait{height:150px;background:radial-gradient(ellipse at bottom,color-mix(in srgb,var(--ink) 40%,#253346),#182235 72%);border:1px solid var(--ink)}.tc-portrait img{height:100%;width:100%;object-fit:contain}.tc-detail small{display:block;color:#d3ddee}.tc-detail progress{width:100%;accent-color:#f0c774}.tc-forms{margin-top:15px}.tc-forms button{flex:1;padding:7px;font-size:.8rem!important}.tc-forms b{display:block}.tc-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tc-slots button{display:grid;justify-items:center;padding:7px}.tc-slots img{width:50px;height:54px;object-fit:contain}
@media(max-width:760px){.tc-main{width:96%;padding-top:10px}.tc-head{padding:0 2%;gap:15px}.tc-head nav{gap:6px}.tc-path{gap:4px}.tc-path b{display:none}.tc-command{padding:9px}.tc-hand{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.tc-cardbody{padding:6px}.tc-art{height:100px}.tc-turnbar{gap:9px}.tc-values{padding:4px 5px}.tc-binder{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.tc-ground{font-size:.8rem}.tc-bindertools{flex-wrap:wrap}}
@media(max-width:560px){.tc-head{height:46px;gap:6px}.tc-brand{font-size:.84rem}.tc-brand b{display:none}.tc-brand i{width:20px;height:24px;margin:0}.tc-head button{font-size:.8rem!important;padding-inline:4px}.tc-head nav{gap:4px}.tc-audio{width:32px}.tc-title{margin-bottom:7px}.tc-kicker{font-size:.66rem}.tc-path span{padding:3px 6px}.tc-field{height:170px}.tc-health{width:46%;padding:4px 6px}.tc-health b{font-size:.83rem}.tc-bars{top:6px}.tc-health span{font-size:.71rem}.tc-piece{height:66%;width:35%;bottom:11%}.tc-piece.player{left:1%}.tc-piece.rival{right:1%}.tc-intent{top:55%;min-width:0;padding:4px 6px;max-width:41%}.tc-intent small{font-size:.58rem}.tc-intent b{font-size:.9rem}.tc-intent span{font-size:.71rem}.tc-hand,.tc-binder,.tc-offers{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.tc-art{height:83px}.tc-hand .tc-cardbody{padding:4px 6px}.tc-hand .tc-rule{font-size:.77rem}.tc-turnbar{gap:7px;flex-wrap:wrap}.tc-turnbar h2{font-size:1.2rem!important}.tc-energy,.tc-block{font-size:.81rem}.tc-energy>span{display:none}.tc-primary{padding:7px 9px;min-height:38px}.tc-live{align-items:flex-start;font-size:.82rem;gap:8px}.tc-live>b{font-size:.76rem}.tc-under{align-items:start}.tc-under span{max-width:55%}.tc-cardbody strong{font-size:1.24rem}.tc-level{font-size:.67rem}.tc-cost{width:23px;height:26px;font-size:.95rem}.tc-inter{padding:13px 8px}.tc-offers .tc-card:last-child{grid-column:1 / -1;width:calc(50% - 3px);justify-self:center}.tc-campfire{gap:6px}.tc-under button{white-space:nowrap}.tc-dialog{padding:17px}.tc-forms{gap:4px}.tc-rule{line-height:1.2}}
@media(prefers-reduced-motion:reduce){#relay *{transition:none!important}}
.tc-evolution{text-align:center}.tc-evolution h2{padding:0}.tc-evolution h3{font-size:1.6rem;color:var(--gold);margin-top:4px}.tc-evoart{height:185px;display:flex;align-items:center;justify-content:center;gap:4px;background:radial-gradient(ellipse at 70% 65%,color-mix(in srgb,var(--ink) 41%,#192238),transparent 62%);border-block:1px solid #4c566b}.tc-evoart img{width:46%;height:100%;object-fit:contain}.tc-evoart img:first-child{height:70%;width:31%;opacity:.65}.tc-evoart b{color:var(--gold);font-size:1.35rem}.tc-upstats,.tc-trophy{display:flex;justify-content:center;align-items:center;gap:12px;margin:12px auto}.tc-upstats b{background:#27394a;color:#bcecd6;padding:5px 10px}.tc-trophy{width:fit-content;padding:8px 20px;border:1px solid #bba16e;background:#172334}.tc-trophy img{width:64px;height:70px;object-fit:contain}.tc-trophy>div{display:grid;text-align:left}.tc-trophy small{color:var(--gold);text-transform:uppercase;letter-spacing:.08em}.tc-trophy b{font-size:1.25rem}
@media(min-width:761px){.tc-hand{grid-template-columns:repeat(4,minmax(0,1fr))}.tc-cardbody{min-height:88px}.tc-hand .tc-art{height:clamp(105px,16.5vh,175px)}}
