  body { background-color: #304a38; font-family: 'Work Sans', sans-serif; padding: 24px; max-width: 1200px; margin: 0 auto; color: #FFF; text-align: center; scroll-behavior: smooth; }
    #game { scroll-margin-top: 14px; }
    * { box-sizing: border-box; }
    h1 {
  color: #fbeb80;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1.15;
}
    img, button, input { max-width: 100%; }
    i { vertical-align:middle; margin-right: 3px; font-size: 1em; color: #fbeb80; }
    img.logo { max-height:40px; max-width: 65%; margin-bottom: 20px; }
    .card { background-color: #455c4b; border-radius: 12px; padding: 16px; }
    .top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
    .top > div { min-width: 0; }
    .playerimg { width: 200px; height: 200px; object-fit: cover; border-radius: 12px; border: 1px solid #708275; background: #5a6f60; }
    .playerimg.is-blur { transform: scale(1.08); }
    .grid { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 100%;}
    .name-row{ display:flex; flex-wrap:nowrap; align-items:center; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; width: 100%; max-width: 100%; }
    .cell { width: 52px; height: 52px; text-align: center; font-size: 22px; font-weight: 700; text-transform: uppercase; border-radius: 10px; border: 2px solid #ccc; outline: none; flex: 0 0 auto; line-height: 1; padding: 0; background-clip: padding-box; }
    .cell:focus { border-color: #47d5a6; }
    .cell.hyphen { display:flex; align-items:center; justify-content:center; border:none; background:transparent; width:18px; font-size:22px; font-weight:700; color:#F1F1F1; pointer-events:none; }
    .cell.good { background: #22c55e; border-color: #16a34a; color: white; }
    .cell.bad  { background: #d94a4a; border-color: #b53d3d; color: white; }
    .actions { margin-top: 16px; display:flex; flex-wrap:wrap; gap: 10px; align-items: center; }
    button { background: #47d5a6; color: #115a42; border: 0; padding: 10px 14px; border-radius: 10px; cursor: pointer; text-decoration:none; font-weight: 600; font-size: 1.05em; transition: 0.25s;}
    button i { color: #000; }
    button:hover { background: #3bb68d; }
button.jump-icon {
  transition: transform .12s ease;
}
button.jump-icon:active {
  transform: translateY(1px);
}
button.jump-icon:active i {
  transform: translateY(-3px) scale(1.05);
}
    .btn.secondary { background: #ecd7b2; color: #362912; }
    .btn.secondary:hover { background: #c9b38d;   }
    .result { margin-top: 10px; font-weight: 600; text-align:left; }
    .result.win { color: #9ae8ce; }
    .result.lose { color: #eb9e9e; }
    .hint { color:#e1e1e1; margin-top:15px; margin-bottom: 15px; text-align: left; }
    .scoreboard{
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.12);
  text-align: left;
}
.scoreboard .title{
  font-weight: 600;
  font-size: 1.15rem;
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 10px;
}
.scoreboard .meta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin: 10px 0 10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 5px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
}
.scoreboard .flavor{
  margin-top: 6px;
  opacity: .95;
  font-weight: 500;
}
.scoreboard.win{
  border-color: rgba(34,197,94,.35);
}
.scoreboard.lose{
  border-color: rgba(217,74,74,.35);
}
.scoreboard .name{
  font-weight: 700;
  letter-spacing: .2px;
}
.reset-row {
  margin-top: 15px;
  text-align: center;
  opacity: 0.9;
}
.reset-text {
  font-size: 0.95rem;
  color: #e5e5e5;
  text-decoration: none;
}
.reset-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #fca5a5;
  cursor: pointer;
}
.reset-link:hover {
  color: #fecaca;
  text-decoration: none;
}
.exit-link {
  color: #d1d1d1;
  text-decoration: none;
}
.exit-link:hover {
  color: #FFF;
}
.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0 0 15px 0;
}
.or-divider span {
    padding: 0 10px;
    font-weight: 500;
    color: #bfd9c7;
}
.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.statsbox{
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  text-align: left;
}
.statsbox .title{
  font-weight: 700;
  font-size: 1.05rem;
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 10px;
}
.statsbox .meta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.easy-toggle{
  display:inline-flex;
  align-items:center;
  gap:15px;
  cursor:pointer;
  user-select:none;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
}
.easy-toggle input{ display:none; }

.easy-toggle .track{
  width:46px;
  height:26px;
  border-radius:999px;
  position:relative;
  background: rgba(255,255,255,.25);
  border:1px solid rgba(0,0,0,.15);
  flex:0 0 auto;
  transition: .2s;
}
.easy-toggle .track::after{
  content:"";
  width:22px;
  height:22px;
  border-radius:999px;
  position:absolute;
  top:1px;
  left:1px;
  background:#fff;
  transition: .2s;
}
.easy-toggle input:checked + .track{
  background: rgba(71,213,166,.55);
}
.easy-toggle input:checked + .track::after{
  transform: translateX(20px);
}
.easy-toggle .label{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1.15;
  font-weight:500;
  color:#fff;
}
.easy-toggle .label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.easy-toggle .sub{
  font-weight:400;
  font-size:.8rem;
  opacity:.9;
  margin-top:3px;
  font-style: italic;
}
.version-code {
  margin-top: 25px;
  font-size: 0.75em;
  color: #d1d1d1;
  text-align: center;
}
.changelog {
  margin-top: 25px;
  font-size: 0.85em;
  color: #d1d1d1;
  text-align: left;
}
.sharebox{
  margin-top: 25px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  color: #e1e1e1;
}
.sharebox i { color: #FFF; }
.share-title{
  font-weight: 600;
  margin-bottom: 10px;
  display:flex;
  align-items:center;
  gap:8px;
}
.share-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  font-size: 0.9em;
}
.share-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:12px;
  font-weight:400;
  text-decoration:none;
  color:#fff;
  cursor:pointer;
  transition: .25s;
}
.share-btn:hover{
  background: rgba(255,255,255,.1);
}
.share-btn.fb { color:#8bb4ff; }
.share-btn.x  { color:#e5e5e5; }
.share-btn.wa { color:#7cf2a1; }
.share-btn.copy { color:#f1f1f1; background: none; }
.share-btn.copy:hover{
  background: rgba(255,255,255,.1);
}
.tekstimainos { text-align: center; }
.tekstimainos a { color: #93dbf3; font-weight: bold;} 
.tekstimainos a:hover { text-decoration:underline; }
.tekstimainos span { font-style: italic; color: #d1d1d1; }
.player-stats-box{
  margin-top: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
}
.playerstats-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 12px;
}
.playerstats-head{
  font-weight: 700;
  margin-bottom: 8px;
  display:flex;
  align-items:center;
  gap:8px;
}
.playerstats-list{
  margin: 0;
  padding-left: 18px;
}
.playerstats-list li{
  margin-bottom: 10px;
  text-align: left;
}
.ps-name{
  font-weight: 700;
  color: #fff;
}
.ps-meta{
  opacity:.9;
  font-size: .9rem;
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
  color:#e7e7e7;
}
.stats-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px;
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
  font-weight:600;
  font-size:1.05rem;
}
.stats-toggle:hover { background: none; }
.stats-toggle .title{
  display:flex;
  align-items:center;
  gap:8px;
}
.stats-toggle .arrow{
  transition: transform .25s ease;
  font-size:1.1rem;
  color:#fff;
}
.stats-toggle[aria-expanded="true"] .arrow{
  transform: rotate(180deg);
}
.stats-content{
  padding: 0 14px 14px;
}
 @media (min-width: 821px) {
.top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 50px !important; }
.restart-icon{
  display:inline-block;
  transition: transform .45s ease-in-out;
}
.restart-btn:hover .restart-icon{
  transform: rotate(360deg);
}
img.logo{
  transition: transform 0.25s ease;
  will-change: transform;
}
img.logo:hover{
  transform: scale(1.04);
}
.hint { margin-top: 0; }
 }
    @media (max-width: 820px) {
      body { padding: 14px; }
      .easy-toggle { width: 100%; max-width:100%;}
       .playerstats-grid{
    grid-template-columns: 1fr;
  }
      .top { grid-template-columns: 1fr; }
      .meta-center { display: flex; justify-content: center; }
      .top > div:first-child { display:flex; flex-direction:column; align-items:center; }
      .grid { align-items:center; }
      .playerimg { width:100%; max-width:200px; margin:0 auto; }
      .actions{ flex-direction: column; align-items: stretch; }
      .actions button{ width:100%; }
      .cell{ width: clamp(30px, 9.5vw, 46px); height: clamp(30px, 9.5vw, 46px); font-size: clamp(16px, 4.2vw, 22px); }
      .cell.hyphen{ width: clamp(12px, 3.5vw, 18px); font-size: clamp(16px, 4.2vw, 22px); }
      .sub { text-align:left; }
      button { font-size: 1em; }
       .sharebox {
    text-align: center;
  }
  .sharebox .share-title {
    justify-content: center;
    text-align: center;
  }
  .sharebox .share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
.name-row{
  gap: 4px;
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  mask-image: none;
  -webkit-mask-image: none;
  justify-content: center;
}
.name-row.has-scroll-right{
  justify-content: flex-start;
  mask-image: linear-gradient(to right,
    black 0px,
    black calc(100% - 24px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(to right,
    black 0px,
    black calc(100% - 24px),
    transparent 100%
  );
}
.name-row.has-scroll-left{
  justify-content: flex-start;
  mask-image: linear-gradient(to right,
    transparent 0px,
    black 24px,
    black 100%
  );
  -webkit-mask-image: linear-gradient(to right,
    transparent 0px,
    black 24px,
    black 100%
  );
}
.name-row.has-scroll-left.has-scroll-right{
  justify-content: flex-start;
  mask-image: linear-gradient(to right,
    transparent 0px,
    black 24px,
    black calc(100% - 24px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(to right,
    transparent 0px,
    black 24px,
    black calc(100% - 24px),
    transparent 100%
  );
}
    }
  @keyframes shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-4px); }
  40%  { transform: translateX(4px); }
  60%  { transform: translateX(-3px); }
  80%  { transform: translateX(3px); }
  100% { transform: translateX(0); }
}
.shake {
  animation: shake 0.35s ease;
}
@keyframes gold-glow {
  0% {
    box-shadow:
      0 0 0 rgba(66, 154, 64, 0);
  }
  40% {
    box-shadow:
      0 0 14px 6px rgba(66, 154, 64, 0.5);
  }
  100% {
    box-shadow:
      0 0 0 rgba(66, 154, 64, 0);
  }
}
.cell.win-glow {
   animation: gold-glow 1.6s ease-out forwards;
}