.gtl-tp128 { display: none; }
.gtl-tablepress129-page .gtl-tablepress129-content { min-width: 0; }
.gtl-tablepress129-page .gtl-tablepress129-content > p { margin: 0 0 18px; }
.gtl-tablepress129-page .gtl-tablepress129-notice { color: #74849b; font-size: 12px; }

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    .gtl-tp128-source.gtl-tp128-ready,
    .gtl-tp128-legend { display: none !important; }

    .gtl-tp128 {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 22px 0;
        color: #263652;
        font-family: 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif;
        font-size: 14px;
        line-height: 1.8;
        scroll-margin-top: 20px;
    }
    .gtl-tp128 *, .gtl-tp128 *::before, .gtl-tp128 *::after { box-sizing: border-box; }
    .gtl-tp128[hidden] { display: none !important; }
    .gtl-tp128__controls {
        display: flex;
        flex-wrap: wrap;
        gap: 14px 18px;
        align-items: end;
        margin-bottom: 10px;
    }
    .gtl-tp128__field { display: grid; gap: 6px; flex: 1 1 240px; min-width: 0; font-size: 12px; font-weight: 700; }
    .gtl-tp128__field input, .gtl-tp128__field select {
        display: block;
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 8px 12px;
        border: 1px solid #cfdceb;
        border-radius: 11px;
        color: #304662;
        background: #fff;
        font: inherit;
        font-size: 14px;
    }
    .gtl-tp128__status { font-size: 12px; color: #657a98; margin: 0 0 13px; }
    .gtl-tp128__list { padding: 0 !important; margin: 0 !important; list-style: none !important; }
    .gtl-tp128__item {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        align-items: start;
        gap: 16px;
        padding: 22px 0;
        margin: 0 !important;
        border: 0;
        border-bottom: 1px solid #e0e8f2;
        list-style: none !important;
    }
    .gtl-tp128__item:last-child { border-bottom: 0; }
    .gtl-tp128__item--unranked { grid-template-columns: minmax(0, 1fr); }
    .gtl-tp128__rank {
        display: grid;
        place-items: center;
        min-width: 48px;
        min-height: 48px;
        padding: 5px 10px;
        border: 1px solid #edf3fa;
        border-radius: 13px;
        background: #edf3fa;
        color: #425d81;
        font-size: 18px;
        font-weight: 750;
        line-height: 1.4;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        overflow-wrap: normal;
    }
    .gtl-tp128__body { min-width: 0; }
    .gtl-tp128 .gtl-tp128__title {
        margin: 0 0 10px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        color: #263652;
        font-size: 17px;
        font-weight: 600;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }
    .gtl-tp128__title::before, .gtl-tp128__title::after { display: none !important; }
    .gtl-tp128__metrics { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 13px; padding: 0; }
    .gtl-tp128__metrics > div { min-width: 0; }
    .gtl-tp128__metrics dt { margin: 0; color: #657a98; font-size: 11px; font-weight: 500; }
    .gtl-tp128__metrics .gtl-tp128__metric-label-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .gtl-tp128__metrics dd { margin: 2px 0 0; color: #263652; font-size: 19px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
    .gtl-tp128__links { display: flex; flex-wrap: wrap; gap: 8px; }
    /* Two sales periods need separate labels; other game lists retain their layout. */
    .gtl-tp128__sales-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 20px 0 10px; }
    .gtl-tp128__key { padding: 5px 12px; border: 1px solid; border-radius: 8px; font-size: 12px; font-weight: 700; }
    .gtl-tp128__key--annual, .gtl-tp128__sales--annual { color: #174f80; background: #edf5ff; border-color: #b6d1eb; }
    .gtl-tp128__key--cumulative, .gtl-tp128__sales--cumulative { color: #205e4a; background: #edf8f1; border-color: #b4d6c3; }
    .gtl-tp128--annual .gtl-tp128__item { padding-block: 26px; }
    .gtl-tp128--annual .gtl-tp128__title { margin-bottom: 12px; font-size: 19px; font-weight: 750; }
    .gtl-tp128__metadata { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; }
    .gtl-tp128__metadata > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 100%; padding: 5px 10px; border: 1px solid #d8e1ec; border-radius: 8px; background: #f8fafc; }
    .gtl-tp128__metadata dt { flex: 0 0 auto; margin: 0; color: #53667e; font-size: 11px; font-weight: 500; }
    .gtl-tp128__metadata dd { min-width: 0; margin: 0; color: #263652; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
    .gtl-tp128--annual .gtl-tp128__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 600px; margin-bottom: 16px; }
    .gtl-tp128__metrics .gtl-tp128__sales { min-width: 0; padding: 12px 16px; border: 1px solid; border-radius: 12px; }
    .gtl-tp128__metrics .gtl-tp128__sales--annual { border-color: #b6d1eb; }
    .gtl-tp128__metrics .gtl-tp128__sales--cumulative { border-color: #b4d6c3; }
    .gtl-tp128__sales dt { color: inherit; font-size: 12px; font-weight: 600; }
    .gtl-tp128__sales dd { color: inherit; font-size: 24px; font-weight: 750; line-height: 1.5; font-variant-numeric: tabular-nums; }
    .gtl-tp128 .gtl-tp128__affiliate {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 9px 20px;
        border: 1px solid #e4d1c7;
        border-radius: 11px;
        background: #fbf6f3;
        color: #4a536b;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.5;
    }
    .gtl-tp128__affiliate:hover { background: #f3e9e2; }
    .gtl-tp128__pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin: 20px 0 0; }
    .gtl-tp128__pages button {
        min-width: 42px;
        min-height: 44px;
        padding: 7px 12px;
        border: 1px solid #cfdceb;
        border-radius: 10px;
        background: #fff;
        color: #425d81;
        font: inherit;
        font-size: 12px;
        cursor: pointer;
    }
    .gtl-tp128__pages button[aria-current='page'] { background: #e8f0fa; font-weight: 800; }
    .gtl-tp128__pages button:disabled { opacity: .55; cursor: default; }
    .gtl-tp128__pages button[aria-current='page']:disabled { opacity: 1; }
    .gtl-tp128__empty { padding: 26px 15px; border: 1px solid #d6e1ed; border-radius: 12px; background: #f7faff; color: #516784; list-style: none; }
    .gtl-tp128 a:focus-visible, .gtl-tp128 button:focus-visible,
    .gtl-tp128 input:focus-visible, .gtl-tp128 select:focus-visible { outline: 3px solid #688eb9; outline-offset: 3px; }
}

@media (max-width: 640px) {
    .gtl-tp128__item { grid-template-columns: max-content minmax(0, 1fr); gap: 18px; padding: 20px 0; }
    .gtl-tp128__item--unranked { grid-template-columns: minmax(0, 1fr); }
    .gtl-tp128__rank { min-width: 38px; min-height: 43px; font-size: 16px; border-radius: 11px; }
    .gtl-tp128 .gtl-tp128__title { font-size: 16px; }
    .gtl-tp128__metrics dd { font-size: 18px; }
    .gtl-tp128--annual .gtl-tp128__title { font-size: 17px; }
    .gtl-tp128--annual .gtl-tp128__item { row-gap: 12px; }
    .gtl-tp128--annual .gtl-tp128__body { display: contents; }
    .gtl-tp128--annual .gtl-tp128__title { align-self: center; margin: 0; }
    .gtl-tp128--annual .gtl-tp128__metadata,
    .gtl-tp128--annual .gtl-tp128__metrics,
    .gtl-tp128--annual .gtl-tp128__links { grid-column: 1 / -1; margin: 0; }
    .gtl-tp128--annual .gtl-tp128__metrics { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .gtl-tp128__metrics .gtl-tp128__sales { padding: 9px 12px; }
    .gtl-tp128__sales dd { font-size: 21px; }
}

@media print {
    .gtl-tp128 { display: none !important; }
    .gtl-tp128-source.gtl-tp128-ready { display: block !important; }
    table.gtl-tp128-source.gtl-tp128-ready { display: table !important; }
    .gtl-tp128-legend { display: block !important; }
}
