.kihane-lottery-container {
  max-width: 800px;
  margin: 20px auto;
  text-align: left;
}
.lottery-section {
  margin-bottom: 1.5em;
}
.lottery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 320px;
  max-width: 98vw;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}
.lottery-cell {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  border: 1px solid #ccc;
  position: relative;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lottery-cell.active {
  border-color: #f00;
  box-shadow: 0 0 10px rgba(255,0,0,0.5);
  z-index: 2;
}
.lottery-cell img {
  max-width: 100%;
  max-height: 50px;
  display: block;
  margin: 0 auto;
}
.lottery-cell-name {
  display: block;
  font-size: 12px;
  text-align: center;
  margin-top: 2px;
}
#kihane-verify-msg {
  margin-left: 10px;
  color: #0073aa;
  font-size: 13px;
}
#kihane-won-list {
  padding-left: 0;
}
#kihane-won-list li {
  list-style: none;
  margin-bottom: 5px;
  font-size: 14px;
  display: flex;
  align-items: center;
}
#kihane-won-list li img {
  max-width: 40px;
  vertical-align: middle;
  margin-right: 5px;
  border-radius: 3px;
}
.lottery-section label {
  font-weight: bold;
  margin-right: 8px;
}
.lottery-section input[type="text"],
.lottery-section input[type="number"] {
  padding: 3px 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 2px;
}
.lottery-section button {
  margin-left: 6px;
  padding: 4px 14px;
  font-size: 14px;
  border-radius: 2px;
  cursor: pointer;
}
.lottery-section table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 8px;
  font-size: 13px;
}
.lottery-section th,
.lottery-section td {
  border: 1px solid #e5e5e5;
  padding: 6px 10px;
  text-align: left;
}
.lottery-section th {
  background: #f9f9f9;
  font-weight: bold;
}
@media (max-width: 600px) {
  .lottery-grid {
    width: 98vw;
    max-width: 98vw;
  }
  .lottery-cell {
    min-width: 0;
    min-height: 0;
    font-size: 0.95rem;
  }
}
