:root { --ag-green: #a9dcba; --ag-amber: #efc583; }
.ag-article .tut-hero { padding-bottom: 1.8rem; }
.ag-article .tut-hero h1 { max-width: 900px; font-size: clamp(2.6rem, 5.6vw, 4.6rem); letter-spacing: -.045em; line-height: 1.08; }
.ag-article .tut-hero-sub { max-width: 680px; font-size: 1.16rem; line-height: 1.8; color: #c2c2d2; }
.ag-article h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); letter-spacing: -.025em; }
.ag-article .tip { display: inline-block; }
.ag-article .tip:focus-visible { outline: 2px solid var(--ag-green); outline-offset: 3px; }
.ag-article .tip::after { max-width: min(280px, calc(100vw - 48px)); margin-left: var(--ag-tip-shift, 0px); }
.ag-gallery { background: #12121b; border: 1px solid #363348; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 65px #0003; margin-top: 2rem; margin-bottom: 3rem; }
.ag-gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.7rem 1rem; background: linear-gradient(120deg, #252034 0%, #171921 75%); }
.ag-overline { display: block; color: #aba0c6; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.ag-gallery .widget-title { margin: .5rem 0 0; font-size: 1.28rem; font-weight: 600; letter-spacing: -.02em; color: #f0edf6; text-transform: none; display: block; }
.ag-gallery .widget-title::before { content: none; }
.ag-real-label { display: inline-flex; align-items: center; gap: .5rem; font-size: .7rem; color: #b7e2c5; white-space: nowrap; }
.ag-real-label::before { content: ''; width: 6px; height: 6px; border-radius: 100%; background: #98d8ae; }
.ag-controls { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.ag-gallery-buttons { padding: .9rem 1.7rem 1.1rem; margin: 0; border-bottom: 1px solid #302d3d; }
.ag-controls button { font: inherit; font-size: .82rem; color: #b9b6cd; background: #1b1a25; border: 1px solid #3b374c; border-radius: 8px; padding: .7rem 1.05rem; cursor: pointer; line-height: 1.3; }
.ag-controls button:hover { background: #2a2538; color: #eeeaf8; border-color: #7b6d99; }
.ag-controls button[aria-pressed="true"] { color: #e5f6ea; background: #23362c; border-color: #749c82; }
.ag-controls button:focus-visible, .ag-fullsize:focus-visible, .ag-details summary:focus-visible { outline: 2px solid var(--ag-green); outline-offset: 4px; }
#ag-shot-link { display: block; padding: 1rem; background: #0b0c11; }
#ag-shot-link:focus-visible { outline: 2px solid var(--ag-green); outline-offset: -5px; }
#ag-app-shot { display: block; width: 100%; height: auto; max-width: 940px; margin: 0 auto; border-radius: 7px; border: 1px solid #434042; }
.ag-gallery figcaption { margin: 0; padding: 0; }
.ag-article #ag-app-caption { margin: 0; padding: 1.25rem 1.7rem 0; color: #c5c0d4; font-size: .92rem; line-height: 1.75; }
.ag-shot-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; padding: 1.4rem 1.7rem; }
.ag-shot-notes > div { border-top: 1px solid #363147; padding-top: .8rem; }
.ag-shot-notes span { color: #acd1b6; font: .68rem var(--mono); }
.ag-article .ag-shot-notes p { margin: .5rem 0 0; font-size: .79rem; line-height: 1.7; color: #b2adc5; }
.ag-fullsize { display: inline-block; color: #c8b5ef; font-size: .78rem; margin: 0 1.7rem 1.5rem; text-decoration: none; }
.ag-fullsize:hover { color: #f3e8ff; text-decoration: underline; }
.ag-screenshot { margin: 2rem 0; border: 1px solid #363348; border-radius: 14px; overflow: hidden; background: #15141d; }
.ag-screenshot img { width: 100%; height: auto; display: block; }
.ag-screenshot figcaption { color: #bcb6cc; font-size: .84rem; line-height: 1.75; padding: 1.1rem 1.3rem; }
.ag-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #373248; border: 1px solid #373248; border-radius: 16px; overflow: hidden; margin: 1.7rem 0; }
.ag-stat-grid > div { min-width: 0; padding: 1.45rem; background: linear-gradient(155deg, #201d2c, #14161d); }
.ag-stat-label { color: #b5abc9; font-size: .74rem; }
.ag-stat-grid strong { display: block; margin: .8rem 0 1rem; color: #c4e7ce; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.035em; line-height: 1; font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-stat-grid strong span { font-size: .83rem; margin-left: .35rem; font-weight: 400; color: #a9b9ae; letter-spacing: 0; }
.ag-article .ag-stat-grid p { font-size: .75rem; color: #b3afc2; margin: 0; line-height: 1.8; }
.ag-details { padding: 1rem 1.15rem; border: 1px solid #312c42; border-radius: 9px; background: #15131d; margin: 1.5rem 0; }
.ag-details summary { color: #cbbbe7; font-size: .86rem; cursor: pointer; line-height: 1.6; }
.ag-details[open] summary { margin-bottom: .8rem; }
.ag-article .ag-details p { font-size: .86rem; line-height: 1.8; color: #bcb6cd; margin: .7rem 0 0; }
.ag-end-link { margin: 2rem 0 5rem; padding-top: 1.5rem; border-top: 1px solid var(--tut-border); }
.ag-article .sources { font-size: .78rem; }
@media (max-width: 900px) { .ag-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ag-article .tut-hero-sub { font-size: 1.05rem; }
  .ag-gallery-header { padding: 1.2rem 1rem .8rem; align-items: start; }
  .ag-gallery .widget-title { font-size: 1.05rem; }
  .ag-real-label { font-size: .6rem; white-space: normal; text-align: right; max-width: 80px; }
  .ag-overline { font-size: .59rem; }
  .ag-gallery-buttons { padding: .8rem 1rem 1rem; }
  .ag-controls button { padding: .65rem .7rem; font-size: .75rem; }
  #ag-shot-link { padding: .45rem; }
  .ag-article #ag-app-caption { padding: 1rem 1rem 0; font-size: .84rem; }
  .ag-shot-notes { grid-template-columns: 1fr; padding: 1rem; gap: .75rem; }
  .ag-shot-notes > div { display: grid; grid-template-columns: 24px 1fr; gap: .5rem; align-items: baseline; }
  .ag-article .ag-shot-notes p { margin: 0; }
  .ag-fullsize { margin: 0 1rem 1.2rem; }
  .ag-stat-grid > div { padding: 1.1rem .95rem; }
  .ag-stat-grid strong { font-size: 2rem; }
  .ag-article .ag-stat-grid p { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .ag-article * { scroll-behavior: auto; } }

.ag-article h3[id] { margin: 2.1rem 0 1rem; font-size: 1.25rem; color: #ded6ee; scroll-margin-top: 100px; }
.ag-article .ag-flow { padding-left: 1.4rem; margin: 1.2rem 0; color: #c6c1d3; }
.ag-flow li { padding-left: .4rem; margin-bottom: .65rem; line-height: 1.8; }
.ag-flow li::marker { color: #a9dcba; }

.ag-hardware-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; margin-bottom: 2.5rem; }
.ag-hardware-photos .ag-screenshot { margin: 0; }
.ag-hardware-photos a { display: block; }
.ag-hardware-photos a:focus-visible { outline: 2px solid var(--ag-green); outline-offset: -4px; }
.ag-hardware-photos figcaption strong { color: #e1d8ef; font-weight: 600; }
@media (max-width: 600px) { .ag-hardware-photos { grid-template-columns: 1fr; } }

.ag-cartoon-shot { width: 100%; max-width: 800px; justify-self: center; }
.ag-cartoon-shot a { display: block; }
.ag-cartoon-shot a:focus-visible { outline: 2px solid var(--ag-green); outline-offset: -4px; }
