:root {
    --tga-ink: #1a1214;
    --tga-paper: #fffbfc;
    --tga-blush: #ffb3ba;
    --tga-rose: #ffc7ce;
    --tga-hot: #ff69b4;
    --tga-header-h: 100px;
    --tga-page-w: 1120px;
    --tga-text: #1a1214;
    --tga-muted: #5c454c;
}

@media (max-width: 768px) {
    :root { --tga-header-h: 76px; }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html { scroll-padding-top: var(--tga-header-h); }

body {
    margin: 0;
    padding-top: var(--tga-header-h);
    background: var(--tga-paper);
    color: var(--tga-text);
    font-family: "Droid Serif", Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

img, video, iframe { max-width: 100%; height: auto; }

a { color: var(--tga-ink); }

a:not(.tgaBtn) {
    text-decoration: none;
    background-image: linear-gradient(var(--tga-ink), var(--tga-ink));
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.2s ease;
}

a:not(.tgaBtn):hover,
a:not(.tgaBtn):focus-visible { background-size: 100% 2px; }

h1, h2, h3, h4 {
    font-family: Inconsolata, ui-monospace, monospace;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 0.6rem; }

h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0 0 0.75rem; }

p { margin: 0 0 0.9rem; }

.tgaWrap {
    width: min(var(--tga-page-w), calc(100% - 32px));
    margin: 0 auto;
}

.tgaHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--tga-header-h);
    background: var(--tga-paper);
    border-bottom: 4px solid var(--tga-ink);
}

.tgaHeader a,
.tgaHeader a:visited { color: var(--tga-ink); background-image: none; }

.tgaHeader-row {
    min-height: var(--tga-header-h);
    display: flex;
    align-items: center;
    gap: 16px;
}

.tgaHeader-logo { display: flex; align-items: center; flex: 0 0 auto; }

.tgaHeader-logo img {
    width: 180px;
    height: auto;
    display: block;
}

.tgaNav { display: flex; gap: 18px; align-items: center; }

.tgaNav a {
    font-family: Inconsolata, ui-monospace, monospace;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 0;
}

.tgaBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    background: var(--tga-ink);
    color: var(--tga-paper);
    border: 3px solid var(--tga-ink);
    box-shadow: 4px 4px 0 var(--tga-hot);
    font-family: Inconsolata, ui-monospace, monospace;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    background-image: none;
}

a.tgaBtn,
a.tgaBtn:visited,
.tgaBtn:visited { color: var(--tga-paper); background-image: none; }

.tgaBtn:hover,
.tgaBtn:focus-visible {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--tga-hot);
    color: var(--tga-paper);
}

.tgaBtn-ghost {
    background: var(--tga-paper);
    color: var(--tga-ink);
}

a.tgaBtn-ghost,
a.tgaBtn-ghost:visited,
a.tgaBtn-ghost:hover,
a.tgaBtn-ghost:focus-visible,
a.tgaBtn-ghost:active {
    color: var(--tga-ink);
    background-color: var(--tga-paper);
}

a.tgaBtn-ghost:hover,
a.tgaBtn-ghost:focus-visible {
    background-color: var(--tga-blush);
}

.tgaBurger {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 3px solid var(--tga-ink);
    background: var(--tga-blush);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.tgaBurger span {
    display: block;
    width: 18px;
    height: 3px;
    background: var(--tga-ink);
}

@media (min-width: 901px) {
    .tgaNav { order: 1; }
    .tgaHeader-logo { order: 2; margin-left: auto; margin-right: auto; }
    .tgaHeader-cta { order: 3; }
    .tgaBurger { order: 4; margin-left: 0; }
}

@media (max-width: 900px) {
    .tgaHeader-logo img { width: 120px; }
    .tgaNav, .tgaHeader-cta { display: none; }
}

.tgaOverlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(26, 18, 20, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.tgaDrawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 210;
    width: min(85vw, 400px);
    background: var(--tga-paper);
    border-left: 4px solid var(--tga-ink);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0.3s;
    padding: 72px 8px 32px;
}

.tgaDrawer a {
    display: block;
    padding: 14px 20px;
    font-family: Inconsolata, ui-monospace, monospace;
    font-weight: 700;
    font-size: 1.15rem;
    background-image: none;
}

.tgaDrawer-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 3px solid var(--tga-ink);
    background: var(--tga-blush);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

body.tgaIs-locked { overflow: hidden; }

body.tgaIs-locked .tgaOverlay { opacity: 1; visibility: visible; }

body.tgaIs-locked .tgaDrawer { visibility: visible; transform: translateX(0); }

.tgaHero {
    background: var(--tga-blush);
    border-bottom: 4px solid var(--tga-ink);
    padding: 36px 0 42px;
}

.tgaHero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    gap: 32px;
    align-items: start;
}

