/* Neurobrincadeiras • Palavras Cruzadas • Rodada 01
   Sistema visual interno do catálogo; não cria cabeçalho nem rodapé do portal. */
:root{
  --pc-violet:#6a34cf; --pc-violet-dark:#412078; --pc-ink:#211a36;
  --pc-subtle:#635e75; --pc-line:#eae5f2; --pc-radius:23px;
  --pc-shadow:0 12px 36px rgba(48,31,95,.075);
}
#homeScreen.pc-home-screen{
  min-height:100svh; width:100%; padding:clamp(16px,2.4vw,34px) 0 60px;
  display:block; background:transparent; color:var(--pc-ink);
}
#homeScreen.pc-home-screen.is-hidden{display:none!important}
.pc-home-screen *{box-sizing:border-box}
.pc-home-main{width:min(1200px,100%);margin:0 auto;display:grid;gap:24px}
.pc-welcome{
  min-height:260px;position:relative;isolation:isolate;overflow:hidden;
  border-radius:30px;display:flex;align-items:center;
  background:
    radial-gradient(circle at 70% 15%,rgba(197,160,255,.65),transparent 36%),
    radial-gradient(circle at 2% 105%,rgba(244,139,183,.55),transparent 30%),
    linear-gradient(113deg,#3c176f 0%,#6433a7 47%,#8b59ce 100%);
  box-shadow:0 20px 50px rgba(64,28,131,.15);
}
.pc-welcome::after{
  content:"";position:absolute;inset:auto -8% -50% 35%;height:90%;
  border:1px solid rgba(255,255,255,.18);border-radius:50%;transform:rotate(-13deg);pointer-events:none;
}
.pc-welcome-glow{position:absolute;width:220px;height:220px;border:1px solid rgba(255,255,255,.15);border-radius:50%;right:19%;top:-150px;pointer-events:none}
.pc-welcome-copy{padding:32px clamp(24px,5vw,64px);position:relative;z-index:2;max-width:690px;}
.pc-eyebrow{color:#eed9ff;font-size:11px;font-weight:900;letter-spacing:.16em;display:flex;align-items:center;gap:8px}
.pc-sparkle{color:#ffd379;font-size:18px}
.pc-welcome h1{font-size:clamp(39px,5vw,68px);letter-spacing:-.052em;line-height:.98;font-weight:900;color:#fff;margin:15px 0 16px}
.pc-welcome h1 span{color:#ffdd91;display:block}
.pc-welcome p{font-size:clamp(14px,1.45vw,17px);color:#f9f1ff;line-height:1.5;max-width:515px;margin:0;font-weight:650}
.pc-hero-pills{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:23px}
.pc-hero-pills span{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.19);font-size:11px;font-weight:800;letter-spacing:.01em;padding:7px 12px;border-radius:999px}
.pc-welcome>picture{position:absolute;width:clamp(190px,26vw,318px);right:clamp(5px,6%,72px);top:50%;transform:translateY(-50%);pointer-events:none;line-height:0;display:block}.pc-welcome-art{display:block;object-fit:contain;width:100%;height:auto;transform:rotate(6deg);border-radius:38%;-webkit-mask-image:radial-gradient(ellipse at center,#000 47%,transparent 76%);mask-image:radial-gradient(ellipse at center,#000 47%,transparent 76%);opacity:.96;filter:drop-shadow(0 16px 22px rgba(21,10,51,.25));pointer-events:none}
.pc-journey{padding:18px 24px 17px;display:grid;align-items:center;column-gap:24px;grid-template-columns:minmax(210px,1.2fr) minmax(270px,1fr);row-gap:13px;background:rgba(255,255,255,.94);border:1px solid #e9e4f3;border-radius:24px;box-shadow:var(--pc-shadow)}
.pc-journey-intro{display:flex;align-items:center;gap:13px;min-width:0}
.pc-journey-intro strong{font-size:18px;font-weight:900;letter-spacing:-.02em;display:block;color:#2a1c4c}
.pc-journey-intro small{display:block;font-size:12px;color:var(--pc-subtle);margin-top:3px;line-height:1.4}
.pc-journey-icon{display:grid;place-items:center;flex:none;background:#f2eaff;color:#753ecf;font-size:30px;width:51px;height:51px;border-radius:16px}
.pc-journey-stats{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pc-stat{display:flex;flex-direction:column;gap:2px;padding-left:16px;border-left:1px solid #e6e0ef}
.pc-stat strong{font-size:22px;letter-spacing:-.05em;color:#412078;font-weight:900;line-height:1.1}
.pc-stat span{font-size:11px;color:var(--pc-subtle);font-weight:750}
.pc-journey-progress{height:7px;background:#eee9f5;border-radius:99px;overflow:hidden;grid-column:1/-1}
.pc-journey-progress span{height:100%;width:0;display:block;background:linear-gradient(90deg,#8156da,#b485ee);border-radius:99px;transition:width .3s ease}
.pc-journey-caption{grid-column:1/-1;font-size:11px;color:#777085;font-weight:750}
.pc-continue-strip{padding:14px 17px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:19px;border:1px solid #cab6ed;background:linear-gradient(105deg,#f8f3ff,#fff);box-shadow:0 9px 28px rgba(98,58,153,.07)}
.pc-continue-strip.is-hidden{display:none}
.pc-continue-copy{display:flex;align-items:center;gap:12px;min-width:0}
.pc-continue-copy strong,.pc-continue-copy small{display:block}
.pc-continue-copy strong{font-size:15px;font-weight:900;color:#3b2565}
.pc-continue-copy small{font-size:12px;color:var(--pc-subtle);margin-top:2px}
.pc-continue-mark{display:grid;place-items:center;background:#dfcbff;color:#62309f;border-radius:13px;width:42px;height:42px;font-size:25px}
.pc-continue-btn{border:0;background:#6330bf;border-radius:12px;color:white;font-weight:900;padding:12px 19px;min-height:44px;white-space:nowrap;cursor:pointer;display:flex;align-items:center;gap:12px;box-shadow:0 5px 11px rgba(99,48,191,.2)}
.pc-continue-btn:hover{background:#50229e}
.pc-catalog{background:rgba(255,255,255,.86);border:1px solid #ebe7f0;border-radius:29px;padding:28px clamp(16px,3vw,32px) 20px;box-shadow:0 10px 42px rgba(35,30,61,.045)}
.pc-catalog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:19px}
.pc-catalog-eyebrow{font-size:10px;font-weight:900;color:#7954b3;letter-spacing:.15em}
.pc-catalog-heading h2{font-size:clamp(25px,2.7vw,34px);font-weight:900;color:#261b3d;letter-spacing:-.045em;margin:7px 0 5px;line-height:1.13}
.pc-catalog-heading p{font-size:14px;color:var(--pc-subtle);margin:0;line-height:1.45}
.pc-help-link{border:1px solid #dbd0ee;border-radius:999px;display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;background:#fff;color:#57328e;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap}
.pc-help-link span{border:1.5px solid currentColor;border-radius:50%;font-weight:950;width:18px;height:18px;display:grid;place-items:center;font-size:12px}
.pc-catalog-tools{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:21px;flex-wrap:wrap}
.pc-search{height:47px;min-width:220px;flex:1 1 240px;max-width:330px;border:1px solid #ded6ec;border-radius:14px;background:#f9f7fc;display:flex;align-items:center;gap:9px;padding:0 13px;color:#8b7ca5;transition:border .15s,box-shadow .15s}
.pc-search:focus-within{border-color:#9261d5;box-shadow:0 0 0 3px rgba(128,73,196,.11)}
.pc-search svg{width:19px;height:19px;flex:none}
.pc-search input{border:0;background:transparent;outline:none;color:#292038;font-size:13px;width:100%;min-width:0;font-family:inherit}
.pc-search input::placeholder{color:#9187a0}
.pc-filter-list{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.pc-filter{background:transparent;border:1px solid #e5dded;border-radius:999px;padding:10px 13px;min-height:41px;font-size:12px;font-weight:850;color:#6f617b;cursor:pointer;white-space:nowrap}
.pc-filter.is-active{border-color:#6639be;background:#6639be;color:#fff;box-shadow:0 5px 12px rgba(96,48,165,.14)}
.pc-filter:not(.is-active):hover{background:#f5efff}
.pc-themes-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.pc-theme-card{background:#fff;border:1px solid #ebe5f0;border-radius:20px;overflow:hidden;box-shadow:0 5px 18px rgba(37,29,64,.045);min-width:0;transition:transform .19s ease,box-shadow .19s ease,border-color .19s ease;display:flex;flex-direction:column}
.pc-theme-card:hover{transform:translateY(-3px);box-shadow:0 15px 30px rgba(54,35,98,.12);border-color:#cbb7ee}
.pc-theme-primary{position:relative;padding:0;border:0;background:#fff;display:flex;flex-direction:column;text-align:left;cursor:pointer;flex:1;min-width:0;width:100%;font-family:inherit}
.pc-theme-art{width:100%;height:clamp(104px,10vw,147px);overflow:hidden;position:relative;display:block;background:color-mix(in srgb,var(--card-accent) 24%,#fff)}
.pc-theme-art::after{content:"";position:absolute;inset:auto 0 0;height:45%;background:linear-gradient(0deg,rgba(18,13,46,.26),transparent);pointer-events:none}
.pc-theme-art img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .24s ease}
.pc-theme-card:hover .pc-theme-art img{transform:scale(1.06)}
.pc-theme-content{padding:13px 52px 10px 14px;display:flex;flex-direction:column;gap:5px;min-height:78px}
.pc-theme-name{font-size:17px;letter-spacing:-.025em;font-weight:900;color:#281d44;line-height:1.13}
.pc-theme-description{font-size:11.5px;color:#756e84;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc-theme-play-icon{position:absolute;right:13px;bottom:25px;display:grid;place-items:center;border-radius:13px;width:34px;height:34px;color:#fff;background:#7848cf;font-size:23px;box-shadow:0 5px 11px rgba(93,44,173,.2);transition:transform .2s ease}
.pc-theme-card:hover .pc-theme-play-icon{transform:translate(2px,-2px)}
.pc-theme-footer{padding:0 14px 13px;display:flex;align-items:end;justify-content:space-between;gap:10px}
.pc-theme-progress{min-width:0;flex:1;display:grid;gap:7px}
.pc-theme-progress>span:first-child{font-size:10px;font-weight:750;color:#756a85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-card-track{width:100%;height:5px;border-radius:10px;overflow:hidden;background:#eee9f4}
.pc-card-track span{display:block;height:100%;background:var(--card-accent);border-radius:10px;transition:width .2s}
.pc-theme-levels{border:0;border-bottom:1px solid #d4c2e9;padding:5px 0 2px;background:transparent;color:#7845b8;font-size:10.5px;font-weight:900;white-space:nowrap;cursor:pointer;min-height:30px}
.pc-theme-levels:hover{color:#4a2199;border-color:currentColor}
.pc-catalog-footnote{margin:20px 0 2px;text-align:center;color:#81788d;font-size:11.5px;line-height:1.5}
.pc-empty-state{padding:48px 16px;border:1px dashed #cbb9e5;border-radius:19px;text-align:center;display:grid;justify-items:center;gap:9px;color:#5d5084}
.pc-empty-state.is-hidden{display:none}
.pc-empty-state strong{font-size:17px}
.pc-empty-state span{font-size:12px}
.pc-empty-state button{margin-top:6px;border:1px solid #b6a2d7;border-radius:12px;background:#f2e9ff;color:#4e2592;font-weight:900;padding:10px 16px;cursor:pointer}
/* Two-tap level selection */
.pc-levels-overlay{position:fixed;inset:0;z-index:1000;background:rgba(26,16,44,.56);padding:18px;display:flex;align-items:center;justify-content:center;overflow-y:auto;backdrop-filter:blur(5px)}
.pc-levels-overlay.is-hidden{display:none}
body.pc-levels-open{overflow:hidden}
.pc-levels-dialog{background:#fff;width:min(550px,100%);border-radius:26px;padding:clamp(18px,3vw,28px);box-shadow:0 26px 80px rgba(22,12,53,.3);max-height:min(90dvh,820px);overflow-y:auto;color:#281b45}
.pc-levels-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:20px}
.pc-levels-head h2{font-size:30px;font-weight:900;letter-spacing:-.035em;margin:7px 0 5px;line-height:1.1}
.pc-levels-head p{margin:0;color:#6e647c;font-size:12px}
.pc-levels-close{width:42px;height:42px;border:1px solid #e3d9ef;border-radius:14px;background:#f8f5fc;color:#634495;cursor:pointer;font-size:25px;flex:none}
.pc-levels-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pc-level-button{border:1px solid #e8e2f0;background:#faf8fd;border-radius:15px;min-height:89px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;transition:transform .15s,background .15s}
.pc-level-button strong{font-size:24px;font-weight:900;color:#44267e;line-height:1}
.pc-level-button span{font-size:10px;font-weight:800;color:#776b88}
.pc-level-button:hover{transform:translateY(-2px);background:#f0e6ff}
.pc-level-button.is-in-progress{background:#f2edff;border-color:#bfa6ef}
.pc-level-button.is-completed{background:#eef9f2;border-color:#b3dec4}
.pc-level-button.is-completed strong{color:#247e4c}
.pc-levels-footnote{font-size:11px;color:#7a7285;margin:18px 0 0;line-height:1.5}
/* Internal gameplay escape route, not site navigation */
.pc-back-themes{border:1px solid #ded6e8;border-radius:12px;background:var(--surface);color:var(--text);padding:7px 10px;cursor:pointer;font-size:12px;font-weight:850;min-height:39px;white-space:nowrap}
.pc-back-themes:hover{border-color:#a984d0}
.pc-game-topline{gap:12px}
/* Keyboard focus, disabled motion, color schemes */
.pc-home-screen button:focus-visible,.pc-levels-overlay button:focus-visible,.pc-back-themes:focus-visible{outline:3px solid #ffbb68;outline-offset:3px}
@media(min-width:1180px){.pc-home-screen{max-width:1320px;margin:0 auto}}
@media(max-width:1100px){.pc-themes-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pc-welcome>picture{right:3%}.pc-welcome-copy{max-width:66%}.pc-catalog-tools{justify-content:flex-start}}
@media(max-width:800px){
  .pc-home-main{gap:17px}
  .pc-welcome{min-height:230px;border-radius:24px}
  .pc-welcome-copy{padding:28px 30px;max-width:72%}
  .pc-welcome>picture{width:215px;right:0}.pc-welcome-art{opacity:.68}
  .pc-themes-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  .pc-theme-art{height:clamp(110px,19vw,170px)}
  .pc-catalog{border-radius:22px;padding:23px}
  .pc-journey{grid-template-columns:1fr 1fr}
  .pc-catalog-tools{gap:11px}
}
@media(max-width:520px){
  #homeScreen.pc-home-screen{padding:12px 0 30px;min-height:auto}
  .pc-home-main{gap:14px}
  .pc-welcome{border-radius:21px;min-height:222px}
  .pc-welcome-copy{padding:22px 19px;max-width:100%}
  .pc-welcome h1{font-size:clamp(35px,9vw,44px);margin:11px 0 13px;max-width:260px}
  .pc-welcome p{font-size:12.5px;line-height:1.43;max-width:245px}
  .pc-hero-pills{margin-top:16px;gap:6px}
  .pc-hero-pills span{font-size:9px;padding:6px 8px}
  .pc-eyebrow{font-size:9px}
  .pc-welcome>picture{width:167px;right:-22px;top:38%}.pc-welcome-art{opacity:.48}
  .pc-journey{padding:15px;gap:13px;grid-template-columns:1fr}
  .pc-journey-icon{width:42px;height:42px;font-size:26px;border-radius:13px}
  .pc-journey-intro strong{font-size:16px}
  .pc-journey-stats{grid-template-columns:1fr 1fr}
  .pc-stat{padding-left:13px}.pc-stat strong{font-size:20px}
  .pc-journey-caption{line-height:1.4}
  .pc-continue-strip{padding:12px;gap:9px;align-items:center}
  .pc-continue-mark{width:34px;height:34px;font-size:22px}
  .pc-continue-copy strong{font-size:12px}.pc-continue-copy small{font-size:10px}
  .pc-continue-btn{min-height:41px;padding:9px 11px;font-size:11px;gap:5px}
  .pc-catalog{padding:19px 12px;border-radius:21px}
  .pc-catalog-heading{align-items:flex-start;gap:8px;margin-bottom:15px}
  .pc-catalog-heading h2{font-size:25px;margin:5px 0}
  .pc-catalog-heading p{font-size:11.5px;max-width:215px}
  .pc-catalog-eyebrow{font-size:8.5px;letter-spacing:.09em}
  .pc-help-link{font-size:0;width:39px;height:39px;border-radius:12px;padding:0;flex:none}
  .pc-help-link span{font-size:12px}
  .pc-catalog-tools{margin-bottom:14px;gap:10px;flex-direction:column;align-items:stretch}
  .pc-search{max-width:none;width:100%;flex:auto;height:44px}
  .pc-filter-list{display:flex;overflow-x:auto;flex-wrap:nowrap;padding:0 0 3px;scrollbar-width:none;max-width:100%}
  .pc-filter-list::-webkit-scrollbar{display:none}
  .pc-filter{font-size:10px;min-height:38px;padding:8px 11px}
  .pc-themes-grid{gap:9px}
  .pc-theme-card{border-radius:15px}
  .pc-theme-art{height:clamp(94px,27vw,136px)}
  .pc-theme-content{padding:10px 7px 6px;min-height:66px}
  .pc-theme-name{font-size:14.5px}
  .pc-theme-description{font-size:10px;line-height:1.25;min-height:23px;max-width:100%}
  .pc-theme-play-icon{width:27px;height:27px;border-radius:9px;right:7px;bottom:10px;font-size:19px}
  .pc-theme-primary .pc-theme-content{padding-right:33px}
  .pc-theme-footer{padding:5px 7px 10px;gap:5px;align-items:end}
  .pc-theme-progress>span:first-child{font-size:9px;letter-spacing:-.02em}
  .pc-card-track{height:4px}
  .pc-theme-levels{font-size:9px;min-height:26px;max-width:64px}
  .pc-catalog-footnote{font-size:10px;margin-top:16px}
  .pc-levels-overlay{padding:10px;align-items:flex-end}
  .pc-levels-dialog{border-radius:24px 24px 16px 16px;padding:23px 16px;max-height:85dvh}
  .pc-levels-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  .pc-level-button{min-height:83px}
  .pc-game-topline{gap:6px}.pc-back-themes{font-size:11px;padding:6px 8px;min-height:36px}
}
@media(max-width:350px){
 .pc-welcome>picture{width:138px;right:-35px}.pc-welcome-copy{padding:20px 15px}.pc-welcome p{max-width:212px}
 .pc-theme-art{height:89px}.pc-theme-name{font-size:13px}.pc-theme-description{font-size:9px}
 .pc-theme-footer{flex-wrap:wrap}.pc-theme-levels{margin-left:auto}.pc-theme-progress{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){.pc-theme-card,.pc-theme-art img,.pc-theme-play-icon,.pc-journey-progress span,.pc-level-button{transition:none!important}}
html[data-theme="dark"] #homeScreen{color:#f1ebfb}
html[data-theme="dark"] .pc-catalog,html[data-theme="dark"] .pc-journey,html[data-theme="dark"] .pc-theme-card,html[data-theme="dark"] .pc-theme-primary,html[data-theme="dark"] .pc-levels-dialog{background:#29223a;border-color:#514462;color:#f1eafa}
html[data-theme="dark"] .pc-catalog-heading h2,html[data-theme="dark"] .pc-journey-intro strong,html[data-theme="dark"] .pc-theme-name,html[data-theme="dark"] .pc-levels-head h2{color:#f9f5ff}
html[data-theme="dark"] .pc-journey-intro small,html[data-theme="dark"] .pc-catalog-heading p,html[data-theme="dark"] .pc-theme-description,html[data-theme="dark"] .pc-theme-progress>span:first-child,html[data-theme="dark"] .pc-journey-caption{color:#c5bad6}
html[data-theme="dark"] .pc-stat strong{color:#d4b9ff}
html[data-theme="dark"] .pc-search{background:#332a47;border-color:#67527e}
html[data-theme="dark"] .pc-search input{color:#fff}
html[data-theme="dark"] .pc-theme-play-icon{background:#8455dd}
html[data-theme="dark"] .pc-filter:not(.is-active),html[data-theme="dark"] .pc-help-link{background:#332c46;color:#e4d2fa;border-color:#625378}
html[data-theme="dark"] .pc-level-button{background:#342d48;border-color:#5b5070}
html[data-theme="dark"] .pc-level-button strong{color:#d7c2ff}
html[data-theme="dark"] .pc-level-button span,html[data-theme="dark"] .pc-levels-head p{color:#bdb3cd}
/* Small-screen intrinsic sizing: no horizontal viewport overflow at 320px. */
.pc-home-main,.pc-welcome,.pc-journey,.pc-catalog,.pc-catalog-tools,.pc-themes-grid,.pc-journey-stats,.pc-stat{min-width:0;max-width:100%}
.pc-journey-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.pc-search{min-width:0}
.pc-filter-list{min-width:0;max-width:100%}
.pc-stat span{overflow-wrap:anywhere}
@media(max-width:520px){.pc-catalog-tools{width:100%}.pc-search{min-width:0;width:100%}.pc-catalog-heading>div{min-width:0}}
