 :root {
      --bg: #FAF8F5;
      --bg-alt: #F2EFE9;
      --surface: #FFFFFF;
      --text: #18181B;
      --text-muted: #52525B;
      --border: #E4DFD7;
      --accent: #B45309;
      --accent-hover: #92400E;
      --dark: #18181B;
      --radius: 12px;
      --shadow: 0 8px 24px rgba(24, 24, 27, 0.06);
      --max-w: 1160px;
    }

    *, *::before, *::after {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }

    h1, h2, h3, h4 {
      font-family: Georgia, "Times New Roman", serif;
      line-height: 1.25;
      margin-top: 0;
      color: var(--text);
    }

    h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 1.25rem; }
    h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); margin-bottom: 1rem; }
    h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }

    p { margin-top: 0; margin-bottom: 1.1rem; color: var(--text-muted); }
    a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
    a:hover { color: var(--accent-hover); }

    .container {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* Header & Navigation */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(250, 248, 245, 0.94);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--border);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 76px;
      gap: 1rem;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      color: var(--text);
    }

    .brand-stones {
      display: inline-flex;
      align-items: center;
    }

    .stone-black, .stone-white {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: inline-block;
    }

    .stone-black {
      background: radial-gradient(circle at 30% 30%, #3F3F46, #09090B);
      box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    }

    .stone-white {
      background: radial-gradient(circle at 30% 30%, #FFFFFF, #E4E4E7);
      border: 1px solid #D4D4D8;
      margin-left: -8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    }

	.hero-logo {
      max-height: 50%;
      max-width: 50%;
      height: 60px;
	  margin: 10px 0px 10px 15px; 
      object-fit: contain;
      border-radius: 6px;
      filter: drop-shadow(0 10px 20px rgba(24, 24, 27, 0.18));
    }


    .brand-text {
      display: flex;
      flex-direction: column;
      line-height: 1.2;
    }

    .brand-text strong {
      font-family: Georgia, serif;
      font-size: 1.2rem;
      color: var(--text);
    }

    .brand-text span {
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    .main-nav {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .main-nav a:not(.btn) {
      color: var(--text);
      font-size: 0.93rem;
      font-weight: 500;
    }

    .main-nav a:not(.btn):hover {
      color: var(--accent);
    }

    .mobile-menu-btn {
      display: none;
      background: none;
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 0.5rem;
      cursor: pointer;
    }

    .mobile-menu-btn span {
      display: block;
      width: 20px;
      height: 2px;
      background: var(--text);
      margin: 4px 0;
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.8rem 1.4rem;
      border-radius: 8px;
      font-weight: 600;
      font-size: 0.95rem;
      cursor: pointer;
      transition: all 0.2s ease;
      border: 1px solid transparent;
    }

    .btn-sm {
      padding: 0.55rem 1rem;
      font-size: 0.88rem;
    }

    .btn-primary {
      background: var(--dark);
      color: #FFFFFF !important;
    }

    .btn-primary:hover {
      background: var(--accent);
    }

    .btn-secondary {
      background: var(--surface);
      color: var(--text) !important;
      border-color: var(--border);
    }

    .btn-secondary:hover {
      border-color: var(--dark);
    }

    .btn-accent {
      background: var(--accent);
      color: #FFFFFF !important;
    }

    .btn-accent:hover {
      background: var(--accent-hover);
    }

    /* Hero Section */
    .hero {
      padding: 5rem 0 4rem;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 3.5rem;
      align-items: center;
    }

    .eyebrow {
      display: inline-block;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 0.75rem;
    }

    .eyebrow-light {
      color: #FBBF24;
    }

    .lead {
      font-size: 1.12rem;
      margin-bottom: 1.8rem;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      margin-bottom: 2.5rem;
    }

    .hero-stats {
      display: flex;
      gap: 2.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--border);
    }

    .hero-stats strong {
      display: block;
      font-family: Georgia, serif;
      font-size: 1.5rem;
      color: var(--text);
    }

    .hero-stats span {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .goban-card {
      background: var(--surface);
      padding: 1.25rem;
      border-radius: 16px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }

    .hero-image-wrap {
      background: linear-gradient(145deg, #F6F4EF 0%, #EAE5DC 100%);
      border-radius: 10px;
      height: 320px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      overflow: hidden;
    }

    .hero-image {
      max-height: 100%;
      max-width: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 6px;
      filter: drop-shadow(0 10px 20px rgba(24, 24, 27, 0.18));
    }

   .std-image-wrap {
      border-radius: 10px;
      height: 320px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      overflow: hidden;
    }

    .std-image {
      max-height: 100%;
      max-width: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 6px;
    }

    .goban-caption {
      display: flex;
      justify-content: space-between;
      font-size: 0.82rem;
      color: var(--text-muted);
      margin-top: 0.85rem;
    }

    /* 4 Pillars */
    .pillars {
      padding: 1rem 0 4rem;
    }

    .pillars-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
    }

    .pillar-card {
      background: var(--surface);
      padding: 1.75rem;
      border-radius: var(--radius);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }

    .pillar-icon {
      font-family: Georgia, serif;
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 0.6rem;
    }

    /* Sections */
    .section {
      padding: 5rem 0;
    }

    .section-alt {
      background: var(--bg-alt);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .split-layout {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 3.5rem;
      align-items: start;
    }

    .info-box, .service-panel, .contact-form, .rules-box {
      background: var(--surface);
      padding: 2.2rem;
      border-radius: var(--radius);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }

    .rules-list {
      padding-left: 1.2rem;
      margin-top: 1rem;
    }

    .rules-list li {
      margin-bottom: 1rem;
    }

    .rules-list strong {
      color: var(--text);
    }

    .timeline-list {
      list-style: none;
      padding: 0;
      margin: 1rem 0 0;
    }

    .timeline-list li {
      display: grid;
      grid-template-columns: 90px 1fr;
      gap: 1rem;
      padding: 0.9rem 0;
      border-bottom: 1px solid var(--border);
    }

    .timeline-list li:last-child {
      border-bottom: none;
    }

    .timeline-list strong {
      color: var(--accent);
      font-family: Georgia, serif;
    }

    /* Product Grid, Images & Filters */
    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      flex-wrap: wrap;
      gap: 1.5rem;
      margin-bottom: 2.5rem;
    }

    .filter-tabs {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .filter-btn {
      background: var(--surface);
      border: 1px solid var(--border);
      padding: 0.55rem 1.1rem;
      border-radius: 999px;
      font-size: 0.88rem;
      font-weight: 600;
      cursor: pointer;
      color: var(--text-muted);
      transition: all 0.2s;
    }

    .filter-btn.active {
      background: var(--dark);
      color: #FFFFFF;
      border-color: var(--dark);
    }

    .product-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .product-card {
      background: var(--surface);
      padding: 1.2rem;
      border-radius: var(--radius);
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .product-card p {
      font-size: 0.92rem;
    }

    .product-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow);
    }

    .product-image-wrap {
      background: linear-gradient(145deg, #F6F4EF 0%, #EAE5DC 100%);
      border-radius: 8px;
      height: 210px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.2rem;
      margin-bottom: 1.1rem;
      border: 1px solid var(--border);
      position: relative;
      overflow: hidden;
    }

    .product-image {
      max-height: 100%;
      max-width: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 3px;
      filter: drop-shadow(0 8px 16px rgba(24, 24, 27, 0.16));
      transition: transform 0.3s ease;
    }

	.product-image-link {
	  display: block;
	  text-decoration: none;
	  color: inherit;
	}

	.product-image-link:hover .product-image-wrap {
	  border-color: var(--accent);
	}

    .product-card:hover .product-image {
      transform: scale(1.04) translateY(-2px);
    }

    .product-placeholder {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: var(--text-muted);
      font-family: Georgia, serif;
      font-size: 0.78rem;
      padding: 0.8rem;
      border: 1px solid #D6CFC2;
      border-left: 5px solid var(--accent);
      border-radius: 4px 8px 8px 4px;
      width: 130px;
      height: 165px;
      background: #FAF8F5;
      box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    }

    .product-placeholder strong {
      color: var(--text);
      font-size: 0.82rem;
      display: block;
      margin-top: 0.3rem;
      line-height: 1.2;
    }

    .badge {
      display: inline-block;
      align-self: flex-start;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      background: var(--bg-alt);
      color: var(--accent);
      padding: 0.25rem 0.6rem;
      border-radius: 6px;
      margin-bottom: 0.75rem;
    }

    .product-meta {
      display: flex;
      justify-content: space-between;
      font-size: 0.78rem;
      color: var(--text-muted);
      padding-top: 0.8rem;
      margin-top: 0.7rem;
      border-top: 1px solid var(--border);
      margin-bottom: 0.7rem;
    }

    .card-link {
      font-weight: 600;
      font-size: 0.9rem;
    }

    /* Shop Banner */
    .shop-banner {
      background: var(--dark);
      color: #FFFFFF;
      padding: 4rem 0;
    }

    .shop-banner h2 {
      color: #FFFFFF;
    }

    .shop-banner p {
      color: #D4D4D8;
      max-width: 640px;
      margin-bottom: 0;
    }

    .shop-banner-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
      flex-wrap: wrap;
    }

    /* Service & Features */
    .feature-list {
      padding-left: 1.2rem;
      color: var(--text-muted);
    }

    .feature-list li {
      margin-bottom: 0.85rem;
    }

    .feature-list strong {
      color: var(--text);
    }

    .download-box {
      background: var(--bg);
      border: 2px solid var(--border);
      padding: 0.3rem 1.25rem;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin: 1.25rem 0 1.5rem;
    }

    .download-box strong {
      display: block;
      font-size: 0.95rem;
    }

    .download-box span {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .dgob-box h4 {
      margin-bottom: 0.5rem;
    }

    .dgob-box ul {
      padding-left: 1.1rem;
      margin: 0;
      font-size: 0.92rem;
      color: var(--text-muted);
    }

    .dgob-box li {
      margin-bottom: 0.4rem;
    }

    /* Contact & Legal */
    .contact-details {
      display: grid;
      gap: 1.25rem;
      margin-top: 1.75rem;
    }

    .contact-item strong {
      display: block;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--accent);
      margin-bottom: 0.2rem;
    }

    .form-hint {
      font-size: 0.85rem;
      margin-bottom: 1.25rem;
    }

    .form-group {
      margin-bottom: 1.1rem;
    }

    .form-group label {
      display: block;
      font-size: 0.88rem;
      font-weight: 600;
      margin-bottom: 0.35rem;
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 0.75rem 0.9rem;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-family: inherit;
      font-size: 0.95rem;
      background: var(--bg);
    }

    /* Legal Accordion Area */
    .legal-section {
      padding: 3rem 0;
      background: var(--surface);
      border-top: 1px solid var(--border);
    }

    details.legal-box {
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1rem 1.5rem;
      margin-bottom: 1rem;
      background: var(--bg);
    }

    details.legal-box summary {
      font-family: Georgia, serif;
      font-weight: 700;
      font-size: 1.1rem;
      cursor: pointer;
      color: var(--text);
    }

    .legal-content {
      padding-top: 1rem;
      margin-top: 1rem;
      border-top: 1px solid var(--border);
      font-size: 0.92rem;
    }

    /* Footer */
    .site-footer {
      background: #121214;
      color: #A1A1AA;
      padding: 3.5rem 0 2rem;
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 2rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid #27272A;
    }

    .footer-brand strong {
      color: #FFFFFF;
      font-family: Georgia, serif;
      font-size: 1.2rem;
    }

    .footer-brand p {
      color: #A1A1AA;
      font-size: 0.9rem;
      margin-top: 0.4rem;
    }

    .footer-links {
      display: flex;
      gap: 1.5rem;
      flex-wrap: wrap;
    }

    .footer-links a {
      color: #E4E4E7;
      font-size: 0.92rem;
    }

    .footer-bottom {
      padding-top: 1.5rem;
      font-size: 0.82rem;
    }

    /* Responsive */
    @media (max-width: 960px) {
      .hero-grid,
      .split-layout {
        grid-template-columns: 1fr;
      }
      .pillars-grid,
      .product-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 720px) {
      .mobile-menu-btn {
        display: block;
      }
      .main-nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
      }
      .main-nav.open {
        display: flex;
      }
      .pillars-grid,
      .product-grid {
        grid-template-columns: 1fr;
      }
    }
	
	
	 .go-board-container {
            background-color: #dcb35c;
            border: 2px solid #6b4c20;
            aspect-ratio: 1/1;
            position: relative;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            
            display: grid;
            /* The size of the coordinate tracks is now controlled by JS */
            grid-template-rows: var(--coord-track-size) 1fr var(--coord-track-size);
            grid-template-columns: var(--coord-track-size) 1fr var(--coord-track-size);
            /* Padding and gap are also controlled by JS */
            padding: var(--board-padding);
            gap: var(--board-gap);
            /* Add a smooth transition for the size change */
            transition: padding 0.3s ease-in-out, gap 0.3s ease-in-out;
        }
        .playing-area {
            position: relative;
            width: 100%;
            height: 100%;
            --line-color: #6b4c20;
            --line-width: 1px;
            /* Grid implementation using CSS background */
            background-image:
                repeating-linear-gradient(to right, var(--line-color) 0 var(--line-width), transparent var(--line-width) 100%),
                repeating-linear-gradient(to bottom, var(--line-color) 0 var(--line-width), transparent var(--line-width) 100%);
            background-size: calc(100% / 18) calc(100% / 18);
            cursor: pointer;
        }
        /* This pseudo-element ensures the right and bottom borders are always visible */
        .playing-area::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            /* Use a slightly thicker border to visually match the rendered gradient lines */
            border-right: 1.5px solid var(--line-color);
            border-bottom: 1.5px solid var(--line-color);
            pointer-events: none; /* Make sure it doesn't block clicks */
        }
        .stone {
            position: absolute;
            /* transform centers the stone on the calculated top/left coordinate */
            transform: translate(-50%, -50%);
            /* Width is calculated to be slightly smaller than the space between lines */
            width: 5.3%; /* (100% / 18 spaces) * 0.95 stone size */
            height: 5.3%;
            border-radius: 50%;
            box-shadow: 1px 1px 3px rgba(0,0,0,0.4);
            z-index: 2;
            pointer-events: none; /* Stones should not block clicks on the grid below */
        }
        .stone.black {
            background: radial-gradient(circle at 35% 35%, #555, #000);
        }
        .stone.white {
            background: radial-gradient(circle at 35% 35%, #fff, #ccc);
        }
        .star-point {
            position: absolute;
            width: 6px; 
            height: 6px;
            background-color: #6b4c20;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            z-index: 0;
        }
        .stone.last-move-marker {
           box-shadow: 1px 1px 3px rgba(0,0,0,0.4), 0 0 0 3px #ef4444;
        }
        .move-number {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-weight: 600;
            z-index: 4;
            user-select: none;
            line-height: 1;
            font-size: clamp(7px, 1.2vw, 12px);
        }
        .move-number.black {
            color: white;
            text-shadow: 0 0 2px rgba(0,0,0,0.7);
        }
        .move-number.white {
            color: black;
            text-shadow: 0 0 2px rgba(255,255,255,0.7);
        }
        .markup {
            position: absolute;
            transform: translate(-50%, -50%);
            width: 5.3%; /* Same as stone */
            height: 5.3%;
            z-index: 5; /* Above move numbers */
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .markup-text {
            font-weight: bold;
            font-size: clamp(10px, 1.8vw, 18px);
            line-height: 1;
            user-select: none;
            z-index: 6; /* Ensure text is above background */
        }
        .markup-on-empty {
            color: #374151; /* A dark gray */
        }
        .markup-text.on-black-text {
            color: white;
            text-shadow: 0 0 2px rgba(0,0,0,0.7);
        }
        .markup-text.on-white-text {
            color: black;
            text-shadow: 0 0 2px rgba(255,255,255,0.7);
        }
        .markup-shape {
            width: 100%;
            height: 100%;
        }
        .markup.letter-background::before {
            content: '';
            position: absolute;
            width: 80%;
            height: 80%;
            background-color: #dcb35c;
            border-radius: 50%;
            z-index: 5;
        }
        .markup-shape.on-black {
            stroke: white;
            fill: none;
        }
        .markup-shape.on-white {
            stroke: black;
            fill: none;
        }
        .drag-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(75, 85, 99, 0.7);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 4px dashed #fff;
            margin: 1rem;
            border-radius: 0.75rem;
            pointer-events: none; /* Important for drop event */
        }
        .drag-overlay-text {
            color: white;
            font-size: 1.875rem;
            font-weight: bold;
            text-align: center;
            padding: 1rem;
        }
        .setup-tool-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: inline-block;
            border: 2px solid transparent;
        }
        .setup-tool-icon.black {
            background-color: black;
        }
        .setup-tool-icon.white {
            background-color: white;
            border-color: #333;
        }
        .collapsible-content {
            overflow: hidden;
            transition: grid-template-rows 0.3s ease-in-out;
            display: grid;
            grid-template-rows: 0fr;
        }
        .collapsible-content.expanded {
            grid-template-rows: 1fr;
        }
        .collapsible-content > div {
            min-height: 0;
        }
        .chevron {
            transition: transform 0.3s ease-in-out;
        }
        .chevron.expanded {
            transform: rotate(90deg);
        }
        #help-modal-content h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin-top: 1rem;
            margin-bottom: 0.5rem;
        }
        #help-modal-content h4 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-top: 0.75rem;
            margin-bottom: 0.25rem;
        }
        #help-modal-content p {
            margin-bottom: 0.5rem;
        }
        #help-modal-content ul {
            list-style-position: inside;
            padding-left: 0.5rem;
        }
        #help-modal-content li {
            margin-bottom: 0.25rem;
        }
        #help-modal-content hr {
            margin-top: 1rem;
            margin-bottom: 1rem;
            border-color: #e5e7eb;
        }
        [v-cloak] { display: none; }