.tgaHero p { max-width: 40rem; }

.tgaDevice {
    background: var(--tga-ink);
    border: 4px solid var(--tga-ink);
    border-radius: 28px;
    padding: 12px 12px 16px;
    box-shadow: 8px 8px 0 var(--tga-hot);
}

.tgaDevice-notch {
    width: 72px;
    height: 10px;
    margin: 0 auto 10px;
    background: var(--tga-paper);
    border-radius: 0 0 8px 8px;
}

.tgaDevice-screen {
    aspect-ratio: 9 / 16;
    background: #2a1c22;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tgaDevice-screen img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tgaSpine { padding: 48px 0 20px; }

.tgaSpine .tgaWrap { position: relative; }

.tgaSpine .tgaWrap::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 18px;
    width: 4px;
    background: var(--tga-ink);
}

.tgaNode,
.tgaNode:nth-child(odd),
.tgaNode:nth-child(even) {
    width: auto;
    margin: 0 0 28px 40px;
    position: relative;
    min-width: 0;
}

.tgaNode > .tgaCard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.tgaNode > .tgaCard > :not(.tgaRank) { grid-column: 1 / -1; }

.tgaNode time {
    font-family: Inconsolata, ui-monospace, monospace;
    font-weight: 700;
    display: inline-block;
    background: var(--tga-hot);
    color: var(--tga-ink);
    padding: 2px 8px;
    margin-bottom: 8px;
}

.tgaCard {
    position: relative;
    background: var(--tga-paper);
    border: 3px solid var(--tga-ink);
    border-radius: 6px;
    padding: 18px 18px 16px;
    min-width: 0;
}

.tgaCard::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 18px 18px 0;
    border-style: solid;
    border-color: var(--tga-paper) var(--tga-paper) var(--tga-ink) var(--tga-ink);
}

.tgaRank {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 16px;
}

.tgaRank-mark {
    font-family: Inconsolata, ui-monospace, monospace;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.tgaRank-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 22%;
    background: var(--tga-rose);
}

.tgaStill {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    margin: 10px 0;
    background: var(--tga-rose);
}

.tgaFacts {
    font-family: Inconsolata, ui-monospace, monospace;
    font-size: 0.92rem;
    margin: 0 0 10px;
}

.tgaActions { display: flex; flex-wrap: wrap; gap: 10px; }

.tgaTable-wrap { overflow-x: auto; max-width: 100%; margin: 12px 0 4px; }

.tgaTable {
    width: 100%;
    border-collapse: collapse;
    font-family: Inconsolata, ui-monospace, monospace;
    font-size: 0.92rem;
}

.tgaTable th,
.tgaTable td {
    border: 2px solid var(--tga-ink);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.tgaTable th { background: var(--tga-blush); }

.tgaPkg { overflow-wrap: anywhere; display: block; }

.tgaFaq-item { border-top: 3px solid var(--tga-ink); }

.tgaFaq-item:last-child { border-bottom: 3px solid var(--tga-ink); }

.tgaFaq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 14px 4px;
    font-family: Inconsolata, ui-monospace, monospace;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    min-height: 44px;
}

.tgaFaq-a { padding: 0 4px 12px; }

.tgaCta {
    background: var(--tga-ink);
    color: var(--tga-paper);
    padding: 36px 0;
}

