
/* -------- Reset (минимальный) -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Myriad Pro", "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.4;
  background: linear-gradient(180deg,#fdf2e9 0%,#d1e2e3 100%);
  color: #1a1a1a;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.site-header {
  width: 100%;
  justify-content: center;
}
.breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
}
.page-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}
.page-title {
  margin: 0;
}
.game-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.game-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
   justify-content: center; 
}
.game-lpanel,
.game-rpanel {
  flex: 0 0 240px;
}
.game-rpanel {
  min-height: 140px;
}
@media (max-width: 1200px) {
  .game-rpanel {
    min-height: 0;
  }
}
.game-board {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 12px;
  gap: 12px;
}
#game-board {
  display: grid;
  width: 100%;
  height: 100%;
}
@media (max-width: 1200px) {
  .game-layout {
    display: flex;
    flex-wrap: wrap;
  }
  .game-board  { 
    order: 2;
    flex: 0 0 auto;
    min-width: 320px;
  }
  .game-lpanel { 
    order: 2;
    flex: 0 0 240px;
  }
  .game-rpanel { 
    order: 3;
    flex: 0 1 auto;
  }
}
@media (max-width: 900px) {
  .game-lpanel,
  .game-board,
  .game-rpanel {
    flex: 1 1 100%;
	   max-width: 444px;
    margin: 0 auto;
  }
  .game-board  { order: 1; }
  .game-rpanel { order: 2; }
  .game-lpanel { order: 3; }
}
.site-footer {
  width: 100%;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.footer-cont {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.footer-cont p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}
.footer-page {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 0 6px;
  font-size: 13px;
}
.footer-page a {
  text-decoration: none;
  color: inherit;
  padding: 2px 4px;
}
.footer-page a:hover {
  text-decoration: underline;
}
.content-block {
  max-width: 1200px;
  margin: 0 auto;
  paddin
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin: 0 auto;
     text-align: center;
}
.site-logo .logo {
  height: 45px;
  width: auto;
  display: block;
 
}
.breadcrumbs {
  width: 100%;
  margin: 0; 
  max-width: none;
  padding: 2px 20px 3px;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
  border-bottom: 2px solid #e9dec8;
}
.breadcrumbs a {
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs a,
.breadcrumbs .light-dark {
  pointer-events: auto;
}
.board-top {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 0 5px; 
}
.board-top .board-check + .board-check {
  margin-left: 8px;
}
.board-top .board-check {
  z-index: 1;
}
.board-top .board-check span {
  font-size: 13px;
 }
.board-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.page-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 12px;
  text-align: left;
}
@media (max-width: 480px) {
  .page-head {
    padding: 6px 12px 6px;
  }
}
.page-title {
  margin: 0;
  text-align: center;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800; 
  letter-spacing: 0.4px;
  color: #0b6b78; 
  -webkit-text-stroke: 1px #f28c28;
 }
@media (max-width: 480px) {
  .page-title {
    font-size: 26px; 
    line-height: 1.35;
    margin-top: 2px;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
  }
}
.mobile-nav {
  display: none;
}
@media (max-width: 560px) {
  .breadcrumbs {
    display: none;
  }
  .site-header {
    display: none;
  }
}
@media (max-width: 560px) {
  .header-inner {
    padding: 12px 16px;
  }
  .site-logo .logo {
    height: 32px;
  }
}
.ico {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}
@media (max-width: 560px) {
  .mobile-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 12px;
  }
}
.game-lpanel,
.game-rpanel {
  padding: 12px;
}
.game-status {
  font-size: 14px;
}
.game-placeholder {
  text-align: center;
  font-size: 14px;
}
.game-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.game-controls .btn {
  max-width: 200px;
  width: 100%;
}
@media (min-width: 1201px) {
  .game-controls {
    align-items: flex-start;
  }
}
@media (max-width: 1200px) {
  .game-controls {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
	  }
  .game-controls .btn {
    width: auto;
  }
}
@media (max-width: 560px) {
  .game-controls {
    flex-direction: row;
    gap: 6px;
  }
  .game-controls .btn {
    padding: 6px 5px;
    font-size: 13px;
    width: auto;
  }
}
.game-bottom-bar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 19px;
  margin-top: 6px;
  min-height: 32px;
}
.btn.btn-rules,
.btn.btn-restart {
  padding: 5px 5px;
  font-size: 13px;
  line-height: 1;
  border-radius: 6px;
  border-width: 1px;
  border-style: solid;
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.status-player {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-message {
  margin-top: 6px;
  text-align: center;
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: none;
}
.btn:disabled {
  cursor: default;
  opacity: 0.6;
}
.btn.is-toggle {
  font-weight: 500;
}
.btn .ico {
  width: 16px;
  height: 16px;
  margin-right: 3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  flex-shrink: 0;
}
.ico {
  width: 18px;
  height: 18px;
  display: inline-block;
}
.big-description {
  padding: 60px 20px;
 }
.big-description .container {
  max-width: 1200px;
  margin: 0 auto;
}
.big-description .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  }
.big-description .col-5 {
  flex: 0 0 41.666%;
  max-width: 41.666%;
  padding: 15px;
}
.big-description .col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 15px;
}
.big-description .col-7 {
  flex: 0 0 58.333%;
  max-width: 58.333%;
  padding: 15px;
}
.big-description-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; 
  border-radius: 12px;
  }
.big-description-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}
.big-description-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.feature-item {
  text-align: center;
  min-height: 160px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.40);
  border-radius: 12px;
  border: 1px solid #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}
.feature-icon .ico {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
@media (max-width: 991px) {
  .features {
    grid-template-columns: 1fr;
  }
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .big-description .col-5,
  .big-description .col-6,
  .big-description .col-7 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .big-description .row {
    flex-direction: column;
    align-items: flex-start;
  }
}
.amazon-block {
    background: rgba(255, 255, 255, 0.40);
  margin: 5px 20px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
.amazon-offer .price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #222;
}
.amazon-btn {
  display: inline-block;
  background-color: #FF9900;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}
.amazon-btn:hover {
  background-color: #e68a00;
}
.highlight-block {
  width: 100%;
  padding: 20px;
  text-align: center;
}
.highlight-block .container {
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .highlight-block {
    display: none;
  }
}
.content-block {
  font-size: 15px;
  line-height: 1.5;
}
.games-carousel {
  padding: 0;
}
.crumbs-bar {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 2px 20px 3px;
}
.breadcrumbs-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
@media (max-width: 1200px) {
  .game-rpanel small {
    display: block;
    margin-top: 30px;
  }
  .game-rpanel small a {
    text-decoration: none;
  }
  .game-rpanel small a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  
  
}

.all-games {
  width: 100%;
  padding: 20px;
  text-align: center;
}
.all-games .container {
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-only-title {
  display: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  margin: 9px 0 1px;
}
@media (max-width: 480px) {
  .mobile-only-title {
    display: block;
  }
}
.web-download {
  display: none;
}
@media (max-width: 1200px) {
  .web-download {
	      background: rgba(255, 255, 255, 0.40);
  margin: 5px 20px;
  padding: 10px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  display: block;
  }
  .web-download a {
  text-decoration: none;
}
.download {
  display: none;
}
}

.download p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  color: var(--text-muted);
}

.download p:first-child {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-primary);
}

.download {
  margin-top: 20px;
}

.site-footer {
  text-align: center;
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

:root {
--bg-page: linear-gradient(
    180deg,
    #fdf2e9 0%,
    #d1e2e3 100%
  );
  --bg-panel: #fff;
  --text-main: #1a1a1a;
  --text-muted: #6b7280;
  --mode-players: #afd3f4; 
  --mode-easy:    #9fd6b2; 
  --mode-hard:    #ecb4a1; 
  --accent-primary: #0b6b78;
  --accent-secondary: #22c55e;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --bg-breadcrumbs: #fff;
  --border-soft: #e5e7eb;
    --border-sol: #dccfc1;
    --header-bg-opacity: 0.6;
  --breadcrumbs-bg-opacity: 0.6;
    --bg-icon-color: rgba(0, 0, 0, 0.06);
  --bg-opacity: 1;
    --bg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='34' fill='none' stroke='%23000' stroke-width='15'/%3E%3C/svg%3E");
  --bg-size: 50px;
  --bg-opacity: 0.02;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image:
    var(--bg-icon),
    none,
    none,
    var(--bg-icon);

  background-repeat: repeat;
  color: var(--bg-icon-color);
  background-size:
    calc(var(--bg-size) * 0.5) calc(var(--bg-size) * 0.5),
    calc(var(--bg-size) * 0.5) calc(var(--bg-size) * 0.5),
    calc(var(--bg-size) * 0.5) calc(var(--bg-size) * 0.5),
    calc(var(--bg-size) * 0.5) calc(var(--bg-size) * 0.5);

  background-position:
    0 0,  
    calc(var(--bg-size) * 0.5) 0,  
    0 calc(var(--bg-size) * 0.5),  
    calc(var(--bg-size) * 0.5) calc(var(--bg-size) * 0.5); 

  opacity: var(--bg-opacity);
  pointer-events: none;
  z-index: -1;
}

a {
  color: #348194;
}


h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 18px;
  color: var(--accent-primary);
}

h3 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--accent-primary);
}

h4 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--accent-primary);
}

h5 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.site-footer {
  background: color-mix(
    in srgb,
    var(--bg-panel) calc(var(--header-bg-opacity) * 100%),
    transparent
  );
}
.breadcrumbs a {
  color: #348194;
}

@media (max-width: 480px) {

  .site-header,
  .site-footer {
    background: transparent;
  }
  .breadcrumbs {
    background: transparent;
  }
}
.game-board {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f6f2ec 100%
  ); 
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 20px;
}
.text-muted {
  color: var(--text-muted);
}
.btn {
  color: var(--text-main);
  background: var(--bg-panel);
  border: 3px solid var(--border-sol);
  border-radius: 10px;
}
.board-top .btn-restart {
  border-color: #f57c00;
  color: #f57c00;
}
.game-bottom-bar .btn-restart:active {
  background: #f57c00;
  color: #fff;
}
.game-bottom-bar .btn-rules {
  border-color: #1976d2;
  color: #1976d2;
}
.game-bottom-bar .btn-rules:hover {
  background: rgba(25, 118, 210, 0.12);
}
.game-bottom-bar .btn-rules:active {
  background: #1976d2;
  color: #fff;
}
.btn:hover {
  background: #f9fafb;
}
.btn.is-toggle {
  border-color: var(--border-sol);
}
.btn.is-toggle.is-active[data-mode="players"] {
  background: var(--mode-players);
  border-color: var(--mode-players);
}
.btn.is-toggle.is-active[data-mode="easy"] {
  background: var(--mode-easy);
  border-color: var(--mode-easy);
}
.btn.is-toggle.is-active[data-mode="normal"] {
  background: var(--mode-players);
  border-color: var(--mode-players);
}
.btn.is-toggle.is-active[data-mode="hard"] {
  background: var(--mode-hard);
  border-color: var(--mode-hard);
}
.state-active {
  color: var(--accent-primary);
}
.state-win {
  color: var(--accent-secondary);
}
.state-lose {
  color: var(--accent-danger);
}
.player-1 {
  color: var(--accent-primary);
}
.player-2 {
  color: var(--accent-warning);
}
.score-badge.p1 { background: #c62828; } /* player 1 */
.score-badge.p2 { background: #2e7d32; } /* player 2 */
.game-status.is-p1-active .score-badge.p2,
.game-status.is-p2-active .score-badge.p1 {
  opacity: 0.35;
}
.game-status.is-p1-active .score-badge.p1,
.game-status.is-p2-active .score-badge.p2 {
  opacity: 1;
}