.a {
  font-family: var(--title-font);
  font-size: var(--title-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-color);
  margin: 0 0 6px;
  line-height: 1.1;
}

.a::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--link-color);
  margin: 10px auto 0;
  opacity: 0.5;
}

.b {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
}

.c {
  text-align: center;
  background: var(--container-bg);
  color: var(--text-color);
  border-radius: 0;
  padding: 32px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  max-width: 90vw;
  border-top: 4px solid var(--link-color);
}

.d {
  margin-top: 16px;
}

.e {
  font-weight: 700;
  color: var(--text-color);
}

.f {
  margin-top: 16px;
  text-align: center;
  color: var(--text-color);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.g {
  font-weight: 700;
  color: var(--text-color);
}

.h {
  justify-content: flex-end;
  flex-wrap: wrap;
  display: flex;
  gap: 8px;
}

.i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-color);
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  font-family: inherit;
  font-weight: normal;
  line-height: 1;
  font-size: 1rem;
  transition: background 0.2s, border 0.2s;
  padding: var(--a-a);
}

.i:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--board-bg);
}

.i svg {
  width: 20px;
  height: 20px;
  display: block;
}

.j {
  width: 1px;
  height: 24px;
  background: var(--board-bg);
  opacity: 0.25;
  align-self: center;
}

.k {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  grid-template-rows: repeat(var(--grid-rows), 1fr);
  gap: var(--board-gap);
  width: 100%;
  height: 100%;
}

.l {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono-font);
  font-size: var(--tile-size);
  font-weight: 700;
  color: var(--tile-text);
  background: var(--tile-bg);
  border-radius: 0;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.l:hover {
  transform: scale(1.04);
}

.l:focus-visible {
  outline: 2px solid var(--tile-text);
  outline-offset: 2px;
}

.m {
  padding: 10px 32px;
  font-size: var(--button-size);
  font-weight: 600;
  font-family: var(--font-family);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--button-bg);
  color: white;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 16px;
}

.m:hover {
  opacity: 0.85;
}

.n {
  text-align: center;
  color: var(--text-color);
  font-size: var(--footer-size);
  padding: 8px 0 4px;
}

.n::before {
  content: "";
  display: block;
  width: 80%;
  height: 1px;
  margin: 0 auto 8px;
  background: var(--footer-line-color);
}

.n a {
  color: var(--link-color);
}

.o {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: var(--bg-color);
  font-family: var(--font-family);
}

.p {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 0;
  width: 100%;
}

.q {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 20px;
  z-index: 100;
  box-sizing: border-box;
  background: var(--wrapper-bg);
}

.r {
  text-align: center;
  background: var(--wrapper-bg);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.s {
  background: var(--container-bg);
  padding: 24px;
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  text-align: center;
}

.t {
  padding: var(--board-padding);
  width: var(--board-width);
  height: var(--board-width);
  background: var(--board-bg);
  border-radius: 0;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.25);
  box-sizing: border-box;
}