@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;600;700&display=swap');

@font-face {
  font-family: "ABCDiatypeGreek";
  src: url('/fonts/ABCDiatypeGreek/ABCDiatypeGreekTrial-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "ABCDiatypeGreek";
  src: url('/fonts/ABCDiatypeGreek/ABCDiatypeGreekTrial-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

:root {
  --petrol: #2b6475;
  --petrol-dark: #1c4652;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.16);
  --accent-text: #000000;

  --font-default: 'ABCDiatypeGreek', 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--petrol);
  color: var(--white);
  font-family: var(--font-default);
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.05), transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(255,255,255,0.05), transparent 45%);
}

a { color: inherit; }

.bingo-header {
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 30px 20px;
  text-align: center;
}

.bingo-header__logo {
  height: 34px;
  margin-bottom: 26px;
}

.bingo-header h1 {
  font-family: var(--font-default);
  font-weight: 600;
  font-size: 44px;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}

.bingo-header p {
  font-weight: 300;
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

.bingo-board {
  max-width: 1700px;
  margin: 30px auto 80px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.bingo-cell {
  position: relative;
  border: none;
  border-radius: 12px;
  padding: 28px 22px;
  min-height: 170px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: var(--white);
  font-family: var(--font-default);
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.bingo-cell:hover,
.bingo-cell:focus-visible {
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  outline: none;
}

.bingo-cell__title {
  font-family: var(--font-default);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
}

.bingo-cell.is-done {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.25);
}

.bingo-cell.is-done .bingo-cell__title {
  opacity: 0.4;
  text-decoration: line-through;
}

.bingo-cell.is-done::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lightbox / reveal overlay */

.bingo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 41, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.bingo-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bingo-overlay__panel {
  width: auto;
  max-width: 94vw;
  max-height: 94vh;
  background: var(--petrol-dark);
  border-radius: 16px;
  overflow: hidden auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.bingo-overlay.is-open .bingo-overlay__panel {
  transform: translateY(0) scale(1);
}

.bingo-overlay__image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--petrol);
}

.bingo-overlay__image-wrap img {
  display: block;
  max-width: 94vw;
  max-height: 90vh;
}

.bingo-overlay__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 30px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(to top, rgba(15, 35, 41, 0.85), rgba(15, 35, 41, 0));
}

.bingo-overlay__caption h2 {
  font-family: var(--font-default);
  font-size: 32px;
  font-weight: 600;
  margin: 0;
}

.bingo-overlay__btn {
  font-family: var(--font-default);
  font-weight: 600;
  font-size: 14px;
  border-radius: 30px;
  padding: 12px 22px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.bingo-overlay__btn:hover { background: rgba(255,255,255,0.1); }

.bingo-overlay__btn.primary {
  background: var(--white);
  border-color: transparent;
  color: var(--accent-text);
}

.bingo-overlay__btn.primary:hover { filter: brightness(0.95); }

.bingo-overlay__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 35, 41, 0.55);
  border: none;
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
  z-index: 5;
}

.bingo-overlay__close:hover { opacity: 1; }

.bingo-footer {
  max-width: 1700px;
  margin: 0 auto 60px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bingo-footer__reset {
  font-family: var(--font-default);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
}

.bingo-footer__reset:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }

.bingo-footer__progress {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 900px) {
  .bingo-board { grid-template-columns: repeat(3, 1fr); }
  .bingo-header h1 { font-size: 32px; }
  .bingo-overlay__caption { flex-direction: column; align-items: stretch; }
  .bingo-overlay__caption .bingo-overlay__btn { align-self: stretch; text-align: center; }
}

@media (max-width: 600px) {
  .bingo-board { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
