/* Tutorial pages (/guias). Same Discord-native tokens as the lobby: #1e1f22 page, #313338 windows, #5865f2 blurple. */
:root {
  --bg: #1e1f22;
  --card: #313338;
  --card-2: #2b2d31;
  --text: #f2f3f5;
  --muted: #b5bac1;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --amber: #fbbf24;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #8ea1ff; text-underline-offset: 3px; }
a:hover { color: #b3c0ff; }
:focus-visible { outline: 2px solid #00a8fc; outline-offset: 2px; border-radius: 4px; }
.g-wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

.g-top { border-bottom: 1px solid #111214; background: var(--bg); position: sticky; top: 0; z-index: 10; }
.g-top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.g-logo { display: flex; }
.g-top-left { display: flex; align-items: center; gap: 28px; }
.g-menu { display: flex; align-items: center; gap: 20px; }
.g-menu a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.g-menu a:hover { color: #fff; text-decoration: underline; }
.g-cta-sm { background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 16px; border-radius: 4px; }
.g-cta-sm:hover { background: var(--accent-hover); color: #fff; }

.g-article { padding: 32px 0 64px; }
.g-article > h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15; margin: 8px 0 12px; max-width: 24ch; text-wrap: balance; }
.g-lead { color: var(--muted); font-size: 19px; max-width: 62ch; margin: 0 0 32px; }
.g-crumbs { font-size: 14px; color: var(--muted); }
.g-crumbs a { color: var(--muted); }

.g-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; max-width: 860px; }
.g-step { background: var(--card); border-radius: 8px; padding: 24px; }
.g-step h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 22px; line-height: 1.3; }
.g-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 17px; }
.g-step p { margin: 0 0 16px; color: #dbdee1; }
.g-step b { color: #fff; }
.g-step figure { margin: 0; }
.g-step img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid #111214; background: #1e1f22; }

.g-tips { max-width: 860px; margin: 28px 0 0; background: var(--card-2); border-left: 4px solid var(--amber); border-radius: 4px; padding: 16px 20px; }
.g-tips h2 { margin: 0 0 6px; font-size: 18px; }
.g-tips ul { margin: 0; padding-left: 20px; color: #dbdee1; }
.g-tips li + li { margin-top: 6px; }

.g-next { margin-top: 48px; }
.g-next h2 { font-size: 22px; margin: 0 0 16px; }
.g-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.g-grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); max-width: 860px; }
.g-card { display: flex; flex-direction: column; background: var(--card); border-radius: 8px; overflow: hidden; color: var(--text); text-decoration: none; transition: transform .15s ease, background .15s ease; }
.g-card:hover { background: #3a3c42; transform: translateY(-2px); color: var(--text); }
.g-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #1e1f22; }
.g-card > span { padding: 12px 16px; font-weight: 600; }
.g-card-body { display: flex; flex-direction: column; gap: 4px; }
.g-card-body small { color: var(--muted); font-weight: 400; font-size: 14px; line-height: 1.5; }

.g-banner { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--card); border-radius: 8px; padding: 24px; max-width: 860px; }
.g-banner div { display: flex; flex-direction: column; }
.g-banner span { color: var(--muted); font-size: 15px; }
.g-cta { background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 24px; border-radius: 4px; }
.g-cta:hover { background: var(--accent-hover); color: #fff; }
.g-article > .g-banner:last-child { max-width: none; }

.g-legal { max-width: 860px; }
.g-legal > h1 { max-width: none; }
.g-legal h2 { font-size: 22px; margin: 32px 0 8px; }
.g-legal p, .g-legal li { color: #dbdee1; }
.g-legal ul, .g-legal ol { padding-left: 22px; }
.g-legal li + li { margin-top: 6px; }
.g-updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.g-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.g-table th, .g-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #111214; vertical-align: top; }
.g-table th { color: var(--muted); font-weight: 600; background: var(--card-2); }
.g-table code { background: var(--card-2); padding: 1px 6px; border-radius: 4px; }
.g-faq details { background: var(--card); border-radius: 8px; margin: 0 0 12px; }
.g-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: '+'; color: var(--muted); font-size: 22px; line-height: 1; }
.g-faq details[open] summary::after { content: '\2212'; }
.g-faq details p { margin: 0; padding: 0 20px 18px; color: #dbdee1; }
.g-foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-bottom: 10px; }
.g-foot-topics { margin-bottom: 4px; }
.g-legal figure { margin: 20px 0; }
.g-fig-small { text-align: center; }
.g-fig-small img { width: auto !important; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid #111214; }
.g-legal figure img { width: 100%; height: auto; border-radius: 6px; border: 1px solid #111214; display: block; }
.g-legal .g-banner { margin-top: 40px; }
.g-foot-links a { color: var(--muted); }
.g-foot { border-top: 1px solid #111214; padding: 24px 0; color: var(--muted); font-size: 14px; text-align: center; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .g-step { padding: 16px; }
  .g-step h2 { font-size: 19px; }
  .g-top-in { height: 56px; }
}

/* Numbered actions: same amber badges as the markers drawn on the pictures, so "1" in the text is "1" in the image. */
.g-sub { list-style: none; counter-reset: sub; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.g-sub li { counter-increment: sub; display: flex; align-items: flex-start; gap: 12px; color: #dbdee1; }
.g-sub li::before { content: counter(sub); flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: #fbbf24; color: #1e1f22; font: 700 14px/26px Arial, sans-serif; text-align: center; }
.g-sub b { color: #fff; }
.g-note { margin: 0 0 16px; color: #b5bac1; font-size: 15px; }
.g-legal figcaption { margin-top: 8px; color: #b5bac1; font-size: 14px; text-align: center; }
