:root {
    --yellow: #fce44d;
    --dark-bg: #0f0f0f;
    --text-light: #ffffff;
    --card-bg: #1a1a1a;
    --green: #2ecc71;
    --red: #e74c3c;
}

body {
    margin: 0;
    font-family: sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
}

header, footer {
    background-color: var(--yellow);
    color: #000;
    padding: 1rem;
}

footer {
    text-align: center;
}

header {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    height: 60px;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input[type="text"] {
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    width: 180px;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 1rem;
    transition: width 0.3s ease;
}

.search-container input[type="text"]:focus {
    width: 250px;
    outline: none;
}

.search-container .icon {
    position: absolute;
    right: 10px;
    font-size: 1.2rem;
    pointer-events: none;
}

.section-title {
    font-size: 1.5rem;
    margin: 2rem 1rem 1rem;
    color: var(--yellow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 0 1rem 2rem;
}

.game-card {
    display: block;
    background-color: var(--card-bg);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.game-card img {
    width: 100%;
    max-width: 460px;
    height: auto;
    aspect-ratio: 460 / 215;
    border-radius: 4px;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.image-container {
    position: relative;
    overflow: hidden;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-card h3 {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.price-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--yellow);
    color: #000;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
    z-index: 1;
    text-align: right;
    line-height: 1;
    height: 2.2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: red;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.discount-badge {
    position: absolute;
    bottom: 12px;
    left: -30px;
    width: 120px;
    background-color: var(--green);
    color: white;
    font-size: 1.25rem;
    padding: 0.2rem 0;
    text-align: center;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.buy-button {
    margin-top: 0.5rem;
    background-color: var(--yellow);
    border: none;
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #000;
}

@media (min-width: 600px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

header {
    text-align: center;
}

@media (max-width: 599px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 600px) {
    .req-container {
        display: flex;
    }
    .req-container > div {
        width: 50%;
    }
}

.bb_img_ctn {
    text-align: center;
}

.bb_img_ctn img {
    max-width: 100%;
}

ul {
    padding-left: 1rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.screenshot-wrapper img {
    width: 100%;
    border-radius: 6px;
    min-height: 46.73913043%;
}

.form-wrapper {
    flex: 1 1 300px;
    max-width: 320px;
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    align-self: flex-start;
    margin: 0 auto;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

#price {
    color: var(--yellow);
    position: relative;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

input, select {
    padding: 0.5rem;
    border-radius: 4px;
    border: none;
}

form button {
    padding: 0.75rem;
    background-color: var(--yellow);
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.2rem;
    width: 200px;
    max-width: 100%;
    margin: 0 auto;
}

.tag {
background-color: var(--green);
color: white;
padding: 0.25rem 0.5rem;
font-size: 1rem;
border-radius: 4px;
display: inline-block;
margin: 1rem 1rem 1rem 0;
text-transform: capitalize;
}

.info-note {
font-size: 0.9rem;
color: #aaa;
margin-bottom: 2rem;
}

.tabs {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}

.tab-button {
background-color: transparent;
border: none;
color: var(--text-light);
padding: 0.5rem 1rem;
cursor: pointer;
font-weight: bold;
border-bottom: 2px solid transparent;
}

.tab-button.active {
border-color: var(--yellow);
}

.tab-content {
display: none;
line-height: 1.6;
}

.tab-content.active {
display: block;
}

.screenshot-wrapper {
flex: 1 1 460px;
max-width: 460px;
margin: 0 auto;
position: relative;
overflow: hidden;
}

@media (min-width: 768px) {
.top-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}
}

@media (max-width: 900px) {
    h1 {
        text-align: center;
    }
}


.fullprice {
    display: inline-block;
    position: absolute;
    font-size: 0.65rem;
    text-decoration: line-through;
    top: -0.55rem;
    left: 50%;
    transform: translate(-50%, 0);
    opacity: 0.7;
    min-width: 50px;
    text-align: center;
}

.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.3rem;
    vertical-align: middle;
}

.tooltip-icon {
    cursor: pointer;
}

.tooltip-content {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: normal;
    width: max-content;
    max-width: 240px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.tooltip:hover .tooltip-content {
    display: block;
}


.faq h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    display:flex; align-items:center;
}

.faq h1 svg {
    width:32px; height:32px;
    margin-right:0.5rem;
    fill: #fce44d;
}
.accordion-item {
    border-top:1px solid #333;
    padding:1rem 0;
}
.accordion-item:last-child {
    border-bottom:1px solid #333;
}
.accordion-header {
    font-size:1.1rem;
    cursor: pointer;
    position: relative;
    padding-right:2rem;
}
.accordion-header::after {
    content: '+';
    position:absolute;
    right:0;
    top:0;
    font-size:1.2rem;
    color: #fce44d;
    transition: transform .2s;
}
.accordion-header.active::after {
    content: '–';
    transform: rotate(180deg);
}
.accordion-body {
    max-height:0;
    overflow: hidden;
    transition: max-height .3s ease;
    font-size:0.95rem;
    color: #ccc;
    margin-top:0.5rem;
}
@media (max-width:600px) {
    .faq .container { padding: 1rem; }
    .faq h1 { font-size:1.5rem; }
}

a {
    color: var(--yellow);
}

.button-not-available {
    background-color: var(--card-bg);
    color: white;
    cursor: default;
}

.error {
    color: var(--red);
}
