
/* =================================
   SHATAKA - MODERN DESIGN
================================= */

:root {
    --primary: #176B70;
    --primary-dark: #12565B;
    --accent: #39AAA5;
    --background: #F4F7F8;
    --surface: #FFFFFF;
    --text: #263B40;
    --muted: #829296;
    --tile: #E8F5F4;
    --border: #E4ECEC;
    --shadow: 0 12px 35px rgba(29, 72, 76, 0.08);
}

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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}

/* HEADER */

.topbar {
    min-height: 82px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 7%;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -1px;
    color: var(--primary);
}

.brand-tagline {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--muted);
    font-weight: 600;
}

.navigation {
    display: flex;
    gap: 32px;
}

.navigation a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
}

.navigation a:hover {
    color: var(--accent);
}

/* MAIN CONTENT */

.main-container {
    max-width: 1100px;
    margin: 55px auto;
    padding: 0 24px;
}

.welcome {
    text-align: center;
    margin-bottom: 35px;
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.welcome h1 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 650;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.welcome p:last-child {
    color: var(--muted);
    font-size: 15px;
}

/* GAME CARD */

.game-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 850px;
    margin: auto;
}

.game-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    gap: 15px;
}

.game-heading h2 {
    font-size: 21px;
    font-weight: 650;
    margin-bottom: 6px;
}

.game-heading p {
    color: var(--muted);
    font-size: 13px;
}

.game-label {
    color: var(--primary);
    background: var(--tile);
    padding: 9px 14px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* GAME LAYOUT */

.game-layout {
    display: flex;
    align-items: center;
   /* justify-content: center;*/
    gap: 35px;
    background: #F5FAFA;
    border-radius: 14px;
    padding: 35px 20px;
}

/* CONTROL BUTTONS */

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iconbutton {
    width: 43px;
    height: 43px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--primary);
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.iconbutton:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.iconbutton:disabled{
  background-color: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  pointer-events: none;
}
/* PUZZLE */

.puzzle-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(3, 72px);
    grid-template-rows: repeat(3, 72px);
    gap: 7px;
    padding: 12px;
    background: white;
    border-radius: 13px;
    border: 1px solid var(--border);
}

.grid-item {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 9px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.grid-item:hover {
    background: var(--primary-dark);
    transform: scale(1.04);
}
/*
.number-cell.empty {
    background: var(--tile);
    border: 1px dashed #A9CDCA;
    cursor: default;
}
*/
/* NUMBER OPTIONS */

.number-options {
    
    justify-content: center;
    gap: 9px;
}

.ansbutton {
    min-width: 58px;
    height: 46px;
    padding: 0 12px;
    border: none;
    border-radius: 9px;
    background: #DDEDEC;
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ansbutton:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* FOOTER */

.game-footer {
    text-align: center;
    padding-top: 25px;
    color: var(--muted);
    font-size: 12px;
}

.page-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--muted);
    font-size: 12px;
}

#dialogscreen{ 
        text-align:center;
    
    background-color: #ebf5fb;
    font-size:1.8em;
    display:flex;
    flex-direction:column;
    margin:15px;
    padding:10px;
    line-height:1.3;
    overflow:hidden;
         }
 #msg{
     line-height:1.3;
     padding:10px;
     margin:10px;
     font-size:xx-large;
     
 }   
dialog { 
  margin:auto;
  padding:20px;
  border:none;
  border-radius:12px;
  background:#eee;
  
  box-shadow:5px 5px 10px gray;
  
}
::backdrop {
  background-image: linear-gradient(135deg, lightgreen, lightblue,lightpink);  opacity: 0.65;
  backdrop-filter:hue-rotate(120deg);
  place-items:center;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 600px) {

    .topbar {
        padding: 14px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .brand-name {
        font-size: 25px;
    }

    .navigation {
        gap: 18px;
    }

    .navigation a {
        font-size: 13px;
    }

    .main-container {
        margin: 32px auto;
        padding: 0 14px;
    }

    .game-card {
        padding: 18px 12px;
    }

    .game-heading {
        align-items: flex-start;
    }

    .game-heading h2 {
        font-size: 18px;
    }

    .game-heading p {
        font-size: 12px;
    }

    .game-label {
        font-size: 8px;
        padding: 7px 9px;
    }

    .game-layout {
        flex-direction: column;
        gap: 20px;
        padding: 20px 10px;
    }

    .game-controls {
        flex-direction: row;
        justify-content: center;
    }

    .number-grid {
        grid-template-columns: repeat(3, min(19vw, 68px));
        grid-template-rows: repeat(3, min(19vw, 68px));
        gap: 6px;
        padding: 9px;
    }

    .grid-item {
        font-size: 18px;
    }

    .ansbutton {
        min-width: 52px;
        height: 43px;
        font-size: 16px;
    }
}
