/* /suggest and /es/suggest: the Suggest a Game page (2026-11-09).
   Uses the "Neon, Grown Up" tokens from styles/main.css (--va-*). Pink leads,
   to match the homepage idea banner. Everything is scoped under .sg so the
   older global form rules in main.css cannot leak in. */

.sg { max-width: var(--va-max, 1200px); margin: 0 auto; padding: 28px 16px 56px; box-sizing: border-box; }
.sg *, .sg *::before, .sg *::after { box-sizing: border-box; }
/* main.css gives every <section> 60px/20px padding, a max width and auto
   margins; none of that belongs inside this page's own layout. */
.sg section { padding: 0; margin: 0; max-width: none; }
.sg section.sg-card { padding: 22px; }
body.va-page .sg h1, body.va-page .sg h2, body.va-page .sg h3 { text-align: left; }
.sg h1::before, .sg h1::after, .sg h2::before, .sg h2::after { display: none !important; }

/* Hero */
.sg-hero { display: grid; gap: 10px; margin-bottom: 26px; }
.sg-kicker { font: 600 0.75rem/1.3 var(--va-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--va-pink); }
body.va-page .sg-hero h1 { margin: 0; }
body.va-page .sg-hero p { margin: 0; max-width: 680px; color: #c3c7e6; font-size: 1.05rem; line-height: 1.55; }
.sg-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sg-stat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    background: var(--va-panel); border: 1px solid var(--va-line-2); color: var(--va-muted); font-size: 0.88rem; }
.sg-stat b { color: var(--va-text); font-weight: 600; }

/* Layout: form + how-it-works side by side on wide screens */
.sg-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .sg-top { grid-template-columns: 1fr; } }

.sg-card { background: linear-gradient(160deg, rgba(255, 95, 184, 0.10), rgba(59, 232, 255, 0.04) 60%), var(--va-panel);
    border: 1px solid rgba(255, 95, 184, 0.38); border-radius: 18px; padding: 22px;
    box-shadow: 0 12px 36px rgba(255, 95, 184, 0.08); }
.sg-side { background: var(--va-panel); border: 1px solid var(--va-line); border-radius: 18px; padding: 22px; }
body.va-page .sg-side h2 { margin: 0 0 12px; font-size: 1.15rem; }

/* Form */
.sg-field { display: grid; gap: 7px; margin-bottom: 18px; }
.sg-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    font: 600 0.95rem/1.3 var(--va-head); color: var(--va-text); }
.sg-label small { font: 400 0.8rem/1.3 var(--va-body); color: var(--va-muted); }
.sg-hint { margin: -2px 0 0; font-size: 0.84rem; color: var(--va-muted); }
body.va-page .sg-hint { color: var(--va-muted); }
.sg input[type="text"], .sg textarea {
    width: 100%; margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--va-line-2);
    background: #0c0f24; color: var(--va-text); font: 400 1rem/1.45 var(--va-body); box-shadow: none; }
.sg textarea { min-height: 120px; resize: vertical; }
.sg textarea.sg-short { min-height: 70px; }
.sg input[type="text"]:focus, .sg textarea:focus { outline: none; border-color: var(--va-pink); box-shadow: 0 0 0 3px rgba(255, 95, 184, 0.22); }
.sg input::placeholder, .sg textarea::placeholder { color: #6d7299; }
.sg-count { justify-self: end; font-size: 0.78rem; color: var(--va-muted); font-variant-numeric: tabular-nums; }
.sg-count.over { color: var(--va-pink); }

.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.sg-chips legend { padding: 0; margin-bottom: 8px; font: 600 0.95rem/1.3 var(--va-head); color: var(--va-text); }
.sg-chip { position: relative; }
.sg-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sg-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--va-line-2); background: #0c0f24; color: #c3c7e6; font-size: 0.92rem; cursor: pointer;
    transition: border-color .15s, background .15s, color .15s; }
.sg-chip input:checked + span { border-color: var(--va-pink); background: rgba(255, 95, 184, 0.16); color: var(--va-text); }
.sg-chip input:focus-visible + span { outline: 2px solid var(--va-text); outline-offset: 2px; }
.sg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .sg-row { grid-template-columns: 1fr; } }

.sg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
#sg-turnstile { min-height: 0; margin: 4px 0 14px; }
body .sg button.sg-submit {
    width: 100%; min-height: 52px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--va-pink); color: #1a0612; font: 700 1.05rem/1 var(--va-head); letter-spacing: 0; text-transform: none;
    box-shadow: none; transition: background .15s; }
