* { box-sizing: border-box; } body { margin: 0; background: #222; display: flex; justify-content: center; min-height: 100vh; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; } #game-wrapper { width: 960px; margin-top: 15px; text-align: center; } h1 { margin: 0 0 10px; color: #ffcc00; font-size: 30px; text-shadow: 2px 2px 3px #000; } #game-area { position: relative; width: 960px; height: 700px; overflow: hidden; border: 4px solid #ffcc00; border-radius: 14px; background: #000; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45); } #board { display: block; width: 960px; height: 700px; } #dice-panel { position: absolute; top: 12px; left: 12px; width: 320px; padding: 10px; z-index: 20; background:rgba(255, 255, 255, 0.329); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 2px solid rgba(255, 204, 0, 0.9); border-radius: 16px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35); text-align: center; } #dice-title { margin-bottom: 6px; color: #5b3500; font-size: 21px; font-weight: bold; text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8); } #dice-result { min-height: 40px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; padding: 5px 10px; color: #edfd10ef; background:rgba(40, 94, 9, 0.39); border-radius: 10px; font-size: 22px; font-weight: bold; text-shadow: 1px 1px 3px #0e0d0d; box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.35), inset -2px -2px 3px rgba(0, 0, 0, 0.35); } #rollBtn { width: 100%; padding: 10px 12px; border: none; border-radius: 10px; background:rgba(97, 92, 250, 0.356); background-image: linear-gradient( to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0) ); color: #fff; font-size: 18px; font-weight: bold; cursor: pointer; text-shadow: 1px 1px 2px #000; box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.6), inset -2px -2px 3px rgba(0, 0, 0, 0.6), 0 3px 5px rgba(0, 0, 0, 0.25); transition: transform 0.1s, background 0.2s; } #rollBtn:hover { background: #8c4cff; transform: translateY(-1px);} #rollBtn:active { transform: translateY(2px); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);} #rollBtn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; } #dice-result.goal { background:rgba(220, 120, 0, 0.92); font-size: 20px; } @media screen and (max-width: 1000px) { body { overflow-x: hidden; } #game-wrapper { width: 100%; padding: 0 5px; } #game-area { width: 100%; height: auto; aspect-ratio: 960 / 700; } #board { width: 100%; height: 100%; } #dice-panel { top: 12px; left: 12px; width: 220px; padding: 9px; } #dice-title { font-size: 18px; } #dice-result { font-size: 19px; } #rollBtn { font-size: 16px; padding: 8px 10px; } #retryBtn { font-size: 16px; padding: 8px 18px; } } @media screen and (max-width: 600px) { h1 { font-size: 23px; margin-bottom: 6px; } #game-area { border-width: 2px; border-radius: 10px; } #dice-panel { top: 7px; left: 7px; width: 170px; padding: 6px; border-radius: 10px; } #dice-title { font-size: 14px; margin-bottom: 3px; } #dice-result { min-height: 29px; font-size: 15px; margin-bottom: 5px; border-radius: 7px; } #rollBtn { font-size: 13px; padding: 6px 7px; border-radius: 7px; } #retryBtn { font-size: 13px; padding: 6px 12px; } } #game-area { position: relative; } #shibaAnimation { position: absolute; width: 56px; height: 56px; left: 0; top: 0; transform: translate(-50%, -50%); pointer-events: none; z-index: 10; } #gameTimer.timer-danger { color: red !important; animation: timerDangerBlink 0.5s infinite alternate; } @keyframes timerDangerBlink { from { opacity: 0.25; } to { opacity: 1; } } @keyframes clearFlash { 0% { background: rgba(255,255,255,0.85); } 100% { background: rgba(255,255,255,0); } } @keyframes clearTitle { 0% { transform: scale(0) rotate(-10deg); opacity: 0; } 60% { transform: scale(1.2) rotate(3deg); opacity: 1; } 100% { transform: scale(1) rotate(0deg); opacity: 1; } } @keyframes clearMessage { 0% { transform: translateY(25px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } } @keyframes confettiFall { 0% { transform: translateY(-20px) rotate(0deg); opacity: 1; } 100% { transform: translateY(750px) rotate(720deg); opacity: 0; } } @keyframes clearConfetti { 0% { top: -20px; opacity: 1; } 100% { top: 720px; opacity: 0; transform: rotate(720deg); } }