* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #f5f0e8;
  font-family: Georgia, 'Times New Roman', serif;
  color: #111;
  min-height: 100vh;
}

/* Header */

header {
  background: #111;
  color: #fff;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.title-main {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.title-sub {
  font-size: 0.8rem;
  color: #aaa;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav a:hover {
  color: #fff;
}

/* Layout */

.layout {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 24px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Game Area */

.game-area {
  flex: 1;
  min-width: 0;
}

.celebrity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.celebrity-image-wrap {
  width: 320px;
  height: 320px;
  overflow: hidden;
  border: 3px solid #111;
}

.celebrity-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.celebrity-name {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Buttons */

.buttons {
  display: flex;
  gap: 16px;
}

.btn {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  padding: 18px 40px;
  transition: opacity 0.1s;
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn:not(:disabled):hover {
  opacity: 0.85;
}

.btn-jew {
  background: #1a3a6b;
  color: #fff;
}

.btn-goy {
  background: #8b1a1a;
  color: #fff;
}

.btn-next {
  background: #111;
  color: #fff;
  margin-top: 8px;
}

/* Result */

.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 480px;
}

.verdict {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0.1em;
}

.verdict-correct {
  color: #2a6e2a;
}

.verdict-wrong {
  color: #8b1a1a;
}

.summary {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  max-width: 420px;
}

/* End Screen */

.end-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 48px 0;
}

.end-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 3rem;
  letter-spacing: 0.1em;
}

.end-score {
  font-family: Georgia, serif;
  font-size: 3rem;
  font-weight: bold;
}

.end-comment {
  font-size: 1.1rem;
  color: #444;
  font-style: italic;
}

/* Sidebar */

.sidebar {
  width: 220px;
  flex-shrink: 0;
  border-left: 2px solid #ccc;
  padding-left: 24px;
}

.sidebar h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
}

.history-empty {
  font-size: 0.85rem;
  color: #aaa;
  font-style: italic;
}

.history-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #e0dbd0;
  font-size: 0.82rem;
}

.history-check {
  font-size: 0.9rem;
  font-weight: bold;
  flex-shrink: 0;
  width: 16px;
}

.check-correct { color: #2a6e2a; }
.check-wrong   { color: #8b1a1a; }

.history-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #222;
}

.history-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding: 2px 5px;
}

.label-jew {
  background: #1a3a6b;
  color: #fff;
}

.label-goy {
  background: #8b1a1a;
  color: #fff;
}

/* Contact Page */

.contact-page {
  max-width: 520px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}

.contact-page h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.contact-page p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 16px;
}

.contact-page a {
  color: #1a3a6b;
  text-decoration: none;
  font-weight: bold;
}

.contact-page a:hover {
  text-decoration: underline;
}

/* ─── Tablet (≤ 768px) ─── */

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    margin: 24px auto;
    gap: 0;
  }

  .sidebar {
    width: 100%;
    border-left: none;
    border-top: 2px solid #ccc;
    padding-left: 0;
    padding-top: 24px;
    margin-top: 32px;
  }

  .celebrity-image-wrap {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* ─── Phone (≤ 480px) ─── */

@media (max-width: 480px) {
  header {
    padding: 0 16px;
    height: 52px;
  }

  .title-main {
    font-size: 1.1rem;
  }

  .title-sub {
    display: none;
  }

  .layout {
    padding: 0 16px;
    margin: 20px auto;
  }

  .celebrity-image-wrap {
    max-width: 100%;
  }

  .celebrity-name {
    font-size: 1.5rem;
  }

  .buttons {
    width: 100%;
  }

  .btn-jew,
  .btn-goy {
    flex: 1;
    padding: 20px 0;
    font-size: 1.2rem;
  }

  .btn-next {
    width: 100%;
    padding: 18px 0;
  }

  .result {
    max-width: 100%;
  }

  .summary {
    max-width: 100%;
  }

  .end-title {
    font-size: 2.2rem;
  }

  .end-score {
    font-size: 2.2rem;
  }
}