.tgaCta h2, .tgaCta p { color: var(--tga-paper); }

.tgaCta a:not(.tgaBtn) { color: var(--tga-blush); background-image: linear-gradient(var(--tga-blush), var(--tga-blush)); }

.tgaPage { padding: 36px 0 56px; }

.tgaPage-measure { max-width: 760px; }

.tgaSteps { padding-left: 1.2rem; }

.tgaSteps li { margin: 0 0 0.8rem; }

.tgaForm { display: grid; gap: 12px; margin: 16px 0 28px; }

.tgaForm label { font-family: Inconsolata, ui-monospace, monospace; font-weight: 700; }

.tgaForm input,
.tgaForm textarea {
    width: 100%;
    border: 3px solid var(--tga-ink);
    background: var(--tga-paper);
    color: var(--tga-ink);
    font: inherit;
    padding: 10px 12px;
    min-height: 44px;
}

.tgaForm textarea { min-height: 140px; }

.tgaAddress {
    border: 3px solid var(--tga-ink);
    padding: 16px;
    background: var(--tga-rose);
}

.tgaMonth {
    font-family: Inconsolata, ui-monospace, monospace;
    margin: 24px 0 8px;
}

.tgaFeed { list-style: none; margin: 0; padding: 0; }

.tgaFeed li {
    border-bottom: 2px solid var(--tga-ink);
    padding: 12px 0;
    min-width: 0;
}

.tgaFeed a { font-family: Inconsolata, ui-monospace, monospace; font-weight: 700; font-size: 1.15rem; }

.tgaGlossary dt {
    font-family: Inconsolata, ui-monospace, monospace;
    font-weight: 700;
    margin-top: 14px;
}

.tgaFooter-band {
    background: var(--tga-hot);
    border-top: 4px solid var(--tga-ink);
    padding: 22px 0;
}

.tgaFooter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: center;
}

.tgaFooter-links a,
.tgaFooter-links button {
    font-family: Inconsolata, ui-monospace, monospace;
    font-weight: 700;
    background: none;
    border: 0;
    padding: 8px 0;
    cursor: pointer;
    color: var(--tga-ink);
    font-size: 1rem;
}

.tgaFooter-legal {
    background: var(--tga-ink);
    color: var(--tga-paper);
    padding: 22px 0 28px;
    font-size: 0.92rem;
}

.tgaFooter-legal a,
.tgaFooter-legal a:visited { color: var(--tga-blush); }

.tgaFooter-legal p { margin: 0 0 0.5rem; }

.tgaCookie {
    display: none;
}

.tgaCookie:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: fixed;
    z-index: 110;
    right: 16px;
    bottom: 16px;
    width: min(360px, calc(100% - 24px));
    background: var(--tga-paper);
    color: var(--tga-ink);
    border: 3px solid var(--tga-ink);
    padding: 16px;
    box-shadow: none;
}

.tgaCookie p { margin: 0; }

.tgaCookie .tgaBtn { box-shadow: none; }

@media (max-width: 768px) {
    .tgaHero-grid { grid-template-columns: 1fr; }
    .tgaHero .tgaBtn, .tgaCta .tgaBtn, .tgaActions .tgaBtn { width: 100%; }
    .tgaSpine .tgaWrap::before { left: 16px; }
    .tgaNode, .tgaNode:nth-child(odd), .tgaNode:nth-child(even) {
        width: auto;
        margin-left: 36px;
        margin-right: 0;
    }
    .tgaNode > .tgaCard { grid-template-columns: 1fr; }
    .tgaRank { grid-template-columns: 1fr; }
    .tgaTable { min-width: 560px; }
    .tgaCookie:not([hidden]) { left: 12px; right: 12px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .tgaNode.tgaIs-in { animation: none; }
}

.tgaNode.tgaIs-in { animation: tgaK-blur 0.5s ease both; }

@keyframes tgaK-blur {
    from { filter: blur(8px); opacity: 0; }
    to { filter: blur(0); opacity: 1; }
}
