[html]
<!------- data-db-topic-id="11" - вместо цифры айди темы, куда будут ссыпаться невидимые сообщения юзеров -------------->
<div class="bingo-match-game" data-db-topic-id="11" data-word-count='2'>
  <div class="bingo-header">
    <h3>BINGO: Точки соприкосновения</h3>
    <p>Впишите слова или короткие фразы через запятую. Если они совпадут с чужими - карты перевернутся.</p>
  </div>
 
  <div class="bingo-controls">
    <input type="text" id="bingo-input" placeholder="громкие звуки, дети, попса, солнце..." autocomplete="off">
    <button id="bingo-submit">Отправить</button>
  </div>
 
  <!-- Сюда скрипт раздаёт карты, трогать не надо -->
  <div class="bingo-table" id="bingo-table">
    <div class="bingo-status">Установка соединения с базой...</div>
  </div>
</div>

<style>

.bingo-match-game {
  font-family: 'Playfair Display', serif;
  margin: 20px 0;
  padding: 25px 30px;
  background: url(https://forumstatic.ru/files/001c/b9/21/42951.png) no-repeat top / 100%, url(https://forumstatic.ru/files/001c/b9/21/99326.png) repeat, #ababab;
  border: 1px solid #d4c5b0;
  border-radius: 4px;
  box-shadow:
    inset 0 0 40px rgba(139, 115, 85, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.bingo-header {
    text-align: center;
    margin-bottom: 25px;
    background: #fff5e4ad;
    box-shadow: 0px 2px 9px -3px #00000069;
    border: 2px solid #d1ba90;
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 10px;
}

.bingo-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-family: 'Moisette';
    text-transform: uppercase;
    margin-bottom: 10px !important;
    letter-spacing: 2px;
    color: #32393e;
}

.bingo-header p {
  font-style: italic;
  color: #7a6b58;
  font-size: 15px;
  margin: 0;
}

.bingo-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
}

.bingo-controls input {
  flex-grow: 1;
  max-width: 500px;
  padding: 10px 15px;
  background: #fdfdfa;
  border: 1px solid #c2b59b;
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  color: #3e3222;
  box-shadow: inset 1px 2px 4px rgba(139, 115, 85, 0.1);
  transition: all 0.3s;
}

.bingo-controls input:focus {
  outline: none;
  border-color: #2c4251;
  box-shadow: 0 0 8px rgba(44, 66, 81, 0.2);
}

.bingo-controls button {
  padding: 10px 25px;
  background: linear-gradient(to bottom, #3b5366, #213340);
  border: 1px solid #383d40;
  border-radius: 3px;
  color: #eaddc5;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.bingo-controls button:hover:not(:disabled) {
    filter: brightness(1.1);
    color: white;
}

.bingo-controls button:disabled {
  filter: grayscale(100%);
  opacity: 0.7;
  cursor: not-allowed;
}

.bingo-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    perspective: 1000px;
    min-height: 280px;
    padding: 20px;
    background: #8b888278;
    box-shadow: 0px 2px 9px -3px #00000069;
    border: 2px solid #d1ba90;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.bingo-card {
    width: 151px;
    height: 227px;
  background-color: transparent;
  opacity: 0;
  transform: translateY(-20px);
  transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bingo-card.dealt {
  opacity: 1;
  transform: translateY(0);
}

.bingo-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.bingo-card.flipped .bingo-card-inner {
  transform: rotateY(180deg);
}

.bingo-cover, .bingo-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 6px;
  box-shadow:
    0 5px 15px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
}

.bingo-cover {
background: url(https://forumstatic.ru/files/001c/b9/21/14038.png) no-repeat center 53px / 113px, linear-gradient(135deg, #233446, #121b24);
    border: 2px solid #b39762;
}

.bingo-card .bingo-card-inner::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(179, 151, 98, 0.3);
  border-radius: 3px;
  pointer-events: none;
  z-index: 3;
}

.bingo-card.flipped .bingo-card-inner::before {
  border: 1px solid rgb(152 160 169);
}

.bingo-face {
  background: radial-gradient(#ede3da, #cdc1b7);
  border: 1px solid #8b9197;
  transform: rotateY(180deg);
  overflow-y: auto;
  box-shadow:
    0 5px 15px rgba(0,0,0,0.15),
    inset 0 0 40px rgba(212, 197, 176, 0.3);
}

.bingo-face::-webkit-scrollbar { width: 4px; }
.bingo-face::-webkit-scrollbar-thumb { background: #dcd3c1; border-radius: 4px; }

.bingo-username {
    font-weight: 400;
    font-size: 13px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    width: 100%;
    word-break: break-all;
    text-transform: capitalize;
}

.bingo-cover .bingo-username {
  color: #eaddc5;
  border-bottom: 1px solid rgba(179, 151, 98, 0.4);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.bingo-face .bingo-username {
    color: #31475c;
    font-weight: 600;
    border-bottom: 1px solid rgb(152 160 169);
}

.bingo-words {
    padding: 0 !important;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    font-family: 'Inter Tight';
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bingo-words li {
    padding: 2px 0;
    color: #8a7d6d;
    font-size: 12px;
    line-height: 1.2;
    word-break: break-word;
    transition: color 0.3s;
}

.bingo-words li.matched-word {
    color: #25394e;
    font-weight: 600;
    position: relative;
}

.bingo-words li.matched-word::before {
  content: '✦';
  position: absolute;
  left: -12px;
  color: #b39762;
  font-size: 10px;
  line-height: 1.5;
}

.bingo-card.super-match .bingo-face {
  border: 1px solid #d4af37;
  background: #fffcf2;
  box-shadow:
    0 0 20px rgba(212, 175, 55, 0.4),
    inset 0 0 15px rgba(212, 175, 55, 0.1);
}

.bingo-table:has(.bingo-card.dimmed) .bingo-card:not(.flipped), .bingo-card.dimmed,
.bingo-table:has(.bingo-card.dimmed) .bingo-card:not(.flipped):not(.highlight-match),
.bingo-card.dimmed {
  opacity: 0.2 !important;
  transform: translateY(0) !important;
  z-index: 1;
}

.bingo-card.highlight-match {
  filter: brightness(1.1);
  z-index: 10;
}

.bingo-status {
  width: 100%;
  text-align: center;
  color: #7a6b58;
  font-style: italic;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

</style>

[/html][hideprofile]