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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
}

.hidden {
  display: none !important;
}

.view {
  width: 100%;
  max-width: 780px;
}

/* Login */
#login-view {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.card {
  background: #16213e;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.card h1 {
  margin-bottom: 8px;
  color: #fff;
}

.card p {
  margin-bottom: 20px;
  color: #888;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="password"] {
  padding: 10px 14px;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 16px;
  outline: none;
  background: #0f3460;
  color: #e0e0e0;
}

input[type="password"]:focus {
  border-color: #6c63ff;
}

button {
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background: #6c63ff;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background: #5a52d5;
}

.error {
  color: #f44336;
  margin-top: 12px;
  font-size: 14px;
}

/* Hub */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

header h1 {
  color: #fff;
  cursor: pointer;
  user-select: none;
}

header button {
  font-size: 14px;
  padding: 6px 12px;
  background: transparent;
  color: #888;
  border: 1px solid #333;
}

header button:hover {
  background: #16213e;
  color: #e0e0e0;
}

.subtitle {
  color: #888;
  margin-bottom: 28px;
}

/* Featured (chat) row */
.featured {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.featured .tile {
  width: 260px;
}

/* Squircle panels (Greece, Tools, Just for Fun) */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.squircle {
  background: rgba(108, 99, 255, 0.07);
  border: 1px solid rgba(138, 138, 255, 0.16);
  border-radius: 28px;
  padding: 18px 20px 20px;
}

.squircle h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9d9dff;
  margin-bottom: 14px;
}

.tile-grid {
  display: grid;
  gap: 12px;
}

#greece-group .tile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#tools-group .tile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 220px;
  margin: 0 auto;
}

#games-group .tile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 340px;
  margin: 0 auto;
}

/* Tile */
.tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.tile:hover {
  transform: translateY(-2px);
}

.tile-image {
  aspect-ratio: 1;
  width: 100%;
  background: #16213e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile.wide .tile-image {
  aspect-ratio: 2 / 1;
}

.tile-title {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: #e0e0e0;
  line-height: 1.25;
}

.tile:hover .tile-title {
  color: #aaa8ff;
}

/* Secret section keeps the old text-list look */
.projects.secret {
  margin-top: 24px;
}

.projects.secret h2 {
  margin-bottom: 12px;
  font-size: 18px;
  color: #ccc;
}

#secret-list {
  list-style: none;
  background: #16213e;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  padding: 16px 24px;
}

#secret-list li + li {
  border-top: 1px solid #1a2744;
  padding-top: 12px;
  margin-top: 12px;
}

#secret-list a {
  color: #8a8aff;
  text-decoration: none;
  font-weight: 500;
}

#secret-list a:hover {
  text-decoration: underline;
  color: #aaa8ff;
}

@media (max-width: 560px) {
  .split-row {
    grid-template-columns: 1fr;
  }
  .featured .tile {
    width: 100%;
    max-width: 240px;
  }
}
