:root {
    --primary: #c9a752; /* Gold for premium feel */
    --primary-hover: #b29140;
    --dark-bg: #111514; /* Deep green/black */
    --card-bg: rgba(30, 36, 34, 0.85);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --disabled: #4a4d4c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow: hidden;
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
    background: radial-gradient(circle at top right, #1a2520 0%, var(--dark-bg) 100%);
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    pointer-events: auto;
    transform: translateY(0);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header h2 {
    font-weight: 300;
    letter-spacing: 2px;
}

/* Content Area */
.content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* Components */
.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(201, 167, 82, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.search-card, .info-card {
    width: 600px;
    text-align: center;
}

input[type="text"] {
    width: 100%;
    padding: 16px;
    margin-top: 24px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
}

input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(201, 167, 82, 0.3);
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 16px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 1px;
}
.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: scale(1.02);
}
.btn-primary:disabled, .btn-primary.disabled {
    background: var(--disabled);
    color: #888;
    cursor: not-allowed;
    transform: none;
}

.btn-back {
    background: transparent;
    color: var(--primary);
    font-size: 1.1rem;
    padding: 10px;
}
.btn-back:hover {
    color: white;
}

/* Welcome Box */
.welcome-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.welcome-box .logo {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
    letter-spacing: 5px;
    font-family: serif;
}
.welcome-box h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}
.welcome-box p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

/* Terms */
.terms-list {
    max-width: 800px;
    margin: 30px auto;
}
.term-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
}
.term-item input {
    width: 24px;
    height: 24px;
    accent-color: var(--primary);
    margin-right: 20px;
}
.term-text {
    font-size: 1.1rem;
}

/* Map Layout */
.map-layout {
    display: flex;
    gap: 40px;
    height: calc(100vh - 100px);
}
.map-left {
    flex: 2;
    display: flex;
    flex-direction: column;
}
.map-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.highlight {
    color: var(--primary);
    font-size: 1.5rem;
}
.tabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 10px;
}
.tab {
    background: #222;
    color: white;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
}
.tab.active {
    background: var(--primary);
    color: black;
}
.map-container {
    flex: 1;
    background: #000;
    border: 2px solid var(--primary);
    position: relative;
    border-radius: 0 8px 8px 8px;
    overflow: hidden;
}
.map-view {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}
.map-view.active {
    opacity: 1;
    pointer-events: all;
}
.mock-map {
    width: 100%;
    height: 100%;
    background: #1e3a2f;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.5);
    font-size: 2rem;
    position: relative;
}
.detail-bg {
    background: #2b312e;
}
.ping {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(201, 167, 82, 0.3);
    animation: ping 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    text-indent: 30px;
}
@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(201, 167, 82, 0.5); }
    100% { box-shadow: 0 0 0 20px rgba(201, 167, 82, 0); }
}

.qr-mock {
    width: 250px;
    height: 250px;
    background: white;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    font-weight: bold;
    font-size: 1.5rem;
    border: 10px solid white;
    border-radius: 10px;
}
.timer {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: bold;
}