body .sg button.sg-submit:hover:not(:disabled) { background: #ff86ca; transform: none; }
body .sg button.sg-submit:disabled { opacity: 0.6; cursor: progress; }
.sg-msg { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 0.95rem; line-height: 1.45; }
.sg-msg[hidden] { display: none; }
.sg-msg.err { background: rgba(255, 95, 184, 0.12); border: 1px solid rgba(255, 95, 184, 0.5); color: #ffd3ea; }
.sg-fine { margin: 12px 0 0; font-size: 0.8rem; color: var(--va-muted); line-height: 1.5; }
body.va-page .sg-fine { color: var(--va-muted); }

/* Thank-you panel */
.sg-done { text-align: center; padding: 18px 6px; }
.sg-done[hidden] { display: none; }
.sg-done-icon { width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 18px;
    background: rgba(125, 255, 178, 0.14); color: var(--va-green); border: 1px solid rgba(125, 255, 178, 0.4); font-size: 2rem; }
body.va-page .sg-done h2 { margin: 0 0 8px; text-align: center; }
body.va-page .sg-done p { margin: 0 auto 16px; max-width: 460px; color: #c3c7e6; }
.sg-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sg-btn2 { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--va-line-2); background: transparent; color: var(--va-text); font: 600 0.95rem/1 var(--va-head); text-decoration: none; }
.sg-btn2:hover { border-color: var(--va-pink); }

/* How it works */
.sg-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.sg-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: #d3d6ee; }
.sg-steps .n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
    background: rgba(59, 232, 255, 0.12); color: var(--va-cyan); font: 700 0.95rem/1 var(--va-head); }
.sg-steps b { display: block; color: var(--va-text); font-family: var(--va-head); }
.sg-steps span { font-size: 0.9rem; color: var(--va-muted); }
.sg-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.sg-safe { padding: 12px 14px; border-radius: 12px; background: rgba(125, 255, 178, 0.07); border: 1px solid rgba(125, 255, 178, 0.25);
    font-size: 0.86rem; line-height: 1.5; color: #cfeedd; }
body.va-page .sg-safe { color: #cfeedd; }
.sg-safe b { color: var(--va-green); }

/* Badges */
.sg-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
    font: 600 0.72rem/1 var(--va-body); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.sg-b-new { color: #c3c7e6; border-color: var(--va-line-2); background: rgba(255,255,255,0.03); }
.sg-b-planned { color: var(--va-cyan); border-color: rgba(59, 232, 255, 0.45); background: rgba(59, 232, 255, 0.08); }
.sg-b-building { color: var(--va-yellow); border-color: rgba(255, 225, 77, 0.45); background: rgba(255, 225, 77, 0.08); }
.sg-b-built { color: var(--va-green); border-color: rgba(125, 255, 178, 0.5); background: rgba(125, 255, 178, 0.1); text-decoration: none; }
a.sg-b-built:hover { background: rgba(125, 255, 178, 0.2); }

/* Community ideas */
.sg-list-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin: 44px 0 16px; }
body.va-page .sg-list-head h2 { margin: 0; }
.sg-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--va-panel); border: 1px solid var(--va-line); }
.sg-tabs button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--va-muted);
    font: 600 0.9rem/1 var(--va-head); cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; }
.sg-tabs button[aria-selected="true"] { background: var(--va-panel-2); color: var(--va-text); box-shadow: inset 0 0 0 1px var(--va-line-2); }
.sg-tabs button:hover { transform: none; }

.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.sg-grid > * { min-width: 0; }
@media (max-width: 400px) { .sg-grid { grid-template-columns: 1fr; } }
.sg-idea { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--va-panel);
    border: 1px solid var(--va-line); transition: border-color .15s; }
.sg-idea:hover { border-color: var(--va-line-2); }
.sg-idea.sg-mine { border-color: rgba(255, 95, 184, 0.6); box-shadow: 0 0 0 3px rgba(255, 95, 184, 0.12); }
.sg-idea-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
body.va-page .sg-idea h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; overflow-wrap: anywhere; }
.sg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-tag { font-size: 0.75rem; color: var(--va-muted); padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--va-line); }
body.va-page .sg-idea p { margin: 0; color: #c3c7e6; font-size: 0.93rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
body.va-page .sg-idea p.sg-twist { color: #e9d6ff; }
.sg-twist b { color: var(--va-pink); font-weight: 600; }
.sg-idea-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-idea-imgs img { max-width: 100%; max-height: 160px; border-radius: 10px; object-fit: cover; }
.sg-idea-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid var(--va-line); }
.sg-by { font-size: 0.8rem; color: var(--va-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
body .sg button.sg-vote { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
    border: 1px solid rgba(255, 95, 184, 0.55); background: rgba(255, 95, 184, 0.1); color: var(--va-text); cursor: pointer;
    font: 700 0.92rem/1 var(--va-head); box-shadow: none; text-transform: none; letter-spacing: 0; transition: background .15s; }
body .sg button.sg-vote:hover:not(:disabled) { background: rgba(255, 95, 184, 0.22); transform: none; }
body .sg button.sg-vote[aria-pressed="true"] { background: var(--va-pink); color: #1a0612; border-color: var(--va-pink); cursor: default; }
body .sg button.sg-vote:disabled { cursor: default; }
.sg-vote svg { width: 14px; height: 14px; }
body .sg button.sg-report { min-height: 40px; min-width: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent;
    color: #6d7299; cursor: pointer; box-shadow: none; display: inline-grid; place-items: center; }
body .sg button.sg-report:hover { color: var(--va-pink); background: rgba(255,255,255,0.04); transform: none; }
.sg-report svg { width: 16px; height: 16px; }
.sg-check { margin-top: 8px; }
.sg-check[hidden] { display: none; }
.sg-empty { grid-column: 1 / -1; padding: 34px 20px; text-align: center; border: 1px dashed var(--va-line-2); border-radius: 16px; color: var(--va-muted); }
.sg-empty b { display: block; color: var(--va-text); font-family: var(--va-head); font-size: 1.1rem; margin-bottom: 6px; }
.sg-empty a { color: var(--va-pink); }

.sg-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px);
    padding: 12px 16px; border-radius: 12px; background: var(--va-panel-2); border: 1px solid var(--va-line-2); color: var(--va-text);
    font-size: 0.92rem; box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
.sg-toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { .sg * { transition: none !important; } }
