/* NES 0.2.1 — large type, hard edges, high contrast. */
.nes-tournaments{--nt-orange:#ff7900;--nt-violet:#b38aff;--nt-ink:#0a0a0a;--nt-paper:#f5f2e9;box-sizing:border-box;background:var(--nt-ink);color:var(--nt-paper);width:100%;max-width:1660px;margin:0 auto;padding:48px;font:22px/1.5 Arial,Helvetica,sans-serif;border:0;min-height:65vh;isolation:isolate;text-align:left}
.nes-tournaments *{box-sizing:border-box;min-width:0}
body:not(.wp-admin) .nes-tournaments{padding-top:150px;box-shadow:0 0 0 100vmax var(--nt-ink);clip-path:inset(0 -100vmax)}
.nes-tournaments :is(h1,h2,h3,p,small,label,button,input,select,textarea,summary,th,td,a,span){font-family:Arial,Helvetica,sans-serif}
.nes-tournaments :is(h1,h2,h3){color:inherit;font-weight:900;letter-spacing:-.055em;line-height:.98;text-transform:uppercase;overflow-wrap:anywhere}
.nes-tournaments h1{font-size:clamp(64px,8vw,140px);margin:20px 0 0;max-width:100%;font-weight:900}
.nes-tournaments h2{font-size:clamp(38px,4.2vw,72px);margin:16px 0 24px}
.nes-tournaments h3{font-size:clamp(30px,3vw,46px);margin:0 0 26px}
.nes-tournaments p{font-size:22px;line-height:1.5;color:inherit;margin:16px 0;overflow-wrap:anywhere}
.nes-tournaments small{display:inline-block;font-size:17px;font-weight:700;line-height:1.5;letter-spacing:.04em;text-transform:uppercase;color:#d6d2c9}
.nes-tournaments header{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;flex-wrap:wrap;padding:0 0 36px;border-bottom:6px solid var(--nt-paper)}
.nes-tournaments header>div{flex:1 1 650px}
.nes-tournaments :is(button,.nt-link){display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:64px;max-width:100%;background:var(--nt-ink);border:2px solid var(--nt-paper);border-radius:0;color:var(--nt-paper);padding:18px 24px;font-size:22px;font-weight:800;line-height:1.2;letter-spacing:0;cursor:pointer;text-decoration:none;white-space:normal;overflow-wrap:anywhere;box-shadow:none;text-transform:none}
.nes-tournaments :is(button,.nt-link):hover{background:var(--nt-paper);color:var(--nt-ink)}
.nes-tournaments :is(button,a,input,select,textarea,summary):focus-visible{outline:4px solid var(--nt-violet);outline-offset:5px}
.nes-tournaments button.primary{background:var(--nt-orange);color:#080808;border-color:var(--nt-orange);font-size:26px;font-weight:900;min-height:76px}
.nes-tournaments button.primary:hover{background:#ffa64d;border-color:#ffa64d}
.nes-tournaments .nt-feedback{color:#a6efc6;margin:24px 0;font-weight:700}
.nes-tournaments .nt-feedback:empty{display:none}
.nes-tournaments :is(.nt-feedback.error,.nt-warning){color:#ffb775;border-left:5px solid var(--nt-orange);padding:16px 20px;background:#22180e;font-size:22px}
.nes-tournaments :is(.nt-banner,.nt-intro){padding:32px 0;margin:0 0 20px;border:0}
.nes-tournaments .nt-intro h2{font-size:clamp(32px,3.5vw,58px);margin:0 0 16px}
.nes-tournaments .nt-intro p{color:#d6d2c9;margin:0}
.nes-tournaments .nt-toolbar{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.nes-tournaments .nt-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:28px;margin:32px 0}
.nes-tournaments .nt-tournament{display:block;text-align:left;border:3px solid var(--nt-paper);border-top:10px solid var(--nt-orange);padding:32px;min-height:230px}
.nes-tournaments .nt-tournament h2{font-size:clamp(34px,3vw,50px)}
.nes-tournaments :is(.nt-create,.nt-panel){padding:32px;border:2px solid #69665e;background:var(--nt-ink);margin:28px 0}
.nes-tournaments .nt-create{padding:0;border:3px solid var(--nt-orange)}
.nes-tournaments .nt-create>summary{display:block;background:var(--nt-orange);color:#080808;font-size:clamp(28px,3.3vw,48px);font-weight:900;line-height:1.1;padding:32px;letter-spacing:-.035em;text-transform:uppercase;cursor:pointer;list-style:none}
.nes-tournaments summary::-webkit-details-marker{display:none}
.nes-tournaments .nt-create>summary:hover{background:#ffa64d}
.nes-tournaments .nt-create form{padding:32px;margin:0}
.nes-tournaments .nt-panel>summary{font-size:28px;font-weight:800;line-height:1.25;cursor:pointer}
.nes-tournaments .nt-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;row-gap:10px}
.nes-tournaments label{display:block;color:var(--nt-paper);font-size:21px;line-height:1.4;font-weight:700;margin-bottom:24px}
.nes-tournaments :is(input,select,textarea){display:block;width:100%;max-width:100%;min-height:72px;margin:10px 0 0;border:2px solid #99958c;border-radius:0;background:#181818;color:#fff;padding:18px;font-size:25px;font-weight:600;line-height:1.4;letter-spacing:0}
.nes-tournaments input::placeholder,.nes-tournaments textarea::placeholder{color:#bfbcb5;opacity:1}
.nes-tournaments .nt-check{display:flex;gap:18px;align-items:flex-start;font-size:21px;font-weight:600}
.nes-tournaments .nt-check input{appearance:auto;width:28px;height:28px;min-height:28px;flex:0 0 28px;margin:1px 0;accent-color:var(--nt-orange)}
.nes-tournaments .nt-help{display:block;font-size:18px;line-height:1.6;color:#c6c2ba;margin-top:20px;font-weight:400}
.nes-tournaments .nt-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.nes-tournaments .nt-panel:has(form[data-form="add"]){border:4px solid var(--nt-orange)}
.nes-tournaments textarea[name="names"]{font-size:30px;min-height:128px}
.nes-tournaments .nt-players{padding:0;margin:0;list-style:none}
.nes-tournaments .nt-players li{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;border-bottom:2px solid #444;padding:24px 0;font-size:28px;font-weight:700}
.nes-tournaments .nt-players li>span{flex:1 1 240px;overflow-wrap:anywhere}
.nes-tournaments .nt-players li>div{display:flex;flex-wrap:wrap;gap:12px}
.nes-tournaments .nt-players button{font-size:20px;min-height:58px;padding:14px 18px}
.nes-tournaments .nt-roundhead{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding-bottom:28px;border-bottom:5px solid var(--nt-paper);margin-bottom:28px}
.nes-tournaments .nt-roundhead h3{margin:0}
.nes-tournaments .nt-match{background:#161616;border:2px solid #666;border-left:8px solid var(--nt-violet);padding:30px;margin:28px 0}
.nes-tournaments .nt-versus{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:26px;margin:28px 0}
.nes-tournaments .nt-versus span{font-size:clamp(26px,3vw,42px);font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.nes-tournaments .nt-versus span:last-child{text-align:right}
.nes-tournaments .nt-versus b{font-size:clamp(48px,5vw,80px);font-weight:900;line-height:1;white-space:nowrap;color:var(--nt-orange)}
.nes-tournaments .nt-match form{display:flex;align-items:flex-end;gap:20px;flex-wrap:wrap;border-top:2px solid #555;padding-top:26px}
.nes-tournaments .nt-match form label{width:140px;max-width:100%;margin:0}
.nes-tournaments .nt-match input{font-size:36px;text-align:center;font-weight:800}
.nes-tournaments .nt-date{color:var(--nt-violet);font-size:22px;font-weight:700}
.nes-tournaments .nt-schedule{margin:16px 0 0;font-size:20px;min-height:58px;padding:14px 18px}
.nes-tournaments .nt-winner{font-size:clamp(32px,4vw,56px);font-weight:900;background:var(--nt-orange);color:#080808;padding:28px;line-height:1.15}
.nes-tournaments .nt-scroll{overflow-x:auto;width:100%}
.nes-tournaments table{width:100%;border-collapse:collapse;text-align:left;color:inherit;font-size:24px;line-height:1.4}
.nes-tournaments :is(th,td){padding:22px 18px;border-bottom:2px solid #555;white-space:nowrap;font-size:24px}
.nes-tournaments th{background:var(--nt-paper);color:#0a0a0a;font-size:18px;text-transform:uppercase;font-weight:800}
.nes-tournaments td:first-child{font-weight:900;color:var(--nt-orange)}
.nes-tournaments .nt-bracket{display:flex;gap:28px;overflow-x:auto;padding:30px 0}
.nes-tournaments .nt-bracket>section{flex:0 0 320px}
.nes-tournaments .nt-bracket article{background:#191919;border:2px solid #666;border-left:6px solid var(--nt-violet);padding:20px;margin-bottom:22px}
.nes-tournaments .nt-bracket p{display:flex;justify-content:space-between;gap:18px;margin:12px 0;font-weight:700}
.nes-tournaments .nt-bracket b{color:var(--nt-orange)}
.nes-tournaments .nt-dialog{background:var(--nt-ink);color:var(--nt-paper);border:4px solid var(--nt-orange);padding:32px;width:600px;max-width:calc(100vw - 32px)}
.nes-tournaments .nt-dialog::backdrop{background:#000b}
.nes-tournaments .nt-dialog button{margin:12px 12px 0 0}
.nes-tournaments.nt-busy{cursor:progress}
.nes-tournaments.nt-busy button{opacity:.6;pointer-events:none}
.nes-tournaments [hidden]{display:none!important}
.nes-tournaments.nt-screen{max-width:none}
.nes-tournaments.nt-screen :is(header,.nt-toolbar,details,.nt-help){display:none}
.nes-tournaments.nt-screen .nt-columns>.nt-panel:first-child{display:none}
.nes-tournaments.nt-screen .nt-match{margin:24px 0}
@media(max-width:1000px){.nes-tournaments{padding:28px}.nes-tournaments .nt-fields{grid-template-columns:1fr}.nes-tournaments header>div{flex-basis:100%}.nes-tournaments .nt-create>summary{padding:28px}.nes-tournaments .nt-create form{padding:24px}}
@media(max-width:600px){.nes-tournaments{padding:20px;font-size:20px}body:not(.wp-admin) .nes-tournaments{padding-top:130px}.nes-tournaments h1{font-size:clamp(46px,12.5vw,74px)}.nes-tournaments h2{font-size:36px}.nes-tournaments h3{font-size:30px}.nes-tournaments p{font-size:20px}.nes-tournaments small{font-size:16px}.nes-tournaments :is(button,.nt-link){font-size:20px;padding:16px;min-height:60px}.nes-tournaments button.primary{font-size:23px}.nes-tournaments :is(.nt-panel,.nt-match){padding:20px}.nes-tournaments :is(.nt-create>summary,.nt-create form){padding:20px}.nes-tournaments .nt-create>summary{font-size:30px}.nes-tournaments .nt-toolbar>*{flex:1 1 100%}.nes-tournaments .nt-versus{grid-template-columns:1fr;gap:18px}.nes-tournaments .nt-versus span{font-size:28px}.nes-tournaments .nt-versus span:last-child{text-align:left}.nes-tournaments .nt-versus b{font-size:60px}.nes-tournaments .nt-match form{gap:16px}.nes-tournaments .nt-match form label{width:calc(50% - 8px)}.nes-tournaments .nt-match form button{width:100%}.nes-tournaments .nt-roundhead button{width:100%}.nes-tournaments textarea[name="names"]{font-size:24px}.nes-tournaments :is(input,select,textarea){font-size:22px}.nes-tournaments .nt-help{font-size:18px}.nes-tournaments .nt-list{grid-template-columns:1fr}.nes-tournaments .nt-players li{font-size:26px}.nes-tournaments .nt-players button{font-size:19px}.nes-tournaments .nt-bracket>section{flex-basis:270px}}
@media print{body .nes-tournaments{background:white;color:black;padding:0!important;max-width:none;box-shadow:none!important;clip-path:none!important}.nes-tournaments :is(header,button,.nt-link,form,.nt-feedback,.nt-help){display:none!important}.nes-tournaments :is(.nt-panel,.nt-match,.nt-winner){background:white;color:black;break-inside:avoid}.nes-tournaments :is(table,td,th){color:black;background:white}}
/* 0.2.2 — progression, status and interaction */
.nes-tournaments :is(button,.nt-link){transition:background .16s,color .16s,transform .16s,box-shadow .16s}
.nes-tournaments :is(button,.nt-link):active{transform:translateY(2px)}
.nes-tournaments button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.nes-tournaments .nt-tournament:hover{transform:translate(-3px,-3px);box-shadow:6px 6px 0 var(--nt-violet)}
.nes-tournaments .nt-tournament:after{content:'Ouvrir ↗';display:block;margin-top:24px;font-size:20px;color:var(--nt-orange)}
.nes-tournaments .nt-tournament:hover:after{color:var(--nt-ink)}
.nes-tournaments .nt-dashboard{border:2px solid #69665e;margin:12px 0 32px;background:#131313}
.nes-tournaments .nt-journey{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);padding:0;margin:0;border-bottom:2px solid #69665e}
.nes-tournaments .nt-journey li{display:flex;align-items:center;gap:16px;padding:24px;color:#bcb8b0;font-size:24px;font-weight:800}
.nes-tournaments .nt-journey b{font-size:36px;line-height:1}
.nes-tournaments .nt-journey .is-current{background:var(--nt-orange);color:#080808}
.nes-tournaments .nt-journey .is-done{color:#a6efc6}
.nes-tournaments .nt-overview{display:grid;grid-template-columns:1fr 1.5fr 2fr;align-items:center;gap:28px;padding:28px}
.nes-tournaments .nt-overview strong{display:block;font-size:54px;line-height:1.1;letter-spacing:-.04em;color:var(--nt-paper)}
.nes-tournaments .nt-overview span{display:block;font-size:18px;line-height:1.4;margin-top:10px;color:#d6d2c9}
.nes-tournaments .nt-overview p{font-size:22px;margin:0}
.nes-tournaments progress{display:block;width:100%;height:8px;border:0;appearance:none;background:#333;accent-color:var(--nt-violet)}
.nes-tournaments progress::-webkit-progress-bar{background:#333}
.nes-tournaments progress::-webkit-progress-value{background:var(--nt-violet)}
.nes-tournaments progress::-moz-progress-bar{background:var(--nt-violet)}
.nes-tournaments .nt-shortcuts{display:flex;flex-wrap:wrap;gap:12px;padding:22px 28px}
.nes-tournaments .nt-shortcuts button{flex:1 1 180px;background:#202020;border-color:#69665e}
.nes-tournaments .nt-shortcuts button:hover{background:var(--nt-paper);color:#080808}
.nes-tournaments :is(.nt-play,.nt-participants,.nt-rankings){scroll-margin-top:100px}
.nes-tournaments.nt-public .nt-play{order:-1}
.nes-tournaments .nt-badge{display:table;margin-bottom:16px;padding:8px 14px;border:1px solid currentColor;font-size:18px;font-weight:800;line-height:1.3}
.nes-tournaments .nt-badge-open{color:var(--nt-violet)}
.nes-tournaments .nt-badge-pending{color:#ffbd70}
.nes-tournaments .nt-badge-confirmed{color:#a6efc6}
.nes-tournaments .nt-match[data-status="confirmed"]{border-left-color:#a6efc6}
.nes-tournaments .nt-match[data-status="pending"]{border-left-color:#ffbd70}
.nes-tournaments .nt-match form label{width: min(260px,100%);overflow-wrap:anywhere}
.nes-tournaments .nt-feedback:not(:empty){position:sticky;top:75px;z-index:20;background:#11271b;border:2px solid #a6efc6;padding:16px 22px;box-shadow:5px 5px 0 #000}
.nes-tournaments .nt-feedback.error:not(:empty){background:#331c12;border-color:#ffb775}
.nes-tournaments .nt-rankings tbody tr:first-child{background:#241d13}
.nes-tournaments .nt-rankings tbody tr:hover{background:#25212f}
.nes-tournaments.nt-screen .nt-dashboard{display:none}
@media(max-width:700px){.nes-tournaments .nt-journey li{padding:18px 10px;display:block;font-size:17px}.nes-tournaments .nt-journey b{display:block;margin-bottom:10px;font-size:30px}.nes-tournaments .nt-overview{grid-template-columns:1fr 1fr;padding:20px;gap:22px}.nes-tournaments .nt-overview p{grid-column:1/-1;font-size:20px}.nes-tournaments .nt-overview strong{font-size:44px}.nes-tournaments .nt-shortcuts{padding:20px}.nes-tournaments .nt-match form label{width:calc(50% - 8px)}}
@media(prefers-reduced-motion:reduce){.nes-tournaments *{transition:none!important;scroll-behavior:auto!important}}
@media print{.nes-tournaments .nt-dashboard{display:none}}
/* 0.2.3 — arena lights and podium */
.nes-tournaments{--nt-cyan:#79e9ff;--nt-pink:#ff97dd}
.nes-tournaments .nt-header-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.nes-tournaments .nt-effects{font-size:17px;min-height:46px;border-color:var(--nt-violet);color:var(--nt-violet);padding:12px 16px}
.nes-tournaments .nt-shiny{color:#e8d7ff;font-weight:900}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
.nes-tournaments .nt-shiny{background:linear-gradient(110deg,#fff2bf 0%,#b7f2ff 25%,#fff 43%,#ffc2ed 58%,#d2b8ff 80%,#fff2bf 100%);background-size:250% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:nt-iridescent 8s ease-in-out infinite}
}
.nes-tournaments .nt-versus>span:last-child .nt-shiny{animation-delay:-4s}
.nes-tournaments .nt-versus b{text-shadow:0 0 25px #ff790055}
.nes-tournaments .nt-match{position:relative;box-shadow:0 0 26px #b38aff0c;transition:border-color .25s,box-shadow .25s}
.nes-tournaments .nt-match:hover{border-color:var(--nt-violet);box-shadow:0 0 28px #b38aff25}
.nes-tournaments .nt-match[data-status="open"] .nt-badge:before{content:'';display:inline-block;width:9px;height:9px;margin-right:10px;border-radius:50%;background:currentColor;animation:nt-breathe 3s ease-in-out infinite}
.nes-tournaments .nt-banner{position:relative;border-bottom:2px solid #b38aff55;background:radial-gradient(ellipse at 95% 15%,#b38aff1c,transparent 60%)}
.nes-tournaments .nt-podium-title{color:var(--nt-violet);font-size:19px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.nes-tournaments .nt-podium{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:20px;margin:24px 0 36px;align-items:stretch}
.nes-tournaments .nt-medal-1{--medal:#ffda75;--medal-bg:#332713}
.nes-tournaments .nt-medal-2{--medal:#c9e7ff;--medal-bg:#172733}
.nes-tournaments .nt-medal-3{--medal:#ffb58b;--medal-bg:#332118}
.nes-tournaments .nt-podium-card{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:22px;padding:28px;border:2px solid var(--medal);border-top-width:7px;background:linear-gradient(140deg,var(--medal-bg),#101014);box-shadow:5px 5px 0 #000;isolation:isolate}
.nes-tournaments .nt-podium-card:after{content:'';pointer-events:none;position:absolute;inset:-60% -150%;background:linear-gradient(110deg,transparent 43%,#ffffff0d 48%,#ffffff22 50%,transparent 55%);transform:translateX(-35%);animation:nt-sweep 10s ease-in-out infinite;z-index:-1}
.nes-tournaments .nt-podium-card:nth-child(2):after{animation-delay:-3s}
.nes-tournaments .nt-podium-card:nth-child(3):after{animation-delay:-6s}
.nes-tournaments .nt-medal{display:flex;align-items:center;gap:16px;font-size:36px;color:var(--medal)}
.nes-tournaments .nt-medal b{font-size:46px;line-height:1}
.nes-tournaments .nt-podium-card>strong{font-size:clamp(28px,3vw,44px);line-height:1.15;overflow-wrap:anywhere}
.nes-tournaments .nt-podium-points{font-size:42px;font-weight:900;color:var(--medal);margin-top:auto}
.nes-tournaments .nt-podium-points small{color:var(--medal);font-size:17px}
.nes-tournaments .nt-medal-row{background:var(--medal-bg)!important}
.nes-tournaments .nt-medal-row td:first-child{border-left:5px solid var(--medal)}
.nes-tournaments .nt-medal-row td{border-bottom-color:var(--medal);padding-top:26px;padding-bottom:26px}
.nes-tournaments .nt-winner{border:3px solid #ffda75;background:linear-gradient(115deg,#ffc34b,#fff0af,#ffa65c);background-size:200% 100%;animation:nt-iridescent 8s ease-in-out infinite;box-shadow:0 0 35px #ffc34b22}
.nes-tournaments .nt-players li:hover{background:#b38aff0a}
.nes-tournaments button.primary:hover{box-shadow:0 0 26px #ff790044}
@keyframes nt-iridescent{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@keyframes nt-breathe{0%,100%{box-shadow:0 0 0 0 #b38aff22}50%{box-shadow:0 0 0 7px #b38aff11}}
@keyframes nt-sweep{0%,35%{transform:translateX(-35%)}85%,100%{transform:translateX(35%)}}
.nes-tournaments.nt-calm *,.nes-tournaments.nt-calm *:after,.nes-tournaments.nt-calm *:before{animation:none!important;transition:none!important}
.nes-tournaments.nt-calm .nt-shiny{background:none;color:var(--nt-paper)}
@media(prefers-reduced-motion:reduce){.nes-tournaments *,.nes-tournaments *:before,.nes-tournaments *:after{animation:none!important}}
@media(forced-colors:active){.nes-tournaments .nt-shiny{background:none;color:CanvasText}.nes-tournaments .nt-podium-card:after{display:none}}
@media(max-width:600px){.nes-tournaments .nt-podium{grid-template-columns:1fr}.nes-tournaments .nt-podium-card{gap:16px;padding:22px}.nes-tournaments .nt-header-actions{width:100%}.nes-tournaments .nt-header-actions>button{width:100%}}
@media print{.nes-tournaments .nt-shiny{color:black!important;background:none!important}.nes-tournaments *,.nes-tournaments *:after,.nes-tournaments *:before{animation:none!important}.nes-tournaments .nt-podium-card:after{display:none}.nes-tournaments .nt-podium-card{color:black;background:white;box-shadow:none}.nes-tournaments .nt-podium-card :is(span,small){color:black}.nes-tournaments .nt-medal-row{background:white!important}}
