:root {
    --gt-bg: #f5f7f5;
    --gt-dark: #1e293b;
    --gt-dark-light: #283752;

    --gt-text: #1f2937;
    --gt-muted: #6b7280;

    --gt-white: #eeeeee;
    --gt-grey: #777777;
    --gt-yellow: #d4a106;
    --gt-red: #ef4444;
    --gt-orange: #f97316;
    --gt-blue: #6fa8dc;   
    --gt-green: #3d8f42; 
    --gt-purple: #8b5fbf;
    --gt-brown: #8b5e3c; 

    --gt-radius: 12px;
    --gt-shadow: 0 4px 16px rgba(0,0,0,.08);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: var(--gt-dark);
    color: var(--gt-text);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ==========================================================
   SHARED
   ========================================================== */

.gt-home-tile,
.gt-card-image,
.gt-card-intro,
.gt-panel,
.gt-card-note {
    border-radius: var(--gt-radius);
}

.gt-color--white {
    background: var(--gt-white);
}

.gt-color--grey {
    background: var(--gt-grey);
}

.gt-color--yellow {
    background: var(--gt-yellow);
}

.gt-color--red {
    background: var(--gt-red);
}

.gt-color--orange {
    background: var(--gt-orange);
}

.gt-color--blue {
    background: var(--gt-blue);
}

.gt-color--green {
    background: var(--gt-green);
}

.gt-color--purple {
    background: var(--gt-purple);
}

.gt-color--brown {
    background: var(--gt-brown);
}

/* ==========================================================
   HEADER
   ========================================================== */

.gt-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px 16px;
    background: var(--gt-dark-light);
    color: white;
    border-bottom: 1px solid rgba(255,255,255,.15);
    text-decoration: none;
}

.gt-header:hover {
    color: white;
}

.gt-header-content {
    flex: 1;
    min-width: 0;
}

.gt-header-title {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
}

.gt-header-subtitle {
    margin-top: 4px;
    color: rgba(255,255,255,.65);
    font-size: 1rem;
    font-weight: 500;
}

.gt-header-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: white;
    font-size: 1.9rem;
}

.gt-header:hover .gt-header-icon {
    background: rgba(255,255,255,.12);
}

/* ==========================================================
   HOME
   ========================================================== */

.gt-home {
    min-height: 100vh;
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    background: var(--gt-dark);
}

.gt-home-grid {
    padding: 20px 12px 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gt-home-tile {
    overflow: hidden;
    background: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    transition: transform .15s ease;
}

.gt-home-tile:hover {
    transform: translateY(-2px);
}

.gt-home-tile:active {
    transform: scale(.98);
}

.gt-home-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gt-home-color {
    height: 6px;
}

.gt-home-tile-title {
    padding: 8px 12px;
    text-align: center;
    color: var(--gt-text);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ==========================================================
   HOME FOOTER
   ========================================================== */

.gt-home-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.2);
}

.gt-home-footer a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: 0.9rem;
}

.gt-home-footer a:hover {
    color: white;
}

.gt-home-footer-separator {
    color: rgba(255,255,255,.25);
    transform: translateY(-3px);
}

.gt-home-footer-domain {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    font-size: 0.75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gt-home-footer-domain a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
}

.gt-home-footer-domain a:hover {
    color: rgba(255,255,255,.65);
}


/* ==========================================================
   DETAIL
   ========================================================== */

.gt-page {
    min-height: 100vh;
    max-width: 720px;
    margin: 0 auto;
}

.gt-card-detail {
    background: var(--gt-dark);
    box-shadow: var(--gt-shadow);
}

/* ==========================================================
   INTRO
   ========================================================== */

.gt-card-intro {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 8px 6px 8px;
    padding: 6px 14px;
    color: white;
    font-size: 1.05rem;
    line-height: 1.2;
}

.gt-card-intro--yellow {
    color: #111;
}

.gt-card-intro i,
.gt-card-note i {
    flex-shrink: 0;
    opacity: .8;
}

.gt-card-intro i {
    font-size: 1.2rem;
}

/* ==========================================================
   CONTENT
   ========================================================== */

.gt-card-image {
    width: calc(100% - 16px);
    margin: 0 8px;
}

.gt-card-description {
    margin: 6px 8px;
    color: var(--gt-white);
    font-size: .9rem;
    line-height: 1.4;
}

.gt-card-description strong {
    color: var(--gt-white);
}

/* ==========================================================
   PANELS
   ========================================================== */

.gt-card-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 2px 8px 0;
}

.gt-card-panels--single {
    grid-template-columns: 1fr;
}

.gt-panel {
    padding: 8px 12px;
}

.gt-panel h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
}

.gt-panel h2 i {
    flex-shrink: 0;
}

.gt-panel--success {
    background: #f0fdf4;
    border: 2px solid #86efac;
}

.gt-panel--success h2 {
    color: #15803d;
}

.gt-panel--info {
    background: #eff6ff;
    border: 2px solid #93c5fd;
}

.gt-panel--info h2 {
    color: #2563eb;
}

.gt-panel--warning {
    background: #fff7ed;
    border: 2px solid #fdba74;
}

.gt-panel--warning h2 {
    color: #ea580c;
}

.gt-panel--danger {
    background: #fef2f2;
    border: 2px solid #fca5a5;
}

.gt-panel--danger h2 {
    color: #dc2626;
}

.gt-panel--neutral {
    background: #f3f4f6;
    border: 2px solid #d1d5db;
}

.gt-panel--neutral h2 {
    color: #4b5563;
}

.gt-panel-content,
.gt-option {
    font-size: .95rem;
    line-height: 1.5;
}

.gt-option + .gt-option {
    margin-top: 6px;
}

.gt-panel-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.08);
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.4;
}

/* ==========================================================
   NOTE
   ========================================================== */

.gt-card-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px;
    padding: 8px 12px;
    border: 2px solid #f4d58d;
    background: #fff8e6;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ==========================================================
   RULE FOOTER
   ========================================================== */

.gt-card-footer {
    background: var(--gt-dark);
    color: white;
    border-top: 1px solid rgba(255,255,255,.2);
    margin-top: 16px;
}

.gt-card-rule {
    background: var(--gt-dark-light);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px 16px;
    text-decoration: none;
}

.gt-card-rule-icon {
    font-size: 2rem;
    opacity: .9;
}

.gt-footer-label {
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .65;
}

    .gt-footer-label.label-big {
        font-size: 1rem;
        opacity: .9;
        margin-bottom: 2px;
    }

.gt-rule-title {
    font-size: 1rem;
    font-weight: 600;
}
    .gt-rule-title.title-small {
        font-size: 0.7rem;
        font-weight: 400;
        opacity: .7;
    }


.gt-card-rule i:last-child {
    margin-left: auto;
    opacity: .45;
}

/* ==========================================================
   HELP PAGE
   ========================================================== */

.gt-help-page {
    background: var(--gt-dark);
    min-height: 100vh;
}

.gt-help-content {
    padding: 28px 16px;
    color: rgba(255,255,255,.9);
    line-height: 1.7;
}

.gt-help-content p {
    margin: 0 0 14px;
}

.gt-help-content p:last-child {
    margin-bottom: 0;
}

.gt-help-actions {
    margin: 0;
    padding: 0 16px 28px;

}

.gt-help-back {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.gt-help-back:hover {
    opacity: .85;
}

.gt-help-content h3 {
    margin: 20px 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 420px) {
    .gt-card-panels {
        grid-template-columns: 1fr;
    }

    .gt-header-title {
        font-size: 1.3rem;
    }
}