:root {
    --primary: #00c73c;
    --bg: #ffffff;
    --surface: #f8f9fa;
    --border: #e9ecef;
    --text: #333333;
    --text-sub: #666666;
    --beta-color: #ff6b00;
}

* {
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans KR', sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    user-select: none;
}

header {
    width: 100%;
    height: 100px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    flex-shrink: 0;
    position: relative;
    gap: 20px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text);
    letter-spacing: -1px;
    cursor: pointer;
    z-index: 2;
}

.logo span {
    color: var(--primary);
}

.header-adsense {
    flex: 1;
    max-width: 728px;
    height: 90px;
    border: 1px dashed var(--border);
    background: #fcfcfc;
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 2;
}

.btn-style {
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border);
    display: flex;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: #888;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.ctrl-btn:hover {
    background: #f1f3f5;
}

.ctrl-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.zero-btn,
.remote-rect-btn {
    background: #fff;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.zero-btn:hover,
.remote-rect-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.input-group {
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-group i {
    color: #888;
}

.input-group input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-weight: 600;
    width: 140px;
    font-size: 0.85rem;
    letter-spacing: 0;
}

.input-group input::placeholder {
    color: #ccc;
    letter-spacing: 0;
    font-weight: 400;
}

.layout-container {
    display: flex;
    width: 100%;
    max-width: 1600px;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    gap: 20px;
}

.ad-sidebar {
    width: 160px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
}

.sc-banner {
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 15px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.sc-banner:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sc-icon-box {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.sc-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0;
    color: #333;
}

.sc-text {
    font-size: 0.85rem;
    color: #888;
    margin: 15px 0 25px 0;
    line-height: 1.5;
    text-align: center;
    word-break: keep-all;
}

.sc-btn {
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

main {
    flex: 1;
    max-width: 950px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
}

.hero-text {
    text-align: center;
    margin-bottom: 25px;
}

.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(to right, #333, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-sub);
    font-size: 1rem;
    margin-top: 10px;
    font-weight: 500;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.game-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 15px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    height: 210px;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--primary);
}

.game-card.beta-card {
    border: 2px solid var(--beta-color);
    background: #fffaf7;
}

.game-card.beta-card:hover {
    border-color: #ff4500;
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.15);
}

.game-card.beta-card .icon-box {
    color: var(--beta-color);
}

.game-card.beta-card h3 {
    color: var(--beta-color);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--surface);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.game-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin: 12px 0 6px 0;
    font-weight: 800;
    color: var(--text);
}

.game-card p {
    color: var(--text-sub);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

.play-btn {
    padding: 6px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-sub);
    font-weight: bold;
    font-size: 0.8rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.notice-modal {
    max-width: 500px;
    width: 90%;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.note-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    text-align: left;
}

.notice-content {
    color: var(--text);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 10px 0;
    text-align: left;
    overflow-y: auto;
    padding-bottom: 10px;
}

.notice-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-shrink: 0;
}

.notice-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
    border: none;
}

.btn-hide-today {
    background: #f1f3f5;
    color: #868e96;
}

.btn-close {
    background: var(--primary);
    color: #fff;
}

.zero-note {
    max-width: 550px;
    width: 90%;
    padding: 40px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
}

.selection-modal {
    max-width: 600px;
    width: 95%;
    padding: 40px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.select-card {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px 15px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.selection-desc {
    text-align: left;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 16px;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.8;
    border: 1px solid var(--border);
}

.channel-link {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    padding: 12px 30px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

footer {
    width: 100%;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: #999;
    font-size: 0.7rem;
    background: #fcfcfc;
    flex-shrink: 0;
}

footer span {
    font-weight: 700;
    color: var(--text-sub);
}