html { scroll-behavior: smooth; } input, textarea, input[type=hidden], input::placeholder, textarea::placeholder { font-family: Vazirmatn, sans-serif } input, textarea { font-family: Vazirmatn, sans-serif } .drop-zone { border: 2px dashed #dbeafe; border-radius: 16px; transition: .3s; background-color: #fff } .drop-zone:hover { border-color: #93c5fd; background-color: #f8fafc } .drop-zone.drag-over { border-color: #3b82f6; background-color: #eff6ff; transform: scale(1.02) } .btn-primary { background: linear-gradient(90deg, #2563eb 0, #3b82f6 100%); color: #fff; transition: .3s; border: none; cursor: pointer } .btn-primary:hover { background: linear-gradient(90deg, #1e40af 0, #2563eb 100%); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(37, 99, 235, .3) } .btn-primary:active { transform: translateY(-1px) } .btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none } .file-info-card { background: #fff; border-radius: 12px; padding: 16px; border: 1px solid #e2e8f0; transition: .3s } .file-info-card:hover { border-color: #93c5fd; box-shadow: 0 10px 25px rgba(37, 99, 235, .1) } .file-info-card.processing { border-color: #3b82f6; background-color: #eff6ff } .file-info-card.completed { border-color: #10b981; background-color: #f0fdf4 } .file-info-card.error { border-color: #ef4444; background-color: #fef2f2 } .progress-bar { height: 8px; background-color: #dbeafe; border-radius: 4px; overflow: hidden; margin-top: 8px } .progress-bar-fill { height: 100%; background: linear-gradient(90deg, #2563eb 0, #3b82f6 100%); border-radius: 4px; transition: width .5s } input[type=range] { -webkit-appearance: none; appearance: none; cursor: pointer } input[type=range]::-webkit-slider-track { background: #dbeafe; height: 8px; border-radius: 4px } input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; background: #3b82f6; height: 20px; width: 20px; border-radius: 50%; cursor: pointer; margin-top: -6px; transition: .2s } input[type=range]::-webkit-slider-thumb:hover { background: #2563eb; transform: scale(1.2) } input[type=range]::-moz-range-track { background: #dbeafe; height: 8px; border-radius: 4px } input[type=range]::-moz-range-thumb { background: #3b82f6; height: 20px; width: 20px; border-radius: 50%; cursor: pointer; border: none; transition: .2s } input[type=range]::-moz-range-thumb:hover { background: #2563eb; transform: scale(1.2) } .format-btn { padding: 8px 16px; border-radius: 8px; font-weight: 500; border: 1px solid #d1d5db; background: #fff; color: #374151; cursor: pointer; transition: .2s } .format-btn:hover { border-color: #93c5fd; background-color: #eff6ff } .format-btn.active { background: #eff6ff; color: #2563eb; border-color: #3b82f6; font-weight: 600 } .sidebar-ad { transition: .3s; position: relative } .sidebar-ad:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 0, 0, .1) } .ad-badge { position: absolute; top: 8px; left: 8px; background-color: #dc2626; color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 12px; font-weight: 600; z-index: 10 } #results-section table { border-collapse: collapse; width: 100% } #results-section tbody tr { border-bottom: 1px solid #f3f4f6; transition: background-color .2s } #results-section tbody tr:hover { background-color: #f9fafb } #results-section tbody tr:last-child { border-bottom: none } .spinner { border: 3px solid #f3f4f6; border-top: 3px solid #3b82f6; border-radius: 50%; width: 24px; height: 24px; animation: 1s linear infinite spin; display: inline-block; vertical-align: middle; margin-left: 8px } @keyframes spin { 0% { transform: rotate(0) } 100% { transform: rotate(360deg) } } .message { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px } .message.success { background-color: #f0fdf4; color: #166534; border: 1px solid #86efac } .message.error { background-color: #fef2f2; color: #991b1b; border: 1px solid #fca5a5 } .message.info { background-color: #eff6ff; color: #1e40af; border: 1px solid #93c5fd } .empty-state { text-align: center; padding: 48px 24px; color: #6b7280 } .empty-state i { font-size: 48px; margin-bottom: 16px; opacity: .5 } .empty-state p { font-size: 16px; margin-top: 8px } @media (max-width:768px) { body { font-size: 16px } .drop-zone { padding: 32px 16px } .file-info-card { padding: 12px } #results-section { overflow-x: auto } #results-section table { min-width: 600px } input[type=range]::-webkit-slider-track { height: 8px } input[type=range]::-webkit-slider-thumb { height: 22px; width: 22px; margin-top: -7px; background: #fff; border: 2px solid #3b82f6; box-shadow: 0 1px 4px rgba(0, 0, 0, .15) } input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.1) } input[type=range]::-moz-range-track { height: 8px } input[type=range]::-moz-range-thumb { height: 22px; width: 22px; background: #fff; border: 2px solid #3b82f6; box-shadow: 0 1px 4px rgba(0, 0, 0, .15) } input[type=range]::-moz-range-thumb:hover { transform: scale(1.1) } } @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px) } to { opacity: 1; transform: translateY(0) } } .file-item { animation: .3s fadeIn } .download-btn { color: #2563eb; font-weight: 500; transition: color .2s; cursor: pointer; background: 0 0; border: none; padding: 4px 8px } .download-btn:hover { color: #1e40af; text-decoration: underline } .file-size { font-size: 12px; color: #6b7280 } .file-size.original { text-decoration: line-through; opacity: .7 } .file-size.compressed { color: #10b981; font-weight: 600 } .reduction-badge { padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600; background-color: #f0fdf4; color: #166534 } .hidden { display: none !important } .visible { display: block !important } .tool-container { position: relative } .tool-hidden { display: none } .tool-visible { display: block } .regex-test-wrapper { position: relative; min-height: 12rem; border-radius: 1rem; border: 1px solid #e5e7eb; overflow: hidden } .regex-highlight-layer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 1rem; font-family: ui-monospace, monospace; font-size: .875rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; overflow: auto; pointer-events: none; z-index: 0; color: #1f2937 } .regex-highlight-layer .regex-match-highlight { background-color: #fef08a; padding: 0 1px; border-radius: 2px } .regex-test-wrapper .regex-test-textarea { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; min-height: 12rem; background: 0 0 !important; color: transparent !important; caret-color: #1f2937; resize: none; z-index: 1 } .regex-test-wrapper .regex-test-textarea::placeholder { color: rgba(107, 114, 128, .6) } .markdown-preview-content h1 { font-size: 1.5em; font-weight: 700; margin: .75em 0 .5em } .markdown-preview-content h2 { font-size: 1.25em; font-weight: 700; margin: .75em 0 .5em } .markdown-preview-content h3 { font-size: 1.1em; font-weight: 600; margin: .6em 0 .4em } .markdown-preview-content h4, .markdown-preview-content h5, .markdown-preview-content h6 { font-size: 1em; font-weight: 600; margin: .5em 0 .3em } .markdown-preview-content p { margin: .5em 0 } .markdown-preview-content ol, .markdown-preview-content ul { margin: .5em 0; padding-right: 1.5em } .markdown-preview-content li { margin: .25em 0 } .markdown-preview-content code { background: #e5e7eb; padding: .15em .4em; border-radius: 4px; font-size: .9em } .markdown-preview-content pre { background: #1f2937; color: #f3f4f6; padding: 1em; border-radius: 8px; overflow-x: auto; margin: .5em 0 } .markdown-preview-content pre code { background: 0 0; padding: 0 } .markdown-preview-content a { color: #2563eb; text-decoration: underline } .markdown-preview-content blockquote { border-right: 4px solid #d1d5db; padding-right: 1em; margin: .5em 0; color: #6b7280 } .cpg-swatch { display: block; width: 100%; height: 100%; border: none; background-color: transparent; position: relative; cursor: pointer } .cpg-swatch span { pointer-events: none } .cpg-swatch .fa-copy { transition: opacity .2s } .cpg-swatch:hover .fa-copy { opacity: 1 } .cpg-swatch:focus { outline: none } .cpg-swatch:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px } @media (max-width: 767px) { #tool-main-area .cc-panel.cc-mobile-top { transform: rotate(180deg); } } #tool-main-area.cc-fullscreen-mode { position: fixed; inset: 0; z-index: 40; background-color: #111827; border-radius: 0; box-shadow: none; padding: 1rem; margin: 0; overflow: hidden; display: flex; flex-direction: column; } #tool-main-area.cc-fullscreen-mode .cc-non-essential { display: none !important; } #tool-main-area.cc-fullscreen-mode #cc-panels-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0; } #tool-main-area.cc-fullscreen-mode .cc-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: #1f2937; border-color: #374151; border-radius: 1.25rem; height: 100%; padding: 2rem; } #tool-main-area.cc-fullscreen-mode .cc-panel .text-sm { color: #9ca3af; } #tool-main-area.cc-fullscreen-mode .cc-panel button { border-color: #4b5563; color: #d1d5db; background-color: #374151; width: 100%; } #tool-main-area.cc-fullscreen-mode .cc-panel button:hover { background-color: #4b5563; } #tool-main-area.cc-fullscreen-mode .cc-panel.border-primary-500 { border-color: #3b82f6 !important; background-color: #1e3a5f !important; } #tool-main-area.cc-fullscreen-mode #cc-display-1, #tool-main-area.cc-fullscreen-mode #cc-display-2 { font-size: 3.5rem; color: #f9fafb; } @media (min-width: 640px) { #tool-main-area.cc-fullscreen-mode #cc-display-1, #tool-main-area.cc-fullscreen-mode #cc-display-2 { font-size: 5rem; } } @media (min-width: 1024px) { #tool-main-area.cc-fullscreen-mode #cc-display-1, #tool-main-area.cc-fullscreen-mode #cc-display-2 { font-size: 7rem; } } @media (max-width: 767px) { #tool-main-area.cc-fullscreen-mode #cc-panels-grid { grid-template-columns: 1fr; } } .cc-fs-modal:not(.hidden) { display: flex !important; } .cc-fs-panels #cc-panels-grid { height: 100%; min-height: 0; } @media (min-width: 768px) { .cc-fs-modal__overlay { top: 4rem; } } @media (max-width: 767px) { .cc-fs-panels #cc-panels-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 0; margin: 0; } .cc-fs-panels .cc-panel { margin: 0; border-radius: 0; } .cc-fs-panels .cc-mobile-top { transform: rotate(180deg); } } .dice-3d-results { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; align-items: center; min-height: 100px; padding: 1.5rem 0; } .dice-3d-scene { width: 64px; height: 64px; perspective: 140px; flex-shrink: 0; margin: 0 0.25rem; } .dice-3d-cube { width: 64px; height: 64px; position: relative; transform-style: preserve-3d; transition: transform 0.5s ease-out; } .dice-3d-cube.show-1 { transform: rotateY(0deg) rotateX(0deg); } .dice-3d-cube.show-2 { transform: rotateY(-90deg); } .dice-3d-cube.show-3 { transform: rotateX(90deg); } .dice-3d-cube.show-4 { transform: rotateX(-90deg); } .dice-3d-cube.show-5 { transform: rotateY(90deg); } .dice-3d-cube.show-6 { transform: rotateY(180deg); } .dice-3d-face { position: absolute; width: 64px; height: 64px; left: 0; top: 0; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid #e5e7eb; border-radius: 10px; font-weight: 700; font-size: 1.5rem; color: #1f2937; backface-visibility: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); } .dice-3d-face.face-1 { transform: translateZ(32px); } .dice-3d-face.face-2 { transform: rotateY(90deg) translateZ(32px); } .dice-3d-face.face-3 { transform: rotateX(-90deg) translateZ(32px); } .dice-3d-face.face-4 { transform: rotateX(90deg) translateZ(32px); } .dice-3d-face.face-5 { transform: rotateY(-90deg) translateZ(32px); } .dice-3d-face.face-6 { transform: rotateY(180deg) translateZ(32px); } .coin-flip-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 240px; padding: 2rem 0; perspective: 500px; } .coin-flip-perspective { perspective: 500px; display: flex; align-items: center; justify-content: center; min-height: 140px; } .coin-flip-coin { width: 120px; height: 120px; border-radius: 50%; position: relative; transform-style: preserve-3d; } .coin-flip-coin .face { position: absolute; width: 100%; height: 100%; left: 0; top: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; backface-visibility: hidden; border: 4px solid #d1d5db; box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.15); } .coin-flip-coin .face-sheer { background: linear-gradient(145deg, #fbbf24, #f59e0b); color: #78350f; transform: rotateX(0deg) translateZ(6px); } .coin-flip-coin .face-khat { background: linear-gradient(145deg, #94a3b8, #64748b); color: #1e293b; transform: rotateX(180deg) translateZ(6px); } .coin-flip-coin.flip-sheer { animation: coin-flip-3d-sheer 0.75s ease-out forwards; } .coin-flip-coin.flip-khat { animation: coin-flip-3d-khat 0.75s ease-out forwards; } .coin-flip-coin.result-sheer { transform: rotateX(0deg) translateY(0); } .coin-flip-coin.result-khat { transform: rotateX(180deg) translateY(0); } @keyframes coin-flip-3d-sheer { 0% { transform: rotateX(0deg) translateY(0); } 45% { transform: rotateX(900deg) translateY(-28px); } 100% { transform: rotateX(1800deg) translateY(0); } } @keyframes coin-flip-3d-khat { 0% { transform: rotateX(0deg) translateY(0); } 45% { transform: rotateX(990deg) translateY(-28px); } 100% { transform: rotateX(1980deg) translateY(0); } } .coin-result-label { margin-top: 1rem; font-size: 1.5rem; font-weight: 700; } .coin-result-label.sheer { color: #b45309; } .coin-result-label.khat { color: #475569; } body.tooliak-page-loading-active { overflow: hidden; touch-action: none; } .tooliak-page-loading { position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center; padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.28s ease, visibility 0.28s ease; } .tooliak-page-loading.tooliak-page-loading--visible { pointer-events: auto; opacity: 1; visibility: visible; } .tooliak-page-loading__backdrop { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(30, 41, 59, 0.78) 50%, rgba(15, 23, 42, 0.82) 100%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } .tooliak-page-loading__panel { position: relative; z-index: 1; text-align: center; max-width: min(92vw, 22rem); width: 100%; animation: tooliak-pl-fade 0.45s ease-out; } @keyframes tooliak-pl-fade { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } } .tooliak-page-loading__brand { position: relative; width: 5.5rem; height: 5.5rem; margin: 0 auto 1.25rem; } @media (min-width: 640px) { .tooliak-page-loading__brand { width: 6rem; height: 6rem; margin-bottom: 1.5rem; } } .tooliak-page-loading__orbit { position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 0deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6); animation: tooliak-pl-orbit 2.2s linear infinite; mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); } @keyframes tooliak-pl-orbit { to { transform: rotate(-360deg); } } .tooliak-page-loading__logo-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 1.25rem; background: linear-gradient(145deg, #fff 0%, #f1f5f9 100%); box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9); } .tooliak-page-loading__logo { width: 58%; height: 58%; object-fit: contain; display: block; } .tooliak-page-loading__logo-fallback { display: none; width: 58%; height: 58%; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; background: linear-gradient(135deg, #2563eb, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; } .tooliak-page-loading__text { margin: 0; font-size: clamp(0.95rem, 3.8vw, 1.1rem); font-weight: 600; color: #f8fafc; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); line-height: 1.5; } .tooliak-page-loading__bar { margin: 1rem auto 0; height: 4px; max-width: 200px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); overflow: hidden; } .tooliak-page-loading__bar-fill { display: block; height: 100%; width: 35%; border-radius: inherit; background: linear-gradient(90deg, #3b82f6, #a78bfa, #3b82f6); background-size: 200% 100%; animation: tooliak-pl-bar 1.15s ease-in-out infinite; } @keyframes tooliak-pl-bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(380%); } } @media (prefers-reduced-motion: reduce) { .tooliak-page-loading__orbit, .tooliak-page-loading__bar-fill { animation: none !important; } .tooliak-page-loading__orbit { opacity: 0.85; } .tooliak-page-loading__bar-fill { width: 100%; transform: none; animation: none; } } .dice-3d-results{display:flex;flex-wrap:wrap;gap:2.5rem;justify-content:center;align-items:flex-end;min-height:180px;padding:2.5rem 1rem 1rem} .dice-3d-wrapper{display:flex;flex-direction:column;align-items:center;gap:.6rem} .dice-3d-label{font-size:.7rem;font-weight:700;color:#9ca3af;letter-spacing:.08em} .dice-3d-scene{width:90px;height:90px;perspective:320px;flex-shrink:0;filter:drop-shadow(0 10px 18px rgba(0,0,0,.22))} @keyframes diceRoll{ 0% {transform:rotateX(0deg) rotateY(0deg) rotateZ(0deg)} 20% {transform:rotateX(300deg) rotateY(120deg) rotateZ(25deg)} 45% {transform:rotateX(520deg) rotateY(380deg) rotateZ(-18deg)} 70% {transform:rotateX(650deg) rotateY(560deg) rotateZ(12deg)} 100%{transform:rotateX(720deg) rotateY(720deg) rotateZ(0deg)} } .dice-3d-cube{width:90px;height:90px;position:relative;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.34,1.2,.64,1)} .dice-3d-cube.rolling{animation:diceRoll .65s ease-in-out} .dice-3d-cube.show-1{transform:rotateY(0deg) rotateX(0deg)} .dice-3d-cube.show-2{transform:rotateY(-90deg) rotateX(0deg)} .dice-3d-cube.show-3{transform:rotateX(90deg) rotateY(0deg)} .dice-3d-cube.show-4{transform:rotateX(-90deg) rotateY(0deg)} .dice-3d-cube.show-5{transform:rotateY(90deg) rotateX(0deg)} .dice-3d-cube.show-6{transform:rotateY(180deg) rotateX(0deg)} .dice-3d-face{position:absolute;width:90px;height:90px;left:0;top:0;border-radius:16px;backface-visibility:hidden;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:13px;box-sizing:border-box} .dice-3d-face.face-front {transform:translateZ(45px);background:linear-gradient(145deg,#fffef8 55%,#f5eedd);border:1.5px solid #ddd0b3;box-shadow:inset 0 2px 4px rgba(255,255,255,.9),inset 0 -2px 5px rgba(0,0,0,.05)} .dice-3d-face.face-back {transform:rotateY(180deg) translateZ(45px);background:linear-gradient(145deg,#f0e9d6 55%,#e3d8c0);border:1.5px solid #c8bca0;box-shadow:inset 0 1px 3px rgba(255,255,255,.5),inset 0 -2px 5px rgba(0,0,0,.1)} .dice-3d-face.face-right {transform:rotateY(90deg) translateZ(45px);background:linear-gradient(145deg,#f8f2e3 55%,#ede3cc);border:1.5px solid #cec1a5;box-shadow:inset 0 1px 3px rgba(255,255,255,.65),inset 0 -2px 5px rgba(0,0,0,.07)} .dice-3d-face.face-left {transform:rotateY(-90deg) translateZ(45px);background:linear-gradient(145deg,#f8f2e3 55%,#ede3cc);border:1.5px solid #cec1a5;box-shadow:inset 0 1px 3px rgba(255,255,255,.65),inset 0 -2px 5px rgba(0,0,0,.07)} .dice-3d-face.face-top {transform:rotateX(-90deg) translateZ(45px);background:linear-gradient(145deg,#fffdf8 55%,#f5eedd);border:1.5px solid #ddd0b3;box-shadow:inset 0 3px 6px rgba(255,255,255,.85),inset 0 -1px 3px rgba(0,0,0,.04)} .dice-3d-face.face-bottom{transform:rotateX(90deg) translateZ(45px);background:linear-gradient(145deg,#e8dfc8 55%,#d8ccb4);border:1.5px solid #bfb295;box-shadow:inset 0 1px 2px rgba(255,255,255,.3),inset 0 -3px 7px rgba(0,0,0,.12)} .dice-dot{width:14px;height:14px;border-radius:50%;margin:auto;background:radial-gradient(circle at 38% 32%,#4a3728,#180e06);box-shadow:0 1.5px 3px rgba(0,0,0,.45),inset 0 1px 1px rgba(255,255,255,.08)} .dice-dot.red{background:radial-gradient(circle at 38% 32%,#e03022,#7a1408);box-shadow:0 1.5px 3px rgba(122,20,8,.55),inset 0 1px 1px rgba(255,255,255,.12)} .dice-dot.empty{background:transparent;box-shadow:none} .coin-3d-scene{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:260px;padding:2rem 0 1.5rem;gap:1.5rem} .coin-3d-container{ perspective:600px;perspective-origin:50% 35%; filter:drop-shadow(0 14px 24px rgba(0,0,0,.28)); } .coin-3d-coin{ width:140px;height:140px; position:relative;transform-style:preserve-3d; transform:rotateX(-18deg) rotateY(0deg); cursor:default; } .coin-3d-face{ position:absolute;width:140px;height:140px;left:0;top:0; border-radius:50%;backface-visibility:hidden; display:flex;flex-direction:column;align-items:center;justify-content:center; gap:2px; } .coin-face-heads{ transform:translateZ(8px); background:radial-gradient(ellipse at 38% 30%, #fef3c7 0%, #fbbf24 40%, #d97706 75%, #92400e 100%); border:3px solid #92400e; box-shadow:inset 0 3px 8px rgba(255,255,255,.45),inset 0 -3px 8px rgba(0,0,0,.3); } .coin-face-tails{ transform:rotateY(180deg) translateZ(8px); background:radial-gradient(ellipse at 38% 30%, #f8fafc 0%, #cbd5e1 40%, #64748b 75%, #334155 100%); border:3px solid #334155; box-shadow:inset 0 3px 8px rgba(255,255,255,.4),inset 0 -3px 8px rgba(0,0,0,.25); } .coin-face-ring{ position:absolute;width:118px;height:118px;border-radius:50%; top:50%;left:50%;transform:translate(-50%,-50%); pointer-events:none; } .coin-face-heads .coin-face-ring{border:1.5px solid rgba(146,64,14,.35)} .coin-face-tails .coin-face-ring{border:1.5px solid rgba(51,65,85,.3)} .coin-face-text{ font-size:2.1rem;font-weight:900;letter-spacing:.02em; text-shadow:0 1px 3px rgba(0,0,0,.35),0 -1px 0 rgba(255,255,255,.25); position:relative;z-index:1;line-height:1; } .coin-face-heads .coin-face-text{color:#78350f} .coin-face-tails .coin-face-text{color:#1e293b} .coin-face-symbol{ font-size:.65rem;letter-spacing:.25em;opacity:.55; position:relative;z-index:1; } .coin-face-heads .coin-face-symbol{color:#92400e} .coin-face-tails .coin-face-symbol{color:#475569} .coin-edge-seg{ position:absolute; top:calc(50% - 8px); background:linear-gradient(to bottom, #fbbf24 0%, #b45309 50%, #fbbf24 100%); backface-visibility:hidden; } .coin-result-label{ font-size:1.4rem;font-weight:800;letter-spacing:.02em; min-height:2rem;text-align:center; margin-top:0; transition:color .3s,transform .3s; } .coin-result-label.sheer{color:#d97706;transform:scale(1.06)} .coin-result-label.khat {color:#475569;transform:scale(1.06)} .coin-result-label.idle {color:#9ca3af;transform:scale(1)} @keyframes coinSpinUp{ 0% {transform:rotateX(-18deg) rotateY(0deg) translateY(0px)} 25% {transform:rotateX(-18deg) rotateY(360deg) translateY(-22px)} 55% {transform:rotateX(-18deg) rotateY(720deg) translateY(-14px)} 80% {transform:rotateX(-18deg) rotateY(900deg) translateY(-4px)} 100%{transform:rotateX(-18deg) rotateY(1080deg) translateY(0px)} } .coin-3d-coin.spinning{ animation:coinSpinUp 1.05s cubic-bezier(.22,.61,.36,1) forwards; }