:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f9fafb;
    --text-main: #111827;
    --text-muted: #4b5563;
    --white: #ffffff;
    --border: #e5e7eb;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-selected-bg: #eef2ff;
    --card-selected-border: #6366f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

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

header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.logo-wrap h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary);
}

.hero {
    text-align: center;
    padding: 4rem 0 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.2;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.app-interface {
    margin: 2rem 0 4rem;
}

.app-interface .container {
    background: var(--white);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.app-interface h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.instruction {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.poker-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.poker-card span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.poker-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.result-area.hidden {
    display: none;
}

.selected-card-display {
    background: var(--card-selected-bg);
    border: 3px solid var(--card-selected-border);
    border-radius: 1rem;
    width: 200px;
    height: 280px;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    font-weight: 800;
    color: var(--card-selected-border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.reveal-instruction {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.info-section {
    padding: 4rem 0;
}

.info-section.alt-bg {
    background: var(--white);
    border-top: 1px solid var(--border);
}

.info-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    background: var(--primary);
    color: var(--white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature h4 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

footer nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .hero h2 { font-size: 2rem; }
    .app-interface .container { padding: 1.5rem; }
    .cards { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
    .poker-card { height: 120px; font-size: 2rem; }
    nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
    nav a { margin-left: 1rem; }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
