.project-dialog-open { overflow:hidden; scrollbar-gutter:stable; }
.project-dialog { width:min(1080px,calc(100vw - 48px)); max-width:none; max-height:calc(100dvh - 48px); padding:0; margin:auto; color:#d9e8f5; background:#0c1520; border:1px solid #2c4155; border-radius:20px; box-shadow:0 28px 120px #000b; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#344c63 #0c1520; }
.project-dialog::backdrop { background:#02070ee0; backdrop-filter:blur(7px); }
.project-dialog[open] { animation:project-in .22s ease-out; }
@keyframes project-in { from { opacity:0; transform:translateY(12px) scale(.985); } to { opacity:1; transform:none; } }
.project-dialog-bar { position:sticky; top:0; z-index:3; display:flex; justify-content:space-between; align-items:center; padding:13px 23px; border-bottom:1px solid #223346; background:#101d2bf5; backdrop-filter:blur(12px); }
.project-dialog-bar>span { display:flex; align-items:center; gap:12px; font-size:9px; font-weight:600; letter-spacing:1.5px; color:#88a5bf; }
.project-dialog-bar .cyan { font-size:24px; font-weight:800; letter-spacing:0; }
.project-close { display:grid; place-items:center; width:34px; height:34px; padding:0; font-size:17px; border:1px solid #31465b; border-radius:9px; color:#c3d8e9; background:#182638; cursor:pointer; }
.project-close:hover { background:#20374e; color:white; }
.project-details { padding:30px; }
.project-overview { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:32px; align-items:start; }
.project-gallery { min-width:0; position:relative; border:1px solid #26384b; border-radius:13px; overflow:hidden; background:radial-gradient(ellipse at 35% 25%,#12314a,#08131f 75%); }
.gallery-track { display:flex; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none; touch-action:pan-x pan-y; cursor:grab; }
.gallery-track::-webkit-scrollbar { display:none; }
.gallery-track.dragging { scroll-snap-type:none; cursor:grabbing; user-select:none; }
.gallery-slide { flex:0 0 100%; min-width:0; margin:0; scroll-snap-align:start; scroll-snap-stop:always; }
.gallery-frame { aspect-ratio:16 / 10; width:100%; display:grid; place-items:center; position:relative; background:#060e18; }
.gallery-frame img,.gallery-frame video { width:100%; height:100%; min-height:0; min-width:0; object-fit:contain; position:absolute; inset:0; }
.gallery-frame video { cursor:auto; }
.gallery-slide figcaption { font-size:11px; color:#9cb4ca; padding:13px 17px; min-height:43px; overflow-wrap:anywhere; line-height:1.5; }
.gallery-controls { display:flex; gap:10px; align-items:center; border-top:1px solid #203347; padding:12px 14px 8px; }
.gallery-thumbnails { display:flex; flex:1; min-width:0; gap:8px; padding:4px; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#34516a transparent; }
.gallery-thumbnail { position:relative; flex:0 0 76px; height:52px; padding:0; overflow:hidden; border:2px solid #30485e; border-radius:7px; background:#102234; color:#87a9c2; cursor:pointer; }
.gallery-thumbnail:hover { border-color:#7bb6d7; }
.gallery-thumbnail[aria-current="true"] { border-color:#27c4ff; box-shadow:0 0 0 2px #27c4ff26; }
.gallery-thumbnail img,.gallery-thumbnail video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.gallery-thumbnail-fallback { position:absolute; inset:0; display:grid; place-items:center; font-size:21px; }
.gallery-thumbnail-kind { position:absolute; bottom:3px; right:3px; display:grid; place-items:center; width:20px; height:17px; border-radius:4px; background:#020b16d9; color:white; font-size:10px; pointer-events:none; }
.gallery-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:5px 14px; padding:0 12px 12px; }
.gallery-footer .gallery-hint { padding:0; }
.gallery-arrow { flex:none; width:40px; height:44px; display:grid; place-items:center; border:1px solid #34516a; background:#142a3e; color:#a5ddfa; border-radius:6px; cursor:pointer; }
.gallery-arrow:disabled { opacity:.3; cursor:default; }
.gallery-count { font-size:11px; color:#a4bdd2; font-variant-numeric:tabular-nums; }
.gallery-hint { display:flex; justify-content:center; gap:10px; margin:0; padding:0 12px 11px; color:#6586a2; font-size:10px; }
.gallery-media-error { position:relative; background:#0c1520; padding:20px; margin:0; font-size:12px; color:#a6c2d8; text-align:center; }
.gallery-placeholder { aspect-ratio:16 / 11; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; }
.gallery-placeholder>span { color:#30baf6; font-size:clamp(48px,5vw,80px); font-family:Consolas,monospace; text-shadow:0 0 40px #10b6ff33; }
.gallery-placeholder p { font-size:11px; color:#799ab8; margin:0; }
.project-intro { min-width:0; padding:2px 0; }
.project-labels { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.project-status { font-size:10px; color:#7691ac; }
.project-intro h1,.project-intro h2 { font-size:clamp(25px,3vw,36px); letter-spacing:-1px; margin:18px 0 13px; line-height:1.15; overflow-wrap:anywhere; }
.project-summary { color:#9eb4cb; font-size:13px; line-height:1.75; margin:0; overflow-wrap:anywhere; }
.project-offer { border:1px solid #294158; background:linear-gradient(120deg,#122637,#101b28); padding:19px; border-radius:11px; margin-top:24px; }
.offer-caption { display:block; color:#8faec9; font-size:10px; letter-spacing:.4px; margin-bottom:12px; }
.project-price { display:block; font-size:30px; font-weight:700; letter-spacing:-.8px; color:#e5f4ff; margin-bottom:16px; }
.project-proof { display:flex; flex-wrap:wrap; gap:28px; margin:0 0 20px; }
.project-proof>span { font-size:13px; }
.project-proof small { display:block; color:#7f9db8; font-size:10px; margin-top:4px; }
.rating-star { color:#edc365; }
.purchase-button { display:flex; justify-content:space-between; width:100%; }
.offer-note { font-size:10px; color:#7c98b2; line-height:1.6; margin:12px 0 0; }
.project-actions { display:flex; flex-direction:column; gap:9px; }
.project-actions .button { justify-content:center; text-align:center; }
.demo-note { font-size:12px; color:#8ab8d7; line-height:1.8; border:1px solid #234059; background:#112538; border-radius:9px; padding:15px; margin-top:24px; }
.demo-note>span { color:#30bcff; margin-right:4px; }
.project-website { margin-top:14px; font-size:11px; }
.project-tabs { display:flex; gap:26px; border-bottom:1px solid #293d52; margin:30px 0 24px; overflow:auto; }
.project-tabs a { padding:14px 0; color:#7895ae; font-size:12px; font-weight:600; white-space:nowrap; border-bottom:2px solid transparent; text-decoration:none; }
.project-tabs a.active { color:#75d1ff; border-color:#24b6ff; }
.project-tabs a span { margin-left:5px; color:#84a9c7; background:#192c3f; border-radius:4px; padding:2px 5px; font-size:9px; }
.project-specs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:0 0 26px; }
.project-specs dt { font-size:10px; color:#6f90ab; margin-bottom:6px; }
.project-specs dd { font-size:12px; color:#b6d1e5; margin:0; overflow-wrap:anywhere; }
.project-pane h3 { font-size:18px; margin:0 0 20px; }
.project-description { max-width:none; font-size:14px; overflow-wrap:anywhere; }
.project-description img,.project-description video { max-width:100%; }
.project-resources { display:grid; gap:10px; margin:18px 0; }
.project-resources>a { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:17px; background:#121f2e; border:1px solid #293c50; border-radius:10px; text-decoration:none; }
.project-resources strong { font-size:13px; color:#c4def0; }
.project-resources p { margin:6px 0 0; font-size:11px; color:#8daac2; overflow-wrap:anywhere; }
.project-resources>a>span { color:#36b7f4; }
.project-loading { min-height:270px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:30px; font-size:13px; color:#9ec4df; text-align:center; }
.project-loading h2 { font-size:20px; margin:0; }
.project-loading p { margin:0; }
.project-loading-dot { width:25px; height:25px; border:2px solid #22445d; border-top-color:#22baff; border-radius:50%; animation:project-spin .8s linear infinite; }
@keyframes project-spin { to { transform:rotate(360deg); } }
.project-details a:focus-visible,.project-details button:focus-visible,.gallery-track:focus-visible,.project-close:focus-visible { outline:2px solid #43c2ff; outline-offset:4px; }
.project-offer-editor [data-offer-types] { margin-top:20px; }
.gallery-editor-heading { display:flex; align-items:start; justify-content:space-between; gap:20px; margin-bottom:21px; }
.gallery-editor-heading h2 { margin-bottom:10px; }
.gallery-editor-heading p { margin:0; max-width:560px; line-height:1.7; }
.gallery-editor-count { flex-shrink:0; border:1px solid #2b506a; background:#102c3e; color:#77d2ff; padding:7px 10px; border-radius:7px; font-size:11px; font-variant-numeric:tabular-nums; margin-top:4px; }
.gallery-editor-list { display:grid; gap:15px; margin-bottom:18px; }
.gallery-editor-row { min-width:0; padding:18px; border:1px solid #2b4358; border-radius:12px; background:linear-gradient(125deg,#112132,#0d1825); }
.gallery-row-heading { display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.gallery-row-number { display:grid; place-items:center; min-width:30px; height:29px; border:1px solid #245779; border-radius:7px; color:#4ac9ff; background:#103049; font-size:11px; font-weight:700; }
.gallery-row-kind { color:#91bddb; font-size:11px; }
.gallery-row-actions { display:flex; gap:6px; margin-left:auto; }
.gallery-row-actions button { border:1px solid #334b60; border-radius:6px; background:#17293b; color:#b5cfe2; min-width:33px; min-height:32px; padding:4px 9px; cursor:pointer; font-size:12px; }
.gallery-row-actions button:disabled { opacity:.3; cursor:default; }
.gallery-row-actions button:hover:enabled { background:#203e57; }
.gallery-row-actions .gallery-row-remove { color:#f1a5ab; border-color:#5b3446; background:#30202c; font-size:10px; }
.gallery-row-fields { display:grid; grid-template-columns:160px minmax(0,1fr); gap:15px; }
.gallery-editor-row label { font-size:11px; color:#a5c3da; }
.gallery-editor-row input,.gallery-editor-row select,.gallery-editor-row textarea { font-size:12px; background:#09131f; }
.gallery-editor-row>label { margin-bottom:0; }
.gallery-editor-row textarea { resize:vertical; min-height:62px; }
.gallery-editor-empty { padding:25px; margin:0 0 17px; background:#0c1c2b; border:1px dashed #315673; border-radius:10px; color:#83aac8; text-align:center; font-size:12px; }
.gallery-add-button { font-size:12px; }
.gallery-add-button:disabled { opacity:.45; cursor:default; }
.gallery-undo-button { margin-left:15px; border:0; background:none; color:#85cbed; font-size:11px; cursor:pointer; }
.gallery-editor-status { margin:12px 0 0; min-height:16px; font-size:11px; }
.gallery-editor-help { margin:14px 0 0; line-height:1.7; font-size:11px; }
.gallery-slide figcaption>span { display:block; white-space:pre-wrap; }
.gallery-youtube { width:100%; height:100%; position:absolute; inset:0; background:radial-gradient(ellipse at center,#232e43,#08131f); }
.gallery-youtube-start { width:100%; height:100%; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:13px; padding:18px; border:0; background:none; color:#b7d3e7; cursor:pointer; }
.youtube-play-icon { display:grid; place-items:center; width:66px; height:46px; border-radius:13px; border:1px solid #96504d; background:#a73236; color:white; font-size:21px; padding-left:3px; }
.gallery-youtube-start strong { font-size:13px; }
.gallery-youtube-start>span:last-child { font-size:10px; color:#809eb9; }
.gallery-youtube iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.gallery-youtube-link { display:inline-block; margin-top:9px; font-size:10px; color:#71c9f5; }
.gallery-frame.is-loading::after { content:'Carregando mídia…'; color:#7fa8c9; font-size:11px; position:relative; pointer-events:none; }
@media(max-width:760px) {
  .project-dialog { width:calc(100vw - 20px); max-height:calc(100dvh - 20px); border-radius:14px; }
  .project-dialog-bar { padding:10px 16px; }
  .project-details { padding:20px; }
  .project-overview { grid-template-columns:minmax(0,1fr); gap:23px; }
  .gallery-frame { aspect-ratio:16 / 9; }
  .gallery-controls { gap:5px; padding:10px 8px 8px; }
  .gallery-thumbnail { flex-basis:68px; height:48px; }
  .gallery-placeholder { aspect-ratio:16 / 8; }
  .project-intro h1,.project-intro h2 { font-size:29px; }
  .project-tags { margin-bottom:18px; }
  .project-offer { margin-top:18px; }
  .project-tabs { gap:22px; margin-top:23px; }
  .project-specs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gallery-editor-heading { flex-direction:column; gap:10px; }
  .gallery-row-fields { grid-template-columns:minmax(0,1fr); gap:0; }
  .gallery-editor-row { padding:14px; }
  .gallery-row-kind { font-size:10px; }
  .gallery-row-actions button { min-height:38px; }
  .gallery-undo-button { margin:13px 0 0; display:block; }
}
@media(prefers-reduced-motion:reduce) { .project-dialog[open] { animation:none; } .project-loading-dot { animation:none; } }

.project-view-count{font-size:.8rem;display:flex;align-items:center;gap:.4rem;margin:.6rem 0;color:var(--muted,#91a8bd)}
 .project-download-stats{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px;min-width:0}.project-download-stats[hidden]{display:none}.project-download-badge{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:6px 9px;border:1px solid #29495a;border-radius:7px;background:#112c374d;font-size:11px;line-height:1.4;color:#bce6ef}.project-download-badge:hover{color:#fff;border-color:#36bde5}.project-download-badge svg{flex:none;width:15px;height:15px;color:#68d7ef}.project-download-badge[data-platform="CURSEFORGE"] svg{color:#ffaf81}.project-download-badge[data-platform="MODRINTH"] svg{color:#7be2a1}.project-download-badge.download-unavailable{color:#91a8bd;border-color:#293c4d}.card .project-download-stats{margin-bottom:17px}.card .project-download-badge{font-size:10px;padding:5px 8px}
