/* Paraguay's red, white and blue carry the page (blue: structure and buttons; red: attention). Brazil's green and
   yellow mark what is done and what is in progress -- and, on the map, the steps still taken in Brazil. */
:root{font-family:system-ui,sans-serif;color:#13203f;background:#f7f8fb;--ink:#13203f;--muted:#5d6782;--line:#d9dfec;--card:#fff;--py-red:#d52b1e;--py-blue:#0038a8;--br-green:#009c3b;--br-yellow:#ffdf00;--accent:#0038a8;--accent-soft:#e4ebfa;--alert:#d52b1e;--alert-soft:#fde6e3;--warn:#8a5a00;--warn-soft:#fff6d6;--maybe:#3d5a9e;--maybe-soft:#e9eef9;--done:#009c3b;--done-soft:#e2f5e9;--doing:#c9a800}
body{margin:0}body:before{content:'';display:block;height:6px;background:linear-gradient(90deg,var(--py-red) 0 33.4%,#fff 33.4% 66.7%,var(--py-blue) 66.7%);box-shadow:0 1px 0 var(--line)}main{max-width:1400px;margin:auto;padding:24px}
header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap}
h1{letter-spacing:-.05em;font-size:44px;margin:4px 0;color:var(--py-blue)}h2{font-size:21px;margin:0 0 12px}h3{font-size:16px;margin:0}h4{font-size:13px;margin:12px 0 4px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.lead{max-width:640px;color:var(--muted);margin:4px 0 0}
.note{font-size:13px;color:var(--muted)}.disclaimer{font-size:13px;color:var(--warn);background:var(--warn-soft);padding:10px 14px;border-radius:10px;margin:16px 0}
.error{padding:14px;background:#fde8e8;color:#8a1c1c;border-radius:10px;white-space:pre-wrap}
.columns{display:grid;grid-template-columns:300px minmax(0,1fr) 320px;gap:20px;align-items:start}
section,aside{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px}
.questionnaire,.lookahead{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}
.question{padding:10px 0;border-bottom:1px solid var(--line)}.question:last-of-type{border-bottom:0}.question.highlighted{background:var(--maybe-soft);margin:0 -10px;padding:10px;border-radius:10px}
.prompt{margin:0 0 6px;font-size:14px;font-weight:600}.question.answered .prompt{color:var(--muted);font-weight:500}
.choices{display:flex;flex-wrap:wrap;gap:6px}
.choice{font:inherit;font-size:13px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;cursor:pointer;color:var(--ink)}
.choice.chosen{background:var(--accent);border-color:var(--accent);color:#fff}
button{font:inherit;cursor:pointer}button.ghost{background:none;border:1px solid var(--line);border-radius:8px;padding:6px 10px;color:var(--muted);margin-top:12px}
.account button:not(.ghost):not(.choice){background:var(--accent);color:#fff;border:0;border-radius:8px;padding:8px 14px;margin-top:8px}
.account{min-width:260px}.account summary{cursor:pointer;font-weight:600;font-size:14px}
.fields{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}label{display:flex;flex-direction:column;font-size:12px;gap:4px}input{font:inherit;padding:8px;border:1px solid var(--line);border-radius:7px}
.timeline{padding:0;background:none;border:0}
.phase{margin-bottom:16px}.phase h2{display:flex;justify-content:space-between;align-items:baseline}.count{font-size:13px;color:var(--muted);font-weight:500}
.step{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:8px 0;background:#fff;position:relative}
.step.possible{border-style:dashed;background:#fafbfe}.step.done{opacity:.72;border-color:#bfe3cc}.step.ready{border-color:var(--alert)}.step.focused{box-shadow:0 0 0 3px var(--accent-soft)}
.step h3 .glyph{margin-right:6px;font-size:15px}
.step-head{display:flex;gap:12px;align-items:flex-start}.grow{flex:1;cursor:pointer}
.status{width:28px;height:28px;border-radius:50%;border:2px solid var(--line);background:#fff;font-weight:700;flex:none}
.status.doing{border-color:var(--doing);color:var(--doing)}.status.done{background:var(--done);border-color:var(--done);color:#fff}
.meta{margin:4px 0 0;font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tag{display:inline-block;font-size:11px;padding:2px 8px;border-radius:999px;background:#eee;color:var(--ink);margin-left:6px}
.tag.possible{background:var(--maybe-soft);color:var(--maybe)}.tag.blocked{background:var(--warn-soft);color:var(--warn)}.tag.ready{background:var(--alert-soft);color:var(--alert);font-weight:600}
.tag.xp{background:#fff6b3;color:#6b5a00;font-weight:600;margin-left:0}.step.done .tag.xp{background:var(--done-soft);color:var(--done)}
.tag.official{background:var(--accent-soft);color:var(--accent)}.tag.secondary{background:#eef1f7;color:#3b4a6b}.tag.verify{background:var(--warn-soft);color:var(--warn)}
.step-body{margin-top:10px;padding-top:10px;border-top:1px dashed var(--line);font-size:14px}.step-body ul{margin:0;padding-left:18px}.step-body li{margin:3px 0}
.sources{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px;font-size:12px}.sources a{color:var(--accent)}
.cards{display:grid;grid-template-columns:1fr 1fr;gap:8px}.card{background:#f1f4fb;padding:10px;border-radius:10px;font-size:12px;color:var(--muted)}.card strong{display:block;font-size:22px;color:var(--py-blue)}
.lookahead details{margin:8px 0;border-top:1px solid var(--line);padding-top:8px}.lookahead summary{cursor:pointer;font-weight:600;font-size:14px}
.branch{margin:8px 0 8px 4px;padding-left:10px;border-left:3px solid var(--accent-soft)}
/* the HUD: the player's level, experience and flags */
.hud{display:grid;grid-template-columns:minmax(280px,2fr) minmax(0,3fr);gap:18px;margin:0 0 18px;background:linear-gradient(135deg,#fff 0%,#f0f4fd 100%);border-color:#c5d1ec}
.hero{display:flex;gap:14px;align-items:flex-start}.hud h2{margin:0;font-size:22px;color:var(--py-blue)}.hud .note{margin:2px 0}
.medal{width:68px;height:68px;border-radius:50%;flex:none;padding:3px;background:conic-gradient(var(--py-red) 0 120deg,#fff 120deg 240deg,var(--py-blue) 240deg 360deg);box-shadow:0 2px 10px rgba(0,56,168,.25)}
.medal>div{background:#fff;border-radius:50%;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;border:1px solid var(--line)}
.medal .lvl{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.medal strong{font-size:26px;line-height:1;color:var(--py-blue)}
.bar{height:12px;border-radius:999px;background:#e6eaf4;overflow:hidden;margin:6px 0;border:1px solid var(--line)}.fill{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--br-yellow),#f0c400);transition:width .5s;min-width:2px}
.quest{margin:8px 0 0;font-size:14px}.quest a{color:var(--py-red);font-weight:600}
.flags{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;align-content:start}
.flag{display:flex;gap:10px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px}.flag .glyph{font-size:22px;flex:none;line-height:1.1}.flag strong{font-size:13px;display:block}
.pips{display:flex;gap:3px;margin:5px 0 3px}.pip{width:16px;height:6px;border-radius:3px;background:#e6eaf4}.pip.on{background:var(--py-blue)}.flag.rank-5{border-color:#bfe3cc;background:#f4fbf6}.flag.rank-5 .pip.on{background:var(--br-green)}
.theory{grid-column:1/-1;border-top:1px dashed var(--line);padding-top:8px;margin:0}.theory summary{cursor:pointer;font-weight:600;font-size:14px;color:var(--py-blue)}.theory ul{margin:6px 0 0;padding-left:18px;font-size:13px;color:var(--muted)}.theory li{margin:3px 0}
.toast{position:fixed;top:18px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.3);z-index:50;display:flex;gap:10px;align-items:center;font-size:15px;animation:pop .4s ease-out}.toast strong{color:var(--br-yellow)}
@keyframes pop{0%{transform:translate(-50%,-24px);opacity:0}100%{transform:translate(-50%,0);opacity:1}}
@media(max-width:900px){.hud{grid-template-columns:1fr}}.branch ul{margin:4px 0;padding-left:18px;font-size:13px}
@media(max-width:1100px){.columns{grid-template-columns:1fr}.questionnaire,.lookahead{position:static;max-height:none}}
@media(max-width:650px){main{padding:12px}h1{font-size:34px}section,aside{padding:14px}}

.graph-bar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:4px 0 10px}.graph-bar h2{margin:0}.graph-bar .note{margin:4px 0 0;max-width:720px}.graph-bar button{margin:0}
/* The map, after React Flow's Turbo Flow example (turbo.build's look): a dark canvas, each node a dark card inside a
   conic-gradient ring, a round badge at the top-right corner, gradient edges ending in a dot. The ring is the step's
   state, the badge its status; the page around the map stays light. */
.graph{height:520px;border:0;border-radius:16px;margin:0 0 18px;overflow:hidden;background:#0a1230}
.graph .react-flow{--bg-color:#0a1230;--text-color:rgb(243,244,246);--node-border-radius:10px;--node-box-shadow:10px 0 15px rgba(59,111,240,.35),-10px 0 15px rgba(232,57,44,.3);--xy-minimap-background-color:#0e1636;background-color:var(--bg-color);color:var(--text-color)}
.graph .react-flow>svg{position:absolute;width:0;height:0}
.react-flow__node-turbo{border-radius:var(--node-border-radius);display:flex;width:236px;height:70px;font-family:ui-monospace,"Fira Mono",SFMono-Regular,Menlo,Consolas,monospace;font-weight:500;letter-spacing:-.2px;cursor:pointer;transition:opacity .2s,box-shadow .2s}
.react-flow__node-turbo.ready,.react-flow__node-turbo.doing,.react-flow__node-turbo.focused,.react-flow__node-turbo.question-node,.react-flow__node-turbo:hover{box-shadow:var(--node-box-shadow)}
.react-flow__node-turbo .wrapper{overflow:hidden;display:flex;padding:2px;position:relative;border-radius:var(--node-border-radius);flex-grow:1}
.react-flow__node-turbo .gradient:before{content:'';position:absolute;padding-bottom:calc(100% * 1.41421356237);width:calc(100% * 1.41421356237);background:conic-gradient(from -160deg at 50% 50%,#e8392c 0deg,#fff 120deg,#3b6ff0 240deg,#e8392c 360deg);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:100%}
.react-flow__node-turbo.focused .wrapper.gradient:before{background:conic-gradient(from -160deg at 50% 50%,#e8392c 0deg,#fff 120deg,#3b6ff0 240deg,rgba(59,111,240,0) 360deg);animation:spinner 4s linear infinite;transform:translate(-50%,-50%) rotate(0deg);z-index:-1}
/* still in Brazil: the ring and the glow in green and yellow */
.react-flow__node-turbo.phase-before-departure{--node-box-shadow:10px 0 15px rgba(31,191,90,.35),-10px 0 15px rgba(255,223,0,.25)}
.react-flow__node-turbo.phase-before-departure .gradient:before{background:conic-gradient(from -160deg at 50% 50%,#1fbf5a 0deg,#ffdf00 120deg,#1fbf5a 240deg,#ffdf00 360deg)}
.react-flow__node-turbo.phase-before-departure.focused .wrapper.gradient:before{background:conic-gradient(from -160deg at 50% 50%,#1fbf5a 0deg,#ffdf00 120deg,#1fbf5a 240deg,rgba(255,223,0,0) 360deg)}
@keyframes spinner{100%{transform:translate(-50%,-50%) rotate(-360deg)}}
.react-flow__node-turbo .inner{background:var(--bg-color);padding:10px 14px;border-radius:var(--node-border-radius);display:flex;flex-direction:column;justify-content:center;flex-grow:1;position:relative;min-width:0}
.react-flow__node-turbo .body{display:flex;align-items:center;min-width:0}.react-flow__node-turbo .body>div:last-child{min-width:0}
.react-flow__node-turbo .icon{margin-right:10px;flex:none;font-size:18px;line-height:1}
.react-flow__node-turbo .title{font-size:12.5px;line-height:1.2;margin-bottom:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.react-flow__node-turbo .subtitle{font-size:10px;color:#8a93b4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.react-flow__node-turbo .cloud{border-radius:100%;width:30px;height:30px;right:0;position:absolute;top:0;transform:translate(50%,-50%);display:flex;transform-origin:center center;padding:2px;overflow:hidden;box-shadow:var(--node-box-shadow);z-index:1}
.react-flow__node-turbo .cloud div{background-color:var(--bg-color);flex-grow:1;border-radius:100%;display:flex;justify-content:center;align-items:center;position:relative;font-size:12px;color:var(--text-color)}
/* state: the ring says what the step is, the badge where it stands */
.react-flow__node-turbo.possible .wrapper.gradient:before{opacity:.35}.react-flow__node-turbo.possible .title{color:#b9b9c3}
.react-flow__node-turbo.done{opacity:.6}.react-flow__node-turbo.done .gradient:before{filter:saturate(0)}.react-flow__node-turbo.done .title{text-decoration:line-through;color:#9a9aa3}
.react-flow__node-turbo.done .cloud div{color:#2ee07a}.react-flow__node-turbo.doing .cloud div{color:#ffdf00}.react-flow__node-turbo.ready .cloud div{color:#ff5a4d;font-size:10px}
.react-flow__node-turbo.question-node .gradient:before{background:conic-gradient(from -160deg at 50% 50%,#e8392c 0deg,#fff 180deg,#e8392c 360deg)}
.react-flow__node-turbo.question-node{--node-box-shadow:10px 0 15px rgba(232,57,44,.35),-10px 0 15px rgba(232,57,44,.25)}
.react-flow__node-turbo.question-node .inner{background:#1a0e14}.react-flow__node-turbo.question-node .subtitle{color:#ff8a80}.react-flow__node-turbo.question-node .cloud div{color:#e8392c;font-weight:700}
/* edges, handles, chrome */
.react-flow__handle{opacity:0}.react-flow__handle.source{right:-10px}.react-flow__handle.target{left:-10px}.react-flow__node:focus{outline:none}
.graph .react-flow__edge .react-flow__edge-path{stroke:url(#edge-gradient);stroke-width:2;stroke-opacity:.75}
.graph .react-flow__edge.br .react-flow__edge-path{stroke:url(#edge-gradient-br)}
.graph .react-flow__edge.maybe .react-flow__edge-path{stroke-dasharray:6 5;stroke-opacity:.5}
.graph .react-flow__controls button{background-color:var(--bg-color);color:var(--text-color);border:1px solid #3b6ff0;border-bottom:none}
.graph .react-flow__controls button:hover{background-color:#16204a}
.graph .react-flow__controls button:first-child{border-radius:5px 5px 0 0}.graph .react-flow__controls button:last-child{border-bottom:1px solid #3b6ff0;border-radius:0 0 5px 5px}
.graph .react-flow__controls button path{fill:var(--text-color)}
.graph .react-flow__attribution{background:rgba(200,200,200,.2)}.graph .react-flow__attribution a{color:#8fb0ff}
.graph .react-flow__minimap{border-radius:8px;border:1px solid #22305e}
@media(max-width:650px){.graph{height:400px}}
.gate{max-width:640px}.login{margin-top:12px}.login label{min-width:220px;flex:1}.login .fields{margin-top:6px}
.login button:not(.ghost){background:var(--py-red);color:#fff;border:0;border-radius:8px;padding:10px 16px;margin-top:12px;font-weight:600}
.who{display:flex;align-items:center;gap:10px}.who button{margin:0}
.consultant{margin-bottom:18px}.consultant h2{display:flex;justify-content:space-between;align-items:baseline}
.invite{align-items:flex-end}.invite label{min-width:180px}.invite button{background:var(--accent);color:#fff;border:0;border-radius:8px;padding:9px 14px}
.consultant table{width:100%;border-collapse:collapse;font-size:14px;margin-top:14px}
.consultant th,.consultant td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--line);vertical-align:top}
.consultant th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-weight:600}
tr.revoked td{opacity:.55}.consultant td button.ghost{margin:0}
