:root {
    --d2-navy: #07152f;
    --d2-blue: #1769ff;
    --d2-cyan: #18cbe8;
    --d2-ink: #111a2d;
    --d2-muted: #6b768a;
    --d2-line: #dce3ed;
    --d2-paper: #f3f6fa;
}

#content { background: var(--d2-paper); }

.gtt-d2-top { padding: 22px 0; color: #fff; background: #080f1f; }
.gtt-d2-top-grid { display: grid; grid-template-columns: minmax(0,1.95fr) minmax(310px,.78fr); gap: 14px; height: 410px; }
.gtt-d2-feature { position: relative; min-width: 0; overflow: hidden; border: 1px solid #293650; border-radius: 16px; background: #101d33; }
.gtt-d2-feature > img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease, transform .6s ease; }
.gtt-d2-feature:hover > img { transform: scale(1.02); }
.gtt-d2-shade { position: absolute; inset: 0; background: linear-gradient(90deg,#050b17ee 0,#061020a0 48%,transparent 78%),linear-gradient(0deg,#050b17e6 0,transparent 62%); pointer-events: none; }
.gtt-d2-copy { position: absolute; z-index: 2; left: 28px; bottom: 86px; width: min(62%,570px); }
.gtt-d2-copy > span { display: inline-flex; border-left: 3px solid var(--d2-cyan); padding-left: 9px; color: #8cefff; font-size: 12px; font-weight: 850; }
.gtt-d2-copy h1 { margin: 9px 0 7px; color: #fff; font-size: 36px; line-height: 1.05; letter-spacing: -.025em; }
.gtt-d2-copy p { margin: 0 0 15px; color: #d2ddec; }
.gtt-d2-copy > a { display: inline-flex; min-height: 42px; align-items: center; border-radius: 8px; padding: 0 15px; color: #fff; background: var(--d2-blue); font-size: 14px; font-weight: 850; }

.gtt-d2-tabs { position: absolute; z-index: 3; right: 16px; bottom: 14px; left: 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.gtt-d2-tab { position: relative; display: block; min-width: 0; height: 58px; overflow: hidden; border: 1px solid #ffffff3d; border-radius: 9px; padding: 0; color: #fff; background: #091222; cursor: pointer; text-align: left; }
.gtt-d2-tab::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg,#020814d9 0,transparent 70%); }
.gtt-d2-tab img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gtt-d2-tab span { position: absolute; z-index: 2; right: 9px; bottom: 6px; left: 9px; overflow: hidden; color: #fff; font-size: 12px; font-weight: 850; text-overflow: ellipsis; text-shadow: 0 1px 4px #000; white-space: nowrap; }
.gtt-d2-tab:hover, .gtt-d2-tab.is-active { border-color: var(--d2-cyan); }
.gtt-d2-tab:hover img, .gtt-d2-tab.is-active img { transform: scale(1.06); }

.gtt-d2-popular { display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); gap: 10px; }
.gtt-d2-popular > a { display: grid; grid-template-columns: 32px 1fr; align-content: center; gap: 10px; min-height: 0; overflow: hidden; border: 1px solid #30394a; border-radius: 14px; padding: 14px 16px; color: #fff; background: #1d222d; transition: transform .2s ease, border-color .2s ease; }
.gtt-d2-popular > a:hover { transform: translateX(-3px); border-color: #51719f; }
.gtt-d2-popular > a > b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; background: #ff8a24; font-size: 13px; }
.gtt-d2-popular > a:nth-child(2) > b { background: #8b5cf6; }
.gtt-d2-popular > a:nth-child(3) > b { background: #28b864; }
.gtt-d2-popular span { display: inline-block; color: #aeb8c8; font-size: 11px; }
.gtt-d2-popular h2 { margin: 4px 0; color: #fff; font-size: 15px; line-height: 1.35; }
.gtt-d2-popular time { color: #7e899b; font-size: 11px; }

.gtt-d2-content { padding-bottom: 12px; }
.gtt-d2-section { padding: 27px 0; }
.gtt-d2-section + .gtt-d2-section { padding-top: 7px; }
.gtt-d2-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.gtt-d2-heading > div { border-left: 4px solid var(--d2-cyan); padding-left: 12px; }
.gtt-d2-heading h2 { margin: 0; color: var(--d2-ink); font-size: 24px; line-height: 1.15; letter-spacing: -.025em; }
.gtt-d2-heading p { margin: 3px 0 0; color: var(--d2-muted); font-size: 13px; }
.gtt-d2-heading > a { color: var(--d2-blue); font-size: 13px; font-weight: 850; }

.gtt-d2-game-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.gtt-d2-game-grid > a { overflow: hidden; border: 1px solid var(--d2-line); border-radius: 13px; background: #fff; box-shadow: 0 10px 28px #17345c0a; transition: transform .25s ease, box-shadow .25s ease; }
.gtt-d2-game-grid > a:hover { transform: translateY(-4px); box-shadow: 0 16px 36px #17345c1c; }
.gtt-d2-game-image { position: relative; height: 150px; overflow: hidden; }
.gtt-d2-game-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gtt-d2-game-grid > a:hover img { transform: scale(1.055); }
.gtt-d2-game-image span { position: absolute; right: 9px; bottom: 9px; max-width: calc(100% - 18px); overflow: hidden; border-radius: 5px; padding: 3px 7px; color: #fff; background: #07152fdd; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.gtt-d2-game-copy { padding: 13px; }
.gtt-d2-game-copy h3 { margin: 0 0 3px; color: var(--d2-ink); font-size: 17px; }
.gtt-d2-game-copy p { margin: 0; color: var(--d2-muted); font-size: 12px; }

.gtt-d2-ad-wrap { padding: 7px 0 27px; }
.gtt-d2-ad-wrap .gtt-ad-slot { min-height: 86px; margin: 0; border-radius: 10px; background: #e9eef5; }
.gtt-d2-ad-wrap .gtt-ad-slot[data-empty="true"] { min-height: 0; }

.gtt-d2-tomes { display: grid; grid-template-columns: minmax(0,1.48fr) minmax(300px,.72fr); gap: 14px; }
.gtt-d2-tome-main { display: grid; grid-template-columns: 1.18fr .82fr; min-height: 330px; overflow: hidden; border-radius: 15px; color: #fff; background: #09162e; }
.gtt-d2-tome-image { overflow: hidden; }
.gtt-d2-tome-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.gtt-d2-tome-main:hover img { transform: scale(1.035); }
.gtt-d2-tome-copy { align-self: center; padding: 27px; }
.gtt-d2-tome-copy > span { color: #6ee8ff; font-size: 12px; font-weight: 850; }
.gtt-d2-tome-copy h2 { margin: 8px 0; color: #fff; font-size: 27px; line-height: 1.12; }
.gtt-d2-tome-copy p { margin: 0 0 16px; color: #cbd6e7; }
.gtt-d2-tome-copy strong { display: inline-flex; min-height: 40px; align-items: center; border-radius: 8px; padding: 0 14px; color: #fff; background: var(--d2-blue); font-size: 13px; }
.gtt-d2-rank { display: grid; grid-template-rows: repeat(4,1fr); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--d2-line); border-radius: 15px; padding: 0; background: var(--d2-line); list-style: none; }
.gtt-d2-rank li { min-height: 0; background: #fff; }
.gtt-d2-rank a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; height: 100%; padding: 12px 14px; }
.gtt-d2-rank b { color: var(--d2-blue); font-size: 18px; }
.gtt-d2-rank small { color: var(--d2-muted); font-size: 11px; }

.gtt-d2-articles { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: repeat(2,145px); gap: 12px; }
.gtt-d2-articles article { display: grid; grid-template-columns: 150px 1fr; overflow: hidden; border: 1px solid var(--d2-line); border-radius: 13px; background: #fff; }
.gtt-d2-articles article:first-child { grid-row: span 2; grid-template-columns: 1fr; }
.gtt-d2-article-image { display: block; min-height: 0; overflow: hidden; }
.gtt-d2-article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gtt-d2-articles article:first-child .gtt-d2-article-image { height: 185px; }
.gtt-d2-articles article:hover img { transform: scale(1.045); }
.gtt-d2-articles article > div { padding: 14px; }
.gtt-d2-articles span { color: var(--d2-muted); font-size: 11px; }
.gtt-d2-articles h3 { margin: 5px 0; color: var(--d2-ink); font-size: 17px; line-height: 1.25; }
.gtt-d2-articles article:first-child h3 { font-size: 21px; }
.gtt-d2-articles p { margin: 0; color: var(--d2-muted); font-size: 12px; }
.gtt-d2-empty { grid-column: 1/-1; border: 1px solid var(--d2-line); border-radius: 13px; padding: 30px; color: var(--d2-muted); background: #fff; text-align: center; }

.gtt-d2-calendar { overflow: auto; border: 1px solid var(--d2-line); border-radius: 13px; background: #fff; }
.gtt-d2-calendar table { width: 100%; border-collapse: collapse; }
.gtt-d2-calendar th, .gtt-d2-calendar td { border-bottom: 1px solid #e3e8ef; padding: 13px 15px; text-align: left; }
.gtt-d2-calendar th { color: var(--d2-muted); background: #f7f9fc; font-size: 12px; }
.gtt-d2-calendar td span { color: #16845b; font-weight: 850; }
.gtt-d2-calendar td[colspan] { color: var(--d2-muted); text-align: center; }

@media (max-width: 920px) {
    .gtt-d2-top-grid { height: auto; grid-template-columns: 1fr; }
    .gtt-d2-feature { height: 410px; }
    .gtt-d2-popular { grid-template-columns: repeat(3,1fr); grid-template-rows: none; }
    .gtt-d2-game-grid { grid-template-columns: repeat(2,1fr); }
    .gtt-d2-tomes { grid-template-columns: 1fr; }
    .gtt-d2-articles { grid-template-columns: 1fr; grid-template-rows: auto; }
    .gtt-d2-articles article:first-child { grid-row: auto; }
}

@media (max-width: 620px) {
    .gtt-d2-top { padding: 12px 0; }
    .gtt-d2-feature { height: 430px; }
    .gtt-d2-copy { left: 18px; bottom: 142px; width: calc(100% - 36px); }
    .gtt-d2-copy h1 { font-size: 29px; }
    .gtt-d2-copy p { display: none; }
    .gtt-d2-tabs { grid-template-columns: repeat(2,1fr); }
    .gtt-d2-tab { height: 52px; }
    .gtt-d2-popular, .gtt-d2-game-grid { grid-template-columns: 1fr; }
    .gtt-d2-popular > a { min-height: 105px; }
    .gtt-d2-tome-main { display: block; }
    .gtt-d2-tome-image { height: 220px; }
    .gtt-d2-rank a { grid-template-columns: 32px 1fr; }
    .gtt-d2-rank small { display: none; }
    .gtt-d2-articles article, .gtt-d2-articles article:first-child { display: block; }
    .gtt-d2-articles .gtt-d2-article-image, .gtt-d2-articles article:first-child .gtt-d2-article-image { height: 180px; }
    .gtt-d2-heading { align-items: start; flex-direction: column; }
}
