/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  padding-bottom: 60px;
  overflow: hidden;
  margin: 0;
}

/* 左侧游戏菜单 */
.game-menu {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: opacity 0.3s ease;
}

.game-menu.hidden {
  opacity: 0;
  pointer-events: none;
}

.menu-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ff6b6b;
  text-align: center;
  margin-bottom: 5px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff6b6b;
}

.game-menu-btn {
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  background: white;
  color: #666;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  white-space: nowrap;
  min-width: 100px;
}

.game-menu-btn:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  border-color: #ff6b6b;
}

.game-menu-btn.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  border-color: transparent;
  transform: translateX(5px);
}

.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 1200px;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* 全屏时钟容器 */
.clock-container-fullscreen {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 60px;
}

/* 回到首页按钮 */
.home-btn {
  position: fixed;
  right: 30px;
  bottom: 80px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.home-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 107, 107, 0.5);
}

.home-btn:active {
  transform: translateY(-1px);
}

/* 头部样式 */
header {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  padding: 20px 30px;
  text-align: center;
  flex-shrink: 0;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 主内容区域 */
main {
  padding: 20px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 游戏控制区域 */
.game-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
  flex-shrink: 0;
}

/* 难度选择器 */
.difficulty-selector {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.difficulty-btn {
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #ff6b6b;
  background: white;
  color: #ff6b6b;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.difficulty-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.difficulty-btn.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  border-color: transparent;
}

/* 游戏信息 */
.game-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.info-label {
  color: #666;
  font-weight: 500;
}

.info-value {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 15px;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

/* 重置按钮 */
.reset-btn {
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  align-self: center;
}

.reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 189, 227, 0.4);
}

/* 游戏棋盘 */
.game-board {
  display: grid;
  gap: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 8px;
  border-radius: 12px;
  margin: 0 auto;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex: 1;
  overflow: hidden;
  place-content: center;
}

/* 单元格 */
.cell {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #b8c6f5, #d4dcf7);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
  user-select: none;
  min-width: 30px;
  min-height: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cell:hover:not(.revealed) {
  background: linear-gradient(145deg, #a0b0f0, #c0cef5);
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.cell.revealed {
  background: linear-gradient(145deg, #f0f4ff, #ffffff);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: default;
}

.cell.flagged {
  background: linear-gradient(145deg, #fff9c4, #fff59d);
  font-size: 1.2rem;
}

.cell.mine {
  background: linear-gradient(145deg, #ffcdd2, #ef5350);
  font-size: 1.2rem;
}

/* 数字颜色 */
.cell.number-1 {
  color: #2196f3;
}
.cell.number-2 {
  color: #4caf50;
}
.cell.number-3 {
  color: #f44336;
}
.cell.number-4 {
  color: #9c27b0;
}
.cell.number-5 {
  color: #ff9800;
}
.cell.number-6 {
  color: #00bcd4;
}
.cell.number-7 {
  color: #000000;
}
.cell.number-8 {
  color: #757575;
}

/* 游戏状态 */
.game-status {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  min-height: 40px;
  flex-shrink: 0;
}

.game-status.win {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #2e7d32;
  animation: celebration 0.5s ease;
}

.game-status.lose {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #c62828;
  animation: shake 0.5s ease;
}

@keyframes celebration {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

/* 页脚样式 */
.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.15) 0%,
    rgba(254, 202, 87, 0.15) 100%
  );
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  text-align: center;
  color: #000;
  font-weight: 700;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.icp-info {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.icp-info a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 700;
}

.icp-info a:hover {
  color: #ff6b6b;
  text-decoration: underline;
}

.copyright {
  font-size: 0.8rem;
  color: #000;
  font-weight: 700;
  margin-top: 2px;
}

/* 2048游戏样式 */
.board-2048 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 15px;
  border-radius: 12px;
  margin: 0 auto;
  max-width: 500px;
  width: 100%;
  aspect-ratio: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tile-2048 {
  background: linear-gradient(145deg, #b8c6f5, #d4dcf7);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
}

.tile-2048.empty {
  background: linear-gradient(145deg, #b8c6f5, #d4dcf7);
}

/* 2048游戏不同数字的颜色 */
.tile-2048[data-value="2"] {
  background: linear-gradient(145deg, #eee4da, #ede0c8);
  color: #776e65;
}

.tile-2048[data-value="4"] {
  background: linear-gradient(145deg, #ede0c8, #eee1c9);
  color: #776e65;
}

.tile-2048[data-value="8"] {
  background: linear-gradient(145deg, #f2b179, #f59563);
  color: #f9f6f2;
}

.tile-2048[data-value="16"] {
  background: linear-gradient(145deg, #f59563, #f67c5f);
  color: #f9f6f2;
}

.tile-2048[data-value="32"] {
  background: linear-gradient(145deg, #f67c5f, #f65e3b);
  color: #f9f6f2;
}

.tile-2048[data-value="64"] {
  background: linear-gradient(145deg, #f65e3b, #edcf72);
  color: #f9f6f2;
}

.tile-2048[data-value="128"] {
  background: linear-gradient(145deg, #edcf72, #edcc61);
  color: #f9f6f2;
  font-size: 1.8rem;
}

.tile-2048[data-value="256"] {
  background: linear-gradient(145deg, #edcc61, #edc850);
  color: #f9f6f2;
  font-size: 1.8rem;
}

.tile-2048[data-value="512"] {
  background: linear-gradient(145deg, #edc850, #edc53f);
  color: #f9f6f2;
  font-size: 1.8rem;
}

.tile-2048[data-value="1024"] {
  background: linear-gradient(145deg, #edc53f, #edc22e);
  color: #f9f6f2;
  font-size: 1.5rem;
}

.tile-2048[data-value="2048"] {
  background: linear-gradient(145deg, #edc22e, #3c3a32);
  color: #f9f6f2;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(237, 194, 46, 0.5);
}

.game-instructions {
  text-align: center;
  margin-top: 15px;
  color: #555;
  font-size: 0.95rem;
  padding: 12px 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.6) 100%
  );
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 107, 107, 0.2);
  backdrop-filter: blur(5px);
  font-weight: 500;
}

.game-instructions p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.game-instructions .arrow-keys {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.game-instructions .key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #ff6b6b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

/* 罗马时钟样式 */
.clock-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  height: 100%;
}

.clock {
  width: 60vh;
  height: 60vh;
  max-width: 90vw;
  max-height: 60vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.clock-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.9) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 50% 50%, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 4px 12px rgba(255, 255, 255, 0.8),
    inset 0 -4px 12px rgba(0, 0, 0, 0.2), inset 0 0 60px rgba(0, 0, 0, 0.05);
  position: relative;
  border: 16px solid #86efac;
  box-sizing: border-box;
}

/* 内圈装饰和刻度 */
.clock-face::before {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 2px solid #bbf7d0;
  box-shadow: 0 0 0 1px rgba(220, 252, 231, 0.6),
    inset 0 2px 8px rgba(255, 255, 255, 0.5),
    inset 0 -2px 8px rgba(22, 163, 74, 0.15),
    inset 0 0 30px rgba(22, 163, 74, 0.08);
  background: radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.4) 0%,
      transparent 70%
    ),
    repeating-conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent 29.5deg,
      #22c55e 29.5deg,
      #22c55e 30deg
    );
  mask: radial-gradient(
    circle,
    transparent 0%,
    transparent 93%,
    black 93%,
    black 95%,
    transparent 95%
  );
  -webkit-mask: radial-gradient(
    circle,
    transparent 0%,
    transparent 93%,
    black 93%,
    black 95%,
    transparent 95%
  );
}

/* 5分钟刻度线 */
.clock-face::after {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 29deg,
    #16a34a 29deg,
    #16a34a 30deg,
    transparent 30deg
  );
  mask: radial-gradient(
    circle,
    transparent 0%,
    transparent 90%,
    black 90%,
    black 94%,
    transparent 94%
  );
  -webkit-mask: radial-gradient(
    circle,
    transparent 0%,
    transparent 90%,
    black 90%,
    black 94%,
    transparent 94%
  );
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* 罗马数字 */
.number {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #2c2c2c;
  font-family: "Georgia", "Times New Roman", serif;
  pointer-events: none;
  inset: 0;
}

.number span {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8),
    -1px -1px 0 rgba(0, 0, 0, 0.15), 0 2px 3px rgba(0, 0, 0, 0.2);
  background: linear-gradient(145deg, #2c2c2c, #444);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.5));
}

.number:nth-child(1) {
  transform: rotate(30deg);
}
.number:nth-child(1) span {
  transform: translateX(-50%) rotate(-30deg);
}

.number:nth-child(2) {
  transform: rotate(60deg);
}
.number:nth-child(2) span {
  transform: translateX(-50%) rotate(-60deg);
}

.number:nth-child(3) {
  transform: rotate(90deg);
}
.number:nth-child(3) span {
  transform: translateX(-50%) rotate(-90deg);
}

.number:nth-child(4) {
  transform: rotate(120deg);
}
.number:nth-child(4) span {
  transform: translateX(-50%) rotate(-120deg);
}

.number:nth-child(5) {
  transform: rotate(150deg);
}
.number:nth-child(5) span {
  transform: translateX(-50%) rotate(-150deg);
}

.number:nth-child(6) {
  transform: rotate(180deg);
}
.number:nth-child(6) span {
  transform: translateX(-50%) rotate(-180deg);
}

.number:nth-child(7) {
  transform: rotate(210deg);
}
.number:nth-child(7) span {
  transform: translateX(-50%) rotate(-210deg);
}

.number:nth-child(8) {
  transform: rotate(240deg);
}
.number:nth-child(8) span {
  transform: translateX(-50%) rotate(-240deg);
}

.number:nth-child(9) {
  transform: rotate(270deg);
}
.number:nth-child(9) span {
  transform: translateX(-50%) rotate(-270deg);
}

.number:nth-child(10) {
  transform: rotate(300deg);
}
.number:nth-child(10) span {
  transform: translateX(-50%) rotate(-300deg);
}

.number:nth-child(11) {
  transform: rotate(330deg);
}
.number:nth-child(11) span {
  transform: translateX(-50%) rotate(-330deg);
}

.number:nth-child(12) {
  transform: rotate(0deg);
}
.number:nth-child(12) span {
  transform: translateX(-50%) rotate(0deg);
}

/* 时钟指针 */
.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  background: linear-gradient(to bottom, #2c2c2c 0%, #1a1a1a 50%, #2c2c2c 100%);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4),
    inset 1px 0 0 rgba(255, 255, 255, 0.2), inset -1px 0 0 rgba(0, 0, 0, 0.3);
}

.hour-hand {
  width: 9px;
  height: 130px;
  transform: translateX(-50%) rotate(0deg);
  z-index: 3;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(0, 0, 0, 0.4);
}

.hour-hand::after {
  display: none;
}

.minute-hand {
  width: 7px;
  height: 170px;
  transform: translateX(-50%) rotate(0deg);
  z-index: 2;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(0, 0, 0, 0.4);
}

.minute-hand::after {
  display: none;
}

.second-hand {
  width: 3px;
  height: 180px;
  background: linear-gradient(to bottom, #ff4444 0%, #d32f2f 50%, #b71c1c 100%);
  transform: translateX(-50%) rotate(0deg);
  z-index: 4;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 2px 6px rgba(211, 47, 47, 0.5),
    inset 0.5px 0 0 rgba(255, 255, 255, 0.3);
}

.second-hand::before {
  display: none;
}

/* 秒针尾部 */
.second-hand::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 30px;
  background: #d32f2f;
  border-radius: 0 0 2px 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 30% 30%, #15803d, #14532d);
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5);
  border: 3px solid #86efac;
}

.center-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 35% 35%, #22c55e, #15803d);
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.center-dot::after {
  display: none;
}

/* 数字时间显示 */
.digital-time {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.time-display {
  font-size: 3rem;
  font-weight: 700;
  color: #ff6b6b;
  font-family: "Arial", sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 2px;
}

.date-display {
  font-size: 1.2rem;
  color: #666;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    padding: 0;
    padding-bottom: 60px;
  }

  .game-menu {
    left: 10px;
    padding: 15px 10px;
    gap: 10px;
  }

  .menu-title {
    font-size: 0.8rem;
  }

  .game-menu-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    min-width: 80px;
  }

  .home-btn {
    right: 20px;
    bottom: 70px;
    padding: 12px 24px;
    font-size: 1rem;
  }

  .container {
    padding: 15px;
  }

  header h1 {
    font-size: 2rem;
  }

  .difficulty-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .game-info {
    gap: 15px;
  }

  .info-item {
    font-size: 0.9rem;
  }

  .cell {
    font-size: 0.8rem;
    min-width: 20px;
    min-height: 20px;
  }

  .game-status {
    font-size: 1.2rem;
  }

  .tile-2048 {
    font-size: 1.5rem;
  }

  .tile-2048[data-value="128"],
  .tile-2048[data-value="256"],
  .tile-2048[data-value="512"] {
    font-size: 1.3rem;
  }

  .tile-2048[data-value="1024"],
  .tile-2048[data-value="2048"] {
    font-size: 1.1rem;
  }

  .game-instructions {
    font-size: 0.85rem;
    padding: 10px 15px;
  }

  .game-instructions .key {
    min-width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }

  .clock {
    width: 300px;
    height: 300px;
  }

  .number {
    font-size: 1.3rem;
  }

  .number span {
    top: 12px;
  }

  .hour-hand {
    height: 70px;
  }

  .minute-hand {
    height: 95px;
  }

  .second-hand {
    height: 110px;
  }

  .time-display {
    font-size: 2.5rem;
  }

  .date-display {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0;
    padding-bottom: 60px;
  }

  .game-menu {
    left: 5px;
    padding: 10px 8px;
    gap: 8px;
    border-radius: 15px;
  }

  .menu-title {
    font-size: 0.75rem;
    padding-bottom: 8px;
  }

  .game-menu-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-width: 70px;
  }

  .home-btn {
    right: 15px;
    bottom: 65px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .container {
    border-radius: 15px;
    padding: 10px;
  }

  header {
    padding: 20px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  main {
    padding: 20px;
  }

  .difficulty-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .cell {
    font-size: 0.7rem;
    min-width: 18px;
    min-height: 18px;
  }

  .board-2048 {
    gap: 8px;
    padding: 12px;
  }

  .tile-2048 {
    font-size: 1.2rem;
  }

  .tile-2048[data-value="128"],
  .tile-2048[data-value="256"],
  .tile-2048[data-value="512"] {
    font-size: 1rem;
  }

  .tile-2048[data-value="1024"],
  .tile-2048[data-value="2048"] {
    font-size: 0.9rem;
  }

  .game-instructions {
    font-size: 0.8rem;
    padding: 8px 12px;
    margin-top: 10px;
  }

  .game-instructions p {
    flex-wrap: wrap;
  }

  .game-instructions .key {
    min-width: 22px;
    height: 22px;
    font-size: 0.85rem;
    padding: 0 6px;
  }

  .clock {
    width: 250px;
    height: 250px;
  }

  .number {
    font-size: 1rem;
  }

  .number span {
    top: 10px;
  }

  .hour-hand {
    height: 55px;
    width: 6px;
  }

  .minute-hand {
    height: 75px;
    width: 5px;
  }

  .second-hand {
    height: 90px;
    width: 2px;
  }

  .center-dot {
    width: 15px;
    height: 15px;
  }

  .time-display {
    font-size: 2rem;
  }

  .date-display {
    font-size: 0.9rem;
  }
}
