/* Card layout scales with the available width instead of the root font size. */
#app .innerBox {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(6px, 1.5vw, 10px);
    padding: 0 4px;
    box-sizing: border-box;
    align-items: stretch;
}
#app .innerBox > .game_item {
    container-type: inline-size;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px 7px 10px;
    aspect-ratio: auto;
    min-height: clamp(154px, 32vw, 188px);
    justify-content: flex-start;
    gap: 10px;
}
#app .game_item .app_info {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    margin: 0;
    gap: 6px;
}
#app .game_item img.app_logo {
    width: clamp(25px, 6vw, 34px);
    height: clamp(25px, 6vw, 34px);
    width: clamp(25px, 26cqi, 34px);
    height: clamp(25px, 26cqi, 34px);
    flex-shrink: 0;
    margin: 0;
    object-fit: contain;
    border-radius: 50%;
}
#app .game_item .game_name {
    min-width: 0;
    font-size: clamp(11px, 2.8vw, 16px);
    font-size: clamp(11px, 11cqi, 16px);
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
}
#app .game_item .gameText {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 2.8em;
    margin: auto 0 0;
    font-size: clamp(10px, 2.5vw, 14px);
    font-size: clamp(10px, 10cqi, 14px);
    line-height: 1.4;
    text-align: center;
    overflow: visible;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
}
#app .game_item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    margin-top: auto;
}
#app .game_item img.start_img {
    display: block;
    width: min(88%, 96px);
    height: auto;
}
#app .game_item img.rtop_img { width: clamp(24px, 6vw, 34px); }
@media (max-width: 359px) {
    #app .innerBox { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Compact cards: four rows need less vertical space on typical phones. */
#app .innerBox {
    gap: 6px;
}
#app .innerBox > .game_item {
    min-height: 126px;
    padding: 9px 6px 7px;
    gap: 5px;
    border-radius: 9px;
}
#app .game_item .app_info {
    min-height: 29px;
    gap: 5px;
}
#app .game_item img.app_logo {
    width: clamp(23px, 23cqi, 29px);
    height: clamp(23px, 23cqi, 29px);
}
#app .game_item .game_name {
    font-size: clamp(11px, 10cqi, 14px);
    line-height: 1.25;
}
#app .game_item .gameText {
    font-size: clamp(10px, 9cqi, 12px);
    min-height: 2.6em;
    line-height: 1.3;
}
#app .game_item > a {
    min-height: 32px;
}
#app .game_item img.start_img {
    width: min(84%, 80px);
}
#app .game_item img.rtop_img { width: 25px; }
@media (min-width: 360px) and (max-height: 740px) {
    #app .innerBox > .game_item { min-height: 114px; padding-top: 7px; gap: 3px; }
    #app .game_item .app_info { min-height: 26px; }
    #app .game_item img.app_logo { width: 25px; height: 25px; }
    #app .game_item > a { min-height: 30px; }
    #app .game_item img.start_img { width: min(82%, 74px); }
}

/* A compact title with a subtle accent, matching the blue navigation. */
#app > .header {
    box-sizing: border-box;
    min-height: 48px;
    padding: 10px 16px;
    justify-content: flex-start;
    background: linear-gradient(110deg, #ffffff 35%, #f3f7ff 100%);
    border-bottom: 1px solid #edf1f8;
}
#app > .header .header_left,
#app > .header .header_right { display: none; }
#app > .header .header_title {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 1 auto;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 1px;
    text-align: left;
    color: #23365a;
}
#app > .header .header_title::before {
    content: "";
    display: block;
    flex: 0 0 4px;
    width: 4px;
    height: 17px;
    border-radius: 4px;
    background: linear-gradient(180deg, #38d9ed, #2673ff);
}
