*,
::after,
::before {
    box-sizing: border-box;
    scrollbar-width: none;
}

body {
    background-color: #212121;
    color: #fff;
    font-family: monospace, serif;
    letter-spacing: 0.05em;     
    margin: 0 40px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.all2 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.up {
    margin: 32px 0 48px 0;
    flex-shrink: 0;
}

.titulo {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titulo h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #fff;
    width: 200px;
}

.titulo h1 a {
    color: inherit;
    text-decoration: none;
}

.titulo h1 a:visited {
    color: inherit;
}

.titulo h1 a:hover {
    color: inherit;
    text-decoration: none;
}

.dotcom{
    color: #c4c4c4;
    font-size: 1.4rem;
}

.titulo p {
    font-size: 1.2rem;
    margin: 5px 0 0 0;
    opacity: 0.8;
}

.todo {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.all {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    flex: 1;
    overflow: hidden;
}

.games-section {
    width: 100%;
    max-width: 1200px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.games-header {
    margin: 20px;
    height: auto;
    flex-shrink: 0;
}

.games-header .text {
    padding: 20px;
}

.games-header h1 {
    font-size: 1.8rem;
    margin: 12px 0 10px 0;
    line-height: 1;
}

.games-header p {
    margin: 0 0 12px 0;
    opacity: 0.8;
    font-size: 1rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    width: 100%;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    align-content: start;
    padding: 20px;
}

.game-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card .text {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.game-icon {
    font-size: 2em;
    line-height: 1;
}

.game-title {
    font-size: 1em;
    font-weight: bold;
    margin: 0;
}

.game-description {
    flex-grow: 1;
    font-size: 0.9em;
    line-height: 1.4;
    opacity: 0.9;
    margin: 10px 0;
}

.game-actions {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.game-action-btn {
    width: 120px;
    font-size: 0.9em;
    line-height: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-action-btn .text {
    padding: 8px;
    font-size: 0.9em;
}

.block-cube {
    position: relative;
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.block-cube .bg-top {
    position: absolute;
    height: 10px;
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(52, 9, 121, 1) 37%, rgba(0, 212, 255, 1) 94%);
    bottom: 100%;
    left: 5px;
    right: -5px;
    transform: skew(-45deg, 0);
    margin: 0;
}

.block-cube .bg-top .bg-inner {
    bottom: 0;
}

.block-cube .bg {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(52, 9, 121, 1) 37%, rgba(0, 212, 255, 1) 94%);
}

.block-cube .bg-right {
    position: absolute;
    background: rgba(0, 212, 255, 1);
    top: -5px;
    z-index: 0;
    bottom: 5px;
    width: 10px;
    left: 100%;
    transform: skew(0, -45deg);
}

.block-cube .bg-right .bg-inner {
    left: 0;
}

.block-cube .bg .bg-inner {
    transition: all 0.2s ease-in-out;
}

.block-cube .bg-inner {
    background: #212121;
    position: absolute;
    left: 2px;
    top: 2px;
    right: 2px;
    bottom: 2px;
}

.block-cube .text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.block-cube.block-input .bg-top,
.block-cube.block-input .bg-right,
.block-cube.block-input .bg {
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s ease-in-out;
}

.block-cube.block-input .bg-right .bg-inner,
.block-cube.block-input .bg-top .bg-inner {
    transition: all 0.2s ease-in-out;
}

.block-cube.block-input:hover .bg-top,
.block-cube.block-input:hover .bg-right,
.block-cube.block-input:hover .bg,
.block-cube.block-input:focus .bg-top,
.block-cube.block-input:focus .bg-right,
.block-cube.block-input:focus .bg {
    background: rgba(255, 255, 255, 0.8);
}

.block-cube.block-input .text {
    padding: 20px 20px;
    position: relative;
    z-index: 2;
    color: white;
}

.play-btn.block-input .bg,
.play-btn.block-input .bg-top,
.play-btn.block-input .bg-right {
    background: rgba(76, 175, 80, 0.5);
    transition: background 0.2s ease-in-out;
}

.game-card:hover .play-btn.block-input .bg,
.game-card:hover .play-btn.block-input .bg-top,
.game-card:hover .play-btn.block-input .bg-right {
    background: rgba(76, 175, 80, 0.5);
}

.game-card .play-btn.block-input:hover .bg,
.game-card .play-btn.block-input:hover .bg-top,
.game-card .play-btn.block-input:hover .bg-right {
    background: rgba(76, 175, 80, 0.8) !important;
}

.no-games-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 1.2em;
    grid-column: 1 / -1;
}

.no-games-message .icon {
    font-size: 4em;
    margin-bottom: 20px;
    display: block;
}

h1 {
    font-size: 23px;
}