
.ptc-top { display: flex; align-items: stretch; position: relative; z-index: 5; font: 13px/1.4 ui-sans-serif, system-ui, sans-serif;
  background: linear-gradient(90deg, rgba(94,242,200,.10), rgba(94,242,200,.18), rgba(94,242,200,.10)); border-bottom: 1px solid rgba(94,242,200,.25); }
.ptc-me { flex: none; display: flex; align-items: center; gap: 0; padding: 7px 14px; text-decoration: none; color: #ffd3a3; font-weight: 600;
  background: rgba(255,150,60,.16); border-right: 1px solid rgba(255,170,90,.35); white-space: nowrap; }
.ptc-me b { color: #ffb85e; font-size: 15px; } .ptc-me .m { display: none; }
.ptc-me .set { display: inline-flex; gap: 3px; margin-left: 10px; } .ptc-me .set i { font-style: normal; filter: grayscale(1); opacity: .35; }
.ptc-me .set i.on { filter: none; opacity: 1; }
.ptc-who { flex: none; font: inherit; font-weight: 600; color: #dfe6f5; background: rgba(255,255,255,.05); border: 0; border-right: 1px solid rgba(255,255,255,.1);
  padding: 7px 14px; cursor: pointer; white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; border-radius: 0; }
.ptc-who:hover { background: rgba(255,255,255,.1); }
.ptc-bell { position: relative; flex: none; font: inherit; background: transparent; border: 0; border-right: 1px solid rgba(255,255,255,.1); padding: 6px 12px; cursor: pointer; }
.ptc-bell:hover { background: rgba(255,255,255,.06); }
.ptc-bell .n { position: absolute; top: 2px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ff6b6b; color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.ptc-inbox { position: fixed; z-index: 60; top: 40px; left: 12px; width: min(92vw, 360px); max-height: 70vh; overflow: auto; background: #141821; color: #e8ecf3;
  border: 1px solid #2c3446; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); padding: 12px; font: 14px/1.4 ui-sans-serif, system-ui, sans-serif; }
.ptc-inbox > b { display: block; margin: 2px 4px 8px; }
.ptc-inbox a { display: flex; gap: 10px; justify-content: space-between; padding: 9px 10px; border-radius: 10px; color: #e8ecf3; text-decoration: none; }
.ptc-inbox a:hover { background: rgba(255,255,255,.05); }
.ptc-inbox a.new { background: rgba(94,242,200,.10); }
.ptc-inbox a small { color: #8b93a7; flex: none; }
.ptc-inbox p { color: #8b93a7; margin: 4px; }
.ptc-logo { flex: none; display: flex; align-items: center; gap: 7px; padding: 6px 12px; color: #e8ecf3; text-decoration: none;
  font-weight: 650; letter-spacing: -.01em; border-right: 1px solid rgba(255,255,255,.1); }
.ptc-logo img { width: 22px; height: 22px; border-radius: 6px; display: block; }
.ptc-logo b { color: #5ef2c8; font-weight: 700; }
.ptc-logo:hover { background: rgba(255,255,255,.06); }
.ptc-qr { width: 200px; max-width: 70vw; margin: 10px 0 4px; background: #fff; border-radius: 10px; line-height: 0; }
.ptc-qr svg { width: 100%; height: auto; display: block; }
.ptc-who .login { margin-left: 6px; color: #062a20; background: #5ef2c8; border-radius: 6px; padding: 1px 7px; font-size: 13px; }
.ptc-who .ok { margin-left: 5px; color: #5ef2c8; }
.ptc-name-dlg .acct { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ptc-name-dlg .acct > b, .ptc-name-dlg .acct > small { display: block; }
.ptc-name-dlg .acct > small { margin-top: 4px; }
.ptc-name-dlg .acct .row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.ptc-name-dlg .acct a.ok { color: #5ef2c8; font-weight: 600; text-decoration: none; margin-right: auto; }
/* Each game's start button: big, first thing you see. */
.ptc-go { flex: 1 1 100%; width: 100%; font-size: 19px !important; font-weight: 750 !important; padding: 14px 18px !important; border-radius: 12px !important;
  box-shadow: 0 0 0 0 rgba(94,242,200,.5), 0 8px 24px rgba(94,242,200,.18); animation: ptc-go 2.4s ease-in-out infinite; letter-spacing: .01em; }
.ptc-go:hover { transform: translateY(-1px); }
/* The game skin, every page: techno type, menu chips, pressable buttons. */
body { font-family: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important; }
main > header h1, main > header h1 a { font-family: "Chakra Petch", ui-sans-serif, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
main > header h1 span { background: linear-gradient(92deg, #5ef2c8, #4cc9f0 60%, #b38cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
main > header .tag { display: none; }
main > header nav a, main > header > a { text-decoration: none !important; font-weight: 600; font-size: 14px !important; color: #dfe6f0 !important; padding: 6px 11px;
  border-radius: 10px; background: rgba(18,23,34,.6); border: 1px solid rgba(128,255,229,.14); transition: border-color .15s, transform .15s; white-space: nowrap; }
main > header nav a:hover, main > header > a:hover { border-color: rgba(94,242,200,.6); transform: translateY(-1px); }
main > header nav { gap: 6px !important; }
main > header { flex-wrap: wrap; row-gap: 10px; }
.ptc-open { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 12px 0 4px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid rgba(255,210,63,.5); background: linear-gradient(90deg, rgba(255,210,63,.16), rgba(17,21,29,.92) 60%); color: #fff; }
.ptc-open .po-l { display: flex; align-items: center; gap: 12px; flex: 1 1 340px; min-width: 0; color: #fff; text-decoration: none; }
.ptc-open .po-c { font-size: 26px; filter: drop-shadow(0 0 8px rgba(255,210,63,.6)); }
.ptc-open small { display: block; font: 400 8px/1 "Press Start 2P", monospace; color: #ffd23f; letter-spacing: .06em; margin-bottom: 5px; }
.ptc-open .po-l b { font: 700 17px/1.1 "Chakra Petch", sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.ptc-open .po-f { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.ptc-open .po-f i { font-style: normal; font-size: 13px; background: rgba(7,9,14,.55); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 4px 8px; white-space: nowrap; }
.ptc-open .po-f i b { color: #ffd23f; font-size: 13px; text-transform: none; }
.ptc-open .po-form { display: flex; gap: 6px; flex: 1 1 280px; max-width: 380px; margin: 0; }
.ptc-open .po-form input { flex: 1; min-width: 0; font: inherit; font-size: 14px; color: #fff; background: #0b0e15; border: 1px solid #2a3142; border-radius: 10px; padding: 9px 10px; }
.ptc-open .po-form button, .ptc-open .po-go, .ptc-open .po-sh { font: 700 14px "Chakra Petch", sans-serif; white-space: nowrap; border-radius: 10px; padding: 9px 14px; cursor: pointer; text-decoration: none; }
.ptc-open .po-form button { color: #2a1f00; background: linear-gradient(180deg, #ffe27a, #ffc41f); border: 0; box-shadow: 0 3px 0 #b88a00; }
.ptc-open .po-in { color: #5ef2c8; font-weight: 700; font-size: 14px; }
.ptc-open .po-sh { color: #fff; background: #1a2030; border: 1px solid #2a3142; } .ptc-open .po-go { color: #ffd23f; border: 1px solid rgba(255,210,63,.5); }
@media (max-width: 640px) { .ptc-open .po-f { display: none; } .ptc-open .po-form { max-width: none; flex-basis: 100%; } }
.ptc-obox { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 12px 0; padding: 14px 16px; border-radius: 16px; color: #fff;
  border: 1px solid rgba(255,210,63,.45); background: radial-gradient(120% 140% at 0% 0%, rgba(255,210,63,.18), rgba(17,21,29,.96) 55%); }
.ptc-obox .ob-i { font-size: 32px; filter: drop-shadow(0 0 10px rgba(255,210,63,.5)); }
.ptc-obox .ob-t { display: grid; gap: 3px; flex: 1 1 260px; min-width: 0; }
.ptc-obox small { font: 400 8px/1 "Press Start 2P", monospace; color: #ffd23f; letter-spacing: .06em; }
.ptc-obox b { font: 700 18px/1.2 "Chakra Petch", sans-serif; } .ptc-obox .ob-t span { color: #aab3c4; font-size: 14px; }
.ptc-obox .ob-b { display: flex; gap: 8px; flex-wrap: wrap; }
.ptc-obox .ob-go, .ptc-obox .ob-sh { font: 700 14px "Chakra Petch", sans-serif; border-radius: 10px; padding: 9px 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ptc-obox .ob-go { color: #2a1f00; background: linear-gradient(180deg, #ffe27a, #ffc41f); box-shadow: 0 3px 0 #b88a00; }
.ptc-obox .ob-sh { color: #fff; background: #1a2030; border: 1px solid #2a3142; }
.ptc-obox.in-feed { margin: 10px 0; }
.ptc-osheet { width: min(560px, calc(100vw - 28px)); padding: 20px; border-radius: 24px; border: 1px solid rgba(255,210,63,.55); color: #fff;
  background: radial-gradient(120% 80% at 50% 0%, rgba(60,40,120,.95), rgba(10,12,30,.97) 70%); box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 40px rgba(255,210,63,.06); animation: os-in .4s cubic-bezier(.2,1.3,.4,1); }
@keyframes os-in { from { transform: translateY(30px) scale(.95); opacity: 0; } }
.ptc-osheet::backdrop { background: rgba(4,6,16,.72); backdrop-filter: blur(4px); }
.ptc-osheet .os-k { font: 800 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .24em; color: #ffd23f; }
.ptc-osheet .os-t { font: 900 22px/1.15 ui-sans-serif, system-ui; margin: 6px 0 12px; color: #fff6e0; }
.ptc-osheet .os-card { position: relative; border-radius: 14px; transition: transform .15s; transform-style: preserve-3d; }
.ptc-osheet .os-card::after { content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 30%, rgba(94,242,200,.3) 45%, rgba(255,210,63,.3) 55%, transparent 70%); background-size: 250% 100%; background-position: var(--mx, 50%) 0; }
.ptc-osheet img { width: 100%; border-radius: 14px; display: block; box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 30px rgba(255,210,63,.2); }
.ptc-osheet p { font-size: 14.5px; color: #c9d0dd; margin: 12px 0; } .ptc-osheet small { color: #8b93a7; font-size: 12.5px; }
.ptc-osheet .os-b { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ptc-osheet .os-b a, .ptc-osheet .os-b button { font: 800 14px "Chakra Petch", sans-serif; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 10px 14px; cursor: pointer; text-decoration: none; }
.ptc-osheet .os-b .os-sv { background: linear-gradient(180deg, #ffe27a, #ffc41f); color: #2a1f00; border: 0; }
.ptc-osheet .os-b a:first-child { background: #000; }
.ptc-osheet .os-x { position: absolute; top: 8px; right: 10px; background: rgba(0,0,0,.5); border: 0; color: #fff; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; }
.ptc-onudge { position: fixed; left: 14px; bottom: 14px; z-index: 70; width: min(440px, calc(100vw - 28px)); animation: ptc-nudge-in .45s cubic-bezier(.2,1.4,.4,1); transition: opacity .5s, transform .5s; }
.ptc-onudge.gone { opacity: 0; transform: translateY(20px); }
.ptc-onudge .ptc-obox { margin: 0; box-shadow: 0 20px 50px rgba(0,0,0,.6); background: radial-gradient(120% 140% at 0% 0%, rgba(255,210,63,.24), #11151d 55%); }
.ptc-onudge .on-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: #8b93a7; font-size: 15px; cursor: pointer; padding: 4px; }
@keyframes ptc-nudge-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.ptc-menu { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; margin: 0 !important; }
.ptc-menu a { display: inline-flex; align-items: center; gap: 6px; }
.ptc-menu a span { font-size: 15px; }
.ptc-menu a.on { color: #052a1f !important; background: linear-gradient(180deg, #a6ffe8, #4fe0b6) !important; border-color: transparent !important; box-shadow: 0 3px 0 #1d9a76; }
@media (max-width: 560px) { .ptc-menu { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .ptc-menu::-webkit-scrollbar { display: none; } }
.ptc-info { margin: 6px 0 12px; }
.ptc-info > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: 9px "Press Start 2P", ui-monospace, monospace;
  color: #8fffe0; border: 1px solid rgba(94,242,200,.35); background: rgba(94,242,200,.08); border-radius: 8px; padding: 7px 10px; }
.ptc-info > summary::-webkit-details-marker { display: none; }
.ptc-info[open] > summary { margin-bottom: 8px; }
.ptc-info > p { margin: 0 !important; max-width: 760px; }
.label, h2.sec, .panel > h2, .lb-title { font-family: "Chakra Petch", ui-sans-serif, sans-serif !important; font-weight: 700 !important; letter-spacing: .1em !important; }
button.primary, a.btn.primary, .btn.primary { font-family: "Chakra Petch", ui-sans-serif, sans-serif; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  box-shadow: 0 4px 0 #1d9a76; transition: transform .08s, box-shadow .08s, filter .15s; }
button.primary:active, .btn.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #1d9a76; }
button.primary:hover, .btn.primary:hover { filter: brightness(1.07); }
.ladder .lv-n { font: 13px "Press Start 2P", ui-monospace, monospace !important; letter-spacing: .02em; }
ol.board li::marker, .board li::marker { font-weight: 700; color: #ffd23f; }
.ptc-more { margin: 10px 0; }
.ptc-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: 600 14.5px "Chakra Petch", ui-sans-serif, sans-serif; letter-spacing: .02em; color: #d6f9ef; background: rgba(18,23,34,.62);
  border: 1px solid rgba(128,255,229,.14); border-radius: 12px; padding: 12px 16px; transition: border-color .15s; }
.ptc-more > summary:hover { border-color: rgba(94,242,200,.5); }
.ptc-more > summary::-webkit-details-marker { display: none; }
.ptc-more > summary::after { content: "+"; font: 14px "Press Start 2P", monospace; color: #5ef2c8; }
.ptc-more[open] > summary::after { content: "−"; }
.ptc-more[open] > summary { margin-bottom: 10px; }
.ptc-more > p { margin: 0; color: #a9b3c4; }
.ptc-mirrored { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important;
  clip-path: inset(50%) !important; opacity: 0 !important; pointer-events: none !important; border: 0 !important; animation: none !important; }
.ptc-compact .ptc-as { font-size: 12.5px; margin-top: 0; }
.ptc-compact label.auto { font-size: 13px; color: #9aa6b8; }
.ptc-compact .panel > .status { font-size: 15.5px; }
.ptc-dock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
.ptc-dock button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 12px; cursor: pointer;
  font: 700 15px "Chakra Petch", ui-sans-serif, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: #fff;
  border: 1px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 28%, rgba(18,23,34,.9)), rgba(18,23,34,.85));
  box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 45%, #000); transition: transform .08s, box-shadow .08s, filter .15s; }
.ptc-dock button span { font-size: 18px; }
.ptc-dock button:hover { filter: brightness(1.15); }
.ptc-dock button:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 45%, #000); }
.ptc-dock [data-a="share"] { --c: #5ef2c8; } .ptc-dock [data-a="vs"] { --c: #ff4fa3; } .ptc-dock [data-a="mp"] { --c: #b38cff; }
@media (max-width: 560px) { .ptc-dock button { font-size: 12.5px; padding: 11px 6px; gap: 5px; } .ptc-dock button span { font-size: 15px; } }
.ptc-mp { border: 1px solid rgba(179,140,255,.5); border-radius: 18px; background: #11151d; color: #e8ecf3; padding: 14px; width: min(420px, calc(100vw - 32px)); }
.ptc-mp::backdrop { background: rgba(5,8,17,.7); backdrop-filter: blur(4px); }
.ptc-mp .mp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ptc-mp .mp-head b { font: 12px "Press Start 2P", monospace; color: #c9b2ff; }
.ptc-mp .mp-x { background: none; border: 0; color: #8b93a7; font-size: 18px; cursor: pointer; }
.ptc-mp .mp-i { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px; margin-top: 6px;
  border-radius: 12px; border: 1px solid #232938; background: rgba(18,23,34,.8); color: #e8ecf3; text-decoration: none; font: inherit; cursor: pointer; }
.ptc-mp .mp-i:hover { border-color: #b38cff; }
.ptc-mp .mp-i span { grid-row: span 2; font-size: 24px; text-align: center; }
.ptc-mp .mp-i b { font: 700 16px "Chakra Petch", sans-serif; } .ptc-mp .mp-i small { color: #8b93a7; font-size: 12.5px; }
.ptc-start { position: absolute; left: 50%; top: 50%; z-index: 7; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 12px; }
.ptc-lvrow { display: flex; align-items: center; gap: 10px; background: rgba(7,9,14,.72); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 6px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ptc-lvrow b { font: 12px "Press Start 2P", ui-monospace, monospace; color: #fff; min-width: 110px; text-align: center; }
.ptc-lvrow button { width: 38px; height: 38px; padding: 0; border-radius: 9px; font-size: 15px; color: #fff; background: rgba(94,242,200,.18); border: 1px solid rgba(94,242,200,.5); cursor: pointer; }
.ptc-lvrow button:disabled { opacity: .3; cursor: default; }
.ptc-lvdesc { font: 600 12.5px "Chakra Petch", ui-sans-serif, sans-serif; color: #fff; letter-spacing: .04em; text-transform: uppercase; text-align: center; max-width: 280px;
  background: rgba(7,9,14,.72); border-radius: 8px; padding: 5px 10px; }
.ptc-lvdesc:empty, .ptc-start.tight .ptc-lvdesc { display: none; }
.ptc-start.tight { gap: 8px; } .ptc-start.tight .ptc-lvrow { padding: 3px; gap: 6px; } .ptc-start.tight .ptc-lvrow button { width: 30px; height: 30px; }
.ptc-start.tight .ptc-bigstart { padding: 12px 16px; font-size: 11px; }
.ptc-bigstart, .ptc-bigact { white-space: nowrap; cursor: pointer; font: 15px/1.2 "Press Start 2P", ui-monospace, monospace; text-transform: uppercase; color: #052a1f;
  border: 0; border-radius: 14px; padding: 18px 26px; background: linear-gradient(180deg, #a6ffe8, #4fe0b6);
  box-shadow: 0 6px 0 #1d9a76, 0 16px 40px rgba(0,0,0,.45), 0 0 0 6px rgba(94,242,200,.2); animation: ptc-bigbob 1.6s ease-in-out infinite; }
.ptc-bigstart:hover, .ptc-bigact:hover { filter: brightness(1.08); }
.ptc-bigstart:active, .ptc-bigact:active { animation: none; transform: translateY(4px); box-shadow: 0 2px 0 #1d9a76, 0 8px 20px rgba(0,0,0,.4); }
@keyframes ptc-bigbob { 50% { transform: translateY(-5px); } }
.ptc-bigact { position: absolute; right: 14px; bottom: 14px; z-index: 7; font-size: 12px; padding: 14px 18px; animation: none; }
@media (max-width: 560px) { .ptc-bigstart { font-size: 12px; padding: 14px 18px; } .ptc-lvrow b { font-size: 10px; min-width: 84px; } .ptc-lvdesc { font-size: 11px; } .ptc-bigact { font-size: 10px; padding: 11px 13px; } }
.stage.ptc-ready > .overlay { display: none !important; }
@keyframes ptc-go { 50% { box-shadow: 0 0 0 7px rgba(94,242,200,.0), 0 8px 30px rgba(94,242,200,.35); } }
.ptc-as { flex: 1 1 100%; background: none !important; border: 0 !important; padding: 0 !important; margin-top: -2px; color: #8b93a7; font: 13px/1.4 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer; text-align: center; }
.ptc-as b { color: #c9f7e9; } .ptc-as:hover b { text-decoration: underline; }
.ptc-name-dlg { border: 1px solid #2c3446; border-radius: 14px; background: #141821; color: #e8ecf3; padding: 18px; width: min(90vw, 340px);
  font: 15px/1.4 ui-sans-serif, system-ui, sans-serif; }
.ptc-name-dlg::backdrop { background: rgba(0,0,0,.6); }
.ptc-name-dlg form { display: grid; gap: 10px; } .ptc-name-dlg small { color: #8b93a7; }
.ptc-name-dlg input { font: inherit; color: #e8ecf3; background: #1c2230; border: 1px solid #2c3446; border-radius: 8px; padding: 10px 12px; }
.ptc-name-dlg .row { display: flex; gap: 8px; justify-content: flex-end; }
.ptc-name-dlg button { font: inherit; color: #e8ecf3; background: #1c2230; border: 1px solid #2c3446; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.ptc-name-dlg .ok { background: #5ef2c8; color: #062a20; border-color: #5ef2c8; font-weight: 650; }
.ptc-me.cold { color: #aab3c5; background: rgba(255,255,255,.04); border-right-color: rgba(255,255,255,.1); }
.ptc-me.risk { animation: ptc-risk 2s ease-in-out infinite; }
@keyframes ptc-risk { 50% { background: rgba(255,150,60,.32); } }
.ptc-pop { position: fixed; left: 50%; top: 42%; z-index: 9999; transform: translate(-50%, -50%) scale(.6); opacity: 0; text-align: center;
  padding: 28px 40px; border-radius: 24px; background: #0e1013; border: 3px solid #5ef2c8; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: ptc-pop-in .35s cubic-bezier(.2,1.6,.4,1) forwards; max-width: 90vw; }
.ptc-pop b { display: block; font-size: 44px; color: #fff; line-height: 1.1; }
.ptc-pop span { display: block; margin-top: 10px; font-size: 18px; color: #c9f7e9; }
.ptc-pop.tie { border-color: #ffb85e; } .ptc-pop.tie span { color: #ffe1c2; }
.ptc-pop.lost { border-color: #8b93a7; } .ptc-pop.lost span { color: #c3cad8; }
.ptc-pop.out { transition: opacity .5s; opacity: 0 !important; }
@keyframes ptc-pop-in { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@media (max-width: 560px) { .ptc-pop b { font-size: 32px; } .ptc-pop { padding: 22px 26px; } }
.vs-item { display: block; padding: 10px 12px; border-radius: 10px; background: rgba(255,184,94,.08); border: 1px solid rgba(255,184,94,.25);
  color: #ffe1c2; text-decoration: none; margin-top: 8px; }
.vs-item b { display: block; color: #fff; font-size: 15px; } .vs-item span { font-size: 13px; color: #c3cad8; }
.ptc-vs { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,184,94,.12); border: 1px solid rgba(255,184,94,.45);
  color: #ffe1c2; font-size: 15px; line-height: 1.45; }
.ptc-vs b { color: #fff; }
.ptc-vs.won { background: rgba(94,242,200,.12); border-color: rgba(94,242,200,.5); color: #c9f7e9; }
.ptc-vs.lost, .ptc-vs.closed { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.15); color: #c3cad8; }
.ptc-vs-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ptc-vs-row button { font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 10px; cursor: pointer; border: 1px solid rgba(255,184,94,.6);
  background: rgba(255,184,94,.16); color: #ffe1c2; }
.ptc-vs-row a { align-self: center; color: #5ef2c8; }
.ptc-vs-row a.vs-x, .ptc-vs-row a.vs-wa { font-weight: 700; padding: 10px 16px; border-radius: 10px; text-decoration: none; color: #ffe1c2;
  border: 1px solid rgba(255,184,94,.6); background: rgba(255,184,94,.16); }
.ptc-vs-row a.vs-x.main { background: #ffb85e; color: #2a1200; border-color: #ffb85e; }
.ptc-vs-row.res { margin: 10px 0 0; }
.ptc-vs.won .ptc-vs-row a.vs-x { background: #5ef2c8; color: #04241b; border-color: #5ef2c8; }
.ptc-fuel { flex: 1; display: block; padding: 7px 16px; text-align: center; color: #c9f7e9; text-decoration: none; }
.ptc-toasts { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; pointer-events: none; width: min(92vw, 380px); }
.ptc-toast { background: #1c2230; color: #e8ecf3; border: 1px solid rgba(255,184,94,.6); border-radius: 12px; padding: 10px 14px; display: flex; gap: 12px;
  align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: ptc-toast 4.2s ease forwards; font: 14px/1.4 ui-sans-serif, system-ui, sans-serif; }
.ptc-toast b { display: block; } .ptc-toast span { font-size: 26px; }
.ptc-toast.xp { border-color: rgba(94,242,200,.7); pointer-events: auto; animation-duration: 5.2s; }
.ptc-toast.xp .xpn { font-size: 22px; font-weight: 800; color: #5ef2c8; min-width: 2.2em; text-align: center; }
.ptc-toast a { color: #5ef2c8; }
.ptc-toast a { pointer-events: auto; }
.ptc-confetti, .ptc-fx { position: fixed; inset: 0; z-index: 75; pointer-events: none; }
.ptc-fx { z-index: 73; } /* behind the card, so the words stay readable */
.ptc-cele .lv { display: inline-block; font-size: 88px; font-weight: 900; line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(135deg, #5ef2c8, #ffd23f 55%, #ff4fa3); -webkit-background-clip: text; background-clip: text; color: transparent; animation: ptc-lv .7s cubic-bezier(.2,1.8,.4,1); }
.ptc-cele.big .lv { font-size: 120px; }
.ptc-cele .hype { display: block; font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #ffd23f; margin-bottom: 4px; }
@keyframes ptc-lv { from { transform: scale(2.4) rotate(-12deg); opacity: 0; } }
.ptc-cele { position: fixed; inset: 0; z-index: 74; display: grid; place-items: start center; padding-top: 14vh; background: rgba(5,7,11,.18); animation: ptc-in .25s ease; }
.ptc-cele.out { opacity: 0; transition: opacity .25s; }
.ptc-cele .cc { background: #141821; border: 1px solid rgba(94,242,200,.6); border-radius: 18px; padding: 22px 30px; text-align: center; max-width: min(90vw, 420px);
  box-shadow: 0 20px 60px rgba(0,0,0,.6); color: #e8ecf3; font: 15px/1.45 ui-sans-serif, system-ui, sans-serif; animation: ptc-pop .45s cubic-bezier(.2,1.6,.4,1); }
.ptc-cele.big .cc { border-color: #ffd23f; max-width: min(92vw, 480px); }
.ptc-cele .ci { font-size: 56px; line-height: 1.1; } .ptc-cele.big .ci { font-size: 84px; }
.ptc-cele b { display: block; font-size: 26px; margin: 6px 0 4px; } .ptc-cele.big b { font-size: 32px; }
.ptc-cele p { margin: 0; color: #b6bfd0; } .ptc-cele .cb { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.ptc-cele .cb:empty { display: none; }
.ptc-cele button, .ptc-xpinfo button { font: inherit; color: #e8ecf3; background: #1c2230; border: 1px solid #2b3244; border-radius: 10px; padding: 9px 16px; cursor: pointer; }
.ptc-cele button.primary { background: #5ef2c8; color: #062a20; border-color: #5ef2c8; font-weight: 700; }
@keyframes ptc-in { from { opacity: 0; } } @keyframes ptc-pop { from { transform: scale(.7); opacity: 0; } }
.ptc-xpinfo { position: fixed; inset: 0; z-index: 76; background: rgba(5,7,11,.7); display: grid; place-items: center; padding: 16px; animation: ptc-in .2s ease; }
.ptc-xpinfo .xi { position: relative; background: #141821; border: 1px solid #2b3244; border-radius: 16px; padding: 22px 24px; max-width: 560px; width: 100%;
  max-height: 88vh; overflow: auto; color: #e8ecf3; font: 15px/1.45 ui-sans-serif, system-ui, sans-serif; }
.ptc-xpinfo .x { position: absolute; right: 12px; top: 12px; padding: 4px 10px; }
.ptc-xpinfo h3 { margin: 0 0 6px; font-size: 22px; } .ptc-xpinfo h4 { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8b93a7; }
.ptc-xpinfo p { margin: 0 0 12px; color: #b6bfd0; } .ptc-xpinfo .fine { font-size: 13.5px; margin: 14px 0 0; } .ptc-xpinfo a { color: #5ef2c8; }
.ptc-xpinfo .ways { display: grid; gap: 6px; }
.ptc-xpinfo .ways div { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; padding: 7px 10px; background: #10131a; border-radius: 10px; }
.ptc-xpinfo .ways span { grid-row: span 2; font-size: 20px; } .ptc-xpinfo .ways small { color: #8b93a7; }
.ptc-xpinfo .ranks { display: flex; flex-wrap: wrap; gap: 6px; }
.ptc-xpinfo .ranks span { border: 1px solid #2b3244; border-radius: 999px; padding: 4px 12px; font-size: 13.5px; color: #8b93a7; }
.ptc-xpinfo .ranks span small { margin-left: 6px; opacity: .7; }
.ptc-xpinfo .ranks span.done { color: #c9f7e9; border-color: rgba(94,242,200,.35); }
.ptc-xpinfo .ranks span.on { color: #062a20; background: #5ef2c8; border-color: #5ef2c8; font-weight: 700; }
@keyframes ptc-toast { 0% { opacity: 0; transform: translateY(-14px) scale(.96); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
.ptc-fuel:empty { visibility: hidden; }
.ptc-fuel b { color: #fff; } .ptc-fuel u { color: #5ef2c8; text-underline-offset: 3px; white-space: nowrap; }
.ptc-fuel.low { color: #ffe1c2; background: rgba(255,150,60,.18); }
.ptc-fuel.low u { color: #ffb85e; }
.ptc-fuel.crit { color: #ffd6d6; background: rgba(255,80,80,.24); animation: ptc-fuel-pulse 2.4s ease-in-out infinite; }
.ptc-fuel.crit u { color: #ff9b9b; }
@keyframes ptc-fuel-pulse { 50% { background: rgba(255,80,80,.38); } }
@media (prefers-reduced-motion: reduce) { .ptc-fuel.crit { animation: none; } }
.ptc-pit { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: flex; justify-content: center; padding: 12px; pointer-events: none; }
.ptc-pit.empty { inset: 0; align-items: center; background: rgba(5,7,11,.66); backdrop-filter: blur(3px); pointer-events: auto; }
.ptc-pit .card { pointer-events: auto; position: relative; max-width: 460px; width: 100%; background: linear-gradient(180deg, #1a1f2b, #12161f); color: #e8ecf3;
  border: 1px solid rgba(255,209,102,.35); border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 14px 40px rgba(0,0,0,.45);
  font: 14.5px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; animation: ptc-pit-in .45s cubic-bezier(.2,.9,.3,1.2); }
.ptc-pit.out .card { animation: ptc-pit-out .25s ease-in forwards; }
.ptc-pit .top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding-right: 22px; }
.ptc-pit .tag { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #ffd166; white-space: nowrap; }
.ptc-pit .gauge { flex: 1; height: 8px; border-radius: 5px; background: rgba(255,255,255,.08); overflow: hidden; }
.ptc-pit .gauge i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #ff5d5d, #ffd166); animation: ptc-pit-glow 1.8s ease-in-out infinite; }
.ptc-pit .left { font-size: 12px; color: #8b93a7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptc-pit h3 { margin: 2px 0 4px; font-size: 17px; letter-spacing: -.01em; }
.ptc-pit p { margin: 0 0 6px; color: #b7bfd1; }
.ptc-pit .buy { color: #e8ecf3; font-size: 13.5px; }
.ptc-pit .buy b { color: #ffd166; }
.ptc-pit .acts { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.ptc-pit .go { flex: 1 1 auto; text-align: center; padding: 10px 14px; border-radius: 11px; background: #ffd166; color: #2a1c00; font-weight: 800; text-decoration: none; }
.ptc-pit .go:hover { filter: brightness(1.06); }
.ptc-pit .later { font: inherit; font-size: 13.5px; background: none; border: 0; color: #8b93a7; cursor: pointer; padding: 6px 4px; }
.ptc-pit .x { position: absolute; right: 8px; top: 6px; font: 20px/1 system-ui; background: none; border: 0; color: #8b93a7; cursor: pointer; padding: 4px 6px; }
.ptc-pit.empty .card { padding: 20px 20px 16px; }
.ptc-pit.empty h3 { font-size: 20px; }
/* Wide screens: the pit stop waits in the corner, clear of the game. */
@media (min-width: 900px) { .ptc-pit:not(.empty) { justify-content: flex-end; padding: 16px 20px; } .ptc-pit:not(.empty) .card { max-width: 380px; } }
@keyframes ptc-pit-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes ptc-pit-out { to { opacity: 0; transform: translateY(24px); } }
@keyframes ptc-pit-glow { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .ptc-pit .card, .ptc-pit.out .card, .ptc-pit .gauge i { animation: none; } }
@media (max-width: 560px) { .ptc-top .w { display: none; } .ptc-me .m { display: inline; } .ptc-top { font-size: 12px; }
  .ptc-fuel { padding: 6px 8px; } .ptc-me, .ptc-who { padding: 6px 8px; } .ptc-logo { padding: 6px 8px; } .ptc-me .set { margin-left: 6px; gap: 1px; }
  .ptc-who .nm { display: inline-block; max-width: 14vw; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  .ptc-fuel b .w, .ptc-fuel .w { display: none; } }
/* Phones: the menu is one row you can swipe, not three wrapped lines. */
@media (max-width: 560px) {
  header nav, nav.top, nav.play { flex-wrap: nowrap !important; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
    margin-left: 0 !important; max-width: 100%; gap: 16px !important; padding-bottom: 2px; }
  header nav::-webkit-scrollbar, nav.top::-webkit-scrollbar { display: none; }
  .fabric-badge { transform-origin: 100% 100%; }
}
